use of retrofit2.http.POST in project autorest.java by Azure.
the class LROSADsImpl method post202NoLocationWithServiceResponseAsync.
/**
* Long running post request, service returns a 202 to the initial request, without a location header.
*
* @throws IllegalArgumentException thrown if parameters fail the validation
* @return the observable for the request
*/
public Observable<ServiceResponseWithHeaders<Void, LROSADsPost202NoLocationHeaders>> post202NoLocationWithServiceResponseAsync() {
final Product product = null;
Observable<Response<ResponseBody>> observable = service.post202NoLocation(product, this.client.acceptLanguage(), this.client.userAgent());
return client.getAzureClient().getPostOrDeleteResultWithHeadersAsync(observable, new TypeToken<Void>() {
}.getType(), LROSADsPost202NoLocationHeaders.class);
}
use of retrofit2.http.POST in project autorest.java by Azure.
the class LROSADsImpl method postAsyncRelativeRetryInvalidJsonPollingWithServiceResponseAsync.
/**
* Long running post request, service returns a 202 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<Void, LROSADsPostAsyncRelativeRetryInvalidJsonPollingHeaders>> postAsyncRelativeRetryInvalidJsonPollingWithServiceResponseAsync() {
final Product product = null;
Observable<Response<ResponseBody>> observable = service.postAsyncRelativeRetryInvalidJsonPolling(product, this.client.acceptLanguage(), this.client.userAgent());
return client.getAzureClient().getPostOrDeleteResultWithHeadersAsync(observable, new TypeToken<Void>() {
}.getType(), LROSADsPostAsyncRelativeRetryInvalidJsonPollingHeaders.class);
}
use of retrofit2.http.POST in project autorest.java by Azure.
the class LROSADsImpl method postAsyncRelativeRetryInvalidHeaderWithServiceResponseAsync.
/**
* Long running post request, service returns a 202 to the initial request, with an entity that contains ProvisioningState=’Creating’. The endpoint indicated in the Azure-AsyncOperation header is invalid.
*
* @throws IllegalArgumentException thrown if parameters fail the validation
* @return the observable for the request
*/
public Observable<ServiceResponseWithHeaders<Void, LROSADsPostAsyncRelativeRetryInvalidHeaderHeaders>> postAsyncRelativeRetryInvalidHeaderWithServiceResponseAsync() {
final Product product = null;
Observable<Response<ResponseBody>> observable = service.postAsyncRelativeRetryInvalidHeader(product, this.client.acceptLanguage(), this.client.userAgent());
return client.getAzureClient().getPostOrDeleteResultWithHeadersAsync(observable, new TypeToken<Void>() {
}.getType(), LROSADsPostAsyncRelativeRetryInvalidHeaderHeaders.class);
}
use of retrofit2.http.POST in project autorest.java by Azure.
the class LROSADsImpl method postNonRetry400WithServiceResponseAsync.
/**
* Long running post request, service returns a 400 with no error body.
*
* @throws IllegalArgumentException thrown if parameters fail the validation
* @return the observable for the request
*/
public Observable<ServiceResponseWithHeaders<Void, LROSADsPostNonRetry400Headers>> postNonRetry400WithServiceResponseAsync() {
final Product product = null;
Observable<Response<ResponseBody>> observable = service.postNonRetry400(product, this.client.acceptLanguage(), this.client.userAgent());
return client.getAzureClient().getPostOrDeleteResultWithHeadersAsync(observable, new TypeToken<Void>() {
}.getType(), LROSADsPostNonRetry400Headers.class);
}
use of retrofit2.http.POST in project autorest.java by Azure.
the class LROSADsImpl method postAsyncRelativeRetry400WithServiceResponseAsync.
/**
* Long running post request, service returns a 202 to the initial request 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<Void, LROSADsPostAsyncRelativeRetry400Headers>> postAsyncRelativeRetry400WithServiceResponseAsync() {
final Product product = null;
Observable<Response<ResponseBody>> observable = service.postAsyncRelativeRetry400(product, this.client.acceptLanguage(), this.client.userAgent());
return client.getAzureClient().getPostOrDeleteResultWithHeadersAsync(observable, new TypeToken<Void>() {
}.getType(), LROSADsPostAsyncRelativeRetry400Headers.class);
}
Aggregations