POST datastore.projects.allocateIds
{{baseUrl}}/v1/projects/:projectId:allocateIds
QUERY PARAMS

projectId
BODY json

{
  "databaseId": "",
  "keys": [
    {
      "partitionId": {
        "databaseId": "",
        "namespaceId": "",
        "projectId": ""
      },
      "path": [
        {
          "id": "",
          "kind": "",
          "name": ""
        }
      ]
    }
  ]
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/v1/projects/:projectId:allocateIds");

struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "content-type: application/json");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);

curl_easy_setopt(hnd, CURLOPT_POSTFIELDS, "{\n  \"databaseId\": \"\",\n  \"keys\": [\n    {\n      \"partitionId\": {\n        \"databaseId\": \"\",\n        \"namespaceId\": \"\",\n        \"projectId\": \"\"\n      },\n      \"path\": [\n        {\n          \"id\": \"\",\n          \"kind\": \"\",\n          \"name\": \"\"\n        }\n      ]\n    }\n  ]\n}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/post "{{baseUrl}}/v1/projects/:projectId:allocateIds" {:content-type :json
                                                                               :form-params {:databaseId ""
                                                                                             :keys [{:partitionId {:databaseId ""
                                                                                                                   :namespaceId ""
                                                                                                                   :projectId ""}
                                                                                                     :path [{:id ""
                                                                                                             :kind ""
                                                                                                             :name ""}]}]}})
require "http/client"

url = "{{baseUrl}}/v1/projects/:projectId:allocateIds"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"databaseId\": \"\",\n  \"keys\": [\n    {\n      \"partitionId\": {\n        \"databaseId\": \"\",\n        \"namespaceId\": \"\",\n        \"projectId\": \"\"\n      },\n      \"path\": [\n        {\n          \"id\": \"\",\n          \"kind\": \"\",\n          \"name\": \"\"\n        }\n      ]\n    }\n  ]\n}"

response = HTTP::Client.post url, headers: headers, body: reqBody
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Post,
    RequestUri = new Uri("{{baseUrl}}/v1/projects/:projectId:allocateIds"),
    Content = new StringContent("{\n  \"databaseId\": \"\",\n  \"keys\": [\n    {\n      \"partitionId\": {\n        \"databaseId\": \"\",\n        \"namespaceId\": \"\",\n        \"projectId\": \"\"\n      },\n      \"path\": [\n        {\n          \"id\": \"\",\n          \"kind\": \"\",\n          \"name\": \"\"\n        }\n      ]\n    }\n  ]\n}")
    {
        Headers =
        {
            ContentType = new MediaTypeHeaderValue("application/json")
        }
    }
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/v1/projects/:projectId:allocateIds");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"databaseId\": \"\",\n  \"keys\": [\n    {\n      \"partitionId\": {\n        \"databaseId\": \"\",\n        \"namespaceId\": \"\",\n        \"projectId\": \"\"\n      },\n      \"path\": [\n        {\n          \"id\": \"\",\n          \"kind\": \"\",\n          \"name\": \"\"\n        }\n      ]\n    }\n  ]\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/v1/projects/:projectId:allocateIds"

	payload := strings.NewReader("{\n  \"databaseId\": \"\",\n  \"keys\": [\n    {\n      \"partitionId\": {\n        \"databaseId\": \"\",\n        \"namespaceId\": \"\",\n        \"projectId\": \"\"\n      },\n      \"path\": [\n        {\n          \"id\": \"\",\n          \"kind\": \"\",\n          \"name\": \"\"\n        }\n      ]\n    }\n  ]\n}")

	req, _ := http.NewRequest("POST", url, payload)

	req.Header.Add("content-type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
POST /baseUrl/v1/projects/:projectId:allocateIds HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 267

{
  "databaseId": "",
  "keys": [
    {
      "partitionId": {
        "databaseId": "",
        "namespaceId": "",
        "projectId": ""
      },
      "path": [
        {
          "id": "",
          "kind": "",
          "name": ""
        }
      ]
    }
  ]
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/v1/projects/:projectId:allocateIds")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"databaseId\": \"\",\n  \"keys\": [\n    {\n      \"partitionId\": {\n        \"databaseId\": \"\",\n        \"namespaceId\": \"\",\n        \"projectId\": \"\"\n      },\n      \"path\": [\n        {\n          \"id\": \"\",\n          \"kind\": \"\",\n          \"name\": \"\"\n        }\n      ]\n    }\n  ]\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/v1/projects/:projectId:allocateIds"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"databaseId\": \"\",\n  \"keys\": [\n    {\n      \"partitionId\": {\n        \"databaseId\": \"\",\n        \"namespaceId\": \"\",\n        \"projectId\": \"\"\n      },\n      \"path\": [\n        {\n          \"id\": \"\",\n          \"kind\": \"\",\n          \"name\": \"\"\n        }\n      ]\n    }\n  ]\n}"))
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\n  \"databaseId\": \"\",\n  \"keys\": [\n    {\n      \"partitionId\": {\n        \"databaseId\": \"\",\n        \"namespaceId\": \"\",\n        \"projectId\": \"\"\n      },\n      \"path\": [\n        {\n          \"id\": \"\",\n          \"kind\": \"\",\n          \"name\": \"\"\n        }\n      ]\n    }\n  ]\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/v1/projects/:projectId:allocateIds")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/v1/projects/:projectId:allocateIds")
  .header("content-type", "application/json")
  .body("{\n  \"databaseId\": \"\",\n  \"keys\": [\n    {\n      \"partitionId\": {\n        \"databaseId\": \"\",\n        \"namespaceId\": \"\",\n        \"projectId\": \"\"\n      },\n      \"path\": [\n        {\n          \"id\": \"\",\n          \"kind\": \"\",\n          \"name\": \"\"\n        }\n      ]\n    }\n  ]\n}")
  .asString();
const data = JSON.stringify({
  databaseId: '',
  keys: [
    {
      partitionId: {
        databaseId: '',
        namespaceId: '',
        projectId: ''
      },
      path: [
        {
          id: '',
          kind: '',
          name: ''
        }
      ]
    }
  ]
});

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('POST', '{{baseUrl}}/v1/projects/:projectId:allocateIds');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'POST',
  url: '{{baseUrl}}/v1/projects/:projectId:allocateIds',
  headers: {'content-type': 'application/json'},
  data: {
    databaseId: '',
    keys: [
      {
        partitionId: {databaseId: '', namespaceId: '', projectId: ''},
        path: [{id: '', kind: '', name: ''}]
      }
    ]
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/v1/projects/:projectId:allocateIds';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"databaseId":"","keys":[{"partitionId":{"databaseId":"","namespaceId":"","projectId":""},"path":[{"id":"","kind":"","name":""}]}]}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/v1/projects/:projectId:allocateIds',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "databaseId": "",\n  "keys": [\n    {\n      "partitionId": {\n        "databaseId": "",\n        "namespaceId": "",\n        "projectId": ""\n      },\n      "path": [\n        {\n          "id": "",\n          "kind": "",\n          "name": ""\n        }\n      ]\n    }\n  ]\n}'
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"databaseId\": \"\",\n  \"keys\": [\n    {\n      \"partitionId\": {\n        \"databaseId\": \"\",\n        \"namespaceId\": \"\",\n        \"projectId\": \"\"\n      },\n      \"path\": [\n        {\n          \"id\": \"\",\n          \"kind\": \"\",\n          \"name\": \"\"\n        }\n      ]\n    }\n  ]\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/v1/projects/:projectId:allocateIds")
  .post(body)
  .addHeader("content-type", "application/json")
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'POST',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/v1/projects/:projectId:allocateIds',
  headers: {
    'content-type': 'application/json'
  }
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on('data', function (chunk) {
    chunks.push(chunk);
  });

  res.on('end', function () {
    const body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.write(JSON.stringify({
  databaseId: '',
  keys: [
    {
      partitionId: {databaseId: '', namespaceId: '', projectId: ''},
      path: [{id: '', kind: '', name: ''}]
    }
  ]
}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/v1/projects/:projectId:allocateIds',
  headers: {'content-type': 'application/json'},
  body: {
    databaseId: '',
    keys: [
      {
        partitionId: {databaseId: '', namespaceId: '', projectId: ''},
        path: [{id: '', kind: '', name: ''}]
      }
    ]
  },
  json: true
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('POST', '{{baseUrl}}/v1/projects/:projectId:allocateIds');

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send({
  databaseId: '',
  keys: [
    {
      partitionId: {
        databaseId: '',
        namespaceId: '',
        projectId: ''
      },
      path: [
        {
          id: '',
          kind: '',
          name: ''
        }
      ]
    }
  ]
});

req.end(function (res) {
  if (res.error) throw new Error(res.error);

  console.log(res.body);
});
const axios = require('axios').default;

const options = {
  method: 'POST',
  url: '{{baseUrl}}/v1/projects/:projectId:allocateIds',
  headers: {'content-type': 'application/json'},
  data: {
    databaseId: '',
    keys: [
      {
        partitionId: {databaseId: '', namespaceId: '', projectId: ''},
        path: [{id: '', kind: '', name: ''}]
      }
    ]
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/v1/projects/:projectId:allocateIds';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"databaseId":"","keys":[{"partitionId":{"databaseId":"","namespaceId":"","projectId":""},"path":[{"id":"","kind":"","name":""}]}]}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
#import 

NSDictionary *headers = @{ @"content-type": @"application/json" };
NSDictionary *parameters = @{ @"databaseId": @"",
                              @"keys": @[ @{ @"partitionId": @{ @"databaseId": @"", @"namespaceId": @"", @"projectId": @"" }, @"path": @[ @{ @"id": @"", @"kind": @"", @"name": @"" } ] } ] };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/v1/projects/:projectId:allocateIds"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"POST"];
[request setAllHTTPHeaderFields:headers];
[request setHTTPBody:postData];

NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
                                            completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
                                                if (error) {
                                                    NSLog(@"%@", error);
                                                } else {
                                                    NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
                                                    NSLog(@"%@", httpResponse);
                                                }
                                            }];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt

let uri = Uri.of_string "{{baseUrl}}/v1/projects/:projectId:allocateIds" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"databaseId\": \"\",\n  \"keys\": [\n    {\n      \"partitionId\": {\n        \"databaseId\": \"\",\n        \"namespaceId\": \"\",\n        \"projectId\": \"\"\n      },\n      \"path\": [\n        {\n          \"id\": \"\",\n          \"kind\": \"\",\n          \"name\": \"\"\n        }\n      ]\n    }\n  ]\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/v1/projects/:projectId:allocateIds",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "POST",
  CURLOPT_POSTFIELDS => json_encode([
    'databaseId' => '',
    'keys' => [
        [
                'partitionId' => [
                                'databaseId' => '',
                                'namespaceId' => '',
                                'projectId' => ''
                ],
                'path' => [
                                [
                                                                'id' => '',
                                                                'kind' => '',
                                                                'name' => ''
                                ]
                ]
        ]
    ]
  ]),
  CURLOPT_HTTPHEADER => [
    "content-type: application/json"
  ],
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('POST', '{{baseUrl}}/v1/projects/:projectId:allocateIds', [
  'body' => '{
  "databaseId": "",
  "keys": [
    {
      "partitionId": {
        "databaseId": "",
        "namespaceId": "",
        "projectId": ""
      },
      "path": [
        {
          "id": "",
          "kind": "",
          "name": ""
        }
      ]
    }
  ]
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/v1/projects/:projectId:allocateIds');
$request->setMethod(HTTP_METH_POST);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'databaseId' => '',
  'keys' => [
    [
        'partitionId' => [
                'databaseId' => '',
                'namespaceId' => '',
                'projectId' => ''
        ],
        'path' => [
                [
                                'id' => '',
                                'kind' => '',
                                'name' => ''
                ]
        ]
    ]
  ]
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'databaseId' => '',
  'keys' => [
    [
        'partitionId' => [
                'databaseId' => '',
                'namespaceId' => '',
                'projectId' => ''
        ],
        'path' => [
                [
                                'id' => '',
                                'kind' => '',
                                'name' => ''
                ]
        ]
    ]
  ]
]));
$request->setRequestUrl('{{baseUrl}}/v1/projects/:projectId:allocateIds');
$request->setRequestMethod('POST');
$request->setBody($body);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/v1/projects/:projectId:allocateIds' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "databaseId": "",
  "keys": [
    {
      "partitionId": {
        "databaseId": "",
        "namespaceId": "",
        "projectId": ""
      },
      "path": [
        {
          "id": "",
          "kind": "",
          "name": ""
        }
      ]
    }
  ]
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/v1/projects/:projectId:allocateIds' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "databaseId": "",
  "keys": [
    {
      "partitionId": {
        "databaseId": "",
        "namespaceId": "",
        "projectId": ""
      },
      "path": [
        {
          "id": "",
          "kind": "",
          "name": ""
        }
      ]
    }
  ]
}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{\n  \"databaseId\": \"\",\n  \"keys\": [\n    {\n      \"partitionId\": {\n        \"databaseId\": \"\",\n        \"namespaceId\": \"\",\n        \"projectId\": \"\"\n      },\n      \"path\": [\n        {\n          \"id\": \"\",\n          \"kind\": \"\",\n          \"name\": \"\"\n        }\n      ]\n    }\n  ]\n}"

headers = { 'content-type': "application/json" }

conn.request("POST", "/baseUrl/v1/projects/:projectId:allocateIds", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/v1/projects/:projectId:allocateIds"

payload = {
    "databaseId": "",
    "keys": [
        {
            "partitionId": {
                "databaseId": "",
                "namespaceId": "",
                "projectId": ""
            },
            "path": [
                {
                    "id": "",
                    "kind": "",
                    "name": ""
                }
            ]
        }
    ]
}
headers = {"content-type": "application/json"}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/v1/projects/:projectId:allocateIds"

payload <- "{\n  \"databaseId\": \"\",\n  \"keys\": [\n    {\n      \"partitionId\": {\n        \"databaseId\": \"\",\n        \"namespaceId\": \"\",\n        \"projectId\": \"\"\n      },\n      \"path\": [\n        {\n          \"id\": \"\",\n          \"kind\": \"\",\n          \"name\": \"\"\n        }\n      ]\n    }\n  ]\n}"

encode <- "json"

response <- VERB("POST", url, body = payload, content_type("application/json"), encode = encode)

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/v1/projects/:projectId:allocateIds")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)
request["content-type"] = 'application/json'
request.body = "{\n  \"databaseId\": \"\",\n  \"keys\": [\n    {\n      \"partitionId\": {\n        \"databaseId\": \"\",\n        \"namespaceId\": \"\",\n        \"projectId\": \"\"\n      },\n      \"path\": [\n        {\n          \"id\": \"\",\n          \"kind\": \"\",\n          \"name\": \"\"\n        }\n      ]\n    }\n  ]\n}"

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
  headers: {'Content-Type' => 'application/json'}
)

response = conn.post('/baseUrl/v1/projects/:projectId:allocateIds') do |req|
  req.body = "{\n  \"databaseId\": \"\",\n  \"keys\": [\n    {\n      \"partitionId\": {\n        \"databaseId\": \"\",\n        \"namespaceId\": \"\",\n        \"projectId\": \"\"\n      },\n      \"path\": [\n        {\n          \"id\": \"\",\n          \"kind\": \"\",\n          \"name\": \"\"\n        }\n      ]\n    }\n  ]\n}"
end

puts response.status
puts response.body
use serde_json::json;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/v1/projects/:projectId:allocateIds";

    let payload = json!({
        "databaseId": "",
        "keys": (
            json!({
                "partitionId": json!({
                    "databaseId": "",
                    "namespaceId": "",
                    "projectId": ""
                }),
                "path": (
                    json!({
                        "id": "",
                        "kind": "",
                        "name": ""
                    })
                )
            })
        )
    });

    let mut headers = reqwest::header::HeaderMap::new();
    headers.insert("content-type", "application/json".parse().unwrap());

    let client = reqwest::Client::new();
    let response = client.post(url)
        .headers(headers)
        .json(&payload)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request POST \
  --url {{baseUrl}}/v1/projects/:projectId:allocateIds \
  --header 'content-type: application/json' \
  --data '{
  "databaseId": "",
  "keys": [
    {
      "partitionId": {
        "databaseId": "",
        "namespaceId": "",
        "projectId": ""
      },
      "path": [
        {
          "id": "",
          "kind": "",
          "name": ""
        }
      ]
    }
  ]
}'
echo '{
  "databaseId": "",
  "keys": [
    {
      "partitionId": {
        "databaseId": "",
        "namespaceId": "",
        "projectId": ""
      },
      "path": [
        {
          "id": "",
          "kind": "",
          "name": ""
        }
      ]
    }
  ]
}' |  \
  http POST {{baseUrl}}/v1/projects/:projectId:allocateIds \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "databaseId": "",\n  "keys": [\n    {\n      "partitionId": {\n        "databaseId": "",\n        "namespaceId": "",\n        "projectId": ""\n      },\n      "path": [\n        {\n          "id": "",\n          "kind": "",\n          "name": ""\n        }\n      ]\n    }\n  ]\n}' \
  --output-document \
  - {{baseUrl}}/v1/projects/:projectId:allocateIds
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "databaseId": "",
  "keys": [
    [
      "partitionId": [
        "databaseId": "",
        "namespaceId": "",
        "projectId": ""
      ],
      "path": [
        [
          "id": "",
          "kind": "",
          "name": ""
        ]
      ]
    ]
  ]
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/v1/projects/:projectId:allocateIds")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
POST datastore.projects.beginTransaction
{{baseUrl}}/v1/projects/:projectId:beginTransaction
QUERY PARAMS

projectId
BODY json

{
  "databaseId": "",
  "transactionOptions": {
    "readOnly": {
      "readTime": ""
    },
    "readWrite": {
      "previousTransaction": ""
    }
  }
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/v1/projects/:projectId:beginTransaction");

struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "content-type: application/json");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);

curl_easy_setopt(hnd, CURLOPT_POSTFIELDS, "{\n  \"databaseId\": \"\",\n  \"transactionOptions\": {\n    \"readOnly\": {\n      \"readTime\": \"\"\n    },\n    \"readWrite\": {\n      \"previousTransaction\": \"\"\n    }\n  }\n}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/post "{{baseUrl}}/v1/projects/:projectId:beginTransaction" {:content-type :json
                                                                                    :form-params {:databaseId ""
                                                                                                  :transactionOptions {:readOnly {:readTime ""}
                                                                                                                       :readWrite {:previousTransaction ""}}}})
require "http/client"

url = "{{baseUrl}}/v1/projects/:projectId:beginTransaction"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"databaseId\": \"\",\n  \"transactionOptions\": {\n    \"readOnly\": {\n      \"readTime\": \"\"\n    },\n    \"readWrite\": {\n      \"previousTransaction\": \"\"\n    }\n  }\n}"

response = HTTP::Client.post url, headers: headers, body: reqBody
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Post,
    RequestUri = new Uri("{{baseUrl}}/v1/projects/:projectId:beginTransaction"),
    Content = new StringContent("{\n  \"databaseId\": \"\",\n  \"transactionOptions\": {\n    \"readOnly\": {\n      \"readTime\": \"\"\n    },\n    \"readWrite\": {\n      \"previousTransaction\": \"\"\n    }\n  }\n}")
    {
        Headers =
        {
            ContentType = new MediaTypeHeaderValue("application/json")
        }
    }
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/v1/projects/:projectId:beginTransaction");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"databaseId\": \"\",\n  \"transactionOptions\": {\n    \"readOnly\": {\n      \"readTime\": \"\"\n    },\n    \"readWrite\": {\n      \"previousTransaction\": \"\"\n    }\n  }\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/v1/projects/:projectId:beginTransaction"

	payload := strings.NewReader("{\n  \"databaseId\": \"\",\n  \"transactionOptions\": {\n    \"readOnly\": {\n      \"readTime\": \"\"\n    },\n    \"readWrite\": {\n      \"previousTransaction\": \"\"\n    }\n  }\n}")

	req, _ := http.NewRequest("POST", url, payload)

	req.Header.Add("content-type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
POST /baseUrl/v1/projects/:projectId:beginTransaction HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 156

{
  "databaseId": "",
  "transactionOptions": {
    "readOnly": {
      "readTime": ""
    },
    "readWrite": {
      "previousTransaction": ""
    }
  }
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/v1/projects/:projectId:beginTransaction")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"databaseId\": \"\",\n  \"transactionOptions\": {\n    \"readOnly\": {\n      \"readTime\": \"\"\n    },\n    \"readWrite\": {\n      \"previousTransaction\": \"\"\n    }\n  }\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/v1/projects/:projectId:beginTransaction"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"databaseId\": \"\",\n  \"transactionOptions\": {\n    \"readOnly\": {\n      \"readTime\": \"\"\n    },\n    \"readWrite\": {\n      \"previousTransaction\": \"\"\n    }\n  }\n}"))
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\n  \"databaseId\": \"\",\n  \"transactionOptions\": {\n    \"readOnly\": {\n      \"readTime\": \"\"\n    },\n    \"readWrite\": {\n      \"previousTransaction\": \"\"\n    }\n  }\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/v1/projects/:projectId:beginTransaction")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/v1/projects/:projectId:beginTransaction")
  .header("content-type", "application/json")
  .body("{\n  \"databaseId\": \"\",\n  \"transactionOptions\": {\n    \"readOnly\": {\n      \"readTime\": \"\"\n    },\n    \"readWrite\": {\n      \"previousTransaction\": \"\"\n    }\n  }\n}")
  .asString();
const data = JSON.stringify({
  databaseId: '',
  transactionOptions: {
    readOnly: {
      readTime: ''
    },
    readWrite: {
      previousTransaction: ''
    }
  }
});

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('POST', '{{baseUrl}}/v1/projects/:projectId:beginTransaction');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'POST',
  url: '{{baseUrl}}/v1/projects/:projectId:beginTransaction',
  headers: {'content-type': 'application/json'},
  data: {
    databaseId: '',
    transactionOptions: {readOnly: {readTime: ''}, readWrite: {previousTransaction: ''}}
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/v1/projects/:projectId:beginTransaction';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"databaseId":"","transactionOptions":{"readOnly":{"readTime":""},"readWrite":{"previousTransaction":""}}}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/v1/projects/:projectId:beginTransaction',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "databaseId": "",\n  "transactionOptions": {\n    "readOnly": {\n      "readTime": ""\n    },\n    "readWrite": {\n      "previousTransaction": ""\n    }\n  }\n}'
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"databaseId\": \"\",\n  \"transactionOptions\": {\n    \"readOnly\": {\n      \"readTime\": \"\"\n    },\n    \"readWrite\": {\n      \"previousTransaction\": \"\"\n    }\n  }\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/v1/projects/:projectId:beginTransaction")
  .post(body)
  .addHeader("content-type", "application/json")
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'POST',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/v1/projects/:projectId:beginTransaction',
  headers: {
    'content-type': 'application/json'
  }
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on('data', function (chunk) {
    chunks.push(chunk);
  });

  res.on('end', function () {
    const body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.write(JSON.stringify({
  databaseId: '',
  transactionOptions: {readOnly: {readTime: ''}, readWrite: {previousTransaction: ''}}
}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/v1/projects/:projectId:beginTransaction',
  headers: {'content-type': 'application/json'},
  body: {
    databaseId: '',
    transactionOptions: {readOnly: {readTime: ''}, readWrite: {previousTransaction: ''}}
  },
  json: true
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('POST', '{{baseUrl}}/v1/projects/:projectId:beginTransaction');

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send({
  databaseId: '',
  transactionOptions: {
    readOnly: {
      readTime: ''
    },
    readWrite: {
      previousTransaction: ''
    }
  }
});

req.end(function (res) {
  if (res.error) throw new Error(res.error);

  console.log(res.body);
});
const axios = require('axios').default;

const options = {
  method: 'POST',
  url: '{{baseUrl}}/v1/projects/:projectId:beginTransaction',
  headers: {'content-type': 'application/json'},
  data: {
    databaseId: '',
    transactionOptions: {readOnly: {readTime: ''}, readWrite: {previousTransaction: ''}}
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/v1/projects/:projectId:beginTransaction';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"databaseId":"","transactionOptions":{"readOnly":{"readTime":""},"readWrite":{"previousTransaction":""}}}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
#import 

NSDictionary *headers = @{ @"content-type": @"application/json" };
NSDictionary *parameters = @{ @"databaseId": @"",
                              @"transactionOptions": @{ @"readOnly": @{ @"readTime": @"" }, @"readWrite": @{ @"previousTransaction": @"" } } };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/v1/projects/:projectId:beginTransaction"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"POST"];
[request setAllHTTPHeaderFields:headers];
[request setHTTPBody:postData];

NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
                                            completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
                                                if (error) {
                                                    NSLog(@"%@", error);
                                                } else {
                                                    NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
                                                    NSLog(@"%@", httpResponse);
                                                }
                                            }];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt

let uri = Uri.of_string "{{baseUrl}}/v1/projects/:projectId:beginTransaction" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"databaseId\": \"\",\n  \"transactionOptions\": {\n    \"readOnly\": {\n      \"readTime\": \"\"\n    },\n    \"readWrite\": {\n      \"previousTransaction\": \"\"\n    }\n  }\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/v1/projects/:projectId:beginTransaction",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "POST",
  CURLOPT_POSTFIELDS => json_encode([
    'databaseId' => '',
    'transactionOptions' => [
        'readOnly' => [
                'readTime' => ''
        ],
        'readWrite' => [
                'previousTransaction' => ''
        ]
    ]
  ]),
  CURLOPT_HTTPHEADER => [
    "content-type: application/json"
  ],
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('POST', '{{baseUrl}}/v1/projects/:projectId:beginTransaction', [
  'body' => '{
  "databaseId": "",
  "transactionOptions": {
    "readOnly": {
      "readTime": ""
    },
    "readWrite": {
      "previousTransaction": ""
    }
  }
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/v1/projects/:projectId:beginTransaction');
$request->setMethod(HTTP_METH_POST);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'databaseId' => '',
  'transactionOptions' => [
    'readOnly' => [
        'readTime' => ''
    ],
    'readWrite' => [
        'previousTransaction' => ''
    ]
  ]
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'databaseId' => '',
  'transactionOptions' => [
    'readOnly' => [
        'readTime' => ''
    ],
    'readWrite' => [
        'previousTransaction' => ''
    ]
  ]
]));
$request->setRequestUrl('{{baseUrl}}/v1/projects/:projectId:beginTransaction');
$request->setRequestMethod('POST');
$request->setBody($body);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/v1/projects/:projectId:beginTransaction' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "databaseId": "",
  "transactionOptions": {
    "readOnly": {
      "readTime": ""
    },
    "readWrite": {
      "previousTransaction": ""
    }
  }
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/v1/projects/:projectId:beginTransaction' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "databaseId": "",
  "transactionOptions": {
    "readOnly": {
      "readTime": ""
    },
    "readWrite": {
      "previousTransaction": ""
    }
  }
}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{\n  \"databaseId\": \"\",\n  \"transactionOptions\": {\n    \"readOnly\": {\n      \"readTime\": \"\"\n    },\n    \"readWrite\": {\n      \"previousTransaction\": \"\"\n    }\n  }\n}"

headers = { 'content-type': "application/json" }

conn.request("POST", "/baseUrl/v1/projects/:projectId:beginTransaction", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/v1/projects/:projectId:beginTransaction"

payload = {
    "databaseId": "",
    "transactionOptions": {
        "readOnly": { "readTime": "" },
        "readWrite": { "previousTransaction": "" }
    }
}
headers = {"content-type": "application/json"}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/v1/projects/:projectId:beginTransaction"

payload <- "{\n  \"databaseId\": \"\",\n  \"transactionOptions\": {\n    \"readOnly\": {\n      \"readTime\": \"\"\n    },\n    \"readWrite\": {\n      \"previousTransaction\": \"\"\n    }\n  }\n}"

encode <- "json"

response <- VERB("POST", url, body = payload, content_type("application/json"), encode = encode)

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/v1/projects/:projectId:beginTransaction")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)
request["content-type"] = 'application/json'
request.body = "{\n  \"databaseId\": \"\",\n  \"transactionOptions\": {\n    \"readOnly\": {\n      \"readTime\": \"\"\n    },\n    \"readWrite\": {\n      \"previousTransaction\": \"\"\n    }\n  }\n}"

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
  headers: {'Content-Type' => 'application/json'}
)

response = conn.post('/baseUrl/v1/projects/:projectId:beginTransaction') do |req|
  req.body = "{\n  \"databaseId\": \"\",\n  \"transactionOptions\": {\n    \"readOnly\": {\n      \"readTime\": \"\"\n    },\n    \"readWrite\": {\n      \"previousTransaction\": \"\"\n    }\n  }\n}"
end

puts response.status
puts response.body
use serde_json::json;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/v1/projects/:projectId:beginTransaction";

    let payload = json!({
        "databaseId": "",
        "transactionOptions": json!({
            "readOnly": json!({"readTime": ""}),
            "readWrite": json!({"previousTransaction": ""})
        })
    });

    let mut headers = reqwest::header::HeaderMap::new();
    headers.insert("content-type", "application/json".parse().unwrap());

    let client = reqwest::Client::new();
    let response = client.post(url)
        .headers(headers)
        .json(&payload)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request POST \
  --url {{baseUrl}}/v1/projects/:projectId:beginTransaction \
  --header 'content-type: application/json' \
  --data '{
  "databaseId": "",
  "transactionOptions": {
    "readOnly": {
      "readTime": ""
    },
    "readWrite": {
      "previousTransaction": ""
    }
  }
}'
echo '{
  "databaseId": "",
  "transactionOptions": {
    "readOnly": {
      "readTime": ""
    },
    "readWrite": {
      "previousTransaction": ""
    }
  }
}' |  \
  http POST {{baseUrl}}/v1/projects/:projectId:beginTransaction \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "databaseId": "",\n  "transactionOptions": {\n    "readOnly": {\n      "readTime": ""\n    },\n    "readWrite": {\n      "previousTransaction": ""\n    }\n  }\n}' \
  --output-document \
  - {{baseUrl}}/v1/projects/:projectId:beginTransaction
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "databaseId": "",
  "transactionOptions": [
    "readOnly": ["readTime": ""],
    "readWrite": ["previousTransaction": ""]
  ]
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/v1/projects/:projectId:beginTransaction")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
POST datastore.projects.commit
{{baseUrl}}/v1/projects/:projectId:commit
QUERY PARAMS

projectId
BODY json

{
  "databaseId": "",
  "mode": "",
  "mutations": [
    {
      "baseVersion": "",
      "conflictResolutionStrategy": "",
      "delete": {
        "partitionId": {
          "databaseId": "",
          "namespaceId": "",
          "projectId": ""
        },
        "path": [
          {
            "id": "",
            "kind": "",
            "name": ""
          }
        ]
      },
      "insert": {
        "key": {},
        "properties": {}
      },
      "propertyMask": {
        "paths": []
      },
      "propertyTransforms": [
        {
          "appendMissingElements": {
            "values": []
          },
          "increment": {
            "arrayValue": {},
            "blobValue": "",
            "booleanValue": false,
            "doubleValue": "",
            "entityValue": {},
            "excludeFromIndexes": false,
            "geoPointValue": {
              "latitude": "",
              "longitude": ""
            },
            "integerValue": "",
            "keyValue": {},
            "meaning": 0,
            "nullValue": "",
            "stringValue": "",
            "timestampValue": ""
          },
          "maximum": {},
          "minimum": {},
          "property": "",
          "removeAllFromArray": {},
          "setToServerValue": ""
        }
      ],
      "update": {},
      "updateTime": "",
      "upsert": {}
    }
  ],
  "singleUseTransaction": {
    "readOnly": {
      "readTime": ""
    },
    "readWrite": {
      "previousTransaction": ""
    }
  },
  "transaction": ""
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/v1/projects/:projectId:commit");

struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "content-type: application/json");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);

curl_easy_setopt(hnd, CURLOPT_POSTFIELDS, "{\n  \"databaseId\": \"\",\n  \"mode\": \"\",\n  \"mutations\": [\n    {\n      \"baseVersion\": \"\",\n      \"conflictResolutionStrategy\": \"\",\n      \"delete\": {\n        \"partitionId\": {\n          \"databaseId\": \"\",\n          \"namespaceId\": \"\",\n          \"projectId\": \"\"\n        },\n        \"path\": [\n          {\n            \"id\": \"\",\n            \"kind\": \"\",\n            \"name\": \"\"\n          }\n        ]\n      },\n      \"insert\": {\n        \"key\": {},\n        \"properties\": {}\n      },\n      \"propertyMask\": {\n        \"paths\": []\n      },\n      \"propertyTransforms\": [\n        {\n          \"appendMissingElements\": {\n            \"values\": []\n          },\n          \"increment\": {\n            \"arrayValue\": {},\n            \"blobValue\": \"\",\n            \"booleanValue\": false,\n            \"doubleValue\": \"\",\n            \"entityValue\": {},\n            \"excludeFromIndexes\": false,\n            \"geoPointValue\": {\n              \"latitude\": \"\",\n              \"longitude\": \"\"\n            },\n            \"integerValue\": \"\",\n            \"keyValue\": {},\n            \"meaning\": 0,\n            \"nullValue\": \"\",\n            \"stringValue\": \"\",\n            \"timestampValue\": \"\"\n          },\n          \"maximum\": {},\n          \"minimum\": {},\n          \"property\": \"\",\n          \"removeAllFromArray\": {},\n          \"setToServerValue\": \"\"\n        }\n      ],\n      \"update\": {},\n      \"updateTime\": \"\",\n      \"upsert\": {}\n    }\n  ],\n  \"singleUseTransaction\": {\n    \"readOnly\": {\n      \"readTime\": \"\"\n    },\n    \"readWrite\": {\n      \"previousTransaction\": \"\"\n    }\n  },\n  \"transaction\": \"\"\n}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/post "{{baseUrl}}/v1/projects/:projectId:commit" {:content-type :json
                                                                          :form-params {:databaseId ""
                                                                                        :mode ""
                                                                                        :mutations [{:baseVersion ""
                                                                                                     :conflictResolutionStrategy ""
                                                                                                     :delete {:partitionId {:databaseId ""
                                                                                                                            :namespaceId ""
                                                                                                                            :projectId ""}
                                                                                                              :path [{:id ""
                                                                                                                      :kind ""
                                                                                                                      :name ""}]}
                                                                                                     :insert {:key {}
                                                                                                              :properties {}}
                                                                                                     :propertyMask {:paths []}
                                                                                                     :propertyTransforms [{:appendMissingElements {:values []}
                                                                                                                           :increment {:arrayValue {}
                                                                                                                                       :blobValue ""
                                                                                                                                       :booleanValue false
                                                                                                                                       :doubleValue ""
                                                                                                                                       :entityValue {}
                                                                                                                                       :excludeFromIndexes false
                                                                                                                                       :geoPointValue {:latitude ""
                                                                                                                                                       :longitude ""}
                                                                                                                                       :integerValue ""
                                                                                                                                       :keyValue {}
                                                                                                                                       :meaning 0
                                                                                                                                       :nullValue ""
                                                                                                                                       :stringValue ""
                                                                                                                                       :timestampValue ""}
                                                                                                                           :maximum {}
                                                                                                                           :minimum {}
                                                                                                                           :property ""
                                                                                                                           :removeAllFromArray {}
                                                                                                                           :setToServerValue ""}]
                                                                                                     :update {}
                                                                                                     :updateTime ""
                                                                                                     :upsert {}}]
                                                                                        :singleUseTransaction {:readOnly {:readTime ""}
                                                                                                               :readWrite {:previousTransaction ""}}
                                                                                        :transaction ""}})
require "http/client"

url = "{{baseUrl}}/v1/projects/:projectId:commit"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"databaseId\": \"\",\n  \"mode\": \"\",\n  \"mutations\": [\n    {\n      \"baseVersion\": \"\",\n      \"conflictResolutionStrategy\": \"\",\n      \"delete\": {\n        \"partitionId\": {\n          \"databaseId\": \"\",\n          \"namespaceId\": \"\",\n          \"projectId\": \"\"\n        },\n        \"path\": [\n          {\n            \"id\": \"\",\n            \"kind\": \"\",\n            \"name\": \"\"\n          }\n        ]\n      },\n      \"insert\": {\n        \"key\": {},\n        \"properties\": {}\n      },\n      \"propertyMask\": {\n        \"paths\": []\n      },\n      \"propertyTransforms\": [\n        {\n          \"appendMissingElements\": {\n            \"values\": []\n          },\n          \"increment\": {\n            \"arrayValue\": {},\n            \"blobValue\": \"\",\n            \"booleanValue\": false,\n            \"doubleValue\": \"\",\n            \"entityValue\": {},\n            \"excludeFromIndexes\": false,\n            \"geoPointValue\": {\n              \"latitude\": \"\",\n              \"longitude\": \"\"\n            },\n            \"integerValue\": \"\",\n            \"keyValue\": {},\n            \"meaning\": 0,\n            \"nullValue\": \"\",\n            \"stringValue\": \"\",\n            \"timestampValue\": \"\"\n          },\n          \"maximum\": {},\n          \"minimum\": {},\n          \"property\": \"\",\n          \"removeAllFromArray\": {},\n          \"setToServerValue\": \"\"\n        }\n      ],\n      \"update\": {},\n      \"updateTime\": \"\",\n      \"upsert\": {}\n    }\n  ],\n  \"singleUseTransaction\": {\n    \"readOnly\": {\n      \"readTime\": \"\"\n    },\n    \"readWrite\": {\n      \"previousTransaction\": \"\"\n    }\n  },\n  \"transaction\": \"\"\n}"

response = HTTP::Client.post url, headers: headers, body: reqBody
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Post,
    RequestUri = new Uri("{{baseUrl}}/v1/projects/:projectId:commit"),
    Content = new StringContent("{\n  \"databaseId\": \"\",\n  \"mode\": \"\",\n  \"mutations\": [\n    {\n      \"baseVersion\": \"\",\n      \"conflictResolutionStrategy\": \"\",\n      \"delete\": {\n        \"partitionId\": {\n          \"databaseId\": \"\",\n          \"namespaceId\": \"\",\n          \"projectId\": \"\"\n        },\n        \"path\": [\n          {\n            \"id\": \"\",\n            \"kind\": \"\",\n            \"name\": \"\"\n          }\n        ]\n      },\n      \"insert\": {\n        \"key\": {},\n        \"properties\": {}\n      },\n      \"propertyMask\": {\n        \"paths\": []\n      },\n      \"propertyTransforms\": [\n        {\n          \"appendMissingElements\": {\n            \"values\": []\n          },\n          \"increment\": {\n            \"arrayValue\": {},\n            \"blobValue\": \"\",\n            \"booleanValue\": false,\n            \"doubleValue\": \"\",\n            \"entityValue\": {},\n            \"excludeFromIndexes\": false,\n            \"geoPointValue\": {\n              \"latitude\": \"\",\n              \"longitude\": \"\"\n            },\n            \"integerValue\": \"\",\n            \"keyValue\": {},\n            \"meaning\": 0,\n            \"nullValue\": \"\",\n            \"stringValue\": \"\",\n            \"timestampValue\": \"\"\n          },\n          \"maximum\": {},\n          \"minimum\": {},\n          \"property\": \"\",\n          \"removeAllFromArray\": {},\n          \"setToServerValue\": \"\"\n        }\n      ],\n      \"update\": {},\n      \"updateTime\": \"\",\n      \"upsert\": {}\n    }\n  ],\n  \"singleUseTransaction\": {\n    \"readOnly\": {\n      \"readTime\": \"\"\n    },\n    \"readWrite\": {\n      \"previousTransaction\": \"\"\n    }\n  },\n  \"transaction\": \"\"\n}")
    {
        Headers =
        {
            ContentType = new MediaTypeHeaderValue("application/json")
        }
    }
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/v1/projects/:projectId:commit");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"databaseId\": \"\",\n  \"mode\": \"\",\n  \"mutations\": [\n    {\n      \"baseVersion\": \"\",\n      \"conflictResolutionStrategy\": \"\",\n      \"delete\": {\n        \"partitionId\": {\n          \"databaseId\": \"\",\n          \"namespaceId\": \"\",\n          \"projectId\": \"\"\n        },\n        \"path\": [\n          {\n            \"id\": \"\",\n            \"kind\": \"\",\n            \"name\": \"\"\n          }\n        ]\n      },\n      \"insert\": {\n        \"key\": {},\n        \"properties\": {}\n      },\n      \"propertyMask\": {\n        \"paths\": []\n      },\n      \"propertyTransforms\": [\n        {\n          \"appendMissingElements\": {\n            \"values\": []\n          },\n          \"increment\": {\n            \"arrayValue\": {},\n            \"blobValue\": \"\",\n            \"booleanValue\": false,\n            \"doubleValue\": \"\",\n            \"entityValue\": {},\n            \"excludeFromIndexes\": false,\n            \"geoPointValue\": {\n              \"latitude\": \"\",\n              \"longitude\": \"\"\n            },\n            \"integerValue\": \"\",\n            \"keyValue\": {},\n            \"meaning\": 0,\n            \"nullValue\": \"\",\n            \"stringValue\": \"\",\n            \"timestampValue\": \"\"\n          },\n          \"maximum\": {},\n          \"minimum\": {},\n          \"property\": \"\",\n          \"removeAllFromArray\": {},\n          \"setToServerValue\": \"\"\n        }\n      ],\n      \"update\": {},\n      \"updateTime\": \"\",\n      \"upsert\": {}\n    }\n  ],\n  \"singleUseTransaction\": {\n    \"readOnly\": {\n      \"readTime\": \"\"\n    },\n    \"readWrite\": {\n      \"previousTransaction\": \"\"\n    }\n  },\n  \"transaction\": \"\"\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/v1/projects/:projectId:commit"

	payload := strings.NewReader("{\n  \"databaseId\": \"\",\n  \"mode\": \"\",\n  \"mutations\": [\n    {\n      \"baseVersion\": \"\",\n      \"conflictResolutionStrategy\": \"\",\n      \"delete\": {\n        \"partitionId\": {\n          \"databaseId\": \"\",\n          \"namespaceId\": \"\",\n          \"projectId\": \"\"\n        },\n        \"path\": [\n          {\n            \"id\": \"\",\n            \"kind\": \"\",\n            \"name\": \"\"\n          }\n        ]\n      },\n      \"insert\": {\n        \"key\": {},\n        \"properties\": {}\n      },\n      \"propertyMask\": {\n        \"paths\": []\n      },\n      \"propertyTransforms\": [\n        {\n          \"appendMissingElements\": {\n            \"values\": []\n          },\n          \"increment\": {\n            \"arrayValue\": {},\n            \"blobValue\": \"\",\n            \"booleanValue\": false,\n            \"doubleValue\": \"\",\n            \"entityValue\": {},\n            \"excludeFromIndexes\": false,\n            \"geoPointValue\": {\n              \"latitude\": \"\",\n              \"longitude\": \"\"\n            },\n            \"integerValue\": \"\",\n            \"keyValue\": {},\n            \"meaning\": 0,\n            \"nullValue\": \"\",\n            \"stringValue\": \"\",\n            \"timestampValue\": \"\"\n          },\n          \"maximum\": {},\n          \"minimum\": {},\n          \"property\": \"\",\n          \"removeAllFromArray\": {},\n          \"setToServerValue\": \"\"\n        }\n      ],\n      \"update\": {},\n      \"updateTime\": \"\",\n      \"upsert\": {}\n    }\n  ],\n  \"singleUseTransaction\": {\n    \"readOnly\": {\n      \"readTime\": \"\"\n    },\n    \"readWrite\": {\n      \"previousTransaction\": \"\"\n    }\n  },\n  \"transaction\": \"\"\n}")

	req, _ := http.NewRequest("POST", url, payload)

	req.Header.Add("content-type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
POST /baseUrl/v1/projects/:projectId:commit HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 1545

{
  "databaseId": "",
  "mode": "",
  "mutations": [
    {
      "baseVersion": "",
      "conflictResolutionStrategy": "",
      "delete": {
        "partitionId": {
          "databaseId": "",
          "namespaceId": "",
          "projectId": ""
        },
        "path": [
          {
            "id": "",
            "kind": "",
            "name": ""
          }
        ]
      },
      "insert": {
        "key": {},
        "properties": {}
      },
      "propertyMask": {
        "paths": []
      },
      "propertyTransforms": [
        {
          "appendMissingElements": {
            "values": []
          },
          "increment": {
            "arrayValue": {},
            "blobValue": "",
            "booleanValue": false,
            "doubleValue": "",
            "entityValue": {},
            "excludeFromIndexes": false,
            "geoPointValue": {
              "latitude": "",
              "longitude": ""
            },
            "integerValue": "",
            "keyValue": {},
            "meaning": 0,
            "nullValue": "",
            "stringValue": "",
            "timestampValue": ""
          },
          "maximum": {},
          "minimum": {},
          "property": "",
          "removeAllFromArray": {},
          "setToServerValue": ""
        }
      ],
      "update": {},
      "updateTime": "",
      "upsert": {}
    }
  ],
  "singleUseTransaction": {
    "readOnly": {
      "readTime": ""
    },
    "readWrite": {
      "previousTransaction": ""
    }
  },
  "transaction": ""
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/v1/projects/:projectId:commit")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"databaseId\": \"\",\n  \"mode\": \"\",\n  \"mutations\": [\n    {\n      \"baseVersion\": \"\",\n      \"conflictResolutionStrategy\": \"\",\n      \"delete\": {\n        \"partitionId\": {\n          \"databaseId\": \"\",\n          \"namespaceId\": \"\",\n          \"projectId\": \"\"\n        },\n        \"path\": [\n          {\n            \"id\": \"\",\n            \"kind\": \"\",\n            \"name\": \"\"\n          }\n        ]\n      },\n      \"insert\": {\n        \"key\": {},\n        \"properties\": {}\n      },\n      \"propertyMask\": {\n        \"paths\": []\n      },\n      \"propertyTransforms\": [\n        {\n          \"appendMissingElements\": {\n            \"values\": []\n          },\n          \"increment\": {\n            \"arrayValue\": {},\n            \"blobValue\": \"\",\n            \"booleanValue\": false,\n            \"doubleValue\": \"\",\n            \"entityValue\": {},\n            \"excludeFromIndexes\": false,\n            \"geoPointValue\": {\n              \"latitude\": \"\",\n              \"longitude\": \"\"\n            },\n            \"integerValue\": \"\",\n            \"keyValue\": {},\n            \"meaning\": 0,\n            \"nullValue\": \"\",\n            \"stringValue\": \"\",\n            \"timestampValue\": \"\"\n          },\n          \"maximum\": {},\n          \"minimum\": {},\n          \"property\": \"\",\n          \"removeAllFromArray\": {},\n          \"setToServerValue\": \"\"\n        }\n      ],\n      \"update\": {},\n      \"updateTime\": \"\",\n      \"upsert\": {}\n    }\n  ],\n  \"singleUseTransaction\": {\n    \"readOnly\": {\n      \"readTime\": \"\"\n    },\n    \"readWrite\": {\n      \"previousTransaction\": \"\"\n    }\n  },\n  \"transaction\": \"\"\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/v1/projects/:projectId:commit"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"databaseId\": \"\",\n  \"mode\": \"\",\n  \"mutations\": [\n    {\n      \"baseVersion\": \"\",\n      \"conflictResolutionStrategy\": \"\",\n      \"delete\": {\n        \"partitionId\": {\n          \"databaseId\": \"\",\n          \"namespaceId\": \"\",\n          \"projectId\": \"\"\n        },\n        \"path\": [\n          {\n            \"id\": \"\",\n            \"kind\": \"\",\n            \"name\": \"\"\n          }\n        ]\n      },\n      \"insert\": {\n        \"key\": {},\n        \"properties\": {}\n      },\n      \"propertyMask\": {\n        \"paths\": []\n      },\n      \"propertyTransforms\": [\n        {\n          \"appendMissingElements\": {\n            \"values\": []\n          },\n          \"increment\": {\n            \"arrayValue\": {},\n            \"blobValue\": \"\",\n            \"booleanValue\": false,\n            \"doubleValue\": \"\",\n            \"entityValue\": {},\n            \"excludeFromIndexes\": false,\n            \"geoPointValue\": {\n              \"latitude\": \"\",\n              \"longitude\": \"\"\n            },\n            \"integerValue\": \"\",\n            \"keyValue\": {},\n            \"meaning\": 0,\n            \"nullValue\": \"\",\n            \"stringValue\": \"\",\n            \"timestampValue\": \"\"\n          },\n          \"maximum\": {},\n          \"minimum\": {},\n          \"property\": \"\",\n          \"removeAllFromArray\": {},\n          \"setToServerValue\": \"\"\n        }\n      ],\n      \"update\": {},\n      \"updateTime\": \"\",\n      \"upsert\": {}\n    }\n  ],\n  \"singleUseTransaction\": {\n    \"readOnly\": {\n      \"readTime\": \"\"\n    },\n    \"readWrite\": {\n      \"previousTransaction\": \"\"\n    }\n  },\n  \"transaction\": \"\"\n}"))
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\n  \"databaseId\": \"\",\n  \"mode\": \"\",\n  \"mutations\": [\n    {\n      \"baseVersion\": \"\",\n      \"conflictResolutionStrategy\": \"\",\n      \"delete\": {\n        \"partitionId\": {\n          \"databaseId\": \"\",\n          \"namespaceId\": \"\",\n          \"projectId\": \"\"\n        },\n        \"path\": [\n          {\n            \"id\": \"\",\n            \"kind\": \"\",\n            \"name\": \"\"\n          }\n        ]\n      },\n      \"insert\": {\n        \"key\": {},\n        \"properties\": {}\n      },\n      \"propertyMask\": {\n        \"paths\": []\n      },\n      \"propertyTransforms\": [\n        {\n          \"appendMissingElements\": {\n            \"values\": []\n          },\n          \"increment\": {\n            \"arrayValue\": {},\n            \"blobValue\": \"\",\n            \"booleanValue\": false,\n            \"doubleValue\": \"\",\n            \"entityValue\": {},\n            \"excludeFromIndexes\": false,\n            \"geoPointValue\": {\n              \"latitude\": \"\",\n              \"longitude\": \"\"\n            },\n            \"integerValue\": \"\",\n            \"keyValue\": {},\n            \"meaning\": 0,\n            \"nullValue\": \"\",\n            \"stringValue\": \"\",\n            \"timestampValue\": \"\"\n          },\n          \"maximum\": {},\n          \"minimum\": {},\n          \"property\": \"\",\n          \"removeAllFromArray\": {},\n          \"setToServerValue\": \"\"\n        }\n      ],\n      \"update\": {},\n      \"updateTime\": \"\",\n      \"upsert\": {}\n    }\n  ],\n  \"singleUseTransaction\": {\n    \"readOnly\": {\n      \"readTime\": \"\"\n    },\n    \"readWrite\": {\n      \"previousTransaction\": \"\"\n    }\n  },\n  \"transaction\": \"\"\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/v1/projects/:projectId:commit")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/v1/projects/:projectId:commit")
  .header("content-type", "application/json")
  .body("{\n  \"databaseId\": \"\",\n  \"mode\": \"\",\n  \"mutations\": [\n    {\n      \"baseVersion\": \"\",\n      \"conflictResolutionStrategy\": \"\",\n      \"delete\": {\n        \"partitionId\": {\n          \"databaseId\": \"\",\n          \"namespaceId\": \"\",\n          \"projectId\": \"\"\n        },\n        \"path\": [\n          {\n            \"id\": \"\",\n            \"kind\": \"\",\n            \"name\": \"\"\n          }\n        ]\n      },\n      \"insert\": {\n        \"key\": {},\n        \"properties\": {}\n      },\n      \"propertyMask\": {\n        \"paths\": []\n      },\n      \"propertyTransforms\": [\n        {\n          \"appendMissingElements\": {\n            \"values\": []\n          },\n          \"increment\": {\n            \"arrayValue\": {},\n            \"blobValue\": \"\",\n            \"booleanValue\": false,\n            \"doubleValue\": \"\",\n            \"entityValue\": {},\n            \"excludeFromIndexes\": false,\n            \"geoPointValue\": {\n              \"latitude\": \"\",\n              \"longitude\": \"\"\n            },\n            \"integerValue\": \"\",\n            \"keyValue\": {},\n            \"meaning\": 0,\n            \"nullValue\": \"\",\n            \"stringValue\": \"\",\n            \"timestampValue\": \"\"\n          },\n          \"maximum\": {},\n          \"minimum\": {},\n          \"property\": \"\",\n          \"removeAllFromArray\": {},\n          \"setToServerValue\": \"\"\n        }\n      ],\n      \"update\": {},\n      \"updateTime\": \"\",\n      \"upsert\": {}\n    }\n  ],\n  \"singleUseTransaction\": {\n    \"readOnly\": {\n      \"readTime\": \"\"\n    },\n    \"readWrite\": {\n      \"previousTransaction\": \"\"\n    }\n  },\n  \"transaction\": \"\"\n}")
  .asString();
const data = JSON.stringify({
  databaseId: '',
  mode: '',
  mutations: [
    {
      baseVersion: '',
      conflictResolutionStrategy: '',
      delete: {
        partitionId: {
          databaseId: '',
          namespaceId: '',
          projectId: ''
        },
        path: [
          {
            id: '',
            kind: '',
            name: ''
          }
        ]
      },
      insert: {
        key: {},
        properties: {}
      },
      propertyMask: {
        paths: []
      },
      propertyTransforms: [
        {
          appendMissingElements: {
            values: []
          },
          increment: {
            arrayValue: {},
            blobValue: '',
            booleanValue: false,
            doubleValue: '',
            entityValue: {},
            excludeFromIndexes: false,
            geoPointValue: {
              latitude: '',
              longitude: ''
            },
            integerValue: '',
            keyValue: {},
            meaning: 0,
            nullValue: '',
            stringValue: '',
            timestampValue: ''
          },
          maximum: {},
          minimum: {},
          property: '',
          removeAllFromArray: {},
          setToServerValue: ''
        }
      ],
      update: {},
      updateTime: '',
      upsert: {}
    }
  ],
  singleUseTransaction: {
    readOnly: {
      readTime: ''
    },
    readWrite: {
      previousTransaction: ''
    }
  },
  transaction: ''
});

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('POST', '{{baseUrl}}/v1/projects/:projectId:commit');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'POST',
  url: '{{baseUrl}}/v1/projects/:projectId:commit',
  headers: {'content-type': 'application/json'},
  data: {
    databaseId: '',
    mode: '',
    mutations: [
      {
        baseVersion: '',
        conflictResolutionStrategy: '',
        delete: {
          partitionId: {databaseId: '', namespaceId: '', projectId: ''},
          path: [{id: '', kind: '', name: ''}]
        },
        insert: {key: {}, properties: {}},
        propertyMask: {paths: []},
        propertyTransforms: [
          {
            appendMissingElements: {values: []},
            increment: {
              arrayValue: {},
              blobValue: '',
              booleanValue: false,
              doubleValue: '',
              entityValue: {},
              excludeFromIndexes: false,
              geoPointValue: {latitude: '', longitude: ''},
              integerValue: '',
              keyValue: {},
              meaning: 0,
              nullValue: '',
              stringValue: '',
              timestampValue: ''
            },
            maximum: {},
            minimum: {},
            property: '',
            removeAllFromArray: {},
            setToServerValue: ''
          }
        ],
        update: {},
        updateTime: '',
        upsert: {}
      }
    ],
    singleUseTransaction: {readOnly: {readTime: ''}, readWrite: {previousTransaction: ''}},
    transaction: ''
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/v1/projects/:projectId:commit';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"databaseId":"","mode":"","mutations":[{"baseVersion":"","conflictResolutionStrategy":"","delete":{"partitionId":{"databaseId":"","namespaceId":"","projectId":""},"path":[{"id":"","kind":"","name":""}]},"insert":{"key":{},"properties":{}},"propertyMask":{"paths":[]},"propertyTransforms":[{"appendMissingElements":{"values":[]},"increment":{"arrayValue":{},"blobValue":"","booleanValue":false,"doubleValue":"","entityValue":{},"excludeFromIndexes":false,"geoPointValue":{"latitude":"","longitude":""},"integerValue":"","keyValue":{},"meaning":0,"nullValue":"","stringValue":"","timestampValue":""},"maximum":{},"minimum":{},"property":"","removeAllFromArray":{},"setToServerValue":""}],"update":{},"updateTime":"","upsert":{}}],"singleUseTransaction":{"readOnly":{"readTime":""},"readWrite":{"previousTransaction":""}},"transaction":""}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/v1/projects/:projectId:commit',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "databaseId": "",\n  "mode": "",\n  "mutations": [\n    {\n      "baseVersion": "",\n      "conflictResolutionStrategy": "",\n      "delete": {\n        "partitionId": {\n          "databaseId": "",\n          "namespaceId": "",\n          "projectId": ""\n        },\n        "path": [\n          {\n            "id": "",\n            "kind": "",\n            "name": ""\n          }\n        ]\n      },\n      "insert": {\n        "key": {},\n        "properties": {}\n      },\n      "propertyMask": {\n        "paths": []\n      },\n      "propertyTransforms": [\n        {\n          "appendMissingElements": {\n            "values": []\n          },\n          "increment": {\n            "arrayValue": {},\n            "blobValue": "",\n            "booleanValue": false,\n            "doubleValue": "",\n            "entityValue": {},\n            "excludeFromIndexes": false,\n            "geoPointValue": {\n              "latitude": "",\n              "longitude": ""\n            },\n            "integerValue": "",\n            "keyValue": {},\n            "meaning": 0,\n            "nullValue": "",\n            "stringValue": "",\n            "timestampValue": ""\n          },\n          "maximum": {},\n          "minimum": {},\n          "property": "",\n          "removeAllFromArray": {},\n          "setToServerValue": ""\n        }\n      ],\n      "update": {},\n      "updateTime": "",\n      "upsert": {}\n    }\n  ],\n  "singleUseTransaction": {\n    "readOnly": {\n      "readTime": ""\n    },\n    "readWrite": {\n      "previousTransaction": ""\n    }\n  },\n  "transaction": ""\n}'
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"databaseId\": \"\",\n  \"mode\": \"\",\n  \"mutations\": [\n    {\n      \"baseVersion\": \"\",\n      \"conflictResolutionStrategy\": \"\",\n      \"delete\": {\n        \"partitionId\": {\n          \"databaseId\": \"\",\n          \"namespaceId\": \"\",\n          \"projectId\": \"\"\n        },\n        \"path\": [\n          {\n            \"id\": \"\",\n            \"kind\": \"\",\n            \"name\": \"\"\n          }\n        ]\n      },\n      \"insert\": {\n        \"key\": {},\n        \"properties\": {}\n      },\n      \"propertyMask\": {\n        \"paths\": []\n      },\n      \"propertyTransforms\": [\n        {\n          \"appendMissingElements\": {\n            \"values\": []\n          },\n          \"increment\": {\n            \"arrayValue\": {},\n            \"blobValue\": \"\",\n            \"booleanValue\": false,\n            \"doubleValue\": \"\",\n            \"entityValue\": {},\n            \"excludeFromIndexes\": false,\n            \"geoPointValue\": {\n              \"latitude\": \"\",\n              \"longitude\": \"\"\n            },\n            \"integerValue\": \"\",\n            \"keyValue\": {},\n            \"meaning\": 0,\n            \"nullValue\": \"\",\n            \"stringValue\": \"\",\n            \"timestampValue\": \"\"\n          },\n          \"maximum\": {},\n          \"minimum\": {},\n          \"property\": \"\",\n          \"removeAllFromArray\": {},\n          \"setToServerValue\": \"\"\n        }\n      ],\n      \"update\": {},\n      \"updateTime\": \"\",\n      \"upsert\": {}\n    }\n  ],\n  \"singleUseTransaction\": {\n    \"readOnly\": {\n      \"readTime\": \"\"\n    },\n    \"readWrite\": {\n      \"previousTransaction\": \"\"\n    }\n  },\n  \"transaction\": \"\"\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/v1/projects/:projectId:commit")
  .post(body)
  .addHeader("content-type", "application/json")
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'POST',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/v1/projects/:projectId:commit',
  headers: {
    'content-type': 'application/json'
  }
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on('data', function (chunk) {
    chunks.push(chunk);
  });

  res.on('end', function () {
    const body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.write(JSON.stringify({
  databaseId: '',
  mode: '',
  mutations: [
    {
      baseVersion: '',
      conflictResolutionStrategy: '',
      delete: {
        partitionId: {databaseId: '', namespaceId: '', projectId: ''},
        path: [{id: '', kind: '', name: ''}]
      },
      insert: {key: {}, properties: {}},
      propertyMask: {paths: []},
      propertyTransforms: [
        {
          appendMissingElements: {values: []},
          increment: {
            arrayValue: {},
            blobValue: '',
            booleanValue: false,
            doubleValue: '',
            entityValue: {},
            excludeFromIndexes: false,
            geoPointValue: {latitude: '', longitude: ''},
            integerValue: '',
            keyValue: {},
            meaning: 0,
            nullValue: '',
            stringValue: '',
            timestampValue: ''
          },
          maximum: {},
          minimum: {},
          property: '',
          removeAllFromArray: {},
          setToServerValue: ''
        }
      ],
      update: {},
      updateTime: '',
      upsert: {}
    }
  ],
  singleUseTransaction: {readOnly: {readTime: ''}, readWrite: {previousTransaction: ''}},
  transaction: ''
}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/v1/projects/:projectId:commit',
  headers: {'content-type': 'application/json'},
  body: {
    databaseId: '',
    mode: '',
    mutations: [
      {
        baseVersion: '',
        conflictResolutionStrategy: '',
        delete: {
          partitionId: {databaseId: '', namespaceId: '', projectId: ''},
          path: [{id: '', kind: '', name: ''}]
        },
        insert: {key: {}, properties: {}},
        propertyMask: {paths: []},
        propertyTransforms: [
          {
            appendMissingElements: {values: []},
            increment: {
              arrayValue: {},
              blobValue: '',
              booleanValue: false,
              doubleValue: '',
              entityValue: {},
              excludeFromIndexes: false,
              geoPointValue: {latitude: '', longitude: ''},
              integerValue: '',
              keyValue: {},
              meaning: 0,
              nullValue: '',
              stringValue: '',
              timestampValue: ''
            },
            maximum: {},
            minimum: {},
            property: '',
            removeAllFromArray: {},
            setToServerValue: ''
          }
        ],
        update: {},
        updateTime: '',
        upsert: {}
      }
    ],
    singleUseTransaction: {readOnly: {readTime: ''}, readWrite: {previousTransaction: ''}},
    transaction: ''
  },
  json: true
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('POST', '{{baseUrl}}/v1/projects/:projectId:commit');

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send({
  databaseId: '',
  mode: '',
  mutations: [
    {
      baseVersion: '',
      conflictResolutionStrategy: '',
      delete: {
        partitionId: {
          databaseId: '',
          namespaceId: '',
          projectId: ''
        },
        path: [
          {
            id: '',
            kind: '',
            name: ''
          }
        ]
      },
      insert: {
        key: {},
        properties: {}
      },
      propertyMask: {
        paths: []
      },
      propertyTransforms: [
        {
          appendMissingElements: {
            values: []
          },
          increment: {
            arrayValue: {},
            blobValue: '',
            booleanValue: false,
            doubleValue: '',
            entityValue: {},
            excludeFromIndexes: false,
            geoPointValue: {
              latitude: '',
              longitude: ''
            },
            integerValue: '',
            keyValue: {},
            meaning: 0,
            nullValue: '',
            stringValue: '',
            timestampValue: ''
          },
          maximum: {},
          minimum: {},
          property: '',
          removeAllFromArray: {},
          setToServerValue: ''
        }
      ],
      update: {},
      updateTime: '',
      upsert: {}
    }
  ],
  singleUseTransaction: {
    readOnly: {
      readTime: ''
    },
    readWrite: {
      previousTransaction: ''
    }
  },
  transaction: ''
});

req.end(function (res) {
  if (res.error) throw new Error(res.error);

  console.log(res.body);
});
const axios = require('axios').default;

const options = {
  method: 'POST',
  url: '{{baseUrl}}/v1/projects/:projectId:commit',
  headers: {'content-type': 'application/json'},
  data: {
    databaseId: '',
    mode: '',
    mutations: [
      {
        baseVersion: '',
        conflictResolutionStrategy: '',
        delete: {
          partitionId: {databaseId: '', namespaceId: '', projectId: ''},
          path: [{id: '', kind: '', name: ''}]
        },
        insert: {key: {}, properties: {}},
        propertyMask: {paths: []},
        propertyTransforms: [
          {
            appendMissingElements: {values: []},
            increment: {
              arrayValue: {},
              blobValue: '',
              booleanValue: false,
              doubleValue: '',
              entityValue: {},
              excludeFromIndexes: false,
              geoPointValue: {latitude: '', longitude: ''},
              integerValue: '',
              keyValue: {},
              meaning: 0,
              nullValue: '',
              stringValue: '',
              timestampValue: ''
            },
            maximum: {},
            minimum: {},
            property: '',
            removeAllFromArray: {},
            setToServerValue: ''
          }
        ],
        update: {},
        updateTime: '',
        upsert: {}
      }
    ],
    singleUseTransaction: {readOnly: {readTime: ''}, readWrite: {previousTransaction: ''}},
    transaction: ''
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/v1/projects/:projectId:commit';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"databaseId":"","mode":"","mutations":[{"baseVersion":"","conflictResolutionStrategy":"","delete":{"partitionId":{"databaseId":"","namespaceId":"","projectId":""},"path":[{"id":"","kind":"","name":""}]},"insert":{"key":{},"properties":{}},"propertyMask":{"paths":[]},"propertyTransforms":[{"appendMissingElements":{"values":[]},"increment":{"arrayValue":{},"blobValue":"","booleanValue":false,"doubleValue":"","entityValue":{},"excludeFromIndexes":false,"geoPointValue":{"latitude":"","longitude":""},"integerValue":"","keyValue":{},"meaning":0,"nullValue":"","stringValue":"","timestampValue":""},"maximum":{},"minimum":{},"property":"","removeAllFromArray":{},"setToServerValue":""}],"update":{},"updateTime":"","upsert":{}}],"singleUseTransaction":{"readOnly":{"readTime":""},"readWrite":{"previousTransaction":""}},"transaction":""}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
#import 

NSDictionary *headers = @{ @"content-type": @"application/json" };
NSDictionary *parameters = @{ @"databaseId": @"",
                              @"mode": @"",
                              @"mutations": @[ @{ @"baseVersion": @"", @"conflictResolutionStrategy": @"", @"delete": @{ @"partitionId": @{ @"databaseId": @"", @"namespaceId": @"", @"projectId": @"" }, @"path": @[ @{ @"id": @"", @"kind": @"", @"name": @"" } ] }, @"insert": @{ @"key": @{  }, @"properties": @{  } }, @"propertyMask": @{ @"paths": @[  ] }, @"propertyTransforms": @[ @{ @"appendMissingElements": @{ @"values": @[  ] }, @"increment": @{ @"arrayValue": @{  }, @"blobValue": @"", @"booleanValue": @NO, @"doubleValue": @"", @"entityValue": @{  }, @"excludeFromIndexes": @NO, @"geoPointValue": @{ @"latitude": @"", @"longitude": @"" }, @"integerValue": @"", @"keyValue": @{  }, @"meaning": @0, @"nullValue": @"", @"stringValue": @"", @"timestampValue": @"" }, @"maximum": @{  }, @"minimum": @{  }, @"property": @"", @"removeAllFromArray": @{  }, @"setToServerValue": @"" } ], @"update": @{  }, @"updateTime": @"", @"upsert": @{  } } ],
                              @"singleUseTransaction": @{ @"readOnly": @{ @"readTime": @"" }, @"readWrite": @{ @"previousTransaction": @"" } },
                              @"transaction": @"" };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/v1/projects/:projectId:commit"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"POST"];
[request setAllHTTPHeaderFields:headers];
[request setHTTPBody:postData];

NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
                                            completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
                                                if (error) {
                                                    NSLog(@"%@", error);
                                                } else {
                                                    NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
                                                    NSLog(@"%@", httpResponse);
                                                }
                                            }];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt

let uri = Uri.of_string "{{baseUrl}}/v1/projects/:projectId:commit" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"databaseId\": \"\",\n  \"mode\": \"\",\n  \"mutations\": [\n    {\n      \"baseVersion\": \"\",\n      \"conflictResolutionStrategy\": \"\",\n      \"delete\": {\n        \"partitionId\": {\n          \"databaseId\": \"\",\n          \"namespaceId\": \"\",\n          \"projectId\": \"\"\n        },\n        \"path\": [\n          {\n            \"id\": \"\",\n            \"kind\": \"\",\n            \"name\": \"\"\n          }\n        ]\n      },\n      \"insert\": {\n        \"key\": {},\n        \"properties\": {}\n      },\n      \"propertyMask\": {\n        \"paths\": []\n      },\n      \"propertyTransforms\": [\n        {\n          \"appendMissingElements\": {\n            \"values\": []\n          },\n          \"increment\": {\n            \"arrayValue\": {},\n            \"blobValue\": \"\",\n            \"booleanValue\": false,\n            \"doubleValue\": \"\",\n            \"entityValue\": {},\n            \"excludeFromIndexes\": false,\n            \"geoPointValue\": {\n              \"latitude\": \"\",\n              \"longitude\": \"\"\n            },\n            \"integerValue\": \"\",\n            \"keyValue\": {},\n            \"meaning\": 0,\n            \"nullValue\": \"\",\n            \"stringValue\": \"\",\n            \"timestampValue\": \"\"\n          },\n          \"maximum\": {},\n          \"minimum\": {},\n          \"property\": \"\",\n          \"removeAllFromArray\": {},\n          \"setToServerValue\": \"\"\n        }\n      ],\n      \"update\": {},\n      \"updateTime\": \"\",\n      \"upsert\": {}\n    }\n  ],\n  \"singleUseTransaction\": {\n    \"readOnly\": {\n      \"readTime\": \"\"\n    },\n    \"readWrite\": {\n      \"previousTransaction\": \"\"\n    }\n  },\n  \"transaction\": \"\"\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/v1/projects/:projectId:commit",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "POST",
  CURLOPT_POSTFIELDS => json_encode([
    'databaseId' => '',
    'mode' => '',
    'mutations' => [
        [
                'baseVersion' => '',
                'conflictResolutionStrategy' => '',
                'delete' => [
                                'partitionId' => [
                                                                'databaseId' => '',
                                                                'namespaceId' => '',
                                                                'projectId' => ''
                                ],
                                'path' => [
                                                                [
                                                                                                                                'id' => '',
                                                                                                                                'kind' => '',
                                                                                                                                'name' => ''
                                                                ]
                                ]
                ],
                'insert' => [
                                'key' => [
                                                                
                                ],
                                'properties' => [
                                                                
                                ]
                ],
                'propertyMask' => [
                                'paths' => [
                                                                
                                ]
                ],
                'propertyTransforms' => [
                                [
                                                                'appendMissingElements' => [
                                                                                                                                'values' => [
                                                                                                                                                                                                                                                                
                                                                                                                                ]
                                                                ],
                                                                'increment' => [
                                                                                                                                'arrayValue' => [
                                                                                                                                                                                                                                                                
                                                                                                                                ],
                                                                                                                                'blobValue' => '',
                                                                                                                                'booleanValue' => null,
                                                                                                                                'doubleValue' => '',
                                                                                                                                'entityValue' => [
                                                                                                                                                                                                                                                                
                                                                                                                                ],
                                                                                                                                'excludeFromIndexes' => null,
                                                                                                                                'geoPointValue' => [
                                                                                                                                                                                                                                                                'latitude' => '',
                                                                                                                                                                                                                                                                'longitude' => ''
                                                                                                                                ],
                                                                                                                                'integerValue' => '',
                                                                                                                                'keyValue' => [
                                                                                                                                                                                                                                                                
                                                                                                                                ],
                                                                                                                                'meaning' => 0,
                                                                                                                                'nullValue' => '',
                                                                                                                                'stringValue' => '',
                                                                                                                                'timestampValue' => ''
                                                                ],
                                                                'maximum' => [
                                                                                                                                
                                                                ],
                                                                'minimum' => [
                                                                                                                                
                                                                ],
                                                                'property' => '',
                                                                'removeAllFromArray' => [
                                                                                                                                
                                                                ],
                                                                'setToServerValue' => ''
                                ]
                ],
                'update' => [
                                
                ],
                'updateTime' => '',
                'upsert' => [
                                
                ]
        ]
    ],
    'singleUseTransaction' => [
        'readOnly' => [
                'readTime' => ''
        ],
        'readWrite' => [
                'previousTransaction' => ''
        ]
    ],
    'transaction' => ''
  ]),
  CURLOPT_HTTPHEADER => [
    "content-type: application/json"
  ],
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('POST', '{{baseUrl}}/v1/projects/:projectId:commit', [
  'body' => '{
  "databaseId": "",
  "mode": "",
  "mutations": [
    {
      "baseVersion": "",
      "conflictResolutionStrategy": "",
      "delete": {
        "partitionId": {
          "databaseId": "",
          "namespaceId": "",
          "projectId": ""
        },
        "path": [
          {
            "id": "",
            "kind": "",
            "name": ""
          }
        ]
      },
      "insert": {
        "key": {},
        "properties": {}
      },
      "propertyMask": {
        "paths": []
      },
      "propertyTransforms": [
        {
          "appendMissingElements": {
            "values": []
          },
          "increment": {
            "arrayValue": {},
            "blobValue": "",
            "booleanValue": false,
            "doubleValue": "",
            "entityValue": {},
            "excludeFromIndexes": false,
            "geoPointValue": {
              "latitude": "",
              "longitude": ""
            },
            "integerValue": "",
            "keyValue": {},
            "meaning": 0,
            "nullValue": "",
            "stringValue": "",
            "timestampValue": ""
          },
          "maximum": {},
          "minimum": {},
          "property": "",
          "removeAllFromArray": {},
          "setToServerValue": ""
        }
      ],
      "update": {},
      "updateTime": "",
      "upsert": {}
    }
  ],
  "singleUseTransaction": {
    "readOnly": {
      "readTime": ""
    },
    "readWrite": {
      "previousTransaction": ""
    }
  },
  "transaction": ""
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/v1/projects/:projectId:commit');
$request->setMethod(HTTP_METH_POST);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'databaseId' => '',
  'mode' => '',
  'mutations' => [
    [
        'baseVersion' => '',
        'conflictResolutionStrategy' => '',
        'delete' => [
                'partitionId' => [
                                'databaseId' => '',
                                'namespaceId' => '',
                                'projectId' => ''
                ],
                'path' => [
                                [
                                                                'id' => '',
                                                                'kind' => '',
                                                                'name' => ''
                                ]
                ]
        ],
        'insert' => [
                'key' => [
                                
                ],
                'properties' => [
                                
                ]
        ],
        'propertyMask' => [
                'paths' => [
                                
                ]
        ],
        'propertyTransforms' => [
                [
                                'appendMissingElements' => [
                                                                'values' => [
                                                                                                                                
                                                                ]
                                ],
                                'increment' => [
                                                                'arrayValue' => [
                                                                                                                                
                                                                ],
                                                                'blobValue' => '',
                                                                'booleanValue' => null,
                                                                'doubleValue' => '',
                                                                'entityValue' => [
                                                                                                                                
                                                                ],
                                                                'excludeFromIndexes' => null,
                                                                'geoPointValue' => [
                                                                                                                                'latitude' => '',
                                                                                                                                'longitude' => ''
                                                                ],
                                                                'integerValue' => '',
                                                                'keyValue' => [
                                                                                                                                
                                                                ],
                                                                'meaning' => 0,
                                                                'nullValue' => '',
                                                                'stringValue' => '',
                                                                'timestampValue' => ''
                                ],
                                'maximum' => [
                                                                
                                ],
                                'minimum' => [
                                                                
                                ],
                                'property' => '',
                                'removeAllFromArray' => [
                                                                
                                ],
                                'setToServerValue' => ''
                ]
        ],
        'update' => [
                
        ],
        'updateTime' => '',
        'upsert' => [
                
        ]
    ]
  ],
  'singleUseTransaction' => [
    'readOnly' => [
        'readTime' => ''
    ],
    'readWrite' => [
        'previousTransaction' => ''
    ]
  ],
  'transaction' => ''
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'databaseId' => '',
  'mode' => '',
  'mutations' => [
    [
        'baseVersion' => '',
        'conflictResolutionStrategy' => '',
        'delete' => [
                'partitionId' => [
                                'databaseId' => '',
                                'namespaceId' => '',
                                'projectId' => ''
                ],
                'path' => [
                                [
                                                                'id' => '',
                                                                'kind' => '',
                                                                'name' => ''
                                ]
                ]
        ],
        'insert' => [
                'key' => [
                                
                ],
                'properties' => [
                                
                ]
        ],
        'propertyMask' => [
                'paths' => [
                                
                ]
        ],
        'propertyTransforms' => [
                [
                                'appendMissingElements' => [
                                                                'values' => [
                                                                                                                                
                                                                ]
                                ],
                                'increment' => [
                                                                'arrayValue' => [
                                                                                                                                
                                                                ],
                                                                'blobValue' => '',
                                                                'booleanValue' => null,
                                                                'doubleValue' => '',
                                                                'entityValue' => [
                                                                                                                                
                                                                ],
                                                                'excludeFromIndexes' => null,
                                                                'geoPointValue' => [
                                                                                                                                'latitude' => '',
                                                                                                                                'longitude' => ''
                                                                ],
                                                                'integerValue' => '',
                                                                'keyValue' => [
                                                                                                                                
                                                                ],
                                                                'meaning' => 0,
                                                                'nullValue' => '',
                                                                'stringValue' => '',
                                                                'timestampValue' => ''
                                ],
                                'maximum' => [
                                                                
                                ],
                                'minimum' => [
                                                                
                                ],
                                'property' => '',
                                'removeAllFromArray' => [
                                                                
                                ],
                                'setToServerValue' => ''
                ]
        ],
        'update' => [
                
        ],
        'updateTime' => '',
        'upsert' => [
                
        ]
    ]
  ],
  'singleUseTransaction' => [
    'readOnly' => [
        'readTime' => ''
    ],
    'readWrite' => [
        'previousTransaction' => ''
    ]
  ],
  'transaction' => ''
]));
$request->setRequestUrl('{{baseUrl}}/v1/projects/:projectId:commit');
$request->setRequestMethod('POST');
$request->setBody($body);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/v1/projects/:projectId:commit' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "databaseId": "",
  "mode": "",
  "mutations": [
    {
      "baseVersion": "",
      "conflictResolutionStrategy": "",
      "delete": {
        "partitionId": {
          "databaseId": "",
          "namespaceId": "",
          "projectId": ""
        },
        "path": [
          {
            "id": "",
            "kind": "",
            "name": ""
          }
        ]
      },
      "insert": {
        "key": {},
        "properties": {}
      },
      "propertyMask": {
        "paths": []
      },
      "propertyTransforms": [
        {
          "appendMissingElements": {
            "values": []
          },
          "increment": {
            "arrayValue": {},
            "blobValue": "",
            "booleanValue": false,
            "doubleValue": "",
            "entityValue": {},
            "excludeFromIndexes": false,
            "geoPointValue": {
              "latitude": "",
              "longitude": ""
            },
            "integerValue": "",
            "keyValue": {},
            "meaning": 0,
            "nullValue": "",
            "stringValue": "",
            "timestampValue": ""
          },
          "maximum": {},
          "minimum": {},
          "property": "",
          "removeAllFromArray": {},
          "setToServerValue": ""
        }
      ],
      "update": {},
      "updateTime": "",
      "upsert": {}
    }
  ],
  "singleUseTransaction": {
    "readOnly": {
      "readTime": ""
    },
    "readWrite": {
      "previousTransaction": ""
    }
  },
  "transaction": ""
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/v1/projects/:projectId:commit' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "databaseId": "",
  "mode": "",
  "mutations": [
    {
      "baseVersion": "",
      "conflictResolutionStrategy": "",
      "delete": {
        "partitionId": {
          "databaseId": "",
          "namespaceId": "",
          "projectId": ""
        },
        "path": [
          {
            "id": "",
            "kind": "",
            "name": ""
          }
        ]
      },
      "insert": {
        "key": {},
        "properties": {}
      },
      "propertyMask": {
        "paths": []
      },
      "propertyTransforms": [
        {
          "appendMissingElements": {
            "values": []
          },
          "increment": {
            "arrayValue": {},
            "blobValue": "",
            "booleanValue": false,
            "doubleValue": "",
            "entityValue": {},
            "excludeFromIndexes": false,
            "geoPointValue": {
              "latitude": "",
              "longitude": ""
            },
            "integerValue": "",
            "keyValue": {},
            "meaning": 0,
            "nullValue": "",
            "stringValue": "",
            "timestampValue": ""
          },
          "maximum": {},
          "minimum": {},
          "property": "",
          "removeAllFromArray": {},
          "setToServerValue": ""
        }
      ],
      "update": {},
      "updateTime": "",
      "upsert": {}
    }
  ],
  "singleUseTransaction": {
    "readOnly": {
      "readTime": ""
    },
    "readWrite": {
      "previousTransaction": ""
    }
  },
  "transaction": ""
}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{\n  \"databaseId\": \"\",\n  \"mode\": \"\",\n  \"mutations\": [\n    {\n      \"baseVersion\": \"\",\n      \"conflictResolutionStrategy\": \"\",\n      \"delete\": {\n        \"partitionId\": {\n          \"databaseId\": \"\",\n          \"namespaceId\": \"\",\n          \"projectId\": \"\"\n        },\n        \"path\": [\n          {\n            \"id\": \"\",\n            \"kind\": \"\",\n            \"name\": \"\"\n          }\n        ]\n      },\n      \"insert\": {\n        \"key\": {},\n        \"properties\": {}\n      },\n      \"propertyMask\": {\n        \"paths\": []\n      },\n      \"propertyTransforms\": [\n        {\n          \"appendMissingElements\": {\n            \"values\": []\n          },\n          \"increment\": {\n            \"arrayValue\": {},\n            \"blobValue\": \"\",\n            \"booleanValue\": false,\n            \"doubleValue\": \"\",\n            \"entityValue\": {},\n            \"excludeFromIndexes\": false,\n            \"geoPointValue\": {\n              \"latitude\": \"\",\n              \"longitude\": \"\"\n            },\n            \"integerValue\": \"\",\n            \"keyValue\": {},\n            \"meaning\": 0,\n            \"nullValue\": \"\",\n            \"stringValue\": \"\",\n            \"timestampValue\": \"\"\n          },\n          \"maximum\": {},\n          \"minimum\": {},\n          \"property\": \"\",\n          \"removeAllFromArray\": {},\n          \"setToServerValue\": \"\"\n        }\n      ],\n      \"update\": {},\n      \"updateTime\": \"\",\n      \"upsert\": {}\n    }\n  ],\n  \"singleUseTransaction\": {\n    \"readOnly\": {\n      \"readTime\": \"\"\n    },\n    \"readWrite\": {\n      \"previousTransaction\": \"\"\n    }\n  },\n  \"transaction\": \"\"\n}"

headers = { 'content-type': "application/json" }

conn.request("POST", "/baseUrl/v1/projects/:projectId:commit", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/v1/projects/:projectId:commit"

payload = {
    "databaseId": "",
    "mode": "",
    "mutations": [
        {
            "baseVersion": "",
            "conflictResolutionStrategy": "",
            "delete": {
                "partitionId": {
                    "databaseId": "",
                    "namespaceId": "",
                    "projectId": ""
                },
                "path": [
                    {
                        "id": "",
                        "kind": "",
                        "name": ""
                    }
                ]
            },
            "insert": {
                "key": {},
                "properties": {}
            },
            "propertyMask": { "paths": [] },
            "propertyTransforms": [
                {
                    "appendMissingElements": { "values": [] },
                    "increment": {
                        "arrayValue": {},
                        "blobValue": "",
                        "booleanValue": False,
                        "doubleValue": "",
                        "entityValue": {},
                        "excludeFromIndexes": False,
                        "geoPointValue": {
                            "latitude": "",
                            "longitude": ""
                        },
                        "integerValue": "",
                        "keyValue": {},
                        "meaning": 0,
                        "nullValue": "",
                        "stringValue": "",
                        "timestampValue": ""
                    },
                    "maximum": {},
                    "minimum": {},
                    "property": "",
                    "removeAllFromArray": {},
                    "setToServerValue": ""
                }
            ],
            "update": {},
            "updateTime": "",
            "upsert": {}
        }
    ],
    "singleUseTransaction": {
        "readOnly": { "readTime": "" },
        "readWrite": { "previousTransaction": "" }
    },
    "transaction": ""
}
headers = {"content-type": "application/json"}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/v1/projects/:projectId:commit"

payload <- "{\n  \"databaseId\": \"\",\n  \"mode\": \"\",\n  \"mutations\": [\n    {\n      \"baseVersion\": \"\",\n      \"conflictResolutionStrategy\": \"\",\n      \"delete\": {\n        \"partitionId\": {\n          \"databaseId\": \"\",\n          \"namespaceId\": \"\",\n          \"projectId\": \"\"\n        },\n        \"path\": [\n          {\n            \"id\": \"\",\n            \"kind\": \"\",\n            \"name\": \"\"\n          }\n        ]\n      },\n      \"insert\": {\n        \"key\": {},\n        \"properties\": {}\n      },\n      \"propertyMask\": {\n        \"paths\": []\n      },\n      \"propertyTransforms\": [\n        {\n          \"appendMissingElements\": {\n            \"values\": []\n          },\n          \"increment\": {\n            \"arrayValue\": {},\n            \"blobValue\": \"\",\n            \"booleanValue\": false,\n            \"doubleValue\": \"\",\n            \"entityValue\": {},\n            \"excludeFromIndexes\": false,\n            \"geoPointValue\": {\n              \"latitude\": \"\",\n              \"longitude\": \"\"\n            },\n            \"integerValue\": \"\",\n            \"keyValue\": {},\n            \"meaning\": 0,\n            \"nullValue\": \"\",\n            \"stringValue\": \"\",\n            \"timestampValue\": \"\"\n          },\n          \"maximum\": {},\n          \"minimum\": {},\n          \"property\": \"\",\n          \"removeAllFromArray\": {},\n          \"setToServerValue\": \"\"\n        }\n      ],\n      \"update\": {},\n      \"updateTime\": \"\",\n      \"upsert\": {}\n    }\n  ],\n  \"singleUseTransaction\": {\n    \"readOnly\": {\n      \"readTime\": \"\"\n    },\n    \"readWrite\": {\n      \"previousTransaction\": \"\"\n    }\n  },\n  \"transaction\": \"\"\n}"

encode <- "json"

response <- VERB("POST", url, body = payload, content_type("application/json"), encode = encode)

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/v1/projects/:projectId:commit")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)
request["content-type"] = 'application/json'
request.body = "{\n  \"databaseId\": \"\",\n  \"mode\": \"\",\n  \"mutations\": [\n    {\n      \"baseVersion\": \"\",\n      \"conflictResolutionStrategy\": \"\",\n      \"delete\": {\n        \"partitionId\": {\n          \"databaseId\": \"\",\n          \"namespaceId\": \"\",\n          \"projectId\": \"\"\n        },\n        \"path\": [\n          {\n            \"id\": \"\",\n            \"kind\": \"\",\n            \"name\": \"\"\n          }\n        ]\n      },\n      \"insert\": {\n        \"key\": {},\n        \"properties\": {}\n      },\n      \"propertyMask\": {\n        \"paths\": []\n      },\n      \"propertyTransforms\": [\n        {\n          \"appendMissingElements\": {\n            \"values\": []\n          },\n          \"increment\": {\n            \"arrayValue\": {},\n            \"blobValue\": \"\",\n            \"booleanValue\": false,\n            \"doubleValue\": \"\",\n            \"entityValue\": {},\n            \"excludeFromIndexes\": false,\n            \"geoPointValue\": {\n              \"latitude\": \"\",\n              \"longitude\": \"\"\n            },\n            \"integerValue\": \"\",\n            \"keyValue\": {},\n            \"meaning\": 0,\n            \"nullValue\": \"\",\n            \"stringValue\": \"\",\n            \"timestampValue\": \"\"\n          },\n          \"maximum\": {},\n          \"minimum\": {},\n          \"property\": \"\",\n          \"removeAllFromArray\": {},\n          \"setToServerValue\": \"\"\n        }\n      ],\n      \"update\": {},\n      \"updateTime\": \"\",\n      \"upsert\": {}\n    }\n  ],\n  \"singleUseTransaction\": {\n    \"readOnly\": {\n      \"readTime\": \"\"\n    },\n    \"readWrite\": {\n      \"previousTransaction\": \"\"\n    }\n  },\n  \"transaction\": \"\"\n}"

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
  headers: {'Content-Type' => 'application/json'}
)

response = conn.post('/baseUrl/v1/projects/:projectId:commit') do |req|
  req.body = "{\n  \"databaseId\": \"\",\n  \"mode\": \"\",\n  \"mutations\": [\n    {\n      \"baseVersion\": \"\",\n      \"conflictResolutionStrategy\": \"\",\n      \"delete\": {\n        \"partitionId\": {\n          \"databaseId\": \"\",\n          \"namespaceId\": \"\",\n          \"projectId\": \"\"\n        },\n        \"path\": [\n          {\n            \"id\": \"\",\n            \"kind\": \"\",\n            \"name\": \"\"\n          }\n        ]\n      },\n      \"insert\": {\n        \"key\": {},\n        \"properties\": {}\n      },\n      \"propertyMask\": {\n        \"paths\": []\n      },\n      \"propertyTransforms\": [\n        {\n          \"appendMissingElements\": {\n            \"values\": []\n          },\n          \"increment\": {\n            \"arrayValue\": {},\n            \"blobValue\": \"\",\n            \"booleanValue\": false,\n            \"doubleValue\": \"\",\n            \"entityValue\": {},\n            \"excludeFromIndexes\": false,\n            \"geoPointValue\": {\n              \"latitude\": \"\",\n              \"longitude\": \"\"\n            },\n            \"integerValue\": \"\",\n            \"keyValue\": {},\n            \"meaning\": 0,\n            \"nullValue\": \"\",\n            \"stringValue\": \"\",\n            \"timestampValue\": \"\"\n          },\n          \"maximum\": {},\n          \"minimum\": {},\n          \"property\": \"\",\n          \"removeAllFromArray\": {},\n          \"setToServerValue\": \"\"\n        }\n      ],\n      \"update\": {},\n      \"updateTime\": \"\",\n      \"upsert\": {}\n    }\n  ],\n  \"singleUseTransaction\": {\n    \"readOnly\": {\n      \"readTime\": \"\"\n    },\n    \"readWrite\": {\n      \"previousTransaction\": \"\"\n    }\n  },\n  \"transaction\": \"\"\n}"
end

puts response.status
puts response.body
use serde_json::json;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/v1/projects/:projectId:commit";

    let payload = json!({
        "databaseId": "",
        "mode": "",
        "mutations": (
            json!({
                "baseVersion": "",
                "conflictResolutionStrategy": "",
                "delete": json!({
                    "partitionId": json!({
                        "databaseId": "",
                        "namespaceId": "",
                        "projectId": ""
                    }),
                    "path": (
                        json!({
                            "id": "",
                            "kind": "",
                            "name": ""
                        })
                    )
                }),
                "insert": json!({
                    "key": json!({}),
                    "properties": json!({})
                }),
                "propertyMask": json!({"paths": ()}),
                "propertyTransforms": (
                    json!({
                        "appendMissingElements": json!({"values": ()}),
                        "increment": json!({
                            "arrayValue": json!({}),
                            "blobValue": "",
                            "booleanValue": false,
                            "doubleValue": "",
                            "entityValue": json!({}),
                            "excludeFromIndexes": false,
                            "geoPointValue": json!({
                                "latitude": "",
                                "longitude": ""
                            }),
                            "integerValue": "",
                            "keyValue": json!({}),
                            "meaning": 0,
                            "nullValue": "",
                            "stringValue": "",
                            "timestampValue": ""
                        }),
                        "maximum": json!({}),
                        "minimum": json!({}),
                        "property": "",
                        "removeAllFromArray": json!({}),
                        "setToServerValue": ""
                    })
                ),
                "update": json!({}),
                "updateTime": "",
                "upsert": json!({})
            })
        ),
        "singleUseTransaction": json!({
            "readOnly": json!({"readTime": ""}),
            "readWrite": json!({"previousTransaction": ""})
        }),
        "transaction": ""
    });

    let mut headers = reqwest::header::HeaderMap::new();
    headers.insert("content-type", "application/json".parse().unwrap());

    let client = reqwest::Client::new();
    let response = client.post(url)
        .headers(headers)
        .json(&payload)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request POST \
  --url {{baseUrl}}/v1/projects/:projectId:commit \
  --header 'content-type: application/json' \
  --data '{
  "databaseId": "",
  "mode": "",
  "mutations": [
    {
      "baseVersion": "",
      "conflictResolutionStrategy": "",
      "delete": {
        "partitionId": {
          "databaseId": "",
          "namespaceId": "",
          "projectId": ""
        },
        "path": [
          {
            "id": "",
            "kind": "",
            "name": ""
          }
        ]
      },
      "insert": {
        "key": {},
        "properties": {}
      },
      "propertyMask": {
        "paths": []
      },
      "propertyTransforms": [
        {
          "appendMissingElements": {
            "values": []
          },
          "increment": {
            "arrayValue": {},
            "blobValue": "",
            "booleanValue": false,
            "doubleValue": "",
            "entityValue": {},
            "excludeFromIndexes": false,
            "geoPointValue": {
              "latitude": "",
              "longitude": ""
            },
            "integerValue": "",
            "keyValue": {},
            "meaning": 0,
            "nullValue": "",
            "stringValue": "",
            "timestampValue": ""
          },
          "maximum": {},
          "minimum": {},
          "property": "",
          "removeAllFromArray": {},
          "setToServerValue": ""
        }
      ],
      "update": {},
      "updateTime": "",
      "upsert": {}
    }
  ],
  "singleUseTransaction": {
    "readOnly": {
      "readTime": ""
    },
    "readWrite": {
      "previousTransaction": ""
    }
  },
  "transaction": ""
}'
echo '{
  "databaseId": "",
  "mode": "",
  "mutations": [
    {
      "baseVersion": "",
      "conflictResolutionStrategy": "",
      "delete": {
        "partitionId": {
          "databaseId": "",
          "namespaceId": "",
          "projectId": ""
        },
        "path": [
          {
            "id": "",
            "kind": "",
            "name": ""
          }
        ]
      },
      "insert": {
        "key": {},
        "properties": {}
      },
      "propertyMask": {
        "paths": []
      },
      "propertyTransforms": [
        {
          "appendMissingElements": {
            "values": []
          },
          "increment": {
            "arrayValue": {},
            "blobValue": "",
            "booleanValue": false,
            "doubleValue": "",
            "entityValue": {},
            "excludeFromIndexes": false,
            "geoPointValue": {
              "latitude": "",
              "longitude": ""
            },
            "integerValue": "",
            "keyValue": {},
            "meaning": 0,
            "nullValue": "",
            "stringValue": "",
            "timestampValue": ""
          },
          "maximum": {},
          "minimum": {},
          "property": "",
          "removeAllFromArray": {},
          "setToServerValue": ""
        }
      ],
      "update": {},
      "updateTime": "",
      "upsert": {}
    }
  ],
  "singleUseTransaction": {
    "readOnly": {
      "readTime": ""
    },
    "readWrite": {
      "previousTransaction": ""
    }
  },
  "transaction": ""
}' |  \
  http POST {{baseUrl}}/v1/projects/:projectId:commit \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "databaseId": "",\n  "mode": "",\n  "mutations": [\n    {\n      "baseVersion": "",\n      "conflictResolutionStrategy": "",\n      "delete": {\n        "partitionId": {\n          "databaseId": "",\n          "namespaceId": "",\n          "projectId": ""\n        },\n        "path": [\n          {\n            "id": "",\n            "kind": "",\n            "name": ""\n          }\n        ]\n      },\n      "insert": {\n        "key": {},\n        "properties": {}\n      },\n      "propertyMask": {\n        "paths": []\n      },\n      "propertyTransforms": [\n        {\n          "appendMissingElements": {\n            "values": []\n          },\n          "increment": {\n            "arrayValue": {},\n            "blobValue": "",\n            "booleanValue": false,\n            "doubleValue": "",\n            "entityValue": {},\n            "excludeFromIndexes": false,\n            "geoPointValue": {\n              "latitude": "",\n              "longitude": ""\n            },\n            "integerValue": "",\n            "keyValue": {},\n            "meaning": 0,\n            "nullValue": "",\n            "stringValue": "",\n            "timestampValue": ""\n          },\n          "maximum": {},\n          "minimum": {},\n          "property": "",\n          "removeAllFromArray": {},\n          "setToServerValue": ""\n        }\n      ],\n      "update": {},\n      "updateTime": "",\n      "upsert": {}\n    }\n  ],\n  "singleUseTransaction": {\n    "readOnly": {\n      "readTime": ""\n    },\n    "readWrite": {\n      "previousTransaction": ""\n    }\n  },\n  "transaction": ""\n}' \
  --output-document \
  - {{baseUrl}}/v1/projects/:projectId:commit
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "databaseId": "",
  "mode": "",
  "mutations": [
    [
      "baseVersion": "",
      "conflictResolutionStrategy": "",
      "delete": [
        "partitionId": [
          "databaseId": "",
          "namespaceId": "",
          "projectId": ""
        ],
        "path": [
          [
            "id": "",
            "kind": "",
            "name": ""
          ]
        ]
      ],
      "insert": [
        "key": [],
        "properties": []
      ],
      "propertyMask": ["paths": []],
      "propertyTransforms": [
        [
          "appendMissingElements": ["values": []],
          "increment": [
            "arrayValue": [],
            "blobValue": "",
            "booleanValue": false,
            "doubleValue": "",
            "entityValue": [],
            "excludeFromIndexes": false,
            "geoPointValue": [
              "latitude": "",
              "longitude": ""
            ],
            "integerValue": "",
            "keyValue": [],
            "meaning": 0,
            "nullValue": "",
            "stringValue": "",
            "timestampValue": ""
          ],
          "maximum": [],
          "minimum": [],
          "property": "",
          "removeAllFromArray": [],
          "setToServerValue": ""
        ]
      ],
      "update": [],
      "updateTime": "",
      "upsert": []
    ]
  ],
  "singleUseTransaction": [
    "readOnly": ["readTime": ""],
    "readWrite": ["previousTransaction": ""]
  ],
  "transaction": ""
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/v1/projects/:projectId:commit")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
POST datastore.projects.export
{{baseUrl}}/v1/projects/:projectId:export
QUERY PARAMS

projectId
BODY json

{
  "entityFilter": {
    "kinds": [],
    "namespaceIds": []
  },
  "labels": {},
  "outputUrlPrefix": ""
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/v1/projects/:projectId:export");

struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "content-type: application/json");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);

curl_easy_setopt(hnd, CURLOPT_POSTFIELDS, "{\n  \"entityFilter\": {\n    \"kinds\": [],\n    \"namespaceIds\": []\n  },\n  \"labels\": {},\n  \"outputUrlPrefix\": \"\"\n}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/post "{{baseUrl}}/v1/projects/:projectId:export" {:content-type :json
                                                                          :form-params {:entityFilter {:kinds []
                                                                                                       :namespaceIds []}
                                                                                        :labels {}
                                                                                        :outputUrlPrefix ""}})
require "http/client"

url = "{{baseUrl}}/v1/projects/:projectId:export"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"entityFilter\": {\n    \"kinds\": [],\n    \"namespaceIds\": []\n  },\n  \"labels\": {},\n  \"outputUrlPrefix\": \"\"\n}"

response = HTTP::Client.post url, headers: headers, body: reqBody
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Post,
    RequestUri = new Uri("{{baseUrl}}/v1/projects/:projectId:export"),
    Content = new StringContent("{\n  \"entityFilter\": {\n    \"kinds\": [],\n    \"namespaceIds\": []\n  },\n  \"labels\": {},\n  \"outputUrlPrefix\": \"\"\n}")
    {
        Headers =
        {
            ContentType = new MediaTypeHeaderValue("application/json")
        }
    }
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/v1/projects/:projectId:export");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"entityFilter\": {\n    \"kinds\": [],\n    \"namespaceIds\": []\n  },\n  \"labels\": {},\n  \"outputUrlPrefix\": \"\"\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/v1/projects/:projectId:export"

	payload := strings.NewReader("{\n  \"entityFilter\": {\n    \"kinds\": [],\n    \"namespaceIds\": []\n  },\n  \"labels\": {},\n  \"outputUrlPrefix\": \"\"\n}")

	req, _ := http.NewRequest("POST", url, payload)

	req.Header.Add("content-type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
POST /baseUrl/v1/projects/:projectId:export HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 108

{
  "entityFilter": {
    "kinds": [],
    "namespaceIds": []
  },
  "labels": {},
  "outputUrlPrefix": ""
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/v1/projects/:projectId:export")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"entityFilter\": {\n    \"kinds\": [],\n    \"namespaceIds\": []\n  },\n  \"labels\": {},\n  \"outputUrlPrefix\": \"\"\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/v1/projects/:projectId:export"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"entityFilter\": {\n    \"kinds\": [],\n    \"namespaceIds\": []\n  },\n  \"labels\": {},\n  \"outputUrlPrefix\": \"\"\n}"))
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\n  \"entityFilter\": {\n    \"kinds\": [],\n    \"namespaceIds\": []\n  },\n  \"labels\": {},\n  \"outputUrlPrefix\": \"\"\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/v1/projects/:projectId:export")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/v1/projects/:projectId:export")
  .header("content-type", "application/json")
  .body("{\n  \"entityFilter\": {\n    \"kinds\": [],\n    \"namespaceIds\": []\n  },\n  \"labels\": {},\n  \"outputUrlPrefix\": \"\"\n}")
  .asString();
const data = JSON.stringify({
  entityFilter: {
    kinds: [],
    namespaceIds: []
  },
  labels: {},
  outputUrlPrefix: ''
});

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('POST', '{{baseUrl}}/v1/projects/:projectId:export');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'POST',
  url: '{{baseUrl}}/v1/projects/:projectId:export',
  headers: {'content-type': 'application/json'},
  data: {entityFilter: {kinds: [], namespaceIds: []}, labels: {}, outputUrlPrefix: ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/v1/projects/:projectId:export';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"entityFilter":{"kinds":[],"namespaceIds":[]},"labels":{},"outputUrlPrefix":""}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/v1/projects/:projectId:export',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "entityFilter": {\n    "kinds": [],\n    "namespaceIds": []\n  },\n  "labels": {},\n  "outputUrlPrefix": ""\n}'
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"entityFilter\": {\n    \"kinds\": [],\n    \"namespaceIds\": []\n  },\n  \"labels\": {},\n  \"outputUrlPrefix\": \"\"\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/v1/projects/:projectId:export")
  .post(body)
  .addHeader("content-type", "application/json")
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'POST',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/v1/projects/:projectId:export',
  headers: {
    'content-type': 'application/json'
  }
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on('data', function (chunk) {
    chunks.push(chunk);
  });

  res.on('end', function () {
    const body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.write(JSON.stringify({entityFilter: {kinds: [], namespaceIds: []}, labels: {}, outputUrlPrefix: ''}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/v1/projects/:projectId:export',
  headers: {'content-type': 'application/json'},
  body: {entityFilter: {kinds: [], namespaceIds: []}, labels: {}, outputUrlPrefix: ''},
  json: true
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('POST', '{{baseUrl}}/v1/projects/:projectId:export');

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send({
  entityFilter: {
    kinds: [],
    namespaceIds: []
  },
  labels: {},
  outputUrlPrefix: ''
});

req.end(function (res) {
  if (res.error) throw new Error(res.error);

  console.log(res.body);
});
const axios = require('axios').default;

const options = {
  method: 'POST',
  url: '{{baseUrl}}/v1/projects/:projectId:export',
  headers: {'content-type': 'application/json'},
  data: {entityFilter: {kinds: [], namespaceIds: []}, labels: {}, outputUrlPrefix: ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/v1/projects/:projectId:export';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"entityFilter":{"kinds":[],"namespaceIds":[]},"labels":{},"outputUrlPrefix":""}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
#import 

NSDictionary *headers = @{ @"content-type": @"application/json" };
NSDictionary *parameters = @{ @"entityFilter": @{ @"kinds": @[  ], @"namespaceIds": @[  ] },
                              @"labels": @{  },
                              @"outputUrlPrefix": @"" };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/v1/projects/:projectId:export"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"POST"];
[request setAllHTTPHeaderFields:headers];
[request setHTTPBody:postData];

NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
                                            completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
                                                if (error) {
                                                    NSLog(@"%@", error);
                                                } else {
                                                    NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
                                                    NSLog(@"%@", httpResponse);
                                                }
                                            }];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt

let uri = Uri.of_string "{{baseUrl}}/v1/projects/:projectId:export" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"entityFilter\": {\n    \"kinds\": [],\n    \"namespaceIds\": []\n  },\n  \"labels\": {},\n  \"outputUrlPrefix\": \"\"\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/v1/projects/:projectId:export",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "POST",
  CURLOPT_POSTFIELDS => json_encode([
    'entityFilter' => [
        'kinds' => [
                
        ],
        'namespaceIds' => [
                
        ]
    ],
    'labels' => [
        
    ],
    'outputUrlPrefix' => ''
  ]),
  CURLOPT_HTTPHEADER => [
    "content-type: application/json"
  ],
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('POST', '{{baseUrl}}/v1/projects/:projectId:export', [
  'body' => '{
  "entityFilter": {
    "kinds": [],
    "namespaceIds": []
  },
  "labels": {},
  "outputUrlPrefix": ""
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/v1/projects/:projectId:export');
$request->setMethod(HTTP_METH_POST);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'entityFilter' => [
    'kinds' => [
        
    ],
    'namespaceIds' => [
        
    ]
  ],
  'labels' => [
    
  ],
  'outputUrlPrefix' => ''
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'entityFilter' => [
    'kinds' => [
        
    ],
    'namespaceIds' => [
        
    ]
  ],
  'labels' => [
    
  ],
  'outputUrlPrefix' => ''
]));
$request->setRequestUrl('{{baseUrl}}/v1/projects/:projectId:export');
$request->setRequestMethod('POST');
$request->setBody($body);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/v1/projects/:projectId:export' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "entityFilter": {
    "kinds": [],
    "namespaceIds": []
  },
  "labels": {},
  "outputUrlPrefix": ""
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/v1/projects/:projectId:export' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "entityFilter": {
    "kinds": [],
    "namespaceIds": []
  },
  "labels": {},
  "outputUrlPrefix": ""
}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{\n  \"entityFilter\": {\n    \"kinds\": [],\n    \"namespaceIds\": []\n  },\n  \"labels\": {},\n  \"outputUrlPrefix\": \"\"\n}"

headers = { 'content-type': "application/json" }

conn.request("POST", "/baseUrl/v1/projects/:projectId:export", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/v1/projects/:projectId:export"

payload = {
    "entityFilter": {
        "kinds": [],
        "namespaceIds": []
    },
    "labels": {},
    "outputUrlPrefix": ""
}
headers = {"content-type": "application/json"}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/v1/projects/:projectId:export"

payload <- "{\n  \"entityFilter\": {\n    \"kinds\": [],\n    \"namespaceIds\": []\n  },\n  \"labels\": {},\n  \"outputUrlPrefix\": \"\"\n}"

encode <- "json"

response <- VERB("POST", url, body = payload, content_type("application/json"), encode = encode)

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/v1/projects/:projectId:export")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)
request["content-type"] = 'application/json'
request.body = "{\n  \"entityFilter\": {\n    \"kinds\": [],\n    \"namespaceIds\": []\n  },\n  \"labels\": {},\n  \"outputUrlPrefix\": \"\"\n}"

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
  headers: {'Content-Type' => 'application/json'}
)

response = conn.post('/baseUrl/v1/projects/:projectId:export') do |req|
  req.body = "{\n  \"entityFilter\": {\n    \"kinds\": [],\n    \"namespaceIds\": []\n  },\n  \"labels\": {},\n  \"outputUrlPrefix\": \"\"\n}"
end

puts response.status
puts response.body
use serde_json::json;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/v1/projects/:projectId:export";

    let payload = json!({
        "entityFilter": json!({
            "kinds": (),
            "namespaceIds": ()
        }),
        "labels": json!({}),
        "outputUrlPrefix": ""
    });

    let mut headers = reqwest::header::HeaderMap::new();
    headers.insert("content-type", "application/json".parse().unwrap());

    let client = reqwest::Client::new();
    let response = client.post(url)
        .headers(headers)
        .json(&payload)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request POST \
  --url {{baseUrl}}/v1/projects/:projectId:export \
  --header 'content-type: application/json' \
  --data '{
  "entityFilter": {
    "kinds": [],
    "namespaceIds": []
  },
  "labels": {},
  "outputUrlPrefix": ""
}'
echo '{
  "entityFilter": {
    "kinds": [],
    "namespaceIds": []
  },
  "labels": {},
  "outputUrlPrefix": ""
}' |  \
  http POST {{baseUrl}}/v1/projects/:projectId:export \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "entityFilter": {\n    "kinds": [],\n    "namespaceIds": []\n  },\n  "labels": {},\n  "outputUrlPrefix": ""\n}' \
  --output-document \
  - {{baseUrl}}/v1/projects/:projectId:export
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "entityFilter": [
    "kinds": [],
    "namespaceIds": []
  ],
  "labels": [],
  "outputUrlPrefix": ""
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/v1/projects/:projectId:export")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
POST datastore.projects.import
{{baseUrl}}/v1/projects/:projectId:import
QUERY PARAMS

projectId
BODY json

{
  "entityFilter": {
    "kinds": [],
    "namespaceIds": []
  },
  "inputUrl": "",
  "labels": {}
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/v1/projects/:projectId:import");

struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "content-type: application/json");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);

curl_easy_setopt(hnd, CURLOPT_POSTFIELDS, "{\n  \"entityFilter\": {\n    \"kinds\": [],\n    \"namespaceIds\": []\n  },\n  \"inputUrl\": \"\",\n  \"labels\": {}\n}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/post "{{baseUrl}}/v1/projects/:projectId:import" {:content-type :json
                                                                          :form-params {:entityFilter {:kinds []
                                                                                                       :namespaceIds []}
                                                                                        :inputUrl ""
                                                                                        :labels {}}})
require "http/client"

url = "{{baseUrl}}/v1/projects/:projectId:import"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"entityFilter\": {\n    \"kinds\": [],\n    \"namespaceIds\": []\n  },\n  \"inputUrl\": \"\",\n  \"labels\": {}\n}"

response = HTTP::Client.post url, headers: headers, body: reqBody
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Post,
    RequestUri = new Uri("{{baseUrl}}/v1/projects/:projectId:import"),
    Content = new StringContent("{\n  \"entityFilter\": {\n    \"kinds\": [],\n    \"namespaceIds\": []\n  },\n  \"inputUrl\": \"\",\n  \"labels\": {}\n}")
    {
        Headers =
        {
            ContentType = new MediaTypeHeaderValue("application/json")
        }
    }
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/v1/projects/:projectId:import");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"entityFilter\": {\n    \"kinds\": [],\n    \"namespaceIds\": []\n  },\n  \"inputUrl\": \"\",\n  \"labels\": {}\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/v1/projects/:projectId:import"

	payload := strings.NewReader("{\n  \"entityFilter\": {\n    \"kinds\": [],\n    \"namespaceIds\": []\n  },\n  \"inputUrl\": \"\",\n  \"labels\": {}\n}")

	req, _ := http.NewRequest("POST", url, payload)

	req.Header.Add("content-type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
POST /baseUrl/v1/projects/:projectId:import HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 101

{
  "entityFilter": {
    "kinds": [],
    "namespaceIds": []
  },
  "inputUrl": "",
  "labels": {}
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/v1/projects/:projectId:import")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"entityFilter\": {\n    \"kinds\": [],\n    \"namespaceIds\": []\n  },\n  \"inputUrl\": \"\",\n  \"labels\": {}\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/v1/projects/:projectId:import"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"entityFilter\": {\n    \"kinds\": [],\n    \"namespaceIds\": []\n  },\n  \"inputUrl\": \"\",\n  \"labels\": {}\n}"))
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\n  \"entityFilter\": {\n    \"kinds\": [],\n    \"namespaceIds\": []\n  },\n  \"inputUrl\": \"\",\n  \"labels\": {}\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/v1/projects/:projectId:import")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/v1/projects/:projectId:import")
  .header("content-type", "application/json")
  .body("{\n  \"entityFilter\": {\n    \"kinds\": [],\n    \"namespaceIds\": []\n  },\n  \"inputUrl\": \"\",\n  \"labels\": {}\n}")
  .asString();
const data = JSON.stringify({
  entityFilter: {
    kinds: [],
    namespaceIds: []
  },
  inputUrl: '',
  labels: {}
});

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('POST', '{{baseUrl}}/v1/projects/:projectId:import');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'POST',
  url: '{{baseUrl}}/v1/projects/:projectId:import',
  headers: {'content-type': 'application/json'},
  data: {entityFilter: {kinds: [], namespaceIds: []}, inputUrl: '', labels: {}}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/v1/projects/:projectId:import';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"entityFilter":{"kinds":[],"namespaceIds":[]},"inputUrl":"","labels":{}}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/v1/projects/:projectId:import',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "entityFilter": {\n    "kinds": [],\n    "namespaceIds": []\n  },\n  "inputUrl": "",\n  "labels": {}\n}'
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"entityFilter\": {\n    \"kinds\": [],\n    \"namespaceIds\": []\n  },\n  \"inputUrl\": \"\",\n  \"labels\": {}\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/v1/projects/:projectId:import")
  .post(body)
  .addHeader("content-type", "application/json")
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'POST',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/v1/projects/:projectId:import',
  headers: {
    'content-type': 'application/json'
  }
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on('data', function (chunk) {
    chunks.push(chunk);
  });

  res.on('end', function () {
    const body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.write(JSON.stringify({entityFilter: {kinds: [], namespaceIds: []}, inputUrl: '', labels: {}}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/v1/projects/:projectId:import',
  headers: {'content-type': 'application/json'},
  body: {entityFilter: {kinds: [], namespaceIds: []}, inputUrl: '', labels: {}},
  json: true
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('POST', '{{baseUrl}}/v1/projects/:projectId:import');

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send({
  entityFilter: {
    kinds: [],
    namespaceIds: []
  },
  inputUrl: '',
  labels: {}
});

req.end(function (res) {
  if (res.error) throw new Error(res.error);

  console.log(res.body);
});
const axios = require('axios').default;

const options = {
  method: 'POST',
  url: '{{baseUrl}}/v1/projects/:projectId:import',
  headers: {'content-type': 'application/json'},
  data: {entityFilter: {kinds: [], namespaceIds: []}, inputUrl: '', labels: {}}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/v1/projects/:projectId:import';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"entityFilter":{"kinds":[],"namespaceIds":[]},"inputUrl":"","labels":{}}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
#import 

NSDictionary *headers = @{ @"content-type": @"application/json" };
NSDictionary *parameters = @{ @"entityFilter": @{ @"kinds": @[  ], @"namespaceIds": @[  ] },
                              @"inputUrl": @"",
                              @"labels": @{  } };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/v1/projects/:projectId:import"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"POST"];
[request setAllHTTPHeaderFields:headers];
[request setHTTPBody:postData];

NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
                                            completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
                                                if (error) {
                                                    NSLog(@"%@", error);
                                                } else {
                                                    NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
                                                    NSLog(@"%@", httpResponse);
                                                }
                                            }];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt

let uri = Uri.of_string "{{baseUrl}}/v1/projects/:projectId:import" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"entityFilter\": {\n    \"kinds\": [],\n    \"namespaceIds\": []\n  },\n  \"inputUrl\": \"\",\n  \"labels\": {}\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/v1/projects/:projectId:import",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "POST",
  CURLOPT_POSTFIELDS => json_encode([
    'entityFilter' => [
        'kinds' => [
                
        ],
        'namespaceIds' => [
                
        ]
    ],
    'inputUrl' => '',
    'labels' => [
        
    ]
  ]),
  CURLOPT_HTTPHEADER => [
    "content-type: application/json"
  ],
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('POST', '{{baseUrl}}/v1/projects/:projectId:import', [
  'body' => '{
  "entityFilter": {
    "kinds": [],
    "namespaceIds": []
  },
  "inputUrl": "",
  "labels": {}
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/v1/projects/:projectId:import');
$request->setMethod(HTTP_METH_POST);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'entityFilter' => [
    'kinds' => [
        
    ],
    'namespaceIds' => [
        
    ]
  ],
  'inputUrl' => '',
  'labels' => [
    
  ]
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'entityFilter' => [
    'kinds' => [
        
    ],
    'namespaceIds' => [
        
    ]
  ],
  'inputUrl' => '',
  'labels' => [
    
  ]
]));
$request->setRequestUrl('{{baseUrl}}/v1/projects/:projectId:import');
$request->setRequestMethod('POST');
$request->setBody($body);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/v1/projects/:projectId:import' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "entityFilter": {
    "kinds": [],
    "namespaceIds": []
  },
  "inputUrl": "",
  "labels": {}
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/v1/projects/:projectId:import' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "entityFilter": {
    "kinds": [],
    "namespaceIds": []
  },
  "inputUrl": "",
  "labels": {}
}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{\n  \"entityFilter\": {\n    \"kinds\": [],\n    \"namespaceIds\": []\n  },\n  \"inputUrl\": \"\",\n  \"labels\": {}\n}"

headers = { 'content-type': "application/json" }

conn.request("POST", "/baseUrl/v1/projects/:projectId:import", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/v1/projects/:projectId:import"

payload = {
    "entityFilter": {
        "kinds": [],
        "namespaceIds": []
    },
    "inputUrl": "",
    "labels": {}
}
headers = {"content-type": "application/json"}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/v1/projects/:projectId:import"

payload <- "{\n  \"entityFilter\": {\n    \"kinds\": [],\n    \"namespaceIds\": []\n  },\n  \"inputUrl\": \"\",\n  \"labels\": {}\n}"

encode <- "json"

response <- VERB("POST", url, body = payload, content_type("application/json"), encode = encode)

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/v1/projects/:projectId:import")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)
request["content-type"] = 'application/json'
request.body = "{\n  \"entityFilter\": {\n    \"kinds\": [],\n    \"namespaceIds\": []\n  },\n  \"inputUrl\": \"\",\n  \"labels\": {}\n}"

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
  headers: {'Content-Type' => 'application/json'}
)

response = conn.post('/baseUrl/v1/projects/:projectId:import') do |req|
  req.body = "{\n  \"entityFilter\": {\n    \"kinds\": [],\n    \"namespaceIds\": []\n  },\n  \"inputUrl\": \"\",\n  \"labels\": {}\n}"
end

puts response.status
puts response.body
use serde_json::json;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/v1/projects/:projectId:import";

    let payload = json!({
        "entityFilter": json!({
            "kinds": (),
            "namespaceIds": ()
        }),
        "inputUrl": "",
        "labels": json!({})
    });

    let mut headers = reqwest::header::HeaderMap::new();
    headers.insert("content-type", "application/json".parse().unwrap());

    let client = reqwest::Client::new();
    let response = client.post(url)
        .headers(headers)
        .json(&payload)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request POST \
  --url {{baseUrl}}/v1/projects/:projectId:import \
  --header 'content-type: application/json' \
  --data '{
  "entityFilter": {
    "kinds": [],
    "namespaceIds": []
  },
  "inputUrl": "",
  "labels": {}
}'
echo '{
  "entityFilter": {
    "kinds": [],
    "namespaceIds": []
  },
  "inputUrl": "",
  "labels": {}
}' |  \
  http POST {{baseUrl}}/v1/projects/:projectId:import \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "entityFilter": {\n    "kinds": [],\n    "namespaceIds": []\n  },\n  "inputUrl": "",\n  "labels": {}\n}' \
  --output-document \
  - {{baseUrl}}/v1/projects/:projectId:import
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "entityFilter": [
    "kinds": [],
    "namespaceIds": []
  ],
  "inputUrl": "",
  "labels": []
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/v1/projects/:projectId:import")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
POST datastore.projects.indexes.create
{{baseUrl}}/v1/projects/:projectId/indexes
QUERY PARAMS

projectId
BODY json

{
  "ancestor": "",
  "indexId": "",
  "kind": "",
  "projectId": "",
  "properties": [
    {
      "direction": "",
      "name": ""
    }
  ],
  "state": ""
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/v1/projects/:projectId/indexes");

struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "content-type: application/json");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);

curl_easy_setopt(hnd, CURLOPT_POSTFIELDS, "{\n  \"ancestor\": \"\",\n  \"indexId\": \"\",\n  \"kind\": \"\",\n  \"projectId\": \"\",\n  \"properties\": [\n    {\n      \"direction\": \"\",\n      \"name\": \"\"\n    }\n  ],\n  \"state\": \"\"\n}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/post "{{baseUrl}}/v1/projects/:projectId/indexes" {:content-type :json
                                                                           :form-params {:ancestor ""
                                                                                         :indexId ""
                                                                                         :kind ""
                                                                                         :projectId ""
                                                                                         :properties [{:direction ""
                                                                                                       :name ""}]
                                                                                         :state ""}})
require "http/client"

url = "{{baseUrl}}/v1/projects/:projectId/indexes"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"ancestor\": \"\",\n  \"indexId\": \"\",\n  \"kind\": \"\",\n  \"projectId\": \"\",\n  \"properties\": [\n    {\n      \"direction\": \"\",\n      \"name\": \"\"\n    }\n  ],\n  \"state\": \"\"\n}"

response = HTTP::Client.post url, headers: headers, body: reqBody
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Post,
    RequestUri = new Uri("{{baseUrl}}/v1/projects/:projectId/indexes"),
    Content = new StringContent("{\n  \"ancestor\": \"\",\n  \"indexId\": \"\",\n  \"kind\": \"\",\n  \"projectId\": \"\",\n  \"properties\": [\n    {\n      \"direction\": \"\",\n      \"name\": \"\"\n    }\n  ],\n  \"state\": \"\"\n}")
    {
        Headers =
        {
            ContentType = new MediaTypeHeaderValue("application/json")
        }
    }
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/v1/projects/:projectId/indexes");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"ancestor\": \"\",\n  \"indexId\": \"\",\n  \"kind\": \"\",\n  \"projectId\": \"\",\n  \"properties\": [\n    {\n      \"direction\": \"\",\n      \"name\": \"\"\n    }\n  ],\n  \"state\": \"\"\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/v1/projects/:projectId/indexes"

	payload := strings.NewReader("{\n  \"ancestor\": \"\",\n  \"indexId\": \"\",\n  \"kind\": \"\",\n  \"projectId\": \"\",\n  \"properties\": [\n    {\n      \"direction\": \"\",\n      \"name\": \"\"\n    }\n  ],\n  \"state\": \"\"\n}")

	req, _ := http.NewRequest("POST", url, payload)

	req.Header.Add("content-type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
POST /baseUrl/v1/projects/:projectId/indexes HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 160

{
  "ancestor": "",
  "indexId": "",
  "kind": "",
  "projectId": "",
  "properties": [
    {
      "direction": "",
      "name": ""
    }
  ],
  "state": ""
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/v1/projects/:projectId/indexes")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"ancestor\": \"\",\n  \"indexId\": \"\",\n  \"kind\": \"\",\n  \"projectId\": \"\",\n  \"properties\": [\n    {\n      \"direction\": \"\",\n      \"name\": \"\"\n    }\n  ],\n  \"state\": \"\"\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/v1/projects/:projectId/indexes"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"ancestor\": \"\",\n  \"indexId\": \"\",\n  \"kind\": \"\",\n  \"projectId\": \"\",\n  \"properties\": [\n    {\n      \"direction\": \"\",\n      \"name\": \"\"\n    }\n  ],\n  \"state\": \"\"\n}"))
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\n  \"ancestor\": \"\",\n  \"indexId\": \"\",\n  \"kind\": \"\",\n  \"projectId\": \"\",\n  \"properties\": [\n    {\n      \"direction\": \"\",\n      \"name\": \"\"\n    }\n  ],\n  \"state\": \"\"\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/v1/projects/:projectId/indexes")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/v1/projects/:projectId/indexes")
  .header("content-type", "application/json")
  .body("{\n  \"ancestor\": \"\",\n  \"indexId\": \"\",\n  \"kind\": \"\",\n  \"projectId\": \"\",\n  \"properties\": [\n    {\n      \"direction\": \"\",\n      \"name\": \"\"\n    }\n  ],\n  \"state\": \"\"\n}")
  .asString();
const data = JSON.stringify({
  ancestor: '',
  indexId: '',
  kind: '',
  projectId: '',
  properties: [
    {
      direction: '',
      name: ''
    }
  ],
  state: ''
});

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('POST', '{{baseUrl}}/v1/projects/:projectId/indexes');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'POST',
  url: '{{baseUrl}}/v1/projects/:projectId/indexes',
  headers: {'content-type': 'application/json'},
  data: {
    ancestor: '',
    indexId: '',
    kind: '',
    projectId: '',
    properties: [{direction: '', name: ''}],
    state: ''
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/v1/projects/:projectId/indexes';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"ancestor":"","indexId":"","kind":"","projectId":"","properties":[{"direction":"","name":""}],"state":""}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/v1/projects/:projectId/indexes',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "ancestor": "",\n  "indexId": "",\n  "kind": "",\n  "projectId": "",\n  "properties": [\n    {\n      "direction": "",\n      "name": ""\n    }\n  ],\n  "state": ""\n}'
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"ancestor\": \"\",\n  \"indexId\": \"\",\n  \"kind\": \"\",\n  \"projectId\": \"\",\n  \"properties\": [\n    {\n      \"direction\": \"\",\n      \"name\": \"\"\n    }\n  ],\n  \"state\": \"\"\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/v1/projects/:projectId/indexes")
  .post(body)
  .addHeader("content-type", "application/json")
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'POST',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/v1/projects/:projectId/indexes',
  headers: {
    'content-type': 'application/json'
  }
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on('data', function (chunk) {
    chunks.push(chunk);
  });

  res.on('end', function () {
    const body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.write(JSON.stringify({
  ancestor: '',
  indexId: '',
  kind: '',
  projectId: '',
  properties: [{direction: '', name: ''}],
  state: ''
}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/v1/projects/:projectId/indexes',
  headers: {'content-type': 'application/json'},
  body: {
    ancestor: '',
    indexId: '',
    kind: '',
    projectId: '',
    properties: [{direction: '', name: ''}],
    state: ''
  },
  json: true
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('POST', '{{baseUrl}}/v1/projects/:projectId/indexes');

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send({
  ancestor: '',
  indexId: '',
  kind: '',
  projectId: '',
  properties: [
    {
      direction: '',
      name: ''
    }
  ],
  state: ''
});

req.end(function (res) {
  if (res.error) throw new Error(res.error);

  console.log(res.body);
});
const axios = require('axios').default;

const options = {
  method: 'POST',
  url: '{{baseUrl}}/v1/projects/:projectId/indexes',
  headers: {'content-type': 'application/json'},
  data: {
    ancestor: '',
    indexId: '',
    kind: '',
    projectId: '',
    properties: [{direction: '', name: ''}],
    state: ''
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/v1/projects/:projectId/indexes';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"ancestor":"","indexId":"","kind":"","projectId":"","properties":[{"direction":"","name":""}],"state":""}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
#import 

NSDictionary *headers = @{ @"content-type": @"application/json" };
NSDictionary *parameters = @{ @"ancestor": @"",
                              @"indexId": @"",
                              @"kind": @"",
                              @"projectId": @"",
                              @"properties": @[ @{ @"direction": @"", @"name": @"" } ],
                              @"state": @"" };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/v1/projects/:projectId/indexes"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"POST"];
[request setAllHTTPHeaderFields:headers];
[request setHTTPBody:postData];

NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
                                            completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
                                                if (error) {
                                                    NSLog(@"%@", error);
                                                } else {
                                                    NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
                                                    NSLog(@"%@", httpResponse);
                                                }
                                            }];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt

let uri = Uri.of_string "{{baseUrl}}/v1/projects/:projectId/indexes" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"ancestor\": \"\",\n  \"indexId\": \"\",\n  \"kind\": \"\",\n  \"projectId\": \"\",\n  \"properties\": [\n    {\n      \"direction\": \"\",\n      \"name\": \"\"\n    }\n  ],\n  \"state\": \"\"\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/v1/projects/:projectId/indexes",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "POST",
  CURLOPT_POSTFIELDS => json_encode([
    'ancestor' => '',
    'indexId' => '',
    'kind' => '',
    'projectId' => '',
    'properties' => [
        [
                'direction' => '',
                'name' => ''
        ]
    ],
    'state' => ''
  ]),
  CURLOPT_HTTPHEADER => [
    "content-type: application/json"
  ],
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('POST', '{{baseUrl}}/v1/projects/:projectId/indexes', [
  'body' => '{
  "ancestor": "",
  "indexId": "",
  "kind": "",
  "projectId": "",
  "properties": [
    {
      "direction": "",
      "name": ""
    }
  ],
  "state": ""
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/v1/projects/:projectId/indexes');
$request->setMethod(HTTP_METH_POST);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'ancestor' => '',
  'indexId' => '',
  'kind' => '',
  'projectId' => '',
  'properties' => [
    [
        'direction' => '',
        'name' => ''
    ]
  ],
  'state' => ''
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'ancestor' => '',
  'indexId' => '',
  'kind' => '',
  'projectId' => '',
  'properties' => [
    [
        'direction' => '',
        'name' => ''
    ]
  ],
  'state' => ''
]));
$request->setRequestUrl('{{baseUrl}}/v1/projects/:projectId/indexes');
$request->setRequestMethod('POST');
$request->setBody($body);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/v1/projects/:projectId/indexes' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "ancestor": "",
  "indexId": "",
  "kind": "",
  "projectId": "",
  "properties": [
    {
      "direction": "",
      "name": ""
    }
  ],
  "state": ""
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/v1/projects/:projectId/indexes' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "ancestor": "",
  "indexId": "",
  "kind": "",
  "projectId": "",
  "properties": [
    {
      "direction": "",
      "name": ""
    }
  ],
  "state": ""
}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{\n  \"ancestor\": \"\",\n  \"indexId\": \"\",\n  \"kind\": \"\",\n  \"projectId\": \"\",\n  \"properties\": [\n    {\n      \"direction\": \"\",\n      \"name\": \"\"\n    }\n  ],\n  \"state\": \"\"\n}"

headers = { 'content-type': "application/json" }

conn.request("POST", "/baseUrl/v1/projects/:projectId/indexes", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/v1/projects/:projectId/indexes"

payload = {
    "ancestor": "",
    "indexId": "",
    "kind": "",
    "projectId": "",
    "properties": [
        {
            "direction": "",
            "name": ""
        }
    ],
    "state": ""
}
headers = {"content-type": "application/json"}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/v1/projects/:projectId/indexes"

payload <- "{\n  \"ancestor\": \"\",\n  \"indexId\": \"\",\n  \"kind\": \"\",\n  \"projectId\": \"\",\n  \"properties\": [\n    {\n      \"direction\": \"\",\n      \"name\": \"\"\n    }\n  ],\n  \"state\": \"\"\n}"

encode <- "json"

response <- VERB("POST", url, body = payload, content_type("application/json"), encode = encode)

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/v1/projects/:projectId/indexes")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)
request["content-type"] = 'application/json'
request.body = "{\n  \"ancestor\": \"\",\n  \"indexId\": \"\",\n  \"kind\": \"\",\n  \"projectId\": \"\",\n  \"properties\": [\n    {\n      \"direction\": \"\",\n      \"name\": \"\"\n    }\n  ],\n  \"state\": \"\"\n}"

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
  headers: {'Content-Type' => 'application/json'}
)

response = conn.post('/baseUrl/v1/projects/:projectId/indexes') do |req|
  req.body = "{\n  \"ancestor\": \"\",\n  \"indexId\": \"\",\n  \"kind\": \"\",\n  \"projectId\": \"\",\n  \"properties\": [\n    {\n      \"direction\": \"\",\n      \"name\": \"\"\n    }\n  ],\n  \"state\": \"\"\n}"
end

puts response.status
puts response.body
use serde_json::json;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/v1/projects/:projectId/indexes";

    let payload = json!({
        "ancestor": "",
        "indexId": "",
        "kind": "",
        "projectId": "",
        "properties": (
            json!({
                "direction": "",
                "name": ""
            })
        ),
        "state": ""
    });

    let mut headers = reqwest::header::HeaderMap::new();
    headers.insert("content-type", "application/json".parse().unwrap());

    let client = reqwest::Client::new();
    let response = client.post(url)
        .headers(headers)
        .json(&payload)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request POST \
  --url {{baseUrl}}/v1/projects/:projectId/indexes \
  --header 'content-type: application/json' \
  --data '{
  "ancestor": "",
  "indexId": "",
  "kind": "",
  "projectId": "",
  "properties": [
    {
      "direction": "",
      "name": ""
    }
  ],
  "state": ""
}'
echo '{
  "ancestor": "",
  "indexId": "",
  "kind": "",
  "projectId": "",
  "properties": [
    {
      "direction": "",
      "name": ""
    }
  ],
  "state": ""
}' |  \
  http POST {{baseUrl}}/v1/projects/:projectId/indexes \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "ancestor": "",\n  "indexId": "",\n  "kind": "",\n  "projectId": "",\n  "properties": [\n    {\n      "direction": "",\n      "name": ""\n    }\n  ],\n  "state": ""\n}' \
  --output-document \
  - {{baseUrl}}/v1/projects/:projectId/indexes
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "ancestor": "",
  "indexId": "",
  "kind": "",
  "projectId": "",
  "properties": [
    [
      "direction": "",
      "name": ""
    ]
  ],
  "state": ""
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/v1/projects/:projectId/indexes")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
DELETE datastore.projects.indexes.delete
{{baseUrl}}/v1/projects/:projectId/indexes/:indexId
QUERY PARAMS

projectId
indexId
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "DELETE");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/v1/projects/:projectId/indexes/:indexId");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/delete "{{baseUrl}}/v1/projects/:projectId/indexes/:indexId")
require "http/client"

url = "{{baseUrl}}/v1/projects/:projectId/indexes/:indexId"

response = HTTP::Client.delete url
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Delete,
    RequestUri = new Uri("{{baseUrl}}/v1/projects/:projectId/indexes/:indexId"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/v1/projects/:projectId/indexes/:indexId");
var request = new RestRequest("", Method.Delete);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/v1/projects/:projectId/indexes/:indexId"

	req, _ := http.NewRequest("DELETE", url, nil)

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
DELETE /baseUrl/v1/projects/:projectId/indexes/:indexId HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("DELETE", "{{baseUrl}}/v1/projects/:projectId/indexes/:indexId")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/v1/projects/:projectId/indexes/:indexId"))
    .method("DELETE", HttpRequest.BodyPublishers.noBody())
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

Request request = new Request.Builder()
  .url("{{baseUrl}}/v1/projects/:projectId/indexes/:indexId")
  .delete(null)
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.delete("{{baseUrl}}/v1/projects/:projectId/indexes/:indexId")
  .asString();
const data = null;

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('DELETE', '{{baseUrl}}/v1/projects/:projectId/indexes/:indexId');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'DELETE',
  url: '{{baseUrl}}/v1/projects/:projectId/indexes/:indexId'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/v1/projects/:projectId/indexes/:indexId';
const options = {method: 'DELETE'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/v1/projects/:projectId/indexes/:indexId',
  method: 'DELETE',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/v1/projects/:projectId/indexes/:indexId")
  .delete(null)
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'DELETE',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/v1/projects/:projectId/indexes/:indexId',
  headers: {}
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on('data', function (chunk) {
    chunks.push(chunk);
  });

  res.on('end', function () {
    const body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.end();
const request = require('request');

const options = {
  method: 'DELETE',
  url: '{{baseUrl}}/v1/projects/:projectId/indexes/:indexId'
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('DELETE', '{{baseUrl}}/v1/projects/:projectId/indexes/:indexId');

req.end(function (res) {
  if (res.error) throw new Error(res.error);

  console.log(res.body);
});
const axios = require('axios').default;

const options = {
  method: 'DELETE',
  url: '{{baseUrl}}/v1/projects/:projectId/indexes/:indexId'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/v1/projects/:projectId/indexes/:indexId';
const options = {method: 'DELETE'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
#import 

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/v1/projects/:projectId/indexes/:indexId"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"DELETE"];

NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
                                            completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
                                                if (error) {
                                                    NSLog(@"%@", error);
                                                } else {
                                                    NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
                                                    NSLog(@"%@", httpResponse);
                                                }
                                            }];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt

let uri = Uri.of_string "{{baseUrl}}/v1/projects/:projectId/indexes/:indexId" in

Client.call `DELETE uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/v1/projects/:projectId/indexes/:indexId",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "DELETE",
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('DELETE', '{{baseUrl}}/v1/projects/:projectId/indexes/:indexId');

echo $response->getBody();
setUrl('{{baseUrl}}/v1/projects/:projectId/indexes/:indexId');
$request->setMethod(HTTP_METH_DELETE);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/v1/projects/:projectId/indexes/:indexId');
$request->setRequestMethod('DELETE');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/v1/projects/:projectId/indexes/:indexId' -Method DELETE 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/v1/projects/:projectId/indexes/:indexId' -Method DELETE 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("DELETE", "/baseUrl/v1/projects/:projectId/indexes/:indexId")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/v1/projects/:projectId/indexes/:indexId"

response = requests.delete(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/v1/projects/:projectId/indexes/:indexId"

response <- VERB("DELETE", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/v1/projects/:projectId/indexes/:indexId")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Delete.new(url)

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
)

response = conn.delete('/baseUrl/v1/projects/:projectId/indexes/:indexId') do |req|
end

puts response.status
puts response.body
use std::str::FromStr;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/v1/projects/:projectId/indexes/:indexId";

    let client = reqwest::Client::new();
    let response = client.request(reqwest::Method::from_str("DELETE").unwrap(), url)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request DELETE \
  --url {{baseUrl}}/v1/projects/:projectId/indexes/:indexId
http DELETE {{baseUrl}}/v1/projects/:projectId/indexes/:indexId
wget --quiet \
  --method DELETE \
  --output-document \
  - {{baseUrl}}/v1/projects/:projectId/indexes/:indexId
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/v1/projects/:projectId/indexes/:indexId")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "DELETE"

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
GET datastore.projects.indexes.get
{{baseUrl}}/v1/projects/:projectId/indexes/:indexId
QUERY PARAMS

projectId
indexId
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/v1/projects/:projectId/indexes/:indexId");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/v1/projects/:projectId/indexes/:indexId")
require "http/client"

url = "{{baseUrl}}/v1/projects/:projectId/indexes/:indexId"

response = HTTP::Client.get url
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Get,
    RequestUri = new Uri("{{baseUrl}}/v1/projects/:projectId/indexes/:indexId"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/v1/projects/:projectId/indexes/:indexId");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/v1/projects/:projectId/indexes/:indexId"

	req, _ := http.NewRequest("GET", url, nil)

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
GET /baseUrl/v1/projects/:projectId/indexes/:indexId HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/v1/projects/:projectId/indexes/:indexId")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/v1/projects/:projectId/indexes/:indexId"))
    .method("GET", HttpRequest.BodyPublishers.noBody())
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

Request request = new Request.Builder()
  .url("{{baseUrl}}/v1/projects/:projectId/indexes/:indexId")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/v1/projects/:projectId/indexes/:indexId")
  .asString();
const data = null;

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('GET', '{{baseUrl}}/v1/projects/:projectId/indexes/:indexId');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/v1/projects/:projectId/indexes/:indexId'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/v1/projects/:projectId/indexes/:indexId';
const options = {method: 'GET'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/v1/projects/:projectId/indexes/:indexId',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/v1/projects/:projectId/indexes/:indexId")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/v1/projects/:projectId/indexes/:indexId',
  headers: {}
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on('data', function (chunk) {
    chunks.push(chunk);
  });

  res.on('end', function () {
    const body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.end();
const request = require('request');

const options = {
  method: 'GET',
  url: '{{baseUrl}}/v1/projects/:projectId/indexes/:indexId'
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/v1/projects/:projectId/indexes/:indexId');

req.end(function (res) {
  if (res.error) throw new Error(res.error);

  console.log(res.body);
});
const axios = require('axios').default;

const options = {
  method: 'GET',
  url: '{{baseUrl}}/v1/projects/:projectId/indexes/:indexId'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/v1/projects/:projectId/indexes/:indexId';
const options = {method: 'GET'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
#import 

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/v1/projects/:projectId/indexes/:indexId"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];

NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
                                            completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
                                                if (error) {
                                                    NSLog(@"%@", error);
                                                } else {
                                                    NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
                                                    NSLog(@"%@", httpResponse);
                                                }
                                            }];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt

let uri = Uri.of_string "{{baseUrl}}/v1/projects/:projectId/indexes/:indexId" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/v1/projects/:projectId/indexes/:indexId",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "GET",
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('GET', '{{baseUrl}}/v1/projects/:projectId/indexes/:indexId');

echo $response->getBody();
setUrl('{{baseUrl}}/v1/projects/:projectId/indexes/:indexId');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/v1/projects/:projectId/indexes/:indexId');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/v1/projects/:projectId/indexes/:indexId' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/v1/projects/:projectId/indexes/:indexId' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/v1/projects/:projectId/indexes/:indexId")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/v1/projects/:projectId/indexes/:indexId"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/v1/projects/:projectId/indexes/:indexId"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/v1/projects/:projectId/indexes/:indexId")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
)

response = conn.get('/baseUrl/v1/projects/:projectId/indexes/:indexId') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/v1/projects/:projectId/indexes/:indexId";

    let client = reqwest::Client::new();
    let response = client.get(url)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request GET \
  --url {{baseUrl}}/v1/projects/:projectId/indexes/:indexId
http GET {{baseUrl}}/v1/projects/:projectId/indexes/:indexId
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/v1/projects/:projectId/indexes/:indexId
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/v1/projects/:projectId/indexes/:indexId")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
GET datastore.projects.indexes.list
{{baseUrl}}/v1/projects/:projectId/indexes
QUERY PARAMS

projectId
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/v1/projects/:projectId/indexes");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/v1/projects/:projectId/indexes")
require "http/client"

url = "{{baseUrl}}/v1/projects/:projectId/indexes"

response = HTTP::Client.get url
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Get,
    RequestUri = new Uri("{{baseUrl}}/v1/projects/:projectId/indexes"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/v1/projects/:projectId/indexes");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/v1/projects/:projectId/indexes"

	req, _ := http.NewRequest("GET", url, nil)

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
GET /baseUrl/v1/projects/:projectId/indexes HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/v1/projects/:projectId/indexes")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/v1/projects/:projectId/indexes"))
    .method("GET", HttpRequest.BodyPublishers.noBody())
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

Request request = new Request.Builder()
  .url("{{baseUrl}}/v1/projects/:projectId/indexes")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/v1/projects/:projectId/indexes")
  .asString();
const data = null;

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('GET', '{{baseUrl}}/v1/projects/:projectId/indexes');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/v1/projects/:projectId/indexes'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/v1/projects/:projectId/indexes';
const options = {method: 'GET'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/v1/projects/:projectId/indexes',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/v1/projects/:projectId/indexes")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/v1/projects/:projectId/indexes',
  headers: {}
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on('data', function (chunk) {
    chunks.push(chunk);
  });

  res.on('end', function () {
    const body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.end();
const request = require('request');

const options = {
  method: 'GET',
  url: '{{baseUrl}}/v1/projects/:projectId/indexes'
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/v1/projects/:projectId/indexes');

req.end(function (res) {
  if (res.error) throw new Error(res.error);

  console.log(res.body);
});
const axios = require('axios').default;

const options = {
  method: 'GET',
  url: '{{baseUrl}}/v1/projects/:projectId/indexes'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/v1/projects/:projectId/indexes';
const options = {method: 'GET'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
#import 

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/v1/projects/:projectId/indexes"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];

NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
                                            completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
                                                if (error) {
                                                    NSLog(@"%@", error);
                                                } else {
                                                    NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
                                                    NSLog(@"%@", httpResponse);
                                                }
                                            }];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt

let uri = Uri.of_string "{{baseUrl}}/v1/projects/:projectId/indexes" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/v1/projects/:projectId/indexes",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "GET",
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('GET', '{{baseUrl}}/v1/projects/:projectId/indexes');

echo $response->getBody();
setUrl('{{baseUrl}}/v1/projects/:projectId/indexes');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/v1/projects/:projectId/indexes');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/v1/projects/:projectId/indexes' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/v1/projects/:projectId/indexes' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/v1/projects/:projectId/indexes")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/v1/projects/:projectId/indexes"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/v1/projects/:projectId/indexes"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/v1/projects/:projectId/indexes")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
)

response = conn.get('/baseUrl/v1/projects/:projectId/indexes') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/v1/projects/:projectId/indexes";

    let client = reqwest::Client::new();
    let response = client.get(url)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request GET \
  --url {{baseUrl}}/v1/projects/:projectId/indexes
http GET {{baseUrl}}/v1/projects/:projectId/indexes
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/v1/projects/:projectId/indexes
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/v1/projects/:projectId/indexes")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
POST datastore.projects.lookup
{{baseUrl}}/v1/projects/:projectId:lookup
QUERY PARAMS

projectId
BODY json

{
  "databaseId": "",
  "keys": [
    {
      "partitionId": {
        "databaseId": "",
        "namespaceId": "",
        "projectId": ""
      },
      "path": [
        {
          "id": "",
          "kind": "",
          "name": ""
        }
      ]
    }
  ],
  "propertyMask": {
    "paths": []
  },
  "readOptions": {
    "newTransaction": {
      "readOnly": {
        "readTime": ""
      },
      "readWrite": {
        "previousTransaction": ""
      }
    },
    "readConsistency": "",
    "readTime": "",
    "transaction": ""
  }
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/v1/projects/:projectId:lookup");

struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "content-type: application/json");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);

curl_easy_setopt(hnd, CURLOPT_POSTFIELDS, "{\n  \"databaseId\": \"\",\n  \"keys\": [\n    {\n      \"partitionId\": {\n        \"databaseId\": \"\",\n        \"namespaceId\": \"\",\n        \"projectId\": \"\"\n      },\n      \"path\": [\n        {\n          \"id\": \"\",\n          \"kind\": \"\",\n          \"name\": \"\"\n        }\n      ]\n    }\n  ],\n  \"propertyMask\": {\n    \"paths\": []\n  },\n  \"readOptions\": {\n    \"newTransaction\": {\n      \"readOnly\": {\n        \"readTime\": \"\"\n      },\n      \"readWrite\": {\n        \"previousTransaction\": \"\"\n      }\n    },\n    \"readConsistency\": \"\",\n    \"readTime\": \"\",\n    \"transaction\": \"\"\n  }\n}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/post "{{baseUrl}}/v1/projects/:projectId:lookup" {:content-type :json
                                                                          :form-params {:databaseId ""
                                                                                        :keys [{:partitionId {:databaseId ""
                                                                                                              :namespaceId ""
                                                                                                              :projectId ""}
                                                                                                :path [{:id ""
                                                                                                        :kind ""
                                                                                                        :name ""}]}]
                                                                                        :propertyMask {:paths []}
                                                                                        :readOptions {:newTransaction {:readOnly {:readTime ""}
                                                                                                                       :readWrite {:previousTransaction ""}}
                                                                                                      :readConsistency ""
                                                                                                      :readTime ""
                                                                                                      :transaction ""}}})
require "http/client"

url = "{{baseUrl}}/v1/projects/:projectId:lookup"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"databaseId\": \"\",\n  \"keys\": [\n    {\n      \"partitionId\": {\n        \"databaseId\": \"\",\n        \"namespaceId\": \"\",\n        \"projectId\": \"\"\n      },\n      \"path\": [\n        {\n          \"id\": \"\",\n          \"kind\": \"\",\n          \"name\": \"\"\n        }\n      ]\n    }\n  ],\n  \"propertyMask\": {\n    \"paths\": []\n  },\n  \"readOptions\": {\n    \"newTransaction\": {\n      \"readOnly\": {\n        \"readTime\": \"\"\n      },\n      \"readWrite\": {\n        \"previousTransaction\": \"\"\n      }\n    },\n    \"readConsistency\": \"\",\n    \"readTime\": \"\",\n    \"transaction\": \"\"\n  }\n}"

response = HTTP::Client.post url, headers: headers, body: reqBody
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Post,
    RequestUri = new Uri("{{baseUrl}}/v1/projects/:projectId:lookup"),
    Content = new StringContent("{\n  \"databaseId\": \"\",\n  \"keys\": [\n    {\n      \"partitionId\": {\n        \"databaseId\": \"\",\n        \"namespaceId\": \"\",\n        \"projectId\": \"\"\n      },\n      \"path\": [\n        {\n          \"id\": \"\",\n          \"kind\": \"\",\n          \"name\": \"\"\n        }\n      ]\n    }\n  ],\n  \"propertyMask\": {\n    \"paths\": []\n  },\n  \"readOptions\": {\n    \"newTransaction\": {\n      \"readOnly\": {\n        \"readTime\": \"\"\n      },\n      \"readWrite\": {\n        \"previousTransaction\": \"\"\n      }\n    },\n    \"readConsistency\": \"\",\n    \"readTime\": \"\",\n    \"transaction\": \"\"\n  }\n}")
    {
        Headers =
        {
            ContentType = new MediaTypeHeaderValue("application/json")
        }
    }
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/v1/projects/:projectId:lookup");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"databaseId\": \"\",\n  \"keys\": [\n    {\n      \"partitionId\": {\n        \"databaseId\": \"\",\n        \"namespaceId\": \"\",\n        \"projectId\": \"\"\n      },\n      \"path\": [\n        {\n          \"id\": \"\",\n          \"kind\": \"\",\n          \"name\": \"\"\n        }\n      ]\n    }\n  ],\n  \"propertyMask\": {\n    \"paths\": []\n  },\n  \"readOptions\": {\n    \"newTransaction\": {\n      \"readOnly\": {\n        \"readTime\": \"\"\n      },\n      \"readWrite\": {\n        \"previousTransaction\": \"\"\n      }\n    },\n    \"readConsistency\": \"\",\n    \"readTime\": \"\",\n    \"transaction\": \"\"\n  }\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/v1/projects/:projectId:lookup"

	payload := strings.NewReader("{\n  \"databaseId\": \"\",\n  \"keys\": [\n    {\n      \"partitionId\": {\n        \"databaseId\": \"\",\n        \"namespaceId\": \"\",\n        \"projectId\": \"\"\n      },\n      \"path\": [\n        {\n          \"id\": \"\",\n          \"kind\": \"\",\n          \"name\": \"\"\n        }\n      ]\n    }\n  ],\n  \"propertyMask\": {\n    \"paths\": []\n  },\n  \"readOptions\": {\n    \"newTransaction\": {\n      \"readOnly\": {\n        \"readTime\": \"\"\n      },\n      \"readWrite\": {\n        \"previousTransaction\": \"\"\n      }\n    },\n    \"readConsistency\": \"\",\n    \"readTime\": \"\",\n    \"transaction\": \"\"\n  }\n}")

	req, _ := http.NewRequest("POST", url, payload)

	req.Header.Add("content-type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
POST /baseUrl/v1/projects/:projectId:lookup HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 547

{
  "databaseId": "",
  "keys": [
    {
      "partitionId": {
        "databaseId": "",
        "namespaceId": "",
        "projectId": ""
      },
      "path": [
        {
          "id": "",
          "kind": "",
          "name": ""
        }
      ]
    }
  ],
  "propertyMask": {
    "paths": []
  },
  "readOptions": {
    "newTransaction": {
      "readOnly": {
        "readTime": ""
      },
      "readWrite": {
        "previousTransaction": ""
      }
    },
    "readConsistency": "",
    "readTime": "",
    "transaction": ""
  }
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/v1/projects/:projectId:lookup")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"databaseId\": \"\",\n  \"keys\": [\n    {\n      \"partitionId\": {\n        \"databaseId\": \"\",\n        \"namespaceId\": \"\",\n        \"projectId\": \"\"\n      },\n      \"path\": [\n        {\n          \"id\": \"\",\n          \"kind\": \"\",\n          \"name\": \"\"\n        }\n      ]\n    }\n  ],\n  \"propertyMask\": {\n    \"paths\": []\n  },\n  \"readOptions\": {\n    \"newTransaction\": {\n      \"readOnly\": {\n        \"readTime\": \"\"\n      },\n      \"readWrite\": {\n        \"previousTransaction\": \"\"\n      }\n    },\n    \"readConsistency\": \"\",\n    \"readTime\": \"\",\n    \"transaction\": \"\"\n  }\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/v1/projects/:projectId:lookup"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"databaseId\": \"\",\n  \"keys\": [\n    {\n      \"partitionId\": {\n        \"databaseId\": \"\",\n        \"namespaceId\": \"\",\n        \"projectId\": \"\"\n      },\n      \"path\": [\n        {\n          \"id\": \"\",\n          \"kind\": \"\",\n          \"name\": \"\"\n        }\n      ]\n    }\n  ],\n  \"propertyMask\": {\n    \"paths\": []\n  },\n  \"readOptions\": {\n    \"newTransaction\": {\n      \"readOnly\": {\n        \"readTime\": \"\"\n      },\n      \"readWrite\": {\n        \"previousTransaction\": \"\"\n      }\n    },\n    \"readConsistency\": \"\",\n    \"readTime\": \"\",\n    \"transaction\": \"\"\n  }\n}"))
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\n  \"databaseId\": \"\",\n  \"keys\": [\n    {\n      \"partitionId\": {\n        \"databaseId\": \"\",\n        \"namespaceId\": \"\",\n        \"projectId\": \"\"\n      },\n      \"path\": [\n        {\n          \"id\": \"\",\n          \"kind\": \"\",\n          \"name\": \"\"\n        }\n      ]\n    }\n  ],\n  \"propertyMask\": {\n    \"paths\": []\n  },\n  \"readOptions\": {\n    \"newTransaction\": {\n      \"readOnly\": {\n        \"readTime\": \"\"\n      },\n      \"readWrite\": {\n        \"previousTransaction\": \"\"\n      }\n    },\n    \"readConsistency\": \"\",\n    \"readTime\": \"\",\n    \"transaction\": \"\"\n  }\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/v1/projects/:projectId:lookup")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/v1/projects/:projectId:lookup")
  .header("content-type", "application/json")
  .body("{\n  \"databaseId\": \"\",\n  \"keys\": [\n    {\n      \"partitionId\": {\n        \"databaseId\": \"\",\n        \"namespaceId\": \"\",\n        \"projectId\": \"\"\n      },\n      \"path\": [\n        {\n          \"id\": \"\",\n          \"kind\": \"\",\n          \"name\": \"\"\n        }\n      ]\n    }\n  ],\n  \"propertyMask\": {\n    \"paths\": []\n  },\n  \"readOptions\": {\n    \"newTransaction\": {\n      \"readOnly\": {\n        \"readTime\": \"\"\n      },\n      \"readWrite\": {\n        \"previousTransaction\": \"\"\n      }\n    },\n    \"readConsistency\": \"\",\n    \"readTime\": \"\",\n    \"transaction\": \"\"\n  }\n}")
  .asString();
const data = JSON.stringify({
  databaseId: '',
  keys: [
    {
      partitionId: {
        databaseId: '',
        namespaceId: '',
        projectId: ''
      },
      path: [
        {
          id: '',
          kind: '',
          name: ''
        }
      ]
    }
  ],
  propertyMask: {
    paths: []
  },
  readOptions: {
    newTransaction: {
      readOnly: {
        readTime: ''
      },
      readWrite: {
        previousTransaction: ''
      }
    },
    readConsistency: '',
    readTime: '',
    transaction: ''
  }
});

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('POST', '{{baseUrl}}/v1/projects/:projectId:lookup');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'POST',
  url: '{{baseUrl}}/v1/projects/:projectId:lookup',
  headers: {'content-type': 'application/json'},
  data: {
    databaseId: '',
    keys: [
      {
        partitionId: {databaseId: '', namespaceId: '', projectId: ''},
        path: [{id: '', kind: '', name: ''}]
      }
    ],
    propertyMask: {paths: []},
    readOptions: {
      newTransaction: {readOnly: {readTime: ''}, readWrite: {previousTransaction: ''}},
      readConsistency: '',
      readTime: '',
      transaction: ''
    }
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/v1/projects/:projectId:lookup';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"databaseId":"","keys":[{"partitionId":{"databaseId":"","namespaceId":"","projectId":""},"path":[{"id":"","kind":"","name":""}]}],"propertyMask":{"paths":[]},"readOptions":{"newTransaction":{"readOnly":{"readTime":""},"readWrite":{"previousTransaction":""}},"readConsistency":"","readTime":"","transaction":""}}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/v1/projects/:projectId:lookup',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "databaseId": "",\n  "keys": [\n    {\n      "partitionId": {\n        "databaseId": "",\n        "namespaceId": "",\n        "projectId": ""\n      },\n      "path": [\n        {\n          "id": "",\n          "kind": "",\n          "name": ""\n        }\n      ]\n    }\n  ],\n  "propertyMask": {\n    "paths": []\n  },\n  "readOptions": {\n    "newTransaction": {\n      "readOnly": {\n        "readTime": ""\n      },\n      "readWrite": {\n        "previousTransaction": ""\n      }\n    },\n    "readConsistency": "",\n    "readTime": "",\n    "transaction": ""\n  }\n}'
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"databaseId\": \"\",\n  \"keys\": [\n    {\n      \"partitionId\": {\n        \"databaseId\": \"\",\n        \"namespaceId\": \"\",\n        \"projectId\": \"\"\n      },\n      \"path\": [\n        {\n          \"id\": \"\",\n          \"kind\": \"\",\n          \"name\": \"\"\n        }\n      ]\n    }\n  ],\n  \"propertyMask\": {\n    \"paths\": []\n  },\n  \"readOptions\": {\n    \"newTransaction\": {\n      \"readOnly\": {\n        \"readTime\": \"\"\n      },\n      \"readWrite\": {\n        \"previousTransaction\": \"\"\n      }\n    },\n    \"readConsistency\": \"\",\n    \"readTime\": \"\",\n    \"transaction\": \"\"\n  }\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/v1/projects/:projectId:lookup")
  .post(body)
  .addHeader("content-type", "application/json")
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'POST',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/v1/projects/:projectId:lookup',
  headers: {
    'content-type': 'application/json'
  }
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on('data', function (chunk) {
    chunks.push(chunk);
  });

  res.on('end', function () {
    const body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.write(JSON.stringify({
  databaseId: '',
  keys: [
    {
      partitionId: {databaseId: '', namespaceId: '', projectId: ''},
      path: [{id: '', kind: '', name: ''}]
    }
  ],
  propertyMask: {paths: []},
  readOptions: {
    newTransaction: {readOnly: {readTime: ''}, readWrite: {previousTransaction: ''}},
    readConsistency: '',
    readTime: '',
    transaction: ''
  }
}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/v1/projects/:projectId:lookup',
  headers: {'content-type': 'application/json'},
  body: {
    databaseId: '',
    keys: [
      {
        partitionId: {databaseId: '', namespaceId: '', projectId: ''},
        path: [{id: '', kind: '', name: ''}]
      }
    ],
    propertyMask: {paths: []},
    readOptions: {
      newTransaction: {readOnly: {readTime: ''}, readWrite: {previousTransaction: ''}},
      readConsistency: '',
      readTime: '',
      transaction: ''
    }
  },
  json: true
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('POST', '{{baseUrl}}/v1/projects/:projectId:lookup');

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send({
  databaseId: '',
  keys: [
    {
      partitionId: {
        databaseId: '',
        namespaceId: '',
        projectId: ''
      },
      path: [
        {
          id: '',
          kind: '',
          name: ''
        }
      ]
    }
  ],
  propertyMask: {
    paths: []
  },
  readOptions: {
    newTransaction: {
      readOnly: {
        readTime: ''
      },
      readWrite: {
        previousTransaction: ''
      }
    },
    readConsistency: '',
    readTime: '',
    transaction: ''
  }
});

req.end(function (res) {
  if (res.error) throw new Error(res.error);

  console.log(res.body);
});
const axios = require('axios').default;

const options = {
  method: 'POST',
  url: '{{baseUrl}}/v1/projects/:projectId:lookup',
  headers: {'content-type': 'application/json'},
  data: {
    databaseId: '',
    keys: [
      {
        partitionId: {databaseId: '', namespaceId: '', projectId: ''},
        path: [{id: '', kind: '', name: ''}]
      }
    ],
    propertyMask: {paths: []},
    readOptions: {
      newTransaction: {readOnly: {readTime: ''}, readWrite: {previousTransaction: ''}},
      readConsistency: '',
      readTime: '',
      transaction: ''
    }
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/v1/projects/:projectId:lookup';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"databaseId":"","keys":[{"partitionId":{"databaseId":"","namespaceId":"","projectId":""},"path":[{"id":"","kind":"","name":""}]}],"propertyMask":{"paths":[]},"readOptions":{"newTransaction":{"readOnly":{"readTime":""},"readWrite":{"previousTransaction":""}},"readConsistency":"","readTime":"","transaction":""}}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
#import 

NSDictionary *headers = @{ @"content-type": @"application/json" };
NSDictionary *parameters = @{ @"databaseId": @"",
                              @"keys": @[ @{ @"partitionId": @{ @"databaseId": @"", @"namespaceId": @"", @"projectId": @"" }, @"path": @[ @{ @"id": @"", @"kind": @"", @"name": @"" } ] } ],
                              @"propertyMask": @{ @"paths": @[  ] },
                              @"readOptions": @{ @"newTransaction": @{ @"readOnly": @{ @"readTime": @"" }, @"readWrite": @{ @"previousTransaction": @"" } }, @"readConsistency": @"", @"readTime": @"", @"transaction": @"" } };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/v1/projects/:projectId:lookup"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"POST"];
[request setAllHTTPHeaderFields:headers];
[request setHTTPBody:postData];

NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
                                            completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
                                                if (error) {
                                                    NSLog(@"%@", error);
                                                } else {
                                                    NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
                                                    NSLog(@"%@", httpResponse);
                                                }
                                            }];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt

let uri = Uri.of_string "{{baseUrl}}/v1/projects/:projectId:lookup" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"databaseId\": \"\",\n  \"keys\": [\n    {\n      \"partitionId\": {\n        \"databaseId\": \"\",\n        \"namespaceId\": \"\",\n        \"projectId\": \"\"\n      },\n      \"path\": [\n        {\n          \"id\": \"\",\n          \"kind\": \"\",\n          \"name\": \"\"\n        }\n      ]\n    }\n  ],\n  \"propertyMask\": {\n    \"paths\": []\n  },\n  \"readOptions\": {\n    \"newTransaction\": {\n      \"readOnly\": {\n        \"readTime\": \"\"\n      },\n      \"readWrite\": {\n        \"previousTransaction\": \"\"\n      }\n    },\n    \"readConsistency\": \"\",\n    \"readTime\": \"\",\n    \"transaction\": \"\"\n  }\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/v1/projects/:projectId:lookup",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "POST",
  CURLOPT_POSTFIELDS => json_encode([
    'databaseId' => '',
    'keys' => [
        [
                'partitionId' => [
                                'databaseId' => '',
                                'namespaceId' => '',
                                'projectId' => ''
                ],
                'path' => [
                                [
                                                                'id' => '',
                                                                'kind' => '',
                                                                'name' => ''
                                ]
                ]
        ]
    ],
    'propertyMask' => [
        'paths' => [
                
        ]
    ],
    'readOptions' => [
        'newTransaction' => [
                'readOnly' => [
                                'readTime' => ''
                ],
                'readWrite' => [
                                'previousTransaction' => ''
                ]
        ],
        'readConsistency' => '',
        'readTime' => '',
        'transaction' => ''
    ]
  ]),
  CURLOPT_HTTPHEADER => [
    "content-type: application/json"
  ],
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('POST', '{{baseUrl}}/v1/projects/:projectId:lookup', [
  'body' => '{
  "databaseId": "",
  "keys": [
    {
      "partitionId": {
        "databaseId": "",
        "namespaceId": "",
        "projectId": ""
      },
      "path": [
        {
          "id": "",
          "kind": "",
          "name": ""
        }
      ]
    }
  ],
  "propertyMask": {
    "paths": []
  },
  "readOptions": {
    "newTransaction": {
      "readOnly": {
        "readTime": ""
      },
      "readWrite": {
        "previousTransaction": ""
      }
    },
    "readConsistency": "",
    "readTime": "",
    "transaction": ""
  }
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/v1/projects/:projectId:lookup');
$request->setMethod(HTTP_METH_POST);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'databaseId' => '',
  'keys' => [
    [
        'partitionId' => [
                'databaseId' => '',
                'namespaceId' => '',
                'projectId' => ''
        ],
        'path' => [
                [
                                'id' => '',
                                'kind' => '',
                                'name' => ''
                ]
        ]
    ]
  ],
  'propertyMask' => [
    'paths' => [
        
    ]
  ],
  'readOptions' => [
    'newTransaction' => [
        'readOnly' => [
                'readTime' => ''
        ],
        'readWrite' => [
                'previousTransaction' => ''
        ]
    ],
    'readConsistency' => '',
    'readTime' => '',
    'transaction' => ''
  ]
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'databaseId' => '',
  'keys' => [
    [
        'partitionId' => [
                'databaseId' => '',
                'namespaceId' => '',
                'projectId' => ''
        ],
        'path' => [
                [
                                'id' => '',
                                'kind' => '',
                                'name' => ''
                ]
        ]
    ]
  ],
  'propertyMask' => [
    'paths' => [
        
    ]
  ],
  'readOptions' => [
    'newTransaction' => [
        'readOnly' => [
                'readTime' => ''
        ],
        'readWrite' => [
                'previousTransaction' => ''
        ]
    ],
    'readConsistency' => '',
    'readTime' => '',
    'transaction' => ''
  ]
]));
$request->setRequestUrl('{{baseUrl}}/v1/projects/:projectId:lookup');
$request->setRequestMethod('POST');
$request->setBody($body);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/v1/projects/:projectId:lookup' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "databaseId": "",
  "keys": [
    {
      "partitionId": {
        "databaseId": "",
        "namespaceId": "",
        "projectId": ""
      },
      "path": [
        {
          "id": "",
          "kind": "",
          "name": ""
        }
      ]
    }
  ],
  "propertyMask": {
    "paths": []
  },
  "readOptions": {
    "newTransaction": {
      "readOnly": {
        "readTime": ""
      },
      "readWrite": {
        "previousTransaction": ""
      }
    },
    "readConsistency": "",
    "readTime": "",
    "transaction": ""
  }
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/v1/projects/:projectId:lookup' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "databaseId": "",
  "keys": [
    {
      "partitionId": {
        "databaseId": "",
        "namespaceId": "",
        "projectId": ""
      },
      "path": [
        {
          "id": "",
          "kind": "",
          "name": ""
        }
      ]
    }
  ],
  "propertyMask": {
    "paths": []
  },
  "readOptions": {
    "newTransaction": {
      "readOnly": {
        "readTime": ""
      },
      "readWrite": {
        "previousTransaction": ""
      }
    },
    "readConsistency": "",
    "readTime": "",
    "transaction": ""
  }
}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{\n  \"databaseId\": \"\",\n  \"keys\": [\n    {\n      \"partitionId\": {\n        \"databaseId\": \"\",\n        \"namespaceId\": \"\",\n        \"projectId\": \"\"\n      },\n      \"path\": [\n        {\n          \"id\": \"\",\n          \"kind\": \"\",\n          \"name\": \"\"\n        }\n      ]\n    }\n  ],\n  \"propertyMask\": {\n    \"paths\": []\n  },\n  \"readOptions\": {\n    \"newTransaction\": {\n      \"readOnly\": {\n        \"readTime\": \"\"\n      },\n      \"readWrite\": {\n        \"previousTransaction\": \"\"\n      }\n    },\n    \"readConsistency\": \"\",\n    \"readTime\": \"\",\n    \"transaction\": \"\"\n  }\n}"

headers = { 'content-type': "application/json" }

conn.request("POST", "/baseUrl/v1/projects/:projectId:lookup", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/v1/projects/:projectId:lookup"

payload = {
    "databaseId": "",
    "keys": [
        {
            "partitionId": {
                "databaseId": "",
                "namespaceId": "",
                "projectId": ""
            },
            "path": [
                {
                    "id": "",
                    "kind": "",
                    "name": ""
                }
            ]
        }
    ],
    "propertyMask": { "paths": [] },
    "readOptions": {
        "newTransaction": {
            "readOnly": { "readTime": "" },
            "readWrite": { "previousTransaction": "" }
        },
        "readConsistency": "",
        "readTime": "",
        "transaction": ""
    }
}
headers = {"content-type": "application/json"}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/v1/projects/:projectId:lookup"

payload <- "{\n  \"databaseId\": \"\",\n  \"keys\": [\n    {\n      \"partitionId\": {\n        \"databaseId\": \"\",\n        \"namespaceId\": \"\",\n        \"projectId\": \"\"\n      },\n      \"path\": [\n        {\n          \"id\": \"\",\n          \"kind\": \"\",\n          \"name\": \"\"\n        }\n      ]\n    }\n  ],\n  \"propertyMask\": {\n    \"paths\": []\n  },\n  \"readOptions\": {\n    \"newTransaction\": {\n      \"readOnly\": {\n        \"readTime\": \"\"\n      },\n      \"readWrite\": {\n        \"previousTransaction\": \"\"\n      }\n    },\n    \"readConsistency\": \"\",\n    \"readTime\": \"\",\n    \"transaction\": \"\"\n  }\n}"

encode <- "json"

response <- VERB("POST", url, body = payload, content_type("application/json"), encode = encode)

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/v1/projects/:projectId:lookup")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)
request["content-type"] = 'application/json'
request.body = "{\n  \"databaseId\": \"\",\n  \"keys\": [\n    {\n      \"partitionId\": {\n        \"databaseId\": \"\",\n        \"namespaceId\": \"\",\n        \"projectId\": \"\"\n      },\n      \"path\": [\n        {\n          \"id\": \"\",\n          \"kind\": \"\",\n          \"name\": \"\"\n        }\n      ]\n    }\n  ],\n  \"propertyMask\": {\n    \"paths\": []\n  },\n  \"readOptions\": {\n    \"newTransaction\": {\n      \"readOnly\": {\n        \"readTime\": \"\"\n      },\n      \"readWrite\": {\n        \"previousTransaction\": \"\"\n      }\n    },\n    \"readConsistency\": \"\",\n    \"readTime\": \"\",\n    \"transaction\": \"\"\n  }\n}"

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
  headers: {'Content-Type' => 'application/json'}
)

response = conn.post('/baseUrl/v1/projects/:projectId:lookup') do |req|
  req.body = "{\n  \"databaseId\": \"\",\n  \"keys\": [\n    {\n      \"partitionId\": {\n        \"databaseId\": \"\",\n        \"namespaceId\": \"\",\n        \"projectId\": \"\"\n      },\n      \"path\": [\n        {\n          \"id\": \"\",\n          \"kind\": \"\",\n          \"name\": \"\"\n        }\n      ]\n    }\n  ],\n  \"propertyMask\": {\n    \"paths\": []\n  },\n  \"readOptions\": {\n    \"newTransaction\": {\n      \"readOnly\": {\n        \"readTime\": \"\"\n      },\n      \"readWrite\": {\n        \"previousTransaction\": \"\"\n      }\n    },\n    \"readConsistency\": \"\",\n    \"readTime\": \"\",\n    \"transaction\": \"\"\n  }\n}"
end

puts response.status
puts response.body
use serde_json::json;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/v1/projects/:projectId:lookup";

    let payload = json!({
        "databaseId": "",
        "keys": (
            json!({
                "partitionId": json!({
                    "databaseId": "",
                    "namespaceId": "",
                    "projectId": ""
                }),
                "path": (
                    json!({
                        "id": "",
                        "kind": "",
                        "name": ""
                    })
                )
            })
        ),
        "propertyMask": json!({"paths": ()}),
        "readOptions": json!({
            "newTransaction": json!({
                "readOnly": json!({"readTime": ""}),
                "readWrite": json!({"previousTransaction": ""})
            }),
            "readConsistency": "",
            "readTime": "",
            "transaction": ""
        })
    });

    let mut headers = reqwest::header::HeaderMap::new();
    headers.insert("content-type", "application/json".parse().unwrap());

    let client = reqwest::Client::new();
    let response = client.post(url)
        .headers(headers)
        .json(&payload)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request POST \
  --url {{baseUrl}}/v1/projects/:projectId:lookup \
  --header 'content-type: application/json' \
  --data '{
  "databaseId": "",
  "keys": [
    {
      "partitionId": {
        "databaseId": "",
        "namespaceId": "",
        "projectId": ""
      },
      "path": [
        {
          "id": "",
          "kind": "",
          "name": ""
        }
      ]
    }
  ],
  "propertyMask": {
    "paths": []
  },
  "readOptions": {
    "newTransaction": {
      "readOnly": {
        "readTime": ""
      },
      "readWrite": {
        "previousTransaction": ""
      }
    },
    "readConsistency": "",
    "readTime": "",
    "transaction": ""
  }
}'
echo '{
  "databaseId": "",
  "keys": [
    {
      "partitionId": {
        "databaseId": "",
        "namespaceId": "",
        "projectId": ""
      },
      "path": [
        {
          "id": "",
          "kind": "",
          "name": ""
        }
      ]
    }
  ],
  "propertyMask": {
    "paths": []
  },
  "readOptions": {
    "newTransaction": {
      "readOnly": {
        "readTime": ""
      },
      "readWrite": {
        "previousTransaction": ""
      }
    },
    "readConsistency": "",
    "readTime": "",
    "transaction": ""
  }
}' |  \
  http POST {{baseUrl}}/v1/projects/:projectId:lookup \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "databaseId": "",\n  "keys": [\n    {\n      "partitionId": {\n        "databaseId": "",\n        "namespaceId": "",\n        "projectId": ""\n      },\n      "path": [\n        {\n          "id": "",\n          "kind": "",\n          "name": ""\n        }\n      ]\n    }\n  ],\n  "propertyMask": {\n    "paths": []\n  },\n  "readOptions": {\n    "newTransaction": {\n      "readOnly": {\n        "readTime": ""\n      },\n      "readWrite": {\n        "previousTransaction": ""\n      }\n    },\n    "readConsistency": "",\n    "readTime": "",\n    "transaction": ""\n  }\n}' \
  --output-document \
  - {{baseUrl}}/v1/projects/:projectId:lookup
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "databaseId": "",
  "keys": [
    [
      "partitionId": [
        "databaseId": "",
        "namespaceId": "",
        "projectId": ""
      ],
      "path": [
        [
          "id": "",
          "kind": "",
          "name": ""
        ]
      ]
    ]
  ],
  "propertyMask": ["paths": []],
  "readOptions": [
    "newTransaction": [
      "readOnly": ["readTime": ""],
      "readWrite": ["previousTransaction": ""]
    ],
    "readConsistency": "",
    "readTime": "",
    "transaction": ""
  ]
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/v1/projects/:projectId:lookup")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
POST datastore.projects.operations.cancel
{{baseUrl}}/v1/:+name:cancel
QUERY PARAMS

name
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/v1/:+name:cancel");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/post "{{baseUrl}}/v1/:+name:cancel")
require "http/client"

url = "{{baseUrl}}/v1/:+name:cancel"

response = HTTP::Client.post url
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Post,
    RequestUri = new Uri("{{baseUrl}}/v1/:+name:cancel"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/v1/:+name:cancel");
var request = new RestRequest("", Method.Post);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/v1/:+name:cancel"

	req, _ := http.NewRequest("POST", url, nil)

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
POST /baseUrl/v1/:+name:cancel HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/v1/:+name:cancel")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/v1/:+name:cancel"))
    .method("POST", HttpRequest.BodyPublishers.noBody())
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

Request request = new Request.Builder()
  .url("{{baseUrl}}/v1/:+name:cancel")
  .post(null)
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/v1/:+name:cancel")
  .asString();
const data = null;

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('POST', '{{baseUrl}}/v1/:+name:cancel');

xhr.send(data);
import axios from 'axios';

const options = {method: 'POST', url: '{{baseUrl}}/v1/:+name:cancel'};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/v1/:+name:cancel';
const options = {method: 'POST'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/v1/:+name:cancel',
  method: 'POST',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/v1/:+name:cancel")
  .post(null)
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'POST',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/v1/:+name:cancel',
  headers: {}
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on('data', function (chunk) {
    chunks.push(chunk);
  });

  res.on('end', function () {
    const body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.end();
const request = require('request');

const options = {method: 'POST', url: '{{baseUrl}}/v1/:+name:cancel'};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('POST', '{{baseUrl}}/v1/:+name:cancel');

req.end(function (res) {
  if (res.error) throw new Error(res.error);

  console.log(res.body);
});
const axios = require('axios').default;

const options = {method: 'POST', url: '{{baseUrl}}/v1/:+name:cancel'};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/v1/:+name:cancel';
const options = {method: 'POST'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
#import 

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/v1/:+name:cancel"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"POST"];

NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
                                            completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
                                                if (error) {
                                                    NSLog(@"%@", error);
                                                } else {
                                                    NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
                                                    NSLog(@"%@", httpResponse);
                                                }
                                            }];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt

let uri = Uri.of_string "{{baseUrl}}/v1/:+name:cancel" in

Client.call `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/v1/:+name:cancel",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "POST",
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('POST', '{{baseUrl}}/v1/:+name:cancel');

echo $response->getBody();
setUrl('{{baseUrl}}/v1/:+name:cancel');
$request->setMethod(HTTP_METH_POST);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/v1/:+name:cancel');
$request->setRequestMethod('POST');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/v1/:+name:cancel' -Method POST 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/v1/:+name:cancel' -Method POST 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("POST", "/baseUrl/v1/:+name:cancel")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/v1/:+name:cancel"

response = requests.post(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/v1/:+name:cancel"

response <- VERB("POST", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/v1/:+name:cancel")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
)

response = conn.post('/baseUrl/v1/:+name:cancel') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/v1/:+name:cancel";

    let client = reqwest::Client::new();
    let response = client.post(url)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request POST \
  --url '{{baseUrl}}/v1/:+name:cancel'
http POST '{{baseUrl}}/v1/:+name:cancel'
wget --quiet \
  --method POST \
  --output-document \
  - '{{baseUrl}}/v1/:+name:cancel'
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/v1/:+name:cancel")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "POST"

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
DELETE datastore.projects.operations.delete
{{baseUrl}}/v1/:+name
QUERY PARAMS

name
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "DELETE");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/v1/:+name");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/delete "{{baseUrl}}/v1/:+name")
require "http/client"

url = "{{baseUrl}}/v1/:+name"

response = HTTP::Client.delete url
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Delete,
    RequestUri = new Uri("{{baseUrl}}/v1/:+name"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/v1/:+name");
var request = new RestRequest("", Method.Delete);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/v1/:+name"

	req, _ := http.NewRequest("DELETE", url, nil)

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
DELETE /baseUrl/v1/:+name HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("DELETE", "{{baseUrl}}/v1/:+name")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/v1/:+name"))
    .method("DELETE", HttpRequest.BodyPublishers.noBody())
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

Request request = new Request.Builder()
  .url("{{baseUrl}}/v1/:+name")
  .delete(null)
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.delete("{{baseUrl}}/v1/:+name")
  .asString();
const data = null;

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('DELETE', '{{baseUrl}}/v1/:+name');

xhr.send(data);
import axios from 'axios';

const options = {method: 'DELETE', url: '{{baseUrl}}/v1/:+name'};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/v1/:+name';
const options = {method: 'DELETE'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/v1/:+name',
  method: 'DELETE',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/v1/:+name")
  .delete(null)
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'DELETE',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/v1/:+name',
  headers: {}
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on('data', function (chunk) {
    chunks.push(chunk);
  });

  res.on('end', function () {
    const body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.end();
const request = require('request');

const options = {method: 'DELETE', url: '{{baseUrl}}/v1/:+name'};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('DELETE', '{{baseUrl}}/v1/:+name');

req.end(function (res) {
  if (res.error) throw new Error(res.error);

  console.log(res.body);
});
const axios = require('axios').default;

const options = {method: 'DELETE', url: '{{baseUrl}}/v1/:+name'};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/v1/:+name';
const options = {method: 'DELETE'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
#import 

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/v1/:+name"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"DELETE"];

NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
                                            completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
                                                if (error) {
                                                    NSLog(@"%@", error);
                                                } else {
                                                    NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
                                                    NSLog(@"%@", httpResponse);
                                                }
                                            }];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt

let uri = Uri.of_string "{{baseUrl}}/v1/:+name" in

Client.call `DELETE uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/v1/:+name",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "DELETE",
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('DELETE', '{{baseUrl}}/v1/:+name');

echo $response->getBody();
setUrl('{{baseUrl}}/v1/:+name');
$request->setMethod(HTTP_METH_DELETE);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/v1/:+name');
$request->setRequestMethod('DELETE');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/v1/:+name' -Method DELETE 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/v1/:+name' -Method DELETE 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("DELETE", "/baseUrl/v1/:+name")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/v1/:+name"

response = requests.delete(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/v1/:+name"

response <- VERB("DELETE", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/v1/:+name")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Delete.new(url)

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
)

response = conn.delete('/baseUrl/v1/:+name') do |req|
end

puts response.status
puts response.body
use std::str::FromStr;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/v1/:+name";

    let client = reqwest::Client::new();
    let response = client.request(reqwest::Method::from_str("DELETE").unwrap(), url)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request DELETE \
  --url '{{baseUrl}}/v1/:+name'
http DELETE '{{baseUrl}}/v1/:+name'
wget --quiet \
  --method DELETE \
  --output-document \
  - '{{baseUrl}}/v1/:+name'
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/v1/:+name")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "DELETE"

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
GET datastore.projects.operations.get
{{baseUrl}}/v1/:+name
QUERY PARAMS

name
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/v1/:+name");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/v1/:+name")
require "http/client"

url = "{{baseUrl}}/v1/:+name"

response = HTTP::Client.get url
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Get,
    RequestUri = new Uri("{{baseUrl}}/v1/:+name"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/v1/:+name");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/v1/:+name"

	req, _ := http.NewRequest("GET", url, nil)

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
GET /baseUrl/v1/:+name HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/v1/:+name")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/v1/:+name"))
    .method("GET", HttpRequest.BodyPublishers.noBody())
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

Request request = new Request.Builder()
  .url("{{baseUrl}}/v1/:+name")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/v1/:+name")
  .asString();
const data = null;

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('GET', '{{baseUrl}}/v1/:+name');

xhr.send(data);
import axios from 'axios';

const options = {method: 'GET', url: '{{baseUrl}}/v1/:+name'};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/v1/:+name';
const options = {method: 'GET'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/v1/:+name',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/v1/:+name")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/v1/:+name',
  headers: {}
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on('data', function (chunk) {
    chunks.push(chunk);
  });

  res.on('end', function () {
    const body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.end();
const request = require('request');

const options = {method: 'GET', url: '{{baseUrl}}/v1/:+name'};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/v1/:+name');

req.end(function (res) {
  if (res.error) throw new Error(res.error);

  console.log(res.body);
});
const axios = require('axios').default;

const options = {method: 'GET', url: '{{baseUrl}}/v1/:+name'};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/v1/:+name';
const options = {method: 'GET'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
#import 

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/v1/:+name"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];

NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
                                            completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
                                                if (error) {
                                                    NSLog(@"%@", error);
                                                } else {
                                                    NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
                                                    NSLog(@"%@", httpResponse);
                                                }
                                            }];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt

let uri = Uri.of_string "{{baseUrl}}/v1/:+name" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/v1/:+name",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "GET",
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('GET', '{{baseUrl}}/v1/:+name');

echo $response->getBody();
setUrl('{{baseUrl}}/v1/:+name');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/v1/:+name');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/v1/:+name' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/v1/:+name' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/v1/:+name")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/v1/:+name"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/v1/:+name"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/v1/:+name")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
)

response = conn.get('/baseUrl/v1/:+name') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/v1/:+name";

    let client = reqwest::Client::new();
    let response = client.get(url)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request GET \
  --url '{{baseUrl}}/v1/:+name'
http GET '{{baseUrl}}/v1/:+name'
wget --quiet \
  --method GET \
  --output-document \
  - '{{baseUrl}}/v1/:+name'
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/v1/:+name")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
GET datastore.projects.operations.list
{{baseUrl}}/v1/:+name/operations
QUERY PARAMS

name
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/v1/:+name/operations");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/v1/:+name/operations")
require "http/client"

url = "{{baseUrl}}/v1/:+name/operations"

response = HTTP::Client.get url
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Get,
    RequestUri = new Uri("{{baseUrl}}/v1/:+name/operations"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/v1/:+name/operations");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/v1/:+name/operations"

	req, _ := http.NewRequest("GET", url, nil)

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
GET /baseUrl/v1/:+name/operations HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/v1/:+name/operations")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/v1/:+name/operations"))
    .method("GET", HttpRequest.BodyPublishers.noBody())
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

Request request = new Request.Builder()
  .url("{{baseUrl}}/v1/:+name/operations")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/v1/:+name/operations")
  .asString();
const data = null;

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('GET', '{{baseUrl}}/v1/:+name/operations');

xhr.send(data);
import axios from 'axios';

const options = {method: 'GET', url: '{{baseUrl}}/v1/:+name/operations'};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/v1/:+name/operations';
const options = {method: 'GET'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/v1/:+name/operations',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/v1/:+name/operations")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/v1/:+name/operations',
  headers: {}
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on('data', function (chunk) {
    chunks.push(chunk);
  });

  res.on('end', function () {
    const body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.end();
const request = require('request');

const options = {method: 'GET', url: '{{baseUrl}}/v1/:+name/operations'};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/v1/:+name/operations');

req.end(function (res) {
  if (res.error) throw new Error(res.error);

  console.log(res.body);
});
const axios = require('axios').default;

const options = {method: 'GET', url: '{{baseUrl}}/v1/:+name/operations'};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/v1/:+name/operations';
const options = {method: 'GET'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
#import 

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/v1/:+name/operations"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];

NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
                                            completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
                                                if (error) {
                                                    NSLog(@"%@", error);
                                                } else {
                                                    NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
                                                    NSLog(@"%@", httpResponse);
                                                }
                                            }];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt

let uri = Uri.of_string "{{baseUrl}}/v1/:+name/operations" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/v1/:+name/operations",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "GET",
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('GET', '{{baseUrl}}/v1/:+name/operations');

echo $response->getBody();
setUrl('{{baseUrl}}/v1/:+name/operations');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/v1/:+name/operations');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/v1/:+name/operations' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/v1/:+name/operations' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/v1/:+name/operations")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/v1/:+name/operations"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/v1/:+name/operations"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/v1/:+name/operations")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
)

response = conn.get('/baseUrl/v1/:+name/operations') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/v1/:+name/operations";

    let client = reqwest::Client::new();
    let response = client.get(url)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request GET \
  --url '{{baseUrl}}/v1/:+name/operations'
http GET '{{baseUrl}}/v1/:+name/operations'
wget --quiet \
  --method GET \
  --output-document \
  - '{{baseUrl}}/v1/:+name/operations'
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/v1/:+name/operations")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
POST datastore.projects.reserveIds
{{baseUrl}}/v1/projects/:projectId:reserveIds
QUERY PARAMS

projectId
BODY json

{
  "databaseId": "",
  "keys": [
    {
      "partitionId": {
        "databaseId": "",
        "namespaceId": "",
        "projectId": ""
      },
      "path": [
        {
          "id": "",
          "kind": "",
          "name": ""
        }
      ]
    }
  ]
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/v1/projects/:projectId:reserveIds");

struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "content-type: application/json");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);

curl_easy_setopt(hnd, CURLOPT_POSTFIELDS, "{\n  \"databaseId\": \"\",\n  \"keys\": [\n    {\n      \"partitionId\": {\n        \"databaseId\": \"\",\n        \"namespaceId\": \"\",\n        \"projectId\": \"\"\n      },\n      \"path\": [\n        {\n          \"id\": \"\",\n          \"kind\": \"\",\n          \"name\": \"\"\n        }\n      ]\n    }\n  ]\n}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/post "{{baseUrl}}/v1/projects/:projectId:reserveIds" {:content-type :json
                                                                              :form-params {:databaseId ""
                                                                                            :keys [{:partitionId {:databaseId ""
                                                                                                                  :namespaceId ""
                                                                                                                  :projectId ""}
                                                                                                    :path [{:id ""
                                                                                                            :kind ""
                                                                                                            :name ""}]}]}})
require "http/client"

url = "{{baseUrl}}/v1/projects/:projectId:reserveIds"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"databaseId\": \"\",\n  \"keys\": [\n    {\n      \"partitionId\": {\n        \"databaseId\": \"\",\n        \"namespaceId\": \"\",\n        \"projectId\": \"\"\n      },\n      \"path\": [\n        {\n          \"id\": \"\",\n          \"kind\": \"\",\n          \"name\": \"\"\n        }\n      ]\n    }\n  ]\n}"

response = HTTP::Client.post url, headers: headers, body: reqBody
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Post,
    RequestUri = new Uri("{{baseUrl}}/v1/projects/:projectId:reserveIds"),
    Content = new StringContent("{\n  \"databaseId\": \"\",\n  \"keys\": [\n    {\n      \"partitionId\": {\n        \"databaseId\": \"\",\n        \"namespaceId\": \"\",\n        \"projectId\": \"\"\n      },\n      \"path\": [\n        {\n          \"id\": \"\",\n          \"kind\": \"\",\n          \"name\": \"\"\n        }\n      ]\n    }\n  ]\n}")
    {
        Headers =
        {
            ContentType = new MediaTypeHeaderValue("application/json")
        }
    }
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/v1/projects/:projectId:reserveIds");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"databaseId\": \"\",\n  \"keys\": [\n    {\n      \"partitionId\": {\n        \"databaseId\": \"\",\n        \"namespaceId\": \"\",\n        \"projectId\": \"\"\n      },\n      \"path\": [\n        {\n          \"id\": \"\",\n          \"kind\": \"\",\n          \"name\": \"\"\n        }\n      ]\n    }\n  ]\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/v1/projects/:projectId:reserveIds"

	payload := strings.NewReader("{\n  \"databaseId\": \"\",\n  \"keys\": [\n    {\n      \"partitionId\": {\n        \"databaseId\": \"\",\n        \"namespaceId\": \"\",\n        \"projectId\": \"\"\n      },\n      \"path\": [\n        {\n          \"id\": \"\",\n          \"kind\": \"\",\n          \"name\": \"\"\n        }\n      ]\n    }\n  ]\n}")

	req, _ := http.NewRequest("POST", url, payload)

	req.Header.Add("content-type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
POST /baseUrl/v1/projects/:projectId:reserveIds HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 267

{
  "databaseId": "",
  "keys": [
    {
      "partitionId": {
        "databaseId": "",
        "namespaceId": "",
        "projectId": ""
      },
      "path": [
        {
          "id": "",
          "kind": "",
          "name": ""
        }
      ]
    }
  ]
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/v1/projects/:projectId:reserveIds")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"databaseId\": \"\",\n  \"keys\": [\n    {\n      \"partitionId\": {\n        \"databaseId\": \"\",\n        \"namespaceId\": \"\",\n        \"projectId\": \"\"\n      },\n      \"path\": [\n        {\n          \"id\": \"\",\n          \"kind\": \"\",\n          \"name\": \"\"\n        }\n      ]\n    }\n  ]\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/v1/projects/:projectId:reserveIds"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"databaseId\": \"\",\n  \"keys\": [\n    {\n      \"partitionId\": {\n        \"databaseId\": \"\",\n        \"namespaceId\": \"\",\n        \"projectId\": \"\"\n      },\n      \"path\": [\n        {\n          \"id\": \"\",\n          \"kind\": \"\",\n          \"name\": \"\"\n        }\n      ]\n    }\n  ]\n}"))
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\n  \"databaseId\": \"\",\n  \"keys\": [\n    {\n      \"partitionId\": {\n        \"databaseId\": \"\",\n        \"namespaceId\": \"\",\n        \"projectId\": \"\"\n      },\n      \"path\": [\n        {\n          \"id\": \"\",\n          \"kind\": \"\",\n          \"name\": \"\"\n        }\n      ]\n    }\n  ]\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/v1/projects/:projectId:reserveIds")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/v1/projects/:projectId:reserveIds")
  .header("content-type", "application/json")
  .body("{\n  \"databaseId\": \"\",\n  \"keys\": [\n    {\n      \"partitionId\": {\n        \"databaseId\": \"\",\n        \"namespaceId\": \"\",\n        \"projectId\": \"\"\n      },\n      \"path\": [\n        {\n          \"id\": \"\",\n          \"kind\": \"\",\n          \"name\": \"\"\n        }\n      ]\n    }\n  ]\n}")
  .asString();
const data = JSON.stringify({
  databaseId: '',
  keys: [
    {
      partitionId: {
        databaseId: '',
        namespaceId: '',
        projectId: ''
      },
      path: [
        {
          id: '',
          kind: '',
          name: ''
        }
      ]
    }
  ]
});

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('POST', '{{baseUrl}}/v1/projects/:projectId:reserveIds');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'POST',
  url: '{{baseUrl}}/v1/projects/:projectId:reserveIds',
  headers: {'content-type': 'application/json'},
  data: {
    databaseId: '',
    keys: [
      {
        partitionId: {databaseId: '', namespaceId: '', projectId: ''},
        path: [{id: '', kind: '', name: ''}]
      }
    ]
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/v1/projects/:projectId:reserveIds';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"databaseId":"","keys":[{"partitionId":{"databaseId":"","namespaceId":"","projectId":""},"path":[{"id":"","kind":"","name":""}]}]}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/v1/projects/:projectId:reserveIds',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "databaseId": "",\n  "keys": [\n    {\n      "partitionId": {\n        "databaseId": "",\n        "namespaceId": "",\n        "projectId": ""\n      },\n      "path": [\n        {\n          "id": "",\n          "kind": "",\n          "name": ""\n        }\n      ]\n    }\n  ]\n}'
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"databaseId\": \"\",\n  \"keys\": [\n    {\n      \"partitionId\": {\n        \"databaseId\": \"\",\n        \"namespaceId\": \"\",\n        \"projectId\": \"\"\n      },\n      \"path\": [\n        {\n          \"id\": \"\",\n          \"kind\": \"\",\n          \"name\": \"\"\n        }\n      ]\n    }\n  ]\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/v1/projects/:projectId:reserveIds")
  .post(body)
  .addHeader("content-type", "application/json")
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'POST',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/v1/projects/:projectId:reserveIds',
  headers: {
    'content-type': 'application/json'
  }
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on('data', function (chunk) {
    chunks.push(chunk);
  });

  res.on('end', function () {
    const body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.write(JSON.stringify({
  databaseId: '',
  keys: [
    {
      partitionId: {databaseId: '', namespaceId: '', projectId: ''},
      path: [{id: '', kind: '', name: ''}]
    }
  ]
}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/v1/projects/:projectId:reserveIds',
  headers: {'content-type': 'application/json'},
  body: {
    databaseId: '',
    keys: [
      {
        partitionId: {databaseId: '', namespaceId: '', projectId: ''},
        path: [{id: '', kind: '', name: ''}]
      }
    ]
  },
  json: true
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('POST', '{{baseUrl}}/v1/projects/:projectId:reserveIds');

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send({
  databaseId: '',
  keys: [
    {
      partitionId: {
        databaseId: '',
        namespaceId: '',
        projectId: ''
      },
      path: [
        {
          id: '',
          kind: '',
          name: ''
        }
      ]
    }
  ]
});

req.end(function (res) {
  if (res.error) throw new Error(res.error);

  console.log(res.body);
});
const axios = require('axios').default;

const options = {
  method: 'POST',
  url: '{{baseUrl}}/v1/projects/:projectId:reserveIds',
  headers: {'content-type': 'application/json'},
  data: {
    databaseId: '',
    keys: [
      {
        partitionId: {databaseId: '', namespaceId: '', projectId: ''},
        path: [{id: '', kind: '', name: ''}]
      }
    ]
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/v1/projects/:projectId:reserveIds';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"databaseId":"","keys":[{"partitionId":{"databaseId":"","namespaceId":"","projectId":""},"path":[{"id":"","kind":"","name":""}]}]}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
#import 

NSDictionary *headers = @{ @"content-type": @"application/json" };
NSDictionary *parameters = @{ @"databaseId": @"",
                              @"keys": @[ @{ @"partitionId": @{ @"databaseId": @"", @"namespaceId": @"", @"projectId": @"" }, @"path": @[ @{ @"id": @"", @"kind": @"", @"name": @"" } ] } ] };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/v1/projects/:projectId:reserveIds"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"POST"];
[request setAllHTTPHeaderFields:headers];
[request setHTTPBody:postData];

NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
                                            completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
                                                if (error) {
                                                    NSLog(@"%@", error);
                                                } else {
                                                    NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
                                                    NSLog(@"%@", httpResponse);
                                                }
                                            }];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt

let uri = Uri.of_string "{{baseUrl}}/v1/projects/:projectId:reserveIds" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"databaseId\": \"\",\n  \"keys\": [\n    {\n      \"partitionId\": {\n        \"databaseId\": \"\",\n        \"namespaceId\": \"\",\n        \"projectId\": \"\"\n      },\n      \"path\": [\n        {\n          \"id\": \"\",\n          \"kind\": \"\",\n          \"name\": \"\"\n        }\n      ]\n    }\n  ]\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/v1/projects/:projectId:reserveIds",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "POST",
  CURLOPT_POSTFIELDS => json_encode([
    'databaseId' => '',
    'keys' => [
        [
                'partitionId' => [
                                'databaseId' => '',
                                'namespaceId' => '',
                                'projectId' => ''
                ],
                'path' => [
                                [
                                                                'id' => '',
                                                                'kind' => '',
                                                                'name' => ''
                                ]
                ]
        ]
    ]
  ]),
  CURLOPT_HTTPHEADER => [
    "content-type: application/json"
  ],
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('POST', '{{baseUrl}}/v1/projects/:projectId:reserveIds', [
  'body' => '{
  "databaseId": "",
  "keys": [
    {
      "partitionId": {
        "databaseId": "",
        "namespaceId": "",
        "projectId": ""
      },
      "path": [
        {
          "id": "",
          "kind": "",
          "name": ""
        }
      ]
    }
  ]
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/v1/projects/:projectId:reserveIds');
$request->setMethod(HTTP_METH_POST);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'databaseId' => '',
  'keys' => [
    [
        'partitionId' => [
                'databaseId' => '',
                'namespaceId' => '',
                'projectId' => ''
        ],
        'path' => [
                [
                                'id' => '',
                                'kind' => '',
                                'name' => ''
                ]
        ]
    ]
  ]
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'databaseId' => '',
  'keys' => [
    [
        'partitionId' => [
                'databaseId' => '',
                'namespaceId' => '',
                'projectId' => ''
        ],
        'path' => [
                [
                                'id' => '',
                                'kind' => '',
                                'name' => ''
                ]
        ]
    ]
  ]
]));
$request->setRequestUrl('{{baseUrl}}/v1/projects/:projectId:reserveIds');
$request->setRequestMethod('POST');
$request->setBody($body);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/v1/projects/:projectId:reserveIds' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "databaseId": "",
  "keys": [
    {
      "partitionId": {
        "databaseId": "",
        "namespaceId": "",
        "projectId": ""
      },
      "path": [
        {
          "id": "",
          "kind": "",
          "name": ""
        }
      ]
    }
  ]
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/v1/projects/:projectId:reserveIds' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "databaseId": "",
  "keys": [
    {
      "partitionId": {
        "databaseId": "",
        "namespaceId": "",
        "projectId": ""
      },
      "path": [
        {
          "id": "",
          "kind": "",
          "name": ""
        }
      ]
    }
  ]
}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{\n  \"databaseId\": \"\",\n  \"keys\": [\n    {\n      \"partitionId\": {\n        \"databaseId\": \"\",\n        \"namespaceId\": \"\",\n        \"projectId\": \"\"\n      },\n      \"path\": [\n        {\n          \"id\": \"\",\n          \"kind\": \"\",\n          \"name\": \"\"\n        }\n      ]\n    }\n  ]\n}"

headers = { 'content-type': "application/json" }

conn.request("POST", "/baseUrl/v1/projects/:projectId:reserveIds", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/v1/projects/:projectId:reserveIds"

payload = {
    "databaseId": "",
    "keys": [
        {
            "partitionId": {
                "databaseId": "",
                "namespaceId": "",
                "projectId": ""
            },
            "path": [
                {
                    "id": "",
                    "kind": "",
                    "name": ""
                }
            ]
        }
    ]
}
headers = {"content-type": "application/json"}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/v1/projects/:projectId:reserveIds"

payload <- "{\n  \"databaseId\": \"\",\n  \"keys\": [\n    {\n      \"partitionId\": {\n        \"databaseId\": \"\",\n        \"namespaceId\": \"\",\n        \"projectId\": \"\"\n      },\n      \"path\": [\n        {\n          \"id\": \"\",\n          \"kind\": \"\",\n          \"name\": \"\"\n        }\n      ]\n    }\n  ]\n}"

encode <- "json"

response <- VERB("POST", url, body = payload, content_type("application/json"), encode = encode)

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/v1/projects/:projectId:reserveIds")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)
request["content-type"] = 'application/json'
request.body = "{\n  \"databaseId\": \"\",\n  \"keys\": [\n    {\n      \"partitionId\": {\n        \"databaseId\": \"\",\n        \"namespaceId\": \"\",\n        \"projectId\": \"\"\n      },\n      \"path\": [\n        {\n          \"id\": \"\",\n          \"kind\": \"\",\n          \"name\": \"\"\n        }\n      ]\n    }\n  ]\n}"

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
  headers: {'Content-Type' => 'application/json'}
)

response = conn.post('/baseUrl/v1/projects/:projectId:reserveIds') do |req|
  req.body = "{\n  \"databaseId\": \"\",\n  \"keys\": [\n    {\n      \"partitionId\": {\n        \"databaseId\": \"\",\n        \"namespaceId\": \"\",\n        \"projectId\": \"\"\n      },\n      \"path\": [\n        {\n          \"id\": \"\",\n          \"kind\": \"\",\n          \"name\": \"\"\n        }\n      ]\n    }\n  ]\n}"
end

puts response.status
puts response.body
use serde_json::json;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/v1/projects/:projectId:reserveIds";

    let payload = json!({
        "databaseId": "",
        "keys": (
            json!({
                "partitionId": json!({
                    "databaseId": "",
                    "namespaceId": "",
                    "projectId": ""
                }),
                "path": (
                    json!({
                        "id": "",
                        "kind": "",
                        "name": ""
                    })
                )
            })
        )
    });

    let mut headers = reqwest::header::HeaderMap::new();
    headers.insert("content-type", "application/json".parse().unwrap());

    let client = reqwest::Client::new();
    let response = client.post(url)
        .headers(headers)
        .json(&payload)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request POST \
  --url {{baseUrl}}/v1/projects/:projectId:reserveIds \
  --header 'content-type: application/json' \
  --data '{
  "databaseId": "",
  "keys": [
    {
      "partitionId": {
        "databaseId": "",
        "namespaceId": "",
        "projectId": ""
      },
      "path": [
        {
          "id": "",
          "kind": "",
          "name": ""
        }
      ]
    }
  ]
}'
echo '{
  "databaseId": "",
  "keys": [
    {
      "partitionId": {
        "databaseId": "",
        "namespaceId": "",
        "projectId": ""
      },
      "path": [
        {
          "id": "",
          "kind": "",
          "name": ""
        }
      ]
    }
  ]
}' |  \
  http POST {{baseUrl}}/v1/projects/:projectId:reserveIds \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "databaseId": "",\n  "keys": [\n    {\n      "partitionId": {\n        "databaseId": "",\n        "namespaceId": "",\n        "projectId": ""\n      },\n      "path": [\n        {\n          "id": "",\n          "kind": "",\n          "name": ""\n        }\n      ]\n    }\n  ]\n}' \
  --output-document \
  - {{baseUrl}}/v1/projects/:projectId:reserveIds
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "databaseId": "",
  "keys": [
    [
      "partitionId": [
        "databaseId": "",
        "namespaceId": "",
        "projectId": ""
      ],
      "path": [
        [
          "id": "",
          "kind": "",
          "name": ""
        ]
      ]
    ]
  ]
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/v1/projects/:projectId:reserveIds")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
POST datastore.projects.rollback
{{baseUrl}}/v1/projects/:projectId:rollback
QUERY PARAMS

projectId
BODY json

{
  "databaseId": "",
  "transaction": ""
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/v1/projects/:projectId:rollback");

struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "content-type: application/json");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);

curl_easy_setopt(hnd, CURLOPT_POSTFIELDS, "{\n  \"databaseId\": \"\",\n  \"transaction\": \"\"\n}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/post "{{baseUrl}}/v1/projects/:projectId:rollback" {:content-type :json
                                                                            :form-params {:databaseId ""
                                                                                          :transaction ""}})
require "http/client"

url = "{{baseUrl}}/v1/projects/:projectId:rollback"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"databaseId\": \"\",\n  \"transaction\": \"\"\n}"

response = HTTP::Client.post url, headers: headers, body: reqBody
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Post,
    RequestUri = new Uri("{{baseUrl}}/v1/projects/:projectId:rollback"),
    Content = new StringContent("{\n  \"databaseId\": \"\",\n  \"transaction\": \"\"\n}")
    {
        Headers =
        {
            ContentType = new MediaTypeHeaderValue("application/json")
        }
    }
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/v1/projects/:projectId:rollback");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"databaseId\": \"\",\n  \"transaction\": \"\"\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/v1/projects/:projectId:rollback"

	payload := strings.NewReader("{\n  \"databaseId\": \"\",\n  \"transaction\": \"\"\n}")

	req, _ := http.NewRequest("POST", url, payload)

	req.Header.Add("content-type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
POST /baseUrl/v1/projects/:projectId:rollback HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 43

{
  "databaseId": "",
  "transaction": ""
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/v1/projects/:projectId:rollback")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"databaseId\": \"\",\n  \"transaction\": \"\"\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/v1/projects/:projectId:rollback"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"databaseId\": \"\",\n  \"transaction\": \"\"\n}"))
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\n  \"databaseId\": \"\",\n  \"transaction\": \"\"\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/v1/projects/:projectId:rollback")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/v1/projects/:projectId:rollback")
  .header("content-type", "application/json")
  .body("{\n  \"databaseId\": \"\",\n  \"transaction\": \"\"\n}")
  .asString();
const data = JSON.stringify({
  databaseId: '',
  transaction: ''
});

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('POST', '{{baseUrl}}/v1/projects/:projectId:rollback');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'POST',
  url: '{{baseUrl}}/v1/projects/:projectId:rollback',
  headers: {'content-type': 'application/json'},
  data: {databaseId: '', transaction: ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/v1/projects/:projectId:rollback';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"databaseId":"","transaction":""}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/v1/projects/:projectId:rollback',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "databaseId": "",\n  "transaction": ""\n}'
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"databaseId\": \"\",\n  \"transaction\": \"\"\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/v1/projects/:projectId:rollback")
  .post(body)
  .addHeader("content-type", "application/json")
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'POST',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/v1/projects/:projectId:rollback',
  headers: {
    'content-type': 'application/json'
  }
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on('data', function (chunk) {
    chunks.push(chunk);
  });

  res.on('end', function () {
    const body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.write(JSON.stringify({databaseId: '', transaction: ''}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/v1/projects/:projectId:rollback',
  headers: {'content-type': 'application/json'},
  body: {databaseId: '', transaction: ''},
  json: true
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('POST', '{{baseUrl}}/v1/projects/:projectId:rollback');

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send({
  databaseId: '',
  transaction: ''
});

req.end(function (res) {
  if (res.error) throw new Error(res.error);

  console.log(res.body);
});
const axios = require('axios').default;

const options = {
  method: 'POST',
  url: '{{baseUrl}}/v1/projects/:projectId:rollback',
  headers: {'content-type': 'application/json'},
  data: {databaseId: '', transaction: ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/v1/projects/:projectId:rollback';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"databaseId":"","transaction":""}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
#import 

NSDictionary *headers = @{ @"content-type": @"application/json" };
NSDictionary *parameters = @{ @"databaseId": @"",
                              @"transaction": @"" };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/v1/projects/:projectId:rollback"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"POST"];
[request setAllHTTPHeaderFields:headers];
[request setHTTPBody:postData];

NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
                                            completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
                                                if (error) {
                                                    NSLog(@"%@", error);
                                                } else {
                                                    NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
                                                    NSLog(@"%@", httpResponse);
                                                }
                                            }];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt

let uri = Uri.of_string "{{baseUrl}}/v1/projects/:projectId:rollback" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"databaseId\": \"\",\n  \"transaction\": \"\"\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/v1/projects/:projectId:rollback",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "POST",
  CURLOPT_POSTFIELDS => json_encode([
    'databaseId' => '',
    'transaction' => ''
  ]),
  CURLOPT_HTTPHEADER => [
    "content-type: application/json"
  ],
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('POST', '{{baseUrl}}/v1/projects/:projectId:rollback', [
  'body' => '{
  "databaseId": "",
  "transaction": ""
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/v1/projects/:projectId:rollback');
$request->setMethod(HTTP_METH_POST);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'databaseId' => '',
  'transaction' => ''
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'databaseId' => '',
  'transaction' => ''
]));
$request->setRequestUrl('{{baseUrl}}/v1/projects/:projectId:rollback');
$request->setRequestMethod('POST');
$request->setBody($body);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/v1/projects/:projectId:rollback' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "databaseId": "",
  "transaction": ""
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/v1/projects/:projectId:rollback' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "databaseId": "",
  "transaction": ""
}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{\n  \"databaseId\": \"\",\n  \"transaction\": \"\"\n}"

headers = { 'content-type': "application/json" }

conn.request("POST", "/baseUrl/v1/projects/:projectId:rollback", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/v1/projects/:projectId:rollback"

payload = {
    "databaseId": "",
    "transaction": ""
}
headers = {"content-type": "application/json"}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/v1/projects/:projectId:rollback"

payload <- "{\n  \"databaseId\": \"\",\n  \"transaction\": \"\"\n}"

encode <- "json"

response <- VERB("POST", url, body = payload, content_type("application/json"), encode = encode)

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/v1/projects/:projectId:rollback")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)
request["content-type"] = 'application/json'
request.body = "{\n  \"databaseId\": \"\",\n  \"transaction\": \"\"\n}"

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
  headers: {'Content-Type' => 'application/json'}
)

response = conn.post('/baseUrl/v1/projects/:projectId:rollback') do |req|
  req.body = "{\n  \"databaseId\": \"\",\n  \"transaction\": \"\"\n}"
end

puts response.status
puts response.body
use serde_json::json;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/v1/projects/:projectId:rollback";

    let payload = json!({
        "databaseId": "",
        "transaction": ""
    });

    let mut headers = reqwest::header::HeaderMap::new();
    headers.insert("content-type", "application/json".parse().unwrap());

    let client = reqwest::Client::new();
    let response = client.post(url)
        .headers(headers)
        .json(&payload)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request POST \
  --url {{baseUrl}}/v1/projects/:projectId:rollback \
  --header 'content-type: application/json' \
  --data '{
  "databaseId": "",
  "transaction": ""
}'
echo '{
  "databaseId": "",
  "transaction": ""
}' |  \
  http POST {{baseUrl}}/v1/projects/:projectId:rollback \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "databaseId": "",\n  "transaction": ""\n}' \
  --output-document \
  - {{baseUrl}}/v1/projects/:projectId:rollback
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "databaseId": "",
  "transaction": ""
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/v1/projects/:projectId:rollback")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
POST datastore.projects.runAggregationQuery
{{baseUrl}}/v1/projects/:projectId:runAggregationQuery
QUERY PARAMS

projectId
BODY json

{
  "aggregationQuery": {
    "aggregations": [
      {
        "alias": "",
        "avg": {
          "property": {
            "name": ""
          }
        },
        "count": {
          "upTo": ""
        },
        "sum": {
          "property": {}
        }
      }
    ],
    "nestedQuery": {
      "distinctOn": [
        {}
      ],
      "endCursor": "",
      "filter": {
        "compositeFilter": {
          "filters": [],
          "op": ""
        },
        "propertyFilter": {
          "op": "",
          "property": {},
          "value": {
            "arrayValue": {
              "values": []
            },
            "blobValue": "",
            "booleanValue": false,
            "doubleValue": "",
            "entityValue": {
              "key": {
                "partitionId": {
                  "databaseId": "",
                  "namespaceId": "",
                  "projectId": ""
                },
                "path": [
                  {
                    "id": "",
                    "kind": "",
                    "name": ""
                  }
                ]
              },
              "properties": {}
            },
            "excludeFromIndexes": false,
            "geoPointValue": {
              "latitude": "",
              "longitude": ""
            },
            "integerValue": "",
            "keyValue": {},
            "meaning": 0,
            "nullValue": "",
            "stringValue": "",
            "timestampValue": ""
          }
        }
      },
      "findNearest": {
        "distanceMeasure": "",
        "distanceResultProperty": "",
        "distanceThreshold": "",
        "limit": 0,
        "queryVector": {},
        "vectorProperty": {}
      },
      "kind": [
        {
          "name": ""
        }
      ],
      "limit": 0,
      "offset": 0,
      "order": [
        {
          "direction": "",
          "property": {}
        }
      ],
      "projection": [
        {
          "property": {}
        }
      ],
      "startCursor": ""
    }
  },
  "databaseId": "",
  "explainOptions": {
    "analyze": false
  },
  "gqlQuery": {
    "allowLiterals": false,
    "namedBindings": {},
    "positionalBindings": [
      {
        "cursor": "",
        "value": {}
      }
    ],
    "queryString": ""
  },
  "partitionId": {},
  "readOptions": {
    "newTransaction": {
      "readOnly": {
        "readTime": ""
      },
      "readWrite": {
        "previousTransaction": ""
      }
    },
    "readConsistency": "",
    "readTime": "",
    "transaction": ""
  }
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/v1/projects/:projectId:runAggregationQuery");

struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "content-type: application/json");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);

curl_easy_setopt(hnd, CURLOPT_POSTFIELDS, "{\n  \"aggregationQuery\": {\n    \"aggregations\": [\n      {\n        \"alias\": \"\",\n        \"avg\": {\n          \"property\": {\n            \"name\": \"\"\n          }\n        },\n        \"count\": {\n          \"upTo\": \"\"\n        },\n        \"sum\": {\n          \"property\": {}\n        }\n      }\n    ],\n    \"nestedQuery\": {\n      \"distinctOn\": [\n        {}\n      ],\n      \"endCursor\": \"\",\n      \"filter\": {\n        \"compositeFilter\": {\n          \"filters\": [],\n          \"op\": \"\"\n        },\n        \"propertyFilter\": {\n          \"op\": \"\",\n          \"property\": {},\n          \"value\": {\n            \"arrayValue\": {\n              \"values\": []\n            },\n            \"blobValue\": \"\",\n            \"booleanValue\": false,\n            \"doubleValue\": \"\",\n            \"entityValue\": {\n              \"key\": {\n                \"partitionId\": {\n                  \"databaseId\": \"\",\n                  \"namespaceId\": \"\",\n                  \"projectId\": \"\"\n                },\n                \"path\": [\n                  {\n                    \"id\": \"\",\n                    \"kind\": \"\",\n                    \"name\": \"\"\n                  }\n                ]\n              },\n              \"properties\": {}\n            },\n            \"excludeFromIndexes\": false,\n            \"geoPointValue\": {\n              \"latitude\": \"\",\n              \"longitude\": \"\"\n            },\n            \"integerValue\": \"\",\n            \"keyValue\": {},\n            \"meaning\": 0,\n            \"nullValue\": \"\",\n            \"stringValue\": \"\",\n            \"timestampValue\": \"\"\n          }\n        }\n      },\n      \"findNearest\": {\n        \"distanceMeasure\": \"\",\n        \"distanceResultProperty\": \"\",\n        \"distanceThreshold\": \"\",\n        \"limit\": 0,\n        \"queryVector\": {},\n        \"vectorProperty\": {}\n      },\n      \"kind\": [\n        {\n          \"name\": \"\"\n        }\n      ],\n      \"limit\": 0,\n      \"offset\": 0,\n      \"order\": [\n        {\n          \"direction\": \"\",\n          \"property\": {}\n        }\n      ],\n      \"projection\": [\n        {\n          \"property\": {}\n        }\n      ],\n      \"startCursor\": \"\"\n    }\n  },\n  \"databaseId\": \"\",\n  \"explainOptions\": {\n    \"analyze\": false\n  },\n  \"gqlQuery\": {\n    \"allowLiterals\": false,\n    \"namedBindings\": {},\n    \"positionalBindings\": [\n      {\n        \"cursor\": \"\",\n        \"value\": {}\n      }\n    ],\n    \"queryString\": \"\"\n  },\n  \"partitionId\": {},\n  \"readOptions\": {\n    \"newTransaction\": {\n      \"readOnly\": {\n        \"readTime\": \"\"\n      },\n      \"readWrite\": {\n        \"previousTransaction\": \"\"\n      }\n    },\n    \"readConsistency\": \"\",\n    \"readTime\": \"\",\n    \"transaction\": \"\"\n  }\n}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/post "{{baseUrl}}/v1/projects/:projectId:runAggregationQuery" {:content-type :json
                                                                                       :form-params {:aggregationQuery {:aggregations [{:alias ""
                                                                                                                                        :avg {:property {:name ""}}
                                                                                                                                        :count {:upTo ""}
                                                                                                                                        :sum {:property {}}}]
                                                                                                                        :nestedQuery {:distinctOn [{}]
                                                                                                                                      :endCursor ""
                                                                                                                                      :filter {:compositeFilter {:filters []
                                                                                                                                                                 :op ""}
                                                                                                                                               :propertyFilter {:op ""
                                                                                                                                                                :property {}
                                                                                                                                                                :value {:arrayValue {:values []}
                                                                                                                                                                        :blobValue ""
                                                                                                                                                                        :booleanValue false
                                                                                                                                                                        :doubleValue ""
                                                                                                                                                                        :entityValue {:key {:partitionId {:databaseId ""
                                                                                                                                                                                                          :namespaceId ""
                                                                                                                                                                                                          :projectId ""}
                                                                                                                                                                                            :path [{:id ""
                                                                                                                                                                                                    :kind ""
                                                                                                                                                                                                    :name ""}]}
                                                                                                                                                                                      :properties {}}
                                                                                                                                                                        :excludeFromIndexes false
                                                                                                                                                                        :geoPointValue {:latitude ""
                                                                                                                                                                                        :longitude ""}
                                                                                                                                                                        :integerValue ""
                                                                                                                                                                        :keyValue {}
                                                                                                                                                                        :meaning 0
                                                                                                                                                                        :nullValue ""
                                                                                                                                                                        :stringValue ""
                                                                                                                                                                        :timestampValue ""}}}
                                                                                                                                      :findNearest {:distanceMeasure ""
                                                                                                                                                    :distanceResultProperty ""
                                                                                                                                                    :distanceThreshold ""
                                                                                                                                                    :limit 0
                                                                                                                                                    :queryVector {}
                                                                                                                                                    :vectorProperty {}}
                                                                                                                                      :kind [{:name ""}]
                                                                                                                                      :limit 0
                                                                                                                                      :offset 0
                                                                                                                                      :order [{:direction ""
                                                                                                                                               :property {}}]
                                                                                                                                      :projection [{:property {}}]
                                                                                                                                      :startCursor ""}}
                                                                                                     :databaseId ""
                                                                                                     :explainOptions {:analyze false}
                                                                                                     :gqlQuery {:allowLiterals false
                                                                                                                :namedBindings {}
                                                                                                                :positionalBindings [{:cursor ""
                                                                                                                                      :value {}}]
                                                                                                                :queryString ""}
                                                                                                     :partitionId {}
                                                                                                     :readOptions {:newTransaction {:readOnly {:readTime ""}
                                                                                                                                    :readWrite {:previousTransaction ""}}
                                                                                                                   :readConsistency ""
                                                                                                                   :readTime ""
                                                                                                                   :transaction ""}}})
require "http/client"

url = "{{baseUrl}}/v1/projects/:projectId:runAggregationQuery"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"aggregationQuery\": {\n    \"aggregations\": [\n      {\n        \"alias\": \"\",\n        \"avg\": {\n          \"property\": {\n            \"name\": \"\"\n          }\n        },\n        \"count\": {\n          \"upTo\": \"\"\n        },\n        \"sum\": {\n          \"property\": {}\n        }\n      }\n    ],\n    \"nestedQuery\": {\n      \"distinctOn\": [\n        {}\n      ],\n      \"endCursor\": \"\",\n      \"filter\": {\n        \"compositeFilter\": {\n          \"filters\": [],\n          \"op\": \"\"\n        },\n        \"propertyFilter\": {\n          \"op\": \"\",\n          \"property\": {},\n          \"value\": {\n            \"arrayValue\": {\n              \"values\": []\n            },\n            \"blobValue\": \"\",\n            \"booleanValue\": false,\n            \"doubleValue\": \"\",\n            \"entityValue\": {\n              \"key\": {\n                \"partitionId\": {\n                  \"databaseId\": \"\",\n                  \"namespaceId\": \"\",\n                  \"projectId\": \"\"\n                },\n                \"path\": [\n                  {\n                    \"id\": \"\",\n                    \"kind\": \"\",\n                    \"name\": \"\"\n                  }\n                ]\n              },\n              \"properties\": {}\n            },\n            \"excludeFromIndexes\": false,\n            \"geoPointValue\": {\n              \"latitude\": \"\",\n              \"longitude\": \"\"\n            },\n            \"integerValue\": \"\",\n            \"keyValue\": {},\n            \"meaning\": 0,\n            \"nullValue\": \"\",\n            \"stringValue\": \"\",\n            \"timestampValue\": \"\"\n          }\n        }\n      },\n      \"findNearest\": {\n        \"distanceMeasure\": \"\",\n        \"distanceResultProperty\": \"\",\n        \"distanceThreshold\": \"\",\n        \"limit\": 0,\n        \"queryVector\": {},\n        \"vectorProperty\": {}\n      },\n      \"kind\": [\n        {\n          \"name\": \"\"\n        }\n      ],\n      \"limit\": 0,\n      \"offset\": 0,\n      \"order\": [\n        {\n          \"direction\": \"\",\n          \"property\": {}\n        }\n      ],\n      \"projection\": [\n        {\n          \"property\": {}\n        }\n      ],\n      \"startCursor\": \"\"\n    }\n  },\n  \"databaseId\": \"\",\n  \"explainOptions\": {\n    \"analyze\": false\n  },\n  \"gqlQuery\": {\n    \"allowLiterals\": false,\n    \"namedBindings\": {},\n    \"positionalBindings\": [\n      {\n        \"cursor\": \"\",\n        \"value\": {}\n      }\n    ],\n    \"queryString\": \"\"\n  },\n  \"partitionId\": {},\n  \"readOptions\": {\n    \"newTransaction\": {\n      \"readOnly\": {\n        \"readTime\": \"\"\n      },\n      \"readWrite\": {\n        \"previousTransaction\": \"\"\n      }\n    },\n    \"readConsistency\": \"\",\n    \"readTime\": \"\",\n    \"transaction\": \"\"\n  }\n}"

response = HTTP::Client.post url, headers: headers, body: reqBody
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Post,
    RequestUri = new Uri("{{baseUrl}}/v1/projects/:projectId:runAggregationQuery"),
    Content = new StringContent("{\n  \"aggregationQuery\": {\n    \"aggregations\": [\n      {\n        \"alias\": \"\",\n        \"avg\": {\n          \"property\": {\n            \"name\": \"\"\n          }\n        },\n        \"count\": {\n          \"upTo\": \"\"\n        },\n        \"sum\": {\n          \"property\": {}\n        }\n      }\n    ],\n    \"nestedQuery\": {\n      \"distinctOn\": [\n        {}\n      ],\n      \"endCursor\": \"\",\n      \"filter\": {\n        \"compositeFilter\": {\n          \"filters\": [],\n          \"op\": \"\"\n        },\n        \"propertyFilter\": {\n          \"op\": \"\",\n          \"property\": {},\n          \"value\": {\n            \"arrayValue\": {\n              \"values\": []\n            },\n            \"blobValue\": \"\",\n            \"booleanValue\": false,\n            \"doubleValue\": \"\",\n            \"entityValue\": {\n              \"key\": {\n                \"partitionId\": {\n                  \"databaseId\": \"\",\n                  \"namespaceId\": \"\",\n                  \"projectId\": \"\"\n                },\n                \"path\": [\n                  {\n                    \"id\": \"\",\n                    \"kind\": \"\",\n                    \"name\": \"\"\n                  }\n                ]\n              },\n              \"properties\": {}\n            },\n            \"excludeFromIndexes\": false,\n            \"geoPointValue\": {\n              \"latitude\": \"\",\n              \"longitude\": \"\"\n            },\n            \"integerValue\": \"\",\n            \"keyValue\": {},\n            \"meaning\": 0,\n            \"nullValue\": \"\",\n            \"stringValue\": \"\",\n            \"timestampValue\": \"\"\n          }\n        }\n      },\n      \"findNearest\": {\n        \"distanceMeasure\": \"\",\n        \"distanceResultProperty\": \"\",\n        \"distanceThreshold\": \"\",\n        \"limit\": 0,\n        \"queryVector\": {},\n        \"vectorProperty\": {}\n      },\n      \"kind\": [\n        {\n          \"name\": \"\"\n        }\n      ],\n      \"limit\": 0,\n      \"offset\": 0,\n      \"order\": [\n        {\n          \"direction\": \"\",\n          \"property\": {}\n        }\n      ],\n      \"projection\": [\n        {\n          \"property\": {}\n        }\n      ],\n      \"startCursor\": \"\"\n    }\n  },\n  \"databaseId\": \"\",\n  \"explainOptions\": {\n    \"analyze\": false\n  },\n  \"gqlQuery\": {\n    \"allowLiterals\": false,\n    \"namedBindings\": {},\n    \"positionalBindings\": [\n      {\n        \"cursor\": \"\",\n        \"value\": {}\n      }\n    ],\n    \"queryString\": \"\"\n  },\n  \"partitionId\": {},\n  \"readOptions\": {\n    \"newTransaction\": {\n      \"readOnly\": {\n        \"readTime\": \"\"\n      },\n      \"readWrite\": {\n        \"previousTransaction\": \"\"\n      }\n    },\n    \"readConsistency\": \"\",\n    \"readTime\": \"\",\n    \"transaction\": \"\"\n  }\n}")
    {
        Headers =
        {
            ContentType = new MediaTypeHeaderValue("application/json")
        }
    }
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/v1/projects/:projectId:runAggregationQuery");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"aggregationQuery\": {\n    \"aggregations\": [\n      {\n        \"alias\": \"\",\n        \"avg\": {\n          \"property\": {\n            \"name\": \"\"\n          }\n        },\n        \"count\": {\n          \"upTo\": \"\"\n        },\n        \"sum\": {\n          \"property\": {}\n        }\n      }\n    ],\n    \"nestedQuery\": {\n      \"distinctOn\": [\n        {}\n      ],\n      \"endCursor\": \"\",\n      \"filter\": {\n        \"compositeFilter\": {\n          \"filters\": [],\n          \"op\": \"\"\n        },\n        \"propertyFilter\": {\n          \"op\": \"\",\n          \"property\": {},\n          \"value\": {\n            \"arrayValue\": {\n              \"values\": []\n            },\n            \"blobValue\": \"\",\n            \"booleanValue\": false,\n            \"doubleValue\": \"\",\n            \"entityValue\": {\n              \"key\": {\n                \"partitionId\": {\n                  \"databaseId\": \"\",\n                  \"namespaceId\": \"\",\n                  \"projectId\": \"\"\n                },\n                \"path\": [\n                  {\n                    \"id\": \"\",\n                    \"kind\": \"\",\n                    \"name\": \"\"\n                  }\n                ]\n              },\n              \"properties\": {}\n            },\n            \"excludeFromIndexes\": false,\n            \"geoPointValue\": {\n              \"latitude\": \"\",\n              \"longitude\": \"\"\n            },\n            \"integerValue\": \"\",\n            \"keyValue\": {},\n            \"meaning\": 0,\n            \"nullValue\": \"\",\n            \"stringValue\": \"\",\n            \"timestampValue\": \"\"\n          }\n        }\n      },\n      \"findNearest\": {\n        \"distanceMeasure\": \"\",\n        \"distanceResultProperty\": \"\",\n        \"distanceThreshold\": \"\",\n        \"limit\": 0,\n        \"queryVector\": {},\n        \"vectorProperty\": {}\n      },\n      \"kind\": [\n        {\n          \"name\": \"\"\n        }\n      ],\n      \"limit\": 0,\n      \"offset\": 0,\n      \"order\": [\n        {\n          \"direction\": \"\",\n          \"property\": {}\n        }\n      ],\n      \"projection\": [\n        {\n          \"property\": {}\n        }\n      ],\n      \"startCursor\": \"\"\n    }\n  },\n  \"databaseId\": \"\",\n  \"explainOptions\": {\n    \"analyze\": false\n  },\n  \"gqlQuery\": {\n    \"allowLiterals\": false,\n    \"namedBindings\": {},\n    \"positionalBindings\": [\n      {\n        \"cursor\": \"\",\n        \"value\": {}\n      }\n    ],\n    \"queryString\": \"\"\n  },\n  \"partitionId\": {},\n  \"readOptions\": {\n    \"newTransaction\": {\n      \"readOnly\": {\n        \"readTime\": \"\"\n      },\n      \"readWrite\": {\n        \"previousTransaction\": \"\"\n      }\n    },\n    \"readConsistency\": \"\",\n    \"readTime\": \"\",\n    \"transaction\": \"\"\n  }\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/v1/projects/:projectId:runAggregationQuery"

	payload := strings.NewReader("{\n  \"aggregationQuery\": {\n    \"aggregations\": [\n      {\n        \"alias\": \"\",\n        \"avg\": {\n          \"property\": {\n            \"name\": \"\"\n          }\n        },\n        \"count\": {\n          \"upTo\": \"\"\n        },\n        \"sum\": {\n          \"property\": {}\n        }\n      }\n    ],\n    \"nestedQuery\": {\n      \"distinctOn\": [\n        {}\n      ],\n      \"endCursor\": \"\",\n      \"filter\": {\n        \"compositeFilter\": {\n          \"filters\": [],\n          \"op\": \"\"\n        },\n        \"propertyFilter\": {\n          \"op\": \"\",\n          \"property\": {},\n          \"value\": {\n            \"arrayValue\": {\n              \"values\": []\n            },\n            \"blobValue\": \"\",\n            \"booleanValue\": false,\n            \"doubleValue\": \"\",\n            \"entityValue\": {\n              \"key\": {\n                \"partitionId\": {\n                  \"databaseId\": \"\",\n                  \"namespaceId\": \"\",\n                  \"projectId\": \"\"\n                },\n                \"path\": [\n                  {\n                    \"id\": \"\",\n                    \"kind\": \"\",\n                    \"name\": \"\"\n                  }\n                ]\n              },\n              \"properties\": {}\n            },\n            \"excludeFromIndexes\": false,\n            \"geoPointValue\": {\n              \"latitude\": \"\",\n              \"longitude\": \"\"\n            },\n            \"integerValue\": \"\",\n            \"keyValue\": {},\n            \"meaning\": 0,\n            \"nullValue\": \"\",\n            \"stringValue\": \"\",\n            \"timestampValue\": \"\"\n          }\n        }\n      },\n      \"findNearest\": {\n        \"distanceMeasure\": \"\",\n        \"distanceResultProperty\": \"\",\n        \"distanceThreshold\": \"\",\n        \"limit\": 0,\n        \"queryVector\": {},\n        \"vectorProperty\": {}\n      },\n      \"kind\": [\n        {\n          \"name\": \"\"\n        }\n      ],\n      \"limit\": 0,\n      \"offset\": 0,\n      \"order\": [\n        {\n          \"direction\": \"\",\n          \"property\": {}\n        }\n      ],\n      \"projection\": [\n        {\n          \"property\": {}\n        }\n      ],\n      \"startCursor\": \"\"\n    }\n  },\n  \"databaseId\": \"\",\n  \"explainOptions\": {\n    \"analyze\": false\n  },\n  \"gqlQuery\": {\n    \"allowLiterals\": false,\n    \"namedBindings\": {},\n    \"positionalBindings\": [\n      {\n        \"cursor\": \"\",\n        \"value\": {}\n      }\n    ],\n    \"queryString\": \"\"\n  },\n  \"partitionId\": {},\n  \"readOptions\": {\n    \"newTransaction\": {\n      \"readOnly\": {\n        \"readTime\": \"\"\n      },\n      \"readWrite\": {\n        \"previousTransaction\": \"\"\n      }\n    },\n    \"readConsistency\": \"\",\n    \"readTime\": \"\",\n    \"transaction\": \"\"\n  }\n}")

	req, _ := http.NewRequest("POST", url, payload)

	req.Header.Add("content-type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
POST /baseUrl/v1/projects/:projectId:runAggregationQuery HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 2577

{
  "aggregationQuery": {
    "aggregations": [
      {
        "alias": "",
        "avg": {
          "property": {
            "name": ""
          }
        },
        "count": {
          "upTo": ""
        },
        "sum": {
          "property": {}
        }
      }
    ],
    "nestedQuery": {
      "distinctOn": [
        {}
      ],
      "endCursor": "",
      "filter": {
        "compositeFilter": {
          "filters": [],
          "op": ""
        },
        "propertyFilter": {
          "op": "",
          "property": {},
          "value": {
            "arrayValue": {
              "values": []
            },
            "blobValue": "",
            "booleanValue": false,
            "doubleValue": "",
            "entityValue": {
              "key": {
                "partitionId": {
                  "databaseId": "",
                  "namespaceId": "",
                  "projectId": ""
                },
                "path": [
                  {
                    "id": "",
                    "kind": "",
                    "name": ""
                  }
                ]
              },
              "properties": {}
            },
            "excludeFromIndexes": false,
            "geoPointValue": {
              "latitude": "",
              "longitude": ""
            },
            "integerValue": "",
            "keyValue": {},
            "meaning": 0,
            "nullValue": "",
            "stringValue": "",
            "timestampValue": ""
          }
        }
      },
      "findNearest": {
        "distanceMeasure": "",
        "distanceResultProperty": "",
        "distanceThreshold": "",
        "limit": 0,
        "queryVector": {},
        "vectorProperty": {}
      },
      "kind": [
        {
          "name": ""
        }
      ],
      "limit": 0,
      "offset": 0,
      "order": [
        {
          "direction": "",
          "property": {}
        }
      ],
      "projection": [
        {
          "property": {}
        }
      ],
      "startCursor": ""
    }
  },
  "databaseId": "",
  "explainOptions": {
    "analyze": false
  },
  "gqlQuery": {
    "allowLiterals": false,
    "namedBindings": {},
    "positionalBindings": [
      {
        "cursor": "",
        "value": {}
      }
    ],
    "queryString": ""
  },
  "partitionId": {},
  "readOptions": {
    "newTransaction": {
      "readOnly": {
        "readTime": ""
      },
      "readWrite": {
        "previousTransaction": ""
      }
    },
    "readConsistency": "",
    "readTime": "",
    "transaction": ""
  }
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/v1/projects/:projectId:runAggregationQuery")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"aggregationQuery\": {\n    \"aggregations\": [\n      {\n        \"alias\": \"\",\n        \"avg\": {\n          \"property\": {\n            \"name\": \"\"\n          }\n        },\n        \"count\": {\n          \"upTo\": \"\"\n        },\n        \"sum\": {\n          \"property\": {}\n        }\n      }\n    ],\n    \"nestedQuery\": {\n      \"distinctOn\": [\n        {}\n      ],\n      \"endCursor\": \"\",\n      \"filter\": {\n        \"compositeFilter\": {\n          \"filters\": [],\n          \"op\": \"\"\n        },\n        \"propertyFilter\": {\n          \"op\": \"\",\n          \"property\": {},\n          \"value\": {\n            \"arrayValue\": {\n              \"values\": []\n            },\n            \"blobValue\": \"\",\n            \"booleanValue\": false,\n            \"doubleValue\": \"\",\n            \"entityValue\": {\n              \"key\": {\n                \"partitionId\": {\n                  \"databaseId\": \"\",\n                  \"namespaceId\": \"\",\n                  \"projectId\": \"\"\n                },\n                \"path\": [\n                  {\n                    \"id\": \"\",\n                    \"kind\": \"\",\n                    \"name\": \"\"\n                  }\n                ]\n              },\n              \"properties\": {}\n            },\n            \"excludeFromIndexes\": false,\n            \"geoPointValue\": {\n              \"latitude\": \"\",\n              \"longitude\": \"\"\n            },\n            \"integerValue\": \"\",\n            \"keyValue\": {},\n            \"meaning\": 0,\n            \"nullValue\": \"\",\n            \"stringValue\": \"\",\n            \"timestampValue\": \"\"\n          }\n        }\n      },\n      \"findNearest\": {\n        \"distanceMeasure\": \"\",\n        \"distanceResultProperty\": \"\",\n        \"distanceThreshold\": \"\",\n        \"limit\": 0,\n        \"queryVector\": {},\n        \"vectorProperty\": {}\n      },\n      \"kind\": [\n        {\n          \"name\": \"\"\n        }\n      ],\n      \"limit\": 0,\n      \"offset\": 0,\n      \"order\": [\n        {\n          \"direction\": \"\",\n          \"property\": {}\n        }\n      ],\n      \"projection\": [\n        {\n          \"property\": {}\n        }\n      ],\n      \"startCursor\": \"\"\n    }\n  },\n  \"databaseId\": \"\",\n  \"explainOptions\": {\n    \"analyze\": false\n  },\n  \"gqlQuery\": {\n    \"allowLiterals\": false,\n    \"namedBindings\": {},\n    \"positionalBindings\": [\n      {\n        \"cursor\": \"\",\n        \"value\": {}\n      }\n    ],\n    \"queryString\": \"\"\n  },\n  \"partitionId\": {},\n  \"readOptions\": {\n    \"newTransaction\": {\n      \"readOnly\": {\n        \"readTime\": \"\"\n      },\n      \"readWrite\": {\n        \"previousTransaction\": \"\"\n      }\n    },\n    \"readConsistency\": \"\",\n    \"readTime\": \"\",\n    \"transaction\": \"\"\n  }\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/v1/projects/:projectId:runAggregationQuery"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"aggregationQuery\": {\n    \"aggregations\": [\n      {\n        \"alias\": \"\",\n        \"avg\": {\n          \"property\": {\n            \"name\": \"\"\n          }\n        },\n        \"count\": {\n          \"upTo\": \"\"\n        },\n        \"sum\": {\n          \"property\": {}\n        }\n      }\n    ],\n    \"nestedQuery\": {\n      \"distinctOn\": [\n        {}\n      ],\n      \"endCursor\": \"\",\n      \"filter\": {\n        \"compositeFilter\": {\n          \"filters\": [],\n          \"op\": \"\"\n        },\n        \"propertyFilter\": {\n          \"op\": \"\",\n          \"property\": {},\n          \"value\": {\n            \"arrayValue\": {\n              \"values\": []\n            },\n            \"blobValue\": \"\",\n            \"booleanValue\": false,\n            \"doubleValue\": \"\",\n            \"entityValue\": {\n              \"key\": {\n                \"partitionId\": {\n                  \"databaseId\": \"\",\n                  \"namespaceId\": \"\",\n                  \"projectId\": \"\"\n                },\n                \"path\": [\n                  {\n                    \"id\": \"\",\n                    \"kind\": \"\",\n                    \"name\": \"\"\n                  }\n                ]\n              },\n              \"properties\": {}\n            },\n            \"excludeFromIndexes\": false,\n            \"geoPointValue\": {\n              \"latitude\": \"\",\n              \"longitude\": \"\"\n            },\n            \"integerValue\": \"\",\n            \"keyValue\": {},\n            \"meaning\": 0,\n            \"nullValue\": \"\",\n            \"stringValue\": \"\",\n            \"timestampValue\": \"\"\n          }\n        }\n      },\n      \"findNearest\": {\n        \"distanceMeasure\": \"\",\n        \"distanceResultProperty\": \"\",\n        \"distanceThreshold\": \"\",\n        \"limit\": 0,\n        \"queryVector\": {},\n        \"vectorProperty\": {}\n      },\n      \"kind\": [\n        {\n          \"name\": \"\"\n        }\n      ],\n      \"limit\": 0,\n      \"offset\": 0,\n      \"order\": [\n        {\n          \"direction\": \"\",\n          \"property\": {}\n        }\n      ],\n      \"projection\": [\n        {\n          \"property\": {}\n        }\n      ],\n      \"startCursor\": \"\"\n    }\n  },\n  \"databaseId\": \"\",\n  \"explainOptions\": {\n    \"analyze\": false\n  },\n  \"gqlQuery\": {\n    \"allowLiterals\": false,\n    \"namedBindings\": {},\n    \"positionalBindings\": [\n      {\n        \"cursor\": \"\",\n        \"value\": {}\n      }\n    ],\n    \"queryString\": \"\"\n  },\n  \"partitionId\": {},\n  \"readOptions\": {\n    \"newTransaction\": {\n      \"readOnly\": {\n        \"readTime\": \"\"\n      },\n      \"readWrite\": {\n        \"previousTransaction\": \"\"\n      }\n    },\n    \"readConsistency\": \"\",\n    \"readTime\": \"\",\n    \"transaction\": \"\"\n  }\n}"))
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\n  \"aggregationQuery\": {\n    \"aggregations\": [\n      {\n        \"alias\": \"\",\n        \"avg\": {\n          \"property\": {\n            \"name\": \"\"\n          }\n        },\n        \"count\": {\n          \"upTo\": \"\"\n        },\n        \"sum\": {\n          \"property\": {}\n        }\n      }\n    ],\n    \"nestedQuery\": {\n      \"distinctOn\": [\n        {}\n      ],\n      \"endCursor\": \"\",\n      \"filter\": {\n        \"compositeFilter\": {\n          \"filters\": [],\n          \"op\": \"\"\n        },\n        \"propertyFilter\": {\n          \"op\": \"\",\n          \"property\": {},\n          \"value\": {\n            \"arrayValue\": {\n              \"values\": []\n            },\n            \"blobValue\": \"\",\n            \"booleanValue\": false,\n            \"doubleValue\": \"\",\n            \"entityValue\": {\n              \"key\": {\n                \"partitionId\": {\n                  \"databaseId\": \"\",\n                  \"namespaceId\": \"\",\n                  \"projectId\": \"\"\n                },\n                \"path\": [\n                  {\n                    \"id\": \"\",\n                    \"kind\": \"\",\n                    \"name\": \"\"\n                  }\n                ]\n              },\n              \"properties\": {}\n            },\n            \"excludeFromIndexes\": false,\n            \"geoPointValue\": {\n              \"latitude\": \"\",\n              \"longitude\": \"\"\n            },\n            \"integerValue\": \"\",\n            \"keyValue\": {},\n            \"meaning\": 0,\n            \"nullValue\": \"\",\n            \"stringValue\": \"\",\n            \"timestampValue\": \"\"\n          }\n        }\n      },\n      \"findNearest\": {\n        \"distanceMeasure\": \"\",\n        \"distanceResultProperty\": \"\",\n        \"distanceThreshold\": \"\",\n        \"limit\": 0,\n        \"queryVector\": {},\n        \"vectorProperty\": {}\n      },\n      \"kind\": [\n        {\n          \"name\": \"\"\n        }\n      ],\n      \"limit\": 0,\n      \"offset\": 0,\n      \"order\": [\n        {\n          \"direction\": \"\",\n          \"property\": {}\n        }\n      ],\n      \"projection\": [\n        {\n          \"property\": {}\n        }\n      ],\n      \"startCursor\": \"\"\n    }\n  },\n  \"databaseId\": \"\",\n  \"explainOptions\": {\n    \"analyze\": false\n  },\n  \"gqlQuery\": {\n    \"allowLiterals\": false,\n    \"namedBindings\": {},\n    \"positionalBindings\": [\n      {\n        \"cursor\": \"\",\n        \"value\": {}\n      }\n    ],\n    \"queryString\": \"\"\n  },\n  \"partitionId\": {},\n  \"readOptions\": {\n    \"newTransaction\": {\n      \"readOnly\": {\n        \"readTime\": \"\"\n      },\n      \"readWrite\": {\n        \"previousTransaction\": \"\"\n      }\n    },\n    \"readConsistency\": \"\",\n    \"readTime\": \"\",\n    \"transaction\": \"\"\n  }\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/v1/projects/:projectId:runAggregationQuery")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/v1/projects/:projectId:runAggregationQuery")
  .header("content-type", "application/json")
  .body("{\n  \"aggregationQuery\": {\n    \"aggregations\": [\n      {\n        \"alias\": \"\",\n        \"avg\": {\n          \"property\": {\n            \"name\": \"\"\n          }\n        },\n        \"count\": {\n          \"upTo\": \"\"\n        },\n        \"sum\": {\n          \"property\": {}\n        }\n      }\n    ],\n    \"nestedQuery\": {\n      \"distinctOn\": [\n        {}\n      ],\n      \"endCursor\": \"\",\n      \"filter\": {\n        \"compositeFilter\": {\n          \"filters\": [],\n          \"op\": \"\"\n        },\n        \"propertyFilter\": {\n          \"op\": \"\",\n          \"property\": {},\n          \"value\": {\n            \"arrayValue\": {\n              \"values\": []\n            },\n            \"blobValue\": \"\",\n            \"booleanValue\": false,\n            \"doubleValue\": \"\",\n            \"entityValue\": {\n              \"key\": {\n                \"partitionId\": {\n                  \"databaseId\": \"\",\n                  \"namespaceId\": \"\",\n                  \"projectId\": \"\"\n                },\n                \"path\": [\n                  {\n                    \"id\": \"\",\n                    \"kind\": \"\",\n                    \"name\": \"\"\n                  }\n                ]\n              },\n              \"properties\": {}\n            },\n            \"excludeFromIndexes\": false,\n            \"geoPointValue\": {\n              \"latitude\": \"\",\n              \"longitude\": \"\"\n            },\n            \"integerValue\": \"\",\n            \"keyValue\": {},\n            \"meaning\": 0,\n            \"nullValue\": \"\",\n            \"stringValue\": \"\",\n            \"timestampValue\": \"\"\n          }\n        }\n      },\n      \"findNearest\": {\n        \"distanceMeasure\": \"\",\n        \"distanceResultProperty\": \"\",\n        \"distanceThreshold\": \"\",\n        \"limit\": 0,\n        \"queryVector\": {},\n        \"vectorProperty\": {}\n      },\n      \"kind\": [\n        {\n          \"name\": \"\"\n        }\n      ],\n      \"limit\": 0,\n      \"offset\": 0,\n      \"order\": [\n        {\n          \"direction\": \"\",\n          \"property\": {}\n        }\n      ],\n      \"projection\": [\n        {\n          \"property\": {}\n        }\n      ],\n      \"startCursor\": \"\"\n    }\n  },\n  \"databaseId\": \"\",\n  \"explainOptions\": {\n    \"analyze\": false\n  },\n  \"gqlQuery\": {\n    \"allowLiterals\": false,\n    \"namedBindings\": {},\n    \"positionalBindings\": [\n      {\n        \"cursor\": \"\",\n        \"value\": {}\n      }\n    ],\n    \"queryString\": \"\"\n  },\n  \"partitionId\": {},\n  \"readOptions\": {\n    \"newTransaction\": {\n      \"readOnly\": {\n        \"readTime\": \"\"\n      },\n      \"readWrite\": {\n        \"previousTransaction\": \"\"\n      }\n    },\n    \"readConsistency\": \"\",\n    \"readTime\": \"\",\n    \"transaction\": \"\"\n  }\n}")
  .asString();
const data = JSON.stringify({
  aggregationQuery: {
    aggregations: [
      {
        alias: '',
        avg: {
          property: {
            name: ''
          }
        },
        count: {
          upTo: ''
        },
        sum: {
          property: {}
        }
      }
    ],
    nestedQuery: {
      distinctOn: [
        {}
      ],
      endCursor: '',
      filter: {
        compositeFilter: {
          filters: [],
          op: ''
        },
        propertyFilter: {
          op: '',
          property: {},
          value: {
            arrayValue: {
              values: []
            },
            blobValue: '',
            booleanValue: false,
            doubleValue: '',
            entityValue: {
              key: {
                partitionId: {
                  databaseId: '',
                  namespaceId: '',
                  projectId: ''
                },
                path: [
                  {
                    id: '',
                    kind: '',
                    name: ''
                  }
                ]
              },
              properties: {}
            },
            excludeFromIndexes: false,
            geoPointValue: {
              latitude: '',
              longitude: ''
            },
            integerValue: '',
            keyValue: {},
            meaning: 0,
            nullValue: '',
            stringValue: '',
            timestampValue: ''
          }
        }
      },
      findNearest: {
        distanceMeasure: '',
        distanceResultProperty: '',
        distanceThreshold: '',
        limit: 0,
        queryVector: {},
        vectorProperty: {}
      },
      kind: [
        {
          name: ''
        }
      ],
      limit: 0,
      offset: 0,
      order: [
        {
          direction: '',
          property: {}
        }
      ],
      projection: [
        {
          property: {}
        }
      ],
      startCursor: ''
    }
  },
  databaseId: '',
  explainOptions: {
    analyze: false
  },
  gqlQuery: {
    allowLiterals: false,
    namedBindings: {},
    positionalBindings: [
      {
        cursor: '',
        value: {}
      }
    ],
    queryString: ''
  },
  partitionId: {},
  readOptions: {
    newTransaction: {
      readOnly: {
        readTime: ''
      },
      readWrite: {
        previousTransaction: ''
      }
    },
    readConsistency: '',
    readTime: '',
    transaction: ''
  }
});

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('POST', '{{baseUrl}}/v1/projects/:projectId:runAggregationQuery');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'POST',
  url: '{{baseUrl}}/v1/projects/:projectId:runAggregationQuery',
  headers: {'content-type': 'application/json'},
  data: {
    aggregationQuery: {
      aggregations: [
        {alias: '', avg: {property: {name: ''}}, count: {upTo: ''}, sum: {property: {}}}
      ],
      nestedQuery: {
        distinctOn: [{}],
        endCursor: '',
        filter: {
          compositeFilter: {filters: [], op: ''},
          propertyFilter: {
            op: '',
            property: {},
            value: {
              arrayValue: {values: []},
              blobValue: '',
              booleanValue: false,
              doubleValue: '',
              entityValue: {
                key: {
                  partitionId: {databaseId: '', namespaceId: '', projectId: ''},
                  path: [{id: '', kind: '', name: ''}]
                },
                properties: {}
              },
              excludeFromIndexes: false,
              geoPointValue: {latitude: '', longitude: ''},
              integerValue: '',
              keyValue: {},
              meaning: 0,
              nullValue: '',
              stringValue: '',
              timestampValue: ''
            }
          }
        },
        findNearest: {
          distanceMeasure: '',
          distanceResultProperty: '',
          distanceThreshold: '',
          limit: 0,
          queryVector: {},
          vectorProperty: {}
        },
        kind: [{name: ''}],
        limit: 0,
        offset: 0,
        order: [{direction: '', property: {}}],
        projection: [{property: {}}],
        startCursor: ''
      }
    },
    databaseId: '',
    explainOptions: {analyze: false},
    gqlQuery: {
      allowLiterals: false,
      namedBindings: {},
      positionalBindings: [{cursor: '', value: {}}],
      queryString: ''
    },
    partitionId: {},
    readOptions: {
      newTransaction: {readOnly: {readTime: ''}, readWrite: {previousTransaction: ''}},
      readConsistency: '',
      readTime: '',
      transaction: ''
    }
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/v1/projects/:projectId:runAggregationQuery';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"aggregationQuery":{"aggregations":[{"alias":"","avg":{"property":{"name":""}},"count":{"upTo":""},"sum":{"property":{}}}],"nestedQuery":{"distinctOn":[{}],"endCursor":"","filter":{"compositeFilter":{"filters":[],"op":""},"propertyFilter":{"op":"","property":{},"value":{"arrayValue":{"values":[]},"blobValue":"","booleanValue":false,"doubleValue":"","entityValue":{"key":{"partitionId":{"databaseId":"","namespaceId":"","projectId":""},"path":[{"id":"","kind":"","name":""}]},"properties":{}},"excludeFromIndexes":false,"geoPointValue":{"latitude":"","longitude":""},"integerValue":"","keyValue":{},"meaning":0,"nullValue":"","stringValue":"","timestampValue":""}}},"findNearest":{"distanceMeasure":"","distanceResultProperty":"","distanceThreshold":"","limit":0,"queryVector":{},"vectorProperty":{}},"kind":[{"name":""}],"limit":0,"offset":0,"order":[{"direction":"","property":{}}],"projection":[{"property":{}}],"startCursor":""}},"databaseId":"","explainOptions":{"analyze":false},"gqlQuery":{"allowLiterals":false,"namedBindings":{},"positionalBindings":[{"cursor":"","value":{}}],"queryString":""},"partitionId":{},"readOptions":{"newTransaction":{"readOnly":{"readTime":""},"readWrite":{"previousTransaction":""}},"readConsistency":"","readTime":"","transaction":""}}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/v1/projects/:projectId:runAggregationQuery',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "aggregationQuery": {\n    "aggregations": [\n      {\n        "alias": "",\n        "avg": {\n          "property": {\n            "name": ""\n          }\n        },\n        "count": {\n          "upTo": ""\n        },\n        "sum": {\n          "property": {}\n        }\n      }\n    ],\n    "nestedQuery": {\n      "distinctOn": [\n        {}\n      ],\n      "endCursor": "",\n      "filter": {\n        "compositeFilter": {\n          "filters": [],\n          "op": ""\n        },\n        "propertyFilter": {\n          "op": "",\n          "property": {},\n          "value": {\n            "arrayValue": {\n              "values": []\n            },\n            "blobValue": "",\n            "booleanValue": false,\n            "doubleValue": "",\n            "entityValue": {\n              "key": {\n                "partitionId": {\n                  "databaseId": "",\n                  "namespaceId": "",\n                  "projectId": ""\n                },\n                "path": [\n                  {\n                    "id": "",\n                    "kind": "",\n                    "name": ""\n                  }\n                ]\n              },\n              "properties": {}\n            },\n            "excludeFromIndexes": false,\n            "geoPointValue": {\n              "latitude": "",\n              "longitude": ""\n            },\n            "integerValue": "",\n            "keyValue": {},\n            "meaning": 0,\n            "nullValue": "",\n            "stringValue": "",\n            "timestampValue": ""\n          }\n        }\n      },\n      "findNearest": {\n        "distanceMeasure": "",\n        "distanceResultProperty": "",\n        "distanceThreshold": "",\n        "limit": 0,\n        "queryVector": {},\n        "vectorProperty": {}\n      },\n      "kind": [\n        {\n          "name": ""\n        }\n      ],\n      "limit": 0,\n      "offset": 0,\n      "order": [\n        {\n          "direction": "",\n          "property": {}\n        }\n      ],\n      "projection": [\n        {\n          "property": {}\n        }\n      ],\n      "startCursor": ""\n    }\n  },\n  "databaseId": "",\n  "explainOptions": {\n    "analyze": false\n  },\n  "gqlQuery": {\n    "allowLiterals": false,\n    "namedBindings": {},\n    "positionalBindings": [\n      {\n        "cursor": "",\n        "value": {}\n      }\n    ],\n    "queryString": ""\n  },\n  "partitionId": {},\n  "readOptions": {\n    "newTransaction": {\n      "readOnly": {\n        "readTime": ""\n      },\n      "readWrite": {\n        "previousTransaction": ""\n      }\n    },\n    "readConsistency": "",\n    "readTime": "",\n    "transaction": ""\n  }\n}'
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"aggregationQuery\": {\n    \"aggregations\": [\n      {\n        \"alias\": \"\",\n        \"avg\": {\n          \"property\": {\n            \"name\": \"\"\n          }\n        },\n        \"count\": {\n          \"upTo\": \"\"\n        },\n        \"sum\": {\n          \"property\": {}\n        }\n      }\n    ],\n    \"nestedQuery\": {\n      \"distinctOn\": [\n        {}\n      ],\n      \"endCursor\": \"\",\n      \"filter\": {\n        \"compositeFilter\": {\n          \"filters\": [],\n          \"op\": \"\"\n        },\n        \"propertyFilter\": {\n          \"op\": \"\",\n          \"property\": {},\n          \"value\": {\n            \"arrayValue\": {\n              \"values\": []\n            },\n            \"blobValue\": \"\",\n            \"booleanValue\": false,\n            \"doubleValue\": \"\",\n            \"entityValue\": {\n              \"key\": {\n                \"partitionId\": {\n                  \"databaseId\": \"\",\n                  \"namespaceId\": \"\",\n                  \"projectId\": \"\"\n                },\n                \"path\": [\n                  {\n                    \"id\": \"\",\n                    \"kind\": \"\",\n                    \"name\": \"\"\n                  }\n                ]\n              },\n              \"properties\": {}\n            },\n            \"excludeFromIndexes\": false,\n            \"geoPointValue\": {\n              \"latitude\": \"\",\n              \"longitude\": \"\"\n            },\n            \"integerValue\": \"\",\n            \"keyValue\": {},\n            \"meaning\": 0,\n            \"nullValue\": \"\",\n            \"stringValue\": \"\",\n            \"timestampValue\": \"\"\n          }\n        }\n      },\n      \"findNearest\": {\n        \"distanceMeasure\": \"\",\n        \"distanceResultProperty\": \"\",\n        \"distanceThreshold\": \"\",\n        \"limit\": 0,\n        \"queryVector\": {},\n        \"vectorProperty\": {}\n      },\n      \"kind\": [\n        {\n          \"name\": \"\"\n        }\n      ],\n      \"limit\": 0,\n      \"offset\": 0,\n      \"order\": [\n        {\n          \"direction\": \"\",\n          \"property\": {}\n        }\n      ],\n      \"projection\": [\n        {\n          \"property\": {}\n        }\n      ],\n      \"startCursor\": \"\"\n    }\n  },\n  \"databaseId\": \"\",\n  \"explainOptions\": {\n    \"analyze\": false\n  },\n  \"gqlQuery\": {\n    \"allowLiterals\": false,\n    \"namedBindings\": {},\n    \"positionalBindings\": [\n      {\n        \"cursor\": \"\",\n        \"value\": {}\n      }\n    ],\n    \"queryString\": \"\"\n  },\n  \"partitionId\": {},\n  \"readOptions\": {\n    \"newTransaction\": {\n      \"readOnly\": {\n        \"readTime\": \"\"\n      },\n      \"readWrite\": {\n        \"previousTransaction\": \"\"\n      }\n    },\n    \"readConsistency\": \"\",\n    \"readTime\": \"\",\n    \"transaction\": \"\"\n  }\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/v1/projects/:projectId:runAggregationQuery")
  .post(body)
  .addHeader("content-type", "application/json")
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'POST',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/v1/projects/:projectId:runAggregationQuery',
  headers: {
    'content-type': 'application/json'
  }
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on('data', function (chunk) {
    chunks.push(chunk);
  });

  res.on('end', function () {
    const body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.write(JSON.stringify({
  aggregationQuery: {
    aggregations: [
      {alias: '', avg: {property: {name: ''}}, count: {upTo: ''}, sum: {property: {}}}
    ],
    nestedQuery: {
      distinctOn: [{}],
      endCursor: '',
      filter: {
        compositeFilter: {filters: [], op: ''},
        propertyFilter: {
          op: '',
          property: {},
          value: {
            arrayValue: {values: []},
            blobValue: '',
            booleanValue: false,
            doubleValue: '',
            entityValue: {
              key: {
                partitionId: {databaseId: '', namespaceId: '', projectId: ''},
                path: [{id: '', kind: '', name: ''}]
              },
              properties: {}
            },
            excludeFromIndexes: false,
            geoPointValue: {latitude: '', longitude: ''},
            integerValue: '',
            keyValue: {},
            meaning: 0,
            nullValue: '',
            stringValue: '',
            timestampValue: ''
          }
        }
      },
      findNearest: {
        distanceMeasure: '',
        distanceResultProperty: '',
        distanceThreshold: '',
        limit: 0,
        queryVector: {},
        vectorProperty: {}
      },
      kind: [{name: ''}],
      limit: 0,
      offset: 0,
      order: [{direction: '', property: {}}],
      projection: [{property: {}}],
      startCursor: ''
    }
  },
  databaseId: '',
  explainOptions: {analyze: false},
  gqlQuery: {
    allowLiterals: false,
    namedBindings: {},
    positionalBindings: [{cursor: '', value: {}}],
    queryString: ''
  },
  partitionId: {},
  readOptions: {
    newTransaction: {readOnly: {readTime: ''}, readWrite: {previousTransaction: ''}},
    readConsistency: '',
    readTime: '',
    transaction: ''
  }
}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/v1/projects/:projectId:runAggregationQuery',
  headers: {'content-type': 'application/json'},
  body: {
    aggregationQuery: {
      aggregations: [
        {alias: '', avg: {property: {name: ''}}, count: {upTo: ''}, sum: {property: {}}}
      ],
      nestedQuery: {
        distinctOn: [{}],
        endCursor: '',
        filter: {
          compositeFilter: {filters: [], op: ''},
          propertyFilter: {
            op: '',
            property: {},
            value: {
              arrayValue: {values: []},
              blobValue: '',
              booleanValue: false,
              doubleValue: '',
              entityValue: {
                key: {
                  partitionId: {databaseId: '', namespaceId: '', projectId: ''},
                  path: [{id: '', kind: '', name: ''}]
                },
                properties: {}
              },
              excludeFromIndexes: false,
              geoPointValue: {latitude: '', longitude: ''},
              integerValue: '',
              keyValue: {},
              meaning: 0,
              nullValue: '',
              stringValue: '',
              timestampValue: ''
            }
          }
        },
        findNearest: {
          distanceMeasure: '',
          distanceResultProperty: '',
          distanceThreshold: '',
          limit: 0,
          queryVector: {},
          vectorProperty: {}
        },
        kind: [{name: ''}],
        limit: 0,
        offset: 0,
        order: [{direction: '', property: {}}],
        projection: [{property: {}}],
        startCursor: ''
      }
    },
    databaseId: '',
    explainOptions: {analyze: false},
    gqlQuery: {
      allowLiterals: false,
      namedBindings: {},
      positionalBindings: [{cursor: '', value: {}}],
      queryString: ''
    },
    partitionId: {},
    readOptions: {
      newTransaction: {readOnly: {readTime: ''}, readWrite: {previousTransaction: ''}},
      readConsistency: '',
      readTime: '',
      transaction: ''
    }
  },
  json: true
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('POST', '{{baseUrl}}/v1/projects/:projectId:runAggregationQuery');

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send({
  aggregationQuery: {
    aggregations: [
      {
        alias: '',
        avg: {
          property: {
            name: ''
          }
        },
        count: {
          upTo: ''
        },
        sum: {
          property: {}
        }
      }
    ],
    nestedQuery: {
      distinctOn: [
        {}
      ],
      endCursor: '',
      filter: {
        compositeFilter: {
          filters: [],
          op: ''
        },
        propertyFilter: {
          op: '',
          property: {},
          value: {
            arrayValue: {
              values: []
            },
            blobValue: '',
            booleanValue: false,
            doubleValue: '',
            entityValue: {
              key: {
                partitionId: {
                  databaseId: '',
                  namespaceId: '',
                  projectId: ''
                },
                path: [
                  {
                    id: '',
                    kind: '',
                    name: ''
                  }
                ]
              },
              properties: {}
            },
            excludeFromIndexes: false,
            geoPointValue: {
              latitude: '',
              longitude: ''
            },
            integerValue: '',
            keyValue: {},
            meaning: 0,
            nullValue: '',
            stringValue: '',
            timestampValue: ''
          }
        }
      },
      findNearest: {
        distanceMeasure: '',
        distanceResultProperty: '',
        distanceThreshold: '',
        limit: 0,
        queryVector: {},
        vectorProperty: {}
      },
      kind: [
        {
          name: ''
        }
      ],
      limit: 0,
      offset: 0,
      order: [
        {
          direction: '',
          property: {}
        }
      ],
      projection: [
        {
          property: {}
        }
      ],
      startCursor: ''
    }
  },
  databaseId: '',
  explainOptions: {
    analyze: false
  },
  gqlQuery: {
    allowLiterals: false,
    namedBindings: {},
    positionalBindings: [
      {
        cursor: '',
        value: {}
      }
    ],
    queryString: ''
  },
  partitionId: {},
  readOptions: {
    newTransaction: {
      readOnly: {
        readTime: ''
      },
      readWrite: {
        previousTransaction: ''
      }
    },
    readConsistency: '',
    readTime: '',
    transaction: ''
  }
});

req.end(function (res) {
  if (res.error) throw new Error(res.error);

  console.log(res.body);
});
const axios = require('axios').default;

const options = {
  method: 'POST',
  url: '{{baseUrl}}/v1/projects/:projectId:runAggregationQuery',
  headers: {'content-type': 'application/json'},
  data: {
    aggregationQuery: {
      aggregations: [
        {alias: '', avg: {property: {name: ''}}, count: {upTo: ''}, sum: {property: {}}}
      ],
      nestedQuery: {
        distinctOn: [{}],
        endCursor: '',
        filter: {
          compositeFilter: {filters: [], op: ''},
          propertyFilter: {
            op: '',
            property: {},
            value: {
              arrayValue: {values: []},
              blobValue: '',
              booleanValue: false,
              doubleValue: '',
              entityValue: {
                key: {
                  partitionId: {databaseId: '', namespaceId: '', projectId: ''},
                  path: [{id: '', kind: '', name: ''}]
                },
                properties: {}
              },
              excludeFromIndexes: false,
              geoPointValue: {latitude: '', longitude: ''},
              integerValue: '',
              keyValue: {},
              meaning: 0,
              nullValue: '',
              stringValue: '',
              timestampValue: ''
            }
          }
        },
        findNearest: {
          distanceMeasure: '',
          distanceResultProperty: '',
          distanceThreshold: '',
          limit: 0,
          queryVector: {},
          vectorProperty: {}
        },
        kind: [{name: ''}],
        limit: 0,
        offset: 0,
        order: [{direction: '', property: {}}],
        projection: [{property: {}}],
        startCursor: ''
      }
    },
    databaseId: '',
    explainOptions: {analyze: false},
    gqlQuery: {
      allowLiterals: false,
      namedBindings: {},
      positionalBindings: [{cursor: '', value: {}}],
      queryString: ''
    },
    partitionId: {},
    readOptions: {
      newTransaction: {readOnly: {readTime: ''}, readWrite: {previousTransaction: ''}},
      readConsistency: '',
      readTime: '',
      transaction: ''
    }
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/v1/projects/:projectId:runAggregationQuery';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"aggregationQuery":{"aggregations":[{"alias":"","avg":{"property":{"name":""}},"count":{"upTo":""},"sum":{"property":{}}}],"nestedQuery":{"distinctOn":[{}],"endCursor":"","filter":{"compositeFilter":{"filters":[],"op":""},"propertyFilter":{"op":"","property":{},"value":{"arrayValue":{"values":[]},"blobValue":"","booleanValue":false,"doubleValue":"","entityValue":{"key":{"partitionId":{"databaseId":"","namespaceId":"","projectId":""},"path":[{"id":"","kind":"","name":""}]},"properties":{}},"excludeFromIndexes":false,"geoPointValue":{"latitude":"","longitude":""},"integerValue":"","keyValue":{},"meaning":0,"nullValue":"","stringValue":"","timestampValue":""}}},"findNearest":{"distanceMeasure":"","distanceResultProperty":"","distanceThreshold":"","limit":0,"queryVector":{},"vectorProperty":{}},"kind":[{"name":""}],"limit":0,"offset":0,"order":[{"direction":"","property":{}}],"projection":[{"property":{}}],"startCursor":""}},"databaseId":"","explainOptions":{"analyze":false},"gqlQuery":{"allowLiterals":false,"namedBindings":{},"positionalBindings":[{"cursor":"","value":{}}],"queryString":""},"partitionId":{},"readOptions":{"newTransaction":{"readOnly":{"readTime":""},"readWrite":{"previousTransaction":""}},"readConsistency":"","readTime":"","transaction":""}}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
#import 

NSDictionary *headers = @{ @"content-type": @"application/json" };
NSDictionary *parameters = @{ @"aggregationQuery": @{ @"aggregations": @[ @{ @"alias": @"", @"avg": @{ @"property": @{ @"name": @"" } }, @"count": @{ @"upTo": @"" }, @"sum": @{ @"property": @{  } } } ], @"nestedQuery": @{ @"distinctOn": @[ @{  } ], @"endCursor": @"", @"filter": @{ @"compositeFilter": @{ @"filters": @[  ], @"op": @"" }, @"propertyFilter": @{ @"op": @"", @"property": @{  }, @"value": @{ @"arrayValue": @{ @"values": @[  ] }, @"blobValue": @"", @"booleanValue": @NO, @"doubleValue": @"", @"entityValue": @{ @"key": @{ @"partitionId": @{ @"databaseId": @"", @"namespaceId": @"", @"projectId": @"" }, @"path": @[ @{ @"id": @"", @"kind": @"", @"name": @"" } ] }, @"properties": @{  } }, @"excludeFromIndexes": @NO, @"geoPointValue": @{ @"latitude": @"", @"longitude": @"" }, @"integerValue": @"", @"keyValue": @{  }, @"meaning": @0, @"nullValue": @"", @"stringValue": @"", @"timestampValue": @"" } } }, @"findNearest": @{ @"distanceMeasure": @"", @"distanceResultProperty": @"", @"distanceThreshold": @"", @"limit": @0, @"queryVector": @{  }, @"vectorProperty": @{  } }, @"kind": @[ @{ @"name": @"" } ], @"limit": @0, @"offset": @0, @"order": @[ @{ @"direction": @"", @"property": @{  } } ], @"projection": @[ @{ @"property": @{  } } ], @"startCursor": @"" } },
                              @"databaseId": @"",
                              @"explainOptions": @{ @"analyze": @NO },
                              @"gqlQuery": @{ @"allowLiterals": @NO, @"namedBindings": @{  }, @"positionalBindings": @[ @{ @"cursor": @"", @"value": @{  } } ], @"queryString": @"" },
                              @"partitionId": @{  },
                              @"readOptions": @{ @"newTransaction": @{ @"readOnly": @{ @"readTime": @"" }, @"readWrite": @{ @"previousTransaction": @"" } }, @"readConsistency": @"", @"readTime": @"", @"transaction": @"" } };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/v1/projects/:projectId:runAggregationQuery"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"POST"];
[request setAllHTTPHeaderFields:headers];
[request setHTTPBody:postData];

NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
                                            completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
                                                if (error) {
                                                    NSLog(@"%@", error);
                                                } else {
                                                    NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
                                                    NSLog(@"%@", httpResponse);
                                                }
                                            }];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt

let uri = Uri.of_string "{{baseUrl}}/v1/projects/:projectId:runAggregationQuery" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"aggregationQuery\": {\n    \"aggregations\": [\n      {\n        \"alias\": \"\",\n        \"avg\": {\n          \"property\": {\n            \"name\": \"\"\n          }\n        },\n        \"count\": {\n          \"upTo\": \"\"\n        },\n        \"sum\": {\n          \"property\": {}\n        }\n      }\n    ],\n    \"nestedQuery\": {\n      \"distinctOn\": [\n        {}\n      ],\n      \"endCursor\": \"\",\n      \"filter\": {\n        \"compositeFilter\": {\n          \"filters\": [],\n          \"op\": \"\"\n        },\n        \"propertyFilter\": {\n          \"op\": \"\",\n          \"property\": {},\n          \"value\": {\n            \"arrayValue\": {\n              \"values\": []\n            },\n            \"blobValue\": \"\",\n            \"booleanValue\": false,\n            \"doubleValue\": \"\",\n            \"entityValue\": {\n              \"key\": {\n                \"partitionId\": {\n                  \"databaseId\": \"\",\n                  \"namespaceId\": \"\",\n                  \"projectId\": \"\"\n                },\n                \"path\": [\n                  {\n                    \"id\": \"\",\n                    \"kind\": \"\",\n                    \"name\": \"\"\n                  }\n                ]\n              },\n              \"properties\": {}\n            },\n            \"excludeFromIndexes\": false,\n            \"geoPointValue\": {\n              \"latitude\": \"\",\n              \"longitude\": \"\"\n            },\n            \"integerValue\": \"\",\n            \"keyValue\": {},\n            \"meaning\": 0,\n            \"nullValue\": \"\",\n            \"stringValue\": \"\",\n            \"timestampValue\": \"\"\n          }\n        }\n      },\n      \"findNearest\": {\n        \"distanceMeasure\": \"\",\n        \"distanceResultProperty\": \"\",\n        \"distanceThreshold\": \"\",\n        \"limit\": 0,\n        \"queryVector\": {},\n        \"vectorProperty\": {}\n      },\n      \"kind\": [\n        {\n          \"name\": \"\"\n        }\n      ],\n      \"limit\": 0,\n      \"offset\": 0,\n      \"order\": [\n        {\n          \"direction\": \"\",\n          \"property\": {}\n        }\n      ],\n      \"projection\": [\n        {\n          \"property\": {}\n        }\n      ],\n      \"startCursor\": \"\"\n    }\n  },\n  \"databaseId\": \"\",\n  \"explainOptions\": {\n    \"analyze\": false\n  },\n  \"gqlQuery\": {\n    \"allowLiterals\": false,\n    \"namedBindings\": {},\n    \"positionalBindings\": [\n      {\n        \"cursor\": \"\",\n        \"value\": {}\n      }\n    ],\n    \"queryString\": \"\"\n  },\n  \"partitionId\": {},\n  \"readOptions\": {\n    \"newTransaction\": {\n      \"readOnly\": {\n        \"readTime\": \"\"\n      },\n      \"readWrite\": {\n        \"previousTransaction\": \"\"\n      }\n    },\n    \"readConsistency\": \"\",\n    \"readTime\": \"\",\n    \"transaction\": \"\"\n  }\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/v1/projects/:projectId:runAggregationQuery",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "POST",
  CURLOPT_POSTFIELDS => json_encode([
    'aggregationQuery' => [
        'aggregations' => [
                [
                                'alias' => '',
                                'avg' => [
                                                                'property' => [
                                                                                                                                'name' => ''
                                                                ]
                                ],
                                'count' => [
                                                                'upTo' => ''
                                ],
                                'sum' => [
                                                                'property' => [
                                                                                                                                
                                                                ]
                                ]
                ]
        ],
        'nestedQuery' => [
                'distinctOn' => [
                                [
                                                                
                                ]
                ],
                'endCursor' => '',
                'filter' => [
                                'compositeFilter' => [
                                                                'filters' => [
                                                                                                                                
                                                                ],
                                                                'op' => ''
                                ],
                                'propertyFilter' => [
                                                                'op' => '',
                                                                'property' => [
                                                                                                                                
                                                                ],
                                                                'value' => [
                                                                                                                                'arrayValue' => [
                                                                                                                                                                                                                                                                'values' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                ]
                                                                                                                                ],
                                                                                                                                'blobValue' => '',
                                                                                                                                'booleanValue' => null,
                                                                                                                                'doubleValue' => '',
                                                                                                                                'entityValue' => [
                                                                                                                                                                                                                                                                'key' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'partitionId' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'databaseId' => '',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'namespaceId' => '',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'projectId' => ''
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                ],
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'path' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'id' => '',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'kind' => '',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'name' => ''
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                ]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                ]
                                                                                                                                                                                                                                                                ],
                                                                                                                                                                                                                                                                'properties' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                ]
                                                                                                                                ],
                                                                                                                                'excludeFromIndexes' => null,
                                                                                                                                'geoPointValue' => [
                                                                                                                                                                                                                                                                'latitude' => '',
                                                                                                                                                                                                                                                                'longitude' => ''
                                                                                                                                ],
                                                                                                                                'integerValue' => '',
                                                                                                                                'keyValue' => [
                                                                                                                                                                                                                                                                
                                                                                                                                ],
                                                                                                                                'meaning' => 0,
                                                                                                                                'nullValue' => '',
                                                                                                                                'stringValue' => '',
                                                                                                                                'timestampValue' => ''
                                                                ]
                                ]
                ],
                'findNearest' => [
                                'distanceMeasure' => '',
                                'distanceResultProperty' => '',
                                'distanceThreshold' => '',
                                'limit' => 0,
                                'queryVector' => [
                                                                
                                ],
                                'vectorProperty' => [
                                                                
                                ]
                ],
                'kind' => [
                                [
                                                                'name' => ''
                                ]
                ],
                'limit' => 0,
                'offset' => 0,
                'order' => [
                                [
                                                                'direction' => '',
                                                                'property' => [
                                                                                                                                
                                                                ]
                                ]
                ],
                'projection' => [
                                [
                                                                'property' => [
                                                                                                                                
                                                                ]
                                ]
                ],
                'startCursor' => ''
        ]
    ],
    'databaseId' => '',
    'explainOptions' => [
        'analyze' => null
    ],
    'gqlQuery' => [
        'allowLiterals' => null,
        'namedBindings' => [
                
        ],
        'positionalBindings' => [
                [
                                'cursor' => '',
                                'value' => [
                                                                
                                ]
                ]
        ],
        'queryString' => ''
    ],
    'partitionId' => [
        
    ],
    'readOptions' => [
        'newTransaction' => [
                'readOnly' => [
                                'readTime' => ''
                ],
                'readWrite' => [
                                'previousTransaction' => ''
                ]
        ],
        'readConsistency' => '',
        'readTime' => '',
        'transaction' => ''
    ]
  ]),
  CURLOPT_HTTPHEADER => [
    "content-type: application/json"
  ],
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('POST', '{{baseUrl}}/v1/projects/:projectId:runAggregationQuery', [
  'body' => '{
  "aggregationQuery": {
    "aggregations": [
      {
        "alias": "",
        "avg": {
          "property": {
            "name": ""
          }
        },
        "count": {
          "upTo": ""
        },
        "sum": {
          "property": {}
        }
      }
    ],
    "nestedQuery": {
      "distinctOn": [
        {}
      ],
      "endCursor": "",
      "filter": {
        "compositeFilter": {
          "filters": [],
          "op": ""
        },
        "propertyFilter": {
          "op": "",
          "property": {},
          "value": {
            "arrayValue": {
              "values": []
            },
            "blobValue": "",
            "booleanValue": false,
            "doubleValue": "",
            "entityValue": {
              "key": {
                "partitionId": {
                  "databaseId": "",
                  "namespaceId": "",
                  "projectId": ""
                },
                "path": [
                  {
                    "id": "",
                    "kind": "",
                    "name": ""
                  }
                ]
              },
              "properties": {}
            },
            "excludeFromIndexes": false,
            "geoPointValue": {
              "latitude": "",
              "longitude": ""
            },
            "integerValue": "",
            "keyValue": {},
            "meaning": 0,
            "nullValue": "",
            "stringValue": "",
            "timestampValue": ""
          }
        }
      },
      "findNearest": {
        "distanceMeasure": "",
        "distanceResultProperty": "",
        "distanceThreshold": "",
        "limit": 0,
        "queryVector": {},
        "vectorProperty": {}
      },
      "kind": [
        {
          "name": ""
        }
      ],
      "limit": 0,
      "offset": 0,
      "order": [
        {
          "direction": "",
          "property": {}
        }
      ],
      "projection": [
        {
          "property": {}
        }
      ],
      "startCursor": ""
    }
  },
  "databaseId": "",
  "explainOptions": {
    "analyze": false
  },
  "gqlQuery": {
    "allowLiterals": false,
    "namedBindings": {},
    "positionalBindings": [
      {
        "cursor": "",
        "value": {}
      }
    ],
    "queryString": ""
  },
  "partitionId": {},
  "readOptions": {
    "newTransaction": {
      "readOnly": {
        "readTime": ""
      },
      "readWrite": {
        "previousTransaction": ""
      }
    },
    "readConsistency": "",
    "readTime": "",
    "transaction": ""
  }
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/v1/projects/:projectId:runAggregationQuery');
$request->setMethod(HTTP_METH_POST);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'aggregationQuery' => [
    'aggregations' => [
        [
                'alias' => '',
                'avg' => [
                                'property' => [
                                                                'name' => ''
                                ]
                ],
                'count' => [
                                'upTo' => ''
                ],
                'sum' => [
                                'property' => [
                                                                
                                ]
                ]
        ]
    ],
    'nestedQuery' => [
        'distinctOn' => [
                [
                                
                ]
        ],
        'endCursor' => '',
        'filter' => [
                'compositeFilter' => [
                                'filters' => [
                                                                
                                ],
                                'op' => ''
                ],
                'propertyFilter' => [
                                'op' => '',
                                'property' => [
                                                                
                                ],
                                'value' => [
                                                                'arrayValue' => [
                                                                                                                                'values' => [
                                                                                                                                                                                                                                                                
                                                                                                                                ]
                                                                ],
                                                                'blobValue' => '',
                                                                'booleanValue' => null,
                                                                'doubleValue' => '',
                                                                'entityValue' => [
                                                                                                                                'key' => [
                                                                                                                                                                                                                                                                'partitionId' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'databaseId' => '',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'namespaceId' => '',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'projectId' => ''
                                                                                                                                                                                                                                                                ],
                                                                                                                                                                                                                                                                'path' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'id' => '',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'kind' => '',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'name' => ''
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                ]
                                                                                                                                                                                                                                                                ]
                                                                                                                                ],
                                                                                                                                'properties' => [
                                                                                                                                                                                                                                                                
                                                                                                                                ]
                                                                ],
                                                                'excludeFromIndexes' => null,
                                                                'geoPointValue' => [
                                                                                                                                'latitude' => '',
                                                                                                                                'longitude' => ''
                                                                ],
                                                                'integerValue' => '',
                                                                'keyValue' => [
                                                                                                                                
                                                                ],
                                                                'meaning' => 0,
                                                                'nullValue' => '',
                                                                'stringValue' => '',
                                                                'timestampValue' => ''
                                ]
                ]
        ],
        'findNearest' => [
                'distanceMeasure' => '',
                'distanceResultProperty' => '',
                'distanceThreshold' => '',
                'limit' => 0,
                'queryVector' => [
                                
                ],
                'vectorProperty' => [
                                
                ]
        ],
        'kind' => [
                [
                                'name' => ''
                ]
        ],
        'limit' => 0,
        'offset' => 0,
        'order' => [
                [
                                'direction' => '',
                                'property' => [
                                                                
                                ]
                ]
        ],
        'projection' => [
                [
                                'property' => [
                                                                
                                ]
                ]
        ],
        'startCursor' => ''
    ]
  ],
  'databaseId' => '',
  'explainOptions' => [
    'analyze' => null
  ],
  'gqlQuery' => [
    'allowLiterals' => null,
    'namedBindings' => [
        
    ],
    'positionalBindings' => [
        [
                'cursor' => '',
                'value' => [
                                
                ]
        ]
    ],
    'queryString' => ''
  ],
  'partitionId' => [
    
  ],
  'readOptions' => [
    'newTransaction' => [
        'readOnly' => [
                'readTime' => ''
        ],
        'readWrite' => [
                'previousTransaction' => ''
        ]
    ],
    'readConsistency' => '',
    'readTime' => '',
    'transaction' => ''
  ]
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'aggregationQuery' => [
    'aggregations' => [
        [
                'alias' => '',
                'avg' => [
                                'property' => [
                                                                'name' => ''
                                ]
                ],
                'count' => [
                                'upTo' => ''
                ],
                'sum' => [
                                'property' => [
                                                                
                                ]
                ]
        ]
    ],
    'nestedQuery' => [
        'distinctOn' => [
                [
                                
                ]
        ],
        'endCursor' => '',
        'filter' => [
                'compositeFilter' => [
                                'filters' => [
                                                                
                                ],
                                'op' => ''
                ],
                'propertyFilter' => [
                                'op' => '',
                                'property' => [
                                                                
                                ],
                                'value' => [
                                                                'arrayValue' => [
                                                                                                                                'values' => [
                                                                                                                                                                                                                                                                
                                                                                                                                ]
                                                                ],
                                                                'blobValue' => '',
                                                                'booleanValue' => null,
                                                                'doubleValue' => '',
                                                                'entityValue' => [
                                                                                                                                'key' => [
                                                                                                                                                                                                                                                                'partitionId' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'databaseId' => '',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'namespaceId' => '',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'projectId' => ''
                                                                                                                                                                                                                                                                ],
                                                                                                                                                                                                                                                                'path' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'id' => '',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'kind' => '',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'name' => ''
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                ]
                                                                                                                                                                                                                                                                ]
                                                                                                                                ],
                                                                                                                                'properties' => [
                                                                                                                                                                                                                                                                
                                                                                                                                ]
                                                                ],
                                                                'excludeFromIndexes' => null,
                                                                'geoPointValue' => [
                                                                                                                                'latitude' => '',
                                                                                                                                'longitude' => ''
                                                                ],
                                                                'integerValue' => '',
                                                                'keyValue' => [
                                                                                                                                
                                                                ],
                                                                'meaning' => 0,
                                                                'nullValue' => '',
                                                                'stringValue' => '',
                                                                'timestampValue' => ''
                                ]
                ]
        ],
        'findNearest' => [
                'distanceMeasure' => '',
                'distanceResultProperty' => '',
                'distanceThreshold' => '',
                'limit' => 0,
                'queryVector' => [
                                
                ],
                'vectorProperty' => [
                                
                ]
        ],
        'kind' => [
                [
                                'name' => ''
                ]
        ],
        'limit' => 0,
        'offset' => 0,
        'order' => [
                [
                                'direction' => '',
                                'property' => [
                                                                
                                ]
                ]
        ],
        'projection' => [
                [
                                'property' => [
                                                                
                                ]
                ]
        ],
        'startCursor' => ''
    ]
  ],
  'databaseId' => '',
  'explainOptions' => [
    'analyze' => null
  ],
  'gqlQuery' => [
    'allowLiterals' => null,
    'namedBindings' => [
        
    ],
    'positionalBindings' => [
        [
                'cursor' => '',
                'value' => [
                                
                ]
        ]
    ],
    'queryString' => ''
  ],
  'partitionId' => [
    
  ],
  'readOptions' => [
    'newTransaction' => [
        'readOnly' => [
                'readTime' => ''
        ],
        'readWrite' => [
                'previousTransaction' => ''
        ]
    ],
    'readConsistency' => '',
    'readTime' => '',
    'transaction' => ''
  ]
]));
$request->setRequestUrl('{{baseUrl}}/v1/projects/:projectId:runAggregationQuery');
$request->setRequestMethod('POST');
$request->setBody($body);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/v1/projects/:projectId:runAggregationQuery' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "aggregationQuery": {
    "aggregations": [
      {
        "alias": "",
        "avg": {
          "property": {
            "name": ""
          }
        },
        "count": {
          "upTo": ""
        },
        "sum": {
          "property": {}
        }
      }
    ],
    "nestedQuery": {
      "distinctOn": [
        {}
      ],
      "endCursor": "",
      "filter": {
        "compositeFilter": {
          "filters": [],
          "op": ""
        },
        "propertyFilter": {
          "op": "",
          "property": {},
          "value": {
            "arrayValue": {
              "values": []
            },
            "blobValue": "",
            "booleanValue": false,
            "doubleValue": "",
            "entityValue": {
              "key": {
                "partitionId": {
                  "databaseId": "",
                  "namespaceId": "",
                  "projectId": ""
                },
                "path": [
                  {
                    "id": "",
                    "kind": "",
                    "name": ""
                  }
                ]
              },
              "properties": {}
            },
            "excludeFromIndexes": false,
            "geoPointValue": {
              "latitude": "",
              "longitude": ""
            },
            "integerValue": "",
            "keyValue": {},
            "meaning": 0,
            "nullValue": "",
            "stringValue": "",
            "timestampValue": ""
          }
        }
      },
      "findNearest": {
        "distanceMeasure": "",
        "distanceResultProperty": "",
        "distanceThreshold": "",
        "limit": 0,
        "queryVector": {},
        "vectorProperty": {}
      },
      "kind": [
        {
          "name": ""
        }
      ],
      "limit": 0,
      "offset": 0,
      "order": [
        {
          "direction": "",
          "property": {}
        }
      ],
      "projection": [
        {
          "property": {}
        }
      ],
      "startCursor": ""
    }
  },
  "databaseId": "",
  "explainOptions": {
    "analyze": false
  },
  "gqlQuery": {
    "allowLiterals": false,
    "namedBindings": {},
    "positionalBindings": [
      {
        "cursor": "",
        "value": {}
      }
    ],
    "queryString": ""
  },
  "partitionId": {},
  "readOptions": {
    "newTransaction": {
      "readOnly": {
        "readTime": ""
      },
      "readWrite": {
        "previousTransaction": ""
      }
    },
    "readConsistency": "",
    "readTime": "",
    "transaction": ""
  }
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/v1/projects/:projectId:runAggregationQuery' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "aggregationQuery": {
    "aggregations": [
      {
        "alias": "",
        "avg": {
          "property": {
            "name": ""
          }
        },
        "count": {
          "upTo": ""
        },
        "sum": {
          "property": {}
        }
      }
    ],
    "nestedQuery": {
      "distinctOn": [
        {}
      ],
      "endCursor": "",
      "filter": {
        "compositeFilter": {
          "filters": [],
          "op": ""
        },
        "propertyFilter": {
          "op": "",
          "property": {},
          "value": {
            "arrayValue": {
              "values": []
            },
            "blobValue": "",
            "booleanValue": false,
            "doubleValue": "",
            "entityValue": {
              "key": {
                "partitionId": {
                  "databaseId": "",
                  "namespaceId": "",
                  "projectId": ""
                },
                "path": [
                  {
                    "id": "",
                    "kind": "",
                    "name": ""
                  }
                ]
              },
              "properties": {}
            },
            "excludeFromIndexes": false,
            "geoPointValue": {
              "latitude": "",
              "longitude": ""
            },
            "integerValue": "",
            "keyValue": {},
            "meaning": 0,
            "nullValue": "",
            "stringValue": "",
            "timestampValue": ""
          }
        }
      },
      "findNearest": {
        "distanceMeasure": "",
        "distanceResultProperty": "",
        "distanceThreshold": "",
        "limit": 0,
        "queryVector": {},
        "vectorProperty": {}
      },
      "kind": [
        {
          "name": ""
        }
      ],
      "limit": 0,
      "offset": 0,
      "order": [
        {
          "direction": "",
          "property": {}
        }
      ],
      "projection": [
        {
          "property": {}
        }
      ],
      "startCursor": ""
    }
  },
  "databaseId": "",
  "explainOptions": {
    "analyze": false
  },
  "gqlQuery": {
    "allowLiterals": false,
    "namedBindings": {},
    "positionalBindings": [
      {
        "cursor": "",
        "value": {}
      }
    ],
    "queryString": ""
  },
  "partitionId": {},
  "readOptions": {
    "newTransaction": {
      "readOnly": {
        "readTime": ""
      },
      "readWrite": {
        "previousTransaction": ""
      }
    },
    "readConsistency": "",
    "readTime": "",
    "transaction": ""
  }
}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{\n  \"aggregationQuery\": {\n    \"aggregations\": [\n      {\n        \"alias\": \"\",\n        \"avg\": {\n          \"property\": {\n            \"name\": \"\"\n          }\n        },\n        \"count\": {\n          \"upTo\": \"\"\n        },\n        \"sum\": {\n          \"property\": {}\n        }\n      }\n    ],\n    \"nestedQuery\": {\n      \"distinctOn\": [\n        {}\n      ],\n      \"endCursor\": \"\",\n      \"filter\": {\n        \"compositeFilter\": {\n          \"filters\": [],\n          \"op\": \"\"\n        },\n        \"propertyFilter\": {\n          \"op\": \"\",\n          \"property\": {},\n          \"value\": {\n            \"arrayValue\": {\n              \"values\": []\n            },\n            \"blobValue\": \"\",\n            \"booleanValue\": false,\n            \"doubleValue\": \"\",\n            \"entityValue\": {\n              \"key\": {\n                \"partitionId\": {\n                  \"databaseId\": \"\",\n                  \"namespaceId\": \"\",\n                  \"projectId\": \"\"\n                },\n                \"path\": [\n                  {\n                    \"id\": \"\",\n                    \"kind\": \"\",\n                    \"name\": \"\"\n                  }\n                ]\n              },\n              \"properties\": {}\n            },\n            \"excludeFromIndexes\": false,\n            \"geoPointValue\": {\n              \"latitude\": \"\",\n              \"longitude\": \"\"\n            },\n            \"integerValue\": \"\",\n            \"keyValue\": {},\n            \"meaning\": 0,\n            \"nullValue\": \"\",\n            \"stringValue\": \"\",\n            \"timestampValue\": \"\"\n          }\n        }\n      },\n      \"findNearest\": {\n        \"distanceMeasure\": \"\",\n        \"distanceResultProperty\": \"\",\n        \"distanceThreshold\": \"\",\n        \"limit\": 0,\n        \"queryVector\": {},\n        \"vectorProperty\": {}\n      },\n      \"kind\": [\n        {\n          \"name\": \"\"\n        }\n      ],\n      \"limit\": 0,\n      \"offset\": 0,\n      \"order\": [\n        {\n          \"direction\": \"\",\n          \"property\": {}\n        }\n      ],\n      \"projection\": [\n        {\n          \"property\": {}\n        }\n      ],\n      \"startCursor\": \"\"\n    }\n  },\n  \"databaseId\": \"\",\n  \"explainOptions\": {\n    \"analyze\": false\n  },\n  \"gqlQuery\": {\n    \"allowLiterals\": false,\n    \"namedBindings\": {},\n    \"positionalBindings\": [\n      {\n        \"cursor\": \"\",\n        \"value\": {}\n      }\n    ],\n    \"queryString\": \"\"\n  },\n  \"partitionId\": {},\n  \"readOptions\": {\n    \"newTransaction\": {\n      \"readOnly\": {\n        \"readTime\": \"\"\n      },\n      \"readWrite\": {\n        \"previousTransaction\": \"\"\n      }\n    },\n    \"readConsistency\": \"\",\n    \"readTime\": \"\",\n    \"transaction\": \"\"\n  }\n}"

headers = { 'content-type': "application/json" }

conn.request("POST", "/baseUrl/v1/projects/:projectId:runAggregationQuery", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/v1/projects/:projectId:runAggregationQuery"

payload = {
    "aggregationQuery": {
        "aggregations": [
            {
                "alias": "",
                "avg": { "property": { "name": "" } },
                "count": { "upTo": "" },
                "sum": { "property": {} }
            }
        ],
        "nestedQuery": {
            "distinctOn": [{}],
            "endCursor": "",
            "filter": {
                "compositeFilter": {
                    "filters": [],
                    "op": ""
                },
                "propertyFilter": {
                    "op": "",
                    "property": {},
                    "value": {
                        "arrayValue": { "values": [] },
                        "blobValue": "",
                        "booleanValue": False,
                        "doubleValue": "",
                        "entityValue": {
                            "key": {
                                "partitionId": {
                                    "databaseId": "",
                                    "namespaceId": "",
                                    "projectId": ""
                                },
                                "path": [
                                    {
                                        "id": "",
                                        "kind": "",
                                        "name": ""
                                    }
                                ]
                            },
                            "properties": {}
                        },
                        "excludeFromIndexes": False,
                        "geoPointValue": {
                            "latitude": "",
                            "longitude": ""
                        },
                        "integerValue": "",
                        "keyValue": {},
                        "meaning": 0,
                        "nullValue": "",
                        "stringValue": "",
                        "timestampValue": ""
                    }
                }
            },
            "findNearest": {
                "distanceMeasure": "",
                "distanceResultProperty": "",
                "distanceThreshold": "",
                "limit": 0,
                "queryVector": {},
                "vectorProperty": {}
            },
            "kind": [{ "name": "" }],
            "limit": 0,
            "offset": 0,
            "order": [
                {
                    "direction": "",
                    "property": {}
                }
            ],
            "projection": [{ "property": {} }],
            "startCursor": ""
        }
    },
    "databaseId": "",
    "explainOptions": { "analyze": False },
    "gqlQuery": {
        "allowLiterals": False,
        "namedBindings": {},
        "positionalBindings": [
            {
                "cursor": "",
                "value": {}
            }
        ],
        "queryString": ""
    },
    "partitionId": {},
    "readOptions": {
        "newTransaction": {
            "readOnly": { "readTime": "" },
            "readWrite": { "previousTransaction": "" }
        },
        "readConsistency": "",
        "readTime": "",
        "transaction": ""
    }
}
headers = {"content-type": "application/json"}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/v1/projects/:projectId:runAggregationQuery"

payload <- "{\n  \"aggregationQuery\": {\n    \"aggregations\": [\n      {\n        \"alias\": \"\",\n        \"avg\": {\n          \"property\": {\n            \"name\": \"\"\n          }\n        },\n        \"count\": {\n          \"upTo\": \"\"\n        },\n        \"sum\": {\n          \"property\": {}\n        }\n      }\n    ],\n    \"nestedQuery\": {\n      \"distinctOn\": [\n        {}\n      ],\n      \"endCursor\": \"\",\n      \"filter\": {\n        \"compositeFilter\": {\n          \"filters\": [],\n          \"op\": \"\"\n        },\n        \"propertyFilter\": {\n          \"op\": \"\",\n          \"property\": {},\n          \"value\": {\n            \"arrayValue\": {\n              \"values\": []\n            },\n            \"blobValue\": \"\",\n            \"booleanValue\": false,\n            \"doubleValue\": \"\",\n            \"entityValue\": {\n              \"key\": {\n                \"partitionId\": {\n                  \"databaseId\": \"\",\n                  \"namespaceId\": \"\",\n                  \"projectId\": \"\"\n                },\n                \"path\": [\n                  {\n                    \"id\": \"\",\n                    \"kind\": \"\",\n                    \"name\": \"\"\n                  }\n                ]\n              },\n              \"properties\": {}\n            },\n            \"excludeFromIndexes\": false,\n            \"geoPointValue\": {\n              \"latitude\": \"\",\n              \"longitude\": \"\"\n            },\n            \"integerValue\": \"\",\n            \"keyValue\": {},\n            \"meaning\": 0,\n            \"nullValue\": \"\",\n            \"stringValue\": \"\",\n            \"timestampValue\": \"\"\n          }\n        }\n      },\n      \"findNearest\": {\n        \"distanceMeasure\": \"\",\n        \"distanceResultProperty\": \"\",\n        \"distanceThreshold\": \"\",\n        \"limit\": 0,\n        \"queryVector\": {},\n        \"vectorProperty\": {}\n      },\n      \"kind\": [\n        {\n          \"name\": \"\"\n        }\n      ],\n      \"limit\": 0,\n      \"offset\": 0,\n      \"order\": [\n        {\n          \"direction\": \"\",\n          \"property\": {}\n        }\n      ],\n      \"projection\": [\n        {\n          \"property\": {}\n        }\n      ],\n      \"startCursor\": \"\"\n    }\n  },\n  \"databaseId\": \"\",\n  \"explainOptions\": {\n    \"analyze\": false\n  },\n  \"gqlQuery\": {\n    \"allowLiterals\": false,\n    \"namedBindings\": {},\n    \"positionalBindings\": [\n      {\n        \"cursor\": \"\",\n        \"value\": {}\n      }\n    ],\n    \"queryString\": \"\"\n  },\n  \"partitionId\": {},\n  \"readOptions\": {\n    \"newTransaction\": {\n      \"readOnly\": {\n        \"readTime\": \"\"\n      },\n      \"readWrite\": {\n        \"previousTransaction\": \"\"\n      }\n    },\n    \"readConsistency\": \"\",\n    \"readTime\": \"\",\n    \"transaction\": \"\"\n  }\n}"

encode <- "json"

response <- VERB("POST", url, body = payload, content_type("application/json"), encode = encode)

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/v1/projects/:projectId:runAggregationQuery")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)
request["content-type"] = 'application/json'
request.body = "{\n  \"aggregationQuery\": {\n    \"aggregations\": [\n      {\n        \"alias\": \"\",\n        \"avg\": {\n          \"property\": {\n            \"name\": \"\"\n          }\n        },\n        \"count\": {\n          \"upTo\": \"\"\n        },\n        \"sum\": {\n          \"property\": {}\n        }\n      }\n    ],\n    \"nestedQuery\": {\n      \"distinctOn\": [\n        {}\n      ],\n      \"endCursor\": \"\",\n      \"filter\": {\n        \"compositeFilter\": {\n          \"filters\": [],\n          \"op\": \"\"\n        },\n        \"propertyFilter\": {\n          \"op\": \"\",\n          \"property\": {},\n          \"value\": {\n            \"arrayValue\": {\n              \"values\": []\n            },\n            \"blobValue\": \"\",\n            \"booleanValue\": false,\n            \"doubleValue\": \"\",\n            \"entityValue\": {\n              \"key\": {\n                \"partitionId\": {\n                  \"databaseId\": \"\",\n                  \"namespaceId\": \"\",\n                  \"projectId\": \"\"\n                },\n                \"path\": [\n                  {\n                    \"id\": \"\",\n                    \"kind\": \"\",\n                    \"name\": \"\"\n                  }\n                ]\n              },\n              \"properties\": {}\n            },\n            \"excludeFromIndexes\": false,\n            \"geoPointValue\": {\n              \"latitude\": \"\",\n              \"longitude\": \"\"\n            },\n            \"integerValue\": \"\",\n            \"keyValue\": {},\n            \"meaning\": 0,\n            \"nullValue\": \"\",\n            \"stringValue\": \"\",\n            \"timestampValue\": \"\"\n          }\n        }\n      },\n      \"findNearest\": {\n        \"distanceMeasure\": \"\",\n        \"distanceResultProperty\": \"\",\n        \"distanceThreshold\": \"\",\n        \"limit\": 0,\n        \"queryVector\": {},\n        \"vectorProperty\": {}\n      },\n      \"kind\": [\n        {\n          \"name\": \"\"\n        }\n      ],\n      \"limit\": 0,\n      \"offset\": 0,\n      \"order\": [\n        {\n          \"direction\": \"\",\n          \"property\": {}\n        }\n      ],\n      \"projection\": [\n        {\n          \"property\": {}\n        }\n      ],\n      \"startCursor\": \"\"\n    }\n  },\n  \"databaseId\": \"\",\n  \"explainOptions\": {\n    \"analyze\": false\n  },\n  \"gqlQuery\": {\n    \"allowLiterals\": false,\n    \"namedBindings\": {},\n    \"positionalBindings\": [\n      {\n        \"cursor\": \"\",\n        \"value\": {}\n      }\n    ],\n    \"queryString\": \"\"\n  },\n  \"partitionId\": {},\n  \"readOptions\": {\n    \"newTransaction\": {\n      \"readOnly\": {\n        \"readTime\": \"\"\n      },\n      \"readWrite\": {\n        \"previousTransaction\": \"\"\n      }\n    },\n    \"readConsistency\": \"\",\n    \"readTime\": \"\",\n    \"transaction\": \"\"\n  }\n}"

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
  headers: {'Content-Type' => 'application/json'}
)

response = conn.post('/baseUrl/v1/projects/:projectId:runAggregationQuery') do |req|
  req.body = "{\n  \"aggregationQuery\": {\n    \"aggregations\": [\n      {\n        \"alias\": \"\",\n        \"avg\": {\n          \"property\": {\n            \"name\": \"\"\n          }\n        },\n        \"count\": {\n          \"upTo\": \"\"\n        },\n        \"sum\": {\n          \"property\": {}\n        }\n      }\n    ],\n    \"nestedQuery\": {\n      \"distinctOn\": [\n        {}\n      ],\n      \"endCursor\": \"\",\n      \"filter\": {\n        \"compositeFilter\": {\n          \"filters\": [],\n          \"op\": \"\"\n        },\n        \"propertyFilter\": {\n          \"op\": \"\",\n          \"property\": {},\n          \"value\": {\n            \"arrayValue\": {\n              \"values\": []\n            },\n            \"blobValue\": \"\",\n            \"booleanValue\": false,\n            \"doubleValue\": \"\",\n            \"entityValue\": {\n              \"key\": {\n                \"partitionId\": {\n                  \"databaseId\": \"\",\n                  \"namespaceId\": \"\",\n                  \"projectId\": \"\"\n                },\n                \"path\": [\n                  {\n                    \"id\": \"\",\n                    \"kind\": \"\",\n                    \"name\": \"\"\n                  }\n                ]\n              },\n              \"properties\": {}\n            },\n            \"excludeFromIndexes\": false,\n            \"geoPointValue\": {\n              \"latitude\": \"\",\n              \"longitude\": \"\"\n            },\n            \"integerValue\": \"\",\n            \"keyValue\": {},\n            \"meaning\": 0,\n            \"nullValue\": \"\",\n            \"stringValue\": \"\",\n            \"timestampValue\": \"\"\n          }\n        }\n      },\n      \"findNearest\": {\n        \"distanceMeasure\": \"\",\n        \"distanceResultProperty\": \"\",\n        \"distanceThreshold\": \"\",\n        \"limit\": 0,\n        \"queryVector\": {},\n        \"vectorProperty\": {}\n      },\n      \"kind\": [\n        {\n          \"name\": \"\"\n        }\n      ],\n      \"limit\": 0,\n      \"offset\": 0,\n      \"order\": [\n        {\n          \"direction\": \"\",\n          \"property\": {}\n        }\n      ],\n      \"projection\": [\n        {\n          \"property\": {}\n        }\n      ],\n      \"startCursor\": \"\"\n    }\n  },\n  \"databaseId\": \"\",\n  \"explainOptions\": {\n    \"analyze\": false\n  },\n  \"gqlQuery\": {\n    \"allowLiterals\": false,\n    \"namedBindings\": {},\n    \"positionalBindings\": [\n      {\n        \"cursor\": \"\",\n        \"value\": {}\n      }\n    ],\n    \"queryString\": \"\"\n  },\n  \"partitionId\": {},\n  \"readOptions\": {\n    \"newTransaction\": {\n      \"readOnly\": {\n        \"readTime\": \"\"\n      },\n      \"readWrite\": {\n        \"previousTransaction\": \"\"\n      }\n    },\n    \"readConsistency\": \"\",\n    \"readTime\": \"\",\n    \"transaction\": \"\"\n  }\n}"
end

puts response.status
puts response.body
use serde_json::json;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/v1/projects/:projectId:runAggregationQuery";

    let payload = json!({
        "aggregationQuery": json!({
            "aggregations": (
                json!({
                    "alias": "",
                    "avg": json!({"property": json!({"name": ""})}),
                    "count": json!({"upTo": ""}),
                    "sum": json!({"property": json!({})})
                })
            ),
            "nestedQuery": json!({
                "distinctOn": (json!({})),
                "endCursor": "",
                "filter": json!({
                    "compositeFilter": json!({
                        "filters": (),
                        "op": ""
                    }),
                    "propertyFilter": json!({
                        "op": "",
                        "property": json!({}),
                        "value": json!({
                            "arrayValue": json!({"values": ()}),
                            "blobValue": "",
                            "booleanValue": false,
                            "doubleValue": "",
                            "entityValue": json!({
                                "key": json!({
                                    "partitionId": json!({
                                        "databaseId": "",
                                        "namespaceId": "",
                                        "projectId": ""
                                    }),
                                    "path": (
                                        json!({
                                            "id": "",
                                            "kind": "",
                                            "name": ""
                                        })
                                    )
                                }),
                                "properties": json!({})
                            }),
                            "excludeFromIndexes": false,
                            "geoPointValue": json!({
                                "latitude": "",
                                "longitude": ""
                            }),
                            "integerValue": "",
                            "keyValue": json!({}),
                            "meaning": 0,
                            "nullValue": "",
                            "stringValue": "",
                            "timestampValue": ""
                        })
                    })
                }),
                "findNearest": json!({
                    "distanceMeasure": "",
                    "distanceResultProperty": "",
                    "distanceThreshold": "",
                    "limit": 0,
                    "queryVector": json!({}),
                    "vectorProperty": json!({})
                }),
                "kind": (json!({"name": ""})),
                "limit": 0,
                "offset": 0,
                "order": (
                    json!({
                        "direction": "",
                        "property": json!({})
                    })
                ),
                "projection": (json!({"property": json!({})})),
                "startCursor": ""
            })
        }),
        "databaseId": "",
        "explainOptions": json!({"analyze": false}),
        "gqlQuery": json!({
            "allowLiterals": false,
            "namedBindings": json!({}),
            "positionalBindings": (
                json!({
                    "cursor": "",
                    "value": json!({})
                })
            ),
            "queryString": ""
        }),
        "partitionId": json!({}),
        "readOptions": json!({
            "newTransaction": json!({
                "readOnly": json!({"readTime": ""}),
                "readWrite": json!({"previousTransaction": ""})
            }),
            "readConsistency": "",
            "readTime": "",
            "transaction": ""
        })
    });

    let mut headers = reqwest::header::HeaderMap::new();
    headers.insert("content-type", "application/json".parse().unwrap());

    let client = reqwest::Client::new();
    let response = client.post(url)
        .headers(headers)
        .json(&payload)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request POST \
  --url {{baseUrl}}/v1/projects/:projectId:runAggregationQuery \
  --header 'content-type: application/json' \
  --data '{
  "aggregationQuery": {
    "aggregations": [
      {
        "alias": "",
        "avg": {
          "property": {
            "name": ""
          }
        },
        "count": {
          "upTo": ""
        },
        "sum": {
          "property": {}
        }
      }
    ],
    "nestedQuery": {
      "distinctOn": [
        {}
      ],
      "endCursor": "",
      "filter": {
        "compositeFilter": {
          "filters": [],
          "op": ""
        },
        "propertyFilter": {
          "op": "",
          "property": {},
          "value": {
            "arrayValue": {
              "values": []
            },
            "blobValue": "",
            "booleanValue": false,
            "doubleValue": "",
            "entityValue": {
              "key": {
                "partitionId": {
                  "databaseId": "",
                  "namespaceId": "",
                  "projectId": ""
                },
                "path": [
                  {
                    "id": "",
                    "kind": "",
                    "name": ""
                  }
                ]
              },
              "properties": {}
            },
            "excludeFromIndexes": false,
            "geoPointValue": {
              "latitude": "",
              "longitude": ""
            },
            "integerValue": "",
            "keyValue": {},
            "meaning": 0,
            "nullValue": "",
            "stringValue": "",
            "timestampValue": ""
          }
        }
      },
      "findNearest": {
        "distanceMeasure": "",
        "distanceResultProperty": "",
        "distanceThreshold": "",
        "limit": 0,
        "queryVector": {},
        "vectorProperty": {}
      },
      "kind": [
        {
          "name": ""
        }
      ],
      "limit": 0,
      "offset": 0,
      "order": [
        {
          "direction": "",
          "property": {}
        }
      ],
      "projection": [
        {
          "property": {}
        }
      ],
      "startCursor": ""
    }
  },
  "databaseId": "",
  "explainOptions": {
    "analyze": false
  },
  "gqlQuery": {
    "allowLiterals": false,
    "namedBindings": {},
    "positionalBindings": [
      {
        "cursor": "",
        "value": {}
      }
    ],
    "queryString": ""
  },
  "partitionId": {},
  "readOptions": {
    "newTransaction": {
      "readOnly": {
        "readTime": ""
      },
      "readWrite": {
        "previousTransaction": ""
      }
    },
    "readConsistency": "",
    "readTime": "",
    "transaction": ""
  }
}'
echo '{
  "aggregationQuery": {
    "aggregations": [
      {
        "alias": "",
        "avg": {
          "property": {
            "name": ""
          }
        },
        "count": {
          "upTo": ""
        },
        "sum": {
          "property": {}
        }
      }
    ],
    "nestedQuery": {
      "distinctOn": [
        {}
      ],
      "endCursor": "",
      "filter": {
        "compositeFilter": {
          "filters": [],
          "op": ""
        },
        "propertyFilter": {
          "op": "",
          "property": {},
          "value": {
            "arrayValue": {
              "values": []
            },
            "blobValue": "",
            "booleanValue": false,
            "doubleValue": "",
            "entityValue": {
              "key": {
                "partitionId": {
                  "databaseId": "",
                  "namespaceId": "",
                  "projectId": ""
                },
                "path": [
                  {
                    "id": "",
                    "kind": "",
                    "name": ""
                  }
                ]
              },
              "properties": {}
            },
            "excludeFromIndexes": false,
            "geoPointValue": {
              "latitude": "",
              "longitude": ""
            },
            "integerValue": "",
            "keyValue": {},
            "meaning": 0,
            "nullValue": "",
            "stringValue": "",
            "timestampValue": ""
          }
        }
      },
      "findNearest": {
        "distanceMeasure": "",
        "distanceResultProperty": "",
        "distanceThreshold": "",
        "limit": 0,
        "queryVector": {},
        "vectorProperty": {}
      },
      "kind": [
        {
          "name": ""
        }
      ],
      "limit": 0,
      "offset": 0,
      "order": [
        {
          "direction": "",
          "property": {}
        }
      ],
      "projection": [
        {
          "property": {}
        }
      ],
      "startCursor": ""
    }
  },
  "databaseId": "",
  "explainOptions": {
    "analyze": false
  },
  "gqlQuery": {
    "allowLiterals": false,
    "namedBindings": {},
    "positionalBindings": [
      {
        "cursor": "",
        "value": {}
      }
    ],
    "queryString": ""
  },
  "partitionId": {},
  "readOptions": {
    "newTransaction": {
      "readOnly": {
        "readTime": ""
      },
      "readWrite": {
        "previousTransaction": ""
      }
    },
    "readConsistency": "",
    "readTime": "",
    "transaction": ""
  }
}' |  \
  http POST {{baseUrl}}/v1/projects/:projectId:runAggregationQuery \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "aggregationQuery": {\n    "aggregations": [\n      {\n        "alias": "",\n        "avg": {\n          "property": {\n            "name": ""\n          }\n        },\n        "count": {\n          "upTo": ""\n        },\n        "sum": {\n          "property": {}\n        }\n      }\n    ],\n    "nestedQuery": {\n      "distinctOn": [\n        {}\n      ],\n      "endCursor": "",\n      "filter": {\n        "compositeFilter": {\n          "filters": [],\n          "op": ""\n        },\n        "propertyFilter": {\n          "op": "",\n          "property": {},\n          "value": {\n            "arrayValue": {\n              "values": []\n            },\n            "blobValue": "",\n            "booleanValue": false,\n            "doubleValue": "",\n            "entityValue": {\n              "key": {\n                "partitionId": {\n                  "databaseId": "",\n                  "namespaceId": "",\n                  "projectId": ""\n                },\n                "path": [\n                  {\n                    "id": "",\n                    "kind": "",\n                    "name": ""\n                  }\n                ]\n              },\n              "properties": {}\n            },\n            "excludeFromIndexes": false,\n            "geoPointValue": {\n              "latitude": "",\n              "longitude": ""\n            },\n            "integerValue": "",\n            "keyValue": {},\n            "meaning": 0,\n            "nullValue": "",\n            "stringValue": "",\n            "timestampValue": ""\n          }\n        }\n      },\n      "findNearest": {\n        "distanceMeasure": "",\n        "distanceResultProperty": "",\n        "distanceThreshold": "",\n        "limit": 0,\n        "queryVector": {},\n        "vectorProperty": {}\n      },\n      "kind": [\n        {\n          "name": ""\n        }\n      ],\n      "limit": 0,\n      "offset": 0,\n      "order": [\n        {\n          "direction": "",\n          "property": {}\n        }\n      ],\n      "projection": [\n        {\n          "property": {}\n        }\n      ],\n      "startCursor": ""\n    }\n  },\n  "databaseId": "",\n  "explainOptions": {\n    "analyze": false\n  },\n  "gqlQuery": {\n    "allowLiterals": false,\n    "namedBindings": {},\n    "positionalBindings": [\n      {\n        "cursor": "",\n        "value": {}\n      }\n    ],\n    "queryString": ""\n  },\n  "partitionId": {},\n  "readOptions": {\n    "newTransaction": {\n      "readOnly": {\n        "readTime": ""\n      },\n      "readWrite": {\n        "previousTransaction": ""\n      }\n    },\n    "readConsistency": "",\n    "readTime": "",\n    "transaction": ""\n  }\n}' \
  --output-document \
  - {{baseUrl}}/v1/projects/:projectId:runAggregationQuery
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "aggregationQuery": [
    "aggregations": [
      [
        "alias": "",
        "avg": ["property": ["name": ""]],
        "count": ["upTo": ""],
        "sum": ["property": []]
      ]
    ],
    "nestedQuery": [
      "distinctOn": [[]],
      "endCursor": "",
      "filter": [
        "compositeFilter": [
          "filters": [],
          "op": ""
        ],
        "propertyFilter": [
          "op": "",
          "property": [],
          "value": [
            "arrayValue": ["values": []],
            "blobValue": "",
            "booleanValue": false,
            "doubleValue": "",
            "entityValue": [
              "key": [
                "partitionId": [
                  "databaseId": "",
                  "namespaceId": "",
                  "projectId": ""
                ],
                "path": [
                  [
                    "id": "",
                    "kind": "",
                    "name": ""
                  ]
                ]
              ],
              "properties": []
            ],
            "excludeFromIndexes": false,
            "geoPointValue": [
              "latitude": "",
              "longitude": ""
            ],
            "integerValue": "",
            "keyValue": [],
            "meaning": 0,
            "nullValue": "",
            "stringValue": "",
            "timestampValue": ""
          ]
        ]
      ],
      "findNearest": [
        "distanceMeasure": "",
        "distanceResultProperty": "",
        "distanceThreshold": "",
        "limit": 0,
        "queryVector": [],
        "vectorProperty": []
      ],
      "kind": [["name": ""]],
      "limit": 0,
      "offset": 0,
      "order": [
        [
          "direction": "",
          "property": []
        ]
      ],
      "projection": [["property": []]],
      "startCursor": ""
    ]
  ],
  "databaseId": "",
  "explainOptions": ["analyze": false],
  "gqlQuery": [
    "allowLiterals": false,
    "namedBindings": [],
    "positionalBindings": [
      [
        "cursor": "",
        "value": []
      ]
    ],
    "queryString": ""
  ],
  "partitionId": [],
  "readOptions": [
    "newTransaction": [
      "readOnly": ["readTime": ""],
      "readWrite": ["previousTransaction": ""]
    ],
    "readConsistency": "",
    "readTime": "",
    "transaction": ""
  ]
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/v1/projects/:projectId:runAggregationQuery")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
POST datastore.projects.runQuery
{{baseUrl}}/v1/projects/:projectId:runQuery
QUERY PARAMS

projectId
BODY json

{
  "databaseId": "",
  "explainOptions": {
    "analyze": false
  },
  "gqlQuery": {
    "allowLiterals": false,
    "namedBindings": {},
    "positionalBindings": [
      {
        "cursor": "",
        "value": {
          "arrayValue": {
            "values": []
          },
          "blobValue": "",
          "booleanValue": false,
          "doubleValue": "",
          "entityValue": {
            "key": {
              "partitionId": {
                "databaseId": "",
                "namespaceId": "",
                "projectId": ""
              },
              "path": [
                {
                  "id": "",
                  "kind": "",
                  "name": ""
                }
              ]
            },
            "properties": {}
          },
          "excludeFromIndexes": false,
          "geoPointValue": {
            "latitude": "",
            "longitude": ""
          },
          "integerValue": "",
          "keyValue": {},
          "meaning": 0,
          "nullValue": "",
          "stringValue": "",
          "timestampValue": ""
        }
      }
    ],
    "queryString": ""
  },
  "partitionId": {},
  "propertyMask": {
    "paths": []
  },
  "query": {
    "distinctOn": [
      {
        "name": ""
      }
    ],
    "endCursor": "",
    "filter": {
      "compositeFilter": {
        "filters": [],
        "op": ""
      },
      "propertyFilter": {
        "op": "",
        "property": {},
        "value": {}
      }
    },
    "findNearest": {
      "distanceMeasure": "",
      "distanceResultProperty": "",
      "distanceThreshold": "",
      "limit": 0,
      "queryVector": {},
      "vectorProperty": {}
    },
    "kind": [
      {
        "name": ""
      }
    ],
    "limit": 0,
    "offset": 0,
    "order": [
      {
        "direction": "",
        "property": {}
      }
    ],
    "projection": [
      {
        "property": {}
      }
    ],
    "startCursor": ""
  },
  "readOptions": {
    "newTransaction": {
      "readOnly": {
        "readTime": ""
      },
      "readWrite": {
        "previousTransaction": ""
      }
    },
    "readConsistency": "",
    "readTime": "",
    "transaction": ""
  }
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/v1/projects/:projectId:runQuery");

struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "content-type: application/json");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);

curl_easy_setopt(hnd, CURLOPT_POSTFIELDS, "{\n  \"databaseId\": \"\",\n  \"explainOptions\": {\n    \"analyze\": false\n  },\n  \"gqlQuery\": {\n    \"allowLiterals\": false,\n    \"namedBindings\": {},\n    \"positionalBindings\": [\n      {\n        \"cursor\": \"\",\n        \"value\": {\n          \"arrayValue\": {\n            \"values\": []\n          },\n          \"blobValue\": \"\",\n          \"booleanValue\": false,\n          \"doubleValue\": \"\",\n          \"entityValue\": {\n            \"key\": {\n              \"partitionId\": {\n                \"databaseId\": \"\",\n                \"namespaceId\": \"\",\n                \"projectId\": \"\"\n              },\n              \"path\": [\n                {\n                  \"id\": \"\",\n                  \"kind\": \"\",\n                  \"name\": \"\"\n                }\n              ]\n            },\n            \"properties\": {}\n          },\n          \"excludeFromIndexes\": false,\n          \"geoPointValue\": {\n            \"latitude\": \"\",\n            \"longitude\": \"\"\n          },\n          \"integerValue\": \"\",\n          \"keyValue\": {},\n          \"meaning\": 0,\n          \"nullValue\": \"\",\n          \"stringValue\": \"\",\n          \"timestampValue\": \"\"\n        }\n      }\n    ],\n    \"queryString\": \"\"\n  },\n  \"partitionId\": {},\n  \"propertyMask\": {\n    \"paths\": []\n  },\n  \"query\": {\n    \"distinctOn\": [\n      {\n        \"name\": \"\"\n      }\n    ],\n    \"endCursor\": \"\",\n    \"filter\": {\n      \"compositeFilter\": {\n        \"filters\": [],\n        \"op\": \"\"\n      },\n      \"propertyFilter\": {\n        \"op\": \"\",\n        \"property\": {},\n        \"value\": {}\n      }\n    },\n    \"findNearest\": {\n      \"distanceMeasure\": \"\",\n      \"distanceResultProperty\": \"\",\n      \"distanceThreshold\": \"\",\n      \"limit\": 0,\n      \"queryVector\": {},\n      \"vectorProperty\": {}\n    },\n    \"kind\": [\n      {\n        \"name\": \"\"\n      }\n    ],\n    \"limit\": 0,\n    \"offset\": 0,\n    \"order\": [\n      {\n        \"direction\": \"\",\n        \"property\": {}\n      }\n    ],\n    \"projection\": [\n      {\n        \"property\": {}\n      }\n    ],\n    \"startCursor\": \"\"\n  },\n  \"readOptions\": {\n    \"newTransaction\": {\n      \"readOnly\": {\n        \"readTime\": \"\"\n      },\n      \"readWrite\": {\n        \"previousTransaction\": \"\"\n      }\n    },\n    \"readConsistency\": \"\",\n    \"readTime\": \"\",\n    \"transaction\": \"\"\n  }\n}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/post "{{baseUrl}}/v1/projects/:projectId:runQuery" {:content-type :json
                                                                            :form-params {:databaseId ""
                                                                                          :explainOptions {:analyze false}
                                                                                          :gqlQuery {:allowLiterals false
                                                                                                     :namedBindings {}
                                                                                                     :positionalBindings [{:cursor ""
                                                                                                                           :value {:arrayValue {:values []}
                                                                                                                                   :blobValue ""
                                                                                                                                   :booleanValue false
                                                                                                                                   :doubleValue ""
                                                                                                                                   :entityValue {:key {:partitionId {:databaseId ""
                                                                                                                                                                     :namespaceId ""
                                                                                                                                                                     :projectId ""}
                                                                                                                                                       :path [{:id ""
                                                                                                                                                               :kind ""
                                                                                                                                                               :name ""}]}
                                                                                                                                                 :properties {}}
                                                                                                                                   :excludeFromIndexes false
                                                                                                                                   :geoPointValue {:latitude ""
                                                                                                                                                   :longitude ""}
                                                                                                                                   :integerValue ""
                                                                                                                                   :keyValue {}
                                                                                                                                   :meaning 0
                                                                                                                                   :nullValue ""
                                                                                                                                   :stringValue ""
                                                                                                                                   :timestampValue ""}}]
                                                                                                     :queryString ""}
                                                                                          :partitionId {}
                                                                                          :propertyMask {:paths []}
                                                                                          :query {:distinctOn [{:name ""}]
                                                                                                  :endCursor ""
                                                                                                  :filter {:compositeFilter {:filters []
                                                                                                                             :op ""}
                                                                                                           :propertyFilter {:op ""
                                                                                                                            :property {}
                                                                                                                            :value {}}}
                                                                                                  :findNearest {:distanceMeasure ""
                                                                                                                :distanceResultProperty ""
                                                                                                                :distanceThreshold ""
                                                                                                                :limit 0
                                                                                                                :queryVector {}
                                                                                                                :vectorProperty {}}
                                                                                                  :kind [{:name ""}]
                                                                                                  :limit 0
                                                                                                  :offset 0
                                                                                                  :order [{:direction ""
                                                                                                           :property {}}]
                                                                                                  :projection [{:property {}}]
                                                                                                  :startCursor ""}
                                                                                          :readOptions {:newTransaction {:readOnly {:readTime ""}
                                                                                                                         :readWrite {:previousTransaction ""}}
                                                                                                        :readConsistency ""
                                                                                                        :readTime ""
                                                                                                        :transaction ""}}})
require "http/client"

url = "{{baseUrl}}/v1/projects/:projectId:runQuery"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"databaseId\": \"\",\n  \"explainOptions\": {\n    \"analyze\": false\n  },\n  \"gqlQuery\": {\n    \"allowLiterals\": false,\n    \"namedBindings\": {},\n    \"positionalBindings\": [\n      {\n        \"cursor\": \"\",\n        \"value\": {\n          \"arrayValue\": {\n            \"values\": []\n          },\n          \"blobValue\": \"\",\n          \"booleanValue\": false,\n          \"doubleValue\": \"\",\n          \"entityValue\": {\n            \"key\": {\n              \"partitionId\": {\n                \"databaseId\": \"\",\n                \"namespaceId\": \"\",\n                \"projectId\": \"\"\n              },\n              \"path\": [\n                {\n                  \"id\": \"\",\n                  \"kind\": \"\",\n                  \"name\": \"\"\n                }\n              ]\n            },\n            \"properties\": {}\n          },\n          \"excludeFromIndexes\": false,\n          \"geoPointValue\": {\n            \"latitude\": \"\",\n            \"longitude\": \"\"\n          },\n          \"integerValue\": \"\",\n          \"keyValue\": {},\n          \"meaning\": 0,\n          \"nullValue\": \"\",\n          \"stringValue\": \"\",\n          \"timestampValue\": \"\"\n        }\n      }\n    ],\n    \"queryString\": \"\"\n  },\n  \"partitionId\": {},\n  \"propertyMask\": {\n    \"paths\": []\n  },\n  \"query\": {\n    \"distinctOn\": [\n      {\n        \"name\": \"\"\n      }\n    ],\n    \"endCursor\": \"\",\n    \"filter\": {\n      \"compositeFilter\": {\n        \"filters\": [],\n        \"op\": \"\"\n      },\n      \"propertyFilter\": {\n        \"op\": \"\",\n        \"property\": {},\n        \"value\": {}\n      }\n    },\n    \"findNearest\": {\n      \"distanceMeasure\": \"\",\n      \"distanceResultProperty\": \"\",\n      \"distanceThreshold\": \"\",\n      \"limit\": 0,\n      \"queryVector\": {},\n      \"vectorProperty\": {}\n    },\n    \"kind\": [\n      {\n        \"name\": \"\"\n      }\n    ],\n    \"limit\": 0,\n    \"offset\": 0,\n    \"order\": [\n      {\n        \"direction\": \"\",\n        \"property\": {}\n      }\n    ],\n    \"projection\": [\n      {\n        \"property\": {}\n      }\n    ],\n    \"startCursor\": \"\"\n  },\n  \"readOptions\": {\n    \"newTransaction\": {\n      \"readOnly\": {\n        \"readTime\": \"\"\n      },\n      \"readWrite\": {\n        \"previousTransaction\": \"\"\n      }\n    },\n    \"readConsistency\": \"\",\n    \"readTime\": \"\",\n    \"transaction\": \"\"\n  }\n}"

response = HTTP::Client.post url, headers: headers, body: reqBody
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Post,
    RequestUri = new Uri("{{baseUrl}}/v1/projects/:projectId:runQuery"),
    Content = new StringContent("{\n  \"databaseId\": \"\",\n  \"explainOptions\": {\n    \"analyze\": false\n  },\n  \"gqlQuery\": {\n    \"allowLiterals\": false,\n    \"namedBindings\": {},\n    \"positionalBindings\": [\n      {\n        \"cursor\": \"\",\n        \"value\": {\n          \"arrayValue\": {\n            \"values\": []\n          },\n          \"blobValue\": \"\",\n          \"booleanValue\": false,\n          \"doubleValue\": \"\",\n          \"entityValue\": {\n            \"key\": {\n              \"partitionId\": {\n                \"databaseId\": \"\",\n                \"namespaceId\": \"\",\n                \"projectId\": \"\"\n              },\n              \"path\": [\n                {\n                  \"id\": \"\",\n                  \"kind\": \"\",\n                  \"name\": \"\"\n                }\n              ]\n            },\n            \"properties\": {}\n          },\n          \"excludeFromIndexes\": false,\n          \"geoPointValue\": {\n            \"latitude\": \"\",\n            \"longitude\": \"\"\n          },\n          \"integerValue\": \"\",\n          \"keyValue\": {},\n          \"meaning\": 0,\n          \"nullValue\": \"\",\n          \"stringValue\": \"\",\n          \"timestampValue\": \"\"\n        }\n      }\n    ],\n    \"queryString\": \"\"\n  },\n  \"partitionId\": {},\n  \"propertyMask\": {\n    \"paths\": []\n  },\n  \"query\": {\n    \"distinctOn\": [\n      {\n        \"name\": \"\"\n      }\n    ],\n    \"endCursor\": \"\",\n    \"filter\": {\n      \"compositeFilter\": {\n        \"filters\": [],\n        \"op\": \"\"\n      },\n      \"propertyFilter\": {\n        \"op\": \"\",\n        \"property\": {},\n        \"value\": {}\n      }\n    },\n    \"findNearest\": {\n      \"distanceMeasure\": \"\",\n      \"distanceResultProperty\": \"\",\n      \"distanceThreshold\": \"\",\n      \"limit\": 0,\n      \"queryVector\": {},\n      \"vectorProperty\": {}\n    },\n    \"kind\": [\n      {\n        \"name\": \"\"\n      }\n    ],\n    \"limit\": 0,\n    \"offset\": 0,\n    \"order\": [\n      {\n        \"direction\": \"\",\n        \"property\": {}\n      }\n    ],\n    \"projection\": [\n      {\n        \"property\": {}\n      }\n    ],\n    \"startCursor\": \"\"\n  },\n  \"readOptions\": {\n    \"newTransaction\": {\n      \"readOnly\": {\n        \"readTime\": \"\"\n      },\n      \"readWrite\": {\n        \"previousTransaction\": \"\"\n      }\n    },\n    \"readConsistency\": \"\",\n    \"readTime\": \"\",\n    \"transaction\": \"\"\n  }\n}")
    {
        Headers =
        {
            ContentType = new MediaTypeHeaderValue("application/json")
        }
    }
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/v1/projects/:projectId:runQuery");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"databaseId\": \"\",\n  \"explainOptions\": {\n    \"analyze\": false\n  },\n  \"gqlQuery\": {\n    \"allowLiterals\": false,\n    \"namedBindings\": {},\n    \"positionalBindings\": [\n      {\n        \"cursor\": \"\",\n        \"value\": {\n          \"arrayValue\": {\n            \"values\": []\n          },\n          \"blobValue\": \"\",\n          \"booleanValue\": false,\n          \"doubleValue\": \"\",\n          \"entityValue\": {\n            \"key\": {\n              \"partitionId\": {\n                \"databaseId\": \"\",\n                \"namespaceId\": \"\",\n                \"projectId\": \"\"\n              },\n              \"path\": [\n                {\n                  \"id\": \"\",\n                  \"kind\": \"\",\n                  \"name\": \"\"\n                }\n              ]\n            },\n            \"properties\": {}\n          },\n          \"excludeFromIndexes\": false,\n          \"geoPointValue\": {\n            \"latitude\": \"\",\n            \"longitude\": \"\"\n          },\n          \"integerValue\": \"\",\n          \"keyValue\": {},\n          \"meaning\": 0,\n          \"nullValue\": \"\",\n          \"stringValue\": \"\",\n          \"timestampValue\": \"\"\n        }\n      }\n    ],\n    \"queryString\": \"\"\n  },\n  \"partitionId\": {},\n  \"propertyMask\": {\n    \"paths\": []\n  },\n  \"query\": {\n    \"distinctOn\": [\n      {\n        \"name\": \"\"\n      }\n    ],\n    \"endCursor\": \"\",\n    \"filter\": {\n      \"compositeFilter\": {\n        \"filters\": [],\n        \"op\": \"\"\n      },\n      \"propertyFilter\": {\n        \"op\": \"\",\n        \"property\": {},\n        \"value\": {}\n      }\n    },\n    \"findNearest\": {\n      \"distanceMeasure\": \"\",\n      \"distanceResultProperty\": \"\",\n      \"distanceThreshold\": \"\",\n      \"limit\": 0,\n      \"queryVector\": {},\n      \"vectorProperty\": {}\n    },\n    \"kind\": [\n      {\n        \"name\": \"\"\n      }\n    ],\n    \"limit\": 0,\n    \"offset\": 0,\n    \"order\": [\n      {\n        \"direction\": \"\",\n        \"property\": {}\n      }\n    ],\n    \"projection\": [\n      {\n        \"property\": {}\n      }\n    ],\n    \"startCursor\": \"\"\n  },\n  \"readOptions\": {\n    \"newTransaction\": {\n      \"readOnly\": {\n        \"readTime\": \"\"\n      },\n      \"readWrite\": {\n        \"previousTransaction\": \"\"\n      }\n    },\n    \"readConsistency\": \"\",\n    \"readTime\": \"\",\n    \"transaction\": \"\"\n  }\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/v1/projects/:projectId:runQuery"

	payload := strings.NewReader("{\n  \"databaseId\": \"\",\n  \"explainOptions\": {\n    \"analyze\": false\n  },\n  \"gqlQuery\": {\n    \"allowLiterals\": false,\n    \"namedBindings\": {},\n    \"positionalBindings\": [\n      {\n        \"cursor\": \"\",\n        \"value\": {\n          \"arrayValue\": {\n            \"values\": []\n          },\n          \"blobValue\": \"\",\n          \"booleanValue\": false,\n          \"doubleValue\": \"\",\n          \"entityValue\": {\n            \"key\": {\n              \"partitionId\": {\n                \"databaseId\": \"\",\n                \"namespaceId\": \"\",\n                \"projectId\": \"\"\n              },\n              \"path\": [\n                {\n                  \"id\": \"\",\n                  \"kind\": \"\",\n                  \"name\": \"\"\n                }\n              ]\n            },\n            \"properties\": {}\n          },\n          \"excludeFromIndexes\": false,\n          \"geoPointValue\": {\n            \"latitude\": \"\",\n            \"longitude\": \"\"\n          },\n          \"integerValue\": \"\",\n          \"keyValue\": {},\n          \"meaning\": 0,\n          \"nullValue\": \"\",\n          \"stringValue\": \"\",\n          \"timestampValue\": \"\"\n        }\n      }\n    ],\n    \"queryString\": \"\"\n  },\n  \"partitionId\": {},\n  \"propertyMask\": {\n    \"paths\": []\n  },\n  \"query\": {\n    \"distinctOn\": [\n      {\n        \"name\": \"\"\n      }\n    ],\n    \"endCursor\": \"\",\n    \"filter\": {\n      \"compositeFilter\": {\n        \"filters\": [],\n        \"op\": \"\"\n      },\n      \"propertyFilter\": {\n        \"op\": \"\",\n        \"property\": {},\n        \"value\": {}\n      }\n    },\n    \"findNearest\": {\n      \"distanceMeasure\": \"\",\n      \"distanceResultProperty\": \"\",\n      \"distanceThreshold\": \"\",\n      \"limit\": 0,\n      \"queryVector\": {},\n      \"vectorProperty\": {}\n    },\n    \"kind\": [\n      {\n        \"name\": \"\"\n      }\n    ],\n    \"limit\": 0,\n    \"offset\": 0,\n    \"order\": [\n      {\n        \"direction\": \"\",\n        \"property\": {}\n      }\n    ],\n    \"projection\": [\n      {\n        \"property\": {}\n      }\n    ],\n    \"startCursor\": \"\"\n  },\n  \"readOptions\": {\n    \"newTransaction\": {\n      \"readOnly\": {\n        \"readTime\": \"\"\n      },\n      \"readWrite\": {\n        \"previousTransaction\": \"\"\n      }\n    },\n    \"readConsistency\": \"\",\n    \"readTime\": \"\",\n    \"transaction\": \"\"\n  }\n}")

	req, _ := http.NewRequest("POST", url, payload)

	req.Header.Add("content-type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
POST /baseUrl/v1/projects/:projectId:runQuery HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 2196

{
  "databaseId": "",
  "explainOptions": {
    "analyze": false
  },
  "gqlQuery": {
    "allowLiterals": false,
    "namedBindings": {},
    "positionalBindings": [
      {
        "cursor": "",
        "value": {
          "arrayValue": {
            "values": []
          },
          "blobValue": "",
          "booleanValue": false,
          "doubleValue": "",
          "entityValue": {
            "key": {
              "partitionId": {
                "databaseId": "",
                "namespaceId": "",
                "projectId": ""
              },
              "path": [
                {
                  "id": "",
                  "kind": "",
                  "name": ""
                }
              ]
            },
            "properties": {}
          },
          "excludeFromIndexes": false,
          "geoPointValue": {
            "latitude": "",
            "longitude": ""
          },
          "integerValue": "",
          "keyValue": {},
          "meaning": 0,
          "nullValue": "",
          "stringValue": "",
          "timestampValue": ""
        }
      }
    ],
    "queryString": ""
  },
  "partitionId": {},
  "propertyMask": {
    "paths": []
  },
  "query": {
    "distinctOn": [
      {
        "name": ""
      }
    ],
    "endCursor": "",
    "filter": {
      "compositeFilter": {
        "filters": [],
        "op": ""
      },
      "propertyFilter": {
        "op": "",
        "property": {},
        "value": {}
      }
    },
    "findNearest": {
      "distanceMeasure": "",
      "distanceResultProperty": "",
      "distanceThreshold": "",
      "limit": 0,
      "queryVector": {},
      "vectorProperty": {}
    },
    "kind": [
      {
        "name": ""
      }
    ],
    "limit": 0,
    "offset": 0,
    "order": [
      {
        "direction": "",
        "property": {}
      }
    ],
    "projection": [
      {
        "property": {}
      }
    ],
    "startCursor": ""
  },
  "readOptions": {
    "newTransaction": {
      "readOnly": {
        "readTime": ""
      },
      "readWrite": {
        "previousTransaction": ""
      }
    },
    "readConsistency": "",
    "readTime": "",
    "transaction": ""
  }
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/v1/projects/:projectId:runQuery")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"databaseId\": \"\",\n  \"explainOptions\": {\n    \"analyze\": false\n  },\n  \"gqlQuery\": {\n    \"allowLiterals\": false,\n    \"namedBindings\": {},\n    \"positionalBindings\": [\n      {\n        \"cursor\": \"\",\n        \"value\": {\n          \"arrayValue\": {\n            \"values\": []\n          },\n          \"blobValue\": \"\",\n          \"booleanValue\": false,\n          \"doubleValue\": \"\",\n          \"entityValue\": {\n            \"key\": {\n              \"partitionId\": {\n                \"databaseId\": \"\",\n                \"namespaceId\": \"\",\n                \"projectId\": \"\"\n              },\n              \"path\": [\n                {\n                  \"id\": \"\",\n                  \"kind\": \"\",\n                  \"name\": \"\"\n                }\n              ]\n            },\n            \"properties\": {}\n          },\n          \"excludeFromIndexes\": false,\n          \"geoPointValue\": {\n            \"latitude\": \"\",\n            \"longitude\": \"\"\n          },\n          \"integerValue\": \"\",\n          \"keyValue\": {},\n          \"meaning\": 0,\n          \"nullValue\": \"\",\n          \"stringValue\": \"\",\n          \"timestampValue\": \"\"\n        }\n      }\n    ],\n    \"queryString\": \"\"\n  },\n  \"partitionId\": {},\n  \"propertyMask\": {\n    \"paths\": []\n  },\n  \"query\": {\n    \"distinctOn\": [\n      {\n        \"name\": \"\"\n      }\n    ],\n    \"endCursor\": \"\",\n    \"filter\": {\n      \"compositeFilter\": {\n        \"filters\": [],\n        \"op\": \"\"\n      },\n      \"propertyFilter\": {\n        \"op\": \"\",\n        \"property\": {},\n        \"value\": {}\n      }\n    },\n    \"findNearest\": {\n      \"distanceMeasure\": \"\",\n      \"distanceResultProperty\": \"\",\n      \"distanceThreshold\": \"\",\n      \"limit\": 0,\n      \"queryVector\": {},\n      \"vectorProperty\": {}\n    },\n    \"kind\": [\n      {\n        \"name\": \"\"\n      }\n    ],\n    \"limit\": 0,\n    \"offset\": 0,\n    \"order\": [\n      {\n        \"direction\": \"\",\n        \"property\": {}\n      }\n    ],\n    \"projection\": [\n      {\n        \"property\": {}\n      }\n    ],\n    \"startCursor\": \"\"\n  },\n  \"readOptions\": {\n    \"newTransaction\": {\n      \"readOnly\": {\n        \"readTime\": \"\"\n      },\n      \"readWrite\": {\n        \"previousTransaction\": \"\"\n      }\n    },\n    \"readConsistency\": \"\",\n    \"readTime\": \"\",\n    \"transaction\": \"\"\n  }\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/v1/projects/:projectId:runQuery"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"databaseId\": \"\",\n  \"explainOptions\": {\n    \"analyze\": false\n  },\n  \"gqlQuery\": {\n    \"allowLiterals\": false,\n    \"namedBindings\": {},\n    \"positionalBindings\": [\n      {\n        \"cursor\": \"\",\n        \"value\": {\n          \"arrayValue\": {\n            \"values\": []\n          },\n          \"blobValue\": \"\",\n          \"booleanValue\": false,\n          \"doubleValue\": \"\",\n          \"entityValue\": {\n            \"key\": {\n              \"partitionId\": {\n                \"databaseId\": \"\",\n                \"namespaceId\": \"\",\n                \"projectId\": \"\"\n              },\n              \"path\": [\n                {\n                  \"id\": \"\",\n                  \"kind\": \"\",\n                  \"name\": \"\"\n                }\n              ]\n            },\n            \"properties\": {}\n          },\n          \"excludeFromIndexes\": false,\n          \"geoPointValue\": {\n            \"latitude\": \"\",\n            \"longitude\": \"\"\n          },\n          \"integerValue\": \"\",\n          \"keyValue\": {},\n          \"meaning\": 0,\n          \"nullValue\": \"\",\n          \"stringValue\": \"\",\n          \"timestampValue\": \"\"\n        }\n      }\n    ],\n    \"queryString\": \"\"\n  },\n  \"partitionId\": {},\n  \"propertyMask\": {\n    \"paths\": []\n  },\n  \"query\": {\n    \"distinctOn\": [\n      {\n        \"name\": \"\"\n      }\n    ],\n    \"endCursor\": \"\",\n    \"filter\": {\n      \"compositeFilter\": {\n        \"filters\": [],\n        \"op\": \"\"\n      },\n      \"propertyFilter\": {\n        \"op\": \"\",\n        \"property\": {},\n        \"value\": {}\n      }\n    },\n    \"findNearest\": {\n      \"distanceMeasure\": \"\",\n      \"distanceResultProperty\": \"\",\n      \"distanceThreshold\": \"\",\n      \"limit\": 0,\n      \"queryVector\": {},\n      \"vectorProperty\": {}\n    },\n    \"kind\": [\n      {\n        \"name\": \"\"\n      }\n    ],\n    \"limit\": 0,\n    \"offset\": 0,\n    \"order\": [\n      {\n        \"direction\": \"\",\n        \"property\": {}\n      }\n    ],\n    \"projection\": [\n      {\n        \"property\": {}\n      }\n    ],\n    \"startCursor\": \"\"\n  },\n  \"readOptions\": {\n    \"newTransaction\": {\n      \"readOnly\": {\n        \"readTime\": \"\"\n      },\n      \"readWrite\": {\n        \"previousTransaction\": \"\"\n      }\n    },\n    \"readConsistency\": \"\",\n    \"readTime\": \"\",\n    \"transaction\": \"\"\n  }\n}"))
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\n  \"databaseId\": \"\",\n  \"explainOptions\": {\n    \"analyze\": false\n  },\n  \"gqlQuery\": {\n    \"allowLiterals\": false,\n    \"namedBindings\": {},\n    \"positionalBindings\": [\n      {\n        \"cursor\": \"\",\n        \"value\": {\n          \"arrayValue\": {\n            \"values\": []\n          },\n          \"blobValue\": \"\",\n          \"booleanValue\": false,\n          \"doubleValue\": \"\",\n          \"entityValue\": {\n            \"key\": {\n              \"partitionId\": {\n                \"databaseId\": \"\",\n                \"namespaceId\": \"\",\n                \"projectId\": \"\"\n              },\n              \"path\": [\n                {\n                  \"id\": \"\",\n                  \"kind\": \"\",\n                  \"name\": \"\"\n                }\n              ]\n            },\n            \"properties\": {}\n          },\n          \"excludeFromIndexes\": false,\n          \"geoPointValue\": {\n            \"latitude\": \"\",\n            \"longitude\": \"\"\n          },\n          \"integerValue\": \"\",\n          \"keyValue\": {},\n          \"meaning\": 0,\n          \"nullValue\": \"\",\n          \"stringValue\": \"\",\n          \"timestampValue\": \"\"\n        }\n      }\n    ],\n    \"queryString\": \"\"\n  },\n  \"partitionId\": {},\n  \"propertyMask\": {\n    \"paths\": []\n  },\n  \"query\": {\n    \"distinctOn\": [\n      {\n        \"name\": \"\"\n      }\n    ],\n    \"endCursor\": \"\",\n    \"filter\": {\n      \"compositeFilter\": {\n        \"filters\": [],\n        \"op\": \"\"\n      },\n      \"propertyFilter\": {\n        \"op\": \"\",\n        \"property\": {},\n        \"value\": {}\n      }\n    },\n    \"findNearest\": {\n      \"distanceMeasure\": \"\",\n      \"distanceResultProperty\": \"\",\n      \"distanceThreshold\": \"\",\n      \"limit\": 0,\n      \"queryVector\": {},\n      \"vectorProperty\": {}\n    },\n    \"kind\": [\n      {\n        \"name\": \"\"\n      }\n    ],\n    \"limit\": 0,\n    \"offset\": 0,\n    \"order\": [\n      {\n        \"direction\": \"\",\n        \"property\": {}\n      }\n    ],\n    \"projection\": [\n      {\n        \"property\": {}\n      }\n    ],\n    \"startCursor\": \"\"\n  },\n  \"readOptions\": {\n    \"newTransaction\": {\n      \"readOnly\": {\n        \"readTime\": \"\"\n      },\n      \"readWrite\": {\n        \"previousTransaction\": \"\"\n      }\n    },\n    \"readConsistency\": \"\",\n    \"readTime\": \"\",\n    \"transaction\": \"\"\n  }\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/v1/projects/:projectId:runQuery")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/v1/projects/:projectId:runQuery")
  .header("content-type", "application/json")
  .body("{\n  \"databaseId\": \"\",\n  \"explainOptions\": {\n    \"analyze\": false\n  },\n  \"gqlQuery\": {\n    \"allowLiterals\": false,\n    \"namedBindings\": {},\n    \"positionalBindings\": [\n      {\n        \"cursor\": \"\",\n        \"value\": {\n          \"arrayValue\": {\n            \"values\": []\n          },\n          \"blobValue\": \"\",\n          \"booleanValue\": false,\n          \"doubleValue\": \"\",\n          \"entityValue\": {\n            \"key\": {\n              \"partitionId\": {\n                \"databaseId\": \"\",\n                \"namespaceId\": \"\",\n                \"projectId\": \"\"\n              },\n              \"path\": [\n                {\n                  \"id\": \"\",\n                  \"kind\": \"\",\n                  \"name\": \"\"\n                }\n              ]\n            },\n            \"properties\": {}\n          },\n          \"excludeFromIndexes\": false,\n          \"geoPointValue\": {\n            \"latitude\": \"\",\n            \"longitude\": \"\"\n          },\n          \"integerValue\": \"\",\n          \"keyValue\": {},\n          \"meaning\": 0,\n          \"nullValue\": \"\",\n          \"stringValue\": \"\",\n          \"timestampValue\": \"\"\n        }\n      }\n    ],\n    \"queryString\": \"\"\n  },\n  \"partitionId\": {},\n  \"propertyMask\": {\n    \"paths\": []\n  },\n  \"query\": {\n    \"distinctOn\": [\n      {\n        \"name\": \"\"\n      }\n    ],\n    \"endCursor\": \"\",\n    \"filter\": {\n      \"compositeFilter\": {\n        \"filters\": [],\n        \"op\": \"\"\n      },\n      \"propertyFilter\": {\n        \"op\": \"\",\n        \"property\": {},\n        \"value\": {}\n      }\n    },\n    \"findNearest\": {\n      \"distanceMeasure\": \"\",\n      \"distanceResultProperty\": \"\",\n      \"distanceThreshold\": \"\",\n      \"limit\": 0,\n      \"queryVector\": {},\n      \"vectorProperty\": {}\n    },\n    \"kind\": [\n      {\n        \"name\": \"\"\n      }\n    ],\n    \"limit\": 0,\n    \"offset\": 0,\n    \"order\": [\n      {\n        \"direction\": \"\",\n        \"property\": {}\n      }\n    ],\n    \"projection\": [\n      {\n        \"property\": {}\n      }\n    ],\n    \"startCursor\": \"\"\n  },\n  \"readOptions\": {\n    \"newTransaction\": {\n      \"readOnly\": {\n        \"readTime\": \"\"\n      },\n      \"readWrite\": {\n        \"previousTransaction\": \"\"\n      }\n    },\n    \"readConsistency\": \"\",\n    \"readTime\": \"\",\n    \"transaction\": \"\"\n  }\n}")
  .asString();
const data = JSON.stringify({
  databaseId: '',
  explainOptions: {
    analyze: false
  },
  gqlQuery: {
    allowLiterals: false,
    namedBindings: {},
    positionalBindings: [
      {
        cursor: '',
        value: {
          arrayValue: {
            values: []
          },
          blobValue: '',
          booleanValue: false,
          doubleValue: '',
          entityValue: {
            key: {
              partitionId: {
                databaseId: '',
                namespaceId: '',
                projectId: ''
              },
              path: [
                {
                  id: '',
                  kind: '',
                  name: ''
                }
              ]
            },
            properties: {}
          },
          excludeFromIndexes: false,
          geoPointValue: {
            latitude: '',
            longitude: ''
          },
          integerValue: '',
          keyValue: {},
          meaning: 0,
          nullValue: '',
          stringValue: '',
          timestampValue: ''
        }
      }
    ],
    queryString: ''
  },
  partitionId: {},
  propertyMask: {
    paths: []
  },
  query: {
    distinctOn: [
      {
        name: ''
      }
    ],
    endCursor: '',
    filter: {
      compositeFilter: {
        filters: [],
        op: ''
      },
      propertyFilter: {
        op: '',
        property: {},
        value: {}
      }
    },
    findNearest: {
      distanceMeasure: '',
      distanceResultProperty: '',
      distanceThreshold: '',
      limit: 0,
      queryVector: {},
      vectorProperty: {}
    },
    kind: [
      {
        name: ''
      }
    ],
    limit: 0,
    offset: 0,
    order: [
      {
        direction: '',
        property: {}
      }
    ],
    projection: [
      {
        property: {}
      }
    ],
    startCursor: ''
  },
  readOptions: {
    newTransaction: {
      readOnly: {
        readTime: ''
      },
      readWrite: {
        previousTransaction: ''
      }
    },
    readConsistency: '',
    readTime: '',
    transaction: ''
  }
});

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('POST', '{{baseUrl}}/v1/projects/:projectId:runQuery');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'POST',
  url: '{{baseUrl}}/v1/projects/:projectId:runQuery',
  headers: {'content-type': 'application/json'},
  data: {
    databaseId: '',
    explainOptions: {analyze: false},
    gqlQuery: {
      allowLiterals: false,
      namedBindings: {},
      positionalBindings: [
        {
          cursor: '',
          value: {
            arrayValue: {values: []},
            blobValue: '',
            booleanValue: false,
            doubleValue: '',
            entityValue: {
              key: {
                partitionId: {databaseId: '', namespaceId: '', projectId: ''},
                path: [{id: '', kind: '', name: ''}]
              },
              properties: {}
            },
            excludeFromIndexes: false,
            geoPointValue: {latitude: '', longitude: ''},
            integerValue: '',
            keyValue: {},
            meaning: 0,
            nullValue: '',
            stringValue: '',
            timestampValue: ''
          }
        }
      ],
      queryString: ''
    },
    partitionId: {},
    propertyMask: {paths: []},
    query: {
      distinctOn: [{name: ''}],
      endCursor: '',
      filter: {
        compositeFilter: {filters: [], op: ''},
        propertyFilter: {op: '', property: {}, value: {}}
      },
      findNearest: {
        distanceMeasure: '',
        distanceResultProperty: '',
        distanceThreshold: '',
        limit: 0,
        queryVector: {},
        vectorProperty: {}
      },
      kind: [{name: ''}],
      limit: 0,
      offset: 0,
      order: [{direction: '', property: {}}],
      projection: [{property: {}}],
      startCursor: ''
    },
    readOptions: {
      newTransaction: {readOnly: {readTime: ''}, readWrite: {previousTransaction: ''}},
      readConsistency: '',
      readTime: '',
      transaction: ''
    }
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/v1/projects/:projectId:runQuery';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"databaseId":"","explainOptions":{"analyze":false},"gqlQuery":{"allowLiterals":false,"namedBindings":{},"positionalBindings":[{"cursor":"","value":{"arrayValue":{"values":[]},"blobValue":"","booleanValue":false,"doubleValue":"","entityValue":{"key":{"partitionId":{"databaseId":"","namespaceId":"","projectId":""},"path":[{"id":"","kind":"","name":""}]},"properties":{}},"excludeFromIndexes":false,"geoPointValue":{"latitude":"","longitude":""},"integerValue":"","keyValue":{},"meaning":0,"nullValue":"","stringValue":"","timestampValue":""}}],"queryString":""},"partitionId":{},"propertyMask":{"paths":[]},"query":{"distinctOn":[{"name":""}],"endCursor":"","filter":{"compositeFilter":{"filters":[],"op":""},"propertyFilter":{"op":"","property":{},"value":{}}},"findNearest":{"distanceMeasure":"","distanceResultProperty":"","distanceThreshold":"","limit":0,"queryVector":{},"vectorProperty":{}},"kind":[{"name":""}],"limit":0,"offset":0,"order":[{"direction":"","property":{}}],"projection":[{"property":{}}],"startCursor":""},"readOptions":{"newTransaction":{"readOnly":{"readTime":""},"readWrite":{"previousTransaction":""}},"readConsistency":"","readTime":"","transaction":""}}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/v1/projects/:projectId:runQuery',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "databaseId": "",\n  "explainOptions": {\n    "analyze": false\n  },\n  "gqlQuery": {\n    "allowLiterals": false,\n    "namedBindings": {},\n    "positionalBindings": [\n      {\n        "cursor": "",\n        "value": {\n          "arrayValue": {\n            "values": []\n          },\n          "blobValue": "",\n          "booleanValue": false,\n          "doubleValue": "",\n          "entityValue": {\n            "key": {\n              "partitionId": {\n                "databaseId": "",\n                "namespaceId": "",\n                "projectId": ""\n              },\n              "path": [\n                {\n                  "id": "",\n                  "kind": "",\n                  "name": ""\n                }\n              ]\n            },\n            "properties": {}\n          },\n          "excludeFromIndexes": false,\n          "geoPointValue": {\n            "latitude": "",\n            "longitude": ""\n          },\n          "integerValue": "",\n          "keyValue": {},\n          "meaning": 0,\n          "nullValue": "",\n          "stringValue": "",\n          "timestampValue": ""\n        }\n      }\n    ],\n    "queryString": ""\n  },\n  "partitionId": {},\n  "propertyMask": {\n    "paths": []\n  },\n  "query": {\n    "distinctOn": [\n      {\n        "name": ""\n      }\n    ],\n    "endCursor": "",\n    "filter": {\n      "compositeFilter": {\n        "filters": [],\n        "op": ""\n      },\n      "propertyFilter": {\n        "op": "",\n        "property": {},\n        "value": {}\n      }\n    },\n    "findNearest": {\n      "distanceMeasure": "",\n      "distanceResultProperty": "",\n      "distanceThreshold": "",\n      "limit": 0,\n      "queryVector": {},\n      "vectorProperty": {}\n    },\n    "kind": [\n      {\n        "name": ""\n      }\n    ],\n    "limit": 0,\n    "offset": 0,\n    "order": [\n      {\n        "direction": "",\n        "property": {}\n      }\n    ],\n    "projection": [\n      {\n        "property": {}\n      }\n    ],\n    "startCursor": ""\n  },\n  "readOptions": {\n    "newTransaction": {\n      "readOnly": {\n        "readTime": ""\n      },\n      "readWrite": {\n        "previousTransaction": ""\n      }\n    },\n    "readConsistency": "",\n    "readTime": "",\n    "transaction": ""\n  }\n}'
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"databaseId\": \"\",\n  \"explainOptions\": {\n    \"analyze\": false\n  },\n  \"gqlQuery\": {\n    \"allowLiterals\": false,\n    \"namedBindings\": {},\n    \"positionalBindings\": [\n      {\n        \"cursor\": \"\",\n        \"value\": {\n          \"arrayValue\": {\n            \"values\": []\n          },\n          \"blobValue\": \"\",\n          \"booleanValue\": false,\n          \"doubleValue\": \"\",\n          \"entityValue\": {\n            \"key\": {\n              \"partitionId\": {\n                \"databaseId\": \"\",\n                \"namespaceId\": \"\",\n                \"projectId\": \"\"\n              },\n              \"path\": [\n                {\n                  \"id\": \"\",\n                  \"kind\": \"\",\n                  \"name\": \"\"\n                }\n              ]\n            },\n            \"properties\": {}\n          },\n          \"excludeFromIndexes\": false,\n          \"geoPointValue\": {\n            \"latitude\": \"\",\n            \"longitude\": \"\"\n          },\n          \"integerValue\": \"\",\n          \"keyValue\": {},\n          \"meaning\": 0,\n          \"nullValue\": \"\",\n          \"stringValue\": \"\",\n          \"timestampValue\": \"\"\n        }\n      }\n    ],\n    \"queryString\": \"\"\n  },\n  \"partitionId\": {},\n  \"propertyMask\": {\n    \"paths\": []\n  },\n  \"query\": {\n    \"distinctOn\": [\n      {\n        \"name\": \"\"\n      }\n    ],\n    \"endCursor\": \"\",\n    \"filter\": {\n      \"compositeFilter\": {\n        \"filters\": [],\n        \"op\": \"\"\n      },\n      \"propertyFilter\": {\n        \"op\": \"\",\n        \"property\": {},\n        \"value\": {}\n      }\n    },\n    \"findNearest\": {\n      \"distanceMeasure\": \"\",\n      \"distanceResultProperty\": \"\",\n      \"distanceThreshold\": \"\",\n      \"limit\": 0,\n      \"queryVector\": {},\n      \"vectorProperty\": {}\n    },\n    \"kind\": [\n      {\n        \"name\": \"\"\n      }\n    ],\n    \"limit\": 0,\n    \"offset\": 0,\n    \"order\": [\n      {\n        \"direction\": \"\",\n        \"property\": {}\n      }\n    ],\n    \"projection\": [\n      {\n        \"property\": {}\n      }\n    ],\n    \"startCursor\": \"\"\n  },\n  \"readOptions\": {\n    \"newTransaction\": {\n      \"readOnly\": {\n        \"readTime\": \"\"\n      },\n      \"readWrite\": {\n        \"previousTransaction\": \"\"\n      }\n    },\n    \"readConsistency\": \"\",\n    \"readTime\": \"\",\n    \"transaction\": \"\"\n  }\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/v1/projects/:projectId:runQuery")
  .post(body)
  .addHeader("content-type", "application/json")
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'POST',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/v1/projects/:projectId:runQuery',
  headers: {
    'content-type': 'application/json'
  }
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on('data', function (chunk) {
    chunks.push(chunk);
  });

  res.on('end', function () {
    const body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.write(JSON.stringify({
  databaseId: '',
  explainOptions: {analyze: false},
  gqlQuery: {
    allowLiterals: false,
    namedBindings: {},
    positionalBindings: [
      {
        cursor: '',
        value: {
          arrayValue: {values: []},
          blobValue: '',
          booleanValue: false,
          doubleValue: '',
          entityValue: {
            key: {
              partitionId: {databaseId: '', namespaceId: '', projectId: ''},
              path: [{id: '', kind: '', name: ''}]
            },
            properties: {}
          },
          excludeFromIndexes: false,
          geoPointValue: {latitude: '', longitude: ''},
          integerValue: '',
          keyValue: {},
          meaning: 0,
          nullValue: '',
          stringValue: '',
          timestampValue: ''
        }
      }
    ],
    queryString: ''
  },
  partitionId: {},
  propertyMask: {paths: []},
  query: {
    distinctOn: [{name: ''}],
    endCursor: '',
    filter: {
      compositeFilter: {filters: [], op: ''},
      propertyFilter: {op: '', property: {}, value: {}}
    },
    findNearest: {
      distanceMeasure: '',
      distanceResultProperty: '',
      distanceThreshold: '',
      limit: 0,
      queryVector: {},
      vectorProperty: {}
    },
    kind: [{name: ''}],
    limit: 0,
    offset: 0,
    order: [{direction: '', property: {}}],
    projection: [{property: {}}],
    startCursor: ''
  },
  readOptions: {
    newTransaction: {readOnly: {readTime: ''}, readWrite: {previousTransaction: ''}},
    readConsistency: '',
    readTime: '',
    transaction: ''
  }
}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/v1/projects/:projectId:runQuery',
  headers: {'content-type': 'application/json'},
  body: {
    databaseId: '',
    explainOptions: {analyze: false},
    gqlQuery: {
      allowLiterals: false,
      namedBindings: {},
      positionalBindings: [
        {
          cursor: '',
          value: {
            arrayValue: {values: []},
            blobValue: '',
            booleanValue: false,
            doubleValue: '',
            entityValue: {
              key: {
                partitionId: {databaseId: '', namespaceId: '', projectId: ''},
                path: [{id: '', kind: '', name: ''}]
              },
              properties: {}
            },
            excludeFromIndexes: false,
            geoPointValue: {latitude: '', longitude: ''},
            integerValue: '',
            keyValue: {},
            meaning: 0,
            nullValue: '',
            stringValue: '',
            timestampValue: ''
          }
        }
      ],
      queryString: ''
    },
    partitionId: {},
    propertyMask: {paths: []},
    query: {
      distinctOn: [{name: ''}],
      endCursor: '',
      filter: {
        compositeFilter: {filters: [], op: ''},
        propertyFilter: {op: '', property: {}, value: {}}
      },
      findNearest: {
        distanceMeasure: '',
        distanceResultProperty: '',
        distanceThreshold: '',
        limit: 0,
        queryVector: {},
        vectorProperty: {}
      },
      kind: [{name: ''}],
      limit: 0,
      offset: 0,
      order: [{direction: '', property: {}}],
      projection: [{property: {}}],
      startCursor: ''
    },
    readOptions: {
      newTransaction: {readOnly: {readTime: ''}, readWrite: {previousTransaction: ''}},
      readConsistency: '',
      readTime: '',
      transaction: ''
    }
  },
  json: true
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('POST', '{{baseUrl}}/v1/projects/:projectId:runQuery');

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send({
  databaseId: '',
  explainOptions: {
    analyze: false
  },
  gqlQuery: {
    allowLiterals: false,
    namedBindings: {},
    positionalBindings: [
      {
        cursor: '',
        value: {
          arrayValue: {
            values: []
          },
          blobValue: '',
          booleanValue: false,
          doubleValue: '',
          entityValue: {
            key: {
              partitionId: {
                databaseId: '',
                namespaceId: '',
                projectId: ''
              },
              path: [
                {
                  id: '',
                  kind: '',
                  name: ''
                }
              ]
            },
            properties: {}
          },
          excludeFromIndexes: false,
          geoPointValue: {
            latitude: '',
            longitude: ''
          },
          integerValue: '',
          keyValue: {},
          meaning: 0,
          nullValue: '',
          stringValue: '',
          timestampValue: ''
        }
      }
    ],
    queryString: ''
  },
  partitionId: {},
  propertyMask: {
    paths: []
  },
  query: {
    distinctOn: [
      {
        name: ''
      }
    ],
    endCursor: '',
    filter: {
      compositeFilter: {
        filters: [],
        op: ''
      },
      propertyFilter: {
        op: '',
        property: {},
        value: {}
      }
    },
    findNearest: {
      distanceMeasure: '',
      distanceResultProperty: '',
      distanceThreshold: '',
      limit: 0,
      queryVector: {},
      vectorProperty: {}
    },
    kind: [
      {
        name: ''
      }
    ],
    limit: 0,
    offset: 0,
    order: [
      {
        direction: '',
        property: {}
      }
    ],
    projection: [
      {
        property: {}
      }
    ],
    startCursor: ''
  },
  readOptions: {
    newTransaction: {
      readOnly: {
        readTime: ''
      },
      readWrite: {
        previousTransaction: ''
      }
    },
    readConsistency: '',
    readTime: '',
    transaction: ''
  }
});

req.end(function (res) {
  if (res.error) throw new Error(res.error);

  console.log(res.body);
});
const axios = require('axios').default;

const options = {
  method: 'POST',
  url: '{{baseUrl}}/v1/projects/:projectId:runQuery',
  headers: {'content-type': 'application/json'},
  data: {
    databaseId: '',
    explainOptions: {analyze: false},
    gqlQuery: {
      allowLiterals: false,
      namedBindings: {},
      positionalBindings: [
        {
          cursor: '',
          value: {
            arrayValue: {values: []},
            blobValue: '',
            booleanValue: false,
            doubleValue: '',
            entityValue: {
              key: {
                partitionId: {databaseId: '', namespaceId: '', projectId: ''},
                path: [{id: '', kind: '', name: ''}]
              },
              properties: {}
            },
            excludeFromIndexes: false,
            geoPointValue: {latitude: '', longitude: ''},
            integerValue: '',
            keyValue: {},
            meaning: 0,
            nullValue: '',
            stringValue: '',
            timestampValue: ''
          }
        }
      ],
      queryString: ''
    },
    partitionId: {},
    propertyMask: {paths: []},
    query: {
      distinctOn: [{name: ''}],
      endCursor: '',
      filter: {
        compositeFilter: {filters: [], op: ''},
        propertyFilter: {op: '', property: {}, value: {}}
      },
      findNearest: {
        distanceMeasure: '',
        distanceResultProperty: '',
        distanceThreshold: '',
        limit: 0,
        queryVector: {},
        vectorProperty: {}
      },
      kind: [{name: ''}],
      limit: 0,
      offset: 0,
      order: [{direction: '', property: {}}],
      projection: [{property: {}}],
      startCursor: ''
    },
    readOptions: {
      newTransaction: {readOnly: {readTime: ''}, readWrite: {previousTransaction: ''}},
      readConsistency: '',
      readTime: '',
      transaction: ''
    }
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/v1/projects/:projectId:runQuery';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"databaseId":"","explainOptions":{"analyze":false},"gqlQuery":{"allowLiterals":false,"namedBindings":{},"positionalBindings":[{"cursor":"","value":{"arrayValue":{"values":[]},"blobValue":"","booleanValue":false,"doubleValue":"","entityValue":{"key":{"partitionId":{"databaseId":"","namespaceId":"","projectId":""},"path":[{"id":"","kind":"","name":""}]},"properties":{}},"excludeFromIndexes":false,"geoPointValue":{"latitude":"","longitude":""},"integerValue":"","keyValue":{},"meaning":0,"nullValue":"","stringValue":"","timestampValue":""}}],"queryString":""},"partitionId":{},"propertyMask":{"paths":[]},"query":{"distinctOn":[{"name":""}],"endCursor":"","filter":{"compositeFilter":{"filters":[],"op":""},"propertyFilter":{"op":"","property":{},"value":{}}},"findNearest":{"distanceMeasure":"","distanceResultProperty":"","distanceThreshold":"","limit":0,"queryVector":{},"vectorProperty":{}},"kind":[{"name":""}],"limit":0,"offset":0,"order":[{"direction":"","property":{}}],"projection":[{"property":{}}],"startCursor":""},"readOptions":{"newTransaction":{"readOnly":{"readTime":""},"readWrite":{"previousTransaction":""}},"readConsistency":"","readTime":"","transaction":""}}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
#import 

NSDictionary *headers = @{ @"content-type": @"application/json" };
NSDictionary *parameters = @{ @"databaseId": @"",
                              @"explainOptions": @{ @"analyze": @NO },
                              @"gqlQuery": @{ @"allowLiterals": @NO, @"namedBindings": @{  }, @"positionalBindings": @[ @{ @"cursor": @"", @"value": @{ @"arrayValue": @{ @"values": @[  ] }, @"blobValue": @"", @"booleanValue": @NO, @"doubleValue": @"", @"entityValue": @{ @"key": @{ @"partitionId": @{ @"databaseId": @"", @"namespaceId": @"", @"projectId": @"" }, @"path": @[ @{ @"id": @"", @"kind": @"", @"name": @"" } ] }, @"properties": @{  } }, @"excludeFromIndexes": @NO, @"geoPointValue": @{ @"latitude": @"", @"longitude": @"" }, @"integerValue": @"", @"keyValue": @{  }, @"meaning": @0, @"nullValue": @"", @"stringValue": @"", @"timestampValue": @"" } } ], @"queryString": @"" },
                              @"partitionId": @{  },
                              @"propertyMask": @{ @"paths": @[  ] },
                              @"query": @{ @"distinctOn": @[ @{ @"name": @"" } ], @"endCursor": @"", @"filter": @{ @"compositeFilter": @{ @"filters": @[  ], @"op": @"" }, @"propertyFilter": @{ @"op": @"", @"property": @{  }, @"value": @{  } } }, @"findNearest": @{ @"distanceMeasure": @"", @"distanceResultProperty": @"", @"distanceThreshold": @"", @"limit": @0, @"queryVector": @{  }, @"vectorProperty": @{  } }, @"kind": @[ @{ @"name": @"" } ], @"limit": @0, @"offset": @0, @"order": @[ @{ @"direction": @"", @"property": @{  } } ], @"projection": @[ @{ @"property": @{  } } ], @"startCursor": @"" },
                              @"readOptions": @{ @"newTransaction": @{ @"readOnly": @{ @"readTime": @"" }, @"readWrite": @{ @"previousTransaction": @"" } }, @"readConsistency": @"", @"readTime": @"", @"transaction": @"" } };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/v1/projects/:projectId:runQuery"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"POST"];
[request setAllHTTPHeaderFields:headers];
[request setHTTPBody:postData];

NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
                                            completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
                                                if (error) {
                                                    NSLog(@"%@", error);
                                                } else {
                                                    NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
                                                    NSLog(@"%@", httpResponse);
                                                }
                                            }];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt

let uri = Uri.of_string "{{baseUrl}}/v1/projects/:projectId:runQuery" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"databaseId\": \"\",\n  \"explainOptions\": {\n    \"analyze\": false\n  },\n  \"gqlQuery\": {\n    \"allowLiterals\": false,\n    \"namedBindings\": {},\n    \"positionalBindings\": [\n      {\n        \"cursor\": \"\",\n        \"value\": {\n          \"arrayValue\": {\n            \"values\": []\n          },\n          \"blobValue\": \"\",\n          \"booleanValue\": false,\n          \"doubleValue\": \"\",\n          \"entityValue\": {\n            \"key\": {\n              \"partitionId\": {\n                \"databaseId\": \"\",\n                \"namespaceId\": \"\",\n                \"projectId\": \"\"\n              },\n              \"path\": [\n                {\n                  \"id\": \"\",\n                  \"kind\": \"\",\n                  \"name\": \"\"\n                }\n              ]\n            },\n            \"properties\": {}\n          },\n          \"excludeFromIndexes\": false,\n          \"geoPointValue\": {\n            \"latitude\": \"\",\n            \"longitude\": \"\"\n          },\n          \"integerValue\": \"\",\n          \"keyValue\": {},\n          \"meaning\": 0,\n          \"nullValue\": \"\",\n          \"stringValue\": \"\",\n          \"timestampValue\": \"\"\n        }\n      }\n    ],\n    \"queryString\": \"\"\n  },\n  \"partitionId\": {},\n  \"propertyMask\": {\n    \"paths\": []\n  },\n  \"query\": {\n    \"distinctOn\": [\n      {\n        \"name\": \"\"\n      }\n    ],\n    \"endCursor\": \"\",\n    \"filter\": {\n      \"compositeFilter\": {\n        \"filters\": [],\n        \"op\": \"\"\n      },\n      \"propertyFilter\": {\n        \"op\": \"\",\n        \"property\": {},\n        \"value\": {}\n      }\n    },\n    \"findNearest\": {\n      \"distanceMeasure\": \"\",\n      \"distanceResultProperty\": \"\",\n      \"distanceThreshold\": \"\",\n      \"limit\": 0,\n      \"queryVector\": {},\n      \"vectorProperty\": {}\n    },\n    \"kind\": [\n      {\n        \"name\": \"\"\n      }\n    ],\n    \"limit\": 0,\n    \"offset\": 0,\n    \"order\": [\n      {\n        \"direction\": \"\",\n        \"property\": {}\n      }\n    ],\n    \"projection\": [\n      {\n        \"property\": {}\n      }\n    ],\n    \"startCursor\": \"\"\n  },\n  \"readOptions\": {\n    \"newTransaction\": {\n      \"readOnly\": {\n        \"readTime\": \"\"\n      },\n      \"readWrite\": {\n        \"previousTransaction\": \"\"\n      }\n    },\n    \"readConsistency\": \"\",\n    \"readTime\": \"\",\n    \"transaction\": \"\"\n  }\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/v1/projects/:projectId:runQuery",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "POST",
  CURLOPT_POSTFIELDS => json_encode([
    'databaseId' => '',
    'explainOptions' => [
        'analyze' => null
    ],
    'gqlQuery' => [
        'allowLiterals' => null,
        'namedBindings' => [
                
        ],
        'positionalBindings' => [
                [
                                'cursor' => '',
                                'value' => [
                                                                'arrayValue' => [
                                                                                                                                'values' => [
                                                                                                                                                                                                                                                                
                                                                                                                                ]
                                                                ],
                                                                'blobValue' => '',
                                                                'booleanValue' => null,
                                                                'doubleValue' => '',
                                                                'entityValue' => [
                                                                                                                                'key' => [
                                                                                                                                                                                                                                                                'partitionId' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'databaseId' => '',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'namespaceId' => '',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'projectId' => ''
                                                                                                                                                                                                                                                                ],
                                                                                                                                                                                                                                                                'path' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'id' => '',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'kind' => '',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'name' => ''
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                ]
                                                                                                                                                                                                                                                                ]
                                                                                                                                ],
                                                                                                                                'properties' => [
                                                                                                                                                                                                                                                                
                                                                                                                                ]
                                                                ],
                                                                'excludeFromIndexes' => null,
                                                                'geoPointValue' => [
                                                                                                                                'latitude' => '',
                                                                                                                                'longitude' => ''
                                                                ],
                                                                'integerValue' => '',
                                                                'keyValue' => [
                                                                                                                                
                                                                ],
                                                                'meaning' => 0,
                                                                'nullValue' => '',
                                                                'stringValue' => '',
                                                                'timestampValue' => ''
                                ]
                ]
        ],
        'queryString' => ''
    ],
    'partitionId' => [
        
    ],
    'propertyMask' => [
        'paths' => [
                
        ]
    ],
    'query' => [
        'distinctOn' => [
                [
                                'name' => ''
                ]
        ],
        'endCursor' => '',
        'filter' => [
                'compositeFilter' => [
                                'filters' => [
                                                                
                                ],
                                'op' => ''
                ],
                'propertyFilter' => [
                                'op' => '',
                                'property' => [
                                                                
                                ],
                                'value' => [
                                                                
                                ]
                ]
        ],
        'findNearest' => [
                'distanceMeasure' => '',
                'distanceResultProperty' => '',
                'distanceThreshold' => '',
                'limit' => 0,
                'queryVector' => [
                                
                ],
                'vectorProperty' => [
                                
                ]
        ],
        'kind' => [
                [
                                'name' => ''
                ]
        ],
        'limit' => 0,
        'offset' => 0,
        'order' => [
                [
                                'direction' => '',
                                'property' => [
                                                                
                                ]
                ]
        ],
        'projection' => [
                [
                                'property' => [
                                                                
                                ]
                ]
        ],
        'startCursor' => ''
    ],
    'readOptions' => [
        'newTransaction' => [
                'readOnly' => [
                                'readTime' => ''
                ],
                'readWrite' => [
                                'previousTransaction' => ''
                ]
        ],
        'readConsistency' => '',
        'readTime' => '',
        'transaction' => ''
    ]
  ]),
  CURLOPT_HTTPHEADER => [
    "content-type: application/json"
  ],
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('POST', '{{baseUrl}}/v1/projects/:projectId:runQuery', [
  'body' => '{
  "databaseId": "",
  "explainOptions": {
    "analyze": false
  },
  "gqlQuery": {
    "allowLiterals": false,
    "namedBindings": {},
    "positionalBindings": [
      {
        "cursor": "",
        "value": {
          "arrayValue": {
            "values": []
          },
          "blobValue": "",
          "booleanValue": false,
          "doubleValue": "",
          "entityValue": {
            "key": {
              "partitionId": {
                "databaseId": "",
                "namespaceId": "",
                "projectId": ""
              },
              "path": [
                {
                  "id": "",
                  "kind": "",
                  "name": ""
                }
              ]
            },
            "properties": {}
          },
          "excludeFromIndexes": false,
          "geoPointValue": {
            "latitude": "",
            "longitude": ""
          },
          "integerValue": "",
          "keyValue": {},
          "meaning": 0,
          "nullValue": "",
          "stringValue": "",
          "timestampValue": ""
        }
      }
    ],
    "queryString": ""
  },
  "partitionId": {},
  "propertyMask": {
    "paths": []
  },
  "query": {
    "distinctOn": [
      {
        "name": ""
      }
    ],
    "endCursor": "",
    "filter": {
      "compositeFilter": {
        "filters": [],
        "op": ""
      },
      "propertyFilter": {
        "op": "",
        "property": {},
        "value": {}
      }
    },
    "findNearest": {
      "distanceMeasure": "",
      "distanceResultProperty": "",
      "distanceThreshold": "",
      "limit": 0,
      "queryVector": {},
      "vectorProperty": {}
    },
    "kind": [
      {
        "name": ""
      }
    ],
    "limit": 0,
    "offset": 0,
    "order": [
      {
        "direction": "",
        "property": {}
      }
    ],
    "projection": [
      {
        "property": {}
      }
    ],
    "startCursor": ""
  },
  "readOptions": {
    "newTransaction": {
      "readOnly": {
        "readTime": ""
      },
      "readWrite": {
        "previousTransaction": ""
      }
    },
    "readConsistency": "",
    "readTime": "",
    "transaction": ""
  }
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/v1/projects/:projectId:runQuery');
$request->setMethod(HTTP_METH_POST);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'databaseId' => '',
  'explainOptions' => [
    'analyze' => null
  ],
  'gqlQuery' => [
    'allowLiterals' => null,
    'namedBindings' => [
        
    ],
    'positionalBindings' => [
        [
                'cursor' => '',
                'value' => [
                                'arrayValue' => [
                                                                'values' => [
                                                                                                                                
                                                                ]
                                ],
                                'blobValue' => '',
                                'booleanValue' => null,
                                'doubleValue' => '',
                                'entityValue' => [
                                                                'key' => [
                                                                                                                                'partitionId' => [
                                                                                                                                                                                                                                                                'databaseId' => '',
                                                                                                                                                                                                                                                                'namespaceId' => '',
                                                                                                                                                                                                                                                                'projectId' => ''
                                                                                                                                ],
                                                                                                                                'path' => [
                                                                                                                                                                                                                                                                [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'id' => '',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'kind' => '',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'name' => ''
                                                                                                                                                                                                                                                                ]
                                                                                                                                ]
                                                                ],
                                                                'properties' => [
                                                                                                                                
                                                                ]
                                ],
                                'excludeFromIndexes' => null,
                                'geoPointValue' => [
                                                                'latitude' => '',
                                                                'longitude' => ''
                                ],
                                'integerValue' => '',
                                'keyValue' => [
                                                                
                                ],
                                'meaning' => 0,
                                'nullValue' => '',
                                'stringValue' => '',
                                'timestampValue' => ''
                ]
        ]
    ],
    'queryString' => ''
  ],
  'partitionId' => [
    
  ],
  'propertyMask' => [
    'paths' => [
        
    ]
  ],
  'query' => [
    'distinctOn' => [
        [
                'name' => ''
        ]
    ],
    'endCursor' => '',
    'filter' => [
        'compositeFilter' => [
                'filters' => [
                                
                ],
                'op' => ''
        ],
        'propertyFilter' => [
                'op' => '',
                'property' => [
                                
                ],
                'value' => [
                                
                ]
        ]
    ],
    'findNearest' => [
        'distanceMeasure' => '',
        'distanceResultProperty' => '',
        'distanceThreshold' => '',
        'limit' => 0,
        'queryVector' => [
                
        ],
        'vectorProperty' => [
                
        ]
    ],
    'kind' => [
        [
                'name' => ''
        ]
    ],
    'limit' => 0,
    'offset' => 0,
    'order' => [
        [
                'direction' => '',
                'property' => [
                                
                ]
        ]
    ],
    'projection' => [
        [
                'property' => [
                                
                ]
        ]
    ],
    'startCursor' => ''
  ],
  'readOptions' => [
    'newTransaction' => [
        'readOnly' => [
                'readTime' => ''
        ],
        'readWrite' => [
                'previousTransaction' => ''
        ]
    ],
    'readConsistency' => '',
    'readTime' => '',
    'transaction' => ''
  ]
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'databaseId' => '',
  'explainOptions' => [
    'analyze' => null
  ],
  'gqlQuery' => [
    'allowLiterals' => null,
    'namedBindings' => [
        
    ],
    'positionalBindings' => [
        [
                'cursor' => '',
                'value' => [
                                'arrayValue' => [
                                                                'values' => [
                                                                                                                                
                                                                ]
                                ],
                                'blobValue' => '',
                                'booleanValue' => null,
                                'doubleValue' => '',
                                'entityValue' => [
                                                                'key' => [
                                                                                                                                'partitionId' => [
                                                                                                                                                                                                                                                                'databaseId' => '',
                                                                                                                                                                                                                                                                'namespaceId' => '',
                                                                                                                                                                                                                                                                'projectId' => ''
                                                                                                                                ],
                                                                                                                                'path' => [
                                                                                                                                                                                                                                                                [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'id' => '',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'kind' => '',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'name' => ''
                                                                                                                                                                                                                                                                ]
                                                                                                                                ]
                                                                ],
                                                                'properties' => [
                                                                                                                                
                                                                ]
                                ],
                                'excludeFromIndexes' => null,
                                'geoPointValue' => [
                                                                'latitude' => '',
                                                                'longitude' => ''
                                ],
                                'integerValue' => '',
                                'keyValue' => [
                                                                
                                ],
                                'meaning' => 0,
                                'nullValue' => '',
                                'stringValue' => '',
                                'timestampValue' => ''
                ]
        ]
    ],
    'queryString' => ''
  ],
  'partitionId' => [
    
  ],
  'propertyMask' => [
    'paths' => [
        
    ]
  ],
  'query' => [
    'distinctOn' => [
        [
                'name' => ''
        ]
    ],
    'endCursor' => '',
    'filter' => [
        'compositeFilter' => [
                'filters' => [
                                
                ],
                'op' => ''
        ],
        'propertyFilter' => [
                'op' => '',
                'property' => [
                                
                ],
                'value' => [
                                
                ]
        ]
    ],
    'findNearest' => [
        'distanceMeasure' => '',
        'distanceResultProperty' => '',
        'distanceThreshold' => '',
        'limit' => 0,
        'queryVector' => [
                
        ],
        'vectorProperty' => [
                
        ]
    ],
    'kind' => [
        [
                'name' => ''
        ]
    ],
    'limit' => 0,
    'offset' => 0,
    'order' => [
        [
                'direction' => '',
                'property' => [
                                
                ]
        ]
    ],
    'projection' => [
        [
                'property' => [
                                
                ]
        ]
    ],
    'startCursor' => ''
  ],
  'readOptions' => [
    'newTransaction' => [
        'readOnly' => [
                'readTime' => ''
        ],
        'readWrite' => [
                'previousTransaction' => ''
        ]
    ],
    'readConsistency' => '',
    'readTime' => '',
    'transaction' => ''
  ]
]));
$request->setRequestUrl('{{baseUrl}}/v1/projects/:projectId:runQuery');
$request->setRequestMethod('POST');
$request->setBody($body);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/v1/projects/:projectId:runQuery' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "databaseId": "",
  "explainOptions": {
    "analyze": false
  },
  "gqlQuery": {
    "allowLiterals": false,
    "namedBindings": {},
    "positionalBindings": [
      {
        "cursor": "",
        "value": {
          "arrayValue": {
            "values": []
          },
          "blobValue": "",
          "booleanValue": false,
          "doubleValue": "",
          "entityValue": {
            "key": {
              "partitionId": {
                "databaseId": "",
                "namespaceId": "",
                "projectId": ""
              },
              "path": [
                {
                  "id": "",
                  "kind": "",
                  "name": ""
                }
              ]
            },
            "properties": {}
          },
          "excludeFromIndexes": false,
          "geoPointValue": {
            "latitude": "",
            "longitude": ""
          },
          "integerValue": "",
          "keyValue": {},
          "meaning": 0,
          "nullValue": "",
          "stringValue": "",
          "timestampValue": ""
        }
      }
    ],
    "queryString": ""
  },
  "partitionId": {},
  "propertyMask": {
    "paths": []
  },
  "query": {
    "distinctOn": [
      {
        "name": ""
      }
    ],
    "endCursor": "",
    "filter": {
      "compositeFilter": {
        "filters": [],
        "op": ""
      },
      "propertyFilter": {
        "op": "",
        "property": {},
        "value": {}
      }
    },
    "findNearest": {
      "distanceMeasure": "",
      "distanceResultProperty": "",
      "distanceThreshold": "",
      "limit": 0,
      "queryVector": {},
      "vectorProperty": {}
    },
    "kind": [
      {
        "name": ""
      }
    ],
    "limit": 0,
    "offset": 0,
    "order": [
      {
        "direction": "",
        "property": {}
      }
    ],
    "projection": [
      {
        "property": {}
      }
    ],
    "startCursor": ""
  },
  "readOptions": {
    "newTransaction": {
      "readOnly": {
        "readTime": ""
      },
      "readWrite": {
        "previousTransaction": ""
      }
    },
    "readConsistency": "",
    "readTime": "",
    "transaction": ""
  }
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/v1/projects/:projectId:runQuery' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "databaseId": "",
  "explainOptions": {
    "analyze": false
  },
  "gqlQuery": {
    "allowLiterals": false,
    "namedBindings": {},
    "positionalBindings": [
      {
        "cursor": "",
        "value": {
          "arrayValue": {
            "values": []
          },
          "blobValue": "",
          "booleanValue": false,
          "doubleValue": "",
          "entityValue": {
            "key": {
              "partitionId": {
                "databaseId": "",
                "namespaceId": "",
                "projectId": ""
              },
              "path": [
                {
                  "id": "",
                  "kind": "",
                  "name": ""
                }
              ]
            },
            "properties": {}
          },
          "excludeFromIndexes": false,
          "geoPointValue": {
            "latitude": "",
            "longitude": ""
          },
          "integerValue": "",
          "keyValue": {},
          "meaning": 0,
          "nullValue": "",
          "stringValue": "",
          "timestampValue": ""
        }
      }
    ],
    "queryString": ""
  },
  "partitionId": {},
  "propertyMask": {
    "paths": []
  },
  "query": {
    "distinctOn": [
      {
        "name": ""
      }
    ],
    "endCursor": "",
    "filter": {
      "compositeFilter": {
        "filters": [],
        "op": ""
      },
      "propertyFilter": {
        "op": "",
        "property": {},
        "value": {}
      }
    },
    "findNearest": {
      "distanceMeasure": "",
      "distanceResultProperty": "",
      "distanceThreshold": "",
      "limit": 0,
      "queryVector": {},
      "vectorProperty": {}
    },
    "kind": [
      {
        "name": ""
      }
    ],
    "limit": 0,
    "offset": 0,
    "order": [
      {
        "direction": "",
        "property": {}
      }
    ],
    "projection": [
      {
        "property": {}
      }
    ],
    "startCursor": ""
  },
  "readOptions": {
    "newTransaction": {
      "readOnly": {
        "readTime": ""
      },
      "readWrite": {
        "previousTransaction": ""
      }
    },
    "readConsistency": "",
    "readTime": "",
    "transaction": ""
  }
}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{\n  \"databaseId\": \"\",\n  \"explainOptions\": {\n    \"analyze\": false\n  },\n  \"gqlQuery\": {\n    \"allowLiterals\": false,\n    \"namedBindings\": {},\n    \"positionalBindings\": [\n      {\n        \"cursor\": \"\",\n        \"value\": {\n          \"arrayValue\": {\n            \"values\": []\n          },\n          \"blobValue\": \"\",\n          \"booleanValue\": false,\n          \"doubleValue\": \"\",\n          \"entityValue\": {\n            \"key\": {\n              \"partitionId\": {\n                \"databaseId\": \"\",\n                \"namespaceId\": \"\",\n                \"projectId\": \"\"\n              },\n              \"path\": [\n                {\n                  \"id\": \"\",\n                  \"kind\": \"\",\n                  \"name\": \"\"\n                }\n              ]\n            },\n            \"properties\": {}\n          },\n          \"excludeFromIndexes\": false,\n          \"geoPointValue\": {\n            \"latitude\": \"\",\n            \"longitude\": \"\"\n          },\n          \"integerValue\": \"\",\n          \"keyValue\": {},\n          \"meaning\": 0,\n          \"nullValue\": \"\",\n          \"stringValue\": \"\",\n          \"timestampValue\": \"\"\n        }\n      }\n    ],\n    \"queryString\": \"\"\n  },\n  \"partitionId\": {},\n  \"propertyMask\": {\n    \"paths\": []\n  },\n  \"query\": {\n    \"distinctOn\": [\n      {\n        \"name\": \"\"\n      }\n    ],\n    \"endCursor\": \"\",\n    \"filter\": {\n      \"compositeFilter\": {\n        \"filters\": [],\n        \"op\": \"\"\n      },\n      \"propertyFilter\": {\n        \"op\": \"\",\n        \"property\": {},\n        \"value\": {}\n      }\n    },\n    \"findNearest\": {\n      \"distanceMeasure\": \"\",\n      \"distanceResultProperty\": \"\",\n      \"distanceThreshold\": \"\",\n      \"limit\": 0,\n      \"queryVector\": {},\n      \"vectorProperty\": {}\n    },\n    \"kind\": [\n      {\n        \"name\": \"\"\n      }\n    ],\n    \"limit\": 0,\n    \"offset\": 0,\n    \"order\": [\n      {\n        \"direction\": \"\",\n        \"property\": {}\n      }\n    ],\n    \"projection\": [\n      {\n        \"property\": {}\n      }\n    ],\n    \"startCursor\": \"\"\n  },\n  \"readOptions\": {\n    \"newTransaction\": {\n      \"readOnly\": {\n        \"readTime\": \"\"\n      },\n      \"readWrite\": {\n        \"previousTransaction\": \"\"\n      }\n    },\n    \"readConsistency\": \"\",\n    \"readTime\": \"\",\n    \"transaction\": \"\"\n  }\n}"

headers = { 'content-type': "application/json" }

conn.request("POST", "/baseUrl/v1/projects/:projectId:runQuery", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/v1/projects/:projectId:runQuery"

payload = {
    "databaseId": "",
    "explainOptions": { "analyze": False },
    "gqlQuery": {
        "allowLiterals": False,
        "namedBindings": {},
        "positionalBindings": [
            {
                "cursor": "",
                "value": {
                    "arrayValue": { "values": [] },
                    "blobValue": "",
                    "booleanValue": False,
                    "doubleValue": "",
                    "entityValue": {
                        "key": {
                            "partitionId": {
                                "databaseId": "",
                                "namespaceId": "",
                                "projectId": ""
                            },
                            "path": [
                                {
                                    "id": "",
                                    "kind": "",
                                    "name": ""
                                }
                            ]
                        },
                        "properties": {}
                    },
                    "excludeFromIndexes": False,
                    "geoPointValue": {
                        "latitude": "",
                        "longitude": ""
                    },
                    "integerValue": "",
                    "keyValue": {},
                    "meaning": 0,
                    "nullValue": "",
                    "stringValue": "",
                    "timestampValue": ""
                }
            }
        ],
        "queryString": ""
    },
    "partitionId": {},
    "propertyMask": { "paths": [] },
    "query": {
        "distinctOn": [{ "name": "" }],
        "endCursor": "",
        "filter": {
            "compositeFilter": {
                "filters": [],
                "op": ""
            },
            "propertyFilter": {
                "op": "",
                "property": {},
                "value": {}
            }
        },
        "findNearest": {
            "distanceMeasure": "",
            "distanceResultProperty": "",
            "distanceThreshold": "",
            "limit": 0,
            "queryVector": {},
            "vectorProperty": {}
        },
        "kind": [{ "name": "" }],
        "limit": 0,
        "offset": 0,
        "order": [
            {
                "direction": "",
                "property": {}
            }
        ],
        "projection": [{ "property": {} }],
        "startCursor": ""
    },
    "readOptions": {
        "newTransaction": {
            "readOnly": { "readTime": "" },
            "readWrite": { "previousTransaction": "" }
        },
        "readConsistency": "",
        "readTime": "",
        "transaction": ""
    }
}
headers = {"content-type": "application/json"}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/v1/projects/:projectId:runQuery"

payload <- "{\n  \"databaseId\": \"\",\n  \"explainOptions\": {\n    \"analyze\": false\n  },\n  \"gqlQuery\": {\n    \"allowLiterals\": false,\n    \"namedBindings\": {},\n    \"positionalBindings\": [\n      {\n        \"cursor\": \"\",\n        \"value\": {\n          \"arrayValue\": {\n            \"values\": []\n          },\n          \"blobValue\": \"\",\n          \"booleanValue\": false,\n          \"doubleValue\": \"\",\n          \"entityValue\": {\n            \"key\": {\n              \"partitionId\": {\n                \"databaseId\": \"\",\n                \"namespaceId\": \"\",\n                \"projectId\": \"\"\n              },\n              \"path\": [\n                {\n                  \"id\": \"\",\n                  \"kind\": \"\",\n                  \"name\": \"\"\n                }\n              ]\n            },\n            \"properties\": {}\n          },\n          \"excludeFromIndexes\": false,\n          \"geoPointValue\": {\n            \"latitude\": \"\",\n            \"longitude\": \"\"\n          },\n          \"integerValue\": \"\",\n          \"keyValue\": {},\n          \"meaning\": 0,\n          \"nullValue\": \"\",\n          \"stringValue\": \"\",\n          \"timestampValue\": \"\"\n        }\n      }\n    ],\n    \"queryString\": \"\"\n  },\n  \"partitionId\": {},\n  \"propertyMask\": {\n    \"paths\": []\n  },\n  \"query\": {\n    \"distinctOn\": [\n      {\n        \"name\": \"\"\n      }\n    ],\n    \"endCursor\": \"\",\n    \"filter\": {\n      \"compositeFilter\": {\n        \"filters\": [],\n        \"op\": \"\"\n      },\n      \"propertyFilter\": {\n        \"op\": \"\",\n        \"property\": {},\n        \"value\": {}\n      }\n    },\n    \"findNearest\": {\n      \"distanceMeasure\": \"\",\n      \"distanceResultProperty\": \"\",\n      \"distanceThreshold\": \"\",\n      \"limit\": 0,\n      \"queryVector\": {},\n      \"vectorProperty\": {}\n    },\n    \"kind\": [\n      {\n        \"name\": \"\"\n      }\n    ],\n    \"limit\": 0,\n    \"offset\": 0,\n    \"order\": [\n      {\n        \"direction\": \"\",\n        \"property\": {}\n      }\n    ],\n    \"projection\": [\n      {\n        \"property\": {}\n      }\n    ],\n    \"startCursor\": \"\"\n  },\n  \"readOptions\": {\n    \"newTransaction\": {\n      \"readOnly\": {\n        \"readTime\": \"\"\n      },\n      \"readWrite\": {\n        \"previousTransaction\": \"\"\n      }\n    },\n    \"readConsistency\": \"\",\n    \"readTime\": \"\",\n    \"transaction\": \"\"\n  }\n}"

encode <- "json"

response <- VERB("POST", url, body = payload, content_type("application/json"), encode = encode)

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/v1/projects/:projectId:runQuery")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)
request["content-type"] = 'application/json'
request.body = "{\n  \"databaseId\": \"\",\n  \"explainOptions\": {\n    \"analyze\": false\n  },\n  \"gqlQuery\": {\n    \"allowLiterals\": false,\n    \"namedBindings\": {},\n    \"positionalBindings\": [\n      {\n        \"cursor\": \"\",\n        \"value\": {\n          \"arrayValue\": {\n            \"values\": []\n          },\n          \"blobValue\": \"\",\n          \"booleanValue\": false,\n          \"doubleValue\": \"\",\n          \"entityValue\": {\n            \"key\": {\n              \"partitionId\": {\n                \"databaseId\": \"\",\n                \"namespaceId\": \"\",\n                \"projectId\": \"\"\n              },\n              \"path\": [\n                {\n                  \"id\": \"\",\n                  \"kind\": \"\",\n                  \"name\": \"\"\n                }\n              ]\n            },\n            \"properties\": {}\n          },\n          \"excludeFromIndexes\": false,\n          \"geoPointValue\": {\n            \"latitude\": \"\",\n            \"longitude\": \"\"\n          },\n          \"integerValue\": \"\",\n          \"keyValue\": {},\n          \"meaning\": 0,\n          \"nullValue\": \"\",\n          \"stringValue\": \"\",\n          \"timestampValue\": \"\"\n        }\n      }\n    ],\n    \"queryString\": \"\"\n  },\n  \"partitionId\": {},\n  \"propertyMask\": {\n    \"paths\": []\n  },\n  \"query\": {\n    \"distinctOn\": [\n      {\n        \"name\": \"\"\n      }\n    ],\n    \"endCursor\": \"\",\n    \"filter\": {\n      \"compositeFilter\": {\n        \"filters\": [],\n        \"op\": \"\"\n      },\n      \"propertyFilter\": {\n        \"op\": \"\",\n        \"property\": {},\n        \"value\": {}\n      }\n    },\n    \"findNearest\": {\n      \"distanceMeasure\": \"\",\n      \"distanceResultProperty\": \"\",\n      \"distanceThreshold\": \"\",\n      \"limit\": 0,\n      \"queryVector\": {},\n      \"vectorProperty\": {}\n    },\n    \"kind\": [\n      {\n        \"name\": \"\"\n      }\n    ],\n    \"limit\": 0,\n    \"offset\": 0,\n    \"order\": [\n      {\n        \"direction\": \"\",\n        \"property\": {}\n      }\n    ],\n    \"projection\": [\n      {\n        \"property\": {}\n      }\n    ],\n    \"startCursor\": \"\"\n  },\n  \"readOptions\": {\n    \"newTransaction\": {\n      \"readOnly\": {\n        \"readTime\": \"\"\n      },\n      \"readWrite\": {\n        \"previousTransaction\": \"\"\n      }\n    },\n    \"readConsistency\": \"\",\n    \"readTime\": \"\",\n    \"transaction\": \"\"\n  }\n}"

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
  headers: {'Content-Type' => 'application/json'}
)

response = conn.post('/baseUrl/v1/projects/:projectId:runQuery') do |req|
  req.body = "{\n  \"databaseId\": \"\",\n  \"explainOptions\": {\n    \"analyze\": false\n  },\n  \"gqlQuery\": {\n    \"allowLiterals\": false,\n    \"namedBindings\": {},\n    \"positionalBindings\": [\n      {\n        \"cursor\": \"\",\n        \"value\": {\n          \"arrayValue\": {\n            \"values\": []\n          },\n          \"blobValue\": \"\",\n          \"booleanValue\": false,\n          \"doubleValue\": \"\",\n          \"entityValue\": {\n            \"key\": {\n              \"partitionId\": {\n                \"databaseId\": \"\",\n                \"namespaceId\": \"\",\n                \"projectId\": \"\"\n              },\n              \"path\": [\n                {\n                  \"id\": \"\",\n                  \"kind\": \"\",\n                  \"name\": \"\"\n                }\n              ]\n            },\n            \"properties\": {}\n          },\n          \"excludeFromIndexes\": false,\n          \"geoPointValue\": {\n            \"latitude\": \"\",\n            \"longitude\": \"\"\n          },\n          \"integerValue\": \"\",\n          \"keyValue\": {},\n          \"meaning\": 0,\n          \"nullValue\": \"\",\n          \"stringValue\": \"\",\n          \"timestampValue\": \"\"\n        }\n      }\n    ],\n    \"queryString\": \"\"\n  },\n  \"partitionId\": {},\n  \"propertyMask\": {\n    \"paths\": []\n  },\n  \"query\": {\n    \"distinctOn\": [\n      {\n        \"name\": \"\"\n      }\n    ],\n    \"endCursor\": \"\",\n    \"filter\": {\n      \"compositeFilter\": {\n        \"filters\": [],\n        \"op\": \"\"\n      },\n      \"propertyFilter\": {\n        \"op\": \"\",\n        \"property\": {},\n        \"value\": {}\n      }\n    },\n    \"findNearest\": {\n      \"distanceMeasure\": \"\",\n      \"distanceResultProperty\": \"\",\n      \"distanceThreshold\": \"\",\n      \"limit\": 0,\n      \"queryVector\": {},\n      \"vectorProperty\": {}\n    },\n    \"kind\": [\n      {\n        \"name\": \"\"\n      }\n    ],\n    \"limit\": 0,\n    \"offset\": 0,\n    \"order\": [\n      {\n        \"direction\": \"\",\n        \"property\": {}\n      }\n    ],\n    \"projection\": [\n      {\n        \"property\": {}\n      }\n    ],\n    \"startCursor\": \"\"\n  },\n  \"readOptions\": {\n    \"newTransaction\": {\n      \"readOnly\": {\n        \"readTime\": \"\"\n      },\n      \"readWrite\": {\n        \"previousTransaction\": \"\"\n      }\n    },\n    \"readConsistency\": \"\",\n    \"readTime\": \"\",\n    \"transaction\": \"\"\n  }\n}"
end

puts response.status
puts response.body
use serde_json::json;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/v1/projects/:projectId:runQuery";

    let payload = json!({
        "databaseId": "",
        "explainOptions": json!({"analyze": false}),
        "gqlQuery": json!({
            "allowLiterals": false,
            "namedBindings": json!({}),
            "positionalBindings": (
                json!({
                    "cursor": "",
                    "value": json!({
                        "arrayValue": json!({"values": ()}),
                        "blobValue": "",
                        "booleanValue": false,
                        "doubleValue": "",
                        "entityValue": json!({
                            "key": json!({
                                "partitionId": json!({
                                    "databaseId": "",
                                    "namespaceId": "",
                                    "projectId": ""
                                }),
                                "path": (
                                    json!({
                                        "id": "",
                                        "kind": "",
                                        "name": ""
                                    })
                                )
                            }),
                            "properties": json!({})
                        }),
                        "excludeFromIndexes": false,
                        "geoPointValue": json!({
                            "latitude": "",
                            "longitude": ""
                        }),
                        "integerValue": "",
                        "keyValue": json!({}),
                        "meaning": 0,
                        "nullValue": "",
                        "stringValue": "",
                        "timestampValue": ""
                    })
                })
            ),
            "queryString": ""
        }),
        "partitionId": json!({}),
        "propertyMask": json!({"paths": ()}),
        "query": json!({
            "distinctOn": (json!({"name": ""})),
            "endCursor": "",
            "filter": json!({
                "compositeFilter": json!({
                    "filters": (),
                    "op": ""
                }),
                "propertyFilter": json!({
                    "op": "",
                    "property": json!({}),
                    "value": json!({})
                })
            }),
            "findNearest": json!({
                "distanceMeasure": "",
                "distanceResultProperty": "",
                "distanceThreshold": "",
                "limit": 0,
                "queryVector": json!({}),
                "vectorProperty": json!({})
            }),
            "kind": (json!({"name": ""})),
            "limit": 0,
            "offset": 0,
            "order": (
                json!({
                    "direction": "",
                    "property": json!({})
                })
            ),
            "projection": (json!({"property": json!({})})),
            "startCursor": ""
        }),
        "readOptions": json!({
            "newTransaction": json!({
                "readOnly": json!({"readTime": ""}),
                "readWrite": json!({"previousTransaction": ""})
            }),
            "readConsistency": "",
            "readTime": "",
            "transaction": ""
        })
    });

    let mut headers = reqwest::header::HeaderMap::new();
    headers.insert("content-type", "application/json".parse().unwrap());

    let client = reqwest::Client::new();
    let response = client.post(url)
        .headers(headers)
        .json(&payload)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request POST \
  --url {{baseUrl}}/v1/projects/:projectId:runQuery \
  --header 'content-type: application/json' \
  --data '{
  "databaseId": "",
  "explainOptions": {
    "analyze": false
  },
  "gqlQuery": {
    "allowLiterals": false,
    "namedBindings": {},
    "positionalBindings": [
      {
        "cursor": "",
        "value": {
          "arrayValue": {
            "values": []
          },
          "blobValue": "",
          "booleanValue": false,
          "doubleValue": "",
          "entityValue": {
            "key": {
              "partitionId": {
                "databaseId": "",
                "namespaceId": "",
                "projectId": ""
              },
              "path": [
                {
                  "id": "",
                  "kind": "",
                  "name": ""
                }
              ]
            },
            "properties": {}
          },
          "excludeFromIndexes": false,
          "geoPointValue": {
            "latitude": "",
            "longitude": ""
          },
          "integerValue": "",
          "keyValue": {},
          "meaning": 0,
          "nullValue": "",
          "stringValue": "",
          "timestampValue": ""
        }
      }
    ],
    "queryString": ""
  },
  "partitionId": {},
  "propertyMask": {
    "paths": []
  },
  "query": {
    "distinctOn": [
      {
        "name": ""
      }
    ],
    "endCursor": "",
    "filter": {
      "compositeFilter": {
        "filters": [],
        "op": ""
      },
      "propertyFilter": {
        "op": "",
        "property": {},
        "value": {}
      }
    },
    "findNearest": {
      "distanceMeasure": "",
      "distanceResultProperty": "",
      "distanceThreshold": "",
      "limit": 0,
      "queryVector": {},
      "vectorProperty": {}
    },
    "kind": [
      {
        "name": ""
      }
    ],
    "limit": 0,
    "offset": 0,
    "order": [
      {
        "direction": "",
        "property": {}
      }
    ],
    "projection": [
      {
        "property": {}
      }
    ],
    "startCursor": ""
  },
  "readOptions": {
    "newTransaction": {
      "readOnly": {
        "readTime": ""
      },
      "readWrite": {
        "previousTransaction": ""
      }
    },
    "readConsistency": "",
    "readTime": "",
    "transaction": ""
  }
}'
echo '{
  "databaseId": "",
  "explainOptions": {
    "analyze": false
  },
  "gqlQuery": {
    "allowLiterals": false,
    "namedBindings": {},
    "positionalBindings": [
      {
        "cursor": "",
        "value": {
          "arrayValue": {
            "values": []
          },
          "blobValue": "",
          "booleanValue": false,
          "doubleValue": "",
          "entityValue": {
            "key": {
              "partitionId": {
                "databaseId": "",
                "namespaceId": "",
                "projectId": ""
              },
              "path": [
                {
                  "id": "",
                  "kind": "",
                  "name": ""
                }
              ]
            },
            "properties": {}
          },
          "excludeFromIndexes": false,
          "geoPointValue": {
            "latitude": "",
            "longitude": ""
          },
          "integerValue": "",
          "keyValue": {},
          "meaning": 0,
          "nullValue": "",
          "stringValue": "",
          "timestampValue": ""
        }
      }
    ],
    "queryString": ""
  },
  "partitionId": {},
  "propertyMask": {
    "paths": []
  },
  "query": {
    "distinctOn": [
      {
        "name": ""
      }
    ],
    "endCursor": "",
    "filter": {
      "compositeFilter": {
        "filters": [],
        "op": ""
      },
      "propertyFilter": {
        "op": "",
        "property": {},
        "value": {}
      }
    },
    "findNearest": {
      "distanceMeasure": "",
      "distanceResultProperty": "",
      "distanceThreshold": "",
      "limit": 0,
      "queryVector": {},
      "vectorProperty": {}
    },
    "kind": [
      {
        "name": ""
      }
    ],
    "limit": 0,
    "offset": 0,
    "order": [
      {
        "direction": "",
        "property": {}
      }
    ],
    "projection": [
      {
        "property": {}
      }
    ],
    "startCursor": ""
  },
  "readOptions": {
    "newTransaction": {
      "readOnly": {
        "readTime": ""
      },
      "readWrite": {
        "previousTransaction": ""
      }
    },
    "readConsistency": "",
    "readTime": "",
    "transaction": ""
  }
}' |  \
  http POST {{baseUrl}}/v1/projects/:projectId:runQuery \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "databaseId": "",\n  "explainOptions": {\n    "analyze": false\n  },\n  "gqlQuery": {\n    "allowLiterals": false,\n    "namedBindings": {},\n    "positionalBindings": [\n      {\n        "cursor": "",\n        "value": {\n          "arrayValue": {\n            "values": []\n          },\n          "blobValue": "",\n          "booleanValue": false,\n          "doubleValue": "",\n          "entityValue": {\n            "key": {\n              "partitionId": {\n                "databaseId": "",\n                "namespaceId": "",\n                "projectId": ""\n              },\n              "path": [\n                {\n                  "id": "",\n                  "kind": "",\n                  "name": ""\n                }\n              ]\n            },\n            "properties": {}\n          },\n          "excludeFromIndexes": false,\n          "geoPointValue": {\n            "latitude": "",\n            "longitude": ""\n          },\n          "integerValue": "",\n          "keyValue": {},\n          "meaning": 0,\n          "nullValue": "",\n          "stringValue": "",\n          "timestampValue": ""\n        }\n      }\n    ],\n    "queryString": ""\n  },\n  "partitionId": {},\n  "propertyMask": {\n    "paths": []\n  },\n  "query": {\n    "distinctOn": [\n      {\n        "name": ""\n      }\n    ],\n    "endCursor": "",\n    "filter": {\n      "compositeFilter": {\n        "filters": [],\n        "op": ""\n      },\n      "propertyFilter": {\n        "op": "",\n        "property": {},\n        "value": {}\n      }\n    },\n    "findNearest": {\n      "distanceMeasure": "",\n      "distanceResultProperty": "",\n      "distanceThreshold": "",\n      "limit": 0,\n      "queryVector": {},\n      "vectorProperty": {}\n    },\n    "kind": [\n      {\n        "name": ""\n      }\n    ],\n    "limit": 0,\n    "offset": 0,\n    "order": [\n      {\n        "direction": "",\n        "property": {}\n      }\n    ],\n    "projection": [\n      {\n        "property": {}\n      }\n    ],\n    "startCursor": ""\n  },\n  "readOptions": {\n    "newTransaction": {\n      "readOnly": {\n        "readTime": ""\n      },\n      "readWrite": {\n        "previousTransaction": ""\n      }\n    },\n    "readConsistency": "",\n    "readTime": "",\n    "transaction": ""\n  }\n}' \
  --output-document \
  - {{baseUrl}}/v1/projects/:projectId:runQuery
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "databaseId": "",
  "explainOptions": ["analyze": false],
  "gqlQuery": [
    "allowLiterals": false,
    "namedBindings": [],
    "positionalBindings": [
      [
        "cursor": "",
        "value": [
          "arrayValue": ["values": []],
          "blobValue": "",
          "booleanValue": false,
          "doubleValue": "",
          "entityValue": [
            "key": [
              "partitionId": [
                "databaseId": "",
                "namespaceId": "",
                "projectId": ""
              ],
              "path": [
                [
                  "id": "",
                  "kind": "",
                  "name": ""
                ]
              ]
            ],
            "properties": []
          ],
          "excludeFromIndexes": false,
          "geoPointValue": [
            "latitude": "",
            "longitude": ""
          ],
          "integerValue": "",
          "keyValue": [],
          "meaning": 0,
          "nullValue": "",
          "stringValue": "",
          "timestampValue": ""
        ]
      ]
    ],
    "queryString": ""
  ],
  "partitionId": [],
  "propertyMask": ["paths": []],
  "query": [
    "distinctOn": [["name": ""]],
    "endCursor": "",
    "filter": [
      "compositeFilter": [
        "filters": [],
        "op": ""
      ],
      "propertyFilter": [
        "op": "",
        "property": [],
        "value": []
      ]
    ],
    "findNearest": [
      "distanceMeasure": "",
      "distanceResultProperty": "",
      "distanceThreshold": "",
      "limit": 0,
      "queryVector": [],
      "vectorProperty": []
    ],
    "kind": [["name": ""]],
    "limit": 0,
    "offset": 0,
    "order": [
      [
        "direction": "",
        "property": []
      ]
    ],
    "projection": [["property": []]],
    "startCursor": ""
  ],
  "readOptions": [
    "newTransaction": [
      "readOnly": ["readTime": ""],
      "readWrite": ["previousTransaction": ""]
    ],
    "readConsistency": "",
    "readTime": "",
    "transaction": ""
  ]
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/v1/projects/:projectId:runQuery")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()