private SecretImpl wrapModel(SecretItem inner) { if (inner == null) { return null; } SerializerAdapter<?> serializer = vault.manager().inner().restClient().serializerAdapter(); try { return wrapModel(serializer.<SecretBundle>deserialize(serializer.serialize(inner), SecretBundle.class)); } catch (IOException e) { return null; } }
return null; return serializerAdapter.deserialize(responseContent, type);
final List<Double> topLeft = null; final List<Double> botRight = null; String topLeftConverted = this.client.serializerAdapter().serializeList(topLeft, CollectionFormat.CSV); String botRightConverted = this.client.serializerAdapter().serializeList(botRight, CollectionFormat.CSV); return service.get(this.client.subscriptionId(), resourceGroupName, profileName, heatMapType, topLeftConverted, botRightConverted, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1<Response<ResponseBody>, Observable<ServiceResponse<HeatMapModelInner>>>() {
.baseUrl(baseUrl) .client(httpClient) .addConverterFactory(serializerAdapter.converterFactory()) .addCallAdapterFactory(callAdapterFactory) .build(),
final List<Double> topLeft = null; final List<Double> botRight = null; String topLeftConverted = this.client.serializerAdapter().serializeList(topLeft, CollectionFormat.CSV); String botRightConverted = this.client.serializerAdapter().serializeList(botRight, CollectionFormat.CSV); return service.get(this.client.subscriptionId(), resourceGroupName, profileName, heatMapType, topLeftConverted, botRightConverted, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1<Response<ResponseBody>, Observable<ServiceResponse<HeatMapModelInner>>>() {
private SecretImpl wrapModel(SecretItem inner) { if (inner == null) { return null; } SerializerAdapter<?> serializer = vault.manager().inner().restClient().serializerAdapter(); try { return wrapModel(serializer.<SecretBundle>deserialize(serializer.serialize(inner), SecretBundle.class)); } catch (IOException e) { return null; } }
Validator.validate(botRight); final String heatMapType = "default"; String topLeftConverted = this.client.serializerAdapter().serializeList(topLeft, CollectionFormat.CSV); String botRightConverted = this.client.serializerAdapter().serializeList(botRight, CollectionFormat.CSV); return service.get(this.client.subscriptionId(), resourceGroupName, profileName, heatMapType, topLeftConverted, botRightConverted, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1<Response<ResponseBody>, Observable<ServiceResponse<HeatMapModelInner>>>() {
@Override public <THeader> ServiceResponseWithHeaders<T, THeader> buildWithHeaders(final Response<ResponseBody> response, Class<THeader> headerType) throws IOException { ServiceResponse<T> bodyResponse = build(response); THeader headers = serializerAdapter.deserialize( serializerAdapter.serialize(Maps.asMap(response.headers().names(), new Function<String, String>() { @Override public String apply(String s) { return response.headers().get(s); } })), headerType); return new ServiceResponseWithHeaders<>(bodyResponse.body(), headers, bodyResponse.response()); }
Validator.validate(botRight); final String heatMapType = "default"; String topLeftConverted = this.client.serializerAdapter().serializeList(topLeft, CollectionFormat.CSV); String botRightConverted = this.client.serializerAdapter().serializeList(botRight, CollectionFormat.CSV); return service.get(this.client.subscriptionId(), resourceGroupName, profileName, heatMapType, topLeftConverted, botRightConverted, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1<Response<ResponseBody>, Observable<ServiceResponse<HeatMapModelInner>>>() {
@Override public <THeader> ServiceResponseWithHeaders<T, THeader> buildEmptyWithHeaders(final Response<Void> response, Class<THeader> headerType) throws IOException { ServiceResponse<T> bodyResponse = buildEmpty(response); THeader headers = serializerAdapter.deserialize( serializerAdapter.serialize(Maps.asMap(response.headers().names(), new Function<String, String>() { @Override public String apply(String s) { return response.headers().get(s); } })), headerType); ServiceResponseWithHeaders<T, THeader> serviceResponse = new ServiceResponseWithHeaders<>(headers, bodyResponse.headResponse()); serviceResponse.withBody(bodyResponse.body()); return serviceResponse; }