public class AvailabilitySetOperationsImpl extends Object implements ServiceOperations<ComputeManagementClientImpl>, AvailabilitySetOperations
| Modifier and Type | Method and Description |
|---|---|
AvailabilitySetCreateOrUpdateResponse |
createOrUpdate(String resourceGroupName,
AvailabilitySet parameters)
The operation to create or update the availability set.
|
Future<AvailabilitySetCreateOrUpdateResponse> |
createOrUpdateAsync(String resourceGroupName,
AvailabilitySet parameters)
The operation to create or update the availability set.
|
OperationResponse |
delete(String resourceGroupName,
String availabilitySetName)
The operation to delete the availability set.
|
Future<OperationResponse> |
deleteAsync(String resourceGroupName,
String availabilitySetName)
The operation to delete the availability set.
|
AvailabilitySetGetResponse |
get(String resourceGroupName,
String availabilitySetName)
The operation to get the availability set.
|
Future<AvailabilitySetGetResponse> |
getAsync(String resourceGroupName,
String availabilitySetName)
The operation to get the availability set.
|
ComputeManagementClientImpl |
getClient()
Gets a reference to the
microsoft.azure.management.compute.ComputeManagementClientImpl.
|
AvailabilitySetListResponse |
list(String resourceGroupName)
The operation to list the availability sets.
|
Future<AvailabilitySetListResponse> |
listAsync(String resourceGroupName)
The operation to list the availability sets.
|
VirtualMachineSizeListResponse |
listAvailableSizes(String resourceGroupName,
String availabilitySetName)
Lists virtual-machine-sizes available to be used for an availability set.
|
Future<VirtualMachineSizeListResponse> |
listAvailableSizesAsync(String resourceGroupName,
String availabilitySetName)
Lists virtual-machine-sizes available to be used for an availability set.
|
public ComputeManagementClientImpl getClient()
getClient in interface ServiceOperations<ComputeManagementClientImpl>public Future<AvailabilitySetCreateOrUpdateResponse> createOrUpdateAsync(String resourceGroupName, AvailabilitySet parameters)
createOrUpdateAsync in interface AvailabilitySetOperationsresourceGroupName - Required. The name of the resource group.parameters - Required. Parameters supplied to the Create
Availability Set operation.public AvailabilitySetCreateOrUpdateResponse createOrUpdate(String resourceGroupName, AvailabilitySet parameters) throws IOException, ServiceException, InterruptedException, ExecutionException
createOrUpdate in interface AvailabilitySetOperationsresourceGroupName - Required. The name of the resource group.parameters - Required. Parameters supplied to the Create
Availability Set operation.IOException - Signals that an I/O exception of some sort has
occurred. This class is the general class of exceptions produced by
failed or interrupted I/O operations.ServiceException - Thrown if an unexpected response is found.InterruptedException - Thrown when a thread is waiting, sleeping,
or otherwise occupied, and the thread is interrupted, either before or
during the activity. Occasionally a method may wish to test whether the
current thread has been interrupted, and if so, to immediately throw
this exception. The following code can be used to achieve this effect:ExecutionException - Thrown when attempting to retrieve the result
of a task that aborted by throwing an exception. This exception can be
inspected using the Throwable.getCause() method.public Future<OperationResponse> deleteAsync(String resourceGroupName, String availabilitySetName)
deleteAsync in interface AvailabilitySetOperationsresourceGroupName - Required. The name of the resource group.availabilitySetName - Required. The name of the availability set.public OperationResponse delete(String resourceGroupName, String availabilitySetName) throws IOException, ServiceException, InterruptedException, ExecutionException
delete in interface AvailabilitySetOperationsresourceGroupName - Required. The name of the resource group.availabilitySetName - Required. The name of the availability set.IOException - Signals that an I/O exception of some sort has
occurred. This class is the general class of exceptions produced by
failed or interrupted I/O operations.ServiceException - Thrown if an unexpected response is found.InterruptedException - Thrown when a thread is waiting, sleeping,
or otherwise occupied, and the thread is interrupted, either before or
during the activity. Occasionally a method may wish to test whether the
current thread has been interrupted, and if so, to immediately throw
this exception. The following code can be used to achieve this effect:ExecutionException - Thrown when attempting to retrieve the result
of a task that aborted by throwing an exception. This exception can be
inspected using the Throwable.getCause() method.public Future<AvailabilitySetGetResponse> getAsync(String resourceGroupName, String availabilitySetName)
getAsync in interface AvailabilitySetOperationsresourceGroupName - Required. The name of the resource group.availabilitySetName - Required. The name of the availability set.public AvailabilitySetGetResponse get(String resourceGroupName, String availabilitySetName) throws IOException, ServiceException, URISyntaxException
get in interface AvailabilitySetOperationsresourceGroupName - Required. The name of the resource group.availabilitySetName - Required. The name of the availability set.IOException - Signals that an I/O exception of some sort has
occurred. This class is the general class of exceptions produced by
failed or interrupted I/O operations.ServiceException - Thrown if an unexpected response is found.URISyntaxException - Thrown if there was an error parsing a URI in
the response.public Future<AvailabilitySetListResponse> listAsync(String resourceGroupName)
listAsync in interface AvailabilitySetOperationsresourceGroupName - Required. The name of the resource group.public AvailabilitySetListResponse list(String resourceGroupName) throws IOException, ServiceException, URISyntaxException
list in interface AvailabilitySetOperationsresourceGroupName - Required. The name of the resource group.IOException - Signals that an I/O exception of some sort has
occurred. This class is the general class of exceptions produced by
failed or interrupted I/O operations.ServiceException - Thrown if an unexpected response is found.URISyntaxException - Thrown if there was an error parsing a URI in
the response.public Future<VirtualMachineSizeListResponse> listAvailableSizesAsync(String resourceGroupName, String availabilitySetName)
listAvailableSizesAsync in interface AvailabilitySetOperationsresourceGroupName - Required. The name of the resource group.availabilitySetName - Required. The name of the availability set.public VirtualMachineSizeListResponse listAvailableSizes(String resourceGroupName, String availabilitySetName) throws IOException, ServiceException
listAvailableSizes in interface AvailabilitySetOperationsresourceGroupName - Required. The name of the resource group.availabilitySetName - Required. The name of the availability set.IOException - Signals that an I/O exception of some sort has
occurred. This class is the general class of exceptions produced by
failed or interrupted I/O operations.ServiceException - Thrown if an unexpected response is found./**
* Copyright Microsoft Corporation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/