Interface CapacityReservationsClient
public interface CapacityReservationsClient
An instance of this class provides access to all the operations defined in CapacityReservationsClient.
-
Method Summary
Modifier and TypeMethodDescriptioncom.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<CapacityReservationInner>,CapacityReservationInner> beginCreateOrUpdate(String resourceGroupName, String capacityReservationGroupName, String capacityReservationName, CapacityReservationInner parameters) The operation to create or update a capacity reservation.com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<CapacityReservationInner>,CapacityReservationInner> beginCreateOrUpdate(String resourceGroupName, String capacityReservationGroupName, String capacityReservationName, CapacityReservationInner parameters, com.azure.core.util.Context context) The operation to create or update a capacity reservation.com.azure.core.util.polling.PollerFlux<com.azure.core.management.polling.PollResult<CapacityReservationInner>,CapacityReservationInner> beginCreateOrUpdateAsync(String resourceGroupName, String capacityReservationGroupName, String capacityReservationName, CapacityReservationInner parameters) The operation to create or update a capacity reservation.beginDelete(String resourceGroupName, String capacityReservationGroupName, String capacityReservationName) The operation to delete a capacity reservation.beginDelete(String resourceGroupName, String capacityReservationGroupName, String capacityReservationName, com.azure.core.util.Context context) The operation to delete a capacity reservation.beginDeleteAsync(String resourceGroupName, String capacityReservationGroupName, String capacityReservationName) The operation to delete a capacity reservation.com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<CapacityReservationInner>,CapacityReservationInner> beginUpdate(String resourceGroupName, String capacityReservationGroupName, String capacityReservationName, CapacityReservationUpdate parameters) The operation to update a capacity reservation.com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<CapacityReservationInner>,CapacityReservationInner> beginUpdate(String resourceGroupName, String capacityReservationGroupName, String capacityReservationName, CapacityReservationUpdate parameters, com.azure.core.util.Context context) The operation to update a capacity reservation.com.azure.core.util.polling.PollerFlux<com.azure.core.management.polling.PollResult<CapacityReservationInner>,CapacityReservationInner> beginUpdateAsync(String resourceGroupName, String capacityReservationGroupName, String capacityReservationName, CapacityReservationUpdate parameters) The operation to update a capacity reservation.createOrUpdate(String resourceGroupName, String capacityReservationGroupName, String capacityReservationName, CapacityReservationInner parameters) The operation to create or update a capacity reservation.createOrUpdate(String resourceGroupName, String capacityReservationGroupName, String capacityReservationName, CapacityReservationInner parameters, com.azure.core.util.Context context) The operation to create or update a capacity reservation.createOrUpdateAsync(String resourceGroupName, String capacityReservationGroupName, String capacityReservationName, CapacityReservationInner parameters) The operation to create or update a capacity reservation.Mono<com.azure.core.http.rest.Response<Flux<ByteBuffer>>>createOrUpdateWithResponseAsync(String resourceGroupName, String capacityReservationGroupName, String capacityReservationName, CapacityReservationInner parameters) The operation to create or update a capacity reservation.voiddelete(String resourceGroupName, String capacityReservationGroupName, String capacityReservationName) The operation to delete a capacity reservation.voiddelete(String resourceGroupName, String capacityReservationGroupName, String capacityReservationName, com.azure.core.util.Context context) The operation to delete a capacity reservation.deleteAsync(String resourceGroupName, String capacityReservationGroupName, String capacityReservationName) The operation to delete a capacity reservation.Mono<com.azure.core.http.rest.Response<Flux<ByteBuffer>>>deleteWithResponseAsync(String resourceGroupName, String capacityReservationGroupName, String capacityReservationName) The operation to delete a capacity reservation.The operation that retrieves information about the capacity reservation.getAsync(String resourceGroupName, String capacityReservationGroupName, String capacityReservationName) The operation that retrieves information about the capacity reservation.getAsync(String resourceGroupName, String capacityReservationGroupName, String capacityReservationName, CapacityReservationInstanceViewTypes expand) The operation that retrieves information about the capacity reservation.com.azure.core.http.rest.Response<CapacityReservationInner>getWithResponse(String resourceGroupName, String capacityReservationGroupName, String capacityReservationName, CapacityReservationInstanceViewTypes expand, com.azure.core.util.Context context) The operation that retrieves information about the capacity reservation.Mono<com.azure.core.http.rest.Response<CapacityReservationInner>>getWithResponseAsync(String resourceGroupName, String capacityReservationGroupName, String capacityReservationName, CapacityReservationInstanceViewTypes expand) The operation that retrieves information about the capacity reservation.com.azure.core.http.rest.PagedIterable<CapacityReservationInner>listByCapacityReservationGroup(String resourceGroupName, String capacityReservationGroupName) Lists all of the capacity reservations in the specified capacity reservation group.com.azure.core.http.rest.PagedIterable<CapacityReservationInner>listByCapacityReservationGroup(String resourceGroupName, String capacityReservationGroupName, com.azure.core.util.Context context) Lists all of the capacity reservations in the specified capacity reservation group.com.azure.core.http.rest.PagedFlux<CapacityReservationInner>listByCapacityReservationGroupAsync(String resourceGroupName, String capacityReservationGroupName) Lists all of the capacity reservations in the specified capacity reservation group.update(String resourceGroupName, String capacityReservationGroupName, String capacityReservationName, CapacityReservationUpdate parameters) The operation to update a capacity reservation.update(String resourceGroupName, String capacityReservationGroupName, String capacityReservationName, CapacityReservationUpdate parameters, com.azure.core.util.Context context) The operation to update a capacity reservation.updateAsync(String resourceGroupName, String capacityReservationGroupName, String capacityReservationName, CapacityReservationUpdate parameters) The operation to update a capacity reservation.Mono<com.azure.core.http.rest.Response<Flux<ByteBuffer>>>updateWithResponseAsync(String resourceGroupName, String capacityReservationGroupName, String capacityReservationName, CapacityReservationUpdate parameters) The operation to update a capacity reservation.
-
Method Details
-
createOrUpdateWithResponseAsync
Mono<com.azure.core.http.rest.Response<Flux<ByteBuffer>>> createOrUpdateWithResponseAsync(String resourceGroupName, String capacityReservationGroupName, String capacityReservationName, CapacityReservationInner parameters) The operation to create or update a capacity reservation. Please note some properties can be set only during capacity reservation creation. Please refer to https://aka.ms/CapacityReservation for more details.- Parameters:
resourceGroupName- The name of the resource group.capacityReservationGroupName- The name of the capacity reservation group.capacityReservationName- The name of the capacity reservation.parameters- Parameters supplied to the Create capacity reservation.- Returns:
- specifies information about the capacity reservation along with
Responseon successful completion ofMono. - Throws:
IllegalArgumentException- thrown if parameters fail the validation.ApiErrorException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
beginCreateOrUpdateAsync
com.azure.core.util.polling.PollerFlux<com.azure.core.management.polling.PollResult<CapacityReservationInner>,CapacityReservationInner> beginCreateOrUpdateAsync(String resourceGroupName, String capacityReservationGroupName, String capacityReservationName, CapacityReservationInner parameters) The operation to create or update a capacity reservation. Please note some properties can be set only during capacity reservation creation. Please refer to https://aka.ms/CapacityReservation for more details.- Parameters:
resourceGroupName- The name of the resource group.capacityReservationGroupName- The name of the capacity reservation group.capacityReservationName- The name of the capacity reservation.parameters- Parameters supplied to the Create capacity reservation.- Returns:
- the
PollerFluxfor polling of specifies information about the capacity reservation. - Throws:
IllegalArgumentException- thrown if parameters fail the validation.ApiErrorException- 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<CapacityReservationInner>,CapacityReservationInner> beginCreateOrUpdate(String resourceGroupName, String capacityReservationGroupName, String capacityReservationName, CapacityReservationInner parameters) The operation to create or update a capacity reservation. Please note some properties can be set only during capacity reservation creation. Please refer to https://aka.ms/CapacityReservation for more details.- Parameters:
resourceGroupName- The name of the resource group.capacityReservationGroupName- The name of the capacity reservation group.capacityReservationName- The name of the capacity reservation.parameters- Parameters supplied to the Create capacity reservation.- Returns:
- the
SyncPollerfor polling of specifies information about the capacity reservation. - Throws:
IllegalArgumentException- thrown if parameters fail the validation.ApiErrorException- 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<CapacityReservationInner>,CapacityReservationInner> beginCreateOrUpdate(String resourceGroupName, String capacityReservationGroupName, String capacityReservationName, CapacityReservationInner parameters, com.azure.core.util.Context context) The operation to create or update a capacity reservation. Please note some properties can be set only during capacity reservation creation. Please refer to https://aka.ms/CapacityReservation for more details.- Parameters:
resourceGroupName- The name of the resource group.capacityReservationGroupName- The name of the capacity reservation group.capacityReservationName- The name of the capacity reservation.parameters- Parameters supplied to the Create capacity reservation.context- The context to associate with this operation.- Returns:
- the
SyncPollerfor polling of specifies information about the capacity reservation. - Throws:
IllegalArgumentException- thrown if parameters fail the validation.ApiErrorException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
createOrUpdateAsync
Mono<CapacityReservationInner> createOrUpdateAsync(String resourceGroupName, String capacityReservationGroupName, String capacityReservationName, CapacityReservationInner parameters) The operation to create or update a capacity reservation. Please note some properties can be set only during capacity reservation creation. Please refer to https://aka.ms/CapacityReservation for more details.- Parameters:
resourceGroupName- The name of the resource group.capacityReservationGroupName- The name of the capacity reservation group.capacityReservationName- The name of the capacity reservation.parameters- Parameters supplied to the Create capacity reservation.- Returns:
- specifies information about the capacity reservation on successful completion of
Mono. - Throws:
IllegalArgumentException- thrown if parameters fail the validation.ApiErrorException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
createOrUpdate
CapacityReservationInner createOrUpdate(String resourceGroupName, String capacityReservationGroupName, String capacityReservationName, CapacityReservationInner parameters) The operation to create or update a capacity reservation. Please note some properties can be set only during capacity reservation creation. Please refer to https://aka.ms/CapacityReservation for more details.- Parameters:
resourceGroupName- The name of the resource group.capacityReservationGroupName- The name of the capacity reservation group.capacityReservationName- The name of the capacity reservation.parameters- Parameters supplied to the Create capacity reservation.- Returns:
- specifies information about the capacity reservation.
- Throws:
IllegalArgumentException- thrown if parameters fail the validation.ApiErrorException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
createOrUpdate
CapacityReservationInner createOrUpdate(String resourceGroupName, String capacityReservationGroupName, String capacityReservationName, CapacityReservationInner parameters, com.azure.core.util.Context context) The operation to create or update a capacity reservation. Please note some properties can be set only during capacity reservation creation. Please refer to https://aka.ms/CapacityReservation for more details.- Parameters:
resourceGroupName- The name of the resource group.capacityReservationGroupName- The name of the capacity reservation group.capacityReservationName- The name of the capacity reservation.parameters- Parameters supplied to the Create capacity reservation.context- The context to associate with this operation.- Returns:
- specifies information about the capacity reservation.
- Throws:
IllegalArgumentException- thrown if parameters fail the validation.ApiErrorException- 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<Flux<ByteBuffer>>> updateWithResponseAsync(String resourceGroupName, String capacityReservationGroupName, String capacityReservationName, CapacityReservationUpdate parameters) The operation to update a capacity reservation.- Parameters:
resourceGroupName- The name of the resource group.capacityReservationGroupName- The name of the capacity reservation group.capacityReservationName- The name of the capacity reservation.parameters- Parameters supplied to the Update capacity reservation operation.- Returns:
- specifies information about the capacity reservation along with
Responseon successful completion ofMono. - Throws:
IllegalArgumentException- thrown if parameters fail the validation.ApiErrorException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
beginUpdateAsync
com.azure.core.util.polling.PollerFlux<com.azure.core.management.polling.PollResult<CapacityReservationInner>,CapacityReservationInner> beginUpdateAsync(String resourceGroupName, String capacityReservationGroupName, String capacityReservationName, CapacityReservationUpdate parameters) The operation to update a capacity reservation.- Parameters:
resourceGroupName- The name of the resource group.capacityReservationGroupName- The name of the capacity reservation group.capacityReservationName- The name of the capacity reservation.parameters- Parameters supplied to the Update capacity reservation operation.- Returns:
- the
PollerFluxfor polling of specifies information about the capacity reservation. - Throws:
IllegalArgumentException- thrown if parameters fail the validation.ApiErrorException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
beginUpdate
com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<CapacityReservationInner>,CapacityReservationInner> beginUpdate(String resourceGroupName, String capacityReservationGroupName, String capacityReservationName, CapacityReservationUpdate parameters) The operation to update a capacity reservation.- Parameters:
resourceGroupName- The name of the resource group.capacityReservationGroupName- The name of the capacity reservation group.capacityReservationName- The name of the capacity reservation.parameters- Parameters supplied to the Update capacity reservation operation.- Returns:
- the
SyncPollerfor polling of specifies information about the capacity reservation. - Throws:
IllegalArgumentException- thrown if parameters fail the validation.ApiErrorException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
beginUpdate
com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<CapacityReservationInner>,CapacityReservationInner> beginUpdate(String resourceGroupName, String capacityReservationGroupName, String capacityReservationName, CapacityReservationUpdate parameters, com.azure.core.util.Context context) The operation to update a capacity reservation.- Parameters:
resourceGroupName- The name of the resource group.capacityReservationGroupName- The name of the capacity reservation group.capacityReservationName- The name of the capacity reservation.parameters- Parameters supplied to the Update capacity reservation operation.context- The context to associate with this operation.- Returns:
- the
SyncPollerfor polling of specifies information about the capacity reservation. - Throws:
IllegalArgumentException- thrown if parameters fail the validation.ApiErrorException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
updateAsync
Mono<CapacityReservationInner> updateAsync(String resourceGroupName, String capacityReservationGroupName, String capacityReservationName, CapacityReservationUpdate parameters) The operation to update a capacity reservation.- Parameters:
resourceGroupName- The name of the resource group.capacityReservationGroupName- The name of the capacity reservation group.capacityReservationName- The name of the capacity reservation.parameters- Parameters supplied to the Update capacity reservation operation.- Returns:
- specifies information about the capacity reservation on successful completion of
Mono. - Throws:
IllegalArgumentException- thrown if parameters fail the validation.ApiErrorException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
update
CapacityReservationInner update(String resourceGroupName, String capacityReservationGroupName, String capacityReservationName, CapacityReservationUpdate parameters) The operation to update a capacity reservation.- Parameters:
resourceGroupName- The name of the resource group.capacityReservationGroupName- The name of the capacity reservation group.capacityReservationName- The name of the capacity reservation.parameters- Parameters supplied to the Update capacity reservation operation.- Returns:
- specifies information about the capacity reservation.
- Throws:
IllegalArgumentException- thrown if parameters fail the validation.ApiErrorException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
update
CapacityReservationInner update(String resourceGroupName, String capacityReservationGroupName, String capacityReservationName, CapacityReservationUpdate parameters, com.azure.core.util.Context context) The operation to update a capacity reservation.- Parameters:
resourceGroupName- The name of the resource group.capacityReservationGroupName- The name of the capacity reservation group.capacityReservationName- The name of the capacity reservation.parameters- Parameters supplied to the Update capacity reservation operation.context- The context to associate with this operation.- Returns:
- specifies information about the capacity reservation.
- Throws:
IllegalArgumentException- thrown if parameters fail the validation.ApiErrorException- 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 capacityReservationGroupName, String capacityReservationName) The operation to delete a capacity reservation. This operation is allowed only when all the associated resources are disassociated from the capacity reservation. Please refer to https://aka.ms/CapacityReservation for more details.- Parameters:
resourceGroupName- The name of the resource group.capacityReservationGroupName- The name of the capacity reservation group.capacityReservationName- The name of the capacity reservation.- Returns:
- the
Responseon successful completion ofMono. - Throws:
IllegalArgumentException- thrown if parameters fail the validation.ApiErrorException- 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 capacityReservationGroupName, String capacityReservationName) The operation to delete a capacity reservation. This operation is allowed only when all the associated resources are disassociated from the capacity reservation. Please refer to https://aka.ms/CapacityReservation for more details.- Parameters:
resourceGroupName- The name of the resource group.capacityReservationGroupName- The name of the capacity reservation group.capacityReservationName- The name of the capacity reservation.- Returns:
- the
PollerFluxfor polling of long-running operation. - Throws:
IllegalArgumentException- thrown if parameters fail the validation.ApiErrorException- 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 capacityReservationGroupName, String capacityReservationName) The operation to delete a capacity reservation. This operation is allowed only when all the associated resources are disassociated from the capacity reservation. Please refer to https://aka.ms/CapacityReservation for more details.- Parameters:
resourceGroupName- The name of the resource group.capacityReservationGroupName- The name of the capacity reservation group.capacityReservationName- The name of the capacity reservation.- Returns:
- the
SyncPollerfor polling of long-running operation. - Throws:
IllegalArgumentException- thrown if parameters fail the validation.ApiErrorException- 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 capacityReservationGroupName, String capacityReservationName, com.azure.core.util.Context context) The operation to delete a capacity reservation. This operation is allowed only when all the associated resources are disassociated from the capacity reservation. Please refer to https://aka.ms/CapacityReservation for more details.- Parameters:
resourceGroupName- The name of the resource group.capacityReservationGroupName- The name of the capacity reservation group.capacityReservationName- The name of the capacity reservation.context- The context to associate with this operation.- Returns:
- the
SyncPollerfor polling of long-running operation. - Throws:
IllegalArgumentException- thrown if parameters fail the validation.ApiErrorException- 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 capacityReservationGroupName, String capacityReservationName) The operation to delete a capacity reservation. This operation is allowed only when all the associated resources are disassociated from the capacity reservation. Please refer to https://aka.ms/CapacityReservation for more details.- Parameters:
resourceGroupName- The name of the resource group.capacityReservationGroupName- The name of the capacity reservation group.capacityReservationName- The name of the capacity reservation.- Returns:
- A
Monothat completes when a successful response is received. - Throws:
IllegalArgumentException- thrown if parameters fail the validation.ApiErrorException- 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 capacityReservationGroupName, String capacityReservationName) The operation to delete a capacity reservation. This operation is allowed only when all the associated resources are disassociated from the capacity reservation. Please refer to https://aka.ms/CapacityReservation for more details.- Parameters:
resourceGroupName- The name of the resource group.capacityReservationGroupName- The name of the capacity reservation group.capacityReservationName- The name of the capacity reservation.- Throws:
IllegalArgumentException- thrown if parameters fail the validation.ApiErrorException- 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 capacityReservationGroupName, String capacityReservationName, com.azure.core.util.Context context) The operation to delete a capacity reservation. This operation is allowed only when all the associated resources are disassociated from the capacity reservation. Please refer to https://aka.ms/CapacityReservation for more details.- Parameters:
resourceGroupName- The name of the resource group.capacityReservationGroupName- The name of the capacity reservation group.capacityReservationName- The name of the capacity reservation.context- The context to associate with this operation.- Throws:
IllegalArgumentException- thrown if parameters fail the validation.ApiErrorException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
getWithResponseAsync
Mono<com.azure.core.http.rest.Response<CapacityReservationInner>> getWithResponseAsync(String resourceGroupName, String capacityReservationGroupName, String capacityReservationName, CapacityReservationInstanceViewTypes expand) The operation that retrieves information about the capacity reservation.- Parameters:
resourceGroupName- The name of the resource group.capacityReservationGroupName- The name of the capacity reservation group.capacityReservationName- The name of the capacity reservation.expand- The expand expression to apply on the operation. 'InstanceView' retrieves a snapshot of the runtime properties of the capacity reservation that is managed by the platform and can change outside of control plane operations.- Returns:
- specifies information about the capacity reservation along with
Responseon successful completion ofMono. - Throws:
IllegalArgumentException- thrown if parameters fail the validation.ApiErrorException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
getAsync
Mono<CapacityReservationInner> getAsync(String resourceGroupName, String capacityReservationGroupName, String capacityReservationName, CapacityReservationInstanceViewTypes expand) The operation that retrieves information about the capacity reservation.- Parameters:
resourceGroupName- The name of the resource group.capacityReservationGroupName- The name of the capacity reservation group.capacityReservationName- The name of the capacity reservation.expand- The expand expression to apply on the operation. 'InstanceView' retrieves a snapshot of the runtime properties of the capacity reservation that is managed by the platform and can change outside of control plane operations.- Returns:
- specifies information about the capacity reservation on successful completion of
Mono. - Throws:
IllegalArgumentException- thrown if parameters fail the validation.ApiErrorException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
getAsync
Mono<CapacityReservationInner> getAsync(String resourceGroupName, String capacityReservationGroupName, String capacityReservationName) The operation that retrieves information about the capacity reservation.- Parameters:
resourceGroupName- The name of the resource group.capacityReservationGroupName- The name of the capacity reservation group.capacityReservationName- The name of the capacity reservation.- Returns:
- specifies information about the capacity reservation on successful completion of
Mono. - Throws:
IllegalArgumentException- thrown if parameters fail the validation.ApiErrorException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
get
CapacityReservationInner get(String resourceGroupName, String capacityReservationGroupName, String capacityReservationName) The operation that retrieves information about the capacity reservation.- Parameters:
resourceGroupName- The name of the resource group.capacityReservationGroupName- The name of the capacity reservation group.capacityReservationName- The name of the capacity reservation.- Returns:
- specifies information about the capacity reservation.
- Throws:
IllegalArgumentException- thrown if parameters fail the validation.ApiErrorException- 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<CapacityReservationInner> getWithResponse(String resourceGroupName, String capacityReservationGroupName, String capacityReservationName, CapacityReservationInstanceViewTypes expand, com.azure.core.util.Context context) The operation that retrieves information about the capacity reservation.- Parameters:
resourceGroupName- The name of the resource group.capacityReservationGroupName- The name of the capacity reservation group.capacityReservationName- The name of the capacity reservation.expand- The expand expression to apply on the operation. 'InstanceView' retrieves a snapshot of the runtime properties of the capacity reservation that is managed by the platform and can change outside of control plane operations.context- The context to associate with this operation.- Returns:
- specifies information about the capacity reservation along with
Response. - Throws:
IllegalArgumentException- thrown if parameters fail the validation.ApiErrorException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
listByCapacityReservationGroupAsync
com.azure.core.http.rest.PagedFlux<CapacityReservationInner> listByCapacityReservationGroupAsync(String resourceGroupName, String capacityReservationGroupName) Lists all of the capacity reservations in the specified capacity reservation group. Use the nextLink property in the response to get the next page of capacity reservations.- Parameters:
resourceGroupName- The name of the resource group.capacityReservationGroupName- The name of the capacity reservation group.- Returns:
- the list capacity reservation operation response as paginated response with
PagedFlux. - Throws:
IllegalArgumentException- thrown if parameters fail the validation.ApiErrorException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
listByCapacityReservationGroup
com.azure.core.http.rest.PagedIterable<CapacityReservationInner> listByCapacityReservationGroup(String resourceGroupName, String capacityReservationGroupName) Lists all of the capacity reservations in the specified capacity reservation group. Use the nextLink property in the response to get the next page of capacity reservations.- Parameters:
resourceGroupName- The name of the resource group.capacityReservationGroupName- The name of the capacity reservation group.- Returns:
- the list capacity reservation operation response as paginated response with
PagedIterable. - Throws:
IllegalArgumentException- thrown if parameters fail the validation.ApiErrorException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
listByCapacityReservationGroup
com.azure.core.http.rest.PagedIterable<CapacityReservationInner> listByCapacityReservationGroup(String resourceGroupName, String capacityReservationGroupName, com.azure.core.util.Context context) Lists all of the capacity reservations in the specified capacity reservation group. Use the nextLink property in the response to get the next page of capacity reservations.- Parameters:
resourceGroupName- The name of the resource group.capacityReservationGroupName- The name of the capacity reservation group.context- The context to associate with this operation.- Returns:
- the list capacity reservation operation response as paginated response with
PagedIterable. - Throws:
IllegalArgumentException- thrown if parameters fail the validation.ApiErrorException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-