Search in sources :

Example 1 with Sku

use of fixtures.lro.models.Sku in project autorest.java by Azure.

the class LROsImpl method putAsyncNonResourceWithServiceResponseAsync.

/**
 * Long running put request with non resource.
 *
 * @throws IllegalArgumentException thrown if parameters fail the validation
 * @return the observable for the request
 */
public Observable<ServiceResponse<Sku>> putAsyncNonResourceWithServiceResponseAsync() {
    final Sku sku = null;
    Observable<Response<ResponseBody>> observable = service.putAsyncNonResource(sku, this.client.acceptLanguage(), this.client.userAgent());
    return client.getAzureClient().getPutOrPatchResultAsync(observable, new TypeToken<Sku>() {
    }.getType());
}
Also used : Response(retrofit2.Response) ServiceResponse(com.microsoft.rest.ServiceResponse) TypeToken(com.google.common.reflect.TypeToken) Sku(fixtures.lro.models.Sku)

Example 2 with Sku

use of fixtures.lro.models.Sku in project autorest.java by Azure.

the class LROsImpl method putNonResourceWithServiceResponseAsync.

/**
 * Long running put request with non resource.
 *
 * @throws IllegalArgumentException thrown if parameters fail the validation
 * @return the observable for the request
 */
public Observable<ServiceResponse<Sku>> putNonResourceWithServiceResponseAsync() {
    final Sku sku = null;
    Observable<Response<ResponseBody>> observable = service.putNonResource(sku, this.client.acceptLanguage(), this.client.userAgent());
    return client.getAzureClient().getPutOrPatchResultAsync(observable, new TypeToken<Sku>() {
    }.getType());
}
Also used : Response(retrofit2.Response) ServiceResponse(com.microsoft.rest.ServiceResponse) TypeToken(com.google.common.reflect.TypeToken) Sku(fixtures.lro.models.Sku)

Aggregations

TypeToken (com.google.common.reflect.TypeToken)2 ServiceResponse (com.microsoft.rest.ServiceResponse)2 Sku (fixtures.lro.models.Sku)2 Response (retrofit2.Response)2