Interface FleetsClient

All Superinterfaces:
com.azure.resourcemanager.resources.fluentcore.collection.InnerSupportsDelete<Void>, com.azure.resourcemanager.resources.fluentcore.collection.InnerSupportsGet<FleetResourceInner>, com.azure.resourcemanager.resources.fluentcore.collection.InnerSupportsListing<FleetResourceInner>

public interface FleetsClient extends com.azure.resourcemanager.resources.fluentcore.collection.InnerSupportsGet<FleetResourceInner>, com.azure.resourcemanager.resources.fluentcore.collection.InnerSupportsListing<FleetResourceInner>, com.azure.resourcemanager.resources.fluentcore.collection.InnerSupportsDelete<Void>
An instance of this class provides access to all the operations defined in FleetsClient.
  • Method Details

    • listAsync

      com.azure.core.http.rest.PagedFlux<FleetResourceInner> listAsync()
      Lists all the fleets under the subscription.
      Specified by:
      listAsync in interface com.azure.resourcemanager.resources.fluentcore.collection.InnerSupportsListing<FleetResourceInner>
      Returns:
      the response of the List operation that contains the fleets and their properties as paginated response with PagedFlux.
      Throws:
      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<FleetResourceInner> list()
      Lists all the fleets under the subscription.
      Specified by:
      list in interface com.azure.resourcemanager.resources.fluentcore.collection.InnerSupportsListing<FleetResourceInner>
      Returns:
      the response of the List operation that contains the fleets and their properties as paginated response with PagedIterable.
      Throws:
      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<FleetResourceInner> list(com.azure.core.util.Context context)
      Lists all the fleets under the subscription.
      Parameters:
      context - The context to associate with this operation.
      Returns:
      the response of the List operation that contains the fleets and their properties 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.
    • listByResourceGroupAsync

      com.azure.core.http.rest.PagedFlux<FleetResourceInner> listByResourceGroupAsync(String resourceGroupName)
      Lists all the fleets under the specified subscription and resource group.
      Specified by:
      listByResourceGroupAsync in interface com.azure.resourcemanager.resources.fluentcore.collection.InnerSupportsListing<FleetResourceInner>
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      Returns:
      the response of the List operation that contains the fleets and their properties as paginated response with PagedFlux.
      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.
    • listByResourceGroup

      com.azure.core.http.rest.PagedIterable<FleetResourceInner> listByResourceGroup(String resourceGroupName)
      Lists all the fleets under the specified subscription and resource group.
      Specified by:
      listByResourceGroup in interface com.azure.resourcemanager.resources.fluentcore.collection.InnerSupportsListing<FleetResourceInner>
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      Returns:
      the response of the List operation that contains the fleets and their properties 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.
    • listByResourceGroup

      com.azure.core.http.rest.PagedIterable<FleetResourceInner> listByResourceGroup(String resourceGroupName, com.azure.core.util.Context context)
      Lists all the fleets under the specified subscription and resource group.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      context - The context to associate with this operation.
      Returns:
      the response of the List operation that contains the fleets and their properties 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.
    • getByResourceGroupWithResponseAsync

      Mono<com.azure.core.http.rest.Response<FleetResourceInner>> getByResourceGroupWithResponseAsync(String resourceGroupName, String fleetName)
      Retrieves the properties of an existing Azure Cosmos DB fleet under a subscription.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      fleetName - Cosmos DB fleet name. Needs to be unique under a subscription.
      Returns:
      an Azure Cosmos DB FleetResource along with Response on successful completion of Mono.
      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.
    • getByResourceGroupAsync

      Mono<FleetResourceInner> getByResourceGroupAsync(String resourceGroupName, String fleetName)
      Retrieves the properties of an existing Azure Cosmos DB fleet under a subscription.
      Specified by:
      getByResourceGroupAsync in interface com.azure.resourcemanager.resources.fluentcore.collection.InnerSupportsGet<FleetResourceInner>
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      fleetName - Cosmos DB fleet name. Needs to be unique under a subscription.
      Returns:
      an Azure Cosmos DB FleetResource on successful completion of Mono.
      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.
    • getByResourceGroupWithResponse

      com.azure.core.http.rest.Response<FleetResourceInner> getByResourceGroupWithResponse(String resourceGroupName, String fleetName, com.azure.core.util.Context context)
      Retrieves the properties of an existing Azure Cosmos DB fleet under a subscription.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      fleetName - Cosmos DB fleet name. Needs to be unique under a subscription.
      context - The context to associate with this operation.
      Returns:
      an Azure Cosmos DB FleetResource 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.
    • getByResourceGroup

      FleetResourceInner getByResourceGroup(String resourceGroupName, String fleetName)
      Retrieves the properties of an existing Azure Cosmos DB fleet under a subscription.
      Specified by:
      getByResourceGroup in interface com.azure.resourcemanager.resources.fluentcore.collection.InnerSupportsGet<FleetResourceInner>
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      fleetName - Cosmos DB fleet name. Needs to be unique under a subscription.
      Returns:
      an Azure Cosmos DB FleetResource.
      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.
    • createWithResponseAsync

      Mono<com.azure.core.http.rest.Response<FleetResourceInner>> createWithResponseAsync(String resourceGroupName, String fleetName, FleetResourceInner body)
      Creates an Azure Cosmos DB fleet under a subscription.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      fleetName - Cosmos DB fleet name. Needs to be unique under a subscription.
      body - The parameters to provide for the current fleet.
      Returns:
      an Azure Cosmos DB FleetResource along with Response on successful completion of Mono.
      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.
    • createAsync

      Mono<FleetResourceInner> createAsync(String resourceGroupName, String fleetName, FleetResourceInner body)
      Creates an Azure Cosmos DB fleet under a subscription.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      fleetName - Cosmos DB fleet name. Needs to be unique under a subscription.
      body - The parameters to provide for the current fleet.
      Returns:
      an Azure Cosmos DB FleetResource on successful completion of Mono.
      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.
    • createWithResponse

      com.azure.core.http.rest.Response<FleetResourceInner> createWithResponse(String resourceGroupName, String fleetName, FleetResourceInner body, com.azure.core.util.Context context)
      Creates an Azure Cosmos DB fleet under a subscription.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      fleetName - Cosmos DB fleet name. Needs to be unique under a subscription.
      body - The parameters to provide for the current fleet.
      context - The context to associate with this operation.
      Returns:
      an Azure Cosmos DB FleetResource 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.
    • create

      FleetResourceInner create(String resourceGroupName, String fleetName, FleetResourceInner body)
      Creates an Azure Cosmos DB fleet under a subscription.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      fleetName - Cosmos DB fleet name. Needs to be unique under a subscription.
      body - The parameters to provide for the current fleet.
      Returns:
      an Azure Cosmos DB FleetResource.
      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.
    • updateWithResponseAsync

      Mono<com.azure.core.http.rest.Response<FleetResourceInner>> updateWithResponseAsync(String resourceGroupName, String fleetName, FleetResourceUpdate body)
      Updates the properties of an existing Azure Cosmos DB Fleet.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      fleetName - Cosmos DB fleet name. Needs to be unique under a subscription.
      body - The parameters to provide for the current fleet.
      Returns:
      an Azure Cosmos DB FleetResource along with Response on successful completion of Mono.
      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.
    • updateAsync

      Mono<FleetResourceInner> updateAsync(String resourceGroupName, String fleetName)
      Updates the properties of an existing Azure Cosmos DB Fleet.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      fleetName - Cosmos DB fleet name. Needs to be unique under a subscription.
      Returns:
      an Azure Cosmos DB FleetResource on successful completion of Mono.
      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<FleetResourceInner> updateWithResponse(String resourceGroupName, String fleetName, FleetResourceUpdate body, com.azure.core.util.Context context)
      Updates the properties of an existing Azure Cosmos DB Fleet.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      fleetName - Cosmos DB fleet name. Needs to be unique under a subscription.
      body - The parameters to provide for the current fleet.
      context - The context to associate with this operation.
      Returns:
      an Azure Cosmos DB FleetResource 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

      FleetResourceInner update(String resourceGroupName, String fleetName)
      Updates the properties of an existing Azure Cosmos DB Fleet.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      fleetName - Cosmos DB fleet name. Needs to be unique under a subscription.
      Returns:
      an Azure Cosmos DB FleetResource.
      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.
    • deleteWithResponseAsync

      Mono<com.azure.core.http.rest.Response<Flux<ByteBuffer>>> deleteWithResponseAsync(String resourceGroupName, String fleetName)
      Deletes an existing Azure Cosmos DB Fleet.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      fleetName - Cosmos DB fleet name. Needs to be unique under a subscription.
      Returns:
      the Response on successful completion of Mono.
      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.
    • beginDeleteAsync

      com.azure.core.util.polling.PollerFlux<com.azure.core.management.polling.PollResult<Void>, Void> beginDeleteAsync(String resourceGroupName, String fleetName)
      Deletes an existing Azure Cosmos DB Fleet.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      fleetName - Cosmos DB fleet name. Needs to be unique under a subscription.
      Returns:
      the PollerFlux 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 fleetName)
      Deletes an existing Azure Cosmos DB Fleet.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      fleetName - Cosmos DB fleet name. Needs to be unique under a subscription.
      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 fleetName, com.azure.core.util.Context context)
      Deletes an existing Azure Cosmos DB Fleet.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      fleetName - Cosmos DB fleet name. Needs to be unique under a subscription.
      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.
    • deleteAsync

      Mono<Void> deleteAsync(String resourceGroupName, String fleetName)
      Deletes an existing Azure Cosmos DB Fleet.
      Specified by:
      deleteAsync in interface com.azure.resourcemanager.resources.fluentcore.collection.InnerSupportsDelete<Void>
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      fleetName - Cosmos DB fleet name. Needs to be unique under a subscription.
      Returns:
      A Mono that completes when a successful response is received.
      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 fleetName)
      Deletes an existing Azure Cosmos DB Fleet.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      fleetName - Cosmos DB fleet name. Needs to be unique under a subscription.
      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 fleetName, com.azure.core.util.Context context)
      Deletes an existing Azure Cosmos DB Fleet.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      fleetName - Cosmos DB fleet name. Needs to be unique under a subscription.
      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.