POST datastream.projects.locations.connectionProfiles.create
{{baseUrl}}/v1/:parent/connectionProfiles
QUERY PARAMS

parent
BODY json

{
  "bigqueryProfile": {},
  "createTime": "",
  "displayName": "",
  "forwardSshConnectivity": {
    "hostname": "",
    "password": "",
    "port": 0,
    "privateKey": "",
    "username": ""
  },
  "gcsProfile": {
    "bucket": "",
    "rootPath": ""
  },
  "labels": {},
  "mysqlProfile": {
    "hostname": "",
    "password": "",
    "port": 0,
    "sslConfig": {
      "caCertificate": "",
      "caCertificateSet": false,
      "clientCertificate": "",
      "clientCertificateSet": false,
      "clientKey": "",
      "clientKeySet": false
    },
    "username": ""
  },
  "name": "",
  "oracleProfile": {
    "connectionAttributes": {},
    "databaseService": "",
    "hostname": "",
    "password": "",
    "port": 0,
    "username": ""
  },
  "postgresqlProfile": {
    "database": "",
    "hostname": "",
    "password": "",
    "port": 0,
    "username": ""
  },
  "privateConnectivity": {
    "privateConnection": ""
  },
  "staticServiceIpConnectivity": {},
  "updateTime": ""
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/v1/:parent/connectionProfiles");

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  \"bigqueryProfile\": {},\n  \"createTime\": \"\",\n  \"displayName\": \"\",\n  \"forwardSshConnectivity\": {\n    \"hostname\": \"\",\n    \"password\": \"\",\n    \"port\": 0,\n    \"privateKey\": \"\",\n    \"username\": \"\"\n  },\n  \"gcsProfile\": {\n    \"bucket\": \"\",\n    \"rootPath\": \"\"\n  },\n  \"labels\": {},\n  \"mysqlProfile\": {\n    \"hostname\": \"\",\n    \"password\": \"\",\n    \"port\": 0,\n    \"sslConfig\": {\n      \"caCertificate\": \"\",\n      \"caCertificateSet\": false,\n      \"clientCertificate\": \"\",\n      \"clientCertificateSet\": false,\n      \"clientKey\": \"\",\n      \"clientKeySet\": false\n    },\n    \"username\": \"\"\n  },\n  \"name\": \"\",\n  \"oracleProfile\": {\n    \"connectionAttributes\": {},\n    \"databaseService\": \"\",\n    \"hostname\": \"\",\n    \"password\": \"\",\n    \"port\": 0,\n    \"username\": \"\"\n  },\n  \"postgresqlProfile\": {\n    \"database\": \"\",\n    \"hostname\": \"\",\n    \"password\": \"\",\n    \"port\": 0,\n    \"username\": \"\"\n  },\n  \"privateConnectivity\": {\n    \"privateConnection\": \"\"\n  },\n  \"staticServiceIpConnectivity\": {},\n  \"updateTime\": \"\"\n}");

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

(client/post "{{baseUrl}}/v1/:parent/connectionProfiles" {:content-type :json
                                                                          :form-params {:bigqueryProfile {}
                                                                                        :createTime ""
                                                                                        :displayName ""
                                                                                        :forwardSshConnectivity {:hostname ""
                                                                                                                 :password ""
                                                                                                                 :port 0
                                                                                                                 :privateKey ""
                                                                                                                 :username ""}
                                                                                        :gcsProfile {:bucket ""
                                                                                                     :rootPath ""}
                                                                                        :labels {}
                                                                                        :mysqlProfile {:hostname ""
                                                                                                       :password ""
                                                                                                       :port 0
                                                                                                       :sslConfig {:caCertificate ""
                                                                                                                   :caCertificateSet false
                                                                                                                   :clientCertificate ""
                                                                                                                   :clientCertificateSet false
                                                                                                                   :clientKey ""
                                                                                                                   :clientKeySet false}
                                                                                                       :username ""}
                                                                                        :name ""
                                                                                        :oracleProfile {:connectionAttributes {}
                                                                                                        :databaseService ""
                                                                                                        :hostname ""
                                                                                                        :password ""
                                                                                                        :port 0
                                                                                                        :username ""}
                                                                                        :postgresqlProfile {:database ""
                                                                                                            :hostname ""
                                                                                                            :password ""
                                                                                                            :port 0
                                                                                                            :username ""}
                                                                                        :privateConnectivity {:privateConnection ""}
                                                                                        :staticServiceIpConnectivity {}
                                                                                        :updateTime ""}})
require "http/client"

url = "{{baseUrl}}/v1/:parent/connectionProfiles"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"bigqueryProfile\": {},\n  \"createTime\": \"\",\n  \"displayName\": \"\",\n  \"forwardSshConnectivity\": {\n    \"hostname\": \"\",\n    \"password\": \"\",\n    \"port\": 0,\n    \"privateKey\": \"\",\n    \"username\": \"\"\n  },\n  \"gcsProfile\": {\n    \"bucket\": \"\",\n    \"rootPath\": \"\"\n  },\n  \"labels\": {},\n  \"mysqlProfile\": {\n    \"hostname\": \"\",\n    \"password\": \"\",\n    \"port\": 0,\n    \"sslConfig\": {\n      \"caCertificate\": \"\",\n      \"caCertificateSet\": false,\n      \"clientCertificate\": \"\",\n      \"clientCertificateSet\": false,\n      \"clientKey\": \"\",\n      \"clientKeySet\": false\n    },\n    \"username\": \"\"\n  },\n  \"name\": \"\",\n  \"oracleProfile\": {\n    \"connectionAttributes\": {},\n    \"databaseService\": \"\",\n    \"hostname\": \"\",\n    \"password\": \"\",\n    \"port\": 0,\n    \"username\": \"\"\n  },\n  \"postgresqlProfile\": {\n    \"database\": \"\",\n    \"hostname\": \"\",\n    \"password\": \"\",\n    \"port\": 0,\n    \"username\": \"\"\n  },\n  \"privateConnectivity\": {\n    \"privateConnection\": \"\"\n  },\n  \"staticServiceIpConnectivity\": {},\n  \"updateTime\": \"\"\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/:parent/connectionProfiles"),
    Content = new StringContent("{\n  \"bigqueryProfile\": {},\n  \"createTime\": \"\",\n  \"displayName\": \"\",\n  \"forwardSshConnectivity\": {\n    \"hostname\": \"\",\n    \"password\": \"\",\n    \"port\": 0,\n    \"privateKey\": \"\",\n    \"username\": \"\"\n  },\n  \"gcsProfile\": {\n    \"bucket\": \"\",\n    \"rootPath\": \"\"\n  },\n  \"labels\": {},\n  \"mysqlProfile\": {\n    \"hostname\": \"\",\n    \"password\": \"\",\n    \"port\": 0,\n    \"sslConfig\": {\n      \"caCertificate\": \"\",\n      \"caCertificateSet\": false,\n      \"clientCertificate\": \"\",\n      \"clientCertificateSet\": false,\n      \"clientKey\": \"\",\n      \"clientKeySet\": false\n    },\n    \"username\": \"\"\n  },\n  \"name\": \"\",\n  \"oracleProfile\": {\n    \"connectionAttributes\": {},\n    \"databaseService\": \"\",\n    \"hostname\": \"\",\n    \"password\": \"\",\n    \"port\": 0,\n    \"username\": \"\"\n  },\n  \"postgresqlProfile\": {\n    \"database\": \"\",\n    \"hostname\": \"\",\n    \"password\": \"\",\n    \"port\": 0,\n    \"username\": \"\"\n  },\n  \"privateConnectivity\": {\n    \"privateConnection\": \"\"\n  },\n  \"staticServiceIpConnectivity\": {},\n  \"updateTime\": \"\"\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/:parent/connectionProfiles");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"bigqueryProfile\": {},\n  \"createTime\": \"\",\n  \"displayName\": \"\",\n  \"forwardSshConnectivity\": {\n    \"hostname\": \"\",\n    \"password\": \"\",\n    \"port\": 0,\n    \"privateKey\": \"\",\n    \"username\": \"\"\n  },\n  \"gcsProfile\": {\n    \"bucket\": \"\",\n    \"rootPath\": \"\"\n  },\n  \"labels\": {},\n  \"mysqlProfile\": {\n    \"hostname\": \"\",\n    \"password\": \"\",\n    \"port\": 0,\n    \"sslConfig\": {\n      \"caCertificate\": \"\",\n      \"caCertificateSet\": false,\n      \"clientCertificate\": \"\",\n      \"clientCertificateSet\": false,\n      \"clientKey\": \"\",\n      \"clientKeySet\": false\n    },\n    \"username\": \"\"\n  },\n  \"name\": \"\",\n  \"oracleProfile\": {\n    \"connectionAttributes\": {},\n    \"databaseService\": \"\",\n    \"hostname\": \"\",\n    \"password\": \"\",\n    \"port\": 0,\n    \"username\": \"\"\n  },\n  \"postgresqlProfile\": {\n    \"database\": \"\",\n    \"hostname\": \"\",\n    \"password\": \"\",\n    \"port\": 0,\n    \"username\": \"\"\n  },\n  \"privateConnectivity\": {\n    \"privateConnection\": \"\"\n  },\n  \"staticServiceIpConnectivity\": {},\n  \"updateTime\": \"\"\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

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

func main() {

	url := "{{baseUrl}}/v1/:parent/connectionProfiles"

	payload := strings.NewReader("{\n  \"bigqueryProfile\": {},\n  \"createTime\": \"\",\n  \"displayName\": \"\",\n  \"forwardSshConnectivity\": {\n    \"hostname\": \"\",\n    \"password\": \"\",\n    \"port\": 0,\n    \"privateKey\": \"\",\n    \"username\": \"\"\n  },\n  \"gcsProfile\": {\n    \"bucket\": \"\",\n    \"rootPath\": \"\"\n  },\n  \"labels\": {},\n  \"mysqlProfile\": {\n    \"hostname\": \"\",\n    \"password\": \"\",\n    \"port\": 0,\n    \"sslConfig\": {\n      \"caCertificate\": \"\",\n      \"caCertificateSet\": false,\n      \"clientCertificate\": \"\",\n      \"clientCertificateSet\": false,\n      \"clientKey\": \"\",\n      \"clientKeySet\": false\n    },\n    \"username\": \"\"\n  },\n  \"name\": \"\",\n  \"oracleProfile\": {\n    \"connectionAttributes\": {},\n    \"databaseService\": \"\",\n    \"hostname\": \"\",\n    \"password\": \"\",\n    \"port\": 0,\n    \"username\": \"\"\n  },\n  \"postgresqlProfile\": {\n    \"database\": \"\",\n    \"hostname\": \"\",\n    \"password\": \"\",\n    \"port\": 0,\n    \"username\": \"\"\n  },\n  \"privateConnectivity\": {\n    \"privateConnection\": \"\"\n  },\n  \"staticServiceIpConnectivity\": {},\n  \"updateTime\": \"\"\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/:parent/connectionProfiles HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 993

{
  "bigqueryProfile": {},
  "createTime": "",
  "displayName": "",
  "forwardSshConnectivity": {
    "hostname": "",
    "password": "",
    "port": 0,
    "privateKey": "",
    "username": ""
  },
  "gcsProfile": {
    "bucket": "",
    "rootPath": ""
  },
  "labels": {},
  "mysqlProfile": {
    "hostname": "",
    "password": "",
    "port": 0,
    "sslConfig": {
      "caCertificate": "",
      "caCertificateSet": false,
      "clientCertificate": "",
      "clientCertificateSet": false,
      "clientKey": "",
      "clientKeySet": false
    },
    "username": ""
  },
  "name": "",
  "oracleProfile": {
    "connectionAttributes": {},
    "databaseService": "",
    "hostname": "",
    "password": "",
    "port": 0,
    "username": ""
  },
  "postgresqlProfile": {
    "database": "",
    "hostname": "",
    "password": "",
    "port": 0,
    "username": ""
  },
  "privateConnectivity": {
    "privateConnection": ""
  },
  "staticServiceIpConnectivity": {},
  "updateTime": ""
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/v1/:parent/connectionProfiles")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"bigqueryProfile\": {},\n  \"createTime\": \"\",\n  \"displayName\": \"\",\n  \"forwardSshConnectivity\": {\n    \"hostname\": \"\",\n    \"password\": \"\",\n    \"port\": 0,\n    \"privateKey\": \"\",\n    \"username\": \"\"\n  },\n  \"gcsProfile\": {\n    \"bucket\": \"\",\n    \"rootPath\": \"\"\n  },\n  \"labels\": {},\n  \"mysqlProfile\": {\n    \"hostname\": \"\",\n    \"password\": \"\",\n    \"port\": 0,\n    \"sslConfig\": {\n      \"caCertificate\": \"\",\n      \"caCertificateSet\": false,\n      \"clientCertificate\": \"\",\n      \"clientCertificateSet\": false,\n      \"clientKey\": \"\",\n      \"clientKeySet\": false\n    },\n    \"username\": \"\"\n  },\n  \"name\": \"\",\n  \"oracleProfile\": {\n    \"connectionAttributes\": {},\n    \"databaseService\": \"\",\n    \"hostname\": \"\",\n    \"password\": \"\",\n    \"port\": 0,\n    \"username\": \"\"\n  },\n  \"postgresqlProfile\": {\n    \"database\": \"\",\n    \"hostname\": \"\",\n    \"password\": \"\",\n    \"port\": 0,\n    \"username\": \"\"\n  },\n  \"privateConnectivity\": {\n    \"privateConnection\": \"\"\n  },\n  \"staticServiceIpConnectivity\": {},\n  \"updateTime\": \"\"\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/v1/:parent/connectionProfiles"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"bigqueryProfile\": {},\n  \"createTime\": \"\",\n  \"displayName\": \"\",\n  \"forwardSshConnectivity\": {\n    \"hostname\": \"\",\n    \"password\": \"\",\n    \"port\": 0,\n    \"privateKey\": \"\",\n    \"username\": \"\"\n  },\n  \"gcsProfile\": {\n    \"bucket\": \"\",\n    \"rootPath\": \"\"\n  },\n  \"labels\": {},\n  \"mysqlProfile\": {\n    \"hostname\": \"\",\n    \"password\": \"\",\n    \"port\": 0,\n    \"sslConfig\": {\n      \"caCertificate\": \"\",\n      \"caCertificateSet\": false,\n      \"clientCertificate\": \"\",\n      \"clientCertificateSet\": false,\n      \"clientKey\": \"\",\n      \"clientKeySet\": false\n    },\n    \"username\": \"\"\n  },\n  \"name\": \"\",\n  \"oracleProfile\": {\n    \"connectionAttributes\": {},\n    \"databaseService\": \"\",\n    \"hostname\": \"\",\n    \"password\": \"\",\n    \"port\": 0,\n    \"username\": \"\"\n  },\n  \"postgresqlProfile\": {\n    \"database\": \"\",\n    \"hostname\": \"\",\n    \"password\": \"\",\n    \"port\": 0,\n    \"username\": \"\"\n  },\n  \"privateConnectivity\": {\n    \"privateConnection\": \"\"\n  },\n  \"staticServiceIpConnectivity\": {},\n  \"updateTime\": \"\"\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  \"bigqueryProfile\": {},\n  \"createTime\": \"\",\n  \"displayName\": \"\",\n  \"forwardSshConnectivity\": {\n    \"hostname\": \"\",\n    \"password\": \"\",\n    \"port\": 0,\n    \"privateKey\": \"\",\n    \"username\": \"\"\n  },\n  \"gcsProfile\": {\n    \"bucket\": \"\",\n    \"rootPath\": \"\"\n  },\n  \"labels\": {},\n  \"mysqlProfile\": {\n    \"hostname\": \"\",\n    \"password\": \"\",\n    \"port\": 0,\n    \"sslConfig\": {\n      \"caCertificate\": \"\",\n      \"caCertificateSet\": false,\n      \"clientCertificate\": \"\",\n      \"clientCertificateSet\": false,\n      \"clientKey\": \"\",\n      \"clientKeySet\": false\n    },\n    \"username\": \"\"\n  },\n  \"name\": \"\",\n  \"oracleProfile\": {\n    \"connectionAttributes\": {},\n    \"databaseService\": \"\",\n    \"hostname\": \"\",\n    \"password\": \"\",\n    \"port\": 0,\n    \"username\": \"\"\n  },\n  \"postgresqlProfile\": {\n    \"database\": \"\",\n    \"hostname\": \"\",\n    \"password\": \"\",\n    \"port\": 0,\n    \"username\": \"\"\n  },\n  \"privateConnectivity\": {\n    \"privateConnection\": \"\"\n  },\n  \"staticServiceIpConnectivity\": {},\n  \"updateTime\": \"\"\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/v1/:parent/connectionProfiles")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/v1/:parent/connectionProfiles")
  .header("content-type", "application/json")
  .body("{\n  \"bigqueryProfile\": {},\n  \"createTime\": \"\",\n  \"displayName\": \"\",\n  \"forwardSshConnectivity\": {\n    \"hostname\": \"\",\n    \"password\": \"\",\n    \"port\": 0,\n    \"privateKey\": \"\",\n    \"username\": \"\"\n  },\n  \"gcsProfile\": {\n    \"bucket\": \"\",\n    \"rootPath\": \"\"\n  },\n  \"labels\": {},\n  \"mysqlProfile\": {\n    \"hostname\": \"\",\n    \"password\": \"\",\n    \"port\": 0,\n    \"sslConfig\": {\n      \"caCertificate\": \"\",\n      \"caCertificateSet\": false,\n      \"clientCertificate\": \"\",\n      \"clientCertificateSet\": false,\n      \"clientKey\": \"\",\n      \"clientKeySet\": false\n    },\n    \"username\": \"\"\n  },\n  \"name\": \"\",\n  \"oracleProfile\": {\n    \"connectionAttributes\": {},\n    \"databaseService\": \"\",\n    \"hostname\": \"\",\n    \"password\": \"\",\n    \"port\": 0,\n    \"username\": \"\"\n  },\n  \"postgresqlProfile\": {\n    \"database\": \"\",\n    \"hostname\": \"\",\n    \"password\": \"\",\n    \"port\": 0,\n    \"username\": \"\"\n  },\n  \"privateConnectivity\": {\n    \"privateConnection\": \"\"\n  },\n  \"staticServiceIpConnectivity\": {},\n  \"updateTime\": \"\"\n}")
  .asString();
const data = JSON.stringify({
  bigqueryProfile: {},
  createTime: '',
  displayName: '',
  forwardSshConnectivity: {
    hostname: '',
    password: '',
    port: 0,
    privateKey: '',
    username: ''
  },
  gcsProfile: {
    bucket: '',
    rootPath: ''
  },
  labels: {},
  mysqlProfile: {
    hostname: '',
    password: '',
    port: 0,
    sslConfig: {
      caCertificate: '',
      caCertificateSet: false,
      clientCertificate: '',
      clientCertificateSet: false,
      clientKey: '',
      clientKeySet: false
    },
    username: ''
  },
  name: '',
  oracleProfile: {
    connectionAttributes: {},
    databaseService: '',
    hostname: '',
    password: '',
    port: 0,
    username: ''
  },
  postgresqlProfile: {
    database: '',
    hostname: '',
    password: '',
    port: 0,
    username: ''
  },
  privateConnectivity: {
    privateConnection: ''
  },
  staticServiceIpConnectivity: {},
  updateTime: ''
});

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/:parent/connectionProfiles');
xhr.setRequestHeader('content-type', 'application/json');

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

const options = {
  method: 'POST',
  url: '{{baseUrl}}/v1/:parent/connectionProfiles',
  headers: {'content-type': 'application/json'},
  data: {
    bigqueryProfile: {},
    createTime: '',
    displayName: '',
    forwardSshConnectivity: {hostname: '', password: '', port: 0, privateKey: '', username: ''},
    gcsProfile: {bucket: '', rootPath: ''},
    labels: {},
    mysqlProfile: {
      hostname: '',
      password: '',
      port: 0,
      sslConfig: {
        caCertificate: '',
        caCertificateSet: false,
        clientCertificate: '',
        clientCertificateSet: false,
        clientKey: '',
        clientKeySet: false
      },
      username: ''
    },
    name: '',
    oracleProfile: {
      connectionAttributes: {},
      databaseService: '',
      hostname: '',
      password: '',
      port: 0,
      username: ''
    },
    postgresqlProfile: {database: '', hostname: '', password: '', port: 0, username: ''},
    privateConnectivity: {privateConnection: ''},
    staticServiceIpConnectivity: {},
    updateTime: ''
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/v1/:parent/connectionProfiles';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"bigqueryProfile":{},"createTime":"","displayName":"","forwardSshConnectivity":{"hostname":"","password":"","port":0,"privateKey":"","username":""},"gcsProfile":{"bucket":"","rootPath":""},"labels":{},"mysqlProfile":{"hostname":"","password":"","port":0,"sslConfig":{"caCertificate":"","caCertificateSet":false,"clientCertificate":"","clientCertificateSet":false,"clientKey":"","clientKeySet":false},"username":""},"name":"","oracleProfile":{"connectionAttributes":{},"databaseService":"","hostname":"","password":"","port":0,"username":""},"postgresqlProfile":{"database":"","hostname":"","password":"","port":0,"username":""},"privateConnectivity":{"privateConnection":""},"staticServiceIpConnectivity":{},"updateTime":""}'
};

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/:parent/connectionProfiles',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "bigqueryProfile": {},\n  "createTime": "",\n  "displayName": "",\n  "forwardSshConnectivity": {\n    "hostname": "",\n    "password": "",\n    "port": 0,\n    "privateKey": "",\n    "username": ""\n  },\n  "gcsProfile": {\n    "bucket": "",\n    "rootPath": ""\n  },\n  "labels": {},\n  "mysqlProfile": {\n    "hostname": "",\n    "password": "",\n    "port": 0,\n    "sslConfig": {\n      "caCertificate": "",\n      "caCertificateSet": false,\n      "clientCertificate": "",\n      "clientCertificateSet": false,\n      "clientKey": "",\n      "clientKeySet": false\n    },\n    "username": ""\n  },\n  "name": "",\n  "oracleProfile": {\n    "connectionAttributes": {},\n    "databaseService": "",\n    "hostname": "",\n    "password": "",\n    "port": 0,\n    "username": ""\n  },\n  "postgresqlProfile": {\n    "database": "",\n    "hostname": "",\n    "password": "",\n    "port": 0,\n    "username": ""\n  },\n  "privateConnectivity": {\n    "privateConnection": ""\n  },\n  "staticServiceIpConnectivity": {},\n  "updateTime": ""\n}'
};

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

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"bigqueryProfile\": {},\n  \"createTime\": \"\",\n  \"displayName\": \"\",\n  \"forwardSshConnectivity\": {\n    \"hostname\": \"\",\n    \"password\": \"\",\n    \"port\": 0,\n    \"privateKey\": \"\",\n    \"username\": \"\"\n  },\n  \"gcsProfile\": {\n    \"bucket\": \"\",\n    \"rootPath\": \"\"\n  },\n  \"labels\": {},\n  \"mysqlProfile\": {\n    \"hostname\": \"\",\n    \"password\": \"\",\n    \"port\": 0,\n    \"sslConfig\": {\n      \"caCertificate\": \"\",\n      \"caCertificateSet\": false,\n      \"clientCertificate\": \"\",\n      \"clientCertificateSet\": false,\n      \"clientKey\": \"\",\n      \"clientKeySet\": false\n    },\n    \"username\": \"\"\n  },\n  \"name\": \"\",\n  \"oracleProfile\": {\n    \"connectionAttributes\": {},\n    \"databaseService\": \"\",\n    \"hostname\": \"\",\n    \"password\": \"\",\n    \"port\": 0,\n    \"username\": \"\"\n  },\n  \"postgresqlProfile\": {\n    \"database\": \"\",\n    \"hostname\": \"\",\n    \"password\": \"\",\n    \"port\": 0,\n    \"username\": \"\"\n  },\n  \"privateConnectivity\": {\n    \"privateConnection\": \"\"\n  },\n  \"staticServiceIpConnectivity\": {},\n  \"updateTime\": \"\"\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/v1/:parent/connectionProfiles")
  .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/:parent/connectionProfiles',
  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({
  bigqueryProfile: {},
  createTime: '',
  displayName: '',
  forwardSshConnectivity: {hostname: '', password: '', port: 0, privateKey: '', username: ''},
  gcsProfile: {bucket: '', rootPath: ''},
  labels: {},
  mysqlProfile: {
    hostname: '',
    password: '',
    port: 0,
    sslConfig: {
      caCertificate: '',
      caCertificateSet: false,
      clientCertificate: '',
      clientCertificateSet: false,
      clientKey: '',
      clientKeySet: false
    },
    username: ''
  },
  name: '',
  oracleProfile: {
    connectionAttributes: {},
    databaseService: '',
    hostname: '',
    password: '',
    port: 0,
    username: ''
  },
  postgresqlProfile: {database: '', hostname: '', password: '', port: 0, username: ''},
  privateConnectivity: {privateConnection: ''},
  staticServiceIpConnectivity: {},
  updateTime: ''
}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/v1/:parent/connectionProfiles',
  headers: {'content-type': 'application/json'},
  body: {
    bigqueryProfile: {},
    createTime: '',
    displayName: '',
    forwardSshConnectivity: {hostname: '', password: '', port: 0, privateKey: '', username: ''},
    gcsProfile: {bucket: '', rootPath: ''},
    labels: {},
    mysqlProfile: {
      hostname: '',
      password: '',
      port: 0,
      sslConfig: {
        caCertificate: '',
        caCertificateSet: false,
        clientCertificate: '',
        clientCertificateSet: false,
        clientKey: '',
        clientKeySet: false
      },
      username: ''
    },
    name: '',
    oracleProfile: {
      connectionAttributes: {},
      databaseService: '',
      hostname: '',
      password: '',
      port: 0,
      username: ''
    },
    postgresqlProfile: {database: '', hostname: '', password: '', port: 0, username: ''},
    privateConnectivity: {privateConnection: ''},
    staticServiceIpConnectivity: {},
    updateTime: ''
  },
  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/:parent/connectionProfiles');

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

req.type('json');
req.send({
  bigqueryProfile: {},
  createTime: '',
  displayName: '',
  forwardSshConnectivity: {
    hostname: '',
    password: '',
    port: 0,
    privateKey: '',
    username: ''
  },
  gcsProfile: {
    bucket: '',
    rootPath: ''
  },
  labels: {},
  mysqlProfile: {
    hostname: '',
    password: '',
    port: 0,
    sslConfig: {
      caCertificate: '',
      caCertificateSet: false,
      clientCertificate: '',
      clientCertificateSet: false,
      clientKey: '',
      clientKeySet: false
    },
    username: ''
  },
  name: '',
  oracleProfile: {
    connectionAttributes: {},
    databaseService: '',
    hostname: '',
    password: '',
    port: 0,
    username: ''
  },
  postgresqlProfile: {
    database: '',
    hostname: '',
    password: '',
    port: 0,
    username: ''
  },
  privateConnectivity: {
    privateConnection: ''
  },
  staticServiceIpConnectivity: {},
  updateTime: ''
});

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/:parent/connectionProfiles',
  headers: {'content-type': 'application/json'},
  data: {
    bigqueryProfile: {},
    createTime: '',
    displayName: '',
    forwardSshConnectivity: {hostname: '', password: '', port: 0, privateKey: '', username: ''},
    gcsProfile: {bucket: '', rootPath: ''},
    labels: {},
    mysqlProfile: {
      hostname: '',
      password: '',
      port: 0,
      sslConfig: {
        caCertificate: '',
        caCertificateSet: false,
        clientCertificate: '',
        clientCertificateSet: false,
        clientKey: '',
        clientKeySet: false
      },
      username: ''
    },
    name: '',
    oracleProfile: {
      connectionAttributes: {},
      databaseService: '',
      hostname: '',
      password: '',
      port: 0,
      username: ''
    },
    postgresqlProfile: {database: '', hostname: '', password: '', port: 0, username: ''},
    privateConnectivity: {privateConnection: ''},
    staticServiceIpConnectivity: {},
    updateTime: ''
  }
};

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

const url = '{{baseUrl}}/v1/:parent/connectionProfiles';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"bigqueryProfile":{},"createTime":"","displayName":"","forwardSshConnectivity":{"hostname":"","password":"","port":0,"privateKey":"","username":""},"gcsProfile":{"bucket":"","rootPath":""},"labels":{},"mysqlProfile":{"hostname":"","password":"","port":0,"sslConfig":{"caCertificate":"","caCertificateSet":false,"clientCertificate":"","clientCertificateSet":false,"clientKey":"","clientKeySet":false},"username":""},"name":"","oracleProfile":{"connectionAttributes":{},"databaseService":"","hostname":"","password":"","port":0,"username":""},"postgresqlProfile":{"database":"","hostname":"","password":"","port":0,"username":""},"privateConnectivity":{"privateConnection":""},"staticServiceIpConnectivity":{},"updateTime":""}'
};

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 = @{ @"bigqueryProfile": @{  },
                              @"createTime": @"",
                              @"displayName": @"",
                              @"forwardSshConnectivity": @{ @"hostname": @"", @"password": @"", @"port": @0, @"privateKey": @"", @"username": @"" },
                              @"gcsProfile": @{ @"bucket": @"", @"rootPath": @"" },
                              @"labels": @{  },
                              @"mysqlProfile": @{ @"hostname": @"", @"password": @"", @"port": @0, @"sslConfig": @{ @"caCertificate": @"", @"caCertificateSet": @NO, @"clientCertificate": @"", @"clientCertificateSet": @NO, @"clientKey": @"", @"clientKeySet": @NO }, @"username": @"" },
                              @"name": @"",
                              @"oracleProfile": @{ @"connectionAttributes": @{  }, @"databaseService": @"", @"hostname": @"", @"password": @"", @"port": @0, @"username": @"" },
                              @"postgresqlProfile": @{ @"database": @"", @"hostname": @"", @"password": @"", @"port": @0, @"username": @"" },
                              @"privateConnectivity": @{ @"privateConnection": @"" },
                              @"staticServiceIpConnectivity": @{  },
                              @"updateTime": @"" };

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

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/v1/:parent/connectionProfiles"]
                                                       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/:parent/connectionProfiles" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"bigqueryProfile\": {},\n  \"createTime\": \"\",\n  \"displayName\": \"\",\n  \"forwardSshConnectivity\": {\n    \"hostname\": \"\",\n    \"password\": \"\",\n    \"port\": 0,\n    \"privateKey\": \"\",\n    \"username\": \"\"\n  },\n  \"gcsProfile\": {\n    \"bucket\": \"\",\n    \"rootPath\": \"\"\n  },\n  \"labels\": {},\n  \"mysqlProfile\": {\n    \"hostname\": \"\",\n    \"password\": \"\",\n    \"port\": 0,\n    \"sslConfig\": {\n      \"caCertificate\": \"\",\n      \"caCertificateSet\": false,\n      \"clientCertificate\": \"\",\n      \"clientCertificateSet\": false,\n      \"clientKey\": \"\",\n      \"clientKeySet\": false\n    },\n    \"username\": \"\"\n  },\n  \"name\": \"\",\n  \"oracleProfile\": {\n    \"connectionAttributes\": {},\n    \"databaseService\": \"\",\n    \"hostname\": \"\",\n    \"password\": \"\",\n    \"port\": 0,\n    \"username\": \"\"\n  },\n  \"postgresqlProfile\": {\n    \"database\": \"\",\n    \"hostname\": \"\",\n    \"password\": \"\",\n    \"port\": 0,\n    \"username\": \"\"\n  },\n  \"privateConnectivity\": {\n    \"privateConnection\": \"\"\n  },\n  \"staticServiceIpConnectivity\": {},\n  \"updateTime\": \"\"\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/v1/:parent/connectionProfiles",
  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([
    'bigqueryProfile' => [
        
    ],
    'createTime' => '',
    'displayName' => '',
    'forwardSshConnectivity' => [
        'hostname' => '',
        'password' => '',
        'port' => 0,
        'privateKey' => '',
        'username' => ''
    ],
    'gcsProfile' => [
        'bucket' => '',
        'rootPath' => ''
    ],
    'labels' => [
        
    ],
    'mysqlProfile' => [
        'hostname' => '',
        'password' => '',
        'port' => 0,
        'sslConfig' => [
                'caCertificate' => '',
                'caCertificateSet' => null,
                'clientCertificate' => '',
                'clientCertificateSet' => null,
                'clientKey' => '',
                'clientKeySet' => null
        ],
        'username' => ''
    ],
    'name' => '',
    'oracleProfile' => [
        'connectionAttributes' => [
                
        ],
        'databaseService' => '',
        'hostname' => '',
        'password' => '',
        'port' => 0,
        'username' => ''
    ],
    'postgresqlProfile' => [
        'database' => '',
        'hostname' => '',
        'password' => '',
        'port' => 0,
        'username' => ''
    ],
    'privateConnectivity' => [
        'privateConnection' => ''
    ],
    'staticServiceIpConnectivity' => [
        
    ],
    'updateTime' => ''
  ]),
  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/:parent/connectionProfiles', [
  'body' => '{
  "bigqueryProfile": {},
  "createTime": "",
  "displayName": "",
  "forwardSshConnectivity": {
    "hostname": "",
    "password": "",
    "port": 0,
    "privateKey": "",
    "username": ""
  },
  "gcsProfile": {
    "bucket": "",
    "rootPath": ""
  },
  "labels": {},
  "mysqlProfile": {
    "hostname": "",
    "password": "",
    "port": 0,
    "sslConfig": {
      "caCertificate": "",
      "caCertificateSet": false,
      "clientCertificate": "",
      "clientCertificateSet": false,
      "clientKey": "",
      "clientKeySet": false
    },
    "username": ""
  },
  "name": "",
  "oracleProfile": {
    "connectionAttributes": {},
    "databaseService": "",
    "hostname": "",
    "password": "",
    "port": 0,
    "username": ""
  },
  "postgresqlProfile": {
    "database": "",
    "hostname": "",
    "password": "",
    "port": 0,
    "username": ""
  },
  "privateConnectivity": {
    "privateConnection": ""
  },
  "staticServiceIpConnectivity": {},
  "updateTime": ""
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

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

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

$request->setContentType('application/json');
$request->setBody(json_encode([
  'bigqueryProfile' => [
    
  ],
  'createTime' => '',
  'displayName' => '',
  'forwardSshConnectivity' => [
    'hostname' => '',
    'password' => '',
    'port' => 0,
    'privateKey' => '',
    'username' => ''
  ],
  'gcsProfile' => [
    'bucket' => '',
    'rootPath' => ''
  ],
  'labels' => [
    
  ],
  'mysqlProfile' => [
    'hostname' => '',
    'password' => '',
    'port' => 0,
    'sslConfig' => [
        'caCertificate' => '',
        'caCertificateSet' => null,
        'clientCertificate' => '',
        'clientCertificateSet' => null,
        'clientKey' => '',
        'clientKeySet' => null
    ],
    'username' => ''
  ],
  'name' => '',
  'oracleProfile' => [
    'connectionAttributes' => [
        
    ],
    'databaseService' => '',
    'hostname' => '',
    'password' => '',
    'port' => 0,
    'username' => ''
  ],
  'postgresqlProfile' => [
    'database' => '',
    'hostname' => '',
    'password' => '',
    'port' => 0,
    'username' => ''
  ],
  'privateConnectivity' => [
    'privateConnection' => ''
  ],
  'staticServiceIpConnectivity' => [
    
  ],
  'updateTime' => ''
]));

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'bigqueryProfile' => [
    
  ],
  'createTime' => '',
  'displayName' => '',
  'forwardSshConnectivity' => [
    'hostname' => '',
    'password' => '',
    'port' => 0,
    'privateKey' => '',
    'username' => ''
  ],
  'gcsProfile' => [
    'bucket' => '',
    'rootPath' => ''
  ],
  'labels' => [
    
  ],
  'mysqlProfile' => [
    'hostname' => '',
    'password' => '',
    'port' => 0,
    'sslConfig' => [
        'caCertificate' => '',
        'caCertificateSet' => null,
        'clientCertificate' => '',
        'clientCertificateSet' => null,
        'clientKey' => '',
        'clientKeySet' => null
    ],
    'username' => ''
  ],
  'name' => '',
  'oracleProfile' => [
    'connectionAttributes' => [
        
    ],
    'databaseService' => '',
    'hostname' => '',
    'password' => '',
    'port' => 0,
    'username' => ''
  ],
  'postgresqlProfile' => [
    'database' => '',
    'hostname' => '',
    'password' => '',
    'port' => 0,
    'username' => ''
  ],
  'privateConnectivity' => [
    'privateConnection' => ''
  ],
  'staticServiceIpConnectivity' => [
    
  ],
  'updateTime' => ''
]));
$request->setRequestUrl('{{baseUrl}}/v1/:parent/connectionProfiles');
$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/:parent/connectionProfiles' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "bigqueryProfile": {},
  "createTime": "",
  "displayName": "",
  "forwardSshConnectivity": {
    "hostname": "",
    "password": "",
    "port": 0,
    "privateKey": "",
    "username": ""
  },
  "gcsProfile": {
    "bucket": "",
    "rootPath": ""
  },
  "labels": {},
  "mysqlProfile": {
    "hostname": "",
    "password": "",
    "port": 0,
    "sslConfig": {
      "caCertificate": "",
      "caCertificateSet": false,
      "clientCertificate": "",
      "clientCertificateSet": false,
      "clientKey": "",
      "clientKeySet": false
    },
    "username": ""
  },
  "name": "",
  "oracleProfile": {
    "connectionAttributes": {},
    "databaseService": "",
    "hostname": "",
    "password": "",
    "port": 0,
    "username": ""
  },
  "postgresqlProfile": {
    "database": "",
    "hostname": "",
    "password": "",
    "port": 0,
    "username": ""
  },
  "privateConnectivity": {
    "privateConnection": ""
  },
  "staticServiceIpConnectivity": {},
  "updateTime": ""
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/v1/:parent/connectionProfiles' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "bigqueryProfile": {},
  "createTime": "",
  "displayName": "",
  "forwardSshConnectivity": {
    "hostname": "",
    "password": "",
    "port": 0,
    "privateKey": "",
    "username": ""
  },
  "gcsProfile": {
    "bucket": "",
    "rootPath": ""
  },
  "labels": {},
  "mysqlProfile": {
    "hostname": "",
    "password": "",
    "port": 0,
    "sslConfig": {
      "caCertificate": "",
      "caCertificateSet": false,
      "clientCertificate": "",
      "clientCertificateSet": false,
      "clientKey": "",
      "clientKeySet": false
    },
    "username": ""
  },
  "name": "",
  "oracleProfile": {
    "connectionAttributes": {},
    "databaseService": "",
    "hostname": "",
    "password": "",
    "port": 0,
    "username": ""
  },
  "postgresqlProfile": {
    "database": "",
    "hostname": "",
    "password": "",
    "port": 0,
    "username": ""
  },
  "privateConnectivity": {
    "privateConnection": ""
  },
  "staticServiceIpConnectivity": {},
  "updateTime": ""
}'
import http.client

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

payload = "{\n  \"bigqueryProfile\": {},\n  \"createTime\": \"\",\n  \"displayName\": \"\",\n  \"forwardSshConnectivity\": {\n    \"hostname\": \"\",\n    \"password\": \"\",\n    \"port\": 0,\n    \"privateKey\": \"\",\n    \"username\": \"\"\n  },\n  \"gcsProfile\": {\n    \"bucket\": \"\",\n    \"rootPath\": \"\"\n  },\n  \"labels\": {},\n  \"mysqlProfile\": {\n    \"hostname\": \"\",\n    \"password\": \"\",\n    \"port\": 0,\n    \"sslConfig\": {\n      \"caCertificate\": \"\",\n      \"caCertificateSet\": false,\n      \"clientCertificate\": \"\",\n      \"clientCertificateSet\": false,\n      \"clientKey\": \"\",\n      \"clientKeySet\": false\n    },\n    \"username\": \"\"\n  },\n  \"name\": \"\",\n  \"oracleProfile\": {\n    \"connectionAttributes\": {},\n    \"databaseService\": \"\",\n    \"hostname\": \"\",\n    \"password\": \"\",\n    \"port\": 0,\n    \"username\": \"\"\n  },\n  \"postgresqlProfile\": {\n    \"database\": \"\",\n    \"hostname\": \"\",\n    \"password\": \"\",\n    \"port\": 0,\n    \"username\": \"\"\n  },\n  \"privateConnectivity\": {\n    \"privateConnection\": \"\"\n  },\n  \"staticServiceIpConnectivity\": {},\n  \"updateTime\": \"\"\n}"

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

conn.request("POST", "/baseUrl/v1/:parent/connectionProfiles", payload, headers)

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

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

url = "{{baseUrl}}/v1/:parent/connectionProfiles"

payload = {
    "bigqueryProfile": {},
    "createTime": "",
    "displayName": "",
    "forwardSshConnectivity": {
        "hostname": "",
        "password": "",
        "port": 0,
        "privateKey": "",
        "username": ""
    },
    "gcsProfile": {
        "bucket": "",
        "rootPath": ""
    },
    "labels": {},
    "mysqlProfile": {
        "hostname": "",
        "password": "",
        "port": 0,
        "sslConfig": {
            "caCertificate": "",
            "caCertificateSet": False,
            "clientCertificate": "",
            "clientCertificateSet": False,
            "clientKey": "",
            "clientKeySet": False
        },
        "username": ""
    },
    "name": "",
    "oracleProfile": {
        "connectionAttributes": {},
        "databaseService": "",
        "hostname": "",
        "password": "",
        "port": 0,
        "username": ""
    },
    "postgresqlProfile": {
        "database": "",
        "hostname": "",
        "password": "",
        "port": 0,
        "username": ""
    },
    "privateConnectivity": { "privateConnection": "" },
    "staticServiceIpConnectivity": {},
    "updateTime": ""
}
headers = {"content-type": "application/json"}

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

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

url <- "{{baseUrl}}/v1/:parent/connectionProfiles"

payload <- "{\n  \"bigqueryProfile\": {},\n  \"createTime\": \"\",\n  \"displayName\": \"\",\n  \"forwardSshConnectivity\": {\n    \"hostname\": \"\",\n    \"password\": \"\",\n    \"port\": 0,\n    \"privateKey\": \"\",\n    \"username\": \"\"\n  },\n  \"gcsProfile\": {\n    \"bucket\": \"\",\n    \"rootPath\": \"\"\n  },\n  \"labels\": {},\n  \"mysqlProfile\": {\n    \"hostname\": \"\",\n    \"password\": \"\",\n    \"port\": 0,\n    \"sslConfig\": {\n      \"caCertificate\": \"\",\n      \"caCertificateSet\": false,\n      \"clientCertificate\": \"\",\n      \"clientCertificateSet\": false,\n      \"clientKey\": \"\",\n      \"clientKeySet\": false\n    },\n    \"username\": \"\"\n  },\n  \"name\": \"\",\n  \"oracleProfile\": {\n    \"connectionAttributes\": {},\n    \"databaseService\": \"\",\n    \"hostname\": \"\",\n    \"password\": \"\",\n    \"port\": 0,\n    \"username\": \"\"\n  },\n  \"postgresqlProfile\": {\n    \"database\": \"\",\n    \"hostname\": \"\",\n    \"password\": \"\",\n    \"port\": 0,\n    \"username\": \"\"\n  },\n  \"privateConnectivity\": {\n    \"privateConnection\": \"\"\n  },\n  \"staticServiceIpConnectivity\": {},\n  \"updateTime\": \"\"\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/:parent/connectionProfiles")

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  \"bigqueryProfile\": {},\n  \"createTime\": \"\",\n  \"displayName\": \"\",\n  \"forwardSshConnectivity\": {\n    \"hostname\": \"\",\n    \"password\": \"\",\n    \"port\": 0,\n    \"privateKey\": \"\",\n    \"username\": \"\"\n  },\n  \"gcsProfile\": {\n    \"bucket\": \"\",\n    \"rootPath\": \"\"\n  },\n  \"labels\": {},\n  \"mysqlProfile\": {\n    \"hostname\": \"\",\n    \"password\": \"\",\n    \"port\": 0,\n    \"sslConfig\": {\n      \"caCertificate\": \"\",\n      \"caCertificateSet\": false,\n      \"clientCertificate\": \"\",\n      \"clientCertificateSet\": false,\n      \"clientKey\": \"\",\n      \"clientKeySet\": false\n    },\n    \"username\": \"\"\n  },\n  \"name\": \"\",\n  \"oracleProfile\": {\n    \"connectionAttributes\": {},\n    \"databaseService\": \"\",\n    \"hostname\": \"\",\n    \"password\": \"\",\n    \"port\": 0,\n    \"username\": \"\"\n  },\n  \"postgresqlProfile\": {\n    \"database\": \"\",\n    \"hostname\": \"\",\n    \"password\": \"\",\n    \"port\": 0,\n    \"username\": \"\"\n  },\n  \"privateConnectivity\": {\n    \"privateConnection\": \"\"\n  },\n  \"staticServiceIpConnectivity\": {},\n  \"updateTime\": \"\"\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/:parent/connectionProfiles') do |req|
  req.body = "{\n  \"bigqueryProfile\": {},\n  \"createTime\": \"\",\n  \"displayName\": \"\",\n  \"forwardSshConnectivity\": {\n    \"hostname\": \"\",\n    \"password\": \"\",\n    \"port\": 0,\n    \"privateKey\": \"\",\n    \"username\": \"\"\n  },\n  \"gcsProfile\": {\n    \"bucket\": \"\",\n    \"rootPath\": \"\"\n  },\n  \"labels\": {},\n  \"mysqlProfile\": {\n    \"hostname\": \"\",\n    \"password\": \"\",\n    \"port\": 0,\n    \"sslConfig\": {\n      \"caCertificate\": \"\",\n      \"caCertificateSet\": false,\n      \"clientCertificate\": \"\",\n      \"clientCertificateSet\": false,\n      \"clientKey\": \"\",\n      \"clientKeySet\": false\n    },\n    \"username\": \"\"\n  },\n  \"name\": \"\",\n  \"oracleProfile\": {\n    \"connectionAttributes\": {},\n    \"databaseService\": \"\",\n    \"hostname\": \"\",\n    \"password\": \"\",\n    \"port\": 0,\n    \"username\": \"\"\n  },\n  \"postgresqlProfile\": {\n    \"database\": \"\",\n    \"hostname\": \"\",\n    \"password\": \"\",\n    \"port\": 0,\n    \"username\": \"\"\n  },\n  \"privateConnectivity\": {\n    \"privateConnection\": \"\"\n  },\n  \"staticServiceIpConnectivity\": {},\n  \"updateTime\": \"\"\n}"
end

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

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

    let payload = json!({
        "bigqueryProfile": json!({}),
        "createTime": "",
        "displayName": "",
        "forwardSshConnectivity": json!({
            "hostname": "",
            "password": "",
            "port": 0,
            "privateKey": "",
            "username": ""
        }),
        "gcsProfile": json!({
            "bucket": "",
            "rootPath": ""
        }),
        "labels": json!({}),
        "mysqlProfile": json!({
            "hostname": "",
            "password": "",
            "port": 0,
            "sslConfig": json!({
                "caCertificate": "",
                "caCertificateSet": false,
                "clientCertificate": "",
                "clientCertificateSet": false,
                "clientKey": "",
                "clientKeySet": false
            }),
            "username": ""
        }),
        "name": "",
        "oracleProfile": json!({
            "connectionAttributes": json!({}),
            "databaseService": "",
            "hostname": "",
            "password": "",
            "port": 0,
            "username": ""
        }),
        "postgresqlProfile": json!({
            "database": "",
            "hostname": "",
            "password": "",
            "port": 0,
            "username": ""
        }),
        "privateConnectivity": json!({"privateConnection": ""}),
        "staticServiceIpConnectivity": json!({}),
        "updateTime": ""
    });

    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/:parent/connectionProfiles \
  --header 'content-type: application/json' \
  --data '{
  "bigqueryProfile": {},
  "createTime": "",
  "displayName": "",
  "forwardSshConnectivity": {
    "hostname": "",
    "password": "",
    "port": 0,
    "privateKey": "",
    "username": ""
  },
  "gcsProfile": {
    "bucket": "",
    "rootPath": ""
  },
  "labels": {},
  "mysqlProfile": {
    "hostname": "",
    "password": "",
    "port": 0,
    "sslConfig": {
      "caCertificate": "",
      "caCertificateSet": false,
      "clientCertificate": "",
      "clientCertificateSet": false,
      "clientKey": "",
      "clientKeySet": false
    },
    "username": ""
  },
  "name": "",
  "oracleProfile": {
    "connectionAttributes": {},
    "databaseService": "",
    "hostname": "",
    "password": "",
    "port": 0,
    "username": ""
  },
  "postgresqlProfile": {
    "database": "",
    "hostname": "",
    "password": "",
    "port": 0,
    "username": ""
  },
  "privateConnectivity": {
    "privateConnection": ""
  },
  "staticServiceIpConnectivity": {},
  "updateTime": ""
}'
echo '{
  "bigqueryProfile": {},
  "createTime": "",
  "displayName": "",
  "forwardSshConnectivity": {
    "hostname": "",
    "password": "",
    "port": 0,
    "privateKey": "",
    "username": ""
  },
  "gcsProfile": {
    "bucket": "",
    "rootPath": ""
  },
  "labels": {},
  "mysqlProfile": {
    "hostname": "",
    "password": "",
    "port": 0,
    "sslConfig": {
      "caCertificate": "",
      "caCertificateSet": false,
      "clientCertificate": "",
      "clientCertificateSet": false,
      "clientKey": "",
      "clientKeySet": false
    },
    "username": ""
  },
  "name": "",
  "oracleProfile": {
    "connectionAttributes": {},
    "databaseService": "",
    "hostname": "",
    "password": "",
    "port": 0,
    "username": ""
  },
  "postgresqlProfile": {
    "database": "",
    "hostname": "",
    "password": "",
    "port": 0,
    "username": ""
  },
  "privateConnectivity": {
    "privateConnection": ""
  },
  "staticServiceIpConnectivity": {},
  "updateTime": ""
}' |  \
  http POST {{baseUrl}}/v1/:parent/connectionProfiles \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "bigqueryProfile": {},\n  "createTime": "",\n  "displayName": "",\n  "forwardSshConnectivity": {\n    "hostname": "",\n    "password": "",\n    "port": 0,\n    "privateKey": "",\n    "username": ""\n  },\n  "gcsProfile": {\n    "bucket": "",\n    "rootPath": ""\n  },\n  "labels": {},\n  "mysqlProfile": {\n    "hostname": "",\n    "password": "",\n    "port": 0,\n    "sslConfig": {\n      "caCertificate": "",\n      "caCertificateSet": false,\n      "clientCertificate": "",\n      "clientCertificateSet": false,\n      "clientKey": "",\n      "clientKeySet": false\n    },\n    "username": ""\n  },\n  "name": "",\n  "oracleProfile": {\n    "connectionAttributes": {},\n    "databaseService": "",\n    "hostname": "",\n    "password": "",\n    "port": 0,\n    "username": ""\n  },\n  "postgresqlProfile": {\n    "database": "",\n    "hostname": "",\n    "password": "",\n    "port": 0,\n    "username": ""\n  },\n  "privateConnectivity": {\n    "privateConnection": ""\n  },\n  "staticServiceIpConnectivity": {},\n  "updateTime": ""\n}' \
  --output-document \
  - {{baseUrl}}/v1/:parent/connectionProfiles
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "bigqueryProfile": [],
  "createTime": "",
  "displayName": "",
  "forwardSshConnectivity": [
    "hostname": "",
    "password": "",
    "port": 0,
    "privateKey": "",
    "username": ""
  ],
  "gcsProfile": [
    "bucket": "",
    "rootPath": ""
  ],
  "labels": [],
  "mysqlProfile": [
    "hostname": "",
    "password": "",
    "port": 0,
    "sslConfig": [
      "caCertificate": "",
      "caCertificateSet": false,
      "clientCertificate": "",
      "clientCertificateSet": false,
      "clientKey": "",
      "clientKeySet": false
    ],
    "username": ""
  ],
  "name": "",
  "oracleProfile": [
    "connectionAttributes": [],
    "databaseService": "",
    "hostname": "",
    "password": "",
    "port": 0,
    "username": ""
  ],
  "postgresqlProfile": [
    "database": "",
    "hostname": "",
    "password": "",
    "port": 0,
    "username": ""
  ],
  "privateConnectivity": ["privateConnection": ""],
  "staticServiceIpConnectivity": [],
  "updateTime": ""
] as [String : Any]

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

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/v1/:parent/connectionProfiles")! 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 datastream.projects.locations.connectionProfiles.discover
{{baseUrl}}/v1/:parent/connectionProfiles:discover
QUERY PARAMS

parent
BODY json

{
  "connectionProfile": {
    "bigqueryProfile": {},
    "createTime": "",
    "displayName": "",
    "forwardSshConnectivity": {
      "hostname": "",
      "password": "",
      "port": 0,
      "privateKey": "",
      "username": ""
    },
    "gcsProfile": {
      "bucket": "",
      "rootPath": ""
    },
    "labels": {},
    "mysqlProfile": {
      "hostname": "",
      "password": "",
      "port": 0,
      "sslConfig": {
        "caCertificate": "",
        "caCertificateSet": false,
        "clientCertificate": "",
        "clientCertificateSet": false,
        "clientKey": "",
        "clientKeySet": false
      },
      "username": ""
    },
    "name": "",
    "oracleProfile": {
      "connectionAttributes": {},
      "databaseService": "",
      "hostname": "",
      "password": "",
      "port": 0,
      "username": ""
    },
    "postgresqlProfile": {
      "database": "",
      "hostname": "",
      "password": "",
      "port": 0,
      "username": ""
    },
    "privateConnectivity": {
      "privateConnection": ""
    },
    "staticServiceIpConnectivity": {},
    "updateTime": ""
  },
  "connectionProfileName": "",
  "fullHierarchy": false,
  "hierarchyDepth": 0,
  "mysqlRdbms": {
    "mysqlDatabases": [
      {
        "database": "",
        "mysqlTables": [
          {
            "mysqlColumns": [
              {
                "collation": "",
                "column": "",
                "dataType": "",
                "length": 0,
                "nullable": false,
                "ordinalPosition": 0,
                "primaryKey": false
              }
            ],
            "table": ""
          }
        ]
      }
    ]
  },
  "oracleRdbms": {
    "oracleSchemas": [
      {
        "oracleTables": [
          {
            "oracleColumns": [
              {
                "column": "",
                "dataType": "",
                "encoding": "",
                "length": 0,
                "nullable": false,
                "ordinalPosition": 0,
                "precision": 0,
                "primaryKey": false,
                "scale": 0
              }
            ],
            "table": ""
          }
        ],
        "schema": ""
      }
    ]
  },
  "postgresqlRdbms": {
    "postgresqlSchemas": [
      {
        "postgresqlTables": [
          {
            "postgresqlColumns": [
              {
                "column": "",
                "dataType": "",
                "length": 0,
                "nullable": false,
                "ordinalPosition": 0,
                "precision": 0,
                "primaryKey": false,
                "scale": 0
              }
            ],
            "table": ""
          }
        ],
        "schema": ""
      }
    ]
  }
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/v1/:parent/connectionProfiles:discover");

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  \"connectionProfile\": {\n    \"bigqueryProfile\": {},\n    \"createTime\": \"\",\n    \"displayName\": \"\",\n    \"forwardSshConnectivity\": {\n      \"hostname\": \"\",\n      \"password\": \"\",\n      \"port\": 0,\n      \"privateKey\": \"\",\n      \"username\": \"\"\n    },\n    \"gcsProfile\": {\n      \"bucket\": \"\",\n      \"rootPath\": \"\"\n    },\n    \"labels\": {},\n    \"mysqlProfile\": {\n      \"hostname\": \"\",\n      \"password\": \"\",\n      \"port\": 0,\n      \"sslConfig\": {\n        \"caCertificate\": \"\",\n        \"caCertificateSet\": false,\n        \"clientCertificate\": \"\",\n        \"clientCertificateSet\": false,\n        \"clientKey\": \"\",\n        \"clientKeySet\": false\n      },\n      \"username\": \"\"\n    },\n    \"name\": \"\",\n    \"oracleProfile\": {\n      \"connectionAttributes\": {},\n      \"databaseService\": \"\",\n      \"hostname\": \"\",\n      \"password\": \"\",\n      \"port\": 0,\n      \"username\": \"\"\n    },\n    \"postgresqlProfile\": {\n      \"database\": \"\",\n      \"hostname\": \"\",\n      \"password\": \"\",\n      \"port\": 0,\n      \"username\": \"\"\n    },\n    \"privateConnectivity\": {\n      \"privateConnection\": \"\"\n    },\n    \"staticServiceIpConnectivity\": {},\n    \"updateTime\": \"\"\n  },\n  \"connectionProfileName\": \"\",\n  \"fullHierarchy\": false,\n  \"hierarchyDepth\": 0,\n  \"mysqlRdbms\": {\n    \"mysqlDatabases\": [\n      {\n        \"database\": \"\",\n        \"mysqlTables\": [\n          {\n            \"mysqlColumns\": [\n              {\n                \"collation\": \"\",\n                \"column\": \"\",\n                \"dataType\": \"\",\n                \"length\": 0,\n                \"nullable\": false,\n                \"ordinalPosition\": 0,\n                \"primaryKey\": false\n              }\n            ],\n            \"table\": \"\"\n          }\n        ]\n      }\n    ]\n  },\n  \"oracleRdbms\": {\n    \"oracleSchemas\": [\n      {\n        \"oracleTables\": [\n          {\n            \"oracleColumns\": [\n              {\n                \"column\": \"\",\n                \"dataType\": \"\",\n                \"encoding\": \"\",\n                \"length\": 0,\n                \"nullable\": false,\n                \"ordinalPosition\": 0,\n                \"precision\": 0,\n                \"primaryKey\": false,\n                \"scale\": 0\n              }\n            ],\n            \"table\": \"\"\n          }\n        ],\n        \"schema\": \"\"\n      }\n    ]\n  },\n  \"postgresqlRdbms\": {\n    \"postgresqlSchemas\": [\n      {\n        \"postgresqlTables\": [\n          {\n            \"postgresqlColumns\": [\n              {\n                \"column\": \"\",\n                \"dataType\": \"\",\n                \"length\": 0,\n                \"nullable\": false,\n                \"ordinalPosition\": 0,\n                \"precision\": 0,\n                \"primaryKey\": false,\n                \"scale\": 0\n              }\n            ],\n            \"table\": \"\"\n          }\n        ],\n        \"schema\": \"\"\n      }\n    ]\n  }\n}");

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

(client/post "{{baseUrl}}/v1/:parent/connectionProfiles:discover" {:content-type :json
                                                                                   :form-params {:connectionProfile {:bigqueryProfile {}
                                                                                                                     :createTime ""
                                                                                                                     :displayName ""
                                                                                                                     :forwardSshConnectivity {:hostname ""
                                                                                                                                              :password ""
                                                                                                                                              :port 0
                                                                                                                                              :privateKey ""
                                                                                                                                              :username ""}
                                                                                                                     :gcsProfile {:bucket ""
                                                                                                                                  :rootPath ""}
                                                                                                                     :labels {}
                                                                                                                     :mysqlProfile {:hostname ""
                                                                                                                                    :password ""
                                                                                                                                    :port 0
                                                                                                                                    :sslConfig {:caCertificate ""
                                                                                                                                                :caCertificateSet false
                                                                                                                                                :clientCertificate ""
                                                                                                                                                :clientCertificateSet false
                                                                                                                                                :clientKey ""
                                                                                                                                                :clientKeySet false}
                                                                                                                                    :username ""}
                                                                                                                     :name ""
                                                                                                                     :oracleProfile {:connectionAttributes {}
                                                                                                                                     :databaseService ""
                                                                                                                                     :hostname ""
                                                                                                                                     :password ""
                                                                                                                                     :port 0
                                                                                                                                     :username ""}
                                                                                                                     :postgresqlProfile {:database ""
                                                                                                                                         :hostname ""
                                                                                                                                         :password ""
                                                                                                                                         :port 0
                                                                                                                                         :username ""}
                                                                                                                     :privateConnectivity {:privateConnection ""}
                                                                                                                     :staticServiceIpConnectivity {}
                                                                                                                     :updateTime ""}
                                                                                                 :connectionProfileName ""
                                                                                                 :fullHierarchy false
                                                                                                 :hierarchyDepth 0
                                                                                                 :mysqlRdbms {:mysqlDatabases [{:database ""
                                                                                                                                :mysqlTables [{:mysqlColumns [{:collation ""
                                                                                                                                                               :column ""
                                                                                                                                                               :dataType ""
                                                                                                                                                               :length 0
                                                                                                                                                               :nullable false
                                                                                                                                                               :ordinalPosition 0
                                                                                                                                                               :primaryKey false}]
                                                                                                                                               :table ""}]}]}
                                                                                                 :oracleRdbms {:oracleSchemas [{:oracleTables [{:oracleColumns [{:column ""
                                                                                                                                                                 :dataType ""
                                                                                                                                                                 :encoding ""
                                                                                                                                                                 :length 0
                                                                                                                                                                 :nullable false
                                                                                                                                                                 :ordinalPosition 0
                                                                                                                                                                 :precision 0
                                                                                                                                                                 :primaryKey false
                                                                                                                                                                 :scale 0}]
                                                                                                                                                :table ""}]
                                                                                                                                :schema ""}]}
                                                                                                 :postgresqlRdbms {:postgresqlSchemas [{:postgresqlTables [{:postgresqlColumns [{:column ""
                                                                                                                                                                                 :dataType ""
                                                                                                                                                                                 :length 0
                                                                                                                                                                                 :nullable false
                                                                                                                                                                                 :ordinalPosition 0
                                                                                                                                                                                 :precision 0
                                                                                                                                                                                 :primaryKey false
                                                                                                                                                                                 :scale 0}]
                                                                                                                                                            :table ""}]
                                                                                                                                        :schema ""}]}}})
require "http/client"

url = "{{baseUrl}}/v1/:parent/connectionProfiles:discover"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"connectionProfile\": {\n    \"bigqueryProfile\": {},\n    \"createTime\": \"\",\n    \"displayName\": \"\",\n    \"forwardSshConnectivity\": {\n      \"hostname\": \"\",\n      \"password\": \"\",\n      \"port\": 0,\n      \"privateKey\": \"\",\n      \"username\": \"\"\n    },\n    \"gcsProfile\": {\n      \"bucket\": \"\",\n      \"rootPath\": \"\"\n    },\n    \"labels\": {},\n    \"mysqlProfile\": {\n      \"hostname\": \"\",\n      \"password\": \"\",\n      \"port\": 0,\n      \"sslConfig\": {\n        \"caCertificate\": \"\",\n        \"caCertificateSet\": false,\n        \"clientCertificate\": \"\",\n        \"clientCertificateSet\": false,\n        \"clientKey\": \"\",\n        \"clientKeySet\": false\n      },\n      \"username\": \"\"\n    },\n    \"name\": \"\",\n    \"oracleProfile\": {\n      \"connectionAttributes\": {},\n      \"databaseService\": \"\",\n      \"hostname\": \"\",\n      \"password\": \"\",\n      \"port\": 0,\n      \"username\": \"\"\n    },\n    \"postgresqlProfile\": {\n      \"database\": \"\",\n      \"hostname\": \"\",\n      \"password\": \"\",\n      \"port\": 0,\n      \"username\": \"\"\n    },\n    \"privateConnectivity\": {\n      \"privateConnection\": \"\"\n    },\n    \"staticServiceIpConnectivity\": {},\n    \"updateTime\": \"\"\n  },\n  \"connectionProfileName\": \"\",\n  \"fullHierarchy\": false,\n  \"hierarchyDepth\": 0,\n  \"mysqlRdbms\": {\n    \"mysqlDatabases\": [\n      {\n        \"database\": \"\",\n        \"mysqlTables\": [\n          {\n            \"mysqlColumns\": [\n              {\n                \"collation\": \"\",\n                \"column\": \"\",\n                \"dataType\": \"\",\n                \"length\": 0,\n                \"nullable\": false,\n                \"ordinalPosition\": 0,\n                \"primaryKey\": false\n              }\n            ],\n            \"table\": \"\"\n          }\n        ]\n      }\n    ]\n  },\n  \"oracleRdbms\": {\n    \"oracleSchemas\": [\n      {\n        \"oracleTables\": [\n          {\n            \"oracleColumns\": [\n              {\n                \"column\": \"\",\n                \"dataType\": \"\",\n                \"encoding\": \"\",\n                \"length\": 0,\n                \"nullable\": false,\n                \"ordinalPosition\": 0,\n                \"precision\": 0,\n                \"primaryKey\": false,\n                \"scale\": 0\n              }\n            ],\n            \"table\": \"\"\n          }\n        ],\n        \"schema\": \"\"\n      }\n    ]\n  },\n  \"postgresqlRdbms\": {\n    \"postgresqlSchemas\": [\n      {\n        \"postgresqlTables\": [\n          {\n            \"postgresqlColumns\": [\n              {\n                \"column\": \"\",\n                \"dataType\": \"\",\n                \"length\": 0,\n                \"nullable\": false,\n                \"ordinalPosition\": 0,\n                \"precision\": 0,\n                \"primaryKey\": false,\n                \"scale\": 0\n              }\n            ],\n            \"table\": \"\"\n          }\n        ],\n        \"schema\": \"\"\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/:parent/connectionProfiles:discover"),
    Content = new StringContent("{\n  \"connectionProfile\": {\n    \"bigqueryProfile\": {},\n    \"createTime\": \"\",\n    \"displayName\": \"\",\n    \"forwardSshConnectivity\": {\n      \"hostname\": \"\",\n      \"password\": \"\",\n      \"port\": 0,\n      \"privateKey\": \"\",\n      \"username\": \"\"\n    },\n    \"gcsProfile\": {\n      \"bucket\": \"\",\n      \"rootPath\": \"\"\n    },\n    \"labels\": {},\n    \"mysqlProfile\": {\n      \"hostname\": \"\",\n      \"password\": \"\",\n      \"port\": 0,\n      \"sslConfig\": {\n        \"caCertificate\": \"\",\n        \"caCertificateSet\": false,\n        \"clientCertificate\": \"\",\n        \"clientCertificateSet\": false,\n        \"clientKey\": \"\",\n        \"clientKeySet\": false\n      },\n      \"username\": \"\"\n    },\n    \"name\": \"\",\n    \"oracleProfile\": {\n      \"connectionAttributes\": {},\n      \"databaseService\": \"\",\n      \"hostname\": \"\",\n      \"password\": \"\",\n      \"port\": 0,\n      \"username\": \"\"\n    },\n    \"postgresqlProfile\": {\n      \"database\": \"\",\n      \"hostname\": \"\",\n      \"password\": \"\",\n      \"port\": 0,\n      \"username\": \"\"\n    },\n    \"privateConnectivity\": {\n      \"privateConnection\": \"\"\n    },\n    \"staticServiceIpConnectivity\": {},\n    \"updateTime\": \"\"\n  },\n  \"connectionProfileName\": \"\",\n  \"fullHierarchy\": false,\n  \"hierarchyDepth\": 0,\n  \"mysqlRdbms\": {\n    \"mysqlDatabases\": [\n      {\n        \"database\": \"\",\n        \"mysqlTables\": [\n          {\n            \"mysqlColumns\": [\n              {\n                \"collation\": \"\",\n                \"column\": \"\",\n                \"dataType\": \"\",\n                \"length\": 0,\n                \"nullable\": false,\n                \"ordinalPosition\": 0,\n                \"primaryKey\": false\n              }\n            ],\n            \"table\": \"\"\n          }\n        ]\n      }\n    ]\n  },\n  \"oracleRdbms\": {\n    \"oracleSchemas\": [\n      {\n        \"oracleTables\": [\n          {\n            \"oracleColumns\": [\n              {\n                \"column\": \"\",\n                \"dataType\": \"\",\n                \"encoding\": \"\",\n                \"length\": 0,\n                \"nullable\": false,\n                \"ordinalPosition\": 0,\n                \"precision\": 0,\n                \"primaryKey\": false,\n                \"scale\": 0\n              }\n            ],\n            \"table\": \"\"\n          }\n        ],\n        \"schema\": \"\"\n      }\n    ]\n  },\n  \"postgresqlRdbms\": {\n    \"postgresqlSchemas\": [\n      {\n        \"postgresqlTables\": [\n          {\n            \"postgresqlColumns\": [\n              {\n                \"column\": \"\",\n                \"dataType\": \"\",\n                \"length\": 0,\n                \"nullable\": false,\n                \"ordinalPosition\": 0,\n                \"precision\": 0,\n                \"primaryKey\": false,\n                \"scale\": 0\n              }\n            ],\n            \"table\": \"\"\n          }\n        ],\n        \"schema\": \"\"\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/:parent/connectionProfiles:discover");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"connectionProfile\": {\n    \"bigqueryProfile\": {},\n    \"createTime\": \"\",\n    \"displayName\": \"\",\n    \"forwardSshConnectivity\": {\n      \"hostname\": \"\",\n      \"password\": \"\",\n      \"port\": 0,\n      \"privateKey\": \"\",\n      \"username\": \"\"\n    },\n    \"gcsProfile\": {\n      \"bucket\": \"\",\n      \"rootPath\": \"\"\n    },\n    \"labels\": {},\n    \"mysqlProfile\": {\n      \"hostname\": \"\",\n      \"password\": \"\",\n      \"port\": 0,\n      \"sslConfig\": {\n        \"caCertificate\": \"\",\n        \"caCertificateSet\": false,\n        \"clientCertificate\": \"\",\n        \"clientCertificateSet\": false,\n        \"clientKey\": \"\",\n        \"clientKeySet\": false\n      },\n      \"username\": \"\"\n    },\n    \"name\": \"\",\n    \"oracleProfile\": {\n      \"connectionAttributes\": {},\n      \"databaseService\": \"\",\n      \"hostname\": \"\",\n      \"password\": \"\",\n      \"port\": 0,\n      \"username\": \"\"\n    },\n    \"postgresqlProfile\": {\n      \"database\": \"\",\n      \"hostname\": \"\",\n      \"password\": \"\",\n      \"port\": 0,\n      \"username\": \"\"\n    },\n    \"privateConnectivity\": {\n      \"privateConnection\": \"\"\n    },\n    \"staticServiceIpConnectivity\": {},\n    \"updateTime\": \"\"\n  },\n  \"connectionProfileName\": \"\",\n  \"fullHierarchy\": false,\n  \"hierarchyDepth\": 0,\n  \"mysqlRdbms\": {\n    \"mysqlDatabases\": [\n      {\n        \"database\": \"\",\n        \"mysqlTables\": [\n          {\n            \"mysqlColumns\": [\n              {\n                \"collation\": \"\",\n                \"column\": \"\",\n                \"dataType\": \"\",\n                \"length\": 0,\n                \"nullable\": false,\n                \"ordinalPosition\": 0,\n                \"primaryKey\": false\n              }\n            ],\n            \"table\": \"\"\n          }\n        ]\n      }\n    ]\n  },\n  \"oracleRdbms\": {\n    \"oracleSchemas\": [\n      {\n        \"oracleTables\": [\n          {\n            \"oracleColumns\": [\n              {\n                \"column\": \"\",\n                \"dataType\": \"\",\n                \"encoding\": \"\",\n                \"length\": 0,\n                \"nullable\": false,\n                \"ordinalPosition\": 0,\n                \"precision\": 0,\n                \"primaryKey\": false,\n                \"scale\": 0\n              }\n            ],\n            \"table\": \"\"\n          }\n        ],\n        \"schema\": \"\"\n      }\n    ]\n  },\n  \"postgresqlRdbms\": {\n    \"postgresqlSchemas\": [\n      {\n        \"postgresqlTables\": [\n          {\n            \"postgresqlColumns\": [\n              {\n                \"column\": \"\",\n                \"dataType\": \"\",\n                \"length\": 0,\n                \"nullable\": false,\n                \"ordinalPosition\": 0,\n                \"precision\": 0,\n                \"primaryKey\": false,\n                \"scale\": 0\n              }\n            ],\n            \"table\": \"\"\n          }\n        ],\n        \"schema\": \"\"\n      }\n    ]\n  }\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

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

func main() {

	url := "{{baseUrl}}/v1/:parent/connectionProfiles:discover"

	payload := strings.NewReader("{\n  \"connectionProfile\": {\n    \"bigqueryProfile\": {},\n    \"createTime\": \"\",\n    \"displayName\": \"\",\n    \"forwardSshConnectivity\": {\n      \"hostname\": \"\",\n      \"password\": \"\",\n      \"port\": 0,\n      \"privateKey\": \"\",\n      \"username\": \"\"\n    },\n    \"gcsProfile\": {\n      \"bucket\": \"\",\n      \"rootPath\": \"\"\n    },\n    \"labels\": {},\n    \"mysqlProfile\": {\n      \"hostname\": \"\",\n      \"password\": \"\",\n      \"port\": 0,\n      \"sslConfig\": {\n        \"caCertificate\": \"\",\n        \"caCertificateSet\": false,\n        \"clientCertificate\": \"\",\n        \"clientCertificateSet\": false,\n        \"clientKey\": \"\",\n        \"clientKeySet\": false\n      },\n      \"username\": \"\"\n    },\n    \"name\": \"\",\n    \"oracleProfile\": {\n      \"connectionAttributes\": {},\n      \"databaseService\": \"\",\n      \"hostname\": \"\",\n      \"password\": \"\",\n      \"port\": 0,\n      \"username\": \"\"\n    },\n    \"postgresqlProfile\": {\n      \"database\": \"\",\n      \"hostname\": \"\",\n      \"password\": \"\",\n      \"port\": 0,\n      \"username\": \"\"\n    },\n    \"privateConnectivity\": {\n      \"privateConnection\": \"\"\n    },\n    \"staticServiceIpConnectivity\": {},\n    \"updateTime\": \"\"\n  },\n  \"connectionProfileName\": \"\",\n  \"fullHierarchy\": false,\n  \"hierarchyDepth\": 0,\n  \"mysqlRdbms\": {\n    \"mysqlDatabases\": [\n      {\n        \"database\": \"\",\n        \"mysqlTables\": [\n          {\n            \"mysqlColumns\": [\n              {\n                \"collation\": \"\",\n                \"column\": \"\",\n                \"dataType\": \"\",\n                \"length\": 0,\n                \"nullable\": false,\n                \"ordinalPosition\": 0,\n                \"primaryKey\": false\n              }\n            ],\n            \"table\": \"\"\n          }\n        ]\n      }\n    ]\n  },\n  \"oracleRdbms\": {\n    \"oracleSchemas\": [\n      {\n        \"oracleTables\": [\n          {\n            \"oracleColumns\": [\n              {\n                \"column\": \"\",\n                \"dataType\": \"\",\n                \"encoding\": \"\",\n                \"length\": 0,\n                \"nullable\": false,\n                \"ordinalPosition\": 0,\n                \"precision\": 0,\n                \"primaryKey\": false,\n                \"scale\": 0\n              }\n            ],\n            \"table\": \"\"\n          }\n        ],\n        \"schema\": \"\"\n      }\n    ]\n  },\n  \"postgresqlRdbms\": {\n    \"postgresqlSchemas\": [\n      {\n        \"postgresqlTables\": [\n          {\n            \"postgresqlColumns\": [\n              {\n                \"column\": \"\",\n                \"dataType\": \"\",\n                \"length\": 0,\n                \"nullable\": false,\n                \"ordinalPosition\": 0,\n                \"precision\": 0,\n                \"primaryKey\": false,\n                \"scale\": 0\n              }\n            ],\n            \"table\": \"\"\n          }\n        ],\n        \"schema\": \"\"\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/:parent/connectionProfiles:discover HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 2762

{
  "connectionProfile": {
    "bigqueryProfile": {},
    "createTime": "",
    "displayName": "",
    "forwardSshConnectivity": {
      "hostname": "",
      "password": "",
      "port": 0,
      "privateKey": "",
      "username": ""
    },
    "gcsProfile": {
      "bucket": "",
      "rootPath": ""
    },
    "labels": {},
    "mysqlProfile": {
      "hostname": "",
      "password": "",
      "port": 0,
      "sslConfig": {
        "caCertificate": "",
        "caCertificateSet": false,
        "clientCertificate": "",
        "clientCertificateSet": false,
        "clientKey": "",
        "clientKeySet": false
      },
      "username": ""
    },
    "name": "",
    "oracleProfile": {
      "connectionAttributes": {},
      "databaseService": "",
      "hostname": "",
      "password": "",
      "port": 0,
      "username": ""
    },
    "postgresqlProfile": {
      "database": "",
      "hostname": "",
      "password": "",
      "port": 0,
      "username": ""
    },
    "privateConnectivity": {
      "privateConnection": ""
    },
    "staticServiceIpConnectivity": {},
    "updateTime": ""
  },
  "connectionProfileName": "",
  "fullHierarchy": false,
  "hierarchyDepth": 0,
  "mysqlRdbms": {
    "mysqlDatabases": [
      {
        "database": "",
        "mysqlTables": [
          {
            "mysqlColumns": [
              {
                "collation": "",
                "column": "",
                "dataType": "",
                "length": 0,
                "nullable": false,
                "ordinalPosition": 0,
                "primaryKey": false
              }
            ],
            "table": ""
          }
        ]
      }
    ]
  },
  "oracleRdbms": {
    "oracleSchemas": [
      {
        "oracleTables": [
          {
            "oracleColumns": [
              {
                "column": "",
                "dataType": "",
                "encoding": "",
                "length": 0,
                "nullable": false,
                "ordinalPosition": 0,
                "precision": 0,
                "primaryKey": false,
                "scale": 0
              }
            ],
            "table": ""
          }
        ],
        "schema": ""
      }
    ]
  },
  "postgresqlRdbms": {
    "postgresqlSchemas": [
      {
        "postgresqlTables": [
          {
            "postgresqlColumns": [
              {
                "column": "",
                "dataType": "",
                "length": 0,
                "nullable": false,
                "ordinalPosition": 0,
                "precision": 0,
                "primaryKey": false,
                "scale": 0
              }
            ],
            "table": ""
          }
        ],
        "schema": ""
      }
    ]
  }
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/v1/:parent/connectionProfiles:discover")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"connectionProfile\": {\n    \"bigqueryProfile\": {},\n    \"createTime\": \"\",\n    \"displayName\": \"\",\n    \"forwardSshConnectivity\": {\n      \"hostname\": \"\",\n      \"password\": \"\",\n      \"port\": 0,\n      \"privateKey\": \"\",\n      \"username\": \"\"\n    },\n    \"gcsProfile\": {\n      \"bucket\": \"\",\n      \"rootPath\": \"\"\n    },\n    \"labels\": {},\n    \"mysqlProfile\": {\n      \"hostname\": \"\",\n      \"password\": \"\",\n      \"port\": 0,\n      \"sslConfig\": {\n        \"caCertificate\": \"\",\n        \"caCertificateSet\": false,\n        \"clientCertificate\": \"\",\n        \"clientCertificateSet\": false,\n        \"clientKey\": \"\",\n        \"clientKeySet\": false\n      },\n      \"username\": \"\"\n    },\n    \"name\": \"\",\n    \"oracleProfile\": {\n      \"connectionAttributes\": {},\n      \"databaseService\": \"\",\n      \"hostname\": \"\",\n      \"password\": \"\",\n      \"port\": 0,\n      \"username\": \"\"\n    },\n    \"postgresqlProfile\": {\n      \"database\": \"\",\n      \"hostname\": \"\",\n      \"password\": \"\",\n      \"port\": 0,\n      \"username\": \"\"\n    },\n    \"privateConnectivity\": {\n      \"privateConnection\": \"\"\n    },\n    \"staticServiceIpConnectivity\": {},\n    \"updateTime\": \"\"\n  },\n  \"connectionProfileName\": \"\",\n  \"fullHierarchy\": false,\n  \"hierarchyDepth\": 0,\n  \"mysqlRdbms\": {\n    \"mysqlDatabases\": [\n      {\n        \"database\": \"\",\n        \"mysqlTables\": [\n          {\n            \"mysqlColumns\": [\n              {\n                \"collation\": \"\",\n                \"column\": \"\",\n                \"dataType\": \"\",\n                \"length\": 0,\n                \"nullable\": false,\n                \"ordinalPosition\": 0,\n                \"primaryKey\": false\n              }\n            ],\n            \"table\": \"\"\n          }\n        ]\n      }\n    ]\n  },\n  \"oracleRdbms\": {\n    \"oracleSchemas\": [\n      {\n        \"oracleTables\": [\n          {\n            \"oracleColumns\": [\n              {\n                \"column\": \"\",\n                \"dataType\": \"\",\n                \"encoding\": \"\",\n                \"length\": 0,\n                \"nullable\": false,\n                \"ordinalPosition\": 0,\n                \"precision\": 0,\n                \"primaryKey\": false,\n                \"scale\": 0\n              }\n            ],\n            \"table\": \"\"\n          }\n        ],\n        \"schema\": \"\"\n      }\n    ]\n  },\n  \"postgresqlRdbms\": {\n    \"postgresqlSchemas\": [\n      {\n        \"postgresqlTables\": [\n          {\n            \"postgresqlColumns\": [\n              {\n                \"column\": \"\",\n                \"dataType\": \"\",\n                \"length\": 0,\n                \"nullable\": false,\n                \"ordinalPosition\": 0,\n                \"precision\": 0,\n                \"primaryKey\": false,\n                \"scale\": 0\n              }\n            ],\n            \"table\": \"\"\n          }\n        ],\n        \"schema\": \"\"\n      }\n    ]\n  }\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/v1/:parent/connectionProfiles:discover"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"connectionProfile\": {\n    \"bigqueryProfile\": {},\n    \"createTime\": \"\",\n    \"displayName\": \"\",\n    \"forwardSshConnectivity\": {\n      \"hostname\": \"\",\n      \"password\": \"\",\n      \"port\": 0,\n      \"privateKey\": \"\",\n      \"username\": \"\"\n    },\n    \"gcsProfile\": {\n      \"bucket\": \"\",\n      \"rootPath\": \"\"\n    },\n    \"labels\": {},\n    \"mysqlProfile\": {\n      \"hostname\": \"\",\n      \"password\": \"\",\n      \"port\": 0,\n      \"sslConfig\": {\n        \"caCertificate\": \"\",\n        \"caCertificateSet\": false,\n        \"clientCertificate\": \"\",\n        \"clientCertificateSet\": false,\n        \"clientKey\": \"\",\n        \"clientKeySet\": false\n      },\n      \"username\": \"\"\n    },\n    \"name\": \"\",\n    \"oracleProfile\": {\n      \"connectionAttributes\": {},\n      \"databaseService\": \"\",\n      \"hostname\": \"\",\n      \"password\": \"\",\n      \"port\": 0,\n      \"username\": \"\"\n    },\n    \"postgresqlProfile\": {\n      \"database\": \"\",\n      \"hostname\": \"\",\n      \"password\": \"\",\n      \"port\": 0,\n      \"username\": \"\"\n    },\n    \"privateConnectivity\": {\n      \"privateConnection\": \"\"\n    },\n    \"staticServiceIpConnectivity\": {},\n    \"updateTime\": \"\"\n  },\n  \"connectionProfileName\": \"\",\n  \"fullHierarchy\": false,\n  \"hierarchyDepth\": 0,\n  \"mysqlRdbms\": {\n    \"mysqlDatabases\": [\n      {\n        \"database\": \"\",\n        \"mysqlTables\": [\n          {\n            \"mysqlColumns\": [\n              {\n                \"collation\": \"\",\n                \"column\": \"\",\n                \"dataType\": \"\",\n                \"length\": 0,\n                \"nullable\": false,\n                \"ordinalPosition\": 0,\n                \"primaryKey\": false\n              }\n            ],\n            \"table\": \"\"\n          }\n        ]\n      }\n    ]\n  },\n  \"oracleRdbms\": {\n    \"oracleSchemas\": [\n      {\n        \"oracleTables\": [\n          {\n            \"oracleColumns\": [\n              {\n                \"column\": \"\",\n                \"dataType\": \"\",\n                \"encoding\": \"\",\n                \"length\": 0,\n                \"nullable\": false,\n                \"ordinalPosition\": 0,\n                \"precision\": 0,\n                \"primaryKey\": false,\n                \"scale\": 0\n              }\n            ],\n            \"table\": \"\"\n          }\n        ],\n        \"schema\": \"\"\n      }\n    ]\n  },\n  \"postgresqlRdbms\": {\n    \"postgresqlSchemas\": [\n      {\n        \"postgresqlTables\": [\n          {\n            \"postgresqlColumns\": [\n              {\n                \"column\": \"\",\n                \"dataType\": \"\",\n                \"length\": 0,\n                \"nullable\": false,\n                \"ordinalPosition\": 0,\n                \"precision\": 0,\n                \"primaryKey\": false,\n                \"scale\": 0\n              }\n            ],\n            \"table\": \"\"\n          }\n        ],\n        \"schema\": \"\"\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  \"connectionProfile\": {\n    \"bigqueryProfile\": {},\n    \"createTime\": \"\",\n    \"displayName\": \"\",\n    \"forwardSshConnectivity\": {\n      \"hostname\": \"\",\n      \"password\": \"\",\n      \"port\": 0,\n      \"privateKey\": \"\",\n      \"username\": \"\"\n    },\n    \"gcsProfile\": {\n      \"bucket\": \"\",\n      \"rootPath\": \"\"\n    },\n    \"labels\": {},\n    \"mysqlProfile\": {\n      \"hostname\": \"\",\n      \"password\": \"\",\n      \"port\": 0,\n      \"sslConfig\": {\n        \"caCertificate\": \"\",\n        \"caCertificateSet\": false,\n        \"clientCertificate\": \"\",\n        \"clientCertificateSet\": false,\n        \"clientKey\": \"\",\n        \"clientKeySet\": false\n      },\n      \"username\": \"\"\n    },\n    \"name\": \"\",\n    \"oracleProfile\": {\n      \"connectionAttributes\": {},\n      \"databaseService\": \"\",\n      \"hostname\": \"\",\n      \"password\": \"\",\n      \"port\": 0,\n      \"username\": \"\"\n    },\n    \"postgresqlProfile\": {\n      \"database\": \"\",\n      \"hostname\": \"\",\n      \"password\": \"\",\n      \"port\": 0,\n      \"username\": \"\"\n    },\n    \"privateConnectivity\": {\n      \"privateConnection\": \"\"\n    },\n    \"staticServiceIpConnectivity\": {},\n    \"updateTime\": \"\"\n  },\n  \"connectionProfileName\": \"\",\n  \"fullHierarchy\": false,\n  \"hierarchyDepth\": 0,\n  \"mysqlRdbms\": {\n    \"mysqlDatabases\": [\n      {\n        \"database\": \"\",\n        \"mysqlTables\": [\n          {\n            \"mysqlColumns\": [\n              {\n                \"collation\": \"\",\n                \"column\": \"\",\n                \"dataType\": \"\",\n                \"length\": 0,\n                \"nullable\": false,\n                \"ordinalPosition\": 0,\n                \"primaryKey\": false\n              }\n            ],\n            \"table\": \"\"\n          }\n        ]\n      }\n    ]\n  },\n  \"oracleRdbms\": {\n    \"oracleSchemas\": [\n      {\n        \"oracleTables\": [\n          {\n            \"oracleColumns\": [\n              {\n                \"column\": \"\",\n                \"dataType\": \"\",\n                \"encoding\": \"\",\n                \"length\": 0,\n                \"nullable\": false,\n                \"ordinalPosition\": 0,\n                \"precision\": 0,\n                \"primaryKey\": false,\n                \"scale\": 0\n              }\n            ],\n            \"table\": \"\"\n          }\n        ],\n        \"schema\": \"\"\n      }\n    ]\n  },\n  \"postgresqlRdbms\": {\n    \"postgresqlSchemas\": [\n      {\n        \"postgresqlTables\": [\n          {\n            \"postgresqlColumns\": [\n              {\n                \"column\": \"\",\n                \"dataType\": \"\",\n                \"length\": 0,\n                \"nullable\": false,\n                \"ordinalPosition\": 0,\n                \"precision\": 0,\n                \"primaryKey\": false,\n                \"scale\": 0\n              }\n            ],\n            \"table\": \"\"\n          }\n        ],\n        \"schema\": \"\"\n      }\n    ]\n  }\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/v1/:parent/connectionProfiles:discover")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/v1/:parent/connectionProfiles:discover")
  .header("content-type", "application/json")
  .body("{\n  \"connectionProfile\": {\n    \"bigqueryProfile\": {},\n    \"createTime\": \"\",\n    \"displayName\": \"\",\n    \"forwardSshConnectivity\": {\n      \"hostname\": \"\",\n      \"password\": \"\",\n      \"port\": 0,\n      \"privateKey\": \"\",\n      \"username\": \"\"\n    },\n    \"gcsProfile\": {\n      \"bucket\": \"\",\n      \"rootPath\": \"\"\n    },\n    \"labels\": {},\n    \"mysqlProfile\": {\n      \"hostname\": \"\",\n      \"password\": \"\",\n      \"port\": 0,\n      \"sslConfig\": {\n        \"caCertificate\": \"\",\n        \"caCertificateSet\": false,\n        \"clientCertificate\": \"\",\n        \"clientCertificateSet\": false,\n        \"clientKey\": \"\",\n        \"clientKeySet\": false\n      },\n      \"username\": \"\"\n    },\n    \"name\": \"\",\n    \"oracleProfile\": {\n      \"connectionAttributes\": {},\n      \"databaseService\": \"\",\n      \"hostname\": \"\",\n      \"password\": \"\",\n      \"port\": 0,\n      \"username\": \"\"\n    },\n    \"postgresqlProfile\": {\n      \"database\": \"\",\n      \"hostname\": \"\",\n      \"password\": \"\",\n      \"port\": 0,\n      \"username\": \"\"\n    },\n    \"privateConnectivity\": {\n      \"privateConnection\": \"\"\n    },\n    \"staticServiceIpConnectivity\": {},\n    \"updateTime\": \"\"\n  },\n  \"connectionProfileName\": \"\",\n  \"fullHierarchy\": false,\n  \"hierarchyDepth\": 0,\n  \"mysqlRdbms\": {\n    \"mysqlDatabases\": [\n      {\n        \"database\": \"\",\n        \"mysqlTables\": [\n          {\n            \"mysqlColumns\": [\n              {\n                \"collation\": \"\",\n                \"column\": \"\",\n                \"dataType\": \"\",\n                \"length\": 0,\n                \"nullable\": false,\n                \"ordinalPosition\": 0,\n                \"primaryKey\": false\n              }\n            ],\n            \"table\": \"\"\n          }\n        ]\n      }\n    ]\n  },\n  \"oracleRdbms\": {\n    \"oracleSchemas\": [\n      {\n        \"oracleTables\": [\n          {\n            \"oracleColumns\": [\n              {\n                \"column\": \"\",\n                \"dataType\": \"\",\n                \"encoding\": \"\",\n                \"length\": 0,\n                \"nullable\": false,\n                \"ordinalPosition\": 0,\n                \"precision\": 0,\n                \"primaryKey\": false,\n                \"scale\": 0\n              }\n            ],\n            \"table\": \"\"\n          }\n        ],\n        \"schema\": \"\"\n      }\n    ]\n  },\n  \"postgresqlRdbms\": {\n    \"postgresqlSchemas\": [\n      {\n        \"postgresqlTables\": [\n          {\n            \"postgresqlColumns\": [\n              {\n                \"column\": \"\",\n                \"dataType\": \"\",\n                \"length\": 0,\n                \"nullable\": false,\n                \"ordinalPosition\": 0,\n                \"precision\": 0,\n                \"primaryKey\": false,\n                \"scale\": 0\n              }\n            ],\n            \"table\": \"\"\n          }\n        ],\n        \"schema\": \"\"\n      }\n    ]\n  }\n}")
  .asString();
const data = JSON.stringify({
  connectionProfile: {
    bigqueryProfile: {},
    createTime: '',
    displayName: '',
    forwardSshConnectivity: {
      hostname: '',
      password: '',
      port: 0,
      privateKey: '',
      username: ''
    },
    gcsProfile: {
      bucket: '',
      rootPath: ''
    },
    labels: {},
    mysqlProfile: {
      hostname: '',
      password: '',
      port: 0,
      sslConfig: {
        caCertificate: '',
        caCertificateSet: false,
        clientCertificate: '',
        clientCertificateSet: false,
        clientKey: '',
        clientKeySet: false
      },
      username: ''
    },
    name: '',
    oracleProfile: {
      connectionAttributes: {},
      databaseService: '',
      hostname: '',
      password: '',
      port: 0,
      username: ''
    },
    postgresqlProfile: {
      database: '',
      hostname: '',
      password: '',
      port: 0,
      username: ''
    },
    privateConnectivity: {
      privateConnection: ''
    },
    staticServiceIpConnectivity: {},
    updateTime: ''
  },
  connectionProfileName: '',
  fullHierarchy: false,
  hierarchyDepth: 0,
  mysqlRdbms: {
    mysqlDatabases: [
      {
        database: '',
        mysqlTables: [
          {
            mysqlColumns: [
              {
                collation: '',
                column: '',
                dataType: '',
                length: 0,
                nullable: false,
                ordinalPosition: 0,
                primaryKey: false
              }
            ],
            table: ''
          }
        ]
      }
    ]
  },
  oracleRdbms: {
    oracleSchemas: [
      {
        oracleTables: [
          {
            oracleColumns: [
              {
                column: '',
                dataType: '',
                encoding: '',
                length: 0,
                nullable: false,
                ordinalPosition: 0,
                precision: 0,
                primaryKey: false,
                scale: 0
              }
            ],
            table: ''
          }
        ],
        schema: ''
      }
    ]
  },
  postgresqlRdbms: {
    postgresqlSchemas: [
      {
        postgresqlTables: [
          {
            postgresqlColumns: [
              {
                column: '',
                dataType: '',
                length: 0,
                nullable: false,
                ordinalPosition: 0,
                precision: 0,
                primaryKey: false,
                scale: 0
              }
            ],
            table: ''
          }
        ],
        schema: ''
      }
    ]
  }
});

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/:parent/connectionProfiles:discover');
xhr.setRequestHeader('content-type', 'application/json');

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

const options = {
  method: 'POST',
  url: '{{baseUrl}}/v1/:parent/connectionProfiles:discover',
  headers: {'content-type': 'application/json'},
  data: {
    connectionProfile: {
      bigqueryProfile: {},
      createTime: '',
      displayName: '',
      forwardSshConnectivity: {hostname: '', password: '', port: 0, privateKey: '', username: ''},
      gcsProfile: {bucket: '', rootPath: ''},
      labels: {},
      mysqlProfile: {
        hostname: '',
        password: '',
        port: 0,
        sslConfig: {
          caCertificate: '',
          caCertificateSet: false,
          clientCertificate: '',
          clientCertificateSet: false,
          clientKey: '',
          clientKeySet: false
        },
        username: ''
      },
      name: '',
      oracleProfile: {
        connectionAttributes: {},
        databaseService: '',
        hostname: '',
        password: '',
        port: 0,
        username: ''
      },
      postgresqlProfile: {database: '', hostname: '', password: '', port: 0, username: ''},
      privateConnectivity: {privateConnection: ''},
      staticServiceIpConnectivity: {},
      updateTime: ''
    },
    connectionProfileName: '',
    fullHierarchy: false,
    hierarchyDepth: 0,
    mysqlRdbms: {
      mysqlDatabases: [
        {
          database: '',
          mysqlTables: [
            {
              mysqlColumns: [
                {
                  collation: '',
                  column: '',
                  dataType: '',
                  length: 0,
                  nullable: false,
                  ordinalPosition: 0,
                  primaryKey: false
                }
              ],
              table: ''
            }
          ]
        }
      ]
    },
    oracleRdbms: {
      oracleSchemas: [
        {
          oracleTables: [
            {
              oracleColumns: [
                {
                  column: '',
                  dataType: '',
                  encoding: '',
                  length: 0,
                  nullable: false,
                  ordinalPosition: 0,
                  precision: 0,
                  primaryKey: false,
                  scale: 0
                }
              ],
              table: ''
            }
          ],
          schema: ''
        }
      ]
    },
    postgresqlRdbms: {
      postgresqlSchemas: [
        {
          postgresqlTables: [
            {
              postgresqlColumns: [
                {
                  column: '',
                  dataType: '',
                  length: 0,
                  nullable: false,
                  ordinalPosition: 0,
                  precision: 0,
                  primaryKey: false,
                  scale: 0
                }
              ],
              table: ''
            }
          ],
          schema: ''
        }
      ]
    }
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/v1/:parent/connectionProfiles:discover';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"connectionProfile":{"bigqueryProfile":{},"createTime":"","displayName":"","forwardSshConnectivity":{"hostname":"","password":"","port":0,"privateKey":"","username":""},"gcsProfile":{"bucket":"","rootPath":""},"labels":{},"mysqlProfile":{"hostname":"","password":"","port":0,"sslConfig":{"caCertificate":"","caCertificateSet":false,"clientCertificate":"","clientCertificateSet":false,"clientKey":"","clientKeySet":false},"username":""},"name":"","oracleProfile":{"connectionAttributes":{},"databaseService":"","hostname":"","password":"","port":0,"username":""},"postgresqlProfile":{"database":"","hostname":"","password":"","port":0,"username":""},"privateConnectivity":{"privateConnection":""},"staticServiceIpConnectivity":{},"updateTime":""},"connectionProfileName":"","fullHierarchy":false,"hierarchyDepth":0,"mysqlRdbms":{"mysqlDatabases":[{"database":"","mysqlTables":[{"mysqlColumns":[{"collation":"","column":"","dataType":"","length":0,"nullable":false,"ordinalPosition":0,"primaryKey":false}],"table":""}]}]},"oracleRdbms":{"oracleSchemas":[{"oracleTables":[{"oracleColumns":[{"column":"","dataType":"","encoding":"","length":0,"nullable":false,"ordinalPosition":0,"precision":0,"primaryKey":false,"scale":0}],"table":""}],"schema":""}]},"postgresqlRdbms":{"postgresqlSchemas":[{"postgresqlTables":[{"postgresqlColumns":[{"column":"","dataType":"","length":0,"nullable":false,"ordinalPosition":0,"precision":0,"primaryKey":false,"scale":0}],"table":""}],"schema":""}]}}'
};

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/:parent/connectionProfiles:discover',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "connectionProfile": {\n    "bigqueryProfile": {},\n    "createTime": "",\n    "displayName": "",\n    "forwardSshConnectivity": {\n      "hostname": "",\n      "password": "",\n      "port": 0,\n      "privateKey": "",\n      "username": ""\n    },\n    "gcsProfile": {\n      "bucket": "",\n      "rootPath": ""\n    },\n    "labels": {},\n    "mysqlProfile": {\n      "hostname": "",\n      "password": "",\n      "port": 0,\n      "sslConfig": {\n        "caCertificate": "",\n        "caCertificateSet": false,\n        "clientCertificate": "",\n        "clientCertificateSet": false,\n        "clientKey": "",\n        "clientKeySet": false\n      },\n      "username": ""\n    },\n    "name": "",\n    "oracleProfile": {\n      "connectionAttributes": {},\n      "databaseService": "",\n      "hostname": "",\n      "password": "",\n      "port": 0,\n      "username": ""\n    },\n    "postgresqlProfile": {\n      "database": "",\n      "hostname": "",\n      "password": "",\n      "port": 0,\n      "username": ""\n    },\n    "privateConnectivity": {\n      "privateConnection": ""\n    },\n    "staticServiceIpConnectivity": {},\n    "updateTime": ""\n  },\n  "connectionProfileName": "",\n  "fullHierarchy": false,\n  "hierarchyDepth": 0,\n  "mysqlRdbms": {\n    "mysqlDatabases": [\n      {\n        "database": "",\n        "mysqlTables": [\n          {\n            "mysqlColumns": [\n              {\n                "collation": "",\n                "column": "",\n                "dataType": "",\n                "length": 0,\n                "nullable": false,\n                "ordinalPosition": 0,\n                "primaryKey": false\n              }\n            ],\n            "table": ""\n          }\n        ]\n      }\n    ]\n  },\n  "oracleRdbms": {\n    "oracleSchemas": [\n      {\n        "oracleTables": [\n          {\n            "oracleColumns": [\n              {\n                "column": "",\n                "dataType": "",\n                "encoding": "",\n                "length": 0,\n                "nullable": false,\n                "ordinalPosition": 0,\n                "precision": 0,\n                "primaryKey": false,\n                "scale": 0\n              }\n            ],\n            "table": ""\n          }\n        ],\n        "schema": ""\n      }\n    ]\n  },\n  "postgresqlRdbms": {\n    "postgresqlSchemas": [\n      {\n        "postgresqlTables": [\n          {\n            "postgresqlColumns": [\n              {\n                "column": "",\n                "dataType": "",\n                "length": 0,\n                "nullable": false,\n                "ordinalPosition": 0,\n                "precision": 0,\n                "primaryKey": false,\n                "scale": 0\n              }\n            ],\n            "table": ""\n          }\n        ],\n        "schema": ""\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  \"connectionProfile\": {\n    \"bigqueryProfile\": {},\n    \"createTime\": \"\",\n    \"displayName\": \"\",\n    \"forwardSshConnectivity\": {\n      \"hostname\": \"\",\n      \"password\": \"\",\n      \"port\": 0,\n      \"privateKey\": \"\",\n      \"username\": \"\"\n    },\n    \"gcsProfile\": {\n      \"bucket\": \"\",\n      \"rootPath\": \"\"\n    },\n    \"labels\": {},\n    \"mysqlProfile\": {\n      \"hostname\": \"\",\n      \"password\": \"\",\n      \"port\": 0,\n      \"sslConfig\": {\n        \"caCertificate\": \"\",\n        \"caCertificateSet\": false,\n        \"clientCertificate\": \"\",\n        \"clientCertificateSet\": false,\n        \"clientKey\": \"\",\n        \"clientKeySet\": false\n      },\n      \"username\": \"\"\n    },\n    \"name\": \"\",\n    \"oracleProfile\": {\n      \"connectionAttributes\": {},\n      \"databaseService\": \"\",\n      \"hostname\": \"\",\n      \"password\": \"\",\n      \"port\": 0,\n      \"username\": \"\"\n    },\n    \"postgresqlProfile\": {\n      \"database\": \"\",\n      \"hostname\": \"\",\n      \"password\": \"\",\n      \"port\": 0,\n      \"username\": \"\"\n    },\n    \"privateConnectivity\": {\n      \"privateConnection\": \"\"\n    },\n    \"staticServiceIpConnectivity\": {},\n    \"updateTime\": \"\"\n  },\n  \"connectionProfileName\": \"\",\n  \"fullHierarchy\": false,\n  \"hierarchyDepth\": 0,\n  \"mysqlRdbms\": {\n    \"mysqlDatabases\": [\n      {\n        \"database\": \"\",\n        \"mysqlTables\": [\n          {\n            \"mysqlColumns\": [\n              {\n                \"collation\": \"\",\n                \"column\": \"\",\n                \"dataType\": \"\",\n                \"length\": 0,\n                \"nullable\": false,\n                \"ordinalPosition\": 0,\n                \"primaryKey\": false\n              }\n            ],\n            \"table\": \"\"\n          }\n        ]\n      }\n    ]\n  },\n  \"oracleRdbms\": {\n    \"oracleSchemas\": [\n      {\n        \"oracleTables\": [\n          {\n            \"oracleColumns\": [\n              {\n                \"column\": \"\",\n                \"dataType\": \"\",\n                \"encoding\": \"\",\n                \"length\": 0,\n                \"nullable\": false,\n                \"ordinalPosition\": 0,\n                \"precision\": 0,\n                \"primaryKey\": false,\n                \"scale\": 0\n              }\n            ],\n            \"table\": \"\"\n          }\n        ],\n        \"schema\": \"\"\n      }\n    ]\n  },\n  \"postgresqlRdbms\": {\n    \"postgresqlSchemas\": [\n      {\n        \"postgresqlTables\": [\n          {\n            \"postgresqlColumns\": [\n              {\n                \"column\": \"\",\n                \"dataType\": \"\",\n                \"length\": 0,\n                \"nullable\": false,\n                \"ordinalPosition\": 0,\n                \"precision\": 0,\n                \"primaryKey\": false,\n                \"scale\": 0\n              }\n            ],\n            \"table\": \"\"\n          }\n        ],\n        \"schema\": \"\"\n      }\n    ]\n  }\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/v1/:parent/connectionProfiles:discover")
  .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/:parent/connectionProfiles:discover',
  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({
  connectionProfile: {
    bigqueryProfile: {},
    createTime: '',
    displayName: '',
    forwardSshConnectivity: {hostname: '', password: '', port: 0, privateKey: '', username: ''},
    gcsProfile: {bucket: '', rootPath: ''},
    labels: {},
    mysqlProfile: {
      hostname: '',
      password: '',
      port: 0,
      sslConfig: {
        caCertificate: '',
        caCertificateSet: false,
        clientCertificate: '',
        clientCertificateSet: false,
        clientKey: '',
        clientKeySet: false
      },
      username: ''
    },
    name: '',
    oracleProfile: {
      connectionAttributes: {},
      databaseService: '',
      hostname: '',
      password: '',
      port: 0,
      username: ''
    },
    postgresqlProfile: {database: '', hostname: '', password: '', port: 0, username: ''},
    privateConnectivity: {privateConnection: ''},
    staticServiceIpConnectivity: {},
    updateTime: ''
  },
  connectionProfileName: '',
  fullHierarchy: false,
  hierarchyDepth: 0,
  mysqlRdbms: {
    mysqlDatabases: [
      {
        database: '',
        mysqlTables: [
          {
            mysqlColumns: [
              {
                collation: '',
                column: '',
                dataType: '',
                length: 0,
                nullable: false,
                ordinalPosition: 0,
                primaryKey: false
              }
            ],
            table: ''
          }
        ]
      }
    ]
  },
  oracleRdbms: {
    oracleSchemas: [
      {
        oracleTables: [
          {
            oracleColumns: [
              {
                column: '',
                dataType: '',
                encoding: '',
                length: 0,
                nullable: false,
                ordinalPosition: 0,
                precision: 0,
                primaryKey: false,
                scale: 0
              }
            ],
            table: ''
          }
        ],
        schema: ''
      }
    ]
  },
  postgresqlRdbms: {
    postgresqlSchemas: [
      {
        postgresqlTables: [
          {
            postgresqlColumns: [
              {
                column: '',
                dataType: '',
                length: 0,
                nullable: false,
                ordinalPosition: 0,
                precision: 0,
                primaryKey: false,
                scale: 0
              }
            ],
            table: ''
          }
        ],
        schema: ''
      }
    ]
  }
}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/v1/:parent/connectionProfiles:discover',
  headers: {'content-type': 'application/json'},
  body: {
    connectionProfile: {
      bigqueryProfile: {},
      createTime: '',
      displayName: '',
      forwardSshConnectivity: {hostname: '', password: '', port: 0, privateKey: '', username: ''},
      gcsProfile: {bucket: '', rootPath: ''},
      labels: {},
      mysqlProfile: {
        hostname: '',
        password: '',
        port: 0,
        sslConfig: {
          caCertificate: '',
          caCertificateSet: false,
          clientCertificate: '',
          clientCertificateSet: false,
          clientKey: '',
          clientKeySet: false
        },
        username: ''
      },
      name: '',
      oracleProfile: {
        connectionAttributes: {},
        databaseService: '',
        hostname: '',
        password: '',
        port: 0,
        username: ''
      },
      postgresqlProfile: {database: '', hostname: '', password: '', port: 0, username: ''},
      privateConnectivity: {privateConnection: ''},
      staticServiceIpConnectivity: {},
      updateTime: ''
    },
    connectionProfileName: '',
    fullHierarchy: false,
    hierarchyDepth: 0,
    mysqlRdbms: {
      mysqlDatabases: [
        {
          database: '',
          mysqlTables: [
            {
              mysqlColumns: [
                {
                  collation: '',
                  column: '',
                  dataType: '',
                  length: 0,
                  nullable: false,
                  ordinalPosition: 0,
                  primaryKey: false
                }
              ],
              table: ''
            }
          ]
        }
      ]
    },
    oracleRdbms: {
      oracleSchemas: [
        {
          oracleTables: [
            {
              oracleColumns: [
                {
                  column: '',
                  dataType: '',
                  encoding: '',
                  length: 0,
                  nullable: false,
                  ordinalPosition: 0,
                  precision: 0,
                  primaryKey: false,
                  scale: 0
                }
              ],
              table: ''
            }
          ],
          schema: ''
        }
      ]
    },
    postgresqlRdbms: {
      postgresqlSchemas: [
        {
          postgresqlTables: [
            {
              postgresqlColumns: [
                {
                  column: '',
                  dataType: '',
                  length: 0,
                  nullable: false,
                  ordinalPosition: 0,
                  precision: 0,
                  primaryKey: false,
                  scale: 0
                }
              ],
              table: ''
            }
          ],
          schema: ''
        }
      ]
    }
  },
  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/:parent/connectionProfiles:discover');

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

req.type('json');
req.send({
  connectionProfile: {
    bigqueryProfile: {},
    createTime: '',
    displayName: '',
    forwardSshConnectivity: {
      hostname: '',
      password: '',
      port: 0,
      privateKey: '',
      username: ''
    },
    gcsProfile: {
      bucket: '',
      rootPath: ''
    },
    labels: {},
    mysqlProfile: {
      hostname: '',
      password: '',
      port: 0,
      sslConfig: {
        caCertificate: '',
        caCertificateSet: false,
        clientCertificate: '',
        clientCertificateSet: false,
        clientKey: '',
        clientKeySet: false
      },
      username: ''
    },
    name: '',
    oracleProfile: {
      connectionAttributes: {},
      databaseService: '',
      hostname: '',
      password: '',
      port: 0,
      username: ''
    },
    postgresqlProfile: {
      database: '',
      hostname: '',
      password: '',
      port: 0,
      username: ''
    },
    privateConnectivity: {
      privateConnection: ''
    },
    staticServiceIpConnectivity: {},
    updateTime: ''
  },
  connectionProfileName: '',
  fullHierarchy: false,
  hierarchyDepth: 0,
  mysqlRdbms: {
    mysqlDatabases: [
      {
        database: '',
        mysqlTables: [
          {
            mysqlColumns: [
              {
                collation: '',
                column: '',
                dataType: '',
                length: 0,
                nullable: false,
                ordinalPosition: 0,
                primaryKey: false
              }
            ],
            table: ''
          }
        ]
      }
    ]
  },
  oracleRdbms: {
    oracleSchemas: [
      {
        oracleTables: [
          {
            oracleColumns: [
              {
                column: '',
                dataType: '',
                encoding: '',
                length: 0,
                nullable: false,
                ordinalPosition: 0,
                precision: 0,
                primaryKey: false,
                scale: 0
              }
            ],
            table: ''
          }
        ],
        schema: ''
      }
    ]
  },
  postgresqlRdbms: {
    postgresqlSchemas: [
      {
        postgresqlTables: [
          {
            postgresqlColumns: [
              {
                column: '',
                dataType: '',
                length: 0,
                nullable: false,
                ordinalPosition: 0,
                precision: 0,
                primaryKey: false,
                scale: 0
              }
            ],
            table: ''
          }
        ],
        schema: ''
      }
    ]
  }
});

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/:parent/connectionProfiles:discover',
  headers: {'content-type': 'application/json'},
  data: {
    connectionProfile: {
      bigqueryProfile: {},
      createTime: '',
      displayName: '',
      forwardSshConnectivity: {hostname: '', password: '', port: 0, privateKey: '', username: ''},
      gcsProfile: {bucket: '', rootPath: ''},
      labels: {},
      mysqlProfile: {
        hostname: '',
        password: '',
        port: 0,
        sslConfig: {
          caCertificate: '',
          caCertificateSet: false,
          clientCertificate: '',
          clientCertificateSet: false,
          clientKey: '',
          clientKeySet: false
        },
        username: ''
      },
      name: '',
      oracleProfile: {
        connectionAttributes: {},
        databaseService: '',
        hostname: '',
        password: '',
        port: 0,
        username: ''
      },
      postgresqlProfile: {database: '', hostname: '', password: '', port: 0, username: ''},
      privateConnectivity: {privateConnection: ''},
      staticServiceIpConnectivity: {},
      updateTime: ''
    },
    connectionProfileName: '',
    fullHierarchy: false,
    hierarchyDepth: 0,
    mysqlRdbms: {
      mysqlDatabases: [
        {
          database: '',
          mysqlTables: [
            {
              mysqlColumns: [
                {
                  collation: '',
                  column: '',
                  dataType: '',
                  length: 0,
                  nullable: false,
                  ordinalPosition: 0,
                  primaryKey: false
                }
              ],
              table: ''
            }
          ]
        }
      ]
    },
    oracleRdbms: {
      oracleSchemas: [
        {
          oracleTables: [
            {
              oracleColumns: [
                {
                  column: '',
                  dataType: '',
                  encoding: '',
                  length: 0,
                  nullable: false,
                  ordinalPosition: 0,
                  precision: 0,
                  primaryKey: false,
                  scale: 0
                }
              ],
              table: ''
            }
          ],
          schema: ''
        }
      ]
    },
    postgresqlRdbms: {
      postgresqlSchemas: [
        {
          postgresqlTables: [
            {
              postgresqlColumns: [
                {
                  column: '',
                  dataType: '',
                  length: 0,
                  nullable: false,
                  ordinalPosition: 0,
                  precision: 0,
                  primaryKey: false,
                  scale: 0
                }
              ],
              table: ''
            }
          ],
          schema: ''
        }
      ]
    }
  }
};

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

const url = '{{baseUrl}}/v1/:parent/connectionProfiles:discover';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"connectionProfile":{"bigqueryProfile":{},"createTime":"","displayName":"","forwardSshConnectivity":{"hostname":"","password":"","port":0,"privateKey":"","username":""},"gcsProfile":{"bucket":"","rootPath":""},"labels":{},"mysqlProfile":{"hostname":"","password":"","port":0,"sslConfig":{"caCertificate":"","caCertificateSet":false,"clientCertificate":"","clientCertificateSet":false,"clientKey":"","clientKeySet":false},"username":""},"name":"","oracleProfile":{"connectionAttributes":{},"databaseService":"","hostname":"","password":"","port":0,"username":""},"postgresqlProfile":{"database":"","hostname":"","password":"","port":0,"username":""},"privateConnectivity":{"privateConnection":""},"staticServiceIpConnectivity":{},"updateTime":""},"connectionProfileName":"","fullHierarchy":false,"hierarchyDepth":0,"mysqlRdbms":{"mysqlDatabases":[{"database":"","mysqlTables":[{"mysqlColumns":[{"collation":"","column":"","dataType":"","length":0,"nullable":false,"ordinalPosition":0,"primaryKey":false}],"table":""}]}]},"oracleRdbms":{"oracleSchemas":[{"oracleTables":[{"oracleColumns":[{"column":"","dataType":"","encoding":"","length":0,"nullable":false,"ordinalPosition":0,"precision":0,"primaryKey":false,"scale":0}],"table":""}],"schema":""}]},"postgresqlRdbms":{"postgresqlSchemas":[{"postgresqlTables":[{"postgresqlColumns":[{"column":"","dataType":"","length":0,"nullable":false,"ordinalPosition":0,"precision":0,"primaryKey":false,"scale":0}],"table":""}],"schema":""}]}}'
};

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 = @{ @"connectionProfile": @{ @"bigqueryProfile": @{  }, @"createTime": @"", @"displayName": @"", @"forwardSshConnectivity": @{ @"hostname": @"", @"password": @"", @"port": @0, @"privateKey": @"", @"username": @"" }, @"gcsProfile": @{ @"bucket": @"", @"rootPath": @"" }, @"labels": @{  }, @"mysqlProfile": @{ @"hostname": @"", @"password": @"", @"port": @0, @"sslConfig": @{ @"caCertificate": @"", @"caCertificateSet": @NO, @"clientCertificate": @"", @"clientCertificateSet": @NO, @"clientKey": @"", @"clientKeySet": @NO }, @"username": @"" }, @"name": @"", @"oracleProfile": @{ @"connectionAttributes": @{  }, @"databaseService": @"", @"hostname": @"", @"password": @"", @"port": @0, @"username": @"" }, @"postgresqlProfile": @{ @"database": @"", @"hostname": @"", @"password": @"", @"port": @0, @"username": @"" }, @"privateConnectivity": @{ @"privateConnection": @"" }, @"staticServiceIpConnectivity": @{  }, @"updateTime": @"" },
                              @"connectionProfileName": @"",
                              @"fullHierarchy": @NO,
                              @"hierarchyDepth": @0,
                              @"mysqlRdbms": @{ @"mysqlDatabases": @[ @{ @"database": @"", @"mysqlTables": @[ @{ @"mysqlColumns": @[ @{ @"collation": @"", @"column": @"", @"dataType": @"", @"length": @0, @"nullable": @NO, @"ordinalPosition": @0, @"primaryKey": @NO } ], @"table": @"" } ] } ] },
                              @"oracleRdbms": @{ @"oracleSchemas": @[ @{ @"oracleTables": @[ @{ @"oracleColumns": @[ @{ @"column": @"", @"dataType": @"", @"encoding": @"", @"length": @0, @"nullable": @NO, @"ordinalPosition": @0, @"precision": @0, @"primaryKey": @NO, @"scale": @0 } ], @"table": @"" } ], @"schema": @"" } ] },
                              @"postgresqlRdbms": @{ @"postgresqlSchemas": @[ @{ @"postgresqlTables": @[ @{ @"postgresqlColumns": @[ @{ @"column": @"", @"dataType": @"", @"length": @0, @"nullable": @NO, @"ordinalPosition": @0, @"precision": @0, @"primaryKey": @NO, @"scale": @0 } ], @"table": @"" } ], @"schema": @"" } ] } };

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

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/v1/:parent/connectionProfiles:discover"]
                                                       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/:parent/connectionProfiles:discover" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"connectionProfile\": {\n    \"bigqueryProfile\": {},\n    \"createTime\": \"\",\n    \"displayName\": \"\",\n    \"forwardSshConnectivity\": {\n      \"hostname\": \"\",\n      \"password\": \"\",\n      \"port\": 0,\n      \"privateKey\": \"\",\n      \"username\": \"\"\n    },\n    \"gcsProfile\": {\n      \"bucket\": \"\",\n      \"rootPath\": \"\"\n    },\n    \"labels\": {},\n    \"mysqlProfile\": {\n      \"hostname\": \"\",\n      \"password\": \"\",\n      \"port\": 0,\n      \"sslConfig\": {\n        \"caCertificate\": \"\",\n        \"caCertificateSet\": false,\n        \"clientCertificate\": \"\",\n        \"clientCertificateSet\": false,\n        \"clientKey\": \"\",\n        \"clientKeySet\": false\n      },\n      \"username\": \"\"\n    },\n    \"name\": \"\",\n    \"oracleProfile\": {\n      \"connectionAttributes\": {},\n      \"databaseService\": \"\",\n      \"hostname\": \"\",\n      \"password\": \"\",\n      \"port\": 0,\n      \"username\": \"\"\n    },\n    \"postgresqlProfile\": {\n      \"database\": \"\",\n      \"hostname\": \"\",\n      \"password\": \"\",\n      \"port\": 0,\n      \"username\": \"\"\n    },\n    \"privateConnectivity\": {\n      \"privateConnection\": \"\"\n    },\n    \"staticServiceIpConnectivity\": {},\n    \"updateTime\": \"\"\n  },\n  \"connectionProfileName\": \"\",\n  \"fullHierarchy\": false,\n  \"hierarchyDepth\": 0,\n  \"mysqlRdbms\": {\n    \"mysqlDatabases\": [\n      {\n        \"database\": \"\",\n        \"mysqlTables\": [\n          {\n            \"mysqlColumns\": [\n              {\n                \"collation\": \"\",\n                \"column\": \"\",\n                \"dataType\": \"\",\n                \"length\": 0,\n                \"nullable\": false,\n                \"ordinalPosition\": 0,\n                \"primaryKey\": false\n              }\n            ],\n            \"table\": \"\"\n          }\n        ]\n      }\n    ]\n  },\n  \"oracleRdbms\": {\n    \"oracleSchemas\": [\n      {\n        \"oracleTables\": [\n          {\n            \"oracleColumns\": [\n              {\n                \"column\": \"\",\n                \"dataType\": \"\",\n                \"encoding\": \"\",\n                \"length\": 0,\n                \"nullable\": false,\n                \"ordinalPosition\": 0,\n                \"precision\": 0,\n                \"primaryKey\": false,\n                \"scale\": 0\n              }\n            ],\n            \"table\": \"\"\n          }\n        ],\n        \"schema\": \"\"\n      }\n    ]\n  },\n  \"postgresqlRdbms\": {\n    \"postgresqlSchemas\": [\n      {\n        \"postgresqlTables\": [\n          {\n            \"postgresqlColumns\": [\n              {\n                \"column\": \"\",\n                \"dataType\": \"\",\n                \"length\": 0,\n                \"nullable\": false,\n                \"ordinalPosition\": 0,\n                \"precision\": 0,\n                \"primaryKey\": false,\n                \"scale\": 0\n              }\n            ],\n            \"table\": \"\"\n          }\n        ],\n        \"schema\": \"\"\n      }\n    ]\n  }\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/v1/:parent/connectionProfiles:discover",
  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([
    'connectionProfile' => [
        'bigqueryProfile' => [
                
        ],
        'createTime' => '',
        'displayName' => '',
        'forwardSshConnectivity' => [
                'hostname' => '',
                'password' => '',
                'port' => 0,
                'privateKey' => '',
                'username' => ''
        ],
        'gcsProfile' => [
                'bucket' => '',
                'rootPath' => ''
        ],
        'labels' => [
                
        ],
        'mysqlProfile' => [
                'hostname' => '',
                'password' => '',
                'port' => 0,
                'sslConfig' => [
                                'caCertificate' => '',
                                'caCertificateSet' => null,
                                'clientCertificate' => '',
                                'clientCertificateSet' => null,
                                'clientKey' => '',
                                'clientKeySet' => null
                ],
                'username' => ''
        ],
        'name' => '',
        'oracleProfile' => [
                'connectionAttributes' => [
                                
                ],
                'databaseService' => '',
                'hostname' => '',
                'password' => '',
                'port' => 0,
                'username' => ''
        ],
        'postgresqlProfile' => [
                'database' => '',
                'hostname' => '',
                'password' => '',
                'port' => 0,
                'username' => ''
        ],
        'privateConnectivity' => [
                'privateConnection' => ''
        ],
        'staticServiceIpConnectivity' => [
                
        ],
        'updateTime' => ''
    ],
    'connectionProfileName' => '',
    'fullHierarchy' => null,
    'hierarchyDepth' => 0,
    'mysqlRdbms' => [
        'mysqlDatabases' => [
                [
                                'database' => '',
                                'mysqlTables' => [
                                                                [
                                                                                                                                'mysqlColumns' => [
                                                                                                                                                                                                                                                                [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'collation' => '',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'column' => '',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'dataType' => '',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'length' => 0,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'nullable' => null,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'ordinalPosition' => 0,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'primaryKey' => null
                                                                                                                                                                                                                                                                ]
                                                                                                                                ],
                                                                                                                                'table' => ''
                                                                ]
                                ]
                ]
        ]
    ],
    'oracleRdbms' => [
        'oracleSchemas' => [
                [
                                'oracleTables' => [
                                                                [
                                                                                                                                'oracleColumns' => [
                                                                                                                                                                                                                                                                [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'column' => '',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'dataType' => '',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'encoding' => '',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'length' => 0,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'nullable' => null,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'ordinalPosition' => 0,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'precision' => 0,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'primaryKey' => null,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'scale' => 0
                                                                                                                                                                                                                                                                ]
                                                                                                                                ],
                                                                                                                                'table' => ''
                                                                ]
                                ],
                                'schema' => ''
                ]
        ]
    ],
    'postgresqlRdbms' => [
        'postgresqlSchemas' => [
                [
                                'postgresqlTables' => [
                                                                [
                                                                                                                                'postgresqlColumns' => [
                                                                                                                                                                                                                                                                [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'column' => '',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'dataType' => '',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'length' => 0,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'nullable' => null,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'ordinalPosition' => 0,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'precision' => 0,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'primaryKey' => null,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'scale' => 0
                                                                                                                                                                                                                                                                ]
                                                                                                                                ],
                                                                                                                                'table' => ''
                                                                ]
                                ],
                                'schema' => ''
                ]
        ]
    ]
  ]),
  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/:parent/connectionProfiles:discover', [
  'body' => '{
  "connectionProfile": {
    "bigqueryProfile": {},
    "createTime": "",
    "displayName": "",
    "forwardSshConnectivity": {
      "hostname": "",
      "password": "",
      "port": 0,
      "privateKey": "",
      "username": ""
    },
    "gcsProfile": {
      "bucket": "",
      "rootPath": ""
    },
    "labels": {},
    "mysqlProfile": {
      "hostname": "",
      "password": "",
      "port": 0,
      "sslConfig": {
        "caCertificate": "",
        "caCertificateSet": false,
        "clientCertificate": "",
        "clientCertificateSet": false,
        "clientKey": "",
        "clientKeySet": false
      },
      "username": ""
    },
    "name": "",
    "oracleProfile": {
      "connectionAttributes": {},
      "databaseService": "",
      "hostname": "",
      "password": "",
      "port": 0,
      "username": ""
    },
    "postgresqlProfile": {
      "database": "",
      "hostname": "",
      "password": "",
      "port": 0,
      "username": ""
    },
    "privateConnectivity": {
      "privateConnection": ""
    },
    "staticServiceIpConnectivity": {},
    "updateTime": ""
  },
  "connectionProfileName": "",
  "fullHierarchy": false,
  "hierarchyDepth": 0,
  "mysqlRdbms": {
    "mysqlDatabases": [
      {
        "database": "",
        "mysqlTables": [
          {
            "mysqlColumns": [
              {
                "collation": "",
                "column": "",
                "dataType": "",
                "length": 0,
                "nullable": false,
                "ordinalPosition": 0,
                "primaryKey": false
              }
            ],
            "table": ""
          }
        ]
      }
    ]
  },
  "oracleRdbms": {
    "oracleSchemas": [
      {
        "oracleTables": [
          {
            "oracleColumns": [
              {
                "column": "",
                "dataType": "",
                "encoding": "",
                "length": 0,
                "nullable": false,
                "ordinalPosition": 0,
                "precision": 0,
                "primaryKey": false,
                "scale": 0
              }
            ],
            "table": ""
          }
        ],
        "schema": ""
      }
    ]
  },
  "postgresqlRdbms": {
    "postgresqlSchemas": [
      {
        "postgresqlTables": [
          {
            "postgresqlColumns": [
              {
                "column": "",
                "dataType": "",
                "length": 0,
                "nullable": false,
                "ordinalPosition": 0,
                "precision": 0,
                "primaryKey": false,
                "scale": 0
              }
            ],
            "table": ""
          }
        ],
        "schema": ""
      }
    ]
  }
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/v1/:parent/connectionProfiles:discover');
$request->setMethod(HTTP_METH_POST);

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

$request->setContentType('application/json');
$request->setBody(json_encode([
  'connectionProfile' => [
    'bigqueryProfile' => [
        
    ],
    'createTime' => '',
    'displayName' => '',
    'forwardSshConnectivity' => [
        'hostname' => '',
        'password' => '',
        'port' => 0,
        'privateKey' => '',
        'username' => ''
    ],
    'gcsProfile' => [
        'bucket' => '',
        'rootPath' => ''
    ],
    'labels' => [
        
    ],
    'mysqlProfile' => [
        'hostname' => '',
        'password' => '',
        'port' => 0,
        'sslConfig' => [
                'caCertificate' => '',
                'caCertificateSet' => null,
                'clientCertificate' => '',
                'clientCertificateSet' => null,
                'clientKey' => '',
                'clientKeySet' => null
        ],
        'username' => ''
    ],
    'name' => '',
    'oracleProfile' => [
        'connectionAttributes' => [
                
        ],
        'databaseService' => '',
        'hostname' => '',
        'password' => '',
        'port' => 0,
        'username' => ''
    ],
    'postgresqlProfile' => [
        'database' => '',
        'hostname' => '',
        'password' => '',
        'port' => 0,
        'username' => ''
    ],
    'privateConnectivity' => [
        'privateConnection' => ''
    ],
    'staticServiceIpConnectivity' => [
        
    ],
    'updateTime' => ''
  ],
  'connectionProfileName' => '',
  'fullHierarchy' => null,
  'hierarchyDepth' => 0,
  'mysqlRdbms' => [
    'mysqlDatabases' => [
        [
                'database' => '',
                'mysqlTables' => [
                                [
                                                                'mysqlColumns' => [
                                                                                                                                [
                                                                                                                                                                                                                                                                'collation' => '',
                                                                                                                                                                                                                                                                'column' => '',
                                                                                                                                                                                                                                                                'dataType' => '',
                                                                                                                                                                                                                                                                'length' => 0,
                                                                                                                                                                                                                                                                'nullable' => null,
                                                                                                                                                                                                                                                                'ordinalPosition' => 0,
                                                                                                                                                                                                                                                                'primaryKey' => null
                                                                                                                                ]
                                                                ],
                                                                'table' => ''
                                ]
                ]
        ]
    ]
  ],
  'oracleRdbms' => [
    'oracleSchemas' => [
        [
                'oracleTables' => [
                                [
                                                                'oracleColumns' => [
                                                                                                                                [
                                                                                                                                                                                                                                                                'column' => '',
                                                                                                                                                                                                                                                                'dataType' => '',
                                                                                                                                                                                                                                                                'encoding' => '',
                                                                                                                                                                                                                                                                'length' => 0,
                                                                                                                                                                                                                                                                'nullable' => null,
                                                                                                                                                                                                                                                                'ordinalPosition' => 0,
                                                                                                                                                                                                                                                                'precision' => 0,
                                                                                                                                                                                                                                                                'primaryKey' => null,
                                                                                                                                                                                                                                                                'scale' => 0
                                                                                                                                ]
                                                                ],
                                                                'table' => ''
                                ]
                ],
                'schema' => ''
        ]
    ]
  ],
  'postgresqlRdbms' => [
    'postgresqlSchemas' => [
        [
                'postgresqlTables' => [
                                [
                                                                'postgresqlColumns' => [
                                                                                                                                [
                                                                                                                                                                                                                                                                'column' => '',
                                                                                                                                                                                                                                                                'dataType' => '',
                                                                                                                                                                                                                                                                'length' => 0,
                                                                                                                                                                                                                                                                'nullable' => null,
                                                                                                                                                                                                                                                                'ordinalPosition' => 0,
                                                                                                                                                                                                                                                                'precision' => 0,
                                                                                                                                                                                                                                                                'primaryKey' => null,
                                                                                                                                                                                                                                                                'scale' => 0
                                                                                                                                ]
                                                                ],
                                                                'table' => ''
                                ]
                ],
                'schema' => ''
        ]
    ]
  ]
]));

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'connectionProfile' => [
    'bigqueryProfile' => [
        
    ],
    'createTime' => '',
    'displayName' => '',
    'forwardSshConnectivity' => [
        'hostname' => '',
        'password' => '',
        'port' => 0,
        'privateKey' => '',
        'username' => ''
    ],
    'gcsProfile' => [
        'bucket' => '',
        'rootPath' => ''
    ],
    'labels' => [
        
    ],
    'mysqlProfile' => [
        'hostname' => '',
        'password' => '',
        'port' => 0,
        'sslConfig' => [
                'caCertificate' => '',
                'caCertificateSet' => null,
                'clientCertificate' => '',
                'clientCertificateSet' => null,
                'clientKey' => '',
                'clientKeySet' => null
        ],
        'username' => ''
    ],
    'name' => '',
    'oracleProfile' => [
        'connectionAttributes' => [
                
        ],
        'databaseService' => '',
        'hostname' => '',
        'password' => '',
        'port' => 0,
        'username' => ''
    ],
    'postgresqlProfile' => [
        'database' => '',
        'hostname' => '',
        'password' => '',
        'port' => 0,
        'username' => ''
    ],
    'privateConnectivity' => [
        'privateConnection' => ''
    ],
    'staticServiceIpConnectivity' => [
        
    ],
    'updateTime' => ''
  ],
  'connectionProfileName' => '',
  'fullHierarchy' => null,
  'hierarchyDepth' => 0,
  'mysqlRdbms' => [
    'mysqlDatabases' => [
        [
                'database' => '',
                'mysqlTables' => [
                                [
                                                                'mysqlColumns' => [
                                                                                                                                [
                                                                                                                                                                                                                                                                'collation' => '',
                                                                                                                                                                                                                                                                'column' => '',
                                                                                                                                                                                                                                                                'dataType' => '',
                                                                                                                                                                                                                                                                'length' => 0,
                                                                                                                                                                                                                                                                'nullable' => null,
                                                                                                                                                                                                                                                                'ordinalPosition' => 0,
                                                                                                                                                                                                                                                                'primaryKey' => null
                                                                                                                                ]
                                                                ],
                                                                'table' => ''
                                ]
                ]
        ]
    ]
  ],
  'oracleRdbms' => [
    'oracleSchemas' => [
        [
                'oracleTables' => [
                                [
                                                                'oracleColumns' => [
                                                                                                                                [
                                                                                                                                                                                                                                                                'column' => '',
                                                                                                                                                                                                                                                                'dataType' => '',
                                                                                                                                                                                                                                                                'encoding' => '',
                                                                                                                                                                                                                                                                'length' => 0,
                                                                                                                                                                                                                                                                'nullable' => null,
                                                                                                                                                                                                                                                                'ordinalPosition' => 0,
                                                                                                                                                                                                                                                                'precision' => 0,
                                                                                                                                                                                                                                                                'primaryKey' => null,
                                                                                                                                                                                                                                                                'scale' => 0
                                                                                                                                ]
                                                                ],
                                                                'table' => ''
                                ]
                ],
                'schema' => ''
        ]
    ]
  ],
  'postgresqlRdbms' => [
    'postgresqlSchemas' => [
        [
                'postgresqlTables' => [
                                [
                                                                'postgresqlColumns' => [
                                                                                                                                [
                                                                                                                                                                                                                                                                'column' => '',
                                                                                                                                                                                                                                                                'dataType' => '',
                                                                                                                                                                                                                                                                'length' => 0,
                                                                                                                                                                                                                                                                'nullable' => null,
                                                                                                                                                                                                                                                                'ordinalPosition' => 0,
                                                                                                                                                                                                                                                                'precision' => 0,
                                                                                                                                                                                                                                                                'primaryKey' => null,
                                                                                                                                                                                                                                                                'scale' => 0
                                                                                                                                ]
                                                                ],
                                                                'table' => ''
                                ]
                ],
                'schema' => ''
        ]
    ]
  ]
]));
$request->setRequestUrl('{{baseUrl}}/v1/:parent/connectionProfiles:discover');
$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/:parent/connectionProfiles:discover' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "connectionProfile": {
    "bigqueryProfile": {},
    "createTime": "",
    "displayName": "",
    "forwardSshConnectivity": {
      "hostname": "",
      "password": "",
      "port": 0,
      "privateKey": "",
      "username": ""
    },
    "gcsProfile": {
      "bucket": "",
      "rootPath": ""
    },
    "labels": {},
    "mysqlProfile": {
      "hostname": "",
      "password": "",
      "port": 0,
      "sslConfig": {
        "caCertificate": "",
        "caCertificateSet": false,
        "clientCertificate": "",
        "clientCertificateSet": false,
        "clientKey": "",
        "clientKeySet": false
      },
      "username": ""
    },
    "name": "",
    "oracleProfile": {
      "connectionAttributes": {},
      "databaseService": "",
      "hostname": "",
      "password": "",
      "port": 0,
      "username": ""
    },
    "postgresqlProfile": {
      "database": "",
      "hostname": "",
      "password": "",
      "port": 0,
      "username": ""
    },
    "privateConnectivity": {
      "privateConnection": ""
    },
    "staticServiceIpConnectivity": {},
    "updateTime": ""
  },
  "connectionProfileName": "",
  "fullHierarchy": false,
  "hierarchyDepth": 0,
  "mysqlRdbms": {
    "mysqlDatabases": [
      {
        "database": "",
        "mysqlTables": [
          {
            "mysqlColumns": [
              {
                "collation": "",
                "column": "",
                "dataType": "",
                "length": 0,
                "nullable": false,
                "ordinalPosition": 0,
                "primaryKey": false
              }
            ],
            "table": ""
          }
        ]
      }
    ]
  },
  "oracleRdbms": {
    "oracleSchemas": [
      {
        "oracleTables": [
          {
            "oracleColumns": [
              {
                "column": "",
                "dataType": "",
                "encoding": "",
                "length": 0,
                "nullable": false,
                "ordinalPosition": 0,
                "precision": 0,
                "primaryKey": false,
                "scale": 0
              }
            ],
            "table": ""
          }
        ],
        "schema": ""
      }
    ]
  },
  "postgresqlRdbms": {
    "postgresqlSchemas": [
      {
        "postgresqlTables": [
          {
            "postgresqlColumns": [
              {
                "column": "",
                "dataType": "",
                "length": 0,
                "nullable": false,
                "ordinalPosition": 0,
                "precision": 0,
                "primaryKey": false,
                "scale": 0
              }
            ],
            "table": ""
          }
        ],
        "schema": ""
      }
    ]
  }
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/v1/:parent/connectionProfiles:discover' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "connectionProfile": {
    "bigqueryProfile": {},
    "createTime": "",
    "displayName": "",
    "forwardSshConnectivity": {
      "hostname": "",
      "password": "",
      "port": 0,
      "privateKey": "",
      "username": ""
    },
    "gcsProfile": {
      "bucket": "",
      "rootPath": ""
    },
    "labels": {},
    "mysqlProfile": {
      "hostname": "",
      "password": "",
      "port": 0,
      "sslConfig": {
        "caCertificate": "",
        "caCertificateSet": false,
        "clientCertificate": "",
        "clientCertificateSet": false,
        "clientKey": "",
        "clientKeySet": false
      },
      "username": ""
    },
    "name": "",
    "oracleProfile": {
      "connectionAttributes": {},
      "databaseService": "",
      "hostname": "",
      "password": "",
      "port": 0,
      "username": ""
    },
    "postgresqlProfile": {
      "database": "",
      "hostname": "",
      "password": "",
      "port": 0,
      "username": ""
    },
    "privateConnectivity": {
      "privateConnection": ""
    },
    "staticServiceIpConnectivity": {},
    "updateTime": ""
  },
  "connectionProfileName": "",
  "fullHierarchy": false,
  "hierarchyDepth": 0,
  "mysqlRdbms": {
    "mysqlDatabases": [
      {
        "database": "",
        "mysqlTables": [
          {
            "mysqlColumns": [
              {
                "collation": "",
                "column": "",
                "dataType": "",
                "length": 0,
                "nullable": false,
                "ordinalPosition": 0,
                "primaryKey": false
              }
            ],
            "table": ""
          }
        ]
      }
    ]
  },
  "oracleRdbms": {
    "oracleSchemas": [
      {
        "oracleTables": [
          {
            "oracleColumns": [
              {
                "column": "",
                "dataType": "",
                "encoding": "",
                "length": 0,
                "nullable": false,
                "ordinalPosition": 0,
                "precision": 0,
                "primaryKey": false,
                "scale": 0
              }
            ],
            "table": ""
          }
        ],
        "schema": ""
      }
    ]
  },
  "postgresqlRdbms": {
    "postgresqlSchemas": [
      {
        "postgresqlTables": [
          {
            "postgresqlColumns": [
              {
                "column": "",
                "dataType": "",
                "length": 0,
                "nullable": false,
                "ordinalPosition": 0,
                "precision": 0,
                "primaryKey": false,
                "scale": 0
              }
            ],
            "table": ""
          }
        ],
        "schema": ""
      }
    ]
  }
}'
import http.client

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

payload = "{\n  \"connectionProfile\": {\n    \"bigqueryProfile\": {},\n    \"createTime\": \"\",\n    \"displayName\": \"\",\n    \"forwardSshConnectivity\": {\n      \"hostname\": \"\",\n      \"password\": \"\",\n      \"port\": 0,\n      \"privateKey\": \"\",\n      \"username\": \"\"\n    },\n    \"gcsProfile\": {\n      \"bucket\": \"\",\n      \"rootPath\": \"\"\n    },\n    \"labels\": {},\n    \"mysqlProfile\": {\n      \"hostname\": \"\",\n      \"password\": \"\",\n      \"port\": 0,\n      \"sslConfig\": {\n        \"caCertificate\": \"\",\n        \"caCertificateSet\": false,\n        \"clientCertificate\": \"\",\n        \"clientCertificateSet\": false,\n        \"clientKey\": \"\",\n        \"clientKeySet\": false\n      },\n      \"username\": \"\"\n    },\n    \"name\": \"\",\n    \"oracleProfile\": {\n      \"connectionAttributes\": {},\n      \"databaseService\": \"\",\n      \"hostname\": \"\",\n      \"password\": \"\",\n      \"port\": 0,\n      \"username\": \"\"\n    },\n    \"postgresqlProfile\": {\n      \"database\": \"\",\n      \"hostname\": \"\",\n      \"password\": \"\",\n      \"port\": 0,\n      \"username\": \"\"\n    },\n    \"privateConnectivity\": {\n      \"privateConnection\": \"\"\n    },\n    \"staticServiceIpConnectivity\": {},\n    \"updateTime\": \"\"\n  },\n  \"connectionProfileName\": \"\",\n  \"fullHierarchy\": false,\n  \"hierarchyDepth\": 0,\n  \"mysqlRdbms\": {\n    \"mysqlDatabases\": [\n      {\n        \"database\": \"\",\n        \"mysqlTables\": [\n          {\n            \"mysqlColumns\": [\n              {\n                \"collation\": \"\",\n                \"column\": \"\",\n                \"dataType\": \"\",\n                \"length\": 0,\n                \"nullable\": false,\n                \"ordinalPosition\": 0,\n                \"primaryKey\": false\n              }\n            ],\n            \"table\": \"\"\n          }\n        ]\n      }\n    ]\n  },\n  \"oracleRdbms\": {\n    \"oracleSchemas\": [\n      {\n        \"oracleTables\": [\n          {\n            \"oracleColumns\": [\n              {\n                \"column\": \"\",\n                \"dataType\": \"\",\n                \"encoding\": \"\",\n                \"length\": 0,\n                \"nullable\": false,\n                \"ordinalPosition\": 0,\n                \"precision\": 0,\n                \"primaryKey\": false,\n                \"scale\": 0\n              }\n            ],\n            \"table\": \"\"\n          }\n        ],\n        \"schema\": \"\"\n      }\n    ]\n  },\n  \"postgresqlRdbms\": {\n    \"postgresqlSchemas\": [\n      {\n        \"postgresqlTables\": [\n          {\n            \"postgresqlColumns\": [\n              {\n                \"column\": \"\",\n                \"dataType\": \"\",\n                \"length\": 0,\n                \"nullable\": false,\n                \"ordinalPosition\": 0,\n                \"precision\": 0,\n                \"primaryKey\": false,\n                \"scale\": 0\n              }\n            ],\n            \"table\": \"\"\n          }\n        ],\n        \"schema\": \"\"\n      }\n    ]\n  }\n}"

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

conn.request("POST", "/baseUrl/v1/:parent/connectionProfiles:discover", payload, headers)

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

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

url = "{{baseUrl}}/v1/:parent/connectionProfiles:discover"

payload = {
    "connectionProfile": {
        "bigqueryProfile": {},
        "createTime": "",
        "displayName": "",
        "forwardSshConnectivity": {
            "hostname": "",
            "password": "",
            "port": 0,
            "privateKey": "",
            "username": ""
        },
        "gcsProfile": {
            "bucket": "",
            "rootPath": ""
        },
        "labels": {},
        "mysqlProfile": {
            "hostname": "",
            "password": "",
            "port": 0,
            "sslConfig": {
                "caCertificate": "",
                "caCertificateSet": False,
                "clientCertificate": "",
                "clientCertificateSet": False,
                "clientKey": "",
                "clientKeySet": False
            },
            "username": ""
        },
        "name": "",
        "oracleProfile": {
            "connectionAttributes": {},
            "databaseService": "",
            "hostname": "",
            "password": "",
            "port": 0,
            "username": ""
        },
        "postgresqlProfile": {
            "database": "",
            "hostname": "",
            "password": "",
            "port": 0,
            "username": ""
        },
        "privateConnectivity": { "privateConnection": "" },
        "staticServiceIpConnectivity": {},
        "updateTime": ""
    },
    "connectionProfileName": "",
    "fullHierarchy": False,
    "hierarchyDepth": 0,
    "mysqlRdbms": { "mysqlDatabases": [
            {
                "database": "",
                "mysqlTables": [
                    {
                        "mysqlColumns": [
                            {
                                "collation": "",
                                "column": "",
                                "dataType": "",
                                "length": 0,
                                "nullable": False,
                                "ordinalPosition": 0,
                                "primaryKey": False
                            }
                        ],
                        "table": ""
                    }
                ]
            }
        ] },
    "oracleRdbms": { "oracleSchemas": [
            {
                "oracleTables": [
                    {
                        "oracleColumns": [
                            {
                                "column": "",
                                "dataType": "",
                                "encoding": "",
                                "length": 0,
                                "nullable": False,
                                "ordinalPosition": 0,
                                "precision": 0,
                                "primaryKey": False,
                                "scale": 0
                            }
                        ],
                        "table": ""
                    }
                ],
                "schema": ""
            }
        ] },
    "postgresqlRdbms": { "postgresqlSchemas": [
            {
                "postgresqlTables": [
                    {
                        "postgresqlColumns": [
                            {
                                "column": "",
                                "dataType": "",
                                "length": 0,
                                "nullable": False,
                                "ordinalPosition": 0,
                                "precision": 0,
                                "primaryKey": False,
                                "scale": 0
                            }
                        ],
                        "table": ""
                    }
                ],
                "schema": ""
            }
        ] }
}
headers = {"content-type": "application/json"}

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

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

url <- "{{baseUrl}}/v1/:parent/connectionProfiles:discover"

payload <- "{\n  \"connectionProfile\": {\n    \"bigqueryProfile\": {},\n    \"createTime\": \"\",\n    \"displayName\": \"\",\n    \"forwardSshConnectivity\": {\n      \"hostname\": \"\",\n      \"password\": \"\",\n      \"port\": 0,\n      \"privateKey\": \"\",\n      \"username\": \"\"\n    },\n    \"gcsProfile\": {\n      \"bucket\": \"\",\n      \"rootPath\": \"\"\n    },\n    \"labels\": {},\n    \"mysqlProfile\": {\n      \"hostname\": \"\",\n      \"password\": \"\",\n      \"port\": 0,\n      \"sslConfig\": {\n        \"caCertificate\": \"\",\n        \"caCertificateSet\": false,\n        \"clientCertificate\": \"\",\n        \"clientCertificateSet\": false,\n        \"clientKey\": \"\",\n        \"clientKeySet\": false\n      },\n      \"username\": \"\"\n    },\n    \"name\": \"\",\n    \"oracleProfile\": {\n      \"connectionAttributes\": {},\n      \"databaseService\": \"\",\n      \"hostname\": \"\",\n      \"password\": \"\",\n      \"port\": 0,\n      \"username\": \"\"\n    },\n    \"postgresqlProfile\": {\n      \"database\": \"\",\n      \"hostname\": \"\",\n      \"password\": \"\",\n      \"port\": 0,\n      \"username\": \"\"\n    },\n    \"privateConnectivity\": {\n      \"privateConnection\": \"\"\n    },\n    \"staticServiceIpConnectivity\": {},\n    \"updateTime\": \"\"\n  },\n  \"connectionProfileName\": \"\",\n  \"fullHierarchy\": false,\n  \"hierarchyDepth\": 0,\n  \"mysqlRdbms\": {\n    \"mysqlDatabases\": [\n      {\n        \"database\": \"\",\n        \"mysqlTables\": [\n          {\n            \"mysqlColumns\": [\n              {\n                \"collation\": \"\",\n                \"column\": \"\",\n                \"dataType\": \"\",\n                \"length\": 0,\n                \"nullable\": false,\n                \"ordinalPosition\": 0,\n                \"primaryKey\": false\n              }\n            ],\n            \"table\": \"\"\n          }\n        ]\n      }\n    ]\n  },\n  \"oracleRdbms\": {\n    \"oracleSchemas\": [\n      {\n        \"oracleTables\": [\n          {\n            \"oracleColumns\": [\n              {\n                \"column\": \"\",\n                \"dataType\": \"\",\n                \"encoding\": \"\",\n                \"length\": 0,\n                \"nullable\": false,\n                \"ordinalPosition\": 0,\n                \"precision\": 0,\n                \"primaryKey\": false,\n                \"scale\": 0\n              }\n            ],\n            \"table\": \"\"\n          }\n        ],\n        \"schema\": \"\"\n      }\n    ]\n  },\n  \"postgresqlRdbms\": {\n    \"postgresqlSchemas\": [\n      {\n        \"postgresqlTables\": [\n          {\n            \"postgresqlColumns\": [\n              {\n                \"column\": \"\",\n                \"dataType\": \"\",\n                \"length\": 0,\n                \"nullable\": false,\n                \"ordinalPosition\": 0,\n                \"precision\": 0,\n                \"primaryKey\": false,\n                \"scale\": 0\n              }\n            ],\n            \"table\": \"\"\n          }\n        ],\n        \"schema\": \"\"\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/:parent/connectionProfiles:discover")

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  \"connectionProfile\": {\n    \"bigqueryProfile\": {},\n    \"createTime\": \"\",\n    \"displayName\": \"\",\n    \"forwardSshConnectivity\": {\n      \"hostname\": \"\",\n      \"password\": \"\",\n      \"port\": 0,\n      \"privateKey\": \"\",\n      \"username\": \"\"\n    },\n    \"gcsProfile\": {\n      \"bucket\": \"\",\n      \"rootPath\": \"\"\n    },\n    \"labels\": {},\n    \"mysqlProfile\": {\n      \"hostname\": \"\",\n      \"password\": \"\",\n      \"port\": 0,\n      \"sslConfig\": {\n        \"caCertificate\": \"\",\n        \"caCertificateSet\": false,\n        \"clientCertificate\": \"\",\n        \"clientCertificateSet\": false,\n        \"clientKey\": \"\",\n        \"clientKeySet\": false\n      },\n      \"username\": \"\"\n    },\n    \"name\": \"\",\n    \"oracleProfile\": {\n      \"connectionAttributes\": {},\n      \"databaseService\": \"\",\n      \"hostname\": \"\",\n      \"password\": \"\",\n      \"port\": 0,\n      \"username\": \"\"\n    },\n    \"postgresqlProfile\": {\n      \"database\": \"\",\n      \"hostname\": \"\",\n      \"password\": \"\",\n      \"port\": 0,\n      \"username\": \"\"\n    },\n    \"privateConnectivity\": {\n      \"privateConnection\": \"\"\n    },\n    \"staticServiceIpConnectivity\": {},\n    \"updateTime\": \"\"\n  },\n  \"connectionProfileName\": \"\",\n  \"fullHierarchy\": false,\n  \"hierarchyDepth\": 0,\n  \"mysqlRdbms\": {\n    \"mysqlDatabases\": [\n      {\n        \"database\": \"\",\n        \"mysqlTables\": [\n          {\n            \"mysqlColumns\": [\n              {\n                \"collation\": \"\",\n                \"column\": \"\",\n                \"dataType\": \"\",\n                \"length\": 0,\n                \"nullable\": false,\n                \"ordinalPosition\": 0,\n                \"primaryKey\": false\n              }\n            ],\n            \"table\": \"\"\n          }\n        ]\n      }\n    ]\n  },\n  \"oracleRdbms\": {\n    \"oracleSchemas\": [\n      {\n        \"oracleTables\": [\n          {\n            \"oracleColumns\": [\n              {\n                \"column\": \"\",\n                \"dataType\": \"\",\n                \"encoding\": \"\",\n                \"length\": 0,\n                \"nullable\": false,\n                \"ordinalPosition\": 0,\n                \"precision\": 0,\n                \"primaryKey\": false,\n                \"scale\": 0\n              }\n            ],\n            \"table\": \"\"\n          }\n        ],\n        \"schema\": \"\"\n      }\n    ]\n  },\n  \"postgresqlRdbms\": {\n    \"postgresqlSchemas\": [\n      {\n        \"postgresqlTables\": [\n          {\n            \"postgresqlColumns\": [\n              {\n                \"column\": \"\",\n                \"dataType\": \"\",\n                \"length\": 0,\n                \"nullable\": false,\n                \"ordinalPosition\": 0,\n                \"precision\": 0,\n                \"primaryKey\": false,\n                \"scale\": 0\n              }\n            ],\n            \"table\": \"\"\n          }\n        ],\n        \"schema\": \"\"\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/:parent/connectionProfiles:discover') do |req|
  req.body = "{\n  \"connectionProfile\": {\n    \"bigqueryProfile\": {},\n    \"createTime\": \"\",\n    \"displayName\": \"\",\n    \"forwardSshConnectivity\": {\n      \"hostname\": \"\",\n      \"password\": \"\",\n      \"port\": 0,\n      \"privateKey\": \"\",\n      \"username\": \"\"\n    },\n    \"gcsProfile\": {\n      \"bucket\": \"\",\n      \"rootPath\": \"\"\n    },\n    \"labels\": {},\n    \"mysqlProfile\": {\n      \"hostname\": \"\",\n      \"password\": \"\",\n      \"port\": 0,\n      \"sslConfig\": {\n        \"caCertificate\": \"\",\n        \"caCertificateSet\": false,\n        \"clientCertificate\": \"\",\n        \"clientCertificateSet\": false,\n        \"clientKey\": \"\",\n        \"clientKeySet\": false\n      },\n      \"username\": \"\"\n    },\n    \"name\": \"\",\n    \"oracleProfile\": {\n      \"connectionAttributes\": {},\n      \"databaseService\": \"\",\n      \"hostname\": \"\",\n      \"password\": \"\",\n      \"port\": 0,\n      \"username\": \"\"\n    },\n    \"postgresqlProfile\": {\n      \"database\": \"\",\n      \"hostname\": \"\",\n      \"password\": \"\",\n      \"port\": 0,\n      \"username\": \"\"\n    },\n    \"privateConnectivity\": {\n      \"privateConnection\": \"\"\n    },\n    \"staticServiceIpConnectivity\": {},\n    \"updateTime\": \"\"\n  },\n  \"connectionProfileName\": \"\",\n  \"fullHierarchy\": false,\n  \"hierarchyDepth\": 0,\n  \"mysqlRdbms\": {\n    \"mysqlDatabases\": [\n      {\n        \"database\": \"\",\n        \"mysqlTables\": [\n          {\n            \"mysqlColumns\": [\n              {\n                \"collation\": \"\",\n                \"column\": \"\",\n                \"dataType\": \"\",\n                \"length\": 0,\n                \"nullable\": false,\n                \"ordinalPosition\": 0,\n                \"primaryKey\": false\n              }\n            ],\n            \"table\": \"\"\n          }\n        ]\n      }\n    ]\n  },\n  \"oracleRdbms\": {\n    \"oracleSchemas\": [\n      {\n        \"oracleTables\": [\n          {\n            \"oracleColumns\": [\n              {\n                \"column\": \"\",\n                \"dataType\": \"\",\n                \"encoding\": \"\",\n                \"length\": 0,\n                \"nullable\": false,\n                \"ordinalPosition\": 0,\n                \"precision\": 0,\n                \"primaryKey\": false,\n                \"scale\": 0\n              }\n            ],\n            \"table\": \"\"\n          }\n        ],\n        \"schema\": \"\"\n      }\n    ]\n  },\n  \"postgresqlRdbms\": {\n    \"postgresqlSchemas\": [\n      {\n        \"postgresqlTables\": [\n          {\n            \"postgresqlColumns\": [\n              {\n                \"column\": \"\",\n                \"dataType\": \"\",\n                \"length\": 0,\n                \"nullable\": false,\n                \"ordinalPosition\": 0,\n                \"precision\": 0,\n                \"primaryKey\": false,\n                \"scale\": 0\n              }\n            ],\n            \"table\": \"\"\n          }\n        ],\n        \"schema\": \"\"\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/:parent/connectionProfiles:discover";

    let payload = json!({
        "connectionProfile": json!({
            "bigqueryProfile": json!({}),
            "createTime": "",
            "displayName": "",
            "forwardSshConnectivity": json!({
                "hostname": "",
                "password": "",
                "port": 0,
                "privateKey": "",
                "username": ""
            }),
            "gcsProfile": json!({
                "bucket": "",
                "rootPath": ""
            }),
            "labels": json!({}),
            "mysqlProfile": json!({
                "hostname": "",
                "password": "",
                "port": 0,
                "sslConfig": json!({
                    "caCertificate": "",
                    "caCertificateSet": false,
                    "clientCertificate": "",
                    "clientCertificateSet": false,
                    "clientKey": "",
                    "clientKeySet": false
                }),
                "username": ""
            }),
            "name": "",
            "oracleProfile": json!({
                "connectionAttributes": json!({}),
                "databaseService": "",
                "hostname": "",
                "password": "",
                "port": 0,
                "username": ""
            }),
            "postgresqlProfile": json!({
                "database": "",
                "hostname": "",
                "password": "",
                "port": 0,
                "username": ""
            }),
            "privateConnectivity": json!({"privateConnection": ""}),
            "staticServiceIpConnectivity": json!({}),
            "updateTime": ""
        }),
        "connectionProfileName": "",
        "fullHierarchy": false,
        "hierarchyDepth": 0,
        "mysqlRdbms": json!({"mysqlDatabases": (
                json!({
                    "database": "",
                    "mysqlTables": (
                        json!({
                            "mysqlColumns": (
                                json!({
                                    "collation": "",
                                    "column": "",
                                    "dataType": "",
                                    "length": 0,
                                    "nullable": false,
                                    "ordinalPosition": 0,
                                    "primaryKey": false
                                })
                            ),
                            "table": ""
                        })
                    )
                })
            )}),
        "oracleRdbms": json!({"oracleSchemas": (
                json!({
                    "oracleTables": (
                        json!({
                            "oracleColumns": (
                                json!({
                                    "column": "",
                                    "dataType": "",
                                    "encoding": "",
                                    "length": 0,
                                    "nullable": false,
                                    "ordinalPosition": 0,
                                    "precision": 0,
                                    "primaryKey": false,
                                    "scale": 0
                                })
                            ),
                            "table": ""
                        })
                    ),
                    "schema": ""
                })
            )}),
        "postgresqlRdbms": json!({"postgresqlSchemas": (
                json!({
                    "postgresqlTables": (
                        json!({
                            "postgresqlColumns": (
                                json!({
                                    "column": "",
                                    "dataType": "",
                                    "length": 0,
                                    "nullable": false,
                                    "ordinalPosition": 0,
                                    "precision": 0,
                                    "primaryKey": false,
                                    "scale": 0
                                })
                            ),
                            "table": ""
                        })
                    ),
                    "schema": ""
                })
            )})
    });

    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/:parent/connectionProfiles:discover \
  --header 'content-type: application/json' \
  --data '{
  "connectionProfile": {
    "bigqueryProfile": {},
    "createTime": "",
    "displayName": "",
    "forwardSshConnectivity": {
      "hostname": "",
      "password": "",
      "port": 0,
      "privateKey": "",
      "username": ""
    },
    "gcsProfile": {
      "bucket": "",
      "rootPath": ""
    },
    "labels": {},
    "mysqlProfile": {
      "hostname": "",
      "password": "",
      "port": 0,
      "sslConfig": {
        "caCertificate": "",
        "caCertificateSet": false,
        "clientCertificate": "",
        "clientCertificateSet": false,
        "clientKey": "",
        "clientKeySet": false
      },
      "username": ""
    },
    "name": "",
    "oracleProfile": {
      "connectionAttributes": {},
      "databaseService": "",
      "hostname": "",
      "password": "",
      "port": 0,
      "username": ""
    },
    "postgresqlProfile": {
      "database": "",
      "hostname": "",
      "password": "",
      "port": 0,
      "username": ""
    },
    "privateConnectivity": {
      "privateConnection": ""
    },
    "staticServiceIpConnectivity": {},
    "updateTime": ""
  },
  "connectionProfileName": "",
  "fullHierarchy": false,
  "hierarchyDepth": 0,
  "mysqlRdbms": {
    "mysqlDatabases": [
      {
        "database": "",
        "mysqlTables": [
          {
            "mysqlColumns": [
              {
                "collation": "",
                "column": "",
                "dataType": "",
                "length": 0,
                "nullable": false,
                "ordinalPosition": 0,
                "primaryKey": false
              }
            ],
            "table": ""
          }
        ]
      }
    ]
  },
  "oracleRdbms": {
    "oracleSchemas": [
      {
        "oracleTables": [
          {
            "oracleColumns": [
              {
                "column": "",
                "dataType": "",
                "encoding": "",
                "length": 0,
                "nullable": false,
                "ordinalPosition": 0,
                "precision": 0,
                "primaryKey": false,
                "scale": 0
              }
            ],
            "table": ""
          }
        ],
        "schema": ""
      }
    ]
  },
  "postgresqlRdbms": {
    "postgresqlSchemas": [
      {
        "postgresqlTables": [
          {
            "postgresqlColumns": [
              {
                "column": "",
                "dataType": "",
                "length": 0,
                "nullable": false,
                "ordinalPosition": 0,
                "precision": 0,
                "primaryKey": false,
                "scale": 0
              }
            ],
            "table": ""
          }
        ],
        "schema": ""
      }
    ]
  }
}'
echo '{
  "connectionProfile": {
    "bigqueryProfile": {},
    "createTime": "",
    "displayName": "",
    "forwardSshConnectivity": {
      "hostname": "",
      "password": "",
      "port": 0,
      "privateKey": "",
      "username": ""
    },
    "gcsProfile": {
      "bucket": "",
      "rootPath": ""
    },
    "labels": {},
    "mysqlProfile": {
      "hostname": "",
      "password": "",
      "port": 0,
      "sslConfig": {
        "caCertificate": "",
        "caCertificateSet": false,
        "clientCertificate": "",
        "clientCertificateSet": false,
        "clientKey": "",
        "clientKeySet": false
      },
      "username": ""
    },
    "name": "",
    "oracleProfile": {
      "connectionAttributes": {},
      "databaseService": "",
      "hostname": "",
      "password": "",
      "port": 0,
      "username": ""
    },
    "postgresqlProfile": {
      "database": "",
      "hostname": "",
      "password": "",
      "port": 0,
      "username": ""
    },
    "privateConnectivity": {
      "privateConnection": ""
    },
    "staticServiceIpConnectivity": {},
    "updateTime": ""
  },
  "connectionProfileName": "",
  "fullHierarchy": false,
  "hierarchyDepth": 0,
  "mysqlRdbms": {
    "mysqlDatabases": [
      {
        "database": "",
        "mysqlTables": [
          {
            "mysqlColumns": [
              {
                "collation": "",
                "column": "",
                "dataType": "",
                "length": 0,
                "nullable": false,
                "ordinalPosition": 0,
                "primaryKey": false
              }
            ],
            "table": ""
          }
        ]
      }
    ]
  },
  "oracleRdbms": {
    "oracleSchemas": [
      {
        "oracleTables": [
          {
            "oracleColumns": [
              {
                "column": "",
                "dataType": "",
                "encoding": "",
                "length": 0,
                "nullable": false,
                "ordinalPosition": 0,
                "precision": 0,
                "primaryKey": false,
                "scale": 0
              }
            ],
            "table": ""
          }
        ],
        "schema": ""
      }
    ]
  },
  "postgresqlRdbms": {
    "postgresqlSchemas": [
      {
        "postgresqlTables": [
          {
            "postgresqlColumns": [
              {
                "column": "",
                "dataType": "",
                "length": 0,
                "nullable": false,
                "ordinalPosition": 0,
                "precision": 0,
                "primaryKey": false,
                "scale": 0
              }
            ],
            "table": ""
          }
        ],
        "schema": ""
      }
    ]
  }
}' |  \
  http POST {{baseUrl}}/v1/:parent/connectionProfiles:discover \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "connectionProfile": {\n    "bigqueryProfile": {},\n    "createTime": "",\n    "displayName": "",\n    "forwardSshConnectivity": {\n      "hostname": "",\n      "password": "",\n      "port": 0,\n      "privateKey": "",\n      "username": ""\n    },\n    "gcsProfile": {\n      "bucket": "",\n      "rootPath": ""\n    },\n    "labels": {},\n    "mysqlProfile": {\n      "hostname": "",\n      "password": "",\n      "port": 0,\n      "sslConfig": {\n        "caCertificate": "",\n        "caCertificateSet": false,\n        "clientCertificate": "",\n        "clientCertificateSet": false,\n        "clientKey": "",\n        "clientKeySet": false\n      },\n      "username": ""\n    },\n    "name": "",\n    "oracleProfile": {\n      "connectionAttributes": {},\n      "databaseService": "",\n      "hostname": "",\n      "password": "",\n      "port": 0,\n      "username": ""\n    },\n    "postgresqlProfile": {\n      "database": "",\n      "hostname": "",\n      "password": "",\n      "port": 0,\n      "username": ""\n    },\n    "privateConnectivity": {\n      "privateConnection": ""\n    },\n    "staticServiceIpConnectivity": {},\n    "updateTime": ""\n  },\n  "connectionProfileName": "",\n  "fullHierarchy": false,\n  "hierarchyDepth": 0,\n  "mysqlRdbms": {\n    "mysqlDatabases": [\n      {\n        "database": "",\n        "mysqlTables": [\n          {\n            "mysqlColumns": [\n              {\n                "collation": "",\n                "column": "",\n                "dataType": "",\n                "length": 0,\n                "nullable": false,\n                "ordinalPosition": 0,\n                "primaryKey": false\n              }\n            ],\n            "table": ""\n          }\n        ]\n      }\n    ]\n  },\n  "oracleRdbms": {\n    "oracleSchemas": [\n      {\n        "oracleTables": [\n          {\n            "oracleColumns": [\n              {\n                "column": "",\n                "dataType": "",\n                "encoding": "",\n                "length": 0,\n                "nullable": false,\n                "ordinalPosition": 0,\n                "precision": 0,\n                "primaryKey": false,\n                "scale": 0\n              }\n            ],\n            "table": ""\n          }\n        ],\n        "schema": ""\n      }\n    ]\n  },\n  "postgresqlRdbms": {\n    "postgresqlSchemas": [\n      {\n        "postgresqlTables": [\n          {\n            "postgresqlColumns": [\n              {\n                "column": "",\n                "dataType": "",\n                "length": 0,\n                "nullable": false,\n                "ordinalPosition": 0,\n                "precision": 0,\n                "primaryKey": false,\n                "scale": 0\n              }\n            ],\n            "table": ""\n          }\n        ],\n        "schema": ""\n      }\n    ]\n  }\n}' \
  --output-document \
  - {{baseUrl}}/v1/:parent/connectionProfiles:discover
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "connectionProfile": [
    "bigqueryProfile": [],
    "createTime": "",
    "displayName": "",
    "forwardSshConnectivity": [
      "hostname": "",
      "password": "",
      "port": 0,
      "privateKey": "",
      "username": ""
    ],
    "gcsProfile": [
      "bucket": "",
      "rootPath": ""
    ],
    "labels": [],
    "mysqlProfile": [
      "hostname": "",
      "password": "",
      "port": 0,
      "sslConfig": [
        "caCertificate": "",
        "caCertificateSet": false,
        "clientCertificate": "",
        "clientCertificateSet": false,
        "clientKey": "",
        "clientKeySet": false
      ],
      "username": ""
    ],
    "name": "",
    "oracleProfile": [
      "connectionAttributes": [],
      "databaseService": "",
      "hostname": "",
      "password": "",
      "port": 0,
      "username": ""
    ],
    "postgresqlProfile": [
      "database": "",
      "hostname": "",
      "password": "",
      "port": 0,
      "username": ""
    ],
    "privateConnectivity": ["privateConnection": ""],
    "staticServiceIpConnectivity": [],
    "updateTime": ""
  ],
  "connectionProfileName": "",
  "fullHierarchy": false,
  "hierarchyDepth": 0,
  "mysqlRdbms": ["mysqlDatabases": [
      [
        "database": "",
        "mysqlTables": [
          [
            "mysqlColumns": [
              [
                "collation": "",
                "column": "",
                "dataType": "",
                "length": 0,
                "nullable": false,
                "ordinalPosition": 0,
                "primaryKey": false
              ]
            ],
            "table": ""
          ]
        ]
      ]
    ]],
  "oracleRdbms": ["oracleSchemas": [
      [
        "oracleTables": [
          [
            "oracleColumns": [
              [
                "column": "",
                "dataType": "",
                "encoding": "",
                "length": 0,
                "nullable": false,
                "ordinalPosition": 0,
                "precision": 0,
                "primaryKey": false,
                "scale": 0
              ]
            ],
            "table": ""
          ]
        ],
        "schema": ""
      ]
    ]],
  "postgresqlRdbms": ["postgresqlSchemas": [
      [
        "postgresqlTables": [
          [
            "postgresqlColumns": [
              [
                "column": "",
                "dataType": "",
                "length": 0,
                "nullable": false,
                "ordinalPosition": 0,
                "precision": 0,
                "primaryKey": false,
                "scale": 0
              ]
            ],
            "table": ""
          ]
        ],
        "schema": ""
      ]
    ]]
] as [String : Any]

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

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/v1/:parent/connectionProfiles:discover")! 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()
GET datastream.projects.locations.connectionProfiles.list
{{baseUrl}}/v1/:parent/connectionProfiles
QUERY PARAMS

parent
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/v1/:parent/connectionProfiles");

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

(client/get "{{baseUrl}}/v1/:parent/connectionProfiles")
require "http/client"

url = "{{baseUrl}}/v1/:parent/connectionProfiles"

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/:parent/connectionProfiles"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/v1/:parent/connectionProfiles");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

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

func main() {

	url := "{{baseUrl}}/v1/:parent/connectionProfiles"

	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/:parent/connectionProfiles HTTP/1.1
Host: example.com

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

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/v1/:parent/connectionProfiles"))
    .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/:parent/connectionProfiles")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/v1/:parent/connectionProfiles")
  .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/:parent/connectionProfiles');

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

const options = {
  method: 'GET',
  url: '{{baseUrl}}/v1/:parent/connectionProfiles'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/v1/:parent/connectionProfiles';
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/:parent/connectionProfiles',
  method: 'GET',
  headers: {}
};

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

val request = Request.Builder()
  .url("{{baseUrl}}/v1/:parent/connectionProfiles")
  .get()
  .build()

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

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/v1/:parent/connectionProfiles',
  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/:parent/connectionProfiles'
};

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/:parent/connectionProfiles');

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/:parent/connectionProfiles'
};

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

const url = '{{baseUrl}}/v1/:parent/connectionProfiles';
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/:parent/connectionProfiles"]
                                                       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/:parent/connectionProfiles" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/v1/:parent/connectionProfiles",
  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/:parent/connectionProfiles');

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

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

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

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

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

conn.request("GET", "/baseUrl/v1/:parent/connectionProfiles")

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

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

url = "{{baseUrl}}/v1/:parent/connectionProfiles"

response = requests.get(url)

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

url <- "{{baseUrl}}/v1/:parent/connectionProfiles"

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

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

url = URI("{{baseUrl}}/v1/:parent/connectionProfiles")

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/:parent/connectionProfiles') do |req|
end

puts response.status
puts response.body
use reqwest;

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

    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/:parent/connectionProfiles
http GET {{baseUrl}}/v1/:parent/connectionProfiles
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/v1/:parent/connectionProfiles
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/v1/:parent/connectionProfiles")! 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 datastream.projects.locations.fetchStaticIps
{{baseUrl}}/v1/:name:fetchStaticIps
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:fetchStaticIps");

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

(client/get "{{baseUrl}}/v1/:name:fetchStaticIps")
require "http/client"

url = "{{baseUrl}}/v1/:name:fetchStaticIps"

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:fetchStaticIps"),
};
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:fetchStaticIps");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

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

func main() {

	url := "{{baseUrl}}/v1/:name:fetchStaticIps"

	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:fetchStaticIps HTTP/1.1
Host: example.com

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

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/v1/:name:fetchStaticIps"))
    .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:fetchStaticIps")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/v1/:name:fetchStaticIps")
  .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:fetchStaticIps');

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

const options = {method: 'GET', url: '{{baseUrl}}/v1/:name:fetchStaticIps'};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/v1/:name:fetchStaticIps';
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:fetchStaticIps',
  method: 'GET',
  headers: {}
};

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

val request = Request.Builder()
  .url("{{baseUrl}}/v1/:name:fetchStaticIps")
  .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:fetchStaticIps',
  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:fetchStaticIps'};

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:fetchStaticIps');

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:fetchStaticIps'};

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:fetchStaticIps';
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:fetchStaticIps"]
                                                       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:fetchStaticIps" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/v1/:name:fetchStaticIps",
  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:fetchStaticIps');

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

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

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

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

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

conn.request("GET", "/baseUrl/v1/:name:fetchStaticIps")

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

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

url = "{{baseUrl}}/v1/:name:fetchStaticIps"

response = requests.get(url)

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

url <- "{{baseUrl}}/v1/:name:fetchStaticIps"

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

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

url = URI("{{baseUrl}}/v1/:name:fetchStaticIps")

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:fetchStaticIps') do |req|
end

puts response.status
puts response.body
use reqwest;

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

    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:fetchStaticIps
http GET {{baseUrl}}/v1/:name:fetchStaticIps
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/v1/:name:fetchStaticIps
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/v1/:name:fetchStaticIps")! 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 datastream.projects.locations.list
{{baseUrl}}/v1/:name/locations
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/locations");

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

(client/get "{{baseUrl}}/v1/:name/locations")
require "http/client"

url = "{{baseUrl}}/v1/:name/locations"

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/locations"),
};
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/locations");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

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

func main() {

	url := "{{baseUrl}}/v1/:name/locations"

	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/locations HTTP/1.1
Host: example.com

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

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/v1/:name/locations"))
    .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/locations")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/v1/:name/locations")
  .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/locations');

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

const options = {method: 'GET', url: '{{baseUrl}}/v1/:name/locations'};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/v1/:name/locations';
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/locations',
  method: 'GET',
  headers: {}
};

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

val request = Request.Builder()
  .url("{{baseUrl}}/v1/:name/locations")
  .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/locations',
  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/locations'};

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/locations');

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/locations'};

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/locations';
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/locations"]
                                                       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/locations" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/v1/:name/locations",
  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/locations');

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

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

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

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

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

conn.request("GET", "/baseUrl/v1/:name/locations")

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

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

url = "{{baseUrl}}/v1/:name/locations"

response = requests.get(url)

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

url <- "{{baseUrl}}/v1/:name/locations"

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

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

url = URI("{{baseUrl}}/v1/:name/locations")

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/locations') do |req|
end

puts response.status
puts response.body
use reqwest;

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

    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/locations
http GET {{baseUrl}}/v1/:name/locations
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/v1/:name/locations
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/v1/:name/locations")! 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 datastream.projects.locations.operations.cancel
{{baseUrl}}/v1/:name:cancel
QUERY PARAMS

name
BODY json

{}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/v1/:name:cancel");

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, "{}");

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

(client/post "{{baseUrl}}/v1/:name:cancel" {:content-type :json})
require "http/client"

url = "{{baseUrl}}/v1/:name:cancel"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{}"

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/:name:cancel"),
    Content = new StringContent("{}")
    {
        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/:name:cancel");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

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

func main() {

	url := "{{baseUrl}}/v1/:name:cancel"

	payload := strings.NewReader("{}")

	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/:name:cancel HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 2

{}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/v1/:name:cancel")
  .setHeader("content-type", "application/json")
  .setBody("{}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/v1/:name:cancel"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{}"))
    .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, "{}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/v1/:name:cancel")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/v1/:name:cancel")
  .header("content-type", "application/json")
  .body("{}")
  .asString();
const data = JSON.stringify({});

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.setRequestHeader('content-type', 'application/json');

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

const options = {
  method: 'POST',
  url: '{{baseUrl}}/v1/:name:cancel',
  headers: {'content-type': 'application/json'},
  data: {}
};

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', headers: {'content-type': 'application/json'}, body: '{}'};

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: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{}'
};

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

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{}")
val request = Request.Builder()
  .url("{{baseUrl}}/v1/:name:cancel")
  .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/:name:cancel',
  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({}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/v1/:name:cancel',
  headers: {'content-type': 'application/json'},
  body: {},
  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/:name:cancel');

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

req.type('json');
req.send({});

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',
  headers: {'content-type': 'application/json'},
  data: {}
};

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', headers: {'content-type': 'application/json'}, body: '{}'};

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 = @{  };

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

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/v1/:name:cancel"]
                                                       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/:name:cancel" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{}" in

Client.call ~headers ~body `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",
  CURLOPT_POSTFIELDS => json_encode([
    
  ]),
  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/:name:cancel', [
  'body' => '{}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

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

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

$request->setContentType('application/json');
$request->setBody(json_encode([
  
]));

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  
]));
$request->setRequestUrl('{{baseUrl}}/v1/:name:cancel');
$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/:name:cancel' -Method POST -Headers $headers -ContentType 'application/json' -Body '{}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/v1/:name:cancel' -Method POST -Headers $headers -ContentType 'application/json' -Body '{}'
import http.client

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

payload = "{}"

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

conn.request("POST", "/baseUrl/v1/:name:cancel", payload, headers)

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

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

url = "{{baseUrl}}/v1/:name:cancel"

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

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

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

url <- "{{baseUrl}}/v1/:name:cancel"

payload <- "{}"

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/:name:cancel")

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 = "{}"

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/:name:cancel') do |req|
  req.body = "{}"
end

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

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

    let payload = 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/:name:cancel \
  --header 'content-type: application/json' \
  --data '{}'
echo '{}' |  \
  http POST {{baseUrl}}/v1/:name:cancel \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{}' \
  --output-document \
  - {{baseUrl}}/v1/:name:cancel
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [] as [String : Any]

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

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/v1/:name:cancel")! 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()
GET datastream.projects.locations.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 datastream.projects.locations.privateConnections.create
{{baseUrl}}/v1/:parent/privateConnections
QUERY PARAMS

parent
BODY json

{
  "createTime": "",
  "displayName": "",
  "error": {
    "details": {},
    "errorTime": "",
    "errorUuid": "",
    "message": "",
    "reason": ""
  },
  "labels": {},
  "name": "",
  "state": "",
  "updateTime": "",
  "vpcPeeringConfig": {
    "subnet": "",
    "vpc": ""
  }
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/v1/:parent/privateConnections");

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  \"createTime\": \"\",\n  \"displayName\": \"\",\n  \"error\": {\n    \"details\": {},\n    \"errorTime\": \"\",\n    \"errorUuid\": \"\",\n    \"message\": \"\",\n    \"reason\": \"\"\n  },\n  \"labels\": {},\n  \"name\": \"\",\n  \"state\": \"\",\n  \"updateTime\": \"\",\n  \"vpcPeeringConfig\": {\n    \"subnet\": \"\",\n    \"vpc\": \"\"\n  }\n}");

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

(client/post "{{baseUrl}}/v1/:parent/privateConnections" {:content-type :json
                                                                          :form-params {:createTime ""
                                                                                        :displayName ""
                                                                                        :error {:details {}
                                                                                                :errorTime ""
                                                                                                :errorUuid ""
                                                                                                :message ""
                                                                                                :reason ""}
                                                                                        :labels {}
                                                                                        :name ""
                                                                                        :state ""
                                                                                        :updateTime ""
                                                                                        :vpcPeeringConfig {:subnet ""
                                                                                                           :vpc ""}}})
require "http/client"

url = "{{baseUrl}}/v1/:parent/privateConnections"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"createTime\": \"\",\n  \"displayName\": \"\",\n  \"error\": {\n    \"details\": {},\n    \"errorTime\": \"\",\n    \"errorUuid\": \"\",\n    \"message\": \"\",\n    \"reason\": \"\"\n  },\n  \"labels\": {},\n  \"name\": \"\",\n  \"state\": \"\",\n  \"updateTime\": \"\",\n  \"vpcPeeringConfig\": {\n    \"subnet\": \"\",\n    \"vpc\": \"\"\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/:parent/privateConnections"),
    Content = new StringContent("{\n  \"createTime\": \"\",\n  \"displayName\": \"\",\n  \"error\": {\n    \"details\": {},\n    \"errorTime\": \"\",\n    \"errorUuid\": \"\",\n    \"message\": \"\",\n    \"reason\": \"\"\n  },\n  \"labels\": {},\n  \"name\": \"\",\n  \"state\": \"\",\n  \"updateTime\": \"\",\n  \"vpcPeeringConfig\": {\n    \"subnet\": \"\",\n    \"vpc\": \"\"\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/:parent/privateConnections");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"createTime\": \"\",\n  \"displayName\": \"\",\n  \"error\": {\n    \"details\": {},\n    \"errorTime\": \"\",\n    \"errorUuid\": \"\",\n    \"message\": \"\",\n    \"reason\": \"\"\n  },\n  \"labels\": {},\n  \"name\": \"\",\n  \"state\": \"\",\n  \"updateTime\": \"\",\n  \"vpcPeeringConfig\": {\n    \"subnet\": \"\",\n    \"vpc\": \"\"\n  }\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

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

func main() {

	url := "{{baseUrl}}/v1/:parent/privateConnections"

	payload := strings.NewReader("{\n  \"createTime\": \"\",\n  \"displayName\": \"\",\n  \"error\": {\n    \"details\": {},\n    \"errorTime\": \"\",\n    \"errorUuid\": \"\",\n    \"message\": \"\",\n    \"reason\": \"\"\n  },\n  \"labels\": {},\n  \"name\": \"\",\n  \"state\": \"\",\n  \"updateTime\": \"\",\n  \"vpcPeeringConfig\": {\n    \"subnet\": \"\",\n    \"vpc\": \"\"\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/:parent/privateConnections HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 284

{
  "createTime": "",
  "displayName": "",
  "error": {
    "details": {},
    "errorTime": "",
    "errorUuid": "",
    "message": "",
    "reason": ""
  },
  "labels": {},
  "name": "",
  "state": "",
  "updateTime": "",
  "vpcPeeringConfig": {
    "subnet": "",
    "vpc": ""
  }
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/v1/:parent/privateConnections")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"createTime\": \"\",\n  \"displayName\": \"\",\n  \"error\": {\n    \"details\": {},\n    \"errorTime\": \"\",\n    \"errorUuid\": \"\",\n    \"message\": \"\",\n    \"reason\": \"\"\n  },\n  \"labels\": {},\n  \"name\": \"\",\n  \"state\": \"\",\n  \"updateTime\": \"\",\n  \"vpcPeeringConfig\": {\n    \"subnet\": \"\",\n    \"vpc\": \"\"\n  }\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/v1/:parent/privateConnections"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"createTime\": \"\",\n  \"displayName\": \"\",\n  \"error\": {\n    \"details\": {},\n    \"errorTime\": \"\",\n    \"errorUuid\": \"\",\n    \"message\": \"\",\n    \"reason\": \"\"\n  },\n  \"labels\": {},\n  \"name\": \"\",\n  \"state\": \"\",\n  \"updateTime\": \"\",\n  \"vpcPeeringConfig\": {\n    \"subnet\": \"\",\n    \"vpc\": \"\"\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  \"createTime\": \"\",\n  \"displayName\": \"\",\n  \"error\": {\n    \"details\": {},\n    \"errorTime\": \"\",\n    \"errorUuid\": \"\",\n    \"message\": \"\",\n    \"reason\": \"\"\n  },\n  \"labels\": {},\n  \"name\": \"\",\n  \"state\": \"\",\n  \"updateTime\": \"\",\n  \"vpcPeeringConfig\": {\n    \"subnet\": \"\",\n    \"vpc\": \"\"\n  }\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/v1/:parent/privateConnections")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/v1/:parent/privateConnections")
  .header("content-type", "application/json")
  .body("{\n  \"createTime\": \"\",\n  \"displayName\": \"\",\n  \"error\": {\n    \"details\": {},\n    \"errorTime\": \"\",\n    \"errorUuid\": \"\",\n    \"message\": \"\",\n    \"reason\": \"\"\n  },\n  \"labels\": {},\n  \"name\": \"\",\n  \"state\": \"\",\n  \"updateTime\": \"\",\n  \"vpcPeeringConfig\": {\n    \"subnet\": \"\",\n    \"vpc\": \"\"\n  }\n}")
  .asString();
const data = JSON.stringify({
  createTime: '',
  displayName: '',
  error: {
    details: {},
    errorTime: '',
    errorUuid: '',
    message: '',
    reason: ''
  },
  labels: {},
  name: '',
  state: '',
  updateTime: '',
  vpcPeeringConfig: {
    subnet: '',
    vpc: ''
  }
});

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/:parent/privateConnections');
xhr.setRequestHeader('content-type', 'application/json');

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

const options = {
  method: 'POST',
  url: '{{baseUrl}}/v1/:parent/privateConnections',
  headers: {'content-type': 'application/json'},
  data: {
    createTime: '',
    displayName: '',
    error: {details: {}, errorTime: '', errorUuid: '', message: '', reason: ''},
    labels: {},
    name: '',
    state: '',
    updateTime: '',
    vpcPeeringConfig: {subnet: '', vpc: ''}
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/v1/:parent/privateConnections';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"createTime":"","displayName":"","error":{"details":{},"errorTime":"","errorUuid":"","message":"","reason":""},"labels":{},"name":"","state":"","updateTime":"","vpcPeeringConfig":{"subnet":"","vpc":""}}'
};

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/:parent/privateConnections',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "createTime": "",\n  "displayName": "",\n  "error": {\n    "details": {},\n    "errorTime": "",\n    "errorUuid": "",\n    "message": "",\n    "reason": ""\n  },\n  "labels": {},\n  "name": "",\n  "state": "",\n  "updateTime": "",\n  "vpcPeeringConfig": {\n    "subnet": "",\n    "vpc": ""\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  \"createTime\": \"\",\n  \"displayName\": \"\",\n  \"error\": {\n    \"details\": {},\n    \"errorTime\": \"\",\n    \"errorUuid\": \"\",\n    \"message\": \"\",\n    \"reason\": \"\"\n  },\n  \"labels\": {},\n  \"name\": \"\",\n  \"state\": \"\",\n  \"updateTime\": \"\",\n  \"vpcPeeringConfig\": {\n    \"subnet\": \"\",\n    \"vpc\": \"\"\n  }\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/v1/:parent/privateConnections")
  .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/:parent/privateConnections',
  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({
  createTime: '',
  displayName: '',
  error: {details: {}, errorTime: '', errorUuid: '', message: '', reason: ''},
  labels: {},
  name: '',
  state: '',
  updateTime: '',
  vpcPeeringConfig: {subnet: '', vpc: ''}
}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/v1/:parent/privateConnections',
  headers: {'content-type': 'application/json'},
  body: {
    createTime: '',
    displayName: '',
    error: {details: {}, errorTime: '', errorUuid: '', message: '', reason: ''},
    labels: {},
    name: '',
    state: '',
    updateTime: '',
    vpcPeeringConfig: {subnet: '', vpc: ''}
  },
  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/:parent/privateConnections');

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

req.type('json');
req.send({
  createTime: '',
  displayName: '',
  error: {
    details: {},
    errorTime: '',
    errorUuid: '',
    message: '',
    reason: ''
  },
  labels: {},
  name: '',
  state: '',
  updateTime: '',
  vpcPeeringConfig: {
    subnet: '',
    vpc: ''
  }
});

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/:parent/privateConnections',
  headers: {'content-type': 'application/json'},
  data: {
    createTime: '',
    displayName: '',
    error: {details: {}, errorTime: '', errorUuid: '', message: '', reason: ''},
    labels: {},
    name: '',
    state: '',
    updateTime: '',
    vpcPeeringConfig: {subnet: '', vpc: ''}
  }
};

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

const url = '{{baseUrl}}/v1/:parent/privateConnections';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"createTime":"","displayName":"","error":{"details":{},"errorTime":"","errorUuid":"","message":"","reason":""},"labels":{},"name":"","state":"","updateTime":"","vpcPeeringConfig":{"subnet":"","vpc":""}}'
};

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 = @{ @"createTime": @"",
                              @"displayName": @"",
                              @"error": @{ @"details": @{  }, @"errorTime": @"", @"errorUuid": @"", @"message": @"", @"reason": @"" },
                              @"labels": @{  },
                              @"name": @"",
                              @"state": @"",
                              @"updateTime": @"",
                              @"vpcPeeringConfig": @{ @"subnet": @"", @"vpc": @"" } };

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

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/v1/:parent/privateConnections"]
                                                       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/:parent/privateConnections" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"createTime\": \"\",\n  \"displayName\": \"\",\n  \"error\": {\n    \"details\": {},\n    \"errorTime\": \"\",\n    \"errorUuid\": \"\",\n    \"message\": \"\",\n    \"reason\": \"\"\n  },\n  \"labels\": {},\n  \"name\": \"\",\n  \"state\": \"\",\n  \"updateTime\": \"\",\n  \"vpcPeeringConfig\": {\n    \"subnet\": \"\",\n    \"vpc\": \"\"\n  }\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/v1/:parent/privateConnections",
  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([
    'createTime' => '',
    'displayName' => '',
    'error' => [
        'details' => [
                
        ],
        'errorTime' => '',
        'errorUuid' => '',
        'message' => '',
        'reason' => ''
    ],
    'labels' => [
        
    ],
    'name' => '',
    'state' => '',
    'updateTime' => '',
    'vpcPeeringConfig' => [
        'subnet' => '',
        'vpc' => ''
    ]
  ]),
  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/:parent/privateConnections', [
  'body' => '{
  "createTime": "",
  "displayName": "",
  "error": {
    "details": {},
    "errorTime": "",
    "errorUuid": "",
    "message": "",
    "reason": ""
  },
  "labels": {},
  "name": "",
  "state": "",
  "updateTime": "",
  "vpcPeeringConfig": {
    "subnet": "",
    "vpc": ""
  }
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

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

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

$request->setContentType('application/json');
$request->setBody(json_encode([
  'createTime' => '',
  'displayName' => '',
  'error' => [
    'details' => [
        
    ],
    'errorTime' => '',
    'errorUuid' => '',
    'message' => '',
    'reason' => ''
  ],
  'labels' => [
    
  ],
  'name' => '',
  'state' => '',
  'updateTime' => '',
  'vpcPeeringConfig' => [
    'subnet' => '',
    'vpc' => ''
  ]
]));

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'createTime' => '',
  'displayName' => '',
  'error' => [
    'details' => [
        
    ],
    'errorTime' => '',
    'errorUuid' => '',
    'message' => '',
    'reason' => ''
  ],
  'labels' => [
    
  ],
  'name' => '',
  'state' => '',
  'updateTime' => '',
  'vpcPeeringConfig' => [
    'subnet' => '',
    'vpc' => ''
  ]
]));
$request->setRequestUrl('{{baseUrl}}/v1/:parent/privateConnections');
$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/:parent/privateConnections' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "createTime": "",
  "displayName": "",
  "error": {
    "details": {},
    "errorTime": "",
    "errorUuid": "",
    "message": "",
    "reason": ""
  },
  "labels": {},
  "name": "",
  "state": "",
  "updateTime": "",
  "vpcPeeringConfig": {
    "subnet": "",
    "vpc": ""
  }
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/v1/:parent/privateConnections' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "createTime": "",
  "displayName": "",
  "error": {
    "details": {},
    "errorTime": "",
    "errorUuid": "",
    "message": "",
    "reason": ""
  },
  "labels": {},
  "name": "",
  "state": "",
  "updateTime": "",
  "vpcPeeringConfig": {
    "subnet": "",
    "vpc": ""
  }
}'
import http.client

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

payload = "{\n  \"createTime\": \"\",\n  \"displayName\": \"\",\n  \"error\": {\n    \"details\": {},\n    \"errorTime\": \"\",\n    \"errorUuid\": \"\",\n    \"message\": \"\",\n    \"reason\": \"\"\n  },\n  \"labels\": {},\n  \"name\": \"\",\n  \"state\": \"\",\n  \"updateTime\": \"\",\n  \"vpcPeeringConfig\": {\n    \"subnet\": \"\",\n    \"vpc\": \"\"\n  }\n}"

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

conn.request("POST", "/baseUrl/v1/:parent/privateConnections", payload, headers)

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

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

url = "{{baseUrl}}/v1/:parent/privateConnections"

payload = {
    "createTime": "",
    "displayName": "",
    "error": {
        "details": {},
        "errorTime": "",
        "errorUuid": "",
        "message": "",
        "reason": ""
    },
    "labels": {},
    "name": "",
    "state": "",
    "updateTime": "",
    "vpcPeeringConfig": {
        "subnet": "",
        "vpc": ""
    }
}
headers = {"content-type": "application/json"}

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

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

url <- "{{baseUrl}}/v1/:parent/privateConnections"

payload <- "{\n  \"createTime\": \"\",\n  \"displayName\": \"\",\n  \"error\": {\n    \"details\": {},\n    \"errorTime\": \"\",\n    \"errorUuid\": \"\",\n    \"message\": \"\",\n    \"reason\": \"\"\n  },\n  \"labels\": {},\n  \"name\": \"\",\n  \"state\": \"\",\n  \"updateTime\": \"\",\n  \"vpcPeeringConfig\": {\n    \"subnet\": \"\",\n    \"vpc\": \"\"\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/:parent/privateConnections")

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  \"createTime\": \"\",\n  \"displayName\": \"\",\n  \"error\": {\n    \"details\": {},\n    \"errorTime\": \"\",\n    \"errorUuid\": \"\",\n    \"message\": \"\",\n    \"reason\": \"\"\n  },\n  \"labels\": {},\n  \"name\": \"\",\n  \"state\": \"\",\n  \"updateTime\": \"\",\n  \"vpcPeeringConfig\": {\n    \"subnet\": \"\",\n    \"vpc\": \"\"\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/:parent/privateConnections') do |req|
  req.body = "{\n  \"createTime\": \"\",\n  \"displayName\": \"\",\n  \"error\": {\n    \"details\": {},\n    \"errorTime\": \"\",\n    \"errorUuid\": \"\",\n    \"message\": \"\",\n    \"reason\": \"\"\n  },\n  \"labels\": {},\n  \"name\": \"\",\n  \"state\": \"\",\n  \"updateTime\": \"\",\n  \"vpcPeeringConfig\": {\n    \"subnet\": \"\",\n    \"vpc\": \"\"\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/:parent/privateConnections";

    let payload = json!({
        "createTime": "",
        "displayName": "",
        "error": json!({
            "details": json!({}),
            "errorTime": "",
            "errorUuid": "",
            "message": "",
            "reason": ""
        }),
        "labels": json!({}),
        "name": "",
        "state": "",
        "updateTime": "",
        "vpcPeeringConfig": json!({
            "subnet": "",
            "vpc": ""
        })
    });

    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/:parent/privateConnections \
  --header 'content-type: application/json' \
  --data '{
  "createTime": "",
  "displayName": "",
  "error": {
    "details": {},
    "errorTime": "",
    "errorUuid": "",
    "message": "",
    "reason": ""
  },
  "labels": {},
  "name": "",
  "state": "",
  "updateTime": "",
  "vpcPeeringConfig": {
    "subnet": "",
    "vpc": ""
  }
}'
echo '{
  "createTime": "",
  "displayName": "",
  "error": {
    "details": {},
    "errorTime": "",
    "errorUuid": "",
    "message": "",
    "reason": ""
  },
  "labels": {},
  "name": "",
  "state": "",
  "updateTime": "",
  "vpcPeeringConfig": {
    "subnet": "",
    "vpc": ""
  }
}' |  \
  http POST {{baseUrl}}/v1/:parent/privateConnections \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "createTime": "",\n  "displayName": "",\n  "error": {\n    "details": {},\n    "errorTime": "",\n    "errorUuid": "",\n    "message": "",\n    "reason": ""\n  },\n  "labels": {},\n  "name": "",\n  "state": "",\n  "updateTime": "",\n  "vpcPeeringConfig": {\n    "subnet": "",\n    "vpc": ""\n  }\n}' \
  --output-document \
  - {{baseUrl}}/v1/:parent/privateConnections
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "createTime": "",
  "displayName": "",
  "error": [
    "details": [],
    "errorTime": "",
    "errorUuid": "",
    "message": "",
    "reason": ""
  ],
  "labels": [],
  "name": "",
  "state": "",
  "updateTime": "",
  "vpcPeeringConfig": [
    "subnet": "",
    "vpc": ""
  ]
] as [String : Any]

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

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/v1/:parent/privateConnections")! 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()
GET datastream.projects.locations.privateConnections.list
{{baseUrl}}/v1/:parent/privateConnections
QUERY PARAMS

parent
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/v1/:parent/privateConnections");

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

(client/get "{{baseUrl}}/v1/:parent/privateConnections")
require "http/client"

url = "{{baseUrl}}/v1/:parent/privateConnections"

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/:parent/privateConnections"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/v1/:parent/privateConnections");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

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

func main() {

	url := "{{baseUrl}}/v1/:parent/privateConnections"

	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/:parent/privateConnections HTTP/1.1
Host: example.com

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

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/v1/:parent/privateConnections"))
    .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/:parent/privateConnections")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/v1/:parent/privateConnections")
  .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/:parent/privateConnections');

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

const options = {
  method: 'GET',
  url: '{{baseUrl}}/v1/:parent/privateConnections'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/v1/:parent/privateConnections';
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/:parent/privateConnections',
  method: 'GET',
  headers: {}
};

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

val request = Request.Builder()
  .url("{{baseUrl}}/v1/:parent/privateConnections")
  .get()
  .build()

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

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/v1/:parent/privateConnections',
  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/:parent/privateConnections'
};

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/:parent/privateConnections');

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/:parent/privateConnections'
};

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

const url = '{{baseUrl}}/v1/:parent/privateConnections';
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/:parent/privateConnections"]
                                                       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/:parent/privateConnections" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/v1/:parent/privateConnections",
  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/:parent/privateConnections');

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

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

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

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

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

conn.request("GET", "/baseUrl/v1/:parent/privateConnections")

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

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

url = "{{baseUrl}}/v1/:parent/privateConnections"

response = requests.get(url)

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

url <- "{{baseUrl}}/v1/:parent/privateConnections"

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

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

url = URI("{{baseUrl}}/v1/:parent/privateConnections")

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/:parent/privateConnections') do |req|
end

puts response.status
puts response.body
use reqwest;

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

    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/:parent/privateConnections
http GET {{baseUrl}}/v1/:parent/privateConnections
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/v1/:parent/privateConnections
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/v1/:parent/privateConnections")! 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 datastream.projects.locations.privateConnections.routes.create
{{baseUrl}}/v1/:parent/routes
QUERY PARAMS

parent
BODY json

{
  "createTime": "",
  "destinationAddress": "",
  "destinationPort": 0,
  "displayName": "",
  "labels": {},
  "name": "",
  "updateTime": ""
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/v1/:parent/routes");

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  \"createTime\": \"\",\n  \"destinationAddress\": \"\",\n  \"destinationPort\": 0,\n  \"displayName\": \"\",\n  \"labels\": {},\n  \"name\": \"\",\n  \"updateTime\": \"\"\n}");

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

(client/post "{{baseUrl}}/v1/:parent/routes" {:content-type :json
                                                              :form-params {:createTime ""
                                                                            :destinationAddress ""
                                                                            :destinationPort 0
                                                                            :displayName ""
                                                                            :labels {}
                                                                            :name ""
                                                                            :updateTime ""}})
require "http/client"

url = "{{baseUrl}}/v1/:parent/routes"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"createTime\": \"\",\n  \"destinationAddress\": \"\",\n  \"destinationPort\": 0,\n  \"displayName\": \"\",\n  \"labels\": {},\n  \"name\": \"\",\n  \"updateTime\": \"\"\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/:parent/routes"),
    Content = new StringContent("{\n  \"createTime\": \"\",\n  \"destinationAddress\": \"\",\n  \"destinationPort\": 0,\n  \"displayName\": \"\",\n  \"labels\": {},\n  \"name\": \"\",\n  \"updateTime\": \"\"\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/:parent/routes");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"createTime\": \"\",\n  \"destinationAddress\": \"\",\n  \"destinationPort\": 0,\n  \"displayName\": \"\",\n  \"labels\": {},\n  \"name\": \"\",\n  \"updateTime\": \"\"\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

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

func main() {

	url := "{{baseUrl}}/v1/:parent/routes"

	payload := strings.NewReader("{\n  \"createTime\": \"\",\n  \"destinationAddress\": \"\",\n  \"destinationPort\": 0,\n  \"displayName\": \"\",\n  \"labels\": {},\n  \"name\": \"\",\n  \"updateTime\": \"\"\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/:parent/routes HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 145

{
  "createTime": "",
  "destinationAddress": "",
  "destinationPort": 0,
  "displayName": "",
  "labels": {},
  "name": "",
  "updateTime": ""
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/v1/:parent/routes")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"createTime\": \"\",\n  \"destinationAddress\": \"\",\n  \"destinationPort\": 0,\n  \"displayName\": \"\",\n  \"labels\": {},\n  \"name\": \"\",\n  \"updateTime\": \"\"\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/v1/:parent/routes"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"createTime\": \"\",\n  \"destinationAddress\": \"\",\n  \"destinationPort\": 0,\n  \"displayName\": \"\",\n  \"labels\": {},\n  \"name\": \"\",\n  \"updateTime\": \"\"\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  \"createTime\": \"\",\n  \"destinationAddress\": \"\",\n  \"destinationPort\": 0,\n  \"displayName\": \"\",\n  \"labels\": {},\n  \"name\": \"\",\n  \"updateTime\": \"\"\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/v1/:parent/routes")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/v1/:parent/routes")
  .header("content-type", "application/json")
  .body("{\n  \"createTime\": \"\",\n  \"destinationAddress\": \"\",\n  \"destinationPort\": 0,\n  \"displayName\": \"\",\n  \"labels\": {},\n  \"name\": \"\",\n  \"updateTime\": \"\"\n}")
  .asString();
const data = JSON.stringify({
  createTime: '',
  destinationAddress: '',
  destinationPort: 0,
  displayName: '',
  labels: {},
  name: '',
  updateTime: ''
});

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/:parent/routes');
xhr.setRequestHeader('content-type', 'application/json');

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

const options = {
  method: 'POST',
  url: '{{baseUrl}}/v1/:parent/routes',
  headers: {'content-type': 'application/json'},
  data: {
    createTime: '',
    destinationAddress: '',
    destinationPort: 0,
    displayName: '',
    labels: {},
    name: '',
    updateTime: ''
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/v1/:parent/routes';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"createTime":"","destinationAddress":"","destinationPort":0,"displayName":"","labels":{},"name":"","updateTime":""}'
};

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/:parent/routes',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "createTime": "",\n  "destinationAddress": "",\n  "destinationPort": 0,\n  "displayName": "",\n  "labels": {},\n  "name": "",\n  "updateTime": ""\n}'
};

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

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"createTime\": \"\",\n  \"destinationAddress\": \"\",\n  \"destinationPort\": 0,\n  \"displayName\": \"\",\n  \"labels\": {},\n  \"name\": \"\",\n  \"updateTime\": \"\"\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/v1/:parent/routes")
  .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/:parent/routes',
  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({
  createTime: '',
  destinationAddress: '',
  destinationPort: 0,
  displayName: '',
  labels: {},
  name: '',
  updateTime: ''
}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/v1/:parent/routes',
  headers: {'content-type': 'application/json'},
  body: {
    createTime: '',
    destinationAddress: '',
    destinationPort: 0,
    displayName: '',
    labels: {},
    name: '',
    updateTime: ''
  },
  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/:parent/routes');

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

req.type('json');
req.send({
  createTime: '',
  destinationAddress: '',
  destinationPort: 0,
  displayName: '',
  labels: {},
  name: '',
  updateTime: ''
});

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/:parent/routes',
  headers: {'content-type': 'application/json'},
  data: {
    createTime: '',
    destinationAddress: '',
    destinationPort: 0,
    displayName: '',
    labels: {},
    name: '',
    updateTime: ''
  }
};

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

const url = '{{baseUrl}}/v1/:parent/routes';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"createTime":"","destinationAddress":"","destinationPort":0,"displayName":"","labels":{},"name":"","updateTime":""}'
};

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 = @{ @"createTime": @"",
                              @"destinationAddress": @"",
                              @"destinationPort": @0,
                              @"displayName": @"",
                              @"labels": @{  },
                              @"name": @"",
                              @"updateTime": @"" };

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

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/v1/:parent/routes"]
                                                       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/:parent/routes" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"createTime\": \"\",\n  \"destinationAddress\": \"\",\n  \"destinationPort\": 0,\n  \"displayName\": \"\",\n  \"labels\": {},\n  \"name\": \"\",\n  \"updateTime\": \"\"\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/v1/:parent/routes",
  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([
    'createTime' => '',
    'destinationAddress' => '',
    'destinationPort' => 0,
    'displayName' => '',
    'labels' => [
        
    ],
    'name' => '',
    'updateTime' => ''
  ]),
  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/:parent/routes', [
  'body' => '{
  "createTime": "",
  "destinationAddress": "",
  "destinationPort": 0,
  "displayName": "",
  "labels": {},
  "name": "",
  "updateTime": ""
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

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

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

$request->setContentType('application/json');
$request->setBody(json_encode([
  'createTime' => '',
  'destinationAddress' => '',
  'destinationPort' => 0,
  'displayName' => '',
  'labels' => [
    
  ],
  'name' => '',
  'updateTime' => ''
]));

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'createTime' => '',
  'destinationAddress' => '',
  'destinationPort' => 0,
  'displayName' => '',
  'labels' => [
    
  ],
  'name' => '',
  'updateTime' => ''
]));
$request->setRequestUrl('{{baseUrl}}/v1/:parent/routes');
$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/:parent/routes' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "createTime": "",
  "destinationAddress": "",
  "destinationPort": 0,
  "displayName": "",
  "labels": {},
  "name": "",
  "updateTime": ""
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/v1/:parent/routes' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "createTime": "",
  "destinationAddress": "",
  "destinationPort": 0,
  "displayName": "",
  "labels": {},
  "name": "",
  "updateTime": ""
}'
import http.client

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

payload = "{\n  \"createTime\": \"\",\n  \"destinationAddress\": \"\",\n  \"destinationPort\": 0,\n  \"displayName\": \"\",\n  \"labels\": {},\n  \"name\": \"\",\n  \"updateTime\": \"\"\n}"

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

conn.request("POST", "/baseUrl/v1/:parent/routes", payload, headers)

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

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

url = "{{baseUrl}}/v1/:parent/routes"

payload = {
    "createTime": "",
    "destinationAddress": "",
    "destinationPort": 0,
    "displayName": "",
    "labels": {},
    "name": "",
    "updateTime": ""
}
headers = {"content-type": "application/json"}

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

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

url <- "{{baseUrl}}/v1/:parent/routes"

payload <- "{\n  \"createTime\": \"\",\n  \"destinationAddress\": \"\",\n  \"destinationPort\": 0,\n  \"displayName\": \"\",\n  \"labels\": {},\n  \"name\": \"\",\n  \"updateTime\": \"\"\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/:parent/routes")

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  \"createTime\": \"\",\n  \"destinationAddress\": \"\",\n  \"destinationPort\": 0,\n  \"displayName\": \"\",\n  \"labels\": {},\n  \"name\": \"\",\n  \"updateTime\": \"\"\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/:parent/routes') do |req|
  req.body = "{\n  \"createTime\": \"\",\n  \"destinationAddress\": \"\",\n  \"destinationPort\": 0,\n  \"displayName\": \"\",\n  \"labels\": {},\n  \"name\": \"\",\n  \"updateTime\": \"\"\n}"
end

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

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

    let payload = json!({
        "createTime": "",
        "destinationAddress": "",
        "destinationPort": 0,
        "displayName": "",
        "labels": json!({}),
        "name": "",
        "updateTime": ""
    });

    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/:parent/routes \
  --header 'content-type: application/json' \
  --data '{
  "createTime": "",
  "destinationAddress": "",
  "destinationPort": 0,
  "displayName": "",
  "labels": {},
  "name": "",
  "updateTime": ""
}'
echo '{
  "createTime": "",
  "destinationAddress": "",
  "destinationPort": 0,
  "displayName": "",
  "labels": {},
  "name": "",
  "updateTime": ""
}' |  \
  http POST {{baseUrl}}/v1/:parent/routes \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "createTime": "",\n  "destinationAddress": "",\n  "destinationPort": 0,\n  "displayName": "",\n  "labels": {},\n  "name": "",\n  "updateTime": ""\n}' \
  --output-document \
  - {{baseUrl}}/v1/:parent/routes
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "createTime": "",
  "destinationAddress": "",
  "destinationPort": 0,
  "displayName": "",
  "labels": [],
  "name": "",
  "updateTime": ""
] as [String : Any]

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

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/v1/:parent/routes")! 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()
GET datastream.projects.locations.privateConnections.routes.list
{{baseUrl}}/v1/:parent/routes
QUERY PARAMS

parent
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/v1/:parent/routes");

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

(client/get "{{baseUrl}}/v1/:parent/routes")
require "http/client"

url = "{{baseUrl}}/v1/:parent/routes"

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/:parent/routes"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/v1/:parent/routes");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

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

func main() {

	url := "{{baseUrl}}/v1/:parent/routes"

	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/:parent/routes HTTP/1.1
Host: example.com

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

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/v1/:parent/routes"))
    .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/:parent/routes")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/v1/:parent/routes")
  .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/:parent/routes');

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

const options = {method: 'GET', url: '{{baseUrl}}/v1/:parent/routes'};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/v1/:parent/routes';
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/:parent/routes',
  method: 'GET',
  headers: {}
};

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

val request = Request.Builder()
  .url("{{baseUrl}}/v1/:parent/routes")
  .get()
  .build()

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

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/v1/:parent/routes',
  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/:parent/routes'};

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/:parent/routes');

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/:parent/routes'};

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

const url = '{{baseUrl}}/v1/:parent/routes';
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/:parent/routes"]
                                                       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/:parent/routes" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/v1/:parent/routes",
  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/:parent/routes');

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

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

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

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

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

conn.request("GET", "/baseUrl/v1/:parent/routes")

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

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

url = "{{baseUrl}}/v1/:parent/routes"

response = requests.get(url)

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

url <- "{{baseUrl}}/v1/:parent/routes"

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

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

url = URI("{{baseUrl}}/v1/:parent/routes")

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/:parent/routes') do |req|
end

puts response.status
puts response.body
use reqwest;

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

    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/:parent/routes
http GET {{baseUrl}}/v1/:parent/routes
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/v1/:parent/routes
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/v1/:parent/routes")! 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 datastream.projects.locations.streams.create
{{baseUrl}}/v1/:parent/streams
QUERY PARAMS

parent
BODY json

{
  "backfillAll": {
    "mysqlExcludedObjects": {
      "mysqlDatabases": [
        {
          "database": "",
          "mysqlTables": [
            {
              "mysqlColumns": [
                {
                  "collation": "",
                  "column": "",
                  "dataType": "",
                  "length": 0,
                  "nullable": false,
                  "ordinalPosition": 0,
                  "primaryKey": false
                }
              ],
              "table": ""
            }
          ]
        }
      ]
    },
    "oracleExcludedObjects": {
      "oracleSchemas": [
        {
          "oracleTables": [
            {
              "oracleColumns": [
                {
                  "column": "",
                  "dataType": "",
                  "encoding": "",
                  "length": 0,
                  "nullable": false,
                  "ordinalPosition": 0,
                  "precision": 0,
                  "primaryKey": false,
                  "scale": 0
                }
              ],
              "table": ""
            }
          ],
          "schema": ""
        }
      ]
    },
    "postgresqlExcludedObjects": {
      "postgresqlSchemas": [
        {
          "postgresqlTables": [
            {
              "postgresqlColumns": [
                {
                  "column": "",
                  "dataType": "",
                  "length": 0,
                  "nullable": false,
                  "ordinalPosition": 0,
                  "precision": 0,
                  "primaryKey": false,
                  "scale": 0
                }
              ],
              "table": ""
            }
          ],
          "schema": ""
        }
      ]
    }
  },
  "backfillNone": {},
  "createTime": "",
  "customerManagedEncryptionKey": "",
  "destinationConfig": {
    "bigqueryDestinationConfig": {
      "dataFreshness": "",
      "singleTargetDataset": {
        "datasetId": ""
      },
      "sourceHierarchyDatasets": {
        "datasetTemplate": {
          "datasetIdPrefix": "",
          "kmsKeyName": "",
          "location": ""
        }
      }
    },
    "destinationConnectionProfile": "",
    "gcsDestinationConfig": {
      "avroFileFormat": {},
      "fileRotationInterval": "",
      "fileRotationMb": 0,
      "jsonFileFormat": {
        "compression": "",
        "schemaFileFormat": ""
      },
      "path": ""
    }
  },
  "displayName": "",
  "errors": [
    {
      "details": {},
      "errorTime": "",
      "errorUuid": "",
      "message": "",
      "reason": ""
    }
  ],
  "labels": {},
  "name": "",
  "sourceConfig": {
    "mysqlSourceConfig": {
      "excludeObjects": {},
      "includeObjects": {},
      "maxConcurrentBackfillTasks": 0,
      "maxConcurrentCdcTasks": 0
    },
    "oracleSourceConfig": {
      "dropLargeObjects": {},
      "excludeObjects": {},
      "includeObjects": {},
      "maxConcurrentBackfillTasks": 0,
      "maxConcurrentCdcTasks": 0,
      "streamLargeObjects": {}
    },
    "postgresqlSourceConfig": {
      "excludeObjects": {},
      "includeObjects": {},
      "maxConcurrentBackfillTasks": 0,
      "publication": "",
      "replicationSlot": ""
    },
    "sourceConnectionProfile": ""
  },
  "state": "",
  "updateTime": ""
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/v1/:parent/streams");

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  \"backfillAll\": {\n    \"mysqlExcludedObjects\": {\n      \"mysqlDatabases\": [\n        {\n          \"database\": \"\",\n          \"mysqlTables\": [\n            {\n              \"mysqlColumns\": [\n                {\n                  \"collation\": \"\",\n                  \"column\": \"\",\n                  \"dataType\": \"\",\n                  \"length\": 0,\n                  \"nullable\": false,\n                  \"ordinalPosition\": 0,\n                  \"primaryKey\": false\n                }\n              ],\n              \"table\": \"\"\n            }\n          ]\n        }\n      ]\n    },\n    \"oracleExcludedObjects\": {\n      \"oracleSchemas\": [\n        {\n          \"oracleTables\": [\n            {\n              \"oracleColumns\": [\n                {\n                  \"column\": \"\",\n                  \"dataType\": \"\",\n                  \"encoding\": \"\",\n                  \"length\": 0,\n                  \"nullable\": false,\n                  \"ordinalPosition\": 0,\n                  \"precision\": 0,\n                  \"primaryKey\": false,\n                  \"scale\": 0\n                }\n              ],\n              \"table\": \"\"\n            }\n          ],\n          \"schema\": \"\"\n        }\n      ]\n    },\n    \"postgresqlExcludedObjects\": {\n      \"postgresqlSchemas\": [\n        {\n          \"postgresqlTables\": [\n            {\n              \"postgresqlColumns\": [\n                {\n                  \"column\": \"\",\n                  \"dataType\": \"\",\n                  \"length\": 0,\n                  \"nullable\": false,\n                  \"ordinalPosition\": 0,\n                  \"precision\": 0,\n                  \"primaryKey\": false,\n                  \"scale\": 0\n                }\n              ],\n              \"table\": \"\"\n            }\n          ],\n          \"schema\": \"\"\n        }\n      ]\n    }\n  },\n  \"backfillNone\": {},\n  \"createTime\": \"\",\n  \"customerManagedEncryptionKey\": \"\",\n  \"destinationConfig\": {\n    \"bigqueryDestinationConfig\": {\n      \"dataFreshness\": \"\",\n      \"singleTargetDataset\": {\n        \"datasetId\": \"\"\n      },\n      \"sourceHierarchyDatasets\": {\n        \"datasetTemplate\": {\n          \"datasetIdPrefix\": \"\",\n          \"kmsKeyName\": \"\",\n          \"location\": \"\"\n        }\n      }\n    },\n    \"destinationConnectionProfile\": \"\",\n    \"gcsDestinationConfig\": {\n      \"avroFileFormat\": {},\n      \"fileRotationInterval\": \"\",\n      \"fileRotationMb\": 0,\n      \"jsonFileFormat\": {\n        \"compression\": \"\",\n        \"schemaFileFormat\": \"\"\n      },\n      \"path\": \"\"\n    }\n  },\n  \"displayName\": \"\",\n  \"errors\": [\n    {\n      \"details\": {},\n      \"errorTime\": \"\",\n      \"errorUuid\": \"\",\n      \"message\": \"\",\n      \"reason\": \"\"\n    }\n  ],\n  \"labels\": {},\n  \"name\": \"\",\n  \"sourceConfig\": {\n    \"mysqlSourceConfig\": {\n      \"excludeObjects\": {},\n      \"includeObjects\": {},\n      \"maxConcurrentBackfillTasks\": 0,\n      \"maxConcurrentCdcTasks\": 0\n    },\n    \"oracleSourceConfig\": {\n      \"dropLargeObjects\": {},\n      \"excludeObjects\": {},\n      \"includeObjects\": {},\n      \"maxConcurrentBackfillTasks\": 0,\n      \"maxConcurrentCdcTasks\": 0,\n      \"streamLargeObjects\": {}\n    },\n    \"postgresqlSourceConfig\": {\n      \"excludeObjects\": {},\n      \"includeObjects\": {},\n      \"maxConcurrentBackfillTasks\": 0,\n      \"publication\": \"\",\n      \"replicationSlot\": \"\"\n    },\n    \"sourceConnectionProfile\": \"\"\n  },\n  \"state\": \"\",\n  \"updateTime\": \"\"\n}");

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

(client/post "{{baseUrl}}/v1/:parent/streams" {:content-type :json
                                                               :form-params {:backfillAll {:mysqlExcludedObjects {:mysqlDatabases [{:database ""
                                                                                                                                    :mysqlTables [{:mysqlColumns [{:collation ""
                                                                                                                                                                   :column ""
                                                                                                                                                                   :dataType ""
                                                                                                                                                                   :length 0
                                                                                                                                                                   :nullable false
                                                                                                                                                                   :ordinalPosition 0
                                                                                                                                                                   :primaryKey false}]
                                                                                                                                                   :table ""}]}]}
                                                                                           :oracleExcludedObjects {:oracleSchemas [{:oracleTables [{:oracleColumns [{:column ""
                                                                                                                                                                     :dataType ""
                                                                                                                                                                     :encoding ""
                                                                                                                                                                     :length 0
                                                                                                                                                                     :nullable false
                                                                                                                                                                     :ordinalPosition 0
                                                                                                                                                                     :precision 0
                                                                                                                                                                     :primaryKey false
                                                                                                                                                                     :scale 0}]
                                                                                                                                                    :table ""}]
                                                                                                                                    :schema ""}]}
                                                                                           :postgresqlExcludedObjects {:postgresqlSchemas [{:postgresqlTables [{:postgresqlColumns [{:column ""
                                                                                                                                                                                     :dataType ""
                                                                                                                                                                                     :length 0
                                                                                                                                                                                     :nullable false
                                                                                                                                                                                     :ordinalPosition 0
                                                                                                                                                                                     :precision 0
                                                                                                                                                                                     :primaryKey false
                                                                                                                                                                                     :scale 0}]
                                                                                                                                                                :table ""}]
                                                                                                                                            :schema ""}]}}
                                                                             :backfillNone {}
                                                                             :createTime ""
                                                                             :customerManagedEncryptionKey ""
                                                                             :destinationConfig {:bigqueryDestinationConfig {:dataFreshness ""
                                                                                                                             :singleTargetDataset {:datasetId ""}
                                                                                                                             :sourceHierarchyDatasets {:datasetTemplate {:datasetIdPrefix ""
                                                                                                                                                                         :kmsKeyName ""
                                                                                                                                                                         :location ""}}}
                                                                                                 :destinationConnectionProfile ""
                                                                                                 :gcsDestinationConfig {:avroFileFormat {}
                                                                                                                        :fileRotationInterval ""
                                                                                                                        :fileRotationMb 0
                                                                                                                        :jsonFileFormat {:compression ""
                                                                                                                                         :schemaFileFormat ""}
                                                                                                                        :path ""}}
                                                                             :displayName ""
                                                                             :errors [{:details {}
                                                                                       :errorTime ""
                                                                                       :errorUuid ""
                                                                                       :message ""
                                                                                       :reason ""}]
                                                                             :labels {}
                                                                             :name ""
                                                                             :sourceConfig {:mysqlSourceConfig {:excludeObjects {}
                                                                                                                :includeObjects {}
                                                                                                                :maxConcurrentBackfillTasks 0
                                                                                                                :maxConcurrentCdcTasks 0}
                                                                                            :oracleSourceConfig {:dropLargeObjects {}
                                                                                                                 :excludeObjects {}
                                                                                                                 :includeObjects {}
                                                                                                                 :maxConcurrentBackfillTasks 0
                                                                                                                 :maxConcurrentCdcTasks 0
                                                                                                                 :streamLargeObjects {}}
                                                                                            :postgresqlSourceConfig {:excludeObjects {}
                                                                                                                     :includeObjects {}
                                                                                                                     :maxConcurrentBackfillTasks 0
                                                                                                                     :publication ""
                                                                                                                     :replicationSlot ""}
                                                                                            :sourceConnectionProfile ""}
                                                                             :state ""
                                                                             :updateTime ""}})
require "http/client"

url = "{{baseUrl}}/v1/:parent/streams"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"backfillAll\": {\n    \"mysqlExcludedObjects\": {\n      \"mysqlDatabases\": [\n        {\n          \"database\": \"\",\n          \"mysqlTables\": [\n            {\n              \"mysqlColumns\": [\n                {\n                  \"collation\": \"\",\n                  \"column\": \"\",\n                  \"dataType\": \"\",\n                  \"length\": 0,\n                  \"nullable\": false,\n                  \"ordinalPosition\": 0,\n                  \"primaryKey\": false\n                }\n              ],\n              \"table\": \"\"\n            }\n          ]\n        }\n      ]\n    },\n    \"oracleExcludedObjects\": {\n      \"oracleSchemas\": [\n        {\n          \"oracleTables\": [\n            {\n              \"oracleColumns\": [\n                {\n                  \"column\": \"\",\n                  \"dataType\": \"\",\n                  \"encoding\": \"\",\n                  \"length\": 0,\n                  \"nullable\": false,\n                  \"ordinalPosition\": 0,\n                  \"precision\": 0,\n                  \"primaryKey\": false,\n                  \"scale\": 0\n                }\n              ],\n              \"table\": \"\"\n            }\n          ],\n          \"schema\": \"\"\n        }\n      ]\n    },\n    \"postgresqlExcludedObjects\": {\n      \"postgresqlSchemas\": [\n        {\n          \"postgresqlTables\": [\n            {\n              \"postgresqlColumns\": [\n                {\n                  \"column\": \"\",\n                  \"dataType\": \"\",\n                  \"length\": 0,\n                  \"nullable\": false,\n                  \"ordinalPosition\": 0,\n                  \"precision\": 0,\n                  \"primaryKey\": false,\n                  \"scale\": 0\n                }\n              ],\n              \"table\": \"\"\n            }\n          ],\n          \"schema\": \"\"\n        }\n      ]\n    }\n  },\n  \"backfillNone\": {},\n  \"createTime\": \"\",\n  \"customerManagedEncryptionKey\": \"\",\n  \"destinationConfig\": {\n    \"bigqueryDestinationConfig\": {\n      \"dataFreshness\": \"\",\n      \"singleTargetDataset\": {\n        \"datasetId\": \"\"\n      },\n      \"sourceHierarchyDatasets\": {\n        \"datasetTemplate\": {\n          \"datasetIdPrefix\": \"\",\n          \"kmsKeyName\": \"\",\n          \"location\": \"\"\n        }\n      }\n    },\n    \"destinationConnectionProfile\": \"\",\n    \"gcsDestinationConfig\": {\n      \"avroFileFormat\": {},\n      \"fileRotationInterval\": \"\",\n      \"fileRotationMb\": 0,\n      \"jsonFileFormat\": {\n        \"compression\": \"\",\n        \"schemaFileFormat\": \"\"\n      },\n      \"path\": \"\"\n    }\n  },\n  \"displayName\": \"\",\n  \"errors\": [\n    {\n      \"details\": {},\n      \"errorTime\": \"\",\n      \"errorUuid\": \"\",\n      \"message\": \"\",\n      \"reason\": \"\"\n    }\n  ],\n  \"labels\": {},\n  \"name\": \"\",\n  \"sourceConfig\": {\n    \"mysqlSourceConfig\": {\n      \"excludeObjects\": {},\n      \"includeObjects\": {},\n      \"maxConcurrentBackfillTasks\": 0,\n      \"maxConcurrentCdcTasks\": 0\n    },\n    \"oracleSourceConfig\": {\n      \"dropLargeObjects\": {},\n      \"excludeObjects\": {},\n      \"includeObjects\": {},\n      \"maxConcurrentBackfillTasks\": 0,\n      \"maxConcurrentCdcTasks\": 0,\n      \"streamLargeObjects\": {}\n    },\n    \"postgresqlSourceConfig\": {\n      \"excludeObjects\": {},\n      \"includeObjects\": {},\n      \"maxConcurrentBackfillTasks\": 0,\n      \"publication\": \"\",\n      \"replicationSlot\": \"\"\n    },\n    \"sourceConnectionProfile\": \"\"\n  },\n  \"state\": \"\",\n  \"updateTime\": \"\"\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/:parent/streams"),
    Content = new StringContent("{\n  \"backfillAll\": {\n    \"mysqlExcludedObjects\": {\n      \"mysqlDatabases\": [\n        {\n          \"database\": \"\",\n          \"mysqlTables\": [\n            {\n              \"mysqlColumns\": [\n                {\n                  \"collation\": \"\",\n                  \"column\": \"\",\n                  \"dataType\": \"\",\n                  \"length\": 0,\n                  \"nullable\": false,\n                  \"ordinalPosition\": 0,\n                  \"primaryKey\": false\n                }\n              ],\n              \"table\": \"\"\n            }\n          ]\n        }\n      ]\n    },\n    \"oracleExcludedObjects\": {\n      \"oracleSchemas\": [\n        {\n          \"oracleTables\": [\n            {\n              \"oracleColumns\": [\n                {\n                  \"column\": \"\",\n                  \"dataType\": \"\",\n                  \"encoding\": \"\",\n                  \"length\": 0,\n                  \"nullable\": false,\n                  \"ordinalPosition\": 0,\n                  \"precision\": 0,\n                  \"primaryKey\": false,\n                  \"scale\": 0\n                }\n              ],\n              \"table\": \"\"\n            }\n          ],\n          \"schema\": \"\"\n        }\n      ]\n    },\n    \"postgresqlExcludedObjects\": {\n      \"postgresqlSchemas\": [\n        {\n          \"postgresqlTables\": [\n            {\n              \"postgresqlColumns\": [\n                {\n                  \"column\": \"\",\n                  \"dataType\": \"\",\n                  \"length\": 0,\n                  \"nullable\": false,\n                  \"ordinalPosition\": 0,\n                  \"precision\": 0,\n                  \"primaryKey\": false,\n                  \"scale\": 0\n                }\n              ],\n              \"table\": \"\"\n            }\n          ],\n          \"schema\": \"\"\n        }\n      ]\n    }\n  },\n  \"backfillNone\": {},\n  \"createTime\": \"\",\n  \"customerManagedEncryptionKey\": \"\",\n  \"destinationConfig\": {\n    \"bigqueryDestinationConfig\": {\n      \"dataFreshness\": \"\",\n      \"singleTargetDataset\": {\n        \"datasetId\": \"\"\n      },\n      \"sourceHierarchyDatasets\": {\n        \"datasetTemplate\": {\n          \"datasetIdPrefix\": \"\",\n          \"kmsKeyName\": \"\",\n          \"location\": \"\"\n        }\n      }\n    },\n    \"destinationConnectionProfile\": \"\",\n    \"gcsDestinationConfig\": {\n      \"avroFileFormat\": {},\n      \"fileRotationInterval\": \"\",\n      \"fileRotationMb\": 0,\n      \"jsonFileFormat\": {\n        \"compression\": \"\",\n        \"schemaFileFormat\": \"\"\n      },\n      \"path\": \"\"\n    }\n  },\n  \"displayName\": \"\",\n  \"errors\": [\n    {\n      \"details\": {},\n      \"errorTime\": \"\",\n      \"errorUuid\": \"\",\n      \"message\": \"\",\n      \"reason\": \"\"\n    }\n  ],\n  \"labels\": {},\n  \"name\": \"\",\n  \"sourceConfig\": {\n    \"mysqlSourceConfig\": {\n      \"excludeObjects\": {},\n      \"includeObjects\": {},\n      \"maxConcurrentBackfillTasks\": 0,\n      \"maxConcurrentCdcTasks\": 0\n    },\n    \"oracleSourceConfig\": {\n      \"dropLargeObjects\": {},\n      \"excludeObjects\": {},\n      \"includeObjects\": {},\n      \"maxConcurrentBackfillTasks\": 0,\n      \"maxConcurrentCdcTasks\": 0,\n      \"streamLargeObjects\": {}\n    },\n    \"postgresqlSourceConfig\": {\n      \"excludeObjects\": {},\n      \"includeObjects\": {},\n      \"maxConcurrentBackfillTasks\": 0,\n      \"publication\": \"\",\n      \"replicationSlot\": \"\"\n    },\n    \"sourceConnectionProfile\": \"\"\n  },\n  \"state\": \"\",\n  \"updateTime\": \"\"\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/:parent/streams");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"backfillAll\": {\n    \"mysqlExcludedObjects\": {\n      \"mysqlDatabases\": [\n        {\n          \"database\": \"\",\n          \"mysqlTables\": [\n            {\n              \"mysqlColumns\": [\n                {\n                  \"collation\": \"\",\n                  \"column\": \"\",\n                  \"dataType\": \"\",\n                  \"length\": 0,\n                  \"nullable\": false,\n                  \"ordinalPosition\": 0,\n                  \"primaryKey\": false\n                }\n              ],\n              \"table\": \"\"\n            }\n          ]\n        }\n      ]\n    },\n    \"oracleExcludedObjects\": {\n      \"oracleSchemas\": [\n        {\n          \"oracleTables\": [\n            {\n              \"oracleColumns\": [\n                {\n                  \"column\": \"\",\n                  \"dataType\": \"\",\n                  \"encoding\": \"\",\n                  \"length\": 0,\n                  \"nullable\": false,\n                  \"ordinalPosition\": 0,\n                  \"precision\": 0,\n                  \"primaryKey\": false,\n                  \"scale\": 0\n                }\n              ],\n              \"table\": \"\"\n            }\n          ],\n          \"schema\": \"\"\n        }\n      ]\n    },\n    \"postgresqlExcludedObjects\": {\n      \"postgresqlSchemas\": [\n        {\n          \"postgresqlTables\": [\n            {\n              \"postgresqlColumns\": [\n                {\n                  \"column\": \"\",\n                  \"dataType\": \"\",\n                  \"length\": 0,\n                  \"nullable\": false,\n                  \"ordinalPosition\": 0,\n                  \"precision\": 0,\n                  \"primaryKey\": false,\n                  \"scale\": 0\n                }\n              ],\n              \"table\": \"\"\n            }\n          ],\n          \"schema\": \"\"\n        }\n      ]\n    }\n  },\n  \"backfillNone\": {},\n  \"createTime\": \"\",\n  \"customerManagedEncryptionKey\": \"\",\n  \"destinationConfig\": {\n    \"bigqueryDestinationConfig\": {\n      \"dataFreshness\": \"\",\n      \"singleTargetDataset\": {\n        \"datasetId\": \"\"\n      },\n      \"sourceHierarchyDatasets\": {\n        \"datasetTemplate\": {\n          \"datasetIdPrefix\": \"\",\n          \"kmsKeyName\": \"\",\n          \"location\": \"\"\n        }\n      }\n    },\n    \"destinationConnectionProfile\": \"\",\n    \"gcsDestinationConfig\": {\n      \"avroFileFormat\": {},\n      \"fileRotationInterval\": \"\",\n      \"fileRotationMb\": 0,\n      \"jsonFileFormat\": {\n        \"compression\": \"\",\n        \"schemaFileFormat\": \"\"\n      },\n      \"path\": \"\"\n    }\n  },\n  \"displayName\": \"\",\n  \"errors\": [\n    {\n      \"details\": {},\n      \"errorTime\": \"\",\n      \"errorUuid\": \"\",\n      \"message\": \"\",\n      \"reason\": \"\"\n    }\n  ],\n  \"labels\": {},\n  \"name\": \"\",\n  \"sourceConfig\": {\n    \"mysqlSourceConfig\": {\n      \"excludeObjects\": {},\n      \"includeObjects\": {},\n      \"maxConcurrentBackfillTasks\": 0,\n      \"maxConcurrentCdcTasks\": 0\n    },\n    \"oracleSourceConfig\": {\n      \"dropLargeObjects\": {},\n      \"excludeObjects\": {},\n      \"includeObjects\": {},\n      \"maxConcurrentBackfillTasks\": 0,\n      \"maxConcurrentCdcTasks\": 0,\n      \"streamLargeObjects\": {}\n    },\n    \"postgresqlSourceConfig\": {\n      \"excludeObjects\": {},\n      \"includeObjects\": {},\n      \"maxConcurrentBackfillTasks\": 0,\n      \"publication\": \"\",\n      \"replicationSlot\": \"\"\n    },\n    \"sourceConnectionProfile\": \"\"\n  },\n  \"state\": \"\",\n  \"updateTime\": \"\"\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

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

func main() {

	url := "{{baseUrl}}/v1/:parent/streams"

	payload := strings.NewReader("{\n  \"backfillAll\": {\n    \"mysqlExcludedObjects\": {\n      \"mysqlDatabases\": [\n        {\n          \"database\": \"\",\n          \"mysqlTables\": [\n            {\n              \"mysqlColumns\": [\n                {\n                  \"collation\": \"\",\n                  \"column\": \"\",\n                  \"dataType\": \"\",\n                  \"length\": 0,\n                  \"nullable\": false,\n                  \"ordinalPosition\": 0,\n                  \"primaryKey\": false\n                }\n              ],\n              \"table\": \"\"\n            }\n          ]\n        }\n      ]\n    },\n    \"oracleExcludedObjects\": {\n      \"oracleSchemas\": [\n        {\n          \"oracleTables\": [\n            {\n              \"oracleColumns\": [\n                {\n                  \"column\": \"\",\n                  \"dataType\": \"\",\n                  \"encoding\": \"\",\n                  \"length\": 0,\n                  \"nullable\": false,\n                  \"ordinalPosition\": 0,\n                  \"precision\": 0,\n                  \"primaryKey\": false,\n                  \"scale\": 0\n                }\n              ],\n              \"table\": \"\"\n            }\n          ],\n          \"schema\": \"\"\n        }\n      ]\n    },\n    \"postgresqlExcludedObjects\": {\n      \"postgresqlSchemas\": [\n        {\n          \"postgresqlTables\": [\n            {\n              \"postgresqlColumns\": [\n                {\n                  \"column\": \"\",\n                  \"dataType\": \"\",\n                  \"length\": 0,\n                  \"nullable\": false,\n                  \"ordinalPosition\": 0,\n                  \"precision\": 0,\n                  \"primaryKey\": false,\n                  \"scale\": 0\n                }\n              ],\n              \"table\": \"\"\n            }\n          ],\n          \"schema\": \"\"\n        }\n      ]\n    }\n  },\n  \"backfillNone\": {},\n  \"createTime\": \"\",\n  \"customerManagedEncryptionKey\": \"\",\n  \"destinationConfig\": {\n    \"bigqueryDestinationConfig\": {\n      \"dataFreshness\": \"\",\n      \"singleTargetDataset\": {\n        \"datasetId\": \"\"\n      },\n      \"sourceHierarchyDatasets\": {\n        \"datasetTemplate\": {\n          \"datasetIdPrefix\": \"\",\n          \"kmsKeyName\": \"\",\n          \"location\": \"\"\n        }\n      }\n    },\n    \"destinationConnectionProfile\": \"\",\n    \"gcsDestinationConfig\": {\n      \"avroFileFormat\": {},\n      \"fileRotationInterval\": \"\",\n      \"fileRotationMb\": 0,\n      \"jsonFileFormat\": {\n        \"compression\": \"\",\n        \"schemaFileFormat\": \"\"\n      },\n      \"path\": \"\"\n    }\n  },\n  \"displayName\": \"\",\n  \"errors\": [\n    {\n      \"details\": {},\n      \"errorTime\": \"\",\n      \"errorUuid\": \"\",\n      \"message\": \"\",\n      \"reason\": \"\"\n    }\n  ],\n  \"labels\": {},\n  \"name\": \"\",\n  \"sourceConfig\": {\n    \"mysqlSourceConfig\": {\n      \"excludeObjects\": {},\n      \"includeObjects\": {},\n      \"maxConcurrentBackfillTasks\": 0,\n      \"maxConcurrentCdcTasks\": 0\n    },\n    \"oracleSourceConfig\": {\n      \"dropLargeObjects\": {},\n      \"excludeObjects\": {},\n      \"includeObjects\": {},\n      \"maxConcurrentBackfillTasks\": 0,\n      \"maxConcurrentCdcTasks\": 0,\n      \"streamLargeObjects\": {}\n    },\n    \"postgresqlSourceConfig\": {\n      \"excludeObjects\": {},\n      \"includeObjects\": {},\n      \"maxConcurrentBackfillTasks\": 0,\n      \"publication\": \"\",\n      \"replicationSlot\": \"\"\n    },\n    \"sourceConnectionProfile\": \"\"\n  },\n  \"state\": \"\",\n  \"updateTime\": \"\"\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/:parent/streams HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 3302

{
  "backfillAll": {
    "mysqlExcludedObjects": {
      "mysqlDatabases": [
        {
          "database": "",
          "mysqlTables": [
            {
              "mysqlColumns": [
                {
                  "collation": "",
                  "column": "",
                  "dataType": "",
                  "length": 0,
                  "nullable": false,
                  "ordinalPosition": 0,
                  "primaryKey": false
                }
              ],
              "table": ""
            }
          ]
        }
      ]
    },
    "oracleExcludedObjects": {
      "oracleSchemas": [
        {
          "oracleTables": [
            {
              "oracleColumns": [
                {
                  "column": "",
                  "dataType": "",
                  "encoding": "",
                  "length": 0,
                  "nullable": false,
                  "ordinalPosition": 0,
                  "precision": 0,
                  "primaryKey": false,
                  "scale": 0
                }
              ],
              "table": ""
            }
          ],
          "schema": ""
        }
      ]
    },
    "postgresqlExcludedObjects": {
      "postgresqlSchemas": [
        {
          "postgresqlTables": [
            {
              "postgresqlColumns": [
                {
                  "column": "",
                  "dataType": "",
                  "length": 0,
                  "nullable": false,
                  "ordinalPosition": 0,
                  "precision": 0,
                  "primaryKey": false,
                  "scale": 0
                }
              ],
              "table": ""
            }
          ],
          "schema": ""
        }
      ]
    }
  },
  "backfillNone": {},
  "createTime": "",
  "customerManagedEncryptionKey": "",
  "destinationConfig": {
    "bigqueryDestinationConfig": {
      "dataFreshness": "",
      "singleTargetDataset": {
        "datasetId": ""
      },
      "sourceHierarchyDatasets": {
        "datasetTemplate": {
          "datasetIdPrefix": "",
          "kmsKeyName": "",
          "location": ""
        }
      }
    },
    "destinationConnectionProfile": "",
    "gcsDestinationConfig": {
      "avroFileFormat": {},
      "fileRotationInterval": "",
      "fileRotationMb": 0,
      "jsonFileFormat": {
        "compression": "",
        "schemaFileFormat": ""
      },
      "path": ""
    }
  },
  "displayName": "",
  "errors": [
    {
      "details": {},
      "errorTime": "",
      "errorUuid": "",
      "message": "",
      "reason": ""
    }
  ],
  "labels": {},
  "name": "",
  "sourceConfig": {
    "mysqlSourceConfig": {
      "excludeObjects": {},
      "includeObjects": {},
      "maxConcurrentBackfillTasks": 0,
      "maxConcurrentCdcTasks": 0
    },
    "oracleSourceConfig": {
      "dropLargeObjects": {},
      "excludeObjects": {},
      "includeObjects": {},
      "maxConcurrentBackfillTasks": 0,
      "maxConcurrentCdcTasks": 0,
      "streamLargeObjects": {}
    },
    "postgresqlSourceConfig": {
      "excludeObjects": {},
      "includeObjects": {},
      "maxConcurrentBackfillTasks": 0,
      "publication": "",
      "replicationSlot": ""
    },
    "sourceConnectionProfile": ""
  },
  "state": "",
  "updateTime": ""
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/v1/:parent/streams")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"backfillAll\": {\n    \"mysqlExcludedObjects\": {\n      \"mysqlDatabases\": [\n        {\n          \"database\": \"\",\n          \"mysqlTables\": [\n            {\n              \"mysqlColumns\": [\n                {\n                  \"collation\": \"\",\n                  \"column\": \"\",\n                  \"dataType\": \"\",\n                  \"length\": 0,\n                  \"nullable\": false,\n                  \"ordinalPosition\": 0,\n                  \"primaryKey\": false\n                }\n              ],\n              \"table\": \"\"\n            }\n          ]\n        }\n      ]\n    },\n    \"oracleExcludedObjects\": {\n      \"oracleSchemas\": [\n        {\n          \"oracleTables\": [\n            {\n              \"oracleColumns\": [\n                {\n                  \"column\": \"\",\n                  \"dataType\": \"\",\n                  \"encoding\": \"\",\n                  \"length\": 0,\n                  \"nullable\": false,\n                  \"ordinalPosition\": 0,\n                  \"precision\": 0,\n                  \"primaryKey\": false,\n                  \"scale\": 0\n                }\n              ],\n              \"table\": \"\"\n            }\n          ],\n          \"schema\": \"\"\n        }\n      ]\n    },\n    \"postgresqlExcludedObjects\": {\n      \"postgresqlSchemas\": [\n        {\n          \"postgresqlTables\": [\n            {\n              \"postgresqlColumns\": [\n                {\n                  \"column\": \"\",\n                  \"dataType\": \"\",\n                  \"length\": 0,\n                  \"nullable\": false,\n                  \"ordinalPosition\": 0,\n                  \"precision\": 0,\n                  \"primaryKey\": false,\n                  \"scale\": 0\n                }\n              ],\n              \"table\": \"\"\n            }\n          ],\n          \"schema\": \"\"\n        }\n      ]\n    }\n  },\n  \"backfillNone\": {},\n  \"createTime\": \"\",\n  \"customerManagedEncryptionKey\": \"\",\n  \"destinationConfig\": {\n    \"bigqueryDestinationConfig\": {\n      \"dataFreshness\": \"\",\n      \"singleTargetDataset\": {\n        \"datasetId\": \"\"\n      },\n      \"sourceHierarchyDatasets\": {\n        \"datasetTemplate\": {\n          \"datasetIdPrefix\": \"\",\n          \"kmsKeyName\": \"\",\n          \"location\": \"\"\n        }\n      }\n    },\n    \"destinationConnectionProfile\": \"\",\n    \"gcsDestinationConfig\": {\n      \"avroFileFormat\": {},\n      \"fileRotationInterval\": \"\",\n      \"fileRotationMb\": 0,\n      \"jsonFileFormat\": {\n        \"compression\": \"\",\n        \"schemaFileFormat\": \"\"\n      },\n      \"path\": \"\"\n    }\n  },\n  \"displayName\": \"\",\n  \"errors\": [\n    {\n      \"details\": {},\n      \"errorTime\": \"\",\n      \"errorUuid\": \"\",\n      \"message\": \"\",\n      \"reason\": \"\"\n    }\n  ],\n  \"labels\": {},\n  \"name\": \"\",\n  \"sourceConfig\": {\n    \"mysqlSourceConfig\": {\n      \"excludeObjects\": {},\n      \"includeObjects\": {},\n      \"maxConcurrentBackfillTasks\": 0,\n      \"maxConcurrentCdcTasks\": 0\n    },\n    \"oracleSourceConfig\": {\n      \"dropLargeObjects\": {},\n      \"excludeObjects\": {},\n      \"includeObjects\": {},\n      \"maxConcurrentBackfillTasks\": 0,\n      \"maxConcurrentCdcTasks\": 0,\n      \"streamLargeObjects\": {}\n    },\n    \"postgresqlSourceConfig\": {\n      \"excludeObjects\": {},\n      \"includeObjects\": {},\n      \"maxConcurrentBackfillTasks\": 0,\n      \"publication\": \"\",\n      \"replicationSlot\": \"\"\n    },\n    \"sourceConnectionProfile\": \"\"\n  },\n  \"state\": \"\",\n  \"updateTime\": \"\"\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/v1/:parent/streams"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"backfillAll\": {\n    \"mysqlExcludedObjects\": {\n      \"mysqlDatabases\": [\n        {\n          \"database\": \"\",\n          \"mysqlTables\": [\n            {\n              \"mysqlColumns\": [\n                {\n                  \"collation\": \"\",\n                  \"column\": \"\",\n                  \"dataType\": \"\",\n                  \"length\": 0,\n                  \"nullable\": false,\n                  \"ordinalPosition\": 0,\n                  \"primaryKey\": false\n                }\n              ],\n              \"table\": \"\"\n            }\n          ]\n        }\n      ]\n    },\n    \"oracleExcludedObjects\": {\n      \"oracleSchemas\": [\n        {\n          \"oracleTables\": [\n            {\n              \"oracleColumns\": [\n                {\n                  \"column\": \"\",\n                  \"dataType\": \"\",\n                  \"encoding\": \"\",\n                  \"length\": 0,\n                  \"nullable\": false,\n                  \"ordinalPosition\": 0,\n                  \"precision\": 0,\n                  \"primaryKey\": false,\n                  \"scale\": 0\n                }\n              ],\n              \"table\": \"\"\n            }\n          ],\n          \"schema\": \"\"\n        }\n      ]\n    },\n    \"postgresqlExcludedObjects\": {\n      \"postgresqlSchemas\": [\n        {\n          \"postgresqlTables\": [\n            {\n              \"postgresqlColumns\": [\n                {\n                  \"column\": \"\",\n                  \"dataType\": \"\",\n                  \"length\": 0,\n                  \"nullable\": false,\n                  \"ordinalPosition\": 0,\n                  \"precision\": 0,\n                  \"primaryKey\": false,\n                  \"scale\": 0\n                }\n              ],\n              \"table\": \"\"\n            }\n          ],\n          \"schema\": \"\"\n        }\n      ]\n    }\n  },\n  \"backfillNone\": {},\n  \"createTime\": \"\",\n  \"customerManagedEncryptionKey\": \"\",\n  \"destinationConfig\": {\n    \"bigqueryDestinationConfig\": {\n      \"dataFreshness\": \"\",\n      \"singleTargetDataset\": {\n        \"datasetId\": \"\"\n      },\n      \"sourceHierarchyDatasets\": {\n        \"datasetTemplate\": {\n          \"datasetIdPrefix\": \"\",\n          \"kmsKeyName\": \"\",\n          \"location\": \"\"\n        }\n      }\n    },\n    \"destinationConnectionProfile\": \"\",\n    \"gcsDestinationConfig\": {\n      \"avroFileFormat\": {},\n      \"fileRotationInterval\": \"\",\n      \"fileRotationMb\": 0,\n      \"jsonFileFormat\": {\n        \"compression\": \"\",\n        \"schemaFileFormat\": \"\"\n      },\n      \"path\": \"\"\n    }\n  },\n  \"displayName\": \"\",\n  \"errors\": [\n    {\n      \"details\": {},\n      \"errorTime\": \"\",\n      \"errorUuid\": \"\",\n      \"message\": \"\",\n      \"reason\": \"\"\n    }\n  ],\n  \"labels\": {},\n  \"name\": \"\",\n  \"sourceConfig\": {\n    \"mysqlSourceConfig\": {\n      \"excludeObjects\": {},\n      \"includeObjects\": {},\n      \"maxConcurrentBackfillTasks\": 0,\n      \"maxConcurrentCdcTasks\": 0\n    },\n    \"oracleSourceConfig\": {\n      \"dropLargeObjects\": {},\n      \"excludeObjects\": {},\n      \"includeObjects\": {},\n      \"maxConcurrentBackfillTasks\": 0,\n      \"maxConcurrentCdcTasks\": 0,\n      \"streamLargeObjects\": {}\n    },\n    \"postgresqlSourceConfig\": {\n      \"excludeObjects\": {},\n      \"includeObjects\": {},\n      \"maxConcurrentBackfillTasks\": 0,\n      \"publication\": \"\",\n      \"replicationSlot\": \"\"\n    },\n    \"sourceConnectionProfile\": \"\"\n  },\n  \"state\": \"\",\n  \"updateTime\": \"\"\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  \"backfillAll\": {\n    \"mysqlExcludedObjects\": {\n      \"mysqlDatabases\": [\n        {\n          \"database\": \"\",\n          \"mysqlTables\": [\n            {\n              \"mysqlColumns\": [\n                {\n                  \"collation\": \"\",\n                  \"column\": \"\",\n                  \"dataType\": \"\",\n                  \"length\": 0,\n                  \"nullable\": false,\n                  \"ordinalPosition\": 0,\n                  \"primaryKey\": false\n                }\n              ],\n              \"table\": \"\"\n            }\n          ]\n        }\n      ]\n    },\n    \"oracleExcludedObjects\": {\n      \"oracleSchemas\": [\n        {\n          \"oracleTables\": [\n            {\n              \"oracleColumns\": [\n                {\n                  \"column\": \"\",\n                  \"dataType\": \"\",\n                  \"encoding\": \"\",\n                  \"length\": 0,\n                  \"nullable\": false,\n                  \"ordinalPosition\": 0,\n                  \"precision\": 0,\n                  \"primaryKey\": false,\n                  \"scale\": 0\n                }\n              ],\n              \"table\": \"\"\n            }\n          ],\n          \"schema\": \"\"\n        }\n      ]\n    },\n    \"postgresqlExcludedObjects\": {\n      \"postgresqlSchemas\": [\n        {\n          \"postgresqlTables\": [\n            {\n              \"postgresqlColumns\": [\n                {\n                  \"column\": \"\",\n                  \"dataType\": \"\",\n                  \"length\": 0,\n                  \"nullable\": false,\n                  \"ordinalPosition\": 0,\n                  \"precision\": 0,\n                  \"primaryKey\": false,\n                  \"scale\": 0\n                }\n              ],\n              \"table\": \"\"\n            }\n          ],\n          \"schema\": \"\"\n        }\n      ]\n    }\n  },\n  \"backfillNone\": {},\n  \"createTime\": \"\",\n  \"customerManagedEncryptionKey\": \"\",\n  \"destinationConfig\": {\n    \"bigqueryDestinationConfig\": {\n      \"dataFreshness\": \"\",\n      \"singleTargetDataset\": {\n        \"datasetId\": \"\"\n      },\n      \"sourceHierarchyDatasets\": {\n        \"datasetTemplate\": {\n          \"datasetIdPrefix\": \"\",\n          \"kmsKeyName\": \"\",\n          \"location\": \"\"\n        }\n      }\n    },\n    \"destinationConnectionProfile\": \"\",\n    \"gcsDestinationConfig\": {\n      \"avroFileFormat\": {},\n      \"fileRotationInterval\": \"\",\n      \"fileRotationMb\": 0,\n      \"jsonFileFormat\": {\n        \"compression\": \"\",\n        \"schemaFileFormat\": \"\"\n      },\n      \"path\": \"\"\n    }\n  },\n  \"displayName\": \"\",\n  \"errors\": [\n    {\n      \"details\": {},\n      \"errorTime\": \"\",\n      \"errorUuid\": \"\",\n      \"message\": \"\",\n      \"reason\": \"\"\n    }\n  ],\n  \"labels\": {},\n  \"name\": \"\",\n  \"sourceConfig\": {\n    \"mysqlSourceConfig\": {\n      \"excludeObjects\": {},\n      \"includeObjects\": {},\n      \"maxConcurrentBackfillTasks\": 0,\n      \"maxConcurrentCdcTasks\": 0\n    },\n    \"oracleSourceConfig\": {\n      \"dropLargeObjects\": {},\n      \"excludeObjects\": {},\n      \"includeObjects\": {},\n      \"maxConcurrentBackfillTasks\": 0,\n      \"maxConcurrentCdcTasks\": 0,\n      \"streamLargeObjects\": {}\n    },\n    \"postgresqlSourceConfig\": {\n      \"excludeObjects\": {},\n      \"includeObjects\": {},\n      \"maxConcurrentBackfillTasks\": 0,\n      \"publication\": \"\",\n      \"replicationSlot\": \"\"\n    },\n    \"sourceConnectionProfile\": \"\"\n  },\n  \"state\": \"\",\n  \"updateTime\": \"\"\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/v1/:parent/streams")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/v1/:parent/streams")
  .header("content-type", "application/json")
  .body("{\n  \"backfillAll\": {\n    \"mysqlExcludedObjects\": {\n      \"mysqlDatabases\": [\n        {\n          \"database\": \"\",\n          \"mysqlTables\": [\n            {\n              \"mysqlColumns\": [\n                {\n                  \"collation\": \"\",\n                  \"column\": \"\",\n                  \"dataType\": \"\",\n                  \"length\": 0,\n                  \"nullable\": false,\n                  \"ordinalPosition\": 0,\n                  \"primaryKey\": false\n                }\n              ],\n              \"table\": \"\"\n            }\n          ]\n        }\n      ]\n    },\n    \"oracleExcludedObjects\": {\n      \"oracleSchemas\": [\n        {\n          \"oracleTables\": [\n            {\n              \"oracleColumns\": [\n                {\n                  \"column\": \"\",\n                  \"dataType\": \"\",\n                  \"encoding\": \"\",\n                  \"length\": 0,\n                  \"nullable\": false,\n                  \"ordinalPosition\": 0,\n                  \"precision\": 0,\n                  \"primaryKey\": false,\n                  \"scale\": 0\n                }\n              ],\n              \"table\": \"\"\n            }\n          ],\n          \"schema\": \"\"\n        }\n      ]\n    },\n    \"postgresqlExcludedObjects\": {\n      \"postgresqlSchemas\": [\n        {\n          \"postgresqlTables\": [\n            {\n              \"postgresqlColumns\": [\n                {\n                  \"column\": \"\",\n                  \"dataType\": \"\",\n                  \"length\": 0,\n                  \"nullable\": false,\n                  \"ordinalPosition\": 0,\n                  \"precision\": 0,\n                  \"primaryKey\": false,\n                  \"scale\": 0\n                }\n              ],\n              \"table\": \"\"\n            }\n          ],\n          \"schema\": \"\"\n        }\n      ]\n    }\n  },\n  \"backfillNone\": {},\n  \"createTime\": \"\",\n  \"customerManagedEncryptionKey\": \"\",\n  \"destinationConfig\": {\n    \"bigqueryDestinationConfig\": {\n      \"dataFreshness\": \"\",\n      \"singleTargetDataset\": {\n        \"datasetId\": \"\"\n      },\n      \"sourceHierarchyDatasets\": {\n        \"datasetTemplate\": {\n          \"datasetIdPrefix\": \"\",\n          \"kmsKeyName\": \"\",\n          \"location\": \"\"\n        }\n      }\n    },\n    \"destinationConnectionProfile\": \"\",\n    \"gcsDestinationConfig\": {\n      \"avroFileFormat\": {},\n      \"fileRotationInterval\": \"\",\n      \"fileRotationMb\": 0,\n      \"jsonFileFormat\": {\n        \"compression\": \"\",\n        \"schemaFileFormat\": \"\"\n      },\n      \"path\": \"\"\n    }\n  },\n  \"displayName\": \"\",\n  \"errors\": [\n    {\n      \"details\": {},\n      \"errorTime\": \"\",\n      \"errorUuid\": \"\",\n      \"message\": \"\",\n      \"reason\": \"\"\n    }\n  ],\n  \"labels\": {},\n  \"name\": \"\",\n  \"sourceConfig\": {\n    \"mysqlSourceConfig\": {\n      \"excludeObjects\": {},\n      \"includeObjects\": {},\n      \"maxConcurrentBackfillTasks\": 0,\n      \"maxConcurrentCdcTasks\": 0\n    },\n    \"oracleSourceConfig\": {\n      \"dropLargeObjects\": {},\n      \"excludeObjects\": {},\n      \"includeObjects\": {},\n      \"maxConcurrentBackfillTasks\": 0,\n      \"maxConcurrentCdcTasks\": 0,\n      \"streamLargeObjects\": {}\n    },\n    \"postgresqlSourceConfig\": {\n      \"excludeObjects\": {},\n      \"includeObjects\": {},\n      \"maxConcurrentBackfillTasks\": 0,\n      \"publication\": \"\",\n      \"replicationSlot\": \"\"\n    },\n    \"sourceConnectionProfile\": \"\"\n  },\n  \"state\": \"\",\n  \"updateTime\": \"\"\n}")
  .asString();
const data = JSON.stringify({
  backfillAll: {
    mysqlExcludedObjects: {
      mysqlDatabases: [
        {
          database: '',
          mysqlTables: [
            {
              mysqlColumns: [
                {
                  collation: '',
                  column: '',
                  dataType: '',
                  length: 0,
                  nullable: false,
                  ordinalPosition: 0,
                  primaryKey: false
                }
              ],
              table: ''
            }
          ]
        }
      ]
    },
    oracleExcludedObjects: {
      oracleSchemas: [
        {
          oracleTables: [
            {
              oracleColumns: [
                {
                  column: '',
                  dataType: '',
                  encoding: '',
                  length: 0,
                  nullable: false,
                  ordinalPosition: 0,
                  precision: 0,
                  primaryKey: false,
                  scale: 0
                }
              ],
              table: ''
            }
          ],
          schema: ''
        }
      ]
    },
    postgresqlExcludedObjects: {
      postgresqlSchemas: [
        {
          postgresqlTables: [
            {
              postgresqlColumns: [
                {
                  column: '',
                  dataType: '',
                  length: 0,
                  nullable: false,
                  ordinalPosition: 0,
                  precision: 0,
                  primaryKey: false,
                  scale: 0
                }
              ],
              table: ''
            }
          ],
          schema: ''
        }
      ]
    }
  },
  backfillNone: {},
  createTime: '',
  customerManagedEncryptionKey: '',
  destinationConfig: {
    bigqueryDestinationConfig: {
      dataFreshness: '',
      singleTargetDataset: {
        datasetId: ''
      },
      sourceHierarchyDatasets: {
        datasetTemplate: {
          datasetIdPrefix: '',
          kmsKeyName: '',
          location: ''
        }
      }
    },
    destinationConnectionProfile: '',
    gcsDestinationConfig: {
      avroFileFormat: {},
      fileRotationInterval: '',
      fileRotationMb: 0,
      jsonFileFormat: {
        compression: '',
        schemaFileFormat: ''
      },
      path: ''
    }
  },
  displayName: '',
  errors: [
    {
      details: {},
      errorTime: '',
      errorUuid: '',
      message: '',
      reason: ''
    }
  ],
  labels: {},
  name: '',
  sourceConfig: {
    mysqlSourceConfig: {
      excludeObjects: {},
      includeObjects: {},
      maxConcurrentBackfillTasks: 0,
      maxConcurrentCdcTasks: 0
    },
    oracleSourceConfig: {
      dropLargeObjects: {},
      excludeObjects: {},
      includeObjects: {},
      maxConcurrentBackfillTasks: 0,
      maxConcurrentCdcTasks: 0,
      streamLargeObjects: {}
    },
    postgresqlSourceConfig: {
      excludeObjects: {},
      includeObjects: {},
      maxConcurrentBackfillTasks: 0,
      publication: '',
      replicationSlot: ''
    },
    sourceConnectionProfile: ''
  },
  state: '',
  updateTime: ''
});

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/:parent/streams');
xhr.setRequestHeader('content-type', 'application/json');

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

const options = {
  method: 'POST',
  url: '{{baseUrl}}/v1/:parent/streams',
  headers: {'content-type': 'application/json'},
  data: {
    backfillAll: {
      mysqlExcludedObjects: {
        mysqlDatabases: [
          {
            database: '',
            mysqlTables: [
              {
                mysqlColumns: [
                  {
                    collation: '',
                    column: '',
                    dataType: '',
                    length: 0,
                    nullable: false,
                    ordinalPosition: 0,
                    primaryKey: false
                  }
                ],
                table: ''
              }
            ]
          }
        ]
      },
      oracleExcludedObjects: {
        oracleSchemas: [
          {
            oracleTables: [
              {
                oracleColumns: [
                  {
                    column: '',
                    dataType: '',
                    encoding: '',
                    length: 0,
                    nullable: false,
                    ordinalPosition: 0,
                    precision: 0,
                    primaryKey: false,
                    scale: 0
                  }
                ],
                table: ''
              }
            ],
            schema: ''
          }
        ]
      },
      postgresqlExcludedObjects: {
        postgresqlSchemas: [
          {
            postgresqlTables: [
              {
                postgresqlColumns: [
                  {
                    column: '',
                    dataType: '',
                    length: 0,
                    nullable: false,
                    ordinalPosition: 0,
                    precision: 0,
                    primaryKey: false,
                    scale: 0
                  }
                ],
                table: ''
              }
            ],
            schema: ''
          }
        ]
      }
    },
    backfillNone: {},
    createTime: '',
    customerManagedEncryptionKey: '',
    destinationConfig: {
      bigqueryDestinationConfig: {
        dataFreshness: '',
        singleTargetDataset: {datasetId: ''},
        sourceHierarchyDatasets: {datasetTemplate: {datasetIdPrefix: '', kmsKeyName: '', location: ''}}
      },
      destinationConnectionProfile: '',
      gcsDestinationConfig: {
        avroFileFormat: {},
        fileRotationInterval: '',
        fileRotationMb: 0,
        jsonFileFormat: {compression: '', schemaFileFormat: ''},
        path: ''
      }
    },
    displayName: '',
    errors: [{details: {}, errorTime: '', errorUuid: '', message: '', reason: ''}],
    labels: {},
    name: '',
    sourceConfig: {
      mysqlSourceConfig: {
        excludeObjects: {},
        includeObjects: {},
        maxConcurrentBackfillTasks: 0,
        maxConcurrentCdcTasks: 0
      },
      oracleSourceConfig: {
        dropLargeObjects: {},
        excludeObjects: {},
        includeObjects: {},
        maxConcurrentBackfillTasks: 0,
        maxConcurrentCdcTasks: 0,
        streamLargeObjects: {}
      },
      postgresqlSourceConfig: {
        excludeObjects: {},
        includeObjects: {},
        maxConcurrentBackfillTasks: 0,
        publication: '',
        replicationSlot: ''
      },
      sourceConnectionProfile: ''
    },
    state: '',
    updateTime: ''
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/v1/:parent/streams';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"backfillAll":{"mysqlExcludedObjects":{"mysqlDatabases":[{"database":"","mysqlTables":[{"mysqlColumns":[{"collation":"","column":"","dataType":"","length":0,"nullable":false,"ordinalPosition":0,"primaryKey":false}],"table":""}]}]},"oracleExcludedObjects":{"oracleSchemas":[{"oracleTables":[{"oracleColumns":[{"column":"","dataType":"","encoding":"","length":0,"nullable":false,"ordinalPosition":0,"precision":0,"primaryKey":false,"scale":0}],"table":""}],"schema":""}]},"postgresqlExcludedObjects":{"postgresqlSchemas":[{"postgresqlTables":[{"postgresqlColumns":[{"column":"","dataType":"","length":0,"nullable":false,"ordinalPosition":0,"precision":0,"primaryKey":false,"scale":0}],"table":""}],"schema":""}]}},"backfillNone":{},"createTime":"","customerManagedEncryptionKey":"","destinationConfig":{"bigqueryDestinationConfig":{"dataFreshness":"","singleTargetDataset":{"datasetId":""},"sourceHierarchyDatasets":{"datasetTemplate":{"datasetIdPrefix":"","kmsKeyName":"","location":""}}},"destinationConnectionProfile":"","gcsDestinationConfig":{"avroFileFormat":{},"fileRotationInterval":"","fileRotationMb":0,"jsonFileFormat":{"compression":"","schemaFileFormat":""},"path":""}},"displayName":"","errors":[{"details":{},"errorTime":"","errorUuid":"","message":"","reason":""}],"labels":{},"name":"","sourceConfig":{"mysqlSourceConfig":{"excludeObjects":{},"includeObjects":{},"maxConcurrentBackfillTasks":0,"maxConcurrentCdcTasks":0},"oracleSourceConfig":{"dropLargeObjects":{},"excludeObjects":{},"includeObjects":{},"maxConcurrentBackfillTasks":0,"maxConcurrentCdcTasks":0,"streamLargeObjects":{}},"postgresqlSourceConfig":{"excludeObjects":{},"includeObjects":{},"maxConcurrentBackfillTasks":0,"publication":"","replicationSlot":""},"sourceConnectionProfile":""},"state":"","updateTime":""}'
};

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/:parent/streams',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "backfillAll": {\n    "mysqlExcludedObjects": {\n      "mysqlDatabases": [\n        {\n          "database": "",\n          "mysqlTables": [\n            {\n              "mysqlColumns": [\n                {\n                  "collation": "",\n                  "column": "",\n                  "dataType": "",\n                  "length": 0,\n                  "nullable": false,\n                  "ordinalPosition": 0,\n                  "primaryKey": false\n                }\n              ],\n              "table": ""\n            }\n          ]\n        }\n      ]\n    },\n    "oracleExcludedObjects": {\n      "oracleSchemas": [\n        {\n          "oracleTables": [\n            {\n              "oracleColumns": [\n                {\n                  "column": "",\n                  "dataType": "",\n                  "encoding": "",\n                  "length": 0,\n                  "nullable": false,\n                  "ordinalPosition": 0,\n                  "precision": 0,\n                  "primaryKey": false,\n                  "scale": 0\n                }\n              ],\n              "table": ""\n            }\n          ],\n          "schema": ""\n        }\n      ]\n    },\n    "postgresqlExcludedObjects": {\n      "postgresqlSchemas": [\n        {\n          "postgresqlTables": [\n            {\n              "postgresqlColumns": [\n                {\n                  "column": "",\n                  "dataType": "",\n                  "length": 0,\n                  "nullable": false,\n                  "ordinalPosition": 0,\n                  "precision": 0,\n                  "primaryKey": false,\n                  "scale": 0\n                }\n              ],\n              "table": ""\n            }\n          ],\n          "schema": ""\n        }\n      ]\n    }\n  },\n  "backfillNone": {},\n  "createTime": "",\n  "customerManagedEncryptionKey": "",\n  "destinationConfig": {\n    "bigqueryDestinationConfig": {\n      "dataFreshness": "",\n      "singleTargetDataset": {\n        "datasetId": ""\n      },\n      "sourceHierarchyDatasets": {\n        "datasetTemplate": {\n          "datasetIdPrefix": "",\n          "kmsKeyName": "",\n          "location": ""\n        }\n      }\n    },\n    "destinationConnectionProfile": "",\n    "gcsDestinationConfig": {\n      "avroFileFormat": {},\n      "fileRotationInterval": "",\n      "fileRotationMb": 0,\n      "jsonFileFormat": {\n        "compression": "",\n        "schemaFileFormat": ""\n      },\n      "path": ""\n    }\n  },\n  "displayName": "",\n  "errors": [\n    {\n      "details": {},\n      "errorTime": "",\n      "errorUuid": "",\n      "message": "",\n      "reason": ""\n    }\n  ],\n  "labels": {},\n  "name": "",\n  "sourceConfig": {\n    "mysqlSourceConfig": {\n      "excludeObjects": {},\n      "includeObjects": {},\n      "maxConcurrentBackfillTasks": 0,\n      "maxConcurrentCdcTasks": 0\n    },\n    "oracleSourceConfig": {\n      "dropLargeObjects": {},\n      "excludeObjects": {},\n      "includeObjects": {},\n      "maxConcurrentBackfillTasks": 0,\n      "maxConcurrentCdcTasks": 0,\n      "streamLargeObjects": {}\n    },\n    "postgresqlSourceConfig": {\n      "excludeObjects": {},\n      "includeObjects": {},\n      "maxConcurrentBackfillTasks": 0,\n      "publication": "",\n      "replicationSlot": ""\n    },\n    "sourceConnectionProfile": ""\n  },\n  "state": "",\n  "updateTime": ""\n}'
};

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

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"backfillAll\": {\n    \"mysqlExcludedObjects\": {\n      \"mysqlDatabases\": [\n        {\n          \"database\": \"\",\n          \"mysqlTables\": [\n            {\n              \"mysqlColumns\": [\n                {\n                  \"collation\": \"\",\n                  \"column\": \"\",\n                  \"dataType\": \"\",\n                  \"length\": 0,\n                  \"nullable\": false,\n                  \"ordinalPosition\": 0,\n                  \"primaryKey\": false\n                }\n              ],\n              \"table\": \"\"\n            }\n          ]\n        }\n      ]\n    },\n    \"oracleExcludedObjects\": {\n      \"oracleSchemas\": [\n        {\n          \"oracleTables\": [\n            {\n              \"oracleColumns\": [\n                {\n                  \"column\": \"\",\n                  \"dataType\": \"\",\n                  \"encoding\": \"\",\n                  \"length\": 0,\n                  \"nullable\": false,\n                  \"ordinalPosition\": 0,\n                  \"precision\": 0,\n                  \"primaryKey\": false,\n                  \"scale\": 0\n                }\n              ],\n              \"table\": \"\"\n            }\n          ],\n          \"schema\": \"\"\n        }\n      ]\n    },\n    \"postgresqlExcludedObjects\": {\n      \"postgresqlSchemas\": [\n        {\n          \"postgresqlTables\": [\n            {\n              \"postgresqlColumns\": [\n                {\n                  \"column\": \"\",\n                  \"dataType\": \"\",\n                  \"length\": 0,\n                  \"nullable\": false,\n                  \"ordinalPosition\": 0,\n                  \"precision\": 0,\n                  \"primaryKey\": false,\n                  \"scale\": 0\n                }\n              ],\n              \"table\": \"\"\n            }\n          ],\n          \"schema\": \"\"\n        }\n      ]\n    }\n  },\n  \"backfillNone\": {},\n  \"createTime\": \"\",\n  \"customerManagedEncryptionKey\": \"\",\n  \"destinationConfig\": {\n    \"bigqueryDestinationConfig\": {\n      \"dataFreshness\": \"\",\n      \"singleTargetDataset\": {\n        \"datasetId\": \"\"\n      },\n      \"sourceHierarchyDatasets\": {\n        \"datasetTemplate\": {\n          \"datasetIdPrefix\": \"\",\n          \"kmsKeyName\": \"\",\n          \"location\": \"\"\n        }\n      }\n    },\n    \"destinationConnectionProfile\": \"\",\n    \"gcsDestinationConfig\": {\n      \"avroFileFormat\": {},\n      \"fileRotationInterval\": \"\",\n      \"fileRotationMb\": 0,\n      \"jsonFileFormat\": {\n        \"compression\": \"\",\n        \"schemaFileFormat\": \"\"\n      },\n      \"path\": \"\"\n    }\n  },\n  \"displayName\": \"\",\n  \"errors\": [\n    {\n      \"details\": {},\n      \"errorTime\": \"\",\n      \"errorUuid\": \"\",\n      \"message\": \"\",\n      \"reason\": \"\"\n    }\n  ],\n  \"labels\": {},\n  \"name\": \"\",\n  \"sourceConfig\": {\n    \"mysqlSourceConfig\": {\n      \"excludeObjects\": {},\n      \"includeObjects\": {},\n      \"maxConcurrentBackfillTasks\": 0,\n      \"maxConcurrentCdcTasks\": 0\n    },\n    \"oracleSourceConfig\": {\n      \"dropLargeObjects\": {},\n      \"excludeObjects\": {},\n      \"includeObjects\": {},\n      \"maxConcurrentBackfillTasks\": 0,\n      \"maxConcurrentCdcTasks\": 0,\n      \"streamLargeObjects\": {}\n    },\n    \"postgresqlSourceConfig\": {\n      \"excludeObjects\": {},\n      \"includeObjects\": {},\n      \"maxConcurrentBackfillTasks\": 0,\n      \"publication\": \"\",\n      \"replicationSlot\": \"\"\n    },\n    \"sourceConnectionProfile\": \"\"\n  },\n  \"state\": \"\",\n  \"updateTime\": \"\"\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/v1/:parent/streams")
  .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/:parent/streams',
  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({
  backfillAll: {
    mysqlExcludedObjects: {
      mysqlDatabases: [
        {
          database: '',
          mysqlTables: [
            {
              mysqlColumns: [
                {
                  collation: '',
                  column: '',
                  dataType: '',
                  length: 0,
                  nullable: false,
                  ordinalPosition: 0,
                  primaryKey: false
                }
              ],
              table: ''
            }
          ]
        }
      ]
    },
    oracleExcludedObjects: {
      oracleSchemas: [
        {
          oracleTables: [
            {
              oracleColumns: [
                {
                  column: '',
                  dataType: '',
                  encoding: '',
                  length: 0,
                  nullable: false,
                  ordinalPosition: 0,
                  precision: 0,
                  primaryKey: false,
                  scale: 0
                }
              ],
              table: ''
            }
          ],
          schema: ''
        }
      ]
    },
    postgresqlExcludedObjects: {
      postgresqlSchemas: [
        {
          postgresqlTables: [
            {
              postgresqlColumns: [
                {
                  column: '',
                  dataType: '',
                  length: 0,
                  nullable: false,
                  ordinalPosition: 0,
                  precision: 0,
                  primaryKey: false,
                  scale: 0
                }
              ],
              table: ''
            }
          ],
          schema: ''
        }
      ]
    }
  },
  backfillNone: {},
  createTime: '',
  customerManagedEncryptionKey: '',
  destinationConfig: {
    bigqueryDestinationConfig: {
      dataFreshness: '',
      singleTargetDataset: {datasetId: ''},
      sourceHierarchyDatasets: {datasetTemplate: {datasetIdPrefix: '', kmsKeyName: '', location: ''}}
    },
    destinationConnectionProfile: '',
    gcsDestinationConfig: {
      avroFileFormat: {},
      fileRotationInterval: '',
      fileRotationMb: 0,
      jsonFileFormat: {compression: '', schemaFileFormat: ''},
      path: ''
    }
  },
  displayName: '',
  errors: [{details: {}, errorTime: '', errorUuid: '', message: '', reason: ''}],
  labels: {},
  name: '',
  sourceConfig: {
    mysqlSourceConfig: {
      excludeObjects: {},
      includeObjects: {},
      maxConcurrentBackfillTasks: 0,
      maxConcurrentCdcTasks: 0
    },
    oracleSourceConfig: {
      dropLargeObjects: {},
      excludeObjects: {},
      includeObjects: {},
      maxConcurrentBackfillTasks: 0,
      maxConcurrentCdcTasks: 0,
      streamLargeObjects: {}
    },
    postgresqlSourceConfig: {
      excludeObjects: {},
      includeObjects: {},
      maxConcurrentBackfillTasks: 0,
      publication: '',
      replicationSlot: ''
    },
    sourceConnectionProfile: ''
  },
  state: '',
  updateTime: ''
}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/v1/:parent/streams',
  headers: {'content-type': 'application/json'},
  body: {
    backfillAll: {
      mysqlExcludedObjects: {
        mysqlDatabases: [
          {
            database: '',
            mysqlTables: [
              {
                mysqlColumns: [
                  {
                    collation: '',
                    column: '',
                    dataType: '',
                    length: 0,
                    nullable: false,
                    ordinalPosition: 0,
                    primaryKey: false
                  }
                ],
                table: ''
              }
            ]
          }
        ]
      },
      oracleExcludedObjects: {
        oracleSchemas: [
          {
            oracleTables: [
              {
                oracleColumns: [
                  {
                    column: '',
                    dataType: '',
                    encoding: '',
                    length: 0,
                    nullable: false,
                    ordinalPosition: 0,
                    precision: 0,
                    primaryKey: false,
                    scale: 0
                  }
                ],
                table: ''
              }
            ],
            schema: ''
          }
        ]
      },
      postgresqlExcludedObjects: {
        postgresqlSchemas: [
          {
            postgresqlTables: [
              {
                postgresqlColumns: [
                  {
                    column: '',
                    dataType: '',
                    length: 0,
                    nullable: false,
                    ordinalPosition: 0,
                    precision: 0,
                    primaryKey: false,
                    scale: 0
                  }
                ],
                table: ''
              }
            ],
            schema: ''
          }
        ]
      }
    },
    backfillNone: {},
    createTime: '',
    customerManagedEncryptionKey: '',
    destinationConfig: {
      bigqueryDestinationConfig: {
        dataFreshness: '',
        singleTargetDataset: {datasetId: ''},
        sourceHierarchyDatasets: {datasetTemplate: {datasetIdPrefix: '', kmsKeyName: '', location: ''}}
      },
      destinationConnectionProfile: '',
      gcsDestinationConfig: {
        avroFileFormat: {},
        fileRotationInterval: '',
        fileRotationMb: 0,
        jsonFileFormat: {compression: '', schemaFileFormat: ''},
        path: ''
      }
    },
    displayName: '',
    errors: [{details: {}, errorTime: '', errorUuid: '', message: '', reason: ''}],
    labels: {},
    name: '',
    sourceConfig: {
      mysqlSourceConfig: {
        excludeObjects: {},
        includeObjects: {},
        maxConcurrentBackfillTasks: 0,
        maxConcurrentCdcTasks: 0
      },
      oracleSourceConfig: {
        dropLargeObjects: {},
        excludeObjects: {},
        includeObjects: {},
        maxConcurrentBackfillTasks: 0,
        maxConcurrentCdcTasks: 0,
        streamLargeObjects: {}
      },
      postgresqlSourceConfig: {
        excludeObjects: {},
        includeObjects: {},
        maxConcurrentBackfillTasks: 0,
        publication: '',
        replicationSlot: ''
      },
      sourceConnectionProfile: ''
    },
    state: '',
    updateTime: ''
  },
  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/:parent/streams');

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

req.type('json');
req.send({
  backfillAll: {
    mysqlExcludedObjects: {
      mysqlDatabases: [
        {
          database: '',
          mysqlTables: [
            {
              mysqlColumns: [
                {
                  collation: '',
                  column: '',
                  dataType: '',
                  length: 0,
                  nullable: false,
                  ordinalPosition: 0,
                  primaryKey: false
                }
              ],
              table: ''
            }
          ]
        }
      ]
    },
    oracleExcludedObjects: {
      oracleSchemas: [
        {
          oracleTables: [
            {
              oracleColumns: [
                {
                  column: '',
                  dataType: '',
                  encoding: '',
                  length: 0,
                  nullable: false,
                  ordinalPosition: 0,
                  precision: 0,
                  primaryKey: false,
                  scale: 0
                }
              ],
              table: ''
            }
          ],
          schema: ''
        }
      ]
    },
    postgresqlExcludedObjects: {
      postgresqlSchemas: [
        {
          postgresqlTables: [
            {
              postgresqlColumns: [
                {
                  column: '',
                  dataType: '',
                  length: 0,
                  nullable: false,
                  ordinalPosition: 0,
                  precision: 0,
                  primaryKey: false,
                  scale: 0
                }
              ],
              table: ''
            }
          ],
          schema: ''
        }
      ]
    }
  },
  backfillNone: {},
  createTime: '',
  customerManagedEncryptionKey: '',
  destinationConfig: {
    bigqueryDestinationConfig: {
      dataFreshness: '',
      singleTargetDataset: {
        datasetId: ''
      },
      sourceHierarchyDatasets: {
        datasetTemplate: {
          datasetIdPrefix: '',
          kmsKeyName: '',
          location: ''
        }
      }
    },
    destinationConnectionProfile: '',
    gcsDestinationConfig: {
      avroFileFormat: {},
      fileRotationInterval: '',
      fileRotationMb: 0,
      jsonFileFormat: {
        compression: '',
        schemaFileFormat: ''
      },
      path: ''
    }
  },
  displayName: '',
  errors: [
    {
      details: {},
      errorTime: '',
      errorUuid: '',
      message: '',
      reason: ''
    }
  ],
  labels: {},
  name: '',
  sourceConfig: {
    mysqlSourceConfig: {
      excludeObjects: {},
      includeObjects: {},
      maxConcurrentBackfillTasks: 0,
      maxConcurrentCdcTasks: 0
    },
    oracleSourceConfig: {
      dropLargeObjects: {},
      excludeObjects: {},
      includeObjects: {},
      maxConcurrentBackfillTasks: 0,
      maxConcurrentCdcTasks: 0,
      streamLargeObjects: {}
    },
    postgresqlSourceConfig: {
      excludeObjects: {},
      includeObjects: {},
      maxConcurrentBackfillTasks: 0,
      publication: '',
      replicationSlot: ''
    },
    sourceConnectionProfile: ''
  },
  state: '',
  updateTime: ''
});

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/:parent/streams',
  headers: {'content-type': 'application/json'},
  data: {
    backfillAll: {
      mysqlExcludedObjects: {
        mysqlDatabases: [
          {
            database: '',
            mysqlTables: [
              {
                mysqlColumns: [
                  {
                    collation: '',
                    column: '',
                    dataType: '',
                    length: 0,
                    nullable: false,
                    ordinalPosition: 0,
                    primaryKey: false
                  }
                ],
                table: ''
              }
            ]
          }
        ]
      },
      oracleExcludedObjects: {
        oracleSchemas: [
          {
            oracleTables: [
              {
                oracleColumns: [
                  {
                    column: '',
                    dataType: '',
                    encoding: '',
                    length: 0,
                    nullable: false,
                    ordinalPosition: 0,
                    precision: 0,
                    primaryKey: false,
                    scale: 0
                  }
                ],
                table: ''
              }
            ],
            schema: ''
          }
        ]
      },
      postgresqlExcludedObjects: {
        postgresqlSchemas: [
          {
            postgresqlTables: [
              {
                postgresqlColumns: [
                  {
                    column: '',
                    dataType: '',
                    length: 0,
                    nullable: false,
                    ordinalPosition: 0,
                    precision: 0,
                    primaryKey: false,
                    scale: 0
                  }
                ],
                table: ''
              }
            ],
            schema: ''
          }
        ]
      }
    },
    backfillNone: {},
    createTime: '',
    customerManagedEncryptionKey: '',
    destinationConfig: {
      bigqueryDestinationConfig: {
        dataFreshness: '',
        singleTargetDataset: {datasetId: ''},
        sourceHierarchyDatasets: {datasetTemplate: {datasetIdPrefix: '', kmsKeyName: '', location: ''}}
      },
      destinationConnectionProfile: '',
      gcsDestinationConfig: {
        avroFileFormat: {},
        fileRotationInterval: '',
        fileRotationMb: 0,
        jsonFileFormat: {compression: '', schemaFileFormat: ''},
        path: ''
      }
    },
    displayName: '',
    errors: [{details: {}, errorTime: '', errorUuid: '', message: '', reason: ''}],
    labels: {},
    name: '',
    sourceConfig: {
      mysqlSourceConfig: {
        excludeObjects: {},
        includeObjects: {},
        maxConcurrentBackfillTasks: 0,
        maxConcurrentCdcTasks: 0
      },
      oracleSourceConfig: {
        dropLargeObjects: {},
        excludeObjects: {},
        includeObjects: {},
        maxConcurrentBackfillTasks: 0,
        maxConcurrentCdcTasks: 0,
        streamLargeObjects: {}
      },
      postgresqlSourceConfig: {
        excludeObjects: {},
        includeObjects: {},
        maxConcurrentBackfillTasks: 0,
        publication: '',
        replicationSlot: ''
      },
      sourceConnectionProfile: ''
    },
    state: '',
    updateTime: ''
  }
};

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

const url = '{{baseUrl}}/v1/:parent/streams';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"backfillAll":{"mysqlExcludedObjects":{"mysqlDatabases":[{"database":"","mysqlTables":[{"mysqlColumns":[{"collation":"","column":"","dataType":"","length":0,"nullable":false,"ordinalPosition":0,"primaryKey":false}],"table":""}]}]},"oracleExcludedObjects":{"oracleSchemas":[{"oracleTables":[{"oracleColumns":[{"column":"","dataType":"","encoding":"","length":0,"nullable":false,"ordinalPosition":0,"precision":0,"primaryKey":false,"scale":0}],"table":""}],"schema":""}]},"postgresqlExcludedObjects":{"postgresqlSchemas":[{"postgresqlTables":[{"postgresqlColumns":[{"column":"","dataType":"","length":0,"nullable":false,"ordinalPosition":0,"precision":0,"primaryKey":false,"scale":0}],"table":""}],"schema":""}]}},"backfillNone":{},"createTime":"","customerManagedEncryptionKey":"","destinationConfig":{"bigqueryDestinationConfig":{"dataFreshness":"","singleTargetDataset":{"datasetId":""},"sourceHierarchyDatasets":{"datasetTemplate":{"datasetIdPrefix":"","kmsKeyName":"","location":""}}},"destinationConnectionProfile":"","gcsDestinationConfig":{"avroFileFormat":{},"fileRotationInterval":"","fileRotationMb":0,"jsonFileFormat":{"compression":"","schemaFileFormat":""},"path":""}},"displayName":"","errors":[{"details":{},"errorTime":"","errorUuid":"","message":"","reason":""}],"labels":{},"name":"","sourceConfig":{"mysqlSourceConfig":{"excludeObjects":{},"includeObjects":{},"maxConcurrentBackfillTasks":0,"maxConcurrentCdcTasks":0},"oracleSourceConfig":{"dropLargeObjects":{},"excludeObjects":{},"includeObjects":{},"maxConcurrentBackfillTasks":0,"maxConcurrentCdcTasks":0,"streamLargeObjects":{}},"postgresqlSourceConfig":{"excludeObjects":{},"includeObjects":{},"maxConcurrentBackfillTasks":0,"publication":"","replicationSlot":""},"sourceConnectionProfile":""},"state":"","updateTime":""}'
};

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 = @{ @"backfillAll": @{ @"mysqlExcludedObjects": @{ @"mysqlDatabases": @[ @{ @"database": @"", @"mysqlTables": @[ @{ @"mysqlColumns": @[ @{ @"collation": @"", @"column": @"", @"dataType": @"", @"length": @0, @"nullable": @NO, @"ordinalPosition": @0, @"primaryKey": @NO } ], @"table": @"" } ] } ] }, @"oracleExcludedObjects": @{ @"oracleSchemas": @[ @{ @"oracleTables": @[ @{ @"oracleColumns": @[ @{ @"column": @"", @"dataType": @"", @"encoding": @"", @"length": @0, @"nullable": @NO, @"ordinalPosition": @0, @"precision": @0, @"primaryKey": @NO, @"scale": @0 } ], @"table": @"" } ], @"schema": @"" } ] }, @"postgresqlExcludedObjects": @{ @"postgresqlSchemas": @[ @{ @"postgresqlTables": @[ @{ @"postgresqlColumns": @[ @{ @"column": @"", @"dataType": @"", @"length": @0, @"nullable": @NO, @"ordinalPosition": @0, @"precision": @0, @"primaryKey": @NO, @"scale": @0 } ], @"table": @"" } ], @"schema": @"" } ] } },
                              @"backfillNone": @{  },
                              @"createTime": @"",
                              @"customerManagedEncryptionKey": @"",
                              @"destinationConfig": @{ @"bigqueryDestinationConfig": @{ @"dataFreshness": @"", @"singleTargetDataset": @{ @"datasetId": @"" }, @"sourceHierarchyDatasets": @{ @"datasetTemplate": @{ @"datasetIdPrefix": @"", @"kmsKeyName": @"", @"location": @"" } } }, @"destinationConnectionProfile": @"", @"gcsDestinationConfig": @{ @"avroFileFormat": @{  }, @"fileRotationInterval": @"", @"fileRotationMb": @0, @"jsonFileFormat": @{ @"compression": @"", @"schemaFileFormat": @"" }, @"path": @"" } },
                              @"displayName": @"",
                              @"errors": @[ @{ @"details": @{  }, @"errorTime": @"", @"errorUuid": @"", @"message": @"", @"reason": @"" } ],
                              @"labels": @{  },
                              @"name": @"",
                              @"sourceConfig": @{ @"mysqlSourceConfig": @{ @"excludeObjects": @{  }, @"includeObjects": @{  }, @"maxConcurrentBackfillTasks": @0, @"maxConcurrentCdcTasks": @0 }, @"oracleSourceConfig": @{ @"dropLargeObjects": @{  }, @"excludeObjects": @{  }, @"includeObjects": @{  }, @"maxConcurrentBackfillTasks": @0, @"maxConcurrentCdcTasks": @0, @"streamLargeObjects": @{  } }, @"postgresqlSourceConfig": @{ @"excludeObjects": @{  }, @"includeObjects": @{  }, @"maxConcurrentBackfillTasks": @0, @"publication": @"", @"replicationSlot": @"" }, @"sourceConnectionProfile": @"" },
                              @"state": @"",
                              @"updateTime": @"" };

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

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/v1/:parent/streams"]
                                                       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/:parent/streams" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"backfillAll\": {\n    \"mysqlExcludedObjects\": {\n      \"mysqlDatabases\": [\n        {\n          \"database\": \"\",\n          \"mysqlTables\": [\n            {\n              \"mysqlColumns\": [\n                {\n                  \"collation\": \"\",\n                  \"column\": \"\",\n                  \"dataType\": \"\",\n                  \"length\": 0,\n                  \"nullable\": false,\n                  \"ordinalPosition\": 0,\n                  \"primaryKey\": false\n                }\n              ],\n              \"table\": \"\"\n            }\n          ]\n        }\n      ]\n    },\n    \"oracleExcludedObjects\": {\n      \"oracleSchemas\": [\n        {\n          \"oracleTables\": [\n            {\n              \"oracleColumns\": [\n                {\n                  \"column\": \"\",\n                  \"dataType\": \"\",\n                  \"encoding\": \"\",\n                  \"length\": 0,\n                  \"nullable\": false,\n                  \"ordinalPosition\": 0,\n                  \"precision\": 0,\n                  \"primaryKey\": false,\n                  \"scale\": 0\n                }\n              ],\n              \"table\": \"\"\n            }\n          ],\n          \"schema\": \"\"\n        }\n      ]\n    },\n    \"postgresqlExcludedObjects\": {\n      \"postgresqlSchemas\": [\n        {\n          \"postgresqlTables\": [\n            {\n              \"postgresqlColumns\": [\n                {\n                  \"column\": \"\",\n                  \"dataType\": \"\",\n                  \"length\": 0,\n                  \"nullable\": false,\n                  \"ordinalPosition\": 0,\n                  \"precision\": 0,\n                  \"primaryKey\": false,\n                  \"scale\": 0\n                }\n              ],\n              \"table\": \"\"\n            }\n          ],\n          \"schema\": \"\"\n        }\n      ]\n    }\n  },\n  \"backfillNone\": {},\n  \"createTime\": \"\",\n  \"customerManagedEncryptionKey\": \"\",\n  \"destinationConfig\": {\n    \"bigqueryDestinationConfig\": {\n      \"dataFreshness\": \"\",\n      \"singleTargetDataset\": {\n        \"datasetId\": \"\"\n      },\n      \"sourceHierarchyDatasets\": {\n        \"datasetTemplate\": {\n          \"datasetIdPrefix\": \"\",\n          \"kmsKeyName\": \"\",\n          \"location\": \"\"\n        }\n      }\n    },\n    \"destinationConnectionProfile\": \"\",\n    \"gcsDestinationConfig\": {\n      \"avroFileFormat\": {},\n      \"fileRotationInterval\": \"\",\n      \"fileRotationMb\": 0,\n      \"jsonFileFormat\": {\n        \"compression\": \"\",\n        \"schemaFileFormat\": \"\"\n      },\n      \"path\": \"\"\n    }\n  },\n  \"displayName\": \"\",\n  \"errors\": [\n    {\n      \"details\": {},\n      \"errorTime\": \"\",\n      \"errorUuid\": \"\",\n      \"message\": \"\",\n      \"reason\": \"\"\n    }\n  ],\n  \"labels\": {},\n  \"name\": \"\",\n  \"sourceConfig\": {\n    \"mysqlSourceConfig\": {\n      \"excludeObjects\": {},\n      \"includeObjects\": {},\n      \"maxConcurrentBackfillTasks\": 0,\n      \"maxConcurrentCdcTasks\": 0\n    },\n    \"oracleSourceConfig\": {\n      \"dropLargeObjects\": {},\n      \"excludeObjects\": {},\n      \"includeObjects\": {},\n      \"maxConcurrentBackfillTasks\": 0,\n      \"maxConcurrentCdcTasks\": 0,\n      \"streamLargeObjects\": {}\n    },\n    \"postgresqlSourceConfig\": {\n      \"excludeObjects\": {},\n      \"includeObjects\": {},\n      \"maxConcurrentBackfillTasks\": 0,\n      \"publication\": \"\",\n      \"replicationSlot\": \"\"\n    },\n    \"sourceConnectionProfile\": \"\"\n  },\n  \"state\": \"\",\n  \"updateTime\": \"\"\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/v1/:parent/streams",
  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([
    'backfillAll' => [
        'mysqlExcludedObjects' => [
                'mysqlDatabases' => [
                                [
                                                                'database' => '',
                                                                'mysqlTables' => [
                                                                                                                                [
                                                                                                                                                                                                                                                                'mysqlColumns' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'collation' => '',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'column' => '',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'dataType' => '',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'length' => 0,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'nullable' => null,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'ordinalPosition' => 0,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'primaryKey' => null
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                ]
                                                                                                                                                                                                                                                                ],
                                                                                                                                                                                                                                                                'table' => ''
                                                                                                                                ]
                                                                ]
                                ]
                ]
        ],
        'oracleExcludedObjects' => [
                'oracleSchemas' => [
                                [
                                                                'oracleTables' => [
                                                                                                                                [
                                                                                                                                                                                                                                                                'oracleColumns' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'column' => '',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'dataType' => '',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'encoding' => '',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'length' => 0,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'nullable' => null,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'ordinalPosition' => 0,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'precision' => 0,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'primaryKey' => null,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'scale' => 0
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                ]
                                                                                                                                                                                                                                                                ],
                                                                                                                                                                                                                                                                'table' => ''
                                                                                                                                ]
                                                                ],
                                                                'schema' => ''
                                ]
                ]
        ],
        'postgresqlExcludedObjects' => [
                'postgresqlSchemas' => [
                                [
                                                                'postgresqlTables' => [
                                                                                                                                [
                                                                                                                                                                                                                                                                'postgresqlColumns' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'column' => '',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'dataType' => '',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'length' => 0,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'nullable' => null,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'ordinalPosition' => 0,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'precision' => 0,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'primaryKey' => null,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'scale' => 0
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                ]
                                                                                                                                                                                                                                                                ],
                                                                                                                                                                                                                                                                'table' => ''
                                                                                                                                ]
                                                                ],
                                                                'schema' => ''
                                ]
                ]
        ]
    ],
    'backfillNone' => [
        
    ],
    'createTime' => '',
    'customerManagedEncryptionKey' => '',
    'destinationConfig' => [
        'bigqueryDestinationConfig' => [
                'dataFreshness' => '',
                'singleTargetDataset' => [
                                'datasetId' => ''
                ],
                'sourceHierarchyDatasets' => [
                                'datasetTemplate' => [
                                                                'datasetIdPrefix' => '',
                                                                'kmsKeyName' => '',
                                                                'location' => ''
                                ]
                ]
        ],
        'destinationConnectionProfile' => '',
        'gcsDestinationConfig' => [
                'avroFileFormat' => [
                                
                ],
                'fileRotationInterval' => '',
                'fileRotationMb' => 0,
                'jsonFileFormat' => [
                                'compression' => '',
                                'schemaFileFormat' => ''
                ],
                'path' => ''
        ]
    ],
    'displayName' => '',
    'errors' => [
        [
                'details' => [
                                
                ],
                'errorTime' => '',
                'errorUuid' => '',
                'message' => '',
                'reason' => ''
        ]
    ],
    'labels' => [
        
    ],
    'name' => '',
    'sourceConfig' => [
        'mysqlSourceConfig' => [
                'excludeObjects' => [
                                
                ],
                'includeObjects' => [
                                
                ],
                'maxConcurrentBackfillTasks' => 0,
                'maxConcurrentCdcTasks' => 0
        ],
        'oracleSourceConfig' => [
                'dropLargeObjects' => [
                                
                ],
                'excludeObjects' => [
                                
                ],
                'includeObjects' => [
                                
                ],
                'maxConcurrentBackfillTasks' => 0,
                'maxConcurrentCdcTasks' => 0,
                'streamLargeObjects' => [
                                
                ]
        ],
        'postgresqlSourceConfig' => [
                'excludeObjects' => [
                                
                ],
                'includeObjects' => [
                                
                ],
                'maxConcurrentBackfillTasks' => 0,
                'publication' => '',
                'replicationSlot' => ''
        ],
        'sourceConnectionProfile' => ''
    ],
    'state' => '',
    'updateTime' => ''
  ]),
  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/:parent/streams', [
  'body' => '{
  "backfillAll": {
    "mysqlExcludedObjects": {
      "mysqlDatabases": [
        {
          "database": "",
          "mysqlTables": [
            {
              "mysqlColumns": [
                {
                  "collation": "",
                  "column": "",
                  "dataType": "",
                  "length": 0,
                  "nullable": false,
                  "ordinalPosition": 0,
                  "primaryKey": false
                }
              ],
              "table": ""
            }
          ]
        }
      ]
    },
    "oracleExcludedObjects": {
      "oracleSchemas": [
        {
          "oracleTables": [
            {
              "oracleColumns": [
                {
                  "column": "",
                  "dataType": "",
                  "encoding": "",
                  "length": 0,
                  "nullable": false,
                  "ordinalPosition": 0,
                  "precision": 0,
                  "primaryKey": false,
                  "scale": 0
                }
              ],
              "table": ""
            }
          ],
          "schema": ""
        }
      ]
    },
    "postgresqlExcludedObjects": {
      "postgresqlSchemas": [
        {
          "postgresqlTables": [
            {
              "postgresqlColumns": [
                {
                  "column": "",
                  "dataType": "",
                  "length": 0,
                  "nullable": false,
                  "ordinalPosition": 0,
                  "precision": 0,
                  "primaryKey": false,
                  "scale": 0
                }
              ],
              "table": ""
            }
          ],
          "schema": ""
        }
      ]
    }
  },
  "backfillNone": {},
  "createTime": "",
  "customerManagedEncryptionKey": "",
  "destinationConfig": {
    "bigqueryDestinationConfig": {
      "dataFreshness": "",
      "singleTargetDataset": {
        "datasetId": ""
      },
      "sourceHierarchyDatasets": {
        "datasetTemplate": {
          "datasetIdPrefix": "",
          "kmsKeyName": "",
          "location": ""
        }
      }
    },
    "destinationConnectionProfile": "",
    "gcsDestinationConfig": {
      "avroFileFormat": {},
      "fileRotationInterval": "",
      "fileRotationMb": 0,
      "jsonFileFormat": {
        "compression": "",
        "schemaFileFormat": ""
      },
      "path": ""
    }
  },
  "displayName": "",
  "errors": [
    {
      "details": {},
      "errorTime": "",
      "errorUuid": "",
      "message": "",
      "reason": ""
    }
  ],
  "labels": {},
  "name": "",
  "sourceConfig": {
    "mysqlSourceConfig": {
      "excludeObjects": {},
      "includeObjects": {},
      "maxConcurrentBackfillTasks": 0,
      "maxConcurrentCdcTasks": 0
    },
    "oracleSourceConfig": {
      "dropLargeObjects": {},
      "excludeObjects": {},
      "includeObjects": {},
      "maxConcurrentBackfillTasks": 0,
      "maxConcurrentCdcTasks": 0,
      "streamLargeObjects": {}
    },
    "postgresqlSourceConfig": {
      "excludeObjects": {},
      "includeObjects": {},
      "maxConcurrentBackfillTasks": 0,
      "publication": "",
      "replicationSlot": ""
    },
    "sourceConnectionProfile": ""
  },
  "state": "",
  "updateTime": ""
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

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

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

$request->setContentType('application/json');
$request->setBody(json_encode([
  'backfillAll' => [
    'mysqlExcludedObjects' => [
        'mysqlDatabases' => [
                [
                                'database' => '',
                                'mysqlTables' => [
                                                                [
                                                                                                                                'mysqlColumns' => [
                                                                                                                                                                                                                                                                [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'collation' => '',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'column' => '',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'dataType' => '',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'length' => 0,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'nullable' => null,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'ordinalPosition' => 0,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'primaryKey' => null
                                                                                                                                                                                                                                                                ]
                                                                                                                                ],
                                                                                                                                'table' => ''
                                                                ]
                                ]
                ]
        ]
    ],
    'oracleExcludedObjects' => [
        'oracleSchemas' => [
                [
                                'oracleTables' => [
                                                                [
                                                                                                                                'oracleColumns' => [
                                                                                                                                                                                                                                                                [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'column' => '',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'dataType' => '',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'encoding' => '',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'length' => 0,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'nullable' => null,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'ordinalPosition' => 0,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'precision' => 0,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'primaryKey' => null,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'scale' => 0
                                                                                                                                                                                                                                                                ]
                                                                                                                                ],
                                                                                                                                'table' => ''
                                                                ]
                                ],
                                'schema' => ''
                ]
        ]
    ],
    'postgresqlExcludedObjects' => [
        'postgresqlSchemas' => [
                [
                                'postgresqlTables' => [
                                                                [
                                                                                                                                'postgresqlColumns' => [
                                                                                                                                                                                                                                                                [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'column' => '',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'dataType' => '',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'length' => 0,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'nullable' => null,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'ordinalPosition' => 0,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'precision' => 0,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'primaryKey' => null,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'scale' => 0
                                                                                                                                                                                                                                                                ]
                                                                                                                                ],
                                                                                                                                'table' => ''
                                                                ]
                                ],
                                'schema' => ''
                ]
        ]
    ]
  ],
  'backfillNone' => [
    
  ],
  'createTime' => '',
  'customerManagedEncryptionKey' => '',
  'destinationConfig' => [
    'bigqueryDestinationConfig' => [
        'dataFreshness' => '',
        'singleTargetDataset' => [
                'datasetId' => ''
        ],
        'sourceHierarchyDatasets' => [
                'datasetTemplate' => [
                                'datasetIdPrefix' => '',
                                'kmsKeyName' => '',
                                'location' => ''
                ]
        ]
    ],
    'destinationConnectionProfile' => '',
    'gcsDestinationConfig' => [
        'avroFileFormat' => [
                
        ],
        'fileRotationInterval' => '',
        'fileRotationMb' => 0,
        'jsonFileFormat' => [
                'compression' => '',
                'schemaFileFormat' => ''
        ],
        'path' => ''
    ]
  ],
  'displayName' => '',
  'errors' => [
    [
        'details' => [
                
        ],
        'errorTime' => '',
        'errorUuid' => '',
        'message' => '',
        'reason' => ''
    ]
  ],
  'labels' => [
    
  ],
  'name' => '',
  'sourceConfig' => [
    'mysqlSourceConfig' => [
        'excludeObjects' => [
                
        ],
        'includeObjects' => [
                
        ],
        'maxConcurrentBackfillTasks' => 0,
        'maxConcurrentCdcTasks' => 0
    ],
    'oracleSourceConfig' => [
        'dropLargeObjects' => [
                
        ],
        'excludeObjects' => [
                
        ],
        'includeObjects' => [
                
        ],
        'maxConcurrentBackfillTasks' => 0,
        'maxConcurrentCdcTasks' => 0,
        'streamLargeObjects' => [
                
        ]
    ],
    'postgresqlSourceConfig' => [
        'excludeObjects' => [
                
        ],
        'includeObjects' => [
                
        ],
        'maxConcurrentBackfillTasks' => 0,
        'publication' => '',
        'replicationSlot' => ''
    ],
    'sourceConnectionProfile' => ''
  ],
  'state' => '',
  'updateTime' => ''
]));

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'backfillAll' => [
    'mysqlExcludedObjects' => [
        'mysqlDatabases' => [
                [
                                'database' => '',
                                'mysqlTables' => [
                                                                [
                                                                                                                                'mysqlColumns' => [
                                                                                                                                                                                                                                                                [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'collation' => '',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'column' => '',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'dataType' => '',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'length' => 0,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'nullable' => null,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'ordinalPosition' => 0,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'primaryKey' => null
                                                                                                                                                                                                                                                                ]
                                                                                                                                ],
                                                                                                                                'table' => ''
                                                                ]
                                ]
                ]
        ]
    ],
    'oracleExcludedObjects' => [
        'oracleSchemas' => [
                [
                                'oracleTables' => [
                                                                [
                                                                                                                                'oracleColumns' => [
                                                                                                                                                                                                                                                                [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'column' => '',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'dataType' => '',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'encoding' => '',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'length' => 0,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'nullable' => null,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'ordinalPosition' => 0,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'precision' => 0,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'primaryKey' => null,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'scale' => 0
                                                                                                                                                                                                                                                                ]
                                                                                                                                ],
                                                                                                                                'table' => ''
                                                                ]
                                ],
                                'schema' => ''
                ]
        ]
    ],
    'postgresqlExcludedObjects' => [
        'postgresqlSchemas' => [
                [
                                'postgresqlTables' => [
                                                                [
                                                                                                                                'postgresqlColumns' => [
                                                                                                                                                                                                                                                                [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'column' => '',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'dataType' => '',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'length' => 0,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'nullable' => null,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'ordinalPosition' => 0,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'precision' => 0,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'primaryKey' => null,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'scale' => 0
                                                                                                                                                                                                                                                                ]
                                                                                                                                ],
                                                                                                                                'table' => ''
                                                                ]
                                ],
                                'schema' => ''
                ]
        ]
    ]
  ],
  'backfillNone' => [
    
  ],
  'createTime' => '',
  'customerManagedEncryptionKey' => '',
  'destinationConfig' => [
    'bigqueryDestinationConfig' => [
        'dataFreshness' => '',
        'singleTargetDataset' => [
                'datasetId' => ''
        ],
        'sourceHierarchyDatasets' => [
                'datasetTemplate' => [
                                'datasetIdPrefix' => '',
                                'kmsKeyName' => '',
                                'location' => ''
                ]
        ]
    ],
    'destinationConnectionProfile' => '',
    'gcsDestinationConfig' => [
        'avroFileFormat' => [
                
        ],
        'fileRotationInterval' => '',
        'fileRotationMb' => 0,
        'jsonFileFormat' => [
                'compression' => '',
                'schemaFileFormat' => ''
        ],
        'path' => ''
    ]
  ],
  'displayName' => '',
  'errors' => [
    [
        'details' => [
                
        ],
        'errorTime' => '',
        'errorUuid' => '',
        'message' => '',
        'reason' => ''
    ]
  ],
  'labels' => [
    
  ],
  'name' => '',
  'sourceConfig' => [
    'mysqlSourceConfig' => [
        'excludeObjects' => [
                
        ],
        'includeObjects' => [
                
        ],
        'maxConcurrentBackfillTasks' => 0,
        'maxConcurrentCdcTasks' => 0
    ],
    'oracleSourceConfig' => [
        'dropLargeObjects' => [
                
        ],
        'excludeObjects' => [
                
        ],
        'includeObjects' => [
                
        ],
        'maxConcurrentBackfillTasks' => 0,
        'maxConcurrentCdcTasks' => 0,
        'streamLargeObjects' => [
                
        ]
    ],
    'postgresqlSourceConfig' => [
        'excludeObjects' => [
                
        ],
        'includeObjects' => [
                
        ],
        'maxConcurrentBackfillTasks' => 0,
        'publication' => '',
        'replicationSlot' => ''
    ],
    'sourceConnectionProfile' => ''
  ],
  'state' => '',
  'updateTime' => ''
]));
$request->setRequestUrl('{{baseUrl}}/v1/:parent/streams');
$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/:parent/streams' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "backfillAll": {
    "mysqlExcludedObjects": {
      "mysqlDatabases": [
        {
          "database": "",
          "mysqlTables": [
            {
              "mysqlColumns": [
                {
                  "collation": "",
                  "column": "",
                  "dataType": "",
                  "length": 0,
                  "nullable": false,
                  "ordinalPosition": 0,
                  "primaryKey": false
                }
              ],
              "table": ""
            }
          ]
        }
      ]
    },
    "oracleExcludedObjects": {
      "oracleSchemas": [
        {
          "oracleTables": [
            {
              "oracleColumns": [
                {
                  "column": "",
                  "dataType": "",
                  "encoding": "",
                  "length": 0,
                  "nullable": false,
                  "ordinalPosition": 0,
                  "precision": 0,
                  "primaryKey": false,
                  "scale": 0
                }
              ],
              "table": ""
            }
          ],
          "schema": ""
        }
      ]
    },
    "postgresqlExcludedObjects": {
      "postgresqlSchemas": [
        {
          "postgresqlTables": [
            {
              "postgresqlColumns": [
                {
                  "column": "",
                  "dataType": "",
                  "length": 0,
                  "nullable": false,
                  "ordinalPosition": 0,
                  "precision": 0,
                  "primaryKey": false,
                  "scale": 0
                }
              ],
              "table": ""
            }
          ],
          "schema": ""
        }
      ]
    }
  },
  "backfillNone": {},
  "createTime": "",
  "customerManagedEncryptionKey": "",
  "destinationConfig": {
    "bigqueryDestinationConfig": {
      "dataFreshness": "",
      "singleTargetDataset": {
        "datasetId": ""
      },
      "sourceHierarchyDatasets": {
        "datasetTemplate": {
          "datasetIdPrefix": "",
          "kmsKeyName": "",
          "location": ""
        }
      }
    },
    "destinationConnectionProfile": "",
    "gcsDestinationConfig": {
      "avroFileFormat": {},
      "fileRotationInterval": "",
      "fileRotationMb": 0,
      "jsonFileFormat": {
        "compression": "",
        "schemaFileFormat": ""
      },
      "path": ""
    }
  },
  "displayName": "",
  "errors": [
    {
      "details": {},
      "errorTime": "",
      "errorUuid": "",
      "message": "",
      "reason": ""
    }
  ],
  "labels": {},
  "name": "",
  "sourceConfig": {
    "mysqlSourceConfig": {
      "excludeObjects": {},
      "includeObjects": {},
      "maxConcurrentBackfillTasks": 0,
      "maxConcurrentCdcTasks": 0
    },
    "oracleSourceConfig": {
      "dropLargeObjects": {},
      "excludeObjects": {},
      "includeObjects": {},
      "maxConcurrentBackfillTasks": 0,
      "maxConcurrentCdcTasks": 0,
      "streamLargeObjects": {}
    },
    "postgresqlSourceConfig": {
      "excludeObjects": {},
      "includeObjects": {},
      "maxConcurrentBackfillTasks": 0,
      "publication": "",
      "replicationSlot": ""
    },
    "sourceConnectionProfile": ""
  },
  "state": "",
  "updateTime": ""
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/v1/:parent/streams' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "backfillAll": {
    "mysqlExcludedObjects": {
      "mysqlDatabases": [
        {
          "database": "",
          "mysqlTables": [
            {
              "mysqlColumns": [
                {
                  "collation": "",
                  "column": "",
                  "dataType": "",
                  "length": 0,
                  "nullable": false,
                  "ordinalPosition": 0,
                  "primaryKey": false
                }
              ],
              "table": ""
            }
          ]
        }
      ]
    },
    "oracleExcludedObjects": {
      "oracleSchemas": [
        {
          "oracleTables": [
            {
              "oracleColumns": [
                {
                  "column": "",
                  "dataType": "",
                  "encoding": "",
                  "length": 0,
                  "nullable": false,
                  "ordinalPosition": 0,
                  "precision": 0,
                  "primaryKey": false,
                  "scale": 0
                }
              ],
              "table": ""
            }
          ],
          "schema": ""
        }
      ]
    },
    "postgresqlExcludedObjects": {
      "postgresqlSchemas": [
        {
          "postgresqlTables": [
            {
              "postgresqlColumns": [
                {
                  "column": "",
                  "dataType": "",
                  "length": 0,
                  "nullable": false,
                  "ordinalPosition": 0,
                  "precision": 0,
                  "primaryKey": false,
                  "scale": 0
                }
              ],
              "table": ""
            }
          ],
          "schema": ""
        }
      ]
    }
  },
  "backfillNone": {},
  "createTime": "",
  "customerManagedEncryptionKey": "",
  "destinationConfig": {
    "bigqueryDestinationConfig": {
      "dataFreshness": "",
      "singleTargetDataset": {
        "datasetId": ""
      },
      "sourceHierarchyDatasets": {
        "datasetTemplate": {
          "datasetIdPrefix": "",
          "kmsKeyName": "",
          "location": ""
        }
      }
    },
    "destinationConnectionProfile": "",
    "gcsDestinationConfig": {
      "avroFileFormat": {},
      "fileRotationInterval": "",
      "fileRotationMb": 0,
      "jsonFileFormat": {
        "compression": "",
        "schemaFileFormat": ""
      },
      "path": ""
    }
  },
  "displayName": "",
  "errors": [
    {
      "details": {},
      "errorTime": "",
      "errorUuid": "",
      "message": "",
      "reason": ""
    }
  ],
  "labels": {},
  "name": "",
  "sourceConfig": {
    "mysqlSourceConfig": {
      "excludeObjects": {},
      "includeObjects": {},
      "maxConcurrentBackfillTasks": 0,
      "maxConcurrentCdcTasks": 0
    },
    "oracleSourceConfig": {
      "dropLargeObjects": {},
      "excludeObjects": {},
      "includeObjects": {},
      "maxConcurrentBackfillTasks": 0,
      "maxConcurrentCdcTasks": 0,
      "streamLargeObjects": {}
    },
    "postgresqlSourceConfig": {
      "excludeObjects": {},
      "includeObjects": {},
      "maxConcurrentBackfillTasks": 0,
      "publication": "",
      "replicationSlot": ""
    },
    "sourceConnectionProfile": ""
  },
  "state": "",
  "updateTime": ""
}'
import http.client

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

payload = "{\n  \"backfillAll\": {\n    \"mysqlExcludedObjects\": {\n      \"mysqlDatabases\": [\n        {\n          \"database\": \"\",\n          \"mysqlTables\": [\n            {\n              \"mysqlColumns\": [\n                {\n                  \"collation\": \"\",\n                  \"column\": \"\",\n                  \"dataType\": \"\",\n                  \"length\": 0,\n                  \"nullable\": false,\n                  \"ordinalPosition\": 0,\n                  \"primaryKey\": false\n                }\n              ],\n              \"table\": \"\"\n            }\n          ]\n        }\n      ]\n    },\n    \"oracleExcludedObjects\": {\n      \"oracleSchemas\": [\n        {\n          \"oracleTables\": [\n            {\n              \"oracleColumns\": [\n                {\n                  \"column\": \"\",\n                  \"dataType\": \"\",\n                  \"encoding\": \"\",\n                  \"length\": 0,\n                  \"nullable\": false,\n                  \"ordinalPosition\": 0,\n                  \"precision\": 0,\n                  \"primaryKey\": false,\n                  \"scale\": 0\n                }\n              ],\n              \"table\": \"\"\n            }\n          ],\n          \"schema\": \"\"\n        }\n      ]\n    },\n    \"postgresqlExcludedObjects\": {\n      \"postgresqlSchemas\": [\n        {\n          \"postgresqlTables\": [\n            {\n              \"postgresqlColumns\": [\n                {\n                  \"column\": \"\",\n                  \"dataType\": \"\",\n                  \"length\": 0,\n                  \"nullable\": false,\n                  \"ordinalPosition\": 0,\n                  \"precision\": 0,\n                  \"primaryKey\": false,\n                  \"scale\": 0\n                }\n              ],\n              \"table\": \"\"\n            }\n          ],\n          \"schema\": \"\"\n        }\n      ]\n    }\n  },\n  \"backfillNone\": {},\n  \"createTime\": \"\",\n  \"customerManagedEncryptionKey\": \"\",\n  \"destinationConfig\": {\n    \"bigqueryDestinationConfig\": {\n      \"dataFreshness\": \"\",\n      \"singleTargetDataset\": {\n        \"datasetId\": \"\"\n      },\n      \"sourceHierarchyDatasets\": {\n        \"datasetTemplate\": {\n          \"datasetIdPrefix\": \"\",\n          \"kmsKeyName\": \"\",\n          \"location\": \"\"\n        }\n      }\n    },\n    \"destinationConnectionProfile\": \"\",\n    \"gcsDestinationConfig\": {\n      \"avroFileFormat\": {},\n      \"fileRotationInterval\": \"\",\n      \"fileRotationMb\": 0,\n      \"jsonFileFormat\": {\n        \"compression\": \"\",\n        \"schemaFileFormat\": \"\"\n      },\n      \"path\": \"\"\n    }\n  },\n  \"displayName\": \"\",\n  \"errors\": [\n    {\n      \"details\": {},\n      \"errorTime\": \"\",\n      \"errorUuid\": \"\",\n      \"message\": \"\",\n      \"reason\": \"\"\n    }\n  ],\n  \"labels\": {},\n  \"name\": \"\",\n  \"sourceConfig\": {\n    \"mysqlSourceConfig\": {\n      \"excludeObjects\": {},\n      \"includeObjects\": {},\n      \"maxConcurrentBackfillTasks\": 0,\n      \"maxConcurrentCdcTasks\": 0\n    },\n    \"oracleSourceConfig\": {\n      \"dropLargeObjects\": {},\n      \"excludeObjects\": {},\n      \"includeObjects\": {},\n      \"maxConcurrentBackfillTasks\": 0,\n      \"maxConcurrentCdcTasks\": 0,\n      \"streamLargeObjects\": {}\n    },\n    \"postgresqlSourceConfig\": {\n      \"excludeObjects\": {},\n      \"includeObjects\": {},\n      \"maxConcurrentBackfillTasks\": 0,\n      \"publication\": \"\",\n      \"replicationSlot\": \"\"\n    },\n    \"sourceConnectionProfile\": \"\"\n  },\n  \"state\": \"\",\n  \"updateTime\": \"\"\n}"

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

conn.request("POST", "/baseUrl/v1/:parent/streams", payload, headers)

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

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

url = "{{baseUrl}}/v1/:parent/streams"

payload = {
    "backfillAll": {
        "mysqlExcludedObjects": { "mysqlDatabases": [
                {
                    "database": "",
                    "mysqlTables": [
                        {
                            "mysqlColumns": [
                                {
                                    "collation": "",
                                    "column": "",
                                    "dataType": "",
                                    "length": 0,
                                    "nullable": False,
                                    "ordinalPosition": 0,
                                    "primaryKey": False
                                }
                            ],
                            "table": ""
                        }
                    ]
                }
            ] },
        "oracleExcludedObjects": { "oracleSchemas": [
                {
                    "oracleTables": [
                        {
                            "oracleColumns": [
                                {
                                    "column": "",
                                    "dataType": "",
                                    "encoding": "",
                                    "length": 0,
                                    "nullable": False,
                                    "ordinalPosition": 0,
                                    "precision": 0,
                                    "primaryKey": False,
                                    "scale": 0
                                }
                            ],
                            "table": ""
                        }
                    ],
                    "schema": ""
                }
            ] },
        "postgresqlExcludedObjects": { "postgresqlSchemas": [
                {
                    "postgresqlTables": [
                        {
                            "postgresqlColumns": [
                                {
                                    "column": "",
                                    "dataType": "",
                                    "length": 0,
                                    "nullable": False,
                                    "ordinalPosition": 0,
                                    "precision": 0,
                                    "primaryKey": False,
                                    "scale": 0
                                }
                            ],
                            "table": ""
                        }
                    ],
                    "schema": ""
                }
            ] }
    },
    "backfillNone": {},
    "createTime": "",
    "customerManagedEncryptionKey": "",
    "destinationConfig": {
        "bigqueryDestinationConfig": {
            "dataFreshness": "",
            "singleTargetDataset": { "datasetId": "" },
            "sourceHierarchyDatasets": { "datasetTemplate": {
                    "datasetIdPrefix": "",
                    "kmsKeyName": "",
                    "location": ""
                } }
        },
        "destinationConnectionProfile": "",
        "gcsDestinationConfig": {
            "avroFileFormat": {},
            "fileRotationInterval": "",
            "fileRotationMb": 0,
            "jsonFileFormat": {
                "compression": "",
                "schemaFileFormat": ""
            },
            "path": ""
        }
    },
    "displayName": "",
    "errors": [
        {
            "details": {},
            "errorTime": "",
            "errorUuid": "",
            "message": "",
            "reason": ""
        }
    ],
    "labels": {},
    "name": "",
    "sourceConfig": {
        "mysqlSourceConfig": {
            "excludeObjects": {},
            "includeObjects": {},
            "maxConcurrentBackfillTasks": 0,
            "maxConcurrentCdcTasks": 0
        },
        "oracleSourceConfig": {
            "dropLargeObjects": {},
            "excludeObjects": {},
            "includeObjects": {},
            "maxConcurrentBackfillTasks": 0,
            "maxConcurrentCdcTasks": 0,
            "streamLargeObjects": {}
        },
        "postgresqlSourceConfig": {
            "excludeObjects": {},
            "includeObjects": {},
            "maxConcurrentBackfillTasks": 0,
            "publication": "",
            "replicationSlot": ""
        },
        "sourceConnectionProfile": ""
    },
    "state": "",
    "updateTime": ""
}
headers = {"content-type": "application/json"}

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

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

url <- "{{baseUrl}}/v1/:parent/streams"

payload <- "{\n  \"backfillAll\": {\n    \"mysqlExcludedObjects\": {\n      \"mysqlDatabases\": [\n        {\n          \"database\": \"\",\n          \"mysqlTables\": [\n            {\n              \"mysqlColumns\": [\n                {\n                  \"collation\": \"\",\n                  \"column\": \"\",\n                  \"dataType\": \"\",\n                  \"length\": 0,\n                  \"nullable\": false,\n                  \"ordinalPosition\": 0,\n                  \"primaryKey\": false\n                }\n              ],\n              \"table\": \"\"\n            }\n          ]\n        }\n      ]\n    },\n    \"oracleExcludedObjects\": {\n      \"oracleSchemas\": [\n        {\n          \"oracleTables\": [\n            {\n              \"oracleColumns\": [\n                {\n                  \"column\": \"\",\n                  \"dataType\": \"\",\n                  \"encoding\": \"\",\n                  \"length\": 0,\n                  \"nullable\": false,\n                  \"ordinalPosition\": 0,\n                  \"precision\": 0,\n                  \"primaryKey\": false,\n                  \"scale\": 0\n                }\n              ],\n              \"table\": \"\"\n            }\n          ],\n          \"schema\": \"\"\n        }\n      ]\n    },\n    \"postgresqlExcludedObjects\": {\n      \"postgresqlSchemas\": [\n        {\n          \"postgresqlTables\": [\n            {\n              \"postgresqlColumns\": [\n                {\n                  \"column\": \"\",\n                  \"dataType\": \"\",\n                  \"length\": 0,\n                  \"nullable\": false,\n                  \"ordinalPosition\": 0,\n                  \"precision\": 0,\n                  \"primaryKey\": false,\n                  \"scale\": 0\n                }\n              ],\n              \"table\": \"\"\n            }\n          ],\n          \"schema\": \"\"\n        }\n      ]\n    }\n  },\n  \"backfillNone\": {},\n  \"createTime\": \"\",\n  \"customerManagedEncryptionKey\": \"\",\n  \"destinationConfig\": {\n    \"bigqueryDestinationConfig\": {\n      \"dataFreshness\": \"\",\n      \"singleTargetDataset\": {\n        \"datasetId\": \"\"\n      },\n      \"sourceHierarchyDatasets\": {\n        \"datasetTemplate\": {\n          \"datasetIdPrefix\": \"\",\n          \"kmsKeyName\": \"\",\n          \"location\": \"\"\n        }\n      }\n    },\n    \"destinationConnectionProfile\": \"\",\n    \"gcsDestinationConfig\": {\n      \"avroFileFormat\": {},\n      \"fileRotationInterval\": \"\",\n      \"fileRotationMb\": 0,\n      \"jsonFileFormat\": {\n        \"compression\": \"\",\n        \"schemaFileFormat\": \"\"\n      },\n      \"path\": \"\"\n    }\n  },\n  \"displayName\": \"\",\n  \"errors\": [\n    {\n      \"details\": {},\n      \"errorTime\": \"\",\n      \"errorUuid\": \"\",\n      \"message\": \"\",\n      \"reason\": \"\"\n    }\n  ],\n  \"labels\": {},\n  \"name\": \"\",\n  \"sourceConfig\": {\n    \"mysqlSourceConfig\": {\n      \"excludeObjects\": {},\n      \"includeObjects\": {},\n      \"maxConcurrentBackfillTasks\": 0,\n      \"maxConcurrentCdcTasks\": 0\n    },\n    \"oracleSourceConfig\": {\n      \"dropLargeObjects\": {},\n      \"excludeObjects\": {},\n      \"includeObjects\": {},\n      \"maxConcurrentBackfillTasks\": 0,\n      \"maxConcurrentCdcTasks\": 0,\n      \"streamLargeObjects\": {}\n    },\n    \"postgresqlSourceConfig\": {\n      \"excludeObjects\": {},\n      \"includeObjects\": {},\n      \"maxConcurrentBackfillTasks\": 0,\n      \"publication\": \"\",\n      \"replicationSlot\": \"\"\n    },\n    \"sourceConnectionProfile\": \"\"\n  },\n  \"state\": \"\",\n  \"updateTime\": \"\"\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/:parent/streams")

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  \"backfillAll\": {\n    \"mysqlExcludedObjects\": {\n      \"mysqlDatabases\": [\n        {\n          \"database\": \"\",\n          \"mysqlTables\": [\n            {\n              \"mysqlColumns\": [\n                {\n                  \"collation\": \"\",\n                  \"column\": \"\",\n                  \"dataType\": \"\",\n                  \"length\": 0,\n                  \"nullable\": false,\n                  \"ordinalPosition\": 0,\n                  \"primaryKey\": false\n                }\n              ],\n              \"table\": \"\"\n            }\n          ]\n        }\n      ]\n    },\n    \"oracleExcludedObjects\": {\n      \"oracleSchemas\": [\n        {\n          \"oracleTables\": [\n            {\n              \"oracleColumns\": [\n                {\n                  \"column\": \"\",\n                  \"dataType\": \"\",\n                  \"encoding\": \"\",\n                  \"length\": 0,\n                  \"nullable\": false,\n                  \"ordinalPosition\": 0,\n                  \"precision\": 0,\n                  \"primaryKey\": false,\n                  \"scale\": 0\n                }\n              ],\n              \"table\": \"\"\n            }\n          ],\n          \"schema\": \"\"\n        }\n      ]\n    },\n    \"postgresqlExcludedObjects\": {\n      \"postgresqlSchemas\": [\n        {\n          \"postgresqlTables\": [\n            {\n              \"postgresqlColumns\": [\n                {\n                  \"column\": \"\",\n                  \"dataType\": \"\",\n                  \"length\": 0,\n                  \"nullable\": false,\n                  \"ordinalPosition\": 0,\n                  \"precision\": 0,\n                  \"primaryKey\": false,\n                  \"scale\": 0\n                }\n              ],\n              \"table\": \"\"\n            }\n          ],\n          \"schema\": \"\"\n        }\n      ]\n    }\n  },\n  \"backfillNone\": {},\n  \"createTime\": \"\",\n  \"customerManagedEncryptionKey\": \"\",\n  \"destinationConfig\": {\n    \"bigqueryDestinationConfig\": {\n      \"dataFreshness\": \"\",\n      \"singleTargetDataset\": {\n        \"datasetId\": \"\"\n      },\n      \"sourceHierarchyDatasets\": {\n        \"datasetTemplate\": {\n          \"datasetIdPrefix\": \"\",\n          \"kmsKeyName\": \"\",\n          \"location\": \"\"\n        }\n      }\n    },\n    \"destinationConnectionProfile\": \"\",\n    \"gcsDestinationConfig\": {\n      \"avroFileFormat\": {},\n      \"fileRotationInterval\": \"\",\n      \"fileRotationMb\": 0,\n      \"jsonFileFormat\": {\n        \"compression\": \"\",\n        \"schemaFileFormat\": \"\"\n      },\n      \"path\": \"\"\n    }\n  },\n  \"displayName\": \"\",\n  \"errors\": [\n    {\n      \"details\": {},\n      \"errorTime\": \"\",\n      \"errorUuid\": \"\",\n      \"message\": \"\",\n      \"reason\": \"\"\n    }\n  ],\n  \"labels\": {},\n  \"name\": \"\",\n  \"sourceConfig\": {\n    \"mysqlSourceConfig\": {\n      \"excludeObjects\": {},\n      \"includeObjects\": {},\n      \"maxConcurrentBackfillTasks\": 0,\n      \"maxConcurrentCdcTasks\": 0\n    },\n    \"oracleSourceConfig\": {\n      \"dropLargeObjects\": {},\n      \"excludeObjects\": {},\n      \"includeObjects\": {},\n      \"maxConcurrentBackfillTasks\": 0,\n      \"maxConcurrentCdcTasks\": 0,\n      \"streamLargeObjects\": {}\n    },\n    \"postgresqlSourceConfig\": {\n      \"excludeObjects\": {},\n      \"includeObjects\": {},\n      \"maxConcurrentBackfillTasks\": 0,\n      \"publication\": \"\",\n      \"replicationSlot\": \"\"\n    },\n    \"sourceConnectionProfile\": \"\"\n  },\n  \"state\": \"\",\n  \"updateTime\": \"\"\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/:parent/streams') do |req|
  req.body = "{\n  \"backfillAll\": {\n    \"mysqlExcludedObjects\": {\n      \"mysqlDatabases\": [\n        {\n          \"database\": \"\",\n          \"mysqlTables\": [\n            {\n              \"mysqlColumns\": [\n                {\n                  \"collation\": \"\",\n                  \"column\": \"\",\n                  \"dataType\": \"\",\n                  \"length\": 0,\n                  \"nullable\": false,\n                  \"ordinalPosition\": 0,\n                  \"primaryKey\": false\n                }\n              ],\n              \"table\": \"\"\n            }\n          ]\n        }\n      ]\n    },\n    \"oracleExcludedObjects\": {\n      \"oracleSchemas\": [\n        {\n          \"oracleTables\": [\n            {\n              \"oracleColumns\": [\n                {\n                  \"column\": \"\",\n                  \"dataType\": \"\",\n                  \"encoding\": \"\",\n                  \"length\": 0,\n                  \"nullable\": false,\n                  \"ordinalPosition\": 0,\n                  \"precision\": 0,\n                  \"primaryKey\": false,\n                  \"scale\": 0\n                }\n              ],\n              \"table\": \"\"\n            }\n          ],\n          \"schema\": \"\"\n        }\n      ]\n    },\n    \"postgresqlExcludedObjects\": {\n      \"postgresqlSchemas\": [\n        {\n          \"postgresqlTables\": [\n            {\n              \"postgresqlColumns\": [\n                {\n                  \"column\": \"\",\n                  \"dataType\": \"\",\n                  \"length\": 0,\n                  \"nullable\": false,\n                  \"ordinalPosition\": 0,\n                  \"precision\": 0,\n                  \"primaryKey\": false,\n                  \"scale\": 0\n                }\n              ],\n              \"table\": \"\"\n            }\n          ],\n          \"schema\": \"\"\n        }\n      ]\n    }\n  },\n  \"backfillNone\": {},\n  \"createTime\": \"\",\n  \"customerManagedEncryptionKey\": \"\",\n  \"destinationConfig\": {\n    \"bigqueryDestinationConfig\": {\n      \"dataFreshness\": \"\",\n      \"singleTargetDataset\": {\n        \"datasetId\": \"\"\n      },\n      \"sourceHierarchyDatasets\": {\n        \"datasetTemplate\": {\n          \"datasetIdPrefix\": \"\",\n          \"kmsKeyName\": \"\",\n          \"location\": \"\"\n        }\n      }\n    },\n    \"destinationConnectionProfile\": \"\",\n    \"gcsDestinationConfig\": {\n      \"avroFileFormat\": {},\n      \"fileRotationInterval\": \"\",\n      \"fileRotationMb\": 0,\n      \"jsonFileFormat\": {\n        \"compression\": \"\",\n        \"schemaFileFormat\": \"\"\n      },\n      \"path\": \"\"\n    }\n  },\n  \"displayName\": \"\",\n  \"errors\": [\n    {\n      \"details\": {},\n      \"errorTime\": \"\",\n      \"errorUuid\": \"\",\n      \"message\": \"\",\n      \"reason\": \"\"\n    }\n  ],\n  \"labels\": {},\n  \"name\": \"\",\n  \"sourceConfig\": {\n    \"mysqlSourceConfig\": {\n      \"excludeObjects\": {},\n      \"includeObjects\": {},\n      \"maxConcurrentBackfillTasks\": 0,\n      \"maxConcurrentCdcTasks\": 0\n    },\n    \"oracleSourceConfig\": {\n      \"dropLargeObjects\": {},\n      \"excludeObjects\": {},\n      \"includeObjects\": {},\n      \"maxConcurrentBackfillTasks\": 0,\n      \"maxConcurrentCdcTasks\": 0,\n      \"streamLargeObjects\": {}\n    },\n    \"postgresqlSourceConfig\": {\n      \"excludeObjects\": {},\n      \"includeObjects\": {},\n      \"maxConcurrentBackfillTasks\": 0,\n      \"publication\": \"\",\n      \"replicationSlot\": \"\"\n    },\n    \"sourceConnectionProfile\": \"\"\n  },\n  \"state\": \"\",\n  \"updateTime\": \"\"\n}"
end

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

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

    let payload = json!({
        "backfillAll": json!({
            "mysqlExcludedObjects": json!({"mysqlDatabases": (
                    json!({
                        "database": "",
                        "mysqlTables": (
                            json!({
                                "mysqlColumns": (
                                    json!({
                                        "collation": "",
                                        "column": "",
                                        "dataType": "",
                                        "length": 0,
                                        "nullable": false,
                                        "ordinalPosition": 0,
                                        "primaryKey": false
                                    })
                                ),
                                "table": ""
                            })
                        )
                    })
                )}),
            "oracleExcludedObjects": json!({"oracleSchemas": (
                    json!({
                        "oracleTables": (
                            json!({
                                "oracleColumns": (
                                    json!({
                                        "column": "",
                                        "dataType": "",
                                        "encoding": "",
                                        "length": 0,
                                        "nullable": false,
                                        "ordinalPosition": 0,
                                        "precision": 0,
                                        "primaryKey": false,
                                        "scale": 0
                                    })
                                ),
                                "table": ""
                            })
                        ),
                        "schema": ""
                    })
                )}),
            "postgresqlExcludedObjects": json!({"postgresqlSchemas": (
                    json!({
                        "postgresqlTables": (
                            json!({
                                "postgresqlColumns": (
                                    json!({
                                        "column": "",
                                        "dataType": "",
                                        "length": 0,
                                        "nullable": false,
                                        "ordinalPosition": 0,
                                        "precision": 0,
                                        "primaryKey": false,
                                        "scale": 0
                                    })
                                ),
                                "table": ""
                            })
                        ),
                        "schema": ""
                    })
                )})
        }),
        "backfillNone": json!({}),
        "createTime": "",
        "customerManagedEncryptionKey": "",
        "destinationConfig": json!({
            "bigqueryDestinationConfig": json!({
                "dataFreshness": "",
                "singleTargetDataset": json!({"datasetId": ""}),
                "sourceHierarchyDatasets": json!({"datasetTemplate": json!({
                        "datasetIdPrefix": "",
                        "kmsKeyName": "",
                        "location": ""
                    })})
            }),
            "destinationConnectionProfile": "",
            "gcsDestinationConfig": json!({
                "avroFileFormat": json!({}),
                "fileRotationInterval": "",
                "fileRotationMb": 0,
                "jsonFileFormat": json!({
                    "compression": "",
                    "schemaFileFormat": ""
                }),
                "path": ""
            })
        }),
        "displayName": "",
        "errors": (
            json!({
                "details": json!({}),
                "errorTime": "",
                "errorUuid": "",
                "message": "",
                "reason": ""
            })
        ),
        "labels": json!({}),
        "name": "",
        "sourceConfig": json!({
            "mysqlSourceConfig": json!({
                "excludeObjects": json!({}),
                "includeObjects": json!({}),
                "maxConcurrentBackfillTasks": 0,
                "maxConcurrentCdcTasks": 0
            }),
            "oracleSourceConfig": json!({
                "dropLargeObjects": json!({}),
                "excludeObjects": json!({}),
                "includeObjects": json!({}),
                "maxConcurrentBackfillTasks": 0,
                "maxConcurrentCdcTasks": 0,
                "streamLargeObjects": json!({})
            }),
            "postgresqlSourceConfig": json!({
                "excludeObjects": json!({}),
                "includeObjects": json!({}),
                "maxConcurrentBackfillTasks": 0,
                "publication": "",
                "replicationSlot": ""
            }),
            "sourceConnectionProfile": ""
        }),
        "state": "",
        "updateTime": ""
    });

    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/:parent/streams \
  --header 'content-type: application/json' \
  --data '{
  "backfillAll": {
    "mysqlExcludedObjects": {
      "mysqlDatabases": [
        {
          "database": "",
          "mysqlTables": [
            {
              "mysqlColumns": [
                {
                  "collation": "",
                  "column": "",
                  "dataType": "",
                  "length": 0,
                  "nullable": false,
                  "ordinalPosition": 0,
                  "primaryKey": false
                }
              ],
              "table": ""
            }
          ]
        }
      ]
    },
    "oracleExcludedObjects": {
      "oracleSchemas": [
        {
          "oracleTables": [
            {
              "oracleColumns": [
                {
                  "column": "",
                  "dataType": "",
                  "encoding": "",
                  "length": 0,
                  "nullable": false,
                  "ordinalPosition": 0,
                  "precision": 0,
                  "primaryKey": false,
                  "scale": 0
                }
              ],
              "table": ""
            }
          ],
          "schema": ""
        }
      ]
    },
    "postgresqlExcludedObjects": {
      "postgresqlSchemas": [
        {
          "postgresqlTables": [
            {
              "postgresqlColumns": [
                {
                  "column": "",
                  "dataType": "",
                  "length": 0,
                  "nullable": false,
                  "ordinalPosition": 0,
                  "precision": 0,
                  "primaryKey": false,
                  "scale": 0
                }
              ],
              "table": ""
            }
          ],
          "schema": ""
        }
      ]
    }
  },
  "backfillNone": {},
  "createTime": "",
  "customerManagedEncryptionKey": "",
  "destinationConfig": {
    "bigqueryDestinationConfig": {
      "dataFreshness": "",
      "singleTargetDataset": {
        "datasetId": ""
      },
      "sourceHierarchyDatasets": {
        "datasetTemplate": {
          "datasetIdPrefix": "",
          "kmsKeyName": "",
          "location": ""
        }
      }
    },
    "destinationConnectionProfile": "",
    "gcsDestinationConfig": {
      "avroFileFormat": {},
      "fileRotationInterval": "",
      "fileRotationMb": 0,
      "jsonFileFormat": {
        "compression": "",
        "schemaFileFormat": ""
      },
      "path": ""
    }
  },
  "displayName": "",
  "errors": [
    {
      "details": {},
      "errorTime": "",
      "errorUuid": "",
      "message": "",
      "reason": ""
    }
  ],
  "labels": {},
  "name": "",
  "sourceConfig": {
    "mysqlSourceConfig": {
      "excludeObjects": {},
      "includeObjects": {},
      "maxConcurrentBackfillTasks": 0,
      "maxConcurrentCdcTasks": 0
    },
    "oracleSourceConfig": {
      "dropLargeObjects": {},
      "excludeObjects": {},
      "includeObjects": {},
      "maxConcurrentBackfillTasks": 0,
      "maxConcurrentCdcTasks": 0,
      "streamLargeObjects": {}
    },
    "postgresqlSourceConfig": {
      "excludeObjects": {},
      "includeObjects": {},
      "maxConcurrentBackfillTasks": 0,
      "publication": "",
      "replicationSlot": ""
    },
    "sourceConnectionProfile": ""
  },
  "state": "",
  "updateTime": ""
}'
echo '{
  "backfillAll": {
    "mysqlExcludedObjects": {
      "mysqlDatabases": [
        {
          "database": "",
          "mysqlTables": [
            {
              "mysqlColumns": [
                {
                  "collation": "",
                  "column": "",
                  "dataType": "",
                  "length": 0,
                  "nullable": false,
                  "ordinalPosition": 0,
                  "primaryKey": false
                }
              ],
              "table": ""
            }
          ]
        }
      ]
    },
    "oracleExcludedObjects": {
      "oracleSchemas": [
        {
          "oracleTables": [
            {
              "oracleColumns": [
                {
                  "column": "",
                  "dataType": "",
                  "encoding": "",
                  "length": 0,
                  "nullable": false,
                  "ordinalPosition": 0,
                  "precision": 0,
                  "primaryKey": false,
                  "scale": 0
                }
              ],
              "table": ""
            }
          ],
          "schema": ""
        }
      ]
    },
    "postgresqlExcludedObjects": {
      "postgresqlSchemas": [
        {
          "postgresqlTables": [
            {
              "postgresqlColumns": [
                {
                  "column": "",
                  "dataType": "",
                  "length": 0,
                  "nullable": false,
                  "ordinalPosition": 0,
                  "precision": 0,
                  "primaryKey": false,
                  "scale": 0
                }
              ],
              "table": ""
            }
          ],
          "schema": ""
        }
      ]
    }
  },
  "backfillNone": {},
  "createTime": "",
  "customerManagedEncryptionKey": "",
  "destinationConfig": {
    "bigqueryDestinationConfig": {
      "dataFreshness": "",
      "singleTargetDataset": {
        "datasetId": ""
      },
      "sourceHierarchyDatasets": {
        "datasetTemplate": {
          "datasetIdPrefix": "",
          "kmsKeyName": "",
          "location": ""
        }
      }
    },
    "destinationConnectionProfile": "",
    "gcsDestinationConfig": {
      "avroFileFormat": {},
      "fileRotationInterval": "",
      "fileRotationMb": 0,
      "jsonFileFormat": {
        "compression": "",
        "schemaFileFormat": ""
      },
      "path": ""
    }
  },
  "displayName": "",
  "errors": [
    {
      "details": {},
      "errorTime": "",
      "errorUuid": "",
      "message": "",
      "reason": ""
    }
  ],
  "labels": {},
  "name": "",
  "sourceConfig": {
    "mysqlSourceConfig": {
      "excludeObjects": {},
      "includeObjects": {},
      "maxConcurrentBackfillTasks": 0,
      "maxConcurrentCdcTasks": 0
    },
    "oracleSourceConfig": {
      "dropLargeObjects": {},
      "excludeObjects": {},
      "includeObjects": {},
      "maxConcurrentBackfillTasks": 0,
      "maxConcurrentCdcTasks": 0,
      "streamLargeObjects": {}
    },
    "postgresqlSourceConfig": {
      "excludeObjects": {},
      "includeObjects": {},
      "maxConcurrentBackfillTasks": 0,
      "publication": "",
      "replicationSlot": ""
    },
    "sourceConnectionProfile": ""
  },
  "state": "",
  "updateTime": ""
}' |  \
  http POST {{baseUrl}}/v1/:parent/streams \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "backfillAll": {\n    "mysqlExcludedObjects": {\n      "mysqlDatabases": [\n        {\n          "database": "",\n          "mysqlTables": [\n            {\n              "mysqlColumns": [\n                {\n                  "collation": "",\n                  "column": "",\n                  "dataType": "",\n                  "length": 0,\n                  "nullable": false,\n                  "ordinalPosition": 0,\n                  "primaryKey": false\n                }\n              ],\n              "table": ""\n            }\n          ]\n        }\n      ]\n    },\n    "oracleExcludedObjects": {\n      "oracleSchemas": [\n        {\n          "oracleTables": [\n            {\n              "oracleColumns": [\n                {\n                  "column": "",\n                  "dataType": "",\n                  "encoding": "",\n                  "length": 0,\n                  "nullable": false,\n                  "ordinalPosition": 0,\n                  "precision": 0,\n                  "primaryKey": false,\n                  "scale": 0\n                }\n              ],\n              "table": ""\n            }\n          ],\n          "schema": ""\n        }\n      ]\n    },\n    "postgresqlExcludedObjects": {\n      "postgresqlSchemas": [\n        {\n          "postgresqlTables": [\n            {\n              "postgresqlColumns": [\n                {\n                  "column": "",\n                  "dataType": "",\n                  "length": 0,\n                  "nullable": false,\n                  "ordinalPosition": 0,\n                  "precision": 0,\n                  "primaryKey": false,\n                  "scale": 0\n                }\n              ],\n              "table": ""\n            }\n          ],\n          "schema": ""\n        }\n      ]\n    }\n  },\n  "backfillNone": {},\n  "createTime": "",\n  "customerManagedEncryptionKey": "",\n  "destinationConfig": {\n    "bigqueryDestinationConfig": {\n      "dataFreshness": "",\n      "singleTargetDataset": {\n        "datasetId": ""\n      },\n      "sourceHierarchyDatasets": {\n        "datasetTemplate": {\n          "datasetIdPrefix": "",\n          "kmsKeyName": "",\n          "location": ""\n        }\n      }\n    },\n    "destinationConnectionProfile": "",\n    "gcsDestinationConfig": {\n      "avroFileFormat": {},\n      "fileRotationInterval": "",\n      "fileRotationMb": 0,\n      "jsonFileFormat": {\n        "compression": "",\n        "schemaFileFormat": ""\n      },\n      "path": ""\n    }\n  },\n  "displayName": "",\n  "errors": [\n    {\n      "details": {},\n      "errorTime": "",\n      "errorUuid": "",\n      "message": "",\n      "reason": ""\n    }\n  ],\n  "labels": {},\n  "name": "",\n  "sourceConfig": {\n    "mysqlSourceConfig": {\n      "excludeObjects": {},\n      "includeObjects": {},\n      "maxConcurrentBackfillTasks": 0,\n      "maxConcurrentCdcTasks": 0\n    },\n    "oracleSourceConfig": {\n      "dropLargeObjects": {},\n      "excludeObjects": {},\n      "includeObjects": {},\n      "maxConcurrentBackfillTasks": 0,\n      "maxConcurrentCdcTasks": 0,\n      "streamLargeObjects": {}\n    },\n    "postgresqlSourceConfig": {\n      "excludeObjects": {},\n      "includeObjects": {},\n      "maxConcurrentBackfillTasks": 0,\n      "publication": "",\n      "replicationSlot": ""\n    },\n    "sourceConnectionProfile": ""\n  },\n  "state": "",\n  "updateTime": ""\n}' \
  --output-document \
  - {{baseUrl}}/v1/:parent/streams
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "backfillAll": [
    "mysqlExcludedObjects": ["mysqlDatabases": [
        [
          "database": "",
          "mysqlTables": [
            [
              "mysqlColumns": [
                [
                  "collation": "",
                  "column": "",
                  "dataType": "",
                  "length": 0,
                  "nullable": false,
                  "ordinalPosition": 0,
                  "primaryKey": false
                ]
              ],
              "table": ""
            ]
          ]
        ]
      ]],
    "oracleExcludedObjects": ["oracleSchemas": [
        [
          "oracleTables": [
            [
              "oracleColumns": [
                [
                  "column": "",
                  "dataType": "",
                  "encoding": "",
                  "length": 0,
                  "nullable": false,
                  "ordinalPosition": 0,
                  "precision": 0,
                  "primaryKey": false,
                  "scale": 0
                ]
              ],
              "table": ""
            ]
          ],
          "schema": ""
        ]
      ]],
    "postgresqlExcludedObjects": ["postgresqlSchemas": [
        [
          "postgresqlTables": [
            [
              "postgresqlColumns": [
                [
                  "column": "",
                  "dataType": "",
                  "length": 0,
                  "nullable": false,
                  "ordinalPosition": 0,
                  "precision": 0,
                  "primaryKey": false,
                  "scale": 0
                ]
              ],
              "table": ""
            ]
          ],
          "schema": ""
        ]
      ]]
  ],
  "backfillNone": [],
  "createTime": "",
  "customerManagedEncryptionKey": "",
  "destinationConfig": [
    "bigqueryDestinationConfig": [
      "dataFreshness": "",
      "singleTargetDataset": ["datasetId": ""],
      "sourceHierarchyDatasets": ["datasetTemplate": [
          "datasetIdPrefix": "",
          "kmsKeyName": "",
          "location": ""
        ]]
    ],
    "destinationConnectionProfile": "",
    "gcsDestinationConfig": [
      "avroFileFormat": [],
      "fileRotationInterval": "",
      "fileRotationMb": 0,
      "jsonFileFormat": [
        "compression": "",
        "schemaFileFormat": ""
      ],
      "path": ""
    ]
  ],
  "displayName": "",
  "errors": [
    [
      "details": [],
      "errorTime": "",
      "errorUuid": "",
      "message": "",
      "reason": ""
    ]
  ],
  "labels": [],
  "name": "",
  "sourceConfig": [
    "mysqlSourceConfig": [
      "excludeObjects": [],
      "includeObjects": [],
      "maxConcurrentBackfillTasks": 0,
      "maxConcurrentCdcTasks": 0
    ],
    "oracleSourceConfig": [
      "dropLargeObjects": [],
      "excludeObjects": [],
      "includeObjects": [],
      "maxConcurrentBackfillTasks": 0,
      "maxConcurrentCdcTasks": 0,
      "streamLargeObjects": []
    ],
    "postgresqlSourceConfig": [
      "excludeObjects": [],
      "includeObjects": [],
      "maxConcurrentBackfillTasks": 0,
      "publication": "",
      "replicationSlot": ""
    ],
    "sourceConnectionProfile": ""
  ],
  "state": "",
  "updateTime": ""
] as [String : Any]

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

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/v1/:parent/streams")! 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 datastream.projects.locations.streams.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 datastream.projects.locations.streams.list
{{baseUrl}}/v1/:parent/streams
QUERY PARAMS

parent
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/v1/:parent/streams");

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

(client/get "{{baseUrl}}/v1/:parent/streams")
require "http/client"

url = "{{baseUrl}}/v1/:parent/streams"

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/:parent/streams"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/v1/:parent/streams");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

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

func main() {

	url := "{{baseUrl}}/v1/:parent/streams"

	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/:parent/streams HTTP/1.1
Host: example.com

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

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/v1/:parent/streams"))
    .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/:parent/streams")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/v1/:parent/streams")
  .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/:parent/streams');

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

const options = {method: 'GET', url: '{{baseUrl}}/v1/:parent/streams'};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/v1/:parent/streams';
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/:parent/streams',
  method: 'GET',
  headers: {}
};

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

val request = Request.Builder()
  .url("{{baseUrl}}/v1/:parent/streams")
  .get()
  .build()

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

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/v1/:parent/streams',
  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/:parent/streams'};

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/:parent/streams');

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/:parent/streams'};

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

const url = '{{baseUrl}}/v1/:parent/streams';
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/:parent/streams"]
                                                       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/:parent/streams" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/v1/:parent/streams",
  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/:parent/streams');

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

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

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

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

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

conn.request("GET", "/baseUrl/v1/:parent/streams")

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

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

url = "{{baseUrl}}/v1/:parent/streams"

response = requests.get(url)

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

url <- "{{baseUrl}}/v1/:parent/streams"

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

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

url = URI("{{baseUrl}}/v1/:parent/streams")

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/:parent/streams') do |req|
end

puts response.status
puts response.body
use reqwest;

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

    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/:parent/streams
http GET {{baseUrl}}/v1/:parent/streams
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/v1/:parent/streams
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/v1/:parent/streams")! 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 datastream.projects.locations.streams.objects.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 datastream.projects.locations.streams.objects.list
{{baseUrl}}/v1/:parent/objects
QUERY PARAMS

parent
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/v1/:parent/objects");

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

(client/get "{{baseUrl}}/v1/:parent/objects")
require "http/client"

url = "{{baseUrl}}/v1/:parent/objects"

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/:parent/objects"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/v1/:parent/objects");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

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

func main() {

	url := "{{baseUrl}}/v1/:parent/objects"

	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/:parent/objects HTTP/1.1
Host: example.com

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

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/v1/:parent/objects"))
    .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/:parent/objects")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/v1/:parent/objects")
  .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/:parent/objects');

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

const options = {method: 'GET', url: '{{baseUrl}}/v1/:parent/objects'};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/v1/:parent/objects';
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/:parent/objects',
  method: 'GET',
  headers: {}
};

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

val request = Request.Builder()
  .url("{{baseUrl}}/v1/:parent/objects")
  .get()
  .build()

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

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/v1/:parent/objects',
  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/:parent/objects'};

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/:parent/objects');

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/:parent/objects'};

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

const url = '{{baseUrl}}/v1/:parent/objects';
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/:parent/objects"]
                                                       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/:parent/objects" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/v1/:parent/objects",
  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/:parent/objects');

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

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

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

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

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

conn.request("GET", "/baseUrl/v1/:parent/objects")

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

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

url = "{{baseUrl}}/v1/:parent/objects"

response = requests.get(url)

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

url <- "{{baseUrl}}/v1/:parent/objects"

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

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

url = URI("{{baseUrl}}/v1/:parent/objects")

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/:parent/objects') do |req|
end

puts response.status
puts response.body
use reqwest;

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

    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/:parent/objects
http GET {{baseUrl}}/v1/:parent/objects
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/v1/:parent/objects
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/v1/:parent/objects")! 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 datastream.projects.locations.streams.objects.lookup
{{baseUrl}}/v1/:parent/objects:lookup
QUERY PARAMS

parent
BODY json

{
  "sourceObjectIdentifier": {
    "mysqlIdentifier": {
      "database": "",
      "table": ""
    },
    "oracleIdentifier": {
      "schema": "",
      "table": ""
    },
    "postgresqlIdentifier": {
      "schema": "",
      "table": ""
    }
  }
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/v1/:parent/objects: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  \"sourceObjectIdentifier\": {\n    \"mysqlIdentifier\": {\n      \"database\": \"\",\n      \"table\": \"\"\n    },\n    \"oracleIdentifier\": {\n      \"schema\": \"\",\n      \"table\": \"\"\n    },\n    \"postgresqlIdentifier\": {\n      \"schema\": \"\",\n      \"table\": \"\"\n    }\n  }\n}");

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

(client/post "{{baseUrl}}/v1/:parent/objects:lookup" {:content-type :json
                                                                      :form-params {:sourceObjectIdentifier {:mysqlIdentifier {:database ""
                                                                                                                               :table ""}
                                                                                                             :oracleIdentifier {:schema ""
                                                                                                                                :table ""}
                                                                                                             :postgresqlIdentifier {:schema ""
                                                                                                                                    :table ""}}}})
require "http/client"

url = "{{baseUrl}}/v1/:parent/objects:lookup"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"sourceObjectIdentifier\": {\n    \"mysqlIdentifier\": {\n      \"database\": \"\",\n      \"table\": \"\"\n    },\n    \"oracleIdentifier\": {\n      \"schema\": \"\",\n      \"table\": \"\"\n    },\n    \"postgresqlIdentifier\": {\n      \"schema\": \"\",\n      \"table\": \"\"\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/:parent/objects:lookup"),
    Content = new StringContent("{\n  \"sourceObjectIdentifier\": {\n    \"mysqlIdentifier\": {\n      \"database\": \"\",\n      \"table\": \"\"\n    },\n    \"oracleIdentifier\": {\n      \"schema\": \"\",\n      \"table\": \"\"\n    },\n    \"postgresqlIdentifier\": {\n      \"schema\": \"\",\n      \"table\": \"\"\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/:parent/objects:lookup");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"sourceObjectIdentifier\": {\n    \"mysqlIdentifier\": {\n      \"database\": \"\",\n      \"table\": \"\"\n    },\n    \"oracleIdentifier\": {\n      \"schema\": \"\",\n      \"table\": \"\"\n    },\n    \"postgresqlIdentifier\": {\n      \"schema\": \"\",\n      \"table\": \"\"\n    }\n  }\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

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

func main() {

	url := "{{baseUrl}}/v1/:parent/objects:lookup"

	payload := strings.NewReader("{\n  \"sourceObjectIdentifier\": {\n    \"mysqlIdentifier\": {\n      \"database\": \"\",\n      \"table\": \"\"\n    },\n    \"oracleIdentifier\": {\n      \"schema\": \"\",\n      \"table\": \"\"\n    },\n    \"postgresqlIdentifier\": {\n      \"schema\": \"\",\n      \"table\": \"\"\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/:parent/objects:lookup HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 254

{
  "sourceObjectIdentifier": {
    "mysqlIdentifier": {
      "database": "",
      "table": ""
    },
    "oracleIdentifier": {
      "schema": "",
      "table": ""
    },
    "postgresqlIdentifier": {
      "schema": "",
      "table": ""
    }
  }
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/v1/:parent/objects:lookup")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"sourceObjectIdentifier\": {\n    \"mysqlIdentifier\": {\n      \"database\": \"\",\n      \"table\": \"\"\n    },\n    \"oracleIdentifier\": {\n      \"schema\": \"\",\n      \"table\": \"\"\n    },\n    \"postgresqlIdentifier\": {\n      \"schema\": \"\",\n      \"table\": \"\"\n    }\n  }\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/v1/:parent/objects:lookup"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"sourceObjectIdentifier\": {\n    \"mysqlIdentifier\": {\n      \"database\": \"\",\n      \"table\": \"\"\n    },\n    \"oracleIdentifier\": {\n      \"schema\": \"\",\n      \"table\": \"\"\n    },\n    \"postgresqlIdentifier\": {\n      \"schema\": \"\",\n      \"table\": \"\"\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  \"sourceObjectIdentifier\": {\n    \"mysqlIdentifier\": {\n      \"database\": \"\",\n      \"table\": \"\"\n    },\n    \"oracleIdentifier\": {\n      \"schema\": \"\",\n      \"table\": \"\"\n    },\n    \"postgresqlIdentifier\": {\n      \"schema\": \"\",\n      \"table\": \"\"\n    }\n  }\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/v1/:parent/objects:lookup")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/v1/:parent/objects:lookup")
  .header("content-type", "application/json")
  .body("{\n  \"sourceObjectIdentifier\": {\n    \"mysqlIdentifier\": {\n      \"database\": \"\",\n      \"table\": \"\"\n    },\n    \"oracleIdentifier\": {\n      \"schema\": \"\",\n      \"table\": \"\"\n    },\n    \"postgresqlIdentifier\": {\n      \"schema\": \"\",\n      \"table\": \"\"\n    }\n  }\n}")
  .asString();
const data = JSON.stringify({
  sourceObjectIdentifier: {
    mysqlIdentifier: {
      database: '',
      table: ''
    },
    oracleIdentifier: {
      schema: '',
      table: ''
    },
    postgresqlIdentifier: {
      schema: '',
      table: ''
    }
  }
});

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/:parent/objects:lookup');
xhr.setRequestHeader('content-type', 'application/json');

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

const options = {
  method: 'POST',
  url: '{{baseUrl}}/v1/:parent/objects:lookup',
  headers: {'content-type': 'application/json'},
  data: {
    sourceObjectIdentifier: {
      mysqlIdentifier: {database: '', table: ''},
      oracleIdentifier: {schema: '', table: ''},
      postgresqlIdentifier: {schema: '', table: ''}
    }
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/v1/:parent/objects:lookup';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"sourceObjectIdentifier":{"mysqlIdentifier":{"database":"","table":""},"oracleIdentifier":{"schema":"","table":""},"postgresqlIdentifier":{"schema":"","table":""}}}'
};

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/:parent/objects:lookup',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "sourceObjectIdentifier": {\n    "mysqlIdentifier": {\n      "database": "",\n      "table": ""\n    },\n    "oracleIdentifier": {\n      "schema": "",\n      "table": ""\n    },\n    "postgresqlIdentifier": {\n      "schema": "",\n      "table": ""\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  \"sourceObjectIdentifier\": {\n    \"mysqlIdentifier\": {\n      \"database\": \"\",\n      \"table\": \"\"\n    },\n    \"oracleIdentifier\": {\n      \"schema\": \"\",\n      \"table\": \"\"\n    },\n    \"postgresqlIdentifier\": {\n      \"schema\": \"\",\n      \"table\": \"\"\n    }\n  }\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/v1/:parent/objects: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/:parent/objects: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({
  sourceObjectIdentifier: {
    mysqlIdentifier: {database: '', table: ''},
    oracleIdentifier: {schema: '', table: ''},
    postgresqlIdentifier: {schema: '', table: ''}
  }
}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/v1/:parent/objects:lookup',
  headers: {'content-type': 'application/json'},
  body: {
    sourceObjectIdentifier: {
      mysqlIdentifier: {database: '', table: ''},
      oracleIdentifier: {schema: '', table: ''},
      postgresqlIdentifier: {schema: '', table: ''}
    }
  },
  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/:parent/objects:lookup');

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

req.type('json');
req.send({
  sourceObjectIdentifier: {
    mysqlIdentifier: {
      database: '',
      table: ''
    },
    oracleIdentifier: {
      schema: '',
      table: ''
    },
    postgresqlIdentifier: {
      schema: '',
      table: ''
    }
  }
});

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/:parent/objects:lookup',
  headers: {'content-type': 'application/json'},
  data: {
    sourceObjectIdentifier: {
      mysqlIdentifier: {database: '', table: ''},
      oracleIdentifier: {schema: '', table: ''},
      postgresqlIdentifier: {schema: '', table: ''}
    }
  }
};

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

const url = '{{baseUrl}}/v1/:parent/objects:lookup';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"sourceObjectIdentifier":{"mysqlIdentifier":{"database":"","table":""},"oracleIdentifier":{"schema":"","table":""},"postgresqlIdentifier":{"schema":"","table":""}}}'
};

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 = @{ @"sourceObjectIdentifier": @{ @"mysqlIdentifier": @{ @"database": @"", @"table": @"" }, @"oracleIdentifier": @{ @"schema": @"", @"table": @"" }, @"postgresqlIdentifier": @{ @"schema": @"", @"table": @"" } } };

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

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/v1/:parent/objects: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/:parent/objects:lookup" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"sourceObjectIdentifier\": {\n    \"mysqlIdentifier\": {\n      \"database\": \"\",\n      \"table\": \"\"\n    },\n    \"oracleIdentifier\": {\n      \"schema\": \"\",\n      \"table\": \"\"\n    },\n    \"postgresqlIdentifier\": {\n      \"schema\": \"\",\n      \"table\": \"\"\n    }\n  }\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/v1/:parent/objects: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([
    'sourceObjectIdentifier' => [
        'mysqlIdentifier' => [
                'database' => '',
                'table' => ''
        ],
        'oracleIdentifier' => [
                'schema' => '',
                'table' => ''
        ],
        'postgresqlIdentifier' => [
                'schema' => '',
                'table' => ''
        ]
    ]
  ]),
  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/:parent/objects:lookup', [
  'body' => '{
  "sourceObjectIdentifier": {
    "mysqlIdentifier": {
      "database": "",
      "table": ""
    },
    "oracleIdentifier": {
      "schema": "",
      "table": ""
    },
    "postgresqlIdentifier": {
      "schema": "",
      "table": ""
    }
  }
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/v1/:parent/objects:lookup');
$request->setMethod(HTTP_METH_POST);

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

$request->setContentType('application/json');
$request->setBody(json_encode([
  'sourceObjectIdentifier' => [
    'mysqlIdentifier' => [
        'database' => '',
        'table' => ''
    ],
    'oracleIdentifier' => [
        'schema' => '',
        'table' => ''
    ],
    'postgresqlIdentifier' => [
        'schema' => '',
        'table' => ''
    ]
  ]
]));

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'sourceObjectIdentifier' => [
    'mysqlIdentifier' => [
        'database' => '',
        'table' => ''
    ],
    'oracleIdentifier' => [
        'schema' => '',
        'table' => ''
    ],
    'postgresqlIdentifier' => [
        'schema' => '',
        'table' => ''
    ]
  ]
]));
$request->setRequestUrl('{{baseUrl}}/v1/:parent/objects: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/:parent/objects:lookup' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "sourceObjectIdentifier": {
    "mysqlIdentifier": {
      "database": "",
      "table": ""
    },
    "oracleIdentifier": {
      "schema": "",
      "table": ""
    },
    "postgresqlIdentifier": {
      "schema": "",
      "table": ""
    }
  }
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/v1/:parent/objects:lookup' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "sourceObjectIdentifier": {
    "mysqlIdentifier": {
      "database": "",
      "table": ""
    },
    "oracleIdentifier": {
      "schema": "",
      "table": ""
    },
    "postgresqlIdentifier": {
      "schema": "",
      "table": ""
    }
  }
}'
import http.client

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

payload = "{\n  \"sourceObjectIdentifier\": {\n    \"mysqlIdentifier\": {\n      \"database\": \"\",\n      \"table\": \"\"\n    },\n    \"oracleIdentifier\": {\n      \"schema\": \"\",\n      \"table\": \"\"\n    },\n    \"postgresqlIdentifier\": {\n      \"schema\": \"\",\n      \"table\": \"\"\n    }\n  }\n}"

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

conn.request("POST", "/baseUrl/v1/:parent/objects:lookup", payload, headers)

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

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

url = "{{baseUrl}}/v1/:parent/objects:lookup"

payload = { "sourceObjectIdentifier": {
        "mysqlIdentifier": {
            "database": "",
            "table": ""
        },
        "oracleIdentifier": {
            "schema": "",
            "table": ""
        },
        "postgresqlIdentifier": {
            "schema": "",
            "table": ""
        }
    } }
headers = {"content-type": "application/json"}

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

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

url <- "{{baseUrl}}/v1/:parent/objects:lookup"

payload <- "{\n  \"sourceObjectIdentifier\": {\n    \"mysqlIdentifier\": {\n      \"database\": \"\",\n      \"table\": \"\"\n    },\n    \"oracleIdentifier\": {\n      \"schema\": \"\",\n      \"table\": \"\"\n    },\n    \"postgresqlIdentifier\": {\n      \"schema\": \"\",\n      \"table\": \"\"\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/:parent/objects: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  \"sourceObjectIdentifier\": {\n    \"mysqlIdentifier\": {\n      \"database\": \"\",\n      \"table\": \"\"\n    },\n    \"oracleIdentifier\": {\n      \"schema\": \"\",\n      \"table\": \"\"\n    },\n    \"postgresqlIdentifier\": {\n      \"schema\": \"\",\n      \"table\": \"\"\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/:parent/objects:lookup') do |req|
  req.body = "{\n  \"sourceObjectIdentifier\": {\n    \"mysqlIdentifier\": {\n      \"database\": \"\",\n      \"table\": \"\"\n    },\n    \"oracleIdentifier\": {\n      \"schema\": \"\",\n      \"table\": \"\"\n    },\n    \"postgresqlIdentifier\": {\n      \"schema\": \"\",\n      \"table\": \"\"\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/:parent/objects:lookup";

    let payload = json!({"sourceObjectIdentifier": json!({
            "mysqlIdentifier": json!({
                "database": "",
                "table": ""
            }),
            "oracleIdentifier": json!({
                "schema": "",
                "table": ""
            }),
            "postgresqlIdentifier": json!({
                "schema": "",
                "table": ""
            })
        })});

    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/:parent/objects:lookup \
  --header 'content-type: application/json' \
  --data '{
  "sourceObjectIdentifier": {
    "mysqlIdentifier": {
      "database": "",
      "table": ""
    },
    "oracleIdentifier": {
      "schema": "",
      "table": ""
    },
    "postgresqlIdentifier": {
      "schema": "",
      "table": ""
    }
  }
}'
echo '{
  "sourceObjectIdentifier": {
    "mysqlIdentifier": {
      "database": "",
      "table": ""
    },
    "oracleIdentifier": {
      "schema": "",
      "table": ""
    },
    "postgresqlIdentifier": {
      "schema": "",
      "table": ""
    }
  }
}' |  \
  http POST {{baseUrl}}/v1/:parent/objects:lookup \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "sourceObjectIdentifier": {\n    "mysqlIdentifier": {\n      "database": "",\n      "table": ""\n    },\n    "oracleIdentifier": {\n      "schema": "",\n      "table": ""\n    },\n    "postgresqlIdentifier": {\n      "schema": "",\n      "table": ""\n    }\n  }\n}' \
  --output-document \
  - {{baseUrl}}/v1/:parent/objects:lookup
import Foundation

let headers = ["content-type": "application/json"]
let parameters = ["sourceObjectIdentifier": [
    "mysqlIdentifier": [
      "database": "",
      "table": ""
    ],
    "oracleIdentifier": [
      "schema": "",
      "table": ""
    ],
    "postgresqlIdentifier": [
      "schema": "",
      "table": ""
    ]
  ]] as [String : Any]

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

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/v1/:parent/objects: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 datastream.projects.locations.streams.objects.startBackfillJob
{{baseUrl}}/v1/:object:startBackfillJob
QUERY PARAMS

object
BODY json

{}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/v1/:object:startBackfillJob");

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, "{}");

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

(client/post "{{baseUrl}}/v1/:object:startBackfillJob" {:content-type :json})
require "http/client"

url = "{{baseUrl}}/v1/:object:startBackfillJob"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{}"

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/:object:startBackfillJob"),
    Content = new StringContent("{}")
    {
        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/:object:startBackfillJob");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

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

func main() {

	url := "{{baseUrl}}/v1/:object:startBackfillJob"

	payload := strings.NewReader("{}")

	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/:object:startBackfillJob HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 2

{}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/v1/:object:startBackfillJob")
  .setHeader("content-type", "application/json")
  .setBody("{}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/v1/:object:startBackfillJob"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{}"))
    .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, "{}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/v1/:object:startBackfillJob")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/v1/:object:startBackfillJob")
  .header("content-type", "application/json")
  .body("{}")
  .asString();
const data = JSON.stringify({});

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/:object:startBackfillJob');
xhr.setRequestHeader('content-type', 'application/json');

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

const options = {
  method: 'POST',
  url: '{{baseUrl}}/v1/:object:startBackfillJob',
  headers: {'content-type': 'application/json'},
  data: {}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/v1/:object:startBackfillJob';
const options = {method: 'POST', headers: {'content-type': 'application/json'}, body: '{}'};

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/:object:startBackfillJob',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{}'
};

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

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{}")
val request = Request.Builder()
  .url("{{baseUrl}}/v1/:object:startBackfillJob")
  .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/:object:startBackfillJob',
  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({}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/v1/:object:startBackfillJob',
  headers: {'content-type': 'application/json'},
  body: {},
  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/:object:startBackfillJob');

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

req.type('json');
req.send({});

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/:object:startBackfillJob',
  headers: {'content-type': 'application/json'},
  data: {}
};

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

const url = '{{baseUrl}}/v1/:object:startBackfillJob';
const options = {method: 'POST', headers: {'content-type': 'application/json'}, body: '{}'};

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 = @{  };

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

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/v1/:object:startBackfillJob"]
                                                       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/:object:startBackfillJob" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/v1/:object:startBackfillJob",
  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([
    
  ]),
  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/:object:startBackfillJob', [
  'body' => '{}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

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

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

$request->setContentType('application/json');
$request->setBody(json_encode([
  
]));

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  
]));
$request->setRequestUrl('{{baseUrl}}/v1/:object:startBackfillJob');
$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/:object:startBackfillJob' -Method POST -Headers $headers -ContentType 'application/json' -Body '{}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/v1/:object:startBackfillJob' -Method POST -Headers $headers -ContentType 'application/json' -Body '{}'
import http.client

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

payload = "{}"

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

conn.request("POST", "/baseUrl/v1/:object:startBackfillJob", payload, headers)

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

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

url = "{{baseUrl}}/v1/:object:startBackfillJob"

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

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

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

url <- "{{baseUrl}}/v1/:object:startBackfillJob"

payload <- "{}"

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/:object:startBackfillJob")

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 = "{}"

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/:object:startBackfillJob') do |req|
  req.body = "{}"
end

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

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

    let payload = 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/:object:startBackfillJob \
  --header 'content-type: application/json' \
  --data '{}'
echo '{}' |  \
  http POST {{baseUrl}}/v1/:object:startBackfillJob \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{}' \
  --output-document \
  - {{baseUrl}}/v1/:object:startBackfillJob
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [] as [String : Any]

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

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/v1/:object:startBackfillJob")! 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 datastream.projects.locations.streams.objects.stopBackfillJob
{{baseUrl}}/v1/:object:stopBackfillJob
QUERY PARAMS

object
BODY json

{}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/v1/:object:stopBackfillJob");

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, "{}");

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

(client/post "{{baseUrl}}/v1/:object:stopBackfillJob" {:content-type :json})
require "http/client"

url = "{{baseUrl}}/v1/:object:stopBackfillJob"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{}"

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/:object:stopBackfillJob"),
    Content = new StringContent("{}")
    {
        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/:object:stopBackfillJob");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

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

func main() {

	url := "{{baseUrl}}/v1/:object:stopBackfillJob"

	payload := strings.NewReader("{}")

	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/:object:stopBackfillJob HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 2

{}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/v1/:object:stopBackfillJob")
  .setHeader("content-type", "application/json")
  .setBody("{}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/v1/:object:stopBackfillJob"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{}"))
    .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, "{}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/v1/:object:stopBackfillJob")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/v1/:object:stopBackfillJob")
  .header("content-type", "application/json")
  .body("{}")
  .asString();
const data = JSON.stringify({});

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/:object:stopBackfillJob');
xhr.setRequestHeader('content-type', 'application/json');

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

const options = {
  method: 'POST',
  url: '{{baseUrl}}/v1/:object:stopBackfillJob',
  headers: {'content-type': 'application/json'},
  data: {}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/v1/:object:stopBackfillJob';
const options = {method: 'POST', headers: {'content-type': 'application/json'}, body: '{}'};

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/:object:stopBackfillJob',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{}'
};

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

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{}")
val request = Request.Builder()
  .url("{{baseUrl}}/v1/:object:stopBackfillJob")
  .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/:object:stopBackfillJob',
  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({}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/v1/:object:stopBackfillJob',
  headers: {'content-type': 'application/json'},
  body: {},
  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/:object:stopBackfillJob');

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

req.type('json');
req.send({});

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/:object:stopBackfillJob',
  headers: {'content-type': 'application/json'},
  data: {}
};

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

const url = '{{baseUrl}}/v1/:object:stopBackfillJob';
const options = {method: 'POST', headers: {'content-type': 'application/json'}, body: '{}'};

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 = @{  };

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

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/v1/:object:stopBackfillJob"]
                                                       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/:object:stopBackfillJob" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/v1/:object:stopBackfillJob",
  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([
    
  ]),
  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/:object:stopBackfillJob', [
  'body' => '{}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

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

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

$request->setContentType('application/json');
$request->setBody(json_encode([
  
]));

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  
]));
$request->setRequestUrl('{{baseUrl}}/v1/:object:stopBackfillJob');
$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/:object:stopBackfillJob' -Method POST -Headers $headers -ContentType 'application/json' -Body '{}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/v1/:object:stopBackfillJob' -Method POST -Headers $headers -ContentType 'application/json' -Body '{}'
import http.client

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

payload = "{}"

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

conn.request("POST", "/baseUrl/v1/:object:stopBackfillJob", payload, headers)

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

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

url = "{{baseUrl}}/v1/:object:stopBackfillJob"

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

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

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

url <- "{{baseUrl}}/v1/:object:stopBackfillJob"

payload <- "{}"

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/:object:stopBackfillJob")

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 = "{}"

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/:object:stopBackfillJob') do |req|
  req.body = "{}"
end

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

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

    let payload = 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/:object:stopBackfillJob \
  --header 'content-type: application/json' \
  --data '{}'
echo '{}' |  \
  http POST {{baseUrl}}/v1/:object:stopBackfillJob \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{}' \
  --output-document \
  - {{baseUrl}}/v1/:object:stopBackfillJob
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [] as [String : Any]

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

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/v1/:object:stopBackfillJob")! 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()
PATCH datastream.projects.locations.streams.patch
{{baseUrl}}/v1/:name
QUERY PARAMS

name
BODY json

{
  "backfillAll": {
    "mysqlExcludedObjects": {
      "mysqlDatabases": [
        {
          "database": "",
          "mysqlTables": [
            {
              "mysqlColumns": [
                {
                  "collation": "",
                  "column": "",
                  "dataType": "",
                  "length": 0,
                  "nullable": false,
                  "ordinalPosition": 0,
                  "primaryKey": false
                }
              ],
              "table": ""
            }
          ]
        }
      ]
    },
    "oracleExcludedObjects": {
      "oracleSchemas": [
        {
          "oracleTables": [
            {
              "oracleColumns": [
                {
                  "column": "",
                  "dataType": "",
                  "encoding": "",
                  "length": 0,
                  "nullable": false,
                  "ordinalPosition": 0,
                  "precision": 0,
                  "primaryKey": false,
                  "scale": 0
                }
              ],
              "table": ""
            }
          ],
          "schema": ""
        }
      ]
    },
    "postgresqlExcludedObjects": {
      "postgresqlSchemas": [
        {
          "postgresqlTables": [
            {
              "postgresqlColumns": [
                {
                  "column": "",
                  "dataType": "",
                  "length": 0,
                  "nullable": false,
                  "ordinalPosition": 0,
                  "precision": 0,
                  "primaryKey": false,
                  "scale": 0
                }
              ],
              "table": ""
            }
          ],
          "schema": ""
        }
      ]
    }
  },
  "backfillNone": {},
  "createTime": "",
  "customerManagedEncryptionKey": "",
  "destinationConfig": {
    "bigqueryDestinationConfig": {
      "dataFreshness": "",
      "singleTargetDataset": {
        "datasetId": ""
      },
      "sourceHierarchyDatasets": {
        "datasetTemplate": {
          "datasetIdPrefix": "",
          "kmsKeyName": "",
          "location": ""
        }
      }
    },
    "destinationConnectionProfile": "",
    "gcsDestinationConfig": {
      "avroFileFormat": {},
      "fileRotationInterval": "",
      "fileRotationMb": 0,
      "jsonFileFormat": {
        "compression": "",
        "schemaFileFormat": ""
      },
      "path": ""
    }
  },
  "displayName": "",
  "errors": [
    {
      "details": {},
      "errorTime": "",
      "errorUuid": "",
      "message": "",
      "reason": ""
    }
  ],
  "labels": {},
  "name": "",
  "sourceConfig": {
    "mysqlSourceConfig": {
      "excludeObjects": {},
      "includeObjects": {},
      "maxConcurrentBackfillTasks": 0,
      "maxConcurrentCdcTasks": 0
    },
    "oracleSourceConfig": {
      "dropLargeObjects": {},
      "excludeObjects": {},
      "includeObjects": {},
      "maxConcurrentBackfillTasks": 0,
      "maxConcurrentCdcTasks": 0,
      "streamLargeObjects": {}
    },
    "postgresqlSourceConfig": {
      "excludeObjects": {},
      "includeObjects": {},
      "maxConcurrentBackfillTasks": 0,
      "publication": "",
      "replicationSlot": ""
    },
    "sourceConnectionProfile": ""
  },
  "state": "",
  "updateTime": ""
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "PATCH");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/v1/:name");

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  \"backfillAll\": {\n    \"mysqlExcludedObjects\": {\n      \"mysqlDatabases\": [\n        {\n          \"database\": \"\",\n          \"mysqlTables\": [\n            {\n              \"mysqlColumns\": [\n                {\n                  \"collation\": \"\",\n                  \"column\": \"\",\n                  \"dataType\": \"\",\n                  \"length\": 0,\n                  \"nullable\": false,\n                  \"ordinalPosition\": 0,\n                  \"primaryKey\": false\n                }\n              ],\n              \"table\": \"\"\n            }\n          ]\n        }\n      ]\n    },\n    \"oracleExcludedObjects\": {\n      \"oracleSchemas\": [\n        {\n          \"oracleTables\": [\n            {\n              \"oracleColumns\": [\n                {\n                  \"column\": \"\",\n                  \"dataType\": \"\",\n                  \"encoding\": \"\",\n                  \"length\": 0,\n                  \"nullable\": false,\n                  \"ordinalPosition\": 0,\n                  \"precision\": 0,\n                  \"primaryKey\": false,\n                  \"scale\": 0\n                }\n              ],\n              \"table\": \"\"\n            }\n          ],\n          \"schema\": \"\"\n        }\n      ]\n    },\n    \"postgresqlExcludedObjects\": {\n      \"postgresqlSchemas\": [\n        {\n          \"postgresqlTables\": [\n            {\n              \"postgresqlColumns\": [\n                {\n                  \"column\": \"\",\n                  \"dataType\": \"\",\n                  \"length\": 0,\n                  \"nullable\": false,\n                  \"ordinalPosition\": 0,\n                  \"precision\": 0,\n                  \"primaryKey\": false,\n                  \"scale\": 0\n                }\n              ],\n              \"table\": \"\"\n            }\n          ],\n          \"schema\": \"\"\n        }\n      ]\n    }\n  },\n  \"backfillNone\": {},\n  \"createTime\": \"\",\n  \"customerManagedEncryptionKey\": \"\",\n  \"destinationConfig\": {\n    \"bigqueryDestinationConfig\": {\n      \"dataFreshness\": \"\",\n      \"singleTargetDataset\": {\n        \"datasetId\": \"\"\n      },\n      \"sourceHierarchyDatasets\": {\n        \"datasetTemplate\": {\n          \"datasetIdPrefix\": \"\",\n          \"kmsKeyName\": \"\",\n          \"location\": \"\"\n        }\n      }\n    },\n    \"destinationConnectionProfile\": \"\",\n    \"gcsDestinationConfig\": {\n      \"avroFileFormat\": {},\n      \"fileRotationInterval\": \"\",\n      \"fileRotationMb\": 0,\n      \"jsonFileFormat\": {\n        \"compression\": \"\",\n        \"schemaFileFormat\": \"\"\n      },\n      \"path\": \"\"\n    }\n  },\n  \"displayName\": \"\",\n  \"errors\": [\n    {\n      \"details\": {},\n      \"errorTime\": \"\",\n      \"errorUuid\": \"\",\n      \"message\": \"\",\n      \"reason\": \"\"\n    }\n  ],\n  \"labels\": {},\n  \"name\": \"\",\n  \"sourceConfig\": {\n    \"mysqlSourceConfig\": {\n      \"excludeObjects\": {},\n      \"includeObjects\": {},\n      \"maxConcurrentBackfillTasks\": 0,\n      \"maxConcurrentCdcTasks\": 0\n    },\n    \"oracleSourceConfig\": {\n      \"dropLargeObjects\": {},\n      \"excludeObjects\": {},\n      \"includeObjects\": {},\n      \"maxConcurrentBackfillTasks\": 0,\n      \"maxConcurrentCdcTasks\": 0,\n      \"streamLargeObjects\": {}\n    },\n    \"postgresqlSourceConfig\": {\n      \"excludeObjects\": {},\n      \"includeObjects\": {},\n      \"maxConcurrentBackfillTasks\": 0,\n      \"publication\": \"\",\n      \"replicationSlot\": \"\"\n    },\n    \"sourceConnectionProfile\": \"\"\n  },\n  \"state\": \"\",\n  \"updateTime\": \"\"\n}");

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

(client/patch "{{baseUrl}}/v1/:name" {:content-type :json
                                                      :form-params {:backfillAll {:mysqlExcludedObjects {:mysqlDatabases [{:database ""
                                                                                                                           :mysqlTables [{:mysqlColumns [{:collation ""
                                                                                                                                                          :column ""
                                                                                                                                                          :dataType ""
                                                                                                                                                          :length 0
                                                                                                                                                          :nullable false
                                                                                                                                                          :ordinalPosition 0
                                                                                                                                                          :primaryKey false}]
                                                                                                                                          :table ""}]}]}
                                                                                  :oracleExcludedObjects {:oracleSchemas [{:oracleTables [{:oracleColumns [{:column ""
                                                                                                                                                            :dataType ""
                                                                                                                                                            :encoding ""
                                                                                                                                                            :length 0
                                                                                                                                                            :nullable false
                                                                                                                                                            :ordinalPosition 0
                                                                                                                                                            :precision 0
                                                                                                                                                            :primaryKey false
                                                                                                                                                            :scale 0}]
                                                                                                                                           :table ""}]
                                                                                                                           :schema ""}]}
                                                                                  :postgresqlExcludedObjects {:postgresqlSchemas [{:postgresqlTables [{:postgresqlColumns [{:column ""
                                                                                                                                                                            :dataType ""
                                                                                                                                                                            :length 0
                                                                                                                                                                            :nullable false
                                                                                                                                                                            :ordinalPosition 0
                                                                                                                                                                            :precision 0
                                                                                                                                                                            :primaryKey false
                                                                                                                                                                            :scale 0}]
                                                                                                                                                       :table ""}]
                                                                                                                                   :schema ""}]}}
                                                                    :backfillNone {}
                                                                    :createTime ""
                                                                    :customerManagedEncryptionKey ""
                                                                    :destinationConfig {:bigqueryDestinationConfig {:dataFreshness ""
                                                                                                                    :singleTargetDataset {:datasetId ""}
                                                                                                                    :sourceHierarchyDatasets {:datasetTemplate {:datasetIdPrefix ""
                                                                                                                                                                :kmsKeyName ""
                                                                                                                                                                :location ""}}}
                                                                                        :destinationConnectionProfile ""
                                                                                        :gcsDestinationConfig {:avroFileFormat {}
                                                                                                               :fileRotationInterval ""
                                                                                                               :fileRotationMb 0
                                                                                                               :jsonFileFormat {:compression ""
                                                                                                                                :schemaFileFormat ""}
                                                                                                               :path ""}}
                                                                    :displayName ""
                                                                    :errors [{:details {}
                                                                              :errorTime ""
                                                                              :errorUuid ""
                                                                              :message ""
                                                                              :reason ""}]
                                                                    :labels {}
                                                                    :name ""
                                                                    :sourceConfig {:mysqlSourceConfig {:excludeObjects {}
                                                                                                       :includeObjects {}
                                                                                                       :maxConcurrentBackfillTasks 0
                                                                                                       :maxConcurrentCdcTasks 0}
                                                                                   :oracleSourceConfig {:dropLargeObjects {}
                                                                                                        :excludeObjects {}
                                                                                                        :includeObjects {}
                                                                                                        :maxConcurrentBackfillTasks 0
                                                                                                        :maxConcurrentCdcTasks 0
                                                                                                        :streamLargeObjects {}}
                                                                                   :postgresqlSourceConfig {:excludeObjects {}
                                                                                                            :includeObjects {}
                                                                                                            :maxConcurrentBackfillTasks 0
                                                                                                            :publication ""
                                                                                                            :replicationSlot ""}
                                                                                   :sourceConnectionProfile ""}
                                                                    :state ""
                                                                    :updateTime ""}})
require "http/client"

url = "{{baseUrl}}/v1/:name"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"backfillAll\": {\n    \"mysqlExcludedObjects\": {\n      \"mysqlDatabases\": [\n        {\n          \"database\": \"\",\n          \"mysqlTables\": [\n            {\n              \"mysqlColumns\": [\n                {\n                  \"collation\": \"\",\n                  \"column\": \"\",\n                  \"dataType\": \"\",\n                  \"length\": 0,\n                  \"nullable\": false,\n                  \"ordinalPosition\": 0,\n                  \"primaryKey\": false\n                }\n              ],\n              \"table\": \"\"\n            }\n          ]\n        }\n      ]\n    },\n    \"oracleExcludedObjects\": {\n      \"oracleSchemas\": [\n        {\n          \"oracleTables\": [\n            {\n              \"oracleColumns\": [\n                {\n                  \"column\": \"\",\n                  \"dataType\": \"\",\n                  \"encoding\": \"\",\n                  \"length\": 0,\n                  \"nullable\": false,\n                  \"ordinalPosition\": 0,\n                  \"precision\": 0,\n                  \"primaryKey\": false,\n                  \"scale\": 0\n                }\n              ],\n              \"table\": \"\"\n            }\n          ],\n          \"schema\": \"\"\n        }\n      ]\n    },\n    \"postgresqlExcludedObjects\": {\n      \"postgresqlSchemas\": [\n        {\n          \"postgresqlTables\": [\n            {\n              \"postgresqlColumns\": [\n                {\n                  \"column\": \"\",\n                  \"dataType\": \"\",\n                  \"length\": 0,\n                  \"nullable\": false,\n                  \"ordinalPosition\": 0,\n                  \"precision\": 0,\n                  \"primaryKey\": false,\n                  \"scale\": 0\n                }\n              ],\n              \"table\": \"\"\n            }\n          ],\n          \"schema\": \"\"\n        }\n      ]\n    }\n  },\n  \"backfillNone\": {},\n  \"createTime\": \"\",\n  \"customerManagedEncryptionKey\": \"\",\n  \"destinationConfig\": {\n    \"bigqueryDestinationConfig\": {\n      \"dataFreshness\": \"\",\n      \"singleTargetDataset\": {\n        \"datasetId\": \"\"\n      },\n      \"sourceHierarchyDatasets\": {\n        \"datasetTemplate\": {\n          \"datasetIdPrefix\": \"\",\n          \"kmsKeyName\": \"\",\n          \"location\": \"\"\n        }\n      }\n    },\n    \"destinationConnectionProfile\": \"\",\n    \"gcsDestinationConfig\": {\n      \"avroFileFormat\": {},\n      \"fileRotationInterval\": \"\",\n      \"fileRotationMb\": 0,\n      \"jsonFileFormat\": {\n        \"compression\": \"\",\n        \"schemaFileFormat\": \"\"\n      },\n      \"path\": \"\"\n    }\n  },\n  \"displayName\": \"\",\n  \"errors\": [\n    {\n      \"details\": {},\n      \"errorTime\": \"\",\n      \"errorUuid\": \"\",\n      \"message\": \"\",\n      \"reason\": \"\"\n    }\n  ],\n  \"labels\": {},\n  \"name\": \"\",\n  \"sourceConfig\": {\n    \"mysqlSourceConfig\": {\n      \"excludeObjects\": {},\n      \"includeObjects\": {},\n      \"maxConcurrentBackfillTasks\": 0,\n      \"maxConcurrentCdcTasks\": 0\n    },\n    \"oracleSourceConfig\": {\n      \"dropLargeObjects\": {},\n      \"excludeObjects\": {},\n      \"includeObjects\": {},\n      \"maxConcurrentBackfillTasks\": 0,\n      \"maxConcurrentCdcTasks\": 0,\n      \"streamLargeObjects\": {}\n    },\n    \"postgresqlSourceConfig\": {\n      \"excludeObjects\": {},\n      \"includeObjects\": {},\n      \"maxConcurrentBackfillTasks\": 0,\n      \"publication\": \"\",\n      \"replicationSlot\": \"\"\n    },\n    \"sourceConnectionProfile\": \"\"\n  },\n  \"state\": \"\",\n  \"updateTime\": \"\"\n}"

response = HTTP::Client.patch url, headers: headers, body: reqBody
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Patch,
    RequestUri = new Uri("{{baseUrl}}/v1/:name"),
    Content = new StringContent("{\n  \"backfillAll\": {\n    \"mysqlExcludedObjects\": {\n      \"mysqlDatabases\": [\n        {\n          \"database\": \"\",\n          \"mysqlTables\": [\n            {\n              \"mysqlColumns\": [\n                {\n                  \"collation\": \"\",\n                  \"column\": \"\",\n                  \"dataType\": \"\",\n                  \"length\": 0,\n                  \"nullable\": false,\n                  \"ordinalPosition\": 0,\n                  \"primaryKey\": false\n                }\n              ],\n              \"table\": \"\"\n            }\n          ]\n        }\n      ]\n    },\n    \"oracleExcludedObjects\": {\n      \"oracleSchemas\": [\n        {\n          \"oracleTables\": [\n            {\n              \"oracleColumns\": [\n                {\n                  \"column\": \"\",\n                  \"dataType\": \"\",\n                  \"encoding\": \"\",\n                  \"length\": 0,\n                  \"nullable\": false,\n                  \"ordinalPosition\": 0,\n                  \"precision\": 0,\n                  \"primaryKey\": false,\n                  \"scale\": 0\n                }\n              ],\n              \"table\": \"\"\n            }\n          ],\n          \"schema\": \"\"\n        }\n      ]\n    },\n    \"postgresqlExcludedObjects\": {\n      \"postgresqlSchemas\": [\n        {\n          \"postgresqlTables\": [\n            {\n              \"postgresqlColumns\": [\n                {\n                  \"column\": \"\",\n                  \"dataType\": \"\",\n                  \"length\": 0,\n                  \"nullable\": false,\n                  \"ordinalPosition\": 0,\n                  \"precision\": 0,\n                  \"primaryKey\": false,\n                  \"scale\": 0\n                }\n              ],\n              \"table\": \"\"\n            }\n          ],\n          \"schema\": \"\"\n        }\n      ]\n    }\n  },\n  \"backfillNone\": {},\n  \"createTime\": \"\",\n  \"customerManagedEncryptionKey\": \"\",\n  \"destinationConfig\": {\n    \"bigqueryDestinationConfig\": {\n      \"dataFreshness\": \"\",\n      \"singleTargetDataset\": {\n        \"datasetId\": \"\"\n      },\n      \"sourceHierarchyDatasets\": {\n        \"datasetTemplate\": {\n          \"datasetIdPrefix\": \"\",\n          \"kmsKeyName\": \"\",\n          \"location\": \"\"\n        }\n      }\n    },\n    \"destinationConnectionProfile\": \"\",\n    \"gcsDestinationConfig\": {\n      \"avroFileFormat\": {},\n      \"fileRotationInterval\": \"\",\n      \"fileRotationMb\": 0,\n      \"jsonFileFormat\": {\n        \"compression\": \"\",\n        \"schemaFileFormat\": \"\"\n      },\n      \"path\": \"\"\n    }\n  },\n  \"displayName\": \"\",\n  \"errors\": [\n    {\n      \"details\": {},\n      \"errorTime\": \"\",\n      \"errorUuid\": \"\",\n      \"message\": \"\",\n      \"reason\": \"\"\n    }\n  ],\n  \"labels\": {},\n  \"name\": \"\",\n  \"sourceConfig\": {\n    \"mysqlSourceConfig\": {\n      \"excludeObjects\": {},\n      \"includeObjects\": {},\n      \"maxConcurrentBackfillTasks\": 0,\n      \"maxConcurrentCdcTasks\": 0\n    },\n    \"oracleSourceConfig\": {\n      \"dropLargeObjects\": {},\n      \"excludeObjects\": {},\n      \"includeObjects\": {},\n      \"maxConcurrentBackfillTasks\": 0,\n      \"maxConcurrentCdcTasks\": 0,\n      \"streamLargeObjects\": {}\n    },\n    \"postgresqlSourceConfig\": {\n      \"excludeObjects\": {},\n      \"includeObjects\": {},\n      \"maxConcurrentBackfillTasks\": 0,\n      \"publication\": \"\",\n      \"replicationSlot\": \"\"\n    },\n    \"sourceConnectionProfile\": \"\"\n  },\n  \"state\": \"\",\n  \"updateTime\": \"\"\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/:name");
var request = new RestRequest("", Method.Patch);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"backfillAll\": {\n    \"mysqlExcludedObjects\": {\n      \"mysqlDatabases\": [\n        {\n          \"database\": \"\",\n          \"mysqlTables\": [\n            {\n              \"mysqlColumns\": [\n                {\n                  \"collation\": \"\",\n                  \"column\": \"\",\n                  \"dataType\": \"\",\n                  \"length\": 0,\n                  \"nullable\": false,\n                  \"ordinalPosition\": 0,\n                  \"primaryKey\": false\n                }\n              ],\n              \"table\": \"\"\n            }\n          ]\n        }\n      ]\n    },\n    \"oracleExcludedObjects\": {\n      \"oracleSchemas\": [\n        {\n          \"oracleTables\": [\n            {\n              \"oracleColumns\": [\n                {\n                  \"column\": \"\",\n                  \"dataType\": \"\",\n                  \"encoding\": \"\",\n                  \"length\": 0,\n                  \"nullable\": false,\n                  \"ordinalPosition\": 0,\n                  \"precision\": 0,\n                  \"primaryKey\": false,\n                  \"scale\": 0\n                }\n              ],\n              \"table\": \"\"\n            }\n          ],\n          \"schema\": \"\"\n        }\n      ]\n    },\n    \"postgresqlExcludedObjects\": {\n      \"postgresqlSchemas\": [\n        {\n          \"postgresqlTables\": [\n            {\n              \"postgresqlColumns\": [\n                {\n                  \"column\": \"\",\n                  \"dataType\": \"\",\n                  \"length\": 0,\n                  \"nullable\": false,\n                  \"ordinalPosition\": 0,\n                  \"precision\": 0,\n                  \"primaryKey\": false,\n                  \"scale\": 0\n                }\n              ],\n              \"table\": \"\"\n            }\n          ],\n          \"schema\": \"\"\n        }\n      ]\n    }\n  },\n  \"backfillNone\": {},\n  \"createTime\": \"\",\n  \"customerManagedEncryptionKey\": \"\",\n  \"destinationConfig\": {\n    \"bigqueryDestinationConfig\": {\n      \"dataFreshness\": \"\",\n      \"singleTargetDataset\": {\n        \"datasetId\": \"\"\n      },\n      \"sourceHierarchyDatasets\": {\n        \"datasetTemplate\": {\n          \"datasetIdPrefix\": \"\",\n          \"kmsKeyName\": \"\",\n          \"location\": \"\"\n        }\n      }\n    },\n    \"destinationConnectionProfile\": \"\",\n    \"gcsDestinationConfig\": {\n      \"avroFileFormat\": {},\n      \"fileRotationInterval\": \"\",\n      \"fileRotationMb\": 0,\n      \"jsonFileFormat\": {\n        \"compression\": \"\",\n        \"schemaFileFormat\": \"\"\n      },\n      \"path\": \"\"\n    }\n  },\n  \"displayName\": \"\",\n  \"errors\": [\n    {\n      \"details\": {},\n      \"errorTime\": \"\",\n      \"errorUuid\": \"\",\n      \"message\": \"\",\n      \"reason\": \"\"\n    }\n  ],\n  \"labels\": {},\n  \"name\": \"\",\n  \"sourceConfig\": {\n    \"mysqlSourceConfig\": {\n      \"excludeObjects\": {},\n      \"includeObjects\": {},\n      \"maxConcurrentBackfillTasks\": 0,\n      \"maxConcurrentCdcTasks\": 0\n    },\n    \"oracleSourceConfig\": {\n      \"dropLargeObjects\": {},\n      \"excludeObjects\": {},\n      \"includeObjects\": {},\n      \"maxConcurrentBackfillTasks\": 0,\n      \"maxConcurrentCdcTasks\": 0,\n      \"streamLargeObjects\": {}\n    },\n    \"postgresqlSourceConfig\": {\n      \"excludeObjects\": {},\n      \"includeObjects\": {},\n      \"maxConcurrentBackfillTasks\": 0,\n      \"publication\": \"\",\n      \"replicationSlot\": \"\"\n    },\n    \"sourceConnectionProfile\": \"\"\n  },\n  \"state\": \"\",\n  \"updateTime\": \"\"\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

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

func main() {

	url := "{{baseUrl}}/v1/:name"

	payload := strings.NewReader("{\n  \"backfillAll\": {\n    \"mysqlExcludedObjects\": {\n      \"mysqlDatabases\": [\n        {\n          \"database\": \"\",\n          \"mysqlTables\": [\n            {\n              \"mysqlColumns\": [\n                {\n                  \"collation\": \"\",\n                  \"column\": \"\",\n                  \"dataType\": \"\",\n                  \"length\": 0,\n                  \"nullable\": false,\n                  \"ordinalPosition\": 0,\n                  \"primaryKey\": false\n                }\n              ],\n              \"table\": \"\"\n            }\n          ]\n        }\n      ]\n    },\n    \"oracleExcludedObjects\": {\n      \"oracleSchemas\": [\n        {\n          \"oracleTables\": [\n            {\n              \"oracleColumns\": [\n                {\n                  \"column\": \"\",\n                  \"dataType\": \"\",\n                  \"encoding\": \"\",\n                  \"length\": 0,\n                  \"nullable\": false,\n                  \"ordinalPosition\": 0,\n                  \"precision\": 0,\n                  \"primaryKey\": false,\n                  \"scale\": 0\n                }\n              ],\n              \"table\": \"\"\n            }\n          ],\n          \"schema\": \"\"\n        }\n      ]\n    },\n    \"postgresqlExcludedObjects\": {\n      \"postgresqlSchemas\": [\n        {\n          \"postgresqlTables\": [\n            {\n              \"postgresqlColumns\": [\n                {\n                  \"column\": \"\",\n                  \"dataType\": \"\",\n                  \"length\": 0,\n                  \"nullable\": false,\n                  \"ordinalPosition\": 0,\n                  \"precision\": 0,\n                  \"primaryKey\": false,\n                  \"scale\": 0\n                }\n              ],\n              \"table\": \"\"\n            }\n          ],\n          \"schema\": \"\"\n        }\n      ]\n    }\n  },\n  \"backfillNone\": {},\n  \"createTime\": \"\",\n  \"customerManagedEncryptionKey\": \"\",\n  \"destinationConfig\": {\n    \"bigqueryDestinationConfig\": {\n      \"dataFreshness\": \"\",\n      \"singleTargetDataset\": {\n        \"datasetId\": \"\"\n      },\n      \"sourceHierarchyDatasets\": {\n        \"datasetTemplate\": {\n          \"datasetIdPrefix\": \"\",\n          \"kmsKeyName\": \"\",\n          \"location\": \"\"\n        }\n      }\n    },\n    \"destinationConnectionProfile\": \"\",\n    \"gcsDestinationConfig\": {\n      \"avroFileFormat\": {},\n      \"fileRotationInterval\": \"\",\n      \"fileRotationMb\": 0,\n      \"jsonFileFormat\": {\n        \"compression\": \"\",\n        \"schemaFileFormat\": \"\"\n      },\n      \"path\": \"\"\n    }\n  },\n  \"displayName\": \"\",\n  \"errors\": [\n    {\n      \"details\": {},\n      \"errorTime\": \"\",\n      \"errorUuid\": \"\",\n      \"message\": \"\",\n      \"reason\": \"\"\n    }\n  ],\n  \"labels\": {},\n  \"name\": \"\",\n  \"sourceConfig\": {\n    \"mysqlSourceConfig\": {\n      \"excludeObjects\": {},\n      \"includeObjects\": {},\n      \"maxConcurrentBackfillTasks\": 0,\n      \"maxConcurrentCdcTasks\": 0\n    },\n    \"oracleSourceConfig\": {\n      \"dropLargeObjects\": {},\n      \"excludeObjects\": {},\n      \"includeObjects\": {},\n      \"maxConcurrentBackfillTasks\": 0,\n      \"maxConcurrentCdcTasks\": 0,\n      \"streamLargeObjects\": {}\n    },\n    \"postgresqlSourceConfig\": {\n      \"excludeObjects\": {},\n      \"includeObjects\": {},\n      \"maxConcurrentBackfillTasks\": 0,\n      \"publication\": \"\",\n      \"replicationSlot\": \"\"\n    },\n    \"sourceConnectionProfile\": \"\"\n  },\n  \"state\": \"\",\n  \"updateTime\": \"\"\n}")

	req, _ := http.NewRequest("PATCH", 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))

}
PATCH /baseUrl/v1/:name HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 3302

{
  "backfillAll": {
    "mysqlExcludedObjects": {
      "mysqlDatabases": [
        {
          "database": "",
          "mysqlTables": [
            {
              "mysqlColumns": [
                {
                  "collation": "",
                  "column": "",
                  "dataType": "",
                  "length": 0,
                  "nullable": false,
                  "ordinalPosition": 0,
                  "primaryKey": false
                }
              ],
              "table": ""
            }
          ]
        }
      ]
    },
    "oracleExcludedObjects": {
      "oracleSchemas": [
        {
          "oracleTables": [
            {
              "oracleColumns": [
                {
                  "column": "",
                  "dataType": "",
                  "encoding": "",
                  "length": 0,
                  "nullable": false,
                  "ordinalPosition": 0,
                  "precision": 0,
                  "primaryKey": false,
                  "scale": 0
                }
              ],
              "table": ""
            }
          ],
          "schema": ""
        }
      ]
    },
    "postgresqlExcludedObjects": {
      "postgresqlSchemas": [
        {
          "postgresqlTables": [
            {
              "postgresqlColumns": [
                {
                  "column": "",
                  "dataType": "",
                  "length": 0,
                  "nullable": false,
                  "ordinalPosition": 0,
                  "precision": 0,
                  "primaryKey": false,
                  "scale": 0
                }
              ],
              "table": ""
            }
          ],
          "schema": ""
        }
      ]
    }
  },
  "backfillNone": {},
  "createTime": "",
  "customerManagedEncryptionKey": "",
  "destinationConfig": {
    "bigqueryDestinationConfig": {
      "dataFreshness": "",
      "singleTargetDataset": {
        "datasetId": ""
      },
      "sourceHierarchyDatasets": {
        "datasetTemplate": {
          "datasetIdPrefix": "",
          "kmsKeyName": "",
          "location": ""
        }
      }
    },
    "destinationConnectionProfile": "",
    "gcsDestinationConfig": {
      "avroFileFormat": {},
      "fileRotationInterval": "",
      "fileRotationMb": 0,
      "jsonFileFormat": {
        "compression": "",
        "schemaFileFormat": ""
      },
      "path": ""
    }
  },
  "displayName": "",
  "errors": [
    {
      "details": {},
      "errorTime": "",
      "errorUuid": "",
      "message": "",
      "reason": ""
    }
  ],
  "labels": {},
  "name": "",
  "sourceConfig": {
    "mysqlSourceConfig": {
      "excludeObjects": {},
      "includeObjects": {},
      "maxConcurrentBackfillTasks": 0,
      "maxConcurrentCdcTasks": 0
    },
    "oracleSourceConfig": {
      "dropLargeObjects": {},
      "excludeObjects": {},
      "includeObjects": {},
      "maxConcurrentBackfillTasks": 0,
      "maxConcurrentCdcTasks": 0,
      "streamLargeObjects": {}
    },
    "postgresqlSourceConfig": {
      "excludeObjects": {},
      "includeObjects": {},
      "maxConcurrentBackfillTasks": 0,
      "publication": "",
      "replicationSlot": ""
    },
    "sourceConnectionProfile": ""
  },
  "state": "",
  "updateTime": ""
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("PATCH", "{{baseUrl}}/v1/:name")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"backfillAll\": {\n    \"mysqlExcludedObjects\": {\n      \"mysqlDatabases\": [\n        {\n          \"database\": \"\",\n          \"mysqlTables\": [\n            {\n              \"mysqlColumns\": [\n                {\n                  \"collation\": \"\",\n                  \"column\": \"\",\n                  \"dataType\": \"\",\n                  \"length\": 0,\n                  \"nullable\": false,\n                  \"ordinalPosition\": 0,\n                  \"primaryKey\": false\n                }\n              ],\n              \"table\": \"\"\n            }\n          ]\n        }\n      ]\n    },\n    \"oracleExcludedObjects\": {\n      \"oracleSchemas\": [\n        {\n          \"oracleTables\": [\n            {\n              \"oracleColumns\": [\n                {\n                  \"column\": \"\",\n                  \"dataType\": \"\",\n                  \"encoding\": \"\",\n                  \"length\": 0,\n                  \"nullable\": false,\n                  \"ordinalPosition\": 0,\n                  \"precision\": 0,\n                  \"primaryKey\": false,\n                  \"scale\": 0\n                }\n              ],\n              \"table\": \"\"\n            }\n          ],\n          \"schema\": \"\"\n        }\n      ]\n    },\n    \"postgresqlExcludedObjects\": {\n      \"postgresqlSchemas\": [\n        {\n          \"postgresqlTables\": [\n            {\n              \"postgresqlColumns\": [\n                {\n                  \"column\": \"\",\n                  \"dataType\": \"\",\n                  \"length\": 0,\n                  \"nullable\": false,\n                  \"ordinalPosition\": 0,\n                  \"precision\": 0,\n                  \"primaryKey\": false,\n                  \"scale\": 0\n                }\n              ],\n              \"table\": \"\"\n            }\n          ],\n          \"schema\": \"\"\n        }\n      ]\n    }\n  },\n  \"backfillNone\": {},\n  \"createTime\": \"\",\n  \"customerManagedEncryptionKey\": \"\",\n  \"destinationConfig\": {\n    \"bigqueryDestinationConfig\": {\n      \"dataFreshness\": \"\",\n      \"singleTargetDataset\": {\n        \"datasetId\": \"\"\n      },\n      \"sourceHierarchyDatasets\": {\n        \"datasetTemplate\": {\n          \"datasetIdPrefix\": \"\",\n          \"kmsKeyName\": \"\",\n          \"location\": \"\"\n        }\n      }\n    },\n    \"destinationConnectionProfile\": \"\",\n    \"gcsDestinationConfig\": {\n      \"avroFileFormat\": {},\n      \"fileRotationInterval\": \"\",\n      \"fileRotationMb\": 0,\n      \"jsonFileFormat\": {\n        \"compression\": \"\",\n        \"schemaFileFormat\": \"\"\n      },\n      \"path\": \"\"\n    }\n  },\n  \"displayName\": \"\",\n  \"errors\": [\n    {\n      \"details\": {},\n      \"errorTime\": \"\",\n      \"errorUuid\": \"\",\n      \"message\": \"\",\n      \"reason\": \"\"\n    }\n  ],\n  \"labels\": {},\n  \"name\": \"\",\n  \"sourceConfig\": {\n    \"mysqlSourceConfig\": {\n      \"excludeObjects\": {},\n      \"includeObjects\": {},\n      \"maxConcurrentBackfillTasks\": 0,\n      \"maxConcurrentCdcTasks\": 0\n    },\n    \"oracleSourceConfig\": {\n      \"dropLargeObjects\": {},\n      \"excludeObjects\": {},\n      \"includeObjects\": {},\n      \"maxConcurrentBackfillTasks\": 0,\n      \"maxConcurrentCdcTasks\": 0,\n      \"streamLargeObjects\": {}\n    },\n    \"postgresqlSourceConfig\": {\n      \"excludeObjects\": {},\n      \"includeObjects\": {},\n      \"maxConcurrentBackfillTasks\": 0,\n      \"publication\": \"\",\n      \"replicationSlot\": \"\"\n    },\n    \"sourceConnectionProfile\": \"\"\n  },\n  \"state\": \"\",\n  \"updateTime\": \"\"\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/v1/:name"))
    .header("content-type", "application/json")
    .method("PATCH", HttpRequest.BodyPublishers.ofString("{\n  \"backfillAll\": {\n    \"mysqlExcludedObjects\": {\n      \"mysqlDatabases\": [\n        {\n          \"database\": \"\",\n          \"mysqlTables\": [\n            {\n              \"mysqlColumns\": [\n                {\n                  \"collation\": \"\",\n                  \"column\": \"\",\n                  \"dataType\": \"\",\n                  \"length\": 0,\n                  \"nullable\": false,\n                  \"ordinalPosition\": 0,\n                  \"primaryKey\": false\n                }\n              ],\n              \"table\": \"\"\n            }\n          ]\n        }\n      ]\n    },\n    \"oracleExcludedObjects\": {\n      \"oracleSchemas\": [\n        {\n          \"oracleTables\": [\n            {\n              \"oracleColumns\": [\n                {\n                  \"column\": \"\",\n                  \"dataType\": \"\",\n                  \"encoding\": \"\",\n                  \"length\": 0,\n                  \"nullable\": false,\n                  \"ordinalPosition\": 0,\n                  \"precision\": 0,\n                  \"primaryKey\": false,\n                  \"scale\": 0\n                }\n              ],\n              \"table\": \"\"\n            }\n          ],\n          \"schema\": \"\"\n        }\n      ]\n    },\n    \"postgresqlExcludedObjects\": {\n      \"postgresqlSchemas\": [\n        {\n          \"postgresqlTables\": [\n            {\n              \"postgresqlColumns\": [\n                {\n                  \"column\": \"\",\n                  \"dataType\": \"\",\n                  \"length\": 0,\n                  \"nullable\": false,\n                  \"ordinalPosition\": 0,\n                  \"precision\": 0,\n                  \"primaryKey\": false,\n                  \"scale\": 0\n                }\n              ],\n              \"table\": \"\"\n            }\n          ],\n          \"schema\": \"\"\n        }\n      ]\n    }\n  },\n  \"backfillNone\": {},\n  \"createTime\": \"\",\n  \"customerManagedEncryptionKey\": \"\",\n  \"destinationConfig\": {\n    \"bigqueryDestinationConfig\": {\n      \"dataFreshness\": \"\",\n      \"singleTargetDataset\": {\n        \"datasetId\": \"\"\n      },\n      \"sourceHierarchyDatasets\": {\n        \"datasetTemplate\": {\n          \"datasetIdPrefix\": \"\",\n          \"kmsKeyName\": \"\",\n          \"location\": \"\"\n        }\n      }\n    },\n    \"destinationConnectionProfile\": \"\",\n    \"gcsDestinationConfig\": {\n      \"avroFileFormat\": {},\n      \"fileRotationInterval\": \"\",\n      \"fileRotationMb\": 0,\n      \"jsonFileFormat\": {\n        \"compression\": \"\",\n        \"schemaFileFormat\": \"\"\n      },\n      \"path\": \"\"\n    }\n  },\n  \"displayName\": \"\",\n  \"errors\": [\n    {\n      \"details\": {},\n      \"errorTime\": \"\",\n      \"errorUuid\": \"\",\n      \"message\": \"\",\n      \"reason\": \"\"\n    }\n  ],\n  \"labels\": {},\n  \"name\": \"\",\n  \"sourceConfig\": {\n    \"mysqlSourceConfig\": {\n      \"excludeObjects\": {},\n      \"includeObjects\": {},\n      \"maxConcurrentBackfillTasks\": 0,\n      \"maxConcurrentCdcTasks\": 0\n    },\n    \"oracleSourceConfig\": {\n      \"dropLargeObjects\": {},\n      \"excludeObjects\": {},\n      \"includeObjects\": {},\n      \"maxConcurrentBackfillTasks\": 0,\n      \"maxConcurrentCdcTasks\": 0,\n      \"streamLargeObjects\": {}\n    },\n    \"postgresqlSourceConfig\": {\n      \"excludeObjects\": {},\n      \"includeObjects\": {},\n      \"maxConcurrentBackfillTasks\": 0,\n      \"publication\": \"\",\n      \"replicationSlot\": \"\"\n    },\n    \"sourceConnectionProfile\": \"\"\n  },\n  \"state\": \"\",\n  \"updateTime\": \"\"\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  \"backfillAll\": {\n    \"mysqlExcludedObjects\": {\n      \"mysqlDatabases\": [\n        {\n          \"database\": \"\",\n          \"mysqlTables\": [\n            {\n              \"mysqlColumns\": [\n                {\n                  \"collation\": \"\",\n                  \"column\": \"\",\n                  \"dataType\": \"\",\n                  \"length\": 0,\n                  \"nullable\": false,\n                  \"ordinalPosition\": 0,\n                  \"primaryKey\": false\n                }\n              ],\n              \"table\": \"\"\n            }\n          ]\n        }\n      ]\n    },\n    \"oracleExcludedObjects\": {\n      \"oracleSchemas\": [\n        {\n          \"oracleTables\": [\n            {\n              \"oracleColumns\": [\n                {\n                  \"column\": \"\",\n                  \"dataType\": \"\",\n                  \"encoding\": \"\",\n                  \"length\": 0,\n                  \"nullable\": false,\n                  \"ordinalPosition\": 0,\n                  \"precision\": 0,\n                  \"primaryKey\": false,\n                  \"scale\": 0\n                }\n              ],\n              \"table\": \"\"\n            }\n          ],\n          \"schema\": \"\"\n        }\n      ]\n    },\n    \"postgresqlExcludedObjects\": {\n      \"postgresqlSchemas\": [\n        {\n          \"postgresqlTables\": [\n            {\n              \"postgresqlColumns\": [\n                {\n                  \"column\": \"\",\n                  \"dataType\": \"\",\n                  \"length\": 0,\n                  \"nullable\": false,\n                  \"ordinalPosition\": 0,\n                  \"precision\": 0,\n                  \"primaryKey\": false,\n                  \"scale\": 0\n                }\n              ],\n              \"table\": \"\"\n            }\n          ],\n          \"schema\": \"\"\n        }\n      ]\n    }\n  },\n  \"backfillNone\": {},\n  \"createTime\": \"\",\n  \"customerManagedEncryptionKey\": \"\",\n  \"destinationConfig\": {\n    \"bigqueryDestinationConfig\": {\n      \"dataFreshness\": \"\",\n      \"singleTargetDataset\": {\n        \"datasetId\": \"\"\n      },\n      \"sourceHierarchyDatasets\": {\n        \"datasetTemplate\": {\n          \"datasetIdPrefix\": \"\",\n          \"kmsKeyName\": \"\",\n          \"location\": \"\"\n        }\n      }\n    },\n    \"destinationConnectionProfile\": \"\",\n    \"gcsDestinationConfig\": {\n      \"avroFileFormat\": {},\n      \"fileRotationInterval\": \"\",\n      \"fileRotationMb\": 0,\n      \"jsonFileFormat\": {\n        \"compression\": \"\",\n        \"schemaFileFormat\": \"\"\n      },\n      \"path\": \"\"\n    }\n  },\n  \"displayName\": \"\",\n  \"errors\": [\n    {\n      \"details\": {},\n      \"errorTime\": \"\",\n      \"errorUuid\": \"\",\n      \"message\": \"\",\n      \"reason\": \"\"\n    }\n  ],\n  \"labels\": {},\n  \"name\": \"\",\n  \"sourceConfig\": {\n    \"mysqlSourceConfig\": {\n      \"excludeObjects\": {},\n      \"includeObjects\": {},\n      \"maxConcurrentBackfillTasks\": 0,\n      \"maxConcurrentCdcTasks\": 0\n    },\n    \"oracleSourceConfig\": {\n      \"dropLargeObjects\": {},\n      \"excludeObjects\": {},\n      \"includeObjects\": {},\n      \"maxConcurrentBackfillTasks\": 0,\n      \"maxConcurrentCdcTasks\": 0,\n      \"streamLargeObjects\": {}\n    },\n    \"postgresqlSourceConfig\": {\n      \"excludeObjects\": {},\n      \"includeObjects\": {},\n      \"maxConcurrentBackfillTasks\": 0,\n      \"publication\": \"\",\n      \"replicationSlot\": \"\"\n    },\n    \"sourceConnectionProfile\": \"\"\n  },\n  \"state\": \"\",\n  \"updateTime\": \"\"\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/v1/:name")
  .patch(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.patch("{{baseUrl}}/v1/:name")
  .header("content-type", "application/json")
  .body("{\n  \"backfillAll\": {\n    \"mysqlExcludedObjects\": {\n      \"mysqlDatabases\": [\n        {\n          \"database\": \"\",\n          \"mysqlTables\": [\n            {\n              \"mysqlColumns\": [\n                {\n                  \"collation\": \"\",\n                  \"column\": \"\",\n                  \"dataType\": \"\",\n                  \"length\": 0,\n                  \"nullable\": false,\n                  \"ordinalPosition\": 0,\n                  \"primaryKey\": false\n                }\n              ],\n              \"table\": \"\"\n            }\n          ]\n        }\n      ]\n    },\n    \"oracleExcludedObjects\": {\n      \"oracleSchemas\": [\n        {\n          \"oracleTables\": [\n            {\n              \"oracleColumns\": [\n                {\n                  \"column\": \"\",\n                  \"dataType\": \"\",\n                  \"encoding\": \"\",\n                  \"length\": 0,\n                  \"nullable\": false,\n                  \"ordinalPosition\": 0,\n                  \"precision\": 0,\n                  \"primaryKey\": false,\n                  \"scale\": 0\n                }\n              ],\n              \"table\": \"\"\n            }\n          ],\n          \"schema\": \"\"\n        }\n      ]\n    },\n    \"postgresqlExcludedObjects\": {\n      \"postgresqlSchemas\": [\n        {\n          \"postgresqlTables\": [\n            {\n              \"postgresqlColumns\": [\n                {\n                  \"column\": \"\",\n                  \"dataType\": \"\",\n                  \"length\": 0,\n                  \"nullable\": false,\n                  \"ordinalPosition\": 0,\n                  \"precision\": 0,\n                  \"primaryKey\": false,\n                  \"scale\": 0\n                }\n              ],\n              \"table\": \"\"\n            }\n          ],\n          \"schema\": \"\"\n        }\n      ]\n    }\n  },\n  \"backfillNone\": {},\n  \"createTime\": \"\",\n  \"customerManagedEncryptionKey\": \"\",\n  \"destinationConfig\": {\n    \"bigqueryDestinationConfig\": {\n      \"dataFreshness\": \"\",\n      \"singleTargetDataset\": {\n        \"datasetId\": \"\"\n      },\n      \"sourceHierarchyDatasets\": {\n        \"datasetTemplate\": {\n          \"datasetIdPrefix\": \"\",\n          \"kmsKeyName\": \"\",\n          \"location\": \"\"\n        }\n      }\n    },\n    \"destinationConnectionProfile\": \"\",\n    \"gcsDestinationConfig\": {\n      \"avroFileFormat\": {},\n      \"fileRotationInterval\": \"\",\n      \"fileRotationMb\": 0,\n      \"jsonFileFormat\": {\n        \"compression\": \"\",\n        \"schemaFileFormat\": \"\"\n      },\n      \"path\": \"\"\n    }\n  },\n  \"displayName\": \"\",\n  \"errors\": [\n    {\n      \"details\": {},\n      \"errorTime\": \"\",\n      \"errorUuid\": \"\",\n      \"message\": \"\",\n      \"reason\": \"\"\n    }\n  ],\n  \"labels\": {},\n  \"name\": \"\",\n  \"sourceConfig\": {\n    \"mysqlSourceConfig\": {\n      \"excludeObjects\": {},\n      \"includeObjects\": {},\n      \"maxConcurrentBackfillTasks\": 0,\n      \"maxConcurrentCdcTasks\": 0\n    },\n    \"oracleSourceConfig\": {\n      \"dropLargeObjects\": {},\n      \"excludeObjects\": {},\n      \"includeObjects\": {},\n      \"maxConcurrentBackfillTasks\": 0,\n      \"maxConcurrentCdcTasks\": 0,\n      \"streamLargeObjects\": {}\n    },\n    \"postgresqlSourceConfig\": {\n      \"excludeObjects\": {},\n      \"includeObjects\": {},\n      \"maxConcurrentBackfillTasks\": 0,\n      \"publication\": \"\",\n      \"replicationSlot\": \"\"\n    },\n    \"sourceConnectionProfile\": \"\"\n  },\n  \"state\": \"\",\n  \"updateTime\": \"\"\n}")
  .asString();
const data = JSON.stringify({
  backfillAll: {
    mysqlExcludedObjects: {
      mysqlDatabases: [
        {
          database: '',
          mysqlTables: [
            {
              mysqlColumns: [
                {
                  collation: '',
                  column: '',
                  dataType: '',
                  length: 0,
                  nullable: false,
                  ordinalPosition: 0,
                  primaryKey: false
                }
              ],
              table: ''
            }
          ]
        }
      ]
    },
    oracleExcludedObjects: {
      oracleSchemas: [
        {
          oracleTables: [
            {
              oracleColumns: [
                {
                  column: '',
                  dataType: '',
                  encoding: '',
                  length: 0,
                  nullable: false,
                  ordinalPosition: 0,
                  precision: 0,
                  primaryKey: false,
                  scale: 0
                }
              ],
              table: ''
            }
          ],
          schema: ''
        }
      ]
    },
    postgresqlExcludedObjects: {
      postgresqlSchemas: [
        {
          postgresqlTables: [
            {
              postgresqlColumns: [
                {
                  column: '',
                  dataType: '',
                  length: 0,
                  nullable: false,
                  ordinalPosition: 0,
                  precision: 0,
                  primaryKey: false,
                  scale: 0
                }
              ],
              table: ''
            }
          ],
          schema: ''
        }
      ]
    }
  },
  backfillNone: {},
  createTime: '',
  customerManagedEncryptionKey: '',
  destinationConfig: {
    bigqueryDestinationConfig: {
      dataFreshness: '',
      singleTargetDataset: {
        datasetId: ''
      },
      sourceHierarchyDatasets: {
        datasetTemplate: {
          datasetIdPrefix: '',
          kmsKeyName: '',
          location: ''
        }
      }
    },
    destinationConnectionProfile: '',
    gcsDestinationConfig: {
      avroFileFormat: {},
      fileRotationInterval: '',
      fileRotationMb: 0,
      jsonFileFormat: {
        compression: '',
        schemaFileFormat: ''
      },
      path: ''
    }
  },
  displayName: '',
  errors: [
    {
      details: {},
      errorTime: '',
      errorUuid: '',
      message: '',
      reason: ''
    }
  ],
  labels: {},
  name: '',
  sourceConfig: {
    mysqlSourceConfig: {
      excludeObjects: {},
      includeObjects: {},
      maxConcurrentBackfillTasks: 0,
      maxConcurrentCdcTasks: 0
    },
    oracleSourceConfig: {
      dropLargeObjects: {},
      excludeObjects: {},
      includeObjects: {},
      maxConcurrentBackfillTasks: 0,
      maxConcurrentCdcTasks: 0,
      streamLargeObjects: {}
    },
    postgresqlSourceConfig: {
      excludeObjects: {},
      includeObjects: {},
      maxConcurrentBackfillTasks: 0,
      publication: '',
      replicationSlot: ''
    },
    sourceConnectionProfile: ''
  },
  state: '',
  updateTime: ''
});

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

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

xhr.open('PATCH', '{{baseUrl}}/v1/:name');
xhr.setRequestHeader('content-type', 'application/json');

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

const options = {
  method: 'PATCH',
  url: '{{baseUrl}}/v1/:name',
  headers: {'content-type': 'application/json'},
  data: {
    backfillAll: {
      mysqlExcludedObjects: {
        mysqlDatabases: [
          {
            database: '',
            mysqlTables: [
              {
                mysqlColumns: [
                  {
                    collation: '',
                    column: '',
                    dataType: '',
                    length: 0,
                    nullable: false,
                    ordinalPosition: 0,
                    primaryKey: false
                  }
                ],
                table: ''
              }
            ]
          }
        ]
      },
      oracleExcludedObjects: {
        oracleSchemas: [
          {
            oracleTables: [
              {
                oracleColumns: [
                  {
                    column: '',
                    dataType: '',
                    encoding: '',
                    length: 0,
                    nullable: false,
                    ordinalPosition: 0,
                    precision: 0,
                    primaryKey: false,
                    scale: 0
                  }
                ],
                table: ''
              }
            ],
            schema: ''
          }
        ]
      },
      postgresqlExcludedObjects: {
        postgresqlSchemas: [
          {
            postgresqlTables: [
              {
                postgresqlColumns: [
                  {
                    column: '',
                    dataType: '',
                    length: 0,
                    nullable: false,
                    ordinalPosition: 0,
                    precision: 0,
                    primaryKey: false,
                    scale: 0
                  }
                ],
                table: ''
              }
            ],
            schema: ''
          }
        ]
      }
    },
    backfillNone: {},
    createTime: '',
    customerManagedEncryptionKey: '',
    destinationConfig: {
      bigqueryDestinationConfig: {
        dataFreshness: '',
        singleTargetDataset: {datasetId: ''},
        sourceHierarchyDatasets: {datasetTemplate: {datasetIdPrefix: '', kmsKeyName: '', location: ''}}
      },
      destinationConnectionProfile: '',
      gcsDestinationConfig: {
        avroFileFormat: {},
        fileRotationInterval: '',
        fileRotationMb: 0,
        jsonFileFormat: {compression: '', schemaFileFormat: ''},
        path: ''
      }
    },
    displayName: '',
    errors: [{details: {}, errorTime: '', errorUuid: '', message: '', reason: ''}],
    labels: {},
    name: '',
    sourceConfig: {
      mysqlSourceConfig: {
        excludeObjects: {},
        includeObjects: {},
        maxConcurrentBackfillTasks: 0,
        maxConcurrentCdcTasks: 0
      },
      oracleSourceConfig: {
        dropLargeObjects: {},
        excludeObjects: {},
        includeObjects: {},
        maxConcurrentBackfillTasks: 0,
        maxConcurrentCdcTasks: 0,
        streamLargeObjects: {}
      },
      postgresqlSourceConfig: {
        excludeObjects: {},
        includeObjects: {},
        maxConcurrentBackfillTasks: 0,
        publication: '',
        replicationSlot: ''
      },
      sourceConnectionProfile: ''
    },
    state: '',
    updateTime: ''
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/v1/:name';
const options = {
  method: 'PATCH',
  headers: {'content-type': 'application/json'},
  body: '{"backfillAll":{"mysqlExcludedObjects":{"mysqlDatabases":[{"database":"","mysqlTables":[{"mysqlColumns":[{"collation":"","column":"","dataType":"","length":0,"nullable":false,"ordinalPosition":0,"primaryKey":false}],"table":""}]}]},"oracleExcludedObjects":{"oracleSchemas":[{"oracleTables":[{"oracleColumns":[{"column":"","dataType":"","encoding":"","length":0,"nullable":false,"ordinalPosition":0,"precision":0,"primaryKey":false,"scale":0}],"table":""}],"schema":""}]},"postgresqlExcludedObjects":{"postgresqlSchemas":[{"postgresqlTables":[{"postgresqlColumns":[{"column":"","dataType":"","length":0,"nullable":false,"ordinalPosition":0,"precision":0,"primaryKey":false,"scale":0}],"table":""}],"schema":""}]}},"backfillNone":{},"createTime":"","customerManagedEncryptionKey":"","destinationConfig":{"bigqueryDestinationConfig":{"dataFreshness":"","singleTargetDataset":{"datasetId":""},"sourceHierarchyDatasets":{"datasetTemplate":{"datasetIdPrefix":"","kmsKeyName":"","location":""}}},"destinationConnectionProfile":"","gcsDestinationConfig":{"avroFileFormat":{},"fileRotationInterval":"","fileRotationMb":0,"jsonFileFormat":{"compression":"","schemaFileFormat":""},"path":""}},"displayName":"","errors":[{"details":{},"errorTime":"","errorUuid":"","message":"","reason":""}],"labels":{},"name":"","sourceConfig":{"mysqlSourceConfig":{"excludeObjects":{},"includeObjects":{},"maxConcurrentBackfillTasks":0,"maxConcurrentCdcTasks":0},"oracleSourceConfig":{"dropLargeObjects":{},"excludeObjects":{},"includeObjects":{},"maxConcurrentBackfillTasks":0,"maxConcurrentCdcTasks":0,"streamLargeObjects":{}},"postgresqlSourceConfig":{"excludeObjects":{},"includeObjects":{},"maxConcurrentBackfillTasks":0,"publication":"","replicationSlot":""},"sourceConnectionProfile":""},"state":"","updateTime":""}'
};

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: 'PATCH',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "backfillAll": {\n    "mysqlExcludedObjects": {\n      "mysqlDatabases": [\n        {\n          "database": "",\n          "mysqlTables": [\n            {\n              "mysqlColumns": [\n                {\n                  "collation": "",\n                  "column": "",\n                  "dataType": "",\n                  "length": 0,\n                  "nullable": false,\n                  "ordinalPosition": 0,\n                  "primaryKey": false\n                }\n              ],\n              "table": ""\n            }\n          ]\n        }\n      ]\n    },\n    "oracleExcludedObjects": {\n      "oracleSchemas": [\n        {\n          "oracleTables": [\n            {\n              "oracleColumns": [\n                {\n                  "column": "",\n                  "dataType": "",\n                  "encoding": "",\n                  "length": 0,\n                  "nullable": false,\n                  "ordinalPosition": 0,\n                  "precision": 0,\n                  "primaryKey": false,\n                  "scale": 0\n                }\n              ],\n              "table": ""\n            }\n          ],\n          "schema": ""\n        }\n      ]\n    },\n    "postgresqlExcludedObjects": {\n      "postgresqlSchemas": [\n        {\n          "postgresqlTables": [\n            {\n              "postgresqlColumns": [\n                {\n                  "column": "",\n                  "dataType": "",\n                  "length": 0,\n                  "nullable": false,\n                  "ordinalPosition": 0,\n                  "precision": 0,\n                  "primaryKey": false,\n                  "scale": 0\n                }\n              ],\n              "table": ""\n            }\n          ],\n          "schema": ""\n        }\n      ]\n    }\n  },\n  "backfillNone": {},\n  "createTime": "",\n  "customerManagedEncryptionKey": "",\n  "destinationConfig": {\n    "bigqueryDestinationConfig": {\n      "dataFreshness": "",\n      "singleTargetDataset": {\n        "datasetId": ""\n      },\n      "sourceHierarchyDatasets": {\n        "datasetTemplate": {\n          "datasetIdPrefix": "",\n          "kmsKeyName": "",\n          "location": ""\n        }\n      }\n    },\n    "destinationConnectionProfile": "",\n    "gcsDestinationConfig": {\n      "avroFileFormat": {},\n      "fileRotationInterval": "",\n      "fileRotationMb": 0,\n      "jsonFileFormat": {\n        "compression": "",\n        "schemaFileFormat": ""\n      },\n      "path": ""\n    }\n  },\n  "displayName": "",\n  "errors": [\n    {\n      "details": {},\n      "errorTime": "",\n      "errorUuid": "",\n      "message": "",\n      "reason": ""\n    }\n  ],\n  "labels": {},\n  "name": "",\n  "sourceConfig": {\n    "mysqlSourceConfig": {\n      "excludeObjects": {},\n      "includeObjects": {},\n      "maxConcurrentBackfillTasks": 0,\n      "maxConcurrentCdcTasks": 0\n    },\n    "oracleSourceConfig": {\n      "dropLargeObjects": {},\n      "excludeObjects": {},\n      "includeObjects": {},\n      "maxConcurrentBackfillTasks": 0,\n      "maxConcurrentCdcTasks": 0,\n      "streamLargeObjects": {}\n    },\n    "postgresqlSourceConfig": {\n      "excludeObjects": {},\n      "includeObjects": {},\n      "maxConcurrentBackfillTasks": 0,\n      "publication": "",\n      "replicationSlot": ""\n    },\n    "sourceConnectionProfile": ""\n  },\n  "state": "",\n  "updateTime": ""\n}'
};

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

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"backfillAll\": {\n    \"mysqlExcludedObjects\": {\n      \"mysqlDatabases\": [\n        {\n          \"database\": \"\",\n          \"mysqlTables\": [\n            {\n              \"mysqlColumns\": [\n                {\n                  \"collation\": \"\",\n                  \"column\": \"\",\n                  \"dataType\": \"\",\n                  \"length\": 0,\n                  \"nullable\": false,\n                  \"ordinalPosition\": 0,\n                  \"primaryKey\": false\n                }\n              ],\n              \"table\": \"\"\n            }\n          ]\n        }\n      ]\n    },\n    \"oracleExcludedObjects\": {\n      \"oracleSchemas\": [\n        {\n          \"oracleTables\": [\n            {\n              \"oracleColumns\": [\n                {\n                  \"column\": \"\",\n                  \"dataType\": \"\",\n                  \"encoding\": \"\",\n                  \"length\": 0,\n                  \"nullable\": false,\n                  \"ordinalPosition\": 0,\n                  \"precision\": 0,\n                  \"primaryKey\": false,\n                  \"scale\": 0\n                }\n              ],\n              \"table\": \"\"\n            }\n          ],\n          \"schema\": \"\"\n        }\n      ]\n    },\n    \"postgresqlExcludedObjects\": {\n      \"postgresqlSchemas\": [\n        {\n          \"postgresqlTables\": [\n            {\n              \"postgresqlColumns\": [\n                {\n                  \"column\": \"\",\n                  \"dataType\": \"\",\n                  \"length\": 0,\n                  \"nullable\": false,\n                  \"ordinalPosition\": 0,\n                  \"precision\": 0,\n                  \"primaryKey\": false,\n                  \"scale\": 0\n                }\n              ],\n              \"table\": \"\"\n            }\n          ],\n          \"schema\": \"\"\n        }\n      ]\n    }\n  },\n  \"backfillNone\": {},\n  \"createTime\": \"\",\n  \"customerManagedEncryptionKey\": \"\",\n  \"destinationConfig\": {\n    \"bigqueryDestinationConfig\": {\n      \"dataFreshness\": \"\",\n      \"singleTargetDataset\": {\n        \"datasetId\": \"\"\n      },\n      \"sourceHierarchyDatasets\": {\n        \"datasetTemplate\": {\n          \"datasetIdPrefix\": \"\",\n          \"kmsKeyName\": \"\",\n          \"location\": \"\"\n        }\n      }\n    },\n    \"destinationConnectionProfile\": \"\",\n    \"gcsDestinationConfig\": {\n      \"avroFileFormat\": {},\n      \"fileRotationInterval\": \"\",\n      \"fileRotationMb\": 0,\n      \"jsonFileFormat\": {\n        \"compression\": \"\",\n        \"schemaFileFormat\": \"\"\n      },\n      \"path\": \"\"\n    }\n  },\n  \"displayName\": \"\",\n  \"errors\": [\n    {\n      \"details\": {},\n      \"errorTime\": \"\",\n      \"errorUuid\": \"\",\n      \"message\": \"\",\n      \"reason\": \"\"\n    }\n  ],\n  \"labels\": {},\n  \"name\": \"\",\n  \"sourceConfig\": {\n    \"mysqlSourceConfig\": {\n      \"excludeObjects\": {},\n      \"includeObjects\": {},\n      \"maxConcurrentBackfillTasks\": 0,\n      \"maxConcurrentCdcTasks\": 0\n    },\n    \"oracleSourceConfig\": {\n      \"dropLargeObjects\": {},\n      \"excludeObjects\": {},\n      \"includeObjects\": {},\n      \"maxConcurrentBackfillTasks\": 0,\n      \"maxConcurrentCdcTasks\": 0,\n      \"streamLargeObjects\": {}\n    },\n    \"postgresqlSourceConfig\": {\n      \"excludeObjects\": {},\n      \"includeObjects\": {},\n      \"maxConcurrentBackfillTasks\": 0,\n      \"publication\": \"\",\n      \"replicationSlot\": \"\"\n    },\n    \"sourceConnectionProfile\": \"\"\n  },\n  \"state\": \"\",\n  \"updateTime\": \"\"\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/v1/:name")
  .patch(body)
  .addHeader("content-type", "application/json")
  .build()

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

const options = {
  method: 'PATCH',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/v1/:name',
  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({
  backfillAll: {
    mysqlExcludedObjects: {
      mysqlDatabases: [
        {
          database: '',
          mysqlTables: [
            {
              mysqlColumns: [
                {
                  collation: '',
                  column: '',
                  dataType: '',
                  length: 0,
                  nullable: false,
                  ordinalPosition: 0,
                  primaryKey: false
                }
              ],
              table: ''
            }
          ]
        }
      ]
    },
    oracleExcludedObjects: {
      oracleSchemas: [
        {
          oracleTables: [
            {
              oracleColumns: [
                {
                  column: '',
                  dataType: '',
                  encoding: '',
                  length: 0,
                  nullable: false,
                  ordinalPosition: 0,
                  precision: 0,
                  primaryKey: false,
                  scale: 0
                }
              ],
              table: ''
            }
          ],
          schema: ''
        }
      ]
    },
    postgresqlExcludedObjects: {
      postgresqlSchemas: [
        {
          postgresqlTables: [
            {
              postgresqlColumns: [
                {
                  column: '',
                  dataType: '',
                  length: 0,
                  nullable: false,
                  ordinalPosition: 0,
                  precision: 0,
                  primaryKey: false,
                  scale: 0
                }
              ],
              table: ''
            }
          ],
          schema: ''
        }
      ]
    }
  },
  backfillNone: {},
  createTime: '',
  customerManagedEncryptionKey: '',
  destinationConfig: {
    bigqueryDestinationConfig: {
      dataFreshness: '',
      singleTargetDataset: {datasetId: ''},
      sourceHierarchyDatasets: {datasetTemplate: {datasetIdPrefix: '', kmsKeyName: '', location: ''}}
    },
    destinationConnectionProfile: '',
    gcsDestinationConfig: {
      avroFileFormat: {},
      fileRotationInterval: '',
      fileRotationMb: 0,
      jsonFileFormat: {compression: '', schemaFileFormat: ''},
      path: ''
    }
  },
  displayName: '',
  errors: [{details: {}, errorTime: '', errorUuid: '', message: '', reason: ''}],
  labels: {},
  name: '',
  sourceConfig: {
    mysqlSourceConfig: {
      excludeObjects: {},
      includeObjects: {},
      maxConcurrentBackfillTasks: 0,
      maxConcurrentCdcTasks: 0
    },
    oracleSourceConfig: {
      dropLargeObjects: {},
      excludeObjects: {},
      includeObjects: {},
      maxConcurrentBackfillTasks: 0,
      maxConcurrentCdcTasks: 0,
      streamLargeObjects: {}
    },
    postgresqlSourceConfig: {
      excludeObjects: {},
      includeObjects: {},
      maxConcurrentBackfillTasks: 0,
      publication: '',
      replicationSlot: ''
    },
    sourceConnectionProfile: ''
  },
  state: '',
  updateTime: ''
}));
req.end();
const request = require('request');

const options = {
  method: 'PATCH',
  url: '{{baseUrl}}/v1/:name',
  headers: {'content-type': 'application/json'},
  body: {
    backfillAll: {
      mysqlExcludedObjects: {
        mysqlDatabases: [
          {
            database: '',
            mysqlTables: [
              {
                mysqlColumns: [
                  {
                    collation: '',
                    column: '',
                    dataType: '',
                    length: 0,
                    nullable: false,
                    ordinalPosition: 0,
                    primaryKey: false
                  }
                ],
                table: ''
              }
            ]
          }
        ]
      },
      oracleExcludedObjects: {
        oracleSchemas: [
          {
            oracleTables: [
              {
                oracleColumns: [
                  {
                    column: '',
                    dataType: '',
                    encoding: '',
                    length: 0,
                    nullable: false,
                    ordinalPosition: 0,
                    precision: 0,
                    primaryKey: false,
                    scale: 0
                  }
                ],
                table: ''
              }
            ],
            schema: ''
          }
        ]
      },
      postgresqlExcludedObjects: {
        postgresqlSchemas: [
          {
            postgresqlTables: [
              {
                postgresqlColumns: [
                  {
                    column: '',
                    dataType: '',
                    length: 0,
                    nullable: false,
                    ordinalPosition: 0,
                    precision: 0,
                    primaryKey: false,
                    scale: 0
                  }
                ],
                table: ''
              }
            ],
            schema: ''
          }
        ]
      }
    },
    backfillNone: {},
    createTime: '',
    customerManagedEncryptionKey: '',
    destinationConfig: {
      bigqueryDestinationConfig: {
        dataFreshness: '',
        singleTargetDataset: {datasetId: ''},
        sourceHierarchyDatasets: {datasetTemplate: {datasetIdPrefix: '', kmsKeyName: '', location: ''}}
      },
      destinationConnectionProfile: '',
      gcsDestinationConfig: {
        avroFileFormat: {},
        fileRotationInterval: '',
        fileRotationMb: 0,
        jsonFileFormat: {compression: '', schemaFileFormat: ''},
        path: ''
      }
    },
    displayName: '',
    errors: [{details: {}, errorTime: '', errorUuid: '', message: '', reason: ''}],
    labels: {},
    name: '',
    sourceConfig: {
      mysqlSourceConfig: {
        excludeObjects: {},
        includeObjects: {},
        maxConcurrentBackfillTasks: 0,
        maxConcurrentCdcTasks: 0
      },
      oracleSourceConfig: {
        dropLargeObjects: {},
        excludeObjects: {},
        includeObjects: {},
        maxConcurrentBackfillTasks: 0,
        maxConcurrentCdcTasks: 0,
        streamLargeObjects: {}
      },
      postgresqlSourceConfig: {
        excludeObjects: {},
        includeObjects: {},
        maxConcurrentBackfillTasks: 0,
        publication: '',
        replicationSlot: ''
      },
      sourceConnectionProfile: ''
    },
    state: '',
    updateTime: ''
  },
  json: true
};

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

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

const req = unirest('PATCH', '{{baseUrl}}/v1/:name');

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

req.type('json');
req.send({
  backfillAll: {
    mysqlExcludedObjects: {
      mysqlDatabases: [
        {
          database: '',
          mysqlTables: [
            {
              mysqlColumns: [
                {
                  collation: '',
                  column: '',
                  dataType: '',
                  length: 0,
                  nullable: false,
                  ordinalPosition: 0,
                  primaryKey: false
                }
              ],
              table: ''
            }
          ]
        }
      ]
    },
    oracleExcludedObjects: {
      oracleSchemas: [
        {
          oracleTables: [
            {
              oracleColumns: [
                {
                  column: '',
                  dataType: '',
                  encoding: '',
                  length: 0,
                  nullable: false,
                  ordinalPosition: 0,
                  precision: 0,
                  primaryKey: false,
                  scale: 0
                }
              ],
              table: ''
            }
          ],
          schema: ''
        }
      ]
    },
    postgresqlExcludedObjects: {
      postgresqlSchemas: [
        {
          postgresqlTables: [
            {
              postgresqlColumns: [
                {
                  column: '',
                  dataType: '',
                  length: 0,
                  nullable: false,
                  ordinalPosition: 0,
                  precision: 0,
                  primaryKey: false,
                  scale: 0
                }
              ],
              table: ''
            }
          ],
          schema: ''
        }
      ]
    }
  },
  backfillNone: {},
  createTime: '',
  customerManagedEncryptionKey: '',
  destinationConfig: {
    bigqueryDestinationConfig: {
      dataFreshness: '',
      singleTargetDataset: {
        datasetId: ''
      },
      sourceHierarchyDatasets: {
        datasetTemplate: {
          datasetIdPrefix: '',
          kmsKeyName: '',
          location: ''
        }
      }
    },
    destinationConnectionProfile: '',
    gcsDestinationConfig: {
      avroFileFormat: {},
      fileRotationInterval: '',
      fileRotationMb: 0,
      jsonFileFormat: {
        compression: '',
        schemaFileFormat: ''
      },
      path: ''
    }
  },
  displayName: '',
  errors: [
    {
      details: {},
      errorTime: '',
      errorUuid: '',
      message: '',
      reason: ''
    }
  ],
  labels: {},
  name: '',
  sourceConfig: {
    mysqlSourceConfig: {
      excludeObjects: {},
      includeObjects: {},
      maxConcurrentBackfillTasks: 0,
      maxConcurrentCdcTasks: 0
    },
    oracleSourceConfig: {
      dropLargeObjects: {},
      excludeObjects: {},
      includeObjects: {},
      maxConcurrentBackfillTasks: 0,
      maxConcurrentCdcTasks: 0,
      streamLargeObjects: {}
    },
    postgresqlSourceConfig: {
      excludeObjects: {},
      includeObjects: {},
      maxConcurrentBackfillTasks: 0,
      publication: '',
      replicationSlot: ''
    },
    sourceConnectionProfile: ''
  },
  state: '',
  updateTime: ''
});

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

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

const options = {
  method: 'PATCH',
  url: '{{baseUrl}}/v1/:name',
  headers: {'content-type': 'application/json'},
  data: {
    backfillAll: {
      mysqlExcludedObjects: {
        mysqlDatabases: [
          {
            database: '',
            mysqlTables: [
              {
                mysqlColumns: [
                  {
                    collation: '',
                    column: '',
                    dataType: '',
                    length: 0,
                    nullable: false,
                    ordinalPosition: 0,
                    primaryKey: false
                  }
                ],
                table: ''
              }
            ]
          }
        ]
      },
      oracleExcludedObjects: {
        oracleSchemas: [
          {
            oracleTables: [
              {
                oracleColumns: [
                  {
                    column: '',
                    dataType: '',
                    encoding: '',
                    length: 0,
                    nullable: false,
                    ordinalPosition: 0,
                    precision: 0,
                    primaryKey: false,
                    scale: 0
                  }
                ],
                table: ''
              }
            ],
            schema: ''
          }
        ]
      },
      postgresqlExcludedObjects: {
        postgresqlSchemas: [
          {
            postgresqlTables: [
              {
                postgresqlColumns: [
                  {
                    column: '',
                    dataType: '',
                    length: 0,
                    nullable: false,
                    ordinalPosition: 0,
                    precision: 0,
                    primaryKey: false,
                    scale: 0
                  }
                ],
                table: ''
              }
            ],
            schema: ''
          }
        ]
      }
    },
    backfillNone: {},
    createTime: '',
    customerManagedEncryptionKey: '',
    destinationConfig: {
      bigqueryDestinationConfig: {
        dataFreshness: '',
        singleTargetDataset: {datasetId: ''},
        sourceHierarchyDatasets: {datasetTemplate: {datasetIdPrefix: '', kmsKeyName: '', location: ''}}
      },
      destinationConnectionProfile: '',
      gcsDestinationConfig: {
        avroFileFormat: {},
        fileRotationInterval: '',
        fileRotationMb: 0,
        jsonFileFormat: {compression: '', schemaFileFormat: ''},
        path: ''
      }
    },
    displayName: '',
    errors: [{details: {}, errorTime: '', errorUuid: '', message: '', reason: ''}],
    labels: {},
    name: '',
    sourceConfig: {
      mysqlSourceConfig: {
        excludeObjects: {},
        includeObjects: {},
        maxConcurrentBackfillTasks: 0,
        maxConcurrentCdcTasks: 0
      },
      oracleSourceConfig: {
        dropLargeObjects: {},
        excludeObjects: {},
        includeObjects: {},
        maxConcurrentBackfillTasks: 0,
        maxConcurrentCdcTasks: 0,
        streamLargeObjects: {}
      },
      postgresqlSourceConfig: {
        excludeObjects: {},
        includeObjects: {},
        maxConcurrentBackfillTasks: 0,
        publication: '',
        replicationSlot: ''
      },
      sourceConnectionProfile: ''
    },
    state: '',
    updateTime: ''
  }
};

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: 'PATCH',
  headers: {'content-type': 'application/json'},
  body: '{"backfillAll":{"mysqlExcludedObjects":{"mysqlDatabases":[{"database":"","mysqlTables":[{"mysqlColumns":[{"collation":"","column":"","dataType":"","length":0,"nullable":false,"ordinalPosition":0,"primaryKey":false}],"table":""}]}]},"oracleExcludedObjects":{"oracleSchemas":[{"oracleTables":[{"oracleColumns":[{"column":"","dataType":"","encoding":"","length":0,"nullable":false,"ordinalPosition":0,"precision":0,"primaryKey":false,"scale":0}],"table":""}],"schema":""}]},"postgresqlExcludedObjects":{"postgresqlSchemas":[{"postgresqlTables":[{"postgresqlColumns":[{"column":"","dataType":"","length":0,"nullable":false,"ordinalPosition":0,"precision":0,"primaryKey":false,"scale":0}],"table":""}],"schema":""}]}},"backfillNone":{},"createTime":"","customerManagedEncryptionKey":"","destinationConfig":{"bigqueryDestinationConfig":{"dataFreshness":"","singleTargetDataset":{"datasetId":""},"sourceHierarchyDatasets":{"datasetTemplate":{"datasetIdPrefix":"","kmsKeyName":"","location":""}}},"destinationConnectionProfile":"","gcsDestinationConfig":{"avroFileFormat":{},"fileRotationInterval":"","fileRotationMb":0,"jsonFileFormat":{"compression":"","schemaFileFormat":""},"path":""}},"displayName":"","errors":[{"details":{},"errorTime":"","errorUuid":"","message":"","reason":""}],"labels":{},"name":"","sourceConfig":{"mysqlSourceConfig":{"excludeObjects":{},"includeObjects":{},"maxConcurrentBackfillTasks":0,"maxConcurrentCdcTasks":0},"oracleSourceConfig":{"dropLargeObjects":{},"excludeObjects":{},"includeObjects":{},"maxConcurrentBackfillTasks":0,"maxConcurrentCdcTasks":0,"streamLargeObjects":{}},"postgresqlSourceConfig":{"excludeObjects":{},"includeObjects":{},"maxConcurrentBackfillTasks":0,"publication":"","replicationSlot":""},"sourceConnectionProfile":""},"state":"","updateTime":""}'
};

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 = @{ @"backfillAll": @{ @"mysqlExcludedObjects": @{ @"mysqlDatabases": @[ @{ @"database": @"", @"mysqlTables": @[ @{ @"mysqlColumns": @[ @{ @"collation": @"", @"column": @"", @"dataType": @"", @"length": @0, @"nullable": @NO, @"ordinalPosition": @0, @"primaryKey": @NO } ], @"table": @"" } ] } ] }, @"oracleExcludedObjects": @{ @"oracleSchemas": @[ @{ @"oracleTables": @[ @{ @"oracleColumns": @[ @{ @"column": @"", @"dataType": @"", @"encoding": @"", @"length": @0, @"nullable": @NO, @"ordinalPosition": @0, @"precision": @0, @"primaryKey": @NO, @"scale": @0 } ], @"table": @"" } ], @"schema": @"" } ] }, @"postgresqlExcludedObjects": @{ @"postgresqlSchemas": @[ @{ @"postgresqlTables": @[ @{ @"postgresqlColumns": @[ @{ @"column": @"", @"dataType": @"", @"length": @0, @"nullable": @NO, @"ordinalPosition": @0, @"precision": @0, @"primaryKey": @NO, @"scale": @0 } ], @"table": @"" } ], @"schema": @"" } ] } },
                              @"backfillNone": @{  },
                              @"createTime": @"",
                              @"customerManagedEncryptionKey": @"",
                              @"destinationConfig": @{ @"bigqueryDestinationConfig": @{ @"dataFreshness": @"", @"singleTargetDataset": @{ @"datasetId": @"" }, @"sourceHierarchyDatasets": @{ @"datasetTemplate": @{ @"datasetIdPrefix": @"", @"kmsKeyName": @"", @"location": @"" } } }, @"destinationConnectionProfile": @"", @"gcsDestinationConfig": @{ @"avroFileFormat": @{  }, @"fileRotationInterval": @"", @"fileRotationMb": @0, @"jsonFileFormat": @{ @"compression": @"", @"schemaFileFormat": @"" }, @"path": @"" } },
                              @"displayName": @"",
                              @"errors": @[ @{ @"details": @{  }, @"errorTime": @"", @"errorUuid": @"", @"message": @"", @"reason": @"" } ],
                              @"labels": @{  },
                              @"name": @"",
                              @"sourceConfig": @{ @"mysqlSourceConfig": @{ @"excludeObjects": @{  }, @"includeObjects": @{  }, @"maxConcurrentBackfillTasks": @0, @"maxConcurrentCdcTasks": @0 }, @"oracleSourceConfig": @{ @"dropLargeObjects": @{  }, @"excludeObjects": @{  }, @"includeObjects": @{  }, @"maxConcurrentBackfillTasks": @0, @"maxConcurrentCdcTasks": @0, @"streamLargeObjects": @{  } }, @"postgresqlSourceConfig": @{ @"excludeObjects": @{  }, @"includeObjects": @{  }, @"maxConcurrentBackfillTasks": @0, @"publication": @"", @"replicationSlot": @"" }, @"sourceConnectionProfile": @"" },
                              @"state": @"",
                              @"updateTime": @"" };

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

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/v1/:name"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"PATCH"];
[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/:name" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"backfillAll\": {\n    \"mysqlExcludedObjects\": {\n      \"mysqlDatabases\": [\n        {\n          \"database\": \"\",\n          \"mysqlTables\": [\n            {\n              \"mysqlColumns\": [\n                {\n                  \"collation\": \"\",\n                  \"column\": \"\",\n                  \"dataType\": \"\",\n                  \"length\": 0,\n                  \"nullable\": false,\n                  \"ordinalPosition\": 0,\n                  \"primaryKey\": false\n                }\n              ],\n              \"table\": \"\"\n            }\n          ]\n        }\n      ]\n    },\n    \"oracleExcludedObjects\": {\n      \"oracleSchemas\": [\n        {\n          \"oracleTables\": [\n            {\n              \"oracleColumns\": [\n                {\n                  \"column\": \"\",\n                  \"dataType\": \"\",\n                  \"encoding\": \"\",\n                  \"length\": 0,\n                  \"nullable\": false,\n                  \"ordinalPosition\": 0,\n                  \"precision\": 0,\n                  \"primaryKey\": false,\n                  \"scale\": 0\n                }\n              ],\n              \"table\": \"\"\n            }\n          ],\n          \"schema\": \"\"\n        }\n      ]\n    },\n    \"postgresqlExcludedObjects\": {\n      \"postgresqlSchemas\": [\n        {\n          \"postgresqlTables\": [\n            {\n              \"postgresqlColumns\": [\n                {\n                  \"column\": \"\",\n                  \"dataType\": \"\",\n                  \"length\": 0,\n                  \"nullable\": false,\n                  \"ordinalPosition\": 0,\n                  \"precision\": 0,\n                  \"primaryKey\": false,\n                  \"scale\": 0\n                }\n              ],\n              \"table\": \"\"\n            }\n          ],\n          \"schema\": \"\"\n        }\n      ]\n    }\n  },\n  \"backfillNone\": {},\n  \"createTime\": \"\",\n  \"customerManagedEncryptionKey\": \"\",\n  \"destinationConfig\": {\n    \"bigqueryDestinationConfig\": {\n      \"dataFreshness\": \"\",\n      \"singleTargetDataset\": {\n        \"datasetId\": \"\"\n      },\n      \"sourceHierarchyDatasets\": {\n        \"datasetTemplate\": {\n          \"datasetIdPrefix\": \"\",\n          \"kmsKeyName\": \"\",\n          \"location\": \"\"\n        }\n      }\n    },\n    \"destinationConnectionProfile\": \"\",\n    \"gcsDestinationConfig\": {\n      \"avroFileFormat\": {},\n      \"fileRotationInterval\": \"\",\n      \"fileRotationMb\": 0,\n      \"jsonFileFormat\": {\n        \"compression\": \"\",\n        \"schemaFileFormat\": \"\"\n      },\n      \"path\": \"\"\n    }\n  },\n  \"displayName\": \"\",\n  \"errors\": [\n    {\n      \"details\": {},\n      \"errorTime\": \"\",\n      \"errorUuid\": \"\",\n      \"message\": \"\",\n      \"reason\": \"\"\n    }\n  ],\n  \"labels\": {},\n  \"name\": \"\",\n  \"sourceConfig\": {\n    \"mysqlSourceConfig\": {\n      \"excludeObjects\": {},\n      \"includeObjects\": {},\n      \"maxConcurrentBackfillTasks\": 0,\n      \"maxConcurrentCdcTasks\": 0\n    },\n    \"oracleSourceConfig\": {\n      \"dropLargeObjects\": {},\n      \"excludeObjects\": {},\n      \"includeObjects\": {},\n      \"maxConcurrentBackfillTasks\": 0,\n      \"maxConcurrentCdcTasks\": 0,\n      \"streamLargeObjects\": {}\n    },\n    \"postgresqlSourceConfig\": {\n      \"excludeObjects\": {},\n      \"includeObjects\": {},\n      \"maxConcurrentBackfillTasks\": 0,\n      \"publication\": \"\",\n      \"replicationSlot\": \"\"\n    },\n    \"sourceConnectionProfile\": \"\"\n  },\n  \"state\": \"\",\n  \"updateTime\": \"\"\n}" in

Client.call ~headers ~body `PATCH 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 => "PATCH",
  CURLOPT_POSTFIELDS => json_encode([
    'backfillAll' => [
        'mysqlExcludedObjects' => [
                'mysqlDatabases' => [
                                [
                                                                'database' => '',
                                                                'mysqlTables' => [
                                                                                                                                [
                                                                                                                                                                                                                                                                'mysqlColumns' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'collation' => '',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'column' => '',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'dataType' => '',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'length' => 0,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'nullable' => null,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'ordinalPosition' => 0,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'primaryKey' => null
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                ]
                                                                                                                                                                                                                                                                ],
                                                                                                                                                                                                                                                                'table' => ''
                                                                                                                                ]
                                                                ]
                                ]
                ]
        ],
        'oracleExcludedObjects' => [
                'oracleSchemas' => [
                                [
                                                                'oracleTables' => [
                                                                                                                                [
                                                                                                                                                                                                                                                                'oracleColumns' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'column' => '',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'dataType' => '',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'encoding' => '',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'length' => 0,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'nullable' => null,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'ordinalPosition' => 0,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'precision' => 0,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'primaryKey' => null,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'scale' => 0
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                ]
                                                                                                                                                                                                                                                                ],
                                                                                                                                                                                                                                                                'table' => ''
                                                                                                                                ]
                                                                ],
                                                                'schema' => ''
                                ]
                ]
        ],
        'postgresqlExcludedObjects' => [
                'postgresqlSchemas' => [
                                [
                                                                'postgresqlTables' => [
                                                                                                                                [
                                                                                                                                                                                                                                                                'postgresqlColumns' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'column' => '',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'dataType' => '',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'length' => 0,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'nullable' => null,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'ordinalPosition' => 0,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'precision' => 0,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'primaryKey' => null,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'scale' => 0
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                ]
                                                                                                                                                                                                                                                                ],
                                                                                                                                                                                                                                                                'table' => ''
                                                                                                                                ]
                                                                ],
                                                                'schema' => ''
                                ]
                ]
        ]
    ],
    'backfillNone' => [
        
    ],
    'createTime' => '',
    'customerManagedEncryptionKey' => '',
    'destinationConfig' => [
        'bigqueryDestinationConfig' => [
                'dataFreshness' => '',
                'singleTargetDataset' => [
                                'datasetId' => ''
                ],
                'sourceHierarchyDatasets' => [
                                'datasetTemplate' => [
                                                                'datasetIdPrefix' => '',
                                                                'kmsKeyName' => '',
                                                                'location' => ''
                                ]
                ]
        ],
        'destinationConnectionProfile' => '',
        'gcsDestinationConfig' => [
                'avroFileFormat' => [
                                
                ],
                'fileRotationInterval' => '',
                'fileRotationMb' => 0,
                'jsonFileFormat' => [
                                'compression' => '',
                                'schemaFileFormat' => ''
                ],
                'path' => ''
        ]
    ],
    'displayName' => '',
    'errors' => [
        [
                'details' => [
                                
                ],
                'errorTime' => '',
                'errorUuid' => '',
                'message' => '',
                'reason' => ''
        ]
    ],
    'labels' => [
        
    ],
    'name' => '',
    'sourceConfig' => [
        'mysqlSourceConfig' => [
                'excludeObjects' => [
                                
                ],
                'includeObjects' => [
                                
                ],
                'maxConcurrentBackfillTasks' => 0,
                'maxConcurrentCdcTasks' => 0
        ],
        'oracleSourceConfig' => [
                'dropLargeObjects' => [
                                
                ],
                'excludeObjects' => [
                                
                ],
                'includeObjects' => [
                                
                ],
                'maxConcurrentBackfillTasks' => 0,
                'maxConcurrentCdcTasks' => 0,
                'streamLargeObjects' => [
                                
                ]
        ],
        'postgresqlSourceConfig' => [
                'excludeObjects' => [
                                
                ],
                'includeObjects' => [
                                
                ],
                'maxConcurrentBackfillTasks' => 0,
                'publication' => '',
                'replicationSlot' => ''
        ],
        'sourceConnectionProfile' => ''
    ],
    'state' => '',
    'updateTime' => ''
  ]),
  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('PATCH', '{{baseUrl}}/v1/:name', [
  'body' => '{
  "backfillAll": {
    "mysqlExcludedObjects": {
      "mysqlDatabases": [
        {
          "database": "",
          "mysqlTables": [
            {
              "mysqlColumns": [
                {
                  "collation": "",
                  "column": "",
                  "dataType": "",
                  "length": 0,
                  "nullable": false,
                  "ordinalPosition": 0,
                  "primaryKey": false
                }
              ],
              "table": ""
            }
          ]
        }
      ]
    },
    "oracleExcludedObjects": {
      "oracleSchemas": [
        {
          "oracleTables": [
            {
              "oracleColumns": [
                {
                  "column": "",
                  "dataType": "",
                  "encoding": "",
                  "length": 0,
                  "nullable": false,
                  "ordinalPosition": 0,
                  "precision": 0,
                  "primaryKey": false,
                  "scale": 0
                }
              ],
              "table": ""
            }
          ],
          "schema": ""
        }
      ]
    },
    "postgresqlExcludedObjects": {
      "postgresqlSchemas": [
        {
          "postgresqlTables": [
            {
              "postgresqlColumns": [
                {
                  "column": "",
                  "dataType": "",
                  "length": 0,
                  "nullable": false,
                  "ordinalPosition": 0,
                  "precision": 0,
                  "primaryKey": false,
                  "scale": 0
                }
              ],
              "table": ""
            }
          ],
          "schema": ""
        }
      ]
    }
  },
  "backfillNone": {},
  "createTime": "",
  "customerManagedEncryptionKey": "",
  "destinationConfig": {
    "bigqueryDestinationConfig": {
      "dataFreshness": "",
      "singleTargetDataset": {
        "datasetId": ""
      },
      "sourceHierarchyDatasets": {
        "datasetTemplate": {
          "datasetIdPrefix": "",
          "kmsKeyName": "",
          "location": ""
        }
      }
    },
    "destinationConnectionProfile": "",
    "gcsDestinationConfig": {
      "avroFileFormat": {},
      "fileRotationInterval": "",
      "fileRotationMb": 0,
      "jsonFileFormat": {
        "compression": "",
        "schemaFileFormat": ""
      },
      "path": ""
    }
  },
  "displayName": "",
  "errors": [
    {
      "details": {},
      "errorTime": "",
      "errorUuid": "",
      "message": "",
      "reason": ""
    }
  ],
  "labels": {},
  "name": "",
  "sourceConfig": {
    "mysqlSourceConfig": {
      "excludeObjects": {},
      "includeObjects": {},
      "maxConcurrentBackfillTasks": 0,
      "maxConcurrentCdcTasks": 0
    },
    "oracleSourceConfig": {
      "dropLargeObjects": {},
      "excludeObjects": {},
      "includeObjects": {},
      "maxConcurrentBackfillTasks": 0,
      "maxConcurrentCdcTasks": 0,
      "streamLargeObjects": {}
    },
    "postgresqlSourceConfig": {
      "excludeObjects": {},
      "includeObjects": {},
      "maxConcurrentBackfillTasks": 0,
      "publication": "",
      "replicationSlot": ""
    },
    "sourceConnectionProfile": ""
  },
  "state": "",
  "updateTime": ""
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/v1/:name');
$request->setMethod(HttpRequest::HTTP_METH_PATCH);

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

$request->setContentType('application/json');
$request->setBody(json_encode([
  'backfillAll' => [
    'mysqlExcludedObjects' => [
        'mysqlDatabases' => [
                [
                                'database' => '',
                                'mysqlTables' => [
                                                                [
                                                                                                                                'mysqlColumns' => [
                                                                                                                                                                                                                                                                [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'collation' => '',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'column' => '',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'dataType' => '',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'length' => 0,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'nullable' => null,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'ordinalPosition' => 0,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'primaryKey' => null
                                                                                                                                                                                                                                                                ]
                                                                                                                                ],
                                                                                                                                'table' => ''
                                                                ]
                                ]
                ]
        ]
    ],
    'oracleExcludedObjects' => [
        'oracleSchemas' => [
                [
                                'oracleTables' => [
                                                                [
                                                                                                                                'oracleColumns' => [
                                                                                                                                                                                                                                                                [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'column' => '',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'dataType' => '',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'encoding' => '',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'length' => 0,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'nullable' => null,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'ordinalPosition' => 0,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'precision' => 0,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'primaryKey' => null,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'scale' => 0
                                                                                                                                                                                                                                                                ]
                                                                                                                                ],
                                                                                                                                'table' => ''
                                                                ]
                                ],
                                'schema' => ''
                ]
        ]
    ],
    'postgresqlExcludedObjects' => [
        'postgresqlSchemas' => [
                [
                                'postgresqlTables' => [
                                                                [
                                                                                                                                'postgresqlColumns' => [
                                                                                                                                                                                                                                                                [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'column' => '',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'dataType' => '',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'length' => 0,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'nullable' => null,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'ordinalPosition' => 0,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'precision' => 0,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'primaryKey' => null,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'scale' => 0
                                                                                                                                                                                                                                                                ]
                                                                                                                                ],
                                                                                                                                'table' => ''
                                                                ]
                                ],
                                'schema' => ''
                ]
        ]
    ]
  ],
  'backfillNone' => [
    
  ],
  'createTime' => '',
  'customerManagedEncryptionKey' => '',
  'destinationConfig' => [
    'bigqueryDestinationConfig' => [
        'dataFreshness' => '',
        'singleTargetDataset' => [
                'datasetId' => ''
        ],
        'sourceHierarchyDatasets' => [
                'datasetTemplate' => [
                                'datasetIdPrefix' => '',
                                'kmsKeyName' => '',
                                'location' => ''
                ]
        ]
    ],
    'destinationConnectionProfile' => '',
    'gcsDestinationConfig' => [
        'avroFileFormat' => [
                
        ],
        'fileRotationInterval' => '',
        'fileRotationMb' => 0,
        'jsonFileFormat' => [
                'compression' => '',
                'schemaFileFormat' => ''
        ],
        'path' => ''
    ]
  ],
  'displayName' => '',
  'errors' => [
    [
        'details' => [
                
        ],
        'errorTime' => '',
        'errorUuid' => '',
        'message' => '',
        'reason' => ''
    ]
  ],
  'labels' => [
    
  ],
  'name' => '',
  'sourceConfig' => [
    'mysqlSourceConfig' => [
        'excludeObjects' => [
                
        ],
        'includeObjects' => [
                
        ],
        'maxConcurrentBackfillTasks' => 0,
        'maxConcurrentCdcTasks' => 0
    ],
    'oracleSourceConfig' => [
        'dropLargeObjects' => [
                
        ],
        'excludeObjects' => [
                
        ],
        'includeObjects' => [
                
        ],
        'maxConcurrentBackfillTasks' => 0,
        'maxConcurrentCdcTasks' => 0,
        'streamLargeObjects' => [
                
        ]
    ],
    'postgresqlSourceConfig' => [
        'excludeObjects' => [
                
        ],
        'includeObjects' => [
                
        ],
        'maxConcurrentBackfillTasks' => 0,
        'publication' => '',
        'replicationSlot' => ''
    ],
    'sourceConnectionProfile' => ''
  ],
  'state' => '',
  'updateTime' => ''
]));

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'backfillAll' => [
    'mysqlExcludedObjects' => [
        'mysqlDatabases' => [
                [
                                'database' => '',
                                'mysqlTables' => [
                                                                [
                                                                                                                                'mysqlColumns' => [
                                                                                                                                                                                                                                                                [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'collation' => '',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'column' => '',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'dataType' => '',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'length' => 0,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'nullable' => null,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'ordinalPosition' => 0,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'primaryKey' => null
                                                                                                                                                                                                                                                                ]
                                                                                                                                ],
                                                                                                                                'table' => ''
                                                                ]
                                ]
                ]
        ]
    ],
    'oracleExcludedObjects' => [
        'oracleSchemas' => [
                [
                                'oracleTables' => [
                                                                [
                                                                                                                                'oracleColumns' => [
                                                                                                                                                                                                                                                                [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'column' => '',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'dataType' => '',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'encoding' => '',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'length' => 0,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'nullable' => null,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'ordinalPosition' => 0,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'precision' => 0,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'primaryKey' => null,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'scale' => 0
                                                                                                                                                                                                                                                                ]
                                                                                                                                ],
                                                                                                                                'table' => ''
                                                                ]
                                ],
                                'schema' => ''
                ]
        ]
    ],
    'postgresqlExcludedObjects' => [
        'postgresqlSchemas' => [
                [
                                'postgresqlTables' => [
                                                                [
                                                                                                                                'postgresqlColumns' => [
                                                                                                                                                                                                                                                                [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'column' => '',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'dataType' => '',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'length' => 0,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'nullable' => null,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'ordinalPosition' => 0,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'precision' => 0,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'primaryKey' => null,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'scale' => 0
                                                                                                                                                                                                                                                                ]
                                                                                                                                ],
                                                                                                                                'table' => ''
                                                                ]
                                ],
                                'schema' => ''
                ]
        ]
    ]
  ],
  'backfillNone' => [
    
  ],
  'createTime' => '',
  'customerManagedEncryptionKey' => '',
  'destinationConfig' => [
    'bigqueryDestinationConfig' => [
        'dataFreshness' => '',
        'singleTargetDataset' => [
                'datasetId' => ''
        ],
        'sourceHierarchyDatasets' => [
                'datasetTemplate' => [
                                'datasetIdPrefix' => '',
                                'kmsKeyName' => '',
                                'location' => ''
                ]
        ]
    ],
    'destinationConnectionProfile' => '',
    'gcsDestinationConfig' => [
        'avroFileFormat' => [
                
        ],
        'fileRotationInterval' => '',
        'fileRotationMb' => 0,
        'jsonFileFormat' => [
                'compression' => '',
                'schemaFileFormat' => ''
        ],
        'path' => ''
    ]
  ],
  'displayName' => '',
  'errors' => [
    [
        'details' => [
                
        ],
        'errorTime' => '',
        'errorUuid' => '',
        'message' => '',
        'reason' => ''
    ]
  ],
  'labels' => [
    
  ],
  'name' => '',
  'sourceConfig' => [
    'mysqlSourceConfig' => [
        'excludeObjects' => [
                
        ],
        'includeObjects' => [
                
        ],
        'maxConcurrentBackfillTasks' => 0,
        'maxConcurrentCdcTasks' => 0
    ],
    'oracleSourceConfig' => [
        'dropLargeObjects' => [
                
        ],
        'excludeObjects' => [
                
        ],
        'includeObjects' => [
                
        ],
        'maxConcurrentBackfillTasks' => 0,
        'maxConcurrentCdcTasks' => 0,
        'streamLargeObjects' => [
                
        ]
    ],
    'postgresqlSourceConfig' => [
        'excludeObjects' => [
                
        ],
        'includeObjects' => [
                
        ],
        'maxConcurrentBackfillTasks' => 0,
        'publication' => '',
        'replicationSlot' => ''
    ],
    'sourceConnectionProfile' => ''
  ],
  'state' => '',
  'updateTime' => ''
]));
$request->setRequestUrl('{{baseUrl}}/v1/:name');
$request->setRequestMethod('PATCH');
$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/:name' -Method PATCH -Headers $headers -ContentType 'application/json' -Body '{
  "backfillAll": {
    "mysqlExcludedObjects": {
      "mysqlDatabases": [
        {
          "database": "",
          "mysqlTables": [
            {
              "mysqlColumns": [
                {
                  "collation": "",
                  "column": "",
                  "dataType": "",
                  "length": 0,
                  "nullable": false,
                  "ordinalPosition": 0,
                  "primaryKey": false
                }
              ],
              "table": ""
            }
          ]
        }
      ]
    },
    "oracleExcludedObjects": {
      "oracleSchemas": [
        {
          "oracleTables": [
            {
              "oracleColumns": [
                {
                  "column": "",
                  "dataType": "",
                  "encoding": "",
                  "length": 0,
                  "nullable": false,
                  "ordinalPosition": 0,
                  "precision": 0,
                  "primaryKey": false,
                  "scale": 0
                }
              ],
              "table": ""
            }
          ],
          "schema": ""
        }
      ]
    },
    "postgresqlExcludedObjects": {
      "postgresqlSchemas": [
        {
          "postgresqlTables": [
            {
              "postgresqlColumns": [
                {
                  "column": "",
                  "dataType": "",
                  "length": 0,
                  "nullable": false,
                  "ordinalPosition": 0,
                  "precision": 0,
                  "primaryKey": false,
                  "scale": 0
                }
              ],
              "table": ""
            }
          ],
          "schema": ""
        }
      ]
    }
  },
  "backfillNone": {},
  "createTime": "",
  "customerManagedEncryptionKey": "",
  "destinationConfig": {
    "bigqueryDestinationConfig": {
      "dataFreshness": "",
      "singleTargetDataset": {
        "datasetId": ""
      },
      "sourceHierarchyDatasets": {
        "datasetTemplate": {
          "datasetIdPrefix": "",
          "kmsKeyName": "",
          "location": ""
        }
      }
    },
    "destinationConnectionProfile": "",
    "gcsDestinationConfig": {
      "avroFileFormat": {},
      "fileRotationInterval": "",
      "fileRotationMb": 0,
      "jsonFileFormat": {
        "compression": "",
        "schemaFileFormat": ""
      },
      "path": ""
    }
  },
  "displayName": "",
  "errors": [
    {
      "details": {},
      "errorTime": "",
      "errorUuid": "",
      "message": "",
      "reason": ""
    }
  ],
  "labels": {},
  "name": "",
  "sourceConfig": {
    "mysqlSourceConfig": {
      "excludeObjects": {},
      "includeObjects": {},
      "maxConcurrentBackfillTasks": 0,
      "maxConcurrentCdcTasks": 0
    },
    "oracleSourceConfig": {
      "dropLargeObjects": {},
      "excludeObjects": {},
      "includeObjects": {},
      "maxConcurrentBackfillTasks": 0,
      "maxConcurrentCdcTasks": 0,
      "streamLargeObjects": {}
    },
    "postgresqlSourceConfig": {
      "excludeObjects": {},
      "includeObjects": {},
      "maxConcurrentBackfillTasks": 0,
      "publication": "",
      "replicationSlot": ""
    },
    "sourceConnectionProfile": ""
  },
  "state": "",
  "updateTime": ""
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/v1/:name' -Method PATCH -Headers $headers -ContentType 'application/json' -Body '{
  "backfillAll": {
    "mysqlExcludedObjects": {
      "mysqlDatabases": [
        {
          "database": "",
          "mysqlTables": [
            {
              "mysqlColumns": [
                {
                  "collation": "",
                  "column": "",
                  "dataType": "",
                  "length": 0,
                  "nullable": false,
                  "ordinalPosition": 0,
                  "primaryKey": false
                }
              ],
              "table": ""
            }
          ]
        }
      ]
    },
    "oracleExcludedObjects": {
      "oracleSchemas": [
        {
          "oracleTables": [
            {
              "oracleColumns": [
                {
                  "column": "",
                  "dataType": "",
                  "encoding": "",
                  "length": 0,
                  "nullable": false,
                  "ordinalPosition": 0,
                  "precision": 0,
                  "primaryKey": false,
                  "scale": 0
                }
              ],
              "table": ""
            }
          ],
          "schema": ""
        }
      ]
    },
    "postgresqlExcludedObjects": {
      "postgresqlSchemas": [
        {
          "postgresqlTables": [
            {
              "postgresqlColumns": [
                {
                  "column": "",
                  "dataType": "",
                  "length": 0,
                  "nullable": false,
                  "ordinalPosition": 0,
                  "precision": 0,
                  "primaryKey": false,
                  "scale": 0
                }
              ],
              "table": ""
            }
          ],
          "schema": ""
        }
      ]
    }
  },
  "backfillNone": {},
  "createTime": "",
  "customerManagedEncryptionKey": "",
  "destinationConfig": {
    "bigqueryDestinationConfig": {
      "dataFreshness": "",
      "singleTargetDataset": {
        "datasetId": ""
      },
      "sourceHierarchyDatasets": {
        "datasetTemplate": {
          "datasetIdPrefix": "",
          "kmsKeyName": "",
          "location": ""
        }
      }
    },
    "destinationConnectionProfile": "",
    "gcsDestinationConfig": {
      "avroFileFormat": {},
      "fileRotationInterval": "",
      "fileRotationMb": 0,
      "jsonFileFormat": {
        "compression": "",
        "schemaFileFormat": ""
      },
      "path": ""
    }
  },
  "displayName": "",
  "errors": [
    {
      "details": {},
      "errorTime": "",
      "errorUuid": "",
      "message": "",
      "reason": ""
    }
  ],
  "labels": {},
  "name": "",
  "sourceConfig": {
    "mysqlSourceConfig": {
      "excludeObjects": {},
      "includeObjects": {},
      "maxConcurrentBackfillTasks": 0,
      "maxConcurrentCdcTasks": 0
    },
    "oracleSourceConfig": {
      "dropLargeObjects": {},
      "excludeObjects": {},
      "includeObjects": {},
      "maxConcurrentBackfillTasks": 0,
      "maxConcurrentCdcTasks": 0,
      "streamLargeObjects": {}
    },
    "postgresqlSourceConfig": {
      "excludeObjects": {},
      "includeObjects": {},
      "maxConcurrentBackfillTasks": 0,
      "publication": "",
      "replicationSlot": ""
    },
    "sourceConnectionProfile": ""
  },
  "state": "",
  "updateTime": ""
}'
import http.client

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

payload = "{\n  \"backfillAll\": {\n    \"mysqlExcludedObjects\": {\n      \"mysqlDatabases\": [\n        {\n          \"database\": \"\",\n          \"mysqlTables\": [\n            {\n              \"mysqlColumns\": [\n                {\n                  \"collation\": \"\",\n                  \"column\": \"\",\n                  \"dataType\": \"\",\n                  \"length\": 0,\n                  \"nullable\": false,\n                  \"ordinalPosition\": 0,\n                  \"primaryKey\": false\n                }\n              ],\n              \"table\": \"\"\n            }\n          ]\n        }\n      ]\n    },\n    \"oracleExcludedObjects\": {\n      \"oracleSchemas\": [\n        {\n          \"oracleTables\": [\n            {\n              \"oracleColumns\": [\n                {\n                  \"column\": \"\",\n                  \"dataType\": \"\",\n                  \"encoding\": \"\",\n                  \"length\": 0,\n                  \"nullable\": false,\n                  \"ordinalPosition\": 0,\n                  \"precision\": 0,\n                  \"primaryKey\": false,\n                  \"scale\": 0\n                }\n              ],\n              \"table\": \"\"\n            }\n          ],\n          \"schema\": \"\"\n        }\n      ]\n    },\n    \"postgresqlExcludedObjects\": {\n      \"postgresqlSchemas\": [\n        {\n          \"postgresqlTables\": [\n            {\n              \"postgresqlColumns\": [\n                {\n                  \"column\": \"\",\n                  \"dataType\": \"\",\n                  \"length\": 0,\n                  \"nullable\": false,\n                  \"ordinalPosition\": 0,\n                  \"precision\": 0,\n                  \"primaryKey\": false,\n                  \"scale\": 0\n                }\n              ],\n              \"table\": \"\"\n            }\n          ],\n          \"schema\": \"\"\n        }\n      ]\n    }\n  },\n  \"backfillNone\": {},\n  \"createTime\": \"\",\n  \"customerManagedEncryptionKey\": \"\",\n  \"destinationConfig\": {\n    \"bigqueryDestinationConfig\": {\n      \"dataFreshness\": \"\",\n      \"singleTargetDataset\": {\n        \"datasetId\": \"\"\n      },\n      \"sourceHierarchyDatasets\": {\n        \"datasetTemplate\": {\n          \"datasetIdPrefix\": \"\",\n          \"kmsKeyName\": \"\",\n          \"location\": \"\"\n        }\n      }\n    },\n    \"destinationConnectionProfile\": \"\",\n    \"gcsDestinationConfig\": {\n      \"avroFileFormat\": {},\n      \"fileRotationInterval\": \"\",\n      \"fileRotationMb\": 0,\n      \"jsonFileFormat\": {\n        \"compression\": \"\",\n        \"schemaFileFormat\": \"\"\n      },\n      \"path\": \"\"\n    }\n  },\n  \"displayName\": \"\",\n  \"errors\": [\n    {\n      \"details\": {},\n      \"errorTime\": \"\",\n      \"errorUuid\": \"\",\n      \"message\": \"\",\n      \"reason\": \"\"\n    }\n  ],\n  \"labels\": {},\n  \"name\": \"\",\n  \"sourceConfig\": {\n    \"mysqlSourceConfig\": {\n      \"excludeObjects\": {},\n      \"includeObjects\": {},\n      \"maxConcurrentBackfillTasks\": 0,\n      \"maxConcurrentCdcTasks\": 0\n    },\n    \"oracleSourceConfig\": {\n      \"dropLargeObjects\": {},\n      \"excludeObjects\": {},\n      \"includeObjects\": {},\n      \"maxConcurrentBackfillTasks\": 0,\n      \"maxConcurrentCdcTasks\": 0,\n      \"streamLargeObjects\": {}\n    },\n    \"postgresqlSourceConfig\": {\n      \"excludeObjects\": {},\n      \"includeObjects\": {},\n      \"maxConcurrentBackfillTasks\": 0,\n      \"publication\": \"\",\n      \"replicationSlot\": \"\"\n    },\n    \"sourceConnectionProfile\": \"\"\n  },\n  \"state\": \"\",\n  \"updateTime\": \"\"\n}"

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

conn.request("PATCH", "/baseUrl/v1/:name", payload, headers)

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

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

url = "{{baseUrl}}/v1/:name"

payload = {
    "backfillAll": {
        "mysqlExcludedObjects": { "mysqlDatabases": [
                {
                    "database": "",
                    "mysqlTables": [
                        {
                            "mysqlColumns": [
                                {
                                    "collation": "",
                                    "column": "",
                                    "dataType": "",
                                    "length": 0,
                                    "nullable": False,
                                    "ordinalPosition": 0,
                                    "primaryKey": False
                                }
                            ],
                            "table": ""
                        }
                    ]
                }
            ] },
        "oracleExcludedObjects": { "oracleSchemas": [
                {
                    "oracleTables": [
                        {
                            "oracleColumns": [
                                {
                                    "column": "",
                                    "dataType": "",
                                    "encoding": "",
                                    "length": 0,
                                    "nullable": False,
                                    "ordinalPosition": 0,
                                    "precision": 0,
                                    "primaryKey": False,
                                    "scale": 0
                                }
                            ],
                            "table": ""
                        }
                    ],
                    "schema": ""
                }
            ] },
        "postgresqlExcludedObjects": { "postgresqlSchemas": [
                {
                    "postgresqlTables": [
                        {
                            "postgresqlColumns": [
                                {
                                    "column": "",
                                    "dataType": "",
                                    "length": 0,
                                    "nullable": False,
                                    "ordinalPosition": 0,
                                    "precision": 0,
                                    "primaryKey": False,
                                    "scale": 0
                                }
                            ],
                            "table": ""
                        }
                    ],
                    "schema": ""
                }
            ] }
    },
    "backfillNone": {},
    "createTime": "",
    "customerManagedEncryptionKey": "",
    "destinationConfig": {
        "bigqueryDestinationConfig": {
            "dataFreshness": "",
            "singleTargetDataset": { "datasetId": "" },
            "sourceHierarchyDatasets": { "datasetTemplate": {
                    "datasetIdPrefix": "",
                    "kmsKeyName": "",
                    "location": ""
                } }
        },
        "destinationConnectionProfile": "",
        "gcsDestinationConfig": {
            "avroFileFormat": {},
            "fileRotationInterval": "",
            "fileRotationMb": 0,
            "jsonFileFormat": {
                "compression": "",
                "schemaFileFormat": ""
            },
            "path": ""
        }
    },
    "displayName": "",
    "errors": [
        {
            "details": {},
            "errorTime": "",
            "errorUuid": "",
            "message": "",
            "reason": ""
        }
    ],
    "labels": {},
    "name": "",
    "sourceConfig": {
        "mysqlSourceConfig": {
            "excludeObjects": {},
            "includeObjects": {},
            "maxConcurrentBackfillTasks": 0,
            "maxConcurrentCdcTasks": 0
        },
        "oracleSourceConfig": {
            "dropLargeObjects": {},
            "excludeObjects": {},
            "includeObjects": {},
            "maxConcurrentBackfillTasks": 0,
            "maxConcurrentCdcTasks": 0,
            "streamLargeObjects": {}
        },
        "postgresqlSourceConfig": {
            "excludeObjects": {},
            "includeObjects": {},
            "maxConcurrentBackfillTasks": 0,
            "publication": "",
            "replicationSlot": ""
        },
        "sourceConnectionProfile": ""
    },
    "state": "",
    "updateTime": ""
}
headers = {"content-type": "application/json"}

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

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

url <- "{{baseUrl}}/v1/:name"

payload <- "{\n  \"backfillAll\": {\n    \"mysqlExcludedObjects\": {\n      \"mysqlDatabases\": [\n        {\n          \"database\": \"\",\n          \"mysqlTables\": [\n            {\n              \"mysqlColumns\": [\n                {\n                  \"collation\": \"\",\n                  \"column\": \"\",\n                  \"dataType\": \"\",\n                  \"length\": 0,\n                  \"nullable\": false,\n                  \"ordinalPosition\": 0,\n                  \"primaryKey\": false\n                }\n              ],\n              \"table\": \"\"\n            }\n          ]\n        }\n      ]\n    },\n    \"oracleExcludedObjects\": {\n      \"oracleSchemas\": [\n        {\n          \"oracleTables\": [\n            {\n              \"oracleColumns\": [\n                {\n                  \"column\": \"\",\n                  \"dataType\": \"\",\n                  \"encoding\": \"\",\n                  \"length\": 0,\n                  \"nullable\": false,\n                  \"ordinalPosition\": 0,\n                  \"precision\": 0,\n                  \"primaryKey\": false,\n                  \"scale\": 0\n                }\n              ],\n              \"table\": \"\"\n            }\n          ],\n          \"schema\": \"\"\n        }\n      ]\n    },\n    \"postgresqlExcludedObjects\": {\n      \"postgresqlSchemas\": [\n        {\n          \"postgresqlTables\": [\n            {\n              \"postgresqlColumns\": [\n                {\n                  \"column\": \"\",\n                  \"dataType\": \"\",\n                  \"length\": 0,\n                  \"nullable\": false,\n                  \"ordinalPosition\": 0,\n                  \"precision\": 0,\n                  \"primaryKey\": false,\n                  \"scale\": 0\n                }\n              ],\n              \"table\": \"\"\n            }\n          ],\n          \"schema\": \"\"\n        }\n      ]\n    }\n  },\n  \"backfillNone\": {},\n  \"createTime\": \"\",\n  \"customerManagedEncryptionKey\": \"\",\n  \"destinationConfig\": {\n    \"bigqueryDestinationConfig\": {\n      \"dataFreshness\": \"\",\n      \"singleTargetDataset\": {\n        \"datasetId\": \"\"\n      },\n      \"sourceHierarchyDatasets\": {\n        \"datasetTemplate\": {\n          \"datasetIdPrefix\": \"\",\n          \"kmsKeyName\": \"\",\n          \"location\": \"\"\n        }\n      }\n    },\n    \"destinationConnectionProfile\": \"\",\n    \"gcsDestinationConfig\": {\n      \"avroFileFormat\": {},\n      \"fileRotationInterval\": \"\",\n      \"fileRotationMb\": 0,\n      \"jsonFileFormat\": {\n        \"compression\": \"\",\n        \"schemaFileFormat\": \"\"\n      },\n      \"path\": \"\"\n    }\n  },\n  \"displayName\": \"\",\n  \"errors\": [\n    {\n      \"details\": {},\n      \"errorTime\": \"\",\n      \"errorUuid\": \"\",\n      \"message\": \"\",\n      \"reason\": \"\"\n    }\n  ],\n  \"labels\": {},\n  \"name\": \"\",\n  \"sourceConfig\": {\n    \"mysqlSourceConfig\": {\n      \"excludeObjects\": {},\n      \"includeObjects\": {},\n      \"maxConcurrentBackfillTasks\": 0,\n      \"maxConcurrentCdcTasks\": 0\n    },\n    \"oracleSourceConfig\": {\n      \"dropLargeObjects\": {},\n      \"excludeObjects\": {},\n      \"includeObjects\": {},\n      \"maxConcurrentBackfillTasks\": 0,\n      \"maxConcurrentCdcTasks\": 0,\n      \"streamLargeObjects\": {}\n    },\n    \"postgresqlSourceConfig\": {\n      \"excludeObjects\": {},\n      \"includeObjects\": {},\n      \"maxConcurrentBackfillTasks\": 0,\n      \"publication\": \"\",\n      \"replicationSlot\": \"\"\n    },\n    \"sourceConnectionProfile\": \"\"\n  },\n  \"state\": \"\",\n  \"updateTime\": \"\"\n}"

encode <- "json"

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

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::Patch.new(url)
request["content-type"] = 'application/json'
request.body = "{\n  \"backfillAll\": {\n    \"mysqlExcludedObjects\": {\n      \"mysqlDatabases\": [\n        {\n          \"database\": \"\",\n          \"mysqlTables\": [\n            {\n              \"mysqlColumns\": [\n                {\n                  \"collation\": \"\",\n                  \"column\": \"\",\n                  \"dataType\": \"\",\n                  \"length\": 0,\n                  \"nullable\": false,\n                  \"ordinalPosition\": 0,\n                  \"primaryKey\": false\n                }\n              ],\n              \"table\": \"\"\n            }\n          ]\n        }\n      ]\n    },\n    \"oracleExcludedObjects\": {\n      \"oracleSchemas\": [\n        {\n          \"oracleTables\": [\n            {\n              \"oracleColumns\": [\n                {\n                  \"column\": \"\",\n                  \"dataType\": \"\",\n                  \"encoding\": \"\",\n                  \"length\": 0,\n                  \"nullable\": false,\n                  \"ordinalPosition\": 0,\n                  \"precision\": 0,\n                  \"primaryKey\": false,\n                  \"scale\": 0\n                }\n              ],\n              \"table\": \"\"\n            }\n          ],\n          \"schema\": \"\"\n        }\n      ]\n    },\n    \"postgresqlExcludedObjects\": {\n      \"postgresqlSchemas\": [\n        {\n          \"postgresqlTables\": [\n            {\n              \"postgresqlColumns\": [\n                {\n                  \"column\": \"\",\n                  \"dataType\": \"\",\n                  \"length\": 0,\n                  \"nullable\": false,\n                  \"ordinalPosition\": 0,\n                  \"precision\": 0,\n                  \"primaryKey\": false,\n                  \"scale\": 0\n                }\n              ],\n              \"table\": \"\"\n            }\n          ],\n          \"schema\": \"\"\n        }\n      ]\n    }\n  },\n  \"backfillNone\": {},\n  \"createTime\": \"\",\n  \"customerManagedEncryptionKey\": \"\",\n  \"destinationConfig\": {\n    \"bigqueryDestinationConfig\": {\n      \"dataFreshness\": \"\",\n      \"singleTargetDataset\": {\n        \"datasetId\": \"\"\n      },\n      \"sourceHierarchyDatasets\": {\n        \"datasetTemplate\": {\n          \"datasetIdPrefix\": \"\",\n          \"kmsKeyName\": \"\",\n          \"location\": \"\"\n        }\n      }\n    },\n    \"destinationConnectionProfile\": \"\",\n    \"gcsDestinationConfig\": {\n      \"avroFileFormat\": {},\n      \"fileRotationInterval\": \"\",\n      \"fileRotationMb\": 0,\n      \"jsonFileFormat\": {\n        \"compression\": \"\",\n        \"schemaFileFormat\": \"\"\n      },\n      \"path\": \"\"\n    }\n  },\n  \"displayName\": \"\",\n  \"errors\": [\n    {\n      \"details\": {},\n      \"errorTime\": \"\",\n      \"errorUuid\": \"\",\n      \"message\": \"\",\n      \"reason\": \"\"\n    }\n  ],\n  \"labels\": {},\n  \"name\": \"\",\n  \"sourceConfig\": {\n    \"mysqlSourceConfig\": {\n      \"excludeObjects\": {},\n      \"includeObjects\": {},\n      \"maxConcurrentBackfillTasks\": 0,\n      \"maxConcurrentCdcTasks\": 0\n    },\n    \"oracleSourceConfig\": {\n      \"dropLargeObjects\": {},\n      \"excludeObjects\": {},\n      \"includeObjects\": {},\n      \"maxConcurrentBackfillTasks\": 0,\n      \"maxConcurrentCdcTasks\": 0,\n      \"streamLargeObjects\": {}\n    },\n    \"postgresqlSourceConfig\": {\n      \"excludeObjects\": {},\n      \"includeObjects\": {},\n      \"maxConcurrentBackfillTasks\": 0,\n      \"publication\": \"\",\n      \"replicationSlot\": \"\"\n    },\n    \"sourceConnectionProfile\": \"\"\n  },\n  \"state\": \"\",\n  \"updateTime\": \"\"\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.patch('/baseUrl/v1/:name') do |req|
  req.body = "{\n  \"backfillAll\": {\n    \"mysqlExcludedObjects\": {\n      \"mysqlDatabases\": [\n        {\n          \"database\": \"\",\n          \"mysqlTables\": [\n            {\n              \"mysqlColumns\": [\n                {\n                  \"collation\": \"\",\n                  \"column\": \"\",\n                  \"dataType\": \"\",\n                  \"length\": 0,\n                  \"nullable\": false,\n                  \"ordinalPosition\": 0,\n                  \"primaryKey\": false\n                }\n              ],\n              \"table\": \"\"\n            }\n          ]\n        }\n      ]\n    },\n    \"oracleExcludedObjects\": {\n      \"oracleSchemas\": [\n        {\n          \"oracleTables\": [\n            {\n              \"oracleColumns\": [\n                {\n                  \"column\": \"\",\n                  \"dataType\": \"\",\n                  \"encoding\": \"\",\n                  \"length\": 0,\n                  \"nullable\": false,\n                  \"ordinalPosition\": 0,\n                  \"precision\": 0,\n                  \"primaryKey\": false,\n                  \"scale\": 0\n                }\n              ],\n              \"table\": \"\"\n            }\n          ],\n          \"schema\": \"\"\n        }\n      ]\n    },\n    \"postgresqlExcludedObjects\": {\n      \"postgresqlSchemas\": [\n        {\n          \"postgresqlTables\": [\n            {\n              \"postgresqlColumns\": [\n                {\n                  \"column\": \"\",\n                  \"dataType\": \"\",\n                  \"length\": 0,\n                  \"nullable\": false,\n                  \"ordinalPosition\": 0,\n                  \"precision\": 0,\n                  \"primaryKey\": false,\n                  \"scale\": 0\n                }\n              ],\n              \"table\": \"\"\n            }\n          ],\n          \"schema\": \"\"\n        }\n      ]\n    }\n  },\n  \"backfillNone\": {},\n  \"createTime\": \"\",\n  \"customerManagedEncryptionKey\": \"\",\n  \"destinationConfig\": {\n    \"bigqueryDestinationConfig\": {\n      \"dataFreshness\": \"\",\n      \"singleTargetDataset\": {\n        \"datasetId\": \"\"\n      },\n      \"sourceHierarchyDatasets\": {\n        \"datasetTemplate\": {\n          \"datasetIdPrefix\": \"\",\n          \"kmsKeyName\": \"\",\n          \"location\": \"\"\n        }\n      }\n    },\n    \"destinationConnectionProfile\": \"\",\n    \"gcsDestinationConfig\": {\n      \"avroFileFormat\": {},\n      \"fileRotationInterval\": \"\",\n      \"fileRotationMb\": 0,\n      \"jsonFileFormat\": {\n        \"compression\": \"\",\n        \"schemaFileFormat\": \"\"\n      },\n      \"path\": \"\"\n    }\n  },\n  \"displayName\": \"\",\n  \"errors\": [\n    {\n      \"details\": {},\n      \"errorTime\": \"\",\n      \"errorUuid\": \"\",\n      \"message\": \"\",\n      \"reason\": \"\"\n    }\n  ],\n  \"labels\": {},\n  \"name\": \"\",\n  \"sourceConfig\": {\n    \"mysqlSourceConfig\": {\n      \"excludeObjects\": {},\n      \"includeObjects\": {},\n      \"maxConcurrentBackfillTasks\": 0,\n      \"maxConcurrentCdcTasks\": 0\n    },\n    \"oracleSourceConfig\": {\n      \"dropLargeObjects\": {},\n      \"excludeObjects\": {},\n      \"includeObjects\": {},\n      \"maxConcurrentBackfillTasks\": 0,\n      \"maxConcurrentCdcTasks\": 0,\n      \"streamLargeObjects\": {}\n    },\n    \"postgresqlSourceConfig\": {\n      \"excludeObjects\": {},\n      \"includeObjects\": {},\n      \"maxConcurrentBackfillTasks\": 0,\n      \"publication\": \"\",\n      \"replicationSlot\": \"\"\n    },\n    \"sourceConnectionProfile\": \"\"\n  },\n  \"state\": \"\",\n  \"updateTime\": \"\"\n}"
end

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

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

    let payload = json!({
        "backfillAll": json!({
            "mysqlExcludedObjects": json!({"mysqlDatabases": (
                    json!({
                        "database": "",
                        "mysqlTables": (
                            json!({
                                "mysqlColumns": (
                                    json!({
                                        "collation": "",
                                        "column": "",
                                        "dataType": "",
                                        "length": 0,
                                        "nullable": false,
                                        "ordinalPosition": 0,
                                        "primaryKey": false
                                    })
                                ),
                                "table": ""
                            })
                        )
                    })
                )}),
            "oracleExcludedObjects": json!({"oracleSchemas": (
                    json!({
                        "oracleTables": (
                            json!({
                                "oracleColumns": (
                                    json!({
                                        "column": "",
                                        "dataType": "",
                                        "encoding": "",
                                        "length": 0,
                                        "nullable": false,
                                        "ordinalPosition": 0,
                                        "precision": 0,
                                        "primaryKey": false,
                                        "scale": 0
                                    })
                                ),
                                "table": ""
                            })
                        ),
                        "schema": ""
                    })
                )}),
            "postgresqlExcludedObjects": json!({"postgresqlSchemas": (
                    json!({
                        "postgresqlTables": (
                            json!({
                                "postgresqlColumns": (
                                    json!({
                                        "column": "",
                                        "dataType": "",
                                        "length": 0,
                                        "nullable": false,
                                        "ordinalPosition": 0,
                                        "precision": 0,
                                        "primaryKey": false,
                                        "scale": 0
                                    })
                                ),
                                "table": ""
                            })
                        ),
                        "schema": ""
                    })
                )})
        }),
        "backfillNone": json!({}),
        "createTime": "",
        "customerManagedEncryptionKey": "",
        "destinationConfig": json!({
            "bigqueryDestinationConfig": json!({
                "dataFreshness": "",
                "singleTargetDataset": json!({"datasetId": ""}),
                "sourceHierarchyDatasets": json!({"datasetTemplate": json!({
                        "datasetIdPrefix": "",
                        "kmsKeyName": "",
                        "location": ""
                    })})
            }),
            "destinationConnectionProfile": "",
            "gcsDestinationConfig": json!({
                "avroFileFormat": json!({}),
                "fileRotationInterval": "",
                "fileRotationMb": 0,
                "jsonFileFormat": json!({
                    "compression": "",
                    "schemaFileFormat": ""
                }),
                "path": ""
            })
        }),
        "displayName": "",
        "errors": (
            json!({
                "details": json!({}),
                "errorTime": "",
                "errorUuid": "",
                "message": "",
                "reason": ""
            })
        ),
        "labels": json!({}),
        "name": "",
        "sourceConfig": json!({
            "mysqlSourceConfig": json!({
                "excludeObjects": json!({}),
                "includeObjects": json!({}),
                "maxConcurrentBackfillTasks": 0,
                "maxConcurrentCdcTasks": 0
            }),
            "oracleSourceConfig": json!({
                "dropLargeObjects": json!({}),
                "excludeObjects": json!({}),
                "includeObjects": json!({}),
                "maxConcurrentBackfillTasks": 0,
                "maxConcurrentCdcTasks": 0,
                "streamLargeObjects": json!({})
            }),
            "postgresqlSourceConfig": json!({
                "excludeObjects": json!({}),
                "includeObjects": json!({}),
                "maxConcurrentBackfillTasks": 0,
                "publication": "",
                "replicationSlot": ""
            }),
            "sourceConnectionProfile": ""
        }),
        "state": "",
        "updateTime": ""
    });

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

    let client = reqwest::Client::new();
    let response = client.request(reqwest::Method::from_str("PATCH").unwrap(), url)
        .headers(headers)
        .json(&payload)
        .send()
        .await;

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

    dbg!(results);
}
curl --request PATCH \
  --url {{baseUrl}}/v1/:name \
  --header 'content-type: application/json' \
  --data '{
  "backfillAll": {
    "mysqlExcludedObjects": {
      "mysqlDatabases": [
        {
          "database": "",
          "mysqlTables": [
            {
              "mysqlColumns": [
                {
                  "collation": "",
                  "column": "",
                  "dataType": "",
                  "length": 0,
                  "nullable": false,
                  "ordinalPosition": 0,
                  "primaryKey": false
                }
              ],
              "table": ""
            }
          ]
        }
      ]
    },
    "oracleExcludedObjects": {
      "oracleSchemas": [
        {
          "oracleTables": [
            {
              "oracleColumns": [
                {
                  "column": "",
                  "dataType": "",
                  "encoding": "",
                  "length": 0,
                  "nullable": false,
                  "ordinalPosition": 0,
                  "precision": 0,
                  "primaryKey": false,
                  "scale": 0
                }
              ],
              "table": ""
            }
          ],
          "schema": ""
        }
      ]
    },
    "postgresqlExcludedObjects": {
      "postgresqlSchemas": [
        {
          "postgresqlTables": [
            {
              "postgresqlColumns": [
                {
                  "column": "",
                  "dataType": "",
                  "length": 0,
                  "nullable": false,
                  "ordinalPosition": 0,
                  "precision": 0,
                  "primaryKey": false,
                  "scale": 0
                }
              ],
              "table": ""
            }
          ],
          "schema": ""
        }
      ]
    }
  },
  "backfillNone": {},
  "createTime": "",
  "customerManagedEncryptionKey": "",
  "destinationConfig": {
    "bigqueryDestinationConfig": {
      "dataFreshness": "",
      "singleTargetDataset": {
        "datasetId": ""
      },
      "sourceHierarchyDatasets": {
        "datasetTemplate": {
          "datasetIdPrefix": "",
          "kmsKeyName": "",
          "location": ""
        }
      }
    },
    "destinationConnectionProfile": "",
    "gcsDestinationConfig": {
      "avroFileFormat": {},
      "fileRotationInterval": "",
      "fileRotationMb": 0,
      "jsonFileFormat": {
        "compression": "",
        "schemaFileFormat": ""
      },
      "path": ""
    }
  },
  "displayName": "",
  "errors": [
    {
      "details": {},
      "errorTime": "",
      "errorUuid": "",
      "message": "",
      "reason": ""
    }
  ],
  "labels": {},
  "name": "",
  "sourceConfig": {
    "mysqlSourceConfig": {
      "excludeObjects": {},
      "includeObjects": {},
      "maxConcurrentBackfillTasks": 0,
      "maxConcurrentCdcTasks": 0
    },
    "oracleSourceConfig": {
      "dropLargeObjects": {},
      "excludeObjects": {},
      "includeObjects": {},
      "maxConcurrentBackfillTasks": 0,
      "maxConcurrentCdcTasks": 0,
      "streamLargeObjects": {}
    },
    "postgresqlSourceConfig": {
      "excludeObjects": {},
      "includeObjects": {},
      "maxConcurrentBackfillTasks": 0,
      "publication": "",
      "replicationSlot": ""
    },
    "sourceConnectionProfile": ""
  },
  "state": "",
  "updateTime": ""
}'
echo '{
  "backfillAll": {
    "mysqlExcludedObjects": {
      "mysqlDatabases": [
        {
          "database": "",
          "mysqlTables": [
            {
              "mysqlColumns": [
                {
                  "collation": "",
                  "column": "",
                  "dataType": "",
                  "length": 0,
                  "nullable": false,
                  "ordinalPosition": 0,
                  "primaryKey": false
                }
              ],
              "table": ""
            }
          ]
        }
      ]
    },
    "oracleExcludedObjects": {
      "oracleSchemas": [
        {
          "oracleTables": [
            {
              "oracleColumns": [
                {
                  "column": "",
                  "dataType": "",
                  "encoding": "",
                  "length": 0,
                  "nullable": false,
                  "ordinalPosition": 0,
                  "precision": 0,
                  "primaryKey": false,
                  "scale": 0
                }
              ],
              "table": ""
            }
          ],
          "schema": ""
        }
      ]
    },
    "postgresqlExcludedObjects": {
      "postgresqlSchemas": [
        {
          "postgresqlTables": [
            {
              "postgresqlColumns": [
                {
                  "column": "",
                  "dataType": "",
                  "length": 0,
                  "nullable": false,
                  "ordinalPosition": 0,
                  "precision": 0,
                  "primaryKey": false,
                  "scale": 0
                }
              ],
              "table": ""
            }
          ],
          "schema": ""
        }
      ]
    }
  },
  "backfillNone": {},
  "createTime": "",
  "customerManagedEncryptionKey": "",
  "destinationConfig": {
    "bigqueryDestinationConfig": {
      "dataFreshness": "",
      "singleTargetDataset": {
        "datasetId": ""
      },
      "sourceHierarchyDatasets": {
        "datasetTemplate": {
          "datasetIdPrefix": "",
          "kmsKeyName": "",
          "location": ""
        }
      }
    },
    "destinationConnectionProfile": "",
    "gcsDestinationConfig": {
      "avroFileFormat": {},
      "fileRotationInterval": "",
      "fileRotationMb": 0,
      "jsonFileFormat": {
        "compression": "",
        "schemaFileFormat": ""
      },
      "path": ""
    }
  },
  "displayName": "",
  "errors": [
    {
      "details": {},
      "errorTime": "",
      "errorUuid": "",
      "message": "",
      "reason": ""
    }
  ],
  "labels": {},
  "name": "",
  "sourceConfig": {
    "mysqlSourceConfig": {
      "excludeObjects": {},
      "includeObjects": {},
      "maxConcurrentBackfillTasks": 0,
      "maxConcurrentCdcTasks": 0
    },
    "oracleSourceConfig": {
      "dropLargeObjects": {},
      "excludeObjects": {},
      "includeObjects": {},
      "maxConcurrentBackfillTasks": 0,
      "maxConcurrentCdcTasks": 0,
      "streamLargeObjects": {}
    },
    "postgresqlSourceConfig": {
      "excludeObjects": {},
      "includeObjects": {},
      "maxConcurrentBackfillTasks": 0,
      "publication": "",
      "replicationSlot": ""
    },
    "sourceConnectionProfile": ""
  },
  "state": "",
  "updateTime": ""
}' |  \
  http PATCH {{baseUrl}}/v1/:name \
  content-type:application/json
wget --quiet \
  --method PATCH \
  --header 'content-type: application/json' \
  --body-data '{\n  "backfillAll": {\n    "mysqlExcludedObjects": {\n      "mysqlDatabases": [\n        {\n          "database": "",\n          "mysqlTables": [\n            {\n              "mysqlColumns": [\n                {\n                  "collation": "",\n                  "column": "",\n                  "dataType": "",\n                  "length": 0,\n                  "nullable": false,\n                  "ordinalPosition": 0,\n                  "primaryKey": false\n                }\n              ],\n              "table": ""\n            }\n          ]\n        }\n      ]\n    },\n    "oracleExcludedObjects": {\n      "oracleSchemas": [\n        {\n          "oracleTables": [\n            {\n              "oracleColumns": [\n                {\n                  "column": "",\n                  "dataType": "",\n                  "encoding": "",\n                  "length": 0,\n                  "nullable": false,\n                  "ordinalPosition": 0,\n                  "precision": 0,\n                  "primaryKey": false,\n                  "scale": 0\n                }\n              ],\n              "table": ""\n            }\n          ],\n          "schema": ""\n        }\n      ]\n    },\n    "postgresqlExcludedObjects": {\n      "postgresqlSchemas": [\n        {\n          "postgresqlTables": [\n            {\n              "postgresqlColumns": [\n                {\n                  "column": "",\n                  "dataType": "",\n                  "length": 0,\n                  "nullable": false,\n                  "ordinalPosition": 0,\n                  "precision": 0,\n                  "primaryKey": false,\n                  "scale": 0\n                }\n              ],\n              "table": ""\n            }\n          ],\n          "schema": ""\n        }\n      ]\n    }\n  },\n  "backfillNone": {},\n  "createTime": "",\n  "customerManagedEncryptionKey": "",\n  "destinationConfig": {\n    "bigqueryDestinationConfig": {\n      "dataFreshness": "",\n      "singleTargetDataset": {\n        "datasetId": ""\n      },\n      "sourceHierarchyDatasets": {\n        "datasetTemplate": {\n          "datasetIdPrefix": "",\n          "kmsKeyName": "",\n          "location": ""\n        }\n      }\n    },\n    "destinationConnectionProfile": "",\n    "gcsDestinationConfig": {\n      "avroFileFormat": {},\n      "fileRotationInterval": "",\n      "fileRotationMb": 0,\n      "jsonFileFormat": {\n        "compression": "",\n        "schemaFileFormat": ""\n      },\n      "path": ""\n    }\n  },\n  "displayName": "",\n  "errors": [\n    {\n      "details": {},\n      "errorTime": "",\n      "errorUuid": "",\n      "message": "",\n      "reason": ""\n    }\n  ],\n  "labels": {},\n  "name": "",\n  "sourceConfig": {\n    "mysqlSourceConfig": {\n      "excludeObjects": {},\n      "includeObjects": {},\n      "maxConcurrentBackfillTasks": 0,\n      "maxConcurrentCdcTasks": 0\n    },\n    "oracleSourceConfig": {\n      "dropLargeObjects": {},\n      "excludeObjects": {},\n      "includeObjects": {},\n      "maxConcurrentBackfillTasks": 0,\n      "maxConcurrentCdcTasks": 0,\n      "streamLargeObjects": {}\n    },\n    "postgresqlSourceConfig": {\n      "excludeObjects": {},\n      "includeObjects": {},\n      "maxConcurrentBackfillTasks": 0,\n      "publication": "",\n      "replicationSlot": ""\n    },\n    "sourceConnectionProfile": ""\n  },\n  "state": "",\n  "updateTime": ""\n}' \
  --output-document \
  - {{baseUrl}}/v1/:name
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "backfillAll": [
    "mysqlExcludedObjects": ["mysqlDatabases": [
        [
          "database": "",
          "mysqlTables": [
            [
              "mysqlColumns": [
                [
                  "collation": "",
                  "column": "",
                  "dataType": "",
                  "length": 0,
                  "nullable": false,
                  "ordinalPosition": 0,
                  "primaryKey": false
                ]
              ],
              "table": ""
            ]
          ]
        ]
      ]],
    "oracleExcludedObjects": ["oracleSchemas": [
        [
          "oracleTables": [
            [
              "oracleColumns": [
                [
                  "column": "",
                  "dataType": "",
                  "encoding": "",
                  "length": 0,
                  "nullable": false,
                  "ordinalPosition": 0,
                  "precision": 0,
                  "primaryKey": false,
                  "scale": 0
                ]
              ],
              "table": ""
            ]
          ],
          "schema": ""
        ]
      ]],
    "postgresqlExcludedObjects": ["postgresqlSchemas": [
        [
          "postgresqlTables": [
            [
              "postgresqlColumns": [
                [
                  "column": "",
                  "dataType": "",
                  "length": 0,
                  "nullable": false,
                  "ordinalPosition": 0,
                  "precision": 0,
                  "primaryKey": false,
                  "scale": 0
                ]
              ],
              "table": ""
            ]
          ],
          "schema": ""
        ]
      ]]
  ],
  "backfillNone": [],
  "createTime": "",
  "customerManagedEncryptionKey": "",
  "destinationConfig": [
    "bigqueryDestinationConfig": [
      "dataFreshness": "",
      "singleTargetDataset": ["datasetId": ""],
      "sourceHierarchyDatasets": ["datasetTemplate": [
          "datasetIdPrefix": "",
          "kmsKeyName": "",
          "location": ""
        ]]
    ],
    "destinationConnectionProfile": "",
    "gcsDestinationConfig": [
      "avroFileFormat": [],
      "fileRotationInterval": "",
      "fileRotationMb": 0,
      "jsonFileFormat": [
        "compression": "",
        "schemaFileFormat": ""
      ],
      "path": ""
    ]
  ],
  "displayName": "",
  "errors": [
    [
      "details": [],
      "errorTime": "",
      "errorUuid": "",
      "message": "",
      "reason": ""
    ]
  ],
  "labels": [],
  "name": "",
  "sourceConfig": [
    "mysqlSourceConfig": [
      "excludeObjects": [],
      "includeObjects": [],
      "maxConcurrentBackfillTasks": 0,
      "maxConcurrentCdcTasks": 0
    ],
    "oracleSourceConfig": [
      "dropLargeObjects": [],
      "excludeObjects": [],
      "includeObjects": [],
      "maxConcurrentBackfillTasks": 0,
      "maxConcurrentCdcTasks": 0,
      "streamLargeObjects": []
    ],
    "postgresqlSourceConfig": [
      "excludeObjects": [],
      "includeObjects": [],
      "maxConcurrentBackfillTasks": 0,
      "publication": "",
      "replicationSlot": ""
    ],
    "sourceConnectionProfile": ""
  ],
  "state": "",
  "updateTime": ""
] as [String : Any]

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

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/v1/:name")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "PATCH"
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()