POST osconfig.projects.guestPolicies.create
{{baseUrl}}/v1beta/:parent/guestPolicies
QUERY PARAMS

parent
BODY json

{
  "assignment": {
    "groupLabels": [
      {
        "labels": {}
      }
    ],
    "instanceNamePrefixes": [],
    "instances": [],
    "osTypes": [
      {
        "osArchitecture": "",
        "osShortName": "",
        "osVersion": ""
      }
    ],
    "zones": []
  },
  "createTime": "",
  "description": "",
  "etag": "",
  "name": "",
  "packageRepositories": [
    {
      "apt": {
        "archiveType": "",
        "components": [],
        "distribution": "",
        "gpgKey": "",
        "uri": ""
      },
      "goo": {
        "name": "",
        "url": ""
      },
      "yum": {
        "baseUrl": "",
        "displayName": "",
        "gpgKeys": [],
        "id": ""
      },
      "zypper": {
        "baseUrl": "",
        "displayName": "",
        "gpgKeys": [],
        "id": ""
      }
    }
  ],
  "packages": [
    {
      "desiredState": "",
      "manager": "",
      "name": ""
    }
  ],
  "recipes": [
    {
      "artifacts": [
        {
          "allowInsecure": false,
          "gcs": {
            "bucket": "",
            "generation": "",
            "object": ""
          },
          "id": "",
          "remote": {
            "checksum": "",
            "uri": ""
          }
        }
      ],
      "desiredState": "",
      "installSteps": [
        {
          "archiveExtraction": {
            "artifactId": "",
            "destination": "",
            "type": ""
          },
          "dpkgInstallation": {
            "artifactId": ""
          },
          "fileCopy": {
            "artifactId": "",
            "destination": "",
            "overwrite": false,
            "permissions": ""
          },
          "fileExec": {
            "allowedExitCodes": [],
            "args": [],
            "artifactId": "",
            "localPath": ""
          },
          "msiInstallation": {
            "allowedExitCodes": [],
            "artifactId": "",
            "flags": []
          },
          "rpmInstallation": {
            "artifactId": ""
          },
          "scriptRun": {
            "allowedExitCodes": [],
            "interpreter": "",
            "script": ""
          }
        }
      ],
      "name": "",
      "updateSteps": [
        {}
      ],
      "version": ""
    }
  ],
  "updateTime": ""
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

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

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  \"assignment\": {\n    \"groupLabels\": [\n      {\n        \"labels\": {}\n      }\n    ],\n    \"instanceNamePrefixes\": [],\n    \"instances\": [],\n    \"osTypes\": [\n      {\n        \"osArchitecture\": \"\",\n        \"osShortName\": \"\",\n        \"osVersion\": \"\"\n      }\n    ],\n    \"zones\": []\n  },\n  \"createTime\": \"\",\n  \"description\": \"\",\n  \"etag\": \"\",\n  \"name\": \"\",\n  \"packageRepositories\": [\n    {\n      \"apt\": {\n        \"archiveType\": \"\",\n        \"components\": [],\n        \"distribution\": \"\",\n        \"gpgKey\": \"\",\n        \"uri\": \"\"\n      },\n      \"goo\": {\n        \"name\": \"\",\n        \"url\": \"\"\n      },\n      \"yum\": {\n        \"baseUrl\": \"\",\n        \"displayName\": \"\",\n        \"gpgKeys\": [],\n        \"id\": \"\"\n      },\n      \"zypper\": {\n        \"baseUrl\": \"\",\n        \"displayName\": \"\",\n        \"gpgKeys\": [],\n        \"id\": \"\"\n      }\n    }\n  ],\n  \"packages\": [\n    {\n      \"desiredState\": \"\",\n      \"manager\": \"\",\n      \"name\": \"\"\n    }\n  ],\n  \"recipes\": [\n    {\n      \"artifacts\": [\n        {\n          \"allowInsecure\": false,\n          \"gcs\": {\n            \"bucket\": \"\",\n            \"generation\": \"\",\n            \"object\": \"\"\n          },\n          \"id\": \"\",\n          \"remote\": {\n            \"checksum\": \"\",\n            \"uri\": \"\"\n          }\n        }\n      ],\n      \"desiredState\": \"\",\n      \"installSteps\": [\n        {\n          \"archiveExtraction\": {\n            \"artifactId\": \"\",\n            \"destination\": \"\",\n            \"type\": \"\"\n          },\n          \"dpkgInstallation\": {\n            \"artifactId\": \"\"\n          },\n          \"fileCopy\": {\n            \"artifactId\": \"\",\n            \"destination\": \"\",\n            \"overwrite\": false,\n            \"permissions\": \"\"\n          },\n          \"fileExec\": {\n            \"allowedExitCodes\": [],\n            \"args\": [],\n            \"artifactId\": \"\",\n            \"localPath\": \"\"\n          },\n          \"msiInstallation\": {\n            \"allowedExitCodes\": [],\n            \"artifactId\": \"\",\n            \"flags\": []\n          },\n          \"rpmInstallation\": {\n            \"artifactId\": \"\"\n          },\n          \"scriptRun\": {\n            \"allowedExitCodes\": [],\n            \"interpreter\": \"\",\n            \"script\": \"\"\n          }\n        }\n      ],\n      \"name\": \"\",\n      \"updateSteps\": [\n        {}\n      ],\n      \"version\": \"\"\n    }\n  ],\n  \"updateTime\": \"\"\n}");

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

(client/post "{{baseUrl}}/v1beta/:parent/guestPolicies" {:content-type :json
                                                                         :form-params {:assignment {:groupLabels [{:labels {}}]
                                                                                                    :instanceNamePrefixes []
                                                                                                    :instances []
                                                                                                    :osTypes [{:osArchitecture ""
                                                                                                               :osShortName ""
                                                                                                               :osVersion ""}]
                                                                                                    :zones []}
                                                                                       :createTime ""
                                                                                       :description ""
                                                                                       :etag ""
                                                                                       :name ""
                                                                                       :packageRepositories [{:apt {:archiveType ""
                                                                                                                    :components []
                                                                                                                    :distribution ""
                                                                                                                    :gpgKey ""
                                                                                                                    :uri ""}
                                                                                                              :goo {:name ""
                                                                                                                    :url ""}
                                                                                                              :yum {:baseUrl ""
                                                                                                                    :displayName ""
                                                                                                                    :gpgKeys []
                                                                                                                    :id ""}
                                                                                                              :zypper {:baseUrl ""
                                                                                                                       :displayName ""
                                                                                                                       :gpgKeys []
                                                                                                                       :id ""}}]
                                                                                       :packages [{:desiredState ""
                                                                                                   :manager ""
                                                                                                   :name ""}]
                                                                                       :recipes [{:artifacts [{:allowInsecure false
                                                                                                               :gcs {:bucket ""
                                                                                                                     :generation ""
                                                                                                                     :object ""}
                                                                                                               :id ""
                                                                                                               :remote {:checksum ""
                                                                                                                        :uri ""}}]
                                                                                                  :desiredState ""
                                                                                                  :installSteps [{:archiveExtraction {:artifactId ""
                                                                                                                                      :destination ""
                                                                                                                                      :type ""}
                                                                                                                  :dpkgInstallation {:artifactId ""}
                                                                                                                  :fileCopy {:artifactId ""
                                                                                                                             :destination ""
                                                                                                                             :overwrite false
                                                                                                                             :permissions ""}
                                                                                                                  :fileExec {:allowedExitCodes []
                                                                                                                             :args []
                                                                                                                             :artifactId ""
                                                                                                                             :localPath ""}
                                                                                                                  :msiInstallation {:allowedExitCodes []
                                                                                                                                    :artifactId ""
                                                                                                                                    :flags []}
                                                                                                                  :rpmInstallation {:artifactId ""}
                                                                                                                  :scriptRun {:allowedExitCodes []
                                                                                                                              :interpreter ""
                                                                                                                              :script ""}}]
                                                                                                  :name ""
                                                                                                  :updateSteps [{}]
                                                                                                  :version ""}]
                                                                                       :updateTime ""}})
require "http/client"

url = "{{baseUrl}}/v1beta/:parent/guestPolicies"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"assignment\": {\n    \"groupLabels\": [\n      {\n        \"labels\": {}\n      }\n    ],\n    \"instanceNamePrefixes\": [],\n    \"instances\": [],\n    \"osTypes\": [\n      {\n        \"osArchitecture\": \"\",\n        \"osShortName\": \"\",\n        \"osVersion\": \"\"\n      }\n    ],\n    \"zones\": []\n  },\n  \"createTime\": \"\",\n  \"description\": \"\",\n  \"etag\": \"\",\n  \"name\": \"\",\n  \"packageRepositories\": [\n    {\n      \"apt\": {\n        \"archiveType\": \"\",\n        \"components\": [],\n        \"distribution\": \"\",\n        \"gpgKey\": \"\",\n        \"uri\": \"\"\n      },\n      \"goo\": {\n        \"name\": \"\",\n        \"url\": \"\"\n      },\n      \"yum\": {\n        \"baseUrl\": \"\",\n        \"displayName\": \"\",\n        \"gpgKeys\": [],\n        \"id\": \"\"\n      },\n      \"zypper\": {\n        \"baseUrl\": \"\",\n        \"displayName\": \"\",\n        \"gpgKeys\": [],\n        \"id\": \"\"\n      }\n    }\n  ],\n  \"packages\": [\n    {\n      \"desiredState\": \"\",\n      \"manager\": \"\",\n      \"name\": \"\"\n    }\n  ],\n  \"recipes\": [\n    {\n      \"artifacts\": [\n        {\n          \"allowInsecure\": false,\n          \"gcs\": {\n            \"bucket\": \"\",\n            \"generation\": \"\",\n            \"object\": \"\"\n          },\n          \"id\": \"\",\n          \"remote\": {\n            \"checksum\": \"\",\n            \"uri\": \"\"\n          }\n        }\n      ],\n      \"desiredState\": \"\",\n      \"installSteps\": [\n        {\n          \"archiveExtraction\": {\n            \"artifactId\": \"\",\n            \"destination\": \"\",\n            \"type\": \"\"\n          },\n          \"dpkgInstallation\": {\n            \"artifactId\": \"\"\n          },\n          \"fileCopy\": {\n            \"artifactId\": \"\",\n            \"destination\": \"\",\n            \"overwrite\": false,\n            \"permissions\": \"\"\n          },\n          \"fileExec\": {\n            \"allowedExitCodes\": [],\n            \"args\": [],\n            \"artifactId\": \"\",\n            \"localPath\": \"\"\n          },\n          \"msiInstallation\": {\n            \"allowedExitCodes\": [],\n            \"artifactId\": \"\",\n            \"flags\": []\n          },\n          \"rpmInstallation\": {\n            \"artifactId\": \"\"\n          },\n          \"scriptRun\": {\n            \"allowedExitCodes\": [],\n            \"interpreter\": \"\",\n            \"script\": \"\"\n          }\n        }\n      ],\n      \"name\": \"\",\n      \"updateSteps\": [\n        {}\n      ],\n      \"version\": \"\"\n    }\n  ],\n  \"updateTime\": \"\"\n}"

response = HTTP::Client.post url, headers: headers, body: reqBody
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Post,
    RequestUri = new Uri("{{baseUrl}}/v1beta/:parent/guestPolicies"),
    Content = new StringContent("{\n  \"assignment\": {\n    \"groupLabels\": [\n      {\n        \"labels\": {}\n      }\n    ],\n    \"instanceNamePrefixes\": [],\n    \"instances\": [],\n    \"osTypes\": [\n      {\n        \"osArchitecture\": \"\",\n        \"osShortName\": \"\",\n        \"osVersion\": \"\"\n      }\n    ],\n    \"zones\": []\n  },\n  \"createTime\": \"\",\n  \"description\": \"\",\n  \"etag\": \"\",\n  \"name\": \"\",\n  \"packageRepositories\": [\n    {\n      \"apt\": {\n        \"archiveType\": \"\",\n        \"components\": [],\n        \"distribution\": \"\",\n        \"gpgKey\": \"\",\n        \"uri\": \"\"\n      },\n      \"goo\": {\n        \"name\": \"\",\n        \"url\": \"\"\n      },\n      \"yum\": {\n        \"baseUrl\": \"\",\n        \"displayName\": \"\",\n        \"gpgKeys\": [],\n        \"id\": \"\"\n      },\n      \"zypper\": {\n        \"baseUrl\": \"\",\n        \"displayName\": \"\",\n        \"gpgKeys\": [],\n        \"id\": \"\"\n      }\n    }\n  ],\n  \"packages\": [\n    {\n      \"desiredState\": \"\",\n      \"manager\": \"\",\n      \"name\": \"\"\n    }\n  ],\n  \"recipes\": [\n    {\n      \"artifacts\": [\n        {\n          \"allowInsecure\": false,\n          \"gcs\": {\n            \"bucket\": \"\",\n            \"generation\": \"\",\n            \"object\": \"\"\n          },\n          \"id\": \"\",\n          \"remote\": {\n            \"checksum\": \"\",\n            \"uri\": \"\"\n          }\n        }\n      ],\n      \"desiredState\": \"\",\n      \"installSteps\": [\n        {\n          \"archiveExtraction\": {\n            \"artifactId\": \"\",\n            \"destination\": \"\",\n            \"type\": \"\"\n          },\n          \"dpkgInstallation\": {\n            \"artifactId\": \"\"\n          },\n          \"fileCopy\": {\n            \"artifactId\": \"\",\n            \"destination\": \"\",\n            \"overwrite\": false,\n            \"permissions\": \"\"\n          },\n          \"fileExec\": {\n            \"allowedExitCodes\": [],\n            \"args\": [],\n            \"artifactId\": \"\",\n            \"localPath\": \"\"\n          },\n          \"msiInstallation\": {\n            \"allowedExitCodes\": [],\n            \"artifactId\": \"\",\n            \"flags\": []\n          },\n          \"rpmInstallation\": {\n            \"artifactId\": \"\"\n          },\n          \"scriptRun\": {\n            \"allowedExitCodes\": [],\n            \"interpreter\": \"\",\n            \"script\": \"\"\n          }\n        }\n      ],\n      \"name\": \"\",\n      \"updateSteps\": [\n        {}\n      ],\n      \"version\": \"\"\n    }\n  ],\n  \"updateTime\": \"\"\n}")
    {
        Headers =
        {
            ContentType = new MediaTypeHeaderValue("application/json")
        }
    }
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/v1beta/:parent/guestPolicies");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"assignment\": {\n    \"groupLabels\": [\n      {\n        \"labels\": {}\n      }\n    ],\n    \"instanceNamePrefixes\": [],\n    \"instances\": [],\n    \"osTypes\": [\n      {\n        \"osArchitecture\": \"\",\n        \"osShortName\": \"\",\n        \"osVersion\": \"\"\n      }\n    ],\n    \"zones\": []\n  },\n  \"createTime\": \"\",\n  \"description\": \"\",\n  \"etag\": \"\",\n  \"name\": \"\",\n  \"packageRepositories\": [\n    {\n      \"apt\": {\n        \"archiveType\": \"\",\n        \"components\": [],\n        \"distribution\": \"\",\n        \"gpgKey\": \"\",\n        \"uri\": \"\"\n      },\n      \"goo\": {\n        \"name\": \"\",\n        \"url\": \"\"\n      },\n      \"yum\": {\n        \"baseUrl\": \"\",\n        \"displayName\": \"\",\n        \"gpgKeys\": [],\n        \"id\": \"\"\n      },\n      \"zypper\": {\n        \"baseUrl\": \"\",\n        \"displayName\": \"\",\n        \"gpgKeys\": [],\n        \"id\": \"\"\n      }\n    }\n  ],\n  \"packages\": [\n    {\n      \"desiredState\": \"\",\n      \"manager\": \"\",\n      \"name\": \"\"\n    }\n  ],\n  \"recipes\": [\n    {\n      \"artifacts\": [\n        {\n          \"allowInsecure\": false,\n          \"gcs\": {\n            \"bucket\": \"\",\n            \"generation\": \"\",\n            \"object\": \"\"\n          },\n          \"id\": \"\",\n          \"remote\": {\n            \"checksum\": \"\",\n            \"uri\": \"\"\n          }\n        }\n      ],\n      \"desiredState\": \"\",\n      \"installSteps\": [\n        {\n          \"archiveExtraction\": {\n            \"artifactId\": \"\",\n            \"destination\": \"\",\n            \"type\": \"\"\n          },\n          \"dpkgInstallation\": {\n            \"artifactId\": \"\"\n          },\n          \"fileCopy\": {\n            \"artifactId\": \"\",\n            \"destination\": \"\",\n            \"overwrite\": false,\n            \"permissions\": \"\"\n          },\n          \"fileExec\": {\n            \"allowedExitCodes\": [],\n            \"args\": [],\n            \"artifactId\": \"\",\n            \"localPath\": \"\"\n          },\n          \"msiInstallation\": {\n            \"allowedExitCodes\": [],\n            \"artifactId\": \"\",\n            \"flags\": []\n          },\n          \"rpmInstallation\": {\n            \"artifactId\": \"\"\n          },\n          \"scriptRun\": {\n            \"allowedExitCodes\": [],\n            \"interpreter\": \"\",\n            \"script\": \"\"\n          }\n        }\n      ],\n      \"name\": \"\",\n      \"updateSteps\": [\n        {}\n      ],\n      \"version\": \"\"\n    }\n  ],\n  \"updateTime\": \"\"\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

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

func main() {

	url := "{{baseUrl}}/v1beta/:parent/guestPolicies"

	payload := strings.NewReader("{\n  \"assignment\": {\n    \"groupLabels\": [\n      {\n        \"labels\": {}\n      }\n    ],\n    \"instanceNamePrefixes\": [],\n    \"instances\": [],\n    \"osTypes\": [\n      {\n        \"osArchitecture\": \"\",\n        \"osShortName\": \"\",\n        \"osVersion\": \"\"\n      }\n    ],\n    \"zones\": []\n  },\n  \"createTime\": \"\",\n  \"description\": \"\",\n  \"etag\": \"\",\n  \"name\": \"\",\n  \"packageRepositories\": [\n    {\n      \"apt\": {\n        \"archiveType\": \"\",\n        \"components\": [],\n        \"distribution\": \"\",\n        \"gpgKey\": \"\",\n        \"uri\": \"\"\n      },\n      \"goo\": {\n        \"name\": \"\",\n        \"url\": \"\"\n      },\n      \"yum\": {\n        \"baseUrl\": \"\",\n        \"displayName\": \"\",\n        \"gpgKeys\": [],\n        \"id\": \"\"\n      },\n      \"zypper\": {\n        \"baseUrl\": \"\",\n        \"displayName\": \"\",\n        \"gpgKeys\": [],\n        \"id\": \"\"\n      }\n    }\n  ],\n  \"packages\": [\n    {\n      \"desiredState\": \"\",\n      \"manager\": \"\",\n      \"name\": \"\"\n    }\n  ],\n  \"recipes\": [\n    {\n      \"artifacts\": [\n        {\n          \"allowInsecure\": false,\n          \"gcs\": {\n            \"bucket\": \"\",\n            \"generation\": \"\",\n            \"object\": \"\"\n          },\n          \"id\": \"\",\n          \"remote\": {\n            \"checksum\": \"\",\n            \"uri\": \"\"\n          }\n        }\n      ],\n      \"desiredState\": \"\",\n      \"installSteps\": [\n        {\n          \"archiveExtraction\": {\n            \"artifactId\": \"\",\n            \"destination\": \"\",\n            \"type\": \"\"\n          },\n          \"dpkgInstallation\": {\n            \"artifactId\": \"\"\n          },\n          \"fileCopy\": {\n            \"artifactId\": \"\",\n            \"destination\": \"\",\n            \"overwrite\": false,\n            \"permissions\": \"\"\n          },\n          \"fileExec\": {\n            \"allowedExitCodes\": [],\n            \"args\": [],\n            \"artifactId\": \"\",\n            \"localPath\": \"\"\n          },\n          \"msiInstallation\": {\n            \"allowedExitCodes\": [],\n            \"artifactId\": \"\",\n            \"flags\": []\n          },\n          \"rpmInstallation\": {\n            \"artifactId\": \"\"\n          },\n          \"scriptRun\": {\n            \"allowedExitCodes\": [],\n            \"interpreter\": \"\",\n            \"script\": \"\"\n          }\n        }\n      ],\n      \"name\": \"\",\n      \"updateSteps\": [\n        {}\n      ],\n      \"version\": \"\"\n    }\n  ],\n  \"updateTime\": \"\"\n}")

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

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

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

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

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

}
POST /baseUrl/v1beta/:parent/guestPolicies HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 2295

{
  "assignment": {
    "groupLabels": [
      {
        "labels": {}
      }
    ],
    "instanceNamePrefixes": [],
    "instances": [],
    "osTypes": [
      {
        "osArchitecture": "",
        "osShortName": "",
        "osVersion": ""
      }
    ],
    "zones": []
  },
  "createTime": "",
  "description": "",
  "etag": "",
  "name": "",
  "packageRepositories": [
    {
      "apt": {
        "archiveType": "",
        "components": [],
        "distribution": "",
        "gpgKey": "",
        "uri": ""
      },
      "goo": {
        "name": "",
        "url": ""
      },
      "yum": {
        "baseUrl": "",
        "displayName": "",
        "gpgKeys": [],
        "id": ""
      },
      "zypper": {
        "baseUrl": "",
        "displayName": "",
        "gpgKeys": [],
        "id": ""
      }
    }
  ],
  "packages": [
    {
      "desiredState": "",
      "manager": "",
      "name": ""
    }
  ],
  "recipes": [
    {
      "artifacts": [
        {
          "allowInsecure": false,
          "gcs": {
            "bucket": "",
            "generation": "",
            "object": ""
          },
          "id": "",
          "remote": {
            "checksum": "",
            "uri": ""
          }
        }
      ],
      "desiredState": "",
      "installSteps": [
        {
          "archiveExtraction": {
            "artifactId": "",
            "destination": "",
            "type": ""
          },
          "dpkgInstallation": {
            "artifactId": ""
          },
          "fileCopy": {
            "artifactId": "",
            "destination": "",
            "overwrite": false,
            "permissions": ""
          },
          "fileExec": {
            "allowedExitCodes": [],
            "args": [],
            "artifactId": "",
            "localPath": ""
          },
          "msiInstallation": {
            "allowedExitCodes": [],
            "artifactId": "",
            "flags": []
          },
          "rpmInstallation": {
            "artifactId": ""
          },
          "scriptRun": {
            "allowedExitCodes": [],
            "interpreter": "",
            "script": ""
          }
        }
      ],
      "name": "",
      "updateSteps": [
        {}
      ],
      "version": ""
    }
  ],
  "updateTime": ""
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/v1beta/:parent/guestPolicies")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"assignment\": {\n    \"groupLabels\": [\n      {\n        \"labels\": {}\n      }\n    ],\n    \"instanceNamePrefixes\": [],\n    \"instances\": [],\n    \"osTypes\": [\n      {\n        \"osArchitecture\": \"\",\n        \"osShortName\": \"\",\n        \"osVersion\": \"\"\n      }\n    ],\n    \"zones\": []\n  },\n  \"createTime\": \"\",\n  \"description\": \"\",\n  \"etag\": \"\",\n  \"name\": \"\",\n  \"packageRepositories\": [\n    {\n      \"apt\": {\n        \"archiveType\": \"\",\n        \"components\": [],\n        \"distribution\": \"\",\n        \"gpgKey\": \"\",\n        \"uri\": \"\"\n      },\n      \"goo\": {\n        \"name\": \"\",\n        \"url\": \"\"\n      },\n      \"yum\": {\n        \"baseUrl\": \"\",\n        \"displayName\": \"\",\n        \"gpgKeys\": [],\n        \"id\": \"\"\n      },\n      \"zypper\": {\n        \"baseUrl\": \"\",\n        \"displayName\": \"\",\n        \"gpgKeys\": [],\n        \"id\": \"\"\n      }\n    }\n  ],\n  \"packages\": [\n    {\n      \"desiredState\": \"\",\n      \"manager\": \"\",\n      \"name\": \"\"\n    }\n  ],\n  \"recipes\": [\n    {\n      \"artifacts\": [\n        {\n          \"allowInsecure\": false,\n          \"gcs\": {\n            \"bucket\": \"\",\n            \"generation\": \"\",\n            \"object\": \"\"\n          },\n          \"id\": \"\",\n          \"remote\": {\n            \"checksum\": \"\",\n            \"uri\": \"\"\n          }\n        }\n      ],\n      \"desiredState\": \"\",\n      \"installSteps\": [\n        {\n          \"archiveExtraction\": {\n            \"artifactId\": \"\",\n            \"destination\": \"\",\n            \"type\": \"\"\n          },\n          \"dpkgInstallation\": {\n            \"artifactId\": \"\"\n          },\n          \"fileCopy\": {\n            \"artifactId\": \"\",\n            \"destination\": \"\",\n            \"overwrite\": false,\n            \"permissions\": \"\"\n          },\n          \"fileExec\": {\n            \"allowedExitCodes\": [],\n            \"args\": [],\n            \"artifactId\": \"\",\n            \"localPath\": \"\"\n          },\n          \"msiInstallation\": {\n            \"allowedExitCodes\": [],\n            \"artifactId\": \"\",\n            \"flags\": []\n          },\n          \"rpmInstallation\": {\n            \"artifactId\": \"\"\n          },\n          \"scriptRun\": {\n            \"allowedExitCodes\": [],\n            \"interpreter\": \"\",\n            \"script\": \"\"\n          }\n        }\n      ],\n      \"name\": \"\",\n      \"updateSteps\": [\n        {}\n      ],\n      \"version\": \"\"\n    }\n  ],\n  \"updateTime\": \"\"\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/v1beta/:parent/guestPolicies"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"assignment\": {\n    \"groupLabels\": [\n      {\n        \"labels\": {}\n      }\n    ],\n    \"instanceNamePrefixes\": [],\n    \"instances\": [],\n    \"osTypes\": [\n      {\n        \"osArchitecture\": \"\",\n        \"osShortName\": \"\",\n        \"osVersion\": \"\"\n      }\n    ],\n    \"zones\": []\n  },\n  \"createTime\": \"\",\n  \"description\": \"\",\n  \"etag\": \"\",\n  \"name\": \"\",\n  \"packageRepositories\": [\n    {\n      \"apt\": {\n        \"archiveType\": \"\",\n        \"components\": [],\n        \"distribution\": \"\",\n        \"gpgKey\": \"\",\n        \"uri\": \"\"\n      },\n      \"goo\": {\n        \"name\": \"\",\n        \"url\": \"\"\n      },\n      \"yum\": {\n        \"baseUrl\": \"\",\n        \"displayName\": \"\",\n        \"gpgKeys\": [],\n        \"id\": \"\"\n      },\n      \"zypper\": {\n        \"baseUrl\": \"\",\n        \"displayName\": \"\",\n        \"gpgKeys\": [],\n        \"id\": \"\"\n      }\n    }\n  ],\n  \"packages\": [\n    {\n      \"desiredState\": \"\",\n      \"manager\": \"\",\n      \"name\": \"\"\n    }\n  ],\n  \"recipes\": [\n    {\n      \"artifacts\": [\n        {\n          \"allowInsecure\": false,\n          \"gcs\": {\n            \"bucket\": \"\",\n            \"generation\": \"\",\n            \"object\": \"\"\n          },\n          \"id\": \"\",\n          \"remote\": {\n            \"checksum\": \"\",\n            \"uri\": \"\"\n          }\n        }\n      ],\n      \"desiredState\": \"\",\n      \"installSteps\": [\n        {\n          \"archiveExtraction\": {\n            \"artifactId\": \"\",\n            \"destination\": \"\",\n            \"type\": \"\"\n          },\n          \"dpkgInstallation\": {\n            \"artifactId\": \"\"\n          },\n          \"fileCopy\": {\n            \"artifactId\": \"\",\n            \"destination\": \"\",\n            \"overwrite\": false,\n            \"permissions\": \"\"\n          },\n          \"fileExec\": {\n            \"allowedExitCodes\": [],\n            \"args\": [],\n            \"artifactId\": \"\",\n            \"localPath\": \"\"\n          },\n          \"msiInstallation\": {\n            \"allowedExitCodes\": [],\n            \"artifactId\": \"\",\n            \"flags\": []\n          },\n          \"rpmInstallation\": {\n            \"artifactId\": \"\"\n          },\n          \"scriptRun\": {\n            \"allowedExitCodes\": [],\n            \"interpreter\": \"\",\n            \"script\": \"\"\n          }\n        }\n      ],\n      \"name\": \"\",\n      \"updateSteps\": [\n        {}\n      ],\n      \"version\": \"\"\n    }\n  ],\n  \"updateTime\": \"\"\n}"))
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\n  \"assignment\": {\n    \"groupLabels\": [\n      {\n        \"labels\": {}\n      }\n    ],\n    \"instanceNamePrefixes\": [],\n    \"instances\": [],\n    \"osTypes\": [\n      {\n        \"osArchitecture\": \"\",\n        \"osShortName\": \"\",\n        \"osVersion\": \"\"\n      }\n    ],\n    \"zones\": []\n  },\n  \"createTime\": \"\",\n  \"description\": \"\",\n  \"etag\": \"\",\n  \"name\": \"\",\n  \"packageRepositories\": [\n    {\n      \"apt\": {\n        \"archiveType\": \"\",\n        \"components\": [],\n        \"distribution\": \"\",\n        \"gpgKey\": \"\",\n        \"uri\": \"\"\n      },\n      \"goo\": {\n        \"name\": \"\",\n        \"url\": \"\"\n      },\n      \"yum\": {\n        \"baseUrl\": \"\",\n        \"displayName\": \"\",\n        \"gpgKeys\": [],\n        \"id\": \"\"\n      },\n      \"zypper\": {\n        \"baseUrl\": \"\",\n        \"displayName\": \"\",\n        \"gpgKeys\": [],\n        \"id\": \"\"\n      }\n    }\n  ],\n  \"packages\": [\n    {\n      \"desiredState\": \"\",\n      \"manager\": \"\",\n      \"name\": \"\"\n    }\n  ],\n  \"recipes\": [\n    {\n      \"artifacts\": [\n        {\n          \"allowInsecure\": false,\n          \"gcs\": {\n            \"bucket\": \"\",\n            \"generation\": \"\",\n            \"object\": \"\"\n          },\n          \"id\": \"\",\n          \"remote\": {\n            \"checksum\": \"\",\n            \"uri\": \"\"\n          }\n        }\n      ],\n      \"desiredState\": \"\",\n      \"installSteps\": [\n        {\n          \"archiveExtraction\": {\n            \"artifactId\": \"\",\n            \"destination\": \"\",\n            \"type\": \"\"\n          },\n          \"dpkgInstallation\": {\n            \"artifactId\": \"\"\n          },\n          \"fileCopy\": {\n            \"artifactId\": \"\",\n            \"destination\": \"\",\n            \"overwrite\": false,\n            \"permissions\": \"\"\n          },\n          \"fileExec\": {\n            \"allowedExitCodes\": [],\n            \"args\": [],\n            \"artifactId\": \"\",\n            \"localPath\": \"\"\n          },\n          \"msiInstallation\": {\n            \"allowedExitCodes\": [],\n            \"artifactId\": \"\",\n            \"flags\": []\n          },\n          \"rpmInstallation\": {\n            \"artifactId\": \"\"\n          },\n          \"scriptRun\": {\n            \"allowedExitCodes\": [],\n            \"interpreter\": \"\",\n            \"script\": \"\"\n          }\n        }\n      ],\n      \"name\": \"\",\n      \"updateSteps\": [\n        {}\n      ],\n      \"version\": \"\"\n    }\n  ],\n  \"updateTime\": \"\"\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/v1beta/:parent/guestPolicies")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/v1beta/:parent/guestPolicies")
  .header("content-type", "application/json")
  .body("{\n  \"assignment\": {\n    \"groupLabels\": [\n      {\n        \"labels\": {}\n      }\n    ],\n    \"instanceNamePrefixes\": [],\n    \"instances\": [],\n    \"osTypes\": [\n      {\n        \"osArchitecture\": \"\",\n        \"osShortName\": \"\",\n        \"osVersion\": \"\"\n      }\n    ],\n    \"zones\": []\n  },\n  \"createTime\": \"\",\n  \"description\": \"\",\n  \"etag\": \"\",\n  \"name\": \"\",\n  \"packageRepositories\": [\n    {\n      \"apt\": {\n        \"archiveType\": \"\",\n        \"components\": [],\n        \"distribution\": \"\",\n        \"gpgKey\": \"\",\n        \"uri\": \"\"\n      },\n      \"goo\": {\n        \"name\": \"\",\n        \"url\": \"\"\n      },\n      \"yum\": {\n        \"baseUrl\": \"\",\n        \"displayName\": \"\",\n        \"gpgKeys\": [],\n        \"id\": \"\"\n      },\n      \"zypper\": {\n        \"baseUrl\": \"\",\n        \"displayName\": \"\",\n        \"gpgKeys\": [],\n        \"id\": \"\"\n      }\n    }\n  ],\n  \"packages\": [\n    {\n      \"desiredState\": \"\",\n      \"manager\": \"\",\n      \"name\": \"\"\n    }\n  ],\n  \"recipes\": [\n    {\n      \"artifacts\": [\n        {\n          \"allowInsecure\": false,\n          \"gcs\": {\n            \"bucket\": \"\",\n            \"generation\": \"\",\n            \"object\": \"\"\n          },\n          \"id\": \"\",\n          \"remote\": {\n            \"checksum\": \"\",\n            \"uri\": \"\"\n          }\n        }\n      ],\n      \"desiredState\": \"\",\n      \"installSteps\": [\n        {\n          \"archiveExtraction\": {\n            \"artifactId\": \"\",\n            \"destination\": \"\",\n            \"type\": \"\"\n          },\n          \"dpkgInstallation\": {\n            \"artifactId\": \"\"\n          },\n          \"fileCopy\": {\n            \"artifactId\": \"\",\n            \"destination\": \"\",\n            \"overwrite\": false,\n            \"permissions\": \"\"\n          },\n          \"fileExec\": {\n            \"allowedExitCodes\": [],\n            \"args\": [],\n            \"artifactId\": \"\",\n            \"localPath\": \"\"\n          },\n          \"msiInstallation\": {\n            \"allowedExitCodes\": [],\n            \"artifactId\": \"\",\n            \"flags\": []\n          },\n          \"rpmInstallation\": {\n            \"artifactId\": \"\"\n          },\n          \"scriptRun\": {\n            \"allowedExitCodes\": [],\n            \"interpreter\": \"\",\n            \"script\": \"\"\n          }\n        }\n      ],\n      \"name\": \"\",\n      \"updateSteps\": [\n        {}\n      ],\n      \"version\": \"\"\n    }\n  ],\n  \"updateTime\": \"\"\n}")
  .asString();
const data = JSON.stringify({
  assignment: {
    groupLabels: [
      {
        labels: {}
      }
    ],
    instanceNamePrefixes: [],
    instances: [],
    osTypes: [
      {
        osArchitecture: '',
        osShortName: '',
        osVersion: ''
      }
    ],
    zones: []
  },
  createTime: '',
  description: '',
  etag: '',
  name: '',
  packageRepositories: [
    {
      apt: {
        archiveType: '',
        components: [],
        distribution: '',
        gpgKey: '',
        uri: ''
      },
      goo: {
        name: '',
        url: ''
      },
      yum: {
        baseUrl: '',
        displayName: '',
        gpgKeys: [],
        id: ''
      },
      zypper: {
        baseUrl: '',
        displayName: '',
        gpgKeys: [],
        id: ''
      }
    }
  ],
  packages: [
    {
      desiredState: '',
      manager: '',
      name: ''
    }
  ],
  recipes: [
    {
      artifacts: [
        {
          allowInsecure: false,
          gcs: {
            bucket: '',
            generation: '',
            object: ''
          },
          id: '',
          remote: {
            checksum: '',
            uri: ''
          }
        }
      ],
      desiredState: '',
      installSteps: [
        {
          archiveExtraction: {
            artifactId: '',
            destination: '',
            type: ''
          },
          dpkgInstallation: {
            artifactId: ''
          },
          fileCopy: {
            artifactId: '',
            destination: '',
            overwrite: false,
            permissions: ''
          },
          fileExec: {
            allowedExitCodes: [],
            args: [],
            artifactId: '',
            localPath: ''
          },
          msiInstallation: {
            allowedExitCodes: [],
            artifactId: '',
            flags: []
          },
          rpmInstallation: {
            artifactId: ''
          },
          scriptRun: {
            allowedExitCodes: [],
            interpreter: '',
            script: ''
          }
        }
      ],
      name: '',
      updateSteps: [
        {}
      ],
      version: ''
    }
  ],
  updateTime: ''
});

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

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

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

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

const options = {
  method: 'POST',
  url: '{{baseUrl}}/v1beta/:parent/guestPolicies',
  headers: {'content-type': 'application/json'},
  data: {
    assignment: {
      groupLabels: [{labels: {}}],
      instanceNamePrefixes: [],
      instances: [],
      osTypes: [{osArchitecture: '', osShortName: '', osVersion: ''}],
      zones: []
    },
    createTime: '',
    description: '',
    etag: '',
    name: '',
    packageRepositories: [
      {
        apt: {archiveType: '', components: [], distribution: '', gpgKey: '', uri: ''},
        goo: {name: '', url: ''},
        yum: {baseUrl: '', displayName: '', gpgKeys: [], id: ''},
        zypper: {baseUrl: '', displayName: '', gpgKeys: [], id: ''}
      }
    ],
    packages: [{desiredState: '', manager: '', name: ''}],
    recipes: [
      {
        artifacts: [
          {
            allowInsecure: false,
            gcs: {bucket: '', generation: '', object: ''},
            id: '',
            remote: {checksum: '', uri: ''}
          }
        ],
        desiredState: '',
        installSteps: [
          {
            archiveExtraction: {artifactId: '', destination: '', type: ''},
            dpkgInstallation: {artifactId: ''},
            fileCopy: {artifactId: '', destination: '', overwrite: false, permissions: ''},
            fileExec: {allowedExitCodes: [], args: [], artifactId: '', localPath: ''},
            msiInstallation: {allowedExitCodes: [], artifactId: '', flags: []},
            rpmInstallation: {artifactId: ''},
            scriptRun: {allowedExitCodes: [], interpreter: '', script: ''}
          }
        ],
        name: '',
        updateSteps: [{}],
        version: ''
      }
    ],
    updateTime: ''
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/v1beta/:parent/guestPolicies';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"assignment":{"groupLabels":[{"labels":{}}],"instanceNamePrefixes":[],"instances":[],"osTypes":[{"osArchitecture":"","osShortName":"","osVersion":""}],"zones":[]},"createTime":"","description":"","etag":"","name":"","packageRepositories":[{"apt":{"archiveType":"","components":[],"distribution":"","gpgKey":"","uri":""},"goo":{"name":"","url":""},"yum":{"baseUrl":"","displayName":"","gpgKeys":[],"id":""},"zypper":{"baseUrl":"","displayName":"","gpgKeys":[],"id":""}}],"packages":[{"desiredState":"","manager":"","name":""}],"recipes":[{"artifacts":[{"allowInsecure":false,"gcs":{"bucket":"","generation":"","object":""},"id":"","remote":{"checksum":"","uri":""}}],"desiredState":"","installSteps":[{"archiveExtraction":{"artifactId":"","destination":"","type":""},"dpkgInstallation":{"artifactId":""},"fileCopy":{"artifactId":"","destination":"","overwrite":false,"permissions":""},"fileExec":{"allowedExitCodes":[],"args":[],"artifactId":"","localPath":""},"msiInstallation":{"allowedExitCodes":[],"artifactId":"","flags":[]},"rpmInstallation":{"artifactId":""},"scriptRun":{"allowedExitCodes":[],"interpreter":"","script":""}}],"name":"","updateSteps":[{}],"version":""}],"updateTime":""}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/v1beta/:parent/guestPolicies',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "assignment": {\n    "groupLabels": [\n      {\n        "labels": {}\n      }\n    ],\n    "instanceNamePrefixes": [],\n    "instances": [],\n    "osTypes": [\n      {\n        "osArchitecture": "",\n        "osShortName": "",\n        "osVersion": ""\n      }\n    ],\n    "zones": []\n  },\n  "createTime": "",\n  "description": "",\n  "etag": "",\n  "name": "",\n  "packageRepositories": [\n    {\n      "apt": {\n        "archiveType": "",\n        "components": [],\n        "distribution": "",\n        "gpgKey": "",\n        "uri": ""\n      },\n      "goo": {\n        "name": "",\n        "url": ""\n      },\n      "yum": {\n        "baseUrl": "",\n        "displayName": "",\n        "gpgKeys": [],\n        "id": ""\n      },\n      "zypper": {\n        "baseUrl": "",\n        "displayName": "",\n        "gpgKeys": [],\n        "id": ""\n      }\n    }\n  ],\n  "packages": [\n    {\n      "desiredState": "",\n      "manager": "",\n      "name": ""\n    }\n  ],\n  "recipes": [\n    {\n      "artifacts": [\n        {\n          "allowInsecure": false,\n          "gcs": {\n            "bucket": "",\n            "generation": "",\n            "object": ""\n          },\n          "id": "",\n          "remote": {\n            "checksum": "",\n            "uri": ""\n          }\n        }\n      ],\n      "desiredState": "",\n      "installSteps": [\n        {\n          "archiveExtraction": {\n            "artifactId": "",\n            "destination": "",\n            "type": ""\n          },\n          "dpkgInstallation": {\n            "artifactId": ""\n          },\n          "fileCopy": {\n            "artifactId": "",\n            "destination": "",\n            "overwrite": false,\n            "permissions": ""\n          },\n          "fileExec": {\n            "allowedExitCodes": [],\n            "args": [],\n            "artifactId": "",\n            "localPath": ""\n          },\n          "msiInstallation": {\n            "allowedExitCodes": [],\n            "artifactId": "",\n            "flags": []\n          },\n          "rpmInstallation": {\n            "artifactId": ""\n          },\n          "scriptRun": {\n            "allowedExitCodes": [],\n            "interpreter": "",\n            "script": ""\n          }\n        }\n      ],\n      "name": "",\n      "updateSteps": [\n        {}\n      ],\n      "version": ""\n    }\n  ],\n  "updateTime": ""\n}'
};

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

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"assignment\": {\n    \"groupLabels\": [\n      {\n        \"labels\": {}\n      }\n    ],\n    \"instanceNamePrefixes\": [],\n    \"instances\": [],\n    \"osTypes\": [\n      {\n        \"osArchitecture\": \"\",\n        \"osShortName\": \"\",\n        \"osVersion\": \"\"\n      }\n    ],\n    \"zones\": []\n  },\n  \"createTime\": \"\",\n  \"description\": \"\",\n  \"etag\": \"\",\n  \"name\": \"\",\n  \"packageRepositories\": [\n    {\n      \"apt\": {\n        \"archiveType\": \"\",\n        \"components\": [],\n        \"distribution\": \"\",\n        \"gpgKey\": \"\",\n        \"uri\": \"\"\n      },\n      \"goo\": {\n        \"name\": \"\",\n        \"url\": \"\"\n      },\n      \"yum\": {\n        \"baseUrl\": \"\",\n        \"displayName\": \"\",\n        \"gpgKeys\": [],\n        \"id\": \"\"\n      },\n      \"zypper\": {\n        \"baseUrl\": \"\",\n        \"displayName\": \"\",\n        \"gpgKeys\": [],\n        \"id\": \"\"\n      }\n    }\n  ],\n  \"packages\": [\n    {\n      \"desiredState\": \"\",\n      \"manager\": \"\",\n      \"name\": \"\"\n    }\n  ],\n  \"recipes\": [\n    {\n      \"artifacts\": [\n        {\n          \"allowInsecure\": false,\n          \"gcs\": {\n            \"bucket\": \"\",\n            \"generation\": \"\",\n            \"object\": \"\"\n          },\n          \"id\": \"\",\n          \"remote\": {\n            \"checksum\": \"\",\n            \"uri\": \"\"\n          }\n        }\n      ],\n      \"desiredState\": \"\",\n      \"installSteps\": [\n        {\n          \"archiveExtraction\": {\n            \"artifactId\": \"\",\n            \"destination\": \"\",\n            \"type\": \"\"\n          },\n          \"dpkgInstallation\": {\n            \"artifactId\": \"\"\n          },\n          \"fileCopy\": {\n            \"artifactId\": \"\",\n            \"destination\": \"\",\n            \"overwrite\": false,\n            \"permissions\": \"\"\n          },\n          \"fileExec\": {\n            \"allowedExitCodes\": [],\n            \"args\": [],\n            \"artifactId\": \"\",\n            \"localPath\": \"\"\n          },\n          \"msiInstallation\": {\n            \"allowedExitCodes\": [],\n            \"artifactId\": \"\",\n            \"flags\": []\n          },\n          \"rpmInstallation\": {\n            \"artifactId\": \"\"\n          },\n          \"scriptRun\": {\n            \"allowedExitCodes\": [],\n            \"interpreter\": \"\",\n            \"script\": \"\"\n          }\n        }\n      ],\n      \"name\": \"\",\n      \"updateSteps\": [\n        {}\n      ],\n      \"version\": \"\"\n    }\n  ],\n  \"updateTime\": \"\"\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/v1beta/:parent/guestPolicies")
  .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/v1beta/:parent/guestPolicies',
  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({
  assignment: {
    groupLabels: [{labels: {}}],
    instanceNamePrefixes: [],
    instances: [],
    osTypes: [{osArchitecture: '', osShortName: '', osVersion: ''}],
    zones: []
  },
  createTime: '',
  description: '',
  etag: '',
  name: '',
  packageRepositories: [
    {
      apt: {archiveType: '', components: [], distribution: '', gpgKey: '', uri: ''},
      goo: {name: '', url: ''},
      yum: {baseUrl: '', displayName: '', gpgKeys: [], id: ''},
      zypper: {baseUrl: '', displayName: '', gpgKeys: [], id: ''}
    }
  ],
  packages: [{desiredState: '', manager: '', name: ''}],
  recipes: [
    {
      artifacts: [
        {
          allowInsecure: false,
          gcs: {bucket: '', generation: '', object: ''},
          id: '',
          remote: {checksum: '', uri: ''}
        }
      ],
      desiredState: '',
      installSteps: [
        {
          archiveExtraction: {artifactId: '', destination: '', type: ''},
          dpkgInstallation: {artifactId: ''},
          fileCopy: {artifactId: '', destination: '', overwrite: false, permissions: ''},
          fileExec: {allowedExitCodes: [], args: [], artifactId: '', localPath: ''},
          msiInstallation: {allowedExitCodes: [], artifactId: '', flags: []},
          rpmInstallation: {artifactId: ''},
          scriptRun: {allowedExitCodes: [], interpreter: '', script: ''}
        }
      ],
      name: '',
      updateSteps: [{}],
      version: ''
    }
  ],
  updateTime: ''
}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/v1beta/:parent/guestPolicies',
  headers: {'content-type': 'application/json'},
  body: {
    assignment: {
      groupLabels: [{labels: {}}],
      instanceNamePrefixes: [],
      instances: [],
      osTypes: [{osArchitecture: '', osShortName: '', osVersion: ''}],
      zones: []
    },
    createTime: '',
    description: '',
    etag: '',
    name: '',
    packageRepositories: [
      {
        apt: {archiveType: '', components: [], distribution: '', gpgKey: '', uri: ''},
        goo: {name: '', url: ''},
        yum: {baseUrl: '', displayName: '', gpgKeys: [], id: ''},
        zypper: {baseUrl: '', displayName: '', gpgKeys: [], id: ''}
      }
    ],
    packages: [{desiredState: '', manager: '', name: ''}],
    recipes: [
      {
        artifacts: [
          {
            allowInsecure: false,
            gcs: {bucket: '', generation: '', object: ''},
            id: '',
            remote: {checksum: '', uri: ''}
          }
        ],
        desiredState: '',
        installSteps: [
          {
            archiveExtraction: {artifactId: '', destination: '', type: ''},
            dpkgInstallation: {artifactId: ''},
            fileCopy: {artifactId: '', destination: '', overwrite: false, permissions: ''},
            fileExec: {allowedExitCodes: [], args: [], artifactId: '', localPath: ''},
            msiInstallation: {allowedExitCodes: [], artifactId: '', flags: []},
            rpmInstallation: {artifactId: ''},
            scriptRun: {allowedExitCodes: [], interpreter: '', script: ''}
          }
        ],
        name: '',
        updateSteps: [{}],
        version: ''
      }
    ],
    updateTime: ''
  },
  json: true
};

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

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

const req = unirest('POST', '{{baseUrl}}/v1beta/:parent/guestPolicies');

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

req.type('json');
req.send({
  assignment: {
    groupLabels: [
      {
        labels: {}
      }
    ],
    instanceNamePrefixes: [],
    instances: [],
    osTypes: [
      {
        osArchitecture: '',
        osShortName: '',
        osVersion: ''
      }
    ],
    zones: []
  },
  createTime: '',
  description: '',
  etag: '',
  name: '',
  packageRepositories: [
    {
      apt: {
        archiveType: '',
        components: [],
        distribution: '',
        gpgKey: '',
        uri: ''
      },
      goo: {
        name: '',
        url: ''
      },
      yum: {
        baseUrl: '',
        displayName: '',
        gpgKeys: [],
        id: ''
      },
      zypper: {
        baseUrl: '',
        displayName: '',
        gpgKeys: [],
        id: ''
      }
    }
  ],
  packages: [
    {
      desiredState: '',
      manager: '',
      name: ''
    }
  ],
  recipes: [
    {
      artifacts: [
        {
          allowInsecure: false,
          gcs: {
            bucket: '',
            generation: '',
            object: ''
          },
          id: '',
          remote: {
            checksum: '',
            uri: ''
          }
        }
      ],
      desiredState: '',
      installSteps: [
        {
          archiveExtraction: {
            artifactId: '',
            destination: '',
            type: ''
          },
          dpkgInstallation: {
            artifactId: ''
          },
          fileCopy: {
            artifactId: '',
            destination: '',
            overwrite: false,
            permissions: ''
          },
          fileExec: {
            allowedExitCodes: [],
            args: [],
            artifactId: '',
            localPath: ''
          },
          msiInstallation: {
            allowedExitCodes: [],
            artifactId: '',
            flags: []
          },
          rpmInstallation: {
            artifactId: ''
          },
          scriptRun: {
            allowedExitCodes: [],
            interpreter: '',
            script: ''
          }
        }
      ],
      name: '',
      updateSteps: [
        {}
      ],
      version: ''
    }
  ],
  updateTime: ''
});

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

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

const options = {
  method: 'POST',
  url: '{{baseUrl}}/v1beta/:parent/guestPolicies',
  headers: {'content-type': 'application/json'},
  data: {
    assignment: {
      groupLabels: [{labels: {}}],
      instanceNamePrefixes: [],
      instances: [],
      osTypes: [{osArchitecture: '', osShortName: '', osVersion: ''}],
      zones: []
    },
    createTime: '',
    description: '',
    etag: '',
    name: '',
    packageRepositories: [
      {
        apt: {archiveType: '', components: [], distribution: '', gpgKey: '', uri: ''},
        goo: {name: '', url: ''},
        yum: {baseUrl: '', displayName: '', gpgKeys: [], id: ''},
        zypper: {baseUrl: '', displayName: '', gpgKeys: [], id: ''}
      }
    ],
    packages: [{desiredState: '', manager: '', name: ''}],
    recipes: [
      {
        artifacts: [
          {
            allowInsecure: false,
            gcs: {bucket: '', generation: '', object: ''},
            id: '',
            remote: {checksum: '', uri: ''}
          }
        ],
        desiredState: '',
        installSteps: [
          {
            archiveExtraction: {artifactId: '', destination: '', type: ''},
            dpkgInstallation: {artifactId: ''},
            fileCopy: {artifactId: '', destination: '', overwrite: false, permissions: ''},
            fileExec: {allowedExitCodes: [], args: [], artifactId: '', localPath: ''},
            msiInstallation: {allowedExitCodes: [], artifactId: '', flags: []},
            rpmInstallation: {artifactId: ''},
            scriptRun: {allowedExitCodes: [], interpreter: '', script: ''}
          }
        ],
        name: '',
        updateSteps: [{}],
        version: ''
      }
    ],
    updateTime: ''
  }
};

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

const url = '{{baseUrl}}/v1beta/:parent/guestPolicies';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"assignment":{"groupLabels":[{"labels":{}}],"instanceNamePrefixes":[],"instances":[],"osTypes":[{"osArchitecture":"","osShortName":"","osVersion":""}],"zones":[]},"createTime":"","description":"","etag":"","name":"","packageRepositories":[{"apt":{"archiveType":"","components":[],"distribution":"","gpgKey":"","uri":""},"goo":{"name":"","url":""},"yum":{"baseUrl":"","displayName":"","gpgKeys":[],"id":""},"zypper":{"baseUrl":"","displayName":"","gpgKeys":[],"id":""}}],"packages":[{"desiredState":"","manager":"","name":""}],"recipes":[{"artifacts":[{"allowInsecure":false,"gcs":{"bucket":"","generation":"","object":""},"id":"","remote":{"checksum":"","uri":""}}],"desiredState":"","installSteps":[{"archiveExtraction":{"artifactId":"","destination":"","type":""},"dpkgInstallation":{"artifactId":""},"fileCopy":{"artifactId":"","destination":"","overwrite":false,"permissions":""},"fileExec":{"allowedExitCodes":[],"args":[],"artifactId":"","localPath":""},"msiInstallation":{"allowedExitCodes":[],"artifactId":"","flags":[]},"rpmInstallation":{"artifactId":""},"scriptRun":{"allowedExitCodes":[],"interpreter":"","script":""}}],"name":"","updateSteps":[{}],"version":""}],"updateTime":""}'
};

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

NSDictionary *headers = @{ @"content-type": @"application/json" };
NSDictionary *parameters = @{ @"assignment": @{ @"groupLabels": @[ @{ @"labels": @{  } } ], @"instanceNamePrefixes": @[  ], @"instances": @[  ], @"osTypes": @[ @{ @"osArchitecture": @"", @"osShortName": @"", @"osVersion": @"" } ], @"zones": @[  ] },
                              @"createTime": @"",
                              @"description": @"",
                              @"etag": @"",
                              @"name": @"",
                              @"packageRepositories": @[ @{ @"apt": @{ @"archiveType": @"", @"components": @[  ], @"distribution": @"", @"gpgKey": @"", @"uri": @"" }, @"goo": @{ @"name": @"", @"url": @"" }, @"yum": @{ @"baseUrl": @"", @"displayName": @"", @"gpgKeys": @[  ], @"id": @"" }, @"zypper": @{ @"baseUrl": @"", @"displayName": @"", @"gpgKeys": @[  ], @"id": @"" } } ],
                              @"packages": @[ @{ @"desiredState": @"", @"manager": @"", @"name": @"" } ],
                              @"recipes": @[ @{ @"artifacts": @[ @{ @"allowInsecure": @NO, @"gcs": @{ @"bucket": @"", @"generation": @"", @"object": @"" }, @"id": @"", @"remote": @{ @"checksum": @"", @"uri": @"" } } ], @"desiredState": @"", @"installSteps": @[ @{ @"archiveExtraction": @{ @"artifactId": @"", @"destination": @"", @"type": @"" }, @"dpkgInstallation": @{ @"artifactId": @"" }, @"fileCopy": @{ @"artifactId": @"", @"destination": @"", @"overwrite": @NO, @"permissions": @"" }, @"fileExec": @{ @"allowedExitCodes": @[  ], @"args": @[  ], @"artifactId": @"", @"localPath": @"" }, @"msiInstallation": @{ @"allowedExitCodes": @[  ], @"artifactId": @"", @"flags": @[  ] }, @"rpmInstallation": @{ @"artifactId": @"" }, @"scriptRun": @{ @"allowedExitCodes": @[  ], @"interpreter": @"", @"script": @"" } } ], @"name": @"", @"updateSteps": @[ @{  } ], @"version": @"" } ],
                              @"updateTime": @"" };

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

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/v1beta/:parent/guestPolicies"]
                                                       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}}/v1beta/:parent/guestPolicies" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"assignment\": {\n    \"groupLabels\": [\n      {\n        \"labels\": {}\n      }\n    ],\n    \"instanceNamePrefixes\": [],\n    \"instances\": [],\n    \"osTypes\": [\n      {\n        \"osArchitecture\": \"\",\n        \"osShortName\": \"\",\n        \"osVersion\": \"\"\n      }\n    ],\n    \"zones\": []\n  },\n  \"createTime\": \"\",\n  \"description\": \"\",\n  \"etag\": \"\",\n  \"name\": \"\",\n  \"packageRepositories\": [\n    {\n      \"apt\": {\n        \"archiveType\": \"\",\n        \"components\": [],\n        \"distribution\": \"\",\n        \"gpgKey\": \"\",\n        \"uri\": \"\"\n      },\n      \"goo\": {\n        \"name\": \"\",\n        \"url\": \"\"\n      },\n      \"yum\": {\n        \"baseUrl\": \"\",\n        \"displayName\": \"\",\n        \"gpgKeys\": [],\n        \"id\": \"\"\n      },\n      \"zypper\": {\n        \"baseUrl\": \"\",\n        \"displayName\": \"\",\n        \"gpgKeys\": [],\n        \"id\": \"\"\n      }\n    }\n  ],\n  \"packages\": [\n    {\n      \"desiredState\": \"\",\n      \"manager\": \"\",\n      \"name\": \"\"\n    }\n  ],\n  \"recipes\": [\n    {\n      \"artifacts\": [\n        {\n          \"allowInsecure\": false,\n          \"gcs\": {\n            \"bucket\": \"\",\n            \"generation\": \"\",\n            \"object\": \"\"\n          },\n          \"id\": \"\",\n          \"remote\": {\n            \"checksum\": \"\",\n            \"uri\": \"\"\n          }\n        }\n      ],\n      \"desiredState\": \"\",\n      \"installSteps\": [\n        {\n          \"archiveExtraction\": {\n            \"artifactId\": \"\",\n            \"destination\": \"\",\n            \"type\": \"\"\n          },\n          \"dpkgInstallation\": {\n            \"artifactId\": \"\"\n          },\n          \"fileCopy\": {\n            \"artifactId\": \"\",\n            \"destination\": \"\",\n            \"overwrite\": false,\n            \"permissions\": \"\"\n          },\n          \"fileExec\": {\n            \"allowedExitCodes\": [],\n            \"args\": [],\n            \"artifactId\": \"\",\n            \"localPath\": \"\"\n          },\n          \"msiInstallation\": {\n            \"allowedExitCodes\": [],\n            \"artifactId\": \"\",\n            \"flags\": []\n          },\n          \"rpmInstallation\": {\n            \"artifactId\": \"\"\n          },\n          \"scriptRun\": {\n            \"allowedExitCodes\": [],\n            \"interpreter\": \"\",\n            \"script\": \"\"\n          }\n        }\n      ],\n      \"name\": \"\",\n      \"updateSteps\": [\n        {}\n      ],\n      \"version\": \"\"\n    }\n  ],\n  \"updateTime\": \"\"\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/v1beta/:parent/guestPolicies",
  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([
    'assignment' => [
        'groupLabels' => [
                [
                                'labels' => [
                                                                
                                ]
                ]
        ],
        'instanceNamePrefixes' => [
                
        ],
        'instances' => [
                
        ],
        'osTypes' => [
                [
                                'osArchitecture' => '',
                                'osShortName' => '',
                                'osVersion' => ''
                ]
        ],
        'zones' => [
                
        ]
    ],
    'createTime' => '',
    'description' => '',
    'etag' => '',
    'name' => '',
    'packageRepositories' => [
        [
                'apt' => [
                                'archiveType' => '',
                                'components' => [
                                                                
                                ],
                                'distribution' => '',
                                'gpgKey' => '',
                                'uri' => ''
                ],
                'goo' => [
                                'name' => '',
                                'url' => ''
                ],
                'yum' => [
                                'baseUrl' => '',
                                'displayName' => '',
                                'gpgKeys' => [
                                                                
                                ],
                                'id' => ''
                ],
                'zypper' => [
                                'baseUrl' => '',
                                'displayName' => '',
                                'gpgKeys' => [
                                                                
                                ],
                                'id' => ''
                ]
        ]
    ],
    'packages' => [
        [
                'desiredState' => '',
                'manager' => '',
                'name' => ''
        ]
    ],
    'recipes' => [
        [
                'artifacts' => [
                                [
                                                                'allowInsecure' => null,
                                                                'gcs' => [
                                                                                                                                'bucket' => '',
                                                                                                                                'generation' => '',
                                                                                                                                'object' => ''
                                                                ],
                                                                'id' => '',
                                                                'remote' => [
                                                                                                                                'checksum' => '',
                                                                                                                                'uri' => ''
                                                                ]
                                ]
                ],
                'desiredState' => '',
                'installSteps' => [
                                [
                                                                'archiveExtraction' => [
                                                                                                                                'artifactId' => '',
                                                                                                                                'destination' => '',
                                                                                                                                'type' => ''
                                                                ],
                                                                'dpkgInstallation' => [
                                                                                                                                'artifactId' => ''
                                                                ],
                                                                'fileCopy' => [
                                                                                                                                'artifactId' => '',
                                                                                                                                'destination' => '',
                                                                                                                                'overwrite' => null,
                                                                                                                                'permissions' => ''
                                                                ],
                                                                'fileExec' => [
                                                                                                                                'allowedExitCodes' => [
                                                                                                                                                                                                                                                                
                                                                                                                                ],
                                                                                                                                'args' => [
                                                                                                                                                                                                                                                                
                                                                                                                                ],
                                                                                                                                'artifactId' => '',
                                                                                                                                'localPath' => ''
                                                                ],
                                                                'msiInstallation' => [
                                                                                                                                'allowedExitCodes' => [
                                                                                                                                                                                                                                                                
                                                                                                                                ],
                                                                                                                                'artifactId' => '',
                                                                                                                                'flags' => [
                                                                                                                                                                                                                                                                
                                                                                                                                ]
                                                                ],
                                                                'rpmInstallation' => [
                                                                                                                                'artifactId' => ''
                                                                ],
                                                                'scriptRun' => [
                                                                                                                                'allowedExitCodes' => [
                                                                                                                                                                                                                                                                
                                                                                                                                ],
                                                                                                                                'interpreter' => '',
                                                                                                                                'script' => ''
                                                                ]
                                ]
                ],
                'name' => '',
                'updateSteps' => [
                                [
                                                                
                                ]
                ],
                'version' => ''
        ]
    ],
    'updateTime' => ''
  ]),
  CURLOPT_HTTPHEADER => [
    "content-type: application/json"
  ],
]);

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

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('POST', '{{baseUrl}}/v1beta/:parent/guestPolicies', [
  'body' => '{
  "assignment": {
    "groupLabels": [
      {
        "labels": {}
      }
    ],
    "instanceNamePrefixes": [],
    "instances": [],
    "osTypes": [
      {
        "osArchitecture": "",
        "osShortName": "",
        "osVersion": ""
      }
    ],
    "zones": []
  },
  "createTime": "",
  "description": "",
  "etag": "",
  "name": "",
  "packageRepositories": [
    {
      "apt": {
        "archiveType": "",
        "components": [],
        "distribution": "",
        "gpgKey": "",
        "uri": ""
      },
      "goo": {
        "name": "",
        "url": ""
      },
      "yum": {
        "baseUrl": "",
        "displayName": "",
        "gpgKeys": [],
        "id": ""
      },
      "zypper": {
        "baseUrl": "",
        "displayName": "",
        "gpgKeys": [],
        "id": ""
      }
    }
  ],
  "packages": [
    {
      "desiredState": "",
      "manager": "",
      "name": ""
    }
  ],
  "recipes": [
    {
      "artifacts": [
        {
          "allowInsecure": false,
          "gcs": {
            "bucket": "",
            "generation": "",
            "object": ""
          },
          "id": "",
          "remote": {
            "checksum": "",
            "uri": ""
          }
        }
      ],
      "desiredState": "",
      "installSteps": [
        {
          "archiveExtraction": {
            "artifactId": "",
            "destination": "",
            "type": ""
          },
          "dpkgInstallation": {
            "artifactId": ""
          },
          "fileCopy": {
            "artifactId": "",
            "destination": "",
            "overwrite": false,
            "permissions": ""
          },
          "fileExec": {
            "allowedExitCodes": [],
            "args": [],
            "artifactId": "",
            "localPath": ""
          },
          "msiInstallation": {
            "allowedExitCodes": [],
            "artifactId": "",
            "flags": []
          },
          "rpmInstallation": {
            "artifactId": ""
          },
          "scriptRun": {
            "allowedExitCodes": [],
            "interpreter": "",
            "script": ""
          }
        }
      ],
      "name": "",
      "updateSteps": [
        {}
      ],
      "version": ""
    }
  ],
  "updateTime": ""
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

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

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

$request->setContentType('application/json');
$request->setBody(json_encode([
  'assignment' => [
    'groupLabels' => [
        [
                'labels' => [
                                
                ]
        ]
    ],
    'instanceNamePrefixes' => [
        
    ],
    'instances' => [
        
    ],
    'osTypes' => [
        [
                'osArchitecture' => '',
                'osShortName' => '',
                'osVersion' => ''
        ]
    ],
    'zones' => [
        
    ]
  ],
  'createTime' => '',
  'description' => '',
  'etag' => '',
  'name' => '',
  'packageRepositories' => [
    [
        'apt' => [
                'archiveType' => '',
                'components' => [
                                
                ],
                'distribution' => '',
                'gpgKey' => '',
                'uri' => ''
        ],
        'goo' => [
                'name' => '',
                'url' => ''
        ],
        'yum' => [
                'baseUrl' => '',
                'displayName' => '',
                'gpgKeys' => [
                                
                ],
                'id' => ''
        ],
        'zypper' => [
                'baseUrl' => '',
                'displayName' => '',
                'gpgKeys' => [
                                
                ],
                'id' => ''
        ]
    ]
  ],
  'packages' => [
    [
        'desiredState' => '',
        'manager' => '',
        'name' => ''
    ]
  ],
  'recipes' => [
    [
        'artifacts' => [
                [
                                'allowInsecure' => null,
                                'gcs' => [
                                                                'bucket' => '',
                                                                'generation' => '',
                                                                'object' => ''
                                ],
                                'id' => '',
                                'remote' => [
                                                                'checksum' => '',
                                                                'uri' => ''
                                ]
                ]
        ],
        'desiredState' => '',
        'installSteps' => [
                [
                                'archiveExtraction' => [
                                                                'artifactId' => '',
                                                                'destination' => '',
                                                                'type' => ''
                                ],
                                'dpkgInstallation' => [
                                                                'artifactId' => ''
                                ],
                                'fileCopy' => [
                                                                'artifactId' => '',
                                                                'destination' => '',
                                                                'overwrite' => null,
                                                                'permissions' => ''
                                ],
                                'fileExec' => [
                                                                'allowedExitCodes' => [
                                                                                                                                
                                                                ],
                                                                'args' => [
                                                                                                                                
                                                                ],
                                                                'artifactId' => '',
                                                                'localPath' => ''
                                ],
                                'msiInstallation' => [
                                                                'allowedExitCodes' => [
                                                                                                                                
                                                                ],
                                                                'artifactId' => '',
                                                                'flags' => [
                                                                                                                                
                                                                ]
                                ],
                                'rpmInstallation' => [
                                                                'artifactId' => ''
                                ],
                                'scriptRun' => [
                                                                'allowedExitCodes' => [
                                                                                                                                
                                                                ],
                                                                'interpreter' => '',
                                                                'script' => ''
                                ]
                ]
        ],
        'name' => '',
        'updateSteps' => [
                [
                                
                ]
        ],
        'version' => ''
    ]
  ],
  'updateTime' => ''
]));

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'assignment' => [
    'groupLabels' => [
        [
                'labels' => [
                                
                ]
        ]
    ],
    'instanceNamePrefixes' => [
        
    ],
    'instances' => [
        
    ],
    'osTypes' => [
        [
                'osArchitecture' => '',
                'osShortName' => '',
                'osVersion' => ''
        ]
    ],
    'zones' => [
        
    ]
  ],
  'createTime' => '',
  'description' => '',
  'etag' => '',
  'name' => '',
  'packageRepositories' => [
    [
        'apt' => [
                'archiveType' => '',
                'components' => [
                                
                ],
                'distribution' => '',
                'gpgKey' => '',
                'uri' => ''
        ],
        'goo' => [
                'name' => '',
                'url' => ''
        ],
        'yum' => [
                'baseUrl' => '',
                'displayName' => '',
                'gpgKeys' => [
                                
                ],
                'id' => ''
        ],
        'zypper' => [
                'baseUrl' => '',
                'displayName' => '',
                'gpgKeys' => [
                                
                ],
                'id' => ''
        ]
    ]
  ],
  'packages' => [
    [
        'desiredState' => '',
        'manager' => '',
        'name' => ''
    ]
  ],
  'recipes' => [
    [
        'artifacts' => [
                [
                                'allowInsecure' => null,
                                'gcs' => [
                                                                'bucket' => '',
                                                                'generation' => '',
                                                                'object' => ''
                                ],
                                'id' => '',
                                'remote' => [
                                                                'checksum' => '',
                                                                'uri' => ''
                                ]
                ]
        ],
        'desiredState' => '',
        'installSteps' => [
                [
                                'archiveExtraction' => [
                                                                'artifactId' => '',
                                                                'destination' => '',
                                                                'type' => ''
                                ],
                                'dpkgInstallation' => [
                                                                'artifactId' => ''
                                ],
                                'fileCopy' => [
                                                                'artifactId' => '',
                                                                'destination' => '',
                                                                'overwrite' => null,
                                                                'permissions' => ''
                                ],
                                'fileExec' => [
                                                                'allowedExitCodes' => [
                                                                                                                                
                                                                ],
                                                                'args' => [
                                                                                                                                
                                                                ],
                                                                'artifactId' => '',
                                                                'localPath' => ''
                                ],
                                'msiInstallation' => [
                                                                'allowedExitCodes' => [
                                                                                                                                
                                                                ],
                                                                'artifactId' => '',
                                                                'flags' => [
                                                                                                                                
                                                                ]
                                ],
                                'rpmInstallation' => [
                                                                'artifactId' => ''
                                ],
                                'scriptRun' => [
                                                                'allowedExitCodes' => [
                                                                                                                                
                                                                ],
                                                                'interpreter' => '',
                                                                'script' => ''
                                ]
                ]
        ],
        'name' => '',
        'updateSteps' => [
                [
                                
                ]
        ],
        'version' => ''
    ]
  ],
  'updateTime' => ''
]));
$request->setRequestUrl('{{baseUrl}}/v1beta/:parent/guestPolicies');
$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}}/v1beta/:parent/guestPolicies' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "assignment": {
    "groupLabels": [
      {
        "labels": {}
      }
    ],
    "instanceNamePrefixes": [],
    "instances": [],
    "osTypes": [
      {
        "osArchitecture": "",
        "osShortName": "",
        "osVersion": ""
      }
    ],
    "zones": []
  },
  "createTime": "",
  "description": "",
  "etag": "",
  "name": "",
  "packageRepositories": [
    {
      "apt": {
        "archiveType": "",
        "components": [],
        "distribution": "",
        "gpgKey": "",
        "uri": ""
      },
      "goo": {
        "name": "",
        "url": ""
      },
      "yum": {
        "baseUrl": "",
        "displayName": "",
        "gpgKeys": [],
        "id": ""
      },
      "zypper": {
        "baseUrl": "",
        "displayName": "",
        "gpgKeys": [],
        "id": ""
      }
    }
  ],
  "packages": [
    {
      "desiredState": "",
      "manager": "",
      "name": ""
    }
  ],
  "recipes": [
    {
      "artifacts": [
        {
          "allowInsecure": false,
          "gcs": {
            "bucket": "",
            "generation": "",
            "object": ""
          },
          "id": "",
          "remote": {
            "checksum": "",
            "uri": ""
          }
        }
      ],
      "desiredState": "",
      "installSteps": [
        {
          "archiveExtraction": {
            "artifactId": "",
            "destination": "",
            "type": ""
          },
          "dpkgInstallation": {
            "artifactId": ""
          },
          "fileCopy": {
            "artifactId": "",
            "destination": "",
            "overwrite": false,
            "permissions": ""
          },
          "fileExec": {
            "allowedExitCodes": [],
            "args": [],
            "artifactId": "",
            "localPath": ""
          },
          "msiInstallation": {
            "allowedExitCodes": [],
            "artifactId": "",
            "flags": []
          },
          "rpmInstallation": {
            "artifactId": ""
          },
          "scriptRun": {
            "allowedExitCodes": [],
            "interpreter": "",
            "script": ""
          }
        }
      ],
      "name": "",
      "updateSteps": [
        {}
      ],
      "version": ""
    }
  ],
  "updateTime": ""
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/v1beta/:parent/guestPolicies' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "assignment": {
    "groupLabels": [
      {
        "labels": {}
      }
    ],
    "instanceNamePrefixes": [],
    "instances": [],
    "osTypes": [
      {
        "osArchitecture": "",
        "osShortName": "",
        "osVersion": ""
      }
    ],
    "zones": []
  },
  "createTime": "",
  "description": "",
  "etag": "",
  "name": "",
  "packageRepositories": [
    {
      "apt": {
        "archiveType": "",
        "components": [],
        "distribution": "",
        "gpgKey": "",
        "uri": ""
      },
      "goo": {
        "name": "",
        "url": ""
      },
      "yum": {
        "baseUrl": "",
        "displayName": "",
        "gpgKeys": [],
        "id": ""
      },
      "zypper": {
        "baseUrl": "",
        "displayName": "",
        "gpgKeys": [],
        "id": ""
      }
    }
  ],
  "packages": [
    {
      "desiredState": "",
      "manager": "",
      "name": ""
    }
  ],
  "recipes": [
    {
      "artifacts": [
        {
          "allowInsecure": false,
          "gcs": {
            "bucket": "",
            "generation": "",
            "object": ""
          },
          "id": "",
          "remote": {
            "checksum": "",
            "uri": ""
          }
        }
      ],
      "desiredState": "",
      "installSteps": [
        {
          "archiveExtraction": {
            "artifactId": "",
            "destination": "",
            "type": ""
          },
          "dpkgInstallation": {
            "artifactId": ""
          },
          "fileCopy": {
            "artifactId": "",
            "destination": "",
            "overwrite": false,
            "permissions": ""
          },
          "fileExec": {
            "allowedExitCodes": [],
            "args": [],
            "artifactId": "",
            "localPath": ""
          },
          "msiInstallation": {
            "allowedExitCodes": [],
            "artifactId": "",
            "flags": []
          },
          "rpmInstallation": {
            "artifactId": ""
          },
          "scriptRun": {
            "allowedExitCodes": [],
            "interpreter": "",
            "script": ""
          }
        }
      ],
      "name": "",
      "updateSteps": [
        {}
      ],
      "version": ""
    }
  ],
  "updateTime": ""
}'
import http.client

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

payload = "{\n  \"assignment\": {\n    \"groupLabels\": [\n      {\n        \"labels\": {}\n      }\n    ],\n    \"instanceNamePrefixes\": [],\n    \"instances\": [],\n    \"osTypes\": [\n      {\n        \"osArchitecture\": \"\",\n        \"osShortName\": \"\",\n        \"osVersion\": \"\"\n      }\n    ],\n    \"zones\": []\n  },\n  \"createTime\": \"\",\n  \"description\": \"\",\n  \"etag\": \"\",\n  \"name\": \"\",\n  \"packageRepositories\": [\n    {\n      \"apt\": {\n        \"archiveType\": \"\",\n        \"components\": [],\n        \"distribution\": \"\",\n        \"gpgKey\": \"\",\n        \"uri\": \"\"\n      },\n      \"goo\": {\n        \"name\": \"\",\n        \"url\": \"\"\n      },\n      \"yum\": {\n        \"baseUrl\": \"\",\n        \"displayName\": \"\",\n        \"gpgKeys\": [],\n        \"id\": \"\"\n      },\n      \"zypper\": {\n        \"baseUrl\": \"\",\n        \"displayName\": \"\",\n        \"gpgKeys\": [],\n        \"id\": \"\"\n      }\n    }\n  ],\n  \"packages\": [\n    {\n      \"desiredState\": \"\",\n      \"manager\": \"\",\n      \"name\": \"\"\n    }\n  ],\n  \"recipes\": [\n    {\n      \"artifacts\": [\n        {\n          \"allowInsecure\": false,\n          \"gcs\": {\n            \"bucket\": \"\",\n            \"generation\": \"\",\n            \"object\": \"\"\n          },\n          \"id\": \"\",\n          \"remote\": {\n            \"checksum\": \"\",\n            \"uri\": \"\"\n          }\n        }\n      ],\n      \"desiredState\": \"\",\n      \"installSteps\": [\n        {\n          \"archiveExtraction\": {\n            \"artifactId\": \"\",\n            \"destination\": \"\",\n            \"type\": \"\"\n          },\n          \"dpkgInstallation\": {\n            \"artifactId\": \"\"\n          },\n          \"fileCopy\": {\n            \"artifactId\": \"\",\n            \"destination\": \"\",\n            \"overwrite\": false,\n            \"permissions\": \"\"\n          },\n          \"fileExec\": {\n            \"allowedExitCodes\": [],\n            \"args\": [],\n            \"artifactId\": \"\",\n            \"localPath\": \"\"\n          },\n          \"msiInstallation\": {\n            \"allowedExitCodes\": [],\n            \"artifactId\": \"\",\n            \"flags\": []\n          },\n          \"rpmInstallation\": {\n            \"artifactId\": \"\"\n          },\n          \"scriptRun\": {\n            \"allowedExitCodes\": [],\n            \"interpreter\": \"\",\n            \"script\": \"\"\n          }\n        }\n      ],\n      \"name\": \"\",\n      \"updateSteps\": [\n        {}\n      ],\n      \"version\": \"\"\n    }\n  ],\n  \"updateTime\": \"\"\n}"

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

conn.request("POST", "/baseUrl/v1beta/:parent/guestPolicies", payload, headers)

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

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

url = "{{baseUrl}}/v1beta/:parent/guestPolicies"

payload = {
    "assignment": {
        "groupLabels": [{ "labels": {} }],
        "instanceNamePrefixes": [],
        "instances": [],
        "osTypes": [
            {
                "osArchitecture": "",
                "osShortName": "",
                "osVersion": ""
            }
        ],
        "zones": []
    },
    "createTime": "",
    "description": "",
    "etag": "",
    "name": "",
    "packageRepositories": [
        {
            "apt": {
                "archiveType": "",
                "components": [],
                "distribution": "",
                "gpgKey": "",
                "uri": ""
            },
            "goo": {
                "name": "",
                "url": ""
            },
            "yum": {
                "baseUrl": "",
                "displayName": "",
                "gpgKeys": [],
                "id": ""
            },
            "zypper": {
                "baseUrl": "",
                "displayName": "",
                "gpgKeys": [],
                "id": ""
            }
        }
    ],
    "packages": [
        {
            "desiredState": "",
            "manager": "",
            "name": ""
        }
    ],
    "recipes": [
        {
            "artifacts": [
                {
                    "allowInsecure": False,
                    "gcs": {
                        "bucket": "",
                        "generation": "",
                        "object": ""
                    },
                    "id": "",
                    "remote": {
                        "checksum": "",
                        "uri": ""
                    }
                }
            ],
            "desiredState": "",
            "installSteps": [
                {
                    "archiveExtraction": {
                        "artifactId": "",
                        "destination": "",
                        "type": ""
                    },
                    "dpkgInstallation": { "artifactId": "" },
                    "fileCopy": {
                        "artifactId": "",
                        "destination": "",
                        "overwrite": False,
                        "permissions": ""
                    },
                    "fileExec": {
                        "allowedExitCodes": [],
                        "args": [],
                        "artifactId": "",
                        "localPath": ""
                    },
                    "msiInstallation": {
                        "allowedExitCodes": [],
                        "artifactId": "",
                        "flags": []
                    },
                    "rpmInstallation": { "artifactId": "" },
                    "scriptRun": {
                        "allowedExitCodes": [],
                        "interpreter": "",
                        "script": ""
                    }
                }
            ],
            "name": "",
            "updateSteps": [{}],
            "version": ""
        }
    ],
    "updateTime": ""
}
headers = {"content-type": "application/json"}

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

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

url <- "{{baseUrl}}/v1beta/:parent/guestPolicies"

payload <- "{\n  \"assignment\": {\n    \"groupLabels\": [\n      {\n        \"labels\": {}\n      }\n    ],\n    \"instanceNamePrefixes\": [],\n    \"instances\": [],\n    \"osTypes\": [\n      {\n        \"osArchitecture\": \"\",\n        \"osShortName\": \"\",\n        \"osVersion\": \"\"\n      }\n    ],\n    \"zones\": []\n  },\n  \"createTime\": \"\",\n  \"description\": \"\",\n  \"etag\": \"\",\n  \"name\": \"\",\n  \"packageRepositories\": [\n    {\n      \"apt\": {\n        \"archiveType\": \"\",\n        \"components\": [],\n        \"distribution\": \"\",\n        \"gpgKey\": \"\",\n        \"uri\": \"\"\n      },\n      \"goo\": {\n        \"name\": \"\",\n        \"url\": \"\"\n      },\n      \"yum\": {\n        \"baseUrl\": \"\",\n        \"displayName\": \"\",\n        \"gpgKeys\": [],\n        \"id\": \"\"\n      },\n      \"zypper\": {\n        \"baseUrl\": \"\",\n        \"displayName\": \"\",\n        \"gpgKeys\": [],\n        \"id\": \"\"\n      }\n    }\n  ],\n  \"packages\": [\n    {\n      \"desiredState\": \"\",\n      \"manager\": \"\",\n      \"name\": \"\"\n    }\n  ],\n  \"recipes\": [\n    {\n      \"artifacts\": [\n        {\n          \"allowInsecure\": false,\n          \"gcs\": {\n            \"bucket\": \"\",\n            \"generation\": \"\",\n            \"object\": \"\"\n          },\n          \"id\": \"\",\n          \"remote\": {\n            \"checksum\": \"\",\n            \"uri\": \"\"\n          }\n        }\n      ],\n      \"desiredState\": \"\",\n      \"installSteps\": [\n        {\n          \"archiveExtraction\": {\n            \"artifactId\": \"\",\n            \"destination\": \"\",\n            \"type\": \"\"\n          },\n          \"dpkgInstallation\": {\n            \"artifactId\": \"\"\n          },\n          \"fileCopy\": {\n            \"artifactId\": \"\",\n            \"destination\": \"\",\n            \"overwrite\": false,\n            \"permissions\": \"\"\n          },\n          \"fileExec\": {\n            \"allowedExitCodes\": [],\n            \"args\": [],\n            \"artifactId\": \"\",\n            \"localPath\": \"\"\n          },\n          \"msiInstallation\": {\n            \"allowedExitCodes\": [],\n            \"artifactId\": \"\",\n            \"flags\": []\n          },\n          \"rpmInstallation\": {\n            \"artifactId\": \"\"\n          },\n          \"scriptRun\": {\n            \"allowedExitCodes\": [],\n            \"interpreter\": \"\",\n            \"script\": \"\"\n          }\n        }\n      ],\n      \"name\": \"\",\n      \"updateSteps\": [\n        {}\n      ],\n      \"version\": \"\"\n    }\n  ],\n  \"updateTime\": \"\"\n}"

encode <- "json"

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

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

url = URI("{{baseUrl}}/v1beta/:parent/guestPolicies")

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  \"assignment\": {\n    \"groupLabels\": [\n      {\n        \"labels\": {}\n      }\n    ],\n    \"instanceNamePrefixes\": [],\n    \"instances\": [],\n    \"osTypes\": [\n      {\n        \"osArchitecture\": \"\",\n        \"osShortName\": \"\",\n        \"osVersion\": \"\"\n      }\n    ],\n    \"zones\": []\n  },\n  \"createTime\": \"\",\n  \"description\": \"\",\n  \"etag\": \"\",\n  \"name\": \"\",\n  \"packageRepositories\": [\n    {\n      \"apt\": {\n        \"archiveType\": \"\",\n        \"components\": [],\n        \"distribution\": \"\",\n        \"gpgKey\": \"\",\n        \"uri\": \"\"\n      },\n      \"goo\": {\n        \"name\": \"\",\n        \"url\": \"\"\n      },\n      \"yum\": {\n        \"baseUrl\": \"\",\n        \"displayName\": \"\",\n        \"gpgKeys\": [],\n        \"id\": \"\"\n      },\n      \"zypper\": {\n        \"baseUrl\": \"\",\n        \"displayName\": \"\",\n        \"gpgKeys\": [],\n        \"id\": \"\"\n      }\n    }\n  ],\n  \"packages\": [\n    {\n      \"desiredState\": \"\",\n      \"manager\": \"\",\n      \"name\": \"\"\n    }\n  ],\n  \"recipes\": [\n    {\n      \"artifacts\": [\n        {\n          \"allowInsecure\": false,\n          \"gcs\": {\n            \"bucket\": \"\",\n            \"generation\": \"\",\n            \"object\": \"\"\n          },\n          \"id\": \"\",\n          \"remote\": {\n            \"checksum\": \"\",\n            \"uri\": \"\"\n          }\n        }\n      ],\n      \"desiredState\": \"\",\n      \"installSteps\": [\n        {\n          \"archiveExtraction\": {\n            \"artifactId\": \"\",\n            \"destination\": \"\",\n            \"type\": \"\"\n          },\n          \"dpkgInstallation\": {\n            \"artifactId\": \"\"\n          },\n          \"fileCopy\": {\n            \"artifactId\": \"\",\n            \"destination\": \"\",\n            \"overwrite\": false,\n            \"permissions\": \"\"\n          },\n          \"fileExec\": {\n            \"allowedExitCodes\": [],\n            \"args\": [],\n            \"artifactId\": \"\",\n            \"localPath\": \"\"\n          },\n          \"msiInstallation\": {\n            \"allowedExitCodes\": [],\n            \"artifactId\": \"\",\n            \"flags\": []\n          },\n          \"rpmInstallation\": {\n            \"artifactId\": \"\"\n          },\n          \"scriptRun\": {\n            \"allowedExitCodes\": [],\n            \"interpreter\": \"\",\n            \"script\": \"\"\n          }\n        }\n      ],\n      \"name\": \"\",\n      \"updateSteps\": [\n        {}\n      ],\n      \"version\": \"\"\n    }\n  ],\n  \"updateTime\": \"\"\n}"

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

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

response = conn.post('/baseUrl/v1beta/:parent/guestPolicies') do |req|
  req.body = "{\n  \"assignment\": {\n    \"groupLabels\": [\n      {\n        \"labels\": {}\n      }\n    ],\n    \"instanceNamePrefixes\": [],\n    \"instances\": [],\n    \"osTypes\": [\n      {\n        \"osArchitecture\": \"\",\n        \"osShortName\": \"\",\n        \"osVersion\": \"\"\n      }\n    ],\n    \"zones\": []\n  },\n  \"createTime\": \"\",\n  \"description\": \"\",\n  \"etag\": \"\",\n  \"name\": \"\",\n  \"packageRepositories\": [\n    {\n      \"apt\": {\n        \"archiveType\": \"\",\n        \"components\": [],\n        \"distribution\": \"\",\n        \"gpgKey\": \"\",\n        \"uri\": \"\"\n      },\n      \"goo\": {\n        \"name\": \"\",\n        \"url\": \"\"\n      },\n      \"yum\": {\n        \"baseUrl\": \"\",\n        \"displayName\": \"\",\n        \"gpgKeys\": [],\n        \"id\": \"\"\n      },\n      \"zypper\": {\n        \"baseUrl\": \"\",\n        \"displayName\": \"\",\n        \"gpgKeys\": [],\n        \"id\": \"\"\n      }\n    }\n  ],\n  \"packages\": [\n    {\n      \"desiredState\": \"\",\n      \"manager\": \"\",\n      \"name\": \"\"\n    }\n  ],\n  \"recipes\": [\n    {\n      \"artifacts\": [\n        {\n          \"allowInsecure\": false,\n          \"gcs\": {\n            \"bucket\": \"\",\n            \"generation\": \"\",\n            \"object\": \"\"\n          },\n          \"id\": \"\",\n          \"remote\": {\n            \"checksum\": \"\",\n            \"uri\": \"\"\n          }\n        }\n      ],\n      \"desiredState\": \"\",\n      \"installSteps\": [\n        {\n          \"archiveExtraction\": {\n            \"artifactId\": \"\",\n            \"destination\": \"\",\n            \"type\": \"\"\n          },\n          \"dpkgInstallation\": {\n            \"artifactId\": \"\"\n          },\n          \"fileCopy\": {\n            \"artifactId\": \"\",\n            \"destination\": \"\",\n            \"overwrite\": false,\n            \"permissions\": \"\"\n          },\n          \"fileExec\": {\n            \"allowedExitCodes\": [],\n            \"args\": [],\n            \"artifactId\": \"\",\n            \"localPath\": \"\"\n          },\n          \"msiInstallation\": {\n            \"allowedExitCodes\": [],\n            \"artifactId\": \"\",\n            \"flags\": []\n          },\n          \"rpmInstallation\": {\n            \"artifactId\": \"\"\n          },\n          \"scriptRun\": {\n            \"allowedExitCodes\": [],\n            \"interpreter\": \"\",\n            \"script\": \"\"\n          }\n        }\n      ],\n      \"name\": \"\",\n      \"updateSteps\": [\n        {}\n      ],\n      \"version\": \"\"\n    }\n  ],\n  \"updateTime\": \"\"\n}"
end

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

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

    let payload = json!({
        "assignment": json!({
            "groupLabels": (json!({"labels": json!({})})),
            "instanceNamePrefixes": (),
            "instances": (),
            "osTypes": (
                json!({
                    "osArchitecture": "",
                    "osShortName": "",
                    "osVersion": ""
                })
            ),
            "zones": ()
        }),
        "createTime": "",
        "description": "",
        "etag": "",
        "name": "",
        "packageRepositories": (
            json!({
                "apt": json!({
                    "archiveType": "",
                    "components": (),
                    "distribution": "",
                    "gpgKey": "",
                    "uri": ""
                }),
                "goo": json!({
                    "name": "",
                    "url": ""
                }),
                "yum": json!({
                    "baseUrl": "",
                    "displayName": "",
                    "gpgKeys": (),
                    "id": ""
                }),
                "zypper": json!({
                    "baseUrl": "",
                    "displayName": "",
                    "gpgKeys": (),
                    "id": ""
                })
            })
        ),
        "packages": (
            json!({
                "desiredState": "",
                "manager": "",
                "name": ""
            })
        ),
        "recipes": (
            json!({
                "artifacts": (
                    json!({
                        "allowInsecure": false,
                        "gcs": json!({
                            "bucket": "",
                            "generation": "",
                            "object": ""
                        }),
                        "id": "",
                        "remote": json!({
                            "checksum": "",
                            "uri": ""
                        })
                    })
                ),
                "desiredState": "",
                "installSteps": (
                    json!({
                        "archiveExtraction": json!({
                            "artifactId": "",
                            "destination": "",
                            "type": ""
                        }),
                        "dpkgInstallation": json!({"artifactId": ""}),
                        "fileCopy": json!({
                            "artifactId": "",
                            "destination": "",
                            "overwrite": false,
                            "permissions": ""
                        }),
                        "fileExec": json!({
                            "allowedExitCodes": (),
                            "args": (),
                            "artifactId": "",
                            "localPath": ""
                        }),
                        "msiInstallation": json!({
                            "allowedExitCodes": (),
                            "artifactId": "",
                            "flags": ()
                        }),
                        "rpmInstallation": json!({"artifactId": ""}),
                        "scriptRun": json!({
                            "allowedExitCodes": (),
                            "interpreter": "",
                            "script": ""
                        })
                    })
                ),
                "name": "",
                "updateSteps": (json!({})),
                "version": ""
            })
        ),
        "updateTime": ""
    });

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

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

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

    dbg!(results);
}
curl --request POST \
  --url {{baseUrl}}/v1beta/:parent/guestPolicies \
  --header 'content-type: application/json' \
  --data '{
  "assignment": {
    "groupLabels": [
      {
        "labels": {}
      }
    ],
    "instanceNamePrefixes": [],
    "instances": [],
    "osTypes": [
      {
        "osArchitecture": "",
        "osShortName": "",
        "osVersion": ""
      }
    ],
    "zones": []
  },
  "createTime": "",
  "description": "",
  "etag": "",
  "name": "",
  "packageRepositories": [
    {
      "apt": {
        "archiveType": "",
        "components": [],
        "distribution": "",
        "gpgKey": "",
        "uri": ""
      },
      "goo": {
        "name": "",
        "url": ""
      },
      "yum": {
        "baseUrl": "",
        "displayName": "",
        "gpgKeys": [],
        "id": ""
      },
      "zypper": {
        "baseUrl": "",
        "displayName": "",
        "gpgKeys": [],
        "id": ""
      }
    }
  ],
  "packages": [
    {
      "desiredState": "",
      "manager": "",
      "name": ""
    }
  ],
  "recipes": [
    {
      "artifacts": [
        {
          "allowInsecure": false,
          "gcs": {
            "bucket": "",
            "generation": "",
            "object": ""
          },
          "id": "",
          "remote": {
            "checksum": "",
            "uri": ""
          }
        }
      ],
      "desiredState": "",
      "installSteps": [
        {
          "archiveExtraction": {
            "artifactId": "",
            "destination": "",
            "type": ""
          },
          "dpkgInstallation": {
            "artifactId": ""
          },
          "fileCopy": {
            "artifactId": "",
            "destination": "",
            "overwrite": false,
            "permissions": ""
          },
          "fileExec": {
            "allowedExitCodes": [],
            "args": [],
            "artifactId": "",
            "localPath": ""
          },
          "msiInstallation": {
            "allowedExitCodes": [],
            "artifactId": "",
            "flags": []
          },
          "rpmInstallation": {
            "artifactId": ""
          },
          "scriptRun": {
            "allowedExitCodes": [],
            "interpreter": "",
            "script": ""
          }
        }
      ],
      "name": "",
      "updateSteps": [
        {}
      ],
      "version": ""
    }
  ],
  "updateTime": ""
}'
echo '{
  "assignment": {
    "groupLabels": [
      {
        "labels": {}
      }
    ],
    "instanceNamePrefixes": [],
    "instances": [],
    "osTypes": [
      {
        "osArchitecture": "",
        "osShortName": "",
        "osVersion": ""
      }
    ],
    "zones": []
  },
  "createTime": "",
  "description": "",
  "etag": "",
  "name": "",
  "packageRepositories": [
    {
      "apt": {
        "archiveType": "",
        "components": [],
        "distribution": "",
        "gpgKey": "",
        "uri": ""
      },
      "goo": {
        "name": "",
        "url": ""
      },
      "yum": {
        "baseUrl": "",
        "displayName": "",
        "gpgKeys": [],
        "id": ""
      },
      "zypper": {
        "baseUrl": "",
        "displayName": "",
        "gpgKeys": [],
        "id": ""
      }
    }
  ],
  "packages": [
    {
      "desiredState": "",
      "manager": "",
      "name": ""
    }
  ],
  "recipes": [
    {
      "artifacts": [
        {
          "allowInsecure": false,
          "gcs": {
            "bucket": "",
            "generation": "",
            "object": ""
          },
          "id": "",
          "remote": {
            "checksum": "",
            "uri": ""
          }
        }
      ],
      "desiredState": "",
      "installSteps": [
        {
          "archiveExtraction": {
            "artifactId": "",
            "destination": "",
            "type": ""
          },
          "dpkgInstallation": {
            "artifactId": ""
          },
          "fileCopy": {
            "artifactId": "",
            "destination": "",
            "overwrite": false,
            "permissions": ""
          },
          "fileExec": {
            "allowedExitCodes": [],
            "args": [],
            "artifactId": "",
            "localPath": ""
          },
          "msiInstallation": {
            "allowedExitCodes": [],
            "artifactId": "",
            "flags": []
          },
          "rpmInstallation": {
            "artifactId": ""
          },
          "scriptRun": {
            "allowedExitCodes": [],
            "interpreter": "",
            "script": ""
          }
        }
      ],
      "name": "",
      "updateSteps": [
        {}
      ],
      "version": ""
    }
  ],
  "updateTime": ""
}' |  \
  http POST {{baseUrl}}/v1beta/:parent/guestPolicies \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "assignment": {\n    "groupLabels": [\n      {\n        "labels": {}\n      }\n    ],\n    "instanceNamePrefixes": [],\n    "instances": [],\n    "osTypes": [\n      {\n        "osArchitecture": "",\n        "osShortName": "",\n        "osVersion": ""\n      }\n    ],\n    "zones": []\n  },\n  "createTime": "",\n  "description": "",\n  "etag": "",\n  "name": "",\n  "packageRepositories": [\n    {\n      "apt": {\n        "archiveType": "",\n        "components": [],\n        "distribution": "",\n        "gpgKey": "",\n        "uri": ""\n      },\n      "goo": {\n        "name": "",\n        "url": ""\n      },\n      "yum": {\n        "baseUrl": "",\n        "displayName": "",\n        "gpgKeys": [],\n        "id": ""\n      },\n      "zypper": {\n        "baseUrl": "",\n        "displayName": "",\n        "gpgKeys": [],\n        "id": ""\n      }\n    }\n  ],\n  "packages": [\n    {\n      "desiredState": "",\n      "manager": "",\n      "name": ""\n    }\n  ],\n  "recipes": [\n    {\n      "artifacts": [\n        {\n          "allowInsecure": false,\n          "gcs": {\n            "bucket": "",\n            "generation": "",\n            "object": ""\n          },\n          "id": "",\n          "remote": {\n            "checksum": "",\n            "uri": ""\n          }\n        }\n      ],\n      "desiredState": "",\n      "installSteps": [\n        {\n          "archiveExtraction": {\n            "artifactId": "",\n            "destination": "",\n            "type": ""\n          },\n          "dpkgInstallation": {\n            "artifactId": ""\n          },\n          "fileCopy": {\n            "artifactId": "",\n            "destination": "",\n            "overwrite": false,\n            "permissions": ""\n          },\n          "fileExec": {\n            "allowedExitCodes": [],\n            "args": [],\n            "artifactId": "",\n            "localPath": ""\n          },\n          "msiInstallation": {\n            "allowedExitCodes": [],\n            "artifactId": "",\n            "flags": []\n          },\n          "rpmInstallation": {\n            "artifactId": ""\n          },\n          "scriptRun": {\n            "allowedExitCodes": [],\n            "interpreter": "",\n            "script": ""\n          }\n        }\n      ],\n      "name": "",\n      "updateSteps": [\n        {}\n      ],\n      "version": ""\n    }\n  ],\n  "updateTime": ""\n}' \
  --output-document \
  - {{baseUrl}}/v1beta/:parent/guestPolicies
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "assignment": [
    "groupLabels": [["labels": []]],
    "instanceNamePrefixes": [],
    "instances": [],
    "osTypes": [
      [
        "osArchitecture": "",
        "osShortName": "",
        "osVersion": ""
      ]
    ],
    "zones": []
  ],
  "createTime": "",
  "description": "",
  "etag": "",
  "name": "",
  "packageRepositories": [
    [
      "apt": [
        "archiveType": "",
        "components": [],
        "distribution": "",
        "gpgKey": "",
        "uri": ""
      ],
      "goo": [
        "name": "",
        "url": ""
      ],
      "yum": [
        "baseUrl": "",
        "displayName": "",
        "gpgKeys": [],
        "id": ""
      ],
      "zypper": [
        "baseUrl": "",
        "displayName": "",
        "gpgKeys": [],
        "id": ""
      ]
    ]
  ],
  "packages": [
    [
      "desiredState": "",
      "manager": "",
      "name": ""
    ]
  ],
  "recipes": [
    [
      "artifacts": [
        [
          "allowInsecure": false,
          "gcs": [
            "bucket": "",
            "generation": "",
            "object": ""
          ],
          "id": "",
          "remote": [
            "checksum": "",
            "uri": ""
          ]
        ]
      ],
      "desiredState": "",
      "installSteps": [
        [
          "archiveExtraction": [
            "artifactId": "",
            "destination": "",
            "type": ""
          ],
          "dpkgInstallation": ["artifactId": ""],
          "fileCopy": [
            "artifactId": "",
            "destination": "",
            "overwrite": false,
            "permissions": ""
          ],
          "fileExec": [
            "allowedExitCodes": [],
            "args": [],
            "artifactId": "",
            "localPath": ""
          ],
          "msiInstallation": [
            "allowedExitCodes": [],
            "artifactId": "",
            "flags": []
          ],
          "rpmInstallation": ["artifactId": ""],
          "scriptRun": [
            "allowedExitCodes": [],
            "interpreter": "",
            "script": ""
          ]
        ]
      ],
      "name": "",
      "updateSteps": [[]],
      "version": ""
    ]
  ],
  "updateTime": ""
] as [String : Any]

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

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

parent
Examples
REQUEST

CURL *hnd = curl_easy_init();

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

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

(client/get "{{baseUrl}}/v1beta/:parent/guestPolicies")
require "http/client"

url = "{{baseUrl}}/v1beta/:parent/guestPolicies"

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

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

func main() {

	url := "{{baseUrl}}/v1beta/:parent/guestPolicies"

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

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

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

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

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

const options = {method: 'GET', url: '{{baseUrl}}/v1beta/:parent/guestPolicies'};

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

conn.request("GET", "/baseUrl/v1beta/:parent/guestPolicies")

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

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

url = "{{baseUrl}}/v1beta/:parent/guestPolicies"

response = requests.get(url)

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

url <- "{{baseUrl}}/v1beta/:parent/guestPolicies"

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

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

url = URI("{{baseUrl}}/v1beta/:parent/guestPolicies")

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

puts response.status
puts response.body
use reqwest;

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

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

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/v1beta/:parent/guestPolicies")! 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 osconfig.projects.patchDeployments.create
{{baseUrl}}/v1beta/:parent/patchDeployments
QUERY PARAMS

parent
BODY json

{
  "createTime": "",
  "description": "",
  "duration": "",
  "instanceFilter": {
    "all": false,
    "groupLabels": [
      {
        "labels": {}
      }
    ],
    "instanceNamePrefixes": [],
    "instances": [],
    "zones": []
  },
  "lastExecuteTime": "",
  "name": "",
  "oneTimeSchedule": {
    "executeTime": ""
  },
  "patchConfig": {
    "apt": {
      "excludes": [],
      "exclusivePackages": [],
      "type": ""
    },
    "goo": {},
    "migInstancesAllowed": false,
    "postStep": {
      "linuxExecStepConfig": {
        "allowedSuccessCodes": [],
        "gcsObject": {
          "bucket": "",
          "generationNumber": "",
          "object": ""
        },
        "interpreter": "",
        "localPath": ""
      },
      "windowsExecStepConfig": {}
    },
    "preStep": {},
    "rebootConfig": "",
    "windowsUpdate": {
      "classifications": [],
      "excludes": [],
      "exclusivePatches": []
    },
    "yum": {
      "excludes": [],
      "exclusivePackages": [],
      "minimal": false,
      "security": false
    },
    "zypper": {
      "categories": [],
      "excludes": [],
      "exclusivePatches": [],
      "severities": [],
      "withOptional": false,
      "withUpdate": false
    }
  },
  "recurringSchedule": {
    "endTime": "",
    "frequency": "",
    "lastExecuteTime": "",
    "monthly": {
      "monthDay": 0,
      "weekDayOfMonth": {
        "dayOfWeek": "",
        "dayOffset": 0,
        "weekOrdinal": 0
      }
    },
    "nextExecuteTime": "",
    "startTime": "",
    "timeOfDay": {
      "hours": 0,
      "minutes": 0,
      "nanos": 0,
      "seconds": 0
    },
    "timeZone": {
      "id": "",
      "version": ""
    },
    "weekly": {
      "dayOfWeek": ""
    }
  },
  "rollout": {
    "disruptionBudget": {
      "fixed": 0,
      "percent": 0
    },
    "mode": ""
  },
  "state": "",
  "updateTime": ""
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

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

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

curl_easy_setopt(hnd, CURLOPT_POSTFIELDS, "{\n  \"createTime\": \"\",\n  \"description\": \"\",\n  \"duration\": \"\",\n  \"instanceFilter\": {\n    \"all\": false,\n    \"groupLabels\": [\n      {\n        \"labels\": {}\n      }\n    ],\n    \"instanceNamePrefixes\": [],\n    \"instances\": [],\n    \"zones\": []\n  },\n  \"lastExecuteTime\": \"\",\n  \"name\": \"\",\n  \"oneTimeSchedule\": {\n    \"executeTime\": \"\"\n  },\n  \"patchConfig\": {\n    \"apt\": {\n      \"excludes\": [],\n      \"exclusivePackages\": [],\n      \"type\": \"\"\n    },\n    \"goo\": {},\n    \"migInstancesAllowed\": false,\n    \"postStep\": {\n      \"linuxExecStepConfig\": {\n        \"allowedSuccessCodes\": [],\n        \"gcsObject\": {\n          \"bucket\": \"\",\n          \"generationNumber\": \"\",\n          \"object\": \"\"\n        },\n        \"interpreter\": \"\",\n        \"localPath\": \"\"\n      },\n      \"windowsExecStepConfig\": {}\n    },\n    \"preStep\": {},\n    \"rebootConfig\": \"\",\n    \"windowsUpdate\": {\n      \"classifications\": [],\n      \"excludes\": [],\n      \"exclusivePatches\": []\n    },\n    \"yum\": {\n      \"excludes\": [],\n      \"exclusivePackages\": [],\n      \"minimal\": false,\n      \"security\": false\n    },\n    \"zypper\": {\n      \"categories\": [],\n      \"excludes\": [],\n      \"exclusivePatches\": [],\n      \"severities\": [],\n      \"withOptional\": false,\n      \"withUpdate\": false\n    }\n  },\n  \"recurringSchedule\": {\n    \"endTime\": \"\",\n    \"frequency\": \"\",\n    \"lastExecuteTime\": \"\",\n    \"monthly\": {\n      \"monthDay\": 0,\n      \"weekDayOfMonth\": {\n        \"dayOfWeek\": \"\",\n        \"dayOffset\": 0,\n        \"weekOrdinal\": 0\n      }\n    },\n    \"nextExecuteTime\": \"\",\n    \"startTime\": \"\",\n    \"timeOfDay\": {\n      \"hours\": 0,\n      \"minutes\": 0,\n      \"nanos\": 0,\n      \"seconds\": 0\n    },\n    \"timeZone\": {\n      \"id\": \"\",\n      \"version\": \"\"\n    },\n    \"weekly\": {\n      \"dayOfWeek\": \"\"\n    }\n  },\n  \"rollout\": {\n    \"disruptionBudget\": {\n      \"fixed\": 0,\n      \"percent\": 0\n    },\n    \"mode\": \"\"\n  },\n  \"state\": \"\",\n  \"updateTime\": \"\"\n}");

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

(client/post "{{baseUrl}}/v1beta/:parent/patchDeployments" {:content-type :json
                                                                            :form-params {:createTime ""
                                                                                          :description ""
                                                                                          :duration ""
                                                                                          :instanceFilter {:all false
                                                                                                           :groupLabels [{:labels {}}]
                                                                                                           :instanceNamePrefixes []
                                                                                                           :instances []
                                                                                                           :zones []}
                                                                                          :lastExecuteTime ""
                                                                                          :name ""
                                                                                          :oneTimeSchedule {:executeTime ""}
                                                                                          :patchConfig {:apt {:excludes []
                                                                                                              :exclusivePackages []
                                                                                                              :type ""}
                                                                                                        :goo {}
                                                                                                        :migInstancesAllowed false
                                                                                                        :postStep {:linuxExecStepConfig {:allowedSuccessCodes []
                                                                                                                                         :gcsObject {:bucket ""
                                                                                                                                                     :generationNumber ""
                                                                                                                                                     :object ""}
                                                                                                                                         :interpreter ""
                                                                                                                                         :localPath ""}
                                                                                                                   :windowsExecStepConfig {}}
                                                                                                        :preStep {}
                                                                                                        :rebootConfig ""
                                                                                                        :windowsUpdate {:classifications []
                                                                                                                        :excludes []
                                                                                                                        :exclusivePatches []}
                                                                                                        :yum {:excludes []
                                                                                                              :exclusivePackages []
                                                                                                              :minimal false
                                                                                                              :security false}
                                                                                                        :zypper {:categories []
                                                                                                                 :excludes []
                                                                                                                 :exclusivePatches []
                                                                                                                 :severities []
                                                                                                                 :withOptional false
                                                                                                                 :withUpdate false}}
                                                                                          :recurringSchedule {:endTime ""
                                                                                                              :frequency ""
                                                                                                              :lastExecuteTime ""
                                                                                                              :monthly {:monthDay 0
                                                                                                                        :weekDayOfMonth {:dayOfWeek ""
                                                                                                                                         :dayOffset 0
                                                                                                                                         :weekOrdinal 0}}
                                                                                                              :nextExecuteTime ""
                                                                                                              :startTime ""
                                                                                                              :timeOfDay {:hours 0
                                                                                                                          :minutes 0
                                                                                                                          :nanos 0
                                                                                                                          :seconds 0}
                                                                                                              :timeZone {:id ""
                                                                                                                         :version ""}
                                                                                                              :weekly {:dayOfWeek ""}}
                                                                                          :rollout {:disruptionBudget {:fixed 0
                                                                                                                       :percent 0}
                                                                                                    :mode ""}
                                                                                          :state ""
                                                                                          :updateTime ""}})
require "http/client"

url = "{{baseUrl}}/v1beta/:parent/patchDeployments"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"createTime\": \"\",\n  \"description\": \"\",\n  \"duration\": \"\",\n  \"instanceFilter\": {\n    \"all\": false,\n    \"groupLabels\": [\n      {\n        \"labels\": {}\n      }\n    ],\n    \"instanceNamePrefixes\": [],\n    \"instances\": [],\n    \"zones\": []\n  },\n  \"lastExecuteTime\": \"\",\n  \"name\": \"\",\n  \"oneTimeSchedule\": {\n    \"executeTime\": \"\"\n  },\n  \"patchConfig\": {\n    \"apt\": {\n      \"excludes\": [],\n      \"exclusivePackages\": [],\n      \"type\": \"\"\n    },\n    \"goo\": {},\n    \"migInstancesAllowed\": false,\n    \"postStep\": {\n      \"linuxExecStepConfig\": {\n        \"allowedSuccessCodes\": [],\n        \"gcsObject\": {\n          \"bucket\": \"\",\n          \"generationNumber\": \"\",\n          \"object\": \"\"\n        },\n        \"interpreter\": \"\",\n        \"localPath\": \"\"\n      },\n      \"windowsExecStepConfig\": {}\n    },\n    \"preStep\": {},\n    \"rebootConfig\": \"\",\n    \"windowsUpdate\": {\n      \"classifications\": [],\n      \"excludes\": [],\n      \"exclusivePatches\": []\n    },\n    \"yum\": {\n      \"excludes\": [],\n      \"exclusivePackages\": [],\n      \"minimal\": false,\n      \"security\": false\n    },\n    \"zypper\": {\n      \"categories\": [],\n      \"excludes\": [],\n      \"exclusivePatches\": [],\n      \"severities\": [],\n      \"withOptional\": false,\n      \"withUpdate\": false\n    }\n  },\n  \"recurringSchedule\": {\n    \"endTime\": \"\",\n    \"frequency\": \"\",\n    \"lastExecuteTime\": \"\",\n    \"monthly\": {\n      \"monthDay\": 0,\n      \"weekDayOfMonth\": {\n        \"dayOfWeek\": \"\",\n        \"dayOffset\": 0,\n        \"weekOrdinal\": 0\n      }\n    },\n    \"nextExecuteTime\": \"\",\n    \"startTime\": \"\",\n    \"timeOfDay\": {\n      \"hours\": 0,\n      \"minutes\": 0,\n      \"nanos\": 0,\n      \"seconds\": 0\n    },\n    \"timeZone\": {\n      \"id\": \"\",\n      \"version\": \"\"\n    },\n    \"weekly\": {\n      \"dayOfWeek\": \"\"\n    }\n  },\n  \"rollout\": {\n    \"disruptionBudget\": {\n      \"fixed\": 0,\n      \"percent\": 0\n    },\n    \"mode\": \"\"\n  },\n  \"state\": \"\",\n  \"updateTime\": \"\"\n}"

response = HTTP::Client.post url, headers: headers, body: reqBody
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Post,
    RequestUri = new Uri("{{baseUrl}}/v1beta/:parent/patchDeployments"),
    Content = new StringContent("{\n  \"createTime\": \"\",\n  \"description\": \"\",\n  \"duration\": \"\",\n  \"instanceFilter\": {\n    \"all\": false,\n    \"groupLabels\": [\n      {\n        \"labels\": {}\n      }\n    ],\n    \"instanceNamePrefixes\": [],\n    \"instances\": [],\n    \"zones\": []\n  },\n  \"lastExecuteTime\": \"\",\n  \"name\": \"\",\n  \"oneTimeSchedule\": {\n    \"executeTime\": \"\"\n  },\n  \"patchConfig\": {\n    \"apt\": {\n      \"excludes\": [],\n      \"exclusivePackages\": [],\n      \"type\": \"\"\n    },\n    \"goo\": {},\n    \"migInstancesAllowed\": false,\n    \"postStep\": {\n      \"linuxExecStepConfig\": {\n        \"allowedSuccessCodes\": [],\n        \"gcsObject\": {\n          \"bucket\": \"\",\n          \"generationNumber\": \"\",\n          \"object\": \"\"\n        },\n        \"interpreter\": \"\",\n        \"localPath\": \"\"\n      },\n      \"windowsExecStepConfig\": {}\n    },\n    \"preStep\": {},\n    \"rebootConfig\": \"\",\n    \"windowsUpdate\": {\n      \"classifications\": [],\n      \"excludes\": [],\n      \"exclusivePatches\": []\n    },\n    \"yum\": {\n      \"excludes\": [],\n      \"exclusivePackages\": [],\n      \"minimal\": false,\n      \"security\": false\n    },\n    \"zypper\": {\n      \"categories\": [],\n      \"excludes\": [],\n      \"exclusivePatches\": [],\n      \"severities\": [],\n      \"withOptional\": false,\n      \"withUpdate\": false\n    }\n  },\n  \"recurringSchedule\": {\n    \"endTime\": \"\",\n    \"frequency\": \"\",\n    \"lastExecuteTime\": \"\",\n    \"monthly\": {\n      \"monthDay\": 0,\n      \"weekDayOfMonth\": {\n        \"dayOfWeek\": \"\",\n        \"dayOffset\": 0,\n        \"weekOrdinal\": 0\n      }\n    },\n    \"nextExecuteTime\": \"\",\n    \"startTime\": \"\",\n    \"timeOfDay\": {\n      \"hours\": 0,\n      \"minutes\": 0,\n      \"nanos\": 0,\n      \"seconds\": 0\n    },\n    \"timeZone\": {\n      \"id\": \"\",\n      \"version\": \"\"\n    },\n    \"weekly\": {\n      \"dayOfWeek\": \"\"\n    }\n  },\n  \"rollout\": {\n    \"disruptionBudget\": {\n      \"fixed\": 0,\n      \"percent\": 0\n    },\n    \"mode\": \"\"\n  },\n  \"state\": \"\",\n  \"updateTime\": \"\"\n}")
    {
        Headers =
        {
            ContentType = new MediaTypeHeaderValue("application/json")
        }
    }
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/v1beta/:parent/patchDeployments");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"createTime\": \"\",\n  \"description\": \"\",\n  \"duration\": \"\",\n  \"instanceFilter\": {\n    \"all\": false,\n    \"groupLabels\": [\n      {\n        \"labels\": {}\n      }\n    ],\n    \"instanceNamePrefixes\": [],\n    \"instances\": [],\n    \"zones\": []\n  },\n  \"lastExecuteTime\": \"\",\n  \"name\": \"\",\n  \"oneTimeSchedule\": {\n    \"executeTime\": \"\"\n  },\n  \"patchConfig\": {\n    \"apt\": {\n      \"excludes\": [],\n      \"exclusivePackages\": [],\n      \"type\": \"\"\n    },\n    \"goo\": {},\n    \"migInstancesAllowed\": false,\n    \"postStep\": {\n      \"linuxExecStepConfig\": {\n        \"allowedSuccessCodes\": [],\n        \"gcsObject\": {\n          \"bucket\": \"\",\n          \"generationNumber\": \"\",\n          \"object\": \"\"\n        },\n        \"interpreter\": \"\",\n        \"localPath\": \"\"\n      },\n      \"windowsExecStepConfig\": {}\n    },\n    \"preStep\": {},\n    \"rebootConfig\": \"\",\n    \"windowsUpdate\": {\n      \"classifications\": [],\n      \"excludes\": [],\n      \"exclusivePatches\": []\n    },\n    \"yum\": {\n      \"excludes\": [],\n      \"exclusivePackages\": [],\n      \"minimal\": false,\n      \"security\": false\n    },\n    \"zypper\": {\n      \"categories\": [],\n      \"excludes\": [],\n      \"exclusivePatches\": [],\n      \"severities\": [],\n      \"withOptional\": false,\n      \"withUpdate\": false\n    }\n  },\n  \"recurringSchedule\": {\n    \"endTime\": \"\",\n    \"frequency\": \"\",\n    \"lastExecuteTime\": \"\",\n    \"monthly\": {\n      \"monthDay\": 0,\n      \"weekDayOfMonth\": {\n        \"dayOfWeek\": \"\",\n        \"dayOffset\": 0,\n        \"weekOrdinal\": 0\n      }\n    },\n    \"nextExecuteTime\": \"\",\n    \"startTime\": \"\",\n    \"timeOfDay\": {\n      \"hours\": 0,\n      \"minutes\": 0,\n      \"nanos\": 0,\n      \"seconds\": 0\n    },\n    \"timeZone\": {\n      \"id\": \"\",\n      \"version\": \"\"\n    },\n    \"weekly\": {\n      \"dayOfWeek\": \"\"\n    }\n  },\n  \"rollout\": {\n    \"disruptionBudget\": {\n      \"fixed\": 0,\n      \"percent\": 0\n    },\n    \"mode\": \"\"\n  },\n  \"state\": \"\",\n  \"updateTime\": \"\"\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

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

func main() {

	url := "{{baseUrl}}/v1beta/:parent/patchDeployments"

	payload := strings.NewReader("{\n  \"createTime\": \"\",\n  \"description\": \"\",\n  \"duration\": \"\",\n  \"instanceFilter\": {\n    \"all\": false,\n    \"groupLabels\": [\n      {\n        \"labels\": {}\n      }\n    ],\n    \"instanceNamePrefixes\": [],\n    \"instances\": [],\n    \"zones\": []\n  },\n  \"lastExecuteTime\": \"\",\n  \"name\": \"\",\n  \"oneTimeSchedule\": {\n    \"executeTime\": \"\"\n  },\n  \"patchConfig\": {\n    \"apt\": {\n      \"excludes\": [],\n      \"exclusivePackages\": [],\n      \"type\": \"\"\n    },\n    \"goo\": {},\n    \"migInstancesAllowed\": false,\n    \"postStep\": {\n      \"linuxExecStepConfig\": {\n        \"allowedSuccessCodes\": [],\n        \"gcsObject\": {\n          \"bucket\": \"\",\n          \"generationNumber\": \"\",\n          \"object\": \"\"\n        },\n        \"interpreter\": \"\",\n        \"localPath\": \"\"\n      },\n      \"windowsExecStepConfig\": {}\n    },\n    \"preStep\": {},\n    \"rebootConfig\": \"\",\n    \"windowsUpdate\": {\n      \"classifications\": [],\n      \"excludes\": [],\n      \"exclusivePatches\": []\n    },\n    \"yum\": {\n      \"excludes\": [],\n      \"exclusivePackages\": [],\n      \"minimal\": false,\n      \"security\": false\n    },\n    \"zypper\": {\n      \"categories\": [],\n      \"excludes\": [],\n      \"exclusivePatches\": [],\n      \"severities\": [],\n      \"withOptional\": false,\n      \"withUpdate\": false\n    }\n  },\n  \"recurringSchedule\": {\n    \"endTime\": \"\",\n    \"frequency\": \"\",\n    \"lastExecuteTime\": \"\",\n    \"monthly\": {\n      \"monthDay\": 0,\n      \"weekDayOfMonth\": {\n        \"dayOfWeek\": \"\",\n        \"dayOffset\": 0,\n        \"weekOrdinal\": 0\n      }\n    },\n    \"nextExecuteTime\": \"\",\n    \"startTime\": \"\",\n    \"timeOfDay\": {\n      \"hours\": 0,\n      \"minutes\": 0,\n      \"nanos\": 0,\n      \"seconds\": 0\n    },\n    \"timeZone\": {\n      \"id\": \"\",\n      \"version\": \"\"\n    },\n    \"weekly\": {\n      \"dayOfWeek\": \"\"\n    }\n  },\n  \"rollout\": {\n    \"disruptionBudget\": {\n      \"fixed\": 0,\n      \"percent\": 0\n    },\n    \"mode\": \"\"\n  },\n  \"state\": \"\",\n  \"updateTime\": \"\"\n}")

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

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

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

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

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

}
POST /baseUrl/v1beta/:parent/patchDeployments HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 1887

{
  "createTime": "",
  "description": "",
  "duration": "",
  "instanceFilter": {
    "all": false,
    "groupLabels": [
      {
        "labels": {}
      }
    ],
    "instanceNamePrefixes": [],
    "instances": [],
    "zones": []
  },
  "lastExecuteTime": "",
  "name": "",
  "oneTimeSchedule": {
    "executeTime": ""
  },
  "patchConfig": {
    "apt": {
      "excludes": [],
      "exclusivePackages": [],
      "type": ""
    },
    "goo": {},
    "migInstancesAllowed": false,
    "postStep": {
      "linuxExecStepConfig": {
        "allowedSuccessCodes": [],
        "gcsObject": {
          "bucket": "",
          "generationNumber": "",
          "object": ""
        },
        "interpreter": "",
        "localPath": ""
      },
      "windowsExecStepConfig": {}
    },
    "preStep": {},
    "rebootConfig": "",
    "windowsUpdate": {
      "classifications": [],
      "excludes": [],
      "exclusivePatches": []
    },
    "yum": {
      "excludes": [],
      "exclusivePackages": [],
      "minimal": false,
      "security": false
    },
    "zypper": {
      "categories": [],
      "excludes": [],
      "exclusivePatches": [],
      "severities": [],
      "withOptional": false,
      "withUpdate": false
    }
  },
  "recurringSchedule": {
    "endTime": "",
    "frequency": "",
    "lastExecuteTime": "",
    "monthly": {
      "monthDay": 0,
      "weekDayOfMonth": {
        "dayOfWeek": "",
        "dayOffset": 0,
        "weekOrdinal": 0
      }
    },
    "nextExecuteTime": "",
    "startTime": "",
    "timeOfDay": {
      "hours": 0,
      "minutes": 0,
      "nanos": 0,
      "seconds": 0
    },
    "timeZone": {
      "id": "",
      "version": ""
    },
    "weekly": {
      "dayOfWeek": ""
    }
  },
  "rollout": {
    "disruptionBudget": {
      "fixed": 0,
      "percent": 0
    },
    "mode": ""
  },
  "state": "",
  "updateTime": ""
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/v1beta/:parent/patchDeployments")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"createTime\": \"\",\n  \"description\": \"\",\n  \"duration\": \"\",\n  \"instanceFilter\": {\n    \"all\": false,\n    \"groupLabels\": [\n      {\n        \"labels\": {}\n      }\n    ],\n    \"instanceNamePrefixes\": [],\n    \"instances\": [],\n    \"zones\": []\n  },\n  \"lastExecuteTime\": \"\",\n  \"name\": \"\",\n  \"oneTimeSchedule\": {\n    \"executeTime\": \"\"\n  },\n  \"patchConfig\": {\n    \"apt\": {\n      \"excludes\": [],\n      \"exclusivePackages\": [],\n      \"type\": \"\"\n    },\n    \"goo\": {},\n    \"migInstancesAllowed\": false,\n    \"postStep\": {\n      \"linuxExecStepConfig\": {\n        \"allowedSuccessCodes\": [],\n        \"gcsObject\": {\n          \"bucket\": \"\",\n          \"generationNumber\": \"\",\n          \"object\": \"\"\n        },\n        \"interpreter\": \"\",\n        \"localPath\": \"\"\n      },\n      \"windowsExecStepConfig\": {}\n    },\n    \"preStep\": {},\n    \"rebootConfig\": \"\",\n    \"windowsUpdate\": {\n      \"classifications\": [],\n      \"excludes\": [],\n      \"exclusivePatches\": []\n    },\n    \"yum\": {\n      \"excludes\": [],\n      \"exclusivePackages\": [],\n      \"minimal\": false,\n      \"security\": false\n    },\n    \"zypper\": {\n      \"categories\": [],\n      \"excludes\": [],\n      \"exclusivePatches\": [],\n      \"severities\": [],\n      \"withOptional\": false,\n      \"withUpdate\": false\n    }\n  },\n  \"recurringSchedule\": {\n    \"endTime\": \"\",\n    \"frequency\": \"\",\n    \"lastExecuteTime\": \"\",\n    \"monthly\": {\n      \"monthDay\": 0,\n      \"weekDayOfMonth\": {\n        \"dayOfWeek\": \"\",\n        \"dayOffset\": 0,\n        \"weekOrdinal\": 0\n      }\n    },\n    \"nextExecuteTime\": \"\",\n    \"startTime\": \"\",\n    \"timeOfDay\": {\n      \"hours\": 0,\n      \"minutes\": 0,\n      \"nanos\": 0,\n      \"seconds\": 0\n    },\n    \"timeZone\": {\n      \"id\": \"\",\n      \"version\": \"\"\n    },\n    \"weekly\": {\n      \"dayOfWeek\": \"\"\n    }\n  },\n  \"rollout\": {\n    \"disruptionBudget\": {\n      \"fixed\": 0,\n      \"percent\": 0\n    },\n    \"mode\": \"\"\n  },\n  \"state\": \"\",\n  \"updateTime\": \"\"\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/v1beta/:parent/patchDeployments"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"createTime\": \"\",\n  \"description\": \"\",\n  \"duration\": \"\",\n  \"instanceFilter\": {\n    \"all\": false,\n    \"groupLabels\": [\n      {\n        \"labels\": {}\n      }\n    ],\n    \"instanceNamePrefixes\": [],\n    \"instances\": [],\n    \"zones\": []\n  },\n  \"lastExecuteTime\": \"\",\n  \"name\": \"\",\n  \"oneTimeSchedule\": {\n    \"executeTime\": \"\"\n  },\n  \"patchConfig\": {\n    \"apt\": {\n      \"excludes\": [],\n      \"exclusivePackages\": [],\n      \"type\": \"\"\n    },\n    \"goo\": {},\n    \"migInstancesAllowed\": false,\n    \"postStep\": {\n      \"linuxExecStepConfig\": {\n        \"allowedSuccessCodes\": [],\n        \"gcsObject\": {\n          \"bucket\": \"\",\n          \"generationNumber\": \"\",\n          \"object\": \"\"\n        },\n        \"interpreter\": \"\",\n        \"localPath\": \"\"\n      },\n      \"windowsExecStepConfig\": {}\n    },\n    \"preStep\": {},\n    \"rebootConfig\": \"\",\n    \"windowsUpdate\": {\n      \"classifications\": [],\n      \"excludes\": [],\n      \"exclusivePatches\": []\n    },\n    \"yum\": {\n      \"excludes\": [],\n      \"exclusivePackages\": [],\n      \"minimal\": false,\n      \"security\": false\n    },\n    \"zypper\": {\n      \"categories\": [],\n      \"excludes\": [],\n      \"exclusivePatches\": [],\n      \"severities\": [],\n      \"withOptional\": false,\n      \"withUpdate\": false\n    }\n  },\n  \"recurringSchedule\": {\n    \"endTime\": \"\",\n    \"frequency\": \"\",\n    \"lastExecuteTime\": \"\",\n    \"monthly\": {\n      \"monthDay\": 0,\n      \"weekDayOfMonth\": {\n        \"dayOfWeek\": \"\",\n        \"dayOffset\": 0,\n        \"weekOrdinal\": 0\n      }\n    },\n    \"nextExecuteTime\": \"\",\n    \"startTime\": \"\",\n    \"timeOfDay\": {\n      \"hours\": 0,\n      \"minutes\": 0,\n      \"nanos\": 0,\n      \"seconds\": 0\n    },\n    \"timeZone\": {\n      \"id\": \"\",\n      \"version\": \"\"\n    },\n    \"weekly\": {\n      \"dayOfWeek\": \"\"\n    }\n  },\n  \"rollout\": {\n    \"disruptionBudget\": {\n      \"fixed\": 0,\n      \"percent\": 0\n    },\n    \"mode\": \"\"\n  },\n  \"state\": \"\",\n  \"updateTime\": \"\"\n}"))
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\n  \"createTime\": \"\",\n  \"description\": \"\",\n  \"duration\": \"\",\n  \"instanceFilter\": {\n    \"all\": false,\n    \"groupLabels\": [\n      {\n        \"labels\": {}\n      }\n    ],\n    \"instanceNamePrefixes\": [],\n    \"instances\": [],\n    \"zones\": []\n  },\n  \"lastExecuteTime\": \"\",\n  \"name\": \"\",\n  \"oneTimeSchedule\": {\n    \"executeTime\": \"\"\n  },\n  \"patchConfig\": {\n    \"apt\": {\n      \"excludes\": [],\n      \"exclusivePackages\": [],\n      \"type\": \"\"\n    },\n    \"goo\": {},\n    \"migInstancesAllowed\": false,\n    \"postStep\": {\n      \"linuxExecStepConfig\": {\n        \"allowedSuccessCodes\": [],\n        \"gcsObject\": {\n          \"bucket\": \"\",\n          \"generationNumber\": \"\",\n          \"object\": \"\"\n        },\n        \"interpreter\": \"\",\n        \"localPath\": \"\"\n      },\n      \"windowsExecStepConfig\": {}\n    },\n    \"preStep\": {},\n    \"rebootConfig\": \"\",\n    \"windowsUpdate\": {\n      \"classifications\": [],\n      \"excludes\": [],\n      \"exclusivePatches\": []\n    },\n    \"yum\": {\n      \"excludes\": [],\n      \"exclusivePackages\": [],\n      \"minimal\": false,\n      \"security\": false\n    },\n    \"zypper\": {\n      \"categories\": [],\n      \"excludes\": [],\n      \"exclusivePatches\": [],\n      \"severities\": [],\n      \"withOptional\": false,\n      \"withUpdate\": false\n    }\n  },\n  \"recurringSchedule\": {\n    \"endTime\": \"\",\n    \"frequency\": \"\",\n    \"lastExecuteTime\": \"\",\n    \"monthly\": {\n      \"monthDay\": 0,\n      \"weekDayOfMonth\": {\n        \"dayOfWeek\": \"\",\n        \"dayOffset\": 0,\n        \"weekOrdinal\": 0\n      }\n    },\n    \"nextExecuteTime\": \"\",\n    \"startTime\": \"\",\n    \"timeOfDay\": {\n      \"hours\": 0,\n      \"minutes\": 0,\n      \"nanos\": 0,\n      \"seconds\": 0\n    },\n    \"timeZone\": {\n      \"id\": \"\",\n      \"version\": \"\"\n    },\n    \"weekly\": {\n      \"dayOfWeek\": \"\"\n    }\n  },\n  \"rollout\": {\n    \"disruptionBudget\": {\n      \"fixed\": 0,\n      \"percent\": 0\n    },\n    \"mode\": \"\"\n  },\n  \"state\": \"\",\n  \"updateTime\": \"\"\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/v1beta/:parent/patchDeployments")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/v1beta/:parent/patchDeployments")
  .header("content-type", "application/json")
  .body("{\n  \"createTime\": \"\",\n  \"description\": \"\",\n  \"duration\": \"\",\n  \"instanceFilter\": {\n    \"all\": false,\n    \"groupLabels\": [\n      {\n        \"labels\": {}\n      }\n    ],\n    \"instanceNamePrefixes\": [],\n    \"instances\": [],\n    \"zones\": []\n  },\n  \"lastExecuteTime\": \"\",\n  \"name\": \"\",\n  \"oneTimeSchedule\": {\n    \"executeTime\": \"\"\n  },\n  \"patchConfig\": {\n    \"apt\": {\n      \"excludes\": [],\n      \"exclusivePackages\": [],\n      \"type\": \"\"\n    },\n    \"goo\": {},\n    \"migInstancesAllowed\": false,\n    \"postStep\": {\n      \"linuxExecStepConfig\": {\n        \"allowedSuccessCodes\": [],\n        \"gcsObject\": {\n          \"bucket\": \"\",\n          \"generationNumber\": \"\",\n          \"object\": \"\"\n        },\n        \"interpreter\": \"\",\n        \"localPath\": \"\"\n      },\n      \"windowsExecStepConfig\": {}\n    },\n    \"preStep\": {},\n    \"rebootConfig\": \"\",\n    \"windowsUpdate\": {\n      \"classifications\": [],\n      \"excludes\": [],\n      \"exclusivePatches\": []\n    },\n    \"yum\": {\n      \"excludes\": [],\n      \"exclusivePackages\": [],\n      \"minimal\": false,\n      \"security\": false\n    },\n    \"zypper\": {\n      \"categories\": [],\n      \"excludes\": [],\n      \"exclusivePatches\": [],\n      \"severities\": [],\n      \"withOptional\": false,\n      \"withUpdate\": false\n    }\n  },\n  \"recurringSchedule\": {\n    \"endTime\": \"\",\n    \"frequency\": \"\",\n    \"lastExecuteTime\": \"\",\n    \"monthly\": {\n      \"monthDay\": 0,\n      \"weekDayOfMonth\": {\n        \"dayOfWeek\": \"\",\n        \"dayOffset\": 0,\n        \"weekOrdinal\": 0\n      }\n    },\n    \"nextExecuteTime\": \"\",\n    \"startTime\": \"\",\n    \"timeOfDay\": {\n      \"hours\": 0,\n      \"minutes\": 0,\n      \"nanos\": 0,\n      \"seconds\": 0\n    },\n    \"timeZone\": {\n      \"id\": \"\",\n      \"version\": \"\"\n    },\n    \"weekly\": {\n      \"dayOfWeek\": \"\"\n    }\n  },\n  \"rollout\": {\n    \"disruptionBudget\": {\n      \"fixed\": 0,\n      \"percent\": 0\n    },\n    \"mode\": \"\"\n  },\n  \"state\": \"\",\n  \"updateTime\": \"\"\n}")
  .asString();
const data = JSON.stringify({
  createTime: '',
  description: '',
  duration: '',
  instanceFilter: {
    all: false,
    groupLabels: [
      {
        labels: {}
      }
    ],
    instanceNamePrefixes: [],
    instances: [],
    zones: []
  },
  lastExecuteTime: '',
  name: '',
  oneTimeSchedule: {
    executeTime: ''
  },
  patchConfig: {
    apt: {
      excludes: [],
      exclusivePackages: [],
      type: ''
    },
    goo: {},
    migInstancesAllowed: false,
    postStep: {
      linuxExecStepConfig: {
        allowedSuccessCodes: [],
        gcsObject: {
          bucket: '',
          generationNumber: '',
          object: ''
        },
        interpreter: '',
        localPath: ''
      },
      windowsExecStepConfig: {}
    },
    preStep: {},
    rebootConfig: '',
    windowsUpdate: {
      classifications: [],
      excludes: [],
      exclusivePatches: []
    },
    yum: {
      excludes: [],
      exclusivePackages: [],
      minimal: false,
      security: false
    },
    zypper: {
      categories: [],
      excludes: [],
      exclusivePatches: [],
      severities: [],
      withOptional: false,
      withUpdate: false
    }
  },
  recurringSchedule: {
    endTime: '',
    frequency: '',
    lastExecuteTime: '',
    monthly: {
      monthDay: 0,
      weekDayOfMonth: {
        dayOfWeek: '',
        dayOffset: 0,
        weekOrdinal: 0
      }
    },
    nextExecuteTime: '',
    startTime: '',
    timeOfDay: {
      hours: 0,
      minutes: 0,
      nanos: 0,
      seconds: 0
    },
    timeZone: {
      id: '',
      version: ''
    },
    weekly: {
      dayOfWeek: ''
    }
  },
  rollout: {
    disruptionBudget: {
      fixed: 0,
      percent: 0
    },
    mode: ''
  },
  state: '',
  updateTime: ''
});

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

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

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

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

const options = {
  method: 'POST',
  url: '{{baseUrl}}/v1beta/:parent/patchDeployments',
  headers: {'content-type': 'application/json'},
  data: {
    createTime: '',
    description: '',
    duration: '',
    instanceFilter: {
      all: false,
      groupLabels: [{labels: {}}],
      instanceNamePrefixes: [],
      instances: [],
      zones: []
    },
    lastExecuteTime: '',
    name: '',
    oneTimeSchedule: {executeTime: ''},
    patchConfig: {
      apt: {excludes: [], exclusivePackages: [], type: ''},
      goo: {},
      migInstancesAllowed: false,
      postStep: {
        linuxExecStepConfig: {
          allowedSuccessCodes: [],
          gcsObject: {bucket: '', generationNumber: '', object: ''},
          interpreter: '',
          localPath: ''
        },
        windowsExecStepConfig: {}
      },
      preStep: {},
      rebootConfig: '',
      windowsUpdate: {classifications: [], excludes: [], exclusivePatches: []},
      yum: {excludes: [], exclusivePackages: [], minimal: false, security: false},
      zypper: {
        categories: [],
        excludes: [],
        exclusivePatches: [],
        severities: [],
        withOptional: false,
        withUpdate: false
      }
    },
    recurringSchedule: {
      endTime: '',
      frequency: '',
      lastExecuteTime: '',
      monthly: {monthDay: 0, weekDayOfMonth: {dayOfWeek: '', dayOffset: 0, weekOrdinal: 0}},
      nextExecuteTime: '',
      startTime: '',
      timeOfDay: {hours: 0, minutes: 0, nanos: 0, seconds: 0},
      timeZone: {id: '', version: ''},
      weekly: {dayOfWeek: ''}
    },
    rollout: {disruptionBudget: {fixed: 0, percent: 0}, mode: ''},
    state: '',
    updateTime: ''
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/v1beta/:parent/patchDeployments';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"createTime":"","description":"","duration":"","instanceFilter":{"all":false,"groupLabels":[{"labels":{}}],"instanceNamePrefixes":[],"instances":[],"zones":[]},"lastExecuteTime":"","name":"","oneTimeSchedule":{"executeTime":""},"patchConfig":{"apt":{"excludes":[],"exclusivePackages":[],"type":""},"goo":{},"migInstancesAllowed":false,"postStep":{"linuxExecStepConfig":{"allowedSuccessCodes":[],"gcsObject":{"bucket":"","generationNumber":"","object":""},"interpreter":"","localPath":""},"windowsExecStepConfig":{}},"preStep":{},"rebootConfig":"","windowsUpdate":{"classifications":[],"excludes":[],"exclusivePatches":[]},"yum":{"excludes":[],"exclusivePackages":[],"minimal":false,"security":false},"zypper":{"categories":[],"excludes":[],"exclusivePatches":[],"severities":[],"withOptional":false,"withUpdate":false}},"recurringSchedule":{"endTime":"","frequency":"","lastExecuteTime":"","monthly":{"monthDay":0,"weekDayOfMonth":{"dayOfWeek":"","dayOffset":0,"weekOrdinal":0}},"nextExecuteTime":"","startTime":"","timeOfDay":{"hours":0,"minutes":0,"nanos":0,"seconds":0},"timeZone":{"id":"","version":""},"weekly":{"dayOfWeek":""}},"rollout":{"disruptionBudget":{"fixed":0,"percent":0},"mode":""},"state":"","updateTime":""}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/v1beta/:parent/patchDeployments',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "createTime": "",\n  "description": "",\n  "duration": "",\n  "instanceFilter": {\n    "all": false,\n    "groupLabels": [\n      {\n        "labels": {}\n      }\n    ],\n    "instanceNamePrefixes": [],\n    "instances": [],\n    "zones": []\n  },\n  "lastExecuteTime": "",\n  "name": "",\n  "oneTimeSchedule": {\n    "executeTime": ""\n  },\n  "patchConfig": {\n    "apt": {\n      "excludes": [],\n      "exclusivePackages": [],\n      "type": ""\n    },\n    "goo": {},\n    "migInstancesAllowed": false,\n    "postStep": {\n      "linuxExecStepConfig": {\n        "allowedSuccessCodes": [],\n        "gcsObject": {\n          "bucket": "",\n          "generationNumber": "",\n          "object": ""\n        },\n        "interpreter": "",\n        "localPath": ""\n      },\n      "windowsExecStepConfig": {}\n    },\n    "preStep": {},\n    "rebootConfig": "",\n    "windowsUpdate": {\n      "classifications": [],\n      "excludes": [],\n      "exclusivePatches": []\n    },\n    "yum": {\n      "excludes": [],\n      "exclusivePackages": [],\n      "minimal": false,\n      "security": false\n    },\n    "zypper": {\n      "categories": [],\n      "excludes": [],\n      "exclusivePatches": [],\n      "severities": [],\n      "withOptional": false,\n      "withUpdate": false\n    }\n  },\n  "recurringSchedule": {\n    "endTime": "",\n    "frequency": "",\n    "lastExecuteTime": "",\n    "monthly": {\n      "monthDay": 0,\n      "weekDayOfMonth": {\n        "dayOfWeek": "",\n        "dayOffset": 0,\n        "weekOrdinal": 0\n      }\n    },\n    "nextExecuteTime": "",\n    "startTime": "",\n    "timeOfDay": {\n      "hours": 0,\n      "minutes": 0,\n      "nanos": 0,\n      "seconds": 0\n    },\n    "timeZone": {\n      "id": "",\n      "version": ""\n    },\n    "weekly": {\n      "dayOfWeek": ""\n    }\n  },\n  "rollout": {\n    "disruptionBudget": {\n      "fixed": 0,\n      "percent": 0\n    },\n    "mode": ""\n  },\n  "state": "",\n  "updateTime": ""\n}'
};

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

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"createTime\": \"\",\n  \"description\": \"\",\n  \"duration\": \"\",\n  \"instanceFilter\": {\n    \"all\": false,\n    \"groupLabels\": [\n      {\n        \"labels\": {}\n      }\n    ],\n    \"instanceNamePrefixes\": [],\n    \"instances\": [],\n    \"zones\": []\n  },\n  \"lastExecuteTime\": \"\",\n  \"name\": \"\",\n  \"oneTimeSchedule\": {\n    \"executeTime\": \"\"\n  },\n  \"patchConfig\": {\n    \"apt\": {\n      \"excludes\": [],\n      \"exclusivePackages\": [],\n      \"type\": \"\"\n    },\n    \"goo\": {},\n    \"migInstancesAllowed\": false,\n    \"postStep\": {\n      \"linuxExecStepConfig\": {\n        \"allowedSuccessCodes\": [],\n        \"gcsObject\": {\n          \"bucket\": \"\",\n          \"generationNumber\": \"\",\n          \"object\": \"\"\n        },\n        \"interpreter\": \"\",\n        \"localPath\": \"\"\n      },\n      \"windowsExecStepConfig\": {}\n    },\n    \"preStep\": {},\n    \"rebootConfig\": \"\",\n    \"windowsUpdate\": {\n      \"classifications\": [],\n      \"excludes\": [],\n      \"exclusivePatches\": []\n    },\n    \"yum\": {\n      \"excludes\": [],\n      \"exclusivePackages\": [],\n      \"minimal\": false,\n      \"security\": false\n    },\n    \"zypper\": {\n      \"categories\": [],\n      \"excludes\": [],\n      \"exclusivePatches\": [],\n      \"severities\": [],\n      \"withOptional\": false,\n      \"withUpdate\": false\n    }\n  },\n  \"recurringSchedule\": {\n    \"endTime\": \"\",\n    \"frequency\": \"\",\n    \"lastExecuteTime\": \"\",\n    \"monthly\": {\n      \"monthDay\": 0,\n      \"weekDayOfMonth\": {\n        \"dayOfWeek\": \"\",\n        \"dayOffset\": 0,\n        \"weekOrdinal\": 0\n      }\n    },\n    \"nextExecuteTime\": \"\",\n    \"startTime\": \"\",\n    \"timeOfDay\": {\n      \"hours\": 0,\n      \"minutes\": 0,\n      \"nanos\": 0,\n      \"seconds\": 0\n    },\n    \"timeZone\": {\n      \"id\": \"\",\n      \"version\": \"\"\n    },\n    \"weekly\": {\n      \"dayOfWeek\": \"\"\n    }\n  },\n  \"rollout\": {\n    \"disruptionBudget\": {\n      \"fixed\": 0,\n      \"percent\": 0\n    },\n    \"mode\": \"\"\n  },\n  \"state\": \"\",\n  \"updateTime\": \"\"\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/v1beta/:parent/patchDeployments")
  .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/v1beta/:parent/patchDeployments',
  headers: {
    'content-type': 'application/json'
  }
};

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

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

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

req.write(JSON.stringify({
  createTime: '',
  description: '',
  duration: '',
  instanceFilter: {
    all: false,
    groupLabels: [{labels: {}}],
    instanceNamePrefixes: [],
    instances: [],
    zones: []
  },
  lastExecuteTime: '',
  name: '',
  oneTimeSchedule: {executeTime: ''},
  patchConfig: {
    apt: {excludes: [], exclusivePackages: [], type: ''},
    goo: {},
    migInstancesAllowed: false,
    postStep: {
      linuxExecStepConfig: {
        allowedSuccessCodes: [],
        gcsObject: {bucket: '', generationNumber: '', object: ''},
        interpreter: '',
        localPath: ''
      },
      windowsExecStepConfig: {}
    },
    preStep: {},
    rebootConfig: '',
    windowsUpdate: {classifications: [], excludes: [], exclusivePatches: []},
    yum: {excludes: [], exclusivePackages: [], minimal: false, security: false},
    zypper: {
      categories: [],
      excludes: [],
      exclusivePatches: [],
      severities: [],
      withOptional: false,
      withUpdate: false
    }
  },
  recurringSchedule: {
    endTime: '',
    frequency: '',
    lastExecuteTime: '',
    monthly: {monthDay: 0, weekDayOfMonth: {dayOfWeek: '', dayOffset: 0, weekOrdinal: 0}},
    nextExecuteTime: '',
    startTime: '',
    timeOfDay: {hours: 0, minutes: 0, nanos: 0, seconds: 0},
    timeZone: {id: '', version: ''},
    weekly: {dayOfWeek: ''}
  },
  rollout: {disruptionBudget: {fixed: 0, percent: 0}, mode: ''},
  state: '',
  updateTime: ''
}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/v1beta/:parent/patchDeployments',
  headers: {'content-type': 'application/json'},
  body: {
    createTime: '',
    description: '',
    duration: '',
    instanceFilter: {
      all: false,
      groupLabels: [{labels: {}}],
      instanceNamePrefixes: [],
      instances: [],
      zones: []
    },
    lastExecuteTime: '',
    name: '',
    oneTimeSchedule: {executeTime: ''},
    patchConfig: {
      apt: {excludes: [], exclusivePackages: [], type: ''},
      goo: {},
      migInstancesAllowed: false,
      postStep: {
        linuxExecStepConfig: {
          allowedSuccessCodes: [],
          gcsObject: {bucket: '', generationNumber: '', object: ''},
          interpreter: '',
          localPath: ''
        },
        windowsExecStepConfig: {}
      },
      preStep: {},
      rebootConfig: '',
      windowsUpdate: {classifications: [], excludes: [], exclusivePatches: []},
      yum: {excludes: [], exclusivePackages: [], minimal: false, security: false},
      zypper: {
        categories: [],
        excludes: [],
        exclusivePatches: [],
        severities: [],
        withOptional: false,
        withUpdate: false
      }
    },
    recurringSchedule: {
      endTime: '',
      frequency: '',
      lastExecuteTime: '',
      monthly: {monthDay: 0, weekDayOfMonth: {dayOfWeek: '', dayOffset: 0, weekOrdinal: 0}},
      nextExecuteTime: '',
      startTime: '',
      timeOfDay: {hours: 0, minutes: 0, nanos: 0, seconds: 0},
      timeZone: {id: '', version: ''},
      weekly: {dayOfWeek: ''}
    },
    rollout: {disruptionBudget: {fixed: 0, percent: 0}, mode: ''},
    state: '',
    updateTime: ''
  },
  json: true
};

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

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

const req = unirest('POST', '{{baseUrl}}/v1beta/:parent/patchDeployments');

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

req.type('json');
req.send({
  createTime: '',
  description: '',
  duration: '',
  instanceFilter: {
    all: false,
    groupLabels: [
      {
        labels: {}
      }
    ],
    instanceNamePrefixes: [],
    instances: [],
    zones: []
  },
  lastExecuteTime: '',
  name: '',
  oneTimeSchedule: {
    executeTime: ''
  },
  patchConfig: {
    apt: {
      excludes: [],
      exclusivePackages: [],
      type: ''
    },
    goo: {},
    migInstancesAllowed: false,
    postStep: {
      linuxExecStepConfig: {
        allowedSuccessCodes: [],
        gcsObject: {
          bucket: '',
          generationNumber: '',
          object: ''
        },
        interpreter: '',
        localPath: ''
      },
      windowsExecStepConfig: {}
    },
    preStep: {},
    rebootConfig: '',
    windowsUpdate: {
      classifications: [],
      excludes: [],
      exclusivePatches: []
    },
    yum: {
      excludes: [],
      exclusivePackages: [],
      minimal: false,
      security: false
    },
    zypper: {
      categories: [],
      excludes: [],
      exclusivePatches: [],
      severities: [],
      withOptional: false,
      withUpdate: false
    }
  },
  recurringSchedule: {
    endTime: '',
    frequency: '',
    lastExecuteTime: '',
    monthly: {
      monthDay: 0,
      weekDayOfMonth: {
        dayOfWeek: '',
        dayOffset: 0,
        weekOrdinal: 0
      }
    },
    nextExecuteTime: '',
    startTime: '',
    timeOfDay: {
      hours: 0,
      minutes: 0,
      nanos: 0,
      seconds: 0
    },
    timeZone: {
      id: '',
      version: ''
    },
    weekly: {
      dayOfWeek: ''
    }
  },
  rollout: {
    disruptionBudget: {
      fixed: 0,
      percent: 0
    },
    mode: ''
  },
  state: '',
  updateTime: ''
});

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

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

const options = {
  method: 'POST',
  url: '{{baseUrl}}/v1beta/:parent/patchDeployments',
  headers: {'content-type': 'application/json'},
  data: {
    createTime: '',
    description: '',
    duration: '',
    instanceFilter: {
      all: false,
      groupLabels: [{labels: {}}],
      instanceNamePrefixes: [],
      instances: [],
      zones: []
    },
    lastExecuteTime: '',
    name: '',
    oneTimeSchedule: {executeTime: ''},
    patchConfig: {
      apt: {excludes: [], exclusivePackages: [], type: ''},
      goo: {},
      migInstancesAllowed: false,
      postStep: {
        linuxExecStepConfig: {
          allowedSuccessCodes: [],
          gcsObject: {bucket: '', generationNumber: '', object: ''},
          interpreter: '',
          localPath: ''
        },
        windowsExecStepConfig: {}
      },
      preStep: {},
      rebootConfig: '',
      windowsUpdate: {classifications: [], excludes: [], exclusivePatches: []},
      yum: {excludes: [], exclusivePackages: [], minimal: false, security: false},
      zypper: {
        categories: [],
        excludes: [],
        exclusivePatches: [],
        severities: [],
        withOptional: false,
        withUpdate: false
      }
    },
    recurringSchedule: {
      endTime: '',
      frequency: '',
      lastExecuteTime: '',
      monthly: {monthDay: 0, weekDayOfMonth: {dayOfWeek: '', dayOffset: 0, weekOrdinal: 0}},
      nextExecuteTime: '',
      startTime: '',
      timeOfDay: {hours: 0, minutes: 0, nanos: 0, seconds: 0},
      timeZone: {id: '', version: ''},
      weekly: {dayOfWeek: ''}
    },
    rollout: {disruptionBudget: {fixed: 0, percent: 0}, mode: ''},
    state: '',
    updateTime: ''
  }
};

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

const url = '{{baseUrl}}/v1beta/:parent/patchDeployments';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"createTime":"","description":"","duration":"","instanceFilter":{"all":false,"groupLabels":[{"labels":{}}],"instanceNamePrefixes":[],"instances":[],"zones":[]},"lastExecuteTime":"","name":"","oneTimeSchedule":{"executeTime":""},"patchConfig":{"apt":{"excludes":[],"exclusivePackages":[],"type":""},"goo":{},"migInstancesAllowed":false,"postStep":{"linuxExecStepConfig":{"allowedSuccessCodes":[],"gcsObject":{"bucket":"","generationNumber":"","object":""},"interpreter":"","localPath":""},"windowsExecStepConfig":{}},"preStep":{},"rebootConfig":"","windowsUpdate":{"classifications":[],"excludes":[],"exclusivePatches":[]},"yum":{"excludes":[],"exclusivePackages":[],"minimal":false,"security":false},"zypper":{"categories":[],"excludes":[],"exclusivePatches":[],"severities":[],"withOptional":false,"withUpdate":false}},"recurringSchedule":{"endTime":"","frequency":"","lastExecuteTime":"","monthly":{"monthDay":0,"weekDayOfMonth":{"dayOfWeek":"","dayOffset":0,"weekOrdinal":0}},"nextExecuteTime":"","startTime":"","timeOfDay":{"hours":0,"minutes":0,"nanos":0,"seconds":0},"timeZone":{"id":"","version":""},"weekly":{"dayOfWeek":""}},"rollout":{"disruptionBudget":{"fixed":0,"percent":0},"mode":""},"state":"","updateTime":""}'
};

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

NSDictionary *headers = @{ @"content-type": @"application/json" };
NSDictionary *parameters = @{ @"createTime": @"",
                              @"description": @"",
                              @"duration": @"",
                              @"instanceFilter": @{ @"all": @NO, @"groupLabels": @[ @{ @"labels": @{  } } ], @"instanceNamePrefixes": @[  ], @"instances": @[  ], @"zones": @[  ] },
                              @"lastExecuteTime": @"",
                              @"name": @"",
                              @"oneTimeSchedule": @{ @"executeTime": @"" },
                              @"patchConfig": @{ @"apt": @{ @"excludes": @[  ], @"exclusivePackages": @[  ], @"type": @"" }, @"goo": @{  }, @"migInstancesAllowed": @NO, @"postStep": @{ @"linuxExecStepConfig": @{ @"allowedSuccessCodes": @[  ], @"gcsObject": @{ @"bucket": @"", @"generationNumber": @"", @"object": @"" }, @"interpreter": @"", @"localPath": @"" }, @"windowsExecStepConfig": @{  } }, @"preStep": @{  }, @"rebootConfig": @"", @"windowsUpdate": @{ @"classifications": @[  ], @"excludes": @[  ], @"exclusivePatches": @[  ] }, @"yum": @{ @"excludes": @[  ], @"exclusivePackages": @[  ], @"minimal": @NO, @"security": @NO }, @"zypper": @{ @"categories": @[  ], @"excludes": @[  ], @"exclusivePatches": @[  ], @"severities": @[  ], @"withOptional": @NO, @"withUpdate": @NO } },
                              @"recurringSchedule": @{ @"endTime": @"", @"frequency": @"", @"lastExecuteTime": @"", @"monthly": @{ @"monthDay": @0, @"weekDayOfMonth": @{ @"dayOfWeek": @"", @"dayOffset": @0, @"weekOrdinal": @0 } }, @"nextExecuteTime": @"", @"startTime": @"", @"timeOfDay": @{ @"hours": @0, @"minutes": @0, @"nanos": @0, @"seconds": @0 }, @"timeZone": @{ @"id": @"", @"version": @"" }, @"weekly": @{ @"dayOfWeek": @"" } },
                              @"rollout": @{ @"disruptionBudget": @{ @"fixed": @0, @"percent": @0 }, @"mode": @"" },
                              @"state": @"",
                              @"updateTime": @"" };

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

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/v1beta/:parent/patchDeployments"]
                                                       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}}/v1beta/:parent/patchDeployments" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"createTime\": \"\",\n  \"description\": \"\",\n  \"duration\": \"\",\n  \"instanceFilter\": {\n    \"all\": false,\n    \"groupLabels\": [\n      {\n        \"labels\": {}\n      }\n    ],\n    \"instanceNamePrefixes\": [],\n    \"instances\": [],\n    \"zones\": []\n  },\n  \"lastExecuteTime\": \"\",\n  \"name\": \"\",\n  \"oneTimeSchedule\": {\n    \"executeTime\": \"\"\n  },\n  \"patchConfig\": {\n    \"apt\": {\n      \"excludes\": [],\n      \"exclusivePackages\": [],\n      \"type\": \"\"\n    },\n    \"goo\": {},\n    \"migInstancesAllowed\": false,\n    \"postStep\": {\n      \"linuxExecStepConfig\": {\n        \"allowedSuccessCodes\": [],\n        \"gcsObject\": {\n          \"bucket\": \"\",\n          \"generationNumber\": \"\",\n          \"object\": \"\"\n        },\n        \"interpreter\": \"\",\n        \"localPath\": \"\"\n      },\n      \"windowsExecStepConfig\": {}\n    },\n    \"preStep\": {},\n    \"rebootConfig\": \"\",\n    \"windowsUpdate\": {\n      \"classifications\": [],\n      \"excludes\": [],\n      \"exclusivePatches\": []\n    },\n    \"yum\": {\n      \"excludes\": [],\n      \"exclusivePackages\": [],\n      \"minimal\": false,\n      \"security\": false\n    },\n    \"zypper\": {\n      \"categories\": [],\n      \"excludes\": [],\n      \"exclusivePatches\": [],\n      \"severities\": [],\n      \"withOptional\": false,\n      \"withUpdate\": false\n    }\n  },\n  \"recurringSchedule\": {\n    \"endTime\": \"\",\n    \"frequency\": \"\",\n    \"lastExecuteTime\": \"\",\n    \"monthly\": {\n      \"monthDay\": 0,\n      \"weekDayOfMonth\": {\n        \"dayOfWeek\": \"\",\n        \"dayOffset\": 0,\n        \"weekOrdinal\": 0\n      }\n    },\n    \"nextExecuteTime\": \"\",\n    \"startTime\": \"\",\n    \"timeOfDay\": {\n      \"hours\": 0,\n      \"minutes\": 0,\n      \"nanos\": 0,\n      \"seconds\": 0\n    },\n    \"timeZone\": {\n      \"id\": \"\",\n      \"version\": \"\"\n    },\n    \"weekly\": {\n      \"dayOfWeek\": \"\"\n    }\n  },\n  \"rollout\": {\n    \"disruptionBudget\": {\n      \"fixed\": 0,\n      \"percent\": 0\n    },\n    \"mode\": \"\"\n  },\n  \"state\": \"\",\n  \"updateTime\": \"\"\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/v1beta/:parent/patchDeployments",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "POST",
  CURLOPT_POSTFIELDS => json_encode([
    'createTime' => '',
    'description' => '',
    'duration' => '',
    'instanceFilter' => [
        'all' => null,
        'groupLabels' => [
                [
                                'labels' => [
                                                                
                                ]
                ]
        ],
        'instanceNamePrefixes' => [
                
        ],
        'instances' => [
                
        ],
        'zones' => [
                
        ]
    ],
    'lastExecuteTime' => '',
    'name' => '',
    'oneTimeSchedule' => [
        'executeTime' => ''
    ],
    'patchConfig' => [
        'apt' => [
                'excludes' => [
                                
                ],
                'exclusivePackages' => [
                                
                ],
                'type' => ''
        ],
        'goo' => [
                
        ],
        'migInstancesAllowed' => null,
        'postStep' => [
                'linuxExecStepConfig' => [
                                'allowedSuccessCodes' => [
                                                                
                                ],
                                'gcsObject' => [
                                                                'bucket' => '',
                                                                'generationNumber' => '',
                                                                'object' => ''
                                ],
                                'interpreter' => '',
                                'localPath' => ''
                ],
                'windowsExecStepConfig' => [
                                
                ]
        ],
        'preStep' => [
                
        ],
        'rebootConfig' => '',
        'windowsUpdate' => [
                'classifications' => [
                                
                ],
                'excludes' => [
                                
                ],
                'exclusivePatches' => [
                                
                ]
        ],
        'yum' => [
                'excludes' => [
                                
                ],
                'exclusivePackages' => [
                                
                ],
                'minimal' => null,
                'security' => null
        ],
        'zypper' => [
                'categories' => [
                                
                ],
                'excludes' => [
                                
                ],
                'exclusivePatches' => [
                                
                ],
                'severities' => [
                                
                ],
                'withOptional' => null,
                'withUpdate' => null
        ]
    ],
    'recurringSchedule' => [
        'endTime' => '',
        'frequency' => '',
        'lastExecuteTime' => '',
        'monthly' => [
                'monthDay' => 0,
                'weekDayOfMonth' => [
                                'dayOfWeek' => '',
                                'dayOffset' => 0,
                                'weekOrdinal' => 0
                ]
        ],
        'nextExecuteTime' => '',
        'startTime' => '',
        'timeOfDay' => [
                'hours' => 0,
                'minutes' => 0,
                'nanos' => 0,
                'seconds' => 0
        ],
        'timeZone' => [
                'id' => '',
                'version' => ''
        ],
        'weekly' => [
                'dayOfWeek' => ''
        ]
    ],
    'rollout' => [
        'disruptionBudget' => [
                'fixed' => 0,
                'percent' => 0
        ],
        'mode' => ''
    ],
    'state' => '',
    'updateTime' => ''
  ]),
  CURLOPT_HTTPHEADER => [
    "content-type: application/json"
  ],
]);

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

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('POST', '{{baseUrl}}/v1beta/:parent/patchDeployments', [
  'body' => '{
  "createTime": "",
  "description": "",
  "duration": "",
  "instanceFilter": {
    "all": false,
    "groupLabels": [
      {
        "labels": {}
      }
    ],
    "instanceNamePrefixes": [],
    "instances": [],
    "zones": []
  },
  "lastExecuteTime": "",
  "name": "",
  "oneTimeSchedule": {
    "executeTime": ""
  },
  "patchConfig": {
    "apt": {
      "excludes": [],
      "exclusivePackages": [],
      "type": ""
    },
    "goo": {},
    "migInstancesAllowed": false,
    "postStep": {
      "linuxExecStepConfig": {
        "allowedSuccessCodes": [],
        "gcsObject": {
          "bucket": "",
          "generationNumber": "",
          "object": ""
        },
        "interpreter": "",
        "localPath": ""
      },
      "windowsExecStepConfig": {}
    },
    "preStep": {},
    "rebootConfig": "",
    "windowsUpdate": {
      "classifications": [],
      "excludes": [],
      "exclusivePatches": []
    },
    "yum": {
      "excludes": [],
      "exclusivePackages": [],
      "minimal": false,
      "security": false
    },
    "zypper": {
      "categories": [],
      "excludes": [],
      "exclusivePatches": [],
      "severities": [],
      "withOptional": false,
      "withUpdate": false
    }
  },
  "recurringSchedule": {
    "endTime": "",
    "frequency": "",
    "lastExecuteTime": "",
    "monthly": {
      "monthDay": 0,
      "weekDayOfMonth": {
        "dayOfWeek": "",
        "dayOffset": 0,
        "weekOrdinal": 0
      }
    },
    "nextExecuteTime": "",
    "startTime": "",
    "timeOfDay": {
      "hours": 0,
      "minutes": 0,
      "nanos": 0,
      "seconds": 0
    },
    "timeZone": {
      "id": "",
      "version": ""
    },
    "weekly": {
      "dayOfWeek": ""
    }
  },
  "rollout": {
    "disruptionBudget": {
      "fixed": 0,
      "percent": 0
    },
    "mode": ""
  },
  "state": "",
  "updateTime": ""
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

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

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

$request->setContentType('application/json');
$request->setBody(json_encode([
  'createTime' => '',
  'description' => '',
  'duration' => '',
  'instanceFilter' => [
    'all' => null,
    'groupLabels' => [
        [
                'labels' => [
                                
                ]
        ]
    ],
    'instanceNamePrefixes' => [
        
    ],
    'instances' => [
        
    ],
    'zones' => [
        
    ]
  ],
  'lastExecuteTime' => '',
  'name' => '',
  'oneTimeSchedule' => [
    'executeTime' => ''
  ],
  'patchConfig' => [
    'apt' => [
        'excludes' => [
                
        ],
        'exclusivePackages' => [
                
        ],
        'type' => ''
    ],
    'goo' => [
        
    ],
    'migInstancesAllowed' => null,
    'postStep' => [
        'linuxExecStepConfig' => [
                'allowedSuccessCodes' => [
                                
                ],
                'gcsObject' => [
                                'bucket' => '',
                                'generationNumber' => '',
                                'object' => ''
                ],
                'interpreter' => '',
                'localPath' => ''
        ],
        'windowsExecStepConfig' => [
                
        ]
    ],
    'preStep' => [
        
    ],
    'rebootConfig' => '',
    'windowsUpdate' => [
        'classifications' => [
                
        ],
        'excludes' => [
                
        ],
        'exclusivePatches' => [
                
        ]
    ],
    'yum' => [
        'excludes' => [
                
        ],
        'exclusivePackages' => [
                
        ],
        'minimal' => null,
        'security' => null
    ],
    'zypper' => [
        'categories' => [
                
        ],
        'excludes' => [
                
        ],
        'exclusivePatches' => [
                
        ],
        'severities' => [
                
        ],
        'withOptional' => null,
        'withUpdate' => null
    ]
  ],
  'recurringSchedule' => [
    'endTime' => '',
    'frequency' => '',
    'lastExecuteTime' => '',
    'monthly' => [
        'monthDay' => 0,
        'weekDayOfMonth' => [
                'dayOfWeek' => '',
                'dayOffset' => 0,
                'weekOrdinal' => 0
        ]
    ],
    'nextExecuteTime' => '',
    'startTime' => '',
    'timeOfDay' => [
        'hours' => 0,
        'minutes' => 0,
        'nanos' => 0,
        'seconds' => 0
    ],
    'timeZone' => [
        'id' => '',
        'version' => ''
    ],
    'weekly' => [
        'dayOfWeek' => ''
    ]
  ],
  'rollout' => [
    'disruptionBudget' => [
        'fixed' => 0,
        'percent' => 0
    ],
    'mode' => ''
  ],
  'state' => '',
  'updateTime' => ''
]));

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'createTime' => '',
  'description' => '',
  'duration' => '',
  'instanceFilter' => [
    'all' => null,
    'groupLabels' => [
        [
                'labels' => [
                                
                ]
        ]
    ],
    'instanceNamePrefixes' => [
        
    ],
    'instances' => [
        
    ],
    'zones' => [
        
    ]
  ],
  'lastExecuteTime' => '',
  'name' => '',
  'oneTimeSchedule' => [
    'executeTime' => ''
  ],
  'patchConfig' => [
    'apt' => [
        'excludes' => [
                
        ],
        'exclusivePackages' => [
                
        ],
        'type' => ''
    ],
    'goo' => [
        
    ],
    'migInstancesAllowed' => null,
    'postStep' => [
        'linuxExecStepConfig' => [
                'allowedSuccessCodes' => [
                                
                ],
                'gcsObject' => [
                                'bucket' => '',
                                'generationNumber' => '',
                                'object' => ''
                ],
                'interpreter' => '',
                'localPath' => ''
        ],
        'windowsExecStepConfig' => [
                
        ]
    ],
    'preStep' => [
        
    ],
    'rebootConfig' => '',
    'windowsUpdate' => [
        'classifications' => [
                
        ],
        'excludes' => [
                
        ],
        'exclusivePatches' => [
                
        ]
    ],
    'yum' => [
        'excludes' => [
                
        ],
        'exclusivePackages' => [
                
        ],
        'minimal' => null,
        'security' => null
    ],
    'zypper' => [
        'categories' => [
                
        ],
        'excludes' => [
                
        ],
        'exclusivePatches' => [
                
        ],
        'severities' => [
                
        ],
        'withOptional' => null,
        'withUpdate' => null
    ]
  ],
  'recurringSchedule' => [
    'endTime' => '',
    'frequency' => '',
    'lastExecuteTime' => '',
    'monthly' => [
        'monthDay' => 0,
        'weekDayOfMonth' => [
                'dayOfWeek' => '',
                'dayOffset' => 0,
                'weekOrdinal' => 0
        ]
    ],
    'nextExecuteTime' => '',
    'startTime' => '',
    'timeOfDay' => [
        'hours' => 0,
        'minutes' => 0,
        'nanos' => 0,
        'seconds' => 0
    ],
    'timeZone' => [
        'id' => '',
        'version' => ''
    ],
    'weekly' => [
        'dayOfWeek' => ''
    ]
  ],
  'rollout' => [
    'disruptionBudget' => [
        'fixed' => 0,
        'percent' => 0
    ],
    'mode' => ''
  ],
  'state' => '',
  'updateTime' => ''
]));
$request->setRequestUrl('{{baseUrl}}/v1beta/:parent/patchDeployments');
$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}}/v1beta/:parent/patchDeployments' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "createTime": "",
  "description": "",
  "duration": "",
  "instanceFilter": {
    "all": false,
    "groupLabels": [
      {
        "labels": {}
      }
    ],
    "instanceNamePrefixes": [],
    "instances": [],
    "zones": []
  },
  "lastExecuteTime": "",
  "name": "",
  "oneTimeSchedule": {
    "executeTime": ""
  },
  "patchConfig": {
    "apt": {
      "excludes": [],
      "exclusivePackages": [],
      "type": ""
    },
    "goo": {},
    "migInstancesAllowed": false,
    "postStep": {
      "linuxExecStepConfig": {
        "allowedSuccessCodes": [],
        "gcsObject": {
          "bucket": "",
          "generationNumber": "",
          "object": ""
        },
        "interpreter": "",
        "localPath": ""
      },
      "windowsExecStepConfig": {}
    },
    "preStep": {},
    "rebootConfig": "",
    "windowsUpdate": {
      "classifications": [],
      "excludes": [],
      "exclusivePatches": []
    },
    "yum": {
      "excludes": [],
      "exclusivePackages": [],
      "minimal": false,
      "security": false
    },
    "zypper": {
      "categories": [],
      "excludes": [],
      "exclusivePatches": [],
      "severities": [],
      "withOptional": false,
      "withUpdate": false
    }
  },
  "recurringSchedule": {
    "endTime": "",
    "frequency": "",
    "lastExecuteTime": "",
    "monthly": {
      "monthDay": 0,
      "weekDayOfMonth": {
        "dayOfWeek": "",
        "dayOffset": 0,
        "weekOrdinal": 0
      }
    },
    "nextExecuteTime": "",
    "startTime": "",
    "timeOfDay": {
      "hours": 0,
      "minutes": 0,
      "nanos": 0,
      "seconds": 0
    },
    "timeZone": {
      "id": "",
      "version": ""
    },
    "weekly": {
      "dayOfWeek": ""
    }
  },
  "rollout": {
    "disruptionBudget": {
      "fixed": 0,
      "percent": 0
    },
    "mode": ""
  },
  "state": "",
  "updateTime": ""
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/v1beta/:parent/patchDeployments' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "createTime": "",
  "description": "",
  "duration": "",
  "instanceFilter": {
    "all": false,
    "groupLabels": [
      {
        "labels": {}
      }
    ],
    "instanceNamePrefixes": [],
    "instances": [],
    "zones": []
  },
  "lastExecuteTime": "",
  "name": "",
  "oneTimeSchedule": {
    "executeTime": ""
  },
  "patchConfig": {
    "apt": {
      "excludes": [],
      "exclusivePackages": [],
      "type": ""
    },
    "goo": {},
    "migInstancesAllowed": false,
    "postStep": {
      "linuxExecStepConfig": {
        "allowedSuccessCodes": [],
        "gcsObject": {
          "bucket": "",
          "generationNumber": "",
          "object": ""
        },
        "interpreter": "",
        "localPath": ""
      },
      "windowsExecStepConfig": {}
    },
    "preStep": {},
    "rebootConfig": "",
    "windowsUpdate": {
      "classifications": [],
      "excludes": [],
      "exclusivePatches": []
    },
    "yum": {
      "excludes": [],
      "exclusivePackages": [],
      "minimal": false,
      "security": false
    },
    "zypper": {
      "categories": [],
      "excludes": [],
      "exclusivePatches": [],
      "severities": [],
      "withOptional": false,
      "withUpdate": false
    }
  },
  "recurringSchedule": {
    "endTime": "",
    "frequency": "",
    "lastExecuteTime": "",
    "monthly": {
      "monthDay": 0,
      "weekDayOfMonth": {
        "dayOfWeek": "",
        "dayOffset": 0,
        "weekOrdinal": 0
      }
    },
    "nextExecuteTime": "",
    "startTime": "",
    "timeOfDay": {
      "hours": 0,
      "minutes": 0,
      "nanos": 0,
      "seconds": 0
    },
    "timeZone": {
      "id": "",
      "version": ""
    },
    "weekly": {
      "dayOfWeek": ""
    }
  },
  "rollout": {
    "disruptionBudget": {
      "fixed": 0,
      "percent": 0
    },
    "mode": ""
  },
  "state": "",
  "updateTime": ""
}'
import http.client

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

payload = "{\n  \"createTime\": \"\",\n  \"description\": \"\",\n  \"duration\": \"\",\n  \"instanceFilter\": {\n    \"all\": false,\n    \"groupLabels\": [\n      {\n        \"labels\": {}\n      }\n    ],\n    \"instanceNamePrefixes\": [],\n    \"instances\": [],\n    \"zones\": []\n  },\n  \"lastExecuteTime\": \"\",\n  \"name\": \"\",\n  \"oneTimeSchedule\": {\n    \"executeTime\": \"\"\n  },\n  \"patchConfig\": {\n    \"apt\": {\n      \"excludes\": [],\n      \"exclusivePackages\": [],\n      \"type\": \"\"\n    },\n    \"goo\": {},\n    \"migInstancesAllowed\": false,\n    \"postStep\": {\n      \"linuxExecStepConfig\": {\n        \"allowedSuccessCodes\": [],\n        \"gcsObject\": {\n          \"bucket\": \"\",\n          \"generationNumber\": \"\",\n          \"object\": \"\"\n        },\n        \"interpreter\": \"\",\n        \"localPath\": \"\"\n      },\n      \"windowsExecStepConfig\": {}\n    },\n    \"preStep\": {},\n    \"rebootConfig\": \"\",\n    \"windowsUpdate\": {\n      \"classifications\": [],\n      \"excludes\": [],\n      \"exclusivePatches\": []\n    },\n    \"yum\": {\n      \"excludes\": [],\n      \"exclusivePackages\": [],\n      \"minimal\": false,\n      \"security\": false\n    },\n    \"zypper\": {\n      \"categories\": [],\n      \"excludes\": [],\n      \"exclusivePatches\": [],\n      \"severities\": [],\n      \"withOptional\": false,\n      \"withUpdate\": false\n    }\n  },\n  \"recurringSchedule\": {\n    \"endTime\": \"\",\n    \"frequency\": \"\",\n    \"lastExecuteTime\": \"\",\n    \"monthly\": {\n      \"monthDay\": 0,\n      \"weekDayOfMonth\": {\n        \"dayOfWeek\": \"\",\n        \"dayOffset\": 0,\n        \"weekOrdinal\": 0\n      }\n    },\n    \"nextExecuteTime\": \"\",\n    \"startTime\": \"\",\n    \"timeOfDay\": {\n      \"hours\": 0,\n      \"minutes\": 0,\n      \"nanos\": 0,\n      \"seconds\": 0\n    },\n    \"timeZone\": {\n      \"id\": \"\",\n      \"version\": \"\"\n    },\n    \"weekly\": {\n      \"dayOfWeek\": \"\"\n    }\n  },\n  \"rollout\": {\n    \"disruptionBudget\": {\n      \"fixed\": 0,\n      \"percent\": 0\n    },\n    \"mode\": \"\"\n  },\n  \"state\": \"\",\n  \"updateTime\": \"\"\n}"

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

conn.request("POST", "/baseUrl/v1beta/:parent/patchDeployments", payload, headers)

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

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

url = "{{baseUrl}}/v1beta/:parent/patchDeployments"

payload = {
    "createTime": "",
    "description": "",
    "duration": "",
    "instanceFilter": {
        "all": False,
        "groupLabels": [{ "labels": {} }],
        "instanceNamePrefixes": [],
        "instances": [],
        "zones": []
    },
    "lastExecuteTime": "",
    "name": "",
    "oneTimeSchedule": { "executeTime": "" },
    "patchConfig": {
        "apt": {
            "excludes": [],
            "exclusivePackages": [],
            "type": ""
        },
        "goo": {},
        "migInstancesAllowed": False,
        "postStep": {
            "linuxExecStepConfig": {
                "allowedSuccessCodes": [],
                "gcsObject": {
                    "bucket": "",
                    "generationNumber": "",
                    "object": ""
                },
                "interpreter": "",
                "localPath": ""
            },
            "windowsExecStepConfig": {}
        },
        "preStep": {},
        "rebootConfig": "",
        "windowsUpdate": {
            "classifications": [],
            "excludes": [],
            "exclusivePatches": []
        },
        "yum": {
            "excludes": [],
            "exclusivePackages": [],
            "minimal": False,
            "security": False
        },
        "zypper": {
            "categories": [],
            "excludes": [],
            "exclusivePatches": [],
            "severities": [],
            "withOptional": False,
            "withUpdate": False
        }
    },
    "recurringSchedule": {
        "endTime": "",
        "frequency": "",
        "lastExecuteTime": "",
        "monthly": {
            "monthDay": 0,
            "weekDayOfMonth": {
                "dayOfWeek": "",
                "dayOffset": 0,
                "weekOrdinal": 0
            }
        },
        "nextExecuteTime": "",
        "startTime": "",
        "timeOfDay": {
            "hours": 0,
            "minutes": 0,
            "nanos": 0,
            "seconds": 0
        },
        "timeZone": {
            "id": "",
            "version": ""
        },
        "weekly": { "dayOfWeek": "" }
    },
    "rollout": {
        "disruptionBudget": {
            "fixed": 0,
            "percent": 0
        },
        "mode": ""
    },
    "state": "",
    "updateTime": ""
}
headers = {"content-type": "application/json"}

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

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

url <- "{{baseUrl}}/v1beta/:parent/patchDeployments"

payload <- "{\n  \"createTime\": \"\",\n  \"description\": \"\",\n  \"duration\": \"\",\n  \"instanceFilter\": {\n    \"all\": false,\n    \"groupLabels\": [\n      {\n        \"labels\": {}\n      }\n    ],\n    \"instanceNamePrefixes\": [],\n    \"instances\": [],\n    \"zones\": []\n  },\n  \"lastExecuteTime\": \"\",\n  \"name\": \"\",\n  \"oneTimeSchedule\": {\n    \"executeTime\": \"\"\n  },\n  \"patchConfig\": {\n    \"apt\": {\n      \"excludes\": [],\n      \"exclusivePackages\": [],\n      \"type\": \"\"\n    },\n    \"goo\": {},\n    \"migInstancesAllowed\": false,\n    \"postStep\": {\n      \"linuxExecStepConfig\": {\n        \"allowedSuccessCodes\": [],\n        \"gcsObject\": {\n          \"bucket\": \"\",\n          \"generationNumber\": \"\",\n          \"object\": \"\"\n        },\n        \"interpreter\": \"\",\n        \"localPath\": \"\"\n      },\n      \"windowsExecStepConfig\": {}\n    },\n    \"preStep\": {},\n    \"rebootConfig\": \"\",\n    \"windowsUpdate\": {\n      \"classifications\": [],\n      \"excludes\": [],\n      \"exclusivePatches\": []\n    },\n    \"yum\": {\n      \"excludes\": [],\n      \"exclusivePackages\": [],\n      \"minimal\": false,\n      \"security\": false\n    },\n    \"zypper\": {\n      \"categories\": [],\n      \"excludes\": [],\n      \"exclusivePatches\": [],\n      \"severities\": [],\n      \"withOptional\": false,\n      \"withUpdate\": false\n    }\n  },\n  \"recurringSchedule\": {\n    \"endTime\": \"\",\n    \"frequency\": \"\",\n    \"lastExecuteTime\": \"\",\n    \"monthly\": {\n      \"monthDay\": 0,\n      \"weekDayOfMonth\": {\n        \"dayOfWeek\": \"\",\n        \"dayOffset\": 0,\n        \"weekOrdinal\": 0\n      }\n    },\n    \"nextExecuteTime\": \"\",\n    \"startTime\": \"\",\n    \"timeOfDay\": {\n      \"hours\": 0,\n      \"minutes\": 0,\n      \"nanos\": 0,\n      \"seconds\": 0\n    },\n    \"timeZone\": {\n      \"id\": \"\",\n      \"version\": \"\"\n    },\n    \"weekly\": {\n      \"dayOfWeek\": \"\"\n    }\n  },\n  \"rollout\": {\n    \"disruptionBudget\": {\n      \"fixed\": 0,\n      \"percent\": 0\n    },\n    \"mode\": \"\"\n  },\n  \"state\": \"\",\n  \"updateTime\": \"\"\n}"

encode <- "json"

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

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

url = URI("{{baseUrl}}/v1beta/:parent/patchDeployments")

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

request = Net::HTTP::Post.new(url)
request["content-type"] = 'application/json'
request.body = "{\n  \"createTime\": \"\",\n  \"description\": \"\",\n  \"duration\": \"\",\n  \"instanceFilter\": {\n    \"all\": false,\n    \"groupLabels\": [\n      {\n        \"labels\": {}\n      }\n    ],\n    \"instanceNamePrefixes\": [],\n    \"instances\": [],\n    \"zones\": []\n  },\n  \"lastExecuteTime\": \"\",\n  \"name\": \"\",\n  \"oneTimeSchedule\": {\n    \"executeTime\": \"\"\n  },\n  \"patchConfig\": {\n    \"apt\": {\n      \"excludes\": [],\n      \"exclusivePackages\": [],\n      \"type\": \"\"\n    },\n    \"goo\": {},\n    \"migInstancesAllowed\": false,\n    \"postStep\": {\n      \"linuxExecStepConfig\": {\n        \"allowedSuccessCodes\": [],\n        \"gcsObject\": {\n          \"bucket\": \"\",\n          \"generationNumber\": \"\",\n          \"object\": \"\"\n        },\n        \"interpreter\": \"\",\n        \"localPath\": \"\"\n      },\n      \"windowsExecStepConfig\": {}\n    },\n    \"preStep\": {},\n    \"rebootConfig\": \"\",\n    \"windowsUpdate\": {\n      \"classifications\": [],\n      \"excludes\": [],\n      \"exclusivePatches\": []\n    },\n    \"yum\": {\n      \"excludes\": [],\n      \"exclusivePackages\": [],\n      \"minimal\": false,\n      \"security\": false\n    },\n    \"zypper\": {\n      \"categories\": [],\n      \"excludes\": [],\n      \"exclusivePatches\": [],\n      \"severities\": [],\n      \"withOptional\": false,\n      \"withUpdate\": false\n    }\n  },\n  \"recurringSchedule\": {\n    \"endTime\": \"\",\n    \"frequency\": \"\",\n    \"lastExecuteTime\": \"\",\n    \"monthly\": {\n      \"monthDay\": 0,\n      \"weekDayOfMonth\": {\n        \"dayOfWeek\": \"\",\n        \"dayOffset\": 0,\n        \"weekOrdinal\": 0\n      }\n    },\n    \"nextExecuteTime\": \"\",\n    \"startTime\": \"\",\n    \"timeOfDay\": {\n      \"hours\": 0,\n      \"minutes\": 0,\n      \"nanos\": 0,\n      \"seconds\": 0\n    },\n    \"timeZone\": {\n      \"id\": \"\",\n      \"version\": \"\"\n    },\n    \"weekly\": {\n      \"dayOfWeek\": \"\"\n    }\n  },\n  \"rollout\": {\n    \"disruptionBudget\": {\n      \"fixed\": 0,\n      \"percent\": 0\n    },\n    \"mode\": \"\"\n  },\n  \"state\": \"\",\n  \"updateTime\": \"\"\n}"

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

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

response = conn.post('/baseUrl/v1beta/:parent/patchDeployments') do |req|
  req.body = "{\n  \"createTime\": \"\",\n  \"description\": \"\",\n  \"duration\": \"\",\n  \"instanceFilter\": {\n    \"all\": false,\n    \"groupLabels\": [\n      {\n        \"labels\": {}\n      }\n    ],\n    \"instanceNamePrefixes\": [],\n    \"instances\": [],\n    \"zones\": []\n  },\n  \"lastExecuteTime\": \"\",\n  \"name\": \"\",\n  \"oneTimeSchedule\": {\n    \"executeTime\": \"\"\n  },\n  \"patchConfig\": {\n    \"apt\": {\n      \"excludes\": [],\n      \"exclusivePackages\": [],\n      \"type\": \"\"\n    },\n    \"goo\": {},\n    \"migInstancesAllowed\": false,\n    \"postStep\": {\n      \"linuxExecStepConfig\": {\n        \"allowedSuccessCodes\": [],\n        \"gcsObject\": {\n          \"bucket\": \"\",\n          \"generationNumber\": \"\",\n          \"object\": \"\"\n        },\n        \"interpreter\": \"\",\n        \"localPath\": \"\"\n      },\n      \"windowsExecStepConfig\": {}\n    },\n    \"preStep\": {},\n    \"rebootConfig\": \"\",\n    \"windowsUpdate\": {\n      \"classifications\": [],\n      \"excludes\": [],\n      \"exclusivePatches\": []\n    },\n    \"yum\": {\n      \"excludes\": [],\n      \"exclusivePackages\": [],\n      \"minimal\": false,\n      \"security\": false\n    },\n    \"zypper\": {\n      \"categories\": [],\n      \"excludes\": [],\n      \"exclusivePatches\": [],\n      \"severities\": [],\n      \"withOptional\": false,\n      \"withUpdate\": false\n    }\n  },\n  \"recurringSchedule\": {\n    \"endTime\": \"\",\n    \"frequency\": \"\",\n    \"lastExecuteTime\": \"\",\n    \"monthly\": {\n      \"monthDay\": 0,\n      \"weekDayOfMonth\": {\n        \"dayOfWeek\": \"\",\n        \"dayOffset\": 0,\n        \"weekOrdinal\": 0\n      }\n    },\n    \"nextExecuteTime\": \"\",\n    \"startTime\": \"\",\n    \"timeOfDay\": {\n      \"hours\": 0,\n      \"minutes\": 0,\n      \"nanos\": 0,\n      \"seconds\": 0\n    },\n    \"timeZone\": {\n      \"id\": \"\",\n      \"version\": \"\"\n    },\n    \"weekly\": {\n      \"dayOfWeek\": \"\"\n    }\n  },\n  \"rollout\": {\n    \"disruptionBudget\": {\n      \"fixed\": 0,\n      \"percent\": 0\n    },\n    \"mode\": \"\"\n  },\n  \"state\": \"\",\n  \"updateTime\": \"\"\n}"
end

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

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

    let payload = json!({
        "createTime": "",
        "description": "",
        "duration": "",
        "instanceFilter": json!({
            "all": false,
            "groupLabels": (json!({"labels": json!({})})),
            "instanceNamePrefixes": (),
            "instances": (),
            "zones": ()
        }),
        "lastExecuteTime": "",
        "name": "",
        "oneTimeSchedule": json!({"executeTime": ""}),
        "patchConfig": json!({
            "apt": json!({
                "excludes": (),
                "exclusivePackages": (),
                "type": ""
            }),
            "goo": json!({}),
            "migInstancesAllowed": false,
            "postStep": json!({
                "linuxExecStepConfig": json!({
                    "allowedSuccessCodes": (),
                    "gcsObject": json!({
                        "bucket": "",
                        "generationNumber": "",
                        "object": ""
                    }),
                    "interpreter": "",
                    "localPath": ""
                }),
                "windowsExecStepConfig": json!({})
            }),
            "preStep": json!({}),
            "rebootConfig": "",
            "windowsUpdate": json!({
                "classifications": (),
                "excludes": (),
                "exclusivePatches": ()
            }),
            "yum": json!({
                "excludes": (),
                "exclusivePackages": (),
                "minimal": false,
                "security": false
            }),
            "zypper": json!({
                "categories": (),
                "excludes": (),
                "exclusivePatches": (),
                "severities": (),
                "withOptional": false,
                "withUpdate": false
            })
        }),
        "recurringSchedule": json!({
            "endTime": "",
            "frequency": "",
            "lastExecuteTime": "",
            "monthly": json!({
                "monthDay": 0,
                "weekDayOfMonth": json!({
                    "dayOfWeek": "",
                    "dayOffset": 0,
                    "weekOrdinal": 0
                })
            }),
            "nextExecuteTime": "",
            "startTime": "",
            "timeOfDay": json!({
                "hours": 0,
                "minutes": 0,
                "nanos": 0,
                "seconds": 0
            }),
            "timeZone": json!({
                "id": "",
                "version": ""
            }),
            "weekly": json!({"dayOfWeek": ""})
        }),
        "rollout": json!({
            "disruptionBudget": json!({
                "fixed": 0,
                "percent": 0
            }),
            "mode": ""
        }),
        "state": "",
        "updateTime": ""
    });

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

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

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

    dbg!(results);
}
curl --request POST \
  --url {{baseUrl}}/v1beta/:parent/patchDeployments \
  --header 'content-type: application/json' \
  --data '{
  "createTime": "",
  "description": "",
  "duration": "",
  "instanceFilter": {
    "all": false,
    "groupLabels": [
      {
        "labels": {}
      }
    ],
    "instanceNamePrefixes": [],
    "instances": [],
    "zones": []
  },
  "lastExecuteTime": "",
  "name": "",
  "oneTimeSchedule": {
    "executeTime": ""
  },
  "patchConfig": {
    "apt": {
      "excludes": [],
      "exclusivePackages": [],
      "type": ""
    },
    "goo": {},
    "migInstancesAllowed": false,
    "postStep": {
      "linuxExecStepConfig": {
        "allowedSuccessCodes": [],
        "gcsObject": {
          "bucket": "",
          "generationNumber": "",
          "object": ""
        },
        "interpreter": "",
        "localPath": ""
      },
      "windowsExecStepConfig": {}
    },
    "preStep": {},
    "rebootConfig": "",
    "windowsUpdate": {
      "classifications": [],
      "excludes": [],
      "exclusivePatches": []
    },
    "yum": {
      "excludes": [],
      "exclusivePackages": [],
      "minimal": false,
      "security": false
    },
    "zypper": {
      "categories": [],
      "excludes": [],
      "exclusivePatches": [],
      "severities": [],
      "withOptional": false,
      "withUpdate": false
    }
  },
  "recurringSchedule": {
    "endTime": "",
    "frequency": "",
    "lastExecuteTime": "",
    "monthly": {
      "monthDay": 0,
      "weekDayOfMonth": {
        "dayOfWeek": "",
        "dayOffset": 0,
        "weekOrdinal": 0
      }
    },
    "nextExecuteTime": "",
    "startTime": "",
    "timeOfDay": {
      "hours": 0,
      "minutes": 0,
      "nanos": 0,
      "seconds": 0
    },
    "timeZone": {
      "id": "",
      "version": ""
    },
    "weekly": {
      "dayOfWeek": ""
    }
  },
  "rollout": {
    "disruptionBudget": {
      "fixed": 0,
      "percent": 0
    },
    "mode": ""
  },
  "state": "",
  "updateTime": ""
}'
echo '{
  "createTime": "",
  "description": "",
  "duration": "",
  "instanceFilter": {
    "all": false,
    "groupLabels": [
      {
        "labels": {}
      }
    ],
    "instanceNamePrefixes": [],
    "instances": [],
    "zones": []
  },
  "lastExecuteTime": "",
  "name": "",
  "oneTimeSchedule": {
    "executeTime": ""
  },
  "patchConfig": {
    "apt": {
      "excludes": [],
      "exclusivePackages": [],
      "type": ""
    },
    "goo": {},
    "migInstancesAllowed": false,
    "postStep": {
      "linuxExecStepConfig": {
        "allowedSuccessCodes": [],
        "gcsObject": {
          "bucket": "",
          "generationNumber": "",
          "object": ""
        },
        "interpreter": "",
        "localPath": ""
      },
      "windowsExecStepConfig": {}
    },
    "preStep": {},
    "rebootConfig": "",
    "windowsUpdate": {
      "classifications": [],
      "excludes": [],
      "exclusivePatches": []
    },
    "yum": {
      "excludes": [],
      "exclusivePackages": [],
      "minimal": false,
      "security": false
    },
    "zypper": {
      "categories": [],
      "excludes": [],
      "exclusivePatches": [],
      "severities": [],
      "withOptional": false,
      "withUpdate": false
    }
  },
  "recurringSchedule": {
    "endTime": "",
    "frequency": "",
    "lastExecuteTime": "",
    "monthly": {
      "monthDay": 0,
      "weekDayOfMonth": {
        "dayOfWeek": "",
        "dayOffset": 0,
        "weekOrdinal": 0
      }
    },
    "nextExecuteTime": "",
    "startTime": "",
    "timeOfDay": {
      "hours": 0,
      "minutes": 0,
      "nanos": 0,
      "seconds": 0
    },
    "timeZone": {
      "id": "",
      "version": ""
    },
    "weekly": {
      "dayOfWeek": ""
    }
  },
  "rollout": {
    "disruptionBudget": {
      "fixed": 0,
      "percent": 0
    },
    "mode": ""
  },
  "state": "",
  "updateTime": ""
}' |  \
  http POST {{baseUrl}}/v1beta/:parent/patchDeployments \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "createTime": "",\n  "description": "",\n  "duration": "",\n  "instanceFilter": {\n    "all": false,\n    "groupLabels": [\n      {\n        "labels": {}\n      }\n    ],\n    "instanceNamePrefixes": [],\n    "instances": [],\n    "zones": []\n  },\n  "lastExecuteTime": "",\n  "name": "",\n  "oneTimeSchedule": {\n    "executeTime": ""\n  },\n  "patchConfig": {\n    "apt": {\n      "excludes": [],\n      "exclusivePackages": [],\n      "type": ""\n    },\n    "goo": {},\n    "migInstancesAllowed": false,\n    "postStep": {\n      "linuxExecStepConfig": {\n        "allowedSuccessCodes": [],\n        "gcsObject": {\n          "bucket": "",\n          "generationNumber": "",\n          "object": ""\n        },\n        "interpreter": "",\n        "localPath": ""\n      },\n      "windowsExecStepConfig": {}\n    },\n    "preStep": {},\n    "rebootConfig": "",\n    "windowsUpdate": {\n      "classifications": [],\n      "excludes": [],\n      "exclusivePatches": []\n    },\n    "yum": {\n      "excludes": [],\n      "exclusivePackages": [],\n      "minimal": false,\n      "security": false\n    },\n    "zypper": {\n      "categories": [],\n      "excludes": [],\n      "exclusivePatches": [],\n      "severities": [],\n      "withOptional": false,\n      "withUpdate": false\n    }\n  },\n  "recurringSchedule": {\n    "endTime": "",\n    "frequency": "",\n    "lastExecuteTime": "",\n    "monthly": {\n      "monthDay": 0,\n      "weekDayOfMonth": {\n        "dayOfWeek": "",\n        "dayOffset": 0,\n        "weekOrdinal": 0\n      }\n    },\n    "nextExecuteTime": "",\n    "startTime": "",\n    "timeOfDay": {\n      "hours": 0,\n      "minutes": 0,\n      "nanos": 0,\n      "seconds": 0\n    },\n    "timeZone": {\n      "id": "",\n      "version": ""\n    },\n    "weekly": {\n      "dayOfWeek": ""\n    }\n  },\n  "rollout": {\n    "disruptionBudget": {\n      "fixed": 0,\n      "percent": 0\n    },\n    "mode": ""\n  },\n  "state": "",\n  "updateTime": ""\n}' \
  --output-document \
  - {{baseUrl}}/v1beta/:parent/patchDeployments
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "createTime": "",
  "description": "",
  "duration": "",
  "instanceFilter": [
    "all": false,
    "groupLabels": [["labels": []]],
    "instanceNamePrefixes": [],
    "instances": [],
    "zones": []
  ],
  "lastExecuteTime": "",
  "name": "",
  "oneTimeSchedule": ["executeTime": ""],
  "patchConfig": [
    "apt": [
      "excludes": [],
      "exclusivePackages": [],
      "type": ""
    ],
    "goo": [],
    "migInstancesAllowed": false,
    "postStep": [
      "linuxExecStepConfig": [
        "allowedSuccessCodes": [],
        "gcsObject": [
          "bucket": "",
          "generationNumber": "",
          "object": ""
        ],
        "interpreter": "",
        "localPath": ""
      ],
      "windowsExecStepConfig": []
    ],
    "preStep": [],
    "rebootConfig": "",
    "windowsUpdate": [
      "classifications": [],
      "excludes": [],
      "exclusivePatches": []
    ],
    "yum": [
      "excludes": [],
      "exclusivePackages": [],
      "minimal": false,
      "security": false
    ],
    "zypper": [
      "categories": [],
      "excludes": [],
      "exclusivePatches": [],
      "severities": [],
      "withOptional": false,
      "withUpdate": false
    ]
  ],
  "recurringSchedule": [
    "endTime": "",
    "frequency": "",
    "lastExecuteTime": "",
    "monthly": [
      "monthDay": 0,
      "weekDayOfMonth": [
        "dayOfWeek": "",
        "dayOffset": 0,
        "weekOrdinal": 0
      ]
    ],
    "nextExecuteTime": "",
    "startTime": "",
    "timeOfDay": [
      "hours": 0,
      "minutes": 0,
      "nanos": 0,
      "seconds": 0
    ],
    "timeZone": [
      "id": "",
      "version": ""
    ],
    "weekly": ["dayOfWeek": ""]
  ],
  "rollout": [
    "disruptionBudget": [
      "fixed": 0,
      "percent": 0
    ],
    "mode": ""
  ],
  "state": "",
  "updateTime": ""
] as [String : Any]

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

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

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

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

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

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

func main() {

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

response = requests.delete(url)

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

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

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

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

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

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

parent
Examples
REQUEST

CURL *hnd = curl_easy_init();

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

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

(client/get "{{baseUrl}}/v1beta/:parent/patchDeployments")
require "http/client"

url = "{{baseUrl}}/v1beta/:parent/patchDeployments"

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

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

func main() {

	url := "{{baseUrl}}/v1beta/:parent/patchDeployments"

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

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

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

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

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

const options = {
  method: 'GET',
  url: '{{baseUrl}}/v1beta/:parent/patchDeployments'
};

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

conn.request("GET", "/baseUrl/v1beta/:parent/patchDeployments")

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

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

url = "{{baseUrl}}/v1beta/:parent/patchDeployments"

response = requests.get(url)

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

url <- "{{baseUrl}}/v1beta/:parent/patchDeployments"

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

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

url = URI("{{baseUrl}}/v1beta/:parent/patchDeployments")

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

puts response.status
puts response.body
use reqwest;

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

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

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/v1beta/:parent/patchDeployments")! 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 osconfig.projects.patchDeployments.patch
{{baseUrl}}/v1beta/:name
QUERY PARAMS

name
BODY json

{
  "createTime": "",
  "description": "",
  "duration": "",
  "instanceFilter": {
    "all": false,
    "groupLabels": [
      {
        "labels": {}
      }
    ],
    "instanceNamePrefixes": [],
    "instances": [],
    "zones": []
  },
  "lastExecuteTime": "",
  "name": "",
  "oneTimeSchedule": {
    "executeTime": ""
  },
  "patchConfig": {
    "apt": {
      "excludes": [],
      "exclusivePackages": [],
      "type": ""
    },
    "goo": {},
    "migInstancesAllowed": false,
    "postStep": {
      "linuxExecStepConfig": {
        "allowedSuccessCodes": [],
        "gcsObject": {
          "bucket": "",
          "generationNumber": "",
          "object": ""
        },
        "interpreter": "",
        "localPath": ""
      },
      "windowsExecStepConfig": {}
    },
    "preStep": {},
    "rebootConfig": "",
    "windowsUpdate": {
      "classifications": [],
      "excludes": [],
      "exclusivePatches": []
    },
    "yum": {
      "excludes": [],
      "exclusivePackages": [],
      "minimal": false,
      "security": false
    },
    "zypper": {
      "categories": [],
      "excludes": [],
      "exclusivePatches": [],
      "severities": [],
      "withOptional": false,
      "withUpdate": false
    }
  },
  "recurringSchedule": {
    "endTime": "",
    "frequency": "",
    "lastExecuteTime": "",
    "monthly": {
      "monthDay": 0,
      "weekDayOfMonth": {
        "dayOfWeek": "",
        "dayOffset": 0,
        "weekOrdinal": 0
      }
    },
    "nextExecuteTime": "",
    "startTime": "",
    "timeOfDay": {
      "hours": 0,
      "minutes": 0,
      "nanos": 0,
      "seconds": 0
    },
    "timeZone": {
      "id": "",
      "version": ""
    },
    "weekly": {
      "dayOfWeek": ""
    }
  },
  "rollout": {
    "disruptionBudget": {
      "fixed": 0,
      "percent": 0
    },
    "mode": ""
  },
  "state": "",
  "updateTime": ""
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "PATCH");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/v1beta/: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  \"createTime\": \"\",\n  \"description\": \"\",\n  \"duration\": \"\",\n  \"instanceFilter\": {\n    \"all\": false,\n    \"groupLabels\": [\n      {\n        \"labels\": {}\n      }\n    ],\n    \"instanceNamePrefixes\": [],\n    \"instances\": [],\n    \"zones\": []\n  },\n  \"lastExecuteTime\": \"\",\n  \"name\": \"\",\n  \"oneTimeSchedule\": {\n    \"executeTime\": \"\"\n  },\n  \"patchConfig\": {\n    \"apt\": {\n      \"excludes\": [],\n      \"exclusivePackages\": [],\n      \"type\": \"\"\n    },\n    \"goo\": {},\n    \"migInstancesAllowed\": false,\n    \"postStep\": {\n      \"linuxExecStepConfig\": {\n        \"allowedSuccessCodes\": [],\n        \"gcsObject\": {\n          \"bucket\": \"\",\n          \"generationNumber\": \"\",\n          \"object\": \"\"\n        },\n        \"interpreter\": \"\",\n        \"localPath\": \"\"\n      },\n      \"windowsExecStepConfig\": {}\n    },\n    \"preStep\": {},\n    \"rebootConfig\": \"\",\n    \"windowsUpdate\": {\n      \"classifications\": [],\n      \"excludes\": [],\n      \"exclusivePatches\": []\n    },\n    \"yum\": {\n      \"excludes\": [],\n      \"exclusivePackages\": [],\n      \"minimal\": false,\n      \"security\": false\n    },\n    \"zypper\": {\n      \"categories\": [],\n      \"excludes\": [],\n      \"exclusivePatches\": [],\n      \"severities\": [],\n      \"withOptional\": false,\n      \"withUpdate\": false\n    }\n  },\n  \"recurringSchedule\": {\n    \"endTime\": \"\",\n    \"frequency\": \"\",\n    \"lastExecuteTime\": \"\",\n    \"monthly\": {\n      \"monthDay\": 0,\n      \"weekDayOfMonth\": {\n        \"dayOfWeek\": \"\",\n        \"dayOffset\": 0,\n        \"weekOrdinal\": 0\n      }\n    },\n    \"nextExecuteTime\": \"\",\n    \"startTime\": \"\",\n    \"timeOfDay\": {\n      \"hours\": 0,\n      \"minutes\": 0,\n      \"nanos\": 0,\n      \"seconds\": 0\n    },\n    \"timeZone\": {\n      \"id\": \"\",\n      \"version\": \"\"\n    },\n    \"weekly\": {\n      \"dayOfWeek\": \"\"\n    }\n  },\n  \"rollout\": {\n    \"disruptionBudget\": {\n      \"fixed\": 0,\n      \"percent\": 0\n    },\n    \"mode\": \"\"\n  },\n  \"state\": \"\",\n  \"updateTime\": \"\"\n}");

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

(client/patch "{{baseUrl}}/v1beta/:name" {:content-type :json
                                                          :form-params {:createTime ""
                                                                        :description ""
                                                                        :duration ""
                                                                        :instanceFilter {:all false
                                                                                         :groupLabels [{:labels {}}]
                                                                                         :instanceNamePrefixes []
                                                                                         :instances []
                                                                                         :zones []}
                                                                        :lastExecuteTime ""
                                                                        :name ""
                                                                        :oneTimeSchedule {:executeTime ""}
                                                                        :patchConfig {:apt {:excludes []
                                                                                            :exclusivePackages []
                                                                                            :type ""}
                                                                                      :goo {}
                                                                                      :migInstancesAllowed false
                                                                                      :postStep {:linuxExecStepConfig {:allowedSuccessCodes []
                                                                                                                       :gcsObject {:bucket ""
                                                                                                                                   :generationNumber ""
                                                                                                                                   :object ""}
                                                                                                                       :interpreter ""
                                                                                                                       :localPath ""}
                                                                                                 :windowsExecStepConfig {}}
                                                                                      :preStep {}
                                                                                      :rebootConfig ""
                                                                                      :windowsUpdate {:classifications []
                                                                                                      :excludes []
                                                                                                      :exclusivePatches []}
                                                                                      :yum {:excludes []
                                                                                            :exclusivePackages []
                                                                                            :minimal false
                                                                                            :security false}
                                                                                      :zypper {:categories []
                                                                                               :excludes []
                                                                                               :exclusivePatches []
                                                                                               :severities []
                                                                                               :withOptional false
                                                                                               :withUpdate false}}
                                                                        :recurringSchedule {:endTime ""
                                                                                            :frequency ""
                                                                                            :lastExecuteTime ""
                                                                                            :monthly {:monthDay 0
                                                                                                      :weekDayOfMonth {:dayOfWeek ""
                                                                                                                       :dayOffset 0
                                                                                                                       :weekOrdinal 0}}
                                                                                            :nextExecuteTime ""
                                                                                            :startTime ""
                                                                                            :timeOfDay {:hours 0
                                                                                                        :minutes 0
                                                                                                        :nanos 0
                                                                                                        :seconds 0}
                                                                                            :timeZone {:id ""
                                                                                                       :version ""}
                                                                                            :weekly {:dayOfWeek ""}}
                                                                        :rollout {:disruptionBudget {:fixed 0
                                                                                                     :percent 0}
                                                                                  :mode ""}
                                                                        :state ""
                                                                        :updateTime ""}})
require "http/client"

url = "{{baseUrl}}/v1beta/:name"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"createTime\": \"\",\n  \"description\": \"\",\n  \"duration\": \"\",\n  \"instanceFilter\": {\n    \"all\": false,\n    \"groupLabels\": [\n      {\n        \"labels\": {}\n      }\n    ],\n    \"instanceNamePrefixes\": [],\n    \"instances\": [],\n    \"zones\": []\n  },\n  \"lastExecuteTime\": \"\",\n  \"name\": \"\",\n  \"oneTimeSchedule\": {\n    \"executeTime\": \"\"\n  },\n  \"patchConfig\": {\n    \"apt\": {\n      \"excludes\": [],\n      \"exclusivePackages\": [],\n      \"type\": \"\"\n    },\n    \"goo\": {},\n    \"migInstancesAllowed\": false,\n    \"postStep\": {\n      \"linuxExecStepConfig\": {\n        \"allowedSuccessCodes\": [],\n        \"gcsObject\": {\n          \"bucket\": \"\",\n          \"generationNumber\": \"\",\n          \"object\": \"\"\n        },\n        \"interpreter\": \"\",\n        \"localPath\": \"\"\n      },\n      \"windowsExecStepConfig\": {}\n    },\n    \"preStep\": {},\n    \"rebootConfig\": \"\",\n    \"windowsUpdate\": {\n      \"classifications\": [],\n      \"excludes\": [],\n      \"exclusivePatches\": []\n    },\n    \"yum\": {\n      \"excludes\": [],\n      \"exclusivePackages\": [],\n      \"minimal\": false,\n      \"security\": false\n    },\n    \"zypper\": {\n      \"categories\": [],\n      \"excludes\": [],\n      \"exclusivePatches\": [],\n      \"severities\": [],\n      \"withOptional\": false,\n      \"withUpdate\": false\n    }\n  },\n  \"recurringSchedule\": {\n    \"endTime\": \"\",\n    \"frequency\": \"\",\n    \"lastExecuteTime\": \"\",\n    \"monthly\": {\n      \"monthDay\": 0,\n      \"weekDayOfMonth\": {\n        \"dayOfWeek\": \"\",\n        \"dayOffset\": 0,\n        \"weekOrdinal\": 0\n      }\n    },\n    \"nextExecuteTime\": \"\",\n    \"startTime\": \"\",\n    \"timeOfDay\": {\n      \"hours\": 0,\n      \"minutes\": 0,\n      \"nanos\": 0,\n      \"seconds\": 0\n    },\n    \"timeZone\": {\n      \"id\": \"\",\n      \"version\": \"\"\n    },\n    \"weekly\": {\n      \"dayOfWeek\": \"\"\n    }\n  },\n  \"rollout\": {\n    \"disruptionBudget\": {\n      \"fixed\": 0,\n      \"percent\": 0\n    },\n    \"mode\": \"\"\n  },\n  \"state\": \"\",\n  \"updateTime\": \"\"\n}"

response = HTTP::Client.patch url, headers: headers, body: reqBody
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Patch,
    RequestUri = new Uri("{{baseUrl}}/v1beta/:name"),
    Content = new StringContent("{\n  \"createTime\": \"\",\n  \"description\": \"\",\n  \"duration\": \"\",\n  \"instanceFilter\": {\n    \"all\": false,\n    \"groupLabels\": [\n      {\n        \"labels\": {}\n      }\n    ],\n    \"instanceNamePrefixes\": [],\n    \"instances\": [],\n    \"zones\": []\n  },\n  \"lastExecuteTime\": \"\",\n  \"name\": \"\",\n  \"oneTimeSchedule\": {\n    \"executeTime\": \"\"\n  },\n  \"patchConfig\": {\n    \"apt\": {\n      \"excludes\": [],\n      \"exclusivePackages\": [],\n      \"type\": \"\"\n    },\n    \"goo\": {},\n    \"migInstancesAllowed\": false,\n    \"postStep\": {\n      \"linuxExecStepConfig\": {\n        \"allowedSuccessCodes\": [],\n        \"gcsObject\": {\n          \"bucket\": \"\",\n          \"generationNumber\": \"\",\n          \"object\": \"\"\n        },\n        \"interpreter\": \"\",\n        \"localPath\": \"\"\n      },\n      \"windowsExecStepConfig\": {}\n    },\n    \"preStep\": {},\n    \"rebootConfig\": \"\",\n    \"windowsUpdate\": {\n      \"classifications\": [],\n      \"excludes\": [],\n      \"exclusivePatches\": []\n    },\n    \"yum\": {\n      \"excludes\": [],\n      \"exclusivePackages\": [],\n      \"minimal\": false,\n      \"security\": false\n    },\n    \"zypper\": {\n      \"categories\": [],\n      \"excludes\": [],\n      \"exclusivePatches\": [],\n      \"severities\": [],\n      \"withOptional\": false,\n      \"withUpdate\": false\n    }\n  },\n  \"recurringSchedule\": {\n    \"endTime\": \"\",\n    \"frequency\": \"\",\n    \"lastExecuteTime\": \"\",\n    \"monthly\": {\n      \"monthDay\": 0,\n      \"weekDayOfMonth\": {\n        \"dayOfWeek\": \"\",\n        \"dayOffset\": 0,\n        \"weekOrdinal\": 0\n      }\n    },\n    \"nextExecuteTime\": \"\",\n    \"startTime\": \"\",\n    \"timeOfDay\": {\n      \"hours\": 0,\n      \"minutes\": 0,\n      \"nanos\": 0,\n      \"seconds\": 0\n    },\n    \"timeZone\": {\n      \"id\": \"\",\n      \"version\": \"\"\n    },\n    \"weekly\": {\n      \"dayOfWeek\": \"\"\n    }\n  },\n  \"rollout\": {\n    \"disruptionBudget\": {\n      \"fixed\": 0,\n      \"percent\": 0\n    },\n    \"mode\": \"\"\n  },\n  \"state\": \"\",\n  \"updateTime\": \"\"\n}")
    {
        Headers =
        {
            ContentType = new MediaTypeHeaderValue("application/json")
        }
    }
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/v1beta/:name");
var request = new RestRequest("", Method.Patch);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"createTime\": \"\",\n  \"description\": \"\",\n  \"duration\": \"\",\n  \"instanceFilter\": {\n    \"all\": false,\n    \"groupLabels\": [\n      {\n        \"labels\": {}\n      }\n    ],\n    \"instanceNamePrefixes\": [],\n    \"instances\": [],\n    \"zones\": []\n  },\n  \"lastExecuteTime\": \"\",\n  \"name\": \"\",\n  \"oneTimeSchedule\": {\n    \"executeTime\": \"\"\n  },\n  \"patchConfig\": {\n    \"apt\": {\n      \"excludes\": [],\n      \"exclusivePackages\": [],\n      \"type\": \"\"\n    },\n    \"goo\": {},\n    \"migInstancesAllowed\": false,\n    \"postStep\": {\n      \"linuxExecStepConfig\": {\n        \"allowedSuccessCodes\": [],\n        \"gcsObject\": {\n          \"bucket\": \"\",\n          \"generationNumber\": \"\",\n          \"object\": \"\"\n        },\n        \"interpreter\": \"\",\n        \"localPath\": \"\"\n      },\n      \"windowsExecStepConfig\": {}\n    },\n    \"preStep\": {},\n    \"rebootConfig\": \"\",\n    \"windowsUpdate\": {\n      \"classifications\": [],\n      \"excludes\": [],\n      \"exclusivePatches\": []\n    },\n    \"yum\": {\n      \"excludes\": [],\n      \"exclusivePackages\": [],\n      \"minimal\": false,\n      \"security\": false\n    },\n    \"zypper\": {\n      \"categories\": [],\n      \"excludes\": [],\n      \"exclusivePatches\": [],\n      \"severities\": [],\n      \"withOptional\": false,\n      \"withUpdate\": false\n    }\n  },\n  \"recurringSchedule\": {\n    \"endTime\": \"\",\n    \"frequency\": \"\",\n    \"lastExecuteTime\": \"\",\n    \"monthly\": {\n      \"monthDay\": 0,\n      \"weekDayOfMonth\": {\n        \"dayOfWeek\": \"\",\n        \"dayOffset\": 0,\n        \"weekOrdinal\": 0\n      }\n    },\n    \"nextExecuteTime\": \"\",\n    \"startTime\": \"\",\n    \"timeOfDay\": {\n      \"hours\": 0,\n      \"minutes\": 0,\n      \"nanos\": 0,\n      \"seconds\": 0\n    },\n    \"timeZone\": {\n      \"id\": \"\",\n      \"version\": \"\"\n    },\n    \"weekly\": {\n      \"dayOfWeek\": \"\"\n    }\n  },\n  \"rollout\": {\n    \"disruptionBudget\": {\n      \"fixed\": 0,\n      \"percent\": 0\n    },\n    \"mode\": \"\"\n  },\n  \"state\": \"\",\n  \"updateTime\": \"\"\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

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

func main() {

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

	payload := strings.NewReader("{\n  \"createTime\": \"\",\n  \"description\": \"\",\n  \"duration\": \"\",\n  \"instanceFilter\": {\n    \"all\": false,\n    \"groupLabels\": [\n      {\n        \"labels\": {}\n      }\n    ],\n    \"instanceNamePrefixes\": [],\n    \"instances\": [],\n    \"zones\": []\n  },\n  \"lastExecuteTime\": \"\",\n  \"name\": \"\",\n  \"oneTimeSchedule\": {\n    \"executeTime\": \"\"\n  },\n  \"patchConfig\": {\n    \"apt\": {\n      \"excludes\": [],\n      \"exclusivePackages\": [],\n      \"type\": \"\"\n    },\n    \"goo\": {},\n    \"migInstancesAllowed\": false,\n    \"postStep\": {\n      \"linuxExecStepConfig\": {\n        \"allowedSuccessCodes\": [],\n        \"gcsObject\": {\n          \"bucket\": \"\",\n          \"generationNumber\": \"\",\n          \"object\": \"\"\n        },\n        \"interpreter\": \"\",\n        \"localPath\": \"\"\n      },\n      \"windowsExecStepConfig\": {}\n    },\n    \"preStep\": {},\n    \"rebootConfig\": \"\",\n    \"windowsUpdate\": {\n      \"classifications\": [],\n      \"excludes\": [],\n      \"exclusivePatches\": []\n    },\n    \"yum\": {\n      \"excludes\": [],\n      \"exclusivePackages\": [],\n      \"minimal\": false,\n      \"security\": false\n    },\n    \"zypper\": {\n      \"categories\": [],\n      \"excludes\": [],\n      \"exclusivePatches\": [],\n      \"severities\": [],\n      \"withOptional\": false,\n      \"withUpdate\": false\n    }\n  },\n  \"recurringSchedule\": {\n    \"endTime\": \"\",\n    \"frequency\": \"\",\n    \"lastExecuteTime\": \"\",\n    \"monthly\": {\n      \"monthDay\": 0,\n      \"weekDayOfMonth\": {\n        \"dayOfWeek\": \"\",\n        \"dayOffset\": 0,\n        \"weekOrdinal\": 0\n      }\n    },\n    \"nextExecuteTime\": \"\",\n    \"startTime\": \"\",\n    \"timeOfDay\": {\n      \"hours\": 0,\n      \"minutes\": 0,\n      \"nanos\": 0,\n      \"seconds\": 0\n    },\n    \"timeZone\": {\n      \"id\": \"\",\n      \"version\": \"\"\n    },\n    \"weekly\": {\n      \"dayOfWeek\": \"\"\n    }\n  },\n  \"rollout\": {\n    \"disruptionBudget\": {\n      \"fixed\": 0,\n      \"percent\": 0\n    },\n    \"mode\": \"\"\n  },\n  \"state\": \"\",\n  \"updateTime\": \"\"\n}")

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

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

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

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

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

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

{
  "createTime": "",
  "description": "",
  "duration": "",
  "instanceFilter": {
    "all": false,
    "groupLabels": [
      {
        "labels": {}
      }
    ],
    "instanceNamePrefixes": [],
    "instances": [],
    "zones": []
  },
  "lastExecuteTime": "",
  "name": "",
  "oneTimeSchedule": {
    "executeTime": ""
  },
  "patchConfig": {
    "apt": {
      "excludes": [],
      "exclusivePackages": [],
      "type": ""
    },
    "goo": {},
    "migInstancesAllowed": false,
    "postStep": {
      "linuxExecStepConfig": {
        "allowedSuccessCodes": [],
        "gcsObject": {
          "bucket": "",
          "generationNumber": "",
          "object": ""
        },
        "interpreter": "",
        "localPath": ""
      },
      "windowsExecStepConfig": {}
    },
    "preStep": {},
    "rebootConfig": "",
    "windowsUpdate": {
      "classifications": [],
      "excludes": [],
      "exclusivePatches": []
    },
    "yum": {
      "excludes": [],
      "exclusivePackages": [],
      "minimal": false,
      "security": false
    },
    "zypper": {
      "categories": [],
      "excludes": [],
      "exclusivePatches": [],
      "severities": [],
      "withOptional": false,
      "withUpdate": false
    }
  },
  "recurringSchedule": {
    "endTime": "",
    "frequency": "",
    "lastExecuteTime": "",
    "monthly": {
      "monthDay": 0,
      "weekDayOfMonth": {
        "dayOfWeek": "",
        "dayOffset": 0,
        "weekOrdinal": 0
      }
    },
    "nextExecuteTime": "",
    "startTime": "",
    "timeOfDay": {
      "hours": 0,
      "minutes": 0,
      "nanos": 0,
      "seconds": 0
    },
    "timeZone": {
      "id": "",
      "version": ""
    },
    "weekly": {
      "dayOfWeek": ""
    }
  },
  "rollout": {
    "disruptionBudget": {
      "fixed": 0,
      "percent": 0
    },
    "mode": ""
  },
  "state": "",
  "updateTime": ""
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("PATCH", "{{baseUrl}}/v1beta/:name")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"createTime\": \"\",\n  \"description\": \"\",\n  \"duration\": \"\",\n  \"instanceFilter\": {\n    \"all\": false,\n    \"groupLabels\": [\n      {\n        \"labels\": {}\n      }\n    ],\n    \"instanceNamePrefixes\": [],\n    \"instances\": [],\n    \"zones\": []\n  },\n  \"lastExecuteTime\": \"\",\n  \"name\": \"\",\n  \"oneTimeSchedule\": {\n    \"executeTime\": \"\"\n  },\n  \"patchConfig\": {\n    \"apt\": {\n      \"excludes\": [],\n      \"exclusivePackages\": [],\n      \"type\": \"\"\n    },\n    \"goo\": {},\n    \"migInstancesAllowed\": false,\n    \"postStep\": {\n      \"linuxExecStepConfig\": {\n        \"allowedSuccessCodes\": [],\n        \"gcsObject\": {\n          \"bucket\": \"\",\n          \"generationNumber\": \"\",\n          \"object\": \"\"\n        },\n        \"interpreter\": \"\",\n        \"localPath\": \"\"\n      },\n      \"windowsExecStepConfig\": {}\n    },\n    \"preStep\": {},\n    \"rebootConfig\": \"\",\n    \"windowsUpdate\": {\n      \"classifications\": [],\n      \"excludes\": [],\n      \"exclusivePatches\": []\n    },\n    \"yum\": {\n      \"excludes\": [],\n      \"exclusivePackages\": [],\n      \"minimal\": false,\n      \"security\": false\n    },\n    \"zypper\": {\n      \"categories\": [],\n      \"excludes\": [],\n      \"exclusivePatches\": [],\n      \"severities\": [],\n      \"withOptional\": false,\n      \"withUpdate\": false\n    }\n  },\n  \"recurringSchedule\": {\n    \"endTime\": \"\",\n    \"frequency\": \"\",\n    \"lastExecuteTime\": \"\",\n    \"monthly\": {\n      \"monthDay\": 0,\n      \"weekDayOfMonth\": {\n        \"dayOfWeek\": \"\",\n        \"dayOffset\": 0,\n        \"weekOrdinal\": 0\n      }\n    },\n    \"nextExecuteTime\": \"\",\n    \"startTime\": \"\",\n    \"timeOfDay\": {\n      \"hours\": 0,\n      \"minutes\": 0,\n      \"nanos\": 0,\n      \"seconds\": 0\n    },\n    \"timeZone\": {\n      \"id\": \"\",\n      \"version\": \"\"\n    },\n    \"weekly\": {\n      \"dayOfWeek\": \"\"\n    }\n  },\n  \"rollout\": {\n    \"disruptionBudget\": {\n      \"fixed\": 0,\n      \"percent\": 0\n    },\n    \"mode\": \"\"\n  },\n  \"state\": \"\",\n  \"updateTime\": \"\"\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/v1beta/:name"))
    .header("content-type", "application/json")
    .method("PATCH", HttpRequest.BodyPublishers.ofString("{\n  \"createTime\": \"\",\n  \"description\": \"\",\n  \"duration\": \"\",\n  \"instanceFilter\": {\n    \"all\": false,\n    \"groupLabels\": [\n      {\n        \"labels\": {}\n      }\n    ],\n    \"instanceNamePrefixes\": [],\n    \"instances\": [],\n    \"zones\": []\n  },\n  \"lastExecuteTime\": \"\",\n  \"name\": \"\",\n  \"oneTimeSchedule\": {\n    \"executeTime\": \"\"\n  },\n  \"patchConfig\": {\n    \"apt\": {\n      \"excludes\": [],\n      \"exclusivePackages\": [],\n      \"type\": \"\"\n    },\n    \"goo\": {},\n    \"migInstancesAllowed\": false,\n    \"postStep\": {\n      \"linuxExecStepConfig\": {\n        \"allowedSuccessCodes\": [],\n        \"gcsObject\": {\n          \"bucket\": \"\",\n          \"generationNumber\": \"\",\n          \"object\": \"\"\n        },\n        \"interpreter\": \"\",\n        \"localPath\": \"\"\n      },\n      \"windowsExecStepConfig\": {}\n    },\n    \"preStep\": {},\n    \"rebootConfig\": \"\",\n    \"windowsUpdate\": {\n      \"classifications\": [],\n      \"excludes\": [],\n      \"exclusivePatches\": []\n    },\n    \"yum\": {\n      \"excludes\": [],\n      \"exclusivePackages\": [],\n      \"minimal\": false,\n      \"security\": false\n    },\n    \"zypper\": {\n      \"categories\": [],\n      \"excludes\": [],\n      \"exclusivePatches\": [],\n      \"severities\": [],\n      \"withOptional\": false,\n      \"withUpdate\": false\n    }\n  },\n  \"recurringSchedule\": {\n    \"endTime\": \"\",\n    \"frequency\": \"\",\n    \"lastExecuteTime\": \"\",\n    \"monthly\": {\n      \"monthDay\": 0,\n      \"weekDayOfMonth\": {\n        \"dayOfWeek\": \"\",\n        \"dayOffset\": 0,\n        \"weekOrdinal\": 0\n      }\n    },\n    \"nextExecuteTime\": \"\",\n    \"startTime\": \"\",\n    \"timeOfDay\": {\n      \"hours\": 0,\n      \"minutes\": 0,\n      \"nanos\": 0,\n      \"seconds\": 0\n    },\n    \"timeZone\": {\n      \"id\": \"\",\n      \"version\": \"\"\n    },\n    \"weekly\": {\n      \"dayOfWeek\": \"\"\n    }\n  },\n  \"rollout\": {\n    \"disruptionBudget\": {\n      \"fixed\": 0,\n      \"percent\": 0\n    },\n    \"mode\": \"\"\n  },\n  \"state\": \"\",\n  \"updateTime\": \"\"\n}"))
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\n  \"createTime\": \"\",\n  \"description\": \"\",\n  \"duration\": \"\",\n  \"instanceFilter\": {\n    \"all\": false,\n    \"groupLabels\": [\n      {\n        \"labels\": {}\n      }\n    ],\n    \"instanceNamePrefixes\": [],\n    \"instances\": [],\n    \"zones\": []\n  },\n  \"lastExecuteTime\": \"\",\n  \"name\": \"\",\n  \"oneTimeSchedule\": {\n    \"executeTime\": \"\"\n  },\n  \"patchConfig\": {\n    \"apt\": {\n      \"excludes\": [],\n      \"exclusivePackages\": [],\n      \"type\": \"\"\n    },\n    \"goo\": {},\n    \"migInstancesAllowed\": false,\n    \"postStep\": {\n      \"linuxExecStepConfig\": {\n        \"allowedSuccessCodes\": [],\n        \"gcsObject\": {\n          \"bucket\": \"\",\n          \"generationNumber\": \"\",\n          \"object\": \"\"\n        },\n        \"interpreter\": \"\",\n        \"localPath\": \"\"\n      },\n      \"windowsExecStepConfig\": {}\n    },\n    \"preStep\": {},\n    \"rebootConfig\": \"\",\n    \"windowsUpdate\": {\n      \"classifications\": [],\n      \"excludes\": [],\n      \"exclusivePatches\": []\n    },\n    \"yum\": {\n      \"excludes\": [],\n      \"exclusivePackages\": [],\n      \"minimal\": false,\n      \"security\": false\n    },\n    \"zypper\": {\n      \"categories\": [],\n      \"excludes\": [],\n      \"exclusivePatches\": [],\n      \"severities\": [],\n      \"withOptional\": false,\n      \"withUpdate\": false\n    }\n  },\n  \"recurringSchedule\": {\n    \"endTime\": \"\",\n    \"frequency\": \"\",\n    \"lastExecuteTime\": \"\",\n    \"monthly\": {\n      \"monthDay\": 0,\n      \"weekDayOfMonth\": {\n        \"dayOfWeek\": \"\",\n        \"dayOffset\": 0,\n        \"weekOrdinal\": 0\n      }\n    },\n    \"nextExecuteTime\": \"\",\n    \"startTime\": \"\",\n    \"timeOfDay\": {\n      \"hours\": 0,\n      \"minutes\": 0,\n      \"nanos\": 0,\n      \"seconds\": 0\n    },\n    \"timeZone\": {\n      \"id\": \"\",\n      \"version\": \"\"\n    },\n    \"weekly\": {\n      \"dayOfWeek\": \"\"\n    }\n  },\n  \"rollout\": {\n    \"disruptionBudget\": {\n      \"fixed\": 0,\n      \"percent\": 0\n    },\n    \"mode\": \"\"\n  },\n  \"state\": \"\",\n  \"updateTime\": \"\"\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/v1beta/:name")
  .patch(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.patch("{{baseUrl}}/v1beta/:name")
  .header("content-type", "application/json")
  .body("{\n  \"createTime\": \"\",\n  \"description\": \"\",\n  \"duration\": \"\",\n  \"instanceFilter\": {\n    \"all\": false,\n    \"groupLabels\": [\n      {\n        \"labels\": {}\n      }\n    ],\n    \"instanceNamePrefixes\": [],\n    \"instances\": [],\n    \"zones\": []\n  },\n  \"lastExecuteTime\": \"\",\n  \"name\": \"\",\n  \"oneTimeSchedule\": {\n    \"executeTime\": \"\"\n  },\n  \"patchConfig\": {\n    \"apt\": {\n      \"excludes\": [],\n      \"exclusivePackages\": [],\n      \"type\": \"\"\n    },\n    \"goo\": {},\n    \"migInstancesAllowed\": false,\n    \"postStep\": {\n      \"linuxExecStepConfig\": {\n        \"allowedSuccessCodes\": [],\n        \"gcsObject\": {\n          \"bucket\": \"\",\n          \"generationNumber\": \"\",\n          \"object\": \"\"\n        },\n        \"interpreter\": \"\",\n        \"localPath\": \"\"\n      },\n      \"windowsExecStepConfig\": {}\n    },\n    \"preStep\": {},\n    \"rebootConfig\": \"\",\n    \"windowsUpdate\": {\n      \"classifications\": [],\n      \"excludes\": [],\n      \"exclusivePatches\": []\n    },\n    \"yum\": {\n      \"excludes\": [],\n      \"exclusivePackages\": [],\n      \"minimal\": false,\n      \"security\": false\n    },\n    \"zypper\": {\n      \"categories\": [],\n      \"excludes\": [],\n      \"exclusivePatches\": [],\n      \"severities\": [],\n      \"withOptional\": false,\n      \"withUpdate\": false\n    }\n  },\n  \"recurringSchedule\": {\n    \"endTime\": \"\",\n    \"frequency\": \"\",\n    \"lastExecuteTime\": \"\",\n    \"monthly\": {\n      \"monthDay\": 0,\n      \"weekDayOfMonth\": {\n        \"dayOfWeek\": \"\",\n        \"dayOffset\": 0,\n        \"weekOrdinal\": 0\n      }\n    },\n    \"nextExecuteTime\": \"\",\n    \"startTime\": \"\",\n    \"timeOfDay\": {\n      \"hours\": 0,\n      \"minutes\": 0,\n      \"nanos\": 0,\n      \"seconds\": 0\n    },\n    \"timeZone\": {\n      \"id\": \"\",\n      \"version\": \"\"\n    },\n    \"weekly\": {\n      \"dayOfWeek\": \"\"\n    }\n  },\n  \"rollout\": {\n    \"disruptionBudget\": {\n      \"fixed\": 0,\n      \"percent\": 0\n    },\n    \"mode\": \"\"\n  },\n  \"state\": \"\",\n  \"updateTime\": \"\"\n}")
  .asString();
const data = JSON.stringify({
  createTime: '',
  description: '',
  duration: '',
  instanceFilter: {
    all: false,
    groupLabels: [
      {
        labels: {}
      }
    ],
    instanceNamePrefixes: [],
    instances: [],
    zones: []
  },
  lastExecuteTime: '',
  name: '',
  oneTimeSchedule: {
    executeTime: ''
  },
  patchConfig: {
    apt: {
      excludes: [],
      exclusivePackages: [],
      type: ''
    },
    goo: {},
    migInstancesAllowed: false,
    postStep: {
      linuxExecStepConfig: {
        allowedSuccessCodes: [],
        gcsObject: {
          bucket: '',
          generationNumber: '',
          object: ''
        },
        interpreter: '',
        localPath: ''
      },
      windowsExecStepConfig: {}
    },
    preStep: {},
    rebootConfig: '',
    windowsUpdate: {
      classifications: [],
      excludes: [],
      exclusivePatches: []
    },
    yum: {
      excludes: [],
      exclusivePackages: [],
      minimal: false,
      security: false
    },
    zypper: {
      categories: [],
      excludes: [],
      exclusivePatches: [],
      severities: [],
      withOptional: false,
      withUpdate: false
    }
  },
  recurringSchedule: {
    endTime: '',
    frequency: '',
    lastExecuteTime: '',
    monthly: {
      monthDay: 0,
      weekDayOfMonth: {
        dayOfWeek: '',
        dayOffset: 0,
        weekOrdinal: 0
      }
    },
    nextExecuteTime: '',
    startTime: '',
    timeOfDay: {
      hours: 0,
      minutes: 0,
      nanos: 0,
      seconds: 0
    },
    timeZone: {
      id: '',
      version: ''
    },
    weekly: {
      dayOfWeek: ''
    }
  },
  rollout: {
    disruptionBudget: {
      fixed: 0,
      percent: 0
    },
    mode: ''
  },
  state: '',
  updateTime: ''
});

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

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

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

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

const options = {
  method: 'PATCH',
  url: '{{baseUrl}}/v1beta/:name',
  headers: {'content-type': 'application/json'},
  data: {
    createTime: '',
    description: '',
    duration: '',
    instanceFilter: {
      all: false,
      groupLabels: [{labels: {}}],
      instanceNamePrefixes: [],
      instances: [],
      zones: []
    },
    lastExecuteTime: '',
    name: '',
    oneTimeSchedule: {executeTime: ''},
    patchConfig: {
      apt: {excludes: [], exclusivePackages: [], type: ''},
      goo: {},
      migInstancesAllowed: false,
      postStep: {
        linuxExecStepConfig: {
          allowedSuccessCodes: [],
          gcsObject: {bucket: '', generationNumber: '', object: ''},
          interpreter: '',
          localPath: ''
        },
        windowsExecStepConfig: {}
      },
      preStep: {},
      rebootConfig: '',
      windowsUpdate: {classifications: [], excludes: [], exclusivePatches: []},
      yum: {excludes: [], exclusivePackages: [], minimal: false, security: false},
      zypper: {
        categories: [],
        excludes: [],
        exclusivePatches: [],
        severities: [],
        withOptional: false,
        withUpdate: false
      }
    },
    recurringSchedule: {
      endTime: '',
      frequency: '',
      lastExecuteTime: '',
      monthly: {monthDay: 0, weekDayOfMonth: {dayOfWeek: '', dayOffset: 0, weekOrdinal: 0}},
      nextExecuteTime: '',
      startTime: '',
      timeOfDay: {hours: 0, minutes: 0, nanos: 0, seconds: 0},
      timeZone: {id: '', version: ''},
      weekly: {dayOfWeek: ''}
    },
    rollout: {disruptionBudget: {fixed: 0, percent: 0}, mode: ''},
    state: '',
    updateTime: ''
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/v1beta/:name';
const options = {
  method: 'PATCH',
  headers: {'content-type': 'application/json'},
  body: '{"createTime":"","description":"","duration":"","instanceFilter":{"all":false,"groupLabels":[{"labels":{}}],"instanceNamePrefixes":[],"instances":[],"zones":[]},"lastExecuteTime":"","name":"","oneTimeSchedule":{"executeTime":""},"patchConfig":{"apt":{"excludes":[],"exclusivePackages":[],"type":""},"goo":{},"migInstancesAllowed":false,"postStep":{"linuxExecStepConfig":{"allowedSuccessCodes":[],"gcsObject":{"bucket":"","generationNumber":"","object":""},"interpreter":"","localPath":""},"windowsExecStepConfig":{}},"preStep":{},"rebootConfig":"","windowsUpdate":{"classifications":[],"excludes":[],"exclusivePatches":[]},"yum":{"excludes":[],"exclusivePackages":[],"minimal":false,"security":false},"zypper":{"categories":[],"excludes":[],"exclusivePatches":[],"severities":[],"withOptional":false,"withUpdate":false}},"recurringSchedule":{"endTime":"","frequency":"","lastExecuteTime":"","monthly":{"monthDay":0,"weekDayOfMonth":{"dayOfWeek":"","dayOffset":0,"weekOrdinal":0}},"nextExecuteTime":"","startTime":"","timeOfDay":{"hours":0,"minutes":0,"nanos":0,"seconds":0},"timeZone":{"id":"","version":""},"weekly":{"dayOfWeek":""}},"rollout":{"disruptionBudget":{"fixed":0,"percent":0},"mode":""},"state":"","updateTime":""}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/v1beta/:name',
  method: 'PATCH',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "createTime": "",\n  "description": "",\n  "duration": "",\n  "instanceFilter": {\n    "all": false,\n    "groupLabels": [\n      {\n        "labels": {}\n      }\n    ],\n    "instanceNamePrefixes": [],\n    "instances": [],\n    "zones": []\n  },\n  "lastExecuteTime": "",\n  "name": "",\n  "oneTimeSchedule": {\n    "executeTime": ""\n  },\n  "patchConfig": {\n    "apt": {\n      "excludes": [],\n      "exclusivePackages": [],\n      "type": ""\n    },\n    "goo": {},\n    "migInstancesAllowed": false,\n    "postStep": {\n      "linuxExecStepConfig": {\n        "allowedSuccessCodes": [],\n        "gcsObject": {\n          "bucket": "",\n          "generationNumber": "",\n          "object": ""\n        },\n        "interpreter": "",\n        "localPath": ""\n      },\n      "windowsExecStepConfig": {}\n    },\n    "preStep": {},\n    "rebootConfig": "",\n    "windowsUpdate": {\n      "classifications": [],\n      "excludes": [],\n      "exclusivePatches": []\n    },\n    "yum": {\n      "excludes": [],\n      "exclusivePackages": [],\n      "minimal": false,\n      "security": false\n    },\n    "zypper": {\n      "categories": [],\n      "excludes": [],\n      "exclusivePatches": [],\n      "severities": [],\n      "withOptional": false,\n      "withUpdate": false\n    }\n  },\n  "recurringSchedule": {\n    "endTime": "",\n    "frequency": "",\n    "lastExecuteTime": "",\n    "monthly": {\n      "monthDay": 0,\n      "weekDayOfMonth": {\n        "dayOfWeek": "",\n        "dayOffset": 0,\n        "weekOrdinal": 0\n      }\n    },\n    "nextExecuteTime": "",\n    "startTime": "",\n    "timeOfDay": {\n      "hours": 0,\n      "minutes": 0,\n      "nanos": 0,\n      "seconds": 0\n    },\n    "timeZone": {\n      "id": "",\n      "version": ""\n    },\n    "weekly": {\n      "dayOfWeek": ""\n    }\n  },\n  "rollout": {\n    "disruptionBudget": {\n      "fixed": 0,\n      "percent": 0\n    },\n    "mode": ""\n  },\n  "state": "",\n  "updateTime": ""\n}'
};

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

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"createTime\": \"\",\n  \"description\": \"\",\n  \"duration\": \"\",\n  \"instanceFilter\": {\n    \"all\": false,\n    \"groupLabels\": [\n      {\n        \"labels\": {}\n      }\n    ],\n    \"instanceNamePrefixes\": [],\n    \"instances\": [],\n    \"zones\": []\n  },\n  \"lastExecuteTime\": \"\",\n  \"name\": \"\",\n  \"oneTimeSchedule\": {\n    \"executeTime\": \"\"\n  },\n  \"patchConfig\": {\n    \"apt\": {\n      \"excludes\": [],\n      \"exclusivePackages\": [],\n      \"type\": \"\"\n    },\n    \"goo\": {},\n    \"migInstancesAllowed\": false,\n    \"postStep\": {\n      \"linuxExecStepConfig\": {\n        \"allowedSuccessCodes\": [],\n        \"gcsObject\": {\n          \"bucket\": \"\",\n          \"generationNumber\": \"\",\n          \"object\": \"\"\n        },\n        \"interpreter\": \"\",\n        \"localPath\": \"\"\n      },\n      \"windowsExecStepConfig\": {}\n    },\n    \"preStep\": {},\n    \"rebootConfig\": \"\",\n    \"windowsUpdate\": {\n      \"classifications\": [],\n      \"excludes\": [],\n      \"exclusivePatches\": []\n    },\n    \"yum\": {\n      \"excludes\": [],\n      \"exclusivePackages\": [],\n      \"minimal\": false,\n      \"security\": false\n    },\n    \"zypper\": {\n      \"categories\": [],\n      \"excludes\": [],\n      \"exclusivePatches\": [],\n      \"severities\": [],\n      \"withOptional\": false,\n      \"withUpdate\": false\n    }\n  },\n  \"recurringSchedule\": {\n    \"endTime\": \"\",\n    \"frequency\": \"\",\n    \"lastExecuteTime\": \"\",\n    \"monthly\": {\n      \"monthDay\": 0,\n      \"weekDayOfMonth\": {\n        \"dayOfWeek\": \"\",\n        \"dayOffset\": 0,\n        \"weekOrdinal\": 0\n      }\n    },\n    \"nextExecuteTime\": \"\",\n    \"startTime\": \"\",\n    \"timeOfDay\": {\n      \"hours\": 0,\n      \"minutes\": 0,\n      \"nanos\": 0,\n      \"seconds\": 0\n    },\n    \"timeZone\": {\n      \"id\": \"\",\n      \"version\": \"\"\n    },\n    \"weekly\": {\n      \"dayOfWeek\": \"\"\n    }\n  },\n  \"rollout\": {\n    \"disruptionBudget\": {\n      \"fixed\": 0,\n      \"percent\": 0\n    },\n    \"mode\": \"\"\n  },\n  \"state\": \"\",\n  \"updateTime\": \"\"\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/v1beta/: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/v1beta/: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({
  createTime: '',
  description: '',
  duration: '',
  instanceFilter: {
    all: false,
    groupLabels: [{labels: {}}],
    instanceNamePrefixes: [],
    instances: [],
    zones: []
  },
  lastExecuteTime: '',
  name: '',
  oneTimeSchedule: {executeTime: ''},
  patchConfig: {
    apt: {excludes: [], exclusivePackages: [], type: ''},
    goo: {},
    migInstancesAllowed: false,
    postStep: {
      linuxExecStepConfig: {
        allowedSuccessCodes: [],
        gcsObject: {bucket: '', generationNumber: '', object: ''},
        interpreter: '',
        localPath: ''
      },
      windowsExecStepConfig: {}
    },
    preStep: {},
    rebootConfig: '',
    windowsUpdate: {classifications: [], excludes: [], exclusivePatches: []},
    yum: {excludes: [], exclusivePackages: [], minimal: false, security: false},
    zypper: {
      categories: [],
      excludes: [],
      exclusivePatches: [],
      severities: [],
      withOptional: false,
      withUpdate: false
    }
  },
  recurringSchedule: {
    endTime: '',
    frequency: '',
    lastExecuteTime: '',
    monthly: {monthDay: 0, weekDayOfMonth: {dayOfWeek: '', dayOffset: 0, weekOrdinal: 0}},
    nextExecuteTime: '',
    startTime: '',
    timeOfDay: {hours: 0, minutes: 0, nanos: 0, seconds: 0},
    timeZone: {id: '', version: ''},
    weekly: {dayOfWeek: ''}
  },
  rollout: {disruptionBudget: {fixed: 0, percent: 0}, mode: ''},
  state: '',
  updateTime: ''
}));
req.end();
const request = require('request');

const options = {
  method: 'PATCH',
  url: '{{baseUrl}}/v1beta/:name',
  headers: {'content-type': 'application/json'},
  body: {
    createTime: '',
    description: '',
    duration: '',
    instanceFilter: {
      all: false,
      groupLabels: [{labels: {}}],
      instanceNamePrefixes: [],
      instances: [],
      zones: []
    },
    lastExecuteTime: '',
    name: '',
    oneTimeSchedule: {executeTime: ''},
    patchConfig: {
      apt: {excludes: [], exclusivePackages: [], type: ''},
      goo: {},
      migInstancesAllowed: false,
      postStep: {
        linuxExecStepConfig: {
          allowedSuccessCodes: [],
          gcsObject: {bucket: '', generationNumber: '', object: ''},
          interpreter: '',
          localPath: ''
        },
        windowsExecStepConfig: {}
      },
      preStep: {},
      rebootConfig: '',
      windowsUpdate: {classifications: [], excludes: [], exclusivePatches: []},
      yum: {excludes: [], exclusivePackages: [], minimal: false, security: false},
      zypper: {
        categories: [],
        excludes: [],
        exclusivePatches: [],
        severities: [],
        withOptional: false,
        withUpdate: false
      }
    },
    recurringSchedule: {
      endTime: '',
      frequency: '',
      lastExecuteTime: '',
      monthly: {monthDay: 0, weekDayOfMonth: {dayOfWeek: '', dayOffset: 0, weekOrdinal: 0}},
      nextExecuteTime: '',
      startTime: '',
      timeOfDay: {hours: 0, minutes: 0, nanos: 0, seconds: 0},
      timeZone: {id: '', version: ''},
      weekly: {dayOfWeek: ''}
    },
    rollout: {disruptionBudget: {fixed: 0, percent: 0}, mode: ''},
    state: '',
    updateTime: ''
  },
  json: true
};

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

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

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

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

req.type('json');
req.send({
  createTime: '',
  description: '',
  duration: '',
  instanceFilter: {
    all: false,
    groupLabels: [
      {
        labels: {}
      }
    ],
    instanceNamePrefixes: [],
    instances: [],
    zones: []
  },
  lastExecuteTime: '',
  name: '',
  oneTimeSchedule: {
    executeTime: ''
  },
  patchConfig: {
    apt: {
      excludes: [],
      exclusivePackages: [],
      type: ''
    },
    goo: {},
    migInstancesAllowed: false,
    postStep: {
      linuxExecStepConfig: {
        allowedSuccessCodes: [],
        gcsObject: {
          bucket: '',
          generationNumber: '',
          object: ''
        },
        interpreter: '',
        localPath: ''
      },
      windowsExecStepConfig: {}
    },
    preStep: {},
    rebootConfig: '',
    windowsUpdate: {
      classifications: [],
      excludes: [],
      exclusivePatches: []
    },
    yum: {
      excludes: [],
      exclusivePackages: [],
      minimal: false,
      security: false
    },
    zypper: {
      categories: [],
      excludes: [],
      exclusivePatches: [],
      severities: [],
      withOptional: false,
      withUpdate: false
    }
  },
  recurringSchedule: {
    endTime: '',
    frequency: '',
    lastExecuteTime: '',
    monthly: {
      monthDay: 0,
      weekDayOfMonth: {
        dayOfWeek: '',
        dayOffset: 0,
        weekOrdinal: 0
      }
    },
    nextExecuteTime: '',
    startTime: '',
    timeOfDay: {
      hours: 0,
      minutes: 0,
      nanos: 0,
      seconds: 0
    },
    timeZone: {
      id: '',
      version: ''
    },
    weekly: {
      dayOfWeek: ''
    }
  },
  rollout: {
    disruptionBudget: {
      fixed: 0,
      percent: 0
    },
    mode: ''
  },
  state: '',
  updateTime: ''
});

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

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

const options = {
  method: 'PATCH',
  url: '{{baseUrl}}/v1beta/:name',
  headers: {'content-type': 'application/json'},
  data: {
    createTime: '',
    description: '',
    duration: '',
    instanceFilter: {
      all: false,
      groupLabels: [{labels: {}}],
      instanceNamePrefixes: [],
      instances: [],
      zones: []
    },
    lastExecuteTime: '',
    name: '',
    oneTimeSchedule: {executeTime: ''},
    patchConfig: {
      apt: {excludes: [], exclusivePackages: [], type: ''},
      goo: {},
      migInstancesAllowed: false,
      postStep: {
        linuxExecStepConfig: {
          allowedSuccessCodes: [],
          gcsObject: {bucket: '', generationNumber: '', object: ''},
          interpreter: '',
          localPath: ''
        },
        windowsExecStepConfig: {}
      },
      preStep: {},
      rebootConfig: '',
      windowsUpdate: {classifications: [], excludes: [], exclusivePatches: []},
      yum: {excludes: [], exclusivePackages: [], minimal: false, security: false},
      zypper: {
        categories: [],
        excludes: [],
        exclusivePatches: [],
        severities: [],
        withOptional: false,
        withUpdate: false
      }
    },
    recurringSchedule: {
      endTime: '',
      frequency: '',
      lastExecuteTime: '',
      monthly: {monthDay: 0, weekDayOfMonth: {dayOfWeek: '', dayOffset: 0, weekOrdinal: 0}},
      nextExecuteTime: '',
      startTime: '',
      timeOfDay: {hours: 0, minutes: 0, nanos: 0, seconds: 0},
      timeZone: {id: '', version: ''},
      weekly: {dayOfWeek: ''}
    },
    rollout: {disruptionBudget: {fixed: 0, percent: 0}, mode: ''},
    state: '',
    updateTime: ''
  }
};

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

const url = '{{baseUrl}}/v1beta/:name';
const options = {
  method: 'PATCH',
  headers: {'content-type': 'application/json'},
  body: '{"createTime":"","description":"","duration":"","instanceFilter":{"all":false,"groupLabels":[{"labels":{}}],"instanceNamePrefixes":[],"instances":[],"zones":[]},"lastExecuteTime":"","name":"","oneTimeSchedule":{"executeTime":""},"patchConfig":{"apt":{"excludes":[],"exclusivePackages":[],"type":""},"goo":{},"migInstancesAllowed":false,"postStep":{"linuxExecStepConfig":{"allowedSuccessCodes":[],"gcsObject":{"bucket":"","generationNumber":"","object":""},"interpreter":"","localPath":""},"windowsExecStepConfig":{}},"preStep":{},"rebootConfig":"","windowsUpdate":{"classifications":[],"excludes":[],"exclusivePatches":[]},"yum":{"excludes":[],"exclusivePackages":[],"minimal":false,"security":false},"zypper":{"categories":[],"excludes":[],"exclusivePatches":[],"severities":[],"withOptional":false,"withUpdate":false}},"recurringSchedule":{"endTime":"","frequency":"","lastExecuteTime":"","monthly":{"monthDay":0,"weekDayOfMonth":{"dayOfWeek":"","dayOffset":0,"weekOrdinal":0}},"nextExecuteTime":"","startTime":"","timeOfDay":{"hours":0,"minutes":0,"nanos":0,"seconds":0},"timeZone":{"id":"","version":""},"weekly":{"dayOfWeek":""}},"rollout":{"disruptionBudget":{"fixed":0,"percent":0},"mode":""},"state":"","updateTime":""}'
};

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

NSDictionary *headers = @{ @"content-type": @"application/json" };
NSDictionary *parameters = @{ @"createTime": @"",
                              @"description": @"",
                              @"duration": @"",
                              @"instanceFilter": @{ @"all": @NO, @"groupLabels": @[ @{ @"labels": @{  } } ], @"instanceNamePrefixes": @[  ], @"instances": @[  ], @"zones": @[  ] },
                              @"lastExecuteTime": @"",
                              @"name": @"",
                              @"oneTimeSchedule": @{ @"executeTime": @"" },
                              @"patchConfig": @{ @"apt": @{ @"excludes": @[  ], @"exclusivePackages": @[  ], @"type": @"" }, @"goo": @{  }, @"migInstancesAllowed": @NO, @"postStep": @{ @"linuxExecStepConfig": @{ @"allowedSuccessCodes": @[  ], @"gcsObject": @{ @"bucket": @"", @"generationNumber": @"", @"object": @"" }, @"interpreter": @"", @"localPath": @"" }, @"windowsExecStepConfig": @{  } }, @"preStep": @{  }, @"rebootConfig": @"", @"windowsUpdate": @{ @"classifications": @[  ], @"excludes": @[  ], @"exclusivePatches": @[  ] }, @"yum": @{ @"excludes": @[  ], @"exclusivePackages": @[  ], @"minimal": @NO, @"security": @NO }, @"zypper": @{ @"categories": @[  ], @"excludes": @[  ], @"exclusivePatches": @[  ], @"severities": @[  ], @"withOptional": @NO, @"withUpdate": @NO } },
                              @"recurringSchedule": @{ @"endTime": @"", @"frequency": @"", @"lastExecuteTime": @"", @"monthly": @{ @"monthDay": @0, @"weekDayOfMonth": @{ @"dayOfWeek": @"", @"dayOffset": @0, @"weekOrdinal": @0 } }, @"nextExecuteTime": @"", @"startTime": @"", @"timeOfDay": @{ @"hours": @0, @"minutes": @0, @"nanos": @0, @"seconds": @0 }, @"timeZone": @{ @"id": @"", @"version": @"" }, @"weekly": @{ @"dayOfWeek": @"" } },
                              @"rollout": @{ @"disruptionBudget": @{ @"fixed": @0, @"percent": @0 }, @"mode": @"" },
                              @"state": @"",
                              @"updateTime": @"" };

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

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/v1beta/: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}}/v1beta/:name" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"createTime\": \"\",\n  \"description\": \"\",\n  \"duration\": \"\",\n  \"instanceFilter\": {\n    \"all\": false,\n    \"groupLabels\": [\n      {\n        \"labels\": {}\n      }\n    ],\n    \"instanceNamePrefixes\": [],\n    \"instances\": [],\n    \"zones\": []\n  },\n  \"lastExecuteTime\": \"\",\n  \"name\": \"\",\n  \"oneTimeSchedule\": {\n    \"executeTime\": \"\"\n  },\n  \"patchConfig\": {\n    \"apt\": {\n      \"excludes\": [],\n      \"exclusivePackages\": [],\n      \"type\": \"\"\n    },\n    \"goo\": {},\n    \"migInstancesAllowed\": false,\n    \"postStep\": {\n      \"linuxExecStepConfig\": {\n        \"allowedSuccessCodes\": [],\n        \"gcsObject\": {\n          \"bucket\": \"\",\n          \"generationNumber\": \"\",\n          \"object\": \"\"\n        },\n        \"interpreter\": \"\",\n        \"localPath\": \"\"\n      },\n      \"windowsExecStepConfig\": {}\n    },\n    \"preStep\": {},\n    \"rebootConfig\": \"\",\n    \"windowsUpdate\": {\n      \"classifications\": [],\n      \"excludes\": [],\n      \"exclusivePatches\": []\n    },\n    \"yum\": {\n      \"excludes\": [],\n      \"exclusivePackages\": [],\n      \"minimal\": false,\n      \"security\": false\n    },\n    \"zypper\": {\n      \"categories\": [],\n      \"excludes\": [],\n      \"exclusivePatches\": [],\n      \"severities\": [],\n      \"withOptional\": false,\n      \"withUpdate\": false\n    }\n  },\n  \"recurringSchedule\": {\n    \"endTime\": \"\",\n    \"frequency\": \"\",\n    \"lastExecuteTime\": \"\",\n    \"monthly\": {\n      \"monthDay\": 0,\n      \"weekDayOfMonth\": {\n        \"dayOfWeek\": \"\",\n        \"dayOffset\": 0,\n        \"weekOrdinal\": 0\n      }\n    },\n    \"nextExecuteTime\": \"\",\n    \"startTime\": \"\",\n    \"timeOfDay\": {\n      \"hours\": 0,\n      \"minutes\": 0,\n      \"nanos\": 0,\n      \"seconds\": 0\n    },\n    \"timeZone\": {\n      \"id\": \"\",\n      \"version\": \"\"\n    },\n    \"weekly\": {\n      \"dayOfWeek\": \"\"\n    }\n  },\n  \"rollout\": {\n    \"disruptionBudget\": {\n      \"fixed\": 0,\n      \"percent\": 0\n    },\n    \"mode\": \"\"\n  },\n  \"state\": \"\",\n  \"updateTime\": \"\"\n}" in

Client.call ~headers ~body `PATCH uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/v1beta/: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([
    'createTime' => '',
    'description' => '',
    'duration' => '',
    'instanceFilter' => [
        'all' => null,
        'groupLabels' => [
                [
                                'labels' => [
                                                                
                                ]
                ]
        ],
        'instanceNamePrefixes' => [
                
        ],
        'instances' => [
                
        ],
        'zones' => [
                
        ]
    ],
    'lastExecuteTime' => '',
    'name' => '',
    'oneTimeSchedule' => [
        'executeTime' => ''
    ],
    'patchConfig' => [
        'apt' => [
                'excludes' => [
                                
                ],
                'exclusivePackages' => [
                                
                ],
                'type' => ''
        ],
        'goo' => [
                
        ],
        'migInstancesAllowed' => null,
        'postStep' => [
                'linuxExecStepConfig' => [
                                'allowedSuccessCodes' => [
                                                                
                                ],
                                'gcsObject' => [
                                                                'bucket' => '',
                                                                'generationNumber' => '',
                                                                'object' => ''
                                ],
                                'interpreter' => '',
                                'localPath' => ''
                ],
                'windowsExecStepConfig' => [
                                
                ]
        ],
        'preStep' => [
                
        ],
        'rebootConfig' => '',
        'windowsUpdate' => [
                'classifications' => [
                                
                ],
                'excludes' => [
                                
                ],
                'exclusivePatches' => [
                                
                ]
        ],
        'yum' => [
                'excludes' => [
                                
                ],
                'exclusivePackages' => [
                                
                ],
                'minimal' => null,
                'security' => null
        ],
        'zypper' => [
                'categories' => [
                                
                ],
                'excludes' => [
                                
                ],
                'exclusivePatches' => [
                                
                ],
                'severities' => [
                                
                ],
                'withOptional' => null,
                'withUpdate' => null
        ]
    ],
    'recurringSchedule' => [
        'endTime' => '',
        'frequency' => '',
        'lastExecuteTime' => '',
        'monthly' => [
                'monthDay' => 0,
                'weekDayOfMonth' => [
                                'dayOfWeek' => '',
                                'dayOffset' => 0,
                                'weekOrdinal' => 0
                ]
        ],
        'nextExecuteTime' => '',
        'startTime' => '',
        'timeOfDay' => [
                'hours' => 0,
                'minutes' => 0,
                'nanos' => 0,
                'seconds' => 0
        ],
        'timeZone' => [
                'id' => '',
                'version' => ''
        ],
        'weekly' => [
                'dayOfWeek' => ''
        ]
    ],
    'rollout' => [
        'disruptionBudget' => [
                'fixed' => 0,
                'percent' => 0
        ],
        'mode' => ''
    ],
    'state' => '',
    'updateTime' => ''
  ]),
  CURLOPT_HTTPHEADER => [
    "content-type: application/json"
  ],
]);

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

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('PATCH', '{{baseUrl}}/v1beta/:name', [
  'body' => '{
  "createTime": "",
  "description": "",
  "duration": "",
  "instanceFilter": {
    "all": false,
    "groupLabels": [
      {
        "labels": {}
      }
    ],
    "instanceNamePrefixes": [],
    "instances": [],
    "zones": []
  },
  "lastExecuteTime": "",
  "name": "",
  "oneTimeSchedule": {
    "executeTime": ""
  },
  "patchConfig": {
    "apt": {
      "excludes": [],
      "exclusivePackages": [],
      "type": ""
    },
    "goo": {},
    "migInstancesAllowed": false,
    "postStep": {
      "linuxExecStepConfig": {
        "allowedSuccessCodes": [],
        "gcsObject": {
          "bucket": "",
          "generationNumber": "",
          "object": ""
        },
        "interpreter": "",
        "localPath": ""
      },
      "windowsExecStepConfig": {}
    },
    "preStep": {},
    "rebootConfig": "",
    "windowsUpdate": {
      "classifications": [],
      "excludes": [],
      "exclusivePatches": []
    },
    "yum": {
      "excludes": [],
      "exclusivePackages": [],
      "minimal": false,
      "security": false
    },
    "zypper": {
      "categories": [],
      "excludes": [],
      "exclusivePatches": [],
      "severities": [],
      "withOptional": false,
      "withUpdate": false
    }
  },
  "recurringSchedule": {
    "endTime": "",
    "frequency": "",
    "lastExecuteTime": "",
    "monthly": {
      "monthDay": 0,
      "weekDayOfMonth": {
        "dayOfWeek": "",
        "dayOffset": 0,
        "weekOrdinal": 0
      }
    },
    "nextExecuteTime": "",
    "startTime": "",
    "timeOfDay": {
      "hours": 0,
      "minutes": 0,
      "nanos": 0,
      "seconds": 0
    },
    "timeZone": {
      "id": "",
      "version": ""
    },
    "weekly": {
      "dayOfWeek": ""
    }
  },
  "rollout": {
    "disruptionBudget": {
      "fixed": 0,
      "percent": 0
    },
    "mode": ""
  },
  "state": "",
  "updateTime": ""
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

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

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

$request->setContentType('application/json');
$request->setBody(json_encode([
  'createTime' => '',
  'description' => '',
  'duration' => '',
  'instanceFilter' => [
    'all' => null,
    'groupLabels' => [
        [
                'labels' => [
                                
                ]
        ]
    ],
    'instanceNamePrefixes' => [
        
    ],
    'instances' => [
        
    ],
    'zones' => [
        
    ]
  ],
  'lastExecuteTime' => '',
  'name' => '',
  'oneTimeSchedule' => [
    'executeTime' => ''
  ],
  'patchConfig' => [
    'apt' => [
        'excludes' => [
                
        ],
        'exclusivePackages' => [
                
        ],
        'type' => ''
    ],
    'goo' => [
        
    ],
    'migInstancesAllowed' => null,
    'postStep' => [
        'linuxExecStepConfig' => [
                'allowedSuccessCodes' => [
                                
                ],
                'gcsObject' => [
                                'bucket' => '',
                                'generationNumber' => '',
                                'object' => ''
                ],
                'interpreter' => '',
                'localPath' => ''
        ],
        'windowsExecStepConfig' => [
                
        ]
    ],
    'preStep' => [
        
    ],
    'rebootConfig' => '',
    'windowsUpdate' => [
        'classifications' => [
                
        ],
        'excludes' => [
                
        ],
        'exclusivePatches' => [
                
        ]
    ],
    'yum' => [
        'excludes' => [
                
        ],
        'exclusivePackages' => [
                
        ],
        'minimal' => null,
        'security' => null
    ],
    'zypper' => [
        'categories' => [
                
        ],
        'excludes' => [
                
        ],
        'exclusivePatches' => [
                
        ],
        'severities' => [
                
        ],
        'withOptional' => null,
        'withUpdate' => null
    ]
  ],
  'recurringSchedule' => [
    'endTime' => '',
    'frequency' => '',
    'lastExecuteTime' => '',
    'monthly' => [
        'monthDay' => 0,
        'weekDayOfMonth' => [
                'dayOfWeek' => '',
                'dayOffset' => 0,
                'weekOrdinal' => 0
        ]
    ],
    'nextExecuteTime' => '',
    'startTime' => '',
    'timeOfDay' => [
        'hours' => 0,
        'minutes' => 0,
        'nanos' => 0,
        'seconds' => 0
    ],
    'timeZone' => [
        'id' => '',
        'version' => ''
    ],
    'weekly' => [
        'dayOfWeek' => ''
    ]
  ],
  'rollout' => [
    'disruptionBudget' => [
        'fixed' => 0,
        'percent' => 0
    ],
    'mode' => ''
  ],
  'state' => '',
  'updateTime' => ''
]));

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'createTime' => '',
  'description' => '',
  'duration' => '',
  'instanceFilter' => [
    'all' => null,
    'groupLabels' => [
        [
                'labels' => [
                                
                ]
        ]
    ],
    'instanceNamePrefixes' => [
        
    ],
    'instances' => [
        
    ],
    'zones' => [
        
    ]
  ],
  'lastExecuteTime' => '',
  'name' => '',
  'oneTimeSchedule' => [
    'executeTime' => ''
  ],
  'patchConfig' => [
    'apt' => [
        'excludes' => [
                
        ],
        'exclusivePackages' => [
                
        ],
        'type' => ''
    ],
    'goo' => [
        
    ],
    'migInstancesAllowed' => null,
    'postStep' => [
        'linuxExecStepConfig' => [
                'allowedSuccessCodes' => [
                                
                ],
                'gcsObject' => [
                                'bucket' => '',
                                'generationNumber' => '',
                                'object' => ''
                ],
                'interpreter' => '',
                'localPath' => ''
        ],
        'windowsExecStepConfig' => [
                
        ]
    ],
    'preStep' => [
        
    ],
    'rebootConfig' => '',
    'windowsUpdate' => [
        'classifications' => [
                
        ],
        'excludes' => [
                
        ],
        'exclusivePatches' => [
                
        ]
    ],
    'yum' => [
        'excludes' => [
                
        ],
        'exclusivePackages' => [
                
        ],
        'minimal' => null,
        'security' => null
    ],
    'zypper' => [
        'categories' => [
                
        ],
        'excludes' => [
                
        ],
        'exclusivePatches' => [
                
        ],
        'severities' => [
                
        ],
        'withOptional' => null,
        'withUpdate' => null
    ]
  ],
  'recurringSchedule' => [
    'endTime' => '',
    'frequency' => '',
    'lastExecuteTime' => '',
    'monthly' => [
        'monthDay' => 0,
        'weekDayOfMonth' => [
                'dayOfWeek' => '',
                'dayOffset' => 0,
                'weekOrdinal' => 0
        ]
    ],
    'nextExecuteTime' => '',
    'startTime' => '',
    'timeOfDay' => [
        'hours' => 0,
        'minutes' => 0,
        'nanos' => 0,
        'seconds' => 0
    ],
    'timeZone' => [
        'id' => '',
        'version' => ''
    ],
    'weekly' => [
        'dayOfWeek' => ''
    ]
  ],
  'rollout' => [
    'disruptionBudget' => [
        'fixed' => 0,
        'percent' => 0
    ],
    'mode' => ''
  ],
  'state' => '',
  'updateTime' => ''
]));
$request->setRequestUrl('{{baseUrl}}/v1beta/: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}}/v1beta/:name' -Method PATCH -Headers $headers -ContentType 'application/json' -Body '{
  "createTime": "",
  "description": "",
  "duration": "",
  "instanceFilter": {
    "all": false,
    "groupLabels": [
      {
        "labels": {}
      }
    ],
    "instanceNamePrefixes": [],
    "instances": [],
    "zones": []
  },
  "lastExecuteTime": "",
  "name": "",
  "oneTimeSchedule": {
    "executeTime": ""
  },
  "patchConfig": {
    "apt": {
      "excludes": [],
      "exclusivePackages": [],
      "type": ""
    },
    "goo": {},
    "migInstancesAllowed": false,
    "postStep": {
      "linuxExecStepConfig": {
        "allowedSuccessCodes": [],
        "gcsObject": {
          "bucket": "",
          "generationNumber": "",
          "object": ""
        },
        "interpreter": "",
        "localPath": ""
      },
      "windowsExecStepConfig": {}
    },
    "preStep": {},
    "rebootConfig": "",
    "windowsUpdate": {
      "classifications": [],
      "excludes": [],
      "exclusivePatches": []
    },
    "yum": {
      "excludes": [],
      "exclusivePackages": [],
      "minimal": false,
      "security": false
    },
    "zypper": {
      "categories": [],
      "excludes": [],
      "exclusivePatches": [],
      "severities": [],
      "withOptional": false,
      "withUpdate": false
    }
  },
  "recurringSchedule": {
    "endTime": "",
    "frequency": "",
    "lastExecuteTime": "",
    "monthly": {
      "monthDay": 0,
      "weekDayOfMonth": {
        "dayOfWeek": "",
        "dayOffset": 0,
        "weekOrdinal": 0
      }
    },
    "nextExecuteTime": "",
    "startTime": "",
    "timeOfDay": {
      "hours": 0,
      "minutes": 0,
      "nanos": 0,
      "seconds": 0
    },
    "timeZone": {
      "id": "",
      "version": ""
    },
    "weekly": {
      "dayOfWeek": ""
    }
  },
  "rollout": {
    "disruptionBudget": {
      "fixed": 0,
      "percent": 0
    },
    "mode": ""
  },
  "state": "",
  "updateTime": ""
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/v1beta/:name' -Method PATCH -Headers $headers -ContentType 'application/json' -Body '{
  "createTime": "",
  "description": "",
  "duration": "",
  "instanceFilter": {
    "all": false,
    "groupLabels": [
      {
        "labels": {}
      }
    ],
    "instanceNamePrefixes": [],
    "instances": [],
    "zones": []
  },
  "lastExecuteTime": "",
  "name": "",
  "oneTimeSchedule": {
    "executeTime": ""
  },
  "patchConfig": {
    "apt": {
      "excludes": [],
      "exclusivePackages": [],
      "type": ""
    },
    "goo": {},
    "migInstancesAllowed": false,
    "postStep": {
      "linuxExecStepConfig": {
        "allowedSuccessCodes": [],
        "gcsObject": {
          "bucket": "",
          "generationNumber": "",
          "object": ""
        },
        "interpreter": "",
        "localPath": ""
      },
      "windowsExecStepConfig": {}
    },
    "preStep": {},
    "rebootConfig": "",
    "windowsUpdate": {
      "classifications": [],
      "excludes": [],
      "exclusivePatches": []
    },
    "yum": {
      "excludes": [],
      "exclusivePackages": [],
      "minimal": false,
      "security": false
    },
    "zypper": {
      "categories": [],
      "excludes": [],
      "exclusivePatches": [],
      "severities": [],
      "withOptional": false,
      "withUpdate": false
    }
  },
  "recurringSchedule": {
    "endTime": "",
    "frequency": "",
    "lastExecuteTime": "",
    "monthly": {
      "monthDay": 0,
      "weekDayOfMonth": {
        "dayOfWeek": "",
        "dayOffset": 0,
        "weekOrdinal": 0
      }
    },
    "nextExecuteTime": "",
    "startTime": "",
    "timeOfDay": {
      "hours": 0,
      "minutes": 0,
      "nanos": 0,
      "seconds": 0
    },
    "timeZone": {
      "id": "",
      "version": ""
    },
    "weekly": {
      "dayOfWeek": ""
    }
  },
  "rollout": {
    "disruptionBudget": {
      "fixed": 0,
      "percent": 0
    },
    "mode": ""
  },
  "state": "",
  "updateTime": ""
}'
import http.client

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

payload = "{\n  \"createTime\": \"\",\n  \"description\": \"\",\n  \"duration\": \"\",\n  \"instanceFilter\": {\n    \"all\": false,\n    \"groupLabels\": [\n      {\n        \"labels\": {}\n      }\n    ],\n    \"instanceNamePrefixes\": [],\n    \"instances\": [],\n    \"zones\": []\n  },\n  \"lastExecuteTime\": \"\",\n  \"name\": \"\",\n  \"oneTimeSchedule\": {\n    \"executeTime\": \"\"\n  },\n  \"patchConfig\": {\n    \"apt\": {\n      \"excludes\": [],\n      \"exclusivePackages\": [],\n      \"type\": \"\"\n    },\n    \"goo\": {},\n    \"migInstancesAllowed\": false,\n    \"postStep\": {\n      \"linuxExecStepConfig\": {\n        \"allowedSuccessCodes\": [],\n        \"gcsObject\": {\n          \"bucket\": \"\",\n          \"generationNumber\": \"\",\n          \"object\": \"\"\n        },\n        \"interpreter\": \"\",\n        \"localPath\": \"\"\n      },\n      \"windowsExecStepConfig\": {}\n    },\n    \"preStep\": {},\n    \"rebootConfig\": \"\",\n    \"windowsUpdate\": {\n      \"classifications\": [],\n      \"excludes\": [],\n      \"exclusivePatches\": []\n    },\n    \"yum\": {\n      \"excludes\": [],\n      \"exclusivePackages\": [],\n      \"minimal\": false,\n      \"security\": false\n    },\n    \"zypper\": {\n      \"categories\": [],\n      \"excludes\": [],\n      \"exclusivePatches\": [],\n      \"severities\": [],\n      \"withOptional\": false,\n      \"withUpdate\": false\n    }\n  },\n  \"recurringSchedule\": {\n    \"endTime\": \"\",\n    \"frequency\": \"\",\n    \"lastExecuteTime\": \"\",\n    \"monthly\": {\n      \"monthDay\": 0,\n      \"weekDayOfMonth\": {\n        \"dayOfWeek\": \"\",\n        \"dayOffset\": 0,\n        \"weekOrdinal\": 0\n      }\n    },\n    \"nextExecuteTime\": \"\",\n    \"startTime\": \"\",\n    \"timeOfDay\": {\n      \"hours\": 0,\n      \"minutes\": 0,\n      \"nanos\": 0,\n      \"seconds\": 0\n    },\n    \"timeZone\": {\n      \"id\": \"\",\n      \"version\": \"\"\n    },\n    \"weekly\": {\n      \"dayOfWeek\": \"\"\n    }\n  },\n  \"rollout\": {\n    \"disruptionBudget\": {\n      \"fixed\": 0,\n      \"percent\": 0\n    },\n    \"mode\": \"\"\n  },\n  \"state\": \"\",\n  \"updateTime\": \"\"\n}"

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

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

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

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

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

payload = {
    "createTime": "",
    "description": "",
    "duration": "",
    "instanceFilter": {
        "all": False,
        "groupLabels": [{ "labels": {} }],
        "instanceNamePrefixes": [],
        "instances": [],
        "zones": []
    },
    "lastExecuteTime": "",
    "name": "",
    "oneTimeSchedule": { "executeTime": "" },
    "patchConfig": {
        "apt": {
            "excludes": [],
            "exclusivePackages": [],
            "type": ""
        },
        "goo": {},
        "migInstancesAllowed": False,
        "postStep": {
            "linuxExecStepConfig": {
                "allowedSuccessCodes": [],
                "gcsObject": {
                    "bucket": "",
                    "generationNumber": "",
                    "object": ""
                },
                "interpreter": "",
                "localPath": ""
            },
            "windowsExecStepConfig": {}
        },
        "preStep": {},
        "rebootConfig": "",
        "windowsUpdate": {
            "classifications": [],
            "excludes": [],
            "exclusivePatches": []
        },
        "yum": {
            "excludes": [],
            "exclusivePackages": [],
            "minimal": False,
            "security": False
        },
        "zypper": {
            "categories": [],
            "excludes": [],
            "exclusivePatches": [],
            "severities": [],
            "withOptional": False,
            "withUpdate": False
        }
    },
    "recurringSchedule": {
        "endTime": "",
        "frequency": "",
        "lastExecuteTime": "",
        "monthly": {
            "monthDay": 0,
            "weekDayOfMonth": {
                "dayOfWeek": "",
                "dayOffset": 0,
                "weekOrdinal": 0
            }
        },
        "nextExecuteTime": "",
        "startTime": "",
        "timeOfDay": {
            "hours": 0,
            "minutes": 0,
            "nanos": 0,
            "seconds": 0
        },
        "timeZone": {
            "id": "",
            "version": ""
        },
        "weekly": { "dayOfWeek": "" }
    },
    "rollout": {
        "disruptionBudget": {
            "fixed": 0,
            "percent": 0
        },
        "mode": ""
    },
    "state": "",
    "updateTime": ""
}
headers = {"content-type": "application/json"}

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

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

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

payload <- "{\n  \"createTime\": \"\",\n  \"description\": \"\",\n  \"duration\": \"\",\n  \"instanceFilter\": {\n    \"all\": false,\n    \"groupLabels\": [\n      {\n        \"labels\": {}\n      }\n    ],\n    \"instanceNamePrefixes\": [],\n    \"instances\": [],\n    \"zones\": []\n  },\n  \"lastExecuteTime\": \"\",\n  \"name\": \"\",\n  \"oneTimeSchedule\": {\n    \"executeTime\": \"\"\n  },\n  \"patchConfig\": {\n    \"apt\": {\n      \"excludes\": [],\n      \"exclusivePackages\": [],\n      \"type\": \"\"\n    },\n    \"goo\": {},\n    \"migInstancesAllowed\": false,\n    \"postStep\": {\n      \"linuxExecStepConfig\": {\n        \"allowedSuccessCodes\": [],\n        \"gcsObject\": {\n          \"bucket\": \"\",\n          \"generationNumber\": \"\",\n          \"object\": \"\"\n        },\n        \"interpreter\": \"\",\n        \"localPath\": \"\"\n      },\n      \"windowsExecStepConfig\": {}\n    },\n    \"preStep\": {},\n    \"rebootConfig\": \"\",\n    \"windowsUpdate\": {\n      \"classifications\": [],\n      \"excludes\": [],\n      \"exclusivePatches\": []\n    },\n    \"yum\": {\n      \"excludes\": [],\n      \"exclusivePackages\": [],\n      \"minimal\": false,\n      \"security\": false\n    },\n    \"zypper\": {\n      \"categories\": [],\n      \"excludes\": [],\n      \"exclusivePatches\": [],\n      \"severities\": [],\n      \"withOptional\": false,\n      \"withUpdate\": false\n    }\n  },\n  \"recurringSchedule\": {\n    \"endTime\": \"\",\n    \"frequency\": \"\",\n    \"lastExecuteTime\": \"\",\n    \"monthly\": {\n      \"monthDay\": 0,\n      \"weekDayOfMonth\": {\n        \"dayOfWeek\": \"\",\n        \"dayOffset\": 0,\n        \"weekOrdinal\": 0\n      }\n    },\n    \"nextExecuteTime\": \"\",\n    \"startTime\": \"\",\n    \"timeOfDay\": {\n      \"hours\": 0,\n      \"minutes\": 0,\n      \"nanos\": 0,\n      \"seconds\": 0\n    },\n    \"timeZone\": {\n      \"id\": \"\",\n      \"version\": \"\"\n    },\n    \"weekly\": {\n      \"dayOfWeek\": \"\"\n    }\n  },\n  \"rollout\": {\n    \"disruptionBudget\": {\n      \"fixed\": 0,\n      \"percent\": 0\n    },\n    \"mode\": \"\"\n  },\n  \"state\": \"\",\n  \"updateTime\": \"\"\n}"

encode <- "json"

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

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

url = URI("{{baseUrl}}/v1beta/: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  \"createTime\": \"\",\n  \"description\": \"\",\n  \"duration\": \"\",\n  \"instanceFilter\": {\n    \"all\": false,\n    \"groupLabels\": [\n      {\n        \"labels\": {}\n      }\n    ],\n    \"instanceNamePrefixes\": [],\n    \"instances\": [],\n    \"zones\": []\n  },\n  \"lastExecuteTime\": \"\",\n  \"name\": \"\",\n  \"oneTimeSchedule\": {\n    \"executeTime\": \"\"\n  },\n  \"patchConfig\": {\n    \"apt\": {\n      \"excludes\": [],\n      \"exclusivePackages\": [],\n      \"type\": \"\"\n    },\n    \"goo\": {},\n    \"migInstancesAllowed\": false,\n    \"postStep\": {\n      \"linuxExecStepConfig\": {\n        \"allowedSuccessCodes\": [],\n        \"gcsObject\": {\n          \"bucket\": \"\",\n          \"generationNumber\": \"\",\n          \"object\": \"\"\n        },\n        \"interpreter\": \"\",\n        \"localPath\": \"\"\n      },\n      \"windowsExecStepConfig\": {}\n    },\n    \"preStep\": {},\n    \"rebootConfig\": \"\",\n    \"windowsUpdate\": {\n      \"classifications\": [],\n      \"excludes\": [],\n      \"exclusivePatches\": []\n    },\n    \"yum\": {\n      \"excludes\": [],\n      \"exclusivePackages\": [],\n      \"minimal\": false,\n      \"security\": false\n    },\n    \"zypper\": {\n      \"categories\": [],\n      \"excludes\": [],\n      \"exclusivePatches\": [],\n      \"severities\": [],\n      \"withOptional\": false,\n      \"withUpdate\": false\n    }\n  },\n  \"recurringSchedule\": {\n    \"endTime\": \"\",\n    \"frequency\": \"\",\n    \"lastExecuteTime\": \"\",\n    \"monthly\": {\n      \"monthDay\": 0,\n      \"weekDayOfMonth\": {\n        \"dayOfWeek\": \"\",\n        \"dayOffset\": 0,\n        \"weekOrdinal\": 0\n      }\n    },\n    \"nextExecuteTime\": \"\",\n    \"startTime\": \"\",\n    \"timeOfDay\": {\n      \"hours\": 0,\n      \"minutes\": 0,\n      \"nanos\": 0,\n      \"seconds\": 0\n    },\n    \"timeZone\": {\n      \"id\": \"\",\n      \"version\": \"\"\n    },\n    \"weekly\": {\n      \"dayOfWeek\": \"\"\n    }\n  },\n  \"rollout\": {\n    \"disruptionBudget\": {\n      \"fixed\": 0,\n      \"percent\": 0\n    },\n    \"mode\": \"\"\n  },\n  \"state\": \"\",\n  \"updateTime\": \"\"\n}"

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

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

response = conn.patch('/baseUrl/v1beta/:name') do |req|
  req.body = "{\n  \"createTime\": \"\",\n  \"description\": \"\",\n  \"duration\": \"\",\n  \"instanceFilter\": {\n    \"all\": false,\n    \"groupLabels\": [\n      {\n        \"labels\": {}\n      }\n    ],\n    \"instanceNamePrefixes\": [],\n    \"instances\": [],\n    \"zones\": []\n  },\n  \"lastExecuteTime\": \"\",\n  \"name\": \"\",\n  \"oneTimeSchedule\": {\n    \"executeTime\": \"\"\n  },\n  \"patchConfig\": {\n    \"apt\": {\n      \"excludes\": [],\n      \"exclusivePackages\": [],\n      \"type\": \"\"\n    },\n    \"goo\": {},\n    \"migInstancesAllowed\": false,\n    \"postStep\": {\n      \"linuxExecStepConfig\": {\n        \"allowedSuccessCodes\": [],\n        \"gcsObject\": {\n          \"bucket\": \"\",\n          \"generationNumber\": \"\",\n          \"object\": \"\"\n        },\n        \"interpreter\": \"\",\n        \"localPath\": \"\"\n      },\n      \"windowsExecStepConfig\": {}\n    },\n    \"preStep\": {},\n    \"rebootConfig\": \"\",\n    \"windowsUpdate\": {\n      \"classifications\": [],\n      \"excludes\": [],\n      \"exclusivePatches\": []\n    },\n    \"yum\": {\n      \"excludes\": [],\n      \"exclusivePackages\": [],\n      \"minimal\": false,\n      \"security\": false\n    },\n    \"zypper\": {\n      \"categories\": [],\n      \"excludes\": [],\n      \"exclusivePatches\": [],\n      \"severities\": [],\n      \"withOptional\": false,\n      \"withUpdate\": false\n    }\n  },\n  \"recurringSchedule\": {\n    \"endTime\": \"\",\n    \"frequency\": \"\",\n    \"lastExecuteTime\": \"\",\n    \"monthly\": {\n      \"monthDay\": 0,\n      \"weekDayOfMonth\": {\n        \"dayOfWeek\": \"\",\n        \"dayOffset\": 0,\n        \"weekOrdinal\": 0\n      }\n    },\n    \"nextExecuteTime\": \"\",\n    \"startTime\": \"\",\n    \"timeOfDay\": {\n      \"hours\": 0,\n      \"minutes\": 0,\n      \"nanos\": 0,\n      \"seconds\": 0\n    },\n    \"timeZone\": {\n      \"id\": \"\",\n      \"version\": \"\"\n    },\n    \"weekly\": {\n      \"dayOfWeek\": \"\"\n    }\n  },\n  \"rollout\": {\n    \"disruptionBudget\": {\n      \"fixed\": 0,\n      \"percent\": 0\n    },\n    \"mode\": \"\"\n  },\n  \"state\": \"\",\n  \"updateTime\": \"\"\n}"
end

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

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

    let payload = json!({
        "createTime": "",
        "description": "",
        "duration": "",
        "instanceFilter": json!({
            "all": false,
            "groupLabels": (json!({"labels": json!({})})),
            "instanceNamePrefixes": (),
            "instances": (),
            "zones": ()
        }),
        "lastExecuteTime": "",
        "name": "",
        "oneTimeSchedule": json!({"executeTime": ""}),
        "patchConfig": json!({
            "apt": json!({
                "excludes": (),
                "exclusivePackages": (),
                "type": ""
            }),
            "goo": json!({}),
            "migInstancesAllowed": false,
            "postStep": json!({
                "linuxExecStepConfig": json!({
                    "allowedSuccessCodes": (),
                    "gcsObject": json!({
                        "bucket": "",
                        "generationNumber": "",
                        "object": ""
                    }),
                    "interpreter": "",
                    "localPath": ""
                }),
                "windowsExecStepConfig": json!({})
            }),
            "preStep": json!({}),
            "rebootConfig": "",
            "windowsUpdate": json!({
                "classifications": (),
                "excludes": (),
                "exclusivePatches": ()
            }),
            "yum": json!({
                "excludes": (),
                "exclusivePackages": (),
                "minimal": false,
                "security": false
            }),
            "zypper": json!({
                "categories": (),
                "excludes": (),
                "exclusivePatches": (),
                "severities": (),
                "withOptional": false,
                "withUpdate": false
            })
        }),
        "recurringSchedule": json!({
            "endTime": "",
            "frequency": "",
            "lastExecuteTime": "",
            "monthly": json!({
                "monthDay": 0,
                "weekDayOfMonth": json!({
                    "dayOfWeek": "",
                    "dayOffset": 0,
                    "weekOrdinal": 0
                })
            }),
            "nextExecuteTime": "",
            "startTime": "",
            "timeOfDay": json!({
                "hours": 0,
                "minutes": 0,
                "nanos": 0,
                "seconds": 0
            }),
            "timeZone": json!({
                "id": "",
                "version": ""
            }),
            "weekly": json!({"dayOfWeek": ""})
        }),
        "rollout": json!({
            "disruptionBudget": json!({
                "fixed": 0,
                "percent": 0
            }),
            "mode": ""
        }),
        "state": "",
        "updateTime": ""
    });

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

    let client = reqwest::Client::new();
    let response = client.request(reqwest::Method::from_str("PATCH").unwrap(), url)
        .headers(headers)
        .json(&payload)
        .send()
        .await;

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

    dbg!(results);
}
curl --request PATCH \
  --url {{baseUrl}}/v1beta/:name \
  --header 'content-type: application/json' \
  --data '{
  "createTime": "",
  "description": "",
  "duration": "",
  "instanceFilter": {
    "all": false,
    "groupLabels": [
      {
        "labels": {}
      }
    ],
    "instanceNamePrefixes": [],
    "instances": [],
    "zones": []
  },
  "lastExecuteTime": "",
  "name": "",
  "oneTimeSchedule": {
    "executeTime": ""
  },
  "patchConfig": {
    "apt": {
      "excludes": [],
      "exclusivePackages": [],
      "type": ""
    },
    "goo": {},
    "migInstancesAllowed": false,
    "postStep": {
      "linuxExecStepConfig": {
        "allowedSuccessCodes": [],
        "gcsObject": {
          "bucket": "",
          "generationNumber": "",
          "object": ""
        },
        "interpreter": "",
        "localPath": ""
      },
      "windowsExecStepConfig": {}
    },
    "preStep": {},
    "rebootConfig": "",
    "windowsUpdate": {
      "classifications": [],
      "excludes": [],
      "exclusivePatches": []
    },
    "yum": {
      "excludes": [],
      "exclusivePackages": [],
      "minimal": false,
      "security": false
    },
    "zypper": {
      "categories": [],
      "excludes": [],
      "exclusivePatches": [],
      "severities": [],
      "withOptional": false,
      "withUpdate": false
    }
  },
  "recurringSchedule": {
    "endTime": "",
    "frequency": "",
    "lastExecuteTime": "",
    "monthly": {
      "monthDay": 0,
      "weekDayOfMonth": {
        "dayOfWeek": "",
        "dayOffset": 0,
        "weekOrdinal": 0
      }
    },
    "nextExecuteTime": "",
    "startTime": "",
    "timeOfDay": {
      "hours": 0,
      "minutes": 0,
      "nanos": 0,
      "seconds": 0
    },
    "timeZone": {
      "id": "",
      "version": ""
    },
    "weekly": {
      "dayOfWeek": ""
    }
  },
  "rollout": {
    "disruptionBudget": {
      "fixed": 0,
      "percent": 0
    },
    "mode": ""
  },
  "state": "",
  "updateTime": ""
}'
echo '{
  "createTime": "",
  "description": "",
  "duration": "",
  "instanceFilter": {
    "all": false,
    "groupLabels": [
      {
        "labels": {}
      }
    ],
    "instanceNamePrefixes": [],
    "instances": [],
    "zones": []
  },
  "lastExecuteTime": "",
  "name": "",
  "oneTimeSchedule": {
    "executeTime": ""
  },
  "patchConfig": {
    "apt": {
      "excludes": [],
      "exclusivePackages": [],
      "type": ""
    },
    "goo": {},
    "migInstancesAllowed": false,
    "postStep": {
      "linuxExecStepConfig": {
        "allowedSuccessCodes": [],
        "gcsObject": {
          "bucket": "",
          "generationNumber": "",
          "object": ""
        },
        "interpreter": "",
        "localPath": ""
      },
      "windowsExecStepConfig": {}
    },
    "preStep": {},
    "rebootConfig": "",
    "windowsUpdate": {
      "classifications": [],
      "excludes": [],
      "exclusivePatches": []
    },
    "yum": {
      "excludes": [],
      "exclusivePackages": [],
      "minimal": false,
      "security": false
    },
    "zypper": {
      "categories": [],
      "excludes": [],
      "exclusivePatches": [],
      "severities": [],
      "withOptional": false,
      "withUpdate": false
    }
  },
  "recurringSchedule": {
    "endTime": "",
    "frequency": "",
    "lastExecuteTime": "",
    "monthly": {
      "monthDay": 0,
      "weekDayOfMonth": {
        "dayOfWeek": "",
        "dayOffset": 0,
        "weekOrdinal": 0
      }
    },
    "nextExecuteTime": "",
    "startTime": "",
    "timeOfDay": {
      "hours": 0,
      "minutes": 0,
      "nanos": 0,
      "seconds": 0
    },
    "timeZone": {
      "id": "",
      "version": ""
    },
    "weekly": {
      "dayOfWeek": ""
    }
  },
  "rollout": {
    "disruptionBudget": {
      "fixed": 0,
      "percent": 0
    },
    "mode": ""
  },
  "state": "",
  "updateTime": ""
}' |  \
  http PATCH {{baseUrl}}/v1beta/:name \
  content-type:application/json
wget --quiet \
  --method PATCH \
  --header 'content-type: application/json' \
  --body-data '{\n  "createTime": "",\n  "description": "",\n  "duration": "",\n  "instanceFilter": {\n    "all": false,\n    "groupLabels": [\n      {\n        "labels": {}\n      }\n    ],\n    "instanceNamePrefixes": [],\n    "instances": [],\n    "zones": []\n  },\n  "lastExecuteTime": "",\n  "name": "",\n  "oneTimeSchedule": {\n    "executeTime": ""\n  },\n  "patchConfig": {\n    "apt": {\n      "excludes": [],\n      "exclusivePackages": [],\n      "type": ""\n    },\n    "goo": {},\n    "migInstancesAllowed": false,\n    "postStep": {\n      "linuxExecStepConfig": {\n        "allowedSuccessCodes": [],\n        "gcsObject": {\n          "bucket": "",\n          "generationNumber": "",\n          "object": ""\n        },\n        "interpreter": "",\n        "localPath": ""\n      },\n      "windowsExecStepConfig": {}\n    },\n    "preStep": {},\n    "rebootConfig": "",\n    "windowsUpdate": {\n      "classifications": [],\n      "excludes": [],\n      "exclusivePatches": []\n    },\n    "yum": {\n      "excludes": [],\n      "exclusivePackages": [],\n      "minimal": false,\n      "security": false\n    },\n    "zypper": {\n      "categories": [],\n      "excludes": [],\n      "exclusivePatches": [],\n      "severities": [],\n      "withOptional": false,\n      "withUpdate": false\n    }\n  },\n  "recurringSchedule": {\n    "endTime": "",\n    "frequency": "",\n    "lastExecuteTime": "",\n    "monthly": {\n      "monthDay": 0,\n      "weekDayOfMonth": {\n        "dayOfWeek": "",\n        "dayOffset": 0,\n        "weekOrdinal": 0\n      }\n    },\n    "nextExecuteTime": "",\n    "startTime": "",\n    "timeOfDay": {\n      "hours": 0,\n      "minutes": 0,\n      "nanos": 0,\n      "seconds": 0\n    },\n    "timeZone": {\n      "id": "",\n      "version": ""\n    },\n    "weekly": {\n      "dayOfWeek": ""\n    }\n  },\n  "rollout": {\n    "disruptionBudget": {\n      "fixed": 0,\n      "percent": 0\n    },\n    "mode": ""\n  },\n  "state": "",\n  "updateTime": ""\n}' \
  --output-document \
  - {{baseUrl}}/v1beta/:name
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "createTime": "",
  "description": "",
  "duration": "",
  "instanceFilter": [
    "all": false,
    "groupLabels": [["labels": []]],
    "instanceNamePrefixes": [],
    "instances": [],
    "zones": []
  ],
  "lastExecuteTime": "",
  "name": "",
  "oneTimeSchedule": ["executeTime": ""],
  "patchConfig": [
    "apt": [
      "excludes": [],
      "exclusivePackages": [],
      "type": ""
    ],
    "goo": [],
    "migInstancesAllowed": false,
    "postStep": [
      "linuxExecStepConfig": [
        "allowedSuccessCodes": [],
        "gcsObject": [
          "bucket": "",
          "generationNumber": "",
          "object": ""
        ],
        "interpreter": "",
        "localPath": ""
      ],
      "windowsExecStepConfig": []
    ],
    "preStep": [],
    "rebootConfig": "",
    "windowsUpdate": [
      "classifications": [],
      "excludes": [],
      "exclusivePatches": []
    ],
    "yum": [
      "excludes": [],
      "exclusivePackages": [],
      "minimal": false,
      "security": false
    ],
    "zypper": [
      "categories": [],
      "excludes": [],
      "exclusivePatches": [],
      "severities": [],
      "withOptional": false,
      "withUpdate": false
    ]
  ],
  "recurringSchedule": [
    "endTime": "",
    "frequency": "",
    "lastExecuteTime": "",
    "monthly": [
      "monthDay": 0,
      "weekDayOfMonth": [
        "dayOfWeek": "",
        "dayOffset": 0,
        "weekOrdinal": 0
      ]
    ],
    "nextExecuteTime": "",
    "startTime": "",
    "timeOfDay": [
      "hours": 0,
      "minutes": 0,
      "nanos": 0,
      "seconds": 0
    ],
    "timeZone": [
      "id": "",
      "version": ""
    ],
    "weekly": ["dayOfWeek": ""]
  ],
  "rollout": [
    "disruptionBudget": [
      "fixed": 0,
      "percent": 0
    ],
    "mode": ""
  ],
  "state": "",
  "updateTime": ""
] as [String : Any]

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

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/v1beta/: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()
POST osconfig.projects.patchDeployments.pause
{{baseUrl}}/v1beta/:name:pause
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}}/v1beta/:name:pause");

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

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

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

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

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

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

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

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

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

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

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

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

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

url = "{{baseUrl}}/v1beta/:name:pause"

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

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

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

url <- "{{baseUrl}}/v1beta/:name:pause"

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}}/v1beta/:name:pause")

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

    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}}/v1beta/:name:pause \
  --header 'content-type: application/json' \
  --data '{}'
echo '{}' |  \
  http POST {{baseUrl}}/v1beta/:name:pause \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{}' \
  --output-document \
  - {{baseUrl}}/v1beta/:name:pause
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}}/v1beta/:name:pause")! 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 osconfig.projects.patchDeployments.resume
{{baseUrl}}/v1beta/:name:resume
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}}/v1beta/:name:resume");

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

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

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

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

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

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

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

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

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

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

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

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

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

url = "{{baseUrl}}/v1beta/:name:resume"

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

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

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

url <- "{{baseUrl}}/v1beta/:name:resume"

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}}/v1beta/:name:resume")

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

    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}}/v1beta/:name:resume \
  --header 'content-type: application/json' \
  --data '{}'
echo '{}' |  \
  http POST {{baseUrl}}/v1beta/:name:resume \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{}' \
  --output-document \
  - {{baseUrl}}/v1beta/:name:resume
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}}/v1beta/:name:resume")! 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 osconfig.projects.patchJobs.cancel
{{baseUrl}}/v1beta/:name:cancel
QUERY PARAMS

name
BODY json

{}
Examples
REQUEST

CURL *hnd = curl_easy_init();

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

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

curl_easy_setopt(hnd, CURLOPT_POSTFIELDS, "{}");

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

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

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

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

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

func main() {

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

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

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

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

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

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

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

}
POST /baseUrl/v1beta/:name:cancel HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 2

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

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/v1beta/:name:cancel"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{}"))
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/v1beta/:name:cancel")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

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

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

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

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

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

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

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

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/v1beta/:name:cancel',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{}'
};

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

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{}")
val request = Request.Builder()
  .url("{{baseUrl}}/v1beta/:name:cancel")
  .post(body)
  .addHeader("content-type", "application/json")
  .build()

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

const options = {
  method: 'POST',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/v1beta/:name:cancel',
  headers: {
    'content-type': 'application/json'
  }
};

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

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

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

req.write(JSON.stringify({}));
req.end();
const request = require('request');

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

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

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

const req = unirest('POST', '{{baseUrl}}/v1beta/:name:cancel');

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

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

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

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

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

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

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

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

NSDictionary *headers = @{ @"content-type": @"application/json" };
NSDictionary *parameters = @{  };

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

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/v1beta/:name:cancel"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"POST"];
[request setAllHTTPHeaderFields:headers];
[request setHTTPBody:postData];

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

let uri = Uri.of_string "{{baseUrl}}/v1beta/:name:cancel" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/v1beta/:name:cancel",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "POST",
  CURLOPT_POSTFIELDS => json_encode([
    
  ]),
  CURLOPT_HTTPHEADER => [
    "content-type: application/json"
  ],
]);

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

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('POST', '{{baseUrl}}/v1beta/:name:cancel', [
  'body' => '{}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

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

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

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

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  
]));
$request->setRequestUrl('{{baseUrl}}/v1beta/:name:cancel');
$request->setRequestMethod('POST');
$request->setBody($body);

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

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

echo $response->getBody();
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/v1beta/:name:cancel' -Method POST -Headers $headers -ContentType 'application/json' -Body '{}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/v1beta/:name:cancel' -Method POST -Headers $headers -ContentType 'application/json' -Body '{}'
import http.client

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

payload = "{}"

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

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

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

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

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

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

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

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

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

payload <- "{}"

encode <- "json"

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

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

url = URI("{{baseUrl}}/v1beta/:name:cancel")

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

request = Net::HTTP::Post.new(url)
request["content-type"] = 'application/json'
request.body = "{}"

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

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

response = conn.post('/baseUrl/v1beta/:name:cancel') do |req|
  req.body = "{}"
end

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

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

    let payload = json!({});

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

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

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

    dbg!(results);
}
curl --request POST \
  --url {{baseUrl}}/v1beta/:name:cancel \
  --header 'content-type: application/json' \
  --data '{}'
echo '{}' |  \
  http POST {{baseUrl}}/v1beta/:name:cancel \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{}' \
  --output-document \
  - {{baseUrl}}/v1beta/:name:cancel
import Foundation

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

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

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

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

dataTask.resume()
POST osconfig.projects.patchJobs.execute
{{baseUrl}}/v1beta/:parent/patchJobs:execute
QUERY PARAMS

parent
BODY json

{
  "description": "",
  "displayName": "",
  "dryRun": false,
  "duration": "",
  "instanceFilter": {
    "all": false,
    "groupLabels": [
      {
        "labels": {}
      }
    ],
    "instanceNamePrefixes": [],
    "instances": [],
    "zones": []
  },
  "patchConfig": {
    "apt": {
      "excludes": [],
      "exclusivePackages": [],
      "type": ""
    },
    "goo": {},
    "migInstancesAllowed": false,
    "postStep": {
      "linuxExecStepConfig": {
        "allowedSuccessCodes": [],
        "gcsObject": {
          "bucket": "",
          "generationNumber": "",
          "object": ""
        },
        "interpreter": "",
        "localPath": ""
      },
      "windowsExecStepConfig": {}
    },
    "preStep": {},
    "rebootConfig": "",
    "windowsUpdate": {
      "classifications": [],
      "excludes": [],
      "exclusivePatches": []
    },
    "yum": {
      "excludes": [],
      "exclusivePackages": [],
      "minimal": false,
      "security": false
    },
    "zypper": {
      "categories": [],
      "excludes": [],
      "exclusivePatches": [],
      "severities": [],
      "withOptional": false,
      "withUpdate": false
    }
  },
  "rollout": {
    "disruptionBudget": {
      "fixed": 0,
      "percent": 0
    },
    "mode": ""
  }
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/v1beta/:parent/patchJobs:execute");

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  \"description\": \"\",\n  \"displayName\": \"\",\n  \"dryRun\": false,\n  \"duration\": \"\",\n  \"instanceFilter\": {\n    \"all\": false,\n    \"groupLabels\": [\n      {\n        \"labels\": {}\n      }\n    ],\n    \"instanceNamePrefixes\": [],\n    \"instances\": [],\n    \"zones\": []\n  },\n  \"patchConfig\": {\n    \"apt\": {\n      \"excludes\": [],\n      \"exclusivePackages\": [],\n      \"type\": \"\"\n    },\n    \"goo\": {},\n    \"migInstancesAllowed\": false,\n    \"postStep\": {\n      \"linuxExecStepConfig\": {\n        \"allowedSuccessCodes\": [],\n        \"gcsObject\": {\n          \"bucket\": \"\",\n          \"generationNumber\": \"\",\n          \"object\": \"\"\n        },\n        \"interpreter\": \"\",\n        \"localPath\": \"\"\n      },\n      \"windowsExecStepConfig\": {}\n    },\n    \"preStep\": {},\n    \"rebootConfig\": \"\",\n    \"windowsUpdate\": {\n      \"classifications\": [],\n      \"excludes\": [],\n      \"exclusivePatches\": []\n    },\n    \"yum\": {\n      \"excludes\": [],\n      \"exclusivePackages\": [],\n      \"minimal\": false,\n      \"security\": false\n    },\n    \"zypper\": {\n      \"categories\": [],\n      \"excludes\": [],\n      \"exclusivePatches\": [],\n      \"severities\": [],\n      \"withOptional\": false,\n      \"withUpdate\": false\n    }\n  },\n  \"rollout\": {\n    \"disruptionBudget\": {\n      \"fixed\": 0,\n      \"percent\": 0\n    },\n    \"mode\": \"\"\n  }\n}");

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

(client/post "{{baseUrl}}/v1beta/:parent/patchJobs:execute" {:content-type :json
                                                                             :form-params {:description ""
                                                                                           :displayName ""
                                                                                           :dryRun false
                                                                                           :duration ""
                                                                                           :instanceFilter {:all false
                                                                                                            :groupLabels [{:labels {}}]
                                                                                                            :instanceNamePrefixes []
                                                                                                            :instances []
                                                                                                            :zones []}
                                                                                           :patchConfig {:apt {:excludes []
                                                                                                               :exclusivePackages []
                                                                                                               :type ""}
                                                                                                         :goo {}
                                                                                                         :migInstancesAllowed false
                                                                                                         :postStep {:linuxExecStepConfig {:allowedSuccessCodes []
                                                                                                                                          :gcsObject {:bucket ""
                                                                                                                                                      :generationNumber ""
                                                                                                                                                      :object ""}
                                                                                                                                          :interpreter ""
                                                                                                                                          :localPath ""}
                                                                                                                    :windowsExecStepConfig {}}
                                                                                                         :preStep {}
                                                                                                         :rebootConfig ""
                                                                                                         :windowsUpdate {:classifications []
                                                                                                                         :excludes []
                                                                                                                         :exclusivePatches []}
                                                                                                         :yum {:excludes []
                                                                                                               :exclusivePackages []
                                                                                                               :minimal false
                                                                                                               :security false}
                                                                                                         :zypper {:categories []
                                                                                                                  :excludes []
                                                                                                                  :exclusivePatches []
                                                                                                                  :severities []
                                                                                                                  :withOptional false
                                                                                                                  :withUpdate false}}
                                                                                           :rollout {:disruptionBudget {:fixed 0
                                                                                                                        :percent 0}
                                                                                                     :mode ""}}})
require "http/client"

url = "{{baseUrl}}/v1beta/:parent/patchJobs:execute"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"description\": \"\",\n  \"displayName\": \"\",\n  \"dryRun\": false,\n  \"duration\": \"\",\n  \"instanceFilter\": {\n    \"all\": false,\n    \"groupLabels\": [\n      {\n        \"labels\": {}\n      }\n    ],\n    \"instanceNamePrefixes\": [],\n    \"instances\": [],\n    \"zones\": []\n  },\n  \"patchConfig\": {\n    \"apt\": {\n      \"excludes\": [],\n      \"exclusivePackages\": [],\n      \"type\": \"\"\n    },\n    \"goo\": {},\n    \"migInstancesAllowed\": false,\n    \"postStep\": {\n      \"linuxExecStepConfig\": {\n        \"allowedSuccessCodes\": [],\n        \"gcsObject\": {\n          \"bucket\": \"\",\n          \"generationNumber\": \"\",\n          \"object\": \"\"\n        },\n        \"interpreter\": \"\",\n        \"localPath\": \"\"\n      },\n      \"windowsExecStepConfig\": {}\n    },\n    \"preStep\": {},\n    \"rebootConfig\": \"\",\n    \"windowsUpdate\": {\n      \"classifications\": [],\n      \"excludes\": [],\n      \"exclusivePatches\": []\n    },\n    \"yum\": {\n      \"excludes\": [],\n      \"exclusivePackages\": [],\n      \"minimal\": false,\n      \"security\": false\n    },\n    \"zypper\": {\n      \"categories\": [],\n      \"excludes\": [],\n      \"exclusivePatches\": [],\n      \"severities\": [],\n      \"withOptional\": false,\n      \"withUpdate\": false\n    }\n  },\n  \"rollout\": {\n    \"disruptionBudget\": {\n      \"fixed\": 0,\n      \"percent\": 0\n    },\n    \"mode\": \"\"\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}}/v1beta/:parent/patchJobs:execute"),
    Content = new StringContent("{\n  \"description\": \"\",\n  \"displayName\": \"\",\n  \"dryRun\": false,\n  \"duration\": \"\",\n  \"instanceFilter\": {\n    \"all\": false,\n    \"groupLabels\": [\n      {\n        \"labels\": {}\n      }\n    ],\n    \"instanceNamePrefixes\": [],\n    \"instances\": [],\n    \"zones\": []\n  },\n  \"patchConfig\": {\n    \"apt\": {\n      \"excludes\": [],\n      \"exclusivePackages\": [],\n      \"type\": \"\"\n    },\n    \"goo\": {},\n    \"migInstancesAllowed\": false,\n    \"postStep\": {\n      \"linuxExecStepConfig\": {\n        \"allowedSuccessCodes\": [],\n        \"gcsObject\": {\n          \"bucket\": \"\",\n          \"generationNumber\": \"\",\n          \"object\": \"\"\n        },\n        \"interpreter\": \"\",\n        \"localPath\": \"\"\n      },\n      \"windowsExecStepConfig\": {}\n    },\n    \"preStep\": {},\n    \"rebootConfig\": \"\",\n    \"windowsUpdate\": {\n      \"classifications\": [],\n      \"excludes\": [],\n      \"exclusivePatches\": []\n    },\n    \"yum\": {\n      \"excludes\": [],\n      \"exclusivePackages\": [],\n      \"minimal\": false,\n      \"security\": false\n    },\n    \"zypper\": {\n      \"categories\": [],\n      \"excludes\": [],\n      \"exclusivePatches\": [],\n      \"severities\": [],\n      \"withOptional\": false,\n      \"withUpdate\": false\n    }\n  },\n  \"rollout\": {\n    \"disruptionBudget\": {\n      \"fixed\": 0,\n      \"percent\": 0\n    },\n    \"mode\": \"\"\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}}/v1beta/:parent/patchJobs:execute");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"description\": \"\",\n  \"displayName\": \"\",\n  \"dryRun\": false,\n  \"duration\": \"\",\n  \"instanceFilter\": {\n    \"all\": false,\n    \"groupLabels\": [\n      {\n        \"labels\": {}\n      }\n    ],\n    \"instanceNamePrefixes\": [],\n    \"instances\": [],\n    \"zones\": []\n  },\n  \"patchConfig\": {\n    \"apt\": {\n      \"excludes\": [],\n      \"exclusivePackages\": [],\n      \"type\": \"\"\n    },\n    \"goo\": {},\n    \"migInstancesAllowed\": false,\n    \"postStep\": {\n      \"linuxExecStepConfig\": {\n        \"allowedSuccessCodes\": [],\n        \"gcsObject\": {\n          \"bucket\": \"\",\n          \"generationNumber\": \"\",\n          \"object\": \"\"\n        },\n        \"interpreter\": \"\",\n        \"localPath\": \"\"\n      },\n      \"windowsExecStepConfig\": {}\n    },\n    \"preStep\": {},\n    \"rebootConfig\": \"\",\n    \"windowsUpdate\": {\n      \"classifications\": [],\n      \"excludes\": [],\n      \"exclusivePatches\": []\n    },\n    \"yum\": {\n      \"excludes\": [],\n      \"exclusivePackages\": [],\n      \"minimal\": false,\n      \"security\": false\n    },\n    \"zypper\": {\n      \"categories\": [],\n      \"excludes\": [],\n      \"exclusivePatches\": [],\n      \"severities\": [],\n      \"withOptional\": false,\n      \"withUpdate\": false\n    }\n  },\n  \"rollout\": {\n    \"disruptionBudget\": {\n      \"fixed\": 0,\n      \"percent\": 0\n    },\n    \"mode\": \"\"\n  }\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

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

func main() {

	url := "{{baseUrl}}/v1beta/:parent/patchJobs:execute"

	payload := strings.NewReader("{\n  \"description\": \"\",\n  \"displayName\": \"\",\n  \"dryRun\": false,\n  \"duration\": \"\",\n  \"instanceFilter\": {\n    \"all\": false,\n    \"groupLabels\": [\n      {\n        \"labels\": {}\n      }\n    ],\n    \"instanceNamePrefixes\": [],\n    \"instances\": [],\n    \"zones\": []\n  },\n  \"patchConfig\": {\n    \"apt\": {\n      \"excludes\": [],\n      \"exclusivePackages\": [],\n      \"type\": \"\"\n    },\n    \"goo\": {},\n    \"migInstancesAllowed\": false,\n    \"postStep\": {\n      \"linuxExecStepConfig\": {\n        \"allowedSuccessCodes\": [],\n        \"gcsObject\": {\n          \"bucket\": \"\",\n          \"generationNumber\": \"\",\n          \"object\": \"\"\n        },\n        \"interpreter\": \"\",\n        \"localPath\": \"\"\n      },\n      \"windowsExecStepConfig\": {}\n    },\n    \"preStep\": {},\n    \"rebootConfig\": \"\",\n    \"windowsUpdate\": {\n      \"classifications\": [],\n      \"excludes\": [],\n      \"exclusivePatches\": []\n    },\n    \"yum\": {\n      \"excludes\": [],\n      \"exclusivePackages\": [],\n      \"minimal\": false,\n      \"security\": false\n    },\n    \"zypper\": {\n      \"categories\": [],\n      \"excludes\": [],\n      \"exclusivePatches\": [],\n      \"severities\": [],\n      \"withOptional\": false,\n      \"withUpdate\": false\n    }\n  },\n  \"rollout\": {\n    \"disruptionBudget\": {\n      \"fixed\": 0,\n      \"percent\": 0\n    },\n    \"mode\": \"\"\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/v1beta/:parent/patchJobs:execute HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 1279

{
  "description": "",
  "displayName": "",
  "dryRun": false,
  "duration": "",
  "instanceFilter": {
    "all": false,
    "groupLabels": [
      {
        "labels": {}
      }
    ],
    "instanceNamePrefixes": [],
    "instances": [],
    "zones": []
  },
  "patchConfig": {
    "apt": {
      "excludes": [],
      "exclusivePackages": [],
      "type": ""
    },
    "goo": {},
    "migInstancesAllowed": false,
    "postStep": {
      "linuxExecStepConfig": {
        "allowedSuccessCodes": [],
        "gcsObject": {
          "bucket": "",
          "generationNumber": "",
          "object": ""
        },
        "interpreter": "",
        "localPath": ""
      },
      "windowsExecStepConfig": {}
    },
    "preStep": {},
    "rebootConfig": "",
    "windowsUpdate": {
      "classifications": [],
      "excludes": [],
      "exclusivePatches": []
    },
    "yum": {
      "excludes": [],
      "exclusivePackages": [],
      "minimal": false,
      "security": false
    },
    "zypper": {
      "categories": [],
      "excludes": [],
      "exclusivePatches": [],
      "severities": [],
      "withOptional": false,
      "withUpdate": false
    }
  },
  "rollout": {
    "disruptionBudget": {
      "fixed": 0,
      "percent": 0
    },
    "mode": ""
  }
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/v1beta/:parent/patchJobs:execute")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"description\": \"\",\n  \"displayName\": \"\",\n  \"dryRun\": false,\n  \"duration\": \"\",\n  \"instanceFilter\": {\n    \"all\": false,\n    \"groupLabels\": [\n      {\n        \"labels\": {}\n      }\n    ],\n    \"instanceNamePrefixes\": [],\n    \"instances\": [],\n    \"zones\": []\n  },\n  \"patchConfig\": {\n    \"apt\": {\n      \"excludes\": [],\n      \"exclusivePackages\": [],\n      \"type\": \"\"\n    },\n    \"goo\": {},\n    \"migInstancesAllowed\": false,\n    \"postStep\": {\n      \"linuxExecStepConfig\": {\n        \"allowedSuccessCodes\": [],\n        \"gcsObject\": {\n          \"bucket\": \"\",\n          \"generationNumber\": \"\",\n          \"object\": \"\"\n        },\n        \"interpreter\": \"\",\n        \"localPath\": \"\"\n      },\n      \"windowsExecStepConfig\": {}\n    },\n    \"preStep\": {},\n    \"rebootConfig\": \"\",\n    \"windowsUpdate\": {\n      \"classifications\": [],\n      \"excludes\": [],\n      \"exclusivePatches\": []\n    },\n    \"yum\": {\n      \"excludes\": [],\n      \"exclusivePackages\": [],\n      \"minimal\": false,\n      \"security\": false\n    },\n    \"zypper\": {\n      \"categories\": [],\n      \"excludes\": [],\n      \"exclusivePatches\": [],\n      \"severities\": [],\n      \"withOptional\": false,\n      \"withUpdate\": false\n    }\n  },\n  \"rollout\": {\n    \"disruptionBudget\": {\n      \"fixed\": 0,\n      \"percent\": 0\n    },\n    \"mode\": \"\"\n  }\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/v1beta/:parent/patchJobs:execute"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"description\": \"\",\n  \"displayName\": \"\",\n  \"dryRun\": false,\n  \"duration\": \"\",\n  \"instanceFilter\": {\n    \"all\": false,\n    \"groupLabels\": [\n      {\n        \"labels\": {}\n      }\n    ],\n    \"instanceNamePrefixes\": [],\n    \"instances\": [],\n    \"zones\": []\n  },\n  \"patchConfig\": {\n    \"apt\": {\n      \"excludes\": [],\n      \"exclusivePackages\": [],\n      \"type\": \"\"\n    },\n    \"goo\": {},\n    \"migInstancesAllowed\": false,\n    \"postStep\": {\n      \"linuxExecStepConfig\": {\n        \"allowedSuccessCodes\": [],\n        \"gcsObject\": {\n          \"bucket\": \"\",\n          \"generationNumber\": \"\",\n          \"object\": \"\"\n        },\n        \"interpreter\": \"\",\n        \"localPath\": \"\"\n      },\n      \"windowsExecStepConfig\": {}\n    },\n    \"preStep\": {},\n    \"rebootConfig\": \"\",\n    \"windowsUpdate\": {\n      \"classifications\": [],\n      \"excludes\": [],\n      \"exclusivePatches\": []\n    },\n    \"yum\": {\n      \"excludes\": [],\n      \"exclusivePackages\": [],\n      \"minimal\": false,\n      \"security\": false\n    },\n    \"zypper\": {\n      \"categories\": [],\n      \"excludes\": [],\n      \"exclusivePatches\": [],\n      \"severities\": [],\n      \"withOptional\": false,\n      \"withUpdate\": false\n    }\n  },\n  \"rollout\": {\n    \"disruptionBudget\": {\n      \"fixed\": 0,\n      \"percent\": 0\n    },\n    \"mode\": \"\"\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  \"description\": \"\",\n  \"displayName\": \"\",\n  \"dryRun\": false,\n  \"duration\": \"\",\n  \"instanceFilter\": {\n    \"all\": false,\n    \"groupLabels\": [\n      {\n        \"labels\": {}\n      }\n    ],\n    \"instanceNamePrefixes\": [],\n    \"instances\": [],\n    \"zones\": []\n  },\n  \"patchConfig\": {\n    \"apt\": {\n      \"excludes\": [],\n      \"exclusivePackages\": [],\n      \"type\": \"\"\n    },\n    \"goo\": {},\n    \"migInstancesAllowed\": false,\n    \"postStep\": {\n      \"linuxExecStepConfig\": {\n        \"allowedSuccessCodes\": [],\n        \"gcsObject\": {\n          \"bucket\": \"\",\n          \"generationNumber\": \"\",\n          \"object\": \"\"\n        },\n        \"interpreter\": \"\",\n        \"localPath\": \"\"\n      },\n      \"windowsExecStepConfig\": {}\n    },\n    \"preStep\": {},\n    \"rebootConfig\": \"\",\n    \"windowsUpdate\": {\n      \"classifications\": [],\n      \"excludes\": [],\n      \"exclusivePatches\": []\n    },\n    \"yum\": {\n      \"excludes\": [],\n      \"exclusivePackages\": [],\n      \"minimal\": false,\n      \"security\": false\n    },\n    \"zypper\": {\n      \"categories\": [],\n      \"excludes\": [],\n      \"exclusivePatches\": [],\n      \"severities\": [],\n      \"withOptional\": false,\n      \"withUpdate\": false\n    }\n  },\n  \"rollout\": {\n    \"disruptionBudget\": {\n      \"fixed\": 0,\n      \"percent\": 0\n    },\n    \"mode\": \"\"\n  }\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/v1beta/:parent/patchJobs:execute")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/v1beta/:parent/patchJobs:execute")
  .header("content-type", "application/json")
  .body("{\n  \"description\": \"\",\n  \"displayName\": \"\",\n  \"dryRun\": false,\n  \"duration\": \"\",\n  \"instanceFilter\": {\n    \"all\": false,\n    \"groupLabels\": [\n      {\n        \"labels\": {}\n      }\n    ],\n    \"instanceNamePrefixes\": [],\n    \"instances\": [],\n    \"zones\": []\n  },\n  \"patchConfig\": {\n    \"apt\": {\n      \"excludes\": [],\n      \"exclusivePackages\": [],\n      \"type\": \"\"\n    },\n    \"goo\": {},\n    \"migInstancesAllowed\": false,\n    \"postStep\": {\n      \"linuxExecStepConfig\": {\n        \"allowedSuccessCodes\": [],\n        \"gcsObject\": {\n          \"bucket\": \"\",\n          \"generationNumber\": \"\",\n          \"object\": \"\"\n        },\n        \"interpreter\": \"\",\n        \"localPath\": \"\"\n      },\n      \"windowsExecStepConfig\": {}\n    },\n    \"preStep\": {},\n    \"rebootConfig\": \"\",\n    \"windowsUpdate\": {\n      \"classifications\": [],\n      \"excludes\": [],\n      \"exclusivePatches\": []\n    },\n    \"yum\": {\n      \"excludes\": [],\n      \"exclusivePackages\": [],\n      \"minimal\": false,\n      \"security\": false\n    },\n    \"zypper\": {\n      \"categories\": [],\n      \"excludes\": [],\n      \"exclusivePatches\": [],\n      \"severities\": [],\n      \"withOptional\": false,\n      \"withUpdate\": false\n    }\n  },\n  \"rollout\": {\n    \"disruptionBudget\": {\n      \"fixed\": 0,\n      \"percent\": 0\n    },\n    \"mode\": \"\"\n  }\n}")
  .asString();
const data = JSON.stringify({
  description: '',
  displayName: '',
  dryRun: false,
  duration: '',
  instanceFilter: {
    all: false,
    groupLabels: [
      {
        labels: {}
      }
    ],
    instanceNamePrefixes: [],
    instances: [],
    zones: []
  },
  patchConfig: {
    apt: {
      excludes: [],
      exclusivePackages: [],
      type: ''
    },
    goo: {},
    migInstancesAllowed: false,
    postStep: {
      linuxExecStepConfig: {
        allowedSuccessCodes: [],
        gcsObject: {
          bucket: '',
          generationNumber: '',
          object: ''
        },
        interpreter: '',
        localPath: ''
      },
      windowsExecStepConfig: {}
    },
    preStep: {},
    rebootConfig: '',
    windowsUpdate: {
      classifications: [],
      excludes: [],
      exclusivePatches: []
    },
    yum: {
      excludes: [],
      exclusivePackages: [],
      minimal: false,
      security: false
    },
    zypper: {
      categories: [],
      excludes: [],
      exclusivePatches: [],
      severities: [],
      withOptional: false,
      withUpdate: false
    }
  },
  rollout: {
    disruptionBudget: {
      fixed: 0,
      percent: 0
    },
    mode: ''
  }
});

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

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

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

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

const options = {
  method: 'POST',
  url: '{{baseUrl}}/v1beta/:parent/patchJobs:execute',
  headers: {'content-type': 'application/json'},
  data: {
    description: '',
    displayName: '',
    dryRun: false,
    duration: '',
    instanceFilter: {
      all: false,
      groupLabels: [{labels: {}}],
      instanceNamePrefixes: [],
      instances: [],
      zones: []
    },
    patchConfig: {
      apt: {excludes: [], exclusivePackages: [], type: ''},
      goo: {},
      migInstancesAllowed: false,
      postStep: {
        linuxExecStepConfig: {
          allowedSuccessCodes: [],
          gcsObject: {bucket: '', generationNumber: '', object: ''},
          interpreter: '',
          localPath: ''
        },
        windowsExecStepConfig: {}
      },
      preStep: {},
      rebootConfig: '',
      windowsUpdate: {classifications: [], excludes: [], exclusivePatches: []},
      yum: {excludes: [], exclusivePackages: [], minimal: false, security: false},
      zypper: {
        categories: [],
        excludes: [],
        exclusivePatches: [],
        severities: [],
        withOptional: false,
        withUpdate: false
      }
    },
    rollout: {disruptionBudget: {fixed: 0, percent: 0}, mode: ''}
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/v1beta/:parent/patchJobs:execute';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"description":"","displayName":"","dryRun":false,"duration":"","instanceFilter":{"all":false,"groupLabels":[{"labels":{}}],"instanceNamePrefixes":[],"instances":[],"zones":[]},"patchConfig":{"apt":{"excludes":[],"exclusivePackages":[],"type":""},"goo":{},"migInstancesAllowed":false,"postStep":{"linuxExecStepConfig":{"allowedSuccessCodes":[],"gcsObject":{"bucket":"","generationNumber":"","object":""},"interpreter":"","localPath":""},"windowsExecStepConfig":{}},"preStep":{},"rebootConfig":"","windowsUpdate":{"classifications":[],"excludes":[],"exclusivePatches":[]},"yum":{"excludes":[],"exclusivePackages":[],"minimal":false,"security":false},"zypper":{"categories":[],"excludes":[],"exclusivePatches":[],"severities":[],"withOptional":false,"withUpdate":false}},"rollout":{"disruptionBudget":{"fixed":0,"percent":0},"mode":""}}'
};

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}}/v1beta/:parent/patchJobs:execute',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "description": "",\n  "displayName": "",\n  "dryRun": false,\n  "duration": "",\n  "instanceFilter": {\n    "all": false,\n    "groupLabels": [\n      {\n        "labels": {}\n      }\n    ],\n    "instanceNamePrefixes": [],\n    "instances": [],\n    "zones": []\n  },\n  "patchConfig": {\n    "apt": {\n      "excludes": [],\n      "exclusivePackages": [],\n      "type": ""\n    },\n    "goo": {},\n    "migInstancesAllowed": false,\n    "postStep": {\n      "linuxExecStepConfig": {\n        "allowedSuccessCodes": [],\n        "gcsObject": {\n          "bucket": "",\n          "generationNumber": "",\n          "object": ""\n        },\n        "interpreter": "",\n        "localPath": ""\n      },\n      "windowsExecStepConfig": {}\n    },\n    "preStep": {},\n    "rebootConfig": "",\n    "windowsUpdate": {\n      "classifications": [],\n      "excludes": [],\n      "exclusivePatches": []\n    },\n    "yum": {\n      "excludes": [],\n      "exclusivePackages": [],\n      "minimal": false,\n      "security": false\n    },\n    "zypper": {\n      "categories": [],\n      "excludes": [],\n      "exclusivePatches": [],\n      "severities": [],\n      "withOptional": false,\n      "withUpdate": false\n    }\n  },\n  "rollout": {\n    "disruptionBudget": {\n      "fixed": 0,\n      "percent": 0\n    },\n    "mode": ""\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  \"description\": \"\",\n  \"displayName\": \"\",\n  \"dryRun\": false,\n  \"duration\": \"\",\n  \"instanceFilter\": {\n    \"all\": false,\n    \"groupLabels\": [\n      {\n        \"labels\": {}\n      }\n    ],\n    \"instanceNamePrefixes\": [],\n    \"instances\": [],\n    \"zones\": []\n  },\n  \"patchConfig\": {\n    \"apt\": {\n      \"excludes\": [],\n      \"exclusivePackages\": [],\n      \"type\": \"\"\n    },\n    \"goo\": {},\n    \"migInstancesAllowed\": false,\n    \"postStep\": {\n      \"linuxExecStepConfig\": {\n        \"allowedSuccessCodes\": [],\n        \"gcsObject\": {\n          \"bucket\": \"\",\n          \"generationNumber\": \"\",\n          \"object\": \"\"\n        },\n        \"interpreter\": \"\",\n        \"localPath\": \"\"\n      },\n      \"windowsExecStepConfig\": {}\n    },\n    \"preStep\": {},\n    \"rebootConfig\": \"\",\n    \"windowsUpdate\": {\n      \"classifications\": [],\n      \"excludes\": [],\n      \"exclusivePatches\": []\n    },\n    \"yum\": {\n      \"excludes\": [],\n      \"exclusivePackages\": [],\n      \"minimal\": false,\n      \"security\": false\n    },\n    \"zypper\": {\n      \"categories\": [],\n      \"excludes\": [],\n      \"exclusivePatches\": [],\n      \"severities\": [],\n      \"withOptional\": false,\n      \"withUpdate\": false\n    }\n  },\n  \"rollout\": {\n    \"disruptionBudget\": {\n      \"fixed\": 0,\n      \"percent\": 0\n    },\n    \"mode\": \"\"\n  }\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/v1beta/:parent/patchJobs:execute")
  .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/v1beta/:parent/patchJobs:execute',
  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({
  description: '',
  displayName: '',
  dryRun: false,
  duration: '',
  instanceFilter: {
    all: false,
    groupLabels: [{labels: {}}],
    instanceNamePrefixes: [],
    instances: [],
    zones: []
  },
  patchConfig: {
    apt: {excludes: [], exclusivePackages: [], type: ''},
    goo: {},
    migInstancesAllowed: false,
    postStep: {
      linuxExecStepConfig: {
        allowedSuccessCodes: [],
        gcsObject: {bucket: '', generationNumber: '', object: ''},
        interpreter: '',
        localPath: ''
      },
      windowsExecStepConfig: {}
    },
    preStep: {},
    rebootConfig: '',
    windowsUpdate: {classifications: [], excludes: [], exclusivePatches: []},
    yum: {excludes: [], exclusivePackages: [], minimal: false, security: false},
    zypper: {
      categories: [],
      excludes: [],
      exclusivePatches: [],
      severities: [],
      withOptional: false,
      withUpdate: false
    }
  },
  rollout: {disruptionBudget: {fixed: 0, percent: 0}, mode: ''}
}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/v1beta/:parent/patchJobs:execute',
  headers: {'content-type': 'application/json'},
  body: {
    description: '',
    displayName: '',
    dryRun: false,
    duration: '',
    instanceFilter: {
      all: false,
      groupLabels: [{labels: {}}],
      instanceNamePrefixes: [],
      instances: [],
      zones: []
    },
    patchConfig: {
      apt: {excludes: [], exclusivePackages: [], type: ''},
      goo: {},
      migInstancesAllowed: false,
      postStep: {
        linuxExecStepConfig: {
          allowedSuccessCodes: [],
          gcsObject: {bucket: '', generationNumber: '', object: ''},
          interpreter: '',
          localPath: ''
        },
        windowsExecStepConfig: {}
      },
      preStep: {},
      rebootConfig: '',
      windowsUpdate: {classifications: [], excludes: [], exclusivePatches: []},
      yum: {excludes: [], exclusivePackages: [], minimal: false, security: false},
      zypper: {
        categories: [],
        excludes: [],
        exclusivePatches: [],
        severities: [],
        withOptional: false,
        withUpdate: false
      }
    },
    rollout: {disruptionBudget: {fixed: 0, percent: 0}, mode: ''}
  },
  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}}/v1beta/:parent/patchJobs:execute');

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

req.type('json');
req.send({
  description: '',
  displayName: '',
  dryRun: false,
  duration: '',
  instanceFilter: {
    all: false,
    groupLabels: [
      {
        labels: {}
      }
    ],
    instanceNamePrefixes: [],
    instances: [],
    zones: []
  },
  patchConfig: {
    apt: {
      excludes: [],
      exclusivePackages: [],
      type: ''
    },
    goo: {},
    migInstancesAllowed: false,
    postStep: {
      linuxExecStepConfig: {
        allowedSuccessCodes: [],
        gcsObject: {
          bucket: '',
          generationNumber: '',
          object: ''
        },
        interpreter: '',
        localPath: ''
      },
      windowsExecStepConfig: {}
    },
    preStep: {},
    rebootConfig: '',
    windowsUpdate: {
      classifications: [],
      excludes: [],
      exclusivePatches: []
    },
    yum: {
      excludes: [],
      exclusivePackages: [],
      minimal: false,
      security: false
    },
    zypper: {
      categories: [],
      excludes: [],
      exclusivePatches: [],
      severities: [],
      withOptional: false,
      withUpdate: false
    }
  },
  rollout: {
    disruptionBudget: {
      fixed: 0,
      percent: 0
    },
    mode: ''
  }
});

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}}/v1beta/:parent/patchJobs:execute',
  headers: {'content-type': 'application/json'},
  data: {
    description: '',
    displayName: '',
    dryRun: false,
    duration: '',
    instanceFilter: {
      all: false,
      groupLabels: [{labels: {}}],
      instanceNamePrefixes: [],
      instances: [],
      zones: []
    },
    patchConfig: {
      apt: {excludes: [], exclusivePackages: [], type: ''},
      goo: {},
      migInstancesAllowed: false,
      postStep: {
        linuxExecStepConfig: {
          allowedSuccessCodes: [],
          gcsObject: {bucket: '', generationNumber: '', object: ''},
          interpreter: '',
          localPath: ''
        },
        windowsExecStepConfig: {}
      },
      preStep: {},
      rebootConfig: '',
      windowsUpdate: {classifications: [], excludes: [], exclusivePatches: []},
      yum: {excludes: [], exclusivePackages: [], minimal: false, security: false},
      zypper: {
        categories: [],
        excludes: [],
        exclusivePatches: [],
        severities: [],
        withOptional: false,
        withUpdate: false
      }
    },
    rollout: {disruptionBudget: {fixed: 0, percent: 0}, mode: ''}
  }
};

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

const url = '{{baseUrl}}/v1beta/:parent/patchJobs:execute';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"description":"","displayName":"","dryRun":false,"duration":"","instanceFilter":{"all":false,"groupLabels":[{"labels":{}}],"instanceNamePrefixes":[],"instances":[],"zones":[]},"patchConfig":{"apt":{"excludes":[],"exclusivePackages":[],"type":""},"goo":{},"migInstancesAllowed":false,"postStep":{"linuxExecStepConfig":{"allowedSuccessCodes":[],"gcsObject":{"bucket":"","generationNumber":"","object":""},"interpreter":"","localPath":""},"windowsExecStepConfig":{}},"preStep":{},"rebootConfig":"","windowsUpdate":{"classifications":[],"excludes":[],"exclusivePatches":[]},"yum":{"excludes":[],"exclusivePackages":[],"minimal":false,"security":false},"zypper":{"categories":[],"excludes":[],"exclusivePatches":[],"severities":[],"withOptional":false,"withUpdate":false}},"rollout":{"disruptionBudget":{"fixed":0,"percent":0},"mode":""}}'
};

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 = @{ @"description": @"",
                              @"displayName": @"",
                              @"dryRun": @NO,
                              @"duration": @"",
                              @"instanceFilter": @{ @"all": @NO, @"groupLabels": @[ @{ @"labels": @{  } } ], @"instanceNamePrefixes": @[  ], @"instances": @[  ], @"zones": @[  ] },
                              @"patchConfig": @{ @"apt": @{ @"excludes": @[  ], @"exclusivePackages": @[  ], @"type": @"" }, @"goo": @{  }, @"migInstancesAllowed": @NO, @"postStep": @{ @"linuxExecStepConfig": @{ @"allowedSuccessCodes": @[  ], @"gcsObject": @{ @"bucket": @"", @"generationNumber": @"", @"object": @"" }, @"interpreter": @"", @"localPath": @"" }, @"windowsExecStepConfig": @{  } }, @"preStep": @{  }, @"rebootConfig": @"", @"windowsUpdate": @{ @"classifications": @[  ], @"excludes": @[  ], @"exclusivePatches": @[  ] }, @"yum": @{ @"excludes": @[  ], @"exclusivePackages": @[  ], @"minimal": @NO, @"security": @NO }, @"zypper": @{ @"categories": @[  ], @"excludes": @[  ], @"exclusivePatches": @[  ], @"severities": @[  ], @"withOptional": @NO, @"withUpdate": @NO } },
                              @"rollout": @{ @"disruptionBudget": @{ @"fixed": @0, @"percent": @0 }, @"mode": @"" } };

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

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/v1beta/:parent/patchJobs:execute"]
                                                       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}}/v1beta/:parent/patchJobs:execute" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"description\": \"\",\n  \"displayName\": \"\",\n  \"dryRun\": false,\n  \"duration\": \"\",\n  \"instanceFilter\": {\n    \"all\": false,\n    \"groupLabels\": [\n      {\n        \"labels\": {}\n      }\n    ],\n    \"instanceNamePrefixes\": [],\n    \"instances\": [],\n    \"zones\": []\n  },\n  \"patchConfig\": {\n    \"apt\": {\n      \"excludes\": [],\n      \"exclusivePackages\": [],\n      \"type\": \"\"\n    },\n    \"goo\": {},\n    \"migInstancesAllowed\": false,\n    \"postStep\": {\n      \"linuxExecStepConfig\": {\n        \"allowedSuccessCodes\": [],\n        \"gcsObject\": {\n          \"bucket\": \"\",\n          \"generationNumber\": \"\",\n          \"object\": \"\"\n        },\n        \"interpreter\": \"\",\n        \"localPath\": \"\"\n      },\n      \"windowsExecStepConfig\": {}\n    },\n    \"preStep\": {},\n    \"rebootConfig\": \"\",\n    \"windowsUpdate\": {\n      \"classifications\": [],\n      \"excludes\": [],\n      \"exclusivePatches\": []\n    },\n    \"yum\": {\n      \"excludes\": [],\n      \"exclusivePackages\": [],\n      \"minimal\": false,\n      \"security\": false\n    },\n    \"zypper\": {\n      \"categories\": [],\n      \"excludes\": [],\n      \"exclusivePatches\": [],\n      \"severities\": [],\n      \"withOptional\": false,\n      \"withUpdate\": false\n    }\n  },\n  \"rollout\": {\n    \"disruptionBudget\": {\n      \"fixed\": 0,\n      \"percent\": 0\n    },\n    \"mode\": \"\"\n  }\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/v1beta/:parent/patchJobs:execute",
  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([
    'description' => '',
    'displayName' => '',
    'dryRun' => null,
    'duration' => '',
    'instanceFilter' => [
        'all' => null,
        'groupLabels' => [
                [
                                'labels' => [
                                                                
                                ]
                ]
        ],
        'instanceNamePrefixes' => [
                
        ],
        'instances' => [
                
        ],
        'zones' => [
                
        ]
    ],
    'patchConfig' => [
        'apt' => [
                'excludes' => [
                                
                ],
                'exclusivePackages' => [
                                
                ],
                'type' => ''
        ],
        'goo' => [
                
        ],
        'migInstancesAllowed' => null,
        'postStep' => [
                'linuxExecStepConfig' => [
                                'allowedSuccessCodes' => [
                                                                
                                ],
                                'gcsObject' => [
                                                                'bucket' => '',
                                                                'generationNumber' => '',
                                                                'object' => ''
                                ],
                                'interpreter' => '',
                                'localPath' => ''
                ],
                'windowsExecStepConfig' => [
                                
                ]
        ],
        'preStep' => [
                
        ],
        'rebootConfig' => '',
        'windowsUpdate' => [
                'classifications' => [
                                
                ],
                'excludes' => [
                                
                ],
                'exclusivePatches' => [
                                
                ]
        ],
        'yum' => [
                'excludes' => [
                                
                ],
                'exclusivePackages' => [
                                
                ],
                'minimal' => null,
                'security' => null
        ],
        'zypper' => [
                'categories' => [
                                
                ],
                'excludes' => [
                                
                ],
                'exclusivePatches' => [
                                
                ],
                'severities' => [
                                
                ],
                'withOptional' => null,
                'withUpdate' => null
        ]
    ],
    'rollout' => [
        'disruptionBudget' => [
                'fixed' => 0,
                'percent' => 0
        ],
        'mode' => ''
    ]
  ]),
  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}}/v1beta/:parent/patchJobs:execute', [
  'body' => '{
  "description": "",
  "displayName": "",
  "dryRun": false,
  "duration": "",
  "instanceFilter": {
    "all": false,
    "groupLabels": [
      {
        "labels": {}
      }
    ],
    "instanceNamePrefixes": [],
    "instances": [],
    "zones": []
  },
  "patchConfig": {
    "apt": {
      "excludes": [],
      "exclusivePackages": [],
      "type": ""
    },
    "goo": {},
    "migInstancesAllowed": false,
    "postStep": {
      "linuxExecStepConfig": {
        "allowedSuccessCodes": [],
        "gcsObject": {
          "bucket": "",
          "generationNumber": "",
          "object": ""
        },
        "interpreter": "",
        "localPath": ""
      },
      "windowsExecStepConfig": {}
    },
    "preStep": {},
    "rebootConfig": "",
    "windowsUpdate": {
      "classifications": [],
      "excludes": [],
      "exclusivePatches": []
    },
    "yum": {
      "excludes": [],
      "exclusivePackages": [],
      "minimal": false,
      "security": false
    },
    "zypper": {
      "categories": [],
      "excludes": [],
      "exclusivePatches": [],
      "severities": [],
      "withOptional": false,
      "withUpdate": false
    }
  },
  "rollout": {
    "disruptionBudget": {
      "fixed": 0,
      "percent": 0
    },
    "mode": ""
  }
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

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

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

$request->setContentType('application/json');
$request->setBody(json_encode([
  'description' => '',
  'displayName' => '',
  'dryRun' => null,
  'duration' => '',
  'instanceFilter' => [
    'all' => null,
    'groupLabels' => [
        [
                'labels' => [
                                
                ]
        ]
    ],
    'instanceNamePrefixes' => [
        
    ],
    'instances' => [
        
    ],
    'zones' => [
        
    ]
  ],
  'patchConfig' => [
    'apt' => [
        'excludes' => [
                
        ],
        'exclusivePackages' => [
                
        ],
        'type' => ''
    ],
    'goo' => [
        
    ],
    'migInstancesAllowed' => null,
    'postStep' => [
        'linuxExecStepConfig' => [
                'allowedSuccessCodes' => [
                                
                ],
                'gcsObject' => [
                                'bucket' => '',
                                'generationNumber' => '',
                                'object' => ''
                ],
                'interpreter' => '',
                'localPath' => ''
        ],
        'windowsExecStepConfig' => [
                
        ]
    ],
    'preStep' => [
        
    ],
    'rebootConfig' => '',
    'windowsUpdate' => [
        'classifications' => [
                
        ],
        'excludes' => [
                
        ],
        'exclusivePatches' => [
                
        ]
    ],
    'yum' => [
        'excludes' => [
                
        ],
        'exclusivePackages' => [
                
        ],
        'minimal' => null,
        'security' => null
    ],
    'zypper' => [
        'categories' => [
                
        ],
        'excludes' => [
                
        ],
        'exclusivePatches' => [
                
        ],
        'severities' => [
                
        ],
        'withOptional' => null,
        'withUpdate' => null
    ]
  ],
  'rollout' => [
    'disruptionBudget' => [
        'fixed' => 0,
        'percent' => 0
    ],
    'mode' => ''
  ]
]));

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'description' => '',
  'displayName' => '',
  'dryRun' => null,
  'duration' => '',
  'instanceFilter' => [
    'all' => null,
    'groupLabels' => [
        [
                'labels' => [
                                
                ]
        ]
    ],
    'instanceNamePrefixes' => [
        
    ],
    'instances' => [
        
    ],
    'zones' => [
        
    ]
  ],
  'patchConfig' => [
    'apt' => [
        'excludes' => [
                
        ],
        'exclusivePackages' => [
                
        ],
        'type' => ''
    ],
    'goo' => [
        
    ],
    'migInstancesAllowed' => null,
    'postStep' => [
        'linuxExecStepConfig' => [
                'allowedSuccessCodes' => [
                                
                ],
                'gcsObject' => [
                                'bucket' => '',
                                'generationNumber' => '',
                                'object' => ''
                ],
                'interpreter' => '',
                'localPath' => ''
        ],
        'windowsExecStepConfig' => [
                
        ]
    ],
    'preStep' => [
        
    ],
    'rebootConfig' => '',
    'windowsUpdate' => [
        'classifications' => [
                
        ],
        'excludes' => [
                
        ],
        'exclusivePatches' => [
                
        ]
    ],
    'yum' => [
        'excludes' => [
                
        ],
        'exclusivePackages' => [
                
        ],
        'minimal' => null,
        'security' => null
    ],
    'zypper' => [
        'categories' => [
                
        ],
        'excludes' => [
                
        ],
        'exclusivePatches' => [
                
        ],
        'severities' => [
                
        ],
        'withOptional' => null,
        'withUpdate' => null
    ]
  ],
  'rollout' => [
    'disruptionBudget' => [
        'fixed' => 0,
        'percent' => 0
    ],
    'mode' => ''
  ]
]));
$request->setRequestUrl('{{baseUrl}}/v1beta/:parent/patchJobs:execute');
$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}}/v1beta/:parent/patchJobs:execute' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "description": "",
  "displayName": "",
  "dryRun": false,
  "duration": "",
  "instanceFilter": {
    "all": false,
    "groupLabels": [
      {
        "labels": {}
      }
    ],
    "instanceNamePrefixes": [],
    "instances": [],
    "zones": []
  },
  "patchConfig": {
    "apt": {
      "excludes": [],
      "exclusivePackages": [],
      "type": ""
    },
    "goo": {},
    "migInstancesAllowed": false,
    "postStep": {
      "linuxExecStepConfig": {
        "allowedSuccessCodes": [],
        "gcsObject": {
          "bucket": "",
          "generationNumber": "",
          "object": ""
        },
        "interpreter": "",
        "localPath": ""
      },
      "windowsExecStepConfig": {}
    },
    "preStep": {},
    "rebootConfig": "",
    "windowsUpdate": {
      "classifications": [],
      "excludes": [],
      "exclusivePatches": []
    },
    "yum": {
      "excludes": [],
      "exclusivePackages": [],
      "minimal": false,
      "security": false
    },
    "zypper": {
      "categories": [],
      "excludes": [],
      "exclusivePatches": [],
      "severities": [],
      "withOptional": false,
      "withUpdate": false
    }
  },
  "rollout": {
    "disruptionBudget": {
      "fixed": 0,
      "percent": 0
    },
    "mode": ""
  }
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/v1beta/:parent/patchJobs:execute' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "description": "",
  "displayName": "",
  "dryRun": false,
  "duration": "",
  "instanceFilter": {
    "all": false,
    "groupLabels": [
      {
        "labels": {}
      }
    ],
    "instanceNamePrefixes": [],
    "instances": [],
    "zones": []
  },
  "patchConfig": {
    "apt": {
      "excludes": [],
      "exclusivePackages": [],
      "type": ""
    },
    "goo": {},
    "migInstancesAllowed": false,
    "postStep": {
      "linuxExecStepConfig": {
        "allowedSuccessCodes": [],
        "gcsObject": {
          "bucket": "",
          "generationNumber": "",
          "object": ""
        },
        "interpreter": "",
        "localPath": ""
      },
      "windowsExecStepConfig": {}
    },
    "preStep": {},
    "rebootConfig": "",
    "windowsUpdate": {
      "classifications": [],
      "excludes": [],
      "exclusivePatches": []
    },
    "yum": {
      "excludes": [],
      "exclusivePackages": [],
      "minimal": false,
      "security": false
    },
    "zypper": {
      "categories": [],
      "excludes": [],
      "exclusivePatches": [],
      "severities": [],
      "withOptional": false,
      "withUpdate": false
    }
  },
  "rollout": {
    "disruptionBudget": {
      "fixed": 0,
      "percent": 0
    },
    "mode": ""
  }
}'
import http.client

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

payload = "{\n  \"description\": \"\",\n  \"displayName\": \"\",\n  \"dryRun\": false,\n  \"duration\": \"\",\n  \"instanceFilter\": {\n    \"all\": false,\n    \"groupLabels\": [\n      {\n        \"labels\": {}\n      }\n    ],\n    \"instanceNamePrefixes\": [],\n    \"instances\": [],\n    \"zones\": []\n  },\n  \"patchConfig\": {\n    \"apt\": {\n      \"excludes\": [],\n      \"exclusivePackages\": [],\n      \"type\": \"\"\n    },\n    \"goo\": {},\n    \"migInstancesAllowed\": false,\n    \"postStep\": {\n      \"linuxExecStepConfig\": {\n        \"allowedSuccessCodes\": [],\n        \"gcsObject\": {\n          \"bucket\": \"\",\n          \"generationNumber\": \"\",\n          \"object\": \"\"\n        },\n        \"interpreter\": \"\",\n        \"localPath\": \"\"\n      },\n      \"windowsExecStepConfig\": {}\n    },\n    \"preStep\": {},\n    \"rebootConfig\": \"\",\n    \"windowsUpdate\": {\n      \"classifications\": [],\n      \"excludes\": [],\n      \"exclusivePatches\": []\n    },\n    \"yum\": {\n      \"excludes\": [],\n      \"exclusivePackages\": [],\n      \"minimal\": false,\n      \"security\": false\n    },\n    \"zypper\": {\n      \"categories\": [],\n      \"excludes\": [],\n      \"exclusivePatches\": [],\n      \"severities\": [],\n      \"withOptional\": false,\n      \"withUpdate\": false\n    }\n  },\n  \"rollout\": {\n    \"disruptionBudget\": {\n      \"fixed\": 0,\n      \"percent\": 0\n    },\n    \"mode\": \"\"\n  }\n}"

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

conn.request("POST", "/baseUrl/v1beta/:parent/patchJobs:execute", payload, headers)

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

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

url = "{{baseUrl}}/v1beta/:parent/patchJobs:execute"

payload = {
    "description": "",
    "displayName": "",
    "dryRun": False,
    "duration": "",
    "instanceFilter": {
        "all": False,
        "groupLabels": [{ "labels": {} }],
        "instanceNamePrefixes": [],
        "instances": [],
        "zones": []
    },
    "patchConfig": {
        "apt": {
            "excludes": [],
            "exclusivePackages": [],
            "type": ""
        },
        "goo": {},
        "migInstancesAllowed": False,
        "postStep": {
            "linuxExecStepConfig": {
                "allowedSuccessCodes": [],
                "gcsObject": {
                    "bucket": "",
                    "generationNumber": "",
                    "object": ""
                },
                "interpreter": "",
                "localPath": ""
            },
            "windowsExecStepConfig": {}
        },
        "preStep": {},
        "rebootConfig": "",
        "windowsUpdate": {
            "classifications": [],
            "excludes": [],
            "exclusivePatches": []
        },
        "yum": {
            "excludes": [],
            "exclusivePackages": [],
            "minimal": False,
            "security": False
        },
        "zypper": {
            "categories": [],
            "excludes": [],
            "exclusivePatches": [],
            "severities": [],
            "withOptional": False,
            "withUpdate": False
        }
    },
    "rollout": {
        "disruptionBudget": {
            "fixed": 0,
            "percent": 0
        },
        "mode": ""
    }
}
headers = {"content-type": "application/json"}

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

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

url <- "{{baseUrl}}/v1beta/:parent/patchJobs:execute"

payload <- "{\n  \"description\": \"\",\n  \"displayName\": \"\",\n  \"dryRun\": false,\n  \"duration\": \"\",\n  \"instanceFilter\": {\n    \"all\": false,\n    \"groupLabels\": [\n      {\n        \"labels\": {}\n      }\n    ],\n    \"instanceNamePrefixes\": [],\n    \"instances\": [],\n    \"zones\": []\n  },\n  \"patchConfig\": {\n    \"apt\": {\n      \"excludes\": [],\n      \"exclusivePackages\": [],\n      \"type\": \"\"\n    },\n    \"goo\": {},\n    \"migInstancesAllowed\": false,\n    \"postStep\": {\n      \"linuxExecStepConfig\": {\n        \"allowedSuccessCodes\": [],\n        \"gcsObject\": {\n          \"bucket\": \"\",\n          \"generationNumber\": \"\",\n          \"object\": \"\"\n        },\n        \"interpreter\": \"\",\n        \"localPath\": \"\"\n      },\n      \"windowsExecStepConfig\": {}\n    },\n    \"preStep\": {},\n    \"rebootConfig\": \"\",\n    \"windowsUpdate\": {\n      \"classifications\": [],\n      \"excludes\": [],\n      \"exclusivePatches\": []\n    },\n    \"yum\": {\n      \"excludes\": [],\n      \"exclusivePackages\": [],\n      \"minimal\": false,\n      \"security\": false\n    },\n    \"zypper\": {\n      \"categories\": [],\n      \"excludes\": [],\n      \"exclusivePatches\": [],\n      \"severities\": [],\n      \"withOptional\": false,\n      \"withUpdate\": false\n    }\n  },\n  \"rollout\": {\n    \"disruptionBudget\": {\n      \"fixed\": 0,\n      \"percent\": 0\n    },\n    \"mode\": \"\"\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}}/v1beta/:parent/patchJobs:execute")

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  \"description\": \"\",\n  \"displayName\": \"\",\n  \"dryRun\": false,\n  \"duration\": \"\",\n  \"instanceFilter\": {\n    \"all\": false,\n    \"groupLabels\": [\n      {\n        \"labels\": {}\n      }\n    ],\n    \"instanceNamePrefixes\": [],\n    \"instances\": [],\n    \"zones\": []\n  },\n  \"patchConfig\": {\n    \"apt\": {\n      \"excludes\": [],\n      \"exclusivePackages\": [],\n      \"type\": \"\"\n    },\n    \"goo\": {},\n    \"migInstancesAllowed\": false,\n    \"postStep\": {\n      \"linuxExecStepConfig\": {\n        \"allowedSuccessCodes\": [],\n        \"gcsObject\": {\n          \"bucket\": \"\",\n          \"generationNumber\": \"\",\n          \"object\": \"\"\n        },\n        \"interpreter\": \"\",\n        \"localPath\": \"\"\n      },\n      \"windowsExecStepConfig\": {}\n    },\n    \"preStep\": {},\n    \"rebootConfig\": \"\",\n    \"windowsUpdate\": {\n      \"classifications\": [],\n      \"excludes\": [],\n      \"exclusivePatches\": []\n    },\n    \"yum\": {\n      \"excludes\": [],\n      \"exclusivePackages\": [],\n      \"minimal\": false,\n      \"security\": false\n    },\n    \"zypper\": {\n      \"categories\": [],\n      \"excludes\": [],\n      \"exclusivePatches\": [],\n      \"severities\": [],\n      \"withOptional\": false,\n      \"withUpdate\": false\n    }\n  },\n  \"rollout\": {\n    \"disruptionBudget\": {\n      \"fixed\": 0,\n      \"percent\": 0\n    },\n    \"mode\": \"\"\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/v1beta/:parent/patchJobs:execute') do |req|
  req.body = "{\n  \"description\": \"\",\n  \"displayName\": \"\",\n  \"dryRun\": false,\n  \"duration\": \"\",\n  \"instanceFilter\": {\n    \"all\": false,\n    \"groupLabels\": [\n      {\n        \"labels\": {}\n      }\n    ],\n    \"instanceNamePrefixes\": [],\n    \"instances\": [],\n    \"zones\": []\n  },\n  \"patchConfig\": {\n    \"apt\": {\n      \"excludes\": [],\n      \"exclusivePackages\": [],\n      \"type\": \"\"\n    },\n    \"goo\": {},\n    \"migInstancesAllowed\": false,\n    \"postStep\": {\n      \"linuxExecStepConfig\": {\n        \"allowedSuccessCodes\": [],\n        \"gcsObject\": {\n          \"bucket\": \"\",\n          \"generationNumber\": \"\",\n          \"object\": \"\"\n        },\n        \"interpreter\": \"\",\n        \"localPath\": \"\"\n      },\n      \"windowsExecStepConfig\": {}\n    },\n    \"preStep\": {},\n    \"rebootConfig\": \"\",\n    \"windowsUpdate\": {\n      \"classifications\": [],\n      \"excludes\": [],\n      \"exclusivePatches\": []\n    },\n    \"yum\": {\n      \"excludes\": [],\n      \"exclusivePackages\": [],\n      \"minimal\": false,\n      \"security\": false\n    },\n    \"zypper\": {\n      \"categories\": [],\n      \"excludes\": [],\n      \"exclusivePatches\": [],\n      \"severities\": [],\n      \"withOptional\": false,\n      \"withUpdate\": false\n    }\n  },\n  \"rollout\": {\n    \"disruptionBudget\": {\n      \"fixed\": 0,\n      \"percent\": 0\n    },\n    \"mode\": \"\"\n  }\n}"
end

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

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

    let payload = json!({
        "description": "",
        "displayName": "",
        "dryRun": false,
        "duration": "",
        "instanceFilter": json!({
            "all": false,
            "groupLabels": (json!({"labels": json!({})})),
            "instanceNamePrefixes": (),
            "instances": (),
            "zones": ()
        }),
        "patchConfig": json!({
            "apt": json!({
                "excludes": (),
                "exclusivePackages": (),
                "type": ""
            }),
            "goo": json!({}),
            "migInstancesAllowed": false,
            "postStep": json!({
                "linuxExecStepConfig": json!({
                    "allowedSuccessCodes": (),
                    "gcsObject": json!({
                        "bucket": "",
                        "generationNumber": "",
                        "object": ""
                    }),
                    "interpreter": "",
                    "localPath": ""
                }),
                "windowsExecStepConfig": json!({})
            }),
            "preStep": json!({}),
            "rebootConfig": "",
            "windowsUpdate": json!({
                "classifications": (),
                "excludes": (),
                "exclusivePatches": ()
            }),
            "yum": json!({
                "excludes": (),
                "exclusivePackages": (),
                "minimal": false,
                "security": false
            }),
            "zypper": json!({
                "categories": (),
                "excludes": (),
                "exclusivePatches": (),
                "severities": (),
                "withOptional": false,
                "withUpdate": false
            })
        }),
        "rollout": json!({
            "disruptionBudget": json!({
                "fixed": 0,
                "percent": 0
            }),
            "mode": ""
        })
    });

    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}}/v1beta/:parent/patchJobs:execute \
  --header 'content-type: application/json' \
  --data '{
  "description": "",
  "displayName": "",
  "dryRun": false,
  "duration": "",
  "instanceFilter": {
    "all": false,
    "groupLabels": [
      {
        "labels": {}
      }
    ],
    "instanceNamePrefixes": [],
    "instances": [],
    "zones": []
  },
  "patchConfig": {
    "apt": {
      "excludes": [],
      "exclusivePackages": [],
      "type": ""
    },
    "goo": {},
    "migInstancesAllowed": false,
    "postStep": {
      "linuxExecStepConfig": {
        "allowedSuccessCodes": [],
        "gcsObject": {
          "bucket": "",
          "generationNumber": "",
          "object": ""
        },
        "interpreter": "",
        "localPath": ""
      },
      "windowsExecStepConfig": {}
    },
    "preStep": {},
    "rebootConfig": "",
    "windowsUpdate": {
      "classifications": [],
      "excludes": [],
      "exclusivePatches": []
    },
    "yum": {
      "excludes": [],
      "exclusivePackages": [],
      "minimal": false,
      "security": false
    },
    "zypper": {
      "categories": [],
      "excludes": [],
      "exclusivePatches": [],
      "severities": [],
      "withOptional": false,
      "withUpdate": false
    }
  },
  "rollout": {
    "disruptionBudget": {
      "fixed": 0,
      "percent": 0
    },
    "mode": ""
  }
}'
echo '{
  "description": "",
  "displayName": "",
  "dryRun": false,
  "duration": "",
  "instanceFilter": {
    "all": false,
    "groupLabels": [
      {
        "labels": {}
      }
    ],
    "instanceNamePrefixes": [],
    "instances": [],
    "zones": []
  },
  "patchConfig": {
    "apt": {
      "excludes": [],
      "exclusivePackages": [],
      "type": ""
    },
    "goo": {},
    "migInstancesAllowed": false,
    "postStep": {
      "linuxExecStepConfig": {
        "allowedSuccessCodes": [],
        "gcsObject": {
          "bucket": "",
          "generationNumber": "",
          "object": ""
        },
        "interpreter": "",
        "localPath": ""
      },
      "windowsExecStepConfig": {}
    },
    "preStep": {},
    "rebootConfig": "",
    "windowsUpdate": {
      "classifications": [],
      "excludes": [],
      "exclusivePatches": []
    },
    "yum": {
      "excludes": [],
      "exclusivePackages": [],
      "minimal": false,
      "security": false
    },
    "zypper": {
      "categories": [],
      "excludes": [],
      "exclusivePatches": [],
      "severities": [],
      "withOptional": false,
      "withUpdate": false
    }
  },
  "rollout": {
    "disruptionBudget": {
      "fixed": 0,
      "percent": 0
    },
    "mode": ""
  }
}' |  \
  http POST {{baseUrl}}/v1beta/:parent/patchJobs:execute \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "description": "",\n  "displayName": "",\n  "dryRun": false,\n  "duration": "",\n  "instanceFilter": {\n    "all": false,\n    "groupLabels": [\n      {\n        "labels": {}\n      }\n    ],\n    "instanceNamePrefixes": [],\n    "instances": [],\n    "zones": []\n  },\n  "patchConfig": {\n    "apt": {\n      "excludes": [],\n      "exclusivePackages": [],\n      "type": ""\n    },\n    "goo": {},\n    "migInstancesAllowed": false,\n    "postStep": {\n      "linuxExecStepConfig": {\n        "allowedSuccessCodes": [],\n        "gcsObject": {\n          "bucket": "",\n          "generationNumber": "",\n          "object": ""\n        },\n        "interpreter": "",\n        "localPath": ""\n      },\n      "windowsExecStepConfig": {}\n    },\n    "preStep": {},\n    "rebootConfig": "",\n    "windowsUpdate": {\n      "classifications": [],\n      "excludes": [],\n      "exclusivePatches": []\n    },\n    "yum": {\n      "excludes": [],\n      "exclusivePackages": [],\n      "minimal": false,\n      "security": false\n    },\n    "zypper": {\n      "categories": [],\n      "excludes": [],\n      "exclusivePatches": [],\n      "severities": [],\n      "withOptional": false,\n      "withUpdate": false\n    }\n  },\n  "rollout": {\n    "disruptionBudget": {\n      "fixed": 0,\n      "percent": 0\n    },\n    "mode": ""\n  }\n}' \
  --output-document \
  - {{baseUrl}}/v1beta/:parent/patchJobs:execute
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "description": "",
  "displayName": "",
  "dryRun": false,
  "duration": "",
  "instanceFilter": [
    "all": false,
    "groupLabels": [["labels": []]],
    "instanceNamePrefixes": [],
    "instances": [],
    "zones": []
  ],
  "patchConfig": [
    "apt": [
      "excludes": [],
      "exclusivePackages": [],
      "type": ""
    ],
    "goo": [],
    "migInstancesAllowed": false,
    "postStep": [
      "linuxExecStepConfig": [
        "allowedSuccessCodes": [],
        "gcsObject": [
          "bucket": "",
          "generationNumber": "",
          "object": ""
        ],
        "interpreter": "",
        "localPath": ""
      ],
      "windowsExecStepConfig": []
    ],
    "preStep": [],
    "rebootConfig": "",
    "windowsUpdate": [
      "classifications": [],
      "excludes": [],
      "exclusivePatches": []
    ],
    "yum": [
      "excludes": [],
      "exclusivePackages": [],
      "minimal": false,
      "security": false
    ],
    "zypper": [
      "categories": [],
      "excludes": [],
      "exclusivePatches": [],
      "severities": [],
      "withOptional": false,
      "withUpdate": false
    ]
  ],
  "rollout": [
    "disruptionBudget": [
      "fixed": 0,
      "percent": 0
    ],
    "mode": ""
  ]
] as [String : Any]

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

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/v1beta/:parent/patchJobs:execute")! 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 osconfig.projects.patchJobs.get
{{baseUrl}}/v1beta/: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}}/v1beta/:name");

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

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

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

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

func main() {

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

response = requests.get(url)

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

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

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

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

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

puts response.status
puts response.body
use reqwest;

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

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

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

dataTask.resume()
GET osconfig.projects.patchJobs.instanceDetails.list
{{baseUrl}}/v1beta/:parent/instanceDetails
QUERY PARAMS

parent
Examples
REQUEST

CURL *hnd = curl_easy_init();

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

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

(client/get "{{baseUrl}}/v1beta/:parent/instanceDetails")
require "http/client"

url = "{{baseUrl}}/v1beta/:parent/instanceDetails"

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

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

func main() {

	url := "{{baseUrl}}/v1beta/:parent/instanceDetails"

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

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

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

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

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

const options = {
  method: 'GET',
  url: '{{baseUrl}}/v1beta/:parent/instanceDetails'
};

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

conn.request("GET", "/baseUrl/v1beta/:parent/instanceDetails")

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

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

url = "{{baseUrl}}/v1beta/:parent/instanceDetails"

response = requests.get(url)

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

url <- "{{baseUrl}}/v1beta/:parent/instanceDetails"

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

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

url = URI("{{baseUrl}}/v1beta/:parent/instanceDetails")

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

puts response.status
puts response.body
use reqwest;

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

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

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/v1beta/:parent/instanceDetails")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"

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

dataTask.resume()
GET osconfig.projects.patchJobs.list
{{baseUrl}}/v1beta/:parent/patchJobs
QUERY PARAMS

parent
Examples
REQUEST

CURL *hnd = curl_easy_init();

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

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

(client/get "{{baseUrl}}/v1beta/:parent/patchJobs")
require "http/client"

url = "{{baseUrl}}/v1beta/:parent/patchJobs"

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

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

func main() {

	url := "{{baseUrl}}/v1beta/:parent/patchJobs"

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

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

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

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

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

const options = {method: 'GET', url: '{{baseUrl}}/v1beta/:parent/patchJobs'};

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

conn.request("GET", "/baseUrl/v1beta/:parent/patchJobs")

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

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

url = "{{baseUrl}}/v1beta/:parent/patchJobs"

response = requests.get(url)

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

url <- "{{baseUrl}}/v1beta/:parent/patchJobs"

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

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

url = URI("{{baseUrl}}/v1beta/:parent/patchJobs")

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

puts response.status
puts response.body
use reqwest;

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

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

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/v1beta/:parent/patchJobs")! 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 osconfig.projects.zones.instances.lookupEffectiveGuestPolicy
{{baseUrl}}/v1beta/:instance:lookupEffectiveGuestPolicy
QUERY PARAMS

instance
BODY json

{
  "osArchitecture": "",
  "osShortName": "",
  "osVersion": ""
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/v1beta/:instance:lookupEffectiveGuestPolicy");

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  \"osArchitecture\": \"\",\n  \"osShortName\": \"\",\n  \"osVersion\": \"\"\n}");

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

(client/post "{{baseUrl}}/v1beta/:instance:lookupEffectiveGuestPolicy" {:content-type :json
                                                                                        :form-params {:osArchitecture ""
                                                                                                      :osShortName ""
                                                                                                      :osVersion ""}})
require "http/client"

url = "{{baseUrl}}/v1beta/:instance:lookupEffectiveGuestPolicy"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"osArchitecture\": \"\",\n  \"osShortName\": \"\",\n  \"osVersion\": \"\"\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}}/v1beta/:instance:lookupEffectiveGuestPolicy"),
    Content = new StringContent("{\n  \"osArchitecture\": \"\",\n  \"osShortName\": \"\",\n  \"osVersion\": \"\"\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}}/v1beta/:instance:lookupEffectiveGuestPolicy");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"osArchitecture\": \"\",\n  \"osShortName\": \"\",\n  \"osVersion\": \"\"\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

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

func main() {

	url := "{{baseUrl}}/v1beta/:instance:lookupEffectiveGuestPolicy"

	payload := strings.NewReader("{\n  \"osArchitecture\": \"\",\n  \"osShortName\": \"\",\n  \"osVersion\": \"\"\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/v1beta/:instance:lookupEffectiveGuestPolicy HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 66

{
  "osArchitecture": "",
  "osShortName": "",
  "osVersion": ""
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/v1beta/:instance:lookupEffectiveGuestPolicy")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"osArchitecture\": \"\",\n  \"osShortName\": \"\",\n  \"osVersion\": \"\"\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

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

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/v1beta/:instance:lookupEffectiveGuestPolicy")
  .header("content-type", "application/json")
  .body("{\n  \"osArchitecture\": \"\",\n  \"osShortName\": \"\",\n  \"osVersion\": \"\"\n}")
  .asString();
const data = JSON.stringify({
  osArchitecture: '',
  osShortName: '',
  osVersion: ''
});

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

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

xhr.open('POST', '{{baseUrl}}/v1beta/:instance:lookupEffectiveGuestPolicy');
xhr.setRequestHeader('content-type', 'application/json');

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

const options = {
  method: 'POST',
  url: '{{baseUrl}}/v1beta/:instance:lookupEffectiveGuestPolicy',
  headers: {'content-type': 'application/json'},
  data: {osArchitecture: '', osShortName: '', osVersion: ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/v1beta/:instance:lookupEffectiveGuestPolicy';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"osArchitecture":"","osShortName":"","osVersion":""}'
};

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}}/v1beta/:instance:lookupEffectiveGuestPolicy',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "osArchitecture": "",\n  "osShortName": "",\n  "osVersion": ""\n}'
};

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

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"osArchitecture\": \"\",\n  \"osShortName\": \"\",\n  \"osVersion\": \"\"\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/v1beta/:instance:lookupEffectiveGuestPolicy")
  .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/v1beta/:instance:lookupEffectiveGuestPolicy',
  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({osArchitecture: '', osShortName: '', osVersion: ''}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/v1beta/:instance:lookupEffectiveGuestPolicy',
  headers: {'content-type': 'application/json'},
  body: {osArchitecture: '', osShortName: '', osVersion: ''},
  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}}/v1beta/:instance:lookupEffectiveGuestPolicy');

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

req.type('json');
req.send({
  osArchitecture: '',
  osShortName: '',
  osVersion: ''
});

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}}/v1beta/:instance:lookupEffectiveGuestPolicy',
  headers: {'content-type': 'application/json'},
  data: {osArchitecture: '', osShortName: '', osVersion: ''}
};

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

const url = '{{baseUrl}}/v1beta/:instance:lookupEffectiveGuestPolicy';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"osArchitecture":"","osShortName":"","osVersion":""}'
};

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 = @{ @"osArchitecture": @"",
                              @"osShortName": @"",
                              @"osVersion": @"" };

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

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/v1beta/:instance:lookupEffectiveGuestPolicy"]
                                                       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}}/v1beta/:instance:lookupEffectiveGuestPolicy" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"osArchitecture\": \"\",\n  \"osShortName\": \"\",\n  \"osVersion\": \"\"\n}" in

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

echo $response->getBody();
setUrl('{{baseUrl}}/v1beta/:instance:lookupEffectiveGuestPolicy');
$request->setMethod(HTTP_METH_POST);

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

$request->setContentType('application/json');
$request->setBody(json_encode([
  'osArchitecture' => '',
  'osShortName' => '',
  'osVersion' => ''
]));

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

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

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

payload = "{\n  \"osArchitecture\": \"\",\n  \"osShortName\": \"\",\n  \"osVersion\": \"\"\n}"

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

conn.request("POST", "/baseUrl/v1beta/:instance:lookupEffectiveGuestPolicy", payload, headers)

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

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

url = "{{baseUrl}}/v1beta/:instance:lookupEffectiveGuestPolicy"

payload = {
    "osArchitecture": "",
    "osShortName": "",
    "osVersion": ""
}
headers = {"content-type": "application/json"}

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

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

url <- "{{baseUrl}}/v1beta/:instance:lookupEffectiveGuestPolicy"

payload <- "{\n  \"osArchitecture\": \"\",\n  \"osShortName\": \"\",\n  \"osVersion\": \"\"\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}}/v1beta/:instance:lookupEffectiveGuestPolicy")

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  \"osArchitecture\": \"\",\n  \"osShortName\": \"\",\n  \"osVersion\": \"\"\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/v1beta/:instance:lookupEffectiveGuestPolicy') do |req|
  req.body = "{\n  \"osArchitecture\": \"\",\n  \"osShortName\": \"\",\n  \"osVersion\": \"\"\n}"
end

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

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/v1beta/:instance:lookupEffectiveGuestPolicy";

    let payload = json!({
        "osArchitecture": "",
        "osShortName": "",
        "osVersion": ""
    });

    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}}/v1beta/:instance:lookupEffectiveGuestPolicy \
  --header 'content-type: application/json' \
  --data '{
  "osArchitecture": "",
  "osShortName": "",
  "osVersion": ""
}'
echo '{
  "osArchitecture": "",
  "osShortName": "",
  "osVersion": ""
}' |  \
  http POST {{baseUrl}}/v1beta/:instance:lookupEffectiveGuestPolicy \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "osArchitecture": "",\n  "osShortName": "",\n  "osVersion": ""\n}' \
  --output-document \
  - {{baseUrl}}/v1beta/:instance:lookupEffectiveGuestPolicy
import Foundation

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

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

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