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 Summary
Modifier and TypeMethodDescriptionbeginDelete(String resourceGroupName, String fleetName) Deletes an existing Azure Cosmos DB Fleet.beginDelete(String resourceGroupName, String fleetName, com.azure.core.util.Context context) Deletes an existing Azure Cosmos DB Fleet.beginDeleteAsync(String resourceGroupName, String fleetName) Deletes an existing Azure Cosmos DB Fleet.create(String resourceGroupName, String fleetName, FleetResourceInner body) Creates an Azure Cosmos DB fleet under a subscription.createAsync(String resourceGroupName, String fleetName, FleetResourceInner body) Creates an Azure Cosmos DB fleet under a subscription.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.Mono<com.azure.core.http.rest.Response<FleetResourceInner>> createWithResponseAsync(String resourceGroupName, String fleetName, FleetResourceInner body) Creates an Azure Cosmos DB fleet under a subscription.voidDeletes an existing Azure Cosmos DB Fleet.voidDeletes an existing Azure Cosmos DB Fleet.deleteAsync(String resourceGroupName, String fleetName) Deletes an existing Azure Cosmos DB Fleet.Mono<com.azure.core.http.rest.Response<Flux<ByteBuffer>>> deleteWithResponseAsync(String resourceGroupName, String fleetName) Deletes an existing Azure Cosmos DB Fleet.getByResourceGroup(String resourceGroupName, String fleetName) Retrieves the properties of an existing Azure Cosmos DB fleet under a subscription.getByResourceGroupAsync(String resourceGroupName, String fleetName) Retrieves the properties of an existing Azure Cosmos DB fleet under a subscription.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.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.com.azure.core.http.rest.PagedIterable<FleetResourceInner> list()Lists all the fleets under the subscription.com.azure.core.http.rest.PagedIterable<FleetResourceInner> list(com.azure.core.util.Context context) Lists all the fleets under the subscription.com.azure.core.http.rest.PagedFlux<FleetResourceInner> Lists all the fleets under the subscription.com.azure.core.http.rest.PagedIterable<FleetResourceInner> listByResourceGroup(String resourceGroupName) Lists all the fleets under the specified subscription and resource group.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.com.azure.core.http.rest.PagedFlux<FleetResourceInner> listByResourceGroupAsync(String resourceGroupName) Lists all the fleets under the specified subscription and resource group.Updates the properties of an existing Azure Cosmos DB Fleet.updateAsync(String resourceGroupName, String fleetName) Updates the properties of an existing Azure Cosmos DB Fleet.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.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.
-
Method Details
-
listAsync
com.azure.core.http.rest.PagedFlux<FleetResourceInner> listAsync()Lists all the fleets under the subscription.- Specified by:
listAsyncin interfacecom.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:
listin interfacecom.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:
listByResourceGroupAsyncin interfacecom.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:
listByResourceGroupin interfacecom.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
Responseon successful completion ofMono. - 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
Retrieves the properties of an existing Azure Cosmos DB fleet under a subscription.- Specified by:
getByResourceGroupAsyncin interfacecom.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
Retrieves the properties of an existing Azure Cosmos DB fleet under a subscription.- Specified by:
getByResourceGroupin interfacecom.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
Responseon successful completion ofMono. - 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
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
Responseon successful completion ofMono. - 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
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
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
Responseon successful completion ofMono. - 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
PollerFluxfor 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
SyncPollerfor 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
SyncPollerfor 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
Deletes an existing Azure Cosmos DB Fleet.- Specified by:
deleteAsyncin interfacecom.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
Monothat 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
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
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.
-