Class HttpCloudClient

java.lang.Object
com.cockroachlabs.data.continuum.cloud.HttpCloudClient
All Implemented Interfaces:
CloudClient

public class HttpCloudClient extends Object implements CloudClient
HTTP-backed CloudClient that talks to the real CockroachDB Cloud API using a service-account Bearer token.

To stay independent of the host application's HTTP message converters and Jackson version, responses are retrieved as text and parsed with Spring Boot's JsonParser, and request bodies are written as compact JSON strings. Fields are mapped by their documented (snake_case) names. Construct with create(String, String) in production, or pass a pre-built RestClient (e.g. bound to a MockRestServiceServer) in tests.