Interface ServiceFabricsClient


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

    • list

      com.azure.core.http.rest.PagedIterable<ServiceFabricInner> list(String resourceGroupName, String labName, String username)
      List service fabrics in a given user profile.
      Parameters:
      resourceGroupName - The name of the resource group.
      labName - The name of the lab.
      username - The name of the user profile.
      Returns:
      the response of a 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.
    • list

      com.azure.core.http.rest.PagedIterable<ServiceFabricInner> list(String resourceGroupName, String labName, String username, String expand, String filter, Integer top, String orderby, com.azure.core.util.Context context)
      List service fabrics in a given user profile.
      Parameters:
      resourceGroupName - The name of the resource group.
      labName - The name of the lab.
      username - The name of the user profile.
      expand - Specify the $expand query. Example: 'properties($expand=applicableSchedule)'.
      filter - The filter to apply to the operation. Example: '$filter=contains(name,'myName').
      top - The maximum number of resources to return from the operation. Example: '$top=10'.
      orderby - The ordering expression for the results, using OData notation. Example: '$orderby=name desc'.
      context - The context to associate with this operation.
      Returns:
      the response of a 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.
    • getWithResponse

      com.azure.core.http.rest.Response<ServiceFabricInner> getWithResponse(String resourceGroupName, String labName, String username, String name, String expand, com.azure.core.util.Context context)
      Get service fabric.
      Parameters:
      resourceGroupName - The name of the resource group.
      labName - The name of the lab.
      username - The name of the user profile.
      name - The name of the service fabric.
      expand - Specify the $expand query. Example: 'properties($expand=applicableSchedule)'.
      context - The context to associate with this operation.
      Returns:
      service fabric 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.
    • get

      ServiceFabricInner get(String resourceGroupName, String labName, String username, String name)
      Get service fabric.
      Parameters:
      resourceGroupName - The name of the resource group.
      labName - The name of the lab.
      username - The name of the user profile.
      name - The name of the service fabric.
      Returns:
      service fabric.
      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<ServiceFabricInner>,ServiceFabricInner> beginCreateOrUpdate(String resourceGroupName, String labName, String username, String name, ServiceFabricInner serviceFabric)
      Create or replace an existing service fabric. This operation can take a while to complete.
      Parameters:
      resourceGroupName - The name of the resource group.
      labName - The name of the lab.
      username - The name of the user profile.
      name - The name of the service fabric.
      serviceFabric - A Service Fabric.
      Returns:
      the SyncPoller for polling of a Service Fabric.
      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<ServiceFabricInner>,ServiceFabricInner> beginCreateOrUpdate(String resourceGroupName, String labName, String username, String name, ServiceFabricInner serviceFabric, com.azure.core.util.Context context)
      Create or replace an existing service fabric. This operation can take a while to complete.
      Parameters:
      resourceGroupName - The name of the resource group.
      labName - The name of the lab.
      username - The name of the user profile.
      name - The name of the service fabric.
      serviceFabric - A Service Fabric.
      context - The context to associate with this operation.
      Returns:
      the SyncPoller for polling of a Service Fabric.
      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

      ServiceFabricInner createOrUpdate(String resourceGroupName, String labName, String username, String name, ServiceFabricInner serviceFabric)
      Create or replace an existing service fabric. This operation can take a while to complete.
      Parameters:
      resourceGroupName - The name of the resource group.
      labName - The name of the lab.
      username - The name of the user profile.
      name - The name of the service fabric.
      serviceFabric - A Service Fabric.
      Returns:
      a Service Fabric.
      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

      ServiceFabricInner createOrUpdate(String resourceGroupName, String labName, String username, String name, ServiceFabricInner serviceFabric, com.azure.core.util.Context context)
      Create or replace an existing service fabric. This operation can take a while to complete.
      Parameters:
      resourceGroupName - The name of the resource group.
      labName - The name of the lab.
      username - The name of the user profile.
      name - The name of the service fabric.
      serviceFabric - A Service Fabric.
      context - The context to associate with this operation.
      Returns:
      a Service Fabric.
      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 labName, String username, String name)
      Delete service fabric. This operation can take a while to complete.
      Parameters:
      resourceGroupName - The name of the resource group.
      labName - The name of the lab.
      username - The name of the user profile.
      name - The name of the service fabric.
      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 labName, String username, String name, com.azure.core.util.Context context)
      Delete service fabric. This operation can take a while to complete.
      Parameters:
      resourceGroupName - The name of the resource group.
      labName - The name of the lab.
      username - The name of the user profile.
      name - The name of the service fabric.
      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 labName, String username, String name)
      Delete service fabric. This operation can take a while to complete.
      Parameters:
      resourceGroupName - The name of the resource group.
      labName - The name of the lab.
      username - The name of the user profile.
      name - The name of the service fabric.
      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 labName, String username, String name, com.azure.core.util.Context context)
      Delete service fabric. This operation can take a while to complete.
      Parameters:
      resourceGroupName - The name of the resource group.
      labName - The name of the lab.
      username - The name of the user profile.
      name - The name of the service fabric.
      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.
    • updateWithResponse

      com.azure.core.http.rest.Response<ServiceFabricInner> updateWithResponse(String resourceGroupName, String labName, String username, String name, ServiceFabricFragment serviceFabric, com.azure.core.util.Context context)
      Allows modifying tags of service fabrics. All other properties will be ignored.
      Parameters:
      resourceGroupName - The name of the resource group.
      labName - The name of the lab.
      username - The name of the user profile.
      name - The name of the service fabric.
      serviceFabric - A Service Fabric.
      context - The context to associate with this operation.
      Returns:
      a Service Fabric 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.
    • update

      ServiceFabricInner update(String resourceGroupName, String labName, String username, String name, ServiceFabricFragment serviceFabric)
      Allows modifying tags of service fabrics. All other properties will be ignored.
      Parameters:
      resourceGroupName - The name of the resource group.
      labName - The name of the lab.
      username - The name of the user profile.
      name - The name of the service fabric.
      serviceFabric - A Service Fabric.
      Returns:
      a Service Fabric.
      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.
    • listApplicableSchedulesWithResponse

      com.azure.core.http.rest.Response<ApplicableScheduleInner> listApplicableSchedulesWithResponse(String resourceGroupName, String labName, String username, String name, com.azure.core.util.Context context)
      Lists the applicable start/stop schedules, if any.
      Parameters:
      resourceGroupName - The name of the resource group.
      labName - The name of the lab.
      username - The name of the user profile.
      name - The name of the service fabric.
      context - The context to associate with this operation.
      Returns:
      schedules applicable to a virtual machine 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.
    • listApplicableSchedules

      ApplicableScheduleInner listApplicableSchedules(String resourceGroupName, String labName, String username, String name)
      Lists the applicable start/stop schedules, if any.
      Parameters:
      resourceGroupName - The name of the resource group.
      labName - The name of the lab.
      username - The name of the user profile.
      name - The name of the service fabric.
      Returns:
      schedules applicable to a virtual machine.
      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.
    • beginStart

      com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<Void>,Void> beginStart(String resourceGroupName, String labName, String username, String name)
      Start a service fabric. This operation can take a while to complete.
      Parameters:
      resourceGroupName - The name of the resource group.
      labName - The name of the lab.
      username - The name of the user profile.
      name - The name of the service fabric.
      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.
    • beginStart

      com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<Void>,Void> beginStart(String resourceGroupName, String labName, String username, String name, com.azure.core.util.Context context)
      Start a service fabric. This operation can take a while to complete.
      Parameters:
      resourceGroupName - The name of the resource group.
      labName - The name of the lab.
      username - The name of the user profile.
      name - The name of the service fabric.
      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.
    • start

      void start(String resourceGroupName, String labName, String username, String name)
      Start a service fabric. This operation can take a while to complete.
      Parameters:
      resourceGroupName - The name of the resource group.
      labName - The name of the lab.
      username - The name of the user profile.
      name - The name of the service fabric.
      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.
    • start

      void start(String resourceGroupName, String labName, String username, String name, com.azure.core.util.Context context)
      Start a service fabric. This operation can take a while to complete.
      Parameters:
      resourceGroupName - The name of the resource group.
      labName - The name of the lab.
      username - The name of the user profile.
      name - The name of the service fabric.
      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.
    • beginStop

      com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<Void>,Void> beginStop(String resourceGroupName, String labName, String username, String name)
      Stop a service fabric This operation can take a while to complete.
      Parameters:
      resourceGroupName - The name of the resource group.
      labName - The name of the lab.
      username - The name of the user profile.
      name - The name of the service fabric.
      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.
    • beginStop

      com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<Void>,Void> beginStop(String resourceGroupName, String labName, String username, String name, com.azure.core.util.Context context)
      Stop a service fabric This operation can take a while to complete.
      Parameters:
      resourceGroupName - The name of the resource group.
      labName - The name of the lab.
      username - The name of the user profile.
      name - The name of the service fabric.
      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.
    • stop

      void stop(String resourceGroupName, String labName, String username, String name)
      Stop a service fabric This operation can take a while to complete.
      Parameters:
      resourceGroupName - The name of the resource group.
      labName - The name of the lab.
      username - The name of the user profile.
      name - The name of the service fabric.
      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.
    • stop

      void stop(String resourceGroupName, String labName, String username, String name, com.azure.core.util.Context context)
      Stop a service fabric This operation can take a while to complete.
      Parameters:
      resourceGroupName - The name of the resource group.
      labName - The name of the lab.
      username - The name of the user profile.
      name - The name of the service fabric.
      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.