use of retrofit2.http.PUT in project autorest.java by Azure.
the class LROsImpl method putAsyncNoRetrycanceledWithServiceResponseAsync.
/**
* Long running put request, service returns a 200 to the initial request, with an entity that contains ProvisioningState=’Creating’. Poll the endpoint indicated in the Azure-AsyncOperation header for operation status.
*
* @throws IllegalArgumentException thrown if parameters fail the validation
* @return the observable for the request
*/
public Observable<ServiceResponseWithHeaders<Product, LROsPutAsyncNoRetrycanceledHeaders>> putAsyncNoRetrycanceledWithServiceResponseAsync() {
final Product product = null;
Observable<Response<ResponseBody>> observable = service.putAsyncNoRetrycanceled(product, this.client.acceptLanguage(), this.client.userAgent());
return client.getAzureClient().getPutOrPatchResultWithHeadersAsync(observable, new TypeToken<Product>() {
}.getType(), LROsPutAsyncNoRetrycanceledHeaders.class);
}
use of retrofit2.http.PUT in project autorest.java by Azure.
the class LROsImpl method put200UpdatingSucceeded204WithServiceResponseAsync.
/**
* Long running put request, service returns a 201 to the initial request, with an entity that contains ProvisioningState=’Updating’. Polls return this value until the last poll returns a ‘200’ with ProvisioningState=’Succeeded’.
*
* @throws IllegalArgumentException thrown if parameters fail the validation
* @return the observable for the request
*/
public Observable<ServiceResponse<Product>> put200UpdatingSucceeded204WithServiceResponseAsync() {
final Product product = null;
Observable<Response<ResponseBody>> observable = service.put200UpdatingSucceeded204(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 putAsyncNoRetrySucceededWithServiceResponseAsync.
/**
* Long running put request, service returns a 200 to the initial request, with an entity that contains ProvisioningState=’Creating’. Poll the endpoint indicated in the Azure-AsyncOperation header for operation status.
*
* @throws IllegalArgumentException thrown if parameters fail the validation
* @return the observable for the request
*/
public Observable<ServiceResponseWithHeaders<Product, LROsPutAsyncNoRetrySucceededHeaders>> putAsyncNoRetrySucceededWithServiceResponseAsync() {
final Product product = null;
Observable<Response<ResponseBody>> observable = service.putAsyncNoRetrySucceeded(product, this.client.acceptLanguage(), this.client.userAgent());
return client.getAzureClient().getPutOrPatchResultWithHeadersAsync(observable, new TypeToken<Product>() {
}.getType(), LROsPutAsyncNoRetrySucceededHeaders.class);
}
use of retrofit2.http.PUT in project autorest.java by Azure.
the class LROsImpl method put200SucceededWithServiceResponseAsync.
/**
* Long running put request, service returns a 200 to the initial request, with an entity that contains ProvisioningState=’Succeeded’.
*
* @throws IllegalArgumentException thrown if parameters fail the validation
* @return the observable for the request
*/
public Observable<ServiceResponse<Product>> put200SucceededWithServiceResponseAsync() {
final Product product = null;
Observable<Response<ResponseBody>> observable = service.put200Succeeded(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 putSubResourceWithServiceResponseAsync.
/**
* Long running put request with sub resource.
*
* @throws IllegalArgumentException thrown if parameters fail the validation
* @return the observable for the request
*/
public Observable<ServiceResponse<SubProduct>> putSubResourceWithServiceResponseAsync() {
final SubProduct product = null;
Observable<Response<ResponseBody>> observable = service.putSubResource(product, this.client.acceptLanguage(), this.client.userAgent());
return client.getAzureClient().getPutOrPatchResultAsync(observable, new TypeToken<SubProduct>() {
}.getType());
}
Aggregations