POST remotebuildexecution.projects.instances.create
{{baseUrl}}/v1alpha/:parent/instances
QUERY PARAMS

parent
BODY json

{
  "instance": {
    "featurePolicy": {
      "actionHermeticity": "",
      "actionIsolation": "",
      "containerImageSources": {
        "allowedValues": [],
        "policy": ""
      },
      "dockerAddCapabilities": {},
      "dockerChrootPath": {},
      "dockerNetwork": {},
      "dockerPrivileged": {},
      "dockerRunAsContainerProvidedUser": {},
      "dockerRunAsRoot": {},
      "dockerRuntime": {},
      "dockerSiblingContainers": {},
      "linuxExecution": "",
      "linuxIsolation": "",
      "macExecution": "",
      "vmVerification": "",
      "windowsExecution": ""
    },
    "location": "",
    "loggingEnabled": false,
    "name": "",
    "schedulerNotificationConfig": {
      "topic": ""
    },
    "state": ""
  },
  "instanceId": "",
  "parent": ""
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

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

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  \"instance\": {\n    \"featurePolicy\": {\n      \"actionHermeticity\": \"\",\n      \"actionIsolation\": \"\",\n      \"containerImageSources\": {\n        \"allowedValues\": [],\n        \"policy\": \"\"\n      },\n      \"dockerAddCapabilities\": {},\n      \"dockerChrootPath\": {},\n      \"dockerNetwork\": {},\n      \"dockerPrivileged\": {},\n      \"dockerRunAsContainerProvidedUser\": {},\n      \"dockerRunAsRoot\": {},\n      \"dockerRuntime\": {},\n      \"dockerSiblingContainers\": {},\n      \"linuxExecution\": \"\",\n      \"linuxIsolation\": \"\",\n      \"macExecution\": \"\",\n      \"vmVerification\": \"\",\n      \"windowsExecution\": \"\"\n    },\n    \"location\": \"\",\n    \"loggingEnabled\": false,\n    \"name\": \"\",\n    \"schedulerNotificationConfig\": {\n      \"topic\": \"\"\n    },\n    \"state\": \"\"\n  },\n  \"instanceId\": \"\",\n  \"parent\": \"\"\n}");

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

(client/post "{{baseUrl}}/v1alpha/:parent/instances" {:content-type :json
                                                                      :form-params {:instance {:featurePolicy {:actionHermeticity ""
                                                                                                               :actionIsolation ""
                                                                                                               :containerImageSources {:allowedValues []
                                                                                                                                       :policy ""}
                                                                                                               :dockerAddCapabilities {}
                                                                                                               :dockerChrootPath {}
                                                                                                               :dockerNetwork {}
                                                                                                               :dockerPrivileged {}
                                                                                                               :dockerRunAsContainerProvidedUser {}
                                                                                                               :dockerRunAsRoot {}
                                                                                                               :dockerRuntime {}
                                                                                                               :dockerSiblingContainers {}
                                                                                                               :linuxExecution ""
                                                                                                               :linuxIsolation ""
                                                                                                               :macExecution ""
                                                                                                               :vmVerification ""
                                                                                                               :windowsExecution ""}
                                                                                               :location ""
                                                                                               :loggingEnabled false
                                                                                               :name ""
                                                                                               :schedulerNotificationConfig {:topic ""}
                                                                                               :state ""}
                                                                                    :instanceId ""
                                                                                    :parent ""}})
require "http/client"

url = "{{baseUrl}}/v1alpha/:parent/instances"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"instance\": {\n    \"featurePolicy\": {\n      \"actionHermeticity\": \"\",\n      \"actionIsolation\": \"\",\n      \"containerImageSources\": {\n        \"allowedValues\": [],\n        \"policy\": \"\"\n      },\n      \"dockerAddCapabilities\": {},\n      \"dockerChrootPath\": {},\n      \"dockerNetwork\": {},\n      \"dockerPrivileged\": {},\n      \"dockerRunAsContainerProvidedUser\": {},\n      \"dockerRunAsRoot\": {},\n      \"dockerRuntime\": {},\n      \"dockerSiblingContainers\": {},\n      \"linuxExecution\": \"\",\n      \"linuxIsolation\": \"\",\n      \"macExecution\": \"\",\n      \"vmVerification\": \"\",\n      \"windowsExecution\": \"\"\n    },\n    \"location\": \"\",\n    \"loggingEnabled\": false,\n    \"name\": \"\",\n    \"schedulerNotificationConfig\": {\n      \"topic\": \"\"\n    },\n    \"state\": \"\"\n  },\n  \"instanceId\": \"\",\n  \"parent\": \"\"\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}}/v1alpha/:parent/instances"),
    Content = new StringContent("{\n  \"instance\": {\n    \"featurePolicy\": {\n      \"actionHermeticity\": \"\",\n      \"actionIsolation\": \"\",\n      \"containerImageSources\": {\n        \"allowedValues\": [],\n        \"policy\": \"\"\n      },\n      \"dockerAddCapabilities\": {},\n      \"dockerChrootPath\": {},\n      \"dockerNetwork\": {},\n      \"dockerPrivileged\": {},\n      \"dockerRunAsContainerProvidedUser\": {},\n      \"dockerRunAsRoot\": {},\n      \"dockerRuntime\": {},\n      \"dockerSiblingContainers\": {},\n      \"linuxExecution\": \"\",\n      \"linuxIsolation\": \"\",\n      \"macExecution\": \"\",\n      \"vmVerification\": \"\",\n      \"windowsExecution\": \"\"\n    },\n    \"location\": \"\",\n    \"loggingEnabled\": false,\n    \"name\": \"\",\n    \"schedulerNotificationConfig\": {\n      \"topic\": \"\"\n    },\n    \"state\": \"\"\n  },\n  \"instanceId\": \"\",\n  \"parent\": \"\"\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}}/v1alpha/:parent/instances");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"instance\": {\n    \"featurePolicy\": {\n      \"actionHermeticity\": \"\",\n      \"actionIsolation\": \"\",\n      \"containerImageSources\": {\n        \"allowedValues\": [],\n        \"policy\": \"\"\n      },\n      \"dockerAddCapabilities\": {},\n      \"dockerChrootPath\": {},\n      \"dockerNetwork\": {},\n      \"dockerPrivileged\": {},\n      \"dockerRunAsContainerProvidedUser\": {},\n      \"dockerRunAsRoot\": {},\n      \"dockerRuntime\": {},\n      \"dockerSiblingContainers\": {},\n      \"linuxExecution\": \"\",\n      \"linuxIsolation\": \"\",\n      \"macExecution\": \"\",\n      \"vmVerification\": \"\",\n      \"windowsExecution\": \"\"\n    },\n    \"location\": \"\",\n    \"loggingEnabled\": false,\n    \"name\": \"\",\n    \"schedulerNotificationConfig\": {\n      \"topic\": \"\"\n    },\n    \"state\": \"\"\n  },\n  \"instanceId\": \"\",\n  \"parent\": \"\"\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

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

func main() {

	url := "{{baseUrl}}/v1alpha/:parent/instances"

	payload := strings.NewReader("{\n  \"instance\": {\n    \"featurePolicy\": {\n      \"actionHermeticity\": \"\",\n      \"actionIsolation\": \"\",\n      \"containerImageSources\": {\n        \"allowedValues\": [],\n        \"policy\": \"\"\n      },\n      \"dockerAddCapabilities\": {},\n      \"dockerChrootPath\": {},\n      \"dockerNetwork\": {},\n      \"dockerPrivileged\": {},\n      \"dockerRunAsContainerProvidedUser\": {},\n      \"dockerRunAsRoot\": {},\n      \"dockerRuntime\": {},\n      \"dockerSiblingContainers\": {},\n      \"linuxExecution\": \"\",\n      \"linuxIsolation\": \"\",\n      \"macExecution\": \"\",\n      \"vmVerification\": \"\",\n      \"windowsExecution\": \"\"\n    },\n    \"location\": \"\",\n    \"loggingEnabled\": false,\n    \"name\": \"\",\n    \"schedulerNotificationConfig\": {\n      \"topic\": \"\"\n    },\n    \"state\": \"\"\n  },\n  \"instanceId\": \"\",\n  \"parent\": \"\"\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/v1alpha/:parent/instances HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 784

{
  "instance": {
    "featurePolicy": {
      "actionHermeticity": "",
      "actionIsolation": "",
      "containerImageSources": {
        "allowedValues": [],
        "policy": ""
      },
      "dockerAddCapabilities": {},
      "dockerChrootPath": {},
      "dockerNetwork": {},
      "dockerPrivileged": {},
      "dockerRunAsContainerProvidedUser": {},
      "dockerRunAsRoot": {},
      "dockerRuntime": {},
      "dockerSiblingContainers": {},
      "linuxExecution": "",
      "linuxIsolation": "",
      "macExecution": "",
      "vmVerification": "",
      "windowsExecution": ""
    },
    "location": "",
    "loggingEnabled": false,
    "name": "",
    "schedulerNotificationConfig": {
      "topic": ""
    },
    "state": ""
  },
  "instanceId": "",
  "parent": ""
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/v1alpha/:parent/instances")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"instance\": {\n    \"featurePolicy\": {\n      \"actionHermeticity\": \"\",\n      \"actionIsolation\": \"\",\n      \"containerImageSources\": {\n        \"allowedValues\": [],\n        \"policy\": \"\"\n      },\n      \"dockerAddCapabilities\": {},\n      \"dockerChrootPath\": {},\n      \"dockerNetwork\": {},\n      \"dockerPrivileged\": {},\n      \"dockerRunAsContainerProvidedUser\": {},\n      \"dockerRunAsRoot\": {},\n      \"dockerRuntime\": {},\n      \"dockerSiblingContainers\": {},\n      \"linuxExecution\": \"\",\n      \"linuxIsolation\": \"\",\n      \"macExecution\": \"\",\n      \"vmVerification\": \"\",\n      \"windowsExecution\": \"\"\n    },\n    \"location\": \"\",\n    \"loggingEnabled\": false,\n    \"name\": \"\",\n    \"schedulerNotificationConfig\": {\n      \"topic\": \"\"\n    },\n    \"state\": \"\"\n  },\n  \"instanceId\": \"\",\n  \"parent\": \"\"\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/v1alpha/:parent/instances"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"instance\": {\n    \"featurePolicy\": {\n      \"actionHermeticity\": \"\",\n      \"actionIsolation\": \"\",\n      \"containerImageSources\": {\n        \"allowedValues\": [],\n        \"policy\": \"\"\n      },\n      \"dockerAddCapabilities\": {},\n      \"dockerChrootPath\": {},\n      \"dockerNetwork\": {},\n      \"dockerPrivileged\": {},\n      \"dockerRunAsContainerProvidedUser\": {},\n      \"dockerRunAsRoot\": {},\n      \"dockerRuntime\": {},\n      \"dockerSiblingContainers\": {},\n      \"linuxExecution\": \"\",\n      \"linuxIsolation\": \"\",\n      \"macExecution\": \"\",\n      \"vmVerification\": \"\",\n      \"windowsExecution\": \"\"\n    },\n    \"location\": \"\",\n    \"loggingEnabled\": false,\n    \"name\": \"\",\n    \"schedulerNotificationConfig\": {\n      \"topic\": \"\"\n    },\n    \"state\": \"\"\n  },\n  \"instanceId\": \"\",\n  \"parent\": \"\"\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  \"instance\": {\n    \"featurePolicy\": {\n      \"actionHermeticity\": \"\",\n      \"actionIsolation\": \"\",\n      \"containerImageSources\": {\n        \"allowedValues\": [],\n        \"policy\": \"\"\n      },\n      \"dockerAddCapabilities\": {},\n      \"dockerChrootPath\": {},\n      \"dockerNetwork\": {},\n      \"dockerPrivileged\": {},\n      \"dockerRunAsContainerProvidedUser\": {},\n      \"dockerRunAsRoot\": {},\n      \"dockerRuntime\": {},\n      \"dockerSiblingContainers\": {},\n      \"linuxExecution\": \"\",\n      \"linuxIsolation\": \"\",\n      \"macExecution\": \"\",\n      \"vmVerification\": \"\",\n      \"windowsExecution\": \"\"\n    },\n    \"location\": \"\",\n    \"loggingEnabled\": false,\n    \"name\": \"\",\n    \"schedulerNotificationConfig\": {\n      \"topic\": \"\"\n    },\n    \"state\": \"\"\n  },\n  \"instanceId\": \"\",\n  \"parent\": \"\"\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/v1alpha/:parent/instances")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/v1alpha/:parent/instances")
  .header("content-type", "application/json")
  .body("{\n  \"instance\": {\n    \"featurePolicy\": {\n      \"actionHermeticity\": \"\",\n      \"actionIsolation\": \"\",\n      \"containerImageSources\": {\n        \"allowedValues\": [],\n        \"policy\": \"\"\n      },\n      \"dockerAddCapabilities\": {},\n      \"dockerChrootPath\": {},\n      \"dockerNetwork\": {},\n      \"dockerPrivileged\": {},\n      \"dockerRunAsContainerProvidedUser\": {},\n      \"dockerRunAsRoot\": {},\n      \"dockerRuntime\": {},\n      \"dockerSiblingContainers\": {},\n      \"linuxExecution\": \"\",\n      \"linuxIsolation\": \"\",\n      \"macExecution\": \"\",\n      \"vmVerification\": \"\",\n      \"windowsExecution\": \"\"\n    },\n    \"location\": \"\",\n    \"loggingEnabled\": false,\n    \"name\": \"\",\n    \"schedulerNotificationConfig\": {\n      \"topic\": \"\"\n    },\n    \"state\": \"\"\n  },\n  \"instanceId\": \"\",\n  \"parent\": \"\"\n}")
  .asString();
const data = JSON.stringify({
  instance: {
    featurePolicy: {
      actionHermeticity: '',
      actionIsolation: '',
      containerImageSources: {
        allowedValues: [],
        policy: ''
      },
      dockerAddCapabilities: {},
      dockerChrootPath: {},
      dockerNetwork: {},
      dockerPrivileged: {},
      dockerRunAsContainerProvidedUser: {},
      dockerRunAsRoot: {},
      dockerRuntime: {},
      dockerSiblingContainers: {},
      linuxExecution: '',
      linuxIsolation: '',
      macExecution: '',
      vmVerification: '',
      windowsExecution: ''
    },
    location: '',
    loggingEnabled: false,
    name: '',
    schedulerNotificationConfig: {
      topic: ''
    },
    state: ''
  },
  instanceId: '',
  parent: ''
});

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

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

xhr.open('POST', '{{baseUrl}}/v1alpha/:parent/instances');
xhr.setRequestHeader('content-type', 'application/json');

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

const options = {
  method: 'POST',
  url: '{{baseUrl}}/v1alpha/:parent/instances',
  headers: {'content-type': 'application/json'},
  data: {
    instance: {
      featurePolicy: {
        actionHermeticity: '',
        actionIsolation: '',
        containerImageSources: {allowedValues: [], policy: ''},
        dockerAddCapabilities: {},
        dockerChrootPath: {},
        dockerNetwork: {},
        dockerPrivileged: {},
        dockerRunAsContainerProvidedUser: {},
        dockerRunAsRoot: {},
        dockerRuntime: {},
        dockerSiblingContainers: {},
        linuxExecution: '',
        linuxIsolation: '',
        macExecution: '',
        vmVerification: '',
        windowsExecution: ''
      },
      location: '',
      loggingEnabled: false,
      name: '',
      schedulerNotificationConfig: {topic: ''},
      state: ''
    },
    instanceId: '',
    parent: ''
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/v1alpha/:parent/instances';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"instance":{"featurePolicy":{"actionHermeticity":"","actionIsolation":"","containerImageSources":{"allowedValues":[],"policy":""},"dockerAddCapabilities":{},"dockerChrootPath":{},"dockerNetwork":{},"dockerPrivileged":{},"dockerRunAsContainerProvidedUser":{},"dockerRunAsRoot":{},"dockerRuntime":{},"dockerSiblingContainers":{},"linuxExecution":"","linuxIsolation":"","macExecution":"","vmVerification":"","windowsExecution":""},"location":"","loggingEnabled":false,"name":"","schedulerNotificationConfig":{"topic":""},"state":""},"instanceId":"","parent":""}'
};

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}}/v1alpha/:parent/instances',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "instance": {\n    "featurePolicy": {\n      "actionHermeticity": "",\n      "actionIsolation": "",\n      "containerImageSources": {\n        "allowedValues": [],\n        "policy": ""\n      },\n      "dockerAddCapabilities": {},\n      "dockerChrootPath": {},\n      "dockerNetwork": {},\n      "dockerPrivileged": {},\n      "dockerRunAsContainerProvidedUser": {},\n      "dockerRunAsRoot": {},\n      "dockerRuntime": {},\n      "dockerSiblingContainers": {},\n      "linuxExecution": "",\n      "linuxIsolation": "",\n      "macExecution": "",\n      "vmVerification": "",\n      "windowsExecution": ""\n    },\n    "location": "",\n    "loggingEnabled": false,\n    "name": "",\n    "schedulerNotificationConfig": {\n      "topic": ""\n    },\n    "state": ""\n  },\n  "instanceId": "",\n  "parent": ""\n}'
};

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

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"instance\": {\n    \"featurePolicy\": {\n      \"actionHermeticity\": \"\",\n      \"actionIsolation\": \"\",\n      \"containerImageSources\": {\n        \"allowedValues\": [],\n        \"policy\": \"\"\n      },\n      \"dockerAddCapabilities\": {},\n      \"dockerChrootPath\": {},\n      \"dockerNetwork\": {},\n      \"dockerPrivileged\": {},\n      \"dockerRunAsContainerProvidedUser\": {},\n      \"dockerRunAsRoot\": {},\n      \"dockerRuntime\": {},\n      \"dockerSiblingContainers\": {},\n      \"linuxExecution\": \"\",\n      \"linuxIsolation\": \"\",\n      \"macExecution\": \"\",\n      \"vmVerification\": \"\",\n      \"windowsExecution\": \"\"\n    },\n    \"location\": \"\",\n    \"loggingEnabled\": false,\n    \"name\": \"\",\n    \"schedulerNotificationConfig\": {\n      \"topic\": \"\"\n    },\n    \"state\": \"\"\n  },\n  \"instanceId\": \"\",\n  \"parent\": \"\"\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/v1alpha/:parent/instances")
  .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/v1alpha/:parent/instances',
  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({
  instance: {
    featurePolicy: {
      actionHermeticity: '',
      actionIsolation: '',
      containerImageSources: {allowedValues: [], policy: ''},
      dockerAddCapabilities: {},
      dockerChrootPath: {},
      dockerNetwork: {},
      dockerPrivileged: {},
      dockerRunAsContainerProvidedUser: {},
      dockerRunAsRoot: {},
      dockerRuntime: {},
      dockerSiblingContainers: {},
      linuxExecution: '',
      linuxIsolation: '',
      macExecution: '',
      vmVerification: '',
      windowsExecution: ''
    },
    location: '',
    loggingEnabled: false,
    name: '',
    schedulerNotificationConfig: {topic: ''},
    state: ''
  },
  instanceId: '',
  parent: ''
}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/v1alpha/:parent/instances',
  headers: {'content-type': 'application/json'},
  body: {
    instance: {
      featurePolicy: {
        actionHermeticity: '',
        actionIsolation: '',
        containerImageSources: {allowedValues: [], policy: ''},
        dockerAddCapabilities: {},
        dockerChrootPath: {},
        dockerNetwork: {},
        dockerPrivileged: {},
        dockerRunAsContainerProvidedUser: {},
        dockerRunAsRoot: {},
        dockerRuntime: {},
        dockerSiblingContainers: {},
        linuxExecution: '',
        linuxIsolation: '',
        macExecution: '',
        vmVerification: '',
        windowsExecution: ''
      },
      location: '',
      loggingEnabled: false,
      name: '',
      schedulerNotificationConfig: {topic: ''},
      state: ''
    },
    instanceId: '',
    parent: ''
  },
  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}}/v1alpha/:parent/instances');

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

req.type('json');
req.send({
  instance: {
    featurePolicy: {
      actionHermeticity: '',
      actionIsolation: '',
      containerImageSources: {
        allowedValues: [],
        policy: ''
      },
      dockerAddCapabilities: {},
      dockerChrootPath: {},
      dockerNetwork: {},
      dockerPrivileged: {},
      dockerRunAsContainerProvidedUser: {},
      dockerRunAsRoot: {},
      dockerRuntime: {},
      dockerSiblingContainers: {},
      linuxExecution: '',
      linuxIsolation: '',
      macExecution: '',
      vmVerification: '',
      windowsExecution: ''
    },
    location: '',
    loggingEnabled: false,
    name: '',
    schedulerNotificationConfig: {
      topic: ''
    },
    state: ''
  },
  instanceId: '',
  parent: ''
});

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}}/v1alpha/:parent/instances',
  headers: {'content-type': 'application/json'},
  data: {
    instance: {
      featurePolicy: {
        actionHermeticity: '',
        actionIsolation: '',
        containerImageSources: {allowedValues: [], policy: ''},
        dockerAddCapabilities: {},
        dockerChrootPath: {},
        dockerNetwork: {},
        dockerPrivileged: {},
        dockerRunAsContainerProvidedUser: {},
        dockerRunAsRoot: {},
        dockerRuntime: {},
        dockerSiblingContainers: {},
        linuxExecution: '',
        linuxIsolation: '',
        macExecution: '',
        vmVerification: '',
        windowsExecution: ''
      },
      location: '',
      loggingEnabled: false,
      name: '',
      schedulerNotificationConfig: {topic: ''},
      state: ''
    },
    instanceId: '',
    parent: ''
  }
};

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

const url = '{{baseUrl}}/v1alpha/:parent/instances';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"instance":{"featurePolicy":{"actionHermeticity":"","actionIsolation":"","containerImageSources":{"allowedValues":[],"policy":""},"dockerAddCapabilities":{},"dockerChrootPath":{},"dockerNetwork":{},"dockerPrivileged":{},"dockerRunAsContainerProvidedUser":{},"dockerRunAsRoot":{},"dockerRuntime":{},"dockerSiblingContainers":{},"linuxExecution":"","linuxIsolation":"","macExecution":"","vmVerification":"","windowsExecution":""},"location":"","loggingEnabled":false,"name":"","schedulerNotificationConfig":{"topic":""},"state":""},"instanceId":"","parent":""}'
};

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 = @{ @"instance": @{ @"featurePolicy": @{ @"actionHermeticity": @"", @"actionIsolation": @"", @"containerImageSources": @{ @"allowedValues": @[  ], @"policy": @"" }, @"dockerAddCapabilities": @{  }, @"dockerChrootPath": @{  }, @"dockerNetwork": @{  }, @"dockerPrivileged": @{  }, @"dockerRunAsContainerProvidedUser": @{  }, @"dockerRunAsRoot": @{  }, @"dockerRuntime": @{  }, @"dockerSiblingContainers": @{  }, @"linuxExecution": @"", @"linuxIsolation": @"", @"macExecution": @"", @"vmVerification": @"", @"windowsExecution": @"" }, @"location": @"", @"loggingEnabled": @NO, @"name": @"", @"schedulerNotificationConfig": @{ @"topic": @"" }, @"state": @"" },
                              @"instanceId": @"",
                              @"parent": @"" };

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

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/v1alpha/:parent/instances"]
                                                       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}}/v1alpha/:parent/instances" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"instance\": {\n    \"featurePolicy\": {\n      \"actionHermeticity\": \"\",\n      \"actionIsolation\": \"\",\n      \"containerImageSources\": {\n        \"allowedValues\": [],\n        \"policy\": \"\"\n      },\n      \"dockerAddCapabilities\": {},\n      \"dockerChrootPath\": {},\n      \"dockerNetwork\": {},\n      \"dockerPrivileged\": {},\n      \"dockerRunAsContainerProvidedUser\": {},\n      \"dockerRunAsRoot\": {},\n      \"dockerRuntime\": {},\n      \"dockerSiblingContainers\": {},\n      \"linuxExecution\": \"\",\n      \"linuxIsolation\": \"\",\n      \"macExecution\": \"\",\n      \"vmVerification\": \"\",\n      \"windowsExecution\": \"\"\n    },\n    \"location\": \"\",\n    \"loggingEnabled\": false,\n    \"name\": \"\",\n    \"schedulerNotificationConfig\": {\n      \"topic\": \"\"\n    },\n    \"state\": \"\"\n  },\n  \"instanceId\": \"\",\n  \"parent\": \"\"\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/v1alpha/:parent/instances",
  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([
    'instance' => [
        'featurePolicy' => [
                'actionHermeticity' => '',
                'actionIsolation' => '',
                'containerImageSources' => [
                                'allowedValues' => [
                                                                
                                ],
                                'policy' => ''
                ],
                'dockerAddCapabilities' => [
                                
                ],
                'dockerChrootPath' => [
                                
                ],
                'dockerNetwork' => [
                                
                ],
                'dockerPrivileged' => [
                                
                ],
                'dockerRunAsContainerProvidedUser' => [
                                
                ],
                'dockerRunAsRoot' => [
                                
                ],
                'dockerRuntime' => [
                                
                ],
                'dockerSiblingContainers' => [
                                
                ],
                'linuxExecution' => '',
                'linuxIsolation' => '',
                'macExecution' => '',
                'vmVerification' => '',
                'windowsExecution' => ''
        ],
        'location' => '',
        'loggingEnabled' => null,
        'name' => '',
        'schedulerNotificationConfig' => [
                'topic' => ''
        ],
        'state' => ''
    ],
    'instanceId' => '',
    'parent' => ''
  ]),
  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}}/v1alpha/:parent/instances', [
  'body' => '{
  "instance": {
    "featurePolicy": {
      "actionHermeticity": "",
      "actionIsolation": "",
      "containerImageSources": {
        "allowedValues": [],
        "policy": ""
      },
      "dockerAddCapabilities": {},
      "dockerChrootPath": {},
      "dockerNetwork": {},
      "dockerPrivileged": {},
      "dockerRunAsContainerProvidedUser": {},
      "dockerRunAsRoot": {},
      "dockerRuntime": {},
      "dockerSiblingContainers": {},
      "linuxExecution": "",
      "linuxIsolation": "",
      "macExecution": "",
      "vmVerification": "",
      "windowsExecution": ""
    },
    "location": "",
    "loggingEnabled": false,
    "name": "",
    "schedulerNotificationConfig": {
      "topic": ""
    },
    "state": ""
  },
  "instanceId": "",
  "parent": ""
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

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

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

$request->setContentType('application/json');
$request->setBody(json_encode([
  'instance' => [
    'featurePolicy' => [
        'actionHermeticity' => '',
        'actionIsolation' => '',
        'containerImageSources' => [
                'allowedValues' => [
                                
                ],
                'policy' => ''
        ],
        'dockerAddCapabilities' => [
                
        ],
        'dockerChrootPath' => [
                
        ],
        'dockerNetwork' => [
                
        ],
        'dockerPrivileged' => [
                
        ],
        'dockerRunAsContainerProvidedUser' => [
                
        ],
        'dockerRunAsRoot' => [
                
        ],
        'dockerRuntime' => [
                
        ],
        'dockerSiblingContainers' => [
                
        ],
        'linuxExecution' => '',
        'linuxIsolation' => '',
        'macExecution' => '',
        'vmVerification' => '',
        'windowsExecution' => ''
    ],
    'location' => '',
    'loggingEnabled' => null,
    'name' => '',
    'schedulerNotificationConfig' => [
        'topic' => ''
    ],
    'state' => ''
  ],
  'instanceId' => '',
  'parent' => ''
]));

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'instance' => [
    'featurePolicy' => [
        'actionHermeticity' => '',
        'actionIsolation' => '',
        'containerImageSources' => [
                'allowedValues' => [
                                
                ],
                'policy' => ''
        ],
        'dockerAddCapabilities' => [
                
        ],
        'dockerChrootPath' => [
                
        ],
        'dockerNetwork' => [
                
        ],
        'dockerPrivileged' => [
                
        ],
        'dockerRunAsContainerProvidedUser' => [
                
        ],
        'dockerRunAsRoot' => [
                
        ],
        'dockerRuntime' => [
                
        ],
        'dockerSiblingContainers' => [
                
        ],
        'linuxExecution' => '',
        'linuxIsolation' => '',
        'macExecution' => '',
        'vmVerification' => '',
        'windowsExecution' => ''
    ],
    'location' => '',
    'loggingEnabled' => null,
    'name' => '',
    'schedulerNotificationConfig' => [
        'topic' => ''
    ],
    'state' => ''
  ],
  'instanceId' => '',
  'parent' => ''
]));
$request->setRequestUrl('{{baseUrl}}/v1alpha/:parent/instances');
$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}}/v1alpha/:parent/instances' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "instance": {
    "featurePolicy": {
      "actionHermeticity": "",
      "actionIsolation": "",
      "containerImageSources": {
        "allowedValues": [],
        "policy": ""
      },
      "dockerAddCapabilities": {},
      "dockerChrootPath": {},
      "dockerNetwork": {},
      "dockerPrivileged": {},
      "dockerRunAsContainerProvidedUser": {},
      "dockerRunAsRoot": {},
      "dockerRuntime": {},
      "dockerSiblingContainers": {},
      "linuxExecution": "",
      "linuxIsolation": "",
      "macExecution": "",
      "vmVerification": "",
      "windowsExecution": ""
    },
    "location": "",
    "loggingEnabled": false,
    "name": "",
    "schedulerNotificationConfig": {
      "topic": ""
    },
    "state": ""
  },
  "instanceId": "",
  "parent": ""
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/v1alpha/:parent/instances' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "instance": {
    "featurePolicy": {
      "actionHermeticity": "",
      "actionIsolation": "",
      "containerImageSources": {
        "allowedValues": [],
        "policy": ""
      },
      "dockerAddCapabilities": {},
      "dockerChrootPath": {},
      "dockerNetwork": {},
      "dockerPrivileged": {},
      "dockerRunAsContainerProvidedUser": {},
      "dockerRunAsRoot": {},
      "dockerRuntime": {},
      "dockerSiblingContainers": {},
      "linuxExecution": "",
      "linuxIsolation": "",
      "macExecution": "",
      "vmVerification": "",
      "windowsExecution": ""
    },
    "location": "",
    "loggingEnabled": false,
    "name": "",
    "schedulerNotificationConfig": {
      "topic": ""
    },
    "state": ""
  },
  "instanceId": "",
  "parent": ""
}'
import http.client

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

payload = "{\n  \"instance\": {\n    \"featurePolicy\": {\n      \"actionHermeticity\": \"\",\n      \"actionIsolation\": \"\",\n      \"containerImageSources\": {\n        \"allowedValues\": [],\n        \"policy\": \"\"\n      },\n      \"dockerAddCapabilities\": {},\n      \"dockerChrootPath\": {},\n      \"dockerNetwork\": {},\n      \"dockerPrivileged\": {},\n      \"dockerRunAsContainerProvidedUser\": {},\n      \"dockerRunAsRoot\": {},\n      \"dockerRuntime\": {},\n      \"dockerSiblingContainers\": {},\n      \"linuxExecution\": \"\",\n      \"linuxIsolation\": \"\",\n      \"macExecution\": \"\",\n      \"vmVerification\": \"\",\n      \"windowsExecution\": \"\"\n    },\n    \"location\": \"\",\n    \"loggingEnabled\": false,\n    \"name\": \"\",\n    \"schedulerNotificationConfig\": {\n      \"topic\": \"\"\n    },\n    \"state\": \"\"\n  },\n  \"instanceId\": \"\",\n  \"parent\": \"\"\n}"

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

conn.request("POST", "/baseUrl/v1alpha/:parent/instances", payload, headers)

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

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

url = "{{baseUrl}}/v1alpha/:parent/instances"

payload = {
    "instance": {
        "featurePolicy": {
            "actionHermeticity": "",
            "actionIsolation": "",
            "containerImageSources": {
                "allowedValues": [],
                "policy": ""
            },
            "dockerAddCapabilities": {},
            "dockerChrootPath": {},
            "dockerNetwork": {},
            "dockerPrivileged": {},
            "dockerRunAsContainerProvidedUser": {},
            "dockerRunAsRoot": {},
            "dockerRuntime": {},
            "dockerSiblingContainers": {},
            "linuxExecution": "",
            "linuxIsolation": "",
            "macExecution": "",
            "vmVerification": "",
            "windowsExecution": ""
        },
        "location": "",
        "loggingEnabled": False,
        "name": "",
        "schedulerNotificationConfig": { "topic": "" },
        "state": ""
    },
    "instanceId": "",
    "parent": ""
}
headers = {"content-type": "application/json"}

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

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

url <- "{{baseUrl}}/v1alpha/:parent/instances"

payload <- "{\n  \"instance\": {\n    \"featurePolicy\": {\n      \"actionHermeticity\": \"\",\n      \"actionIsolation\": \"\",\n      \"containerImageSources\": {\n        \"allowedValues\": [],\n        \"policy\": \"\"\n      },\n      \"dockerAddCapabilities\": {},\n      \"dockerChrootPath\": {},\n      \"dockerNetwork\": {},\n      \"dockerPrivileged\": {},\n      \"dockerRunAsContainerProvidedUser\": {},\n      \"dockerRunAsRoot\": {},\n      \"dockerRuntime\": {},\n      \"dockerSiblingContainers\": {},\n      \"linuxExecution\": \"\",\n      \"linuxIsolation\": \"\",\n      \"macExecution\": \"\",\n      \"vmVerification\": \"\",\n      \"windowsExecution\": \"\"\n    },\n    \"location\": \"\",\n    \"loggingEnabled\": false,\n    \"name\": \"\",\n    \"schedulerNotificationConfig\": {\n      \"topic\": \"\"\n    },\n    \"state\": \"\"\n  },\n  \"instanceId\": \"\",\n  \"parent\": \"\"\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}}/v1alpha/:parent/instances")

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  \"instance\": {\n    \"featurePolicy\": {\n      \"actionHermeticity\": \"\",\n      \"actionIsolation\": \"\",\n      \"containerImageSources\": {\n        \"allowedValues\": [],\n        \"policy\": \"\"\n      },\n      \"dockerAddCapabilities\": {},\n      \"dockerChrootPath\": {},\n      \"dockerNetwork\": {},\n      \"dockerPrivileged\": {},\n      \"dockerRunAsContainerProvidedUser\": {},\n      \"dockerRunAsRoot\": {},\n      \"dockerRuntime\": {},\n      \"dockerSiblingContainers\": {},\n      \"linuxExecution\": \"\",\n      \"linuxIsolation\": \"\",\n      \"macExecution\": \"\",\n      \"vmVerification\": \"\",\n      \"windowsExecution\": \"\"\n    },\n    \"location\": \"\",\n    \"loggingEnabled\": false,\n    \"name\": \"\",\n    \"schedulerNotificationConfig\": {\n      \"topic\": \"\"\n    },\n    \"state\": \"\"\n  },\n  \"instanceId\": \"\",\n  \"parent\": \"\"\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/v1alpha/:parent/instances') do |req|
  req.body = "{\n  \"instance\": {\n    \"featurePolicy\": {\n      \"actionHermeticity\": \"\",\n      \"actionIsolation\": \"\",\n      \"containerImageSources\": {\n        \"allowedValues\": [],\n        \"policy\": \"\"\n      },\n      \"dockerAddCapabilities\": {},\n      \"dockerChrootPath\": {},\n      \"dockerNetwork\": {},\n      \"dockerPrivileged\": {},\n      \"dockerRunAsContainerProvidedUser\": {},\n      \"dockerRunAsRoot\": {},\n      \"dockerRuntime\": {},\n      \"dockerSiblingContainers\": {},\n      \"linuxExecution\": \"\",\n      \"linuxIsolation\": \"\",\n      \"macExecution\": \"\",\n      \"vmVerification\": \"\",\n      \"windowsExecution\": \"\"\n    },\n    \"location\": \"\",\n    \"loggingEnabled\": false,\n    \"name\": \"\",\n    \"schedulerNotificationConfig\": {\n      \"topic\": \"\"\n    },\n    \"state\": \"\"\n  },\n  \"instanceId\": \"\",\n  \"parent\": \"\"\n}"
end

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

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

    let payload = json!({
        "instance": json!({
            "featurePolicy": json!({
                "actionHermeticity": "",
                "actionIsolation": "",
                "containerImageSources": json!({
                    "allowedValues": (),
                    "policy": ""
                }),
                "dockerAddCapabilities": json!({}),
                "dockerChrootPath": json!({}),
                "dockerNetwork": json!({}),
                "dockerPrivileged": json!({}),
                "dockerRunAsContainerProvidedUser": json!({}),
                "dockerRunAsRoot": json!({}),
                "dockerRuntime": json!({}),
                "dockerSiblingContainers": json!({}),
                "linuxExecution": "",
                "linuxIsolation": "",
                "macExecution": "",
                "vmVerification": "",
                "windowsExecution": ""
            }),
            "location": "",
            "loggingEnabled": false,
            "name": "",
            "schedulerNotificationConfig": json!({"topic": ""}),
            "state": ""
        }),
        "instanceId": "",
        "parent": ""
    });

    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}}/v1alpha/:parent/instances \
  --header 'content-type: application/json' \
  --data '{
  "instance": {
    "featurePolicy": {
      "actionHermeticity": "",
      "actionIsolation": "",
      "containerImageSources": {
        "allowedValues": [],
        "policy": ""
      },
      "dockerAddCapabilities": {},
      "dockerChrootPath": {},
      "dockerNetwork": {},
      "dockerPrivileged": {},
      "dockerRunAsContainerProvidedUser": {},
      "dockerRunAsRoot": {},
      "dockerRuntime": {},
      "dockerSiblingContainers": {},
      "linuxExecution": "",
      "linuxIsolation": "",
      "macExecution": "",
      "vmVerification": "",
      "windowsExecution": ""
    },
    "location": "",
    "loggingEnabled": false,
    "name": "",
    "schedulerNotificationConfig": {
      "topic": ""
    },
    "state": ""
  },
  "instanceId": "",
  "parent": ""
}'
echo '{
  "instance": {
    "featurePolicy": {
      "actionHermeticity": "",
      "actionIsolation": "",
      "containerImageSources": {
        "allowedValues": [],
        "policy": ""
      },
      "dockerAddCapabilities": {},
      "dockerChrootPath": {},
      "dockerNetwork": {},
      "dockerPrivileged": {},
      "dockerRunAsContainerProvidedUser": {},
      "dockerRunAsRoot": {},
      "dockerRuntime": {},
      "dockerSiblingContainers": {},
      "linuxExecution": "",
      "linuxIsolation": "",
      "macExecution": "",
      "vmVerification": "",
      "windowsExecution": ""
    },
    "location": "",
    "loggingEnabled": false,
    "name": "",
    "schedulerNotificationConfig": {
      "topic": ""
    },
    "state": ""
  },
  "instanceId": "",
  "parent": ""
}' |  \
  http POST {{baseUrl}}/v1alpha/:parent/instances \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "instance": {\n    "featurePolicy": {\n      "actionHermeticity": "",\n      "actionIsolation": "",\n      "containerImageSources": {\n        "allowedValues": [],\n        "policy": ""\n      },\n      "dockerAddCapabilities": {},\n      "dockerChrootPath": {},\n      "dockerNetwork": {},\n      "dockerPrivileged": {},\n      "dockerRunAsContainerProvidedUser": {},\n      "dockerRunAsRoot": {},\n      "dockerRuntime": {},\n      "dockerSiblingContainers": {},\n      "linuxExecution": "",\n      "linuxIsolation": "",\n      "macExecution": "",\n      "vmVerification": "",\n      "windowsExecution": ""\n    },\n    "location": "",\n    "loggingEnabled": false,\n    "name": "",\n    "schedulerNotificationConfig": {\n      "topic": ""\n    },\n    "state": ""\n  },\n  "instanceId": "",\n  "parent": ""\n}' \
  --output-document \
  - {{baseUrl}}/v1alpha/:parent/instances
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "instance": [
    "featurePolicy": [
      "actionHermeticity": "",
      "actionIsolation": "",
      "containerImageSources": [
        "allowedValues": [],
        "policy": ""
      ],
      "dockerAddCapabilities": [],
      "dockerChrootPath": [],
      "dockerNetwork": [],
      "dockerPrivileged": [],
      "dockerRunAsContainerProvidedUser": [],
      "dockerRunAsRoot": [],
      "dockerRuntime": [],
      "dockerSiblingContainers": [],
      "linuxExecution": "",
      "linuxIsolation": "",
      "macExecution": "",
      "vmVerification": "",
      "windowsExecution": ""
    ],
    "location": "",
    "loggingEnabled": false,
    "name": "",
    "schedulerNotificationConfig": ["topic": ""],
    "state": ""
  ],
  "instanceId": "",
  "parent": ""
] as [String : Any]

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

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

parent
Examples
REQUEST

CURL *hnd = curl_easy_init();

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

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

(client/get "{{baseUrl}}/v1alpha/:parent/instances")
require "http/client"

url = "{{baseUrl}}/v1alpha/:parent/instances"

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

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

func main() {

	url := "{{baseUrl}}/v1alpha/:parent/instances"

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

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

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

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

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

const options = {method: 'GET', url: '{{baseUrl}}/v1alpha/:parent/instances'};

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

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

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

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

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

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

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

const req = unirest('GET', '{{baseUrl}}/v1alpha/:parent/instances');

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

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

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

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

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

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

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

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

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

conn.request("GET", "/baseUrl/v1alpha/:parent/instances")

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

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

url = "{{baseUrl}}/v1alpha/:parent/instances"

response = requests.get(url)

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

url <- "{{baseUrl}}/v1alpha/:parent/instances"

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

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

url = URI("{{baseUrl}}/v1alpha/:parent/instances")

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

puts response.status
puts response.body
use reqwest;

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

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

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/v1alpha/:parent/instances")! 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 remotebuildexecution.projects.instances.testNotify
{{baseUrl}}/v1alpha/:name:testNotify
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}}/v1alpha/:name:testNotify");

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}}/v1alpha/:name:testNotify" {:content-type :json})
require "http/client"

url = "{{baseUrl}}/v1alpha/:name:testNotify"
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}}/v1alpha/:name:testNotify"),
    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}}/v1alpha/:name:testNotify");
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}}/v1alpha/:name:testNotify"

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

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

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/v1alpha/:name:testNotify"))
    .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}}/v1alpha/:name:testNotify")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/v1alpha/:name:testNotify")
  .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}}/v1alpha/:name:testNotify');
xhr.setRequestHeader('content-type', 'application/json');

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

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

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

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}}/v1alpha/:name:testNotify',
  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}}/v1alpha/:name:testNotify';
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}}/v1alpha/:name:testNotify"]
                                                       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}}/v1alpha/:name:testNotify" 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}}/v1alpha/:name:testNotify",
  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}}/v1alpha/:name:testNotify', [
  'body' => '{}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/v1alpha/:name:testNotify');
$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}}/v1alpha/:name:testNotify');
$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}}/v1alpha/:name:testNotify' -Method POST -Headers $headers -ContentType 'application/json' -Body '{}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/v1alpha/:name:testNotify' -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/v1alpha/:name:testNotify", payload, headers)

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

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

url = "{{baseUrl}}/v1alpha/:name:testNotify"

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

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

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

url <- "{{baseUrl}}/v1alpha/:name:testNotify"

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}}/v1alpha/:name:testNotify")

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/v1alpha/:name:testNotify') 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}}/v1alpha/:name:testNotify";

    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}}/v1alpha/:name:testNotify \
  --header 'content-type: application/json' \
  --data '{}'
echo '{}' |  \
  http POST {{baseUrl}}/v1alpha/:name:testNotify \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{}' \
  --output-document \
  - {{baseUrl}}/v1alpha/:name:testNotify
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}}/v1alpha/:name:testNotify")! 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 remotebuildexecution.projects.instances.workerpools.create
{{baseUrl}}/v1alpha/:parent/workerpools
QUERY PARAMS

parent
BODY json

{
  "parent": "",
  "poolId": "",
  "workerPool": {
    "autoscale": {
      "maxSize": "",
      "minSize": ""
    },
    "channel": "",
    "hostOs": "",
    "name": "",
    "state": "",
    "workerConfig": {
      "accelerator": {
        "acceleratorCount": "",
        "acceleratorType": ""
      },
      "diskSizeGb": "",
      "diskType": "",
      "labels": {},
      "machineType": "",
      "maxConcurrentActions": "",
      "minCpuPlatform": "",
      "networkAccess": "",
      "reserved": false,
      "soleTenantNodeType": "",
      "vmImage": ""
    },
    "workerCount": ""
  }
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

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

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  \"parent\": \"\",\n  \"poolId\": \"\",\n  \"workerPool\": {\n    \"autoscale\": {\n      \"maxSize\": \"\",\n      \"minSize\": \"\"\n    },\n    \"channel\": \"\",\n    \"hostOs\": \"\",\n    \"name\": \"\",\n    \"state\": \"\",\n    \"workerConfig\": {\n      \"accelerator\": {\n        \"acceleratorCount\": \"\",\n        \"acceleratorType\": \"\"\n      },\n      \"diskSizeGb\": \"\",\n      \"diskType\": \"\",\n      \"labels\": {},\n      \"machineType\": \"\",\n      \"maxConcurrentActions\": \"\",\n      \"minCpuPlatform\": \"\",\n      \"networkAccess\": \"\",\n      \"reserved\": false,\n      \"soleTenantNodeType\": \"\",\n      \"vmImage\": \"\"\n    },\n    \"workerCount\": \"\"\n  }\n}");

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

(client/post "{{baseUrl}}/v1alpha/:parent/workerpools" {:content-type :json
                                                                        :form-params {:parent ""
                                                                                      :poolId ""
                                                                                      :workerPool {:autoscale {:maxSize ""
                                                                                                               :minSize ""}
                                                                                                   :channel ""
                                                                                                   :hostOs ""
                                                                                                   :name ""
                                                                                                   :state ""
                                                                                                   :workerConfig {:accelerator {:acceleratorCount ""
                                                                                                                                :acceleratorType ""}
                                                                                                                  :diskSizeGb ""
                                                                                                                  :diskType ""
                                                                                                                  :labels {}
                                                                                                                  :machineType ""
                                                                                                                  :maxConcurrentActions ""
                                                                                                                  :minCpuPlatform ""
                                                                                                                  :networkAccess ""
                                                                                                                  :reserved false
                                                                                                                  :soleTenantNodeType ""
                                                                                                                  :vmImage ""}
                                                                                                   :workerCount ""}}})
require "http/client"

url = "{{baseUrl}}/v1alpha/:parent/workerpools"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"parent\": \"\",\n  \"poolId\": \"\",\n  \"workerPool\": {\n    \"autoscale\": {\n      \"maxSize\": \"\",\n      \"minSize\": \"\"\n    },\n    \"channel\": \"\",\n    \"hostOs\": \"\",\n    \"name\": \"\",\n    \"state\": \"\",\n    \"workerConfig\": {\n      \"accelerator\": {\n        \"acceleratorCount\": \"\",\n        \"acceleratorType\": \"\"\n      },\n      \"diskSizeGb\": \"\",\n      \"diskType\": \"\",\n      \"labels\": {},\n      \"machineType\": \"\",\n      \"maxConcurrentActions\": \"\",\n      \"minCpuPlatform\": \"\",\n      \"networkAccess\": \"\",\n      \"reserved\": false,\n      \"soleTenantNodeType\": \"\",\n      \"vmImage\": \"\"\n    },\n    \"workerCount\": \"\"\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}}/v1alpha/:parent/workerpools"),
    Content = new StringContent("{\n  \"parent\": \"\",\n  \"poolId\": \"\",\n  \"workerPool\": {\n    \"autoscale\": {\n      \"maxSize\": \"\",\n      \"minSize\": \"\"\n    },\n    \"channel\": \"\",\n    \"hostOs\": \"\",\n    \"name\": \"\",\n    \"state\": \"\",\n    \"workerConfig\": {\n      \"accelerator\": {\n        \"acceleratorCount\": \"\",\n        \"acceleratorType\": \"\"\n      },\n      \"diskSizeGb\": \"\",\n      \"diskType\": \"\",\n      \"labels\": {},\n      \"machineType\": \"\",\n      \"maxConcurrentActions\": \"\",\n      \"minCpuPlatform\": \"\",\n      \"networkAccess\": \"\",\n      \"reserved\": false,\n      \"soleTenantNodeType\": \"\",\n      \"vmImage\": \"\"\n    },\n    \"workerCount\": \"\"\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}}/v1alpha/:parent/workerpools");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"parent\": \"\",\n  \"poolId\": \"\",\n  \"workerPool\": {\n    \"autoscale\": {\n      \"maxSize\": \"\",\n      \"minSize\": \"\"\n    },\n    \"channel\": \"\",\n    \"hostOs\": \"\",\n    \"name\": \"\",\n    \"state\": \"\",\n    \"workerConfig\": {\n      \"accelerator\": {\n        \"acceleratorCount\": \"\",\n        \"acceleratorType\": \"\"\n      },\n      \"diskSizeGb\": \"\",\n      \"diskType\": \"\",\n      \"labels\": {},\n      \"machineType\": \"\",\n      \"maxConcurrentActions\": \"\",\n      \"minCpuPlatform\": \"\",\n      \"networkAccess\": \"\",\n      \"reserved\": false,\n      \"soleTenantNodeType\": \"\",\n      \"vmImage\": \"\"\n    },\n    \"workerCount\": \"\"\n  }\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

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

func main() {

	url := "{{baseUrl}}/v1alpha/:parent/workerpools"

	payload := strings.NewReader("{\n  \"parent\": \"\",\n  \"poolId\": \"\",\n  \"workerPool\": {\n    \"autoscale\": {\n      \"maxSize\": \"\",\n      \"minSize\": \"\"\n    },\n    \"channel\": \"\",\n    \"hostOs\": \"\",\n    \"name\": \"\",\n    \"state\": \"\",\n    \"workerConfig\": {\n      \"accelerator\": {\n        \"acceleratorCount\": \"\",\n        \"acceleratorType\": \"\"\n      },\n      \"diskSizeGb\": \"\",\n      \"diskType\": \"\",\n      \"labels\": {},\n      \"machineType\": \"\",\n      \"maxConcurrentActions\": \"\",\n      \"minCpuPlatform\": \"\",\n      \"networkAccess\": \"\",\n      \"reserved\": false,\n      \"soleTenantNodeType\": \"\",\n      \"vmImage\": \"\"\n    },\n    \"workerCount\": \"\"\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/v1alpha/:parent/workerpools HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 596

{
  "parent": "",
  "poolId": "",
  "workerPool": {
    "autoscale": {
      "maxSize": "",
      "minSize": ""
    },
    "channel": "",
    "hostOs": "",
    "name": "",
    "state": "",
    "workerConfig": {
      "accelerator": {
        "acceleratorCount": "",
        "acceleratorType": ""
      },
      "diskSizeGb": "",
      "diskType": "",
      "labels": {},
      "machineType": "",
      "maxConcurrentActions": "",
      "minCpuPlatform": "",
      "networkAccess": "",
      "reserved": false,
      "soleTenantNodeType": "",
      "vmImage": ""
    },
    "workerCount": ""
  }
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/v1alpha/:parent/workerpools")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"parent\": \"\",\n  \"poolId\": \"\",\n  \"workerPool\": {\n    \"autoscale\": {\n      \"maxSize\": \"\",\n      \"minSize\": \"\"\n    },\n    \"channel\": \"\",\n    \"hostOs\": \"\",\n    \"name\": \"\",\n    \"state\": \"\",\n    \"workerConfig\": {\n      \"accelerator\": {\n        \"acceleratorCount\": \"\",\n        \"acceleratorType\": \"\"\n      },\n      \"diskSizeGb\": \"\",\n      \"diskType\": \"\",\n      \"labels\": {},\n      \"machineType\": \"\",\n      \"maxConcurrentActions\": \"\",\n      \"minCpuPlatform\": \"\",\n      \"networkAccess\": \"\",\n      \"reserved\": false,\n      \"soleTenantNodeType\": \"\",\n      \"vmImage\": \"\"\n    },\n    \"workerCount\": \"\"\n  }\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/v1alpha/:parent/workerpools"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"parent\": \"\",\n  \"poolId\": \"\",\n  \"workerPool\": {\n    \"autoscale\": {\n      \"maxSize\": \"\",\n      \"minSize\": \"\"\n    },\n    \"channel\": \"\",\n    \"hostOs\": \"\",\n    \"name\": \"\",\n    \"state\": \"\",\n    \"workerConfig\": {\n      \"accelerator\": {\n        \"acceleratorCount\": \"\",\n        \"acceleratorType\": \"\"\n      },\n      \"diskSizeGb\": \"\",\n      \"diskType\": \"\",\n      \"labels\": {},\n      \"machineType\": \"\",\n      \"maxConcurrentActions\": \"\",\n      \"minCpuPlatform\": \"\",\n      \"networkAccess\": \"\",\n      \"reserved\": false,\n      \"soleTenantNodeType\": \"\",\n      \"vmImage\": \"\"\n    },\n    \"workerCount\": \"\"\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  \"parent\": \"\",\n  \"poolId\": \"\",\n  \"workerPool\": {\n    \"autoscale\": {\n      \"maxSize\": \"\",\n      \"minSize\": \"\"\n    },\n    \"channel\": \"\",\n    \"hostOs\": \"\",\n    \"name\": \"\",\n    \"state\": \"\",\n    \"workerConfig\": {\n      \"accelerator\": {\n        \"acceleratorCount\": \"\",\n        \"acceleratorType\": \"\"\n      },\n      \"diskSizeGb\": \"\",\n      \"diskType\": \"\",\n      \"labels\": {},\n      \"machineType\": \"\",\n      \"maxConcurrentActions\": \"\",\n      \"minCpuPlatform\": \"\",\n      \"networkAccess\": \"\",\n      \"reserved\": false,\n      \"soleTenantNodeType\": \"\",\n      \"vmImage\": \"\"\n    },\n    \"workerCount\": \"\"\n  }\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/v1alpha/:parent/workerpools")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/v1alpha/:parent/workerpools")
  .header("content-type", "application/json")
  .body("{\n  \"parent\": \"\",\n  \"poolId\": \"\",\n  \"workerPool\": {\n    \"autoscale\": {\n      \"maxSize\": \"\",\n      \"minSize\": \"\"\n    },\n    \"channel\": \"\",\n    \"hostOs\": \"\",\n    \"name\": \"\",\n    \"state\": \"\",\n    \"workerConfig\": {\n      \"accelerator\": {\n        \"acceleratorCount\": \"\",\n        \"acceleratorType\": \"\"\n      },\n      \"diskSizeGb\": \"\",\n      \"diskType\": \"\",\n      \"labels\": {},\n      \"machineType\": \"\",\n      \"maxConcurrentActions\": \"\",\n      \"minCpuPlatform\": \"\",\n      \"networkAccess\": \"\",\n      \"reserved\": false,\n      \"soleTenantNodeType\": \"\",\n      \"vmImage\": \"\"\n    },\n    \"workerCount\": \"\"\n  }\n}")
  .asString();
const data = JSON.stringify({
  parent: '',
  poolId: '',
  workerPool: {
    autoscale: {
      maxSize: '',
      minSize: ''
    },
    channel: '',
    hostOs: '',
    name: '',
    state: '',
    workerConfig: {
      accelerator: {
        acceleratorCount: '',
        acceleratorType: ''
      },
      diskSizeGb: '',
      diskType: '',
      labels: {},
      machineType: '',
      maxConcurrentActions: '',
      minCpuPlatform: '',
      networkAccess: '',
      reserved: false,
      soleTenantNodeType: '',
      vmImage: ''
    },
    workerCount: ''
  }
});

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

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

xhr.open('POST', '{{baseUrl}}/v1alpha/:parent/workerpools');
xhr.setRequestHeader('content-type', 'application/json');

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

const options = {
  method: 'POST',
  url: '{{baseUrl}}/v1alpha/:parent/workerpools',
  headers: {'content-type': 'application/json'},
  data: {
    parent: '',
    poolId: '',
    workerPool: {
      autoscale: {maxSize: '', minSize: ''},
      channel: '',
      hostOs: '',
      name: '',
      state: '',
      workerConfig: {
        accelerator: {acceleratorCount: '', acceleratorType: ''},
        diskSizeGb: '',
        diskType: '',
        labels: {},
        machineType: '',
        maxConcurrentActions: '',
        minCpuPlatform: '',
        networkAccess: '',
        reserved: false,
        soleTenantNodeType: '',
        vmImage: ''
      },
      workerCount: ''
    }
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/v1alpha/:parent/workerpools';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"parent":"","poolId":"","workerPool":{"autoscale":{"maxSize":"","minSize":""},"channel":"","hostOs":"","name":"","state":"","workerConfig":{"accelerator":{"acceleratorCount":"","acceleratorType":""},"diskSizeGb":"","diskType":"","labels":{},"machineType":"","maxConcurrentActions":"","minCpuPlatform":"","networkAccess":"","reserved":false,"soleTenantNodeType":"","vmImage":""},"workerCount":""}}'
};

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}}/v1alpha/:parent/workerpools',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "parent": "",\n  "poolId": "",\n  "workerPool": {\n    "autoscale": {\n      "maxSize": "",\n      "minSize": ""\n    },\n    "channel": "",\n    "hostOs": "",\n    "name": "",\n    "state": "",\n    "workerConfig": {\n      "accelerator": {\n        "acceleratorCount": "",\n        "acceleratorType": ""\n      },\n      "diskSizeGb": "",\n      "diskType": "",\n      "labels": {},\n      "machineType": "",\n      "maxConcurrentActions": "",\n      "minCpuPlatform": "",\n      "networkAccess": "",\n      "reserved": false,\n      "soleTenantNodeType": "",\n      "vmImage": ""\n    },\n    "workerCount": ""\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  \"parent\": \"\",\n  \"poolId\": \"\",\n  \"workerPool\": {\n    \"autoscale\": {\n      \"maxSize\": \"\",\n      \"minSize\": \"\"\n    },\n    \"channel\": \"\",\n    \"hostOs\": \"\",\n    \"name\": \"\",\n    \"state\": \"\",\n    \"workerConfig\": {\n      \"accelerator\": {\n        \"acceleratorCount\": \"\",\n        \"acceleratorType\": \"\"\n      },\n      \"diskSizeGb\": \"\",\n      \"diskType\": \"\",\n      \"labels\": {},\n      \"machineType\": \"\",\n      \"maxConcurrentActions\": \"\",\n      \"minCpuPlatform\": \"\",\n      \"networkAccess\": \"\",\n      \"reserved\": false,\n      \"soleTenantNodeType\": \"\",\n      \"vmImage\": \"\"\n    },\n    \"workerCount\": \"\"\n  }\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/v1alpha/:parent/workerpools")
  .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/v1alpha/:parent/workerpools',
  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({
  parent: '',
  poolId: '',
  workerPool: {
    autoscale: {maxSize: '', minSize: ''},
    channel: '',
    hostOs: '',
    name: '',
    state: '',
    workerConfig: {
      accelerator: {acceleratorCount: '', acceleratorType: ''},
      diskSizeGb: '',
      diskType: '',
      labels: {},
      machineType: '',
      maxConcurrentActions: '',
      minCpuPlatform: '',
      networkAccess: '',
      reserved: false,
      soleTenantNodeType: '',
      vmImage: ''
    },
    workerCount: ''
  }
}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/v1alpha/:parent/workerpools',
  headers: {'content-type': 'application/json'},
  body: {
    parent: '',
    poolId: '',
    workerPool: {
      autoscale: {maxSize: '', minSize: ''},
      channel: '',
      hostOs: '',
      name: '',
      state: '',
      workerConfig: {
        accelerator: {acceleratorCount: '', acceleratorType: ''},
        diskSizeGb: '',
        diskType: '',
        labels: {},
        machineType: '',
        maxConcurrentActions: '',
        minCpuPlatform: '',
        networkAccess: '',
        reserved: false,
        soleTenantNodeType: '',
        vmImage: ''
      },
      workerCount: ''
    }
  },
  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}}/v1alpha/:parent/workerpools');

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

req.type('json');
req.send({
  parent: '',
  poolId: '',
  workerPool: {
    autoscale: {
      maxSize: '',
      minSize: ''
    },
    channel: '',
    hostOs: '',
    name: '',
    state: '',
    workerConfig: {
      accelerator: {
        acceleratorCount: '',
        acceleratorType: ''
      },
      diskSizeGb: '',
      diskType: '',
      labels: {},
      machineType: '',
      maxConcurrentActions: '',
      minCpuPlatform: '',
      networkAccess: '',
      reserved: false,
      soleTenantNodeType: '',
      vmImage: ''
    },
    workerCount: ''
  }
});

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}}/v1alpha/:parent/workerpools',
  headers: {'content-type': 'application/json'},
  data: {
    parent: '',
    poolId: '',
    workerPool: {
      autoscale: {maxSize: '', minSize: ''},
      channel: '',
      hostOs: '',
      name: '',
      state: '',
      workerConfig: {
        accelerator: {acceleratorCount: '', acceleratorType: ''},
        diskSizeGb: '',
        diskType: '',
        labels: {},
        machineType: '',
        maxConcurrentActions: '',
        minCpuPlatform: '',
        networkAccess: '',
        reserved: false,
        soleTenantNodeType: '',
        vmImage: ''
      },
      workerCount: ''
    }
  }
};

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

const url = '{{baseUrl}}/v1alpha/:parent/workerpools';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"parent":"","poolId":"","workerPool":{"autoscale":{"maxSize":"","minSize":""},"channel":"","hostOs":"","name":"","state":"","workerConfig":{"accelerator":{"acceleratorCount":"","acceleratorType":""},"diskSizeGb":"","diskType":"","labels":{},"machineType":"","maxConcurrentActions":"","minCpuPlatform":"","networkAccess":"","reserved":false,"soleTenantNodeType":"","vmImage":""},"workerCount":""}}'
};

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 = @{ @"parent": @"",
                              @"poolId": @"",
                              @"workerPool": @{ @"autoscale": @{ @"maxSize": @"", @"minSize": @"" }, @"channel": @"", @"hostOs": @"", @"name": @"", @"state": @"", @"workerConfig": @{ @"accelerator": @{ @"acceleratorCount": @"", @"acceleratorType": @"" }, @"diskSizeGb": @"", @"diskType": @"", @"labels": @{  }, @"machineType": @"", @"maxConcurrentActions": @"", @"minCpuPlatform": @"", @"networkAccess": @"", @"reserved": @NO, @"soleTenantNodeType": @"", @"vmImage": @"" }, @"workerCount": @"" } };

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

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/v1alpha/:parent/workerpools"]
                                                       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}}/v1alpha/:parent/workerpools" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"parent\": \"\",\n  \"poolId\": \"\",\n  \"workerPool\": {\n    \"autoscale\": {\n      \"maxSize\": \"\",\n      \"minSize\": \"\"\n    },\n    \"channel\": \"\",\n    \"hostOs\": \"\",\n    \"name\": \"\",\n    \"state\": \"\",\n    \"workerConfig\": {\n      \"accelerator\": {\n        \"acceleratorCount\": \"\",\n        \"acceleratorType\": \"\"\n      },\n      \"diskSizeGb\": \"\",\n      \"diskType\": \"\",\n      \"labels\": {},\n      \"machineType\": \"\",\n      \"maxConcurrentActions\": \"\",\n      \"minCpuPlatform\": \"\",\n      \"networkAccess\": \"\",\n      \"reserved\": false,\n      \"soleTenantNodeType\": \"\",\n      \"vmImage\": \"\"\n    },\n    \"workerCount\": \"\"\n  }\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/v1alpha/:parent/workerpools",
  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([
    'parent' => '',
    'poolId' => '',
    'workerPool' => [
        'autoscale' => [
                'maxSize' => '',
                'minSize' => ''
        ],
        'channel' => '',
        'hostOs' => '',
        'name' => '',
        'state' => '',
        'workerConfig' => [
                'accelerator' => [
                                'acceleratorCount' => '',
                                'acceleratorType' => ''
                ],
                'diskSizeGb' => '',
                'diskType' => '',
                'labels' => [
                                
                ],
                'machineType' => '',
                'maxConcurrentActions' => '',
                'minCpuPlatform' => '',
                'networkAccess' => '',
                'reserved' => null,
                'soleTenantNodeType' => '',
                'vmImage' => ''
        ],
        'workerCount' => ''
    ]
  ]),
  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}}/v1alpha/:parent/workerpools', [
  'body' => '{
  "parent": "",
  "poolId": "",
  "workerPool": {
    "autoscale": {
      "maxSize": "",
      "minSize": ""
    },
    "channel": "",
    "hostOs": "",
    "name": "",
    "state": "",
    "workerConfig": {
      "accelerator": {
        "acceleratorCount": "",
        "acceleratorType": ""
      },
      "diskSizeGb": "",
      "diskType": "",
      "labels": {},
      "machineType": "",
      "maxConcurrentActions": "",
      "minCpuPlatform": "",
      "networkAccess": "",
      "reserved": false,
      "soleTenantNodeType": "",
      "vmImage": ""
    },
    "workerCount": ""
  }
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

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

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

$request->setContentType('application/json');
$request->setBody(json_encode([
  'parent' => '',
  'poolId' => '',
  'workerPool' => [
    'autoscale' => [
        'maxSize' => '',
        'minSize' => ''
    ],
    'channel' => '',
    'hostOs' => '',
    'name' => '',
    'state' => '',
    'workerConfig' => [
        'accelerator' => [
                'acceleratorCount' => '',
                'acceleratorType' => ''
        ],
        'diskSizeGb' => '',
        'diskType' => '',
        'labels' => [
                
        ],
        'machineType' => '',
        'maxConcurrentActions' => '',
        'minCpuPlatform' => '',
        'networkAccess' => '',
        'reserved' => null,
        'soleTenantNodeType' => '',
        'vmImage' => ''
    ],
    'workerCount' => ''
  ]
]));

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'parent' => '',
  'poolId' => '',
  'workerPool' => [
    'autoscale' => [
        'maxSize' => '',
        'minSize' => ''
    ],
    'channel' => '',
    'hostOs' => '',
    'name' => '',
    'state' => '',
    'workerConfig' => [
        'accelerator' => [
                'acceleratorCount' => '',
                'acceleratorType' => ''
        ],
        'diskSizeGb' => '',
        'diskType' => '',
        'labels' => [
                
        ],
        'machineType' => '',
        'maxConcurrentActions' => '',
        'minCpuPlatform' => '',
        'networkAccess' => '',
        'reserved' => null,
        'soleTenantNodeType' => '',
        'vmImage' => ''
    ],
    'workerCount' => ''
  ]
]));
$request->setRequestUrl('{{baseUrl}}/v1alpha/:parent/workerpools');
$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}}/v1alpha/:parent/workerpools' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "parent": "",
  "poolId": "",
  "workerPool": {
    "autoscale": {
      "maxSize": "",
      "minSize": ""
    },
    "channel": "",
    "hostOs": "",
    "name": "",
    "state": "",
    "workerConfig": {
      "accelerator": {
        "acceleratorCount": "",
        "acceleratorType": ""
      },
      "diskSizeGb": "",
      "diskType": "",
      "labels": {},
      "machineType": "",
      "maxConcurrentActions": "",
      "minCpuPlatform": "",
      "networkAccess": "",
      "reserved": false,
      "soleTenantNodeType": "",
      "vmImage": ""
    },
    "workerCount": ""
  }
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/v1alpha/:parent/workerpools' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "parent": "",
  "poolId": "",
  "workerPool": {
    "autoscale": {
      "maxSize": "",
      "minSize": ""
    },
    "channel": "",
    "hostOs": "",
    "name": "",
    "state": "",
    "workerConfig": {
      "accelerator": {
        "acceleratorCount": "",
        "acceleratorType": ""
      },
      "diskSizeGb": "",
      "diskType": "",
      "labels": {},
      "machineType": "",
      "maxConcurrentActions": "",
      "minCpuPlatform": "",
      "networkAccess": "",
      "reserved": false,
      "soleTenantNodeType": "",
      "vmImage": ""
    },
    "workerCount": ""
  }
}'
import http.client

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

payload = "{\n  \"parent\": \"\",\n  \"poolId\": \"\",\n  \"workerPool\": {\n    \"autoscale\": {\n      \"maxSize\": \"\",\n      \"minSize\": \"\"\n    },\n    \"channel\": \"\",\n    \"hostOs\": \"\",\n    \"name\": \"\",\n    \"state\": \"\",\n    \"workerConfig\": {\n      \"accelerator\": {\n        \"acceleratorCount\": \"\",\n        \"acceleratorType\": \"\"\n      },\n      \"diskSizeGb\": \"\",\n      \"diskType\": \"\",\n      \"labels\": {},\n      \"machineType\": \"\",\n      \"maxConcurrentActions\": \"\",\n      \"minCpuPlatform\": \"\",\n      \"networkAccess\": \"\",\n      \"reserved\": false,\n      \"soleTenantNodeType\": \"\",\n      \"vmImage\": \"\"\n    },\n    \"workerCount\": \"\"\n  }\n}"

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

conn.request("POST", "/baseUrl/v1alpha/:parent/workerpools", payload, headers)

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

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

url = "{{baseUrl}}/v1alpha/:parent/workerpools"

payload = {
    "parent": "",
    "poolId": "",
    "workerPool": {
        "autoscale": {
            "maxSize": "",
            "minSize": ""
        },
        "channel": "",
        "hostOs": "",
        "name": "",
        "state": "",
        "workerConfig": {
            "accelerator": {
                "acceleratorCount": "",
                "acceleratorType": ""
            },
            "diskSizeGb": "",
            "diskType": "",
            "labels": {},
            "machineType": "",
            "maxConcurrentActions": "",
            "minCpuPlatform": "",
            "networkAccess": "",
            "reserved": False,
            "soleTenantNodeType": "",
            "vmImage": ""
        },
        "workerCount": ""
    }
}
headers = {"content-type": "application/json"}

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

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

url <- "{{baseUrl}}/v1alpha/:parent/workerpools"

payload <- "{\n  \"parent\": \"\",\n  \"poolId\": \"\",\n  \"workerPool\": {\n    \"autoscale\": {\n      \"maxSize\": \"\",\n      \"minSize\": \"\"\n    },\n    \"channel\": \"\",\n    \"hostOs\": \"\",\n    \"name\": \"\",\n    \"state\": \"\",\n    \"workerConfig\": {\n      \"accelerator\": {\n        \"acceleratorCount\": \"\",\n        \"acceleratorType\": \"\"\n      },\n      \"diskSizeGb\": \"\",\n      \"diskType\": \"\",\n      \"labels\": {},\n      \"machineType\": \"\",\n      \"maxConcurrentActions\": \"\",\n      \"minCpuPlatform\": \"\",\n      \"networkAccess\": \"\",\n      \"reserved\": false,\n      \"soleTenantNodeType\": \"\",\n      \"vmImage\": \"\"\n    },\n    \"workerCount\": \"\"\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}}/v1alpha/:parent/workerpools")

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  \"parent\": \"\",\n  \"poolId\": \"\",\n  \"workerPool\": {\n    \"autoscale\": {\n      \"maxSize\": \"\",\n      \"minSize\": \"\"\n    },\n    \"channel\": \"\",\n    \"hostOs\": \"\",\n    \"name\": \"\",\n    \"state\": \"\",\n    \"workerConfig\": {\n      \"accelerator\": {\n        \"acceleratorCount\": \"\",\n        \"acceleratorType\": \"\"\n      },\n      \"diskSizeGb\": \"\",\n      \"diskType\": \"\",\n      \"labels\": {},\n      \"machineType\": \"\",\n      \"maxConcurrentActions\": \"\",\n      \"minCpuPlatform\": \"\",\n      \"networkAccess\": \"\",\n      \"reserved\": false,\n      \"soleTenantNodeType\": \"\",\n      \"vmImage\": \"\"\n    },\n    \"workerCount\": \"\"\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/v1alpha/:parent/workerpools') do |req|
  req.body = "{\n  \"parent\": \"\",\n  \"poolId\": \"\",\n  \"workerPool\": {\n    \"autoscale\": {\n      \"maxSize\": \"\",\n      \"minSize\": \"\"\n    },\n    \"channel\": \"\",\n    \"hostOs\": \"\",\n    \"name\": \"\",\n    \"state\": \"\",\n    \"workerConfig\": {\n      \"accelerator\": {\n        \"acceleratorCount\": \"\",\n        \"acceleratorType\": \"\"\n      },\n      \"diskSizeGb\": \"\",\n      \"diskType\": \"\",\n      \"labels\": {},\n      \"machineType\": \"\",\n      \"maxConcurrentActions\": \"\",\n      \"minCpuPlatform\": \"\",\n      \"networkAccess\": \"\",\n      \"reserved\": false,\n      \"soleTenantNodeType\": \"\",\n      \"vmImage\": \"\"\n    },\n    \"workerCount\": \"\"\n  }\n}"
end

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

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

    let payload = json!({
        "parent": "",
        "poolId": "",
        "workerPool": json!({
            "autoscale": json!({
                "maxSize": "",
                "minSize": ""
            }),
            "channel": "",
            "hostOs": "",
            "name": "",
            "state": "",
            "workerConfig": json!({
                "accelerator": json!({
                    "acceleratorCount": "",
                    "acceleratorType": ""
                }),
                "diskSizeGb": "",
                "diskType": "",
                "labels": json!({}),
                "machineType": "",
                "maxConcurrentActions": "",
                "minCpuPlatform": "",
                "networkAccess": "",
                "reserved": false,
                "soleTenantNodeType": "",
                "vmImage": ""
            }),
            "workerCount": ""
        })
    });

    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}}/v1alpha/:parent/workerpools \
  --header 'content-type: application/json' \
  --data '{
  "parent": "",
  "poolId": "",
  "workerPool": {
    "autoscale": {
      "maxSize": "",
      "minSize": ""
    },
    "channel": "",
    "hostOs": "",
    "name": "",
    "state": "",
    "workerConfig": {
      "accelerator": {
        "acceleratorCount": "",
        "acceleratorType": ""
      },
      "diskSizeGb": "",
      "diskType": "",
      "labels": {},
      "machineType": "",
      "maxConcurrentActions": "",
      "minCpuPlatform": "",
      "networkAccess": "",
      "reserved": false,
      "soleTenantNodeType": "",
      "vmImage": ""
    },
    "workerCount": ""
  }
}'
echo '{
  "parent": "",
  "poolId": "",
  "workerPool": {
    "autoscale": {
      "maxSize": "",
      "minSize": ""
    },
    "channel": "",
    "hostOs": "",
    "name": "",
    "state": "",
    "workerConfig": {
      "accelerator": {
        "acceleratorCount": "",
        "acceleratorType": ""
      },
      "diskSizeGb": "",
      "diskType": "",
      "labels": {},
      "machineType": "",
      "maxConcurrentActions": "",
      "minCpuPlatform": "",
      "networkAccess": "",
      "reserved": false,
      "soleTenantNodeType": "",
      "vmImage": ""
    },
    "workerCount": ""
  }
}' |  \
  http POST {{baseUrl}}/v1alpha/:parent/workerpools \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "parent": "",\n  "poolId": "",\n  "workerPool": {\n    "autoscale": {\n      "maxSize": "",\n      "minSize": ""\n    },\n    "channel": "",\n    "hostOs": "",\n    "name": "",\n    "state": "",\n    "workerConfig": {\n      "accelerator": {\n        "acceleratorCount": "",\n        "acceleratorType": ""\n      },\n      "diskSizeGb": "",\n      "diskType": "",\n      "labels": {},\n      "machineType": "",\n      "maxConcurrentActions": "",\n      "minCpuPlatform": "",\n      "networkAccess": "",\n      "reserved": false,\n      "soleTenantNodeType": "",\n      "vmImage": ""\n    },\n    "workerCount": ""\n  }\n}' \
  --output-document \
  - {{baseUrl}}/v1alpha/:parent/workerpools
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "parent": "",
  "poolId": "",
  "workerPool": [
    "autoscale": [
      "maxSize": "",
      "minSize": ""
    ],
    "channel": "",
    "hostOs": "",
    "name": "",
    "state": "",
    "workerConfig": [
      "accelerator": [
        "acceleratorCount": "",
        "acceleratorType": ""
      ],
      "diskSizeGb": "",
      "diskType": "",
      "labels": [],
      "machineType": "",
      "maxConcurrentActions": "",
      "minCpuPlatform": "",
      "networkAccess": "",
      "reserved": false,
      "soleTenantNodeType": "",
      "vmImage": ""
    ],
    "workerCount": ""
  ]
] as [String : Any]

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

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/v1alpha/:parent/workerpools")! 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 remotebuildexecution.projects.instances.workerpools.delete
{{baseUrl}}/v1alpha/: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}}/v1alpha/:name");

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

(client/delete "{{baseUrl}}/v1alpha/:name")
require "http/client"

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

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

func main() {

	url := "{{baseUrl}}/v1alpha/: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/v1alpha/:name HTTP/1.1
Host: example.com

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

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

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

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

const options = {method: 'DELETE', url: '{{baseUrl}}/v1alpha/:name'};

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

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

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

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

const url = '{{baseUrl}}/v1alpha/: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}}/v1alpha/: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}}/v1alpha/:name" in

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

echo $response->getBody();
setUrl('{{baseUrl}}/v1alpha/:name');
$request->setMethod(HTTP_METH_DELETE);

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

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

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

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

conn.request("DELETE", "/baseUrl/v1alpha/:name")

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

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

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

response = requests.delete(url)

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

url <- "{{baseUrl}}/v1alpha/:name"

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

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

url = URI("{{baseUrl}}/v1alpha/: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/v1alpha/: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}}/v1alpha/: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}}/v1alpha/:name
http DELETE {{baseUrl}}/v1alpha/:name
wget --quiet \
  --method DELETE \
  --output-document \
  - {{baseUrl}}/v1alpha/:name
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/v1alpha/: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 remotebuildexecution.projects.instances.workerpools.list
{{baseUrl}}/v1alpha/:parent/workerpools
QUERY PARAMS

parent
Examples
REQUEST

CURL *hnd = curl_easy_init();

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

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

(client/get "{{baseUrl}}/v1alpha/:parent/workerpools")
require "http/client"

url = "{{baseUrl}}/v1alpha/:parent/workerpools"

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

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

func main() {

	url := "{{baseUrl}}/v1alpha/:parent/workerpools"

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

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

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

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

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

const options = {method: 'GET', url: '{{baseUrl}}/v1alpha/:parent/workerpools'};

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

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

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

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

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

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

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

const req = unirest('GET', '{{baseUrl}}/v1alpha/:parent/workerpools');

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

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

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

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

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

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

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

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

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

conn.request("GET", "/baseUrl/v1alpha/:parent/workerpools")

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

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

url = "{{baseUrl}}/v1alpha/:parent/workerpools"

response = requests.get(url)

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

url <- "{{baseUrl}}/v1alpha/:parent/workerpools"

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

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

url = URI("{{baseUrl}}/v1alpha/:parent/workerpools")

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

puts response.status
puts response.body
use reqwest;

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

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

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/v1alpha/:parent/workerpools")! 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()
PATCH remotebuildexecution.projects.instances.workerpools.patch
{{baseUrl}}/v1alpha/:name
QUERY PARAMS

name
BODY json

{
  "updateMask": "",
  "workerPool": {
    "autoscale": {
      "maxSize": "",
      "minSize": ""
    },
    "channel": "",
    "hostOs": "",
    "name": "",
    "state": "",
    "workerConfig": {
      "accelerator": {
        "acceleratorCount": "",
        "acceleratorType": ""
      },
      "diskSizeGb": "",
      "diskType": "",
      "labels": {},
      "machineType": "",
      "maxConcurrentActions": "",
      "minCpuPlatform": "",
      "networkAccess": "",
      "reserved": false,
      "soleTenantNodeType": "",
      "vmImage": ""
    },
    "workerCount": ""
  }
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "PATCH");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/v1alpha/: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  \"updateMask\": \"\",\n  \"workerPool\": {\n    \"autoscale\": {\n      \"maxSize\": \"\",\n      \"minSize\": \"\"\n    },\n    \"channel\": \"\",\n    \"hostOs\": \"\",\n    \"name\": \"\",\n    \"state\": \"\",\n    \"workerConfig\": {\n      \"accelerator\": {\n        \"acceleratorCount\": \"\",\n        \"acceleratorType\": \"\"\n      },\n      \"diskSizeGb\": \"\",\n      \"diskType\": \"\",\n      \"labels\": {},\n      \"machineType\": \"\",\n      \"maxConcurrentActions\": \"\",\n      \"minCpuPlatform\": \"\",\n      \"networkAccess\": \"\",\n      \"reserved\": false,\n      \"soleTenantNodeType\": \"\",\n      \"vmImage\": \"\"\n    },\n    \"workerCount\": \"\"\n  }\n}");

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

(client/patch "{{baseUrl}}/v1alpha/:name" {:content-type :json
                                                           :form-params {:updateMask ""
                                                                         :workerPool {:autoscale {:maxSize ""
                                                                                                  :minSize ""}
                                                                                      :channel ""
                                                                                      :hostOs ""
                                                                                      :name ""
                                                                                      :state ""
                                                                                      :workerConfig {:accelerator {:acceleratorCount ""
                                                                                                                   :acceleratorType ""}
                                                                                                     :diskSizeGb ""
                                                                                                     :diskType ""
                                                                                                     :labels {}
                                                                                                     :machineType ""
                                                                                                     :maxConcurrentActions ""
                                                                                                     :minCpuPlatform ""
                                                                                                     :networkAccess ""
                                                                                                     :reserved false
                                                                                                     :soleTenantNodeType ""
                                                                                                     :vmImage ""}
                                                                                      :workerCount ""}}})
require "http/client"

url = "{{baseUrl}}/v1alpha/:name"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"updateMask\": \"\",\n  \"workerPool\": {\n    \"autoscale\": {\n      \"maxSize\": \"\",\n      \"minSize\": \"\"\n    },\n    \"channel\": \"\",\n    \"hostOs\": \"\",\n    \"name\": \"\",\n    \"state\": \"\",\n    \"workerConfig\": {\n      \"accelerator\": {\n        \"acceleratorCount\": \"\",\n        \"acceleratorType\": \"\"\n      },\n      \"diskSizeGb\": \"\",\n      \"diskType\": \"\",\n      \"labels\": {},\n      \"machineType\": \"\",\n      \"maxConcurrentActions\": \"\",\n      \"minCpuPlatform\": \"\",\n      \"networkAccess\": \"\",\n      \"reserved\": false,\n      \"soleTenantNodeType\": \"\",\n      \"vmImage\": \"\"\n    },\n    \"workerCount\": \"\"\n  }\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}}/v1alpha/:name"),
    Content = new StringContent("{\n  \"updateMask\": \"\",\n  \"workerPool\": {\n    \"autoscale\": {\n      \"maxSize\": \"\",\n      \"minSize\": \"\"\n    },\n    \"channel\": \"\",\n    \"hostOs\": \"\",\n    \"name\": \"\",\n    \"state\": \"\",\n    \"workerConfig\": {\n      \"accelerator\": {\n        \"acceleratorCount\": \"\",\n        \"acceleratorType\": \"\"\n      },\n      \"diskSizeGb\": \"\",\n      \"diskType\": \"\",\n      \"labels\": {},\n      \"machineType\": \"\",\n      \"maxConcurrentActions\": \"\",\n      \"minCpuPlatform\": \"\",\n      \"networkAccess\": \"\",\n      \"reserved\": false,\n      \"soleTenantNodeType\": \"\",\n      \"vmImage\": \"\"\n    },\n    \"workerCount\": \"\"\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}}/v1alpha/:name");
var request = new RestRequest("", Method.Patch);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"updateMask\": \"\",\n  \"workerPool\": {\n    \"autoscale\": {\n      \"maxSize\": \"\",\n      \"minSize\": \"\"\n    },\n    \"channel\": \"\",\n    \"hostOs\": \"\",\n    \"name\": \"\",\n    \"state\": \"\",\n    \"workerConfig\": {\n      \"accelerator\": {\n        \"acceleratorCount\": \"\",\n        \"acceleratorType\": \"\"\n      },\n      \"diskSizeGb\": \"\",\n      \"diskType\": \"\",\n      \"labels\": {},\n      \"machineType\": \"\",\n      \"maxConcurrentActions\": \"\",\n      \"minCpuPlatform\": \"\",\n      \"networkAccess\": \"\",\n      \"reserved\": false,\n      \"soleTenantNodeType\": \"\",\n      \"vmImage\": \"\"\n    },\n    \"workerCount\": \"\"\n  }\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

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

func main() {

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

	payload := strings.NewReader("{\n  \"updateMask\": \"\",\n  \"workerPool\": {\n    \"autoscale\": {\n      \"maxSize\": \"\",\n      \"minSize\": \"\"\n    },\n    \"channel\": \"\",\n    \"hostOs\": \"\",\n    \"name\": \"\",\n    \"state\": \"\",\n    \"workerConfig\": {\n      \"accelerator\": {\n        \"acceleratorCount\": \"\",\n        \"acceleratorType\": \"\"\n      },\n      \"diskSizeGb\": \"\",\n      \"diskType\": \"\",\n      \"labels\": {},\n      \"machineType\": \"\",\n      \"maxConcurrentActions\": \"\",\n      \"minCpuPlatform\": \"\",\n      \"networkAccess\": \"\",\n      \"reserved\": false,\n      \"soleTenantNodeType\": \"\",\n      \"vmImage\": \"\"\n    },\n    \"workerCount\": \"\"\n  }\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/v1alpha/:name HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 584

{
  "updateMask": "",
  "workerPool": {
    "autoscale": {
      "maxSize": "",
      "minSize": ""
    },
    "channel": "",
    "hostOs": "",
    "name": "",
    "state": "",
    "workerConfig": {
      "accelerator": {
        "acceleratorCount": "",
        "acceleratorType": ""
      },
      "diskSizeGb": "",
      "diskType": "",
      "labels": {},
      "machineType": "",
      "maxConcurrentActions": "",
      "minCpuPlatform": "",
      "networkAccess": "",
      "reserved": false,
      "soleTenantNodeType": "",
      "vmImage": ""
    },
    "workerCount": ""
  }
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("PATCH", "{{baseUrl}}/v1alpha/:name")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"updateMask\": \"\",\n  \"workerPool\": {\n    \"autoscale\": {\n      \"maxSize\": \"\",\n      \"minSize\": \"\"\n    },\n    \"channel\": \"\",\n    \"hostOs\": \"\",\n    \"name\": \"\",\n    \"state\": \"\",\n    \"workerConfig\": {\n      \"accelerator\": {\n        \"acceleratorCount\": \"\",\n        \"acceleratorType\": \"\"\n      },\n      \"diskSizeGb\": \"\",\n      \"diskType\": \"\",\n      \"labels\": {},\n      \"machineType\": \"\",\n      \"maxConcurrentActions\": \"\",\n      \"minCpuPlatform\": \"\",\n      \"networkAccess\": \"\",\n      \"reserved\": false,\n      \"soleTenantNodeType\": \"\",\n      \"vmImage\": \"\"\n    },\n    \"workerCount\": \"\"\n  }\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/v1alpha/:name"))
    .header("content-type", "application/json")
    .method("PATCH", HttpRequest.BodyPublishers.ofString("{\n  \"updateMask\": \"\",\n  \"workerPool\": {\n    \"autoscale\": {\n      \"maxSize\": \"\",\n      \"minSize\": \"\"\n    },\n    \"channel\": \"\",\n    \"hostOs\": \"\",\n    \"name\": \"\",\n    \"state\": \"\",\n    \"workerConfig\": {\n      \"accelerator\": {\n        \"acceleratorCount\": \"\",\n        \"acceleratorType\": \"\"\n      },\n      \"diskSizeGb\": \"\",\n      \"diskType\": \"\",\n      \"labels\": {},\n      \"machineType\": \"\",\n      \"maxConcurrentActions\": \"\",\n      \"minCpuPlatform\": \"\",\n      \"networkAccess\": \"\",\n      \"reserved\": false,\n      \"soleTenantNodeType\": \"\",\n      \"vmImage\": \"\"\n    },\n    \"workerCount\": \"\"\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  \"updateMask\": \"\",\n  \"workerPool\": {\n    \"autoscale\": {\n      \"maxSize\": \"\",\n      \"minSize\": \"\"\n    },\n    \"channel\": \"\",\n    \"hostOs\": \"\",\n    \"name\": \"\",\n    \"state\": \"\",\n    \"workerConfig\": {\n      \"accelerator\": {\n        \"acceleratorCount\": \"\",\n        \"acceleratorType\": \"\"\n      },\n      \"diskSizeGb\": \"\",\n      \"diskType\": \"\",\n      \"labels\": {},\n      \"machineType\": \"\",\n      \"maxConcurrentActions\": \"\",\n      \"minCpuPlatform\": \"\",\n      \"networkAccess\": \"\",\n      \"reserved\": false,\n      \"soleTenantNodeType\": \"\",\n      \"vmImage\": \"\"\n    },\n    \"workerCount\": \"\"\n  }\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/v1alpha/:name")
  .patch(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.patch("{{baseUrl}}/v1alpha/:name")
  .header("content-type", "application/json")
  .body("{\n  \"updateMask\": \"\",\n  \"workerPool\": {\n    \"autoscale\": {\n      \"maxSize\": \"\",\n      \"minSize\": \"\"\n    },\n    \"channel\": \"\",\n    \"hostOs\": \"\",\n    \"name\": \"\",\n    \"state\": \"\",\n    \"workerConfig\": {\n      \"accelerator\": {\n        \"acceleratorCount\": \"\",\n        \"acceleratorType\": \"\"\n      },\n      \"diskSizeGb\": \"\",\n      \"diskType\": \"\",\n      \"labels\": {},\n      \"machineType\": \"\",\n      \"maxConcurrentActions\": \"\",\n      \"minCpuPlatform\": \"\",\n      \"networkAccess\": \"\",\n      \"reserved\": false,\n      \"soleTenantNodeType\": \"\",\n      \"vmImage\": \"\"\n    },\n    \"workerCount\": \"\"\n  }\n}")
  .asString();
const data = JSON.stringify({
  updateMask: '',
  workerPool: {
    autoscale: {
      maxSize: '',
      minSize: ''
    },
    channel: '',
    hostOs: '',
    name: '',
    state: '',
    workerConfig: {
      accelerator: {
        acceleratorCount: '',
        acceleratorType: ''
      },
      diskSizeGb: '',
      diskType: '',
      labels: {},
      machineType: '',
      maxConcurrentActions: '',
      minCpuPlatform: '',
      networkAccess: '',
      reserved: false,
      soleTenantNodeType: '',
      vmImage: ''
    },
    workerCount: ''
  }
});

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

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

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

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

const options = {
  method: 'PATCH',
  url: '{{baseUrl}}/v1alpha/:name',
  headers: {'content-type': 'application/json'},
  data: {
    updateMask: '',
    workerPool: {
      autoscale: {maxSize: '', minSize: ''},
      channel: '',
      hostOs: '',
      name: '',
      state: '',
      workerConfig: {
        accelerator: {acceleratorCount: '', acceleratorType: ''},
        diskSizeGb: '',
        diskType: '',
        labels: {},
        machineType: '',
        maxConcurrentActions: '',
        minCpuPlatform: '',
        networkAccess: '',
        reserved: false,
        soleTenantNodeType: '',
        vmImage: ''
      },
      workerCount: ''
    }
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/v1alpha/:name';
const options = {
  method: 'PATCH',
  headers: {'content-type': 'application/json'},
  body: '{"updateMask":"","workerPool":{"autoscale":{"maxSize":"","minSize":""},"channel":"","hostOs":"","name":"","state":"","workerConfig":{"accelerator":{"acceleratorCount":"","acceleratorType":""},"diskSizeGb":"","diskType":"","labels":{},"machineType":"","maxConcurrentActions":"","minCpuPlatform":"","networkAccess":"","reserved":false,"soleTenantNodeType":"","vmImage":""},"workerCount":""}}'
};

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}}/v1alpha/:name',
  method: 'PATCH',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "updateMask": "",\n  "workerPool": {\n    "autoscale": {\n      "maxSize": "",\n      "minSize": ""\n    },\n    "channel": "",\n    "hostOs": "",\n    "name": "",\n    "state": "",\n    "workerConfig": {\n      "accelerator": {\n        "acceleratorCount": "",\n        "acceleratorType": ""\n      },\n      "diskSizeGb": "",\n      "diskType": "",\n      "labels": {},\n      "machineType": "",\n      "maxConcurrentActions": "",\n      "minCpuPlatform": "",\n      "networkAccess": "",\n      "reserved": false,\n      "soleTenantNodeType": "",\n      "vmImage": ""\n    },\n    "workerCount": ""\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  \"updateMask\": \"\",\n  \"workerPool\": {\n    \"autoscale\": {\n      \"maxSize\": \"\",\n      \"minSize\": \"\"\n    },\n    \"channel\": \"\",\n    \"hostOs\": \"\",\n    \"name\": \"\",\n    \"state\": \"\",\n    \"workerConfig\": {\n      \"accelerator\": {\n        \"acceleratorCount\": \"\",\n        \"acceleratorType\": \"\"\n      },\n      \"diskSizeGb\": \"\",\n      \"diskType\": \"\",\n      \"labels\": {},\n      \"machineType\": \"\",\n      \"maxConcurrentActions\": \"\",\n      \"minCpuPlatform\": \"\",\n      \"networkAccess\": \"\",\n      \"reserved\": false,\n      \"soleTenantNodeType\": \"\",\n      \"vmImage\": \"\"\n    },\n    \"workerCount\": \"\"\n  }\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/v1alpha/: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/v1alpha/: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({
  updateMask: '',
  workerPool: {
    autoscale: {maxSize: '', minSize: ''},
    channel: '',
    hostOs: '',
    name: '',
    state: '',
    workerConfig: {
      accelerator: {acceleratorCount: '', acceleratorType: ''},
      diskSizeGb: '',
      diskType: '',
      labels: {},
      machineType: '',
      maxConcurrentActions: '',
      minCpuPlatform: '',
      networkAccess: '',
      reserved: false,
      soleTenantNodeType: '',
      vmImage: ''
    },
    workerCount: ''
  }
}));
req.end();
const request = require('request');

const options = {
  method: 'PATCH',
  url: '{{baseUrl}}/v1alpha/:name',
  headers: {'content-type': 'application/json'},
  body: {
    updateMask: '',
    workerPool: {
      autoscale: {maxSize: '', minSize: ''},
      channel: '',
      hostOs: '',
      name: '',
      state: '',
      workerConfig: {
        accelerator: {acceleratorCount: '', acceleratorType: ''},
        diskSizeGb: '',
        diskType: '',
        labels: {},
        machineType: '',
        maxConcurrentActions: '',
        minCpuPlatform: '',
        networkAccess: '',
        reserved: false,
        soleTenantNodeType: '',
        vmImage: ''
      },
      workerCount: ''
    }
  },
  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}}/v1alpha/:name');

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

req.type('json');
req.send({
  updateMask: '',
  workerPool: {
    autoscale: {
      maxSize: '',
      minSize: ''
    },
    channel: '',
    hostOs: '',
    name: '',
    state: '',
    workerConfig: {
      accelerator: {
        acceleratorCount: '',
        acceleratorType: ''
      },
      diskSizeGb: '',
      diskType: '',
      labels: {},
      machineType: '',
      maxConcurrentActions: '',
      minCpuPlatform: '',
      networkAccess: '',
      reserved: false,
      soleTenantNodeType: '',
      vmImage: ''
    },
    workerCount: ''
  }
});

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}}/v1alpha/:name',
  headers: {'content-type': 'application/json'},
  data: {
    updateMask: '',
    workerPool: {
      autoscale: {maxSize: '', minSize: ''},
      channel: '',
      hostOs: '',
      name: '',
      state: '',
      workerConfig: {
        accelerator: {acceleratorCount: '', acceleratorType: ''},
        diskSizeGb: '',
        diskType: '',
        labels: {},
        machineType: '',
        maxConcurrentActions: '',
        minCpuPlatform: '',
        networkAccess: '',
        reserved: false,
        soleTenantNodeType: '',
        vmImage: ''
      },
      workerCount: ''
    }
  }
};

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

const url = '{{baseUrl}}/v1alpha/:name';
const options = {
  method: 'PATCH',
  headers: {'content-type': 'application/json'},
  body: '{"updateMask":"","workerPool":{"autoscale":{"maxSize":"","minSize":""},"channel":"","hostOs":"","name":"","state":"","workerConfig":{"accelerator":{"acceleratorCount":"","acceleratorType":""},"diskSizeGb":"","diskType":"","labels":{},"machineType":"","maxConcurrentActions":"","minCpuPlatform":"","networkAccess":"","reserved":false,"soleTenantNodeType":"","vmImage":""},"workerCount":""}}'
};

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 = @{ @"updateMask": @"",
                              @"workerPool": @{ @"autoscale": @{ @"maxSize": @"", @"minSize": @"" }, @"channel": @"", @"hostOs": @"", @"name": @"", @"state": @"", @"workerConfig": @{ @"accelerator": @{ @"acceleratorCount": @"", @"acceleratorType": @"" }, @"diskSizeGb": @"", @"diskType": @"", @"labels": @{  }, @"machineType": @"", @"maxConcurrentActions": @"", @"minCpuPlatform": @"", @"networkAccess": @"", @"reserved": @NO, @"soleTenantNodeType": @"", @"vmImage": @"" }, @"workerCount": @"" } };

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

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/v1alpha/: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}}/v1alpha/:name" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"updateMask\": \"\",\n  \"workerPool\": {\n    \"autoscale\": {\n      \"maxSize\": \"\",\n      \"minSize\": \"\"\n    },\n    \"channel\": \"\",\n    \"hostOs\": \"\",\n    \"name\": \"\",\n    \"state\": \"\",\n    \"workerConfig\": {\n      \"accelerator\": {\n        \"acceleratorCount\": \"\",\n        \"acceleratorType\": \"\"\n      },\n      \"diskSizeGb\": \"\",\n      \"diskType\": \"\",\n      \"labels\": {},\n      \"machineType\": \"\",\n      \"maxConcurrentActions\": \"\",\n      \"minCpuPlatform\": \"\",\n      \"networkAccess\": \"\",\n      \"reserved\": false,\n      \"soleTenantNodeType\": \"\",\n      \"vmImage\": \"\"\n    },\n    \"workerCount\": \"\"\n  }\n}" in

Client.call ~headers ~body `PATCH uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/v1alpha/: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([
    'updateMask' => '',
    'workerPool' => [
        'autoscale' => [
                'maxSize' => '',
                'minSize' => ''
        ],
        'channel' => '',
        'hostOs' => '',
        'name' => '',
        'state' => '',
        'workerConfig' => [
                'accelerator' => [
                                'acceleratorCount' => '',
                                'acceleratorType' => ''
                ],
                'diskSizeGb' => '',
                'diskType' => '',
                'labels' => [
                                
                ],
                'machineType' => '',
                'maxConcurrentActions' => '',
                'minCpuPlatform' => '',
                'networkAccess' => '',
                'reserved' => null,
                'soleTenantNodeType' => '',
                'vmImage' => ''
        ],
        'workerCount' => ''
    ]
  ]),
  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}}/v1alpha/:name', [
  'body' => '{
  "updateMask": "",
  "workerPool": {
    "autoscale": {
      "maxSize": "",
      "minSize": ""
    },
    "channel": "",
    "hostOs": "",
    "name": "",
    "state": "",
    "workerConfig": {
      "accelerator": {
        "acceleratorCount": "",
        "acceleratorType": ""
      },
      "diskSizeGb": "",
      "diskType": "",
      "labels": {},
      "machineType": "",
      "maxConcurrentActions": "",
      "minCpuPlatform": "",
      "networkAccess": "",
      "reserved": false,
      "soleTenantNodeType": "",
      "vmImage": ""
    },
    "workerCount": ""
  }
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

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

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

$request->setContentType('application/json');
$request->setBody(json_encode([
  'updateMask' => '',
  'workerPool' => [
    'autoscale' => [
        'maxSize' => '',
        'minSize' => ''
    ],
    'channel' => '',
    'hostOs' => '',
    'name' => '',
    'state' => '',
    'workerConfig' => [
        'accelerator' => [
                'acceleratorCount' => '',
                'acceleratorType' => ''
        ],
        'diskSizeGb' => '',
        'diskType' => '',
        'labels' => [
                
        ],
        'machineType' => '',
        'maxConcurrentActions' => '',
        'minCpuPlatform' => '',
        'networkAccess' => '',
        'reserved' => null,
        'soleTenantNodeType' => '',
        'vmImage' => ''
    ],
    'workerCount' => ''
  ]
]));

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'updateMask' => '',
  'workerPool' => [
    'autoscale' => [
        'maxSize' => '',
        'minSize' => ''
    ],
    'channel' => '',
    'hostOs' => '',
    'name' => '',
    'state' => '',
    'workerConfig' => [
        'accelerator' => [
                'acceleratorCount' => '',
                'acceleratorType' => ''
        ],
        'diskSizeGb' => '',
        'diskType' => '',
        'labels' => [
                
        ],
        'machineType' => '',
        'maxConcurrentActions' => '',
        'minCpuPlatform' => '',
        'networkAccess' => '',
        'reserved' => null,
        'soleTenantNodeType' => '',
        'vmImage' => ''
    ],
    'workerCount' => ''
  ]
]));
$request->setRequestUrl('{{baseUrl}}/v1alpha/: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}}/v1alpha/:name' -Method PATCH -Headers $headers -ContentType 'application/json' -Body '{
  "updateMask": "",
  "workerPool": {
    "autoscale": {
      "maxSize": "",
      "minSize": ""
    },
    "channel": "",
    "hostOs": "",
    "name": "",
    "state": "",
    "workerConfig": {
      "accelerator": {
        "acceleratorCount": "",
        "acceleratorType": ""
      },
      "diskSizeGb": "",
      "diskType": "",
      "labels": {},
      "machineType": "",
      "maxConcurrentActions": "",
      "minCpuPlatform": "",
      "networkAccess": "",
      "reserved": false,
      "soleTenantNodeType": "",
      "vmImage": ""
    },
    "workerCount": ""
  }
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/v1alpha/:name' -Method PATCH -Headers $headers -ContentType 'application/json' -Body '{
  "updateMask": "",
  "workerPool": {
    "autoscale": {
      "maxSize": "",
      "minSize": ""
    },
    "channel": "",
    "hostOs": "",
    "name": "",
    "state": "",
    "workerConfig": {
      "accelerator": {
        "acceleratorCount": "",
        "acceleratorType": ""
      },
      "diskSizeGb": "",
      "diskType": "",
      "labels": {},
      "machineType": "",
      "maxConcurrentActions": "",
      "minCpuPlatform": "",
      "networkAccess": "",
      "reserved": false,
      "soleTenantNodeType": "",
      "vmImage": ""
    },
    "workerCount": ""
  }
}'
import http.client

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

payload = "{\n  \"updateMask\": \"\",\n  \"workerPool\": {\n    \"autoscale\": {\n      \"maxSize\": \"\",\n      \"minSize\": \"\"\n    },\n    \"channel\": \"\",\n    \"hostOs\": \"\",\n    \"name\": \"\",\n    \"state\": \"\",\n    \"workerConfig\": {\n      \"accelerator\": {\n        \"acceleratorCount\": \"\",\n        \"acceleratorType\": \"\"\n      },\n      \"diskSizeGb\": \"\",\n      \"diskType\": \"\",\n      \"labels\": {},\n      \"machineType\": \"\",\n      \"maxConcurrentActions\": \"\",\n      \"minCpuPlatform\": \"\",\n      \"networkAccess\": \"\",\n      \"reserved\": false,\n      \"soleTenantNodeType\": \"\",\n      \"vmImage\": \"\"\n    },\n    \"workerCount\": \"\"\n  }\n}"

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

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

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

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

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

payload = {
    "updateMask": "",
    "workerPool": {
        "autoscale": {
            "maxSize": "",
            "minSize": ""
        },
        "channel": "",
        "hostOs": "",
        "name": "",
        "state": "",
        "workerConfig": {
            "accelerator": {
                "acceleratorCount": "",
                "acceleratorType": ""
            },
            "diskSizeGb": "",
            "diskType": "",
            "labels": {},
            "machineType": "",
            "maxConcurrentActions": "",
            "minCpuPlatform": "",
            "networkAccess": "",
            "reserved": False,
            "soleTenantNodeType": "",
            "vmImage": ""
        },
        "workerCount": ""
    }
}
headers = {"content-type": "application/json"}

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

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

url <- "{{baseUrl}}/v1alpha/:name"

payload <- "{\n  \"updateMask\": \"\",\n  \"workerPool\": {\n    \"autoscale\": {\n      \"maxSize\": \"\",\n      \"minSize\": \"\"\n    },\n    \"channel\": \"\",\n    \"hostOs\": \"\",\n    \"name\": \"\",\n    \"state\": \"\",\n    \"workerConfig\": {\n      \"accelerator\": {\n        \"acceleratorCount\": \"\",\n        \"acceleratorType\": \"\"\n      },\n      \"diskSizeGb\": \"\",\n      \"diskType\": \"\",\n      \"labels\": {},\n      \"machineType\": \"\",\n      \"maxConcurrentActions\": \"\",\n      \"minCpuPlatform\": \"\",\n      \"networkAccess\": \"\",\n      \"reserved\": false,\n      \"soleTenantNodeType\": \"\",\n      \"vmImage\": \"\"\n    },\n    \"workerCount\": \"\"\n  }\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}}/v1alpha/: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  \"updateMask\": \"\",\n  \"workerPool\": {\n    \"autoscale\": {\n      \"maxSize\": \"\",\n      \"minSize\": \"\"\n    },\n    \"channel\": \"\",\n    \"hostOs\": \"\",\n    \"name\": \"\",\n    \"state\": \"\",\n    \"workerConfig\": {\n      \"accelerator\": {\n        \"acceleratorCount\": \"\",\n        \"acceleratorType\": \"\"\n      },\n      \"diskSizeGb\": \"\",\n      \"diskType\": \"\",\n      \"labels\": {},\n      \"machineType\": \"\",\n      \"maxConcurrentActions\": \"\",\n      \"minCpuPlatform\": \"\",\n      \"networkAccess\": \"\",\n      \"reserved\": false,\n      \"soleTenantNodeType\": \"\",\n      \"vmImage\": \"\"\n    },\n    \"workerCount\": \"\"\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.patch('/baseUrl/v1alpha/:name') do |req|
  req.body = "{\n  \"updateMask\": \"\",\n  \"workerPool\": {\n    \"autoscale\": {\n      \"maxSize\": \"\",\n      \"minSize\": \"\"\n    },\n    \"channel\": \"\",\n    \"hostOs\": \"\",\n    \"name\": \"\",\n    \"state\": \"\",\n    \"workerConfig\": {\n      \"accelerator\": {\n        \"acceleratorCount\": \"\",\n        \"acceleratorType\": \"\"\n      },\n      \"diskSizeGb\": \"\",\n      \"diskType\": \"\",\n      \"labels\": {},\n      \"machineType\": \"\",\n      \"maxConcurrentActions\": \"\",\n      \"minCpuPlatform\": \"\",\n      \"networkAccess\": \"\",\n      \"reserved\": false,\n      \"soleTenantNodeType\": \"\",\n      \"vmImage\": \"\"\n    },\n    \"workerCount\": \"\"\n  }\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}}/v1alpha/:name";

    let payload = json!({
        "updateMask": "",
        "workerPool": json!({
            "autoscale": json!({
                "maxSize": "",
                "minSize": ""
            }),
            "channel": "",
            "hostOs": "",
            "name": "",
            "state": "",
            "workerConfig": json!({
                "accelerator": json!({
                    "acceleratorCount": "",
                    "acceleratorType": ""
                }),
                "diskSizeGb": "",
                "diskType": "",
                "labels": json!({}),
                "machineType": "",
                "maxConcurrentActions": "",
                "minCpuPlatform": "",
                "networkAccess": "",
                "reserved": false,
                "soleTenantNodeType": "",
                "vmImage": ""
            }),
            "workerCount": ""
        })
    });

    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}}/v1alpha/:name \
  --header 'content-type: application/json' \
  --data '{
  "updateMask": "",
  "workerPool": {
    "autoscale": {
      "maxSize": "",
      "minSize": ""
    },
    "channel": "",
    "hostOs": "",
    "name": "",
    "state": "",
    "workerConfig": {
      "accelerator": {
        "acceleratorCount": "",
        "acceleratorType": ""
      },
      "diskSizeGb": "",
      "diskType": "",
      "labels": {},
      "machineType": "",
      "maxConcurrentActions": "",
      "minCpuPlatform": "",
      "networkAccess": "",
      "reserved": false,
      "soleTenantNodeType": "",
      "vmImage": ""
    },
    "workerCount": ""
  }
}'
echo '{
  "updateMask": "",
  "workerPool": {
    "autoscale": {
      "maxSize": "",
      "minSize": ""
    },
    "channel": "",
    "hostOs": "",
    "name": "",
    "state": "",
    "workerConfig": {
      "accelerator": {
        "acceleratorCount": "",
        "acceleratorType": ""
      },
      "diskSizeGb": "",
      "diskType": "",
      "labels": {},
      "machineType": "",
      "maxConcurrentActions": "",
      "minCpuPlatform": "",
      "networkAccess": "",
      "reserved": false,
      "soleTenantNodeType": "",
      "vmImage": ""
    },
    "workerCount": ""
  }
}' |  \
  http PATCH {{baseUrl}}/v1alpha/:name \
  content-type:application/json
wget --quiet \
  --method PATCH \
  --header 'content-type: application/json' \
  --body-data '{\n  "updateMask": "",\n  "workerPool": {\n    "autoscale": {\n      "maxSize": "",\n      "minSize": ""\n    },\n    "channel": "",\n    "hostOs": "",\n    "name": "",\n    "state": "",\n    "workerConfig": {\n      "accelerator": {\n        "acceleratorCount": "",\n        "acceleratorType": ""\n      },\n      "diskSizeGb": "",\n      "diskType": "",\n      "labels": {},\n      "machineType": "",\n      "maxConcurrentActions": "",\n      "minCpuPlatform": "",\n      "networkAccess": "",\n      "reserved": false,\n      "soleTenantNodeType": "",\n      "vmImage": ""\n    },\n    "workerCount": ""\n  }\n}' \
  --output-document \
  - {{baseUrl}}/v1alpha/:name
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "updateMask": "",
  "workerPool": [
    "autoscale": [
      "maxSize": "",
      "minSize": ""
    ],
    "channel": "",
    "hostOs": "",
    "name": "",
    "state": "",
    "workerConfig": [
      "accelerator": [
        "acceleratorCount": "",
        "acceleratorType": ""
      ],
      "diskSizeGb": "",
      "diskType": "",
      "labels": [],
      "machineType": "",
      "maxConcurrentActions": "",
      "minCpuPlatform": "",
      "networkAccess": "",
      "reserved": false,
      "soleTenantNodeType": "",
      "vmImage": ""
    ],
    "workerCount": ""
  ]
] as [String : Any]

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

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/v1alpha/: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()
GET remotebuildexecution.projects.operations.get
{{baseUrl}}/v1alpha/: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}}/v1alpha/:name");

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

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

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

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

func main() {

	url := "{{baseUrl}}/v1alpha/: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/v1alpha/:name HTTP/1.1
Host: example.com

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

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

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

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

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

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

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

val request = Request.Builder()
  .url("{{baseUrl}}/v1alpha/:name")
  .get()
  .build()

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

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

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

const url = '{{baseUrl}}/v1alpha/: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}}/v1alpha/: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}}/v1alpha/:name" in

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

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

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

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

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

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

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

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

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

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

response = requests.get(url)

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

url <- "{{baseUrl}}/v1alpha/:name"

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

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

url = URI("{{baseUrl}}/v1alpha/: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/v1alpha/:name') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/v1alpha/: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}}/v1alpha/:name
http GET {{baseUrl}}/v1alpha/:name
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/v1alpha/:name
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/v1alpha/: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()