use of retrofit2.http.PUT in project autorest.java by Azure.
the class LROSADsImpl method putNonRetry201Creating400InvalidJsonWithServiceResponseAsync.
/**
* Long running put request, service returns a Product with 'ProvisioningState' = 'Creating' and 201 response code.
*
* @throws IllegalArgumentException thrown if parameters fail the validation
* @return the observable for the request
*/
public Observable<ServiceResponse<Product>> putNonRetry201Creating400InvalidJsonWithServiceResponseAsync() {
final Product product = null;
Observable<Response<ResponseBody>> observable = service.putNonRetry201Creating400InvalidJson(product, this.client.acceptLanguage(), this.client.userAgent());
return client.getAzureClient().getPutOrPatchResultAsync(observable, new TypeToken<Product>() {
}.getType());
}
use of retrofit2.http.PUT in project autorest.java by Azure.
the class LROSADsImpl method put200InvalidJsonWithServiceResponseAsync.
/**
* Long running put request, service returns a 200 to the initial request, with an entity that is not a valid json.
*
* @throws IllegalArgumentException thrown if parameters fail the validation
* @return the observable for the request
*/
public Observable<ServiceResponse<Product>> put200InvalidJsonWithServiceResponseAsync() {
final Product product = null;
Observable<Response<ResponseBody>> observable = service.put200InvalidJson(product, this.client.acceptLanguage(), this.client.userAgent());
return client.getAzureClient().getPutOrPatchResultAsync(observable, new TypeToken<Product>() {
}.getType());
}
use of retrofit2.http.PUT in project autorest.java by Azure.
the class LROSADsImpl method putNonRetry400WithServiceResponseAsync.
/**
* Long running put request, service returns a 400 to the initial request.
*
* @throws IllegalArgumentException thrown if parameters fail the validation
* @return the observable for the request
*/
public Observable<ServiceResponse<Product>> putNonRetry400WithServiceResponseAsync() {
final Product product = null;
Observable<Response<ResponseBody>> observable = service.putNonRetry400(product, this.client.acceptLanguage(), this.client.userAgent());
return client.getAzureClient().getPutOrPatchResultAsync(observable, new TypeToken<Product>() {
}.getType());
}
use of retrofit2.http.PUT 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());
}
use of retrofit2.http.PUT in project autorest.java by Azure.
the class LROsImpl method put201CreatingFailed200WithServiceResponseAsync.
/**
* Long running put request, service returns a 201 to the initial request, with an entity that contains ProvisioningState=’Created’. Polls return this value until the last poll returns a ‘200’ with ProvisioningState=’Failed’.
*
* @throws IllegalArgumentException thrown if parameters fail the validation
* @return the observable for the request
*/
public Observable<ServiceResponse<Product>> put201CreatingFailed200WithServiceResponseAsync() {
final Product product = null;
Observable<Response<ResponseBody>> observable = service.put201CreatingFailed200(product, this.client.acceptLanguage(), this.client.userAgent());
return client.getAzureClient().getPutOrPatchResultAsync(observable, new TypeToken<Product>() {
}.getType());
}
Aggregations