Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT License. See License.txt in the project root for license information. Code generated by Microsoft (R) AutoRest Code Generator.
/** * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. * * Code generated by Microsoft (R) AutoRest Code Generator. */
package com.microsoft.azure.management.compute.implementation; import retrofit2.Retrofit; import com.google.common.reflect.TypeToken; import com.microsoft.azure.AzureServiceFuture; import com.microsoft.azure.CloudException; import com.microsoft.azure.ListOperationCallback; import com.microsoft.azure.management.compute.VirtualMachineScaleSetExtensionUpdate; import com.microsoft.azure.Page; import com.microsoft.azure.PagedList; import com.microsoft.rest.ServiceCallback; import com.microsoft.rest.ServiceFuture; import com.microsoft.rest.ServiceResponse; import com.microsoft.rest.Validator; import java.io.IOException; import java.util.List; import okhttp3.ResponseBody; import retrofit2.http.Body; import retrofit2.http.GET; import retrofit2.http.Header; import retrofit2.http.Headers; import retrofit2.http.HTTP; import retrofit2.http.PATCH; import retrofit2.http.Path; import retrofit2.http.PUT; import retrofit2.http.Query; import retrofit2.http.Url; import retrofit2.Response; import rx.functions.Func1; import rx.Observable;
An instance of this class provides access to all the operations defined in VirtualMachineScaleSetExtensions.
/** * An instance of this class provides access to all the operations defined * in VirtualMachineScaleSetExtensions. */
public class VirtualMachineScaleSetExtensionsInner {
The Retrofit service to perform REST calls.
/** The Retrofit service to perform REST calls. */
private VirtualMachineScaleSetExtensionsService service;
The service client containing this operation class.
/** The service client containing this operation class. */
private ComputeManagementClientImpl client;
Initializes an instance of VirtualMachineScaleSetExtensionsInner.
Params:
  • retrofit – the Retrofit instance built from a Retrofit Builder.
  • client – the instance of the service client containing this operation class.
/** * Initializes an instance of VirtualMachineScaleSetExtensionsInner. * * @param retrofit the Retrofit instance built from a Retrofit Builder. * @param client the instance of the service client containing this operation class. */
public VirtualMachineScaleSetExtensionsInner(Retrofit retrofit, ComputeManagementClientImpl client) { this.service = retrofit.create(VirtualMachineScaleSetExtensionsService.class); this.client = client; }
The interface defining all the services for VirtualMachineScaleSetExtensions to be used by Retrofit to perform actually REST calls.
/** * The interface defining all the services for VirtualMachineScaleSetExtensions to be * used by Retrofit to perform actually REST calls. */
interface VirtualMachineScaleSetExtensionsService { @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.compute.VirtualMachineScaleSetExtensions createOrUpdate" }) @PUT("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/extensions/{vmssExtensionName}") Observable<Response<ResponseBody>> createOrUpdate(@Path("resourceGroupName") String resourceGroupName, @Path("vmScaleSetName") String vmScaleSetName, @Path("vmssExtensionName") String vmssExtensionName, @Path("subscriptionId") String subscriptionId, @Body VirtualMachineScaleSetExtensionInner extensionParameters, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.compute.VirtualMachineScaleSetExtensions beginCreateOrUpdate" }) @PUT("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/extensions/{vmssExtensionName}") Observable<Response<ResponseBody>> beginCreateOrUpdate(@Path("resourceGroupName") String resourceGroupName, @Path("vmScaleSetName") String vmScaleSetName, @Path("vmssExtensionName") String vmssExtensionName, @Path("subscriptionId") String subscriptionId, @Body VirtualMachineScaleSetExtensionInner extensionParameters, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.compute.VirtualMachineScaleSetExtensions update" }) @PATCH("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/extensions/{vmssExtensionName}") Observable<Response<ResponseBody>> update(@Path("resourceGroupName") String resourceGroupName, @Path("vmScaleSetName") String vmScaleSetName, @Path("vmssExtensionName") String vmssExtensionName, @Path("subscriptionId") String subscriptionId, @Body VirtualMachineScaleSetExtensionUpdate extensionParameters, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.compute.VirtualMachineScaleSetExtensions beginUpdate" }) @PATCH("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/extensions/{vmssExtensionName}") Observable<Response<ResponseBody>> beginUpdate(@Path("resourceGroupName") String resourceGroupName, @Path("vmScaleSetName") String vmScaleSetName, @Path("vmssExtensionName") String vmssExtensionName, @Path("subscriptionId") String subscriptionId, @Body VirtualMachineScaleSetExtensionUpdate extensionParameters, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.compute.VirtualMachineScaleSetExtensions delete" }) @HTTP(path = "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/extensions/{vmssExtensionName}", method = "DELETE", hasBody = true) Observable<Response<ResponseBody>> delete(@Path("resourceGroupName") String resourceGroupName, @Path("vmScaleSetName") String vmScaleSetName, @Path("vmssExtensionName") String vmssExtensionName, @Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.compute.VirtualMachineScaleSetExtensions beginDelete" }) @HTTP(path = "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/extensions/{vmssExtensionName}", method = "DELETE", hasBody = true) Observable<Response<ResponseBody>> beginDelete(@Path("resourceGroupName") String resourceGroupName, @Path("vmScaleSetName") String vmScaleSetName, @Path("vmssExtensionName") String vmssExtensionName, @Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.compute.VirtualMachineScaleSetExtensions get" }) @GET("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/extensions/{vmssExtensionName}") Observable<Response<ResponseBody>> get(@Path("resourceGroupName") String resourceGroupName, @Path("vmScaleSetName") String vmScaleSetName, @Path("vmssExtensionName") String vmssExtensionName, @Path("subscriptionId") String subscriptionId, @Query("$expand") String expand, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.compute.VirtualMachineScaleSetExtensions list" }) @GET("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/extensions") Observable<Response<ResponseBody>> list(@Path("resourceGroupName") String resourceGroupName, @Path("vmScaleSetName") String vmScaleSetName, @Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.compute.VirtualMachineScaleSetExtensions listNext" }) @GET Observable<Response<ResponseBody>> listNext(@Url String nextUrl, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); }
The operation to create or update an extension.
Params:
  • resourceGroupName – The name of the resource group.
  • vmScaleSetName – The name of the VM scale set where the extension should be create or updated.
  • vmssExtensionName – The name of the VM scale set extension.
  • extensionParameters – Parameters supplied to the Create VM scale set Extension operation.
Throws:
Returns:the VirtualMachineScaleSetExtensionInner object if successful.
/** * The operation to create or update an extension. * * @param resourceGroupName The name of the resource group. * @param vmScaleSetName The name of the VM scale set where the extension should be create or updated. * @param vmssExtensionName The name of the VM scale set extension. * @param extensionParameters Parameters supplied to the Create VM scale set Extension operation. * @throws IllegalArgumentException thrown if parameters fail the validation * @throws CloudException thrown if the request is rejected by server * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent * @return the VirtualMachineScaleSetExtensionInner object if successful. */
public VirtualMachineScaleSetExtensionInner createOrUpdate(String resourceGroupName, String vmScaleSetName, String vmssExtensionName, VirtualMachineScaleSetExtensionInner extensionParameters) { return createOrUpdateWithServiceResponseAsync(resourceGroupName, vmScaleSetName, vmssExtensionName, extensionParameters).toBlocking().last().body(); }
The operation to create or update an extension.
Params:
  • resourceGroupName – The name of the resource group.
  • vmScaleSetName – The name of the VM scale set where the extension should be create or updated.
  • vmssExtensionName – The name of the VM scale set extension.
  • extensionParameters – Parameters supplied to the Create VM scale set Extension operation.
  • serviceCallback – the async ServiceCallback to handle successful and failed responses.
Throws:
Returns:the ServiceFuture object
/** * The operation to create or update an extension. * * @param resourceGroupName The name of the resource group. * @param vmScaleSetName The name of the VM scale set where the extension should be create or updated. * @param vmssExtensionName The name of the VM scale set extension. * @param extensionParameters Parameters supplied to the Create VM scale set Extension operation. * @param serviceCallback the async ServiceCallback to handle successful and failed responses. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the {@link ServiceFuture} object */
public ServiceFuture<VirtualMachineScaleSetExtensionInner> createOrUpdateAsync(String resourceGroupName, String vmScaleSetName, String vmssExtensionName, VirtualMachineScaleSetExtensionInner extensionParameters, final ServiceCallback<VirtualMachineScaleSetExtensionInner> serviceCallback) { return ServiceFuture.fromResponse(createOrUpdateWithServiceResponseAsync(resourceGroupName, vmScaleSetName, vmssExtensionName, extensionParameters), serviceCallback); }
The operation to create or update an extension.
Params:
  • resourceGroupName – The name of the resource group.
  • vmScaleSetName – The name of the VM scale set where the extension should be create or updated.
  • vmssExtensionName – The name of the VM scale set extension.
  • extensionParameters – Parameters supplied to the Create VM scale set Extension operation.
Throws:
Returns:the observable for the request
/** * The operation to create or update an extension. * * @param resourceGroupName The name of the resource group. * @param vmScaleSetName The name of the VM scale set where the extension should be create or updated. * @param vmssExtensionName The name of the VM scale set extension. * @param extensionParameters Parameters supplied to the Create VM scale set Extension operation. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable for the request */
public Observable<VirtualMachineScaleSetExtensionInner> createOrUpdateAsync(String resourceGroupName, String vmScaleSetName, String vmssExtensionName, VirtualMachineScaleSetExtensionInner extensionParameters) { return createOrUpdateWithServiceResponseAsync(resourceGroupName, vmScaleSetName, vmssExtensionName, extensionParameters).map(new Func1<ServiceResponse<VirtualMachineScaleSetExtensionInner>, VirtualMachineScaleSetExtensionInner>() { @Override public VirtualMachineScaleSetExtensionInner call(ServiceResponse<VirtualMachineScaleSetExtensionInner> response) { return response.body(); } }); }
The operation to create or update an extension.
Params:
  • resourceGroupName – The name of the resource group.
  • vmScaleSetName – The name of the VM scale set where the extension should be create or updated.
  • vmssExtensionName – The name of the VM scale set extension.
  • extensionParameters – Parameters supplied to the Create VM scale set Extension operation.
Throws:
Returns:the observable for the request
/** * The operation to create or update an extension. * * @param resourceGroupName The name of the resource group. * @param vmScaleSetName The name of the VM scale set where the extension should be create or updated. * @param vmssExtensionName The name of the VM scale set extension. * @param extensionParameters Parameters supplied to the Create VM scale set Extension operation. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable for the request */
public Observable<ServiceResponse<VirtualMachineScaleSetExtensionInner>> createOrUpdateWithServiceResponseAsync(String resourceGroupName, String vmScaleSetName, String vmssExtensionName, VirtualMachineScaleSetExtensionInner extensionParameters) { if (resourceGroupName == null) { throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); } if (vmScaleSetName == null) { throw new IllegalArgumentException("Parameter vmScaleSetName is required and cannot be null."); } if (vmssExtensionName == null) { throw new IllegalArgumentException("Parameter vmssExtensionName is required and cannot be null."); } if (this.client.subscriptionId() == null) { throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); } if (extensionParameters == null) { throw new IllegalArgumentException("Parameter extensionParameters is required and cannot be null."); } Validator.validate(extensionParameters); final String apiVersion = "2020-12-01"; Observable<Response<ResponseBody>> observable = service.createOrUpdate(resourceGroupName, vmScaleSetName, vmssExtensionName, this.client.subscriptionId(), extensionParameters, apiVersion, this.client.acceptLanguage(), this.client.userAgent()); return client.getAzureClient().getPutOrPatchResultAsync(observable, new TypeToken<VirtualMachineScaleSetExtensionInner>() { }.getType()); }
The operation to create or update an extension.
Params:
  • resourceGroupName – The name of the resource group.
  • vmScaleSetName – The name of the VM scale set where the extension should be create or updated.
  • vmssExtensionName – The name of the VM scale set extension.
  • extensionParameters – Parameters supplied to the Create VM scale set Extension operation.
Throws:
Returns:the VirtualMachineScaleSetExtensionInner object if successful.
/** * The operation to create or update an extension. * * @param resourceGroupName The name of the resource group. * @param vmScaleSetName The name of the VM scale set where the extension should be create or updated. * @param vmssExtensionName The name of the VM scale set extension. * @param extensionParameters Parameters supplied to the Create VM scale set Extension operation. * @throws IllegalArgumentException thrown if parameters fail the validation * @throws CloudException thrown if the request is rejected by server * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent * @return the VirtualMachineScaleSetExtensionInner object if successful. */
public VirtualMachineScaleSetExtensionInner beginCreateOrUpdate(String resourceGroupName, String vmScaleSetName, String vmssExtensionName, VirtualMachineScaleSetExtensionInner extensionParameters) { return beginCreateOrUpdateWithServiceResponseAsync(resourceGroupName, vmScaleSetName, vmssExtensionName, extensionParameters).toBlocking().single().body(); }
The operation to create or update an extension.
Params:
  • resourceGroupName – The name of the resource group.
  • vmScaleSetName – The name of the VM scale set where the extension should be create or updated.
  • vmssExtensionName – The name of the VM scale set extension.
  • extensionParameters – Parameters supplied to the Create VM scale set Extension operation.
  • serviceCallback – the async ServiceCallback to handle successful and failed responses.
Throws:
Returns:the ServiceFuture object
/** * The operation to create or update an extension. * * @param resourceGroupName The name of the resource group. * @param vmScaleSetName The name of the VM scale set where the extension should be create or updated. * @param vmssExtensionName The name of the VM scale set extension. * @param extensionParameters Parameters supplied to the Create VM scale set Extension operation. * @param serviceCallback the async ServiceCallback to handle successful and failed responses. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the {@link ServiceFuture} object */
public ServiceFuture<VirtualMachineScaleSetExtensionInner> beginCreateOrUpdateAsync(String resourceGroupName, String vmScaleSetName, String vmssExtensionName, VirtualMachineScaleSetExtensionInner extensionParameters, final ServiceCallback<VirtualMachineScaleSetExtensionInner> serviceCallback) { return ServiceFuture.fromResponse(beginCreateOrUpdateWithServiceResponseAsync(resourceGroupName, vmScaleSetName, vmssExtensionName, extensionParameters), serviceCallback); }
The operation to create or update an extension.
Params:
  • resourceGroupName – The name of the resource group.
  • vmScaleSetName – The name of the VM scale set where the extension should be create or updated.
  • vmssExtensionName – The name of the VM scale set extension.
  • extensionParameters – Parameters supplied to the Create VM scale set Extension operation.
Throws:
Returns:the observable to the VirtualMachineScaleSetExtensionInner object
/** * The operation to create or update an extension. * * @param resourceGroupName The name of the resource group. * @param vmScaleSetName The name of the VM scale set where the extension should be create or updated. * @param vmssExtensionName The name of the VM scale set extension. * @param extensionParameters Parameters supplied to the Create VM scale set Extension operation. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable to the VirtualMachineScaleSetExtensionInner object */
public Observable<VirtualMachineScaleSetExtensionInner> beginCreateOrUpdateAsync(String resourceGroupName, String vmScaleSetName, String vmssExtensionName, VirtualMachineScaleSetExtensionInner extensionParameters) { return beginCreateOrUpdateWithServiceResponseAsync(resourceGroupName, vmScaleSetName, vmssExtensionName, extensionParameters).map(new Func1<ServiceResponse<VirtualMachineScaleSetExtensionInner>, VirtualMachineScaleSetExtensionInner>() { @Override public VirtualMachineScaleSetExtensionInner call(ServiceResponse<VirtualMachineScaleSetExtensionInner> response) { return response.body(); } }); }
The operation to create or update an extension.
Params:
  • resourceGroupName – The name of the resource group.
  • vmScaleSetName – The name of the VM scale set where the extension should be create or updated.
  • vmssExtensionName – The name of the VM scale set extension.
  • extensionParameters – Parameters supplied to the Create VM scale set Extension operation.
Throws:
Returns:the observable to the VirtualMachineScaleSetExtensionInner object
/** * The operation to create or update an extension. * * @param resourceGroupName The name of the resource group. * @param vmScaleSetName The name of the VM scale set where the extension should be create or updated. * @param vmssExtensionName The name of the VM scale set extension. * @param extensionParameters Parameters supplied to the Create VM scale set Extension operation. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable to the VirtualMachineScaleSetExtensionInner object */
public Observable<ServiceResponse<VirtualMachineScaleSetExtensionInner>> beginCreateOrUpdateWithServiceResponseAsync(String resourceGroupName, String vmScaleSetName, String vmssExtensionName, VirtualMachineScaleSetExtensionInner extensionParameters) { if (resourceGroupName == null) { throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); } if (vmScaleSetName == null) { throw new IllegalArgumentException("Parameter vmScaleSetName is required and cannot be null."); } if (vmssExtensionName == null) { throw new IllegalArgumentException("Parameter vmssExtensionName is required and cannot be null."); } if (this.client.subscriptionId() == null) { throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); } if (extensionParameters == null) { throw new IllegalArgumentException("Parameter extensionParameters is required and cannot be null."); } Validator.validate(extensionParameters); final String apiVersion = "2020-12-01"; return service.beginCreateOrUpdate(resourceGroupName, vmScaleSetName, vmssExtensionName, this.client.subscriptionId(), extensionParameters, apiVersion, this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1<Response<ResponseBody>, Observable<ServiceResponse<VirtualMachineScaleSetExtensionInner>>>() { @Override public Observable<ServiceResponse<VirtualMachineScaleSetExtensionInner>> call(Response<ResponseBody> response) { try { ServiceResponse<VirtualMachineScaleSetExtensionInner> clientResponse = beginCreateOrUpdateDelegate(response); return Observable.just(clientResponse); } catch (Throwable t) { return Observable.error(t); } } }); } private ServiceResponse<VirtualMachineScaleSetExtensionInner> beginCreateOrUpdateDelegate(Response<ResponseBody> response) throws CloudException, IOException, IllegalArgumentException { return this.client.restClient().responseBuilderFactory().<VirtualMachineScaleSetExtensionInner, CloudException>newInstance(this.client.serializerAdapter()) .register(200, new TypeToken<VirtualMachineScaleSetExtensionInner>() { }.getType()) .register(201, new TypeToken<VirtualMachineScaleSetExtensionInner>() { }.getType()) .registerError(CloudException.class) .build(response); }
The operation to update an extension.
Params:
  • resourceGroupName – The name of the resource group.
  • vmScaleSetName – The name of the VM scale set where the extension should be updated.
  • vmssExtensionName – The name of the VM scale set extension.
  • extensionParameters – Parameters supplied to the Update VM scale set Extension operation.
Throws:
Returns:the VirtualMachineScaleSetExtensionInner object if successful.
/** * The operation to update an extension. * * @param resourceGroupName The name of the resource group. * @param vmScaleSetName The name of the VM scale set where the extension should be updated. * @param vmssExtensionName The name of the VM scale set extension. * @param extensionParameters Parameters supplied to the Update VM scale set Extension operation. * @throws IllegalArgumentException thrown if parameters fail the validation * @throws CloudException thrown if the request is rejected by server * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent * @return the VirtualMachineScaleSetExtensionInner object if successful. */
public VirtualMachineScaleSetExtensionInner update(String resourceGroupName, String vmScaleSetName, String vmssExtensionName, VirtualMachineScaleSetExtensionUpdate extensionParameters) { return updateWithServiceResponseAsync(resourceGroupName, vmScaleSetName, vmssExtensionName, extensionParameters).toBlocking().last().body(); }
The operation to update an extension.
Params:
  • resourceGroupName – The name of the resource group.
  • vmScaleSetName – The name of the VM scale set where the extension should be updated.
  • vmssExtensionName – The name of the VM scale set extension.
  • extensionParameters – Parameters supplied to the Update VM scale set Extension operation.
  • serviceCallback – the async ServiceCallback to handle successful and failed responses.
Throws:
Returns:the ServiceFuture object
/** * The operation to update an extension. * * @param resourceGroupName The name of the resource group. * @param vmScaleSetName The name of the VM scale set where the extension should be updated. * @param vmssExtensionName The name of the VM scale set extension. * @param extensionParameters Parameters supplied to the Update VM scale set Extension operation. * @param serviceCallback the async ServiceCallback to handle successful and failed responses. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the {@link ServiceFuture} object */
public ServiceFuture<VirtualMachineScaleSetExtensionInner> updateAsync(String resourceGroupName, String vmScaleSetName, String vmssExtensionName, VirtualMachineScaleSetExtensionUpdate extensionParameters, final ServiceCallback<VirtualMachineScaleSetExtensionInner> serviceCallback) { return ServiceFuture.fromResponse(updateWithServiceResponseAsync(resourceGroupName, vmScaleSetName, vmssExtensionName, extensionParameters), serviceCallback); }
The operation to update an extension.
Params:
  • resourceGroupName – The name of the resource group.
  • vmScaleSetName – The name of the VM scale set where the extension should be updated.
  • vmssExtensionName – The name of the VM scale set extension.
  • extensionParameters – Parameters supplied to the Update VM scale set Extension operation.
Throws:
Returns:the observable for the request
/** * The operation to update an extension. * * @param resourceGroupName The name of the resource group. * @param vmScaleSetName The name of the VM scale set where the extension should be updated. * @param vmssExtensionName The name of the VM scale set extension. * @param extensionParameters Parameters supplied to the Update VM scale set Extension operation. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable for the request */
public Observable<VirtualMachineScaleSetExtensionInner> updateAsync(String resourceGroupName, String vmScaleSetName, String vmssExtensionName, VirtualMachineScaleSetExtensionUpdate extensionParameters) { return updateWithServiceResponseAsync(resourceGroupName, vmScaleSetName, vmssExtensionName, extensionParameters).map(new Func1<ServiceResponse<VirtualMachineScaleSetExtensionInner>, VirtualMachineScaleSetExtensionInner>() { @Override public VirtualMachineScaleSetExtensionInner call(ServiceResponse<VirtualMachineScaleSetExtensionInner> response) { return response.body(); } }); }
The operation to update an extension.
Params:
  • resourceGroupName – The name of the resource group.
  • vmScaleSetName – The name of the VM scale set where the extension should be updated.
  • vmssExtensionName – The name of the VM scale set extension.
  • extensionParameters – Parameters supplied to the Update VM scale set Extension operation.
Throws:
Returns:the observable for the request
/** * The operation to update an extension. * * @param resourceGroupName The name of the resource group. * @param vmScaleSetName The name of the VM scale set where the extension should be updated. * @param vmssExtensionName The name of the VM scale set extension. * @param extensionParameters Parameters supplied to the Update VM scale set Extension operation. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable for the request */
public Observable<ServiceResponse<VirtualMachineScaleSetExtensionInner>> updateWithServiceResponseAsync(String resourceGroupName, String vmScaleSetName, String vmssExtensionName, VirtualMachineScaleSetExtensionUpdate extensionParameters) { if (resourceGroupName == null) { throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); } if (vmScaleSetName == null) { throw new IllegalArgumentException("Parameter vmScaleSetName is required and cannot be null."); } if (vmssExtensionName == null) { throw new IllegalArgumentException("Parameter vmssExtensionName is required and cannot be null."); } if (this.client.subscriptionId() == null) { throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); } if (extensionParameters == null) { throw new IllegalArgumentException("Parameter extensionParameters is required and cannot be null."); } Validator.validate(extensionParameters); final String apiVersion = "2020-12-01"; Observable<Response<ResponseBody>> observable = service.update(resourceGroupName, vmScaleSetName, vmssExtensionName, this.client.subscriptionId(), extensionParameters, apiVersion, this.client.acceptLanguage(), this.client.userAgent()); return client.getAzureClient().getPutOrPatchResultAsync(observable, new TypeToken<VirtualMachineScaleSetExtensionInner>() { }.getType()); }
The operation to update an extension.
Params:
  • resourceGroupName – The name of the resource group.
  • vmScaleSetName – The name of the VM scale set where the extension should be updated.
  • vmssExtensionName – The name of the VM scale set extension.
  • extensionParameters – Parameters supplied to the Update VM scale set Extension operation.
Throws:
Returns:the VirtualMachineScaleSetExtensionInner object if successful.
/** * The operation to update an extension. * * @param resourceGroupName The name of the resource group. * @param vmScaleSetName The name of the VM scale set where the extension should be updated. * @param vmssExtensionName The name of the VM scale set extension. * @param extensionParameters Parameters supplied to the Update VM scale set Extension operation. * @throws IllegalArgumentException thrown if parameters fail the validation * @throws CloudException thrown if the request is rejected by server * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent * @return the VirtualMachineScaleSetExtensionInner object if successful. */
public VirtualMachineScaleSetExtensionInner beginUpdate(String resourceGroupName, String vmScaleSetName, String vmssExtensionName, VirtualMachineScaleSetExtensionUpdate extensionParameters) { return beginUpdateWithServiceResponseAsync(resourceGroupName, vmScaleSetName, vmssExtensionName, extensionParameters).toBlocking().single().body(); }
The operation to update an extension.
Params:
  • resourceGroupName – The name of the resource group.
  • vmScaleSetName – The name of the VM scale set where the extension should be updated.
  • vmssExtensionName – The name of the VM scale set extension.
  • extensionParameters – Parameters supplied to the Update VM scale set Extension operation.
  • serviceCallback – the async ServiceCallback to handle successful and failed responses.
Throws:
Returns:the ServiceFuture object
/** * The operation to update an extension. * * @param resourceGroupName The name of the resource group. * @param vmScaleSetName The name of the VM scale set where the extension should be updated. * @param vmssExtensionName The name of the VM scale set extension. * @param extensionParameters Parameters supplied to the Update VM scale set Extension operation. * @param serviceCallback the async ServiceCallback to handle successful and failed responses. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the {@link ServiceFuture} object */
public ServiceFuture<VirtualMachineScaleSetExtensionInner> beginUpdateAsync(String resourceGroupName, String vmScaleSetName, String vmssExtensionName, VirtualMachineScaleSetExtensionUpdate extensionParameters, final ServiceCallback<VirtualMachineScaleSetExtensionInner> serviceCallback) { return ServiceFuture.fromResponse(beginUpdateWithServiceResponseAsync(resourceGroupName, vmScaleSetName, vmssExtensionName, extensionParameters), serviceCallback); }
The operation to update an extension.
Params:
  • resourceGroupName – The name of the resource group.
  • vmScaleSetName – The name of the VM scale set where the extension should be updated.
  • vmssExtensionName – The name of the VM scale set extension.
  • extensionParameters – Parameters supplied to the Update VM scale set Extension operation.
Throws:
Returns:the observable to the VirtualMachineScaleSetExtensionInner object
/** * The operation to update an extension. * * @param resourceGroupName The name of the resource group. * @param vmScaleSetName The name of the VM scale set where the extension should be updated. * @param vmssExtensionName The name of the VM scale set extension. * @param extensionParameters Parameters supplied to the Update VM scale set Extension operation. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable to the VirtualMachineScaleSetExtensionInner object */
public Observable<VirtualMachineScaleSetExtensionInner> beginUpdateAsync(String resourceGroupName, String vmScaleSetName, String vmssExtensionName, VirtualMachineScaleSetExtensionUpdate extensionParameters) { return beginUpdateWithServiceResponseAsync(resourceGroupName, vmScaleSetName, vmssExtensionName, extensionParameters).map(new Func1<ServiceResponse<VirtualMachineScaleSetExtensionInner>, VirtualMachineScaleSetExtensionInner>() { @Override public VirtualMachineScaleSetExtensionInner call(ServiceResponse<VirtualMachineScaleSetExtensionInner> response) { return response.body(); } }); }
The operation to update an extension.
Params:
  • resourceGroupName – The name of the resource group.
  • vmScaleSetName – The name of the VM scale set where the extension should be updated.
  • vmssExtensionName – The name of the VM scale set extension.
  • extensionParameters – Parameters supplied to the Update VM scale set Extension operation.
Throws:
Returns:the observable to the VirtualMachineScaleSetExtensionInner object
/** * The operation to update an extension. * * @param resourceGroupName The name of the resource group. * @param vmScaleSetName The name of the VM scale set where the extension should be updated. * @param vmssExtensionName The name of the VM scale set extension. * @param extensionParameters Parameters supplied to the Update VM scale set Extension operation. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable to the VirtualMachineScaleSetExtensionInner object */
public Observable<ServiceResponse<VirtualMachineScaleSetExtensionInner>> beginUpdateWithServiceResponseAsync(String resourceGroupName, String vmScaleSetName, String vmssExtensionName, VirtualMachineScaleSetExtensionUpdate extensionParameters) { if (resourceGroupName == null) { throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); } if (vmScaleSetName == null) { throw new IllegalArgumentException("Parameter vmScaleSetName is required and cannot be null."); } if (vmssExtensionName == null) { throw new IllegalArgumentException("Parameter vmssExtensionName is required and cannot be null."); } if (this.client.subscriptionId() == null) { throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); } if (extensionParameters == null) { throw new IllegalArgumentException("Parameter extensionParameters is required and cannot be null."); } Validator.validate(extensionParameters); final String apiVersion = "2020-12-01"; return service.beginUpdate(resourceGroupName, vmScaleSetName, vmssExtensionName, this.client.subscriptionId(), extensionParameters, apiVersion, this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1<Response<ResponseBody>, Observable<ServiceResponse<VirtualMachineScaleSetExtensionInner>>>() { @Override public Observable<ServiceResponse<VirtualMachineScaleSetExtensionInner>> call(Response<ResponseBody> response) { try { ServiceResponse<VirtualMachineScaleSetExtensionInner> clientResponse = beginUpdateDelegate(response); return Observable.just(clientResponse); } catch (Throwable t) { return Observable.error(t); } } }); } private ServiceResponse<VirtualMachineScaleSetExtensionInner> beginUpdateDelegate(Response<ResponseBody> response) throws CloudException, IOException, IllegalArgumentException { return this.client.restClient().responseBuilderFactory().<VirtualMachineScaleSetExtensionInner, CloudException>newInstance(this.client.serializerAdapter()) .register(200, new TypeToken<VirtualMachineScaleSetExtensionInner>() { }.getType()) .register(201, new TypeToken<VirtualMachineScaleSetExtensionInner>() { }.getType()) .registerError(CloudException.class) .build(response); }
The operation to delete the extension.
Params:
  • resourceGroupName – The name of the resource group.
  • vmScaleSetName – The name of the VM scale set where the extension should be deleted.
  • vmssExtensionName – The name of the VM scale set extension.
Throws:
/** * The operation to delete the extension. * * @param resourceGroupName The name of the resource group. * @param vmScaleSetName The name of the VM scale set where the extension should be deleted. * @param vmssExtensionName The name of the VM scale set extension. * @throws IllegalArgumentException thrown if parameters fail the validation * @throws CloudException thrown if the request is rejected by server * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent */
public void delete(String resourceGroupName, String vmScaleSetName, String vmssExtensionName) { deleteWithServiceResponseAsync(resourceGroupName, vmScaleSetName, vmssExtensionName).toBlocking().last().body(); }
The operation to delete the extension.
Params:
  • resourceGroupName – The name of the resource group.
  • vmScaleSetName – The name of the VM scale set where the extension should be deleted.
  • vmssExtensionName – The name of the VM scale set extension.
  • serviceCallback – the async ServiceCallback to handle successful and failed responses.
Throws:
Returns:the ServiceFuture object
/** * The operation to delete the extension. * * @param resourceGroupName The name of the resource group. * @param vmScaleSetName The name of the VM scale set where the extension should be deleted. * @param vmssExtensionName The name of the VM scale set extension. * @param serviceCallback the async ServiceCallback to handle successful and failed responses. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the {@link ServiceFuture} object */
public ServiceFuture<Void> deleteAsync(String resourceGroupName, String vmScaleSetName, String vmssExtensionName, final ServiceCallback<Void> serviceCallback) { return ServiceFuture.fromResponse(deleteWithServiceResponseAsync(resourceGroupName, vmScaleSetName, vmssExtensionName), serviceCallback); }
The operation to delete the extension.
Params:
  • resourceGroupName – The name of the resource group.
  • vmScaleSetName – The name of the VM scale set where the extension should be deleted.
  • vmssExtensionName – The name of the VM scale set extension.
Throws:
Returns:the observable for the request
/** * The operation to delete the extension. * * @param resourceGroupName The name of the resource group. * @param vmScaleSetName The name of the VM scale set where the extension should be deleted. * @param vmssExtensionName The name of the VM scale set extension. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable for the request */
public Observable<Void> deleteAsync(String resourceGroupName, String vmScaleSetName, String vmssExtensionName) { return deleteWithServiceResponseAsync(resourceGroupName, vmScaleSetName, vmssExtensionName).map(new Func1<ServiceResponse<Void>, Void>() { @Override public Void call(ServiceResponse<Void> response) { return response.body(); } }); }
The operation to delete the extension.
Params:
  • resourceGroupName – The name of the resource group.
  • vmScaleSetName – The name of the VM scale set where the extension should be deleted.
  • vmssExtensionName – The name of the VM scale set extension.
Throws:
Returns:the observable for the request
/** * The operation to delete the extension. * * @param resourceGroupName The name of the resource group. * @param vmScaleSetName The name of the VM scale set where the extension should be deleted. * @param vmssExtensionName The name of the VM scale set extension. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable for the request */
public Observable<ServiceResponse<Void>> deleteWithServiceResponseAsync(String resourceGroupName, String vmScaleSetName, String vmssExtensionName) { if (resourceGroupName == null) { throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); } if (vmScaleSetName == null) { throw new IllegalArgumentException("Parameter vmScaleSetName is required and cannot be null."); } if (vmssExtensionName == null) { throw new IllegalArgumentException("Parameter vmssExtensionName is required and cannot be null."); } if (this.client.subscriptionId() == null) { throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); } final String apiVersion = "2020-12-01"; Observable<Response<ResponseBody>> observable = service.delete(resourceGroupName, vmScaleSetName, vmssExtensionName, this.client.subscriptionId(), apiVersion, this.client.acceptLanguage(), this.client.userAgent()); return client.getAzureClient().getPostOrDeleteResultAsync(observable, new TypeToken<Void>() { }.getType()); }
The operation to delete the extension.
Params:
  • resourceGroupName – The name of the resource group.
  • vmScaleSetName – The name of the VM scale set where the extension should be deleted.
  • vmssExtensionName – The name of the VM scale set extension.
Throws:
/** * The operation to delete the extension. * * @param resourceGroupName The name of the resource group. * @param vmScaleSetName The name of the VM scale set where the extension should be deleted. * @param vmssExtensionName The name of the VM scale set extension. * @throws IllegalArgumentException thrown if parameters fail the validation * @throws CloudException thrown if the request is rejected by server * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent */
public void beginDelete(String resourceGroupName, String vmScaleSetName, String vmssExtensionName) { beginDeleteWithServiceResponseAsync(resourceGroupName, vmScaleSetName, vmssExtensionName).toBlocking().single().body(); }
The operation to delete the extension.
Params:
  • resourceGroupName – The name of the resource group.
  • vmScaleSetName – The name of the VM scale set where the extension should be deleted.
  • vmssExtensionName – The name of the VM scale set extension.
  • serviceCallback – the async ServiceCallback to handle successful and failed responses.
Throws:
Returns:the ServiceFuture object
/** * The operation to delete the extension. * * @param resourceGroupName The name of the resource group. * @param vmScaleSetName The name of the VM scale set where the extension should be deleted. * @param vmssExtensionName The name of the VM scale set extension. * @param serviceCallback the async ServiceCallback to handle successful and failed responses. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the {@link ServiceFuture} object */
public ServiceFuture<Void> beginDeleteAsync(String resourceGroupName, String vmScaleSetName, String vmssExtensionName, final ServiceCallback<Void> serviceCallback) { return ServiceFuture.fromResponse(beginDeleteWithServiceResponseAsync(resourceGroupName, vmScaleSetName, vmssExtensionName), serviceCallback); }
The operation to delete the extension.
Params:
  • resourceGroupName – The name of the resource group.
  • vmScaleSetName – The name of the VM scale set where the extension should be deleted.
  • vmssExtensionName – The name of the VM scale set extension.
Throws:
Returns:the ServiceResponse object if successful.
/** * The operation to delete the extension. * * @param resourceGroupName The name of the resource group. * @param vmScaleSetName The name of the VM scale set where the extension should be deleted. * @param vmssExtensionName The name of the VM scale set extension. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the {@link ServiceResponse} object if successful. */
public Observable<Void> beginDeleteAsync(String resourceGroupName, String vmScaleSetName, String vmssExtensionName) { return beginDeleteWithServiceResponseAsync(resourceGroupName, vmScaleSetName, vmssExtensionName).map(new Func1<ServiceResponse<Void>, Void>() { @Override public Void call(ServiceResponse<Void> response) { return response.body(); } }); }
The operation to delete the extension.
Params:
  • resourceGroupName – The name of the resource group.
  • vmScaleSetName – The name of the VM scale set where the extension should be deleted.
  • vmssExtensionName – The name of the VM scale set extension.
Throws:
Returns:the ServiceResponse object if successful.
/** * The operation to delete the extension. * * @param resourceGroupName The name of the resource group. * @param vmScaleSetName The name of the VM scale set where the extension should be deleted. * @param vmssExtensionName The name of the VM scale set extension. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the {@link ServiceResponse} object if successful. */
public Observable<ServiceResponse<Void>> beginDeleteWithServiceResponseAsync(String resourceGroupName, String vmScaleSetName, String vmssExtensionName) { if (resourceGroupName == null) { throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); } if (vmScaleSetName == null) { throw new IllegalArgumentException("Parameter vmScaleSetName is required and cannot be null."); } if (vmssExtensionName == null) { throw new IllegalArgumentException("Parameter vmssExtensionName is required and cannot be null."); } if (this.client.subscriptionId() == null) { throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); } final String apiVersion = "2020-12-01"; return service.beginDelete(resourceGroupName, vmScaleSetName, vmssExtensionName, this.client.subscriptionId(), apiVersion, this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1<Response<ResponseBody>, Observable<ServiceResponse<Void>>>() { @Override public Observable<ServiceResponse<Void>> call(Response<ResponseBody> response) { try { ServiceResponse<Void> clientResponse = beginDeleteDelegate(response); return Observable.just(clientResponse); } catch (Throwable t) { return Observable.error(t); } } }); } private ServiceResponse<Void> beginDeleteDelegate(Response<ResponseBody> response) throws CloudException, IOException, IllegalArgumentException { return this.client.restClient().responseBuilderFactory().<Void, CloudException>newInstance(this.client.serializerAdapter()) .register(200, new TypeToken<Void>() { }.getType()) .register(202, new TypeToken<Void>() { }.getType()) .register(204, new TypeToken<Void>() { }.getType()) .registerError(CloudException.class) .build(response); }
The operation to get the extension.
Params:
  • resourceGroupName – The name of the resource group.
  • vmScaleSetName – The name of the VM scale set containing the extension.
  • vmssExtensionName – The name of the VM scale set extension.
Throws:
Returns:the VirtualMachineScaleSetExtensionInner object if successful.
/** * The operation to get the extension. * * @param resourceGroupName The name of the resource group. * @param vmScaleSetName The name of the VM scale set containing the extension. * @param vmssExtensionName The name of the VM scale set extension. * @throws IllegalArgumentException thrown if parameters fail the validation * @throws CloudException thrown if the request is rejected by server * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent * @return the VirtualMachineScaleSetExtensionInner object if successful. */
public VirtualMachineScaleSetExtensionInner get(String resourceGroupName, String vmScaleSetName, String vmssExtensionName) { return getWithServiceResponseAsync(resourceGroupName, vmScaleSetName, vmssExtensionName).toBlocking().single().body(); }
The operation to get the extension.
Params:
  • resourceGroupName – The name of the resource group.
  • vmScaleSetName – The name of the VM scale set containing the extension.
  • vmssExtensionName – The name of the VM scale set extension.
  • serviceCallback – the async ServiceCallback to handle successful and failed responses.
Throws:
Returns:the ServiceFuture object
/** * The operation to get the extension. * * @param resourceGroupName The name of the resource group. * @param vmScaleSetName The name of the VM scale set containing the extension. * @param vmssExtensionName The name of the VM scale set extension. * @param serviceCallback the async ServiceCallback to handle successful and failed responses. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the {@link ServiceFuture} object */
public ServiceFuture<VirtualMachineScaleSetExtensionInner> getAsync(String resourceGroupName, String vmScaleSetName, String vmssExtensionName, final ServiceCallback<VirtualMachineScaleSetExtensionInner> serviceCallback) { return ServiceFuture.fromResponse(getWithServiceResponseAsync(resourceGroupName, vmScaleSetName, vmssExtensionName), serviceCallback); }
The operation to get the extension.
Params:
  • resourceGroupName – The name of the resource group.
  • vmScaleSetName – The name of the VM scale set containing the extension.
  • vmssExtensionName – The name of the VM scale set extension.
Throws:
Returns:the observable to the VirtualMachineScaleSetExtensionInner object
/** * The operation to get the extension. * * @param resourceGroupName The name of the resource group. * @param vmScaleSetName The name of the VM scale set containing the extension. * @param vmssExtensionName The name of the VM scale set extension. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable to the VirtualMachineScaleSetExtensionInner object */
public Observable<VirtualMachineScaleSetExtensionInner> getAsync(String resourceGroupName, String vmScaleSetName, String vmssExtensionName) { return getWithServiceResponseAsync(resourceGroupName, vmScaleSetName, vmssExtensionName).map(new Func1<ServiceResponse<VirtualMachineScaleSetExtensionInner>, VirtualMachineScaleSetExtensionInner>() { @Override public VirtualMachineScaleSetExtensionInner call(ServiceResponse<VirtualMachineScaleSetExtensionInner> response) { return response.body(); } }); }
The operation to get the extension.
Params:
  • resourceGroupName – The name of the resource group.
  • vmScaleSetName – The name of the VM scale set containing the extension.
  • vmssExtensionName – The name of the VM scale set extension.
Throws:
Returns:the observable to the VirtualMachineScaleSetExtensionInner object
/** * The operation to get the extension. * * @param resourceGroupName The name of the resource group. * @param vmScaleSetName The name of the VM scale set containing the extension. * @param vmssExtensionName The name of the VM scale set extension. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable to the VirtualMachineScaleSetExtensionInner object */
public Observable<ServiceResponse<VirtualMachineScaleSetExtensionInner>> getWithServiceResponseAsync(String resourceGroupName, String vmScaleSetName, String vmssExtensionName) { if (resourceGroupName == null) { throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); } if (vmScaleSetName == null) { throw new IllegalArgumentException("Parameter vmScaleSetName is required and cannot be null."); } if (vmssExtensionName == null) { throw new IllegalArgumentException("Parameter vmssExtensionName is required and cannot be null."); } if (this.client.subscriptionId() == null) { throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); } final String apiVersion = "2020-12-01"; final String expand = null; return service.get(resourceGroupName, vmScaleSetName, vmssExtensionName, this.client.subscriptionId(), expand, apiVersion, this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1<Response<ResponseBody>, Observable<ServiceResponse<VirtualMachineScaleSetExtensionInner>>>() { @Override public Observable<ServiceResponse<VirtualMachineScaleSetExtensionInner>> call(Response<ResponseBody> response) { try { ServiceResponse<VirtualMachineScaleSetExtensionInner> clientResponse = getDelegate(response); return Observable.just(clientResponse); } catch (Throwable t) { return Observable.error(t); } } }); }
The operation to get the extension.
Params:
  • resourceGroupName – The name of the resource group.
  • vmScaleSetName – The name of the VM scale set containing the extension.
  • vmssExtensionName – The name of the VM scale set extension.
  • expand – The expand expression to apply on the operation.
Throws:
Returns:the VirtualMachineScaleSetExtensionInner object if successful.
/** * The operation to get the extension. * * @param resourceGroupName The name of the resource group. * @param vmScaleSetName The name of the VM scale set containing the extension. * @param vmssExtensionName The name of the VM scale set extension. * @param expand The expand expression to apply on the operation. * @throws IllegalArgumentException thrown if parameters fail the validation * @throws CloudException thrown if the request is rejected by server * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent * @return the VirtualMachineScaleSetExtensionInner object if successful. */
public VirtualMachineScaleSetExtensionInner get(String resourceGroupName, String vmScaleSetName, String vmssExtensionName, String expand) { return getWithServiceResponseAsync(resourceGroupName, vmScaleSetName, vmssExtensionName, expand).toBlocking().single().body(); }
The operation to get the extension.
Params:
  • resourceGroupName – The name of the resource group.
  • vmScaleSetName – The name of the VM scale set containing the extension.
  • vmssExtensionName – The name of the VM scale set extension.
  • expand – The expand expression to apply on the operation.
  • serviceCallback – the async ServiceCallback to handle successful and failed responses.
Throws:
Returns:the ServiceFuture object
/** * The operation to get the extension. * * @param resourceGroupName The name of the resource group. * @param vmScaleSetName The name of the VM scale set containing the extension. * @param vmssExtensionName The name of the VM scale set extension. * @param expand The expand expression to apply on the operation. * @param serviceCallback the async ServiceCallback to handle successful and failed responses. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the {@link ServiceFuture} object */
public ServiceFuture<VirtualMachineScaleSetExtensionInner> getAsync(String resourceGroupName, String vmScaleSetName, String vmssExtensionName, String expand, final ServiceCallback<VirtualMachineScaleSetExtensionInner> serviceCallback) { return ServiceFuture.fromResponse(getWithServiceResponseAsync(resourceGroupName, vmScaleSetName, vmssExtensionName, expand), serviceCallback); }
The operation to get the extension.
Params:
  • resourceGroupName – The name of the resource group.
  • vmScaleSetName – The name of the VM scale set containing the extension.
  • vmssExtensionName – The name of the VM scale set extension.
  • expand – The expand expression to apply on the operation.
Throws:
Returns:the observable to the VirtualMachineScaleSetExtensionInner object
/** * The operation to get the extension. * * @param resourceGroupName The name of the resource group. * @param vmScaleSetName The name of the VM scale set containing the extension. * @param vmssExtensionName The name of the VM scale set extension. * @param expand The expand expression to apply on the operation. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable to the VirtualMachineScaleSetExtensionInner object */
public Observable<VirtualMachineScaleSetExtensionInner> getAsync(String resourceGroupName, String vmScaleSetName, String vmssExtensionName, String expand) { return getWithServiceResponseAsync(resourceGroupName, vmScaleSetName, vmssExtensionName, expand).map(new Func1<ServiceResponse<VirtualMachineScaleSetExtensionInner>, VirtualMachineScaleSetExtensionInner>() { @Override public VirtualMachineScaleSetExtensionInner call(ServiceResponse<VirtualMachineScaleSetExtensionInner> response) { return response.body(); } }); }
The operation to get the extension.
Params:
  • resourceGroupName – The name of the resource group.
  • vmScaleSetName – The name of the VM scale set containing the extension.
  • vmssExtensionName – The name of the VM scale set extension.
  • expand – The expand expression to apply on the operation.
Throws:
Returns:the observable to the VirtualMachineScaleSetExtensionInner object
/** * The operation to get the extension. * * @param resourceGroupName The name of the resource group. * @param vmScaleSetName The name of the VM scale set containing the extension. * @param vmssExtensionName The name of the VM scale set extension. * @param expand The expand expression to apply on the operation. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable to the VirtualMachineScaleSetExtensionInner object */
public Observable<ServiceResponse<VirtualMachineScaleSetExtensionInner>> getWithServiceResponseAsync(String resourceGroupName, String vmScaleSetName, String vmssExtensionName, String expand) { if (resourceGroupName == null) { throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); } if (vmScaleSetName == null) { throw new IllegalArgumentException("Parameter vmScaleSetName is required and cannot be null."); } if (vmssExtensionName == null) { throw new IllegalArgumentException("Parameter vmssExtensionName is required and cannot be null."); } if (this.client.subscriptionId() == null) { throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); } final String apiVersion = "2020-12-01"; return service.get(resourceGroupName, vmScaleSetName, vmssExtensionName, this.client.subscriptionId(), expand, apiVersion, this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1<Response<ResponseBody>, Observable<ServiceResponse<VirtualMachineScaleSetExtensionInner>>>() { @Override public Observable<ServiceResponse<VirtualMachineScaleSetExtensionInner>> call(Response<ResponseBody> response) { try { ServiceResponse<VirtualMachineScaleSetExtensionInner> clientResponse = getDelegate(response); return Observable.just(clientResponse); } catch (Throwable t) { return Observable.error(t); } } }); } private ServiceResponse<VirtualMachineScaleSetExtensionInner> getDelegate(Response<ResponseBody> response) throws CloudException, IOException, IllegalArgumentException { return this.client.restClient().responseBuilderFactory().<VirtualMachineScaleSetExtensionInner, CloudException>newInstance(this.client.serializerAdapter()) .register(200, new TypeToken<VirtualMachineScaleSetExtensionInner>() { }.getType()) .registerError(CloudException.class) .build(response); }
Gets a list of all extensions in a VM scale set.
Params:
  • resourceGroupName – The name of the resource group.
  • vmScaleSetName – The name of the VM scale set containing the extension.
Throws:
Returns:the PagedList<VirtualMachineScaleSetExtensionInner> object if successful.
/** * Gets a list of all extensions in a VM scale set. * * @param resourceGroupName The name of the resource group. * @param vmScaleSetName The name of the VM scale set containing the extension. * @throws IllegalArgumentException thrown if parameters fail the validation * @throws CloudException thrown if the request is rejected by server * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent * @return the PagedList&lt;VirtualMachineScaleSetExtensionInner&gt; object if successful. */
public PagedList<VirtualMachineScaleSetExtensionInner> list(final String resourceGroupName, final String vmScaleSetName) { ServiceResponse<Page<VirtualMachineScaleSetExtensionInner>> response = listSinglePageAsync(resourceGroupName, vmScaleSetName).toBlocking().single(); return new PagedList<VirtualMachineScaleSetExtensionInner>(response.body()) { @Override public Page<VirtualMachineScaleSetExtensionInner> nextPage(String nextPageLink) { return listNextSinglePageAsync(nextPageLink).toBlocking().single().body(); } }; }
Gets a list of all extensions in a VM scale set.
Params:
  • resourceGroupName – The name of the resource group.
  • vmScaleSetName – The name of the VM scale set containing the extension.
  • serviceCallback – the async ServiceCallback to handle successful and failed responses.
Throws:
Returns:the ServiceFuture object
/** * Gets a list of all extensions in a VM scale set. * * @param resourceGroupName The name of the resource group. * @param vmScaleSetName The name of the VM scale set containing the extension. * @param serviceCallback the async ServiceCallback to handle successful and failed responses. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the {@link ServiceFuture} object */
public ServiceFuture<List<VirtualMachineScaleSetExtensionInner>> listAsync(final String resourceGroupName, final String vmScaleSetName, final ListOperationCallback<VirtualMachineScaleSetExtensionInner> serviceCallback) { return AzureServiceFuture.fromPageResponse( listSinglePageAsync(resourceGroupName, vmScaleSetName), new Func1<String, Observable<ServiceResponse<Page<VirtualMachineScaleSetExtensionInner>>>>() { @Override public Observable<ServiceResponse<Page<VirtualMachineScaleSetExtensionInner>>> call(String nextPageLink) { return listNextSinglePageAsync(nextPageLink); } }, serviceCallback); }
Gets a list of all extensions in a VM scale set.
Params:
  • resourceGroupName – The name of the resource group.
  • vmScaleSetName – The name of the VM scale set containing the extension.
Throws:
Returns:the observable to the PagedList<VirtualMachineScaleSetExtensionInner> object
/** * Gets a list of all extensions in a VM scale set. * * @param resourceGroupName The name of the resource group. * @param vmScaleSetName The name of the VM scale set containing the extension. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable to the PagedList&lt;VirtualMachineScaleSetExtensionInner&gt; object */
public Observable<Page<VirtualMachineScaleSetExtensionInner>> listAsync(final String resourceGroupName, final String vmScaleSetName) { return listWithServiceResponseAsync(resourceGroupName, vmScaleSetName) .map(new Func1<ServiceResponse<Page<VirtualMachineScaleSetExtensionInner>>, Page<VirtualMachineScaleSetExtensionInner>>() { @Override public Page<VirtualMachineScaleSetExtensionInner> call(ServiceResponse<Page<VirtualMachineScaleSetExtensionInner>> response) { return response.body(); } }); }
Gets a list of all extensions in a VM scale set.
Params:
  • resourceGroupName – The name of the resource group.
  • vmScaleSetName – The name of the VM scale set containing the extension.
Throws:
Returns:the observable to the PagedList<VirtualMachineScaleSetExtensionInner> object
/** * Gets a list of all extensions in a VM scale set. * * @param resourceGroupName The name of the resource group. * @param vmScaleSetName The name of the VM scale set containing the extension. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable to the PagedList&lt;VirtualMachineScaleSetExtensionInner&gt; object */
public Observable<ServiceResponse<Page<VirtualMachineScaleSetExtensionInner>>> listWithServiceResponseAsync(final String resourceGroupName, final String vmScaleSetName) { return listSinglePageAsync(resourceGroupName, vmScaleSetName) .concatMap(new Func1<ServiceResponse<Page<VirtualMachineScaleSetExtensionInner>>, Observable<ServiceResponse<Page<VirtualMachineScaleSetExtensionInner>>>>() { @Override public Observable<ServiceResponse<Page<VirtualMachineScaleSetExtensionInner>>> call(ServiceResponse<Page<VirtualMachineScaleSetExtensionInner>> page) { String nextPageLink = page.body().nextPageLink(); if (nextPageLink == null) { return Observable.just(page); } return Observable.just(page).concatWith(listNextWithServiceResponseAsync(nextPageLink)); } }); }
Gets a list of all extensions in a VM scale set. ServiceResponse> * @param resourceGroupName The name of the resource group. ServiceResponse> * @param vmScaleSetName The name of the VM scale set containing the extension.
Throws:
Returns:the PagedList<VirtualMachineScaleSetExtensionInner> object wrapped in ServiceResponse if successful.
/** * Gets a list of all extensions in a VM scale set. * ServiceResponse<PageImpl1<VirtualMachineScaleSetExtensionInner>> * @param resourceGroupName The name of the resource group. ServiceResponse<PageImpl1<VirtualMachineScaleSetExtensionInner>> * @param vmScaleSetName The name of the VM scale set containing the extension. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the PagedList&lt;VirtualMachineScaleSetExtensionInner&gt; object wrapped in {@link ServiceResponse} if successful. */
public Observable<ServiceResponse<Page<VirtualMachineScaleSetExtensionInner>>> listSinglePageAsync(final String resourceGroupName, final String vmScaleSetName) { if (resourceGroupName == null) { throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); } if (vmScaleSetName == null) { throw new IllegalArgumentException("Parameter vmScaleSetName is required and cannot be null."); } if (this.client.subscriptionId() == null) { throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); } final String apiVersion = "2020-12-01"; return service.list(resourceGroupName, vmScaleSetName, this.client.subscriptionId(), apiVersion, this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1<Response<ResponseBody>, Observable<ServiceResponse<Page<VirtualMachineScaleSetExtensionInner>>>>() { @Override public Observable<ServiceResponse<Page<VirtualMachineScaleSetExtensionInner>>> call(Response<ResponseBody> response) { try { ServiceResponse<PageImpl1<VirtualMachineScaleSetExtensionInner>> result = listDelegate(response); return Observable.just(new ServiceResponse<Page<VirtualMachineScaleSetExtensionInner>>(result.body(), result.response())); } catch (Throwable t) { return Observable.error(t); } } }); } private ServiceResponse<PageImpl1<VirtualMachineScaleSetExtensionInner>> listDelegate(Response<ResponseBody> response) throws CloudException, IOException, IllegalArgumentException { return this.client.restClient().responseBuilderFactory().<PageImpl1<VirtualMachineScaleSetExtensionInner>, CloudException>newInstance(this.client.serializerAdapter()) .register(200, new TypeToken<PageImpl1<VirtualMachineScaleSetExtensionInner>>() { }.getType()) .registerError(CloudException.class) .build(response); }
Gets a list of all extensions in a VM scale set.
Params:
  • nextPageLink – The NextLink from the previous successful call to List operation.
Throws:
Returns:the PagedList<VirtualMachineScaleSetExtensionInner> object if successful.
/** * Gets a list of all extensions in a VM scale set. * * @param nextPageLink The NextLink from the previous successful call to List operation. * @throws IllegalArgumentException thrown if parameters fail the validation * @throws CloudException thrown if the request is rejected by server * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent * @return the PagedList&lt;VirtualMachineScaleSetExtensionInner&gt; object if successful. */
public PagedList<VirtualMachineScaleSetExtensionInner> listNext(final String nextPageLink) { ServiceResponse<Page<VirtualMachineScaleSetExtensionInner>> response = listNextSinglePageAsync(nextPageLink).toBlocking().single(); return new PagedList<VirtualMachineScaleSetExtensionInner>(response.body()) { @Override public Page<VirtualMachineScaleSetExtensionInner> nextPage(String nextPageLink) { return listNextSinglePageAsync(nextPageLink).toBlocking().single().body(); } }; }
Gets a list of all extensions in a VM scale set.
Params:
  • nextPageLink – The NextLink from the previous successful call to List operation.
  • serviceFuture – the ServiceFuture object tracking the Retrofit calls
  • serviceCallback – the async ServiceCallback to handle successful and failed responses.
Throws:
Returns:the ServiceFuture object
/** * Gets a list of all extensions in a VM scale set. * * @param nextPageLink The NextLink from the previous successful call to List operation. * @param serviceFuture the ServiceFuture object tracking the Retrofit calls * @param serviceCallback the async ServiceCallback to handle successful and failed responses. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the {@link ServiceFuture} object */
public ServiceFuture<List<VirtualMachineScaleSetExtensionInner>> listNextAsync(final String nextPageLink, final ServiceFuture<List<VirtualMachineScaleSetExtensionInner>> serviceFuture, final ListOperationCallback<VirtualMachineScaleSetExtensionInner> serviceCallback) { return AzureServiceFuture.fromPageResponse( listNextSinglePageAsync(nextPageLink), new Func1<String, Observable<ServiceResponse<Page<VirtualMachineScaleSetExtensionInner>>>>() { @Override public Observable<ServiceResponse<Page<VirtualMachineScaleSetExtensionInner>>> call(String nextPageLink) { return listNextSinglePageAsync(nextPageLink); } }, serviceCallback); }
Gets a list of all extensions in a VM scale set.
Params:
  • nextPageLink – The NextLink from the previous successful call to List operation.
Throws:
Returns:the observable to the PagedList<VirtualMachineScaleSetExtensionInner> object
/** * Gets a list of all extensions in a VM scale set. * * @param nextPageLink The NextLink from the previous successful call to List operation. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable to the PagedList&lt;VirtualMachineScaleSetExtensionInner&gt; object */
public Observable<Page<VirtualMachineScaleSetExtensionInner>> listNextAsync(final String nextPageLink) { return listNextWithServiceResponseAsync(nextPageLink) .map(new Func1<ServiceResponse<Page<VirtualMachineScaleSetExtensionInner>>, Page<VirtualMachineScaleSetExtensionInner>>() { @Override public Page<VirtualMachineScaleSetExtensionInner> call(ServiceResponse<Page<VirtualMachineScaleSetExtensionInner>> response) { return response.body(); } }); }
Gets a list of all extensions in a VM scale set.
Params:
  • nextPageLink – The NextLink from the previous successful call to List operation.
Throws:
Returns:the observable to the PagedList<VirtualMachineScaleSetExtensionInner> object
/** * Gets a list of all extensions in a VM scale set. * * @param nextPageLink The NextLink from the previous successful call to List operation. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable to the PagedList&lt;VirtualMachineScaleSetExtensionInner&gt; object */
public Observable<ServiceResponse<Page<VirtualMachineScaleSetExtensionInner>>> listNextWithServiceResponseAsync(final String nextPageLink) { return listNextSinglePageAsync(nextPageLink) .concatMap(new Func1<ServiceResponse<Page<VirtualMachineScaleSetExtensionInner>>, Observable<ServiceResponse<Page<VirtualMachineScaleSetExtensionInner>>>>() { @Override public Observable<ServiceResponse<Page<VirtualMachineScaleSetExtensionInner>>> call(ServiceResponse<Page<VirtualMachineScaleSetExtensionInner>> page) { String nextPageLink = page.body().nextPageLink(); if (nextPageLink == null) { return Observable.just(page); } return Observable.just(page).concatWith(listNextWithServiceResponseAsync(nextPageLink)); } }); }
Gets a list of all extensions in a VM scale set. ServiceResponse> * @param nextPageLink The NextLink from the previous successful call to List operation.
Throws:
Returns:the PagedList<VirtualMachineScaleSetExtensionInner> object wrapped in ServiceResponse if successful.
/** * Gets a list of all extensions in a VM scale set. * ServiceResponse<PageImpl1<VirtualMachineScaleSetExtensionInner>> * @param nextPageLink The NextLink from the previous successful call to List operation. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the PagedList&lt;VirtualMachineScaleSetExtensionInner&gt; object wrapped in {@link ServiceResponse} if successful. */
public Observable<ServiceResponse<Page<VirtualMachineScaleSetExtensionInner>>> listNextSinglePageAsync(final String nextPageLink) { if (nextPageLink == null) { throw new IllegalArgumentException("Parameter nextPageLink is required and cannot be null."); } String nextUrl = String.format("%s", nextPageLink); return service.listNext(nextUrl, this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1<Response<ResponseBody>, Observable<ServiceResponse<Page<VirtualMachineScaleSetExtensionInner>>>>() { @Override public Observable<ServiceResponse<Page<VirtualMachineScaleSetExtensionInner>>> call(Response<ResponseBody> response) { try { ServiceResponse<PageImpl1<VirtualMachineScaleSetExtensionInner>> result = listNextDelegate(response); return Observable.just(new ServiceResponse<Page<VirtualMachineScaleSetExtensionInner>>(result.body(), result.response())); } catch (Throwable t) { return Observable.error(t); } } }); } private ServiceResponse<PageImpl1<VirtualMachineScaleSetExtensionInner>> listNextDelegate(Response<ResponseBody> response) throws CloudException, IOException, IllegalArgumentException { return this.client.restClient().responseBuilderFactory().<PageImpl1<VirtualMachineScaleSetExtensionInner>, CloudException>newInstance(this.client.serializerAdapter()) .register(200, new TypeToken<PageImpl1<VirtualMachineScaleSetExtensionInner>>() { }.getType()) .registerError(CloudException.class) .build(response); } }