use of retrofit2.http.PUT in project autorest.java by Azure.
the class LROsCustomHeadersImpl method put201CreatingSucceeded200WithServiceResponseAsync.
/**
* x-ms-client-request-id = 9C4D50EE-2D56-4CD3-8152-34347DC9F2B0 is required message header for all requests. Long running put request, service returns a 201 to the initial request, with an entity that contains ProvisioningState=’Creating’. 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>> put201CreatingSucceeded200WithServiceResponseAsync() {
final Product product = null;
Observable<Response<ResponseBody>> observable = service.put201CreatingSucceeded200(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 putNonRetry201Creating400WithServiceResponseAsync.
/**
* 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>> putNonRetry201Creating400WithServiceResponseAsync() {
final Product product = null;
Observable<Response<ResponseBody>> observable = service.putNonRetry201Creating400(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 putAsyncRelativeRetryInvalidJsonPollingWithServiceResponseAsync.
/**
* 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, LROSADsPutAsyncRelativeRetryInvalidJsonPollingHeaders>> putAsyncRelativeRetryInvalidJsonPollingWithServiceResponseAsync() {
final Product product = null;
Observable<Response<ResponseBody>> observable = service.putAsyncRelativeRetryInvalidJsonPolling(product, this.client.acceptLanguage(), this.client.userAgent());
return client.getAzureClient().getPutOrPatchResultWithHeadersAsync(observable, new TypeToken<Product>() {
}.getType(), LROSADsPutAsyncRelativeRetryInvalidJsonPollingHeaders.class);
}
use of retrofit2.http.PUT in project autorest.java by Azure.
the class LROSADsImpl method putError201NoProvisioningStatePayloadWithServiceResponseAsync.
/**
* Long running put request, service returns a 201 to the initial request with no payload.
*
* @throws IllegalArgumentException thrown if parameters fail the validation
* @return the observable for the request
*/
public Observable<ServiceResponse<Product>> putError201NoProvisioningStatePayloadWithServiceResponseAsync() {
final Product product = null;
Observable<Response<ResponseBody>> observable = service.putError201NoProvisioningStatePayload(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 putAsyncRelativeRetryInvalidHeaderWithServiceResponseAsync.
/**
* Long running put request, service returns a 200 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<Product, LROSADsPutAsyncRelativeRetryInvalidHeaderHeaders>> putAsyncRelativeRetryInvalidHeaderWithServiceResponseAsync() {
final Product product = null;
Observable<Response<ResponseBody>> observable = service.putAsyncRelativeRetryInvalidHeader(product, this.client.acceptLanguage(), this.client.userAgent());
return client.getAzureClient().getPutOrPatchResultWithHeadersAsync(observable, new TypeToken<Product>() {
}.getType(), LROSADsPutAsyncRelativeRetryInvalidHeaderHeaders.class);
}
Aggregations