Application Integration API
GET
integrations.callback.generateToken
{{baseUrl}}/v1/callback:generateToken
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/v1/callback:generateToken");
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/get "{{baseUrl}}/v1/callback:generateToken")
require "http/client"
url = "{{baseUrl}}/v1/callback:generateToken"
response = HTTP::Client.get url
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Get,
RequestUri = new Uri("{{baseUrl}}/v1/callback:generateToken"),
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/v1/callback:generateToken");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/v1/callback:generateToken"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
GET /baseUrl/v1/callback:generateToken HTTP/1.1
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/v1/callback:generateToken")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/v1/callback:generateToken"))
.method("GET", HttpRequest.BodyPublishers.noBody())
.build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("{{baseUrl}}/v1/callback:generateToken")
.get()
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/v1/callback:generateToken")
.asString();
const data = null;
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('GET', '{{baseUrl}}/v1/callback:generateToken');
xhr.send(data);
import axios from 'axios';
const options = {method: 'GET', url: '{{baseUrl}}/v1/callback:generateToken'};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/v1/callback:generateToken';
const options = {method: 'GET'};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/v1/callback:generateToken',
method: 'GET',
headers: {}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/v1/callback:generateToken")
.get()
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'GET',
hostname: 'example.com',
port: null,
path: '/baseUrl/v1/callback:generateToken',
headers: {}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
const request = require('request');
const options = {method: 'GET', url: '{{baseUrl}}/v1/callback:generateToken'};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('GET', '{{baseUrl}}/v1/callback:generateToken');
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {method: 'GET', url: '{{baseUrl}}/v1/callback:generateToken'};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/v1/callback:generateToken';
const options = {method: 'GET'};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/v1/callback:generateToken"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/v1/callback:generateToken" in
Client.call `GET uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/v1/callback:generateToken",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('GET', '{{baseUrl}}/v1/callback:generateToken');
echo $response->getBody();
setUrl('{{baseUrl}}/v1/callback:generateToken');
$request->setMethod(HTTP_METH_GET);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/v1/callback:generateToken');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/v1/callback:generateToken' -Method GET
$response = Invoke-RestMethod -Uri '{{baseUrl}}/v1/callback:generateToken' -Method GET
import http.client
conn = http.client.HTTPSConnection("example.com")
conn.request("GET", "/baseUrl/v1/callback:generateToken")
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/v1/callback:generateToken"
response = requests.get(url)
print(response.json())
library(httr)
url <- "{{baseUrl}}/v1/callback:generateToken"
response <- VERB("GET", url, content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/v1/callback:generateToken")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
)
response = conn.get('/baseUrl/v1/callback:generateToken') do |req|
end
puts response.status
puts response.body
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/v1/callback:generateToken";
let client = reqwest::Client::new();
let response = client.get(url)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request GET \
--url {{baseUrl}}/v1/callback:generateToken
http GET {{baseUrl}}/v1/callback:generateToken
wget --quiet \
--method GET \
--output-document \
- {{baseUrl}}/v1/callback:generateToken
import Foundation
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/v1/callback:generateToken")! 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
integrations.connectorPlatformRegions.enumerate
{{baseUrl}}/v1/connectorPlatformRegions:enumerate
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/v1/connectorPlatformRegions:enumerate");
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/get "{{baseUrl}}/v1/connectorPlatformRegions:enumerate")
require "http/client"
url = "{{baseUrl}}/v1/connectorPlatformRegions:enumerate"
response = HTTP::Client.get url
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Get,
RequestUri = new Uri("{{baseUrl}}/v1/connectorPlatformRegions:enumerate"),
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/v1/connectorPlatformRegions:enumerate");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/v1/connectorPlatformRegions:enumerate"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
GET /baseUrl/v1/connectorPlatformRegions:enumerate HTTP/1.1
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/v1/connectorPlatformRegions:enumerate")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/v1/connectorPlatformRegions:enumerate"))
.method("GET", HttpRequest.BodyPublishers.noBody())
.build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("{{baseUrl}}/v1/connectorPlatformRegions:enumerate")
.get()
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/v1/connectorPlatformRegions:enumerate")
.asString();
const data = null;
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('GET', '{{baseUrl}}/v1/connectorPlatformRegions:enumerate');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'GET',
url: '{{baseUrl}}/v1/connectorPlatformRegions:enumerate'
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/v1/connectorPlatformRegions:enumerate';
const options = {method: 'GET'};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/v1/connectorPlatformRegions:enumerate',
method: 'GET',
headers: {}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/v1/connectorPlatformRegions:enumerate")
.get()
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'GET',
hostname: 'example.com',
port: null,
path: '/baseUrl/v1/connectorPlatformRegions:enumerate',
headers: {}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
const request = require('request');
const options = {
method: 'GET',
url: '{{baseUrl}}/v1/connectorPlatformRegions:enumerate'
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('GET', '{{baseUrl}}/v1/connectorPlatformRegions:enumerate');
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {
method: 'GET',
url: '{{baseUrl}}/v1/connectorPlatformRegions:enumerate'
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/v1/connectorPlatformRegions:enumerate';
const options = {method: 'GET'};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/v1/connectorPlatformRegions:enumerate"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/v1/connectorPlatformRegions:enumerate" in
Client.call `GET uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/v1/connectorPlatformRegions:enumerate",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('GET', '{{baseUrl}}/v1/connectorPlatformRegions:enumerate');
echo $response->getBody();
setUrl('{{baseUrl}}/v1/connectorPlatformRegions:enumerate');
$request->setMethod(HTTP_METH_GET);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/v1/connectorPlatformRegions:enumerate');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/v1/connectorPlatformRegions:enumerate' -Method GET
$response = Invoke-RestMethod -Uri '{{baseUrl}}/v1/connectorPlatformRegions:enumerate' -Method GET
import http.client
conn = http.client.HTTPSConnection("example.com")
conn.request("GET", "/baseUrl/v1/connectorPlatformRegions:enumerate")
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/v1/connectorPlatformRegions:enumerate"
response = requests.get(url)
print(response.json())
library(httr)
url <- "{{baseUrl}}/v1/connectorPlatformRegions:enumerate"
response <- VERB("GET", url, content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/v1/connectorPlatformRegions:enumerate")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
)
response = conn.get('/baseUrl/v1/connectorPlatformRegions:enumerate') do |req|
end
puts response.status
puts response.body
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/v1/connectorPlatformRegions:enumerate";
let client = reqwest::Client::new();
let response = client.get(url)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request GET \
--url {{baseUrl}}/v1/connectorPlatformRegions:enumerate
http GET {{baseUrl}}/v1/connectorPlatformRegions:enumerate
wget --quiet \
--method GET \
--output-document \
- {{baseUrl}}/v1/connectorPlatformRegions:enumerate
import Foundation
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/v1/connectorPlatformRegions:enumerate")! 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
integrations.projects.getClientmetadata
{{baseUrl}}/v1/:parent/clientmetadata
QUERY PARAMS
parent
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/v1/:parent/clientmetadata");
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/get "{{baseUrl}}/v1/:parent/clientmetadata")
require "http/client"
url = "{{baseUrl}}/v1/:parent/clientmetadata"
response = HTTP::Client.get url
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Get,
RequestUri = new Uri("{{baseUrl}}/v1/:parent/clientmetadata"),
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/v1/:parent/clientmetadata");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/v1/:parent/clientmetadata"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
GET /baseUrl/v1/:parent/clientmetadata HTTP/1.1
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/v1/:parent/clientmetadata")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/v1/:parent/clientmetadata"))
.method("GET", HttpRequest.BodyPublishers.noBody())
.build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("{{baseUrl}}/v1/:parent/clientmetadata")
.get()
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/v1/:parent/clientmetadata")
.asString();
const data = null;
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('GET', '{{baseUrl}}/v1/:parent/clientmetadata');
xhr.send(data);
import axios from 'axios';
const options = {method: 'GET', url: '{{baseUrl}}/v1/:parent/clientmetadata'};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/v1/:parent/clientmetadata';
const options = {method: 'GET'};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/v1/:parent/clientmetadata',
method: 'GET',
headers: {}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/v1/:parent/clientmetadata")
.get()
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'GET',
hostname: 'example.com',
port: null,
path: '/baseUrl/v1/:parent/clientmetadata',
headers: {}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
const request = require('request');
const options = {method: 'GET', url: '{{baseUrl}}/v1/:parent/clientmetadata'};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('GET', '{{baseUrl}}/v1/:parent/clientmetadata');
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {method: 'GET', url: '{{baseUrl}}/v1/:parent/clientmetadata'};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/v1/:parent/clientmetadata';
const options = {method: 'GET'};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/v1/:parent/clientmetadata"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/v1/:parent/clientmetadata" in
Client.call `GET uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/v1/:parent/clientmetadata",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('GET', '{{baseUrl}}/v1/:parent/clientmetadata');
echo $response->getBody();
setUrl('{{baseUrl}}/v1/:parent/clientmetadata');
$request->setMethod(HTTP_METH_GET);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/v1/:parent/clientmetadata');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/v1/:parent/clientmetadata' -Method GET
$response = Invoke-RestMethod -Uri '{{baseUrl}}/v1/:parent/clientmetadata' -Method GET
import http.client
conn = http.client.HTTPSConnection("example.com")
conn.request("GET", "/baseUrl/v1/:parent/clientmetadata")
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/v1/:parent/clientmetadata"
response = requests.get(url)
print(response.json())
library(httr)
url <- "{{baseUrl}}/v1/:parent/clientmetadata"
response <- VERB("GET", url, content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/v1/:parent/clientmetadata")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
)
response = conn.get('/baseUrl/v1/:parent/clientmetadata') do |req|
end
puts response.status
puts response.body
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/v1/:parent/clientmetadata";
let client = reqwest::Client::new();
let response = client.get(url)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request GET \
--url {{baseUrl}}/v1/:parent/clientmetadata
http GET {{baseUrl}}/v1/:parent/clientmetadata
wget --quiet \
--method GET \
--output-document \
- {{baseUrl}}/v1/:parent/clientmetadata
import Foundation
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/v1/:parent/clientmetadata")! 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
integrations.projects.locations.appsScriptProjects.create
{{baseUrl}}/v1/:parent/appsScriptProjects
QUERY PARAMS
parent
BODY json
{
"appsScriptProject": "",
"authConfigId": ""
}
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/v1/:parent/appsScriptProjects");
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 \"appsScriptProject\": \"\",\n \"authConfigId\": \"\"\n}");
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/post "{{baseUrl}}/v1/:parent/appsScriptProjects" {:content-type :json
:form-params {:appsScriptProject ""
:authConfigId ""}})
require "http/client"
url = "{{baseUrl}}/v1/:parent/appsScriptProjects"
headers = HTTP::Headers{
"content-type" => "application/json"
}
reqBody = "{\n \"appsScriptProject\": \"\",\n \"authConfigId\": \"\"\n}"
response = HTTP::Client.post url, headers: headers, body: reqBody
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Post,
RequestUri = new Uri("{{baseUrl}}/v1/:parent/appsScriptProjects"),
Content = new StringContent("{\n \"appsScriptProject\": \"\",\n \"authConfigId\": \"\"\n}")
{
Headers =
{
ContentType = new MediaTypeHeaderValue("application/json")
}
}
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/v1/:parent/appsScriptProjects");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n \"appsScriptProject\": \"\",\n \"authConfigId\": \"\"\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/v1/:parent/appsScriptProjects"
payload := strings.NewReader("{\n \"appsScriptProject\": \"\",\n \"authConfigId\": \"\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("content-type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
POST /baseUrl/v1/:parent/appsScriptProjects HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 51
{
"appsScriptProject": "",
"authConfigId": ""
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/v1/:parent/appsScriptProjects")
.setHeader("content-type", "application/json")
.setBody("{\n \"appsScriptProject\": \"\",\n \"authConfigId\": \"\"\n}")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/v1/:parent/appsScriptProjects"))
.header("content-type", "application/json")
.method("POST", HttpRequest.BodyPublishers.ofString("{\n \"appsScriptProject\": \"\",\n \"authConfigId\": \"\"\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 \"appsScriptProject\": \"\",\n \"authConfigId\": \"\"\n}");
Request request = new Request.Builder()
.url("{{baseUrl}}/v1/:parent/appsScriptProjects")
.post(body)
.addHeader("content-type", "application/json")
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/v1/:parent/appsScriptProjects")
.header("content-type", "application/json")
.body("{\n \"appsScriptProject\": \"\",\n \"authConfigId\": \"\"\n}")
.asString();
const data = JSON.stringify({
appsScriptProject: '',
authConfigId: ''
});
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('POST', '{{baseUrl}}/v1/:parent/appsScriptProjects');
xhr.setRequestHeader('content-type', 'application/json');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'POST',
url: '{{baseUrl}}/v1/:parent/appsScriptProjects',
headers: {'content-type': 'application/json'},
data: {appsScriptProject: '', authConfigId: ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/v1/:parent/appsScriptProjects';
const options = {
method: 'POST',
headers: {'content-type': 'application/json'},
body: '{"appsScriptProject":"","authConfigId":""}'
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/v1/:parent/appsScriptProjects',
method: 'POST',
headers: {
'content-type': 'application/json'
},
processData: false,
data: '{\n "appsScriptProject": "",\n "authConfigId": ""\n}'
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n \"appsScriptProject\": \"\",\n \"authConfigId\": \"\"\n}")
val request = Request.Builder()
.url("{{baseUrl}}/v1/:parent/appsScriptProjects")
.post(body)
.addHeader("content-type", "application/json")
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'POST',
hostname: 'example.com',
port: null,
path: '/baseUrl/v1/:parent/appsScriptProjects',
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({appsScriptProject: '', authConfigId: ''}));
req.end();
const request = require('request');
const options = {
method: 'POST',
url: '{{baseUrl}}/v1/:parent/appsScriptProjects',
headers: {'content-type': 'application/json'},
body: {appsScriptProject: '', authConfigId: ''},
json: true
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('POST', '{{baseUrl}}/v1/:parent/appsScriptProjects');
req.headers({
'content-type': 'application/json'
});
req.type('json');
req.send({
appsScriptProject: '',
authConfigId: ''
});
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {
method: 'POST',
url: '{{baseUrl}}/v1/:parent/appsScriptProjects',
headers: {'content-type': 'application/json'},
data: {appsScriptProject: '', authConfigId: ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/v1/:parent/appsScriptProjects';
const options = {
method: 'POST',
headers: {'content-type': 'application/json'},
body: '{"appsScriptProject":"","authConfigId":""}'
};
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 = @{ @"appsScriptProject": @"",
@"authConfigId": @"" };
NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/v1/:parent/appsScriptProjects"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"POST"];
[request setAllHTTPHeaderFields:headers];
[request setHTTPBody:postData];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/v1/:parent/appsScriptProjects" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n \"appsScriptProject\": \"\",\n \"authConfigId\": \"\"\n}" in
Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/v1/:parent/appsScriptProjects",
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([
'appsScriptProject' => '',
'authConfigId' => ''
]),
CURLOPT_HTTPHEADER => [
"content-type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('POST', '{{baseUrl}}/v1/:parent/appsScriptProjects', [
'body' => '{
"appsScriptProject": "",
"authConfigId": ""
}',
'headers' => [
'content-type' => 'application/json',
],
]);
echo $response->getBody();
setUrl('{{baseUrl}}/v1/:parent/appsScriptProjects');
$request->setMethod(HTTP_METH_POST);
$request->setHeaders([
'content-type' => 'application/json'
]);
$request->setContentType('application/json');
$request->setBody(json_encode([
'appsScriptProject' => '',
'authConfigId' => ''
]));
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
append(json_encode([
'appsScriptProject' => '',
'authConfigId' => ''
]));
$request->setRequestUrl('{{baseUrl}}/v1/:parent/appsScriptProjects');
$request->setRequestMethod('POST');
$request->setBody($body);
$request->setHeaders([
'content-type' => 'application/json'
]);
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/v1/:parent/appsScriptProjects' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
"appsScriptProject": "",
"authConfigId": ""
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/v1/:parent/appsScriptProjects' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
"appsScriptProject": "",
"authConfigId": ""
}'
import http.client
conn = http.client.HTTPSConnection("example.com")
payload = "{\n \"appsScriptProject\": \"\",\n \"authConfigId\": \"\"\n}"
headers = { 'content-type': "application/json" }
conn.request("POST", "/baseUrl/v1/:parent/appsScriptProjects", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/v1/:parent/appsScriptProjects"
payload = {
"appsScriptProject": "",
"authConfigId": ""
}
headers = {"content-type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.json())
library(httr)
url <- "{{baseUrl}}/v1/:parent/appsScriptProjects"
payload <- "{\n \"appsScriptProject\": \"\",\n \"authConfigId\": \"\"\n}"
encode <- "json"
response <- VERB("POST", url, body = payload, content_type("application/json"), encode = encode)
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/v1/:parent/appsScriptProjects")
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 \"appsScriptProject\": \"\",\n \"authConfigId\": \"\"\n}"
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
headers: {'Content-Type' => 'application/json'}
)
response = conn.post('/baseUrl/v1/:parent/appsScriptProjects') do |req|
req.body = "{\n \"appsScriptProject\": \"\",\n \"authConfigId\": \"\"\n}"
end
puts response.status
puts response.body
use serde_json::json;
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/v1/:parent/appsScriptProjects";
let payload = json!({
"appsScriptProject": "",
"authConfigId": ""
});
let mut headers = reqwest::header::HeaderMap::new();
headers.insert("content-type", "application/json".parse().unwrap());
let client = reqwest::Client::new();
let response = client.post(url)
.headers(headers)
.json(&payload)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request POST \
--url {{baseUrl}}/v1/:parent/appsScriptProjects \
--header 'content-type: application/json' \
--data '{
"appsScriptProject": "",
"authConfigId": ""
}'
echo '{
"appsScriptProject": "",
"authConfigId": ""
}' | \
http POST {{baseUrl}}/v1/:parent/appsScriptProjects \
content-type:application/json
wget --quiet \
--method POST \
--header 'content-type: application/json' \
--body-data '{\n "appsScriptProject": "",\n "authConfigId": ""\n}' \
--output-document \
- {{baseUrl}}/v1/:parent/appsScriptProjects
import Foundation
let headers = ["content-type": "application/json"]
let parameters = [
"appsScriptProject": "",
"authConfigId": ""
] as [String : Any]
let postData = JSONSerialization.data(withJSONObject: parameters, options: [])
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/v1/:parent/appsScriptProjects")! 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
integrations.projects.locations.appsScriptProjects.link
{{baseUrl}}/v1/:parent/appsScriptProjects:link
QUERY PARAMS
parent
BODY json
{
"scriptId": ""
}
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/v1/:parent/appsScriptProjects:link");
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 \"scriptId\": \"\"\n}");
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/post "{{baseUrl}}/v1/:parent/appsScriptProjects:link" {:content-type :json
:form-params {:scriptId ""}})
require "http/client"
url = "{{baseUrl}}/v1/:parent/appsScriptProjects:link"
headers = HTTP::Headers{
"content-type" => "application/json"
}
reqBody = "{\n \"scriptId\": \"\"\n}"
response = HTTP::Client.post url, headers: headers, body: reqBody
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Post,
RequestUri = new Uri("{{baseUrl}}/v1/:parent/appsScriptProjects:link"),
Content = new StringContent("{\n \"scriptId\": \"\"\n}")
{
Headers =
{
ContentType = new MediaTypeHeaderValue("application/json")
}
}
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/v1/:parent/appsScriptProjects:link");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n \"scriptId\": \"\"\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/v1/:parent/appsScriptProjects:link"
payload := strings.NewReader("{\n \"scriptId\": \"\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("content-type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
POST /baseUrl/v1/:parent/appsScriptProjects:link HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 20
{
"scriptId": ""
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/v1/:parent/appsScriptProjects:link")
.setHeader("content-type", "application/json")
.setBody("{\n \"scriptId\": \"\"\n}")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/v1/:parent/appsScriptProjects:link"))
.header("content-type", "application/json")
.method("POST", HttpRequest.BodyPublishers.ofString("{\n \"scriptId\": \"\"\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 \"scriptId\": \"\"\n}");
Request request = new Request.Builder()
.url("{{baseUrl}}/v1/:parent/appsScriptProjects:link")
.post(body)
.addHeader("content-type", "application/json")
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/v1/:parent/appsScriptProjects:link")
.header("content-type", "application/json")
.body("{\n \"scriptId\": \"\"\n}")
.asString();
const data = JSON.stringify({
scriptId: ''
});
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('POST', '{{baseUrl}}/v1/:parent/appsScriptProjects:link');
xhr.setRequestHeader('content-type', 'application/json');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'POST',
url: '{{baseUrl}}/v1/:parent/appsScriptProjects:link',
headers: {'content-type': 'application/json'},
data: {scriptId: ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/v1/:parent/appsScriptProjects:link';
const options = {
method: 'POST',
headers: {'content-type': 'application/json'},
body: '{"scriptId":""}'
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/v1/:parent/appsScriptProjects:link',
method: 'POST',
headers: {
'content-type': 'application/json'
},
processData: false,
data: '{\n "scriptId": ""\n}'
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n \"scriptId\": \"\"\n}")
val request = Request.Builder()
.url("{{baseUrl}}/v1/:parent/appsScriptProjects:link")
.post(body)
.addHeader("content-type", "application/json")
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'POST',
hostname: 'example.com',
port: null,
path: '/baseUrl/v1/:parent/appsScriptProjects:link',
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({scriptId: ''}));
req.end();
const request = require('request');
const options = {
method: 'POST',
url: '{{baseUrl}}/v1/:parent/appsScriptProjects:link',
headers: {'content-type': 'application/json'},
body: {scriptId: ''},
json: true
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('POST', '{{baseUrl}}/v1/:parent/appsScriptProjects:link');
req.headers({
'content-type': 'application/json'
});
req.type('json');
req.send({
scriptId: ''
});
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {
method: 'POST',
url: '{{baseUrl}}/v1/:parent/appsScriptProjects:link',
headers: {'content-type': 'application/json'},
data: {scriptId: ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/v1/:parent/appsScriptProjects:link';
const options = {
method: 'POST',
headers: {'content-type': 'application/json'},
body: '{"scriptId":""}'
};
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 = @{ @"scriptId": @"" };
NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/v1/:parent/appsScriptProjects:link"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"POST"];
[request setAllHTTPHeaderFields:headers];
[request setHTTPBody:postData];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/v1/:parent/appsScriptProjects:link" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n \"scriptId\": \"\"\n}" in
Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/v1/:parent/appsScriptProjects:link",
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([
'scriptId' => ''
]),
CURLOPT_HTTPHEADER => [
"content-type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('POST', '{{baseUrl}}/v1/:parent/appsScriptProjects:link', [
'body' => '{
"scriptId": ""
}',
'headers' => [
'content-type' => 'application/json',
],
]);
echo $response->getBody();
setUrl('{{baseUrl}}/v1/:parent/appsScriptProjects:link');
$request->setMethod(HTTP_METH_POST);
$request->setHeaders([
'content-type' => 'application/json'
]);
$request->setContentType('application/json');
$request->setBody(json_encode([
'scriptId' => ''
]));
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
append(json_encode([
'scriptId' => ''
]));
$request->setRequestUrl('{{baseUrl}}/v1/:parent/appsScriptProjects:link');
$request->setRequestMethod('POST');
$request->setBody($body);
$request->setHeaders([
'content-type' => 'application/json'
]);
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/v1/:parent/appsScriptProjects:link' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
"scriptId": ""
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/v1/:parent/appsScriptProjects:link' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
"scriptId": ""
}'
import http.client
conn = http.client.HTTPSConnection("example.com")
payload = "{\n \"scriptId\": \"\"\n}"
headers = { 'content-type': "application/json" }
conn.request("POST", "/baseUrl/v1/:parent/appsScriptProjects:link", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/v1/:parent/appsScriptProjects:link"
payload = { "scriptId": "" }
headers = {"content-type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.json())
library(httr)
url <- "{{baseUrl}}/v1/:parent/appsScriptProjects:link"
payload <- "{\n \"scriptId\": \"\"\n}"
encode <- "json"
response <- VERB("POST", url, body = payload, content_type("application/json"), encode = encode)
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/v1/:parent/appsScriptProjects:link")
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 \"scriptId\": \"\"\n}"
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
headers: {'Content-Type' => 'application/json'}
)
response = conn.post('/baseUrl/v1/:parent/appsScriptProjects:link') do |req|
req.body = "{\n \"scriptId\": \"\"\n}"
end
puts response.status
puts response.body
use serde_json::json;
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/v1/:parent/appsScriptProjects:link";
let payload = json!({"scriptId": ""});
let mut headers = reqwest::header::HeaderMap::new();
headers.insert("content-type", "application/json".parse().unwrap());
let client = reqwest::Client::new();
let response = client.post(url)
.headers(headers)
.json(&payload)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request POST \
--url {{baseUrl}}/v1/:parent/appsScriptProjects:link \
--header 'content-type: application/json' \
--data '{
"scriptId": ""
}'
echo '{
"scriptId": ""
}' | \
http POST {{baseUrl}}/v1/:parent/appsScriptProjects:link \
content-type:application/json
wget --quiet \
--method POST \
--header 'content-type: application/json' \
--body-data '{\n "scriptId": ""\n}' \
--output-document \
- {{baseUrl}}/v1/:parent/appsScriptProjects:link
import Foundation
let headers = ["content-type": "application/json"]
let parameters = ["scriptId": ""] as [String : Any]
let postData = JSONSerialization.data(withJSONObject: parameters, options: [])
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/v1/:parent/appsScriptProjects:link")! 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
integrations.projects.locations.clients.deprovision
{{baseUrl}}/v1/:parent/clients:deprovision
QUERY PARAMS
parent
BODY json
{}
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/v1/:parent/clients:deprovision");
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "content-type: application/json");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
curl_easy_setopt(hnd, CURLOPT_POSTFIELDS, "{}");
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/post "{{baseUrl}}/v1/:parent/clients:deprovision" {:content-type :json})
require "http/client"
url = "{{baseUrl}}/v1/:parent/clients:deprovision"
headers = HTTP::Headers{
"content-type" => "application/json"
}
reqBody = "{}"
response = HTTP::Client.post url, headers: headers, body: reqBody
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Post,
RequestUri = new Uri("{{baseUrl}}/v1/:parent/clients:deprovision"),
Content = new StringContent("{}")
{
Headers =
{
ContentType = new MediaTypeHeaderValue("application/json")
}
}
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/v1/:parent/clients:deprovision");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{}", ParameterType.RequestBody);
var response = client.Execute(request);
package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/v1/:parent/clients:deprovision"
payload := strings.NewReader("{}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("content-type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
POST /baseUrl/v1/:parent/clients:deprovision HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 2
{}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/v1/:parent/clients:deprovision")
.setHeader("content-type", "application/json")
.setBody("{}")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/v1/:parent/clients:deprovision"))
.header("content-type", "application/json")
.method("POST", HttpRequest.BodyPublishers.ofString("{}"))
.build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();
MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{}");
Request request = new Request.Builder()
.url("{{baseUrl}}/v1/:parent/clients:deprovision")
.post(body)
.addHeader("content-type", "application/json")
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/v1/:parent/clients:deprovision")
.header("content-type", "application/json")
.body("{}")
.asString();
const data = JSON.stringify({});
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('POST', '{{baseUrl}}/v1/:parent/clients:deprovision');
xhr.setRequestHeader('content-type', 'application/json');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'POST',
url: '{{baseUrl}}/v1/:parent/clients:deprovision',
headers: {'content-type': 'application/json'},
data: {}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/v1/:parent/clients:deprovision';
const options = {method: 'POST', headers: {'content-type': 'application/json'}, body: '{}'};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/v1/:parent/clients:deprovision',
method: 'POST',
headers: {
'content-type': 'application/json'
},
processData: false,
data: '{}'
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{}")
val request = Request.Builder()
.url("{{baseUrl}}/v1/:parent/clients:deprovision")
.post(body)
.addHeader("content-type", "application/json")
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'POST',
hostname: 'example.com',
port: null,
path: '/baseUrl/v1/:parent/clients:deprovision',
headers: {
'content-type': 'application/json'
}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.write(JSON.stringify({}));
req.end();
const request = require('request');
const options = {
method: 'POST',
url: '{{baseUrl}}/v1/:parent/clients:deprovision',
headers: {'content-type': 'application/json'},
body: {},
json: true
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('POST', '{{baseUrl}}/v1/:parent/clients:deprovision');
req.headers({
'content-type': 'application/json'
});
req.type('json');
req.send({});
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {
method: 'POST',
url: '{{baseUrl}}/v1/:parent/clients:deprovision',
headers: {'content-type': 'application/json'},
data: {}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/v1/:parent/clients:deprovision';
const options = {method: 'POST', headers: {'content-type': 'application/json'}, body: '{}'};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSDictionary *headers = @{ @"content-type": @"application/json" };
NSDictionary *parameters = @{ };
NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/v1/:parent/clients:deprovision"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"POST"];
[request setAllHTTPHeaderFields:headers];
[request setHTTPBody:postData];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/v1/:parent/clients:deprovision" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{}" in
Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/v1/:parent/clients:deprovision",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
]),
CURLOPT_HTTPHEADER => [
"content-type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('POST', '{{baseUrl}}/v1/:parent/clients:deprovision', [
'body' => '{}',
'headers' => [
'content-type' => 'application/json',
],
]);
echo $response->getBody();
setUrl('{{baseUrl}}/v1/:parent/clients:deprovision');
$request->setMethod(HTTP_METH_POST);
$request->setHeaders([
'content-type' => 'application/json'
]);
$request->setContentType('application/json');
$request->setBody(json_encode([
]));
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
append(json_encode([
]));
$request->setRequestUrl('{{baseUrl}}/v1/:parent/clients:deprovision');
$request->setRequestMethod('POST');
$request->setBody($body);
$request->setHeaders([
'content-type' => 'application/json'
]);
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/v1/:parent/clients:deprovision' -Method POST -Headers $headers -ContentType 'application/json' -Body '{}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/v1/:parent/clients:deprovision' -Method POST -Headers $headers -ContentType 'application/json' -Body '{}'
import http.client
conn = http.client.HTTPSConnection("example.com")
payload = "{}"
headers = { 'content-type': "application/json" }
conn.request("POST", "/baseUrl/v1/:parent/clients:deprovision", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/v1/:parent/clients:deprovision"
payload = {}
headers = {"content-type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.json())
library(httr)
url <- "{{baseUrl}}/v1/:parent/clients:deprovision"
payload <- "{}"
encode <- "json"
response <- VERB("POST", url, body = payload, content_type("application/json"), encode = encode)
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/v1/:parent/clients:deprovision")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["content-type"] = 'application/json'
request.body = "{}"
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
headers: {'Content-Type' => 'application/json'}
)
response = conn.post('/baseUrl/v1/:parent/clients:deprovision') do |req|
req.body = "{}"
end
puts response.status
puts response.body
use serde_json::json;
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/v1/:parent/clients:deprovision";
let payload = json!({});
let mut headers = reqwest::header::HeaderMap::new();
headers.insert("content-type", "application/json".parse().unwrap());
let client = reqwest::Client::new();
let response = client.post(url)
.headers(headers)
.json(&payload)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request POST \
--url {{baseUrl}}/v1/:parent/clients:deprovision \
--header 'content-type: application/json' \
--data '{}'
echo '{}' | \
http POST {{baseUrl}}/v1/:parent/clients:deprovision \
content-type:application/json
wget --quiet \
--method POST \
--header 'content-type: application/json' \
--body-data '{}' \
--output-document \
- {{baseUrl}}/v1/:parent/clients:deprovision
import Foundation
let headers = ["content-type": "application/json"]
let parameters = [] as [String : Any]
let postData = JSONSerialization.data(withJSONObject: parameters, options: [])
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/v1/:parent/clients:deprovision")! 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
integrations.projects.locations.clients.provision
{{baseUrl}}/v1/:parent/clients:provision
QUERY PARAMS
parent
BODY json
{
"cloudKmsConfig": {
"key": "",
"keyVersion": "",
"kmsLocation": "",
"kmsProjectId": "",
"kmsRing": ""
},
"createSampleWorkflows": false,
"provisionGmek": false
}
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/v1/:parent/clients:provision");
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 \"cloudKmsConfig\": {\n \"key\": \"\",\n \"keyVersion\": \"\",\n \"kmsLocation\": \"\",\n \"kmsProjectId\": \"\",\n \"kmsRing\": \"\"\n },\n \"createSampleWorkflows\": false,\n \"provisionGmek\": false\n}");
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/post "{{baseUrl}}/v1/:parent/clients:provision" {:content-type :json
:form-params {:cloudKmsConfig {:key ""
:keyVersion ""
:kmsLocation ""
:kmsProjectId ""
:kmsRing ""}
:createSampleWorkflows false
:provisionGmek false}})
require "http/client"
url = "{{baseUrl}}/v1/:parent/clients:provision"
headers = HTTP::Headers{
"content-type" => "application/json"
}
reqBody = "{\n \"cloudKmsConfig\": {\n \"key\": \"\",\n \"keyVersion\": \"\",\n \"kmsLocation\": \"\",\n \"kmsProjectId\": \"\",\n \"kmsRing\": \"\"\n },\n \"createSampleWorkflows\": false,\n \"provisionGmek\": false\n}"
response = HTTP::Client.post url, headers: headers, body: reqBody
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Post,
RequestUri = new Uri("{{baseUrl}}/v1/:parent/clients:provision"),
Content = new StringContent("{\n \"cloudKmsConfig\": {\n \"key\": \"\",\n \"keyVersion\": \"\",\n \"kmsLocation\": \"\",\n \"kmsProjectId\": \"\",\n \"kmsRing\": \"\"\n },\n \"createSampleWorkflows\": false,\n \"provisionGmek\": false\n}")
{
Headers =
{
ContentType = new MediaTypeHeaderValue("application/json")
}
}
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/v1/:parent/clients:provision");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n \"cloudKmsConfig\": {\n \"key\": \"\",\n \"keyVersion\": \"\",\n \"kmsLocation\": \"\",\n \"kmsProjectId\": \"\",\n \"kmsRing\": \"\"\n },\n \"createSampleWorkflows\": false,\n \"provisionGmek\": false\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/v1/:parent/clients:provision"
payload := strings.NewReader("{\n \"cloudKmsConfig\": {\n \"key\": \"\",\n \"keyVersion\": \"\",\n \"kmsLocation\": \"\",\n \"kmsProjectId\": \"\",\n \"kmsRing\": \"\"\n },\n \"createSampleWorkflows\": false,\n \"provisionGmek\": false\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("content-type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
POST /baseUrl/v1/:parent/clients:provision HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 191
{
"cloudKmsConfig": {
"key": "",
"keyVersion": "",
"kmsLocation": "",
"kmsProjectId": "",
"kmsRing": ""
},
"createSampleWorkflows": false,
"provisionGmek": false
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/v1/:parent/clients:provision")
.setHeader("content-type", "application/json")
.setBody("{\n \"cloudKmsConfig\": {\n \"key\": \"\",\n \"keyVersion\": \"\",\n \"kmsLocation\": \"\",\n \"kmsProjectId\": \"\",\n \"kmsRing\": \"\"\n },\n \"createSampleWorkflows\": false,\n \"provisionGmek\": false\n}")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/v1/:parent/clients:provision"))
.header("content-type", "application/json")
.method("POST", HttpRequest.BodyPublishers.ofString("{\n \"cloudKmsConfig\": {\n \"key\": \"\",\n \"keyVersion\": \"\",\n \"kmsLocation\": \"\",\n \"kmsProjectId\": \"\",\n \"kmsRing\": \"\"\n },\n \"createSampleWorkflows\": false,\n \"provisionGmek\": false\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 \"cloudKmsConfig\": {\n \"key\": \"\",\n \"keyVersion\": \"\",\n \"kmsLocation\": \"\",\n \"kmsProjectId\": \"\",\n \"kmsRing\": \"\"\n },\n \"createSampleWorkflows\": false,\n \"provisionGmek\": false\n}");
Request request = new Request.Builder()
.url("{{baseUrl}}/v1/:parent/clients:provision")
.post(body)
.addHeader("content-type", "application/json")
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/v1/:parent/clients:provision")
.header("content-type", "application/json")
.body("{\n \"cloudKmsConfig\": {\n \"key\": \"\",\n \"keyVersion\": \"\",\n \"kmsLocation\": \"\",\n \"kmsProjectId\": \"\",\n \"kmsRing\": \"\"\n },\n \"createSampleWorkflows\": false,\n \"provisionGmek\": false\n}")
.asString();
const data = JSON.stringify({
cloudKmsConfig: {
key: '',
keyVersion: '',
kmsLocation: '',
kmsProjectId: '',
kmsRing: ''
},
createSampleWorkflows: false,
provisionGmek: false
});
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('POST', '{{baseUrl}}/v1/:parent/clients:provision');
xhr.setRequestHeader('content-type', 'application/json');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'POST',
url: '{{baseUrl}}/v1/:parent/clients:provision',
headers: {'content-type': 'application/json'},
data: {
cloudKmsConfig: {key: '', keyVersion: '', kmsLocation: '', kmsProjectId: '', kmsRing: ''},
createSampleWorkflows: false,
provisionGmek: false
}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/v1/:parent/clients:provision';
const options = {
method: 'POST',
headers: {'content-type': 'application/json'},
body: '{"cloudKmsConfig":{"key":"","keyVersion":"","kmsLocation":"","kmsProjectId":"","kmsRing":""},"createSampleWorkflows":false,"provisionGmek":false}'
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/v1/:parent/clients:provision',
method: 'POST',
headers: {
'content-type': 'application/json'
},
processData: false,
data: '{\n "cloudKmsConfig": {\n "key": "",\n "keyVersion": "",\n "kmsLocation": "",\n "kmsProjectId": "",\n "kmsRing": ""\n },\n "createSampleWorkflows": false,\n "provisionGmek": false\n}'
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n \"cloudKmsConfig\": {\n \"key\": \"\",\n \"keyVersion\": \"\",\n \"kmsLocation\": \"\",\n \"kmsProjectId\": \"\",\n \"kmsRing\": \"\"\n },\n \"createSampleWorkflows\": false,\n \"provisionGmek\": false\n}")
val request = Request.Builder()
.url("{{baseUrl}}/v1/:parent/clients:provision")
.post(body)
.addHeader("content-type", "application/json")
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'POST',
hostname: 'example.com',
port: null,
path: '/baseUrl/v1/:parent/clients:provision',
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({
cloudKmsConfig: {key: '', keyVersion: '', kmsLocation: '', kmsProjectId: '', kmsRing: ''},
createSampleWorkflows: false,
provisionGmek: false
}));
req.end();
const request = require('request');
const options = {
method: 'POST',
url: '{{baseUrl}}/v1/:parent/clients:provision',
headers: {'content-type': 'application/json'},
body: {
cloudKmsConfig: {key: '', keyVersion: '', kmsLocation: '', kmsProjectId: '', kmsRing: ''},
createSampleWorkflows: false,
provisionGmek: false
},
json: true
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('POST', '{{baseUrl}}/v1/:parent/clients:provision');
req.headers({
'content-type': 'application/json'
});
req.type('json');
req.send({
cloudKmsConfig: {
key: '',
keyVersion: '',
kmsLocation: '',
kmsProjectId: '',
kmsRing: ''
},
createSampleWorkflows: false,
provisionGmek: false
});
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {
method: 'POST',
url: '{{baseUrl}}/v1/:parent/clients:provision',
headers: {'content-type': 'application/json'},
data: {
cloudKmsConfig: {key: '', keyVersion: '', kmsLocation: '', kmsProjectId: '', kmsRing: ''},
createSampleWorkflows: false,
provisionGmek: false
}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/v1/:parent/clients:provision';
const options = {
method: 'POST',
headers: {'content-type': 'application/json'},
body: '{"cloudKmsConfig":{"key":"","keyVersion":"","kmsLocation":"","kmsProjectId":"","kmsRing":""},"createSampleWorkflows":false,"provisionGmek":false}'
};
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 = @{ @"cloudKmsConfig": @{ @"key": @"", @"keyVersion": @"", @"kmsLocation": @"", @"kmsProjectId": @"", @"kmsRing": @"" },
@"createSampleWorkflows": @NO,
@"provisionGmek": @NO };
NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/v1/:parent/clients:provision"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"POST"];
[request setAllHTTPHeaderFields:headers];
[request setHTTPBody:postData];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/v1/:parent/clients:provision" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n \"cloudKmsConfig\": {\n \"key\": \"\",\n \"keyVersion\": \"\",\n \"kmsLocation\": \"\",\n \"kmsProjectId\": \"\",\n \"kmsRing\": \"\"\n },\n \"createSampleWorkflows\": false,\n \"provisionGmek\": false\n}" in
Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/v1/:parent/clients:provision",
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([
'cloudKmsConfig' => [
'key' => '',
'keyVersion' => '',
'kmsLocation' => '',
'kmsProjectId' => '',
'kmsRing' => ''
],
'createSampleWorkflows' => null,
'provisionGmek' => null
]),
CURLOPT_HTTPHEADER => [
"content-type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('POST', '{{baseUrl}}/v1/:parent/clients:provision', [
'body' => '{
"cloudKmsConfig": {
"key": "",
"keyVersion": "",
"kmsLocation": "",
"kmsProjectId": "",
"kmsRing": ""
},
"createSampleWorkflows": false,
"provisionGmek": false
}',
'headers' => [
'content-type' => 'application/json',
],
]);
echo $response->getBody();
setUrl('{{baseUrl}}/v1/:parent/clients:provision');
$request->setMethod(HTTP_METH_POST);
$request->setHeaders([
'content-type' => 'application/json'
]);
$request->setContentType('application/json');
$request->setBody(json_encode([
'cloudKmsConfig' => [
'key' => '',
'keyVersion' => '',
'kmsLocation' => '',
'kmsProjectId' => '',
'kmsRing' => ''
],
'createSampleWorkflows' => null,
'provisionGmek' => null
]));
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
append(json_encode([
'cloudKmsConfig' => [
'key' => '',
'keyVersion' => '',
'kmsLocation' => '',
'kmsProjectId' => '',
'kmsRing' => ''
],
'createSampleWorkflows' => null,
'provisionGmek' => null
]));
$request->setRequestUrl('{{baseUrl}}/v1/:parent/clients:provision');
$request->setRequestMethod('POST');
$request->setBody($body);
$request->setHeaders([
'content-type' => 'application/json'
]);
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/v1/:parent/clients:provision' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
"cloudKmsConfig": {
"key": "",
"keyVersion": "",
"kmsLocation": "",
"kmsProjectId": "",
"kmsRing": ""
},
"createSampleWorkflows": false,
"provisionGmek": false
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/v1/:parent/clients:provision' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
"cloudKmsConfig": {
"key": "",
"keyVersion": "",
"kmsLocation": "",
"kmsProjectId": "",
"kmsRing": ""
},
"createSampleWorkflows": false,
"provisionGmek": false
}'
import http.client
conn = http.client.HTTPSConnection("example.com")
payload = "{\n \"cloudKmsConfig\": {\n \"key\": \"\",\n \"keyVersion\": \"\",\n \"kmsLocation\": \"\",\n \"kmsProjectId\": \"\",\n \"kmsRing\": \"\"\n },\n \"createSampleWorkflows\": false,\n \"provisionGmek\": false\n}"
headers = { 'content-type': "application/json" }
conn.request("POST", "/baseUrl/v1/:parent/clients:provision", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/v1/:parent/clients:provision"
payload = {
"cloudKmsConfig": {
"key": "",
"keyVersion": "",
"kmsLocation": "",
"kmsProjectId": "",
"kmsRing": ""
},
"createSampleWorkflows": False,
"provisionGmek": False
}
headers = {"content-type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.json())
library(httr)
url <- "{{baseUrl}}/v1/:parent/clients:provision"
payload <- "{\n \"cloudKmsConfig\": {\n \"key\": \"\",\n \"keyVersion\": \"\",\n \"kmsLocation\": \"\",\n \"kmsProjectId\": \"\",\n \"kmsRing\": \"\"\n },\n \"createSampleWorkflows\": false,\n \"provisionGmek\": false\n}"
encode <- "json"
response <- VERB("POST", url, body = payload, content_type("application/json"), encode = encode)
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/v1/:parent/clients:provision")
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 \"cloudKmsConfig\": {\n \"key\": \"\",\n \"keyVersion\": \"\",\n \"kmsLocation\": \"\",\n \"kmsProjectId\": \"\",\n \"kmsRing\": \"\"\n },\n \"createSampleWorkflows\": false,\n \"provisionGmek\": false\n}"
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
headers: {'Content-Type' => 'application/json'}
)
response = conn.post('/baseUrl/v1/:parent/clients:provision') do |req|
req.body = "{\n \"cloudKmsConfig\": {\n \"key\": \"\",\n \"keyVersion\": \"\",\n \"kmsLocation\": \"\",\n \"kmsProjectId\": \"\",\n \"kmsRing\": \"\"\n },\n \"createSampleWorkflows\": false,\n \"provisionGmek\": false\n}"
end
puts response.status
puts response.body
use serde_json::json;
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/v1/:parent/clients:provision";
let payload = json!({
"cloudKmsConfig": json!({
"key": "",
"keyVersion": "",
"kmsLocation": "",
"kmsProjectId": "",
"kmsRing": ""
}),
"createSampleWorkflows": false,
"provisionGmek": false
});
let mut headers = reqwest::header::HeaderMap::new();
headers.insert("content-type", "application/json".parse().unwrap());
let client = reqwest::Client::new();
let response = client.post(url)
.headers(headers)
.json(&payload)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request POST \
--url {{baseUrl}}/v1/:parent/clients:provision \
--header 'content-type: application/json' \
--data '{
"cloudKmsConfig": {
"key": "",
"keyVersion": "",
"kmsLocation": "",
"kmsProjectId": "",
"kmsRing": ""
},
"createSampleWorkflows": false,
"provisionGmek": false
}'
echo '{
"cloudKmsConfig": {
"key": "",
"keyVersion": "",
"kmsLocation": "",
"kmsProjectId": "",
"kmsRing": ""
},
"createSampleWorkflows": false,
"provisionGmek": false
}' | \
http POST {{baseUrl}}/v1/:parent/clients:provision \
content-type:application/json
wget --quiet \
--method POST \
--header 'content-type: application/json' \
--body-data '{\n "cloudKmsConfig": {\n "key": "",\n "keyVersion": "",\n "kmsLocation": "",\n "kmsProjectId": "",\n "kmsRing": ""\n },\n "createSampleWorkflows": false,\n "provisionGmek": false\n}' \
--output-document \
- {{baseUrl}}/v1/:parent/clients:provision
import Foundation
let headers = ["content-type": "application/json"]
let parameters = [
"cloudKmsConfig": [
"key": "",
"keyVersion": "",
"kmsLocation": "",
"kmsProjectId": "",
"kmsRing": ""
],
"createSampleWorkflows": false,
"provisionGmek": false
] as [String : Any]
let postData = JSONSerialization.data(withJSONObject: parameters, options: [])
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/v1/:parent/clients:provision")! 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
integrations.projects.locations.clients.switch
{{baseUrl}}/v1/:parent/clients:switch
QUERY PARAMS
parent
BODY json
{
"cloudKmsConfig": {
"key": "",
"keyVersion": "",
"kmsLocation": "",
"kmsProjectId": "",
"kmsRing": ""
}
}
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/v1/:parent/clients:switch");
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 \"cloudKmsConfig\": {\n \"key\": \"\",\n \"keyVersion\": \"\",\n \"kmsLocation\": \"\",\n \"kmsProjectId\": \"\",\n \"kmsRing\": \"\"\n }\n}");
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/post "{{baseUrl}}/v1/:parent/clients:switch" {:content-type :json
:form-params {:cloudKmsConfig {:key ""
:keyVersion ""
:kmsLocation ""
:kmsProjectId ""
:kmsRing ""}}})
require "http/client"
url = "{{baseUrl}}/v1/:parent/clients:switch"
headers = HTTP::Headers{
"content-type" => "application/json"
}
reqBody = "{\n \"cloudKmsConfig\": {\n \"key\": \"\",\n \"keyVersion\": \"\",\n \"kmsLocation\": \"\",\n \"kmsProjectId\": \"\",\n \"kmsRing\": \"\"\n }\n}"
response = HTTP::Client.post url, headers: headers, body: reqBody
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Post,
RequestUri = new Uri("{{baseUrl}}/v1/:parent/clients:switch"),
Content = new StringContent("{\n \"cloudKmsConfig\": {\n \"key\": \"\",\n \"keyVersion\": \"\",\n \"kmsLocation\": \"\",\n \"kmsProjectId\": \"\",\n \"kmsRing\": \"\"\n }\n}")
{
Headers =
{
ContentType = new MediaTypeHeaderValue("application/json")
}
}
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/v1/:parent/clients:switch");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n \"cloudKmsConfig\": {\n \"key\": \"\",\n \"keyVersion\": \"\",\n \"kmsLocation\": \"\",\n \"kmsProjectId\": \"\",\n \"kmsRing\": \"\"\n }\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/v1/:parent/clients:switch"
payload := strings.NewReader("{\n \"cloudKmsConfig\": {\n \"key\": \"\",\n \"keyVersion\": \"\",\n \"kmsLocation\": \"\",\n \"kmsProjectId\": \"\",\n \"kmsRing\": \"\"\n }\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("content-type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
POST /baseUrl/v1/:parent/clients:switch HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 131
{
"cloudKmsConfig": {
"key": "",
"keyVersion": "",
"kmsLocation": "",
"kmsProjectId": "",
"kmsRing": ""
}
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/v1/:parent/clients:switch")
.setHeader("content-type", "application/json")
.setBody("{\n \"cloudKmsConfig\": {\n \"key\": \"\",\n \"keyVersion\": \"\",\n \"kmsLocation\": \"\",\n \"kmsProjectId\": \"\",\n \"kmsRing\": \"\"\n }\n}")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/v1/:parent/clients:switch"))
.header("content-type", "application/json")
.method("POST", HttpRequest.BodyPublishers.ofString("{\n \"cloudKmsConfig\": {\n \"key\": \"\",\n \"keyVersion\": \"\",\n \"kmsLocation\": \"\",\n \"kmsProjectId\": \"\",\n \"kmsRing\": \"\"\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 \"cloudKmsConfig\": {\n \"key\": \"\",\n \"keyVersion\": \"\",\n \"kmsLocation\": \"\",\n \"kmsProjectId\": \"\",\n \"kmsRing\": \"\"\n }\n}");
Request request = new Request.Builder()
.url("{{baseUrl}}/v1/:parent/clients:switch")
.post(body)
.addHeader("content-type", "application/json")
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/v1/:parent/clients:switch")
.header("content-type", "application/json")
.body("{\n \"cloudKmsConfig\": {\n \"key\": \"\",\n \"keyVersion\": \"\",\n \"kmsLocation\": \"\",\n \"kmsProjectId\": \"\",\n \"kmsRing\": \"\"\n }\n}")
.asString();
const data = JSON.stringify({
cloudKmsConfig: {
key: '',
keyVersion: '',
kmsLocation: '',
kmsProjectId: '',
kmsRing: ''
}
});
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('POST', '{{baseUrl}}/v1/:parent/clients:switch');
xhr.setRequestHeader('content-type', 'application/json');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'POST',
url: '{{baseUrl}}/v1/:parent/clients:switch',
headers: {'content-type': 'application/json'},
data: {
cloudKmsConfig: {key: '', keyVersion: '', kmsLocation: '', kmsProjectId: '', kmsRing: ''}
}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/v1/:parent/clients:switch';
const options = {
method: 'POST',
headers: {'content-type': 'application/json'},
body: '{"cloudKmsConfig":{"key":"","keyVersion":"","kmsLocation":"","kmsProjectId":"","kmsRing":""}}'
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/v1/:parent/clients:switch',
method: 'POST',
headers: {
'content-type': 'application/json'
},
processData: false,
data: '{\n "cloudKmsConfig": {\n "key": "",\n "keyVersion": "",\n "kmsLocation": "",\n "kmsProjectId": "",\n "kmsRing": ""\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 \"cloudKmsConfig\": {\n \"key\": \"\",\n \"keyVersion\": \"\",\n \"kmsLocation\": \"\",\n \"kmsProjectId\": \"\",\n \"kmsRing\": \"\"\n }\n}")
val request = Request.Builder()
.url("{{baseUrl}}/v1/:parent/clients:switch")
.post(body)
.addHeader("content-type", "application/json")
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'POST',
hostname: 'example.com',
port: null,
path: '/baseUrl/v1/:parent/clients:switch',
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({
cloudKmsConfig: {key: '', keyVersion: '', kmsLocation: '', kmsProjectId: '', kmsRing: ''}
}));
req.end();
const request = require('request');
const options = {
method: 'POST',
url: '{{baseUrl}}/v1/:parent/clients:switch',
headers: {'content-type': 'application/json'},
body: {
cloudKmsConfig: {key: '', keyVersion: '', kmsLocation: '', kmsProjectId: '', kmsRing: ''}
},
json: true
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('POST', '{{baseUrl}}/v1/:parent/clients:switch');
req.headers({
'content-type': 'application/json'
});
req.type('json');
req.send({
cloudKmsConfig: {
key: '',
keyVersion: '',
kmsLocation: '',
kmsProjectId: '',
kmsRing: ''
}
});
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {
method: 'POST',
url: '{{baseUrl}}/v1/:parent/clients:switch',
headers: {'content-type': 'application/json'},
data: {
cloudKmsConfig: {key: '', keyVersion: '', kmsLocation: '', kmsProjectId: '', kmsRing: ''}
}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/v1/:parent/clients:switch';
const options = {
method: 'POST',
headers: {'content-type': 'application/json'},
body: '{"cloudKmsConfig":{"key":"","keyVersion":"","kmsLocation":"","kmsProjectId":"","kmsRing":""}}'
};
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 = @{ @"cloudKmsConfig": @{ @"key": @"", @"keyVersion": @"", @"kmsLocation": @"", @"kmsProjectId": @"", @"kmsRing": @"" } };
NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/v1/:parent/clients:switch"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"POST"];
[request setAllHTTPHeaderFields:headers];
[request setHTTPBody:postData];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/v1/:parent/clients:switch" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n \"cloudKmsConfig\": {\n \"key\": \"\",\n \"keyVersion\": \"\",\n \"kmsLocation\": \"\",\n \"kmsProjectId\": \"\",\n \"kmsRing\": \"\"\n }\n}" in
Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/v1/:parent/clients:switch",
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([
'cloudKmsConfig' => [
'key' => '',
'keyVersion' => '',
'kmsLocation' => '',
'kmsProjectId' => '',
'kmsRing' => ''
]
]),
CURLOPT_HTTPHEADER => [
"content-type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('POST', '{{baseUrl}}/v1/:parent/clients:switch', [
'body' => '{
"cloudKmsConfig": {
"key": "",
"keyVersion": "",
"kmsLocation": "",
"kmsProjectId": "",
"kmsRing": ""
}
}',
'headers' => [
'content-type' => 'application/json',
],
]);
echo $response->getBody();
setUrl('{{baseUrl}}/v1/:parent/clients:switch');
$request->setMethod(HTTP_METH_POST);
$request->setHeaders([
'content-type' => 'application/json'
]);
$request->setContentType('application/json');
$request->setBody(json_encode([
'cloudKmsConfig' => [
'key' => '',
'keyVersion' => '',
'kmsLocation' => '',
'kmsProjectId' => '',
'kmsRing' => ''
]
]));
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
append(json_encode([
'cloudKmsConfig' => [
'key' => '',
'keyVersion' => '',
'kmsLocation' => '',
'kmsProjectId' => '',
'kmsRing' => ''
]
]));
$request->setRequestUrl('{{baseUrl}}/v1/:parent/clients:switch');
$request->setRequestMethod('POST');
$request->setBody($body);
$request->setHeaders([
'content-type' => 'application/json'
]);
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/v1/:parent/clients:switch' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
"cloudKmsConfig": {
"key": "",
"keyVersion": "",
"kmsLocation": "",
"kmsProjectId": "",
"kmsRing": ""
}
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/v1/:parent/clients:switch' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
"cloudKmsConfig": {
"key": "",
"keyVersion": "",
"kmsLocation": "",
"kmsProjectId": "",
"kmsRing": ""
}
}'
import http.client
conn = http.client.HTTPSConnection("example.com")
payload = "{\n \"cloudKmsConfig\": {\n \"key\": \"\",\n \"keyVersion\": \"\",\n \"kmsLocation\": \"\",\n \"kmsProjectId\": \"\",\n \"kmsRing\": \"\"\n }\n}"
headers = { 'content-type': "application/json" }
conn.request("POST", "/baseUrl/v1/:parent/clients:switch", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/v1/:parent/clients:switch"
payload = { "cloudKmsConfig": {
"key": "",
"keyVersion": "",
"kmsLocation": "",
"kmsProjectId": "",
"kmsRing": ""
} }
headers = {"content-type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.json())
library(httr)
url <- "{{baseUrl}}/v1/:parent/clients:switch"
payload <- "{\n \"cloudKmsConfig\": {\n \"key\": \"\",\n \"keyVersion\": \"\",\n \"kmsLocation\": \"\",\n \"kmsProjectId\": \"\",\n \"kmsRing\": \"\"\n }\n}"
encode <- "json"
response <- VERB("POST", url, body = payload, content_type("application/json"), encode = encode)
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/v1/:parent/clients:switch")
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 \"cloudKmsConfig\": {\n \"key\": \"\",\n \"keyVersion\": \"\",\n \"kmsLocation\": \"\",\n \"kmsProjectId\": \"\",\n \"kmsRing\": \"\"\n }\n}"
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
headers: {'Content-Type' => 'application/json'}
)
response = conn.post('/baseUrl/v1/:parent/clients:switch') do |req|
req.body = "{\n \"cloudKmsConfig\": {\n \"key\": \"\",\n \"keyVersion\": \"\",\n \"kmsLocation\": \"\",\n \"kmsProjectId\": \"\",\n \"kmsRing\": \"\"\n }\n}"
end
puts response.status
puts response.body
use serde_json::json;
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/v1/:parent/clients:switch";
let payload = json!({"cloudKmsConfig": json!({
"key": "",
"keyVersion": "",
"kmsLocation": "",
"kmsProjectId": "",
"kmsRing": ""
})});
let mut headers = reqwest::header::HeaderMap::new();
headers.insert("content-type", "application/json".parse().unwrap());
let client = reqwest::Client::new();
let response = client.post(url)
.headers(headers)
.json(&payload)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request POST \
--url {{baseUrl}}/v1/:parent/clients:switch \
--header 'content-type: application/json' \
--data '{
"cloudKmsConfig": {
"key": "",
"keyVersion": "",
"kmsLocation": "",
"kmsProjectId": "",
"kmsRing": ""
}
}'
echo '{
"cloudKmsConfig": {
"key": "",
"keyVersion": "",
"kmsLocation": "",
"kmsProjectId": "",
"kmsRing": ""
}
}' | \
http POST {{baseUrl}}/v1/:parent/clients:switch \
content-type:application/json
wget --quiet \
--method POST \
--header 'content-type: application/json' \
--body-data '{\n "cloudKmsConfig": {\n "key": "",\n "keyVersion": "",\n "kmsLocation": "",\n "kmsProjectId": "",\n "kmsRing": ""\n }\n}' \
--output-document \
- {{baseUrl}}/v1/:parent/clients:switch
import Foundation
let headers = ["content-type": "application/json"]
let parameters = ["cloudKmsConfig": [
"key": "",
"keyVersion": "",
"kmsLocation": "",
"kmsProjectId": "",
"kmsRing": ""
]] as [String : Any]
let postData = JSONSerialization.data(withJSONObject: parameters, options: [])
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/v1/:parent/clients:switch")! 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
integrations.projects.locations.connections.list
{{baseUrl}}/v1/:parent/connections
QUERY PARAMS
parent
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/v1/:parent/connections");
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/get "{{baseUrl}}/v1/:parent/connections")
require "http/client"
url = "{{baseUrl}}/v1/:parent/connections"
response = HTTP::Client.get url
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Get,
RequestUri = new Uri("{{baseUrl}}/v1/:parent/connections"),
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/v1/:parent/connections");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/v1/:parent/connections"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
GET /baseUrl/v1/:parent/connections HTTP/1.1
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/v1/:parent/connections")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/v1/:parent/connections"))
.method("GET", HttpRequest.BodyPublishers.noBody())
.build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("{{baseUrl}}/v1/:parent/connections")
.get()
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/v1/:parent/connections")
.asString();
const data = null;
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('GET', '{{baseUrl}}/v1/:parent/connections');
xhr.send(data);
import axios from 'axios';
const options = {method: 'GET', url: '{{baseUrl}}/v1/:parent/connections'};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/v1/:parent/connections';
const options = {method: 'GET'};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/v1/:parent/connections',
method: 'GET',
headers: {}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/v1/:parent/connections")
.get()
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'GET',
hostname: 'example.com',
port: null,
path: '/baseUrl/v1/:parent/connections',
headers: {}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
const request = require('request');
const options = {method: 'GET', url: '{{baseUrl}}/v1/:parent/connections'};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('GET', '{{baseUrl}}/v1/:parent/connections');
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {method: 'GET', url: '{{baseUrl}}/v1/:parent/connections'};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/v1/:parent/connections';
const options = {method: 'GET'};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/v1/:parent/connections"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/v1/:parent/connections" in
Client.call `GET uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/v1/:parent/connections",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('GET', '{{baseUrl}}/v1/:parent/connections');
echo $response->getBody();
setUrl('{{baseUrl}}/v1/:parent/connections');
$request->setMethod(HTTP_METH_GET);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/v1/:parent/connections');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/v1/:parent/connections' -Method GET
$response = Invoke-RestMethod -Uri '{{baseUrl}}/v1/:parent/connections' -Method GET
import http.client
conn = http.client.HTTPSConnection("example.com")
conn.request("GET", "/baseUrl/v1/:parent/connections")
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/v1/:parent/connections"
response = requests.get(url)
print(response.json())
library(httr)
url <- "{{baseUrl}}/v1/:parent/connections"
response <- VERB("GET", url, content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/v1/:parent/connections")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
)
response = conn.get('/baseUrl/v1/:parent/connections') do |req|
end
puts response.status
puts response.body
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/v1/:parent/connections";
let client = reqwest::Client::new();
let response = client.get(url)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request GET \
--url {{baseUrl}}/v1/:parent/connections
http GET {{baseUrl}}/v1/:parent/connections
wget --quiet \
--method GET \
--output-document \
- {{baseUrl}}/v1/:parent/connections
import Foundation
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/v1/:parent/connections")! 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
integrations.projects.locations.connections.runtimeActionSchemas.list
{{baseUrl}}/v1/:parent/runtimeActionSchemas
QUERY PARAMS
parent
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/v1/:parent/runtimeActionSchemas");
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/get "{{baseUrl}}/v1/:parent/runtimeActionSchemas")
require "http/client"
url = "{{baseUrl}}/v1/:parent/runtimeActionSchemas"
response = HTTP::Client.get url
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Get,
RequestUri = new Uri("{{baseUrl}}/v1/:parent/runtimeActionSchemas"),
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/v1/:parent/runtimeActionSchemas");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/v1/:parent/runtimeActionSchemas"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
GET /baseUrl/v1/:parent/runtimeActionSchemas HTTP/1.1
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/v1/:parent/runtimeActionSchemas")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/v1/:parent/runtimeActionSchemas"))
.method("GET", HttpRequest.BodyPublishers.noBody())
.build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("{{baseUrl}}/v1/:parent/runtimeActionSchemas")
.get()
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/v1/:parent/runtimeActionSchemas")
.asString();
const data = null;
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('GET', '{{baseUrl}}/v1/:parent/runtimeActionSchemas');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'GET',
url: '{{baseUrl}}/v1/:parent/runtimeActionSchemas'
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/v1/:parent/runtimeActionSchemas';
const options = {method: 'GET'};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/v1/:parent/runtimeActionSchemas',
method: 'GET',
headers: {}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/v1/:parent/runtimeActionSchemas")
.get()
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'GET',
hostname: 'example.com',
port: null,
path: '/baseUrl/v1/:parent/runtimeActionSchemas',
headers: {}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
const request = require('request');
const options = {
method: 'GET',
url: '{{baseUrl}}/v1/:parent/runtimeActionSchemas'
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('GET', '{{baseUrl}}/v1/:parent/runtimeActionSchemas');
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {
method: 'GET',
url: '{{baseUrl}}/v1/:parent/runtimeActionSchemas'
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/v1/:parent/runtimeActionSchemas';
const options = {method: 'GET'};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/v1/:parent/runtimeActionSchemas"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/v1/:parent/runtimeActionSchemas" in
Client.call `GET uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/v1/:parent/runtimeActionSchemas",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('GET', '{{baseUrl}}/v1/:parent/runtimeActionSchemas');
echo $response->getBody();
setUrl('{{baseUrl}}/v1/:parent/runtimeActionSchemas');
$request->setMethod(HTTP_METH_GET);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/v1/:parent/runtimeActionSchemas');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/v1/:parent/runtimeActionSchemas' -Method GET
$response = Invoke-RestMethod -Uri '{{baseUrl}}/v1/:parent/runtimeActionSchemas' -Method GET
import http.client
conn = http.client.HTTPSConnection("example.com")
conn.request("GET", "/baseUrl/v1/:parent/runtimeActionSchemas")
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/v1/:parent/runtimeActionSchemas"
response = requests.get(url)
print(response.json())
library(httr)
url <- "{{baseUrl}}/v1/:parent/runtimeActionSchemas"
response <- VERB("GET", url, content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/v1/:parent/runtimeActionSchemas")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
)
response = conn.get('/baseUrl/v1/:parent/runtimeActionSchemas') do |req|
end
puts response.status
puts response.body
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/v1/:parent/runtimeActionSchemas";
let client = reqwest::Client::new();
let response = client.get(url)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request GET \
--url {{baseUrl}}/v1/:parent/runtimeActionSchemas
http GET {{baseUrl}}/v1/:parent/runtimeActionSchemas
wget --quiet \
--method GET \
--output-document \
- {{baseUrl}}/v1/:parent/runtimeActionSchemas
import Foundation
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/v1/:parent/runtimeActionSchemas")! 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
integrations.projects.locations.connections.runtimeEntitySchemas.list
{{baseUrl}}/v1/:parent/runtimeEntitySchemas
QUERY PARAMS
parent
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/v1/:parent/runtimeEntitySchemas");
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/get "{{baseUrl}}/v1/:parent/runtimeEntitySchemas")
require "http/client"
url = "{{baseUrl}}/v1/:parent/runtimeEntitySchemas"
response = HTTP::Client.get url
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Get,
RequestUri = new Uri("{{baseUrl}}/v1/:parent/runtimeEntitySchemas"),
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/v1/:parent/runtimeEntitySchemas");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/v1/:parent/runtimeEntitySchemas"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
GET /baseUrl/v1/:parent/runtimeEntitySchemas HTTP/1.1
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/v1/:parent/runtimeEntitySchemas")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/v1/:parent/runtimeEntitySchemas"))
.method("GET", HttpRequest.BodyPublishers.noBody())
.build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("{{baseUrl}}/v1/:parent/runtimeEntitySchemas")
.get()
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/v1/:parent/runtimeEntitySchemas")
.asString();
const data = null;
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('GET', '{{baseUrl}}/v1/:parent/runtimeEntitySchemas');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'GET',
url: '{{baseUrl}}/v1/:parent/runtimeEntitySchemas'
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/v1/:parent/runtimeEntitySchemas';
const options = {method: 'GET'};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/v1/:parent/runtimeEntitySchemas',
method: 'GET',
headers: {}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/v1/:parent/runtimeEntitySchemas")
.get()
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'GET',
hostname: 'example.com',
port: null,
path: '/baseUrl/v1/:parent/runtimeEntitySchemas',
headers: {}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
const request = require('request');
const options = {
method: 'GET',
url: '{{baseUrl}}/v1/:parent/runtimeEntitySchemas'
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('GET', '{{baseUrl}}/v1/:parent/runtimeEntitySchemas');
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {
method: 'GET',
url: '{{baseUrl}}/v1/:parent/runtimeEntitySchemas'
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/v1/:parent/runtimeEntitySchemas';
const options = {method: 'GET'};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/v1/:parent/runtimeEntitySchemas"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/v1/:parent/runtimeEntitySchemas" in
Client.call `GET uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/v1/:parent/runtimeEntitySchemas",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('GET', '{{baseUrl}}/v1/:parent/runtimeEntitySchemas');
echo $response->getBody();
setUrl('{{baseUrl}}/v1/:parent/runtimeEntitySchemas');
$request->setMethod(HTTP_METH_GET);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/v1/:parent/runtimeEntitySchemas');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/v1/:parent/runtimeEntitySchemas' -Method GET
$response = Invoke-RestMethod -Uri '{{baseUrl}}/v1/:parent/runtimeEntitySchemas' -Method GET
import http.client
conn = http.client.HTTPSConnection("example.com")
conn.request("GET", "/baseUrl/v1/:parent/runtimeEntitySchemas")
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/v1/:parent/runtimeEntitySchemas"
response = requests.get(url)
print(response.json())
library(httr)
url <- "{{baseUrl}}/v1/:parent/runtimeEntitySchemas"
response <- VERB("GET", url, content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/v1/:parent/runtimeEntitySchemas")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
)
response = conn.get('/baseUrl/v1/:parent/runtimeEntitySchemas') do |req|
end
puts response.status
puts response.body
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/v1/:parent/runtimeEntitySchemas";
let client = reqwest::Client::new();
let response = client.get(url)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request GET \
--url {{baseUrl}}/v1/:parent/runtimeEntitySchemas
http GET {{baseUrl}}/v1/:parent/runtimeEntitySchemas
wget --quiet \
--method GET \
--output-document \
- {{baseUrl}}/v1/:parent/runtimeEntitySchemas
import Foundation
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/v1/:parent/runtimeEntitySchemas")! 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
integrations.projects.locations.getClients
{{baseUrl}}/v1/:parent/clients
QUERY PARAMS
parent
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/v1/:parent/clients");
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/get "{{baseUrl}}/v1/:parent/clients")
require "http/client"
url = "{{baseUrl}}/v1/:parent/clients"
response = HTTP::Client.get url
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Get,
RequestUri = new Uri("{{baseUrl}}/v1/:parent/clients"),
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/v1/:parent/clients");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/v1/:parent/clients"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
GET /baseUrl/v1/:parent/clients HTTP/1.1
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/v1/:parent/clients")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/v1/:parent/clients"))
.method("GET", HttpRequest.BodyPublishers.noBody())
.build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("{{baseUrl}}/v1/:parent/clients")
.get()
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/v1/:parent/clients")
.asString();
const data = null;
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('GET', '{{baseUrl}}/v1/:parent/clients');
xhr.send(data);
import axios from 'axios';
const options = {method: 'GET', url: '{{baseUrl}}/v1/:parent/clients'};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/v1/:parent/clients';
const options = {method: 'GET'};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/v1/:parent/clients',
method: 'GET',
headers: {}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/v1/:parent/clients")
.get()
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'GET',
hostname: 'example.com',
port: null,
path: '/baseUrl/v1/:parent/clients',
headers: {}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
const request = require('request');
const options = {method: 'GET', url: '{{baseUrl}}/v1/:parent/clients'};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('GET', '{{baseUrl}}/v1/:parent/clients');
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {method: 'GET', url: '{{baseUrl}}/v1/:parent/clients'};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/v1/:parent/clients';
const options = {method: 'GET'};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/v1/:parent/clients"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/v1/:parent/clients" in
Client.call `GET uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/v1/:parent/clients",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('GET', '{{baseUrl}}/v1/:parent/clients');
echo $response->getBody();
setUrl('{{baseUrl}}/v1/:parent/clients');
$request->setMethod(HTTP_METH_GET);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/v1/:parent/clients');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/v1/:parent/clients' -Method GET
$response = Invoke-RestMethod -Uri '{{baseUrl}}/v1/:parent/clients' -Method GET
import http.client
conn = http.client.HTTPSConnection("example.com")
conn.request("GET", "/baseUrl/v1/:parent/clients")
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/v1/:parent/clients"
response = requests.get(url)
print(response.json())
library(httr)
url <- "{{baseUrl}}/v1/:parent/clients"
response <- VERB("GET", url, content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/v1/:parent/clients")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
)
response = conn.get('/baseUrl/v1/:parent/clients') do |req|
end
puts response.status
puts response.body
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/v1/:parent/clients";
let client = reqwest::Client::new();
let response = client.get(url)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request GET \
--url {{baseUrl}}/v1/:parent/clients
http GET {{baseUrl}}/v1/:parent/clients
wget --quiet \
--method GET \
--output-document \
- {{baseUrl}}/v1/:parent/clients
import Foundation
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/v1/:parent/clients")! 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
integrations.projects.locations.products.authConfigs.create
{{baseUrl}}/v1/:parent/authConfigs
QUERY PARAMS
parent
BODY json
{
"certificateId": "",
"createTime": "",
"creatorEmail": "",
"credentialType": "",
"decryptedCredential": {
"authToken": {
"token": "",
"type": ""
},
"credentialType": "",
"jwt": {
"jwt": "",
"jwtHeader": "",
"jwtPayload": "",
"secret": ""
},
"oauth2AuthorizationCode": {
"accessToken": {
"accessToken": "",
"accessTokenExpireTime": "",
"refreshToken": "",
"refreshTokenExpireTime": "",
"tokenType": ""
},
"applyReauthPolicy": false,
"authCode": "",
"authEndpoint": "",
"authParams": {
"entries": [
{
"key": {
"literalValue": {
"booleanArray": {
"booleanValues": []
},
"booleanValue": false,
"doubleArray": {
"doubleValues": []
},
"doubleValue": "",
"intArray": {
"intValues": []
},
"intValue": "",
"jsonValue": "",
"stringArray": {
"stringValues": []
},
"stringValue": ""
},
"referenceKey": ""
},
"value": {}
}
],
"keyType": "",
"valueType": ""
},
"clientId": "",
"clientSecret": "",
"requestType": "",
"scope": "",
"tokenEndpoint": "",
"tokenParams": {}
},
"oauth2ClientCredentials": {
"accessToken": {},
"clientId": "",
"clientSecret": "",
"requestType": "",
"scope": "",
"tokenEndpoint": "",
"tokenParams": {}
},
"oauth2ResourceOwnerCredentials": {
"accessToken": {},
"clientId": "",
"clientSecret": "",
"password": "",
"requestType": "",
"scope": "",
"tokenEndpoint": "",
"tokenParams": {},
"username": ""
},
"oidcToken": {
"audience": "",
"serviceAccountEmail": "",
"token": "",
"tokenExpireTime": ""
},
"serviceAccountCredentials": {
"scope": "",
"serviceAccount": ""
},
"usernameAndPassword": {
"password": "",
"username": ""
}
},
"description": "",
"displayName": "",
"encryptedCredential": "",
"expiryNotificationDuration": [],
"lastModifierEmail": "",
"name": "",
"overrideValidTime": "",
"reason": "",
"state": "",
"updateTime": "",
"validTime": "",
"visibility": ""
}
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/v1/:parent/authConfigs");
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 \"certificateId\": \"\",\n \"createTime\": \"\",\n \"creatorEmail\": \"\",\n \"credentialType\": \"\",\n \"decryptedCredential\": {\n \"authToken\": {\n \"token\": \"\",\n \"type\": \"\"\n },\n \"credentialType\": \"\",\n \"jwt\": {\n \"jwt\": \"\",\n \"jwtHeader\": \"\",\n \"jwtPayload\": \"\",\n \"secret\": \"\"\n },\n \"oauth2AuthorizationCode\": {\n \"accessToken\": {\n \"accessToken\": \"\",\n \"accessTokenExpireTime\": \"\",\n \"refreshToken\": \"\",\n \"refreshTokenExpireTime\": \"\",\n \"tokenType\": \"\"\n },\n \"applyReauthPolicy\": false,\n \"authCode\": \"\",\n \"authEndpoint\": \"\",\n \"authParams\": {\n \"entries\": [\n {\n \"key\": {\n \"literalValue\": {\n \"booleanArray\": {\n \"booleanValues\": []\n },\n \"booleanValue\": false,\n \"doubleArray\": {\n \"doubleValues\": []\n },\n \"doubleValue\": \"\",\n \"intArray\": {\n \"intValues\": []\n },\n \"intValue\": \"\",\n \"jsonValue\": \"\",\n \"stringArray\": {\n \"stringValues\": []\n },\n \"stringValue\": \"\"\n },\n \"referenceKey\": \"\"\n },\n \"value\": {}\n }\n ],\n \"keyType\": \"\",\n \"valueType\": \"\"\n },\n \"clientId\": \"\",\n \"clientSecret\": \"\",\n \"requestType\": \"\",\n \"scope\": \"\",\n \"tokenEndpoint\": \"\",\n \"tokenParams\": {}\n },\n \"oauth2ClientCredentials\": {\n \"accessToken\": {},\n \"clientId\": \"\",\n \"clientSecret\": \"\",\n \"requestType\": \"\",\n \"scope\": \"\",\n \"tokenEndpoint\": \"\",\n \"tokenParams\": {}\n },\n \"oauth2ResourceOwnerCredentials\": {\n \"accessToken\": {},\n \"clientId\": \"\",\n \"clientSecret\": \"\",\n \"password\": \"\",\n \"requestType\": \"\",\n \"scope\": \"\",\n \"tokenEndpoint\": \"\",\n \"tokenParams\": {},\n \"username\": \"\"\n },\n \"oidcToken\": {\n \"audience\": \"\",\n \"serviceAccountEmail\": \"\",\n \"token\": \"\",\n \"tokenExpireTime\": \"\"\n },\n \"serviceAccountCredentials\": {\n \"scope\": \"\",\n \"serviceAccount\": \"\"\n },\n \"usernameAndPassword\": {\n \"password\": \"\",\n \"username\": \"\"\n }\n },\n \"description\": \"\",\n \"displayName\": \"\",\n \"encryptedCredential\": \"\",\n \"expiryNotificationDuration\": [],\n \"lastModifierEmail\": \"\",\n \"name\": \"\",\n \"overrideValidTime\": \"\",\n \"reason\": \"\",\n \"state\": \"\",\n \"updateTime\": \"\",\n \"validTime\": \"\",\n \"visibility\": \"\"\n}");
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/post "{{baseUrl}}/v1/:parent/authConfigs" {:content-type :json
:form-params {:certificateId ""
:createTime ""
:creatorEmail ""
:credentialType ""
:decryptedCredential {:authToken {:token ""
:type ""}
:credentialType ""
:jwt {:jwt ""
:jwtHeader ""
:jwtPayload ""
:secret ""}
:oauth2AuthorizationCode {:accessToken {:accessToken ""
:accessTokenExpireTime ""
:refreshToken ""
:refreshTokenExpireTime ""
:tokenType ""}
:applyReauthPolicy false
:authCode ""
:authEndpoint ""
:authParams {:entries [{:key {:literalValue {:booleanArray {:booleanValues []}
:booleanValue false
:doubleArray {:doubleValues []}
:doubleValue ""
:intArray {:intValues []}
:intValue ""
:jsonValue ""
:stringArray {:stringValues []}
:stringValue ""}
:referenceKey ""}
:value {}}]
:keyType ""
:valueType ""}
:clientId ""
:clientSecret ""
:requestType ""
:scope ""
:tokenEndpoint ""
:tokenParams {}}
:oauth2ClientCredentials {:accessToken {}
:clientId ""
:clientSecret ""
:requestType ""
:scope ""
:tokenEndpoint ""
:tokenParams {}}
:oauth2ResourceOwnerCredentials {:accessToken {}
:clientId ""
:clientSecret ""
:password ""
:requestType ""
:scope ""
:tokenEndpoint ""
:tokenParams {}
:username ""}
:oidcToken {:audience ""
:serviceAccountEmail ""
:token ""
:tokenExpireTime ""}
:serviceAccountCredentials {:scope ""
:serviceAccount ""}
:usernameAndPassword {:password ""
:username ""}}
:description ""
:displayName ""
:encryptedCredential ""
:expiryNotificationDuration []
:lastModifierEmail ""
:name ""
:overrideValidTime ""
:reason ""
:state ""
:updateTime ""
:validTime ""
:visibility ""}})
require "http/client"
url = "{{baseUrl}}/v1/:parent/authConfigs"
headers = HTTP::Headers{
"content-type" => "application/json"
}
reqBody = "{\n \"certificateId\": \"\",\n \"createTime\": \"\",\n \"creatorEmail\": \"\",\n \"credentialType\": \"\",\n \"decryptedCredential\": {\n \"authToken\": {\n \"token\": \"\",\n \"type\": \"\"\n },\n \"credentialType\": \"\",\n \"jwt\": {\n \"jwt\": \"\",\n \"jwtHeader\": \"\",\n \"jwtPayload\": \"\",\n \"secret\": \"\"\n },\n \"oauth2AuthorizationCode\": {\n \"accessToken\": {\n \"accessToken\": \"\",\n \"accessTokenExpireTime\": \"\",\n \"refreshToken\": \"\",\n \"refreshTokenExpireTime\": \"\",\n \"tokenType\": \"\"\n },\n \"applyReauthPolicy\": false,\n \"authCode\": \"\",\n \"authEndpoint\": \"\",\n \"authParams\": {\n \"entries\": [\n {\n \"key\": {\n \"literalValue\": {\n \"booleanArray\": {\n \"booleanValues\": []\n },\n \"booleanValue\": false,\n \"doubleArray\": {\n \"doubleValues\": []\n },\n \"doubleValue\": \"\",\n \"intArray\": {\n \"intValues\": []\n },\n \"intValue\": \"\",\n \"jsonValue\": \"\",\n \"stringArray\": {\n \"stringValues\": []\n },\n \"stringValue\": \"\"\n },\n \"referenceKey\": \"\"\n },\n \"value\": {}\n }\n ],\n \"keyType\": \"\",\n \"valueType\": \"\"\n },\n \"clientId\": \"\",\n \"clientSecret\": \"\",\n \"requestType\": \"\",\n \"scope\": \"\",\n \"tokenEndpoint\": \"\",\n \"tokenParams\": {}\n },\n \"oauth2ClientCredentials\": {\n \"accessToken\": {},\n \"clientId\": \"\",\n \"clientSecret\": \"\",\n \"requestType\": \"\",\n \"scope\": \"\",\n \"tokenEndpoint\": \"\",\n \"tokenParams\": {}\n },\n \"oauth2ResourceOwnerCredentials\": {\n \"accessToken\": {},\n \"clientId\": \"\",\n \"clientSecret\": \"\",\n \"password\": \"\",\n \"requestType\": \"\",\n \"scope\": \"\",\n \"tokenEndpoint\": \"\",\n \"tokenParams\": {},\n \"username\": \"\"\n },\n \"oidcToken\": {\n \"audience\": \"\",\n \"serviceAccountEmail\": \"\",\n \"token\": \"\",\n \"tokenExpireTime\": \"\"\n },\n \"serviceAccountCredentials\": {\n \"scope\": \"\",\n \"serviceAccount\": \"\"\n },\n \"usernameAndPassword\": {\n \"password\": \"\",\n \"username\": \"\"\n }\n },\n \"description\": \"\",\n \"displayName\": \"\",\n \"encryptedCredential\": \"\",\n \"expiryNotificationDuration\": [],\n \"lastModifierEmail\": \"\",\n \"name\": \"\",\n \"overrideValidTime\": \"\",\n \"reason\": \"\",\n \"state\": \"\",\n \"updateTime\": \"\",\n \"validTime\": \"\",\n \"visibility\": \"\"\n}"
response = HTTP::Client.post url, headers: headers, body: reqBody
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Post,
RequestUri = new Uri("{{baseUrl}}/v1/:parent/authConfigs"),
Content = new StringContent("{\n \"certificateId\": \"\",\n \"createTime\": \"\",\n \"creatorEmail\": \"\",\n \"credentialType\": \"\",\n \"decryptedCredential\": {\n \"authToken\": {\n \"token\": \"\",\n \"type\": \"\"\n },\n \"credentialType\": \"\",\n \"jwt\": {\n \"jwt\": \"\",\n \"jwtHeader\": \"\",\n \"jwtPayload\": \"\",\n \"secret\": \"\"\n },\n \"oauth2AuthorizationCode\": {\n \"accessToken\": {\n \"accessToken\": \"\",\n \"accessTokenExpireTime\": \"\",\n \"refreshToken\": \"\",\n \"refreshTokenExpireTime\": \"\",\n \"tokenType\": \"\"\n },\n \"applyReauthPolicy\": false,\n \"authCode\": \"\",\n \"authEndpoint\": \"\",\n \"authParams\": {\n \"entries\": [\n {\n \"key\": {\n \"literalValue\": {\n \"booleanArray\": {\n \"booleanValues\": []\n },\n \"booleanValue\": false,\n \"doubleArray\": {\n \"doubleValues\": []\n },\n \"doubleValue\": \"\",\n \"intArray\": {\n \"intValues\": []\n },\n \"intValue\": \"\",\n \"jsonValue\": \"\",\n \"stringArray\": {\n \"stringValues\": []\n },\n \"stringValue\": \"\"\n },\n \"referenceKey\": \"\"\n },\n \"value\": {}\n }\n ],\n \"keyType\": \"\",\n \"valueType\": \"\"\n },\n \"clientId\": \"\",\n \"clientSecret\": \"\",\n \"requestType\": \"\",\n \"scope\": \"\",\n \"tokenEndpoint\": \"\",\n \"tokenParams\": {}\n },\n \"oauth2ClientCredentials\": {\n \"accessToken\": {},\n \"clientId\": \"\",\n \"clientSecret\": \"\",\n \"requestType\": \"\",\n \"scope\": \"\",\n \"tokenEndpoint\": \"\",\n \"tokenParams\": {}\n },\n \"oauth2ResourceOwnerCredentials\": {\n \"accessToken\": {},\n \"clientId\": \"\",\n \"clientSecret\": \"\",\n \"password\": \"\",\n \"requestType\": \"\",\n \"scope\": \"\",\n \"tokenEndpoint\": \"\",\n \"tokenParams\": {},\n \"username\": \"\"\n },\n \"oidcToken\": {\n \"audience\": \"\",\n \"serviceAccountEmail\": \"\",\n \"token\": \"\",\n \"tokenExpireTime\": \"\"\n },\n \"serviceAccountCredentials\": {\n \"scope\": \"\",\n \"serviceAccount\": \"\"\n },\n \"usernameAndPassword\": {\n \"password\": \"\",\n \"username\": \"\"\n }\n },\n \"description\": \"\",\n \"displayName\": \"\",\n \"encryptedCredential\": \"\",\n \"expiryNotificationDuration\": [],\n \"lastModifierEmail\": \"\",\n \"name\": \"\",\n \"overrideValidTime\": \"\",\n \"reason\": \"\",\n \"state\": \"\",\n \"updateTime\": \"\",\n \"validTime\": \"\",\n \"visibility\": \"\"\n}")
{
Headers =
{
ContentType = new MediaTypeHeaderValue("application/json")
}
}
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/v1/:parent/authConfigs");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n \"certificateId\": \"\",\n \"createTime\": \"\",\n \"creatorEmail\": \"\",\n \"credentialType\": \"\",\n \"decryptedCredential\": {\n \"authToken\": {\n \"token\": \"\",\n \"type\": \"\"\n },\n \"credentialType\": \"\",\n \"jwt\": {\n \"jwt\": \"\",\n \"jwtHeader\": \"\",\n \"jwtPayload\": \"\",\n \"secret\": \"\"\n },\n \"oauth2AuthorizationCode\": {\n \"accessToken\": {\n \"accessToken\": \"\",\n \"accessTokenExpireTime\": \"\",\n \"refreshToken\": \"\",\n \"refreshTokenExpireTime\": \"\",\n \"tokenType\": \"\"\n },\n \"applyReauthPolicy\": false,\n \"authCode\": \"\",\n \"authEndpoint\": \"\",\n \"authParams\": {\n \"entries\": [\n {\n \"key\": {\n \"literalValue\": {\n \"booleanArray\": {\n \"booleanValues\": []\n },\n \"booleanValue\": false,\n \"doubleArray\": {\n \"doubleValues\": []\n },\n \"doubleValue\": \"\",\n \"intArray\": {\n \"intValues\": []\n },\n \"intValue\": \"\",\n \"jsonValue\": \"\",\n \"stringArray\": {\n \"stringValues\": []\n },\n \"stringValue\": \"\"\n },\n \"referenceKey\": \"\"\n },\n \"value\": {}\n }\n ],\n \"keyType\": \"\",\n \"valueType\": \"\"\n },\n \"clientId\": \"\",\n \"clientSecret\": \"\",\n \"requestType\": \"\",\n \"scope\": \"\",\n \"tokenEndpoint\": \"\",\n \"tokenParams\": {}\n },\n \"oauth2ClientCredentials\": {\n \"accessToken\": {},\n \"clientId\": \"\",\n \"clientSecret\": \"\",\n \"requestType\": \"\",\n \"scope\": \"\",\n \"tokenEndpoint\": \"\",\n \"tokenParams\": {}\n },\n \"oauth2ResourceOwnerCredentials\": {\n \"accessToken\": {},\n \"clientId\": \"\",\n \"clientSecret\": \"\",\n \"password\": \"\",\n \"requestType\": \"\",\n \"scope\": \"\",\n \"tokenEndpoint\": \"\",\n \"tokenParams\": {},\n \"username\": \"\"\n },\n \"oidcToken\": {\n \"audience\": \"\",\n \"serviceAccountEmail\": \"\",\n \"token\": \"\",\n \"tokenExpireTime\": \"\"\n },\n \"serviceAccountCredentials\": {\n \"scope\": \"\",\n \"serviceAccount\": \"\"\n },\n \"usernameAndPassword\": {\n \"password\": \"\",\n \"username\": \"\"\n }\n },\n \"description\": \"\",\n \"displayName\": \"\",\n \"encryptedCredential\": \"\",\n \"expiryNotificationDuration\": [],\n \"lastModifierEmail\": \"\",\n \"name\": \"\",\n \"overrideValidTime\": \"\",\n \"reason\": \"\",\n \"state\": \"\",\n \"updateTime\": \"\",\n \"validTime\": \"\",\n \"visibility\": \"\"\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/v1/:parent/authConfigs"
payload := strings.NewReader("{\n \"certificateId\": \"\",\n \"createTime\": \"\",\n \"creatorEmail\": \"\",\n \"credentialType\": \"\",\n \"decryptedCredential\": {\n \"authToken\": {\n \"token\": \"\",\n \"type\": \"\"\n },\n \"credentialType\": \"\",\n \"jwt\": {\n \"jwt\": \"\",\n \"jwtHeader\": \"\",\n \"jwtPayload\": \"\",\n \"secret\": \"\"\n },\n \"oauth2AuthorizationCode\": {\n \"accessToken\": {\n \"accessToken\": \"\",\n \"accessTokenExpireTime\": \"\",\n \"refreshToken\": \"\",\n \"refreshTokenExpireTime\": \"\",\n \"tokenType\": \"\"\n },\n \"applyReauthPolicy\": false,\n \"authCode\": \"\",\n \"authEndpoint\": \"\",\n \"authParams\": {\n \"entries\": [\n {\n \"key\": {\n \"literalValue\": {\n \"booleanArray\": {\n \"booleanValues\": []\n },\n \"booleanValue\": false,\n \"doubleArray\": {\n \"doubleValues\": []\n },\n \"doubleValue\": \"\",\n \"intArray\": {\n \"intValues\": []\n },\n \"intValue\": \"\",\n \"jsonValue\": \"\",\n \"stringArray\": {\n \"stringValues\": []\n },\n \"stringValue\": \"\"\n },\n \"referenceKey\": \"\"\n },\n \"value\": {}\n }\n ],\n \"keyType\": \"\",\n \"valueType\": \"\"\n },\n \"clientId\": \"\",\n \"clientSecret\": \"\",\n \"requestType\": \"\",\n \"scope\": \"\",\n \"tokenEndpoint\": \"\",\n \"tokenParams\": {}\n },\n \"oauth2ClientCredentials\": {\n \"accessToken\": {},\n \"clientId\": \"\",\n \"clientSecret\": \"\",\n \"requestType\": \"\",\n \"scope\": \"\",\n \"tokenEndpoint\": \"\",\n \"tokenParams\": {}\n },\n \"oauth2ResourceOwnerCredentials\": {\n \"accessToken\": {},\n \"clientId\": \"\",\n \"clientSecret\": \"\",\n \"password\": \"\",\n \"requestType\": \"\",\n \"scope\": \"\",\n \"tokenEndpoint\": \"\",\n \"tokenParams\": {},\n \"username\": \"\"\n },\n \"oidcToken\": {\n \"audience\": \"\",\n \"serviceAccountEmail\": \"\",\n \"token\": \"\",\n \"tokenExpireTime\": \"\"\n },\n \"serviceAccountCredentials\": {\n \"scope\": \"\",\n \"serviceAccount\": \"\"\n },\n \"usernameAndPassword\": {\n \"password\": \"\",\n \"username\": \"\"\n }\n },\n \"description\": \"\",\n \"displayName\": \"\",\n \"encryptedCredential\": \"\",\n \"expiryNotificationDuration\": [],\n \"lastModifierEmail\": \"\",\n \"name\": \"\",\n \"overrideValidTime\": \"\",\n \"reason\": \"\",\n \"state\": \"\",\n \"updateTime\": \"\",\n \"validTime\": \"\",\n \"visibility\": \"\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("content-type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
POST /baseUrl/v1/:parent/authConfigs HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 2592
{
"certificateId": "",
"createTime": "",
"creatorEmail": "",
"credentialType": "",
"decryptedCredential": {
"authToken": {
"token": "",
"type": ""
},
"credentialType": "",
"jwt": {
"jwt": "",
"jwtHeader": "",
"jwtPayload": "",
"secret": ""
},
"oauth2AuthorizationCode": {
"accessToken": {
"accessToken": "",
"accessTokenExpireTime": "",
"refreshToken": "",
"refreshTokenExpireTime": "",
"tokenType": ""
},
"applyReauthPolicy": false,
"authCode": "",
"authEndpoint": "",
"authParams": {
"entries": [
{
"key": {
"literalValue": {
"booleanArray": {
"booleanValues": []
},
"booleanValue": false,
"doubleArray": {
"doubleValues": []
},
"doubleValue": "",
"intArray": {
"intValues": []
},
"intValue": "",
"jsonValue": "",
"stringArray": {
"stringValues": []
},
"stringValue": ""
},
"referenceKey": ""
},
"value": {}
}
],
"keyType": "",
"valueType": ""
},
"clientId": "",
"clientSecret": "",
"requestType": "",
"scope": "",
"tokenEndpoint": "",
"tokenParams": {}
},
"oauth2ClientCredentials": {
"accessToken": {},
"clientId": "",
"clientSecret": "",
"requestType": "",
"scope": "",
"tokenEndpoint": "",
"tokenParams": {}
},
"oauth2ResourceOwnerCredentials": {
"accessToken": {},
"clientId": "",
"clientSecret": "",
"password": "",
"requestType": "",
"scope": "",
"tokenEndpoint": "",
"tokenParams": {},
"username": ""
},
"oidcToken": {
"audience": "",
"serviceAccountEmail": "",
"token": "",
"tokenExpireTime": ""
},
"serviceAccountCredentials": {
"scope": "",
"serviceAccount": ""
},
"usernameAndPassword": {
"password": "",
"username": ""
}
},
"description": "",
"displayName": "",
"encryptedCredential": "",
"expiryNotificationDuration": [],
"lastModifierEmail": "",
"name": "",
"overrideValidTime": "",
"reason": "",
"state": "",
"updateTime": "",
"validTime": "",
"visibility": ""
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/v1/:parent/authConfigs")
.setHeader("content-type", "application/json")
.setBody("{\n \"certificateId\": \"\",\n \"createTime\": \"\",\n \"creatorEmail\": \"\",\n \"credentialType\": \"\",\n \"decryptedCredential\": {\n \"authToken\": {\n \"token\": \"\",\n \"type\": \"\"\n },\n \"credentialType\": \"\",\n \"jwt\": {\n \"jwt\": \"\",\n \"jwtHeader\": \"\",\n \"jwtPayload\": \"\",\n \"secret\": \"\"\n },\n \"oauth2AuthorizationCode\": {\n \"accessToken\": {\n \"accessToken\": \"\",\n \"accessTokenExpireTime\": \"\",\n \"refreshToken\": \"\",\n \"refreshTokenExpireTime\": \"\",\n \"tokenType\": \"\"\n },\n \"applyReauthPolicy\": false,\n \"authCode\": \"\",\n \"authEndpoint\": \"\",\n \"authParams\": {\n \"entries\": [\n {\n \"key\": {\n \"literalValue\": {\n \"booleanArray\": {\n \"booleanValues\": []\n },\n \"booleanValue\": false,\n \"doubleArray\": {\n \"doubleValues\": []\n },\n \"doubleValue\": \"\",\n \"intArray\": {\n \"intValues\": []\n },\n \"intValue\": \"\",\n \"jsonValue\": \"\",\n \"stringArray\": {\n \"stringValues\": []\n },\n \"stringValue\": \"\"\n },\n \"referenceKey\": \"\"\n },\n \"value\": {}\n }\n ],\n \"keyType\": \"\",\n \"valueType\": \"\"\n },\n \"clientId\": \"\",\n \"clientSecret\": \"\",\n \"requestType\": \"\",\n \"scope\": \"\",\n \"tokenEndpoint\": \"\",\n \"tokenParams\": {}\n },\n \"oauth2ClientCredentials\": {\n \"accessToken\": {},\n \"clientId\": \"\",\n \"clientSecret\": \"\",\n \"requestType\": \"\",\n \"scope\": \"\",\n \"tokenEndpoint\": \"\",\n \"tokenParams\": {}\n },\n \"oauth2ResourceOwnerCredentials\": {\n \"accessToken\": {},\n \"clientId\": \"\",\n \"clientSecret\": \"\",\n \"password\": \"\",\n \"requestType\": \"\",\n \"scope\": \"\",\n \"tokenEndpoint\": \"\",\n \"tokenParams\": {},\n \"username\": \"\"\n },\n \"oidcToken\": {\n \"audience\": \"\",\n \"serviceAccountEmail\": \"\",\n \"token\": \"\",\n \"tokenExpireTime\": \"\"\n },\n \"serviceAccountCredentials\": {\n \"scope\": \"\",\n \"serviceAccount\": \"\"\n },\n \"usernameAndPassword\": {\n \"password\": \"\",\n \"username\": \"\"\n }\n },\n \"description\": \"\",\n \"displayName\": \"\",\n \"encryptedCredential\": \"\",\n \"expiryNotificationDuration\": [],\n \"lastModifierEmail\": \"\",\n \"name\": \"\",\n \"overrideValidTime\": \"\",\n \"reason\": \"\",\n \"state\": \"\",\n \"updateTime\": \"\",\n \"validTime\": \"\",\n \"visibility\": \"\"\n}")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/v1/:parent/authConfigs"))
.header("content-type", "application/json")
.method("POST", HttpRequest.BodyPublishers.ofString("{\n \"certificateId\": \"\",\n \"createTime\": \"\",\n \"creatorEmail\": \"\",\n \"credentialType\": \"\",\n \"decryptedCredential\": {\n \"authToken\": {\n \"token\": \"\",\n \"type\": \"\"\n },\n \"credentialType\": \"\",\n \"jwt\": {\n \"jwt\": \"\",\n \"jwtHeader\": \"\",\n \"jwtPayload\": \"\",\n \"secret\": \"\"\n },\n \"oauth2AuthorizationCode\": {\n \"accessToken\": {\n \"accessToken\": \"\",\n \"accessTokenExpireTime\": \"\",\n \"refreshToken\": \"\",\n \"refreshTokenExpireTime\": \"\",\n \"tokenType\": \"\"\n },\n \"applyReauthPolicy\": false,\n \"authCode\": \"\",\n \"authEndpoint\": \"\",\n \"authParams\": {\n \"entries\": [\n {\n \"key\": {\n \"literalValue\": {\n \"booleanArray\": {\n \"booleanValues\": []\n },\n \"booleanValue\": false,\n \"doubleArray\": {\n \"doubleValues\": []\n },\n \"doubleValue\": \"\",\n \"intArray\": {\n \"intValues\": []\n },\n \"intValue\": \"\",\n \"jsonValue\": \"\",\n \"stringArray\": {\n \"stringValues\": []\n },\n \"stringValue\": \"\"\n },\n \"referenceKey\": \"\"\n },\n \"value\": {}\n }\n ],\n \"keyType\": \"\",\n \"valueType\": \"\"\n },\n \"clientId\": \"\",\n \"clientSecret\": \"\",\n \"requestType\": \"\",\n \"scope\": \"\",\n \"tokenEndpoint\": \"\",\n \"tokenParams\": {}\n },\n \"oauth2ClientCredentials\": {\n \"accessToken\": {},\n \"clientId\": \"\",\n \"clientSecret\": \"\",\n \"requestType\": \"\",\n \"scope\": \"\",\n \"tokenEndpoint\": \"\",\n \"tokenParams\": {}\n },\n \"oauth2ResourceOwnerCredentials\": {\n \"accessToken\": {},\n \"clientId\": \"\",\n \"clientSecret\": \"\",\n \"password\": \"\",\n \"requestType\": \"\",\n \"scope\": \"\",\n \"tokenEndpoint\": \"\",\n \"tokenParams\": {},\n \"username\": \"\"\n },\n \"oidcToken\": {\n \"audience\": \"\",\n \"serviceAccountEmail\": \"\",\n \"token\": \"\",\n \"tokenExpireTime\": \"\"\n },\n \"serviceAccountCredentials\": {\n \"scope\": \"\",\n \"serviceAccount\": \"\"\n },\n \"usernameAndPassword\": {\n \"password\": \"\",\n \"username\": \"\"\n }\n },\n \"description\": \"\",\n \"displayName\": \"\",\n \"encryptedCredential\": \"\",\n \"expiryNotificationDuration\": [],\n \"lastModifierEmail\": \"\",\n \"name\": \"\",\n \"overrideValidTime\": \"\",\n \"reason\": \"\",\n \"state\": \"\",\n \"updateTime\": \"\",\n \"validTime\": \"\",\n \"visibility\": \"\"\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 \"certificateId\": \"\",\n \"createTime\": \"\",\n \"creatorEmail\": \"\",\n \"credentialType\": \"\",\n \"decryptedCredential\": {\n \"authToken\": {\n \"token\": \"\",\n \"type\": \"\"\n },\n \"credentialType\": \"\",\n \"jwt\": {\n \"jwt\": \"\",\n \"jwtHeader\": \"\",\n \"jwtPayload\": \"\",\n \"secret\": \"\"\n },\n \"oauth2AuthorizationCode\": {\n \"accessToken\": {\n \"accessToken\": \"\",\n \"accessTokenExpireTime\": \"\",\n \"refreshToken\": \"\",\n \"refreshTokenExpireTime\": \"\",\n \"tokenType\": \"\"\n },\n \"applyReauthPolicy\": false,\n \"authCode\": \"\",\n \"authEndpoint\": \"\",\n \"authParams\": {\n \"entries\": [\n {\n \"key\": {\n \"literalValue\": {\n \"booleanArray\": {\n \"booleanValues\": []\n },\n \"booleanValue\": false,\n \"doubleArray\": {\n \"doubleValues\": []\n },\n \"doubleValue\": \"\",\n \"intArray\": {\n \"intValues\": []\n },\n \"intValue\": \"\",\n \"jsonValue\": \"\",\n \"stringArray\": {\n \"stringValues\": []\n },\n \"stringValue\": \"\"\n },\n \"referenceKey\": \"\"\n },\n \"value\": {}\n }\n ],\n \"keyType\": \"\",\n \"valueType\": \"\"\n },\n \"clientId\": \"\",\n \"clientSecret\": \"\",\n \"requestType\": \"\",\n \"scope\": \"\",\n \"tokenEndpoint\": \"\",\n \"tokenParams\": {}\n },\n \"oauth2ClientCredentials\": {\n \"accessToken\": {},\n \"clientId\": \"\",\n \"clientSecret\": \"\",\n \"requestType\": \"\",\n \"scope\": \"\",\n \"tokenEndpoint\": \"\",\n \"tokenParams\": {}\n },\n \"oauth2ResourceOwnerCredentials\": {\n \"accessToken\": {},\n \"clientId\": \"\",\n \"clientSecret\": \"\",\n \"password\": \"\",\n \"requestType\": \"\",\n \"scope\": \"\",\n \"tokenEndpoint\": \"\",\n \"tokenParams\": {},\n \"username\": \"\"\n },\n \"oidcToken\": {\n \"audience\": \"\",\n \"serviceAccountEmail\": \"\",\n \"token\": \"\",\n \"tokenExpireTime\": \"\"\n },\n \"serviceAccountCredentials\": {\n \"scope\": \"\",\n \"serviceAccount\": \"\"\n },\n \"usernameAndPassword\": {\n \"password\": \"\",\n \"username\": \"\"\n }\n },\n \"description\": \"\",\n \"displayName\": \"\",\n \"encryptedCredential\": \"\",\n \"expiryNotificationDuration\": [],\n \"lastModifierEmail\": \"\",\n \"name\": \"\",\n \"overrideValidTime\": \"\",\n \"reason\": \"\",\n \"state\": \"\",\n \"updateTime\": \"\",\n \"validTime\": \"\",\n \"visibility\": \"\"\n}");
Request request = new Request.Builder()
.url("{{baseUrl}}/v1/:parent/authConfigs")
.post(body)
.addHeader("content-type", "application/json")
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/v1/:parent/authConfigs")
.header("content-type", "application/json")
.body("{\n \"certificateId\": \"\",\n \"createTime\": \"\",\n \"creatorEmail\": \"\",\n \"credentialType\": \"\",\n \"decryptedCredential\": {\n \"authToken\": {\n \"token\": \"\",\n \"type\": \"\"\n },\n \"credentialType\": \"\",\n \"jwt\": {\n \"jwt\": \"\",\n \"jwtHeader\": \"\",\n \"jwtPayload\": \"\",\n \"secret\": \"\"\n },\n \"oauth2AuthorizationCode\": {\n \"accessToken\": {\n \"accessToken\": \"\",\n \"accessTokenExpireTime\": \"\",\n \"refreshToken\": \"\",\n \"refreshTokenExpireTime\": \"\",\n \"tokenType\": \"\"\n },\n \"applyReauthPolicy\": false,\n \"authCode\": \"\",\n \"authEndpoint\": \"\",\n \"authParams\": {\n \"entries\": [\n {\n \"key\": {\n \"literalValue\": {\n \"booleanArray\": {\n \"booleanValues\": []\n },\n \"booleanValue\": false,\n \"doubleArray\": {\n \"doubleValues\": []\n },\n \"doubleValue\": \"\",\n \"intArray\": {\n \"intValues\": []\n },\n \"intValue\": \"\",\n \"jsonValue\": \"\",\n \"stringArray\": {\n \"stringValues\": []\n },\n \"stringValue\": \"\"\n },\n \"referenceKey\": \"\"\n },\n \"value\": {}\n }\n ],\n \"keyType\": \"\",\n \"valueType\": \"\"\n },\n \"clientId\": \"\",\n \"clientSecret\": \"\",\n \"requestType\": \"\",\n \"scope\": \"\",\n \"tokenEndpoint\": \"\",\n \"tokenParams\": {}\n },\n \"oauth2ClientCredentials\": {\n \"accessToken\": {},\n \"clientId\": \"\",\n \"clientSecret\": \"\",\n \"requestType\": \"\",\n \"scope\": \"\",\n \"tokenEndpoint\": \"\",\n \"tokenParams\": {}\n },\n \"oauth2ResourceOwnerCredentials\": {\n \"accessToken\": {},\n \"clientId\": \"\",\n \"clientSecret\": \"\",\n \"password\": \"\",\n \"requestType\": \"\",\n \"scope\": \"\",\n \"tokenEndpoint\": \"\",\n \"tokenParams\": {},\n \"username\": \"\"\n },\n \"oidcToken\": {\n \"audience\": \"\",\n \"serviceAccountEmail\": \"\",\n \"token\": \"\",\n \"tokenExpireTime\": \"\"\n },\n \"serviceAccountCredentials\": {\n \"scope\": \"\",\n \"serviceAccount\": \"\"\n },\n \"usernameAndPassword\": {\n \"password\": \"\",\n \"username\": \"\"\n }\n },\n \"description\": \"\",\n \"displayName\": \"\",\n \"encryptedCredential\": \"\",\n \"expiryNotificationDuration\": [],\n \"lastModifierEmail\": \"\",\n \"name\": \"\",\n \"overrideValidTime\": \"\",\n \"reason\": \"\",\n \"state\": \"\",\n \"updateTime\": \"\",\n \"validTime\": \"\",\n \"visibility\": \"\"\n}")
.asString();
const data = JSON.stringify({
certificateId: '',
createTime: '',
creatorEmail: '',
credentialType: '',
decryptedCredential: {
authToken: {
token: '',
type: ''
},
credentialType: '',
jwt: {
jwt: '',
jwtHeader: '',
jwtPayload: '',
secret: ''
},
oauth2AuthorizationCode: {
accessToken: {
accessToken: '',
accessTokenExpireTime: '',
refreshToken: '',
refreshTokenExpireTime: '',
tokenType: ''
},
applyReauthPolicy: false,
authCode: '',
authEndpoint: '',
authParams: {
entries: [
{
key: {
literalValue: {
booleanArray: {
booleanValues: []
},
booleanValue: false,
doubleArray: {
doubleValues: []
},
doubleValue: '',
intArray: {
intValues: []
},
intValue: '',
jsonValue: '',
stringArray: {
stringValues: []
},
stringValue: ''
},
referenceKey: ''
},
value: {}
}
],
keyType: '',
valueType: ''
},
clientId: '',
clientSecret: '',
requestType: '',
scope: '',
tokenEndpoint: '',
tokenParams: {}
},
oauth2ClientCredentials: {
accessToken: {},
clientId: '',
clientSecret: '',
requestType: '',
scope: '',
tokenEndpoint: '',
tokenParams: {}
},
oauth2ResourceOwnerCredentials: {
accessToken: {},
clientId: '',
clientSecret: '',
password: '',
requestType: '',
scope: '',
tokenEndpoint: '',
tokenParams: {},
username: ''
},
oidcToken: {
audience: '',
serviceAccountEmail: '',
token: '',
tokenExpireTime: ''
},
serviceAccountCredentials: {
scope: '',
serviceAccount: ''
},
usernameAndPassword: {
password: '',
username: ''
}
},
description: '',
displayName: '',
encryptedCredential: '',
expiryNotificationDuration: [],
lastModifierEmail: '',
name: '',
overrideValidTime: '',
reason: '',
state: '',
updateTime: '',
validTime: '',
visibility: ''
});
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('POST', '{{baseUrl}}/v1/:parent/authConfigs');
xhr.setRequestHeader('content-type', 'application/json');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'POST',
url: '{{baseUrl}}/v1/:parent/authConfigs',
headers: {'content-type': 'application/json'},
data: {
certificateId: '',
createTime: '',
creatorEmail: '',
credentialType: '',
decryptedCredential: {
authToken: {token: '', type: ''},
credentialType: '',
jwt: {jwt: '', jwtHeader: '', jwtPayload: '', secret: ''},
oauth2AuthorizationCode: {
accessToken: {
accessToken: '',
accessTokenExpireTime: '',
refreshToken: '',
refreshTokenExpireTime: '',
tokenType: ''
},
applyReauthPolicy: false,
authCode: '',
authEndpoint: '',
authParams: {
entries: [
{
key: {
literalValue: {
booleanArray: {booleanValues: []},
booleanValue: false,
doubleArray: {doubleValues: []},
doubleValue: '',
intArray: {intValues: []},
intValue: '',
jsonValue: '',
stringArray: {stringValues: []},
stringValue: ''
},
referenceKey: ''
},
value: {}
}
],
keyType: '',
valueType: ''
},
clientId: '',
clientSecret: '',
requestType: '',
scope: '',
tokenEndpoint: '',
tokenParams: {}
},
oauth2ClientCredentials: {
accessToken: {},
clientId: '',
clientSecret: '',
requestType: '',
scope: '',
tokenEndpoint: '',
tokenParams: {}
},
oauth2ResourceOwnerCredentials: {
accessToken: {},
clientId: '',
clientSecret: '',
password: '',
requestType: '',
scope: '',
tokenEndpoint: '',
tokenParams: {},
username: ''
},
oidcToken: {audience: '', serviceAccountEmail: '', token: '', tokenExpireTime: ''},
serviceAccountCredentials: {scope: '', serviceAccount: ''},
usernameAndPassword: {password: '', username: ''}
},
description: '',
displayName: '',
encryptedCredential: '',
expiryNotificationDuration: [],
lastModifierEmail: '',
name: '',
overrideValidTime: '',
reason: '',
state: '',
updateTime: '',
validTime: '',
visibility: ''
}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/v1/:parent/authConfigs';
const options = {
method: 'POST',
headers: {'content-type': 'application/json'},
body: '{"certificateId":"","createTime":"","creatorEmail":"","credentialType":"","decryptedCredential":{"authToken":{"token":"","type":""},"credentialType":"","jwt":{"jwt":"","jwtHeader":"","jwtPayload":"","secret":""},"oauth2AuthorizationCode":{"accessToken":{"accessToken":"","accessTokenExpireTime":"","refreshToken":"","refreshTokenExpireTime":"","tokenType":""},"applyReauthPolicy":false,"authCode":"","authEndpoint":"","authParams":{"entries":[{"key":{"literalValue":{"booleanArray":{"booleanValues":[]},"booleanValue":false,"doubleArray":{"doubleValues":[]},"doubleValue":"","intArray":{"intValues":[]},"intValue":"","jsonValue":"","stringArray":{"stringValues":[]},"stringValue":""},"referenceKey":""},"value":{}}],"keyType":"","valueType":""},"clientId":"","clientSecret":"","requestType":"","scope":"","tokenEndpoint":"","tokenParams":{}},"oauth2ClientCredentials":{"accessToken":{},"clientId":"","clientSecret":"","requestType":"","scope":"","tokenEndpoint":"","tokenParams":{}},"oauth2ResourceOwnerCredentials":{"accessToken":{},"clientId":"","clientSecret":"","password":"","requestType":"","scope":"","tokenEndpoint":"","tokenParams":{},"username":""},"oidcToken":{"audience":"","serviceAccountEmail":"","token":"","tokenExpireTime":""},"serviceAccountCredentials":{"scope":"","serviceAccount":""},"usernameAndPassword":{"password":"","username":""}},"description":"","displayName":"","encryptedCredential":"","expiryNotificationDuration":[],"lastModifierEmail":"","name":"","overrideValidTime":"","reason":"","state":"","updateTime":"","validTime":"","visibility":""}'
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/v1/:parent/authConfigs',
method: 'POST',
headers: {
'content-type': 'application/json'
},
processData: false,
data: '{\n "certificateId": "",\n "createTime": "",\n "creatorEmail": "",\n "credentialType": "",\n "decryptedCredential": {\n "authToken": {\n "token": "",\n "type": ""\n },\n "credentialType": "",\n "jwt": {\n "jwt": "",\n "jwtHeader": "",\n "jwtPayload": "",\n "secret": ""\n },\n "oauth2AuthorizationCode": {\n "accessToken": {\n "accessToken": "",\n "accessTokenExpireTime": "",\n "refreshToken": "",\n "refreshTokenExpireTime": "",\n "tokenType": ""\n },\n "applyReauthPolicy": false,\n "authCode": "",\n "authEndpoint": "",\n "authParams": {\n "entries": [\n {\n "key": {\n "literalValue": {\n "booleanArray": {\n "booleanValues": []\n },\n "booleanValue": false,\n "doubleArray": {\n "doubleValues": []\n },\n "doubleValue": "",\n "intArray": {\n "intValues": []\n },\n "intValue": "",\n "jsonValue": "",\n "stringArray": {\n "stringValues": []\n },\n "stringValue": ""\n },\n "referenceKey": ""\n },\n "value": {}\n }\n ],\n "keyType": "",\n "valueType": ""\n },\n "clientId": "",\n "clientSecret": "",\n "requestType": "",\n "scope": "",\n "tokenEndpoint": "",\n "tokenParams": {}\n },\n "oauth2ClientCredentials": {\n "accessToken": {},\n "clientId": "",\n "clientSecret": "",\n "requestType": "",\n "scope": "",\n "tokenEndpoint": "",\n "tokenParams": {}\n },\n "oauth2ResourceOwnerCredentials": {\n "accessToken": {},\n "clientId": "",\n "clientSecret": "",\n "password": "",\n "requestType": "",\n "scope": "",\n "tokenEndpoint": "",\n "tokenParams": {},\n "username": ""\n },\n "oidcToken": {\n "audience": "",\n "serviceAccountEmail": "",\n "token": "",\n "tokenExpireTime": ""\n },\n "serviceAccountCredentials": {\n "scope": "",\n "serviceAccount": ""\n },\n "usernameAndPassword": {\n "password": "",\n "username": ""\n }\n },\n "description": "",\n "displayName": "",\n "encryptedCredential": "",\n "expiryNotificationDuration": [],\n "lastModifierEmail": "",\n "name": "",\n "overrideValidTime": "",\n "reason": "",\n "state": "",\n "updateTime": "",\n "validTime": "",\n "visibility": ""\n}'
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n \"certificateId\": \"\",\n \"createTime\": \"\",\n \"creatorEmail\": \"\",\n \"credentialType\": \"\",\n \"decryptedCredential\": {\n \"authToken\": {\n \"token\": \"\",\n \"type\": \"\"\n },\n \"credentialType\": \"\",\n \"jwt\": {\n \"jwt\": \"\",\n \"jwtHeader\": \"\",\n \"jwtPayload\": \"\",\n \"secret\": \"\"\n },\n \"oauth2AuthorizationCode\": {\n \"accessToken\": {\n \"accessToken\": \"\",\n \"accessTokenExpireTime\": \"\",\n \"refreshToken\": \"\",\n \"refreshTokenExpireTime\": \"\",\n \"tokenType\": \"\"\n },\n \"applyReauthPolicy\": false,\n \"authCode\": \"\",\n \"authEndpoint\": \"\",\n \"authParams\": {\n \"entries\": [\n {\n \"key\": {\n \"literalValue\": {\n \"booleanArray\": {\n \"booleanValues\": []\n },\n \"booleanValue\": false,\n \"doubleArray\": {\n \"doubleValues\": []\n },\n \"doubleValue\": \"\",\n \"intArray\": {\n \"intValues\": []\n },\n \"intValue\": \"\",\n \"jsonValue\": \"\",\n \"stringArray\": {\n \"stringValues\": []\n },\n \"stringValue\": \"\"\n },\n \"referenceKey\": \"\"\n },\n \"value\": {}\n }\n ],\n \"keyType\": \"\",\n \"valueType\": \"\"\n },\n \"clientId\": \"\",\n \"clientSecret\": \"\",\n \"requestType\": \"\",\n \"scope\": \"\",\n \"tokenEndpoint\": \"\",\n \"tokenParams\": {}\n },\n \"oauth2ClientCredentials\": {\n \"accessToken\": {},\n \"clientId\": \"\",\n \"clientSecret\": \"\",\n \"requestType\": \"\",\n \"scope\": \"\",\n \"tokenEndpoint\": \"\",\n \"tokenParams\": {}\n },\n \"oauth2ResourceOwnerCredentials\": {\n \"accessToken\": {},\n \"clientId\": \"\",\n \"clientSecret\": \"\",\n \"password\": \"\",\n \"requestType\": \"\",\n \"scope\": \"\",\n \"tokenEndpoint\": \"\",\n \"tokenParams\": {},\n \"username\": \"\"\n },\n \"oidcToken\": {\n \"audience\": \"\",\n \"serviceAccountEmail\": \"\",\n \"token\": \"\",\n \"tokenExpireTime\": \"\"\n },\n \"serviceAccountCredentials\": {\n \"scope\": \"\",\n \"serviceAccount\": \"\"\n },\n \"usernameAndPassword\": {\n \"password\": \"\",\n \"username\": \"\"\n }\n },\n \"description\": \"\",\n \"displayName\": \"\",\n \"encryptedCredential\": \"\",\n \"expiryNotificationDuration\": [],\n \"lastModifierEmail\": \"\",\n \"name\": \"\",\n \"overrideValidTime\": \"\",\n \"reason\": \"\",\n \"state\": \"\",\n \"updateTime\": \"\",\n \"validTime\": \"\",\n \"visibility\": \"\"\n}")
val request = Request.Builder()
.url("{{baseUrl}}/v1/:parent/authConfigs")
.post(body)
.addHeader("content-type", "application/json")
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'POST',
hostname: 'example.com',
port: null,
path: '/baseUrl/v1/:parent/authConfigs',
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({
certificateId: '',
createTime: '',
creatorEmail: '',
credentialType: '',
decryptedCredential: {
authToken: {token: '', type: ''},
credentialType: '',
jwt: {jwt: '', jwtHeader: '', jwtPayload: '', secret: ''},
oauth2AuthorizationCode: {
accessToken: {
accessToken: '',
accessTokenExpireTime: '',
refreshToken: '',
refreshTokenExpireTime: '',
tokenType: ''
},
applyReauthPolicy: false,
authCode: '',
authEndpoint: '',
authParams: {
entries: [
{
key: {
literalValue: {
booleanArray: {booleanValues: []},
booleanValue: false,
doubleArray: {doubleValues: []},
doubleValue: '',
intArray: {intValues: []},
intValue: '',
jsonValue: '',
stringArray: {stringValues: []},
stringValue: ''
},
referenceKey: ''
},
value: {}
}
],
keyType: '',
valueType: ''
},
clientId: '',
clientSecret: '',
requestType: '',
scope: '',
tokenEndpoint: '',
tokenParams: {}
},
oauth2ClientCredentials: {
accessToken: {},
clientId: '',
clientSecret: '',
requestType: '',
scope: '',
tokenEndpoint: '',
tokenParams: {}
},
oauth2ResourceOwnerCredentials: {
accessToken: {},
clientId: '',
clientSecret: '',
password: '',
requestType: '',
scope: '',
tokenEndpoint: '',
tokenParams: {},
username: ''
},
oidcToken: {audience: '', serviceAccountEmail: '', token: '', tokenExpireTime: ''},
serviceAccountCredentials: {scope: '', serviceAccount: ''},
usernameAndPassword: {password: '', username: ''}
},
description: '',
displayName: '',
encryptedCredential: '',
expiryNotificationDuration: [],
lastModifierEmail: '',
name: '',
overrideValidTime: '',
reason: '',
state: '',
updateTime: '',
validTime: '',
visibility: ''
}));
req.end();
const request = require('request');
const options = {
method: 'POST',
url: '{{baseUrl}}/v1/:parent/authConfigs',
headers: {'content-type': 'application/json'},
body: {
certificateId: '',
createTime: '',
creatorEmail: '',
credentialType: '',
decryptedCredential: {
authToken: {token: '', type: ''},
credentialType: '',
jwt: {jwt: '', jwtHeader: '', jwtPayload: '', secret: ''},
oauth2AuthorizationCode: {
accessToken: {
accessToken: '',
accessTokenExpireTime: '',
refreshToken: '',
refreshTokenExpireTime: '',
tokenType: ''
},
applyReauthPolicy: false,
authCode: '',
authEndpoint: '',
authParams: {
entries: [
{
key: {
literalValue: {
booleanArray: {booleanValues: []},
booleanValue: false,
doubleArray: {doubleValues: []},
doubleValue: '',
intArray: {intValues: []},
intValue: '',
jsonValue: '',
stringArray: {stringValues: []},
stringValue: ''
},
referenceKey: ''
},
value: {}
}
],
keyType: '',
valueType: ''
},
clientId: '',
clientSecret: '',
requestType: '',
scope: '',
tokenEndpoint: '',
tokenParams: {}
},
oauth2ClientCredentials: {
accessToken: {},
clientId: '',
clientSecret: '',
requestType: '',
scope: '',
tokenEndpoint: '',
tokenParams: {}
},
oauth2ResourceOwnerCredentials: {
accessToken: {},
clientId: '',
clientSecret: '',
password: '',
requestType: '',
scope: '',
tokenEndpoint: '',
tokenParams: {},
username: ''
},
oidcToken: {audience: '', serviceAccountEmail: '', token: '', tokenExpireTime: ''},
serviceAccountCredentials: {scope: '', serviceAccount: ''},
usernameAndPassword: {password: '', username: ''}
},
description: '',
displayName: '',
encryptedCredential: '',
expiryNotificationDuration: [],
lastModifierEmail: '',
name: '',
overrideValidTime: '',
reason: '',
state: '',
updateTime: '',
validTime: '',
visibility: ''
},
json: true
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('POST', '{{baseUrl}}/v1/:parent/authConfigs');
req.headers({
'content-type': 'application/json'
});
req.type('json');
req.send({
certificateId: '',
createTime: '',
creatorEmail: '',
credentialType: '',
decryptedCredential: {
authToken: {
token: '',
type: ''
},
credentialType: '',
jwt: {
jwt: '',
jwtHeader: '',
jwtPayload: '',
secret: ''
},
oauth2AuthorizationCode: {
accessToken: {
accessToken: '',
accessTokenExpireTime: '',
refreshToken: '',
refreshTokenExpireTime: '',
tokenType: ''
},
applyReauthPolicy: false,
authCode: '',
authEndpoint: '',
authParams: {
entries: [
{
key: {
literalValue: {
booleanArray: {
booleanValues: []
},
booleanValue: false,
doubleArray: {
doubleValues: []
},
doubleValue: '',
intArray: {
intValues: []
},
intValue: '',
jsonValue: '',
stringArray: {
stringValues: []
},
stringValue: ''
},
referenceKey: ''
},
value: {}
}
],
keyType: '',
valueType: ''
},
clientId: '',
clientSecret: '',
requestType: '',
scope: '',
tokenEndpoint: '',
tokenParams: {}
},
oauth2ClientCredentials: {
accessToken: {},
clientId: '',
clientSecret: '',
requestType: '',
scope: '',
tokenEndpoint: '',
tokenParams: {}
},
oauth2ResourceOwnerCredentials: {
accessToken: {},
clientId: '',
clientSecret: '',
password: '',
requestType: '',
scope: '',
tokenEndpoint: '',
tokenParams: {},
username: ''
},
oidcToken: {
audience: '',
serviceAccountEmail: '',
token: '',
tokenExpireTime: ''
},
serviceAccountCredentials: {
scope: '',
serviceAccount: ''
},
usernameAndPassword: {
password: '',
username: ''
}
},
description: '',
displayName: '',
encryptedCredential: '',
expiryNotificationDuration: [],
lastModifierEmail: '',
name: '',
overrideValidTime: '',
reason: '',
state: '',
updateTime: '',
validTime: '',
visibility: ''
});
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {
method: 'POST',
url: '{{baseUrl}}/v1/:parent/authConfigs',
headers: {'content-type': 'application/json'},
data: {
certificateId: '',
createTime: '',
creatorEmail: '',
credentialType: '',
decryptedCredential: {
authToken: {token: '', type: ''},
credentialType: '',
jwt: {jwt: '', jwtHeader: '', jwtPayload: '', secret: ''},
oauth2AuthorizationCode: {
accessToken: {
accessToken: '',
accessTokenExpireTime: '',
refreshToken: '',
refreshTokenExpireTime: '',
tokenType: ''
},
applyReauthPolicy: false,
authCode: '',
authEndpoint: '',
authParams: {
entries: [
{
key: {
literalValue: {
booleanArray: {booleanValues: []},
booleanValue: false,
doubleArray: {doubleValues: []},
doubleValue: '',
intArray: {intValues: []},
intValue: '',
jsonValue: '',
stringArray: {stringValues: []},
stringValue: ''
},
referenceKey: ''
},
value: {}
}
],
keyType: '',
valueType: ''
},
clientId: '',
clientSecret: '',
requestType: '',
scope: '',
tokenEndpoint: '',
tokenParams: {}
},
oauth2ClientCredentials: {
accessToken: {},
clientId: '',
clientSecret: '',
requestType: '',
scope: '',
tokenEndpoint: '',
tokenParams: {}
},
oauth2ResourceOwnerCredentials: {
accessToken: {},
clientId: '',
clientSecret: '',
password: '',
requestType: '',
scope: '',
tokenEndpoint: '',
tokenParams: {},
username: ''
},
oidcToken: {audience: '', serviceAccountEmail: '', token: '', tokenExpireTime: ''},
serviceAccountCredentials: {scope: '', serviceAccount: ''},
usernameAndPassword: {password: '', username: ''}
},
description: '',
displayName: '',
encryptedCredential: '',
expiryNotificationDuration: [],
lastModifierEmail: '',
name: '',
overrideValidTime: '',
reason: '',
state: '',
updateTime: '',
validTime: '',
visibility: ''
}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/v1/:parent/authConfigs';
const options = {
method: 'POST',
headers: {'content-type': 'application/json'},
body: '{"certificateId":"","createTime":"","creatorEmail":"","credentialType":"","decryptedCredential":{"authToken":{"token":"","type":""},"credentialType":"","jwt":{"jwt":"","jwtHeader":"","jwtPayload":"","secret":""},"oauth2AuthorizationCode":{"accessToken":{"accessToken":"","accessTokenExpireTime":"","refreshToken":"","refreshTokenExpireTime":"","tokenType":""},"applyReauthPolicy":false,"authCode":"","authEndpoint":"","authParams":{"entries":[{"key":{"literalValue":{"booleanArray":{"booleanValues":[]},"booleanValue":false,"doubleArray":{"doubleValues":[]},"doubleValue":"","intArray":{"intValues":[]},"intValue":"","jsonValue":"","stringArray":{"stringValues":[]},"stringValue":""},"referenceKey":""},"value":{}}],"keyType":"","valueType":""},"clientId":"","clientSecret":"","requestType":"","scope":"","tokenEndpoint":"","tokenParams":{}},"oauth2ClientCredentials":{"accessToken":{},"clientId":"","clientSecret":"","requestType":"","scope":"","tokenEndpoint":"","tokenParams":{}},"oauth2ResourceOwnerCredentials":{"accessToken":{},"clientId":"","clientSecret":"","password":"","requestType":"","scope":"","tokenEndpoint":"","tokenParams":{},"username":""},"oidcToken":{"audience":"","serviceAccountEmail":"","token":"","tokenExpireTime":""},"serviceAccountCredentials":{"scope":"","serviceAccount":""},"usernameAndPassword":{"password":"","username":""}},"description":"","displayName":"","encryptedCredential":"","expiryNotificationDuration":[],"lastModifierEmail":"","name":"","overrideValidTime":"","reason":"","state":"","updateTime":"","validTime":"","visibility":""}'
};
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 = @{ @"certificateId": @"",
@"createTime": @"",
@"creatorEmail": @"",
@"credentialType": @"",
@"decryptedCredential": @{ @"authToken": @{ @"token": @"", @"type": @"" }, @"credentialType": @"", @"jwt": @{ @"jwt": @"", @"jwtHeader": @"", @"jwtPayload": @"", @"secret": @"" }, @"oauth2AuthorizationCode": @{ @"accessToken": @{ @"accessToken": @"", @"accessTokenExpireTime": @"", @"refreshToken": @"", @"refreshTokenExpireTime": @"", @"tokenType": @"" }, @"applyReauthPolicy": @NO, @"authCode": @"", @"authEndpoint": @"", @"authParams": @{ @"entries": @[ @{ @"key": @{ @"literalValue": @{ @"booleanArray": @{ @"booleanValues": @[ ] }, @"booleanValue": @NO, @"doubleArray": @{ @"doubleValues": @[ ] }, @"doubleValue": @"", @"intArray": @{ @"intValues": @[ ] }, @"intValue": @"", @"jsonValue": @"", @"stringArray": @{ @"stringValues": @[ ] }, @"stringValue": @"" }, @"referenceKey": @"" }, @"value": @{ } } ], @"keyType": @"", @"valueType": @"" }, @"clientId": @"", @"clientSecret": @"", @"requestType": @"", @"scope": @"", @"tokenEndpoint": @"", @"tokenParams": @{ } }, @"oauth2ClientCredentials": @{ @"accessToken": @{ }, @"clientId": @"", @"clientSecret": @"", @"requestType": @"", @"scope": @"", @"tokenEndpoint": @"", @"tokenParams": @{ } }, @"oauth2ResourceOwnerCredentials": @{ @"accessToken": @{ }, @"clientId": @"", @"clientSecret": @"", @"password": @"", @"requestType": @"", @"scope": @"", @"tokenEndpoint": @"", @"tokenParams": @{ }, @"username": @"" }, @"oidcToken": @{ @"audience": @"", @"serviceAccountEmail": @"", @"token": @"", @"tokenExpireTime": @"" }, @"serviceAccountCredentials": @{ @"scope": @"", @"serviceAccount": @"" }, @"usernameAndPassword": @{ @"password": @"", @"username": @"" } },
@"description": @"",
@"displayName": @"",
@"encryptedCredential": @"",
@"expiryNotificationDuration": @[ ],
@"lastModifierEmail": @"",
@"name": @"",
@"overrideValidTime": @"",
@"reason": @"",
@"state": @"",
@"updateTime": @"",
@"validTime": @"",
@"visibility": @"" };
NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/v1/:parent/authConfigs"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"POST"];
[request setAllHTTPHeaderFields:headers];
[request setHTTPBody:postData];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/v1/:parent/authConfigs" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n \"certificateId\": \"\",\n \"createTime\": \"\",\n \"creatorEmail\": \"\",\n \"credentialType\": \"\",\n \"decryptedCredential\": {\n \"authToken\": {\n \"token\": \"\",\n \"type\": \"\"\n },\n \"credentialType\": \"\",\n \"jwt\": {\n \"jwt\": \"\",\n \"jwtHeader\": \"\",\n \"jwtPayload\": \"\",\n \"secret\": \"\"\n },\n \"oauth2AuthorizationCode\": {\n \"accessToken\": {\n \"accessToken\": \"\",\n \"accessTokenExpireTime\": \"\",\n \"refreshToken\": \"\",\n \"refreshTokenExpireTime\": \"\",\n \"tokenType\": \"\"\n },\n \"applyReauthPolicy\": false,\n \"authCode\": \"\",\n \"authEndpoint\": \"\",\n \"authParams\": {\n \"entries\": [\n {\n \"key\": {\n \"literalValue\": {\n \"booleanArray\": {\n \"booleanValues\": []\n },\n \"booleanValue\": false,\n \"doubleArray\": {\n \"doubleValues\": []\n },\n \"doubleValue\": \"\",\n \"intArray\": {\n \"intValues\": []\n },\n \"intValue\": \"\",\n \"jsonValue\": \"\",\n \"stringArray\": {\n \"stringValues\": []\n },\n \"stringValue\": \"\"\n },\n \"referenceKey\": \"\"\n },\n \"value\": {}\n }\n ],\n \"keyType\": \"\",\n \"valueType\": \"\"\n },\n \"clientId\": \"\",\n \"clientSecret\": \"\",\n \"requestType\": \"\",\n \"scope\": \"\",\n \"tokenEndpoint\": \"\",\n \"tokenParams\": {}\n },\n \"oauth2ClientCredentials\": {\n \"accessToken\": {},\n \"clientId\": \"\",\n \"clientSecret\": \"\",\n \"requestType\": \"\",\n \"scope\": \"\",\n \"tokenEndpoint\": \"\",\n \"tokenParams\": {}\n },\n \"oauth2ResourceOwnerCredentials\": {\n \"accessToken\": {},\n \"clientId\": \"\",\n \"clientSecret\": \"\",\n \"password\": \"\",\n \"requestType\": \"\",\n \"scope\": \"\",\n \"tokenEndpoint\": \"\",\n \"tokenParams\": {},\n \"username\": \"\"\n },\n \"oidcToken\": {\n \"audience\": \"\",\n \"serviceAccountEmail\": \"\",\n \"token\": \"\",\n \"tokenExpireTime\": \"\"\n },\n \"serviceAccountCredentials\": {\n \"scope\": \"\",\n \"serviceAccount\": \"\"\n },\n \"usernameAndPassword\": {\n \"password\": \"\",\n \"username\": \"\"\n }\n },\n \"description\": \"\",\n \"displayName\": \"\",\n \"encryptedCredential\": \"\",\n \"expiryNotificationDuration\": [],\n \"lastModifierEmail\": \"\",\n \"name\": \"\",\n \"overrideValidTime\": \"\",\n \"reason\": \"\",\n \"state\": \"\",\n \"updateTime\": \"\",\n \"validTime\": \"\",\n \"visibility\": \"\"\n}" in
Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/v1/:parent/authConfigs",
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([
'certificateId' => '',
'createTime' => '',
'creatorEmail' => '',
'credentialType' => '',
'decryptedCredential' => [
'authToken' => [
'token' => '',
'type' => ''
],
'credentialType' => '',
'jwt' => [
'jwt' => '',
'jwtHeader' => '',
'jwtPayload' => '',
'secret' => ''
],
'oauth2AuthorizationCode' => [
'accessToken' => [
'accessToken' => '',
'accessTokenExpireTime' => '',
'refreshToken' => '',
'refreshTokenExpireTime' => '',
'tokenType' => ''
],
'applyReauthPolicy' => null,
'authCode' => '',
'authEndpoint' => '',
'authParams' => [
'entries' => [
[
'key' => [
'literalValue' => [
'booleanArray' => [
'booleanValues' => [
]
],
'booleanValue' => null,
'doubleArray' => [
'doubleValues' => [
]
],
'doubleValue' => '',
'intArray' => [
'intValues' => [
]
],
'intValue' => '',
'jsonValue' => '',
'stringArray' => [
'stringValues' => [
]
],
'stringValue' => ''
],
'referenceKey' => ''
],
'value' => [
]
]
],
'keyType' => '',
'valueType' => ''
],
'clientId' => '',
'clientSecret' => '',
'requestType' => '',
'scope' => '',
'tokenEndpoint' => '',
'tokenParams' => [
]
],
'oauth2ClientCredentials' => [
'accessToken' => [
],
'clientId' => '',
'clientSecret' => '',
'requestType' => '',
'scope' => '',
'tokenEndpoint' => '',
'tokenParams' => [
]
],
'oauth2ResourceOwnerCredentials' => [
'accessToken' => [
],
'clientId' => '',
'clientSecret' => '',
'password' => '',
'requestType' => '',
'scope' => '',
'tokenEndpoint' => '',
'tokenParams' => [
],
'username' => ''
],
'oidcToken' => [
'audience' => '',
'serviceAccountEmail' => '',
'token' => '',
'tokenExpireTime' => ''
],
'serviceAccountCredentials' => [
'scope' => '',
'serviceAccount' => ''
],
'usernameAndPassword' => [
'password' => '',
'username' => ''
]
],
'description' => '',
'displayName' => '',
'encryptedCredential' => '',
'expiryNotificationDuration' => [
],
'lastModifierEmail' => '',
'name' => '',
'overrideValidTime' => '',
'reason' => '',
'state' => '',
'updateTime' => '',
'validTime' => '',
'visibility' => ''
]),
CURLOPT_HTTPHEADER => [
"content-type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('POST', '{{baseUrl}}/v1/:parent/authConfigs', [
'body' => '{
"certificateId": "",
"createTime": "",
"creatorEmail": "",
"credentialType": "",
"decryptedCredential": {
"authToken": {
"token": "",
"type": ""
},
"credentialType": "",
"jwt": {
"jwt": "",
"jwtHeader": "",
"jwtPayload": "",
"secret": ""
},
"oauth2AuthorizationCode": {
"accessToken": {
"accessToken": "",
"accessTokenExpireTime": "",
"refreshToken": "",
"refreshTokenExpireTime": "",
"tokenType": ""
},
"applyReauthPolicy": false,
"authCode": "",
"authEndpoint": "",
"authParams": {
"entries": [
{
"key": {
"literalValue": {
"booleanArray": {
"booleanValues": []
},
"booleanValue": false,
"doubleArray": {
"doubleValues": []
},
"doubleValue": "",
"intArray": {
"intValues": []
},
"intValue": "",
"jsonValue": "",
"stringArray": {
"stringValues": []
},
"stringValue": ""
},
"referenceKey": ""
},
"value": {}
}
],
"keyType": "",
"valueType": ""
},
"clientId": "",
"clientSecret": "",
"requestType": "",
"scope": "",
"tokenEndpoint": "",
"tokenParams": {}
},
"oauth2ClientCredentials": {
"accessToken": {},
"clientId": "",
"clientSecret": "",
"requestType": "",
"scope": "",
"tokenEndpoint": "",
"tokenParams": {}
},
"oauth2ResourceOwnerCredentials": {
"accessToken": {},
"clientId": "",
"clientSecret": "",
"password": "",
"requestType": "",
"scope": "",
"tokenEndpoint": "",
"tokenParams": {},
"username": ""
},
"oidcToken": {
"audience": "",
"serviceAccountEmail": "",
"token": "",
"tokenExpireTime": ""
},
"serviceAccountCredentials": {
"scope": "",
"serviceAccount": ""
},
"usernameAndPassword": {
"password": "",
"username": ""
}
},
"description": "",
"displayName": "",
"encryptedCredential": "",
"expiryNotificationDuration": [],
"lastModifierEmail": "",
"name": "",
"overrideValidTime": "",
"reason": "",
"state": "",
"updateTime": "",
"validTime": "",
"visibility": ""
}',
'headers' => [
'content-type' => 'application/json',
],
]);
echo $response->getBody();
setUrl('{{baseUrl}}/v1/:parent/authConfigs');
$request->setMethod(HTTP_METH_POST);
$request->setHeaders([
'content-type' => 'application/json'
]);
$request->setContentType('application/json');
$request->setBody(json_encode([
'certificateId' => '',
'createTime' => '',
'creatorEmail' => '',
'credentialType' => '',
'decryptedCredential' => [
'authToken' => [
'token' => '',
'type' => ''
],
'credentialType' => '',
'jwt' => [
'jwt' => '',
'jwtHeader' => '',
'jwtPayload' => '',
'secret' => ''
],
'oauth2AuthorizationCode' => [
'accessToken' => [
'accessToken' => '',
'accessTokenExpireTime' => '',
'refreshToken' => '',
'refreshTokenExpireTime' => '',
'tokenType' => ''
],
'applyReauthPolicy' => null,
'authCode' => '',
'authEndpoint' => '',
'authParams' => [
'entries' => [
[
'key' => [
'literalValue' => [
'booleanArray' => [
'booleanValues' => [
]
],
'booleanValue' => null,
'doubleArray' => [
'doubleValues' => [
]
],
'doubleValue' => '',
'intArray' => [
'intValues' => [
]
],
'intValue' => '',
'jsonValue' => '',
'stringArray' => [
'stringValues' => [
]
],
'stringValue' => ''
],
'referenceKey' => ''
],
'value' => [
]
]
],
'keyType' => '',
'valueType' => ''
],
'clientId' => '',
'clientSecret' => '',
'requestType' => '',
'scope' => '',
'tokenEndpoint' => '',
'tokenParams' => [
]
],
'oauth2ClientCredentials' => [
'accessToken' => [
],
'clientId' => '',
'clientSecret' => '',
'requestType' => '',
'scope' => '',
'tokenEndpoint' => '',
'tokenParams' => [
]
],
'oauth2ResourceOwnerCredentials' => [
'accessToken' => [
],
'clientId' => '',
'clientSecret' => '',
'password' => '',
'requestType' => '',
'scope' => '',
'tokenEndpoint' => '',
'tokenParams' => [
],
'username' => ''
],
'oidcToken' => [
'audience' => '',
'serviceAccountEmail' => '',
'token' => '',
'tokenExpireTime' => ''
],
'serviceAccountCredentials' => [
'scope' => '',
'serviceAccount' => ''
],
'usernameAndPassword' => [
'password' => '',
'username' => ''
]
],
'description' => '',
'displayName' => '',
'encryptedCredential' => '',
'expiryNotificationDuration' => [
],
'lastModifierEmail' => '',
'name' => '',
'overrideValidTime' => '',
'reason' => '',
'state' => '',
'updateTime' => '',
'validTime' => '',
'visibility' => ''
]));
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
append(json_encode([
'certificateId' => '',
'createTime' => '',
'creatorEmail' => '',
'credentialType' => '',
'decryptedCredential' => [
'authToken' => [
'token' => '',
'type' => ''
],
'credentialType' => '',
'jwt' => [
'jwt' => '',
'jwtHeader' => '',
'jwtPayload' => '',
'secret' => ''
],
'oauth2AuthorizationCode' => [
'accessToken' => [
'accessToken' => '',
'accessTokenExpireTime' => '',
'refreshToken' => '',
'refreshTokenExpireTime' => '',
'tokenType' => ''
],
'applyReauthPolicy' => null,
'authCode' => '',
'authEndpoint' => '',
'authParams' => [
'entries' => [
[
'key' => [
'literalValue' => [
'booleanArray' => [
'booleanValues' => [
]
],
'booleanValue' => null,
'doubleArray' => [
'doubleValues' => [
]
],
'doubleValue' => '',
'intArray' => [
'intValues' => [
]
],
'intValue' => '',
'jsonValue' => '',
'stringArray' => [
'stringValues' => [
]
],
'stringValue' => ''
],
'referenceKey' => ''
],
'value' => [
]
]
],
'keyType' => '',
'valueType' => ''
],
'clientId' => '',
'clientSecret' => '',
'requestType' => '',
'scope' => '',
'tokenEndpoint' => '',
'tokenParams' => [
]
],
'oauth2ClientCredentials' => [
'accessToken' => [
],
'clientId' => '',
'clientSecret' => '',
'requestType' => '',
'scope' => '',
'tokenEndpoint' => '',
'tokenParams' => [
]
],
'oauth2ResourceOwnerCredentials' => [
'accessToken' => [
],
'clientId' => '',
'clientSecret' => '',
'password' => '',
'requestType' => '',
'scope' => '',
'tokenEndpoint' => '',
'tokenParams' => [
],
'username' => ''
],
'oidcToken' => [
'audience' => '',
'serviceAccountEmail' => '',
'token' => '',
'tokenExpireTime' => ''
],
'serviceAccountCredentials' => [
'scope' => '',
'serviceAccount' => ''
],
'usernameAndPassword' => [
'password' => '',
'username' => ''
]
],
'description' => '',
'displayName' => '',
'encryptedCredential' => '',
'expiryNotificationDuration' => [
],
'lastModifierEmail' => '',
'name' => '',
'overrideValidTime' => '',
'reason' => '',
'state' => '',
'updateTime' => '',
'validTime' => '',
'visibility' => ''
]));
$request->setRequestUrl('{{baseUrl}}/v1/:parent/authConfigs');
$request->setRequestMethod('POST');
$request->setBody($body);
$request->setHeaders([
'content-type' => 'application/json'
]);
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/v1/:parent/authConfigs' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
"certificateId": "",
"createTime": "",
"creatorEmail": "",
"credentialType": "",
"decryptedCredential": {
"authToken": {
"token": "",
"type": ""
},
"credentialType": "",
"jwt": {
"jwt": "",
"jwtHeader": "",
"jwtPayload": "",
"secret": ""
},
"oauth2AuthorizationCode": {
"accessToken": {
"accessToken": "",
"accessTokenExpireTime": "",
"refreshToken": "",
"refreshTokenExpireTime": "",
"tokenType": ""
},
"applyReauthPolicy": false,
"authCode": "",
"authEndpoint": "",
"authParams": {
"entries": [
{
"key": {
"literalValue": {
"booleanArray": {
"booleanValues": []
},
"booleanValue": false,
"doubleArray": {
"doubleValues": []
},
"doubleValue": "",
"intArray": {
"intValues": []
},
"intValue": "",
"jsonValue": "",
"stringArray": {
"stringValues": []
},
"stringValue": ""
},
"referenceKey": ""
},
"value": {}
}
],
"keyType": "",
"valueType": ""
},
"clientId": "",
"clientSecret": "",
"requestType": "",
"scope": "",
"tokenEndpoint": "",
"tokenParams": {}
},
"oauth2ClientCredentials": {
"accessToken": {},
"clientId": "",
"clientSecret": "",
"requestType": "",
"scope": "",
"tokenEndpoint": "",
"tokenParams": {}
},
"oauth2ResourceOwnerCredentials": {
"accessToken": {},
"clientId": "",
"clientSecret": "",
"password": "",
"requestType": "",
"scope": "",
"tokenEndpoint": "",
"tokenParams": {},
"username": ""
},
"oidcToken": {
"audience": "",
"serviceAccountEmail": "",
"token": "",
"tokenExpireTime": ""
},
"serviceAccountCredentials": {
"scope": "",
"serviceAccount": ""
},
"usernameAndPassword": {
"password": "",
"username": ""
}
},
"description": "",
"displayName": "",
"encryptedCredential": "",
"expiryNotificationDuration": [],
"lastModifierEmail": "",
"name": "",
"overrideValidTime": "",
"reason": "",
"state": "",
"updateTime": "",
"validTime": "",
"visibility": ""
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/v1/:parent/authConfigs' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
"certificateId": "",
"createTime": "",
"creatorEmail": "",
"credentialType": "",
"decryptedCredential": {
"authToken": {
"token": "",
"type": ""
},
"credentialType": "",
"jwt": {
"jwt": "",
"jwtHeader": "",
"jwtPayload": "",
"secret": ""
},
"oauth2AuthorizationCode": {
"accessToken": {
"accessToken": "",
"accessTokenExpireTime": "",
"refreshToken": "",
"refreshTokenExpireTime": "",
"tokenType": ""
},
"applyReauthPolicy": false,
"authCode": "",
"authEndpoint": "",
"authParams": {
"entries": [
{
"key": {
"literalValue": {
"booleanArray": {
"booleanValues": []
},
"booleanValue": false,
"doubleArray": {
"doubleValues": []
},
"doubleValue": "",
"intArray": {
"intValues": []
},
"intValue": "",
"jsonValue": "",
"stringArray": {
"stringValues": []
},
"stringValue": ""
},
"referenceKey": ""
},
"value": {}
}
],
"keyType": "",
"valueType": ""
},
"clientId": "",
"clientSecret": "",
"requestType": "",
"scope": "",
"tokenEndpoint": "",
"tokenParams": {}
},
"oauth2ClientCredentials": {
"accessToken": {},
"clientId": "",
"clientSecret": "",
"requestType": "",
"scope": "",
"tokenEndpoint": "",
"tokenParams": {}
},
"oauth2ResourceOwnerCredentials": {
"accessToken": {},
"clientId": "",
"clientSecret": "",
"password": "",
"requestType": "",
"scope": "",
"tokenEndpoint": "",
"tokenParams": {},
"username": ""
},
"oidcToken": {
"audience": "",
"serviceAccountEmail": "",
"token": "",
"tokenExpireTime": ""
},
"serviceAccountCredentials": {
"scope": "",
"serviceAccount": ""
},
"usernameAndPassword": {
"password": "",
"username": ""
}
},
"description": "",
"displayName": "",
"encryptedCredential": "",
"expiryNotificationDuration": [],
"lastModifierEmail": "",
"name": "",
"overrideValidTime": "",
"reason": "",
"state": "",
"updateTime": "",
"validTime": "",
"visibility": ""
}'
import http.client
conn = http.client.HTTPSConnection("example.com")
payload = "{\n \"certificateId\": \"\",\n \"createTime\": \"\",\n \"creatorEmail\": \"\",\n \"credentialType\": \"\",\n \"decryptedCredential\": {\n \"authToken\": {\n \"token\": \"\",\n \"type\": \"\"\n },\n \"credentialType\": \"\",\n \"jwt\": {\n \"jwt\": \"\",\n \"jwtHeader\": \"\",\n \"jwtPayload\": \"\",\n \"secret\": \"\"\n },\n \"oauth2AuthorizationCode\": {\n \"accessToken\": {\n \"accessToken\": \"\",\n \"accessTokenExpireTime\": \"\",\n \"refreshToken\": \"\",\n \"refreshTokenExpireTime\": \"\",\n \"tokenType\": \"\"\n },\n \"applyReauthPolicy\": false,\n \"authCode\": \"\",\n \"authEndpoint\": \"\",\n \"authParams\": {\n \"entries\": [\n {\n \"key\": {\n \"literalValue\": {\n \"booleanArray\": {\n \"booleanValues\": []\n },\n \"booleanValue\": false,\n \"doubleArray\": {\n \"doubleValues\": []\n },\n \"doubleValue\": \"\",\n \"intArray\": {\n \"intValues\": []\n },\n \"intValue\": \"\",\n \"jsonValue\": \"\",\n \"stringArray\": {\n \"stringValues\": []\n },\n \"stringValue\": \"\"\n },\n \"referenceKey\": \"\"\n },\n \"value\": {}\n }\n ],\n \"keyType\": \"\",\n \"valueType\": \"\"\n },\n \"clientId\": \"\",\n \"clientSecret\": \"\",\n \"requestType\": \"\",\n \"scope\": \"\",\n \"tokenEndpoint\": \"\",\n \"tokenParams\": {}\n },\n \"oauth2ClientCredentials\": {\n \"accessToken\": {},\n \"clientId\": \"\",\n \"clientSecret\": \"\",\n \"requestType\": \"\",\n \"scope\": \"\",\n \"tokenEndpoint\": \"\",\n \"tokenParams\": {}\n },\n \"oauth2ResourceOwnerCredentials\": {\n \"accessToken\": {},\n \"clientId\": \"\",\n \"clientSecret\": \"\",\n \"password\": \"\",\n \"requestType\": \"\",\n \"scope\": \"\",\n \"tokenEndpoint\": \"\",\n \"tokenParams\": {},\n \"username\": \"\"\n },\n \"oidcToken\": {\n \"audience\": \"\",\n \"serviceAccountEmail\": \"\",\n \"token\": \"\",\n \"tokenExpireTime\": \"\"\n },\n \"serviceAccountCredentials\": {\n \"scope\": \"\",\n \"serviceAccount\": \"\"\n },\n \"usernameAndPassword\": {\n \"password\": \"\",\n \"username\": \"\"\n }\n },\n \"description\": \"\",\n \"displayName\": \"\",\n \"encryptedCredential\": \"\",\n \"expiryNotificationDuration\": [],\n \"lastModifierEmail\": \"\",\n \"name\": \"\",\n \"overrideValidTime\": \"\",\n \"reason\": \"\",\n \"state\": \"\",\n \"updateTime\": \"\",\n \"validTime\": \"\",\n \"visibility\": \"\"\n}"
headers = { 'content-type': "application/json" }
conn.request("POST", "/baseUrl/v1/:parent/authConfigs", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/v1/:parent/authConfigs"
payload = {
"certificateId": "",
"createTime": "",
"creatorEmail": "",
"credentialType": "",
"decryptedCredential": {
"authToken": {
"token": "",
"type": ""
},
"credentialType": "",
"jwt": {
"jwt": "",
"jwtHeader": "",
"jwtPayload": "",
"secret": ""
},
"oauth2AuthorizationCode": {
"accessToken": {
"accessToken": "",
"accessTokenExpireTime": "",
"refreshToken": "",
"refreshTokenExpireTime": "",
"tokenType": ""
},
"applyReauthPolicy": False,
"authCode": "",
"authEndpoint": "",
"authParams": {
"entries": [
{
"key": {
"literalValue": {
"booleanArray": { "booleanValues": [] },
"booleanValue": False,
"doubleArray": { "doubleValues": [] },
"doubleValue": "",
"intArray": { "intValues": [] },
"intValue": "",
"jsonValue": "",
"stringArray": { "stringValues": [] },
"stringValue": ""
},
"referenceKey": ""
},
"value": {}
}
],
"keyType": "",
"valueType": ""
},
"clientId": "",
"clientSecret": "",
"requestType": "",
"scope": "",
"tokenEndpoint": "",
"tokenParams": {}
},
"oauth2ClientCredentials": {
"accessToken": {},
"clientId": "",
"clientSecret": "",
"requestType": "",
"scope": "",
"tokenEndpoint": "",
"tokenParams": {}
},
"oauth2ResourceOwnerCredentials": {
"accessToken": {},
"clientId": "",
"clientSecret": "",
"password": "",
"requestType": "",
"scope": "",
"tokenEndpoint": "",
"tokenParams": {},
"username": ""
},
"oidcToken": {
"audience": "",
"serviceAccountEmail": "",
"token": "",
"tokenExpireTime": ""
},
"serviceAccountCredentials": {
"scope": "",
"serviceAccount": ""
},
"usernameAndPassword": {
"password": "",
"username": ""
}
},
"description": "",
"displayName": "",
"encryptedCredential": "",
"expiryNotificationDuration": [],
"lastModifierEmail": "",
"name": "",
"overrideValidTime": "",
"reason": "",
"state": "",
"updateTime": "",
"validTime": "",
"visibility": ""
}
headers = {"content-type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.json())
library(httr)
url <- "{{baseUrl}}/v1/:parent/authConfigs"
payload <- "{\n \"certificateId\": \"\",\n \"createTime\": \"\",\n \"creatorEmail\": \"\",\n \"credentialType\": \"\",\n \"decryptedCredential\": {\n \"authToken\": {\n \"token\": \"\",\n \"type\": \"\"\n },\n \"credentialType\": \"\",\n \"jwt\": {\n \"jwt\": \"\",\n \"jwtHeader\": \"\",\n \"jwtPayload\": \"\",\n \"secret\": \"\"\n },\n \"oauth2AuthorizationCode\": {\n \"accessToken\": {\n \"accessToken\": \"\",\n \"accessTokenExpireTime\": \"\",\n \"refreshToken\": \"\",\n \"refreshTokenExpireTime\": \"\",\n \"tokenType\": \"\"\n },\n \"applyReauthPolicy\": false,\n \"authCode\": \"\",\n \"authEndpoint\": \"\",\n \"authParams\": {\n \"entries\": [\n {\n \"key\": {\n \"literalValue\": {\n \"booleanArray\": {\n \"booleanValues\": []\n },\n \"booleanValue\": false,\n \"doubleArray\": {\n \"doubleValues\": []\n },\n \"doubleValue\": \"\",\n \"intArray\": {\n \"intValues\": []\n },\n \"intValue\": \"\",\n \"jsonValue\": \"\",\n \"stringArray\": {\n \"stringValues\": []\n },\n \"stringValue\": \"\"\n },\n \"referenceKey\": \"\"\n },\n \"value\": {}\n }\n ],\n \"keyType\": \"\",\n \"valueType\": \"\"\n },\n \"clientId\": \"\",\n \"clientSecret\": \"\",\n \"requestType\": \"\",\n \"scope\": \"\",\n \"tokenEndpoint\": \"\",\n \"tokenParams\": {}\n },\n \"oauth2ClientCredentials\": {\n \"accessToken\": {},\n \"clientId\": \"\",\n \"clientSecret\": \"\",\n \"requestType\": \"\",\n \"scope\": \"\",\n \"tokenEndpoint\": \"\",\n \"tokenParams\": {}\n },\n \"oauth2ResourceOwnerCredentials\": {\n \"accessToken\": {},\n \"clientId\": \"\",\n \"clientSecret\": \"\",\n \"password\": \"\",\n \"requestType\": \"\",\n \"scope\": \"\",\n \"tokenEndpoint\": \"\",\n \"tokenParams\": {},\n \"username\": \"\"\n },\n \"oidcToken\": {\n \"audience\": \"\",\n \"serviceAccountEmail\": \"\",\n \"token\": \"\",\n \"tokenExpireTime\": \"\"\n },\n \"serviceAccountCredentials\": {\n \"scope\": \"\",\n \"serviceAccount\": \"\"\n },\n \"usernameAndPassword\": {\n \"password\": \"\",\n \"username\": \"\"\n }\n },\n \"description\": \"\",\n \"displayName\": \"\",\n \"encryptedCredential\": \"\",\n \"expiryNotificationDuration\": [],\n \"lastModifierEmail\": \"\",\n \"name\": \"\",\n \"overrideValidTime\": \"\",\n \"reason\": \"\",\n \"state\": \"\",\n \"updateTime\": \"\",\n \"validTime\": \"\",\n \"visibility\": \"\"\n}"
encode <- "json"
response <- VERB("POST", url, body = payload, content_type("application/json"), encode = encode)
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/v1/:parent/authConfigs")
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 \"certificateId\": \"\",\n \"createTime\": \"\",\n \"creatorEmail\": \"\",\n \"credentialType\": \"\",\n \"decryptedCredential\": {\n \"authToken\": {\n \"token\": \"\",\n \"type\": \"\"\n },\n \"credentialType\": \"\",\n \"jwt\": {\n \"jwt\": \"\",\n \"jwtHeader\": \"\",\n \"jwtPayload\": \"\",\n \"secret\": \"\"\n },\n \"oauth2AuthorizationCode\": {\n \"accessToken\": {\n \"accessToken\": \"\",\n \"accessTokenExpireTime\": \"\",\n \"refreshToken\": \"\",\n \"refreshTokenExpireTime\": \"\",\n \"tokenType\": \"\"\n },\n \"applyReauthPolicy\": false,\n \"authCode\": \"\",\n \"authEndpoint\": \"\",\n \"authParams\": {\n \"entries\": [\n {\n \"key\": {\n \"literalValue\": {\n \"booleanArray\": {\n \"booleanValues\": []\n },\n \"booleanValue\": false,\n \"doubleArray\": {\n \"doubleValues\": []\n },\n \"doubleValue\": \"\",\n \"intArray\": {\n \"intValues\": []\n },\n \"intValue\": \"\",\n \"jsonValue\": \"\",\n \"stringArray\": {\n \"stringValues\": []\n },\n \"stringValue\": \"\"\n },\n \"referenceKey\": \"\"\n },\n \"value\": {}\n }\n ],\n \"keyType\": \"\",\n \"valueType\": \"\"\n },\n \"clientId\": \"\",\n \"clientSecret\": \"\",\n \"requestType\": \"\",\n \"scope\": \"\",\n \"tokenEndpoint\": \"\",\n \"tokenParams\": {}\n },\n \"oauth2ClientCredentials\": {\n \"accessToken\": {},\n \"clientId\": \"\",\n \"clientSecret\": \"\",\n \"requestType\": \"\",\n \"scope\": \"\",\n \"tokenEndpoint\": \"\",\n \"tokenParams\": {}\n },\n \"oauth2ResourceOwnerCredentials\": {\n \"accessToken\": {},\n \"clientId\": \"\",\n \"clientSecret\": \"\",\n \"password\": \"\",\n \"requestType\": \"\",\n \"scope\": \"\",\n \"tokenEndpoint\": \"\",\n \"tokenParams\": {},\n \"username\": \"\"\n },\n \"oidcToken\": {\n \"audience\": \"\",\n \"serviceAccountEmail\": \"\",\n \"token\": \"\",\n \"tokenExpireTime\": \"\"\n },\n \"serviceAccountCredentials\": {\n \"scope\": \"\",\n \"serviceAccount\": \"\"\n },\n \"usernameAndPassword\": {\n \"password\": \"\",\n \"username\": \"\"\n }\n },\n \"description\": \"\",\n \"displayName\": \"\",\n \"encryptedCredential\": \"\",\n \"expiryNotificationDuration\": [],\n \"lastModifierEmail\": \"\",\n \"name\": \"\",\n \"overrideValidTime\": \"\",\n \"reason\": \"\",\n \"state\": \"\",\n \"updateTime\": \"\",\n \"validTime\": \"\",\n \"visibility\": \"\"\n}"
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
headers: {'Content-Type' => 'application/json'}
)
response = conn.post('/baseUrl/v1/:parent/authConfigs') do |req|
req.body = "{\n \"certificateId\": \"\",\n \"createTime\": \"\",\n \"creatorEmail\": \"\",\n \"credentialType\": \"\",\n \"decryptedCredential\": {\n \"authToken\": {\n \"token\": \"\",\n \"type\": \"\"\n },\n \"credentialType\": \"\",\n \"jwt\": {\n \"jwt\": \"\",\n \"jwtHeader\": \"\",\n \"jwtPayload\": \"\",\n \"secret\": \"\"\n },\n \"oauth2AuthorizationCode\": {\n \"accessToken\": {\n \"accessToken\": \"\",\n \"accessTokenExpireTime\": \"\",\n \"refreshToken\": \"\",\n \"refreshTokenExpireTime\": \"\",\n \"tokenType\": \"\"\n },\n \"applyReauthPolicy\": false,\n \"authCode\": \"\",\n \"authEndpoint\": \"\",\n \"authParams\": {\n \"entries\": [\n {\n \"key\": {\n \"literalValue\": {\n \"booleanArray\": {\n \"booleanValues\": []\n },\n \"booleanValue\": false,\n \"doubleArray\": {\n \"doubleValues\": []\n },\n \"doubleValue\": \"\",\n \"intArray\": {\n \"intValues\": []\n },\n \"intValue\": \"\",\n \"jsonValue\": \"\",\n \"stringArray\": {\n \"stringValues\": []\n },\n \"stringValue\": \"\"\n },\n \"referenceKey\": \"\"\n },\n \"value\": {}\n }\n ],\n \"keyType\": \"\",\n \"valueType\": \"\"\n },\n \"clientId\": \"\",\n \"clientSecret\": \"\",\n \"requestType\": \"\",\n \"scope\": \"\",\n \"tokenEndpoint\": \"\",\n \"tokenParams\": {}\n },\n \"oauth2ClientCredentials\": {\n \"accessToken\": {},\n \"clientId\": \"\",\n \"clientSecret\": \"\",\n \"requestType\": \"\",\n \"scope\": \"\",\n \"tokenEndpoint\": \"\",\n \"tokenParams\": {}\n },\n \"oauth2ResourceOwnerCredentials\": {\n \"accessToken\": {},\n \"clientId\": \"\",\n \"clientSecret\": \"\",\n \"password\": \"\",\n \"requestType\": \"\",\n \"scope\": \"\",\n \"tokenEndpoint\": \"\",\n \"tokenParams\": {},\n \"username\": \"\"\n },\n \"oidcToken\": {\n \"audience\": \"\",\n \"serviceAccountEmail\": \"\",\n \"token\": \"\",\n \"tokenExpireTime\": \"\"\n },\n \"serviceAccountCredentials\": {\n \"scope\": \"\",\n \"serviceAccount\": \"\"\n },\n \"usernameAndPassword\": {\n \"password\": \"\",\n \"username\": \"\"\n }\n },\n \"description\": \"\",\n \"displayName\": \"\",\n \"encryptedCredential\": \"\",\n \"expiryNotificationDuration\": [],\n \"lastModifierEmail\": \"\",\n \"name\": \"\",\n \"overrideValidTime\": \"\",\n \"reason\": \"\",\n \"state\": \"\",\n \"updateTime\": \"\",\n \"validTime\": \"\",\n \"visibility\": \"\"\n}"
end
puts response.status
puts response.body
use serde_json::json;
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/v1/:parent/authConfigs";
let payload = json!({
"certificateId": "",
"createTime": "",
"creatorEmail": "",
"credentialType": "",
"decryptedCredential": json!({
"authToken": json!({
"token": "",
"type": ""
}),
"credentialType": "",
"jwt": json!({
"jwt": "",
"jwtHeader": "",
"jwtPayload": "",
"secret": ""
}),
"oauth2AuthorizationCode": json!({
"accessToken": json!({
"accessToken": "",
"accessTokenExpireTime": "",
"refreshToken": "",
"refreshTokenExpireTime": "",
"tokenType": ""
}),
"applyReauthPolicy": false,
"authCode": "",
"authEndpoint": "",
"authParams": json!({
"entries": (
json!({
"key": json!({
"literalValue": json!({
"booleanArray": json!({"booleanValues": ()}),
"booleanValue": false,
"doubleArray": json!({"doubleValues": ()}),
"doubleValue": "",
"intArray": json!({"intValues": ()}),
"intValue": "",
"jsonValue": "",
"stringArray": json!({"stringValues": ()}),
"stringValue": ""
}),
"referenceKey": ""
}),
"value": json!({})
})
),
"keyType": "",
"valueType": ""
}),
"clientId": "",
"clientSecret": "",
"requestType": "",
"scope": "",
"tokenEndpoint": "",
"tokenParams": json!({})
}),
"oauth2ClientCredentials": json!({
"accessToken": json!({}),
"clientId": "",
"clientSecret": "",
"requestType": "",
"scope": "",
"tokenEndpoint": "",
"tokenParams": json!({})
}),
"oauth2ResourceOwnerCredentials": json!({
"accessToken": json!({}),
"clientId": "",
"clientSecret": "",
"password": "",
"requestType": "",
"scope": "",
"tokenEndpoint": "",
"tokenParams": json!({}),
"username": ""
}),
"oidcToken": json!({
"audience": "",
"serviceAccountEmail": "",
"token": "",
"tokenExpireTime": ""
}),
"serviceAccountCredentials": json!({
"scope": "",
"serviceAccount": ""
}),
"usernameAndPassword": json!({
"password": "",
"username": ""
})
}),
"description": "",
"displayName": "",
"encryptedCredential": "",
"expiryNotificationDuration": (),
"lastModifierEmail": "",
"name": "",
"overrideValidTime": "",
"reason": "",
"state": "",
"updateTime": "",
"validTime": "",
"visibility": ""
});
let mut headers = reqwest::header::HeaderMap::new();
headers.insert("content-type", "application/json".parse().unwrap());
let client = reqwest::Client::new();
let response = client.post(url)
.headers(headers)
.json(&payload)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request POST \
--url {{baseUrl}}/v1/:parent/authConfigs \
--header 'content-type: application/json' \
--data '{
"certificateId": "",
"createTime": "",
"creatorEmail": "",
"credentialType": "",
"decryptedCredential": {
"authToken": {
"token": "",
"type": ""
},
"credentialType": "",
"jwt": {
"jwt": "",
"jwtHeader": "",
"jwtPayload": "",
"secret": ""
},
"oauth2AuthorizationCode": {
"accessToken": {
"accessToken": "",
"accessTokenExpireTime": "",
"refreshToken": "",
"refreshTokenExpireTime": "",
"tokenType": ""
},
"applyReauthPolicy": false,
"authCode": "",
"authEndpoint": "",
"authParams": {
"entries": [
{
"key": {
"literalValue": {
"booleanArray": {
"booleanValues": []
},
"booleanValue": false,
"doubleArray": {
"doubleValues": []
},
"doubleValue": "",
"intArray": {
"intValues": []
},
"intValue": "",
"jsonValue": "",
"stringArray": {
"stringValues": []
},
"stringValue": ""
},
"referenceKey": ""
},
"value": {}
}
],
"keyType": "",
"valueType": ""
},
"clientId": "",
"clientSecret": "",
"requestType": "",
"scope": "",
"tokenEndpoint": "",
"tokenParams": {}
},
"oauth2ClientCredentials": {
"accessToken": {},
"clientId": "",
"clientSecret": "",
"requestType": "",
"scope": "",
"tokenEndpoint": "",
"tokenParams": {}
},
"oauth2ResourceOwnerCredentials": {
"accessToken": {},
"clientId": "",
"clientSecret": "",
"password": "",
"requestType": "",
"scope": "",
"tokenEndpoint": "",
"tokenParams": {},
"username": ""
},
"oidcToken": {
"audience": "",
"serviceAccountEmail": "",
"token": "",
"tokenExpireTime": ""
},
"serviceAccountCredentials": {
"scope": "",
"serviceAccount": ""
},
"usernameAndPassword": {
"password": "",
"username": ""
}
},
"description": "",
"displayName": "",
"encryptedCredential": "",
"expiryNotificationDuration": [],
"lastModifierEmail": "",
"name": "",
"overrideValidTime": "",
"reason": "",
"state": "",
"updateTime": "",
"validTime": "",
"visibility": ""
}'
echo '{
"certificateId": "",
"createTime": "",
"creatorEmail": "",
"credentialType": "",
"decryptedCredential": {
"authToken": {
"token": "",
"type": ""
},
"credentialType": "",
"jwt": {
"jwt": "",
"jwtHeader": "",
"jwtPayload": "",
"secret": ""
},
"oauth2AuthorizationCode": {
"accessToken": {
"accessToken": "",
"accessTokenExpireTime": "",
"refreshToken": "",
"refreshTokenExpireTime": "",
"tokenType": ""
},
"applyReauthPolicy": false,
"authCode": "",
"authEndpoint": "",
"authParams": {
"entries": [
{
"key": {
"literalValue": {
"booleanArray": {
"booleanValues": []
},
"booleanValue": false,
"doubleArray": {
"doubleValues": []
},
"doubleValue": "",
"intArray": {
"intValues": []
},
"intValue": "",
"jsonValue": "",
"stringArray": {
"stringValues": []
},
"stringValue": ""
},
"referenceKey": ""
},
"value": {}
}
],
"keyType": "",
"valueType": ""
},
"clientId": "",
"clientSecret": "",
"requestType": "",
"scope": "",
"tokenEndpoint": "",
"tokenParams": {}
},
"oauth2ClientCredentials": {
"accessToken": {},
"clientId": "",
"clientSecret": "",
"requestType": "",
"scope": "",
"tokenEndpoint": "",
"tokenParams": {}
},
"oauth2ResourceOwnerCredentials": {
"accessToken": {},
"clientId": "",
"clientSecret": "",
"password": "",
"requestType": "",
"scope": "",
"tokenEndpoint": "",
"tokenParams": {},
"username": ""
},
"oidcToken": {
"audience": "",
"serviceAccountEmail": "",
"token": "",
"tokenExpireTime": ""
},
"serviceAccountCredentials": {
"scope": "",
"serviceAccount": ""
},
"usernameAndPassword": {
"password": "",
"username": ""
}
},
"description": "",
"displayName": "",
"encryptedCredential": "",
"expiryNotificationDuration": [],
"lastModifierEmail": "",
"name": "",
"overrideValidTime": "",
"reason": "",
"state": "",
"updateTime": "",
"validTime": "",
"visibility": ""
}' | \
http POST {{baseUrl}}/v1/:parent/authConfigs \
content-type:application/json
wget --quiet \
--method POST \
--header 'content-type: application/json' \
--body-data '{\n "certificateId": "",\n "createTime": "",\n "creatorEmail": "",\n "credentialType": "",\n "decryptedCredential": {\n "authToken": {\n "token": "",\n "type": ""\n },\n "credentialType": "",\n "jwt": {\n "jwt": "",\n "jwtHeader": "",\n "jwtPayload": "",\n "secret": ""\n },\n "oauth2AuthorizationCode": {\n "accessToken": {\n "accessToken": "",\n "accessTokenExpireTime": "",\n "refreshToken": "",\n "refreshTokenExpireTime": "",\n "tokenType": ""\n },\n "applyReauthPolicy": false,\n "authCode": "",\n "authEndpoint": "",\n "authParams": {\n "entries": [\n {\n "key": {\n "literalValue": {\n "booleanArray": {\n "booleanValues": []\n },\n "booleanValue": false,\n "doubleArray": {\n "doubleValues": []\n },\n "doubleValue": "",\n "intArray": {\n "intValues": []\n },\n "intValue": "",\n "jsonValue": "",\n "stringArray": {\n "stringValues": []\n },\n "stringValue": ""\n },\n "referenceKey": ""\n },\n "value": {}\n }\n ],\n "keyType": "",\n "valueType": ""\n },\n "clientId": "",\n "clientSecret": "",\n "requestType": "",\n "scope": "",\n "tokenEndpoint": "",\n "tokenParams": {}\n },\n "oauth2ClientCredentials": {\n "accessToken": {},\n "clientId": "",\n "clientSecret": "",\n "requestType": "",\n "scope": "",\n "tokenEndpoint": "",\n "tokenParams": {}\n },\n "oauth2ResourceOwnerCredentials": {\n "accessToken": {},\n "clientId": "",\n "clientSecret": "",\n "password": "",\n "requestType": "",\n "scope": "",\n "tokenEndpoint": "",\n "tokenParams": {},\n "username": ""\n },\n "oidcToken": {\n "audience": "",\n "serviceAccountEmail": "",\n "token": "",\n "tokenExpireTime": ""\n },\n "serviceAccountCredentials": {\n "scope": "",\n "serviceAccount": ""\n },\n "usernameAndPassword": {\n "password": "",\n "username": ""\n }\n },\n "description": "",\n "displayName": "",\n "encryptedCredential": "",\n "expiryNotificationDuration": [],\n "lastModifierEmail": "",\n "name": "",\n "overrideValidTime": "",\n "reason": "",\n "state": "",\n "updateTime": "",\n "validTime": "",\n "visibility": ""\n}' \
--output-document \
- {{baseUrl}}/v1/:parent/authConfigs
import Foundation
let headers = ["content-type": "application/json"]
let parameters = [
"certificateId": "",
"createTime": "",
"creatorEmail": "",
"credentialType": "",
"decryptedCredential": [
"authToken": [
"token": "",
"type": ""
],
"credentialType": "",
"jwt": [
"jwt": "",
"jwtHeader": "",
"jwtPayload": "",
"secret": ""
],
"oauth2AuthorizationCode": [
"accessToken": [
"accessToken": "",
"accessTokenExpireTime": "",
"refreshToken": "",
"refreshTokenExpireTime": "",
"tokenType": ""
],
"applyReauthPolicy": false,
"authCode": "",
"authEndpoint": "",
"authParams": [
"entries": [
[
"key": [
"literalValue": [
"booleanArray": ["booleanValues": []],
"booleanValue": false,
"doubleArray": ["doubleValues": []],
"doubleValue": "",
"intArray": ["intValues": []],
"intValue": "",
"jsonValue": "",
"stringArray": ["stringValues": []],
"stringValue": ""
],
"referenceKey": ""
],
"value": []
]
],
"keyType": "",
"valueType": ""
],
"clientId": "",
"clientSecret": "",
"requestType": "",
"scope": "",
"tokenEndpoint": "",
"tokenParams": []
],
"oauth2ClientCredentials": [
"accessToken": [],
"clientId": "",
"clientSecret": "",
"requestType": "",
"scope": "",
"tokenEndpoint": "",
"tokenParams": []
],
"oauth2ResourceOwnerCredentials": [
"accessToken": [],
"clientId": "",
"clientSecret": "",
"password": "",
"requestType": "",
"scope": "",
"tokenEndpoint": "",
"tokenParams": [],
"username": ""
],
"oidcToken": [
"audience": "",
"serviceAccountEmail": "",
"token": "",
"tokenExpireTime": ""
],
"serviceAccountCredentials": [
"scope": "",
"serviceAccount": ""
],
"usernameAndPassword": [
"password": "",
"username": ""
]
],
"description": "",
"displayName": "",
"encryptedCredential": "",
"expiryNotificationDuration": [],
"lastModifierEmail": "",
"name": "",
"overrideValidTime": "",
"reason": "",
"state": "",
"updateTime": "",
"validTime": "",
"visibility": ""
] as [String : Any]
let postData = JSONSerialization.data(withJSONObject: parameters, options: [])
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/v1/:parent/authConfigs")! 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
integrations.projects.locations.products.authConfigs.list
{{baseUrl}}/v1/:parent/authConfigs
QUERY PARAMS
parent
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/v1/:parent/authConfigs");
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/get "{{baseUrl}}/v1/:parent/authConfigs")
require "http/client"
url = "{{baseUrl}}/v1/:parent/authConfigs"
response = HTTP::Client.get url
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Get,
RequestUri = new Uri("{{baseUrl}}/v1/:parent/authConfigs"),
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/v1/:parent/authConfigs");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/v1/:parent/authConfigs"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
GET /baseUrl/v1/:parent/authConfigs HTTP/1.1
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/v1/:parent/authConfigs")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/v1/:parent/authConfigs"))
.method("GET", HttpRequest.BodyPublishers.noBody())
.build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("{{baseUrl}}/v1/:parent/authConfigs")
.get()
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/v1/:parent/authConfigs")
.asString();
const data = null;
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('GET', '{{baseUrl}}/v1/:parent/authConfigs');
xhr.send(data);
import axios from 'axios';
const options = {method: 'GET', url: '{{baseUrl}}/v1/:parent/authConfigs'};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/v1/:parent/authConfigs';
const options = {method: 'GET'};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/v1/:parent/authConfigs',
method: 'GET',
headers: {}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/v1/:parent/authConfigs")
.get()
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'GET',
hostname: 'example.com',
port: null,
path: '/baseUrl/v1/:parent/authConfigs',
headers: {}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
const request = require('request');
const options = {method: 'GET', url: '{{baseUrl}}/v1/:parent/authConfigs'};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('GET', '{{baseUrl}}/v1/:parent/authConfigs');
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {method: 'GET', url: '{{baseUrl}}/v1/:parent/authConfigs'};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/v1/:parent/authConfigs';
const options = {method: 'GET'};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/v1/:parent/authConfigs"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/v1/:parent/authConfigs" in
Client.call `GET uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/v1/:parent/authConfigs",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('GET', '{{baseUrl}}/v1/:parent/authConfigs');
echo $response->getBody();
setUrl('{{baseUrl}}/v1/:parent/authConfigs');
$request->setMethod(HTTP_METH_GET);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/v1/:parent/authConfigs');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/v1/:parent/authConfigs' -Method GET
$response = Invoke-RestMethod -Uri '{{baseUrl}}/v1/:parent/authConfigs' -Method GET
import http.client
conn = http.client.HTTPSConnection("example.com")
conn.request("GET", "/baseUrl/v1/:parent/authConfigs")
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/v1/:parent/authConfigs"
response = requests.get(url)
print(response.json())
library(httr)
url <- "{{baseUrl}}/v1/:parent/authConfigs"
response <- VERB("GET", url, content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/v1/:parent/authConfigs")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
)
response = conn.get('/baseUrl/v1/:parent/authConfigs') do |req|
end
puts response.status
puts response.body
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/v1/:parent/authConfigs";
let client = reqwest::Client::new();
let response = client.get(url)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request GET \
--url {{baseUrl}}/v1/:parent/authConfigs
http GET {{baseUrl}}/v1/:parent/authConfigs
wget --quiet \
--method GET \
--output-document \
- {{baseUrl}}/v1/:parent/authConfigs
import Foundation
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/v1/:parent/authConfigs")! 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
integrations.projects.locations.products.certificates.create
{{baseUrl}}/v1/:parent/certificates
QUERY PARAMS
parent
BODY json
{
"certificateStatus": "",
"credentialId": "",
"description": "",
"displayName": "",
"name": "",
"rawCertificate": {
"encryptedPrivateKey": "",
"passphrase": "",
"sslCertificate": ""
},
"requestorId": "",
"validEndTime": "",
"validStartTime": ""
}
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/v1/:parent/certificates");
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 \"certificateStatus\": \"\",\n \"credentialId\": \"\",\n \"description\": \"\",\n \"displayName\": \"\",\n \"name\": \"\",\n \"rawCertificate\": {\n \"encryptedPrivateKey\": \"\",\n \"passphrase\": \"\",\n \"sslCertificate\": \"\"\n },\n \"requestorId\": \"\",\n \"validEndTime\": \"\",\n \"validStartTime\": \"\"\n}");
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/post "{{baseUrl}}/v1/:parent/certificates" {:content-type :json
:form-params {:certificateStatus ""
:credentialId ""
:description ""
:displayName ""
:name ""
:rawCertificate {:encryptedPrivateKey ""
:passphrase ""
:sslCertificate ""}
:requestorId ""
:validEndTime ""
:validStartTime ""}})
require "http/client"
url = "{{baseUrl}}/v1/:parent/certificates"
headers = HTTP::Headers{
"content-type" => "application/json"
}
reqBody = "{\n \"certificateStatus\": \"\",\n \"credentialId\": \"\",\n \"description\": \"\",\n \"displayName\": \"\",\n \"name\": \"\",\n \"rawCertificate\": {\n \"encryptedPrivateKey\": \"\",\n \"passphrase\": \"\",\n \"sslCertificate\": \"\"\n },\n \"requestorId\": \"\",\n \"validEndTime\": \"\",\n \"validStartTime\": \"\"\n}"
response = HTTP::Client.post url, headers: headers, body: reqBody
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Post,
RequestUri = new Uri("{{baseUrl}}/v1/:parent/certificates"),
Content = new StringContent("{\n \"certificateStatus\": \"\",\n \"credentialId\": \"\",\n \"description\": \"\",\n \"displayName\": \"\",\n \"name\": \"\",\n \"rawCertificate\": {\n \"encryptedPrivateKey\": \"\",\n \"passphrase\": \"\",\n \"sslCertificate\": \"\"\n },\n \"requestorId\": \"\",\n \"validEndTime\": \"\",\n \"validStartTime\": \"\"\n}")
{
Headers =
{
ContentType = new MediaTypeHeaderValue("application/json")
}
}
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/v1/:parent/certificates");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n \"certificateStatus\": \"\",\n \"credentialId\": \"\",\n \"description\": \"\",\n \"displayName\": \"\",\n \"name\": \"\",\n \"rawCertificate\": {\n \"encryptedPrivateKey\": \"\",\n \"passphrase\": \"\",\n \"sslCertificate\": \"\"\n },\n \"requestorId\": \"\",\n \"validEndTime\": \"\",\n \"validStartTime\": \"\"\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/v1/:parent/certificates"
payload := strings.NewReader("{\n \"certificateStatus\": \"\",\n \"credentialId\": \"\",\n \"description\": \"\",\n \"displayName\": \"\",\n \"name\": \"\",\n \"rawCertificate\": {\n \"encryptedPrivateKey\": \"\",\n \"passphrase\": \"\",\n \"sslCertificate\": \"\"\n },\n \"requestorId\": \"\",\n \"validEndTime\": \"\",\n \"validStartTime\": \"\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("content-type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
POST /baseUrl/v1/:parent/certificates HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 279
{
"certificateStatus": "",
"credentialId": "",
"description": "",
"displayName": "",
"name": "",
"rawCertificate": {
"encryptedPrivateKey": "",
"passphrase": "",
"sslCertificate": ""
},
"requestorId": "",
"validEndTime": "",
"validStartTime": ""
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/v1/:parent/certificates")
.setHeader("content-type", "application/json")
.setBody("{\n \"certificateStatus\": \"\",\n \"credentialId\": \"\",\n \"description\": \"\",\n \"displayName\": \"\",\n \"name\": \"\",\n \"rawCertificate\": {\n \"encryptedPrivateKey\": \"\",\n \"passphrase\": \"\",\n \"sslCertificate\": \"\"\n },\n \"requestorId\": \"\",\n \"validEndTime\": \"\",\n \"validStartTime\": \"\"\n}")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/v1/:parent/certificates"))
.header("content-type", "application/json")
.method("POST", HttpRequest.BodyPublishers.ofString("{\n \"certificateStatus\": \"\",\n \"credentialId\": \"\",\n \"description\": \"\",\n \"displayName\": \"\",\n \"name\": \"\",\n \"rawCertificate\": {\n \"encryptedPrivateKey\": \"\",\n \"passphrase\": \"\",\n \"sslCertificate\": \"\"\n },\n \"requestorId\": \"\",\n \"validEndTime\": \"\",\n \"validStartTime\": \"\"\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 \"certificateStatus\": \"\",\n \"credentialId\": \"\",\n \"description\": \"\",\n \"displayName\": \"\",\n \"name\": \"\",\n \"rawCertificate\": {\n \"encryptedPrivateKey\": \"\",\n \"passphrase\": \"\",\n \"sslCertificate\": \"\"\n },\n \"requestorId\": \"\",\n \"validEndTime\": \"\",\n \"validStartTime\": \"\"\n}");
Request request = new Request.Builder()
.url("{{baseUrl}}/v1/:parent/certificates")
.post(body)
.addHeader("content-type", "application/json")
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/v1/:parent/certificates")
.header("content-type", "application/json")
.body("{\n \"certificateStatus\": \"\",\n \"credentialId\": \"\",\n \"description\": \"\",\n \"displayName\": \"\",\n \"name\": \"\",\n \"rawCertificate\": {\n \"encryptedPrivateKey\": \"\",\n \"passphrase\": \"\",\n \"sslCertificate\": \"\"\n },\n \"requestorId\": \"\",\n \"validEndTime\": \"\",\n \"validStartTime\": \"\"\n}")
.asString();
const data = JSON.stringify({
certificateStatus: '',
credentialId: '',
description: '',
displayName: '',
name: '',
rawCertificate: {
encryptedPrivateKey: '',
passphrase: '',
sslCertificate: ''
},
requestorId: '',
validEndTime: '',
validStartTime: ''
});
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('POST', '{{baseUrl}}/v1/:parent/certificates');
xhr.setRequestHeader('content-type', 'application/json');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'POST',
url: '{{baseUrl}}/v1/:parent/certificates',
headers: {'content-type': 'application/json'},
data: {
certificateStatus: '',
credentialId: '',
description: '',
displayName: '',
name: '',
rawCertificate: {encryptedPrivateKey: '', passphrase: '', sslCertificate: ''},
requestorId: '',
validEndTime: '',
validStartTime: ''
}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/v1/:parent/certificates';
const options = {
method: 'POST',
headers: {'content-type': 'application/json'},
body: '{"certificateStatus":"","credentialId":"","description":"","displayName":"","name":"","rawCertificate":{"encryptedPrivateKey":"","passphrase":"","sslCertificate":""},"requestorId":"","validEndTime":"","validStartTime":""}'
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/v1/:parent/certificates',
method: 'POST',
headers: {
'content-type': 'application/json'
},
processData: false,
data: '{\n "certificateStatus": "",\n "credentialId": "",\n "description": "",\n "displayName": "",\n "name": "",\n "rawCertificate": {\n "encryptedPrivateKey": "",\n "passphrase": "",\n "sslCertificate": ""\n },\n "requestorId": "",\n "validEndTime": "",\n "validStartTime": ""\n}'
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n \"certificateStatus\": \"\",\n \"credentialId\": \"\",\n \"description\": \"\",\n \"displayName\": \"\",\n \"name\": \"\",\n \"rawCertificate\": {\n \"encryptedPrivateKey\": \"\",\n \"passphrase\": \"\",\n \"sslCertificate\": \"\"\n },\n \"requestorId\": \"\",\n \"validEndTime\": \"\",\n \"validStartTime\": \"\"\n}")
val request = Request.Builder()
.url("{{baseUrl}}/v1/:parent/certificates")
.post(body)
.addHeader("content-type", "application/json")
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'POST',
hostname: 'example.com',
port: null,
path: '/baseUrl/v1/:parent/certificates',
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({
certificateStatus: '',
credentialId: '',
description: '',
displayName: '',
name: '',
rawCertificate: {encryptedPrivateKey: '', passphrase: '', sslCertificate: ''},
requestorId: '',
validEndTime: '',
validStartTime: ''
}));
req.end();
const request = require('request');
const options = {
method: 'POST',
url: '{{baseUrl}}/v1/:parent/certificates',
headers: {'content-type': 'application/json'},
body: {
certificateStatus: '',
credentialId: '',
description: '',
displayName: '',
name: '',
rawCertificate: {encryptedPrivateKey: '', passphrase: '', sslCertificate: ''},
requestorId: '',
validEndTime: '',
validStartTime: ''
},
json: true
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('POST', '{{baseUrl}}/v1/:parent/certificates');
req.headers({
'content-type': 'application/json'
});
req.type('json');
req.send({
certificateStatus: '',
credentialId: '',
description: '',
displayName: '',
name: '',
rawCertificate: {
encryptedPrivateKey: '',
passphrase: '',
sslCertificate: ''
},
requestorId: '',
validEndTime: '',
validStartTime: ''
});
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {
method: 'POST',
url: '{{baseUrl}}/v1/:parent/certificates',
headers: {'content-type': 'application/json'},
data: {
certificateStatus: '',
credentialId: '',
description: '',
displayName: '',
name: '',
rawCertificate: {encryptedPrivateKey: '', passphrase: '', sslCertificate: ''},
requestorId: '',
validEndTime: '',
validStartTime: ''
}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/v1/:parent/certificates';
const options = {
method: 'POST',
headers: {'content-type': 'application/json'},
body: '{"certificateStatus":"","credentialId":"","description":"","displayName":"","name":"","rawCertificate":{"encryptedPrivateKey":"","passphrase":"","sslCertificate":""},"requestorId":"","validEndTime":"","validStartTime":""}'
};
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 = @{ @"certificateStatus": @"",
@"credentialId": @"",
@"description": @"",
@"displayName": @"",
@"name": @"",
@"rawCertificate": @{ @"encryptedPrivateKey": @"", @"passphrase": @"", @"sslCertificate": @"" },
@"requestorId": @"",
@"validEndTime": @"",
@"validStartTime": @"" };
NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/v1/:parent/certificates"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"POST"];
[request setAllHTTPHeaderFields:headers];
[request setHTTPBody:postData];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/v1/:parent/certificates" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n \"certificateStatus\": \"\",\n \"credentialId\": \"\",\n \"description\": \"\",\n \"displayName\": \"\",\n \"name\": \"\",\n \"rawCertificate\": {\n \"encryptedPrivateKey\": \"\",\n \"passphrase\": \"\",\n \"sslCertificate\": \"\"\n },\n \"requestorId\": \"\",\n \"validEndTime\": \"\",\n \"validStartTime\": \"\"\n}" in
Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/v1/:parent/certificates",
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([
'certificateStatus' => '',
'credentialId' => '',
'description' => '',
'displayName' => '',
'name' => '',
'rawCertificate' => [
'encryptedPrivateKey' => '',
'passphrase' => '',
'sslCertificate' => ''
],
'requestorId' => '',
'validEndTime' => '',
'validStartTime' => ''
]),
CURLOPT_HTTPHEADER => [
"content-type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('POST', '{{baseUrl}}/v1/:parent/certificates', [
'body' => '{
"certificateStatus": "",
"credentialId": "",
"description": "",
"displayName": "",
"name": "",
"rawCertificate": {
"encryptedPrivateKey": "",
"passphrase": "",
"sslCertificate": ""
},
"requestorId": "",
"validEndTime": "",
"validStartTime": ""
}',
'headers' => [
'content-type' => 'application/json',
],
]);
echo $response->getBody();
setUrl('{{baseUrl}}/v1/:parent/certificates');
$request->setMethod(HTTP_METH_POST);
$request->setHeaders([
'content-type' => 'application/json'
]);
$request->setContentType('application/json');
$request->setBody(json_encode([
'certificateStatus' => '',
'credentialId' => '',
'description' => '',
'displayName' => '',
'name' => '',
'rawCertificate' => [
'encryptedPrivateKey' => '',
'passphrase' => '',
'sslCertificate' => ''
],
'requestorId' => '',
'validEndTime' => '',
'validStartTime' => ''
]));
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
append(json_encode([
'certificateStatus' => '',
'credentialId' => '',
'description' => '',
'displayName' => '',
'name' => '',
'rawCertificate' => [
'encryptedPrivateKey' => '',
'passphrase' => '',
'sslCertificate' => ''
],
'requestorId' => '',
'validEndTime' => '',
'validStartTime' => ''
]));
$request->setRequestUrl('{{baseUrl}}/v1/:parent/certificates');
$request->setRequestMethod('POST');
$request->setBody($body);
$request->setHeaders([
'content-type' => 'application/json'
]);
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/v1/:parent/certificates' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
"certificateStatus": "",
"credentialId": "",
"description": "",
"displayName": "",
"name": "",
"rawCertificate": {
"encryptedPrivateKey": "",
"passphrase": "",
"sslCertificate": ""
},
"requestorId": "",
"validEndTime": "",
"validStartTime": ""
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/v1/:parent/certificates' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
"certificateStatus": "",
"credentialId": "",
"description": "",
"displayName": "",
"name": "",
"rawCertificate": {
"encryptedPrivateKey": "",
"passphrase": "",
"sslCertificate": ""
},
"requestorId": "",
"validEndTime": "",
"validStartTime": ""
}'
import http.client
conn = http.client.HTTPSConnection("example.com")
payload = "{\n \"certificateStatus\": \"\",\n \"credentialId\": \"\",\n \"description\": \"\",\n \"displayName\": \"\",\n \"name\": \"\",\n \"rawCertificate\": {\n \"encryptedPrivateKey\": \"\",\n \"passphrase\": \"\",\n \"sslCertificate\": \"\"\n },\n \"requestorId\": \"\",\n \"validEndTime\": \"\",\n \"validStartTime\": \"\"\n}"
headers = { 'content-type': "application/json" }
conn.request("POST", "/baseUrl/v1/:parent/certificates", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/v1/:parent/certificates"
payload = {
"certificateStatus": "",
"credentialId": "",
"description": "",
"displayName": "",
"name": "",
"rawCertificate": {
"encryptedPrivateKey": "",
"passphrase": "",
"sslCertificate": ""
},
"requestorId": "",
"validEndTime": "",
"validStartTime": ""
}
headers = {"content-type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.json())
library(httr)
url <- "{{baseUrl}}/v1/:parent/certificates"
payload <- "{\n \"certificateStatus\": \"\",\n \"credentialId\": \"\",\n \"description\": \"\",\n \"displayName\": \"\",\n \"name\": \"\",\n \"rawCertificate\": {\n \"encryptedPrivateKey\": \"\",\n \"passphrase\": \"\",\n \"sslCertificate\": \"\"\n },\n \"requestorId\": \"\",\n \"validEndTime\": \"\",\n \"validStartTime\": \"\"\n}"
encode <- "json"
response <- VERB("POST", url, body = payload, content_type("application/json"), encode = encode)
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/v1/:parent/certificates")
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 \"certificateStatus\": \"\",\n \"credentialId\": \"\",\n \"description\": \"\",\n \"displayName\": \"\",\n \"name\": \"\",\n \"rawCertificate\": {\n \"encryptedPrivateKey\": \"\",\n \"passphrase\": \"\",\n \"sslCertificate\": \"\"\n },\n \"requestorId\": \"\",\n \"validEndTime\": \"\",\n \"validStartTime\": \"\"\n}"
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
headers: {'Content-Type' => 'application/json'}
)
response = conn.post('/baseUrl/v1/:parent/certificates') do |req|
req.body = "{\n \"certificateStatus\": \"\",\n \"credentialId\": \"\",\n \"description\": \"\",\n \"displayName\": \"\",\n \"name\": \"\",\n \"rawCertificate\": {\n \"encryptedPrivateKey\": \"\",\n \"passphrase\": \"\",\n \"sslCertificate\": \"\"\n },\n \"requestorId\": \"\",\n \"validEndTime\": \"\",\n \"validStartTime\": \"\"\n}"
end
puts response.status
puts response.body
use serde_json::json;
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/v1/:parent/certificates";
let payload = json!({
"certificateStatus": "",
"credentialId": "",
"description": "",
"displayName": "",
"name": "",
"rawCertificate": json!({
"encryptedPrivateKey": "",
"passphrase": "",
"sslCertificate": ""
}),
"requestorId": "",
"validEndTime": "",
"validStartTime": ""
});
let mut headers = reqwest::header::HeaderMap::new();
headers.insert("content-type", "application/json".parse().unwrap());
let client = reqwest::Client::new();
let response = client.post(url)
.headers(headers)
.json(&payload)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request POST \
--url {{baseUrl}}/v1/:parent/certificates \
--header 'content-type: application/json' \
--data '{
"certificateStatus": "",
"credentialId": "",
"description": "",
"displayName": "",
"name": "",
"rawCertificate": {
"encryptedPrivateKey": "",
"passphrase": "",
"sslCertificate": ""
},
"requestorId": "",
"validEndTime": "",
"validStartTime": ""
}'
echo '{
"certificateStatus": "",
"credentialId": "",
"description": "",
"displayName": "",
"name": "",
"rawCertificate": {
"encryptedPrivateKey": "",
"passphrase": "",
"sslCertificate": ""
},
"requestorId": "",
"validEndTime": "",
"validStartTime": ""
}' | \
http POST {{baseUrl}}/v1/:parent/certificates \
content-type:application/json
wget --quiet \
--method POST \
--header 'content-type: application/json' \
--body-data '{\n "certificateStatus": "",\n "credentialId": "",\n "description": "",\n "displayName": "",\n "name": "",\n "rawCertificate": {\n "encryptedPrivateKey": "",\n "passphrase": "",\n "sslCertificate": ""\n },\n "requestorId": "",\n "validEndTime": "",\n "validStartTime": ""\n}' \
--output-document \
- {{baseUrl}}/v1/:parent/certificates
import Foundation
let headers = ["content-type": "application/json"]
let parameters = [
"certificateStatus": "",
"credentialId": "",
"description": "",
"displayName": "",
"name": "",
"rawCertificate": [
"encryptedPrivateKey": "",
"passphrase": "",
"sslCertificate": ""
],
"requestorId": "",
"validEndTime": "",
"validStartTime": ""
] as [String : Any]
let postData = JSONSerialization.data(withJSONObject: parameters, options: [])
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/v1/:parent/certificates")! 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
integrations.projects.locations.products.certificates.list
{{baseUrl}}/v1/:parent/certificates
QUERY PARAMS
parent
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/v1/:parent/certificates");
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/get "{{baseUrl}}/v1/:parent/certificates")
require "http/client"
url = "{{baseUrl}}/v1/:parent/certificates"
response = HTTP::Client.get url
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Get,
RequestUri = new Uri("{{baseUrl}}/v1/:parent/certificates"),
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/v1/:parent/certificates");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/v1/:parent/certificates"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
GET /baseUrl/v1/:parent/certificates HTTP/1.1
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/v1/:parent/certificates")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/v1/:parent/certificates"))
.method("GET", HttpRequest.BodyPublishers.noBody())
.build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("{{baseUrl}}/v1/:parent/certificates")
.get()
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/v1/:parent/certificates")
.asString();
const data = null;
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('GET', '{{baseUrl}}/v1/:parent/certificates');
xhr.send(data);
import axios from 'axios';
const options = {method: 'GET', url: '{{baseUrl}}/v1/:parent/certificates'};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/v1/:parent/certificates';
const options = {method: 'GET'};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/v1/:parent/certificates',
method: 'GET',
headers: {}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/v1/:parent/certificates")
.get()
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'GET',
hostname: 'example.com',
port: null,
path: '/baseUrl/v1/:parent/certificates',
headers: {}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
const request = require('request');
const options = {method: 'GET', url: '{{baseUrl}}/v1/:parent/certificates'};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('GET', '{{baseUrl}}/v1/:parent/certificates');
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {method: 'GET', url: '{{baseUrl}}/v1/:parent/certificates'};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/v1/:parent/certificates';
const options = {method: 'GET'};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/v1/:parent/certificates"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/v1/:parent/certificates" in
Client.call `GET uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/v1/:parent/certificates",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('GET', '{{baseUrl}}/v1/:parent/certificates');
echo $response->getBody();
setUrl('{{baseUrl}}/v1/:parent/certificates');
$request->setMethod(HTTP_METH_GET);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/v1/:parent/certificates');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/v1/:parent/certificates' -Method GET
$response = Invoke-RestMethod -Uri '{{baseUrl}}/v1/:parent/certificates' -Method GET
import http.client
conn = http.client.HTTPSConnection("example.com")
conn.request("GET", "/baseUrl/v1/:parent/certificates")
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/v1/:parent/certificates"
response = requests.get(url)
print(response.json())
library(httr)
url <- "{{baseUrl}}/v1/:parent/certificates"
response <- VERB("GET", url, content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/v1/:parent/certificates")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
)
response = conn.get('/baseUrl/v1/:parent/certificates') do |req|
end
puts response.status
puts response.body
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/v1/:parent/certificates";
let client = reqwest::Client::new();
let response = client.get(url)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request GET \
--url {{baseUrl}}/v1/:parent/certificates
http GET {{baseUrl}}/v1/:parent/certificates
wget --quiet \
--method GET \
--output-document \
- {{baseUrl}}/v1/:parent/certificates
import Foundation
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/v1/:parent/certificates")! 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
integrations.projects.locations.products.cloudFunctions.create
{{baseUrl}}/v1/:parent/cloudFunctions
QUERY PARAMS
parent
BODY json
{
"functionName": "",
"functionRegion": "",
"projectId": ""
}
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/v1/:parent/cloudFunctions");
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 \"functionName\": \"\",\n \"functionRegion\": \"\",\n \"projectId\": \"\"\n}");
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/post "{{baseUrl}}/v1/:parent/cloudFunctions" {:content-type :json
:form-params {:functionName ""
:functionRegion ""
:projectId ""}})
require "http/client"
url = "{{baseUrl}}/v1/:parent/cloudFunctions"
headers = HTTP::Headers{
"content-type" => "application/json"
}
reqBody = "{\n \"functionName\": \"\",\n \"functionRegion\": \"\",\n \"projectId\": \"\"\n}"
response = HTTP::Client.post url, headers: headers, body: reqBody
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Post,
RequestUri = new Uri("{{baseUrl}}/v1/:parent/cloudFunctions"),
Content = new StringContent("{\n \"functionName\": \"\",\n \"functionRegion\": \"\",\n \"projectId\": \"\"\n}")
{
Headers =
{
ContentType = new MediaTypeHeaderValue("application/json")
}
}
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/v1/:parent/cloudFunctions");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n \"functionName\": \"\",\n \"functionRegion\": \"\",\n \"projectId\": \"\"\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/v1/:parent/cloudFunctions"
payload := strings.NewReader("{\n \"functionName\": \"\",\n \"functionRegion\": \"\",\n \"projectId\": \"\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("content-type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
POST /baseUrl/v1/:parent/cloudFunctions HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 67
{
"functionName": "",
"functionRegion": "",
"projectId": ""
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/v1/:parent/cloudFunctions")
.setHeader("content-type", "application/json")
.setBody("{\n \"functionName\": \"\",\n \"functionRegion\": \"\",\n \"projectId\": \"\"\n}")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/v1/:parent/cloudFunctions"))
.header("content-type", "application/json")
.method("POST", HttpRequest.BodyPublishers.ofString("{\n \"functionName\": \"\",\n \"functionRegion\": \"\",\n \"projectId\": \"\"\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 \"functionName\": \"\",\n \"functionRegion\": \"\",\n \"projectId\": \"\"\n}");
Request request = new Request.Builder()
.url("{{baseUrl}}/v1/:parent/cloudFunctions")
.post(body)
.addHeader("content-type", "application/json")
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/v1/:parent/cloudFunctions")
.header("content-type", "application/json")
.body("{\n \"functionName\": \"\",\n \"functionRegion\": \"\",\n \"projectId\": \"\"\n}")
.asString();
const data = JSON.stringify({
functionName: '',
functionRegion: '',
projectId: ''
});
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('POST', '{{baseUrl}}/v1/:parent/cloudFunctions');
xhr.setRequestHeader('content-type', 'application/json');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'POST',
url: '{{baseUrl}}/v1/:parent/cloudFunctions',
headers: {'content-type': 'application/json'},
data: {functionName: '', functionRegion: '', projectId: ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/v1/:parent/cloudFunctions';
const options = {
method: 'POST',
headers: {'content-type': 'application/json'},
body: '{"functionName":"","functionRegion":"","projectId":""}'
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/v1/:parent/cloudFunctions',
method: 'POST',
headers: {
'content-type': 'application/json'
},
processData: false,
data: '{\n "functionName": "",\n "functionRegion": "",\n "projectId": ""\n}'
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n \"functionName\": \"\",\n \"functionRegion\": \"\",\n \"projectId\": \"\"\n}")
val request = Request.Builder()
.url("{{baseUrl}}/v1/:parent/cloudFunctions")
.post(body)
.addHeader("content-type", "application/json")
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'POST',
hostname: 'example.com',
port: null,
path: '/baseUrl/v1/:parent/cloudFunctions',
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({functionName: '', functionRegion: '', projectId: ''}));
req.end();
const request = require('request');
const options = {
method: 'POST',
url: '{{baseUrl}}/v1/:parent/cloudFunctions',
headers: {'content-type': 'application/json'},
body: {functionName: '', functionRegion: '', projectId: ''},
json: true
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('POST', '{{baseUrl}}/v1/:parent/cloudFunctions');
req.headers({
'content-type': 'application/json'
});
req.type('json');
req.send({
functionName: '',
functionRegion: '',
projectId: ''
});
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {
method: 'POST',
url: '{{baseUrl}}/v1/:parent/cloudFunctions',
headers: {'content-type': 'application/json'},
data: {functionName: '', functionRegion: '', projectId: ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/v1/:parent/cloudFunctions';
const options = {
method: 'POST',
headers: {'content-type': 'application/json'},
body: '{"functionName":"","functionRegion":"","projectId":""}'
};
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 = @{ @"functionName": @"",
@"functionRegion": @"",
@"projectId": @"" };
NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/v1/:parent/cloudFunctions"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"POST"];
[request setAllHTTPHeaderFields:headers];
[request setHTTPBody:postData];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/v1/:parent/cloudFunctions" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n \"functionName\": \"\",\n \"functionRegion\": \"\",\n \"projectId\": \"\"\n}" in
Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/v1/:parent/cloudFunctions",
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([
'functionName' => '',
'functionRegion' => '',
'projectId' => ''
]),
CURLOPT_HTTPHEADER => [
"content-type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('POST', '{{baseUrl}}/v1/:parent/cloudFunctions', [
'body' => '{
"functionName": "",
"functionRegion": "",
"projectId": ""
}',
'headers' => [
'content-type' => 'application/json',
],
]);
echo $response->getBody();
setUrl('{{baseUrl}}/v1/:parent/cloudFunctions');
$request->setMethod(HTTP_METH_POST);
$request->setHeaders([
'content-type' => 'application/json'
]);
$request->setContentType('application/json');
$request->setBody(json_encode([
'functionName' => '',
'functionRegion' => '',
'projectId' => ''
]));
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
append(json_encode([
'functionName' => '',
'functionRegion' => '',
'projectId' => ''
]));
$request->setRequestUrl('{{baseUrl}}/v1/:parent/cloudFunctions');
$request->setRequestMethod('POST');
$request->setBody($body);
$request->setHeaders([
'content-type' => 'application/json'
]);
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/v1/:parent/cloudFunctions' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
"functionName": "",
"functionRegion": "",
"projectId": ""
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/v1/:parent/cloudFunctions' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
"functionName": "",
"functionRegion": "",
"projectId": ""
}'
import http.client
conn = http.client.HTTPSConnection("example.com")
payload = "{\n \"functionName\": \"\",\n \"functionRegion\": \"\",\n \"projectId\": \"\"\n}"
headers = { 'content-type': "application/json" }
conn.request("POST", "/baseUrl/v1/:parent/cloudFunctions", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/v1/:parent/cloudFunctions"
payload = {
"functionName": "",
"functionRegion": "",
"projectId": ""
}
headers = {"content-type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.json())
library(httr)
url <- "{{baseUrl}}/v1/:parent/cloudFunctions"
payload <- "{\n \"functionName\": \"\",\n \"functionRegion\": \"\",\n \"projectId\": \"\"\n}"
encode <- "json"
response <- VERB("POST", url, body = payload, content_type("application/json"), encode = encode)
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/v1/:parent/cloudFunctions")
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 \"functionName\": \"\",\n \"functionRegion\": \"\",\n \"projectId\": \"\"\n}"
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
headers: {'Content-Type' => 'application/json'}
)
response = conn.post('/baseUrl/v1/:parent/cloudFunctions') do |req|
req.body = "{\n \"functionName\": \"\",\n \"functionRegion\": \"\",\n \"projectId\": \"\"\n}"
end
puts response.status
puts response.body
use serde_json::json;
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/v1/:parent/cloudFunctions";
let payload = json!({
"functionName": "",
"functionRegion": "",
"projectId": ""
});
let mut headers = reqwest::header::HeaderMap::new();
headers.insert("content-type", "application/json".parse().unwrap());
let client = reqwest::Client::new();
let response = client.post(url)
.headers(headers)
.json(&payload)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request POST \
--url {{baseUrl}}/v1/:parent/cloudFunctions \
--header 'content-type: application/json' \
--data '{
"functionName": "",
"functionRegion": "",
"projectId": ""
}'
echo '{
"functionName": "",
"functionRegion": "",
"projectId": ""
}' | \
http POST {{baseUrl}}/v1/:parent/cloudFunctions \
content-type:application/json
wget --quiet \
--method POST \
--header 'content-type: application/json' \
--body-data '{\n "functionName": "",\n "functionRegion": "",\n "projectId": ""\n}' \
--output-document \
- {{baseUrl}}/v1/:parent/cloudFunctions
import Foundation
let headers = ["content-type": "application/json"]
let parameters = [
"functionName": "",
"functionRegion": "",
"projectId": ""
] as [String : Any]
let postData = JSONSerialization.data(withJSONObject: parameters, options: [])
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/v1/:parent/cloudFunctions")! 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
integrations.projects.locations.products.integrations.execute
{{baseUrl}}/v1/:name:execute
QUERY PARAMS
name
BODY json
{
"doNotPropagateError": false,
"executionId": "",
"inputParameters": {},
"parameterEntries": [
{
"dataType": "",
"key": "",
"value": {
"booleanArray": {
"booleanValues": []
},
"booleanValue": false,
"doubleArray": {
"doubleValues": []
},
"doubleValue": "",
"intArray": {
"intValues": []
},
"intValue": "",
"jsonValue": "",
"protoArray": {
"protoValues": [
{}
]
},
"protoValue": {},
"serializedObjectValue": {
"objectValue": ""
},
"stringArray": {
"stringValues": []
},
"stringValue": ""
}
}
],
"parameters": {
"parameters": [
{}
]
},
"requestId": "",
"triggerId": ""
}
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/v1/:name: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 \"doNotPropagateError\": false,\n \"executionId\": \"\",\n \"inputParameters\": {},\n \"parameterEntries\": [\n {\n \"dataType\": \"\",\n \"key\": \"\",\n \"value\": {\n \"booleanArray\": {\n \"booleanValues\": []\n },\n \"booleanValue\": false,\n \"doubleArray\": {\n \"doubleValues\": []\n },\n \"doubleValue\": \"\",\n \"intArray\": {\n \"intValues\": []\n },\n \"intValue\": \"\",\n \"jsonValue\": \"\",\n \"protoArray\": {\n \"protoValues\": [\n {}\n ]\n },\n \"protoValue\": {},\n \"serializedObjectValue\": {\n \"objectValue\": \"\"\n },\n \"stringArray\": {\n \"stringValues\": []\n },\n \"stringValue\": \"\"\n }\n }\n ],\n \"parameters\": {\n \"parameters\": [\n {}\n ]\n },\n \"requestId\": \"\",\n \"triggerId\": \"\"\n}");
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/post "{{baseUrl}}/v1/:name:execute" {:content-type :json
:form-params {:doNotPropagateError false
:executionId ""
:inputParameters {}
:parameterEntries [{:dataType ""
:key ""
:value {:booleanArray {:booleanValues []}
:booleanValue false
:doubleArray {:doubleValues []}
:doubleValue ""
:intArray {:intValues []}
:intValue ""
:jsonValue ""
:protoArray {:protoValues [{}]}
:protoValue {}
:serializedObjectValue {:objectValue ""}
:stringArray {:stringValues []}
:stringValue ""}}]
:parameters {:parameters [{}]}
:requestId ""
:triggerId ""}})
require "http/client"
url = "{{baseUrl}}/v1/:name:execute"
headers = HTTP::Headers{
"content-type" => "application/json"
}
reqBody = "{\n \"doNotPropagateError\": false,\n \"executionId\": \"\",\n \"inputParameters\": {},\n \"parameterEntries\": [\n {\n \"dataType\": \"\",\n \"key\": \"\",\n \"value\": {\n \"booleanArray\": {\n \"booleanValues\": []\n },\n \"booleanValue\": false,\n \"doubleArray\": {\n \"doubleValues\": []\n },\n \"doubleValue\": \"\",\n \"intArray\": {\n \"intValues\": []\n },\n \"intValue\": \"\",\n \"jsonValue\": \"\",\n \"protoArray\": {\n \"protoValues\": [\n {}\n ]\n },\n \"protoValue\": {},\n \"serializedObjectValue\": {\n \"objectValue\": \"\"\n },\n \"stringArray\": {\n \"stringValues\": []\n },\n \"stringValue\": \"\"\n }\n }\n ],\n \"parameters\": {\n \"parameters\": [\n {}\n ]\n },\n \"requestId\": \"\",\n \"triggerId\": \"\"\n}"
response = HTTP::Client.post url, headers: headers, body: reqBody
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Post,
RequestUri = new Uri("{{baseUrl}}/v1/:name:execute"),
Content = new StringContent("{\n \"doNotPropagateError\": false,\n \"executionId\": \"\",\n \"inputParameters\": {},\n \"parameterEntries\": [\n {\n \"dataType\": \"\",\n \"key\": \"\",\n \"value\": {\n \"booleanArray\": {\n \"booleanValues\": []\n },\n \"booleanValue\": false,\n \"doubleArray\": {\n \"doubleValues\": []\n },\n \"doubleValue\": \"\",\n \"intArray\": {\n \"intValues\": []\n },\n \"intValue\": \"\",\n \"jsonValue\": \"\",\n \"protoArray\": {\n \"protoValues\": [\n {}\n ]\n },\n \"protoValue\": {},\n \"serializedObjectValue\": {\n \"objectValue\": \"\"\n },\n \"stringArray\": {\n \"stringValues\": []\n },\n \"stringValue\": \"\"\n }\n }\n ],\n \"parameters\": {\n \"parameters\": [\n {}\n ]\n },\n \"requestId\": \"\",\n \"triggerId\": \"\"\n}")
{
Headers =
{
ContentType = new MediaTypeHeaderValue("application/json")
}
}
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/v1/:name:execute");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n \"doNotPropagateError\": false,\n \"executionId\": \"\",\n \"inputParameters\": {},\n \"parameterEntries\": [\n {\n \"dataType\": \"\",\n \"key\": \"\",\n \"value\": {\n \"booleanArray\": {\n \"booleanValues\": []\n },\n \"booleanValue\": false,\n \"doubleArray\": {\n \"doubleValues\": []\n },\n \"doubleValue\": \"\",\n \"intArray\": {\n \"intValues\": []\n },\n \"intValue\": \"\",\n \"jsonValue\": \"\",\n \"protoArray\": {\n \"protoValues\": [\n {}\n ]\n },\n \"protoValue\": {},\n \"serializedObjectValue\": {\n \"objectValue\": \"\"\n },\n \"stringArray\": {\n \"stringValues\": []\n },\n \"stringValue\": \"\"\n }\n }\n ],\n \"parameters\": {\n \"parameters\": [\n {}\n ]\n },\n \"requestId\": \"\",\n \"triggerId\": \"\"\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/v1/:name:execute"
payload := strings.NewReader("{\n \"doNotPropagateError\": false,\n \"executionId\": \"\",\n \"inputParameters\": {},\n \"parameterEntries\": [\n {\n \"dataType\": \"\",\n \"key\": \"\",\n \"value\": {\n \"booleanArray\": {\n \"booleanValues\": []\n },\n \"booleanValue\": false,\n \"doubleArray\": {\n \"doubleValues\": []\n },\n \"doubleValue\": \"\",\n \"intArray\": {\n \"intValues\": []\n },\n \"intValue\": \"\",\n \"jsonValue\": \"\",\n \"protoArray\": {\n \"protoValues\": [\n {}\n ]\n },\n \"protoValue\": {},\n \"serializedObjectValue\": {\n \"objectValue\": \"\"\n },\n \"stringArray\": {\n \"stringValues\": []\n },\n \"stringValue\": \"\"\n }\n }\n ],\n \"parameters\": {\n \"parameters\": [\n {}\n ]\n },\n \"requestId\": \"\",\n \"triggerId\": \"\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("content-type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
POST /baseUrl/v1/:name:execute HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 859
{
"doNotPropagateError": false,
"executionId": "",
"inputParameters": {},
"parameterEntries": [
{
"dataType": "",
"key": "",
"value": {
"booleanArray": {
"booleanValues": []
},
"booleanValue": false,
"doubleArray": {
"doubleValues": []
},
"doubleValue": "",
"intArray": {
"intValues": []
},
"intValue": "",
"jsonValue": "",
"protoArray": {
"protoValues": [
{}
]
},
"protoValue": {},
"serializedObjectValue": {
"objectValue": ""
},
"stringArray": {
"stringValues": []
},
"stringValue": ""
}
}
],
"parameters": {
"parameters": [
{}
]
},
"requestId": "",
"triggerId": ""
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/v1/:name:execute")
.setHeader("content-type", "application/json")
.setBody("{\n \"doNotPropagateError\": false,\n \"executionId\": \"\",\n \"inputParameters\": {},\n \"parameterEntries\": [\n {\n \"dataType\": \"\",\n \"key\": \"\",\n \"value\": {\n \"booleanArray\": {\n \"booleanValues\": []\n },\n \"booleanValue\": false,\n \"doubleArray\": {\n \"doubleValues\": []\n },\n \"doubleValue\": \"\",\n \"intArray\": {\n \"intValues\": []\n },\n \"intValue\": \"\",\n \"jsonValue\": \"\",\n \"protoArray\": {\n \"protoValues\": [\n {}\n ]\n },\n \"protoValue\": {},\n \"serializedObjectValue\": {\n \"objectValue\": \"\"\n },\n \"stringArray\": {\n \"stringValues\": []\n },\n \"stringValue\": \"\"\n }\n }\n ],\n \"parameters\": {\n \"parameters\": [\n {}\n ]\n },\n \"requestId\": \"\",\n \"triggerId\": \"\"\n}")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/v1/:name:execute"))
.header("content-type", "application/json")
.method("POST", HttpRequest.BodyPublishers.ofString("{\n \"doNotPropagateError\": false,\n \"executionId\": \"\",\n \"inputParameters\": {},\n \"parameterEntries\": [\n {\n \"dataType\": \"\",\n \"key\": \"\",\n \"value\": {\n \"booleanArray\": {\n \"booleanValues\": []\n },\n \"booleanValue\": false,\n \"doubleArray\": {\n \"doubleValues\": []\n },\n \"doubleValue\": \"\",\n \"intArray\": {\n \"intValues\": []\n },\n \"intValue\": \"\",\n \"jsonValue\": \"\",\n \"protoArray\": {\n \"protoValues\": [\n {}\n ]\n },\n \"protoValue\": {},\n \"serializedObjectValue\": {\n \"objectValue\": \"\"\n },\n \"stringArray\": {\n \"stringValues\": []\n },\n \"stringValue\": \"\"\n }\n }\n ],\n \"parameters\": {\n \"parameters\": [\n {}\n ]\n },\n \"requestId\": \"\",\n \"triggerId\": \"\"\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 \"doNotPropagateError\": false,\n \"executionId\": \"\",\n \"inputParameters\": {},\n \"parameterEntries\": [\n {\n \"dataType\": \"\",\n \"key\": \"\",\n \"value\": {\n \"booleanArray\": {\n \"booleanValues\": []\n },\n \"booleanValue\": false,\n \"doubleArray\": {\n \"doubleValues\": []\n },\n \"doubleValue\": \"\",\n \"intArray\": {\n \"intValues\": []\n },\n \"intValue\": \"\",\n \"jsonValue\": \"\",\n \"protoArray\": {\n \"protoValues\": [\n {}\n ]\n },\n \"protoValue\": {},\n \"serializedObjectValue\": {\n \"objectValue\": \"\"\n },\n \"stringArray\": {\n \"stringValues\": []\n },\n \"stringValue\": \"\"\n }\n }\n ],\n \"parameters\": {\n \"parameters\": [\n {}\n ]\n },\n \"requestId\": \"\",\n \"triggerId\": \"\"\n}");
Request request = new Request.Builder()
.url("{{baseUrl}}/v1/:name:execute")
.post(body)
.addHeader("content-type", "application/json")
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/v1/:name:execute")
.header("content-type", "application/json")
.body("{\n \"doNotPropagateError\": false,\n \"executionId\": \"\",\n \"inputParameters\": {},\n \"parameterEntries\": [\n {\n \"dataType\": \"\",\n \"key\": \"\",\n \"value\": {\n \"booleanArray\": {\n \"booleanValues\": []\n },\n \"booleanValue\": false,\n \"doubleArray\": {\n \"doubleValues\": []\n },\n \"doubleValue\": \"\",\n \"intArray\": {\n \"intValues\": []\n },\n \"intValue\": \"\",\n \"jsonValue\": \"\",\n \"protoArray\": {\n \"protoValues\": [\n {}\n ]\n },\n \"protoValue\": {},\n \"serializedObjectValue\": {\n \"objectValue\": \"\"\n },\n \"stringArray\": {\n \"stringValues\": []\n },\n \"stringValue\": \"\"\n }\n }\n ],\n \"parameters\": {\n \"parameters\": [\n {}\n ]\n },\n \"requestId\": \"\",\n \"triggerId\": \"\"\n}")
.asString();
const data = JSON.stringify({
doNotPropagateError: false,
executionId: '',
inputParameters: {},
parameterEntries: [
{
dataType: '',
key: '',
value: {
booleanArray: {
booleanValues: []
},
booleanValue: false,
doubleArray: {
doubleValues: []
},
doubleValue: '',
intArray: {
intValues: []
},
intValue: '',
jsonValue: '',
protoArray: {
protoValues: [
{}
]
},
protoValue: {},
serializedObjectValue: {
objectValue: ''
},
stringArray: {
stringValues: []
},
stringValue: ''
}
}
],
parameters: {
parameters: [
{}
]
},
requestId: '',
triggerId: ''
});
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('POST', '{{baseUrl}}/v1/:name:execute');
xhr.setRequestHeader('content-type', 'application/json');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'POST',
url: '{{baseUrl}}/v1/:name:execute',
headers: {'content-type': 'application/json'},
data: {
doNotPropagateError: false,
executionId: '',
inputParameters: {},
parameterEntries: [
{
dataType: '',
key: '',
value: {
booleanArray: {booleanValues: []},
booleanValue: false,
doubleArray: {doubleValues: []},
doubleValue: '',
intArray: {intValues: []},
intValue: '',
jsonValue: '',
protoArray: {protoValues: [{}]},
protoValue: {},
serializedObjectValue: {objectValue: ''},
stringArray: {stringValues: []},
stringValue: ''
}
}
],
parameters: {parameters: [{}]},
requestId: '',
triggerId: ''
}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/v1/:name:execute';
const options = {
method: 'POST',
headers: {'content-type': 'application/json'},
body: '{"doNotPropagateError":false,"executionId":"","inputParameters":{},"parameterEntries":[{"dataType":"","key":"","value":{"booleanArray":{"booleanValues":[]},"booleanValue":false,"doubleArray":{"doubleValues":[]},"doubleValue":"","intArray":{"intValues":[]},"intValue":"","jsonValue":"","protoArray":{"protoValues":[{}]},"protoValue":{},"serializedObjectValue":{"objectValue":""},"stringArray":{"stringValues":[]},"stringValue":""}}],"parameters":{"parameters":[{}]},"requestId":"","triggerId":""}'
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/v1/:name:execute',
method: 'POST',
headers: {
'content-type': 'application/json'
},
processData: false,
data: '{\n "doNotPropagateError": false,\n "executionId": "",\n "inputParameters": {},\n "parameterEntries": [\n {\n "dataType": "",\n "key": "",\n "value": {\n "booleanArray": {\n "booleanValues": []\n },\n "booleanValue": false,\n "doubleArray": {\n "doubleValues": []\n },\n "doubleValue": "",\n "intArray": {\n "intValues": []\n },\n "intValue": "",\n "jsonValue": "",\n "protoArray": {\n "protoValues": [\n {}\n ]\n },\n "protoValue": {},\n "serializedObjectValue": {\n "objectValue": ""\n },\n "stringArray": {\n "stringValues": []\n },\n "stringValue": ""\n }\n }\n ],\n "parameters": {\n "parameters": [\n {}\n ]\n },\n "requestId": "",\n "triggerId": ""\n}'
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n \"doNotPropagateError\": false,\n \"executionId\": \"\",\n \"inputParameters\": {},\n \"parameterEntries\": [\n {\n \"dataType\": \"\",\n \"key\": \"\",\n \"value\": {\n \"booleanArray\": {\n \"booleanValues\": []\n },\n \"booleanValue\": false,\n \"doubleArray\": {\n \"doubleValues\": []\n },\n \"doubleValue\": \"\",\n \"intArray\": {\n \"intValues\": []\n },\n \"intValue\": \"\",\n \"jsonValue\": \"\",\n \"protoArray\": {\n \"protoValues\": [\n {}\n ]\n },\n \"protoValue\": {},\n \"serializedObjectValue\": {\n \"objectValue\": \"\"\n },\n \"stringArray\": {\n \"stringValues\": []\n },\n \"stringValue\": \"\"\n }\n }\n ],\n \"parameters\": {\n \"parameters\": [\n {}\n ]\n },\n \"requestId\": \"\",\n \"triggerId\": \"\"\n}")
val request = Request.Builder()
.url("{{baseUrl}}/v1/:name: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/v1/:name: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({
doNotPropagateError: false,
executionId: '',
inputParameters: {},
parameterEntries: [
{
dataType: '',
key: '',
value: {
booleanArray: {booleanValues: []},
booleanValue: false,
doubleArray: {doubleValues: []},
doubleValue: '',
intArray: {intValues: []},
intValue: '',
jsonValue: '',
protoArray: {protoValues: [{}]},
protoValue: {},
serializedObjectValue: {objectValue: ''},
stringArray: {stringValues: []},
stringValue: ''
}
}
],
parameters: {parameters: [{}]},
requestId: '',
triggerId: ''
}));
req.end();
const request = require('request');
const options = {
method: 'POST',
url: '{{baseUrl}}/v1/:name:execute',
headers: {'content-type': 'application/json'},
body: {
doNotPropagateError: false,
executionId: '',
inputParameters: {},
parameterEntries: [
{
dataType: '',
key: '',
value: {
booleanArray: {booleanValues: []},
booleanValue: false,
doubleArray: {doubleValues: []},
doubleValue: '',
intArray: {intValues: []},
intValue: '',
jsonValue: '',
protoArray: {protoValues: [{}]},
protoValue: {},
serializedObjectValue: {objectValue: ''},
stringArray: {stringValues: []},
stringValue: ''
}
}
],
parameters: {parameters: [{}]},
requestId: '',
triggerId: ''
},
json: true
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('POST', '{{baseUrl}}/v1/:name:execute');
req.headers({
'content-type': 'application/json'
});
req.type('json');
req.send({
doNotPropagateError: false,
executionId: '',
inputParameters: {},
parameterEntries: [
{
dataType: '',
key: '',
value: {
booleanArray: {
booleanValues: []
},
booleanValue: false,
doubleArray: {
doubleValues: []
},
doubleValue: '',
intArray: {
intValues: []
},
intValue: '',
jsonValue: '',
protoArray: {
protoValues: [
{}
]
},
protoValue: {},
serializedObjectValue: {
objectValue: ''
},
stringArray: {
stringValues: []
},
stringValue: ''
}
}
],
parameters: {
parameters: [
{}
]
},
requestId: '',
triggerId: ''
});
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {
method: 'POST',
url: '{{baseUrl}}/v1/:name:execute',
headers: {'content-type': 'application/json'},
data: {
doNotPropagateError: false,
executionId: '',
inputParameters: {},
parameterEntries: [
{
dataType: '',
key: '',
value: {
booleanArray: {booleanValues: []},
booleanValue: false,
doubleArray: {doubleValues: []},
doubleValue: '',
intArray: {intValues: []},
intValue: '',
jsonValue: '',
protoArray: {protoValues: [{}]},
protoValue: {},
serializedObjectValue: {objectValue: ''},
stringArray: {stringValues: []},
stringValue: ''
}
}
],
parameters: {parameters: [{}]},
requestId: '',
triggerId: ''
}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/v1/:name:execute';
const options = {
method: 'POST',
headers: {'content-type': 'application/json'},
body: '{"doNotPropagateError":false,"executionId":"","inputParameters":{},"parameterEntries":[{"dataType":"","key":"","value":{"booleanArray":{"booleanValues":[]},"booleanValue":false,"doubleArray":{"doubleValues":[]},"doubleValue":"","intArray":{"intValues":[]},"intValue":"","jsonValue":"","protoArray":{"protoValues":[{}]},"protoValue":{},"serializedObjectValue":{"objectValue":""},"stringArray":{"stringValues":[]},"stringValue":""}}],"parameters":{"parameters":[{}]},"requestId":"","triggerId":""}'
};
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 = @{ @"doNotPropagateError": @NO,
@"executionId": @"",
@"inputParameters": @{ },
@"parameterEntries": @[ @{ @"dataType": @"", @"key": @"", @"value": @{ @"booleanArray": @{ @"booleanValues": @[ ] }, @"booleanValue": @NO, @"doubleArray": @{ @"doubleValues": @[ ] }, @"doubleValue": @"", @"intArray": @{ @"intValues": @[ ] }, @"intValue": @"", @"jsonValue": @"", @"protoArray": @{ @"protoValues": @[ @{ } ] }, @"protoValue": @{ }, @"serializedObjectValue": @{ @"objectValue": @"" }, @"stringArray": @{ @"stringValues": @[ ] }, @"stringValue": @"" } } ],
@"parameters": @{ @"parameters": @[ @{ } ] },
@"requestId": @"",
@"triggerId": @"" };
NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/v1/:name: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}}/v1/:name:execute" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n \"doNotPropagateError\": false,\n \"executionId\": \"\",\n \"inputParameters\": {},\n \"parameterEntries\": [\n {\n \"dataType\": \"\",\n \"key\": \"\",\n \"value\": {\n \"booleanArray\": {\n \"booleanValues\": []\n },\n \"booleanValue\": false,\n \"doubleArray\": {\n \"doubleValues\": []\n },\n \"doubleValue\": \"\",\n \"intArray\": {\n \"intValues\": []\n },\n \"intValue\": \"\",\n \"jsonValue\": \"\",\n \"protoArray\": {\n \"protoValues\": [\n {}\n ]\n },\n \"protoValue\": {},\n \"serializedObjectValue\": {\n \"objectValue\": \"\"\n },\n \"stringArray\": {\n \"stringValues\": []\n },\n \"stringValue\": \"\"\n }\n }\n ],\n \"parameters\": {\n \"parameters\": [\n {}\n ]\n },\n \"requestId\": \"\",\n \"triggerId\": \"\"\n}" in
Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/v1/:name: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([
'doNotPropagateError' => null,
'executionId' => '',
'inputParameters' => [
],
'parameterEntries' => [
[
'dataType' => '',
'key' => '',
'value' => [
'booleanArray' => [
'booleanValues' => [
]
],
'booleanValue' => null,
'doubleArray' => [
'doubleValues' => [
]
],
'doubleValue' => '',
'intArray' => [
'intValues' => [
]
],
'intValue' => '',
'jsonValue' => '',
'protoArray' => [
'protoValues' => [
[
]
]
],
'protoValue' => [
],
'serializedObjectValue' => [
'objectValue' => ''
],
'stringArray' => [
'stringValues' => [
]
],
'stringValue' => ''
]
]
],
'parameters' => [
'parameters' => [
[
]
]
],
'requestId' => '',
'triggerId' => ''
]),
CURLOPT_HTTPHEADER => [
"content-type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('POST', '{{baseUrl}}/v1/:name:execute', [
'body' => '{
"doNotPropagateError": false,
"executionId": "",
"inputParameters": {},
"parameterEntries": [
{
"dataType": "",
"key": "",
"value": {
"booleanArray": {
"booleanValues": []
},
"booleanValue": false,
"doubleArray": {
"doubleValues": []
},
"doubleValue": "",
"intArray": {
"intValues": []
},
"intValue": "",
"jsonValue": "",
"protoArray": {
"protoValues": [
{}
]
},
"protoValue": {},
"serializedObjectValue": {
"objectValue": ""
},
"stringArray": {
"stringValues": []
},
"stringValue": ""
}
}
],
"parameters": {
"parameters": [
{}
]
},
"requestId": "",
"triggerId": ""
}',
'headers' => [
'content-type' => 'application/json',
],
]);
echo $response->getBody();
setUrl('{{baseUrl}}/v1/:name:execute');
$request->setMethod(HTTP_METH_POST);
$request->setHeaders([
'content-type' => 'application/json'
]);
$request->setContentType('application/json');
$request->setBody(json_encode([
'doNotPropagateError' => null,
'executionId' => '',
'inputParameters' => [
],
'parameterEntries' => [
[
'dataType' => '',
'key' => '',
'value' => [
'booleanArray' => [
'booleanValues' => [
]
],
'booleanValue' => null,
'doubleArray' => [
'doubleValues' => [
]
],
'doubleValue' => '',
'intArray' => [
'intValues' => [
]
],
'intValue' => '',
'jsonValue' => '',
'protoArray' => [
'protoValues' => [
[
]
]
],
'protoValue' => [
],
'serializedObjectValue' => [
'objectValue' => ''
],
'stringArray' => [
'stringValues' => [
]
],
'stringValue' => ''
]
]
],
'parameters' => [
'parameters' => [
[
]
]
],
'requestId' => '',
'triggerId' => ''
]));
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
append(json_encode([
'doNotPropagateError' => null,
'executionId' => '',
'inputParameters' => [
],
'parameterEntries' => [
[
'dataType' => '',
'key' => '',
'value' => [
'booleanArray' => [
'booleanValues' => [
]
],
'booleanValue' => null,
'doubleArray' => [
'doubleValues' => [
]
],
'doubleValue' => '',
'intArray' => [
'intValues' => [
]
],
'intValue' => '',
'jsonValue' => '',
'protoArray' => [
'protoValues' => [
[
]
]
],
'protoValue' => [
],
'serializedObjectValue' => [
'objectValue' => ''
],
'stringArray' => [
'stringValues' => [
]
],
'stringValue' => ''
]
]
],
'parameters' => [
'parameters' => [
[
]
]
],
'requestId' => '',
'triggerId' => ''
]));
$request->setRequestUrl('{{baseUrl}}/v1/:name: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}}/v1/:name:execute' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
"doNotPropagateError": false,
"executionId": "",
"inputParameters": {},
"parameterEntries": [
{
"dataType": "",
"key": "",
"value": {
"booleanArray": {
"booleanValues": []
},
"booleanValue": false,
"doubleArray": {
"doubleValues": []
},
"doubleValue": "",
"intArray": {
"intValues": []
},
"intValue": "",
"jsonValue": "",
"protoArray": {
"protoValues": [
{}
]
},
"protoValue": {},
"serializedObjectValue": {
"objectValue": ""
},
"stringArray": {
"stringValues": []
},
"stringValue": ""
}
}
],
"parameters": {
"parameters": [
{}
]
},
"requestId": "",
"triggerId": ""
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/v1/:name:execute' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
"doNotPropagateError": false,
"executionId": "",
"inputParameters": {},
"parameterEntries": [
{
"dataType": "",
"key": "",
"value": {
"booleanArray": {
"booleanValues": []
},
"booleanValue": false,
"doubleArray": {
"doubleValues": []
},
"doubleValue": "",
"intArray": {
"intValues": []
},
"intValue": "",
"jsonValue": "",
"protoArray": {
"protoValues": [
{}
]
},
"protoValue": {},
"serializedObjectValue": {
"objectValue": ""
},
"stringArray": {
"stringValues": []
},
"stringValue": ""
}
}
],
"parameters": {
"parameters": [
{}
]
},
"requestId": "",
"triggerId": ""
}'
import http.client
conn = http.client.HTTPSConnection("example.com")
payload = "{\n \"doNotPropagateError\": false,\n \"executionId\": \"\",\n \"inputParameters\": {},\n \"parameterEntries\": [\n {\n \"dataType\": \"\",\n \"key\": \"\",\n \"value\": {\n \"booleanArray\": {\n \"booleanValues\": []\n },\n \"booleanValue\": false,\n \"doubleArray\": {\n \"doubleValues\": []\n },\n \"doubleValue\": \"\",\n \"intArray\": {\n \"intValues\": []\n },\n \"intValue\": \"\",\n \"jsonValue\": \"\",\n \"protoArray\": {\n \"protoValues\": [\n {}\n ]\n },\n \"protoValue\": {},\n \"serializedObjectValue\": {\n \"objectValue\": \"\"\n },\n \"stringArray\": {\n \"stringValues\": []\n },\n \"stringValue\": \"\"\n }\n }\n ],\n \"parameters\": {\n \"parameters\": [\n {}\n ]\n },\n \"requestId\": \"\",\n \"triggerId\": \"\"\n}"
headers = { 'content-type': "application/json" }
conn.request("POST", "/baseUrl/v1/:name:execute", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/v1/:name:execute"
payload = {
"doNotPropagateError": False,
"executionId": "",
"inputParameters": {},
"parameterEntries": [
{
"dataType": "",
"key": "",
"value": {
"booleanArray": { "booleanValues": [] },
"booleanValue": False,
"doubleArray": { "doubleValues": [] },
"doubleValue": "",
"intArray": { "intValues": [] },
"intValue": "",
"jsonValue": "",
"protoArray": { "protoValues": [{}] },
"protoValue": {},
"serializedObjectValue": { "objectValue": "" },
"stringArray": { "stringValues": [] },
"stringValue": ""
}
}
],
"parameters": { "parameters": [{}] },
"requestId": "",
"triggerId": ""
}
headers = {"content-type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.json())
library(httr)
url <- "{{baseUrl}}/v1/:name:execute"
payload <- "{\n \"doNotPropagateError\": false,\n \"executionId\": \"\",\n \"inputParameters\": {},\n \"parameterEntries\": [\n {\n \"dataType\": \"\",\n \"key\": \"\",\n \"value\": {\n \"booleanArray\": {\n \"booleanValues\": []\n },\n \"booleanValue\": false,\n \"doubleArray\": {\n \"doubleValues\": []\n },\n \"doubleValue\": \"\",\n \"intArray\": {\n \"intValues\": []\n },\n \"intValue\": \"\",\n \"jsonValue\": \"\",\n \"protoArray\": {\n \"protoValues\": [\n {}\n ]\n },\n \"protoValue\": {},\n \"serializedObjectValue\": {\n \"objectValue\": \"\"\n },\n \"stringArray\": {\n \"stringValues\": []\n },\n \"stringValue\": \"\"\n }\n }\n ],\n \"parameters\": {\n \"parameters\": [\n {}\n ]\n },\n \"requestId\": \"\",\n \"triggerId\": \"\"\n}"
encode <- "json"
response <- VERB("POST", url, body = payload, content_type("application/json"), encode = encode)
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/v1/:name: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 \"doNotPropagateError\": false,\n \"executionId\": \"\",\n \"inputParameters\": {},\n \"parameterEntries\": [\n {\n \"dataType\": \"\",\n \"key\": \"\",\n \"value\": {\n \"booleanArray\": {\n \"booleanValues\": []\n },\n \"booleanValue\": false,\n \"doubleArray\": {\n \"doubleValues\": []\n },\n \"doubleValue\": \"\",\n \"intArray\": {\n \"intValues\": []\n },\n \"intValue\": \"\",\n \"jsonValue\": \"\",\n \"protoArray\": {\n \"protoValues\": [\n {}\n ]\n },\n \"protoValue\": {},\n \"serializedObjectValue\": {\n \"objectValue\": \"\"\n },\n \"stringArray\": {\n \"stringValues\": []\n },\n \"stringValue\": \"\"\n }\n }\n ],\n \"parameters\": {\n \"parameters\": [\n {}\n ]\n },\n \"requestId\": \"\",\n \"triggerId\": \"\"\n}"
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
headers: {'Content-Type' => 'application/json'}
)
response = conn.post('/baseUrl/v1/:name:execute') do |req|
req.body = "{\n \"doNotPropagateError\": false,\n \"executionId\": \"\",\n \"inputParameters\": {},\n \"parameterEntries\": [\n {\n \"dataType\": \"\",\n \"key\": \"\",\n \"value\": {\n \"booleanArray\": {\n \"booleanValues\": []\n },\n \"booleanValue\": false,\n \"doubleArray\": {\n \"doubleValues\": []\n },\n \"doubleValue\": \"\",\n \"intArray\": {\n \"intValues\": []\n },\n \"intValue\": \"\",\n \"jsonValue\": \"\",\n \"protoArray\": {\n \"protoValues\": [\n {}\n ]\n },\n \"protoValue\": {},\n \"serializedObjectValue\": {\n \"objectValue\": \"\"\n },\n \"stringArray\": {\n \"stringValues\": []\n },\n \"stringValue\": \"\"\n }\n }\n ],\n \"parameters\": {\n \"parameters\": [\n {}\n ]\n },\n \"requestId\": \"\",\n \"triggerId\": \"\"\n}"
end
puts response.status
puts response.body
use serde_json::json;
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/v1/:name:execute";
let payload = json!({
"doNotPropagateError": false,
"executionId": "",
"inputParameters": json!({}),
"parameterEntries": (
json!({
"dataType": "",
"key": "",
"value": json!({
"booleanArray": json!({"booleanValues": ()}),
"booleanValue": false,
"doubleArray": json!({"doubleValues": ()}),
"doubleValue": "",
"intArray": json!({"intValues": ()}),
"intValue": "",
"jsonValue": "",
"protoArray": json!({"protoValues": (json!({}))}),
"protoValue": json!({}),
"serializedObjectValue": json!({"objectValue": ""}),
"stringArray": json!({"stringValues": ()}),
"stringValue": ""
})
})
),
"parameters": json!({"parameters": (json!({}))}),
"requestId": "",
"triggerId": ""
});
let mut headers = reqwest::header::HeaderMap::new();
headers.insert("content-type", "application/json".parse().unwrap());
let client = reqwest::Client::new();
let response = client.post(url)
.headers(headers)
.json(&payload)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request POST \
--url {{baseUrl}}/v1/:name:execute \
--header 'content-type: application/json' \
--data '{
"doNotPropagateError": false,
"executionId": "",
"inputParameters": {},
"parameterEntries": [
{
"dataType": "",
"key": "",
"value": {
"booleanArray": {
"booleanValues": []
},
"booleanValue": false,
"doubleArray": {
"doubleValues": []
},
"doubleValue": "",
"intArray": {
"intValues": []
},
"intValue": "",
"jsonValue": "",
"protoArray": {
"protoValues": [
{}
]
},
"protoValue": {},
"serializedObjectValue": {
"objectValue": ""
},
"stringArray": {
"stringValues": []
},
"stringValue": ""
}
}
],
"parameters": {
"parameters": [
{}
]
},
"requestId": "",
"triggerId": ""
}'
echo '{
"doNotPropagateError": false,
"executionId": "",
"inputParameters": {},
"parameterEntries": [
{
"dataType": "",
"key": "",
"value": {
"booleanArray": {
"booleanValues": []
},
"booleanValue": false,
"doubleArray": {
"doubleValues": []
},
"doubleValue": "",
"intArray": {
"intValues": []
},
"intValue": "",
"jsonValue": "",
"protoArray": {
"protoValues": [
{}
]
},
"protoValue": {},
"serializedObjectValue": {
"objectValue": ""
},
"stringArray": {
"stringValues": []
},
"stringValue": ""
}
}
],
"parameters": {
"parameters": [
{}
]
},
"requestId": "",
"triggerId": ""
}' | \
http POST {{baseUrl}}/v1/:name:execute \
content-type:application/json
wget --quiet \
--method POST \
--header 'content-type: application/json' \
--body-data '{\n "doNotPropagateError": false,\n "executionId": "",\n "inputParameters": {},\n "parameterEntries": [\n {\n "dataType": "",\n "key": "",\n "value": {\n "booleanArray": {\n "booleanValues": []\n },\n "booleanValue": false,\n "doubleArray": {\n "doubleValues": []\n },\n "doubleValue": "",\n "intArray": {\n "intValues": []\n },\n "intValue": "",\n "jsonValue": "",\n "protoArray": {\n "protoValues": [\n {}\n ]\n },\n "protoValue": {},\n "serializedObjectValue": {\n "objectValue": ""\n },\n "stringArray": {\n "stringValues": []\n },\n "stringValue": ""\n }\n }\n ],\n "parameters": {\n "parameters": [\n {}\n ]\n },\n "requestId": "",\n "triggerId": ""\n}' \
--output-document \
- {{baseUrl}}/v1/:name:execute
import Foundation
let headers = ["content-type": "application/json"]
let parameters = [
"doNotPropagateError": false,
"executionId": "",
"inputParameters": [],
"parameterEntries": [
[
"dataType": "",
"key": "",
"value": [
"booleanArray": ["booleanValues": []],
"booleanValue": false,
"doubleArray": ["doubleValues": []],
"doubleValue": "",
"intArray": ["intValues": []],
"intValue": "",
"jsonValue": "",
"protoArray": ["protoValues": [[]]],
"protoValue": [],
"serializedObjectValue": ["objectValue": ""],
"stringArray": ["stringValues": []],
"stringValue": ""
]
]
],
"parameters": ["parameters": [[]]],
"requestId": "",
"triggerId": ""
] as [String : Any]
let postData = JSONSerialization.data(withJSONObject: parameters, options: [])
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/v1/:name: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()
POST
integrations.projects.locations.products.integrations.executions.cancel
{{baseUrl}}/v1/:name:cancel
QUERY PARAMS
name
BODY json
{}
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/v1/:name:cancel");
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "content-type: application/json");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
curl_easy_setopt(hnd, CURLOPT_POSTFIELDS, "{}");
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/post "{{baseUrl}}/v1/:name:cancel" {:content-type :json})
require "http/client"
url = "{{baseUrl}}/v1/:name:cancel"
headers = HTTP::Headers{
"content-type" => "application/json"
}
reqBody = "{}"
response = HTTP::Client.post url, headers: headers, body: reqBody
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Post,
RequestUri = new Uri("{{baseUrl}}/v1/:name:cancel"),
Content = new StringContent("{}")
{
Headers =
{
ContentType = new MediaTypeHeaderValue("application/json")
}
}
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/v1/:name:cancel");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{}", ParameterType.RequestBody);
var response = client.Execute(request);
package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/v1/:name:cancel"
payload := strings.NewReader("{}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("content-type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
POST /baseUrl/v1/:name:cancel HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 2
{}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/v1/:name:cancel")
.setHeader("content-type", "application/json")
.setBody("{}")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/v1/:name:cancel"))
.header("content-type", "application/json")
.method("POST", HttpRequest.BodyPublishers.ofString("{}"))
.build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();
MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{}");
Request request = new Request.Builder()
.url("{{baseUrl}}/v1/:name:cancel")
.post(body)
.addHeader("content-type", "application/json")
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/v1/:name:cancel")
.header("content-type", "application/json")
.body("{}")
.asString();
const data = JSON.stringify({});
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('POST', '{{baseUrl}}/v1/:name:cancel');
xhr.setRequestHeader('content-type', 'application/json');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'POST',
url: '{{baseUrl}}/v1/:name:cancel',
headers: {'content-type': 'application/json'},
data: {}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/v1/:name:cancel';
const options = {method: 'POST', headers: {'content-type': 'application/json'}, body: '{}'};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/v1/:name:cancel',
method: 'POST',
headers: {
'content-type': 'application/json'
},
processData: false,
data: '{}'
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{}")
val request = Request.Builder()
.url("{{baseUrl}}/v1/:name:cancel")
.post(body)
.addHeader("content-type", "application/json")
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'POST',
hostname: 'example.com',
port: null,
path: '/baseUrl/v1/:name:cancel',
headers: {
'content-type': 'application/json'
}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.write(JSON.stringify({}));
req.end();
const request = require('request');
const options = {
method: 'POST',
url: '{{baseUrl}}/v1/:name:cancel',
headers: {'content-type': 'application/json'},
body: {},
json: true
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('POST', '{{baseUrl}}/v1/:name:cancel');
req.headers({
'content-type': 'application/json'
});
req.type('json');
req.send({});
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {
method: 'POST',
url: '{{baseUrl}}/v1/:name:cancel',
headers: {'content-type': 'application/json'},
data: {}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/v1/:name:cancel';
const options = {method: 'POST', headers: {'content-type': 'application/json'}, body: '{}'};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSDictionary *headers = @{ @"content-type": @"application/json" };
NSDictionary *parameters = @{ };
NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/v1/:name:cancel"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"POST"];
[request setAllHTTPHeaderFields:headers];
[request setHTTPBody:postData];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/v1/:name:cancel" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{}" in
Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/v1/:name:cancel",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
]),
CURLOPT_HTTPHEADER => [
"content-type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('POST', '{{baseUrl}}/v1/:name:cancel', [
'body' => '{}',
'headers' => [
'content-type' => 'application/json',
],
]);
echo $response->getBody();
setUrl('{{baseUrl}}/v1/:name:cancel');
$request->setMethod(HTTP_METH_POST);
$request->setHeaders([
'content-type' => 'application/json'
]);
$request->setContentType('application/json');
$request->setBody(json_encode([
]));
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
append(json_encode([
]));
$request->setRequestUrl('{{baseUrl}}/v1/:name:cancel');
$request->setRequestMethod('POST');
$request->setBody($body);
$request->setHeaders([
'content-type' => 'application/json'
]);
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/v1/:name:cancel' -Method POST -Headers $headers -ContentType 'application/json' -Body '{}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/v1/:name:cancel' -Method POST -Headers $headers -ContentType 'application/json' -Body '{}'
import http.client
conn = http.client.HTTPSConnection("example.com")
payload = "{}"
headers = { 'content-type': "application/json" }
conn.request("POST", "/baseUrl/v1/:name:cancel", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/v1/:name:cancel"
payload = {}
headers = {"content-type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.json())
library(httr)
url <- "{{baseUrl}}/v1/:name:cancel"
payload <- "{}"
encode <- "json"
response <- VERB("POST", url, body = payload, content_type("application/json"), encode = encode)
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/v1/:name:cancel")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["content-type"] = 'application/json'
request.body = "{}"
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
headers: {'Content-Type' => 'application/json'}
)
response = conn.post('/baseUrl/v1/:name:cancel') do |req|
req.body = "{}"
end
puts response.status
puts response.body
use serde_json::json;
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/v1/:name:cancel";
let payload = json!({});
let mut headers = reqwest::header::HeaderMap::new();
headers.insert("content-type", "application/json".parse().unwrap());
let client = reqwest::Client::new();
let response = client.post(url)
.headers(headers)
.json(&payload)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request POST \
--url {{baseUrl}}/v1/:name:cancel \
--header 'content-type: application/json' \
--data '{}'
echo '{}' | \
http POST {{baseUrl}}/v1/:name:cancel \
content-type:application/json
wget --quiet \
--method POST \
--header 'content-type: application/json' \
--body-data '{}' \
--output-document \
- {{baseUrl}}/v1/:name:cancel
import Foundation
let headers = ["content-type": "application/json"]
let parameters = [] as [String : Any]
let postData = JSONSerialization.data(withJSONObject: parameters, options: [])
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/v1/:name:cancel")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
GET
integrations.projects.locations.products.integrations.executions.list
{{baseUrl}}/v1/:parent/executions
QUERY PARAMS
parent
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/v1/:parent/executions");
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/get "{{baseUrl}}/v1/:parent/executions")
require "http/client"
url = "{{baseUrl}}/v1/:parent/executions"
response = HTTP::Client.get url
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Get,
RequestUri = new Uri("{{baseUrl}}/v1/:parent/executions"),
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/v1/:parent/executions");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/v1/:parent/executions"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
GET /baseUrl/v1/:parent/executions HTTP/1.1
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/v1/:parent/executions")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/v1/:parent/executions"))
.method("GET", HttpRequest.BodyPublishers.noBody())
.build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("{{baseUrl}}/v1/:parent/executions")
.get()
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/v1/:parent/executions")
.asString();
const data = null;
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('GET', '{{baseUrl}}/v1/:parent/executions');
xhr.send(data);
import axios from 'axios';
const options = {method: 'GET', url: '{{baseUrl}}/v1/:parent/executions'};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/v1/:parent/executions';
const options = {method: 'GET'};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/v1/:parent/executions',
method: 'GET',
headers: {}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/v1/:parent/executions")
.get()
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'GET',
hostname: 'example.com',
port: null,
path: '/baseUrl/v1/:parent/executions',
headers: {}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
const request = require('request');
const options = {method: 'GET', url: '{{baseUrl}}/v1/:parent/executions'};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('GET', '{{baseUrl}}/v1/:parent/executions');
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {method: 'GET', url: '{{baseUrl}}/v1/:parent/executions'};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/v1/:parent/executions';
const options = {method: 'GET'};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/v1/:parent/executions"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/v1/:parent/executions" in
Client.call `GET uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/v1/:parent/executions",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('GET', '{{baseUrl}}/v1/:parent/executions');
echo $response->getBody();
setUrl('{{baseUrl}}/v1/:parent/executions');
$request->setMethod(HTTP_METH_GET);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/v1/:parent/executions');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/v1/:parent/executions' -Method GET
$response = Invoke-RestMethod -Uri '{{baseUrl}}/v1/:parent/executions' -Method GET
import http.client
conn = http.client.HTTPSConnection("example.com")
conn.request("GET", "/baseUrl/v1/:parent/executions")
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/v1/:parent/executions"
response = requests.get(url)
print(response.json())
library(httr)
url <- "{{baseUrl}}/v1/:parent/executions"
response <- VERB("GET", url, content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/v1/:parent/executions")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
)
response = conn.get('/baseUrl/v1/:parent/executions') do |req|
end
puts response.status
puts response.body
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/v1/:parent/executions";
let client = reqwest::Client::new();
let response = client.get(url)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request GET \
--url {{baseUrl}}/v1/:parent/executions
http GET {{baseUrl}}/v1/:parent/executions
wget --quiet \
--method GET \
--output-document \
- {{baseUrl}}/v1/:parent/executions
import Foundation
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/v1/:parent/executions")! 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
integrations.projects.locations.products.integrations.executions.suspensions.lift
{{baseUrl}}/v1/:name:lift
QUERY PARAMS
name
BODY json
{
"suspensionResult": ""
}
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/v1/:name:lift");
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 \"suspensionResult\": \"\"\n}");
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/post "{{baseUrl}}/v1/:name:lift" {:content-type :json
:form-params {:suspensionResult ""}})
require "http/client"
url = "{{baseUrl}}/v1/:name:lift"
headers = HTTP::Headers{
"content-type" => "application/json"
}
reqBody = "{\n \"suspensionResult\": \"\"\n}"
response = HTTP::Client.post url, headers: headers, body: reqBody
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Post,
RequestUri = new Uri("{{baseUrl}}/v1/:name:lift"),
Content = new StringContent("{\n \"suspensionResult\": \"\"\n}")
{
Headers =
{
ContentType = new MediaTypeHeaderValue("application/json")
}
}
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/v1/:name:lift");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n \"suspensionResult\": \"\"\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/v1/:name:lift"
payload := strings.NewReader("{\n \"suspensionResult\": \"\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("content-type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
POST /baseUrl/v1/:name:lift HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 28
{
"suspensionResult": ""
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/v1/:name:lift")
.setHeader("content-type", "application/json")
.setBody("{\n \"suspensionResult\": \"\"\n}")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/v1/:name:lift"))
.header("content-type", "application/json")
.method("POST", HttpRequest.BodyPublishers.ofString("{\n \"suspensionResult\": \"\"\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 \"suspensionResult\": \"\"\n}");
Request request = new Request.Builder()
.url("{{baseUrl}}/v1/:name:lift")
.post(body)
.addHeader("content-type", "application/json")
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/v1/:name:lift")
.header("content-type", "application/json")
.body("{\n \"suspensionResult\": \"\"\n}")
.asString();
const data = JSON.stringify({
suspensionResult: ''
});
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('POST', '{{baseUrl}}/v1/:name:lift');
xhr.setRequestHeader('content-type', 'application/json');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'POST',
url: '{{baseUrl}}/v1/:name:lift',
headers: {'content-type': 'application/json'},
data: {suspensionResult: ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/v1/:name:lift';
const options = {
method: 'POST',
headers: {'content-type': 'application/json'},
body: '{"suspensionResult":""}'
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/v1/:name:lift',
method: 'POST',
headers: {
'content-type': 'application/json'
},
processData: false,
data: '{\n "suspensionResult": ""\n}'
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n \"suspensionResult\": \"\"\n}")
val request = Request.Builder()
.url("{{baseUrl}}/v1/:name:lift")
.post(body)
.addHeader("content-type", "application/json")
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'POST',
hostname: 'example.com',
port: null,
path: '/baseUrl/v1/:name:lift',
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({suspensionResult: ''}));
req.end();
const request = require('request');
const options = {
method: 'POST',
url: '{{baseUrl}}/v1/:name:lift',
headers: {'content-type': 'application/json'},
body: {suspensionResult: ''},
json: true
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('POST', '{{baseUrl}}/v1/:name:lift');
req.headers({
'content-type': 'application/json'
});
req.type('json');
req.send({
suspensionResult: ''
});
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {
method: 'POST',
url: '{{baseUrl}}/v1/:name:lift',
headers: {'content-type': 'application/json'},
data: {suspensionResult: ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/v1/:name:lift';
const options = {
method: 'POST',
headers: {'content-type': 'application/json'},
body: '{"suspensionResult":""}'
};
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 = @{ @"suspensionResult": @"" };
NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/v1/:name:lift"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"POST"];
[request setAllHTTPHeaderFields:headers];
[request setHTTPBody:postData];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/v1/:name:lift" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n \"suspensionResult\": \"\"\n}" in
Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/v1/:name:lift",
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([
'suspensionResult' => ''
]),
CURLOPT_HTTPHEADER => [
"content-type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('POST', '{{baseUrl}}/v1/:name:lift', [
'body' => '{
"suspensionResult": ""
}',
'headers' => [
'content-type' => 'application/json',
],
]);
echo $response->getBody();
setUrl('{{baseUrl}}/v1/:name:lift');
$request->setMethod(HTTP_METH_POST);
$request->setHeaders([
'content-type' => 'application/json'
]);
$request->setContentType('application/json');
$request->setBody(json_encode([
'suspensionResult' => ''
]));
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
append(json_encode([
'suspensionResult' => ''
]));
$request->setRequestUrl('{{baseUrl}}/v1/:name:lift');
$request->setRequestMethod('POST');
$request->setBody($body);
$request->setHeaders([
'content-type' => 'application/json'
]);
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/v1/:name:lift' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
"suspensionResult": ""
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/v1/:name:lift' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
"suspensionResult": ""
}'
import http.client
conn = http.client.HTTPSConnection("example.com")
payload = "{\n \"suspensionResult\": \"\"\n}"
headers = { 'content-type': "application/json" }
conn.request("POST", "/baseUrl/v1/:name:lift", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/v1/:name:lift"
payload = { "suspensionResult": "" }
headers = {"content-type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.json())
library(httr)
url <- "{{baseUrl}}/v1/:name:lift"
payload <- "{\n \"suspensionResult\": \"\"\n}"
encode <- "json"
response <- VERB("POST", url, body = payload, content_type("application/json"), encode = encode)
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/v1/:name:lift")
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 \"suspensionResult\": \"\"\n}"
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
headers: {'Content-Type' => 'application/json'}
)
response = conn.post('/baseUrl/v1/:name:lift') do |req|
req.body = "{\n \"suspensionResult\": \"\"\n}"
end
puts response.status
puts response.body
use serde_json::json;
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/v1/:name:lift";
let payload = json!({"suspensionResult": ""});
let mut headers = reqwest::header::HeaderMap::new();
headers.insert("content-type", "application/json".parse().unwrap());
let client = reqwest::Client::new();
let response = client.post(url)
.headers(headers)
.json(&payload)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request POST \
--url {{baseUrl}}/v1/:name:lift \
--header 'content-type: application/json' \
--data '{
"suspensionResult": ""
}'
echo '{
"suspensionResult": ""
}' | \
http POST {{baseUrl}}/v1/:name:lift \
content-type:application/json
wget --quiet \
--method POST \
--header 'content-type: application/json' \
--body-data '{\n "suspensionResult": ""\n}' \
--output-document \
- {{baseUrl}}/v1/:name:lift
import Foundation
let headers = ["content-type": "application/json"]
let parameters = ["suspensionResult": ""] as [String : Any]
let postData = JSONSerialization.data(withJSONObject: parameters, options: [])
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/v1/:name:lift")! 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
integrations.projects.locations.products.integrations.executions.suspensions.list
{{baseUrl}}/v1/:parent/suspensions
QUERY PARAMS
parent
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/v1/:parent/suspensions");
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/get "{{baseUrl}}/v1/:parent/suspensions")
require "http/client"
url = "{{baseUrl}}/v1/:parent/suspensions"
response = HTTP::Client.get url
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Get,
RequestUri = new Uri("{{baseUrl}}/v1/:parent/suspensions"),
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/v1/:parent/suspensions");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/v1/:parent/suspensions"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
GET /baseUrl/v1/:parent/suspensions HTTP/1.1
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/v1/:parent/suspensions")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/v1/:parent/suspensions"))
.method("GET", HttpRequest.BodyPublishers.noBody())
.build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("{{baseUrl}}/v1/:parent/suspensions")
.get()
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/v1/:parent/suspensions")
.asString();
const data = null;
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('GET', '{{baseUrl}}/v1/:parent/suspensions');
xhr.send(data);
import axios from 'axios';
const options = {method: 'GET', url: '{{baseUrl}}/v1/:parent/suspensions'};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/v1/:parent/suspensions';
const options = {method: 'GET'};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/v1/:parent/suspensions',
method: 'GET',
headers: {}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/v1/:parent/suspensions")
.get()
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'GET',
hostname: 'example.com',
port: null,
path: '/baseUrl/v1/:parent/suspensions',
headers: {}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
const request = require('request');
const options = {method: 'GET', url: '{{baseUrl}}/v1/:parent/suspensions'};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('GET', '{{baseUrl}}/v1/:parent/suspensions');
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {method: 'GET', url: '{{baseUrl}}/v1/:parent/suspensions'};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/v1/:parent/suspensions';
const options = {method: 'GET'};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/v1/:parent/suspensions"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/v1/:parent/suspensions" in
Client.call `GET uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/v1/:parent/suspensions",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('GET', '{{baseUrl}}/v1/:parent/suspensions');
echo $response->getBody();
setUrl('{{baseUrl}}/v1/:parent/suspensions');
$request->setMethod(HTTP_METH_GET);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/v1/:parent/suspensions');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/v1/:parent/suspensions' -Method GET
$response = Invoke-RestMethod -Uri '{{baseUrl}}/v1/:parent/suspensions' -Method GET
import http.client
conn = http.client.HTTPSConnection("example.com")
conn.request("GET", "/baseUrl/v1/:parent/suspensions")
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/v1/:parent/suspensions"
response = requests.get(url)
print(response.json())
library(httr)
url <- "{{baseUrl}}/v1/:parent/suspensions"
response <- VERB("GET", url, content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/v1/:parent/suspensions")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
)
response = conn.get('/baseUrl/v1/:parent/suspensions') do |req|
end
puts response.status
puts response.body
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/v1/:parent/suspensions";
let client = reqwest::Client::new();
let response = client.get(url)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request GET \
--url {{baseUrl}}/v1/:parent/suspensions
http GET {{baseUrl}}/v1/:parent/suspensions
wget --quiet \
--method GET \
--output-document \
- {{baseUrl}}/v1/:parent/suspensions
import Foundation
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/v1/:parent/suspensions")! 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
integrations.projects.locations.products.integrations.executions.suspensions.resolve
{{baseUrl}}/v1/:name:resolve
QUERY PARAMS
name
BODY json
{
"suspension": {
"approvalConfig": {
"customMessage": "",
"emailAddresses": [],
"expiration": {
"expireTime": "",
"liftWhenExpired": false,
"remindTime": ""
}
},
"audit": {
"resolveTime": "",
"resolver": ""
},
"createTime": "",
"eventExecutionInfoId": "",
"integration": "",
"lastModifyTime": "",
"name": "",
"state": "",
"suspensionConfig": {
"customMessage": "",
"notifications": [
{
"buganizerNotification": {
"assigneeEmailAddress": "",
"componentId": "",
"templateId": "",
"title": ""
},
"emailAddress": {
"email": "",
"name": "",
"tokens": [
{
"name": "",
"value": ""
}
]
},
"escalatorQueue": "",
"pubsubTopic": "",
"request": {
"postToQueueWithTriggerIdRequest": {
"clientId": "",
"ignoreErrorIfNoActiveWorkflow": false,
"parameters": {
"parameters": [
{
"key": "",
"value": {
"booleanArray": {
"booleanValues": []
},
"booleanValue": false,
"doubleArray": {
"doubleValues": []
},
"doubleValue": "",
"intArray": {
"intValues": []
},
"intValue": "",
"protoArray": {
"protoValues": [
{}
]
},
"protoValue": {},
"serializedObjectValue": {
"objectValue": ""
},
"stringArray": {
"stringValues": []
},
"stringValue": ""
}
}
]
},
"priority": "",
"requestId": "",
"scheduledTime": "",
"testMode": false,
"triggerId": "",
"workflowName": ""
},
"suspensionInfoEventParameterKey": ""
}
}
],
"suspensionExpiration": {
"expireAfterMs": 0,
"liftWhenExpired": false,
"remindAfterMs": 0
},
"whoMayResolve": [
{
"gaiaIdentity": {
"emailAddress": "",
"gaiaId": ""
},
"googleGroup": {},
"loasRole": "",
"mdbGroup": ""
}
]
},
"taskId": ""
}
}
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/v1/:name:resolve");
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 \"suspension\": {\n \"approvalConfig\": {\n \"customMessage\": \"\",\n \"emailAddresses\": [],\n \"expiration\": {\n \"expireTime\": \"\",\n \"liftWhenExpired\": false,\n \"remindTime\": \"\"\n }\n },\n \"audit\": {\n \"resolveTime\": \"\",\n \"resolver\": \"\"\n },\n \"createTime\": \"\",\n \"eventExecutionInfoId\": \"\",\n \"integration\": \"\",\n \"lastModifyTime\": \"\",\n \"name\": \"\",\n \"state\": \"\",\n \"suspensionConfig\": {\n \"customMessage\": \"\",\n \"notifications\": [\n {\n \"buganizerNotification\": {\n \"assigneeEmailAddress\": \"\",\n \"componentId\": \"\",\n \"templateId\": \"\",\n \"title\": \"\"\n },\n \"emailAddress\": {\n \"email\": \"\",\n \"name\": \"\",\n \"tokens\": [\n {\n \"name\": \"\",\n \"value\": \"\"\n }\n ]\n },\n \"escalatorQueue\": \"\",\n \"pubsubTopic\": \"\",\n \"request\": {\n \"postToQueueWithTriggerIdRequest\": {\n \"clientId\": \"\",\n \"ignoreErrorIfNoActiveWorkflow\": false,\n \"parameters\": {\n \"parameters\": [\n {\n \"key\": \"\",\n \"value\": {\n \"booleanArray\": {\n \"booleanValues\": []\n },\n \"booleanValue\": false,\n \"doubleArray\": {\n \"doubleValues\": []\n },\n \"doubleValue\": \"\",\n \"intArray\": {\n \"intValues\": []\n },\n \"intValue\": \"\",\n \"protoArray\": {\n \"protoValues\": [\n {}\n ]\n },\n \"protoValue\": {},\n \"serializedObjectValue\": {\n \"objectValue\": \"\"\n },\n \"stringArray\": {\n \"stringValues\": []\n },\n \"stringValue\": \"\"\n }\n }\n ]\n },\n \"priority\": \"\",\n \"requestId\": \"\",\n \"scheduledTime\": \"\",\n \"testMode\": false,\n \"triggerId\": \"\",\n \"workflowName\": \"\"\n },\n \"suspensionInfoEventParameterKey\": \"\"\n }\n }\n ],\n \"suspensionExpiration\": {\n \"expireAfterMs\": 0,\n \"liftWhenExpired\": false,\n \"remindAfterMs\": 0\n },\n \"whoMayResolve\": [\n {\n \"gaiaIdentity\": {\n \"emailAddress\": \"\",\n \"gaiaId\": \"\"\n },\n \"googleGroup\": {},\n \"loasRole\": \"\",\n \"mdbGroup\": \"\"\n }\n ]\n },\n \"taskId\": \"\"\n }\n}");
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/post "{{baseUrl}}/v1/:name:resolve" {:content-type :json
:form-params {:suspension {:approvalConfig {:customMessage ""
:emailAddresses []
:expiration {:expireTime ""
:liftWhenExpired false
:remindTime ""}}
:audit {:resolveTime ""
:resolver ""}
:createTime ""
:eventExecutionInfoId ""
:integration ""
:lastModifyTime ""
:name ""
:state ""
:suspensionConfig {:customMessage ""
:notifications [{:buganizerNotification {:assigneeEmailAddress ""
:componentId ""
:templateId ""
:title ""}
:emailAddress {:email ""
:name ""
:tokens [{:name ""
:value ""}]}
:escalatorQueue ""
:pubsubTopic ""
:request {:postToQueueWithTriggerIdRequest {:clientId ""
:ignoreErrorIfNoActiveWorkflow false
:parameters {:parameters [{:key ""
:value {:booleanArray {:booleanValues []}
:booleanValue false
:doubleArray {:doubleValues []}
:doubleValue ""
:intArray {:intValues []}
:intValue ""
:protoArray {:protoValues [{}]}
:protoValue {}
:serializedObjectValue {:objectValue ""}
:stringArray {:stringValues []}
:stringValue ""}}]}
:priority ""
:requestId ""
:scheduledTime ""
:testMode false
:triggerId ""
:workflowName ""}
:suspensionInfoEventParameterKey ""}}]
:suspensionExpiration {:expireAfterMs 0
:liftWhenExpired false
:remindAfterMs 0}
:whoMayResolve [{:gaiaIdentity {:emailAddress ""
:gaiaId ""}
:googleGroup {}
:loasRole ""
:mdbGroup ""}]}
:taskId ""}}})
require "http/client"
url = "{{baseUrl}}/v1/:name:resolve"
headers = HTTP::Headers{
"content-type" => "application/json"
}
reqBody = "{\n \"suspension\": {\n \"approvalConfig\": {\n \"customMessage\": \"\",\n \"emailAddresses\": [],\n \"expiration\": {\n \"expireTime\": \"\",\n \"liftWhenExpired\": false,\n \"remindTime\": \"\"\n }\n },\n \"audit\": {\n \"resolveTime\": \"\",\n \"resolver\": \"\"\n },\n \"createTime\": \"\",\n \"eventExecutionInfoId\": \"\",\n \"integration\": \"\",\n \"lastModifyTime\": \"\",\n \"name\": \"\",\n \"state\": \"\",\n \"suspensionConfig\": {\n \"customMessage\": \"\",\n \"notifications\": [\n {\n \"buganizerNotification\": {\n \"assigneeEmailAddress\": \"\",\n \"componentId\": \"\",\n \"templateId\": \"\",\n \"title\": \"\"\n },\n \"emailAddress\": {\n \"email\": \"\",\n \"name\": \"\",\n \"tokens\": [\n {\n \"name\": \"\",\n \"value\": \"\"\n }\n ]\n },\n \"escalatorQueue\": \"\",\n \"pubsubTopic\": \"\",\n \"request\": {\n \"postToQueueWithTriggerIdRequest\": {\n \"clientId\": \"\",\n \"ignoreErrorIfNoActiveWorkflow\": false,\n \"parameters\": {\n \"parameters\": [\n {\n \"key\": \"\",\n \"value\": {\n \"booleanArray\": {\n \"booleanValues\": []\n },\n \"booleanValue\": false,\n \"doubleArray\": {\n \"doubleValues\": []\n },\n \"doubleValue\": \"\",\n \"intArray\": {\n \"intValues\": []\n },\n \"intValue\": \"\",\n \"protoArray\": {\n \"protoValues\": [\n {}\n ]\n },\n \"protoValue\": {},\n \"serializedObjectValue\": {\n \"objectValue\": \"\"\n },\n \"stringArray\": {\n \"stringValues\": []\n },\n \"stringValue\": \"\"\n }\n }\n ]\n },\n \"priority\": \"\",\n \"requestId\": \"\",\n \"scheduledTime\": \"\",\n \"testMode\": false,\n \"triggerId\": \"\",\n \"workflowName\": \"\"\n },\n \"suspensionInfoEventParameterKey\": \"\"\n }\n }\n ],\n \"suspensionExpiration\": {\n \"expireAfterMs\": 0,\n \"liftWhenExpired\": false,\n \"remindAfterMs\": 0\n },\n \"whoMayResolve\": [\n {\n \"gaiaIdentity\": {\n \"emailAddress\": \"\",\n \"gaiaId\": \"\"\n },\n \"googleGroup\": {},\n \"loasRole\": \"\",\n \"mdbGroup\": \"\"\n }\n ]\n },\n \"taskId\": \"\"\n }\n}"
response = HTTP::Client.post url, headers: headers, body: reqBody
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Post,
RequestUri = new Uri("{{baseUrl}}/v1/:name:resolve"),
Content = new StringContent("{\n \"suspension\": {\n \"approvalConfig\": {\n \"customMessage\": \"\",\n \"emailAddresses\": [],\n \"expiration\": {\n \"expireTime\": \"\",\n \"liftWhenExpired\": false,\n \"remindTime\": \"\"\n }\n },\n \"audit\": {\n \"resolveTime\": \"\",\n \"resolver\": \"\"\n },\n \"createTime\": \"\",\n \"eventExecutionInfoId\": \"\",\n \"integration\": \"\",\n \"lastModifyTime\": \"\",\n \"name\": \"\",\n \"state\": \"\",\n \"suspensionConfig\": {\n \"customMessage\": \"\",\n \"notifications\": [\n {\n \"buganizerNotification\": {\n \"assigneeEmailAddress\": \"\",\n \"componentId\": \"\",\n \"templateId\": \"\",\n \"title\": \"\"\n },\n \"emailAddress\": {\n \"email\": \"\",\n \"name\": \"\",\n \"tokens\": [\n {\n \"name\": \"\",\n \"value\": \"\"\n }\n ]\n },\n \"escalatorQueue\": \"\",\n \"pubsubTopic\": \"\",\n \"request\": {\n \"postToQueueWithTriggerIdRequest\": {\n \"clientId\": \"\",\n \"ignoreErrorIfNoActiveWorkflow\": false,\n \"parameters\": {\n \"parameters\": [\n {\n \"key\": \"\",\n \"value\": {\n \"booleanArray\": {\n \"booleanValues\": []\n },\n \"booleanValue\": false,\n \"doubleArray\": {\n \"doubleValues\": []\n },\n \"doubleValue\": \"\",\n \"intArray\": {\n \"intValues\": []\n },\n \"intValue\": \"\",\n \"protoArray\": {\n \"protoValues\": [\n {}\n ]\n },\n \"protoValue\": {},\n \"serializedObjectValue\": {\n \"objectValue\": \"\"\n },\n \"stringArray\": {\n \"stringValues\": []\n },\n \"stringValue\": \"\"\n }\n }\n ]\n },\n \"priority\": \"\",\n \"requestId\": \"\",\n \"scheduledTime\": \"\",\n \"testMode\": false,\n \"triggerId\": \"\",\n \"workflowName\": \"\"\n },\n \"suspensionInfoEventParameterKey\": \"\"\n }\n }\n ],\n \"suspensionExpiration\": {\n \"expireAfterMs\": 0,\n \"liftWhenExpired\": false,\n \"remindAfterMs\": 0\n },\n \"whoMayResolve\": [\n {\n \"gaiaIdentity\": {\n \"emailAddress\": \"\",\n \"gaiaId\": \"\"\n },\n \"googleGroup\": {},\n \"loasRole\": \"\",\n \"mdbGroup\": \"\"\n }\n ]\n },\n \"taskId\": \"\"\n }\n}")
{
Headers =
{
ContentType = new MediaTypeHeaderValue("application/json")
}
}
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/v1/:name:resolve");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n \"suspension\": {\n \"approvalConfig\": {\n \"customMessage\": \"\",\n \"emailAddresses\": [],\n \"expiration\": {\n \"expireTime\": \"\",\n \"liftWhenExpired\": false,\n \"remindTime\": \"\"\n }\n },\n \"audit\": {\n \"resolveTime\": \"\",\n \"resolver\": \"\"\n },\n \"createTime\": \"\",\n \"eventExecutionInfoId\": \"\",\n \"integration\": \"\",\n \"lastModifyTime\": \"\",\n \"name\": \"\",\n \"state\": \"\",\n \"suspensionConfig\": {\n \"customMessage\": \"\",\n \"notifications\": [\n {\n \"buganizerNotification\": {\n \"assigneeEmailAddress\": \"\",\n \"componentId\": \"\",\n \"templateId\": \"\",\n \"title\": \"\"\n },\n \"emailAddress\": {\n \"email\": \"\",\n \"name\": \"\",\n \"tokens\": [\n {\n \"name\": \"\",\n \"value\": \"\"\n }\n ]\n },\n \"escalatorQueue\": \"\",\n \"pubsubTopic\": \"\",\n \"request\": {\n \"postToQueueWithTriggerIdRequest\": {\n \"clientId\": \"\",\n \"ignoreErrorIfNoActiveWorkflow\": false,\n \"parameters\": {\n \"parameters\": [\n {\n \"key\": \"\",\n \"value\": {\n \"booleanArray\": {\n \"booleanValues\": []\n },\n \"booleanValue\": false,\n \"doubleArray\": {\n \"doubleValues\": []\n },\n \"doubleValue\": \"\",\n \"intArray\": {\n \"intValues\": []\n },\n \"intValue\": \"\",\n \"protoArray\": {\n \"protoValues\": [\n {}\n ]\n },\n \"protoValue\": {},\n \"serializedObjectValue\": {\n \"objectValue\": \"\"\n },\n \"stringArray\": {\n \"stringValues\": []\n },\n \"stringValue\": \"\"\n }\n }\n ]\n },\n \"priority\": \"\",\n \"requestId\": \"\",\n \"scheduledTime\": \"\",\n \"testMode\": false,\n \"triggerId\": \"\",\n \"workflowName\": \"\"\n },\n \"suspensionInfoEventParameterKey\": \"\"\n }\n }\n ],\n \"suspensionExpiration\": {\n \"expireAfterMs\": 0,\n \"liftWhenExpired\": false,\n \"remindAfterMs\": 0\n },\n \"whoMayResolve\": [\n {\n \"gaiaIdentity\": {\n \"emailAddress\": \"\",\n \"gaiaId\": \"\"\n },\n \"googleGroup\": {},\n \"loasRole\": \"\",\n \"mdbGroup\": \"\"\n }\n ]\n },\n \"taskId\": \"\"\n }\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/v1/:name:resolve"
payload := strings.NewReader("{\n \"suspension\": {\n \"approvalConfig\": {\n \"customMessage\": \"\",\n \"emailAddresses\": [],\n \"expiration\": {\n \"expireTime\": \"\",\n \"liftWhenExpired\": false,\n \"remindTime\": \"\"\n }\n },\n \"audit\": {\n \"resolveTime\": \"\",\n \"resolver\": \"\"\n },\n \"createTime\": \"\",\n \"eventExecutionInfoId\": \"\",\n \"integration\": \"\",\n \"lastModifyTime\": \"\",\n \"name\": \"\",\n \"state\": \"\",\n \"suspensionConfig\": {\n \"customMessage\": \"\",\n \"notifications\": [\n {\n \"buganizerNotification\": {\n \"assigneeEmailAddress\": \"\",\n \"componentId\": \"\",\n \"templateId\": \"\",\n \"title\": \"\"\n },\n \"emailAddress\": {\n \"email\": \"\",\n \"name\": \"\",\n \"tokens\": [\n {\n \"name\": \"\",\n \"value\": \"\"\n }\n ]\n },\n \"escalatorQueue\": \"\",\n \"pubsubTopic\": \"\",\n \"request\": {\n \"postToQueueWithTriggerIdRequest\": {\n \"clientId\": \"\",\n \"ignoreErrorIfNoActiveWorkflow\": false,\n \"parameters\": {\n \"parameters\": [\n {\n \"key\": \"\",\n \"value\": {\n \"booleanArray\": {\n \"booleanValues\": []\n },\n \"booleanValue\": false,\n \"doubleArray\": {\n \"doubleValues\": []\n },\n \"doubleValue\": \"\",\n \"intArray\": {\n \"intValues\": []\n },\n \"intValue\": \"\",\n \"protoArray\": {\n \"protoValues\": [\n {}\n ]\n },\n \"protoValue\": {},\n \"serializedObjectValue\": {\n \"objectValue\": \"\"\n },\n \"stringArray\": {\n \"stringValues\": []\n },\n \"stringValue\": \"\"\n }\n }\n ]\n },\n \"priority\": \"\",\n \"requestId\": \"\",\n \"scheduledTime\": \"\",\n \"testMode\": false,\n \"triggerId\": \"\",\n \"workflowName\": \"\"\n },\n \"suspensionInfoEventParameterKey\": \"\"\n }\n }\n ],\n \"suspensionExpiration\": {\n \"expireAfterMs\": 0,\n \"liftWhenExpired\": false,\n \"remindAfterMs\": 0\n },\n \"whoMayResolve\": [\n {\n \"gaiaIdentity\": {\n \"emailAddress\": \"\",\n \"gaiaId\": \"\"\n },\n \"googleGroup\": {},\n \"loasRole\": \"\",\n \"mdbGroup\": \"\"\n }\n ]\n },\n \"taskId\": \"\"\n }\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("content-type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
POST /baseUrl/v1/:name:resolve HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 2924
{
"suspension": {
"approvalConfig": {
"customMessage": "",
"emailAddresses": [],
"expiration": {
"expireTime": "",
"liftWhenExpired": false,
"remindTime": ""
}
},
"audit": {
"resolveTime": "",
"resolver": ""
},
"createTime": "",
"eventExecutionInfoId": "",
"integration": "",
"lastModifyTime": "",
"name": "",
"state": "",
"suspensionConfig": {
"customMessage": "",
"notifications": [
{
"buganizerNotification": {
"assigneeEmailAddress": "",
"componentId": "",
"templateId": "",
"title": ""
},
"emailAddress": {
"email": "",
"name": "",
"tokens": [
{
"name": "",
"value": ""
}
]
},
"escalatorQueue": "",
"pubsubTopic": "",
"request": {
"postToQueueWithTriggerIdRequest": {
"clientId": "",
"ignoreErrorIfNoActiveWorkflow": false,
"parameters": {
"parameters": [
{
"key": "",
"value": {
"booleanArray": {
"booleanValues": []
},
"booleanValue": false,
"doubleArray": {
"doubleValues": []
},
"doubleValue": "",
"intArray": {
"intValues": []
},
"intValue": "",
"protoArray": {
"protoValues": [
{}
]
},
"protoValue": {},
"serializedObjectValue": {
"objectValue": ""
},
"stringArray": {
"stringValues": []
},
"stringValue": ""
}
}
]
},
"priority": "",
"requestId": "",
"scheduledTime": "",
"testMode": false,
"triggerId": "",
"workflowName": ""
},
"suspensionInfoEventParameterKey": ""
}
}
],
"suspensionExpiration": {
"expireAfterMs": 0,
"liftWhenExpired": false,
"remindAfterMs": 0
},
"whoMayResolve": [
{
"gaiaIdentity": {
"emailAddress": "",
"gaiaId": ""
},
"googleGroup": {},
"loasRole": "",
"mdbGroup": ""
}
]
},
"taskId": ""
}
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/v1/:name:resolve")
.setHeader("content-type", "application/json")
.setBody("{\n \"suspension\": {\n \"approvalConfig\": {\n \"customMessage\": \"\",\n \"emailAddresses\": [],\n \"expiration\": {\n \"expireTime\": \"\",\n \"liftWhenExpired\": false,\n \"remindTime\": \"\"\n }\n },\n \"audit\": {\n \"resolveTime\": \"\",\n \"resolver\": \"\"\n },\n \"createTime\": \"\",\n \"eventExecutionInfoId\": \"\",\n \"integration\": \"\",\n \"lastModifyTime\": \"\",\n \"name\": \"\",\n \"state\": \"\",\n \"suspensionConfig\": {\n \"customMessage\": \"\",\n \"notifications\": [\n {\n \"buganizerNotification\": {\n \"assigneeEmailAddress\": \"\",\n \"componentId\": \"\",\n \"templateId\": \"\",\n \"title\": \"\"\n },\n \"emailAddress\": {\n \"email\": \"\",\n \"name\": \"\",\n \"tokens\": [\n {\n \"name\": \"\",\n \"value\": \"\"\n }\n ]\n },\n \"escalatorQueue\": \"\",\n \"pubsubTopic\": \"\",\n \"request\": {\n \"postToQueueWithTriggerIdRequest\": {\n \"clientId\": \"\",\n \"ignoreErrorIfNoActiveWorkflow\": false,\n \"parameters\": {\n \"parameters\": [\n {\n \"key\": \"\",\n \"value\": {\n \"booleanArray\": {\n \"booleanValues\": []\n },\n \"booleanValue\": false,\n \"doubleArray\": {\n \"doubleValues\": []\n },\n \"doubleValue\": \"\",\n \"intArray\": {\n \"intValues\": []\n },\n \"intValue\": \"\",\n \"protoArray\": {\n \"protoValues\": [\n {}\n ]\n },\n \"protoValue\": {},\n \"serializedObjectValue\": {\n \"objectValue\": \"\"\n },\n \"stringArray\": {\n \"stringValues\": []\n },\n \"stringValue\": \"\"\n }\n }\n ]\n },\n \"priority\": \"\",\n \"requestId\": \"\",\n \"scheduledTime\": \"\",\n \"testMode\": false,\n \"triggerId\": \"\",\n \"workflowName\": \"\"\n },\n \"suspensionInfoEventParameterKey\": \"\"\n }\n }\n ],\n \"suspensionExpiration\": {\n \"expireAfterMs\": 0,\n \"liftWhenExpired\": false,\n \"remindAfterMs\": 0\n },\n \"whoMayResolve\": [\n {\n \"gaiaIdentity\": {\n \"emailAddress\": \"\",\n \"gaiaId\": \"\"\n },\n \"googleGroup\": {},\n \"loasRole\": \"\",\n \"mdbGroup\": \"\"\n }\n ]\n },\n \"taskId\": \"\"\n }\n}")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/v1/:name:resolve"))
.header("content-type", "application/json")
.method("POST", HttpRequest.BodyPublishers.ofString("{\n \"suspension\": {\n \"approvalConfig\": {\n \"customMessage\": \"\",\n \"emailAddresses\": [],\n \"expiration\": {\n \"expireTime\": \"\",\n \"liftWhenExpired\": false,\n \"remindTime\": \"\"\n }\n },\n \"audit\": {\n \"resolveTime\": \"\",\n \"resolver\": \"\"\n },\n \"createTime\": \"\",\n \"eventExecutionInfoId\": \"\",\n \"integration\": \"\",\n \"lastModifyTime\": \"\",\n \"name\": \"\",\n \"state\": \"\",\n \"suspensionConfig\": {\n \"customMessage\": \"\",\n \"notifications\": [\n {\n \"buganizerNotification\": {\n \"assigneeEmailAddress\": \"\",\n \"componentId\": \"\",\n \"templateId\": \"\",\n \"title\": \"\"\n },\n \"emailAddress\": {\n \"email\": \"\",\n \"name\": \"\",\n \"tokens\": [\n {\n \"name\": \"\",\n \"value\": \"\"\n }\n ]\n },\n \"escalatorQueue\": \"\",\n \"pubsubTopic\": \"\",\n \"request\": {\n \"postToQueueWithTriggerIdRequest\": {\n \"clientId\": \"\",\n \"ignoreErrorIfNoActiveWorkflow\": false,\n \"parameters\": {\n \"parameters\": [\n {\n \"key\": \"\",\n \"value\": {\n \"booleanArray\": {\n \"booleanValues\": []\n },\n \"booleanValue\": false,\n \"doubleArray\": {\n \"doubleValues\": []\n },\n \"doubleValue\": \"\",\n \"intArray\": {\n \"intValues\": []\n },\n \"intValue\": \"\",\n \"protoArray\": {\n \"protoValues\": [\n {}\n ]\n },\n \"protoValue\": {},\n \"serializedObjectValue\": {\n \"objectValue\": \"\"\n },\n \"stringArray\": {\n \"stringValues\": []\n },\n \"stringValue\": \"\"\n }\n }\n ]\n },\n \"priority\": \"\",\n \"requestId\": \"\",\n \"scheduledTime\": \"\",\n \"testMode\": false,\n \"triggerId\": \"\",\n \"workflowName\": \"\"\n },\n \"suspensionInfoEventParameterKey\": \"\"\n }\n }\n ],\n \"suspensionExpiration\": {\n \"expireAfterMs\": 0,\n \"liftWhenExpired\": false,\n \"remindAfterMs\": 0\n },\n \"whoMayResolve\": [\n {\n \"gaiaIdentity\": {\n \"emailAddress\": \"\",\n \"gaiaId\": \"\"\n },\n \"googleGroup\": {},\n \"loasRole\": \"\",\n \"mdbGroup\": \"\"\n }\n ]\n },\n \"taskId\": \"\"\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 \"suspension\": {\n \"approvalConfig\": {\n \"customMessage\": \"\",\n \"emailAddresses\": [],\n \"expiration\": {\n \"expireTime\": \"\",\n \"liftWhenExpired\": false,\n \"remindTime\": \"\"\n }\n },\n \"audit\": {\n \"resolveTime\": \"\",\n \"resolver\": \"\"\n },\n \"createTime\": \"\",\n \"eventExecutionInfoId\": \"\",\n \"integration\": \"\",\n \"lastModifyTime\": \"\",\n \"name\": \"\",\n \"state\": \"\",\n \"suspensionConfig\": {\n \"customMessage\": \"\",\n \"notifications\": [\n {\n \"buganizerNotification\": {\n \"assigneeEmailAddress\": \"\",\n \"componentId\": \"\",\n \"templateId\": \"\",\n \"title\": \"\"\n },\n \"emailAddress\": {\n \"email\": \"\",\n \"name\": \"\",\n \"tokens\": [\n {\n \"name\": \"\",\n \"value\": \"\"\n }\n ]\n },\n \"escalatorQueue\": \"\",\n \"pubsubTopic\": \"\",\n \"request\": {\n \"postToQueueWithTriggerIdRequest\": {\n \"clientId\": \"\",\n \"ignoreErrorIfNoActiveWorkflow\": false,\n \"parameters\": {\n \"parameters\": [\n {\n \"key\": \"\",\n \"value\": {\n \"booleanArray\": {\n \"booleanValues\": []\n },\n \"booleanValue\": false,\n \"doubleArray\": {\n \"doubleValues\": []\n },\n \"doubleValue\": \"\",\n \"intArray\": {\n \"intValues\": []\n },\n \"intValue\": \"\",\n \"protoArray\": {\n \"protoValues\": [\n {}\n ]\n },\n \"protoValue\": {},\n \"serializedObjectValue\": {\n \"objectValue\": \"\"\n },\n \"stringArray\": {\n \"stringValues\": []\n },\n \"stringValue\": \"\"\n }\n }\n ]\n },\n \"priority\": \"\",\n \"requestId\": \"\",\n \"scheduledTime\": \"\",\n \"testMode\": false,\n \"triggerId\": \"\",\n \"workflowName\": \"\"\n },\n \"suspensionInfoEventParameterKey\": \"\"\n }\n }\n ],\n \"suspensionExpiration\": {\n \"expireAfterMs\": 0,\n \"liftWhenExpired\": false,\n \"remindAfterMs\": 0\n },\n \"whoMayResolve\": [\n {\n \"gaiaIdentity\": {\n \"emailAddress\": \"\",\n \"gaiaId\": \"\"\n },\n \"googleGroup\": {},\n \"loasRole\": \"\",\n \"mdbGroup\": \"\"\n }\n ]\n },\n \"taskId\": \"\"\n }\n}");
Request request = new Request.Builder()
.url("{{baseUrl}}/v1/:name:resolve")
.post(body)
.addHeader("content-type", "application/json")
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/v1/:name:resolve")
.header("content-type", "application/json")
.body("{\n \"suspension\": {\n \"approvalConfig\": {\n \"customMessage\": \"\",\n \"emailAddresses\": [],\n \"expiration\": {\n \"expireTime\": \"\",\n \"liftWhenExpired\": false,\n \"remindTime\": \"\"\n }\n },\n \"audit\": {\n \"resolveTime\": \"\",\n \"resolver\": \"\"\n },\n \"createTime\": \"\",\n \"eventExecutionInfoId\": \"\",\n \"integration\": \"\",\n \"lastModifyTime\": \"\",\n \"name\": \"\",\n \"state\": \"\",\n \"suspensionConfig\": {\n \"customMessage\": \"\",\n \"notifications\": [\n {\n \"buganizerNotification\": {\n \"assigneeEmailAddress\": \"\",\n \"componentId\": \"\",\n \"templateId\": \"\",\n \"title\": \"\"\n },\n \"emailAddress\": {\n \"email\": \"\",\n \"name\": \"\",\n \"tokens\": [\n {\n \"name\": \"\",\n \"value\": \"\"\n }\n ]\n },\n \"escalatorQueue\": \"\",\n \"pubsubTopic\": \"\",\n \"request\": {\n \"postToQueueWithTriggerIdRequest\": {\n \"clientId\": \"\",\n \"ignoreErrorIfNoActiveWorkflow\": false,\n \"parameters\": {\n \"parameters\": [\n {\n \"key\": \"\",\n \"value\": {\n \"booleanArray\": {\n \"booleanValues\": []\n },\n \"booleanValue\": false,\n \"doubleArray\": {\n \"doubleValues\": []\n },\n \"doubleValue\": \"\",\n \"intArray\": {\n \"intValues\": []\n },\n \"intValue\": \"\",\n \"protoArray\": {\n \"protoValues\": [\n {}\n ]\n },\n \"protoValue\": {},\n \"serializedObjectValue\": {\n \"objectValue\": \"\"\n },\n \"stringArray\": {\n \"stringValues\": []\n },\n \"stringValue\": \"\"\n }\n }\n ]\n },\n \"priority\": \"\",\n \"requestId\": \"\",\n \"scheduledTime\": \"\",\n \"testMode\": false,\n \"triggerId\": \"\",\n \"workflowName\": \"\"\n },\n \"suspensionInfoEventParameterKey\": \"\"\n }\n }\n ],\n \"suspensionExpiration\": {\n \"expireAfterMs\": 0,\n \"liftWhenExpired\": false,\n \"remindAfterMs\": 0\n },\n \"whoMayResolve\": [\n {\n \"gaiaIdentity\": {\n \"emailAddress\": \"\",\n \"gaiaId\": \"\"\n },\n \"googleGroup\": {},\n \"loasRole\": \"\",\n \"mdbGroup\": \"\"\n }\n ]\n },\n \"taskId\": \"\"\n }\n}")
.asString();
const data = JSON.stringify({
suspension: {
approvalConfig: {
customMessage: '',
emailAddresses: [],
expiration: {
expireTime: '',
liftWhenExpired: false,
remindTime: ''
}
},
audit: {
resolveTime: '',
resolver: ''
},
createTime: '',
eventExecutionInfoId: '',
integration: '',
lastModifyTime: '',
name: '',
state: '',
suspensionConfig: {
customMessage: '',
notifications: [
{
buganizerNotification: {
assigneeEmailAddress: '',
componentId: '',
templateId: '',
title: ''
},
emailAddress: {
email: '',
name: '',
tokens: [
{
name: '',
value: ''
}
]
},
escalatorQueue: '',
pubsubTopic: '',
request: {
postToQueueWithTriggerIdRequest: {
clientId: '',
ignoreErrorIfNoActiveWorkflow: false,
parameters: {
parameters: [
{
key: '',
value: {
booleanArray: {
booleanValues: []
},
booleanValue: false,
doubleArray: {
doubleValues: []
},
doubleValue: '',
intArray: {
intValues: []
},
intValue: '',
protoArray: {
protoValues: [
{}
]
},
protoValue: {},
serializedObjectValue: {
objectValue: ''
},
stringArray: {
stringValues: []
},
stringValue: ''
}
}
]
},
priority: '',
requestId: '',
scheduledTime: '',
testMode: false,
triggerId: '',
workflowName: ''
},
suspensionInfoEventParameterKey: ''
}
}
],
suspensionExpiration: {
expireAfterMs: 0,
liftWhenExpired: false,
remindAfterMs: 0
},
whoMayResolve: [
{
gaiaIdentity: {
emailAddress: '',
gaiaId: ''
},
googleGroup: {},
loasRole: '',
mdbGroup: ''
}
]
},
taskId: ''
}
});
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('POST', '{{baseUrl}}/v1/:name:resolve');
xhr.setRequestHeader('content-type', 'application/json');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'POST',
url: '{{baseUrl}}/v1/:name:resolve',
headers: {'content-type': 'application/json'},
data: {
suspension: {
approvalConfig: {
customMessage: '',
emailAddresses: [],
expiration: {expireTime: '', liftWhenExpired: false, remindTime: ''}
},
audit: {resolveTime: '', resolver: ''},
createTime: '',
eventExecutionInfoId: '',
integration: '',
lastModifyTime: '',
name: '',
state: '',
suspensionConfig: {
customMessage: '',
notifications: [
{
buganizerNotification: {assigneeEmailAddress: '', componentId: '', templateId: '', title: ''},
emailAddress: {email: '', name: '', tokens: [{name: '', value: ''}]},
escalatorQueue: '',
pubsubTopic: '',
request: {
postToQueueWithTriggerIdRequest: {
clientId: '',
ignoreErrorIfNoActiveWorkflow: false,
parameters: {
parameters: [
{
key: '',
value: {
booleanArray: {booleanValues: []},
booleanValue: false,
doubleArray: {doubleValues: []},
doubleValue: '',
intArray: {intValues: []},
intValue: '',
protoArray: {protoValues: [{}]},
protoValue: {},
serializedObjectValue: {objectValue: ''},
stringArray: {stringValues: []},
stringValue: ''
}
}
]
},
priority: '',
requestId: '',
scheduledTime: '',
testMode: false,
triggerId: '',
workflowName: ''
},
suspensionInfoEventParameterKey: ''
}
}
],
suspensionExpiration: {expireAfterMs: 0, liftWhenExpired: false, remindAfterMs: 0},
whoMayResolve: [
{
gaiaIdentity: {emailAddress: '', gaiaId: ''},
googleGroup: {},
loasRole: '',
mdbGroup: ''
}
]
},
taskId: ''
}
}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/v1/:name:resolve';
const options = {
method: 'POST',
headers: {'content-type': 'application/json'},
body: '{"suspension":{"approvalConfig":{"customMessage":"","emailAddresses":[],"expiration":{"expireTime":"","liftWhenExpired":false,"remindTime":""}},"audit":{"resolveTime":"","resolver":""},"createTime":"","eventExecutionInfoId":"","integration":"","lastModifyTime":"","name":"","state":"","suspensionConfig":{"customMessage":"","notifications":[{"buganizerNotification":{"assigneeEmailAddress":"","componentId":"","templateId":"","title":""},"emailAddress":{"email":"","name":"","tokens":[{"name":"","value":""}]},"escalatorQueue":"","pubsubTopic":"","request":{"postToQueueWithTriggerIdRequest":{"clientId":"","ignoreErrorIfNoActiveWorkflow":false,"parameters":{"parameters":[{"key":"","value":{"booleanArray":{"booleanValues":[]},"booleanValue":false,"doubleArray":{"doubleValues":[]},"doubleValue":"","intArray":{"intValues":[]},"intValue":"","protoArray":{"protoValues":[{}]},"protoValue":{},"serializedObjectValue":{"objectValue":""},"stringArray":{"stringValues":[]},"stringValue":""}}]},"priority":"","requestId":"","scheduledTime":"","testMode":false,"triggerId":"","workflowName":""},"suspensionInfoEventParameterKey":""}}],"suspensionExpiration":{"expireAfterMs":0,"liftWhenExpired":false,"remindAfterMs":0},"whoMayResolve":[{"gaiaIdentity":{"emailAddress":"","gaiaId":""},"googleGroup":{},"loasRole":"","mdbGroup":""}]},"taskId":""}}'
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/v1/:name:resolve',
method: 'POST',
headers: {
'content-type': 'application/json'
},
processData: false,
data: '{\n "suspension": {\n "approvalConfig": {\n "customMessage": "",\n "emailAddresses": [],\n "expiration": {\n "expireTime": "",\n "liftWhenExpired": false,\n "remindTime": ""\n }\n },\n "audit": {\n "resolveTime": "",\n "resolver": ""\n },\n "createTime": "",\n "eventExecutionInfoId": "",\n "integration": "",\n "lastModifyTime": "",\n "name": "",\n "state": "",\n "suspensionConfig": {\n "customMessage": "",\n "notifications": [\n {\n "buganizerNotification": {\n "assigneeEmailAddress": "",\n "componentId": "",\n "templateId": "",\n "title": ""\n },\n "emailAddress": {\n "email": "",\n "name": "",\n "tokens": [\n {\n "name": "",\n "value": ""\n }\n ]\n },\n "escalatorQueue": "",\n "pubsubTopic": "",\n "request": {\n "postToQueueWithTriggerIdRequest": {\n "clientId": "",\n "ignoreErrorIfNoActiveWorkflow": false,\n "parameters": {\n "parameters": [\n {\n "key": "",\n "value": {\n "booleanArray": {\n "booleanValues": []\n },\n "booleanValue": false,\n "doubleArray": {\n "doubleValues": []\n },\n "doubleValue": "",\n "intArray": {\n "intValues": []\n },\n "intValue": "",\n "protoArray": {\n "protoValues": [\n {}\n ]\n },\n "protoValue": {},\n "serializedObjectValue": {\n "objectValue": ""\n },\n "stringArray": {\n "stringValues": []\n },\n "stringValue": ""\n }\n }\n ]\n },\n "priority": "",\n "requestId": "",\n "scheduledTime": "",\n "testMode": false,\n "triggerId": "",\n "workflowName": ""\n },\n "suspensionInfoEventParameterKey": ""\n }\n }\n ],\n "suspensionExpiration": {\n "expireAfterMs": 0,\n "liftWhenExpired": false,\n "remindAfterMs": 0\n },\n "whoMayResolve": [\n {\n "gaiaIdentity": {\n "emailAddress": "",\n "gaiaId": ""\n },\n "googleGroup": {},\n "loasRole": "",\n "mdbGroup": ""\n }\n ]\n },\n "taskId": ""\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 \"suspension\": {\n \"approvalConfig\": {\n \"customMessage\": \"\",\n \"emailAddresses\": [],\n \"expiration\": {\n \"expireTime\": \"\",\n \"liftWhenExpired\": false,\n \"remindTime\": \"\"\n }\n },\n \"audit\": {\n \"resolveTime\": \"\",\n \"resolver\": \"\"\n },\n \"createTime\": \"\",\n \"eventExecutionInfoId\": \"\",\n \"integration\": \"\",\n \"lastModifyTime\": \"\",\n \"name\": \"\",\n \"state\": \"\",\n \"suspensionConfig\": {\n \"customMessage\": \"\",\n \"notifications\": [\n {\n \"buganizerNotification\": {\n \"assigneeEmailAddress\": \"\",\n \"componentId\": \"\",\n \"templateId\": \"\",\n \"title\": \"\"\n },\n \"emailAddress\": {\n \"email\": \"\",\n \"name\": \"\",\n \"tokens\": [\n {\n \"name\": \"\",\n \"value\": \"\"\n }\n ]\n },\n \"escalatorQueue\": \"\",\n \"pubsubTopic\": \"\",\n \"request\": {\n \"postToQueueWithTriggerIdRequest\": {\n \"clientId\": \"\",\n \"ignoreErrorIfNoActiveWorkflow\": false,\n \"parameters\": {\n \"parameters\": [\n {\n \"key\": \"\",\n \"value\": {\n \"booleanArray\": {\n \"booleanValues\": []\n },\n \"booleanValue\": false,\n \"doubleArray\": {\n \"doubleValues\": []\n },\n \"doubleValue\": \"\",\n \"intArray\": {\n \"intValues\": []\n },\n \"intValue\": \"\",\n \"protoArray\": {\n \"protoValues\": [\n {}\n ]\n },\n \"protoValue\": {},\n \"serializedObjectValue\": {\n \"objectValue\": \"\"\n },\n \"stringArray\": {\n \"stringValues\": []\n },\n \"stringValue\": \"\"\n }\n }\n ]\n },\n \"priority\": \"\",\n \"requestId\": \"\",\n \"scheduledTime\": \"\",\n \"testMode\": false,\n \"triggerId\": \"\",\n \"workflowName\": \"\"\n },\n \"suspensionInfoEventParameterKey\": \"\"\n }\n }\n ],\n \"suspensionExpiration\": {\n \"expireAfterMs\": 0,\n \"liftWhenExpired\": false,\n \"remindAfterMs\": 0\n },\n \"whoMayResolve\": [\n {\n \"gaiaIdentity\": {\n \"emailAddress\": \"\",\n \"gaiaId\": \"\"\n },\n \"googleGroup\": {},\n \"loasRole\": \"\",\n \"mdbGroup\": \"\"\n }\n ]\n },\n \"taskId\": \"\"\n }\n}")
val request = Request.Builder()
.url("{{baseUrl}}/v1/:name:resolve")
.post(body)
.addHeader("content-type", "application/json")
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'POST',
hostname: 'example.com',
port: null,
path: '/baseUrl/v1/:name:resolve',
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({
suspension: {
approvalConfig: {
customMessage: '',
emailAddresses: [],
expiration: {expireTime: '', liftWhenExpired: false, remindTime: ''}
},
audit: {resolveTime: '', resolver: ''},
createTime: '',
eventExecutionInfoId: '',
integration: '',
lastModifyTime: '',
name: '',
state: '',
suspensionConfig: {
customMessage: '',
notifications: [
{
buganizerNotification: {assigneeEmailAddress: '', componentId: '', templateId: '', title: ''},
emailAddress: {email: '', name: '', tokens: [{name: '', value: ''}]},
escalatorQueue: '',
pubsubTopic: '',
request: {
postToQueueWithTriggerIdRequest: {
clientId: '',
ignoreErrorIfNoActiveWorkflow: false,
parameters: {
parameters: [
{
key: '',
value: {
booleanArray: {booleanValues: []},
booleanValue: false,
doubleArray: {doubleValues: []},
doubleValue: '',
intArray: {intValues: []},
intValue: '',
protoArray: {protoValues: [{}]},
protoValue: {},
serializedObjectValue: {objectValue: ''},
stringArray: {stringValues: []},
stringValue: ''
}
}
]
},
priority: '',
requestId: '',
scheduledTime: '',
testMode: false,
triggerId: '',
workflowName: ''
},
suspensionInfoEventParameterKey: ''
}
}
],
suspensionExpiration: {expireAfterMs: 0, liftWhenExpired: false, remindAfterMs: 0},
whoMayResolve: [
{
gaiaIdentity: {emailAddress: '', gaiaId: ''},
googleGroup: {},
loasRole: '',
mdbGroup: ''
}
]
},
taskId: ''
}
}));
req.end();
const request = require('request');
const options = {
method: 'POST',
url: '{{baseUrl}}/v1/:name:resolve',
headers: {'content-type': 'application/json'},
body: {
suspension: {
approvalConfig: {
customMessage: '',
emailAddresses: [],
expiration: {expireTime: '', liftWhenExpired: false, remindTime: ''}
},
audit: {resolveTime: '', resolver: ''},
createTime: '',
eventExecutionInfoId: '',
integration: '',
lastModifyTime: '',
name: '',
state: '',
suspensionConfig: {
customMessage: '',
notifications: [
{
buganizerNotification: {assigneeEmailAddress: '', componentId: '', templateId: '', title: ''},
emailAddress: {email: '', name: '', tokens: [{name: '', value: ''}]},
escalatorQueue: '',
pubsubTopic: '',
request: {
postToQueueWithTriggerIdRequest: {
clientId: '',
ignoreErrorIfNoActiveWorkflow: false,
parameters: {
parameters: [
{
key: '',
value: {
booleanArray: {booleanValues: []},
booleanValue: false,
doubleArray: {doubleValues: []},
doubleValue: '',
intArray: {intValues: []},
intValue: '',
protoArray: {protoValues: [{}]},
protoValue: {},
serializedObjectValue: {objectValue: ''},
stringArray: {stringValues: []},
stringValue: ''
}
}
]
},
priority: '',
requestId: '',
scheduledTime: '',
testMode: false,
triggerId: '',
workflowName: ''
},
suspensionInfoEventParameterKey: ''
}
}
],
suspensionExpiration: {expireAfterMs: 0, liftWhenExpired: false, remindAfterMs: 0},
whoMayResolve: [
{
gaiaIdentity: {emailAddress: '', gaiaId: ''},
googleGroup: {},
loasRole: '',
mdbGroup: ''
}
]
},
taskId: ''
}
},
json: true
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('POST', '{{baseUrl}}/v1/:name:resolve');
req.headers({
'content-type': 'application/json'
});
req.type('json');
req.send({
suspension: {
approvalConfig: {
customMessage: '',
emailAddresses: [],
expiration: {
expireTime: '',
liftWhenExpired: false,
remindTime: ''
}
},
audit: {
resolveTime: '',
resolver: ''
},
createTime: '',
eventExecutionInfoId: '',
integration: '',
lastModifyTime: '',
name: '',
state: '',
suspensionConfig: {
customMessage: '',
notifications: [
{
buganizerNotification: {
assigneeEmailAddress: '',
componentId: '',
templateId: '',
title: ''
},
emailAddress: {
email: '',
name: '',
tokens: [
{
name: '',
value: ''
}
]
},
escalatorQueue: '',
pubsubTopic: '',
request: {
postToQueueWithTriggerIdRequest: {
clientId: '',
ignoreErrorIfNoActiveWorkflow: false,
parameters: {
parameters: [
{
key: '',
value: {
booleanArray: {
booleanValues: []
},
booleanValue: false,
doubleArray: {
doubleValues: []
},
doubleValue: '',
intArray: {
intValues: []
},
intValue: '',
protoArray: {
protoValues: [
{}
]
},
protoValue: {},
serializedObjectValue: {
objectValue: ''
},
stringArray: {
stringValues: []
},
stringValue: ''
}
}
]
},
priority: '',
requestId: '',
scheduledTime: '',
testMode: false,
triggerId: '',
workflowName: ''
},
suspensionInfoEventParameterKey: ''
}
}
],
suspensionExpiration: {
expireAfterMs: 0,
liftWhenExpired: false,
remindAfterMs: 0
},
whoMayResolve: [
{
gaiaIdentity: {
emailAddress: '',
gaiaId: ''
},
googleGroup: {},
loasRole: '',
mdbGroup: ''
}
]
},
taskId: ''
}
});
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {
method: 'POST',
url: '{{baseUrl}}/v1/:name:resolve',
headers: {'content-type': 'application/json'},
data: {
suspension: {
approvalConfig: {
customMessage: '',
emailAddresses: [],
expiration: {expireTime: '', liftWhenExpired: false, remindTime: ''}
},
audit: {resolveTime: '', resolver: ''},
createTime: '',
eventExecutionInfoId: '',
integration: '',
lastModifyTime: '',
name: '',
state: '',
suspensionConfig: {
customMessage: '',
notifications: [
{
buganizerNotification: {assigneeEmailAddress: '', componentId: '', templateId: '', title: ''},
emailAddress: {email: '', name: '', tokens: [{name: '', value: ''}]},
escalatorQueue: '',
pubsubTopic: '',
request: {
postToQueueWithTriggerIdRequest: {
clientId: '',
ignoreErrorIfNoActiveWorkflow: false,
parameters: {
parameters: [
{
key: '',
value: {
booleanArray: {booleanValues: []},
booleanValue: false,
doubleArray: {doubleValues: []},
doubleValue: '',
intArray: {intValues: []},
intValue: '',
protoArray: {protoValues: [{}]},
protoValue: {},
serializedObjectValue: {objectValue: ''},
stringArray: {stringValues: []},
stringValue: ''
}
}
]
},
priority: '',
requestId: '',
scheduledTime: '',
testMode: false,
triggerId: '',
workflowName: ''
},
suspensionInfoEventParameterKey: ''
}
}
],
suspensionExpiration: {expireAfterMs: 0, liftWhenExpired: false, remindAfterMs: 0},
whoMayResolve: [
{
gaiaIdentity: {emailAddress: '', gaiaId: ''},
googleGroup: {},
loasRole: '',
mdbGroup: ''
}
]
},
taskId: ''
}
}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/v1/:name:resolve';
const options = {
method: 'POST',
headers: {'content-type': 'application/json'},
body: '{"suspension":{"approvalConfig":{"customMessage":"","emailAddresses":[],"expiration":{"expireTime":"","liftWhenExpired":false,"remindTime":""}},"audit":{"resolveTime":"","resolver":""},"createTime":"","eventExecutionInfoId":"","integration":"","lastModifyTime":"","name":"","state":"","suspensionConfig":{"customMessage":"","notifications":[{"buganizerNotification":{"assigneeEmailAddress":"","componentId":"","templateId":"","title":""},"emailAddress":{"email":"","name":"","tokens":[{"name":"","value":""}]},"escalatorQueue":"","pubsubTopic":"","request":{"postToQueueWithTriggerIdRequest":{"clientId":"","ignoreErrorIfNoActiveWorkflow":false,"parameters":{"parameters":[{"key":"","value":{"booleanArray":{"booleanValues":[]},"booleanValue":false,"doubleArray":{"doubleValues":[]},"doubleValue":"","intArray":{"intValues":[]},"intValue":"","protoArray":{"protoValues":[{}]},"protoValue":{},"serializedObjectValue":{"objectValue":""},"stringArray":{"stringValues":[]},"stringValue":""}}]},"priority":"","requestId":"","scheduledTime":"","testMode":false,"triggerId":"","workflowName":""},"suspensionInfoEventParameterKey":""}}],"suspensionExpiration":{"expireAfterMs":0,"liftWhenExpired":false,"remindAfterMs":0},"whoMayResolve":[{"gaiaIdentity":{"emailAddress":"","gaiaId":""},"googleGroup":{},"loasRole":"","mdbGroup":""}]},"taskId":""}}'
};
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 = @{ @"suspension": @{ @"approvalConfig": @{ @"customMessage": @"", @"emailAddresses": @[ ], @"expiration": @{ @"expireTime": @"", @"liftWhenExpired": @NO, @"remindTime": @"" } }, @"audit": @{ @"resolveTime": @"", @"resolver": @"" }, @"createTime": @"", @"eventExecutionInfoId": @"", @"integration": @"", @"lastModifyTime": @"", @"name": @"", @"state": @"", @"suspensionConfig": @{ @"customMessage": @"", @"notifications": @[ @{ @"buganizerNotification": @{ @"assigneeEmailAddress": @"", @"componentId": @"", @"templateId": @"", @"title": @"" }, @"emailAddress": @{ @"email": @"", @"name": @"", @"tokens": @[ @{ @"name": @"", @"value": @"" } ] }, @"escalatorQueue": @"", @"pubsubTopic": @"", @"request": @{ @"postToQueueWithTriggerIdRequest": @{ @"clientId": @"", @"ignoreErrorIfNoActiveWorkflow": @NO, @"parameters": @{ @"parameters": @[ @{ @"key": @"", @"value": @{ @"booleanArray": @{ @"booleanValues": @[ ] }, @"booleanValue": @NO, @"doubleArray": @{ @"doubleValues": @[ ] }, @"doubleValue": @"", @"intArray": @{ @"intValues": @[ ] }, @"intValue": @"", @"protoArray": @{ @"protoValues": @[ @{ } ] }, @"protoValue": @{ }, @"serializedObjectValue": @{ @"objectValue": @"" }, @"stringArray": @{ @"stringValues": @[ ] }, @"stringValue": @"" } } ] }, @"priority": @"", @"requestId": @"", @"scheduledTime": @"", @"testMode": @NO, @"triggerId": @"", @"workflowName": @"" }, @"suspensionInfoEventParameterKey": @"" } } ], @"suspensionExpiration": @{ @"expireAfterMs": @0, @"liftWhenExpired": @NO, @"remindAfterMs": @0 }, @"whoMayResolve": @[ @{ @"gaiaIdentity": @{ @"emailAddress": @"", @"gaiaId": @"" }, @"googleGroup": @{ }, @"loasRole": @"", @"mdbGroup": @"" } ] }, @"taskId": @"" } };
NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/v1/:name:resolve"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"POST"];
[request setAllHTTPHeaderFields:headers];
[request setHTTPBody:postData];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/v1/:name:resolve" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n \"suspension\": {\n \"approvalConfig\": {\n \"customMessage\": \"\",\n \"emailAddresses\": [],\n \"expiration\": {\n \"expireTime\": \"\",\n \"liftWhenExpired\": false,\n \"remindTime\": \"\"\n }\n },\n \"audit\": {\n \"resolveTime\": \"\",\n \"resolver\": \"\"\n },\n \"createTime\": \"\",\n \"eventExecutionInfoId\": \"\",\n \"integration\": \"\",\n \"lastModifyTime\": \"\",\n \"name\": \"\",\n \"state\": \"\",\n \"suspensionConfig\": {\n \"customMessage\": \"\",\n \"notifications\": [\n {\n \"buganizerNotification\": {\n \"assigneeEmailAddress\": \"\",\n \"componentId\": \"\",\n \"templateId\": \"\",\n \"title\": \"\"\n },\n \"emailAddress\": {\n \"email\": \"\",\n \"name\": \"\",\n \"tokens\": [\n {\n \"name\": \"\",\n \"value\": \"\"\n }\n ]\n },\n \"escalatorQueue\": \"\",\n \"pubsubTopic\": \"\",\n \"request\": {\n \"postToQueueWithTriggerIdRequest\": {\n \"clientId\": \"\",\n \"ignoreErrorIfNoActiveWorkflow\": false,\n \"parameters\": {\n \"parameters\": [\n {\n \"key\": \"\",\n \"value\": {\n \"booleanArray\": {\n \"booleanValues\": []\n },\n \"booleanValue\": false,\n \"doubleArray\": {\n \"doubleValues\": []\n },\n \"doubleValue\": \"\",\n \"intArray\": {\n \"intValues\": []\n },\n \"intValue\": \"\",\n \"protoArray\": {\n \"protoValues\": [\n {}\n ]\n },\n \"protoValue\": {},\n \"serializedObjectValue\": {\n \"objectValue\": \"\"\n },\n \"stringArray\": {\n \"stringValues\": []\n },\n \"stringValue\": \"\"\n }\n }\n ]\n },\n \"priority\": \"\",\n \"requestId\": \"\",\n \"scheduledTime\": \"\",\n \"testMode\": false,\n \"triggerId\": \"\",\n \"workflowName\": \"\"\n },\n \"suspensionInfoEventParameterKey\": \"\"\n }\n }\n ],\n \"suspensionExpiration\": {\n \"expireAfterMs\": 0,\n \"liftWhenExpired\": false,\n \"remindAfterMs\": 0\n },\n \"whoMayResolve\": [\n {\n \"gaiaIdentity\": {\n \"emailAddress\": \"\",\n \"gaiaId\": \"\"\n },\n \"googleGroup\": {},\n \"loasRole\": \"\",\n \"mdbGroup\": \"\"\n }\n ]\n },\n \"taskId\": \"\"\n }\n}" in
Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/v1/:name:resolve",
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([
'suspension' => [
'approvalConfig' => [
'customMessage' => '',
'emailAddresses' => [
],
'expiration' => [
'expireTime' => '',
'liftWhenExpired' => null,
'remindTime' => ''
]
],
'audit' => [
'resolveTime' => '',
'resolver' => ''
],
'createTime' => '',
'eventExecutionInfoId' => '',
'integration' => '',
'lastModifyTime' => '',
'name' => '',
'state' => '',
'suspensionConfig' => [
'customMessage' => '',
'notifications' => [
[
'buganizerNotification' => [
'assigneeEmailAddress' => '',
'componentId' => '',
'templateId' => '',
'title' => ''
],
'emailAddress' => [
'email' => '',
'name' => '',
'tokens' => [
[
'name' => '',
'value' => ''
]
]
],
'escalatorQueue' => '',
'pubsubTopic' => '',
'request' => [
'postToQueueWithTriggerIdRequest' => [
'clientId' => '',
'ignoreErrorIfNoActiveWorkflow' => null,
'parameters' => [
'parameters' => [
[
'key' => '',
'value' => [
'booleanArray' => [
'booleanValues' => [
]
],
'booleanValue' => null,
'doubleArray' => [
'doubleValues' => [
]
],
'doubleValue' => '',
'intArray' => [
'intValues' => [
]
],
'intValue' => '',
'protoArray' => [
'protoValues' => [
[
]
]
],
'protoValue' => [
],
'serializedObjectValue' => [
'objectValue' => ''
],
'stringArray' => [
'stringValues' => [
]
],
'stringValue' => ''
]
]
]
],
'priority' => '',
'requestId' => '',
'scheduledTime' => '',
'testMode' => null,
'triggerId' => '',
'workflowName' => ''
],
'suspensionInfoEventParameterKey' => ''
]
]
],
'suspensionExpiration' => [
'expireAfterMs' => 0,
'liftWhenExpired' => null,
'remindAfterMs' => 0
],
'whoMayResolve' => [
[
'gaiaIdentity' => [
'emailAddress' => '',
'gaiaId' => ''
],
'googleGroup' => [
],
'loasRole' => '',
'mdbGroup' => ''
]
]
],
'taskId' => ''
]
]),
CURLOPT_HTTPHEADER => [
"content-type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('POST', '{{baseUrl}}/v1/:name:resolve', [
'body' => '{
"suspension": {
"approvalConfig": {
"customMessage": "",
"emailAddresses": [],
"expiration": {
"expireTime": "",
"liftWhenExpired": false,
"remindTime": ""
}
},
"audit": {
"resolveTime": "",
"resolver": ""
},
"createTime": "",
"eventExecutionInfoId": "",
"integration": "",
"lastModifyTime": "",
"name": "",
"state": "",
"suspensionConfig": {
"customMessage": "",
"notifications": [
{
"buganizerNotification": {
"assigneeEmailAddress": "",
"componentId": "",
"templateId": "",
"title": ""
},
"emailAddress": {
"email": "",
"name": "",
"tokens": [
{
"name": "",
"value": ""
}
]
},
"escalatorQueue": "",
"pubsubTopic": "",
"request": {
"postToQueueWithTriggerIdRequest": {
"clientId": "",
"ignoreErrorIfNoActiveWorkflow": false,
"parameters": {
"parameters": [
{
"key": "",
"value": {
"booleanArray": {
"booleanValues": []
},
"booleanValue": false,
"doubleArray": {
"doubleValues": []
},
"doubleValue": "",
"intArray": {
"intValues": []
},
"intValue": "",
"protoArray": {
"protoValues": [
{}
]
},
"protoValue": {},
"serializedObjectValue": {
"objectValue": ""
},
"stringArray": {
"stringValues": []
},
"stringValue": ""
}
}
]
},
"priority": "",
"requestId": "",
"scheduledTime": "",
"testMode": false,
"triggerId": "",
"workflowName": ""
},
"suspensionInfoEventParameterKey": ""
}
}
],
"suspensionExpiration": {
"expireAfterMs": 0,
"liftWhenExpired": false,
"remindAfterMs": 0
},
"whoMayResolve": [
{
"gaiaIdentity": {
"emailAddress": "",
"gaiaId": ""
},
"googleGroup": {},
"loasRole": "",
"mdbGroup": ""
}
]
},
"taskId": ""
}
}',
'headers' => [
'content-type' => 'application/json',
],
]);
echo $response->getBody();
setUrl('{{baseUrl}}/v1/:name:resolve');
$request->setMethod(HTTP_METH_POST);
$request->setHeaders([
'content-type' => 'application/json'
]);
$request->setContentType('application/json');
$request->setBody(json_encode([
'suspension' => [
'approvalConfig' => [
'customMessage' => '',
'emailAddresses' => [
],
'expiration' => [
'expireTime' => '',
'liftWhenExpired' => null,
'remindTime' => ''
]
],
'audit' => [
'resolveTime' => '',
'resolver' => ''
],
'createTime' => '',
'eventExecutionInfoId' => '',
'integration' => '',
'lastModifyTime' => '',
'name' => '',
'state' => '',
'suspensionConfig' => [
'customMessage' => '',
'notifications' => [
[
'buganizerNotification' => [
'assigneeEmailAddress' => '',
'componentId' => '',
'templateId' => '',
'title' => ''
],
'emailAddress' => [
'email' => '',
'name' => '',
'tokens' => [
[
'name' => '',
'value' => ''
]
]
],
'escalatorQueue' => '',
'pubsubTopic' => '',
'request' => [
'postToQueueWithTriggerIdRequest' => [
'clientId' => '',
'ignoreErrorIfNoActiveWorkflow' => null,
'parameters' => [
'parameters' => [
[
'key' => '',
'value' => [
'booleanArray' => [
'booleanValues' => [
]
],
'booleanValue' => null,
'doubleArray' => [
'doubleValues' => [
]
],
'doubleValue' => '',
'intArray' => [
'intValues' => [
]
],
'intValue' => '',
'protoArray' => [
'protoValues' => [
[
]
]
],
'protoValue' => [
],
'serializedObjectValue' => [
'objectValue' => ''
],
'stringArray' => [
'stringValues' => [
]
],
'stringValue' => ''
]
]
]
],
'priority' => '',
'requestId' => '',
'scheduledTime' => '',
'testMode' => null,
'triggerId' => '',
'workflowName' => ''
],
'suspensionInfoEventParameterKey' => ''
]
]
],
'suspensionExpiration' => [
'expireAfterMs' => 0,
'liftWhenExpired' => null,
'remindAfterMs' => 0
],
'whoMayResolve' => [
[
'gaiaIdentity' => [
'emailAddress' => '',
'gaiaId' => ''
],
'googleGroup' => [
],
'loasRole' => '',
'mdbGroup' => ''
]
]
],
'taskId' => ''
]
]));
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
append(json_encode([
'suspension' => [
'approvalConfig' => [
'customMessage' => '',
'emailAddresses' => [
],
'expiration' => [
'expireTime' => '',
'liftWhenExpired' => null,
'remindTime' => ''
]
],
'audit' => [
'resolveTime' => '',
'resolver' => ''
],
'createTime' => '',
'eventExecutionInfoId' => '',
'integration' => '',
'lastModifyTime' => '',
'name' => '',
'state' => '',
'suspensionConfig' => [
'customMessage' => '',
'notifications' => [
[
'buganizerNotification' => [
'assigneeEmailAddress' => '',
'componentId' => '',
'templateId' => '',
'title' => ''
],
'emailAddress' => [
'email' => '',
'name' => '',
'tokens' => [
[
'name' => '',
'value' => ''
]
]
],
'escalatorQueue' => '',
'pubsubTopic' => '',
'request' => [
'postToQueueWithTriggerIdRequest' => [
'clientId' => '',
'ignoreErrorIfNoActiveWorkflow' => null,
'parameters' => [
'parameters' => [
[
'key' => '',
'value' => [
'booleanArray' => [
'booleanValues' => [
]
],
'booleanValue' => null,
'doubleArray' => [
'doubleValues' => [
]
],
'doubleValue' => '',
'intArray' => [
'intValues' => [
]
],
'intValue' => '',
'protoArray' => [
'protoValues' => [
[
]
]
],
'protoValue' => [
],
'serializedObjectValue' => [
'objectValue' => ''
],
'stringArray' => [
'stringValues' => [
]
],
'stringValue' => ''
]
]
]
],
'priority' => '',
'requestId' => '',
'scheduledTime' => '',
'testMode' => null,
'triggerId' => '',
'workflowName' => ''
],
'suspensionInfoEventParameterKey' => ''
]
]
],
'suspensionExpiration' => [
'expireAfterMs' => 0,
'liftWhenExpired' => null,
'remindAfterMs' => 0
],
'whoMayResolve' => [
[
'gaiaIdentity' => [
'emailAddress' => '',
'gaiaId' => ''
],
'googleGroup' => [
],
'loasRole' => '',
'mdbGroup' => ''
]
]
],
'taskId' => ''
]
]));
$request->setRequestUrl('{{baseUrl}}/v1/:name:resolve');
$request->setRequestMethod('POST');
$request->setBody($body);
$request->setHeaders([
'content-type' => 'application/json'
]);
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/v1/:name:resolve' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
"suspension": {
"approvalConfig": {
"customMessage": "",
"emailAddresses": [],
"expiration": {
"expireTime": "",
"liftWhenExpired": false,
"remindTime": ""
}
},
"audit": {
"resolveTime": "",
"resolver": ""
},
"createTime": "",
"eventExecutionInfoId": "",
"integration": "",
"lastModifyTime": "",
"name": "",
"state": "",
"suspensionConfig": {
"customMessage": "",
"notifications": [
{
"buganizerNotification": {
"assigneeEmailAddress": "",
"componentId": "",
"templateId": "",
"title": ""
},
"emailAddress": {
"email": "",
"name": "",
"tokens": [
{
"name": "",
"value": ""
}
]
},
"escalatorQueue": "",
"pubsubTopic": "",
"request": {
"postToQueueWithTriggerIdRequest": {
"clientId": "",
"ignoreErrorIfNoActiveWorkflow": false,
"parameters": {
"parameters": [
{
"key": "",
"value": {
"booleanArray": {
"booleanValues": []
},
"booleanValue": false,
"doubleArray": {
"doubleValues": []
},
"doubleValue": "",
"intArray": {
"intValues": []
},
"intValue": "",
"protoArray": {
"protoValues": [
{}
]
},
"protoValue": {},
"serializedObjectValue": {
"objectValue": ""
},
"stringArray": {
"stringValues": []
},
"stringValue": ""
}
}
]
},
"priority": "",
"requestId": "",
"scheduledTime": "",
"testMode": false,
"triggerId": "",
"workflowName": ""
},
"suspensionInfoEventParameterKey": ""
}
}
],
"suspensionExpiration": {
"expireAfterMs": 0,
"liftWhenExpired": false,
"remindAfterMs": 0
},
"whoMayResolve": [
{
"gaiaIdentity": {
"emailAddress": "",
"gaiaId": ""
},
"googleGroup": {},
"loasRole": "",
"mdbGroup": ""
}
]
},
"taskId": ""
}
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/v1/:name:resolve' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
"suspension": {
"approvalConfig": {
"customMessage": "",
"emailAddresses": [],
"expiration": {
"expireTime": "",
"liftWhenExpired": false,
"remindTime": ""
}
},
"audit": {
"resolveTime": "",
"resolver": ""
},
"createTime": "",
"eventExecutionInfoId": "",
"integration": "",
"lastModifyTime": "",
"name": "",
"state": "",
"suspensionConfig": {
"customMessage": "",
"notifications": [
{
"buganizerNotification": {
"assigneeEmailAddress": "",
"componentId": "",
"templateId": "",
"title": ""
},
"emailAddress": {
"email": "",
"name": "",
"tokens": [
{
"name": "",
"value": ""
}
]
},
"escalatorQueue": "",
"pubsubTopic": "",
"request": {
"postToQueueWithTriggerIdRequest": {
"clientId": "",
"ignoreErrorIfNoActiveWorkflow": false,
"parameters": {
"parameters": [
{
"key": "",
"value": {
"booleanArray": {
"booleanValues": []
},
"booleanValue": false,
"doubleArray": {
"doubleValues": []
},
"doubleValue": "",
"intArray": {
"intValues": []
},
"intValue": "",
"protoArray": {
"protoValues": [
{}
]
},
"protoValue": {},
"serializedObjectValue": {
"objectValue": ""
},
"stringArray": {
"stringValues": []
},
"stringValue": ""
}
}
]
},
"priority": "",
"requestId": "",
"scheduledTime": "",
"testMode": false,
"triggerId": "",
"workflowName": ""
},
"suspensionInfoEventParameterKey": ""
}
}
],
"suspensionExpiration": {
"expireAfterMs": 0,
"liftWhenExpired": false,
"remindAfterMs": 0
},
"whoMayResolve": [
{
"gaiaIdentity": {
"emailAddress": "",
"gaiaId": ""
},
"googleGroup": {},
"loasRole": "",
"mdbGroup": ""
}
]
},
"taskId": ""
}
}'
import http.client
conn = http.client.HTTPSConnection("example.com")
payload = "{\n \"suspension\": {\n \"approvalConfig\": {\n \"customMessage\": \"\",\n \"emailAddresses\": [],\n \"expiration\": {\n \"expireTime\": \"\",\n \"liftWhenExpired\": false,\n \"remindTime\": \"\"\n }\n },\n \"audit\": {\n \"resolveTime\": \"\",\n \"resolver\": \"\"\n },\n \"createTime\": \"\",\n \"eventExecutionInfoId\": \"\",\n \"integration\": \"\",\n \"lastModifyTime\": \"\",\n \"name\": \"\",\n \"state\": \"\",\n \"suspensionConfig\": {\n \"customMessage\": \"\",\n \"notifications\": [\n {\n \"buganizerNotification\": {\n \"assigneeEmailAddress\": \"\",\n \"componentId\": \"\",\n \"templateId\": \"\",\n \"title\": \"\"\n },\n \"emailAddress\": {\n \"email\": \"\",\n \"name\": \"\",\n \"tokens\": [\n {\n \"name\": \"\",\n \"value\": \"\"\n }\n ]\n },\n \"escalatorQueue\": \"\",\n \"pubsubTopic\": \"\",\n \"request\": {\n \"postToQueueWithTriggerIdRequest\": {\n \"clientId\": \"\",\n \"ignoreErrorIfNoActiveWorkflow\": false,\n \"parameters\": {\n \"parameters\": [\n {\n \"key\": \"\",\n \"value\": {\n \"booleanArray\": {\n \"booleanValues\": []\n },\n \"booleanValue\": false,\n \"doubleArray\": {\n \"doubleValues\": []\n },\n \"doubleValue\": \"\",\n \"intArray\": {\n \"intValues\": []\n },\n \"intValue\": \"\",\n \"protoArray\": {\n \"protoValues\": [\n {}\n ]\n },\n \"protoValue\": {},\n \"serializedObjectValue\": {\n \"objectValue\": \"\"\n },\n \"stringArray\": {\n \"stringValues\": []\n },\n \"stringValue\": \"\"\n }\n }\n ]\n },\n \"priority\": \"\",\n \"requestId\": \"\",\n \"scheduledTime\": \"\",\n \"testMode\": false,\n \"triggerId\": \"\",\n \"workflowName\": \"\"\n },\n \"suspensionInfoEventParameterKey\": \"\"\n }\n }\n ],\n \"suspensionExpiration\": {\n \"expireAfterMs\": 0,\n \"liftWhenExpired\": false,\n \"remindAfterMs\": 0\n },\n \"whoMayResolve\": [\n {\n \"gaiaIdentity\": {\n \"emailAddress\": \"\",\n \"gaiaId\": \"\"\n },\n \"googleGroup\": {},\n \"loasRole\": \"\",\n \"mdbGroup\": \"\"\n }\n ]\n },\n \"taskId\": \"\"\n }\n}"
headers = { 'content-type': "application/json" }
conn.request("POST", "/baseUrl/v1/:name:resolve", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/v1/:name:resolve"
payload = { "suspension": {
"approvalConfig": {
"customMessage": "",
"emailAddresses": [],
"expiration": {
"expireTime": "",
"liftWhenExpired": False,
"remindTime": ""
}
},
"audit": {
"resolveTime": "",
"resolver": ""
},
"createTime": "",
"eventExecutionInfoId": "",
"integration": "",
"lastModifyTime": "",
"name": "",
"state": "",
"suspensionConfig": {
"customMessage": "",
"notifications": [
{
"buganizerNotification": {
"assigneeEmailAddress": "",
"componentId": "",
"templateId": "",
"title": ""
},
"emailAddress": {
"email": "",
"name": "",
"tokens": [
{
"name": "",
"value": ""
}
]
},
"escalatorQueue": "",
"pubsubTopic": "",
"request": {
"postToQueueWithTriggerIdRequest": {
"clientId": "",
"ignoreErrorIfNoActiveWorkflow": False,
"parameters": { "parameters": [
{
"key": "",
"value": {
"booleanArray": { "booleanValues": [] },
"booleanValue": False,
"doubleArray": { "doubleValues": [] },
"doubleValue": "",
"intArray": { "intValues": [] },
"intValue": "",
"protoArray": { "protoValues": [{}] },
"protoValue": {},
"serializedObjectValue": { "objectValue": "" },
"stringArray": { "stringValues": [] },
"stringValue": ""
}
}
] },
"priority": "",
"requestId": "",
"scheduledTime": "",
"testMode": False,
"triggerId": "",
"workflowName": ""
},
"suspensionInfoEventParameterKey": ""
}
}
],
"suspensionExpiration": {
"expireAfterMs": 0,
"liftWhenExpired": False,
"remindAfterMs": 0
},
"whoMayResolve": [
{
"gaiaIdentity": {
"emailAddress": "",
"gaiaId": ""
},
"googleGroup": {},
"loasRole": "",
"mdbGroup": ""
}
]
},
"taskId": ""
} }
headers = {"content-type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.json())
library(httr)
url <- "{{baseUrl}}/v1/:name:resolve"
payload <- "{\n \"suspension\": {\n \"approvalConfig\": {\n \"customMessage\": \"\",\n \"emailAddresses\": [],\n \"expiration\": {\n \"expireTime\": \"\",\n \"liftWhenExpired\": false,\n \"remindTime\": \"\"\n }\n },\n \"audit\": {\n \"resolveTime\": \"\",\n \"resolver\": \"\"\n },\n \"createTime\": \"\",\n \"eventExecutionInfoId\": \"\",\n \"integration\": \"\",\n \"lastModifyTime\": \"\",\n \"name\": \"\",\n \"state\": \"\",\n \"suspensionConfig\": {\n \"customMessage\": \"\",\n \"notifications\": [\n {\n \"buganizerNotification\": {\n \"assigneeEmailAddress\": \"\",\n \"componentId\": \"\",\n \"templateId\": \"\",\n \"title\": \"\"\n },\n \"emailAddress\": {\n \"email\": \"\",\n \"name\": \"\",\n \"tokens\": [\n {\n \"name\": \"\",\n \"value\": \"\"\n }\n ]\n },\n \"escalatorQueue\": \"\",\n \"pubsubTopic\": \"\",\n \"request\": {\n \"postToQueueWithTriggerIdRequest\": {\n \"clientId\": \"\",\n \"ignoreErrorIfNoActiveWorkflow\": false,\n \"parameters\": {\n \"parameters\": [\n {\n \"key\": \"\",\n \"value\": {\n \"booleanArray\": {\n \"booleanValues\": []\n },\n \"booleanValue\": false,\n \"doubleArray\": {\n \"doubleValues\": []\n },\n \"doubleValue\": \"\",\n \"intArray\": {\n \"intValues\": []\n },\n \"intValue\": \"\",\n \"protoArray\": {\n \"protoValues\": [\n {}\n ]\n },\n \"protoValue\": {},\n \"serializedObjectValue\": {\n \"objectValue\": \"\"\n },\n \"stringArray\": {\n \"stringValues\": []\n },\n \"stringValue\": \"\"\n }\n }\n ]\n },\n \"priority\": \"\",\n \"requestId\": \"\",\n \"scheduledTime\": \"\",\n \"testMode\": false,\n \"triggerId\": \"\",\n \"workflowName\": \"\"\n },\n \"suspensionInfoEventParameterKey\": \"\"\n }\n }\n ],\n \"suspensionExpiration\": {\n \"expireAfterMs\": 0,\n \"liftWhenExpired\": false,\n \"remindAfterMs\": 0\n },\n \"whoMayResolve\": [\n {\n \"gaiaIdentity\": {\n \"emailAddress\": \"\",\n \"gaiaId\": \"\"\n },\n \"googleGroup\": {},\n \"loasRole\": \"\",\n \"mdbGroup\": \"\"\n }\n ]\n },\n \"taskId\": \"\"\n }\n}"
encode <- "json"
response <- VERB("POST", url, body = payload, content_type("application/json"), encode = encode)
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/v1/:name:resolve")
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 \"suspension\": {\n \"approvalConfig\": {\n \"customMessage\": \"\",\n \"emailAddresses\": [],\n \"expiration\": {\n \"expireTime\": \"\",\n \"liftWhenExpired\": false,\n \"remindTime\": \"\"\n }\n },\n \"audit\": {\n \"resolveTime\": \"\",\n \"resolver\": \"\"\n },\n \"createTime\": \"\",\n \"eventExecutionInfoId\": \"\",\n \"integration\": \"\",\n \"lastModifyTime\": \"\",\n \"name\": \"\",\n \"state\": \"\",\n \"suspensionConfig\": {\n \"customMessage\": \"\",\n \"notifications\": [\n {\n \"buganizerNotification\": {\n \"assigneeEmailAddress\": \"\",\n \"componentId\": \"\",\n \"templateId\": \"\",\n \"title\": \"\"\n },\n \"emailAddress\": {\n \"email\": \"\",\n \"name\": \"\",\n \"tokens\": [\n {\n \"name\": \"\",\n \"value\": \"\"\n }\n ]\n },\n \"escalatorQueue\": \"\",\n \"pubsubTopic\": \"\",\n \"request\": {\n \"postToQueueWithTriggerIdRequest\": {\n \"clientId\": \"\",\n \"ignoreErrorIfNoActiveWorkflow\": false,\n \"parameters\": {\n \"parameters\": [\n {\n \"key\": \"\",\n \"value\": {\n \"booleanArray\": {\n \"booleanValues\": []\n },\n \"booleanValue\": false,\n \"doubleArray\": {\n \"doubleValues\": []\n },\n \"doubleValue\": \"\",\n \"intArray\": {\n \"intValues\": []\n },\n \"intValue\": \"\",\n \"protoArray\": {\n \"protoValues\": [\n {}\n ]\n },\n \"protoValue\": {},\n \"serializedObjectValue\": {\n \"objectValue\": \"\"\n },\n \"stringArray\": {\n \"stringValues\": []\n },\n \"stringValue\": \"\"\n }\n }\n ]\n },\n \"priority\": \"\",\n \"requestId\": \"\",\n \"scheduledTime\": \"\",\n \"testMode\": false,\n \"triggerId\": \"\",\n \"workflowName\": \"\"\n },\n \"suspensionInfoEventParameterKey\": \"\"\n }\n }\n ],\n \"suspensionExpiration\": {\n \"expireAfterMs\": 0,\n \"liftWhenExpired\": false,\n \"remindAfterMs\": 0\n },\n \"whoMayResolve\": [\n {\n \"gaiaIdentity\": {\n \"emailAddress\": \"\",\n \"gaiaId\": \"\"\n },\n \"googleGroup\": {},\n \"loasRole\": \"\",\n \"mdbGroup\": \"\"\n }\n ]\n },\n \"taskId\": \"\"\n }\n}"
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
headers: {'Content-Type' => 'application/json'}
)
response = conn.post('/baseUrl/v1/:name:resolve') do |req|
req.body = "{\n \"suspension\": {\n \"approvalConfig\": {\n \"customMessage\": \"\",\n \"emailAddresses\": [],\n \"expiration\": {\n \"expireTime\": \"\",\n \"liftWhenExpired\": false,\n \"remindTime\": \"\"\n }\n },\n \"audit\": {\n \"resolveTime\": \"\",\n \"resolver\": \"\"\n },\n \"createTime\": \"\",\n \"eventExecutionInfoId\": \"\",\n \"integration\": \"\",\n \"lastModifyTime\": \"\",\n \"name\": \"\",\n \"state\": \"\",\n \"suspensionConfig\": {\n \"customMessage\": \"\",\n \"notifications\": [\n {\n \"buganizerNotification\": {\n \"assigneeEmailAddress\": \"\",\n \"componentId\": \"\",\n \"templateId\": \"\",\n \"title\": \"\"\n },\n \"emailAddress\": {\n \"email\": \"\",\n \"name\": \"\",\n \"tokens\": [\n {\n \"name\": \"\",\n \"value\": \"\"\n }\n ]\n },\n \"escalatorQueue\": \"\",\n \"pubsubTopic\": \"\",\n \"request\": {\n \"postToQueueWithTriggerIdRequest\": {\n \"clientId\": \"\",\n \"ignoreErrorIfNoActiveWorkflow\": false,\n \"parameters\": {\n \"parameters\": [\n {\n \"key\": \"\",\n \"value\": {\n \"booleanArray\": {\n \"booleanValues\": []\n },\n \"booleanValue\": false,\n \"doubleArray\": {\n \"doubleValues\": []\n },\n \"doubleValue\": \"\",\n \"intArray\": {\n \"intValues\": []\n },\n \"intValue\": \"\",\n \"protoArray\": {\n \"protoValues\": [\n {}\n ]\n },\n \"protoValue\": {},\n \"serializedObjectValue\": {\n \"objectValue\": \"\"\n },\n \"stringArray\": {\n \"stringValues\": []\n },\n \"stringValue\": \"\"\n }\n }\n ]\n },\n \"priority\": \"\",\n \"requestId\": \"\",\n \"scheduledTime\": \"\",\n \"testMode\": false,\n \"triggerId\": \"\",\n \"workflowName\": \"\"\n },\n \"suspensionInfoEventParameterKey\": \"\"\n }\n }\n ],\n \"suspensionExpiration\": {\n \"expireAfterMs\": 0,\n \"liftWhenExpired\": false,\n \"remindAfterMs\": 0\n },\n \"whoMayResolve\": [\n {\n \"gaiaIdentity\": {\n \"emailAddress\": \"\",\n \"gaiaId\": \"\"\n },\n \"googleGroup\": {},\n \"loasRole\": \"\",\n \"mdbGroup\": \"\"\n }\n ]\n },\n \"taskId\": \"\"\n }\n}"
end
puts response.status
puts response.body
use serde_json::json;
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/v1/:name:resolve";
let payload = json!({"suspension": json!({
"approvalConfig": json!({
"customMessage": "",
"emailAddresses": (),
"expiration": json!({
"expireTime": "",
"liftWhenExpired": false,
"remindTime": ""
})
}),
"audit": json!({
"resolveTime": "",
"resolver": ""
}),
"createTime": "",
"eventExecutionInfoId": "",
"integration": "",
"lastModifyTime": "",
"name": "",
"state": "",
"suspensionConfig": json!({
"customMessage": "",
"notifications": (
json!({
"buganizerNotification": json!({
"assigneeEmailAddress": "",
"componentId": "",
"templateId": "",
"title": ""
}),
"emailAddress": json!({
"email": "",
"name": "",
"tokens": (
json!({
"name": "",
"value": ""
})
)
}),
"escalatorQueue": "",
"pubsubTopic": "",
"request": json!({
"postToQueueWithTriggerIdRequest": json!({
"clientId": "",
"ignoreErrorIfNoActiveWorkflow": false,
"parameters": json!({"parameters": (
json!({
"key": "",
"value": json!({
"booleanArray": json!({"booleanValues": ()}),
"booleanValue": false,
"doubleArray": json!({"doubleValues": ()}),
"doubleValue": "",
"intArray": json!({"intValues": ()}),
"intValue": "",
"protoArray": json!({"protoValues": (json!({}))}),
"protoValue": json!({}),
"serializedObjectValue": json!({"objectValue": ""}),
"stringArray": json!({"stringValues": ()}),
"stringValue": ""
})
})
)}),
"priority": "",
"requestId": "",
"scheduledTime": "",
"testMode": false,
"triggerId": "",
"workflowName": ""
}),
"suspensionInfoEventParameterKey": ""
})
})
),
"suspensionExpiration": json!({
"expireAfterMs": 0,
"liftWhenExpired": false,
"remindAfterMs": 0
}),
"whoMayResolve": (
json!({
"gaiaIdentity": json!({
"emailAddress": "",
"gaiaId": ""
}),
"googleGroup": json!({}),
"loasRole": "",
"mdbGroup": ""
})
)
}),
"taskId": ""
})});
let mut headers = reqwest::header::HeaderMap::new();
headers.insert("content-type", "application/json".parse().unwrap());
let client = reqwest::Client::new();
let response = client.post(url)
.headers(headers)
.json(&payload)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request POST \
--url {{baseUrl}}/v1/:name:resolve \
--header 'content-type: application/json' \
--data '{
"suspension": {
"approvalConfig": {
"customMessage": "",
"emailAddresses": [],
"expiration": {
"expireTime": "",
"liftWhenExpired": false,
"remindTime": ""
}
},
"audit": {
"resolveTime": "",
"resolver": ""
},
"createTime": "",
"eventExecutionInfoId": "",
"integration": "",
"lastModifyTime": "",
"name": "",
"state": "",
"suspensionConfig": {
"customMessage": "",
"notifications": [
{
"buganizerNotification": {
"assigneeEmailAddress": "",
"componentId": "",
"templateId": "",
"title": ""
},
"emailAddress": {
"email": "",
"name": "",
"tokens": [
{
"name": "",
"value": ""
}
]
},
"escalatorQueue": "",
"pubsubTopic": "",
"request": {
"postToQueueWithTriggerIdRequest": {
"clientId": "",
"ignoreErrorIfNoActiveWorkflow": false,
"parameters": {
"parameters": [
{
"key": "",
"value": {
"booleanArray": {
"booleanValues": []
},
"booleanValue": false,
"doubleArray": {
"doubleValues": []
},
"doubleValue": "",
"intArray": {
"intValues": []
},
"intValue": "",
"protoArray": {
"protoValues": [
{}
]
},
"protoValue": {},
"serializedObjectValue": {
"objectValue": ""
},
"stringArray": {
"stringValues": []
},
"stringValue": ""
}
}
]
},
"priority": "",
"requestId": "",
"scheduledTime": "",
"testMode": false,
"triggerId": "",
"workflowName": ""
},
"suspensionInfoEventParameterKey": ""
}
}
],
"suspensionExpiration": {
"expireAfterMs": 0,
"liftWhenExpired": false,
"remindAfterMs": 0
},
"whoMayResolve": [
{
"gaiaIdentity": {
"emailAddress": "",
"gaiaId": ""
},
"googleGroup": {},
"loasRole": "",
"mdbGroup": ""
}
]
},
"taskId": ""
}
}'
echo '{
"suspension": {
"approvalConfig": {
"customMessage": "",
"emailAddresses": [],
"expiration": {
"expireTime": "",
"liftWhenExpired": false,
"remindTime": ""
}
},
"audit": {
"resolveTime": "",
"resolver": ""
},
"createTime": "",
"eventExecutionInfoId": "",
"integration": "",
"lastModifyTime": "",
"name": "",
"state": "",
"suspensionConfig": {
"customMessage": "",
"notifications": [
{
"buganizerNotification": {
"assigneeEmailAddress": "",
"componentId": "",
"templateId": "",
"title": ""
},
"emailAddress": {
"email": "",
"name": "",
"tokens": [
{
"name": "",
"value": ""
}
]
},
"escalatorQueue": "",
"pubsubTopic": "",
"request": {
"postToQueueWithTriggerIdRequest": {
"clientId": "",
"ignoreErrorIfNoActiveWorkflow": false,
"parameters": {
"parameters": [
{
"key": "",
"value": {
"booleanArray": {
"booleanValues": []
},
"booleanValue": false,
"doubleArray": {
"doubleValues": []
},
"doubleValue": "",
"intArray": {
"intValues": []
},
"intValue": "",
"protoArray": {
"protoValues": [
{}
]
},
"protoValue": {},
"serializedObjectValue": {
"objectValue": ""
},
"stringArray": {
"stringValues": []
},
"stringValue": ""
}
}
]
},
"priority": "",
"requestId": "",
"scheduledTime": "",
"testMode": false,
"triggerId": "",
"workflowName": ""
},
"suspensionInfoEventParameterKey": ""
}
}
],
"suspensionExpiration": {
"expireAfterMs": 0,
"liftWhenExpired": false,
"remindAfterMs": 0
},
"whoMayResolve": [
{
"gaiaIdentity": {
"emailAddress": "",
"gaiaId": ""
},
"googleGroup": {},
"loasRole": "",
"mdbGroup": ""
}
]
},
"taskId": ""
}
}' | \
http POST {{baseUrl}}/v1/:name:resolve \
content-type:application/json
wget --quiet \
--method POST \
--header 'content-type: application/json' \
--body-data '{\n "suspension": {\n "approvalConfig": {\n "customMessage": "",\n "emailAddresses": [],\n "expiration": {\n "expireTime": "",\n "liftWhenExpired": false,\n "remindTime": ""\n }\n },\n "audit": {\n "resolveTime": "",\n "resolver": ""\n },\n "createTime": "",\n "eventExecutionInfoId": "",\n "integration": "",\n "lastModifyTime": "",\n "name": "",\n "state": "",\n "suspensionConfig": {\n "customMessage": "",\n "notifications": [\n {\n "buganizerNotification": {\n "assigneeEmailAddress": "",\n "componentId": "",\n "templateId": "",\n "title": ""\n },\n "emailAddress": {\n "email": "",\n "name": "",\n "tokens": [\n {\n "name": "",\n "value": ""\n }\n ]\n },\n "escalatorQueue": "",\n "pubsubTopic": "",\n "request": {\n "postToQueueWithTriggerIdRequest": {\n "clientId": "",\n "ignoreErrorIfNoActiveWorkflow": false,\n "parameters": {\n "parameters": [\n {\n "key": "",\n "value": {\n "booleanArray": {\n "booleanValues": []\n },\n "booleanValue": false,\n "doubleArray": {\n "doubleValues": []\n },\n "doubleValue": "",\n "intArray": {\n "intValues": []\n },\n "intValue": "",\n "protoArray": {\n "protoValues": [\n {}\n ]\n },\n "protoValue": {},\n "serializedObjectValue": {\n "objectValue": ""\n },\n "stringArray": {\n "stringValues": []\n },\n "stringValue": ""\n }\n }\n ]\n },\n "priority": "",\n "requestId": "",\n "scheduledTime": "",\n "testMode": false,\n "triggerId": "",\n "workflowName": ""\n },\n "suspensionInfoEventParameterKey": ""\n }\n }\n ],\n "suspensionExpiration": {\n "expireAfterMs": 0,\n "liftWhenExpired": false,\n "remindAfterMs": 0\n },\n "whoMayResolve": [\n {\n "gaiaIdentity": {\n "emailAddress": "",\n "gaiaId": ""\n },\n "googleGroup": {},\n "loasRole": "",\n "mdbGroup": ""\n }\n ]\n },\n "taskId": ""\n }\n}' \
--output-document \
- {{baseUrl}}/v1/:name:resolve
import Foundation
let headers = ["content-type": "application/json"]
let parameters = ["suspension": [
"approvalConfig": [
"customMessage": "",
"emailAddresses": [],
"expiration": [
"expireTime": "",
"liftWhenExpired": false,
"remindTime": ""
]
],
"audit": [
"resolveTime": "",
"resolver": ""
],
"createTime": "",
"eventExecutionInfoId": "",
"integration": "",
"lastModifyTime": "",
"name": "",
"state": "",
"suspensionConfig": [
"customMessage": "",
"notifications": [
[
"buganizerNotification": [
"assigneeEmailAddress": "",
"componentId": "",
"templateId": "",
"title": ""
],
"emailAddress": [
"email": "",
"name": "",
"tokens": [
[
"name": "",
"value": ""
]
]
],
"escalatorQueue": "",
"pubsubTopic": "",
"request": [
"postToQueueWithTriggerIdRequest": [
"clientId": "",
"ignoreErrorIfNoActiveWorkflow": false,
"parameters": ["parameters": [
[
"key": "",
"value": [
"booleanArray": ["booleanValues": []],
"booleanValue": false,
"doubleArray": ["doubleValues": []],
"doubleValue": "",
"intArray": ["intValues": []],
"intValue": "",
"protoArray": ["protoValues": [[]]],
"protoValue": [],
"serializedObjectValue": ["objectValue": ""],
"stringArray": ["stringValues": []],
"stringValue": ""
]
]
]],
"priority": "",
"requestId": "",
"scheduledTime": "",
"testMode": false,
"triggerId": "",
"workflowName": ""
],
"suspensionInfoEventParameterKey": ""
]
]
],
"suspensionExpiration": [
"expireAfterMs": 0,
"liftWhenExpired": false,
"remindAfterMs": 0
],
"whoMayResolve": [
[
"gaiaIdentity": [
"emailAddress": "",
"gaiaId": ""
],
"googleGroup": [],
"loasRole": "",
"mdbGroup": ""
]
]
],
"taskId": ""
]] as [String : Any]
let postData = JSONSerialization.data(withJSONObject: parameters, options: [])
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/v1/:name:resolve")! 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
integrations.projects.locations.products.integrations.list
{{baseUrl}}/v1/:parent/integrations
QUERY PARAMS
parent
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/v1/:parent/integrations");
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/get "{{baseUrl}}/v1/:parent/integrations")
require "http/client"
url = "{{baseUrl}}/v1/:parent/integrations"
response = HTTP::Client.get url
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Get,
RequestUri = new Uri("{{baseUrl}}/v1/:parent/integrations"),
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/v1/:parent/integrations");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/v1/:parent/integrations"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
GET /baseUrl/v1/:parent/integrations HTTP/1.1
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/v1/:parent/integrations")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/v1/:parent/integrations"))
.method("GET", HttpRequest.BodyPublishers.noBody())
.build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("{{baseUrl}}/v1/:parent/integrations")
.get()
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/v1/:parent/integrations")
.asString();
const data = null;
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('GET', '{{baseUrl}}/v1/:parent/integrations');
xhr.send(data);
import axios from 'axios';
const options = {method: 'GET', url: '{{baseUrl}}/v1/:parent/integrations'};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/v1/:parent/integrations';
const options = {method: 'GET'};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/v1/:parent/integrations',
method: 'GET',
headers: {}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/v1/:parent/integrations")
.get()
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'GET',
hostname: 'example.com',
port: null,
path: '/baseUrl/v1/:parent/integrations',
headers: {}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
const request = require('request');
const options = {method: 'GET', url: '{{baseUrl}}/v1/:parent/integrations'};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('GET', '{{baseUrl}}/v1/:parent/integrations');
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {method: 'GET', url: '{{baseUrl}}/v1/:parent/integrations'};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/v1/:parent/integrations';
const options = {method: 'GET'};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/v1/:parent/integrations"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/v1/:parent/integrations" in
Client.call `GET uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/v1/:parent/integrations",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('GET', '{{baseUrl}}/v1/:parent/integrations');
echo $response->getBody();
setUrl('{{baseUrl}}/v1/:parent/integrations');
$request->setMethod(HTTP_METH_GET);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/v1/:parent/integrations');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/v1/:parent/integrations' -Method GET
$response = Invoke-RestMethod -Uri '{{baseUrl}}/v1/:parent/integrations' -Method GET
import http.client
conn = http.client.HTTPSConnection("example.com")
conn.request("GET", "/baseUrl/v1/:parent/integrations")
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/v1/:parent/integrations"
response = requests.get(url)
print(response.json())
library(httr)
url <- "{{baseUrl}}/v1/:parent/integrations"
response <- VERB("GET", url, content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/v1/:parent/integrations")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
)
response = conn.get('/baseUrl/v1/:parent/integrations') do |req|
end
puts response.status
puts response.body
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/v1/:parent/integrations";
let client = reqwest::Client::new();
let response = client.get(url)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request GET \
--url {{baseUrl}}/v1/:parent/integrations
http GET {{baseUrl}}/v1/:parent/integrations
wget --quiet \
--method GET \
--output-document \
- {{baseUrl}}/v1/:parent/integrations
import Foundation
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/v1/:parent/integrations")! 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
integrations.projects.locations.products.integrations.schedule
{{baseUrl}}/v1/:name:schedule
QUERY PARAMS
name
BODY json
{
"inputParameters": {},
"parameterEntries": [
{
"dataType": "",
"key": "",
"value": {
"booleanArray": {
"booleanValues": []
},
"booleanValue": false,
"doubleArray": {
"doubleValues": []
},
"doubleValue": "",
"intArray": {
"intValues": []
},
"intValue": "",
"jsonValue": "",
"protoArray": {
"protoValues": [
{}
]
},
"protoValue": {},
"serializedObjectValue": {
"objectValue": ""
},
"stringArray": {
"stringValues": []
},
"stringValue": ""
}
}
],
"parameters": {
"parameters": [
{
"key": "",
"value": {
"booleanArray": {
"booleanValues": []
},
"booleanValue": false,
"doubleArray": {
"doubleValues": []
},
"doubleValue": "",
"intArray": {
"intValues": []
},
"intValue": "",
"protoArray": {
"protoValues": [
{}
]
},
"protoValue": {},
"serializedObjectValue": {
"objectValue": ""
},
"stringArray": {
"stringValues": []
},
"stringValue": ""
}
}
]
},
"requestId": "",
"scheduleTime": "",
"triggerId": ""
}
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/v1/:name:schedule");
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 \"inputParameters\": {},\n \"parameterEntries\": [\n {\n \"dataType\": \"\",\n \"key\": \"\",\n \"value\": {\n \"booleanArray\": {\n \"booleanValues\": []\n },\n \"booleanValue\": false,\n \"doubleArray\": {\n \"doubleValues\": []\n },\n \"doubleValue\": \"\",\n \"intArray\": {\n \"intValues\": []\n },\n \"intValue\": \"\",\n \"jsonValue\": \"\",\n \"protoArray\": {\n \"protoValues\": [\n {}\n ]\n },\n \"protoValue\": {},\n \"serializedObjectValue\": {\n \"objectValue\": \"\"\n },\n \"stringArray\": {\n \"stringValues\": []\n },\n \"stringValue\": \"\"\n }\n }\n ],\n \"parameters\": {\n \"parameters\": [\n {\n \"key\": \"\",\n \"value\": {\n \"booleanArray\": {\n \"booleanValues\": []\n },\n \"booleanValue\": false,\n \"doubleArray\": {\n \"doubleValues\": []\n },\n \"doubleValue\": \"\",\n \"intArray\": {\n \"intValues\": []\n },\n \"intValue\": \"\",\n \"protoArray\": {\n \"protoValues\": [\n {}\n ]\n },\n \"protoValue\": {},\n \"serializedObjectValue\": {\n \"objectValue\": \"\"\n },\n \"stringArray\": {\n \"stringValues\": []\n },\n \"stringValue\": \"\"\n }\n }\n ]\n },\n \"requestId\": \"\",\n \"scheduleTime\": \"\",\n \"triggerId\": \"\"\n}");
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/post "{{baseUrl}}/v1/:name:schedule" {:content-type :json
:form-params {:inputParameters {}
:parameterEntries [{:dataType ""
:key ""
:value {:booleanArray {:booleanValues []}
:booleanValue false
:doubleArray {:doubleValues []}
:doubleValue ""
:intArray {:intValues []}
:intValue ""
:jsonValue ""
:protoArray {:protoValues [{}]}
:protoValue {}
:serializedObjectValue {:objectValue ""}
:stringArray {:stringValues []}
:stringValue ""}}]
:parameters {:parameters [{:key ""
:value {:booleanArray {:booleanValues []}
:booleanValue false
:doubleArray {:doubleValues []}
:doubleValue ""
:intArray {:intValues []}
:intValue ""
:protoArray {:protoValues [{}]}
:protoValue {}
:serializedObjectValue {:objectValue ""}
:stringArray {:stringValues []}
:stringValue ""}}]}
:requestId ""
:scheduleTime ""
:triggerId ""}})
require "http/client"
url = "{{baseUrl}}/v1/:name:schedule"
headers = HTTP::Headers{
"content-type" => "application/json"
}
reqBody = "{\n \"inputParameters\": {},\n \"parameterEntries\": [\n {\n \"dataType\": \"\",\n \"key\": \"\",\n \"value\": {\n \"booleanArray\": {\n \"booleanValues\": []\n },\n \"booleanValue\": false,\n \"doubleArray\": {\n \"doubleValues\": []\n },\n \"doubleValue\": \"\",\n \"intArray\": {\n \"intValues\": []\n },\n \"intValue\": \"\",\n \"jsonValue\": \"\",\n \"protoArray\": {\n \"protoValues\": [\n {}\n ]\n },\n \"protoValue\": {},\n \"serializedObjectValue\": {\n \"objectValue\": \"\"\n },\n \"stringArray\": {\n \"stringValues\": []\n },\n \"stringValue\": \"\"\n }\n }\n ],\n \"parameters\": {\n \"parameters\": [\n {\n \"key\": \"\",\n \"value\": {\n \"booleanArray\": {\n \"booleanValues\": []\n },\n \"booleanValue\": false,\n \"doubleArray\": {\n \"doubleValues\": []\n },\n \"doubleValue\": \"\",\n \"intArray\": {\n \"intValues\": []\n },\n \"intValue\": \"\",\n \"protoArray\": {\n \"protoValues\": [\n {}\n ]\n },\n \"protoValue\": {},\n \"serializedObjectValue\": {\n \"objectValue\": \"\"\n },\n \"stringArray\": {\n \"stringValues\": []\n },\n \"stringValue\": \"\"\n }\n }\n ]\n },\n \"requestId\": \"\",\n \"scheduleTime\": \"\",\n \"triggerId\": \"\"\n}"
response = HTTP::Client.post url, headers: headers, body: reqBody
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Post,
RequestUri = new Uri("{{baseUrl}}/v1/:name:schedule"),
Content = new StringContent("{\n \"inputParameters\": {},\n \"parameterEntries\": [\n {\n \"dataType\": \"\",\n \"key\": \"\",\n \"value\": {\n \"booleanArray\": {\n \"booleanValues\": []\n },\n \"booleanValue\": false,\n \"doubleArray\": {\n \"doubleValues\": []\n },\n \"doubleValue\": \"\",\n \"intArray\": {\n \"intValues\": []\n },\n \"intValue\": \"\",\n \"jsonValue\": \"\",\n \"protoArray\": {\n \"protoValues\": [\n {}\n ]\n },\n \"protoValue\": {},\n \"serializedObjectValue\": {\n \"objectValue\": \"\"\n },\n \"stringArray\": {\n \"stringValues\": []\n },\n \"stringValue\": \"\"\n }\n }\n ],\n \"parameters\": {\n \"parameters\": [\n {\n \"key\": \"\",\n \"value\": {\n \"booleanArray\": {\n \"booleanValues\": []\n },\n \"booleanValue\": false,\n \"doubleArray\": {\n \"doubleValues\": []\n },\n \"doubleValue\": \"\",\n \"intArray\": {\n \"intValues\": []\n },\n \"intValue\": \"\",\n \"protoArray\": {\n \"protoValues\": [\n {}\n ]\n },\n \"protoValue\": {},\n \"serializedObjectValue\": {\n \"objectValue\": \"\"\n },\n \"stringArray\": {\n \"stringValues\": []\n },\n \"stringValue\": \"\"\n }\n }\n ]\n },\n \"requestId\": \"\",\n \"scheduleTime\": \"\",\n \"triggerId\": \"\"\n}")
{
Headers =
{
ContentType = new MediaTypeHeaderValue("application/json")
}
}
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/v1/:name:schedule");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n \"inputParameters\": {},\n \"parameterEntries\": [\n {\n \"dataType\": \"\",\n \"key\": \"\",\n \"value\": {\n \"booleanArray\": {\n \"booleanValues\": []\n },\n \"booleanValue\": false,\n \"doubleArray\": {\n \"doubleValues\": []\n },\n \"doubleValue\": \"\",\n \"intArray\": {\n \"intValues\": []\n },\n \"intValue\": \"\",\n \"jsonValue\": \"\",\n \"protoArray\": {\n \"protoValues\": [\n {}\n ]\n },\n \"protoValue\": {},\n \"serializedObjectValue\": {\n \"objectValue\": \"\"\n },\n \"stringArray\": {\n \"stringValues\": []\n },\n \"stringValue\": \"\"\n }\n }\n ],\n \"parameters\": {\n \"parameters\": [\n {\n \"key\": \"\",\n \"value\": {\n \"booleanArray\": {\n \"booleanValues\": []\n },\n \"booleanValue\": false,\n \"doubleArray\": {\n \"doubleValues\": []\n },\n \"doubleValue\": \"\",\n \"intArray\": {\n \"intValues\": []\n },\n \"intValue\": \"\",\n \"protoArray\": {\n \"protoValues\": [\n {}\n ]\n },\n \"protoValue\": {},\n \"serializedObjectValue\": {\n \"objectValue\": \"\"\n },\n \"stringArray\": {\n \"stringValues\": []\n },\n \"stringValue\": \"\"\n }\n }\n ]\n },\n \"requestId\": \"\",\n \"scheduleTime\": \"\",\n \"triggerId\": \"\"\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/v1/:name:schedule"
payload := strings.NewReader("{\n \"inputParameters\": {},\n \"parameterEntries\": [\n {\n \"dataType\": \"\",\n \"key\": \"\",\n \"value\": {\n \"booleanArray\": {\n \"booleanValues\": []\n },\n \"booleanValue\": false,\n \"doubleArray\": {\n \"doubleValues\": []\n },\n \"doubleValue\": \"\",\n \"intArray\": {\n \"intValues\": []\n },\n \"intValue\": \"\",\n \"jsonValue\": \"\",\n \"protoArray\": {\n \"protoValues\": [\n {}\n ]\n },\n \"protoValue\": {},\n \"serializedObjectValue\": {\n \"objectValue\": \"\"\n },\n \"stringArray\": {\n \"stringValues\": []\n },\n \"stringValue\": \"\"\n }\n }\n ],\n \"parameters\": {\n \"parameters\": [\n {\n \"key\": \"\",\n \"value\": {\n \"booleanArray\": {\n \"booleanValues\": []\n },\n \"booleanValue\": false,\n \"doubleArray\": {\n \"doubleValues\": []\n },\n \"doubleValue\": \"\",\n \"intArray\": {\n \"intValues\": []\n },\n \"intValue\": \"\",\n \"protoArray\": {\n \"protoValues\": [\n {}\n ]\n },\n \"protoValue\": {},\n \"serializedObjectValue\": {\n \"objectValue\": \"\"\n },\n \"stringArray\": {\n \"stringValues\": []\n },\n \"stringValue\": \"\"\n }\n }\n ]\n },\n \"requestId\": \"\",\n \"scheduleTime\": \"\",\n \"triggerId\": \"\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("content-type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
POST /baseUrl/v1/:name:schedule HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 1486
{
"inputParameters": {},
"parameterEntries": [
{
"dataType": "",
"key": "",
"value": {
"booleanArray": {
"booleanValues": []
},
"booleanValue": false,
"doubleArray": {
"doubleValues": []
},
"doubleValue": "",
"intArray": {
"intValues": []
},
"intValue": "",
"jsonValue": "",
"protoArray": {
"protoValues": [
{}
]
},
"protoValue": {},
"serializedObjectValue": {
"objectValue": ""
},
"stringArray": {
"stringValues": []
},
"stringValue": ""
}
}
],
"parameters": {
"parameters": [
{
"key": "",
"value": {
"booleanArray": {
"booleanValues": []
},
"booleanValue": false,
"doubleArray": {
"doubleValues": []
},
"doubleValue": "",
"intArray": {
"intValues": []
},
"intValue": "",
"protoArray": {
"protoValues": [
{}
]
},
"protoValue": {},
"serializedObjectValue": {
"objectValue": ""
},
"stringArray": {
"stringValues": []
},
"stringValue": ""
}
}
]
},
"requestId": "",
"scheduleTime": "",
"triggerId": ""
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/v1/:name:schedule")
.setHeader("content-type", "application/json")
.setBody("{\n \"inputParameters\": {},\n \"parameterEntries\": [\n {\n \"dataType\": \"\",\n \"key\": \"\",\n \"value\": {\n \"booleanArray\": {\n \"booleanValues\": []\n },\n \"booleanValue\": false,\n \"doubleArray\": {\n \"doubleValues\": []\n },\n \"doubleValue\": \"\",\n \"intArray\": {\n \"intValues\": []\n },\n \"intValue\": \"\",\n \"jsonValue\": \"\",\n \"protoArray\": {\n \"protoValues\": [\n {}\n ]\n },\n \"protoValue\": {},\n \"serializedObjectValue\": {\n \"objectValue\": \"\"\n },\n \"stringArray\": {\n \"stringValues\": []\n },\n \"stringValue\": \"\"\n }\n }\n ],\n \"parameters\": {\n \"parameters\": [\n {\n \"key\": \"\",\n \"value\": {\n \"booleanArray\": {\n \"booleanValues\": []\n },\n \"booleanValue\": false,\n \"doubleArray\": {\n \"doubleValues\": []\n },\n \"doubleValue\": \"\",\n \"intArray\": {\n \"intValues\": []\n },\n \"intValue\": \"\",\n \"protoArray\": {\n \"protoValues\": [\n {}\n ]\n },\n \"protoValue\": {},\n \"serializedObjectValue\": {\n \"objectValue\": \"\"\n },\n \"stringArray\": {\n \"stringValues\": []\n },\n \"stringValue\": \"\"\n }\n }\n ]\n },\n \"requestId\": \"\",\n \"scheduleTime\": \"\",\n \"triggerId\": \"\"\n}")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/v1/:name:schedule"))
.header("content-type", "application/json")
.method("POST", HttpRequest.BodyPublishers.ofString("{\n \"inputParameters\": {},\n \"parameterEntries\": [\n {\n \"dataType\": \"\",\n \"key\": \"\",\n \"value\": {\n \"booleanArray\": {\n \"booleanValues\": []\n },\n \"booleanValue\": false,\n \"doubleArray\": {\n \"doubleValues\": []\n },\n \"doubleValue\": \"\",\n \"intArray\": {\n \"intValues\": []\n },\n \"intValue\": \"\",\n \"jsonValue\": \"\",\n \"protoArray\": {\n \"protoValues\": [\n {}\n ]\n },\n \"protoValue\": {},\n \"serializedObjectValue\": {\n \"objectValue\": \"\"\n },\n \"stringArray\": {\n \"stringValues\": []\n },\n \"stringValue\": \"\"\n }\n }\n ],\n \"parameters\": {\n \"parameters\": [\n {\n \"key\": \"\",\n \"value\": {\n \"booleanArray\": {\n \"booleanValues\": []\n },\n \"booleanValue\": false,\n \"doubleArray\": {\n \"doubleValues\": []\n },\n \"doubleValue\": \"\",\n \"intArray\": {\n \"intValues\": []\n },\n \"intValue\": \"\",\n \"protoArray\": {\n \"protoValues\": [\n {}\n ]\n },\n \"protoValue\": {},\n \"serializedObjectValue\": {\n \"objectValue\": \"\"\n },\n \"stringArray\": {\n \"stringValues\": []\n },\n \"stringValue\": \"\"\n }\n }\n ]\n },\n \"requestId\": \"\",\n \"scheduleTime\": \"\",\n \"triggerId\": \"\"\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 \"inputParameters\": {},\n \"parameterEntries\": [\n {\n \"dataType\": \"\",\n \"key\": \"\",\n \"value\": {\n \"booleanArray\": {\n \"booleanValues\": []\n },\n \"booleanValue\": false,\n \"doubleArray\": {\n \"doubleValues\": []\n },\n \"doubleValue\": \"\",\n \"intArray\": {\n \"intValues\": []\n },\n \"intValue\": \"\",\n \"jsonValue\": \"\",\n \"protoArray\": {\n \"protoValues\": [\n {}\n ]\n },\n \"protoValue\": {},\n \"serializedObjectValue\": {\n \"objectValue\": \"\"\n },\n \"stringArray\": {\n \"stringValues\": []\n },\n \"stringValue\": \"\"\n }\n }\n ],\n \"parameters\": {\n \"parameters\": [\n {\n \"key\": \"\",\n \"value\": {\n \"booleanArray\": {\n \"booleanValues\": []\n },\n \"booleanValue\": false,\n \"doubleArray\": {\n \"doubleValues\": []\n },\n \"doubleValue\": \"\",\n \"intArray\": {\n \"intValues\": []\n },\n \"intValue\": \"\",\n \"protoArray\": {\n \"protoValues\": [\n {}\n ]\n },\n \"protoValue\": {},\n \"serializedObjectValue\": {\n \"objectValue\": \"\"\n },\n \"stringArray\": {\n \"stringValues\": []\n },\n \"stringValue\": \"\"\n }\n }\n ]\n },\n \"requestId\": \"\",\n \"scheduleTime\": \"\",\n \"triggerId\": \"\"\n}");
Request request = new Request.Builder()
.url("{{baseUrl}}/v1/:name:schedule")
.post(body)
.addHeader("content-type", "application/json")
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/v1/:name:schedule")
.header("content-type", "application/json")
.body("{\n \"inputParameters\": {},\n \"parameterEntries\": [\n {\n \"dataType\": \"\",\n \"key\": \"\",\n \"value\": {\n \"booleanArray\": {\n \"booleanValues\": []\n },\n \"booleanValue\": false,\n \"doubleArray\": {\n \"doubleValues\": []\n },\n \"doubleValue\": \"\",\n \"intArray\": {\n \"intValues\": []\n },\n \"intValue\": \"\",\n \"jsonValue\": \"\",\n \"protoArray\": {\n \"protoValues\": [\n {}\n ]\n },\n \"protoValue\": {},\n \"serializedObjectValue\": {\n \"objectValue\": \"\"\n },\n \"stringArray\": {\n \"stringValues\": []\n },\n \"stringValue\": \"\"\n }\n }\n ],\n \"parameters\": {\n \"parameters\": [\n {\n \"key\": \"\",\n \"value\": {\n \"booleanArray\": {\n \"booleanValues\": []\n },\n \"booleanValue\": false,\n \"doubleArray\": {\n \"doubleValues\": []\n },\n \"doubleValue\": \"\",\n \"intArray\": {\n \"intValues\": []\n },\n \"intValue\": \"\",\n \"protoArray\": {\n \"protoValues\": [\n {}\n ]\n },\n \"protoValue\": {},\n \"serializedObjectValue\": {\n \"objectValue\": \"\"\n },\n \"stringArray\": {\n \"stringValues\": []\n },\n \"stringValue\": \"\"\n }\n }\n ]\n },\n \"requestId\": \"\",\n \"scheduleTime\": \"\",\n \"triggerId\": \"\"\n}")
.asString();
const data = JSON.stringify({
inputParameters: {},
parameterEntries: [
{
dataType: '',
key: '',
value: {
booleanArray: {
booleanValues: []
},
booleanValue: false,
doubleArray: {
doubleValues: []
},
doubleValue: '',
intArray: {
intValues: []
},
intValue: '',
jsonValue: '',
protoArray: {
protoValues: [
{}
]
},
protoValue: {},
serializedObjectValue: {
objectValue: ''
},
stringArray: {
stringValues: []
},
stringValue: ''
}
}
],
parameters: {
parameters: [
{
key: '',
value: {
booleanArray: {
booleanValues: []
},
booleanValue: false,
doubleArray: {
doubleValues: []
},
doubleValue: '',
intArray: {
intValues: []
},
intValue: '',
protoArray: {
protoValues: [
{}
]
},
protoValue: {},
serializedObjectValue: {
objectValue: ''
},
stringArray: {
stringValues: []
},
stringValue: ''
}
}
]
},
requestId: '',
scheduleTime: '',
triggerId: ''
});
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('POST', '{{baseUrl}}/v1/:name:schedule');
xhr.setRequestHeader('content-type', 'application/json');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'POST',
url: '{{baseUrl}}/v1/:name:schedule',
headers: {'content-type': 'application/json'},
data: {
inputParameters: {},
parameterEntries: [
{
dataType: '',
key: '',
value: {
booleanArray: {booleanValues: []},
booleanValue: false,
doubleArray: {doubleValues: []},
doubleValue: '',
intArray: {intValues: []},
intValue: '',
jsonValue: '',
protoArray: {protoValues: [{}]},
protoValue: {},
serializedObjectValue: {objectValue: ''},
stringArray: {stringValues: []},
stringValue: ''
}
}
],
parameters: {
parameters: [
{
key: '',
value: {
booleanArray: {booleanValues: []},
booleanValue: false,
doubleArray: {doubleValues: []},
doubleValue: '',
intArray: {intValues: []},
intValue: '',
protoArray: {protoValues: [{}]},
protoValue: {},
serializedObjectValue: {objectValue: ''},
stringArray: {stringValues: []},
stringValue: ''
}
}
]
},
requestId: '',
scheduleTime: '',
triggerId: ''
}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/v1/:name:schedule';
const options = {
method: 'POST',
headers: {'content-type': 'application/json'},
body: '{"inputParameters":{},"parameterEntries":[{"dataType":"","key":"","value":{"booleanArray":{"booleanValues":[]},"booleanValue":false,"doubleArray":{"doubleValues":[]},"doubleValue":"","intArray":{"intValues":[]},"intValue":"","jsonValue":"","protoArray":{"protoValues":[{}]},"protoValue":{},"serializedObjectValue":{"objectValue":""},"stringArray":{"stringValues":[]},"stringValue":""}}],"parameters":{"parameters":[{"key":"","value":{"booleanArray":{"booleanValues":[]},"booleanValue":false,"doubleArray":{"doubleValues":[]},"doubleValue":"","intArray":{"intValues":[]},"intValue":"","protoArray":{"protoValues":[{}]},"protoValue":{},"serializedObjectValue":{"objectValue":""},"stringArray":{"stringValues":[]},"stringValue":""}}]},"requestId":"","scheduleTime":"","triggerId":""}'
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/v1/:name:schedule',
method: 'POST',
headers: {
'content-type': 'application/json'
},
processData: false,
data: '{\n "inputParameters": {},\n "parameterEntries": [\n {\n "dataType": "",\n "key": "",\n "value": {\n "booleanArray": {\n "booleanValues": []\n },\n "booleanValue": false,\n "doubleArray": {\n "doubleValues": []\n },\n "doubleValue": "",\n "intArray": {\n "intValues": []\n },\n "intValue": "",\n "jsonValue": "",\n "protoArray": {\n "protoValues": [\n {}\n ]\n },\n "protoValue": {},\n "serializedObjectValue": {\n "objectValue": ""\n },\n "stringArray": {\n "stringValues": []\n },\n "stringValue": ""\n }\n }\n ],\n "parameters": {\n "parameters": [\n {\n "key": "",\n "value": {\n "booleanArray": {\n "booleanValues": []\n },\n "booleanValue": false,\n "doubleArray": {\n "doubleValues": []\n },\n "doubleValue": "",\n "intArray": {\n "intValues": []\n },\n "intValue": "",\n "protoArray": {\n "protoValues": [\n {}\n ]\n },\n "protoValue": {},\n "serializedObjectValue": {\n "objectValue": ""\n },\n "stringArray": {\n "stringValues": []\n },\n "stringValue": ""\n }\n }\n ]\n },\n "requestId": "",\n "scheduleTime": "",\n "triggerId": ""\n}'
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n \"inputParameters\": {},\n \"parameterEntries\": [\n {\n \"dataType\": \"\",\n \"key\": \"\",\n \"value\": {\n \"booleanArray\": {\n \"booleanValues\": []\n },\n \"booleanValue\": false,\n \"doubleArray\": {\n \"doubleValues\": []\n },\n \"doubleValue\": \"\",\n \"intArray\": {\n \"intValues\": []\n },\n \"intValue\": \"\",\n \"jsonValue\": \"\",\n \"protoArray\": {\n \"protoValues\": [\n {}\n ]\n },\n \"protoValue\": {},\n \"serializedObjectValue\": {\n \"objectValue\": \"\"\n },\n \"stringArray\": {\n \"stringValues\": []\n },\n \"stringValue\": \"\"\n }\n }\n ],\n \"parameters\": {\n \"parameters\": [\n {\n \"key\": \"\",\n \"value\": {\n \"booleanArray\": {\n \"booleanValues\": []\n },\n \"booleanValue\": false,\n \"doubleArray\": {\n \"doubleValues\": []\n },\n \"doubleValue\": \"\",\n \"intArray\": {\n \"intValues\": []\n },\n \"intValue\": \"\",\n \"protoArray\": {\n \"protoValues\": [\n {}\n ]\n },\n \"protoValue\": {},\n \"serializedObjectValue\": {\n \"objectValue\": \"\"\n },\n \"stringArray\": {\n \"stringValues\": []\n },\n \"stringValue\": \"\"\n }\n }\n ]\n },\n \"requestId\": \"\",\n \"scheduleTime\": \"\",\n \"triggerId\": \"\"\n}")
val request = Request.Builder()
.url("{{baseUrl}}/v1/:name:schedule")
.post(body)
.addHeader("content-type", "application/json")
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'POST',
hostname: 'example.com',
port: null,
path: '/baseUrl/v1/:name:schedule',
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({
inputParameters: {},
parameterEntries: [
{
dataType: '',
key: '',
value: {
booleanArray: {booleanValues: []},
booleanValue: false,
doubleArray: {doubleValues: []},
doubleValue: '',
intArray: {intValues: []},
intValue: '',
jsonValue: '',
protoArray: {protoValues: [{}]},
protoValue: {},
serializedObjectValue: {objectValue: ''},
stringArray: {stringValues: []},
stringValue: ''
}
}
],
parameters: {
parameters: [
{
key: '',
value: {
booleanArray: {booleanValues: []},
booleanValue: false,
doubleArray: {doubleValues: []},
doubleValue: '',
intArray: {intValues: []},
intValue: '',
protoArray: {protoValues: [{}]},
protoValue: {},
serializedObjectValue: {objectValue: ''},
stringArray: {stringValues: []},
stringValue: ''
}
}
]
},
requestId: '',
scheduleTime: '',
triggerId: ''
}));
req.end();
const request = require('request');
const options = {
method: 'POST',
url: '{{baseUrl}}/v1/:name:schedule',
headers: {'content-type': 'application/json'},
body: {
inputParameters: {},
parameterEntries: [
{
dataType: '',
key: '',
value: {
booleanArray: {booleanValues: []},
booleanValue: false,
doubleArray: {doubleValues: []},
doubleValue: '',
intArray: {intValues: []},
intValue: '',
jsonValue: '',
protoArray: {protoValues: [{}]},
protoValue: {},
serializedObjectValue: {objectValue: ''},
stringArray: {stringValues: []},
stringValue: ''
}
}
],
parameters: {
parameters: [
{
key: '',
value: {
booleanArray: {booleanValues: []},
booleanValue: false,
doubleArray: {doubleValues: []},
doubleValue: '',
intArray: {intValues: []},
intValue: '',
protoArray: {protoValues: [{}]},
protoValue: {},
serializedObjectValue: {objectValue: ''},
stringArray: {stringValues: []},
stringValue: ''
}
}
]
},
requestId: '',
scheduleTime: '',
triggerId: ''
},
json: true
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('POST', '{{baseUrl}}/v1/:name:schedule');
req.headers({
'content-type': 'application/json'
});
req.type('json');
req.send({
inputParameters: {},
parameterEntries: [
{
dataType: '',
key: '',
value: {
booleanArray: {
booleanValues: []
},
booleanValue: false,
doubleArray: {
doubleValues: []
},
doubleValue: '',
intArray: {
intValues: []
},
intValue: '',
jsonValue: '',
protoArray: {
protoValues: [
{}
]
},
protoValue: {},
serializedObjectValue: {
objectValue: ''
},
stringArray: {
stringValues: []
},
stringValue: ''
}
}
],
parameters: {
parameters: [
{
key: '',
value: {
booleanArray: {
booleanValues: []
},
booleanValue: false,
doubleArray: {
doubleValues: []
},
doubleValue: '',
intArray: {
intValues: []
},
intValue: '',
protoArray: {
protoValues: [
{}
]
},
protoValue: {},
serializedObjectValue: {
objectValue: ''
},
stringArray: {
stringValues: []
},
stringValue: ''
}
}
]
},
requestId: '',
scheduleTime: '',
triggerId: ''
});
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {
method: 'POST',
url: '{{baseUrl}}/v1/:name:schedule',
headers: {'content-type': 'application/json'},
data: {
inputParameters: {},
parameterEntries: [
{
dataType: '',
key: '',
value: {
booleanArray: {booleanValues: []},
booleanValue: false,
doubleArray: {doubleValues: []},
doubleValue: '',
intArray: {intValues: []},
intValue: '',
jsonValue: '',
protoArray: {protoValues: [{}]},
protoValue: {},
serializedObjectValue: {objectValue: ''},
stringArray: {stringValues: []},
stringValue: ''
}
}
],
parameters: {
parameters: [
{
key: '',
value: {
booleanArray: {booleanValues: []},
booleanValue: false,
doubleArray: {doubleValues: []},
doubleValue: '',
intArray: {intValues: []},
intValue: '',
protoArray: {protoValues: [{}]},
protoValue: {},
serializedObjectValue: {objectValue: ''},
stringArray: {stringValues: []},
stringValue: ''
}
}
]
},
requestId: '',
scheduleTime: '',
triggerId: ''
}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/v1/:name:schedule';
const options = {
method: 'POST',
headers: {'content-type': 'application/json'},
body: '{"inputParameters":{},"parameterEntries":[{"dataType":"","key":"","value":{"booleanArray":{"booleanValues":[]},"booleanValue":false,"doubleArray":{"doubleValues":[]},"doubleValue":"","intArray":{"intValues":[]},"intValue":"","jsonValue":"","protoArray":{"protoValues":[{}]},"protoValue":{},"serializedObjectValue":{"objectValue":""},"stringArray":{"stringValues":[]},"stringValue":""}}],"parameters":{"parameters":[{"key":"","value":{"booleanArray":{"booleanValues":[]},"booleanValue":false,"doubleArray":{"doubleValues":[]},"doubleValue":"","intArray":{"intValues":[]},"intValue":"","protoArray":{"protoValues":[{}]},"protoValue":{},"serializedObjectValue":{"objectValue":""},"stringArray":{"stringValues":[]},"stringValue":""}}]},"requestId":"","scheduleTime":"","triggerId":""}'
};
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 = @{ @"inputParameters": @{ },
@"parameterEntries": @[ @{ @"dataType": @"", @"key": @"", @"value": @{ @"booleanArray": @{ @"booleanValues": @[ ] }, @"booleanValue": @NO, @"doubleArray": @{ @"doubleValues": @[ ] }, @"doubleValue": @"", @"intArray": @{ @"intValues": @[ ] }, @"intValue": @"", @"jsonValue": @"", @"protoArray": @{ @"protoValues": @[ @{ } ] }, @"protoValue": @{ }, @"serializedObjectValue": @{ @"objectValue": @"" }, @"stringArray": @{ @"stringValues": @[ ] }, @"stringValue": @"" } } ],
@"parameters": @{ @"parameters": @[ @{ @"key": @"", @"value": @{ @"booleanArray": @{ @"booleanValues": @[ ] }, @"booleanValue": @NO, @"doubleArray": @{ @"doubleValues": @[ ] }, @"doubleValue": @"", @"intArray": @{ @"intValues": @[ ] }, @"intValue": @"", @"protoArray": @{ @"protoValues": @[ @{ } ] }, @"protoValue": @{ }, @"serializedObjectValue": @{ @"objectValue": @"" }, @"stringArray": @{ @"stringValues": @[ ] }, @"stringValue": @"" } } ] },
@"requestId": @"",
@"scheduleTime": @"",
@"triggerId": @"" };
NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/v1/:name:schedule"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"POST"];
[request setAllHTTPHeaderFields:headers];
[request setHTTPBody:postData];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/v1/:name:schedule" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n \"inputParameters\": {},\n \"parameterEntries\": [\n {\n \"dataType\": \"\",\n \"key\": \"\",\n \"value\": {\n \"booleanArray\": {\n \"booleanValues\": []\n },\n \"booleanValue\": false,\n \"doubleArray\": {\n \"doubleValues\": []\n },\n \"doubleValue\": \"\",\n \"intArray\": {\n \"intValues\": []\n },\n \"intValue\": \"\",\n \"jsonValue\": \"\",\n \"protoArray\": {\n \"protoValues\": [\n {}\n ]\n },\n \"protoValue\": {},\n \"serializedObjectValue\": {\n \"objectValue\": \"\"\n },\n \"stringArray\": {\n \"stringValues\": []\n },\n \"stringValue\": \"\"\n }\n }\n ],\n \"parameters\": {\n \"parameters\": [\n {\n \"key\": \"\",\n \"value\": {\n \"booleanArray\": {\n \"booleanValues\": []\n },\n \"booleanValue\": false,\n \"doubleArray\": {\n \"doubleValues\": []\n },\n \"doubleValue\": \"\",\n \"intArray\": {\n \"intValues\": []\n },\n \"intValue\": \"\",\n \"protoArray\": {\n \"protoValues\": [\n {}\n ]\n },\n \"protoValue\": {},\n \"serializedObjectValue\": {\n \"objectValue\": \"\"\n },\n \"stringArray\": {\n \"stringValues\": []\n },\n \"stringValue\": \"\"\n }\n }\n ]\n },\n \"requestId\": \"\",\n \"scheduleTime\": \"\",\n \"triggerId\": \"\"\n}" in
Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/v1/:name:schedule",
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([
'inputParameters' => [
],
'parameterEntries' => [
[
'dataType' => '',
'key' => '',
'value' => [
'booleanArray' => [
'booleanValues' => [
]
],
'booleanValue' => null,
'doubleArray' => [
'doubleValues' => [
]
],
'doubleValue' => '',
'intArray' => [
'intValues' => [
]
],
'intValue' => '',
'jsonValue' => '',
'protoArray' => [
'protoValues' => [
[
]
]
],
'protoValue' => [
],
'serializedObjectValue' => [
'objectValue' => ''
],
'stringArray' => [
'stringValues' => [
]
],
'stringValue' => ''
]
]
],
'parameters' => [
'parameters' => [
[
'key' => '',
'value' => [
'booleanArray' => [
'booleanValues' => [
]
],
'booleanValue' => null,
'doubleArray' => [
'doubleValues' => [
]
],
'doubleValue' => '',
'intArray' => [
'intValues' => [
]
],
'intValue' => '',
'protoArray' => [
'protoValues' => [
[
]
]
],
'protoValue' => [
],
'serializedObjectValue' => [
'objectValue' => ''
],
'stringArray' => [
'stringValues' => [
]
],
'stringValue' => ''
]
]
]
],
'requestId' => '',
'scheduleTime' => '',
'triggerId' => ''
]),
CURLOPT_HTTPHEADER => [
"content-type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('POST', '{{baseUrl}}/v1/:name:schedule', [
'body' => '{
"inputParameters": {},
"parameterEntries": [
{
"dataType": "",
"key": "",
"value": {
"booleanArray": {
"booleanValues": []
},
"booleanValue": false,
"doubleArray": {
"doubleValues": []
},
"doubleValue": "",
"intArray": {
"intValues": []
},
"intValue": "",
"jsonValue": "",
"protoArray": {
"protoValues": [
{}
]
},
"protoValue": {},
"serializedObjectValue": {
"objectValue": ""
},
"stringArray": {
"stringValues": []
},
"stringValue": ""
}
}
],
"parameters": {
"parameters": [
{
"key": "",
"value": {
"booleanArray": {
"booleanValues": []
},
"booleanValue": false,
"doubleArray": {
"doubleValues": []
},
"doubleValue": "",
"intArray": {
"intValues": []
},
"intValue": "",
"protoArray": {
"protoValues": [
{}
]
},
"protoValue": {},
"serializedObjectValue": {
"objectValue": ""
},
"stringArray": {
"stringValues": []
},
"stringValue": ""
}
}
]
},
"requestId": "",
"scheduleTime": "",
"triggerId": ""
}',
'headers' => [
'content-type' => 'application/json',
],
]);
echo $response->getBody();
setUrl('{{baseUrl}}/v1/:name:schedule');
$request->setMethod(HTTP_METH_POST);
$request->setHeaders([
'content-type' => 'application/json'
]);
$request->setContentType('application/json');
$request->setBody(json_encode([
'inputParameters' => [
],
'parameterEntries' => [
[
'dataType' => '',
'key' => '',
'value' => [
'booleanArray' => [
'booleanValues' => [
]
],
'booleanValue' => null,
'doubleArray' => [
'doubleValues' => [
]
],
'doubleValue' => '',
'intArray' => [
'intValues' => [
]
],
'intValue' => '',
'jsonValue' => '',
'protoArray' => [
'protoValues' => [
[
]
]
],
'protoValue' => [
],
'serializedObjectValue' => [
'objectValue' => ''
],
'stringArray' => [
'stringValues' => [
]
],
'stringValue' => ''
]
]
],
'parameters' => [
'parameters' => [
[
'key' => '',
'value' => [
'booleanArray' => [
'booleanValues' => [
]
],
'booleanValue' => null,
'doubleArray' => [
'doubleValues' => [
]
],
'doubleValue' => '',
'intArray' => [
'intValues' => [
]
],
'intValue' => '',
'protoArray' => [
'protoValues' => [
[
]
]
],
'protoValue' => [
],
'serializedObjectValue' => [
'objectValue' => ''
],
'stringArray' => [
'stringValues' => [
]
],
'stringValue' => ''
]
]
]
],
'requestId' => '',
'scheduleTime' => '',
'triggerId' => ''
]));
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
append(json_encode([
'inputParameters' => [
],
'parameterEntries' => [
[
'dataType' => '',
'key' => '',
'value' => [
'booleanArray' => [
'booleanValues' => [
]
],
'booleanValue' => null,
'doubleArray' => [
'doubleValues' => [
]
],
'doubleValue' => '',
'intArray' => [
'intValues' => [
]
],
'intValue' => '',
'jsonValue' => '',
'protoArray' => [
'protoValues' => [
[
]
]
],
'protoValue' => [
],
'serializedObjectValue' => [
'objectValue' => ''
],
'stringArray' => [
'stringValues' => [
]
],
'stringValue' => ''
]
]
],
'parameters' => [
'parameters' => [
[
'key' => '',
'value' => [
'booleanArray' => [
'booleanValues' => [
]
],
'booleanValue' => null,
'doubleArray' => [
'doubleValues' => [
]
],
'doubleValue' => '',
'intArray' => [
'intValues' => [
]
],
'intValue' => '',
'protoArray' => [
'protoValues' => [
[
]
]
],
'protoValue' => [
],
'serializedObjectValue' => [
'objectValue' => ''
],
'stringArray' => [
'stringValues' => [
]
],
'stringValue' => ''
]
]
]
],
'requestId' => '',
'scheduleTime' => '',
'triggerId' => ''
]));
$request->setRequestUrl('{{baseUrl}}/v1/:name:schedule');
$request->setRequestMethod('POST');
$request->setBody($body);
$request->setHeaders([
'content-type' => 'application/json'
]);
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/v1/:name:schedule' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
"inputParameters": {},
"parameterEntries": [
{
"dataType": "",
"key": "",
"value": {
"booleanArray": {
"booleanValues": []
},
"booleanValue": false,
"doubleArray": {
"doubleValues": []
},
"doubleValue": "",
"intArray": {
"intValues": []
},
"intValue": "",
"jsonValue": "",
"protoArray": {
"protoValues": [
{}
]
},
"protoValue": {},
"serializedObjectValue": {
"objectValue": ""
},
"stringArray": {
"stringValues": []
},
"stringValue": ""
}
}
],
"parameters": {
"parameters": [
{
"key": "",
"value": {
"booleanArray": {
"booleanValues": []
},
"booleanValue": false,
"doubleArray": {
"doubleValues": []
},
"doubleValue": "",
"intArray": {
"intValues": []
},
"intValue": "",
"protoArray": {
"protoValues": [
{}
]
},
"protoValue": {},
"serializedObjectValue": {
"objectValue": ""
},
"stringArray": {
"stringValues": []
},
"stringValue": ""
}
}
]
},
"requestId": "",
"scheduleTime": "",
"triggerId": ""
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/v1/:name:schedule' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
"inputParameters": {},
"parameterEntries": [
{
"dataType": "",
"key": "",
"value": {
"booleanArray": {
"booleanValues": []
},
"booleanValue": false,
"doubleArray": {
"doubleValues": []
},
"doubleValue": "",
"intArray": {
"intValues": []
},
"intValue": "",
"jsonValue": "",
"protoArray": {
"protoValues": [
{}
]
},
"protoValue": {},
"serializedObjectValue": {
"objectValue": ""
},
"stringArray": {
"stringValues": []
},
"stringValue": ""
}
}
],
"parameters": {
"parameters": [
{
"key": "",
"value": {
"booleanArray": {
"booleanValues": []
},
"booleanValue": false,
"doubleArray": {
"doubleValues": []
},
"doubleValue": "",
"intArray": {
"intValues": []
},
"intValue": "",
"protoArray": {
"protoValues": [
{}
]
},
"protoValue": {},
"serializedObjectValue": {
"objectValue": ""
},
"stringArray": {
"stringValues": []
},
"stringValue": ""
}
}
]
},
"requestId": "",
"scheduleTime": "",
"triggerId": ""
}'
import http.client
conn = http.client.HTTPSConnection("example.com")
payload = "{\n \"inputParameters\": {},\n \"parameterEntries\": [\n {\n \"dataType\": \"\",\n \"key\": \"\",\n \"value\": {\n \"booleanArray\": {\n \"booleanValues\": []\n },\n \"booleanValue\": false,\n \"doubleArray\": {\n \"doubleValues\": []\n },\n \"doubleValue\": \"\",\n \"intArray\": {\n \"intValues\": []\n },\n \"intValue\": \"\",\n \"jsonValue\": \"\",\n \"protoArray\": {\n \"protoValues\": [\n {}\n ]\n },\n \"protoValue\": {},\n \"serializedObjectValue\": {\n \"objectValue\": \"\"\n },\n \"stringArray\": {\n \"stringValues\": []\n },\n \"stringValue\": \"\"\n }\n }\n ],\n \"parameters\": {\n \"parameters\": [\n {\n \"key\": \"\",\n \"value\": {\n \"booleanArray\": {\n \"booleanValues\": []\n },\n \"booleanValue\": false,\n \"doubleArray\": {\n \"doubleValues\": []\n },\n \"doubleValue\": \"\",\n \"intArray\": {\n \"intValues\": []\n },\n \"intValue\": \"\",\n \"protoArray\": {\n \"protoValues\": [\n {}\n ]\n },\n \"protoValue\": {},\n \"serializedObjectValue\": {\n \"objectValue\": \"\"\n },\n \"stringArray\": {\n \"stringValues\": []\n },\n \"stringValue\": \"\"\n }\n }\n ]\n },\n \"requestId\": \"\",\n \"scheduleTime\": \"\",\n \"triggerId\": \"\"\n}"
headers = { 'content-type': "application/json" }
conn.request("POST", "/baseUrl/v1/:name:schedule", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/v1/:name:schedule"
payload = {
"inputParameters": {},
"parameterEntries": [
{
"dataType": "",
"key": "",
"value": {
"booleanArray": { "booleanValues": [] },
"booleanValue": False,
"doubleArray": { "doubleValues": [] },
"doubleValue": "",
"intArray": { "intValues": [] },
"intValue": "",
"jsonValue": "",
"protoArray": { "protoValues": [{}] },
"protoValue": {},
"serializedObjectValue": { "objectValue": "" },
"stringArray": { "stringValues": [] },
"stringValue": ""
}
}
],
"parameters": { "parameters": [
{
"key": "",
"value": {
"booleanArray": { "booleanValues": [] },
"booleanValue": False,
"doubleArray": { "doubleValues": [] },
"doubleValue": "",
"intArray": { "intValues": [] },
"intValue": "",
"protoArray": { "protoValues": [{}] },
"protoValue": {},
"serializedObjectValue": { "objectValue": "" },
"stringArray": { "stringValues": [] },
"stringValue": ""
}
}
] },
"requestId": "",
"scheduleTime": "",
"triggerId": ""
}
headers = {"content-type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.json())
library(httr)
url <- "{{baseUrl}}/v1/:name:schedule"
payload <- "{\n \"inputParameters\": {},\n \"parameterEntries\": [\n {\n \"dataType\": \"\",\n \"key\": \"\",\n \"value\": {\n \"booleanArray\": {\n \"booleanValues\": []\n },\n \"booleanValue\": false,\n \"doubleArray\": {\n \"doubleValues\": []\n },\n \"doubleValue\": \"\",\n \"intArray\": {\n \"intValues\": []\n },\n \"intValue\": \"\",\n \"jsonValue\": \"\",\n \"protoArray\": {\n \"protoValues\": [\n {}\n ]\n },\n \"protoValue\": {},\n \"serializedObjectValue\": {\n \"objectValue\": \"\"\n },\n \"stringArray\": {\n \"stringValues\": []\n },\n \"stringValue\": \"\"\n }\n }\n ],\n \"parameters\": {\n \"parameters\": [\n {\n \"key\": \"\",\n \"value\": {\n \"booleanArray\": {\n \"booleanValues\": []\n },\n \"booleanValue\": false,\n \"doubleArray\": {\n \"doubleValues\": []\n },\n \"doubleValue\": \"\",\n \"intArray\": {\n \"intValues\": []\n },\n \"intValue\": \"\",\n \"protoArray\": {\n \"protoValues\": [\n {}\n ]\n },\n \"protoValue\": {},\n \"serializedObjectValue\": {\n \"objectValue\": \"\"\n },\n \"stringArray\": {\n \"stringValues\": []\n },\n \"stringValue\": \"\"\n }\n }\n ]\n },\n \"requestId\": \"\",\n \"scheduleTime\": \"\",\n \"triggerId\": \"\"\n}"
encode <- "json"
response <- VERB("POST", url, body = payload, content_type("application/json"), encode = encode)
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/v1/:name:schedule")
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 \"inputParameters\": {},\n \"parameterEntries\": [\n {\n \"dataType\": \"\",\n \"key\": \"\",\n \"value\": {\n \"booleanArray\": {\n \"booleanValues\": []\n },\n \"booleanValue\": false,\n \"doubleArray\": {\n \"doubleValues\": []\n },\n \"doubleValue\": \"\",\n \"intArray\": {\n \"intValues\": []\n },\n \"intValue\": \"\",\n \"jsonValue\": \"\",\n \"protoArray\": {\n \"protoValues\": [\n {}\n ]\n },\n \"protoValue\": {},\n \"serializedObjectValue\": {\n \"objectValue\": \"\"\n },\n \"stringArray\": {\n \"stringValues\": []\n },\n \"stringValue\": \"\"\n }\n }\n ],\n \"parameters\": {\n \"parameters\": [\n {\n \"key\": \"\",\n \"value\": {\n \"booleanArray\": {\n \"booleanValues\": []\n },\n \"booleanValue\": false,\n \"doubleArray\": {\n \"doubleValues\": []\n },\n \"doubleValue\": \"\",\n \"intArray\": {\n \"intValues\": []\n },\n \"intValue\": \"\",\n \"protoArray\": {\n \"protoValues\": [\n {}\n ]\n },\n \"protoValue\": {},\n \"serializedObjectValue\": {\n \"objectValue\": \"\"\n },\n \"stringArray\": {\n \"stringValues\": []\n },\n \"stringValue\": \"\"\n }\n }\n ]\n },\n \"requestId\": \"\",\n \"scheduleTime\": \"\",\n \"triggerId\": \"\"\n}"
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
headers: {'Content-Type' => 'application/json'}
)
response = conn.post('/baseUrl/v1/:name:schedule') do |req|
req.body = "{\n \"inputParameters\": {},\n \"parameterEntries\": [\n {\n \"dataType\": \"\",\n \"key\": \"\",\n \"value\": {\n \"booleanArray\": {\n \"booleanValues\": []\n },\n \"booleanValue\": false,\n \"doubleArray\": {\n \"doubleValues\": []\n },\n \"doubleValue\": \"\",\n \"intArray\": {\n \"intValues\": []\n },\n \"intValue\": \"\",\n \"jsonValue\": \"\",\n \"protoArray\": {\n \"protoValues\": [\n {}\n ]\n },\n \"protoValue\": {},\n \"serializedObjectValue\": {\n \"objectValue\": \"\"\n },\n \"stringArray\": {\n \"stringValues\": []\n },\n \"stringValue\": \"\"\n }\n }\n ],\n \"parameters\": {\n \"parameters\": [\n {\n \"key\": \"\",\n \"value\": {\n \"booleanArray\": {\n \"booleanValues\": []\n },\n \"booleanValue\": false,\n \"doubleArray\": {\n \"doubleValues\": []\n },\n \"doubleValue\": \"\",\n \"intArray\": {\n \"intValues\": []\n },\n \"intValue\": \"\",\n \"protoArray\": {\n \"protoValues\": [\n {}\n ]\n },\n \"protoValue\": {},\n \"serializedObjectValue\": {\n \"objectValue\": \"\"\n },\n \"stringArray\": {\n \"stringValues\": []\n },\n \"stringValue\": \"\"\n }\n }\n ]\n },\n \"requestId\": \"\",\n \"scheduleTime\": \"\",\n \"triggerId\": \"\"\n}"
end
puts response.status
puts response.body
use serde_json::json;
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/v1/:name:schedule";
let payload = json!({
"inputParameters": json!({}),
"parameterEntries": (
json!({
"dataType": "",
"key": "",
"value": json!({
"booleanArray": json!({"booleanValues": ()}),
"booleanValue": false,
"doubleArray": json!({"doubleValues": ()}),
"doubleValue": "",
"intArray": json!({"intValues": ()}),
"intValue": "",
"jsonValue": "",
"protoArray": json!({"protoValues": (json!({}))}),
"protoValue": json!({}),
"serializedObjectValue": json!({"objectValue": ""}),
"stringArray": json!({"stringValues": ()}),
"stringValue": ""
})
})
),
"parameters": json!({"parameters": (
json!({
"key": "",
"value": json!({
"booleanArray": json!({"booleanValues": ()}),
"booleanValue": false,
"doubleArray": json!({"doubleValues": ()}),
"doubleValue": "",
"intArray": json!({"intValues": ()}),
"intValue": "",
"protoArray": json!({"protoValues": (json!({}))}),
"protoValue": json!({}),
"serializedObjectValue": json!({"objectValue": ""}),
"stringArray": json!({"stringValues": ()}),
"stringValue": ""
})
})
)}),
"requestId": "",
"scheduleTime": "",
"triggerId": ""
});
let mut headers = reqwest::header::HeaderMap::new();
headers.insert("content-type", "application/json".parse().unwrap());
let client = reqwest::Client::new();
let response = client.post(url)
.headers(headers)
.json(&payload)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request POST \
--url {{baseUrl}}/v1/:name:schedule \
--header 'content-type: application/json' \
--data '{
"inputParameters": {},
"parameterEntries": [
{
"dataType": "",
"key": "",
"value": {
"booleanArray": {
"booleanValues": []
},
"booleanValue": false,
"doubleArray": {
"doubleValues": []
},
"doubleValue": "",
"intArray": {
"intValues": []
},
"intValue": "",
"jsonValue": "",
"protoArray": {
"protoValues": [
{}
]
},
"protoValue": {},
"serializedObjectValue": {
"objectValue": ""
},
"stringArray": {
"stringValues": []
},
"stringValue": ""
}
}
],
"parameters": {
"parameters": [
{
"key": "",
"value": {
"booleanArray": {
"booleanValues": []
},
"booleanValue": false,
"doubleArray": {
"doubleValues": []
},
"doubleValue": "",
"intArray": {
"intValues": []
},
"intValue": "",
"protoArray": {
"protoValues": [
{}
]
},
"protoValue": {},
"serializedObjectValue": {
"objectValue": ""
},
"stringArray": {
"stringValues": []
},
"stringValue": ""
}
}
]
},
"requestId": "",
"scheduleTime": "",
"triggerId": ""
}'
echo '{
"inputParameters": {},
"parameterEntries": [
{
"dataType": "",
"key": "",
"value": {
"booleanArray": {
"booleanValues": []
},
"booleanValue": false,
"doubleArray": {
"doubleValues": []
},
"doubleValue": "",
"intArray": {
"intValues": []
},
"intValue": "",
"jsonValue": "",
"protoArray": {
"protoValues": [
{}
]
},
"protoValue": {},
"serializedObjectValue": {
"objectValue": ""
},
"stringArray": {
"stringValues": []
},
"stringValue": ""
}
}
],
"parameters": {
"parameters": [
{
"key": "",
"value": {
"booleanArray": {
"booleanValues": []
},
"booleanValue": false,
"doubleArray": {
"doubleValues": []
},
"doubleValue": "",
"intArray": {
"intValues": []
},
"intValue": "",
"protoArray": {
"protoValues": [
{}
]
},
"protoValue": {},
"serializedObjectValue": {
"objectValue": ""
},
"stringArray": {
"stringValues": []
},
"stringValue": ""
}
}
]
},
"requestId": "",
"scheduleTime": "",
"triggerId": ""
}' | \
http POST {{baseUrl}}/v1/:name:schedule \
content-type:application/json
wget --quiet \
--method POST \
--header 'content-type: application/json' \
--body-data '{\n "inputParameters": {},\n "parameterEntries": [\n {\n "dataType": "",\n "key": "",\n "value": {\n "booleanArray": {\n "booleanValues": []\n },\n "booleanValue": false,\n "doubleArray": {\n "doubleValues": []\n },\n "doubleValue": "",\n "intArray": {\n "intValues": []\n },\n "intValue": "",\n "jsonValue": "",\n "protoArray": {\n "protoValues": [\n {}\n ]\n },\n "protoValue": {},\n "serializedObjectValue": {\n "objectValue": ""\n },\n "stringArray": {\n "stringValues": []\n },\n "stringValue": ""\n }\n }\n ],\n "parameters": {\n "parameters": [\n {\n "key": "",\n "value": {\n "booleanArray": {\n "booleanValues": []\n },\n "booleanValue": false,\n "doubleArray": {\n "doubleValues": []\n },\n "doubleValue": "",\n "intArray": {\n "intValues": []\n },\n "intValue": "",\n "protoArray": {\n "protoValues": [\n {}\n ]\n },\n "protoValue": {},\n "serializedObjectValue": {\n "objectValue": ""\n },\n "stringArray": {\n "stringValues": []\n },\n "stringValue": ""\n }\n }\n ]\n },\n "requestId": "",\n "scheduleTime": "",\n "triggerId": ""\n}' \
--output-document \
- {{baseUrl}}/v1/:name:schedule
import Foundation
let headers = ["content-type": "application/json"]
let parameters = [
"inputParameters": [],
"parameterEntries": [
[
"dataType": "",
"key": "",
"value": [
"booleanArray": ["booleanValues": []],
"booleanValue": false,
"doubleArray": ["doubleValues": []],
"doubleValue": "",
"intArray": ["intValues": []],
"intValue": "",
"jsonValue": "",
"protoArray": ["protoValues": [[]]],
"protoValue": [],
"serializedObjectValue": ["objectValue": ""],
"stringArray": ["stringValues": []],
"stringValue": ""
]
]
],
"parameters": ["parameters": [
[
"key": "",
"value": [
"booleanArray": ["booleanValues": []],
"booleanValue": false,
"doubleArray": ["doubleValues": []],
"doubleValue": "",
"intArray": ["intValues": []],
"intValue": "",
"protoArray": ["protoValues": [[]]],
"protoValue": [],
"serializedObjectValue": ["objectValue": ""],
"stringArray": ["stringValues": []],
"stringValue": ""
]
]
]],
"requestId": "",
"scheduleTime": "",
"triggerId": ""
] as [String : Any]
let postData = JSONSerialization.data(withJSONObject: parameters, options: [])
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/v1/:name:schedule")! 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
integrations.projects.locations.products.integrations.test
{{baseUrl}}/v1/:name:test
QUERY PARAMS
name
BODY json
{
"clientId": "",
"deadlineSecondsTime": "",
"inputParameters": {},
"integrationVersion": {
"createTime": "",
"databasePersistencePolicy": "",
"description": "",
"errorCatcherConfigs": [
{
"description": "",
"errorCatcherId": "",
"errorCatcherNumber": "",
"label": "",
"position": {
"x": 0,
"y": 0
},
"startErrorTasks": [
{
"condition": "",
"description": "",
"displayName": "",
"taskConfigId": "",
"taskId": ""
}
]
}
],
"integrationParameters": [
{
"dataType": "",
"defaultValue": {
"booleanArray": {
"booleanValues": []
},
"booleanValue": false,
"doubleArray": {
"doubleValues": []
},
"doubleValue": "",
"intArray": {
"intValues": []
},
"intValue": "",
"jsonValue": "",
"stringArray": {
"stringValues": []
},
"stringValue": ""
},
"displayName": "",
"inputOutputType": "",
"isTransient": false,
"jsonSchema": "",
"key": "",
"producer": "",
"searchable": false
}
],
"integrationParametersInternal": {
"parameters": [
{
"attributes": {
"dataType": "",
"defaultValue": {
"booleanValue": false,
"doubleArray": {
"values": []
},
"doubleValue": "",
"intArray": {
"values": []
},
"intValue": "",
"protoValue": {},
"stringArray": {
"values": []
},
"stringValue": ""
},
"isRequired": false,
"isSearchable": false,
"logSettings": {
"logFieldName": "",
"sanitizeOptions": {
"isAlreadySanitized": false,
"logType": [],
"privacy": "",
"sanitizeType": ""
},
"seedPeriod": "",
"seedScope": "",
"shorteningLimits": {
"logAction": "",
"logType": [],
"maxArraySize": 0,
"maxStringLength": 0,
"shortenerType": ""
}
},
"searchable": "",
"taskVisibility": []
},
"children": [],
"dataType": "",
"defaultValue": {
"booleanArray": {
"booleanValues": []
},
"booleanValue": false,
"doubleArray": {
"doubleValues": []
},
"doubleValue": "",
"intArray": {
"intValues": []
},
"intValue": "",
"jsonValue": "",
"protoArray": {
"protoValues": [
{}
]
},
"protoValue": {},
"serializedObjectValue": {
"objectValue": ""
},
"stringArray": {
"stringValues": []
},
"stringValue": ""
},
"inOutType": "",
"isTransient": false,
"jsonSchema": "",
"key": "",
"name": "",
"producedBy": {
"elementIdentifier": "",
"elementType": ""
},
"producer": "",
"protoDefName": "",
"protoDefPath": ""
}
]
},
"lastModifierEmail": "",
"lockHolder": "",
"name": "",
"origin": "",
"parentTemplateId": "",
"runAsServiceAccount": "",
"snapshotNumber": "",
"state": "",
"status": "",
"taskConfigs": [
{
"description": "",
"displayName": "",
"errorCatcherId": "",
"externalTaskType": "",
"failurePolicy": {
"intervalTime": "",
"maxRetries": 0,
"retryStrategy": ""
},
"jsonValidationOption": "",
"nextTasks": [
{}
],
"nextTasksExecutionPolicy": "",
"parameters": {},
"position": {},
"successPolicy": {
"finalState": ""
},
"synchronousCallFailurePolicy": {},
"task": "",
"taskExecutionStrategy": "",
"taskId": "",
"taskTemplate": ""
}
],
"taskConfigsInternal": [
{
"alertConfigs": [
{
"aggregationPeriod": "",
"alertDisabled": false,
"alertName": "",
"clientId": "",
"durationThresholdMs": "",
"errorEnumList": {
"enumStrings": [],
"filterType": ""
},
"metricType": "",
"numAggregationPeriods": 0,
"onlyFinalAttempt": false,
"playbookUrl": "",
"thresholdType": "",
"thresholdValue": {
"absolute": "",
"percentage": 0
},
"warningEnumList": {}
}
],
"createTime": "",
"creatorEmail": "",
"description": "",
"disableStrictTypeValidation": false,
"errorCatcherId": "",
"externalTaskType": "",
"failurePolicy": {
"intervalInSeconds": "",
"maxNumRetries": 0,
"retryStrategy": ""
},
"incomingEdgeCount": 0,
"jsonValidationOption": "",
"label": "",
"lastModifiedTime": "",
"nextTasks": [
{
"combinedConditions": [
{
"conditions": [
{
"eventPropertyKey": "",
"operator": "",
"value": {}
}
]
}
],
"condition": "",
"description": "",
"label": "",
"taskConfigId": "",
"taskNumber": ""
}
],
"nextTasksExecutionPolicy": "",
"parameters": {},
"position": {
"x": 0,
"y": 0
},
"precondition": "",
"preconditionLabel": "",
"rollbackStrategy": {
"parameters": {
"parameters": [
{
"dataType": "",
"key": "",
"value": {}
}
]
},
"rollbackTaskImplementationClassName": "",
"taskNumbersToRollback": []
},
"successPolicy": {
"finalState": ""
},
"synchronousCallFailurePolicy": {},
"taskEntity": {
"disabledForVpcSc": false,
"metadata": {
"activeTaskName": "",
"admins": [
{
"googleGroupEmail": "",
"userEmail": ""
}
],
"category": "",
"codeSearchLink": "",
"defaultJsonValidationOption": "",
"defaultSpec": "",
"description": "",
"descriptiveName": "",
"docMarkdown": "",
"externalCategory": "",
"externalCategorySequence": 0,
"externalDocHtml": "",
"externalDocLink": "",
"externalDocMarkdown": "",
"g3DocLink": "",
"iconLink": "",
"isDeprecated": false,
"name": "",
"standaloneExternalDocHtml": "",
"status": "",
"system": "",
"tags": []
},
"paramSpecs": {
"parameters": [
{
"className": "",
"collectionElementClassName": "",
"config": {
"descriptivePhrase": "",
"helpText": "",
"hideDefaultValue": false,
"inputDisplayOption": "",
"isHidden": false,
"label": "",
"parameterNameOption": "",
"subSectionLabel": "",
"uiPlaceholderText": ""
},
"dataType": "",
"defaultValue": {},
"isDeprecated": false,
"isOutput": false,
"jsonSchema": "",
"key": "",
"protoDef": {
"fullName": "",
"path": ""
},
"required": false,
"validationRule": {
"doubleRange": {
"max": "",
"min": ""
},
"intRange": {
"max": "",
"min": ""
},
"stringRegex": {
"exclusive": false,
"regex": ""
}
}
}
]
},
"stats": {
"dimensions": {
"clientId": "",
"enumFilterType": "",
"errorEnumString": "",
"retryAttempt": "",
"taskName": "",
"taskNumber": "",
"triggerId": "",
"warningEnumString": "",
"workflowId": "",
"workflowName": ""
},
"durationInSeconds": "",
"errorRate": "",
"qps": "",
"warningRate": ""
},
"taskType": "",
"uiConfig": {
"taskUiModuleConfigs": [
{
"moduleId": ""
}
]
}
},
"taskExecutionStrategy": "",
"taskName": "",
"taskNumber": "",
"taskSpec": "",
"taskTemplateName": "",
"taskType": ""
}
],
"teardown": {
"teardownTaskConfigs": [
{
"creatorEmail": "",
"name": "",
"nextTeardownTask": {
"name": ""
},
"parameters": {
"parameters": [
{
"key": "",
"value": {
"booleanArray": {
"booleanValues": []
},
"booleanValue": false,
"doubleArray": {
"doubleValues": []
},
"doubleValue": "",
"intArray": {
"intValues": []
},
"intValue": "",
"protoArray": {
"protoValues": [
{}
]
},
"protoValue": {},
"serializedObjectValue": {
"objectValue": ""
},
"stringArray": {
"stringValues": []
},
"stringValue": ""
}
}
]
},
"properties": {
"properties": [
{
"key": "",
"value": {}
}
]
},
"teardownTaskImplementationClassName": ""
}
]
},
"triggerConfigs": [
{
"alertConfig": [
{
"aggregationPeriod": "",
"alertThreshold": 0,
"disableAlert": false,
"displayName": "",
"durationThreshold": "",
"metricType": "",
"onlyFinalAttempt": false,
"thresholdType": "",
"thresholdValue": {
"absolute": "",
"percentage": 0
}
}
],
"cloudSchedulerConfig": {
"cronTab": "",
"errorMessage": "",
"location": "",
"serviceAccountEmail": ""
},
"description": "",
"errorCatcherId": "",
"label": "",
"nextTasksExecutionPolicy": "",
"position": {},
"properties": {},
"startTasks": [
{}
],
"triggerId": "",
"triggerNumber": "",
"triggerType": ""
}
],
"triggerConfigsInternal": [
{
"alertConfig": [
{
"aggregationPeriod": "",
"alertDisabled": false,
"alertName": "",
"clientId": "",
"durationThresholdMs": "",
"errorEnumList": {},
"metricType": "",
"numAggregationPeriods": 0,
"onlyFinalAttempt": false,
"playbookUrl": "",
"thresholdType": "",
"thresholdValue": {},
"warningEnumList": {}
}
],
"cloudSchedulerConfig": {
"cronTab": "",
"errorMessage": "",
"location": "",
"serviceAccountEmail": ""
},
"description": "",
"enabledClients": [],
"errorCatcherId": "",
"label": "",
"nextTasksExecutionPolicy": "",
"pauseWorkflowExecutions": false,
"position": {},
"properties": {},
"startTasks": [
{}
],
"triggerCriteria": {
"condition": "",
"parameters": {},
"triggerCriteriaTaskImplementationClassName": ""
},
"triggerId": "",
"triggerNumber": "",
"triggerType": ""
}
],
"updateTime": "",
"userLabel": ""
},
"parameters": {},
"testMode": false,
"triggerId": ""
}
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/v1/:name:test");
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 \"clientId\": \"\",\n \"deadlineSecondsTime\": \"\",\n \"inputParameters\": {},\n \"integrationVersion\": {\n \"createTime\": \"\",\n \"databasePersistencePolicy\": \"\",\n \"description\": \"\",\n \"errorCatcherConfigs\": [\n {\n \"description\": \"\",\n \"errorCatcherId\": \"\",\n \"errorCatcherNumber\": \"\",\n \"label\": \"\",\n \"position\": {\n \"x\": 0,\n \"y\": 0\n },\n \"startErrorTasks\": [\n {\n \"condition\": \"\",\n \"description\": \"\",\n \"displayName\": \"\",\n \"taskConfigId\": \"\",\n \"taskId\": \"\"\n }\n ]\n }\n ],\n \"integrationParameters\": [\n {\n \"dataType\": \"\",\n \"defaultValue\": {\n \"booleanArray\": {\n \"booleanValues\": []\n },\n \"booleanValue\": false,\n \"doubleArray\": {\n \"doubleValues\": []\n },\n \"doubleValue\": \"\",\n \"intArray\": {\n \"intValues\": []\n },\n \"intValue\": \"\",\n \"jsonValue\": \"\",\n \"stringArray\": {\n \"stringValues\": []\n },\n \"stringValue\": \"\"\n },\n \"displayName\": \"\",\n \"inputOutputType\": \"\",\n \"isTransient\": false,\n \"jsonSchema\": \"\",\n \"key\": \"\",\n \"producer\": \"\",\n \"searchable\": false\n }\n ],\n \"integrationParametersInternal\": {\n \"parameters\": [\n {\n \"attributes\": {\n \"dataType\": \"\",\n \"defaultValue\": {\n \"booleanValue\": false,\n \"doubleArray\": {\n \"values\": []\n },\n \"doubleValue\": \"\",\n \"intArray\": {\n \"values\": []\n },\n \"intValue\": \"\",\n \"protoValue\": {},\n \"stringArray\": {\n \"values\": []\n },\n \"stringValue\": \"\"\n },\n \"isRequired\": false,\n \"isSearchable\": false,\n \"logSettings\": {\n \"logFieldName\": \"\",\n \"sanitizeOptions\": {\n \"isAlreadySanitized\": false,\n \"logType\": [],\n \"privacy\": \"\",\n \"sanitizeType\": \"\"\n },\n \"seedPeriod\": \"\",\n \"seedScope\": \"\",\n \"shorteningLimits\": {\n \"logAction\": \"\",\n \"logType\": [],\n \"maxArraySize\": 0,\n \"maxStringLength\": 0,\n \"shortenerType\": \"\"\n }\n },\n \"searchable\": \"\",\n \"taskVisibility\": []\n },\n \"children\": [],\n \"dataType\": \"\",\n \"defaultValue\": {\n \"booleanArray\": {\n \"booleanValues\": []\n },\n \"booleanValue\": false,\n \"doubleArray\": {\n \"doubleValues\": []\n },\n \"doubleValue\": \"\",\n \"intArray\": {\n \"intValues\": []\n },\n \"intValue\": \"\",\n \"jsonValue\": \"\",\n \"protoArray\": {\n \"protoValues\": [\n {}\n ]\n },\n \"protoValue\": {},\n \"serializedObjectValue\": {\n \"objectValue\": \"\"\n },\n \"stringArray\": {\n \"stringValues\": []\n },\n \"stringValue\": \"\"\n },\n \"inOutType\": \"\",\n \"isTransient\": false,\n \"jsonSchema\": \"\",\n \"key\": \"\",\n \"name\": \"\",\n \"producedBy\": {\n \"elementIdentifier\": \"\",\n \"elementType\": \"\"\n },\n \"producer\": \"\",\n \"protoDefName\": \"\",\n \"protoDefPath\": \"\"\n }\n ]\n },\n \"lastModifierEmail\": \"\",\n \"lockHolder\": \"\",\n \"name\": \"\",\n \"origin\": \"\",\n \"parentTemplateId\": \"\",\n \"runAsServiceAccount\": \"\",\n \"snapshotNumber\": \"\",\n \"state\": \"\",\n \"status\": \"\",\n \"taskConfigs\": [\n {\n \"description\": \"\",\n \"displayName\": \"\",\n \"errorCatcherId\": \"\",\n \"externalTaskType\": \"\",\n \"failurePolicy\": {\n \"intervalTime\": \"\",\n \"maxRetries\": 0,\n \"retryStrategy\": \"\"\n },\n \"jsonValidationOption\": \"\",\n \"nextTasks\": [\n {}\n ],\n \"nextTasksExecutionPolicy\": \"\",\n \"parameters\": {},\n \"position\": {},\n \"successPolicy\": {\n \"finalState\": \"\"\n },\n \"synchronousCallFailurePolicy\": {},\n \"task\": \"\",\n \"taskExecutionStrategy\": \"\",\n \"taskId\": \"\",\n \"taskTemplate\": \"\"\n }\n ],\n \"taskConfigsInternal\": [\n {\n \"alertConfigs\": [\n {\n \"aggregationPeriod\": \"\",\n \"alertDisabled\": false,\n \"alertName\": \"\",\n \"clientId\": \"\",\n \"durationThresholdMs\": \"\",\n \"errorEnumList\": {\n \"enumStrings\": [],\n \"filterType\": \"\"\n },\n \"metricType\": \"\",\n \"numAggregationPeriods\": 0,\n \"onlyFinalAttempt\": false,\n \"playbookUrl\": \"\",\n \"thresholdType\": \"\",\n \"thresholdValue\": {\n \"absolute\": \"\",\n \"percentage\": 0\n },\n \"warningEnumList\": {}\n }\n ],\n \"createTime\": \"\",\n \"creatorEmail\": \"\",\n \"description\": \"\",\n \"disableStrictTypeValidation\": false,\n \"errorCatcherId\": \"\",\n \"externalTaskType\": \"\",\n \"failurePolicy\": {\n \"intervalInSeconds\": \"\",\n \"maxNumRetries\": 0,\n \"retryStrategy\": \"\"\n },\n \"incomingEdgeCount\": 0,\n \"jsonValidationOption\": \"\",\n \"label\": \"\",\n \"lastModifiedTime\": \"\",\n \"nextTasks\": [\n {\n \"combinedConditions\": [\n {\n \"conditions\": [\n {\n \"eventPropertyKey\": \"\",\n \"operator\": \"\",\n \"value\": {}\n }\n ]\n }\n ],\n \"condition\": \"\",\n \"description\": \"\",\n \"label\": \"\",\n \"taskConfigId\": \"\",\n \"taskNumber\": \"\"\n }\n ],\n \"nextTasksExecutionPolicy\": \"\",\n \"parameters\": {},\n \"position\": {\n \"x\": 0,\n \"y\": 0\n },\n \"precondition\": \"\",\n \"preconditionLabel\": \"\",\n \"rollbackStrategy\": {\n \"parameters\": {\n \"parameters\": [\n {\n \"dataType\": \"\",\n \"key\": \"\",\n \"value\": {}\n }\n ]\n },\n \"rollbackTaskImplementationClassName\": \"\",\n \"taskNumbersToRollback\": []\n },\n \"successPolicy\": {\n \"finalState\": \"\"\n },\n \"synchronousCallFailurePolicy\": {},\n \"taskEntity\": {\n \"disabledForVpcSc\": false,\n \"metadata\": {\n \"activeTaskName\": \"\",\n \"admins\": [\n {\n \"googleGroupEmail\": \"\",\n \"userEmail\": \"\"\n }\n ],\n \"category\": \"\",\n \"codeSearchLink\": \"\",\n \"defaultJsonValidationOption\": \"\",\n \"defaultSpec\": \"\",\n \"description\": \"\",\n \"descriptiveName\": \"\",\n \"docMarkdown\": \"\",\n \"externalCategory\": \"\",\n \"externalCategorySequence\": 0,\n \"externalDocHtml\": \"\",\n \"externalDocLink\": \"\",\n \"externalDocMarkdown\": \"\",\n \"g3DocLink\": \"\",\n \"iconLink\": \"\",\n \"isDeprecated\": false,\n \"name\": \"\",\n \"standaloneExternalDocHtml\": \"\",\n \"status\": \"\",\n \"system\": \"\",\n \"tags\": []\n },\n \"paramSpecs\": {\n \"parameters\": [\n {\n \"className\": \"\",\n \"collectionElementClassName\": \"\",\n \"config\": {\n \"descriptivePhrase\": \"\",\n \"helpText\": \"\",\n \"hideDefaultValue\": false,\n \"inputDisplayOption\": \"\",\n \"isHidden\": false,\n \"label\": \"\",\n \"parameterNameOption\": \"\",\n \"subSectionLabel\": \"\",\n \"uiPlaceholderText\": \"\"\n },\n \"dataType\": \"\",\n \"defaultValue\": {},\n \"isDeprecated\": false,\n \"isOutput\": false,\n \"jsonSchema\": \"\",\n \"key\": \"\",\n \"protoDef\": {\n \"fullName\": \"\",\n \"path\": \"\"\n },\n \"required\": false,\n \"validationRule\": {\n \"doubleRange\": {\n \"max\": \"\",\n \"min\": \"\"\n },\n \"intRange\": {\n \"max\": \"\",\n \"min\": \"\"\n },\n \"stringRegex\": {\n \"exclusive\": false,\n \"regex\": \"\"\n }\n }\n }\n ]\n },\n \"stats\": {\n \"dimensions\": {\n \"clientId\": \"\",\n \"enumFilterType\": \"\",\n \"errorEnumString\": \"\",\n \"retryAttempt\": \"\",\n \"taskName\": \"\",\n \"taskNumber\": \"\",\n \"triggerId\": \"\",\n \"warningEnumString\": \"\",\n \"workflowId\": \"\",\n \"workflowName\": \"\"\n },\n \"durationInSeconds\": \"\",\n \"errorRate\": \"\",\n \"qps\": \"\",\n \"warningRate\": \"\"\n },\n \"taskType\": \"\",\n \"uiConfig\": {\n \"taskUiModuleConfigs\": [\n {\n \"moduleId\": \"\"\n }\n ]\n }\n },\n \"taskExecutionStrategy\": \"\",\n \"taskName\": \"\",\n \"taskNumber\": \"\",\n \"taskSpec\": \"\",\n \"taskTemplateName\": \"\",\n \"taskType\": \"\"\n }\n ],\n \"teardown\": {\n \"teardownTaskConfigs\": [\n {\n \"creatorEmail\": \"\",\n \"name\": \"\",\n \"nextTeardownTask\": {\n \"name\": \"\"\n },\n \"parameters\": {\n \"parameters\": [\n {\n \"key\": \"\",\n \"value\": {\n \"booleanArray\": {\n \"booleanValues\": []\n },\n \"booleanValue\": false,\n \"doubleArray\": {\n \"doubleValues\": []\n },\n \"doubleValue\": \"\",\n \"intArray\": {\n \"intValues\": []\n },\n \"intValue\": \"\",\n \"protoArray\": {\n \"protoValues\": [\n {}\n ]\n },\n \"protoValue\": {},\n \"serializedObjectValue\": {\n \"objectValue\": \"\"\n },\n \"stringArray\": {\n \"stringValues\": []\n },\n \"stringValue\": \"\"\n }\n }\n ]\n },\n \"properties\": {\n \"properties\": [\n {\n \"key\": \"\",\n \"value\": {}\n }\n ]\n },\n \"teardownTaskImplementationClassName\": \"\"\n }\n ]\n },\n \"triggerConfigs\": [\n {\n \"alertConfig\": [\n {\n \"aggregationPeriod\": \"\",\n \"alertThreshold\": 0,\n \"disableAlert\": false,\n \"displayName\": \"\",\n \"durationThreshold\": \"\",\n \"metricType\": \"\",\n \"onlyFinalAttempt\": false,\n \"thresholdType\": \"\",\n \"thresholdValue\": {\n \"absolute\": \"\",\n \"percentage\": 0\n }\n }\n ],\n \"cloudSchedulerConfig\": {\n \"cronTab\": \"\",\n \"errorMessage\": \"\",\n \"location\": \"\",\n \"serviceAccountEmail\": \"\"\n },\n \"description\": \"\",\n \"errorCatcherId\": \"\",\n \"label\": \"\",\n \"nextTasksExecutionPolicy\": \"\",\n \"position\": {},\n \"properties\": {},\n \"startTasks\": [\n {}\n ],\n \"triggerId\": \"\",\n \"triggerNumber\": \"\",\n \"triggerType\": \"\"\n }\n ],\n \"triggerConfigsInternal\": [\n {\n \"alertConfig\": [\n {\n \"aggregationPeriod\": \"\",\n \"alertDisabled\": false,\n \"alertName\": \"\",\n \"clientId\": \"\",\n \"durationThresholdMs\": \"\",\n \"errorEnumList\": {},\n \"metricType\": \"\",\n \"numAggregationPeriods\": 0,\n \"onlyFinalAttempt\": false,\n \"playbookUrl\": \"\",\n \"thresholdType\": \"\",\n \"thresholdValue\": {},\n \"warningEnumList\": {}\n }\n ],\n \"cloudSchedulerConfig\": {\n \"cronTab\": \"\",\n \"errorMessage\": \"\",\n \"location\": \"\",\n \"serviceAccountEmail\": \"\"\n },\n \"description\": \"\",\n \"enabledClients\": [],\n \"errorCatcherId\": \"\",\n \"label\": \"\",\n \"nextTasksExecutionPolicy\": \"\",\n \"pauseWorkflowExecutions\": false,\n \"position\": {},\n \"properties\": {},\n \"startTasks\": [\n {}\n ],\n \"triggerCriteria\": {\n \"condition\": \"\",\n \"parameters\": {},\n \"triggerCriteriaTaskImplementationClassName\": \"\"\n },\n \"triggerId\": \"\",\n \"triggerNumber\": \"\",\n \"triggerType\": \"\"\n }\n ],\n \"updateTime\": \"\",\n \"userLabel\": \"\"\n },\n \"parameters\": {},\n \"testMode\": false,\n \"triggerId\": \"\"\n}");
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/post "{{baseUrl}}/v1/:name:test" {:content-type :json
:form-params {:clientId ""
:deadlineSecondsTime ""
:inputParameters {}
:integrationVersion {:createTime ""
:databasePersistencePolicy ""
:description ""
:errorCatcherConfigs [{:description ""
:errorCatcherId ""
:errorCatcherNumber ""
:label ""
:position {:x 0
:y 0}
:startErrorTasks [{:condition ""
:description ""
:displayName ""
:taskConfigId ""
:taskId ""}]}]
:integrationParameters [{:dataType ""
:defaultValue {:booleanArray {:booleanValues []}
:booleanValue false
:doubleArray {:doubleValues []}
:doubleValue ""
:intArray {:intValues []}
:intValue ""
:jsonValue ""
:stringArray {:stringValues []}
:stringValue ""}
:displayName ""
:inputOutputType ""
:isTransient false
:jsonSchema ""
:key ""
:producer ""
:searchable false}]
:integrationParametersInternal {:parameters [{:attributes {:dataType ""
:defaultValue {:booleanValue false
:doubleArray {:values []}
:doubleValue ""
:intArray {:values []}
:intValue ""
:protoValue {}
:stringArray {:values []}
:stringValue ""}
:isRequired false
:isSearchable false
:logSettings {:logFieldName ""
:sanitizeOptions {:isAlreadySanitized false
:logType []
:privacy ""
:sanitizeType ""}
:seedPeriod ""
:seedScope ""
:shorteningLimits {:logAction ""
:logType []
:maxArraySize 0
:maxStringLength 0
:shortenerType ""}}
:searchable ""
:taskVisibility []}
:children []
:dataType ""
:defaultValue {:booleanArray {:booleanValues []}
:booleanValue false
:doubleArray {:doubleValues []}
:doubleValue ""
:intArray {:intValues []}
:intValue ""
:jsonValue ""
:protoArray {:protoValues [{}]}
:protoValue {}
:serializedObjectValue {:objectValue ""}
:stringArray {:stringValues []}
:stringValue ""}
:inOutType ""
:isTransient false
:jsonSchema ""
:key ""
:name ""
:producedBy {:elementIdentifier ""
:elementType ""}
:producer ""
:protoDefName ""
:protoDefPath ""}]}
:lastModifierEmail ""
:lockHolder ""
:name ""
:origin ""
:parentTemplateId ""
:runAsServiceAccount ""
:snapshotNumber ""
:state ""
:status ""
:taskConfigs [{:description ""
:displayName ""
:errorCatcherId ""
:externalTaskType ""
:failurePolicy {:intervalTime ""
:maxRetries 0
:retryStrategy ""}
:jsonValidationOption ""
:nextTasks [{}]
:nextTasksExecutionPolicy ""
:parameters {}
:position {}
:successPolicy {:finalState ""}
:synchronousCallFailurePolicy {}
:task ""
:taskExecutionStrategy ""
:taskId ""
:taskTemplate ""}]
:taskConfigsInternal [{:alertConfigs [{:aggregationPeriod ""
:alertDisabled false
:alertName ""
:clientId ""
:durationThresholdMs ""
:errorEnumList {:enumStrings []
:filterType ""}
:metricType ""
:numAggregationPeriods 0
:onlyFinalAttempt false
:playbookUrl ""
:thresholdType ""
:thresholdValue {:absolute ""
:percentage 0}
:warningEnumList {}}]
:createTime ""
:creatorEmail ""
:description ""
:disableStrictTypeValidation false
:errorCatcherId ""
:externalTaskType ""
:failurePolicy {:intervalInSeconds ""
:maxNumRetries 0
:retryStrategy ""}
:incomingEdgeCount 0
:jsonValidationOption ""
:label ""
:lastModifiedTime ""
:nextTasks [{:combinedConditions [{:conditions [{:eventPropertyKey ""
:operator ""
:value {}}]}]
:condition ""
:description ""
:label ""
:taskConfigId ""
:taskNumber ""}]
:nextTasksExecutionPolicy ""
:parameters {}
:position {:x 0
:y 0}
:precondition ""
:preconditionLabel ""
:rollbackStrategy {:parameters {:parameters [{:dataType ""
:key ""
:value {}}]}
:rollbackTaskImplementationClassName ""
:taskNumbersToRollback []}
:successPolicy {:finalState ""}
:synchronousCallFailurePolicy {}
:taskEntity {:disabledForVpcSc false
:metadata {:activeTaskName ""
:admins [{:googleGroupEmail ""
:userEmail ""}]
:category ""
:codeSearchLink ""
:defaultJsonValidationOption ""
:defaultSpec ""
:description ""
:descriptiveName ""
:docMarkdown ""
:externalCategory ""
:externalCategorySequence 0
:externalDocHtml ""
:externalDocLink ""
:externalDocMarkdown ""
:g3DocLink ""
:iconLink ""
:isDeprecated false
:name ""
:standaloneExternalDocHtml ""
:status ""
:system ""
:tags []}
:paramSpecs {:parameters [{:className ""
:collectionElementClassName ""
:config {:descriptivePhrase ""
:helpText ""
:hideDefaultValue false
:inputDisplayOption ""
:isHidden false
:label ""
:parameterNameOption ""
:subSectionLabel ""
:uiPlaceholderText ""}
:dataType ""
:defaultValue {}
:isDeprecated false
:isOutput false
:jsonSchema ""
:key ""
:protoDef {:fullName ""
:path ""}
:required false
:validationRule {:doubleRange {:max ""
:min ""}
:intRange {:max ""
:min ""}
:stringRegex {:exclusive false
:regex ""}}}]}
:stats {:dimensions {:clientId ""
:enumFilterType ""
:errorEnumString ""
:retryAttempt ""
:taskName ""
:taskNumber ""
:triggerId ""
:warningEnumString ""
:workflowId ""
:workflowName ""}
:durationInSeconds ""
:errorRate ""
:qps ""
:warningRate ""}
:taskType ""
:uiConfig {:taskUiModuleConfigs [{:moduleId ""}]}}
:taskExecutionStrategy ""
:taskName ""
:taskNumber ""
:taskSpec ""
:taskTemplateName ""
:taskType ""}]
:teardown {:teardownTaskConfigs [{:creatorEmail ""
:name ""
:nextTeardownTask {:name ""}
:parameters {:parameters [{:key ""
:value {:booleanArray {:booleanValues []}
:booleanValue false
:doubleArray {:doubleValues []}
:doubleValue ""
:intArray {:intValues []}
:intValue ""
:protoArray {:protoValues [{}]}
:protoValue {}
:serializedObjectValue {:objectValue ""}
:stringArray {:stringValues []}
:stringValue ""}}]}
:properties {:properties [{:key ""
:value {}}]}
:teardownTaskImplementationClassName ""}]}
:triggerConfigs [{:alertConfig [{:aggregationPeriod ""
:alertThreshold 0
:disableAlert false
:displayName ""
:durationThreshold ""
:metricType ""
:onlyFinalAttempt false
:thresholdType ""
:thresholdValue {:absolute ""
:percentage 0}}]
:cloudSchedulerConfig {:cronTab ""
:errorMessage ""
:location ""
:serviceAccountEmail ""}
:description ""
:errorCatcherId ""
:label ""
:nextTasksExecutionPolicy ""
:position {}
:properties {}
:startTasks [{}]
:triggerId ""
:triggerNumber ""
:triggerType ""}]
:triggerConfigsInternal [{:alertConfig [{:aggregationPeriod ""
:alertDisabled false
:alertName ""
:clientId ""
:durationThresholdMs ""
:errorEnumList {}
:metricType ""
:numAggregationPeriods 0
:onlyFinalAttempt false
:playbookUrl ""
:thresholdType ""
:thresholdValue {}
:warningEnumList {}}]
:cloudSchedulerConfig {:cronTab ""
:errorMessage ""
:location ""
:serviceAccountEmail ""}
:description ""
:enabledClients []
:errorCatcherId ""
:label ""
:nextTasksExecutionPolicy ""
:pauseWorkflowExecutions false
:position {}
:properties {}
:startTasks [{}]
:triggerCriteria {:condition ""
:parameters {}
:triggerCriteriaTaskImplementationClassName ""}
:triggerId ""
:triggerNumber ""
:triggerType ""}]
:updateTime ""
:userLabel ""}
:parameters {}
:testMode false
:triggerId ""}})
require "http/client"
url = "{{baseUrl}}/v1/:name:test"
headers = HTTP::Headers{
"content-type" => "application/json"
}
reqBody = "{\n \"clientId\": \"\",\n \"deadlineSecondsTime\": \"\",\n \"inputParameters\": {},\n \"integrationVersion\": {\n \"createTime\": \"\",\n \"databasePersistencePolicy\": \"\",\n \"description\": \"\",\n \"errorCatcherConfigs\": [\n {\n \"description\": \"\",\n \"errorCatcherId\": \"\",\n \"errorCatcherNumber\": \"\",\n \"label\": \"\",\n \"position\": {\n \"x\": 0,\n \"y\": 0\n },\n \"startErrorTasks\": [\n {\n \"condition\": \"\",\n \"description\": \"\",\n \"displayName\": \"\",\n \"taskConfigId\": \"\",\n \"taskId\": \"\"\n }\n ]\n }\n ],\n \"integrationParameters\": [\n {\n \"dataType\": \"\",\n \"defaultValue\": {\n \"booleanArray\": {\n \"booleanValues\": []\n },\n \"booleanValue\": false,\n \"doubleArray\": {\n \"doubleValues\": []\n },\n \"doubleValue\": \"\",\n \"intArray\": {\n \"intValues\": []\n },\n \"intValue\": \"\",\n \"jsonValue\": \"\",\n \"stringArray\": {\n \"stringValues\": []\n },\n \"stringValue\": \"\"\n },\n \"displayName\": \"\",\n \"inputOutputType\": \"\",\n \"isTransient\": false,\n \"jsonSchema\": \"\",\n \"key\": \"\",\n \"producer\": \"\",\n \"searchable\": false\n }\n ],\n \"integrationParametersInternal\": {\n \"parameters\": [\n {\n \"attributes\": {\n \"dataType\": \"\",\n \"defaultValue\": {\n \"booleanValue\": false,\n \"doubleArray\": {\n \"values\": []\n },\n \"doubleValue\": \"\",\n \"intArray\": {\n \"values\": []\n },\n \"intValue\": \"\",\n \"protoValue\": {},\n \"stringArray\": {\n \"values\": []\n },\n \"stringValue\": \"\"\n },\n \"isRequired\": false,\n \"isSearchable\": false,\n \"logSettings\": {\n \"logFieldName\": \"\",\n \"sanitizeOptions\": {\n \"isAlreadySanitized\": false,\n \"logType\": [],\n \"privacy\": \"\",\n \"sanitizeType\": \"\"\n },\n \"seedPeriod\": \"\",\n \"seedScope\": \"\",\n \"shorteningLimits\": {\n \"logAction\": \"\",\n \"logType\": [],\n \"maxArraySize\": 0,\n \"maxStringLength\": 0,\n \"shortenerType\": \"\"\n }\n },\n \"searchable\": \"\",\n \"taskVisibility\": []\n },\n \"children\": [],\n \"dataType\": \"\",\n \"defaultValue\": {\n \"booleanArray\": {\n \"booleanValues\": []\n },\n \"booleanValue\": false,\n \"doubleArray\": {\n \"doubleValues\": []\n },\n \"doubleValue\": \"\",\n \"intArray\": {\n \"intValues\": []\n },\n \"intValue\": \"\",\n \"jsonValue\": \"\",\n \"protoArray\": {\n \"protoValues\": [\n {}\n ]\n },\n \"protoValue\": {},\n \"serializedObjectValue\": {\n \"objectValue\": \"\"\n },\n \"stringArray\": {\n \"stringValues\": []\n },\n \"stringValue\": \"\"\n },\n \"inOutType\": \"\",\n \"isTransient\": false,\n \"jsonSchema\": \"\",\n \"key\": \"\",\n \"name\": \"\",\n \"producedBy\": {\n \"elementIdentifier\": \"\",\n \"elementType\": \"\"\n },\n \"producer\": \"\",\n \"protoDefName\": \"\",\n \"protoDefPath\": \"\"\n }\n ]\n },\n \"lastModifierEmail\": \"\",\n \"lockHolder\": \"\",\n \"name\": \"\",\n \"origin\": \"\",\n \"parentTemplateId\": \"\",\n \"runAsServiceAccount\": \"\",\n \"snapshotNumber\": \"\",\n \"state\": \"\",\n \"status\": \"\",\n \"taskConfigs\": [\n {\n \"description\": \"\",\n \"displayName\": \"\",\n \"errorCatcherId\": \"\",\n \"externalTaskType\": \"\",\n \"failurePolicy\": {\n \"intervalTime\": \"\",\n \"maxRetries\": 0,\n \"retryStrategy\": \"\"\n },\n \"jsonValidationOption\": \"\",\n \"nextTasks\": [\n {}\n ],\n \"nextTasksExecutionPolicy\": \"\",\n \"parameters\": {},\n \"position\": {},\n \"successPolicy\": {\n \"finalState\": \"\"\n },\n \"synchronousCallFailurePolicy\": {},\n \"task\": \"\",\n \"taskExecutionStrategy\": \"\",\n \"taskId\": \"\",\n \"taskTemplate\": \"\"\n }\n ],\n \"taskConfigsInternal\": [\n {\n \"alertConfigs\": [\n {\n \"aggregationPeriod\": \"\",\n \"alertDisabled\": false,\n \"alertName\": \"\",\n \"clientId\": \"\",\n \"durationThresholdMs\": \"\",\n \"errorEnumList\": {\n \"enumStrings\": [],\n \"filterType\": \"\"\n },\n \"metricType\": \"\",\n \"numAggregationPeriods\": 0,\n \"onlyFinalAttempt\": false,\n \"playbookUrl\": \"\",\n \"thresholdType\": \"\",\n \"thresholdValue\": {\n \"absolute\": \"\",\n \"percentage\": 0\n },\n \"warningEnumList\": {}\n }\n ],\n \"createTime\": \"\",\n \"creatorEmail\": \"\",\n \"description\": \"\",\n \"disableStrictTypeValidation\": false,\n \"errorCatcherId\": \"\",\n \"externalTaskType\": \"\",\n \"failurePolicy\": {\n \"intervalInSeconds\": \"\",\n \"maxNumRetries\": 0,\n \"retryStrategy\": \"\"\n },\n \"incomingEdgeCount\": 0,\n \"jsonValidationOption\": \"\",\n \"label\": \"\",\n \"lastModifiedTime\": \"\",\n \"nextTasks\": [\n {\n \"combinedConditions\": [\n {\n \"conditions\": [\n {\n \"eventPropertyKey\": \"\",\n \"operator\": \"\",\n \"value\": {}\n }\n ]\n }\n ],\n \"condition\": \"\",\n \"description\": \"\",\n \"label\": \"\",\n \"taskConfigId\": \"\",\n \"taskNumber\": \"\"\n }\n ],\n \"nextTasksExecutionPolicy\": \"\",\n \"parameters\": {},\n \"position\": {\n \"x\": 0,\n \"y\": 0\n },\n \"precondition\": \"\",\n \"preconditionLabel\": \"\",\n \"rollbackStrategy\": {\n \"parameters\": {\n \"parameters\": [\n {\n \"dataType\": \"\",\n \"key\": \"\",\n \"value\": {}\n }\n ]\n },\n \"rollbackTaskImplementationClassName\": \"\",\n \"taskNumbersToRollback\": []\n },\n \"successPolicy\": {\n \"finalState\": \"\"\n },\n \"synchronousCallFailurePolicy\": {},\n \"taskEntity\": {\n \"disabledForVpcSc\": false,\n \"metadata\": {\n \"activeTaskName\": \"\",\n \"admins\": [\n {\n \"googleGroupEmail\": \"\",\n \"userEmail\": \"\"\n }\n ],\n \"category\": \"\",\n \"codeSearchLink\": \"\",\n \"defaultJsonValidationOption\": \"\",\n \"defaultSpec\": \"\",\n \"description\": \"\",\n \"descriptiveName\": \"\",\n \"docMarkdown\": \"\",\n \"externalCategory\": \"\",\n \"externalCategorySequence\": 0,\n \"externalDocHtml\": \"\",\n \"externalDocLink\": \"\",\n \"externalDocMarkdown\": \"\",\n \"g3DocLink\": \"\",\n \"iconLink\": \"\",\n \"isDeprecated\": false,\n \"name\": \"\",\n \"standaloneExternalDocHtml\": \"\",\n \"status\": \"\",\n \"system\": \"\",\n \"tags\": []\n },\n \"paramSpecs\": {\n \"parameters\": [\n {\n \"className\": \"\",\n \"collectionElementClassName\": \"\",\n \"config\": {\n \"descriptivePhrase\": \"\",\n \"helpText\": \"\",\n \"hideDefaultValue\": false,\n \"inputDisplayOption\": \"\",\n \"isHidden\": false,\n \"label\": \"\",\n \"parameterNameOption\": \"\",\n \"subSectionLabel\": \"\",\n \"uiPlaceholderText\": \"\"\n },\n \"dataType\": \"\",\n \"defaultValue\": {},\n \"isDeprecated\": false,\n \"isOutput\": false,\n \"jsonSchema\": \"\",\n \"key\": \"\",\n \"protoDef\": {\n \"fullName\": \"\",\n \"path\": \"\"\n },\n \"required\": false,\n \"validationRule\": {\n \"doubleRange\": {\n \"max\": \"\",\n \"min\": \"\"\n },\n \"intRange\": {\n \"max\": \"\",\n \"min\": \"\"\n },\n \"stringRegex\": {\n \"exclusive\": false,\n \"regex\": \"\"\n }\n }\n }\n ]\n },\n \"stats\": {\n \"dimensions\": {\n \"clientId\": \"\",\n \"enumFilterType\": \"\",\n \"errorEnumString\": \"\",\n \"retryAttempt\": \"\",\n \"taskName\": \"\",\n \"taskNumber\": \"\",\n \"triggerId\": \"\",\n \"warningEnumString\": \"\",\n \"workflowId\": \"\",\n \"workflowName\": \"\"\n },\n \"durationInSeconds\": \"\",\n \"errorRate\": \"\",\n \"qps\": \"\",\n \"warningRate\": \"\"\n },\n \"taskType\": \"\",\n \"uiConfig\": {\n \"taskUiModuleConfigs\": [\n {\n \"moduleId\": \"\"\n }\n ]\n }\n },\n \"taskExecutionStrategy\": \"\",\n \"taskName\": \"\",\n \"taskNumber\": \"\",\n \"taskSpec\": \"\",\n \"taskTemplateName\": \"\",\n \"taskType\": \"\"\n }\n ],\n \"teardown\": {\n \"teardownTaskConfigs\": [\n {\n \"creatorEmail\": \"\",\n \"name\": \"\",\n \"nextTeardownTask\": {\n \"name\": \"\"\n },\n \"parameters\": {\n \"parameters\": [\n {\n \"key\": \"\",\n \"value\": {\n \"booleanArray\": {\n \"booleanValues\": []\n },\n \"booleanValue\": false,\n \"doubleArray\": {\n \"doubleValues\": []\n },\n \"doubleValue\": \"\",\n \"intArray\": {\n \"intValues\": []\n },\n \"intValue\": \"\",\n \"protoArray\": {\n \"protoValues\": [\n {}\n ]\n },\n \"protoValue\": {},\n \"serializedObjectValue\": {\n \"objectValue\": \"\"\n },\n \"stringArray\": {\n \"stringValues\": []\n },\n \"stringValue\": \"\"\n }\n }\n ]\n },\n \"properties\": {\n \"properties\": [\n {\n \"key\": \"\",\n \"value\": {}\n }\n ]\n },\n \"teardownTaskImplementationClassName\": \"\"\n }\n ]\n },\n \"triggerConfigs\": [\n {\n \"alertConfig\": [\n {\n \"aggregationPeriod\": \"\",\n \"alertThreshold\": 0,\n \"disableAlert\": false,\n \"displayName\": \"\",\n \"durationThreshold\": \"\",\n \"metricType\": \"\",\n \"onlyFinalAttempt\": false,\n \"thresholdType\": \"\",\n \"thresholdValue\": {\n \"absolute\": \"\",\n \"percentage\": 0\n }\n }\n ],\n \"cloudSchedulerConfig\": {\n \"cronTab\": \"\",\n \"errorMessage\": \"\",\n \"location\": \"\",\n \"serviceAccountEmail\": \"\"\n },\n \"description\": \"\",\n \"errorCatcherId\": \"\",\n \"label\": \"\",\n \"nextTasksExecutionPolicy\": \"\",\n \"position\": {},\n \"properties\": {},\n \"startTasks\": [\n {}\n ],\n \"triggerId\": \"\",\n \"triggerNumber\": \"\",\n \"triggerType\": \"\"\n }\n ],\n \"triggerConfigsInternal\": [\n {\n \"alertConfig\": [\n {\n \"aggregationPeriod\": \"\",\n \"alertDisabled\": false,\n \"alertName\": \"\",\n \"clientId\": \"\",\n \"durationThresholdMs\": \"\",\n \"errorEnumList\": {},\n \"metricType\": \"\",\n \"numAggregationPeriods\": 0,\n \"onlyFinalAttempt\": false,\n \"playbookUrl\": \"\",\n \"thresholdType\": \"\",\n \"thresholdValue\": {},\n \"warningEnumList\": {}\n }\n ],\n \"cloudSchedulerConfig\": {\n \"cronTab\": \"\",\n \"errorMessage\": \"\",\n \"location\": \"\",\n \"serviceAccountEmail\": \"\"\n },\n \"description\": \"\",\n \"enabledClients\": [],\n \"errorCatcherId\": \"\",\n \"label\": \"\",\n \"nextTasksExecutionPolicy\": \"\",\n \"pauseWorkflowExecutions\": false,\n \"position\": {},\n \"properties\": {},\n \"startTasks\": [\n {}\n ],\n \"triggerCriteria\": {\n \"condition\": \"\",\n \"parameters\": {},\n \"triggerCriteriaTaskImplementationClassName\": \"\"\n },\n \"triggerId\": \"\",\n \"triggerNumber\": \"\",\n \"triggerType\": \"\"\n }\n ],\n \"updateTime\": \"\",\n \"userLabel\": \"\"\n },\n \"parameters\": {},\n \"testMode\": false,\n \"triggerId\": \"\"\n}"
response = HTTP::Client.post url, headers: headers, body: reqBody
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Post,
RequestUri = new Uri("{{baseUrl}}/v1/:name:test"),
Content = new StringContent("{\n \"clientId\": \"\",\n \"deadlineSecondsTime\": \"\",\n \"inputParameters\": {},\n \"integrationVersion\": {\n \"createTime\": \"\",\n \"databasePersistencePolicy\": \"\",\n \"description\": \"\",\n \"errorCatcherConfigs\": [\n {\n \"description\": \"\",\n \"errorCatcherId\": \"\",\n \"errorCatcherNumber\": \"\",\n \"label\": \"\",\n \"position\": {\n \"x\": 0,\n \"y\": 0\n },\n \"startErrorTasks\": [\n {\n \"condition\": \"\",\n \"description\": \"\",\n \"displayName\": \"\",\n \"taskConfigId\": \"\",\n \"taskId\": \"\"\n }\n ]\n }\n ],\n \"integrationParameters\": [\n {\n \"dataType\": \"\",\n \"defaultValue\": {\n \"booleanArray\": {\n \"booleanValues\": []\n },\n \"booleanValue\": false,\n \"doubleArray\": {\n \"doubleValues\": []\n },\n \"doubleValue\": \"\",\n \"intArray\": {\n \"intValues\": []\n },\n \"intValue\": \"\",\n \"jsonValue\": \"\",\n \"stringArray\": {\n \"stringValues\": []\n },\n \"stringValue\": \"\"\n },\n \"displayName\": \"\",\n \"inputOutputType\": \"\",\n \"isTransient\": false,\n \"jsonSchema\": \"\",\n \"key\": \"\",\n \"producer\": \"\",\n \"searchable\": false\n }\n ],\n \"integrationParametersInternal\": {\n \"parameters\": [\n {\n \"attributes\": {\n \"dataType\": \"\",\n \"defaultValue\": {\n \"booleanValue\": false,\n \"doubleArray\": {\n \"values\": []\n },\n \"doubleValue\": \"\",\n \"intArray\": {\n \"values\": []\n },\n \"intValue\": \"\",\n \"protoValue\": {},\n \"stringArray\": {\n \"values\": []\n },\n \"stringValue\": \"\"\n },\n \"isRequired\": false,\n \"isSearchable\": false,\n \"logSettings\": {\n \"logFieldName\": \"\",\n \"sanitizeOptions\": {\n \"isAlreadySanitized\": false,\n \"logType\": [],\n \"privacy\": \"\",\n \"sanitizeType\": \"\"\n },\n \"seedPeriod\": \"\",\n \"seedScope\": \"\",\n \"shorteningLimits\": {\n \"logAction\": \"\",\n \"logType\": [],\n \"maxArraySize\": 0,\n \"maxStringLength\": 0,\n \"shortenerType\": \"\"\n }\n },\n \"searchable\": \"\",\n \"taskVisibility\": []\n },\n \"children\": [],\n \"dataType\": \"\",\n \"defaultValue\": {\n \"booleanArray\": {\n \"booleanValues\": []\n },\n \"booleanValue\": false,\n \"doubleArray\": {\n \"doubleValues\": []\n },\n \"doubleValue\": \"\",\n \"intArray\": {\n \"intValues\": []\n },\n \"intValue\": \"\",\n \"jsonValue\": \"\",\n \"protoArray\": {\n \"protoValues\": [\n {}\n ]\n },\n \"protoValue\": {},\n \"serializedObjectValue\": {\n \"objectValue\": \"\"\n },\n \"stringArray\": {\n \"stringValues\": []\n },\n \"stringValue\": \"\"\n },\n \"inOutType\": \"\",\n \"isTransient\": false,\n \"jsonSchema\": \"\",\n \"key\": \"\",\n \"name\": \"\",\n \"producedBy\": {\n \"elementIdentifier\": \"\",\n \"elementType\": \"\"\n },\n \"producer\": \"\",\n \"protoDefName\": \"\",\n \"protoDefPath\": \"\"\n }\n ]\n },\n \"lastModifierEmail\": \"\",\n \"lockHolder\": \"\",\n \"name\": \"\",\n \"origin\": \"\",\n \"parentTemplateId\": \"\",\n \"runAsServiceAccount\": \"\",\n \"snapshotNumber\": \"\",\n \"state\": \"\",\n \"status\": \"\",\n \"taskConfigs\": [\n {\n \"description\": \"\",\n \"displayName\": \"\",\n \"errorCatcherId\": \"\",\n \"externalTaskType\": \"\",\n \"failurePolicy\": {\n \"intervalTime\": \"\",\n \"maxRetries\": 0,\n \"retryStrategy\": \"\"\n },\n \"jsonValidationOption\": \"\",\n \"nextTasks\": [\n {}\n ],\n \"nextTasksExecutionPolicy\": \"\",\n \"parameters\": {},\n \"position\": {},\n \"successPolicy\": {\n \"finalState\": \"\"\n },\n \"synchronousCallFailurePolicy\": {},\n \"task\": \"\",\n \"taskExecutionStrategy\": \"\",\n \"taskId\": \"\",\n \"taskTemplate\": \"\"\n }\n ],\n \"taskConfigsInternal\": [\n {\n \"alertConfigs\": [\n {\n \"aggregationPeriod\": \"\",\n \"alertDisabled\": false,\n \"alertName\": \"\",\n \"clientId\": \"\",\n \"durationThresholdMs\": \"\",\n \"errorEnumList\": {\n \"enumStrings\": [],\n \"filterType\": \"\"\n },\n \"metricType\": \"\",\n \"numAggregationPeriods\": 0,\n \"onlyFinalAttempt\": false,\n \"playbookUrl\": \"\",\n \"thresholdType\": \"\",\n \"thresholdValue\": {\n \"absolute\": \"\",\n \"percentage\": 0\n },\n \"warningEnumList\": {}\n }\n ],\n \"createTime\": \"\",\n \"creatorEmail\": \"\",\n \"description\": \"\",\n \"disableStrictTypeValidation\": false,\n \"errorCatcherId\": \"\",\n \"externalTaskType\": \"\",\n \"failurePolicy\": {\n \"intervalInSeconds\": \"\",\n \"maxNumRetries\": 0,\n \"retryStrategy\": \"\"\n },\n \"incomingEdgeCount\": 0,\n \"jsonValidationOption\": \"\",\n \"label\": \"\",\n \"lastModifiedTime\": \"\",\n \"nextTasks\": [\n {\n \"combinedConditions\": [\n {\n \"conditions\": [\n {\n \"eventPropertyKey\": \"\",\n \"operator\": \"\",\n \"value\": {}\n }\n ]\n }\n ],\n \"condition\": \"\",\n \"description\": \"\",\n \"label\": \"\",\n \"taskConfigId\": \"\",\n \"taskNumber\": \"\"\n }\n ],\n \"nextTasksExecutionPolicy\": \"\",\n \"parameters\": {},\n \"position\": {\n \"x\": 0,\n \"y\": 0\n },\n \"precondition\": \"\",\n \"preconditionLabel\": \"\",\n \"rollbackStrategy\": {\n \"parameters\": {\n \"parameters\": [\n {\n \"dataType\": \"\",\n \"key\": \"\",\n \"value\": {}\n }\n ]\n },\n \"rollbackTaskImplementationClassName\": \"\",\n \"taskNumbersToRollback\": []\n },\n \"successPolicy\": {\n \"finalState\": \"\"\n },\n \"synchronousCallFailurePolicy\": {},\n \"taskEntity\": {\n \"disabledForVpcSc\": false,\n \"metadata\": {\n \"activeTaskName\": \"\",\n \"admins\": [\n {\n \"googleGroupEmail\": \"\",\n \"userEmail\": \"\"\n }\n ],\n \"category\": \"\",\n \"codeSearchLink\": \"\",\n \"defaultJsonValidationOption\": \"\",\n \"defaultSpec\": \"\",\n \"description\": \"\",\n \"descriptiveName\": \"\",\n \"docMarkdown\": \"\",\n \"externalCategory\": \"\",\n \"externalCategorySequence\": 0,\n \"externalDocHtml\": \"\",\n \"externalDocLink\": \"\",\n \"externalDocMarkdown\": \"\",\n \"g3DocLink\": \"\",\n \"iconLink\": \"\",\n \"isDeprecated\": false,\n \"name\": \"\",\n \"standaloneExternalDocHtml\": \"\",\n \"status\": \"\",\n \"system\": \"\",\n \"tags\": []\n },\n \"paramSpecs\": {\n \"parameters\": [\n {\n \"className\": \"\",\n \"collectionElementClassName\": \"\",\n \"config\": {\n \"descriptivePhrase\": \"\",\n \"helpText\": \"\",\n \"hideDefaultValue\": false,\n \"inputDisplayOption\": \"\",\n \"isHidden\": false,\n \"label\": \"\",\n \"parameterNameOption\": \"\",\n \"subSectionLabel\": \"\",\n \"uiPlaceholderText\": \"\"\n },\n \"dataType\": \"\",\n \"defaultValue\": {},\n \"isDeprecated\": false,\n \"isOutput\": false,\n \"jsonSchema\": \"\",\n \"key\": \"\",\n \"protoDef\": {\n \"fullName\": \"\",\n \"path\": \"\"\n },\n \"required\": false,\n \"validationRule\": {\n \"doubleRange\": {\n \"max\": \"\",\n \"min\": \"\"\n },\n \"intRange\": {\n \"max\": \"\",\n \"min\": \"\"\n },\n \"stringRegex\": {\n \"exclusive\": false,\n \"regex\": \"\"\n }\n }\n }\n ]\n },\n \"stats\": {\n \"dimensions\": {\n \"clientId\": \"\",\n \"enumFilterType\": \"\",\n \"errorEnumString\": \"\",\n \"retryAttempt\": \"\",\n \"taskName\": \"\",\n \"taskNumber\": \"\",\n \"triggerId\": \"\",\n \"warningEnumString\": \"\",\n \"workflowId\": \"\",\n \"workflowName\": \"\"\n },\n \"durationInSeconds\": \"\",\n \"errorRate\": \"\",\n \"qps\": \"\",\n \"warningRate\": \"\"\n },\n \"taskType\": \"\",\n \"uiConfig\": {\n \"taskUiModuleConfigs\": [\n {\n \"moduleId\": \"\"\n }\n ]\n }\n },\n \"taskExecutionStrategy\": \"\",\n \"taskName\": \"\",\n \"taskNumber\": \"\",\n \"taskSpec\": \"\",\n \"taskTemplateName\": \"\",\n \"taskType\": \"\"\n }\n ],\n \"teardown\": {\n \"teardownTaskConfigs\": [\n {\n \"creatorEmail\": \"\",\n \"name\": \"\",\n \"nextTeardownTask\": {\n \"name\": \"\"\n },\n \"parameters\": {\n \"parameters\": [\n {\n \"key\": \"\",\n \"value\": {\n \"booleanArray\": {\n \"booleanValues\": []\n },\n \"booleanValue\": false,\n \"doubleArray\": {\n \"doubleValues\": []\n },\n \"doubleValue\": \"\",\n \"intArray\": {\n \"intValues\": []\n },\n \"intValue\": \"\",\n \"protoArray\": {\n \"protoValues\": [\n {}\n ]\n },\n \"protoValue\": {},\n \"serializedObjectValue\": {\n \"objectValue\": \"\"\n },\n \"stringArray\": {\n \"stringValues\": []\n },\n \"stringValue\": \"\"\n }\n }\n ]\n },\n \"properties\": {\n \"properties\": [\n {\n \"key\": \"\",\n \"value\": {}\n }\n ]\n },\n \"teardownTaskImplementationClassName\": \"\"\n }\n ]\n },\n \"triggerConfigs\": [\n {\n \"alertConfig\": [\n {\n \"aggregationPeriod\": \"\",\n \"alertThreshold\": 0,\n \"disableAlert\": false,\n \"displayName\": \"\",\n \"durationThreshold\": \"\",\n \"metricType\": \"\",\n \"onlyFinalAttempt\": false,\n \"thresholdType\": \"\",\n \"thresholdValue\": {\n \"absolute\": \"\",\n \"percentage\": 0\n }\n }\n ],\n \"cloudSchedulerConfig\": {\n \"cronTab\": \"\",\n \"errorMessage\": \"\",\n \"location\": \"\",\n \"serviceAccountEmail\": \"\"\n },\n \"description\": \"\",\n \"errorCatcherId\": \"\",\n \"label\": \"\",\n \"nextTasksExecutionPolicy\": \"\",\n \"position\": {},\n \"properties\": {},\n \"startTasks\": [\n {}\n ],\n \"triggerId\": \"\",\n \"triggerNumber\": \"\",\n \"triggerType\": \"\"\n }\n ],\n \"triggerConfigsInternal\": [\n {\n \"alertConfig\": [\n {\n \"aggregationPeriod\": \"\",\n \"alertDisabled\": false,\n \"alertName\": \"\",\n \"clientId\": \"\",\n \"durationThresholdMs\": \"\",\n \"errorEnumList\": {},\n \"metricType\": \"\",\n \"numAggregationPeriods\": 0,\n \"onlyFinalAttempt\": false,\n \"playbookUrl\": \"\",\n \"thresholdType\": \"\",\n \"thresholdValue\": {},\n \"warningEnumList\": {}\n }\n ],\n \"cloudSchedulerConfig\": {\n \"cronTab\": \"\",\n \"errorMessage\": \"\",\n \"location\": \"\",\n \"serviceAccountEmail\": \"\"\n },\n \"description\": \"\",\n \"enabledClients\": [],\n \"errorCatcherId\": \"\",\n \"label\": \"\",\n \"nextTasksExecutionPolicy\": \"\",\n \"pauseWorkflowExecutions\": false,\n \"position\": {},\n \"properties\": {},\n \"startTasks\": [\n {}\n ],\n \"triggerCriteria\": {\n \"condition\": \"\",\n \"parameters\": {},\n \"triggerCriteriaTaskImplementationClassName\": \"\"\n },\n \"triggerId\": \"\",\n \"triggerNumber\": \"\",\n \"triggerType\": \"\"\n }\n ],\n \"updateTime\": \"\",\n \"userLabel\": \"\"\n },\n \"parameters\": {},\n \"testMode\": false,\n \"triggerId\": \"\"\n}")
{
Headers =
{
ContentType = new MediaTypeHeaderValue("application/json")
}
}
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/v1/:name:test");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n \"clientId\": \"\",\n \"deadlineSecondsTime\": \"\",\n \"inputParameters\": {},\n \"integrationVersion\": {\n \"createTime\": \"\",\n \"databasePersistencePolicy\": \"\",\n \"description\": \"\",\n \"errorCatcherConfigs\": [\n {\n \"description\": \"\",\n \"errorCatcherId\": \"\",\n \"errorCatcherNumber\": \"\",\n \"label\": \"\",\n \"position\": {\n \"x\": 0,\n \"y\": 0\n },\n \"startErrorTasks\": [\n {\n \"condition\": \"\",\n \"description\": \"\",\n \"displayName\": \"\",\n \"taskConfigId\": \"\",\n \"taskId\": \"\"\n }\n ]\n }\n ],\n \"integrationParameters\": [\n {\n \"dataType\": \"\",\n \"defaultValue\": {\n \"booleanArray\": {\n \"booleanValues\": []\n },\n \"booleanValue\": false,\n \"doubleArray\": {\n \"doubleValues\": []\n },\n \"doubleValue\": \"\",\n \"intArray\": {\n \"intValues\": []\n },\n \"intValue\": \"\",\n \"jsonValue\": \"\",\n \"stringArray\": {\n \"stringValues\": []\n },\n \"stringValue\": \"\"\n },\n \"displayName\": \"\",\n \"inputOutputType\": \"\",\n \"isTransient\": false,\n \"jsonSchema\": \"\",\n \"key\": \"\",\n \"producer\": \"\",\n \"searchable\": false\n }\n ],\n \"integrationParametersInternal\": {\n \"parameters\": [\n {\n \"attributes\": {\n \"dataType\": \"\",\n \"defaultValue\": {\n \"booleanValue\": false,\n \"doubleArray\": {\n \"values\": []\n },\n \"doubleValue\": \"\",\n \"intArray\": {\n \"values\": []\n },\n \"intValue\": \"\",\n \"protoValue\": {},\n \"stringArray\": {\n \"values\": []\n },\n \"stringValue\": \"\"\n },\n \"isRequired\": false,\n \"isSearchable\": false,\n \"logSettings\": {\n \"logFieldName\": \"\",\n \"sanitizeOptions\": {\n \"isAlreadySanitized\": false,\n \"logType\": [],\n \"privacy\": \"\",\n \"sanitizeType\": \"\"\n },\n \"seedPeriod\": \"\",\n \"seedScope\": \"\",\n \"shorteningLimits\": {\n \"logAction\": \"\",\n \"logType\": [],\n \"maxArraySize\": 0,\n \"maxStringLength\": 0,\n \"shortenerType\": \"\"\n }\n },\n \"searchable\": \"\",\n \"taskVisibility\": []\n },\n \"children\": [],\n \"dataType\": \"\",\n \"defaultValue\": {\n \"booleanArray\": {\n \"booleanValues\": []\n },\n \"booleanValue\": false,\n \"doubleArray\": {\n \"doubleValues\": []\n },\n \"doubleValue\": \"\",\n \"intArray\": {\n \"intValues\": []\n },\n \"intValue\": \"\",\n \"jsonValue\": \"\",\n \"protoArray\": {\n \"protoValues\": [\n {}\n ]\n },\n \"protoValue\": {},\n \"serializedObjectValue\": {\n \"objectValue\": \"\"\n },\n \"stringArray\": {\n \"stringValues\": []\n },\n \"stringValue\": \"\"\n },\n \"inOutType\": \"\",\n \"isTransient\": false,\n \"jsonSchema\": \"\",\n \"key\": \"\",\n \"name\": \"\",\n \"producedBy\": {\n \"elementIdentifier\": \"\",\n \"elementType\": \"\"\n },\n \"producer\": \"\",\n \"protoDefName\": \"\",\n \"protoDefPath\": \"\"\n }\n ]\n },\n \"lastModifierEmail\": \"\",\n \"lockHolder\": \"\",\n \"name\": \"\",\n \"origin\": \"\",\n \"parentTemplateId\": \"\",\n \"runAsServiceAccount\": \"\",\n \"snapshotNumber\": \"\",\n \"state\": \"\",\n \"status\": \"\",\n \"taskConfigs\": [\n {\n \"description\": \"\",\n \"displayName\": \"\",\n \"errorCatcherId\": \"\",\n \"externalTaskType\": \"\",\n \"failurePolicy\": {\n \"intervalTime\": \"\",\n \"maxRetries\": 0,\n \"retryStrategy\": \"\"\n },\n \"jsonValidationOption\": \"\",\n \"nextTasks\": [\n {}\n ],\n \"nextTasksExecutionPolicy\": \"\",\n \"parameters\": {},\n \"position\": {},\n \"successPolicy\": {\n \"finalState\": \"\"\n },\n \"synchronousCallFailurePolicy\": {},\n \"task\": \"\",\n \"taskExecutionStrategy\": \"\",\n \"taskId\": \"\",\n \"taskTemplate\": \"\"\n }\n ],\n \"taskConfigsInternal\": [\n {\n \"alertConfigs\": [\n {\n \"aggregationPeriod\": \"\",\n \"alertDisabled\": false,\n \"alertName\": \"\",\n \"clientId\": \"\",\n \"durationThresholdMs\": \"\",\n \"errorEnumList\": {\n \"enumStrings\": [],\n \"filterType\": \"\"\n },\n \"metricType\": \"\",\n \"numAggregationPeriods\": 0,\n \"onlyFinalAttempt\": false,\n \"playbookUrl\": \"\",\n \"thresholdType\": \"\",\n \"thresholdValue\": {\n \"absolute\": \"\",\n \"percentage\": 0\n },\n \"warningEnumList\": {}\n }\n ],\n \"createTime\": \"\",\n \"creatorEmail\": \"\",\n \"description\": \"\",\n \"disableStrictTypeValidation\": false,\n \"errorCatcherId\": \"\",\n \"externalTaskType\": \"\",\n \"failurePolicy\": {\n \"intervalInSeconds\": \"\",\n \"maxNumRetries\": 0,\n \"retryStrategy\": \"\"\n },\n \"incomingEdgeCount\": 0,\n \"jsonValidationOption\": \"\",\n \"label\": \"\",\n \"lastModifiedTime\": \"\",\n \"nextTasks\": [\n {\n \"combinedConditions\": [\n {\n \"conditions\": [\n {\n \"eventPropertyKey\": \"\",\n \"operator\": \"\",\n \"value\": {}\n }\n ]\n }\n ],\n \"condition\": \"\",\n \"description\": \"\",\n \"label\": \"\",\n \"taskConfigId\": \"\",\n \"taskNumber\": \"\"\n }\n ],\n \"nextTasksExecutionPolicy\": \"\",\n \"parameters\": {},\n \"position\": {\n \"x\": 0,\n \"y\": 0\n },\n \"precondition\": \"\",\n \"preconditionLabel\": \"\",\n \"rollbackStrategy\": {\n \"parameters\": {\n \"parameters\": [\n {\n \"dataType\": \"\",\n \"key\": \"\",\n \"value\": {}\n }\n ]\n },\n \"rollbackTaskImplementationClassName\": \"\",\n \"taskNumbersToRollback\": []\n },\n \"successPolicy\": {\n \"finalState\": \"\"\n },\n \"synchronousCallFailurePolicy\": {},\n \"taskEntity\": {\n \"disabledForVpcSc\": false,\n \"metadata\": {\n \"activeTaskName\": \"\",\n \"admins\": [\n {\n \"googleGroupEmail\": \"\",\n \"userEmail\": \"\"\n }\n ],\n \"category\": \"\",\n \"codeSearchLink\": \"\",\n \"defaultJsonValidationOption\": \"\",\n \"defaultSpec\": \"\",\n \"description\": \"\",\n \"descriptiveName\": \"\",\n \"docMarkdown\": \"\",\n \"externalCategory\": \"\",\n \"externalCategorySequence\": 0,\n \"externalDocHtml\": \"\",\n \"externalDocLink\": \"\",\n \"externalDocMarkdown\": \"\",\n \"g3DocLink\": \"\",\n \"iconLink\": \"\",\n \"isDeprecated\": false,\n \"name\": \"\",\n \"standaloneExternalDocHtml\": \"\",\n \"status\": \"\",\n \"system\": \"\",\n \"tags\": []\n },\n \"paramSpecs\": {\n \"parameters\": [\n {\n \"className\": \"\",\n \"collectionElementClassName\": \"\",\n \"config\": {\n \"descriptivePhrase\": \"\",\n \"helpText\": \"\",\n \"hideDefaultValue\": false,\n \"inputDisplayOption\": \"\",\n \"isHidden\": false,\n \"label\": \"\",\n \"parameterNameOption\": \"\",\n \"subSectionLabel\": \"\",\n \"uiPlaceholderText\": \"\"\n },\n \"dataType\": \"\",\n \"defaultValue\": {},\n \"isDeprecated\": false,\n \"isOutput\": false,\n \"jsonSchema\": \"\",\n \"key\": \"\",\n \"protoDef\": {\n \"fullName\": \"\",\n \"path\": \"\"\n },\n \"required\": false,\n \"validationRule\": {\n \"doubleRange\": {\n \"max\": \"\",\n \"min\": \"\"\n },\n \"intRange\": {\n \"max\": \"\",\n \"min\": \"\"\n },\n \"stringRegex\": {\n \"exclusive\": false,\n \"regex\": \"\"\n }\n }\n }\n ]\n },\n \"stats\": {\n \"dimensions\": {\n \"clientId\": \"\",\n \"enumFilterType\": \"\",\n \"errorEnumString\": \"\",\n \"retryAttempt\": \"\",\n \"taskName\": \"\",\n \"taskNumber\": \"\",\n \"triggerId\": \"\",\n \"warningEnumString\": \"\",\n \"workflowId\": \"\",\n \"workflowName\": \"\"\n },\n \"durationInSeconds\": \"\",\n \"errorRate\": \"\",\n \"qps\": \"\",\n \"warningRate\": \"\"\n },\n \"taskType\": \"\",\n \"uiConfig\": {\n \"taskUiModuleConfigs\": [\n {\n \"moduleId\": \"\"\n }\n ]\n }\n },\n \"taskExecutionStrategy\": \"\",\n \"taskName\": \"\",\n \"taskNumber\": \"\",\n \"taskSpec\": \"\",\n \"taskTemplateName\": \"\",\n \"taskType\": \"\"\n }\n ],\n \"teardown\": {\n \"teardownTaskConfigs\": [\n {\n \"creatorEmail\": \"\",\n \"name\": \"\",\n \"nextTeardownTask\": {\n \"name\": \"\"\n },\n \"parameters\": {\n \"parameters\": [\n {\n \"key\": \"\",\n \"value\": {\n \"booleanArray\": {\n \"booleanValues\": []\n },\n \"booleanValue\": false,\n \"doubleArray\": {\n \"doubleValues\": []\n },\n \"doubleValue\": \"\",\n \"intArray\": {\n \"intValues\": []\n },\n \"intValue\": \"\",\n \"protoArray\": {\n \"protoValues\": [\n {}\n ]\n },\n \"protoValue\": {},\n \"serializedObjectValue\": {\n \"objectValue\": \"\"\n },\n \"stringArray\": {\n \"stringValues\": []\n },\n \"stringValue\": \"\"\n }\n }\n ]\n },\n \"properties\": {\n \"properties\": [\n {\n \"key\": \"\",\n \"value\": {}\n }\n ]\n },\n \"teardownTaskImplementationClassName\": \"\"\n }\n ]\n },\n \"triggerConfigs\": [\n {\n \"alertConfig\": [\n {\n \"aggregationPeriod\": \"\",\n \"alertThreshold\": 0,\n \"disableAlert\": false,\n \"displayName\": \"\",\n \"durationThreshold\": \"\",\n \"metricType\": \"\",\n \"onlyFinalAttempt\": false,\n \"thresholdType\": \"\",\n \"thresholdValue\": {\n \"absolute\": \"\",\n \"percentage\": 0\n }\n }\n ],\n \"cloudSchedulerConfig\": {\n \"cronTab\": \"\",\n \"errorMessage\": \"\",\n \"location\": \"\",\n \"serviceAccountEmail\": \"\"\n },\n \"description\": \"\",\n \"errorCatcherId\": \"\",\n \"label\": \"\",\n \"nextTasksExecutionPolicy\": \"\",\n \"position\": {},\n \"properties\": {},\n \"startTasks\": [\n {}\n ],\n \"triggerId\": \"\",\n \"triggerNumber\": \"\",\n \"triggerType\": \"\"\n }\n ],\n \"triggerConfigsInternal\": [\n {\n \"alertConfig\": [\n {\n \"aggregationPeriod\": \"\",\n \"alertDisabled\": false,\n \"alertName\": \"\",\n \"clientId\": \"\",\n \"durationThresholdMs\": \"\",\n \"errorEnumList\": {},\n \"metricType\": \"\",\n \"numAggregationPeriods\": 0,\n \"onlyFinalAttempt\": false,\n \"playbookUrl\": \"\",\n \"thresholdType\": \"\",\n \"thresholdValue\": {},\n \"warningEnumList\": {}\n }\n ],\n \"cloudSchedulerConfig\": {\n \"cronTab\": \"\",\n \"errorMessage\": \"\",\n \"location\": \"\",\n \"serviceAccountEmail\": \"\"\n },\n \"description\": \"\",\n \"enabledClients\": [],\n \"errorCatcherId\": \"\",\n \"label\": \"\",\n \"nextTasksExecutionPolicy\": \"\",\n \"pauseWorkflowExecutions\": false,\n \"position\": {},\n \"properties\": {},\n \"startTasks\": [\n {}\n ],\n \"triggerCriteria\": {\n \"condition\": \"\",\n \"parameters\": {},\n \"triggerCriteriaTaskImplementationClassName\": \"\"\n },\n \"triggerId\": \"\",\n \"triggerNumber\": \"\",\n \"triggerType\": \"\"\n }\n ],\n \"updateTime\": \"\",\n \"userLabel\": \"\"\n },\n \"parameters\": {},\n \"testMode\": false,\n \"triggerId\": \"\"\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/v1/:name:test"
payload := strings.NewReader("{\n \"clientId\": \"\",\n \"deadlineSecondsTime\": \"\",\n \"inputParameters\": {},\n \"integrationVersion\": {\n \"createTime\": \"\",\n \"databasePersistencePolicy\": \"\",\n \"description\": \"\",\n \"errorCatcherConfigs\": [\n {\n \"description\": \"\",\n \"errorCatcherId\": \"\",\n \"errorCatcherNumber\": \"\",\n \"label\": \"\",\n \"position\": {\n \"x\": 0,\n \"y\": 0\n },\n \"startErrorTasks\": [\n {\n \"condition\": \"\",\n \"description\": \"\",\n \"displayName\": \"\",\n \"taskConfigId\": \"\",\n \"taskId\": \"\"\n }\n ]\n }\n ],\n \"integrationParameters\": [\n {\n \"dataType\": \"\",\n \"defaultValue\": {\n \"booleanArray\": {\n \"booleanValues\": []\n },\n \"booleanValue\": false,\n \"doubleArray\": {\n \"doubleValues\": []\n },\n \"doubleValue\": \"\",\n \"intArray\": {\n \"intValues\": []\n },\n \"intValue\": \"\",\n \"jsonValue\": \"\",\n \"stringArray\": {\n \"stringValues\": []\n },\n \"stringValue\": \"\"\n },\n \"displayName\": \"\",\n \"inputOutputType\": \"\",\n \"isTransient\": false,\n \"jsonSchema\": \"\",\n \"key\": \"\",\n \"producer\": \"\",\n \"searchable\": false\n }\n ],\n \"integrationParametersInternal\": {\n \"parameters\": [\n {\n \"attributes\": {\n \"dataType\": \"\",\n \"defaultValue\": {\n \"booleanValue\": false,\n \"doubleArray\": {\n \"values\": []\n },\n \"doubleValue\": \"\",\n \"intArray\": {\n \"values\": []\n },\n \"intValue\": \"\",\n \"protoValue\": {},\n \"stringArray\": {\n \"values\": []\n },\n \"stringValue\": \"\"\n },\n \"isRequired\": false,\n \"isSearchable\": false,\n \"logSettings\": {\n \"logFieldName\": \"\",\n \"sanitizeOptions\": {\n \"isAlreadySanitized\": false,\n \"logType\": [],\n \"privacy\": \"\",\n \"sanitizeType\": \"\"\n },\n \"seedPeriod\": \"\",\n \"seedScope\": \"\",\n \"shorteningLimits\": {\n \"logAction\": \"\",\n \"logType\": [],\n \"maxArraySize\": 0,\n \"maxStringLength\": 0,\n \"shortenerType\": \"\"\n }\n },\n \"searchable\": \"\",\n \"taskVisibility\": []\n },\n \"children\": [],\n \"dataType\": \"\",\n \"defaultValue\": {\n \"booleanArray\": {\n \"booleanValues\": []\n },\n \"booleanValue\": false,\n \"doubleArray\": {\n \"doubleValues\": []\n },\n \"doubleValue\": \"\",\n \"intArray\": {\n \"intValues\": []\n },\n \"intValue\": \"\",\n \"jsonValue\": \"\",\n \"protoArray\": {\n \"protoValues\": [\n {}\n ]\n },\n \"protoValue\": {},\n \"serializedObjectValue\": {\n \"objectValue\": \"\"\n },\n \"stringArray\": {\n \"stringValues\": []\n },\n \"stringValue\": \"\"\n },\n \"inOutType\": \"\",\n \"isTransient\": false,\n \"jsonSchema\": \"\",\n \"key\": \"\",\n \"name\": \"\",\n \"producedBy\": {\n \"elementIdentifier\": \"\",\n \"elementType\": \"\"\n },\n \"producer\": \"\",\n \"protoDefName\": \"\",\n \"protoDefPath\": \"\"\n }\n ]\n },\n \"lastModifierEmail\": \"\",\n \"lockHolder\": \"\",\n \"name\": \"\",\n \"origin\": \"\",\n \"parentTemplateId\": \"\",\n \"runAsServiceAccount\": \"\",\n \"snapshotNumber\": \"\",\n \"state\": \"\",\n \"status\": \"\",\n \"taskConfigs\": [\n {\n \"description\": \"\",\n \"displayName\": \"\",\n \"errorCatcherId\": \"\",\n \"externalTaskType\": \"\",\n \"failurePolicy\": {\n \"intervalTime\": \"\",\n \"maxRetries\": 0,\n \"retryStrategy\": \"\"\n },\n \"jsonValidationOption\": \"\",\n \"nextTasks\": [\n {}\n ],\n \"nextTasksExecutionPolicy\": \"\",\n \"parameters\": {},\n \"position\": {},\n \"successPolicy\": {\n \"finalState\": \"\"\n },\n \"synchronousCallFailurePolicy\": {},\n \"task\": \"\",\n \"taskExecutionStrategy\": \"\",\n \"taskId\": \"\",\n \"taskTemplate\": \"\"\n }\n ],\n \"taskConfigsInternal\": [\n {\n \"alertConfigs\": [\n {\n \"aggregationPeriod\": \"\",\n \"alertDisabled\": false,\n \"alertName\": \"\",\n \"clientId\": \"\",\n \"durationThresholdMs\": \"\",\n \"errorEnumList\": {\n \"enumStrings\": [],\n \"filterType\": \"\"\n },\n \"metricType\": \"\",\n \"numAggregationPeriods\": 0,\n \"onlyFinalAttempt\": false,\n \"playbookUrl\": \"\",\n \"thresholdType\": \"\",\n \"thresholdValue\": {\n \"absolute\": \"\",\n \"percentage\": 0\n },\n \"warningEnumList\": {}\n }\n ],\n \"createTime\": \"\",\n \"creatorEmail\": \"\",\n \"description\": \"\",\n \"disableStrictTypeValidation\": false,\n \"errorCatcherId\": \"\",\n \"externalTaskType\": \"\",\n \"failurePolicy\": {\n \"intervalInSeconds\": \"\",\n \"maxNumRetries\": 0,\n \"retryStrategy\": \"\"\n },\n \"incomingEdgeCount\": 0,\n \"jsonValidationOption\": \"\",\n \"label\": \"\",\n \"lastModifiedTime\": \"\",\n \"nextTasks\": [\n {\n \"combinedConditions\": [\n {\n \"conditions\": [\n {\n \"eventPropertyKey\": \"\",\n \"operator\": \"\",\n \"value\": {}\n }\n ]\n }\n ],\n \"condition\": \"\",\n \"description\": \"\",\n \"label\": \"\",\n \"taskConfigId\": \"\",\n \"taskNumber\": \"\"\n }\n ],\n \"nextTasksExecutionPolicy\": \"\",\n \"parameters\": {},\n \"position\": {\n \"x\": 0,\n \"y\": 0\n },\n \"precondition\": \"\",\n \"preconditionLabel\": \"\",\n \"rollbackStrategy\": {\n \"parameters\": {\n \"parameters\": [\n {\n \"dataType\": \"\",\n \"key\": \"\",\n \"value\": {}\n }\n ]\n },\n \"rollbackTaskImplementationClassName\": \"\",\n \"taskNumbersToRollback\": []\n },\n \"successPolicy\": {\n \"finalState\": \"\"\n },\n \"synchronousCallFailurePolicy\": {},\n \"taskEntity\": {\n \"disabledForVpcSc\": false,\n \"metadata\": {\n \"activeTaskName\": \"\",\n \"admins\": [\n {\n \"googleGroupEmail\": \"\",\n \"userEmail\": \"\"\n }\n ],\n \"category\": \"\",\n \"codeSearchLink\": \"\",\n \"defaultJsonValidationOption\": \"\",\n \"defaultSpec\": \"\",\n \"description\": \"\",\n \"descriptiveName\": \"\",\n \"docMarkdown\": \"\",\n \"externalCategory\": \"\",\n \"externalCategorySequence\": 0,\n \"externalDocHtml\": \"\",\n \"externalDocLink\": \"\",\n \"externalDocMarkdown\": \"\",\n \"g3DocLink\": \"\",\n \"iconLink\": \"\",\n \"isDeprecated\": false,\n \"name\": \"\",\n \"standaloneExternalDocHtml\": \"\",\n \"status\": \"\",\n \"system\": \"\",\n \"tags\": []\n },\n \"paramSpecs\": {\n \"parameters\": [\n {\n \"className\": \"\",\n \"collectionElementClassName\": \"\",\n \"config\": {\n \"descriptivePhrase\": \"\",\n \"helpText\": \"\",\n \"hideDefaultValue\": false,\n \"inputDisplayOption\": \"\",\n \"isHidden\": false,\n \"label\": \"\",\n \"parameterNameOption\": \"\",\n \"subSectionLabel\": \"\",\n \"uiPlaceholderText\": \"\"\n },\n \"dataType\": \"\",\n \"defaultValue\": {},\n \"isDeprecated\": false,\n \"isOutput\": false,\n \"jsonSchema\": \"\",\n \"key\": \"\",\n \"protoDef\": {\n \"fullName\": \"\",\n \"path\": \"\"\n },\n \"required\": false,\n \"validationRule\": {\n \"doubleRange\": {\n \"max\": \"\",\n \"min\": \"\"\n },\n \"intRange\": {\n \"max\": \"\",\n \"min\": \"\"\n },\n \"stringRegex\": {\n \"exclusive\": false,\n \"regex\": \"\"\n }\n }\n }\n ]\n },\n \"stats\": {\n \"dimensions\": {\n \"clientId\": \"\",\n \"enumFilterType\": \"\",\n \"errorEnumString\": \"\",\n \"retryAttempt\": \"\",\n \"taskName\": \"\",\n \"taskNumber\": \"\",\n \"triggerId\": \"\",\n \"warningEnumString\": \"\",\n \"workflowId\": \"\",\n \"workflowName\": \"\"\n },\n \"durationInSeconds\": \"\",\n \"errorRate\": \"\",\n \"qps\": \"\",\n \"warningRate\": \"\"\n },\n \"taskType\": \"\",\n \"uiConfig\": {\n \"taskUiModuleConfigs\": [\n {\n \"moduleId\": \"\"\n }\n ]\n }\n },\n \"taskExecutionStrategy\": \"\",\n \"taskName\": \"\",\n \"taskNumber\": \"\",\n \"taskSpec\": \"\",\n \"taskTemplateName\": \"\",\n \"taskType\": \"\"\n }\n ],\n \"teardown\": {\n \"teardownTaskConfigs\": [\n {\n \"creatorEmail\": \"\",\n \"name\": \"\",\n \"nextTeardownTask\": {\n \"name\": \"\"\n },\n \"parameters\": {\n \"parameters\": [\n {\n \"key\": \"\",\n \"value\": {\n \"booleanArray\": {\n \"booleanValues\": []\n },\n \"booleanValue\": false,\n \"doubleArray\": {\n \"doubleValues\": []\n },\n \"doubleValue\": \"\",\n \"intArray\": {\n \"intValues\": []\n },\n \"intValue\": \"\",\n \"protoArray\": {\n \"protoValues\": [\n {}\n ]\n },\n \"protoValue\": {},\n \"serializedObjectValue\": {\n \"objectValue\": \"\"\n },\n \"stringArray\": {\n \"stringValues\": []\n },\n \"stringValue\": \"\"\n }\n }\n ]\n },\n \"properties\": {\n \"properties\": [\n {\n \"key\": \"\",\n \"value\": {}\n }\n ]\n },\n \"teardownTaskImplementationClassName\": \"\"\n }\n ]\n },\n \"triggerConfigs\": [\n {\n \"alertConfig\": [\n {\n \"aggregationPeriod\": \"\",\n \"alertThreshold\": 0,\n \"disableAlert\": false,\n \"displayName\": \"\",\n \"durationThreshold\": \"\",\n \"metricType\": \"\",\n \"onlyFinalAttempt\": false,\n \"thresholdType\": \"\",\n \"thresholdValue\": {\n \"absolute\": \"\",\n \"percentage\": 0\n }\n }\n ],\n \"cloudSchedulerConfig\": {\n \"cronTab\": \"\",\n \"errorMessage\": \"\",\n \"location\": \"\",\n \"serviceAccountEmail\": \"\"\n },\n \"description\": \"\",\n \"errorCatcherId\": \"\",\n \"label\": \"\",\n \"nextTasksExecutionPolicy\": \"\",\n \"position\": {},\n \"properties\": {},\n \"startTasks\": [\n {}\n ],\n \"triggerId\": \"\",\n \"triggerNumber\": \"\",\n \"triggerType\": \"\"\n }\n ],\n \"triggerConfigsInternal\": [\n {\n \"alertConfig\": [\n {\n \"aggregationPeriod\": \"\",\n \"alertDisabled\": false,\n \"alertName\": \"\",\n \"clientId\": \"\",\n \"durationThresholdMs\": \"\",\n \"errorEnumList\": {},\n \"metricType\": \"\",\n \"numAggregationPeriods\": 0,\n \"onlyFinalAttempt\": false,\n \"playbookUrl\": \"\",\n \"thresholdType\": \"\",\n \"thresholdValue\": {},\n \"warningEnumList\": {}\n }\n ],\n \"cloudSchedulerConfig\": {\n \"cronTab\": \"\",\n \"errorMessage\": \"\",\n \"location\": \"\",\n \"serviceAccountEmail\": \"\"\n },\n \"description\": \"\",\n \"enabledClients\": [],\n \"errorCatcherId\": \"\",\n \"label\": \"\",\n \"nextTasksExecutionPolicy\": \"\",\n \"pauseWorkflowExecutions\": false,\n \"position\": {},\n \"properties\": {},\n \"startTasks\": [\n {}\n ],\n \"triggerCriteria\": {\n \"condition\": \"\",\n \"parameters\": {},\n \"triggerCriteriaTaskImplementationClassName\": \"\"\n },\n \"triggerId\": \"\",\n \"triggerNumber\": \"\",\n \"triggerType\": \"\"\n }\n ],\n \"updateTime\": \"\",\n \"userLabel\": \"\"\n },\n \"parameters\": {},\n \"testMode\": false,\n \"triggerId\": \"\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("content-type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
POST /baseUrl/v1/:name:test HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 13780
{
"clientId": "",
"deadlineSecondsTime": "",
"inputParameters": {},
"integrationVersion": {
"createTime": "",
"databasePersistencePolicy": "",
"description": "",
"errorCatcherConfigs": [
{
"description": "",
"errorCatcherId": "",
"errorCatcherNumber": "",
"label": "",
"position": {
"x": 0,
"y": 0
},
"startErrorTasks": [
{
"condition": "",
"description": "",
"displayName": "",
"taskConfigId": "",
"taskId": ""
}
]
}
],
"integrationParameters": [
{
"dataType": "",
"defaultValue": {
"booleanArray": {
"booleanValues": []
},
"booleanValue": false,
"doubleArray": {
"doubleValues": []
},
"doubleValue": "",
"intArray": {
"intValues": []
},
"intValue": "",
"jsonValue": "",
"stringArray": {
"stringValues": []
},
"stringValue": ""
},
"displayName": "",
"inputOutputType": "",
"isTransient": false,
"jsonSchema": "",
"key": "",
"producer": "",
"searchable": false
}
],
"integrationParametersInternal": {
"parameters": [
{
"attributes": {
"dataType": "",
"defaultValue": {
"booleanValue": false,
"doubleArray": {
"values": []
},
"doubleValue": "",
"intArray": {
"values": []
},
"intValue": "",
"protoValue": {},
"stringArray": {
"values": []
},
"stringValue": ""
},
"isRequired": false,
"isSearchable": false,
"logSettings": {
"logFieldName": "",
"sanitizeOptions": {
"isAlreadySanitized": false,
"logType": [],
"privacy": "",
"sanitizeType": ""
},
"seedPeriod": "",
"seedScope": "",
"shorteningLimits": {
"logAction": "",
"logType": [],
"maxArraySize": 0,
"maxStringLength": 0,
"shortenerType": ""
}
},
"searchable": "",
"taskVisibility": []
},
"children": [],
"dataType": "",
"defaultValue": {
"booleanArray": {
"booleanValues": []
},
"booleanValue": false,
"doubleArray": {
"doubleValues": []
},
"doubleValue": "",
"intArray": {
"intValues": []
},
"intValue": "",
"jsonValue": "",
"protoArray": {
"protoValues": [
{}
]
},
"protoValue": {},
"serializedObjectValue": {
"objectValue": ""
},
"stringArray": {
"stringValues": []
},
"stringValue": ""
},
"inOutType": "",
"isTransient": false,
"jsonSchema": "",
"key": "",
"name": "",
"producedBy": {
"elementIdentifier": "",
"elementType": ""
},
"producer": "",
"protoDefName": "",
"protoDefPath": ""
}
]
},
"lastModifierEmail": "",
"lockHolder": "",
"name": "",
"origin": "",
"parentTemplateId": "",
"runAsServiceAccount": "",
"snapshotNumber": "",
"state": "",
"status": "",
"taskConfigs": [
{
"description": "",
"displayName": "",
"errorCatcherId": "",
"externalTaskType": "",
"failurePolicy": {
"intervalTime": "",
"maxRetries": 0,
"retryStrategy": ""
},
"jsonValidationOption": "",
"nextTasks": [
{}
],
"nextTasksExecutionPolicy": "",
"parameters": {},
"position": {},
"successPolicy": {
"finalState": ""
},
"synchronousCallFailurePolicy": {},
"task": "",
"taskExecutionStrategy": "",
"taskId": "",
"taskTemplate": ""
}
],
"taskConfigsInternal": [
{
"alertConfigs": [
{
"aggregationPeriod": "",
"alertDisabled": false,
"alertName": "",
"clientId": "",
"durationThresholdMs": "",
"errorEnumList": {
"enumStrings": [],
"filterType": ""
},
"metricType": "",
"numAggregationPeriods": 0,
"onlyFinalAttempt": false,
"playbookUrl": "",
"thresholdType": "",
"thresholdValue": {
"absolute": "",
"percentage": 0
},
"warningEnumList": {}
}
],
"createTime": "",
"creatorEmail": "",
"description": "",
"disableStrictTypeValidation": false,
"errorCatcherId": "",
"externalTaskType": "",
"failurePolicy": {
"intervalInSeconds": "",
"maxNumRetries": 0,
"retryStrategy": ""
},
"incomingEdgeCount": 0,
"jsonValidationOption": "",
"label": "",
"lastModifiedTime": "",
"nextTasks": [
{
"combinedConditions": [
{
"conditions": [
{
"eventPropertyKey": "",
"operator": "",
"value": {}
}
]
}
],
"condition": "",
"description": "",
"label": "",
"taskConfigId": "",
"taskNumber": ""
}
],
"nextTasksExecutionPolicy": "",
"parameters": {},
"position": {
"x": 0,
"y": 0
},
"precondition": "",
"preconditionLabel": "",
"rollbackStrategy": {
"parameters": {
"parameters": [
{
"dataType": "",
"key": "",
"value": {}
}
]
},
"rollbackTaskImplementationClassName": "",
"taskNumbersToRollback": []
},
"successPolicy": {
"finalState": ""
},
"synchronousCallFailurePolicy": {},
"taskEntity": {
"disabledForVpcSc": false,
"metadata": {
"activeTaskName": "",
"admins": [
{
"googleGroupEmail": "",
"userEmail": ""
}
],
"category": "",
"codeSearchLink": "",
"defaultJsonValidationOption": "",
"defaultSpec": "",
"description": "",
"descriptiveName": "",
"docMarkdown": "",
"externalCategory": "",
"externalCategorySequence": 0,
"externalDocHtml": "",
"externalDocLink": "",
"externalDocMarkdown": "",
"g3DocLink": "",
"iconLink": "",
"isDeprecated": false,
"name": "",
"standaloneExternalDocHtml": "",
"status": "",
"system": "",
"tags": []
},
"paramSpecs": {
"parameters": [
{
"className": "",
"collectionElementClassName": "",
"config": {
"descriptivePhrase": "",
"helpText": "",
"hideDefaultValue": false,
"inputDisplayOption": "",
"isHidden": false,
"label": "",
"parameterNameOption": "",
"subSectionLabel": "",
"uiPlaceholderText": ""
},
"dataType": "",
"defaultValue": {},
"isDeprecated": false,
"isOutput": false,
"jsonSchema": "",
"key": "",
"protoDef": {
"fullName": "",
"path": ""
},
"required": false,
"validationRule": {
"doubleRange": {
"max": "",
"min": ""
},
"intRange": {
"max": "",
"min": ""
},
"stringRegex": {
"exclusive": false,
"regex": ""
}
}
}
]
},
"stats": {
"dimensions": {
"clientId": "",
"enumFilterType": "",
"errorEnumString": "",
"retryAttempt": "",
"taskName": "",
"taskNumber": "",
"triggerId": "",
"warningEnumString": "",
"workflowId": "",
"workflowName": ""
},
"durationInSeconds": "",
"errorRate": "",
"qps": "",
"warningRate": ""
},
"taskType": "",
"uiConfig": {
"taskUiModuleConfigs": [
{
"moduleId": ""
}
]
}
},
"taskExecutionStrategy": "",
"taskName": "",
"taskNumber": "",
"taskSpec": "",
"taskTemplateName": "",
"taskType": ""
}
],
"teardown": {
"teardownTaskConfigs": [
{
"creatorEmail": "",
"name": "",
"nextTeardownTask": {
"name": ""
},
"parameters": {
"parameters": [
{
"key": "",
"value": {
"booleanArray": {
"booleanValues": []
},
"booleanValue": false,
"doubleArray": {
"doubleValues": []
},
"doubleValue": "",
"intArray": {
"intValues": []
},
"intValue": "",
"protoArray": {
"protoValues": [
{}
]
},
"protoValue": {},
"serializedObjectValue": {
"objectValue": ""
},
"stringArray": {
"stringValues": []
},
"stringValue": ""
}
}
]
},
"properties": {
"properties": [
{
"key": "",
"value": {}
}
]
},
"teardownTaskImplementationClassName": ""
}
]
},
"triggerConfigs": [
{
"alertConfig": [
{
"aggregationPeriod": "",
"alertThreshold": 0,
"disableAlert": false,
"displayName": "",
"durationThreshold": "",
"metricType": "",
"onlyFinalAttempt": false,
"thresholdType": "",
"thresholdValue": {
"absolute": "",
"percentage": 0
}
}
],
"cloudSchedulerConfig": {
"cronTab": "",
"errorMessage": "",
"location": "",
"serviceAccountEmail": ""
},
"description": "",
"errorCatcherId": "",
"label": "",
"nextTasksExecutionPolicy": "",
"position": {},
"properties": {},
"startTasks": [
{}
],
"triggerId": "",
"triggerNumber": "",
"triggerType": ""
}
],
"triggerConfigsInternal": [
{
"alertConfig": [
{
"aggregationPeriod": "",
"alertDisabled": false,
"alertName": "",
"clientId": "",
"durationThresholdMs": "",
"errorEnumList": {},
"metricType": "",
"numAggregationPeriods": 0,
"onlyFinalAttempt": false,
"playbookUrl": "",
"thresholdType": "",
"thresholdValue": {},
"warningEnumList": {}
}
],
"cloudSchedulerConfig": {
"cronTab": "",
"errorMessage": "",
"location": "",
"serviceAccountEmail": ""
},
"description": "",
"enabledClients": [],
"errorCatcherId": "",
"label": "",
"nextTasksExecutionPolicy": "",
"pauseWorkflowExecutions": false,
"position": {},
"properties": {},
"startTasks": [
{}
],
"triggerCriteria": {
"condition": "",
"parameters": {},
"triggerCriteriaTaskImplementationClassName": ""
},
"triggerId": "",
"triggerNumber": "",
"triggerType": ""
}
],
"updateTime": "",
"userLabel": ""
},
"parameters": {},
"testMode": false,
"triggerId": ""
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/v1/:name:test")
.setHeader("content-type", "application/json")
.setBody("{\n \"clientId\": \"\",\n \"deadlineSecondsTime\": \"\",\n \"inputParameters\": {},\n \"integrationVersion\": {\n \"createTime\": \"\",\n \"databasePersistencePolicy\": \"\",\n \"description\": \"\",\n \"errorCatcherConfigs\": [\n {\n \"description\": \"\",\n \"errorCatcherId\": \"\",\n \"errorCatcherNumber\": \"\",\n \"label\": \"\",\n \"position\": {\n \"x\": 0,\n \"y\": 0\n },\n \"startErrorTasks\": [\n {\n \"condition\": \"\",\n \"description\": \"\",\n \"displayName\": \"\",\n \"taskConfigId\": \"\",\n \"taskId\": \"\"\n }\n ]\n }\n ],\n \"integrationParameters\": [\n {\n \"dataType\": \"\",\n \"defaultValue\": {\n \"booleanArray\": {\n \"booleanValues\": []\n },\n \"booleanValue\": false,\n \"doubleArray\": {\n \"doubleValues\": []\n },\n \"doubleValue\": \"\",\n \"intArray\": {\n \"intValues\": []\n },\n \"intValue\": \"\",\n \"jsonValue\": \"\",\n \"stringArray\": {\n \"stringValues\": []\n },\n \"stringValue\": \"\"\n },\n \"displayName\": \"\",\n \"inputOutputType\": \"\",\n \"isTransient\": false,\n \"jsonSchema\": \"\",\n \"key\": \"\",\n \"producer\": \"\",\n \"searchable\": false\n }\n ],\n \"integrationParametersInternal\": {\n \"parameters\": [\n {\n \"attributes\": {\n \"dataType\": \"\",\n \"defaultValue\": {\n \"booleanValue\": false,\n \"doubleArray\": {\n \"values\": []\n },\n \"doubleValue\": \"\",\n \"intArray\": {\n \"values\": []\n },\n \"intValue\": \"\",\n \"protoValue\": {},\n \"stringArray\": {\n \"values\": []\n },\n \"stringValue\": \"\"\n },\n \"isRequired\": false,\n \"isSearchable\": false,\n \"logSettings\": {\n \"logFieldName\": \"\",\n \"sanitizeOptions\": {\n \"isAlreadySanitized\": false,\n \"logType\": [],\n \"privacy\": \"\",\n \"sanitizeType\": \"\"\n },\n \"seedPeriod\": \"\",\n \"seedScope\": \"\",\n \"shorteningLimits\": {\n \"logAction\": \"\",\n \"logType\": [],\n \"maxArraySize\": 0,\n \"maxStringLength\": 0,\n \"shortenerType\": \"\"\n }\n },\n \"searchable\": \"\",\n \"taskVisibility\": []\n },\n \"children\": [],\n \"dataType\": \"\",\n \"defaultValue\": {\n \"booleanArray\": {\n \"booleanValues\": []\n },\n \"booleanValue\": false,\n \"doubleArray\": {\n \"doubleValues\": []\n },\n \"doubleValue\": \"\",\n \"intArray\": {\n \"intValues\": []\n },\n \"intValue\": \"\",\n \"jsonValue\": \"\",\n \"protoArray\": {\n \"protoValues\": [\n {}\n ]\n },\n \"protoValue\": {},\n \"serializedObjectValue\": {\n \"objectValue\": \"\"\n },\n \"stringArray\": {\n \"stringValues\": []\n },\n \"stringValue\": \"\"\n },\n \"inOutType\": \"\",\n \"isTransient\": false,\n \"jsonSchema\": \"\",\n \"key\": \"\",\n \"name\": \"\",\n \"producedBy\": {\n \"elementIdentifier\": \"\",\n \"elementType\": \"\"\n },\n \"producer\": \"\",\n \"protoDefName\": \"\",\n \"protoDefPath\": \"\"\n }\n ]\n },\n \"lastModifierEmail\": \"\",\n \"lockHolder\": \"\",\n \"name\": \"\",\n \"origin\": \"\",\n \"parentTemplateId\": \"\",\n \"runAsServiceAccount\": \"\",\n \"snapshotNumber\": \"\",\n \"state\": \"\",\n \"status\": \"\",\n \"taskConfigs\": [\n {\n \"description\": \"\",\n \"displayName\": \"\",\n \"errorCatcherId\": \"\",\n \"externalTaskType\": \"\",\n \"failurePolicy\": {\n \"intervalTime\": \"\",\n \"maxRetries\": 0,\n \"retryStrategy\": \"\"\n },\n \"jsonValidationOption\": \"\",\n \"nextTasks\": [\n {}\n ],\n \"nextTasksExecutionPolicy\": \"\",\n \"parameters\": {},\n \"position\": {},\n \"successPolicy\": {\n \"finalState\": \"\"\n },\n \"synchronousCallFailurePolicy\": {},\n \"task\": \"\",\n \"taskExecutionStrategy\": \"\",\n \"taskId\": \"\",\n \"taskTemplate\": \"\"\n }\n ],\n \"taskConfigsInternal\": [\n {\n \"alertConfigs\": [\n {\n \"aggregationPeriod\": \"\",\n \"alertDisabled\": false,\n \"alertName\": \"\",\n \"clientId\": \"\",\n \"durationThresholdMs\": \"\",\n \"errorEnumList\": {\n \"enumStrings\": [],\n \"filterType\": \"\"\n },\n \"metricType\": \"\",\n \"numAggregationPeriods\": 0,\n \"onlyFinalAttempt\": false,\n \"playbookUrl\": \"\",\n \"thresholdType\": \"\",\n \"thresholdValue\": {\n \"absolute\": \"\",\n \"percentage\": 0\n },\n \"warningEnumList\": {}\n }\n ],\n \"createTime\": \"\",\n \"creatorEmail\": \"\",\n \"description\": \"\",\n \"disableStrictTypeValidation\": false,\n \"errorCatcherId\": \"\",\n \"externalTaskType\": \"\",\n \"failurePolicy\": {\n \"intervalInSeconds\": \"\",\n \"maxNumRetries\": 0,\n \"retryStrategy\": \"\"\n },\n \"incomingEdgeCount\": 0,\n \"jsonValidationOption\": \"\",\n \"label\": \"\",\n \"lastModifiedTime\": \"\",\n \"nextTasks\": [\n {\n \"combinedConditions\": [\n {\n \"conditions\": [\n {\n \"eventPropertyKey\": \"\",\n \"operator\": \"\",\n \"value\": {}\n }\n ]\n }\n ],\n \"condition\": \"\",\n \"description\": \"\",\n \"label\": \"\",\n \"taskConfigId\": \"\",\n \"taskNumber\": \"\"\n }\n ],\n \"nextTasksExecutionPolicy\": \"\",\n \"parameters\": {},\n \"position\": {\n \"x\": 0,\n \"y\": 0\n },\n \"precondition\": \"\",\n \"preconditionLabel\": \"\",\n \"rollbackStrategy\": {\n \"parameters\": {\n \"parameters\": [\n {\n \"dataType\": \"\",\n \"key\": \"\",\n \"value\": {}\n }\n ]\n },\n \"rollbackTaskImplementationClassName\": \"\",\n \"taskNumbersToRollback\": []\n },\n \"successPolicy\": {\n \"finalState\": \"\"\n },\n \"synchronousCallFailurePolicy\": {},\n \"taskEntity\": {\n \"disabledForVpcSc\": false,\n \"metadata\": {\n \"activeTaskName\": \"\",\n \"admins\": [\n {\n \"googleGroupEmail\": \"\",\n \"userEmail\": \"\"\n }\n ],\n \"category\": \"\",\n \"codeSearchLink\": \"\",\n \"defaultJsonValidationOption\": \"\",\n \"defaultSpec\": \"\",\n \"description\": \"\",\n \"descriptiveName\": \"\",\n \"docMarkdown\": \"\",\n \"externalCategory\": \"\",\n \"externalCategorySequence\": 0,\n \"externalDocHtml\": \"\",\n \"externalDocLink\": \"\",\n \"externalDocMarkdown\": \"\",\n \"g3DocLink\": \"\",\n \"iconLink\": \"\",\n \"isDeprecated\": false,\n \"name\": \"\",\n \"standaloneExternalDocHtml\": \"\",\n \"status\": \"\",\n \"system\": \"\",\n \"tags\": []\n },\n \"paramSpecs\": {\n \"parameters\": [\n {\n \"className\": \"\",\n \"collectionElementClassName\": \"\",\n \"config\": {\n \"descriptivePhrase\": \"\",\n \"helpText\": \"\",\n \"hideDefaultValue\": false,\n \"inputDisplayOption\": \"\",\n \"isHidden\": false,\n \"label\": \"\",\n \"parameterNameOption\": \"\",\n \"subSectionLabel\": \"\",\n \"uiPlaceholderText\": \"\"\n },\n \"dataType\": \"\",\n \"defaultValue\": {},\n \"isDeprecated\": false,\n \"isOutput\": false,\n \"jsonSchema\": \"\",\n \"key\": \"\",\n \"protoDef\": {\n \"fullName\": \"\",\n \"path\": \"\"\n },\n \"required\": false,\n \"validationRule\": {\n \"doubleRange\": {\n \"max\": \"\",\n \"min\": \"\"\n },\n \"intRange\": {\n \"max\": \"\",\n \"min\": \"\"\n },\n \"stringRegex\": {\n \"exclusive\": false,\n \"regex\": \"\"\n }\n }\n }\n ]\n },\n \"stats\": {\n \"dimensions\": {\n \"clientId\": \"\",\n \"enumFilterType\": \"\",\n \"errorEnumString\": \"\",\n \"retryAttempt\": \"\",\n \"taskName\": \"\",\n \"taskNumber\": \"\",\n \"triggerId\": \"\",\n \"warningEnumString\": \"\",\n \"workflowId\": \"\",\n \"workflowName\": \"\"\n },\n \"durationInSeconds\": \"\",\n \"errorRate\": \"\",\n \"qps\": \"\",\n \"warningRate\": \"\"\n },\n \"taskType\": \"\",\n \"uiConfig\": {\n \"taskUiModuleConfigs\": [\n {\n \"moduleId\": \"\"\n }\n ]\n }\n },\n \"taskExecutionStrategy\": \"\",\n \"taskName\": \"\",\n \"taskNumber\": \"\",\n \"taskSpec\": \"\",\n \"taskTemplateName\": \"\",\n \"taskType\": \"\"\n }\n ],\n \"teardown\": {\n \"teardownTaskConfigs\": [\n {\n \"creatorEmail\": \"\",\n \"name\": \"\",\n \"nextTeardownTask\": {\n \"name\": \"\"\n },\n \"parameters\": {\n \"parameters\": [\n {\n \"key\": \"\",\n \"value\": {\n \"booleanArray\": {\n \"booleanValues\": []\n },\n \"booleanValue\": false,\n \"doubleArray\": {\n \"doubleValues\": []\n },\n \"doubleValue\": \"\",\n \"intArray\": {\n \"intValues\": []\n },\n \"intValue\": \"\",\n \"protoArray\": {\n \"protoValues\": [\n {}\n ]\n },\n \"protoValue\": {},\n \"serializedObjectValue\": {\n \"objectValue\": \"\"\n },\n \"stringArray\": {\n \"stringValues\": []\n },\n \"stringValue\": \"\"\n }\n }\n ]\n },\n \"properties\": {\n \"properties\": [\n {\n \"key\": \"\",\n \"value\": {}\n }\n ]\n },\n \"teardownTaskImplementationClassName\": \"\"\n }\n ]\n },\n \"triggerConfigs\": [\n {\n \"alertConfig\": [\n {\n \"aggregationPeriod\": \"\",\n \"alertThreshold\": 0,\n \"disableAlert\": false,\n \"displayName\": \"\",\n \"durationThreshold\": \"\",\n \"metricType\": \"\",\n \"onlyFinalAttempt\": false,\n \"thresholdType\": \"\",\n \"thresholdValue\": {\n \"absolute\": \"\",\n \"percentage\": 0\n }\n }\n ],\n \"cloudSchedulerConfig\": {\n \"cronTab\": \"\",\n \"errorMessage\": \"\",\n \"location\": \"\",\n \"serviceAccountEmail\": \"\"\n },\n \"description\": \"\",\n \"errorCatcherId\": \"\",\n \"label\": \"\",\n \"nextTasksExecutionPolicy\": \"\",\n \"position\": {},\n \"properties\": {},\n \"startTasks\": [\n {}\n ],\n \"triggerId\": \"\",\n \"triggerNumber\": \"\",\n \"triggerType\": \"\"\n }\n ],\n \"triggerConfigsInternal\": [\n {\n \"alertConfig\": [\n {\n \"aggregationPeriod\": \"\",\n \"alertDisabled\": false,\n \"alertName\": \"\",\n \"clientId\": \"\",\n \"durationThresholdMs\": \"\",\n \"errorEnumList\": {},\n \"metricType\": \"\",\n \"numAggregationPeriods\": 0,\n \"onlyFinalAttempt\": false,\n \"playbookUrl\": \"\",\n \"thresholdType\": \"\",\n \"thresholdValue\": {},\n \"warningEnumList\": {}\n }\n ],\n \"cloudSchedulerConfig\": {\n \"cronTab\": \"\",\n \"errorMessage\": \"\",\n \"location\": \"\",\n \"serviceAccountEmail\": \"\"\n },\n \"description\": \"\",\n \"enabledClients\": [],\n \"errorCatcherId\": \"\",\n \"label\": \"\",\n \"nextTasksExecutionPolicy\": \"\",\n \"pauseWorkflowExecutions\": false,\n \"position\": {},\n \"properties\": {},\n \"startTasks\": [\n {}\n ],\n \"triggerCriteria\": {\n \"condition\": \"\",\n \"parameters\": {},\n \"triggerCriteriaTaskImplementationClassName\": \"\"\n },\n \"triggerId\": \"\",\n \"triggerNumber\": \"\",\n \"triggerType\": \"\"\n }\n ],\n \"updateTime\": \"\",\n \"userLabel\": \"\"\n },\n \"parameters\": {},\n \"testMode\": false,\n \"triggerId\": \"\"\n}")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/v1/:name:test"))
.header("content-type", "application/json")
.method("POST", HttpRequest.BodyPublishers.ofString("{\n \"clientId\": \"\",\n \"deadlineSecondsTime\": \"\",\n \"inputParameters\": {},\n \"integrationVersion\": {\n \"createTime\": \"\",\n \"databasePersistencePolicy\": \"\",\n \"description\": \"\",\n \"errorCatcherConfigs\": [\n {\n \"description\": \"\",\n \"errorCatcherId\": \"\",\n \"errorCatcherNumber\": \"\",\n \"label\": \"\",\n \"position\": {\n \"x\": 0,\n \"y\": 0\n },\n \"startErrorTasks\": [\n {\n \"condition\": \"\",\n \"description\": \"\",\n \"displayName\": \"\",\n \"taskConfigId\": \"\",\n \"taskId\": \"\"\n }\n ]\n }\n ],\n \"integrationParameters\": [\n {\n \"dataType\": \"\",\n \"defaultValue\": {\n \"booleanArray\": {\n \"booleanValues\": []\n },\n \"booleanValue\": false,\n \"doubleArray\": {\n \"doubleValues\": []\n },\n \"doubleValue\": \"\",\n \"intArray\": {\n \"intValues\": []\n },\n \"intValue\": \"\",\n \"jsonValue\": \"\",\n \"stringArray\": {\n \"stringValues\": []\n },\n \"stringValue\": \"\"\n },\n \"displayName\": \"\",\n \"inputOutputType\": \"\",\n \"isTransient\": false,\n \"jsonSchema\": \"\",\n \"key\": \"\",\n \"producer\": \"\",\n \"searchable\": false\n }\n ],\n \"integrationParametersInternal\": {\n \"parameters\": [\n {\n \"attributes\": {\n \"dataType\": \"\",\n \"defaultValue\": {\n \"booleanValue\": false,\n \"doubleArray\": {\n \"values\": []\n },\n \"doubleValue\": \"\",\n \"intArray\": {\n \"values\": []\n },\n \"intValue\": \"\",\n \"protoValue\": {},\n \"stringArray\": {\n \"values\": []\n },\n \"stringValue\": \"\"\n },\n \"isRequired\": false,\n \"isSearchable\": false,\n \"logSettings\": {\n \"logFieldName\": \"\",\n \"sanitizeOptions\": {\n \"isAlreadySanitized\": false,\n \"logType\": [],\n \"privacy\": \"\",\n \"sanitizeType\": \"\"\n },\n \"seedPeriod\": \"\",\n \"seedScope\": \"\",\n \"shorteningLimits\": {\n \"logAction\": \"\",\n \"logType\": [],\n \"maxArraySize\": 0,\n \"maxStringLength\": 0,\n \"shortenerType\": \"\"\n }\n },\n \"searchable\": \"\",\n \"taskVisibility\": []\n },\n \"children\": [],\n \"dataType\": \"\",\n \"defaultValue\": {\n \"booleanArray\": {\n \"booleanValues\": []\n },\n \"booleanValue\": false,\n \"doubleArray\": {\n \"doubleValues\": []\n },\n \"doubleValue\": \"\",\n \"intArray\": {\n \"intValues\": []\n },\n \"intValue\": \"\",\n \"jsonValue\": \"\",\n \"protoArray\": {\n \"protoValues\": [\n {}\n ]\n },\n \"protoValue\": {},\n \"serializedObjectValue\": {\n \"objectValue\": \"\"\n },\n \"stringArray\": {\n \"stringValues\": []\n },\n \"stringValue\": \"\"\n },\n \"inOutType\": \"\",\n \"isTransient\": false,\n \"jsonSchema\": \"\",\n \"key\": \"\",\n \"name\": \"\",\n \"producedBy\": {\n \"elementIdentifier\": \"\",\n \"elementType\": \"\"\n },\n \"producer\": \"\",\n \"protoDefName\": \"\",\n \"protoDefPath\": \"\"\n }\n ]\n },\n \"lastModifierEmail\": \"\",\n \"lockHolder\": \"\",\n \"name\": \"\",\n \"origin\": \"\",\n \"parentTemplateId\": \"\",\n \"runAsServiceAccount\": \"\",\n \"snapshotNumber\": \"\",\n \"state\": \"\",\n \"status\": \"\",\n \"taskConfigs\": [\n {\n \"description\": \"\",\n \"displayName\": \"\",\n \"errorCatcherId\": \"\",\n \"externalTaskType\": \"\",\n \"failurePolicy\": {\n \"intervalTime\": \"\",\n \"maxRetries\": 0,\n \"retryStrategy\": \"\"\n },\n \"jsonValidationOption\": \"\",\n \"nextTasks\": [\n {}\n ],\n \"nextTasksExecutionPolicy\": \"\",\n \"parameters\": {},\n \"position\": {},\n \"successPolicy\": {\n \"finalState\": \"\"\n },\n \"synchronousCallFailurePolicy\": {},\n \"task\": \"\",\n \"taskExecutionStrategy\": \"\",\n \"taskId\": \"\",\n \"taskTemplate\": \"\"\n }\n ],\n \"taskConfigsInternal\": [\n {\n \"alertConfigs\": [\n {\n \"aggregationPeriod\": \"\",\n \"alertDisabled\": false,\n \"alertName\": \"\",\n \"clientId\": \"\",\n \"durationThresholdMs\": \"\",\n \"errorEnumList\": {\n \"enumStrings\": [],\n \"filterType\": \"\"\n },\n \"metricType\": \"\",\n \"numAggregationPeriods\": 0,\n \"onlyFinalAttempt\": false,\n \"playbookUrl\": \"\",\n \"thresholdType\": \"\",\n \"thresholdValue\": {\n \"absolute\": \"\",\n \"percentage\": 0\n },\n \"warningEnumList\": {}\n }\n ],\n \"createTime\": \"\",\n \"creatorEmail\": \"\",\n \"description\": \"\",\n \"disableStrictTypeValidation\": false,\n \"errorCatcherId\": \"\",\n \"externalTaskType\": \"\",\n \"failurePolicy\": {\n \"intervalInSeconds\": \"\",\n \"maxNumRetries\": 0,\n \"retryStrategy\": \"\"\n },\n \"incomingEdgeCount\": 0,\n \"jsonValidationOption\": \"\",\n \"label\": \"\",\n \"lastModifiedTime\": \"\",\n \"nextTasks\": [\n {\n \"combinedConditions\": [\n {\n \"conditions\": [\n {\n \"eventPropertyKey\": \"\",\n \"operator\": \"\",\n \"value\": {}\n }\n ]\n }\n ],\n \"condition\": \"\",\n \"description\": \"\",\n \"label\": \"\",\n \"taskConfigId\": \"\",\n \"taskNumber\": \"\"\n }\n ],\n \"nextTasksExecutionPolicy\": \"\",\n \"parameters\": {},\n \"position\": {\n \"x\": 0,\n \"y\": 0\n },\n \"precondition\": \"\",\n \"preconditionLabel\": \"\",\n \"rollbackStrategy\": {\n \"parameters\": {\n \"parameters\": [\n {\n \"dataType\": \"\",\n \"key\": \"\",\n \"value\": {}\n }\n ]\n },\n \"rollbackTaskImplementationClassName\": \"\",\n \"taskNumbersToRollback\": []\n },\n \"successPolicy\": {\n \"finalState\": \"\"\n },\n \"synchronousCallFailurePolicy\": {},\n \"taskEntity\": {\n \"disabledForVpcSc\": false,\n \"metadata\": {\n \"activeTaskName\": \"\",\n \"admins\": [\n {\n \"googleGroupEmail\": \"\",\n \"userEmail\": \"\"\n }\n ],\n \"category\": \"\",\n \"codeSearchLink\": \"\",\n \"defaultJsonValidationOption\": \"\",\n \"defaultSpec\": \"\",\n \"description\": \"\",\n \"descriptiveName\": \"\",\n \"docMarkdown\": \"\",\n \"externalCategory\": \"\",\n \"externalCategorySequence\": 0,\n \"externalDocHtml\": \"\",\n \"externalDocLink\": \"\",\n \"externalDocMarkdown\": \"\",\n \"g3DocLink\": \"\",\n \"iconLink\": \"\",\n \"isDeprecated\": false,\n \"name\": \"\",\n \"standaloneExternalDocHtml\": \"\",\n \"status\": \"\",\n \"system\": \"\",\n \"tags\": []\n },\n \"paramSpecs\": {\n \"parameters\": [\n {\n \"className\": \"\",\n \"collectionElementClassName\": \"\",\n \"config\": {\n \"descriptivePhrase\": \"\",\n \"helpText\": \"\",\n \"hideDefaultValue\": false,\n \"inputDisplayOption\": \"\",\n \"isHidden\": false,\n \"label\": \"\",\n \"parameterNameOption\": \"\",\n \"subSectionLabel\": \"\",\n \"uiPlaceholderText\": \"\"\n },\n \"dataType\": \"\",\n \"defaultValue\": {},\n \"isDeprecated\": false,\n \"isOutput\": false,\n \"jsonSchema\": \"\",\n \"key\": \"\",\n \"protoDef\": {\n \"fullName\": \"\",\n \"path\": \"\"\n },\n \"required\": false,\n \"validationRule\": {\n \"doubleRange\": {\n \"max\": \"\",\n \"min\": \"\"\n },\n \"intRange\": {\n \"max\": \"\",\n \"min\": \"\"\n },\n \"stringRegex\": {\n \"exclusive\": false,\n \"regex\": \"\"\n }\n }\n }\n ]\n },\n \"stats\": {\n \"dimensions\": {\n \"clientId\": \"\",\n \"enumFilterType\": \"\",\n \"errorEnumString\": \"\",\n \"retryAttempt\": \"\",\n \"taskName\": \"\",\n \"taskNumber\": \"\",\n \"triggerId\": \"\",\n \"warningEnumString\": \"\",\n \"workflowId\": \"\",\n \"workflowName\": \"\"\n },\n \"durationInSeconds\": \"\",\n \"errorRate\": \"\",\n \"qps\": \"\",\n \"warningRate\": \"\"\n },\n \"taskType\": \"\",\n \"uiConfig\": {\n \"taskUiModuleConfigs\": [\n {\n \"moduleId\": \"\"\n }\n ]\n }\n },\n \"taskExecutionStrategy\": \"\",\n \"taskName\": \"\",\n \"taskNumber\": \"\",\n \"taskSpec\": \"\",\n \"taskTemplateName\": \"\",\n \"taskType\": \"\"\n }\n ],\n \"teardown\": {\n \"teardownTaskConfigs\": [\n {\n \"creatorEmail\": \"\",\n \"name\": \"\",\n \"nextTeardownTask\": {\n \"name\": \"\"\n },\n \"parameters\": {\n \"parameters\": [\n {\n \"key\": \"\",\n \"value\": {\n \"booleanArray\": {\n \"booleanValues\": []\n },\n \"booleanValue\": false,\n \"doubleArray\": {\n \"doubleValues\": []\n },\n \"doubleValue\": \"\",\n \"intArray\": {\n \"intValues\": []\n },\n \"intValue\": \"\",\n \"protoArray\": {\n \"protoValues\": [\n {}\n ]\n },\n \"protoValue\": {},\n \"serializedObjectValue\": {\n \"objectValue\": \"\"\n },\n \"stringArray\": {\n \"stringValues\": []\n },\n \"stringValue\": \"\"\n }\n }\n ]\n },\n \"properties\": {\n \"properties\": [\n {\n \"key\": \"\",\n \"value\": {}\n }\n ]\n },\n \"teardownTaskImplementationClassName\": \"\"\n }\n ]\n },\n \"triggerConfigs\": [\n {\n \"alertConfig\": [\n {\n \"aggregationPeriod\": \"\",\n \"alertThreshold\": 0,\n \"disableAlert\": false,\n \"displayName\": \"\",\n \"durationThreshold\": \"\",\n \"metricType\": \"\",\n \"onlyFinalAttempt\": false,\n \"thresholdType\": \"\",\n \"thresholdValue\": {\n \"absolute\": \"\",\n \"percentage\": 0\n }\n }\n ],\n \"cloudSchedulerConfig\": {\n \"cronTab\": \"\",\n \"errorMessage\": \"\",\n \"location\": \"\",\n \"serviceAccountEmail\": \"\"\n },\n \"description\": \"\",\n \"errorCatcherId\": \"\",\n \"label\": \"\",\n \"nextTasksExecutionPolicy\": \"\",\n \"position\": {},\n \"properties\": {},\n \"startTasks\": [\n {}\n ],\n \"triggerId\": \"\",\n \"triggerNumber\": \"\",\n \"triggerType\": \"\"\n }\n ],\n \"triggerConfigsInternal\": [\n {\n \"alertConfig\": [\n {\n \"aggregationPeriod\": \"\",\n \"alertDisabled\": false,\n \"alertName\": \"\",\n \"clientId\": \"\",\n \"durationThresholdMs\": \"\",\n \"errorEnumList\": {},\n \"metricType\": \"\",\n \"numAggregationPeriods\": 0,\n \"onlyFinalAttempt\": false,\n \"playbookUrl\": \"\",\n \"thresholdType\": \"\",\n \"thresholdValue\": {},\n \"warningEnumList\": {}\n }\n ],\n \"cloudSchedulerConfig\": {\n \"cronTab\": \"\",\n \"errorMessage\": \"\",\n \"location\": \"\",\n \"serviceAccountEmail\": \"\"\n },\n \"description\": \"\",\n \"enabledClients\": [],\n \"errorCatcherId\": \"\",\n \"label\": \"\",\n \"nextTasksExecutionPolicy\": \"\",\n \"pauseWorkflowExecutions\": false,\n \"position\": {},\n \"properties\": {},\n \"startTasks\": [\n {}\n ],\n \"triggerCriteria\": {\n \"condition\": \"\",\n \"parameters\": {},\n \"triggerCriteriaTaskImplementationClassName\": \"\"\n },\n \"triggerId\": \"\",\n \"triggerNumber\": \"\",\n \"triggerType\": \"\"\n }\n ],\n \"updateTime\": \"\",\n \"userLabel\": \"\"\n },\n \"parameters\": {},\n \"testMode\": false,\n \"triggerId\": \"\"\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 \"clientId\": \"\",\n \"deadlineSecondsTime\": \"\",\n \"inputParameters\": {},\n \"integrationVersion\": {\n \"createTime\": \"\",\n \"databasePersistencePolicy\": \"\",\n \"description\": \"\",\n \"errorCatcherConfigs\": [\n {\n \"description\": \"\",\n \"errorCatcherId\": \"\",\n \"errorCatcherNumber\": \"\",\n \"label\": \"\",\n \"position\": {\n \"x\": 0,\n \"y\": 0\n },\n \"startErrorTasks\": [\n {\n \"condition\": \"\",\n \"description\": \"\",\n \"displayName\": \"\",\n \"taskConfigId\": \"\",\n \"taskId\": \"\"\n }\n ]\n }\n ],\n \"integrationParameters\": [\n {\n \"dataType\": \"\",\n \"defaultValue\": {\n \"booleanArray\": {\n \"booleanValues\": []\n },\n \"booleanValue\": false,\n \"doubleArray\": {\n \"doubleValues\": []\n },\n \"doubleValue\": \"\",\n \"intArray\": {\n \"intValues\": []\n },\n \"intValue\": \"\",\n \"jsonValue\": \"\",\n \"stringArray\": {\n \"stringValues\": []\n },\n \"stringValue\": \"\"\n },\n \"displayName\": \"\",\n \"inputOutputType\": \"\",\n \"isTransient\": false,\n \"jsonSchema\": \"\",\n \"key\": \"\",\n \"producer\": \"\",\n \"searchable\": false\n }\n ],\n \"integrationParametersInternal\": {\n \"parameters\": [\n {\n \"attributes\": {\n \"dataType\": \"\",\n \"defaultValue\": {\n \"booleanValue\": false,\n \"doubleArray\": {\n \"values\": []\n },\n \"doubleValue\": \"\",\n \"intArray\": {\n \"values\": []\n },\n \"intValue\": \"\",\n \"protoValue\": {},\n \"stringArray\": {\n \"values\": []\n },\n \"stringValue\": \"\"\n },\n \"isRequired\": false,\n \"isSearchable\": false,\n \"logSettings\": {\n \"logFieldName\": \"\",\n \"sanitizeOptions\": {\n \"isAlreadySanitized\": false,\n \"logType\": [],\n \"privacy\": \"\",\n \"sanitizeType\": \"\"\n },\n \"seedPeriod\": \"\",\n \"seedScope\": \"\",\n \"shorteningLimits\": {\n \"logAction\": \"\",\n \"logType\": [],\n \"maxArraySize\": 0,\n \"maxStringLength\": 0,\n \"shortenerType\": \"\"\n }\n },\n \"searchable\": \"\",\n \"taskVisibility\": []\n },\n \"children\": [],\n \"dataType\": \"\",\n \"defaultValue\": {\n \"booleanArray\": {\n \"booleanValues\": []\n },\n \"booleanValue\": false,\n \"doubleArray\": {\n \"doubleValues\": []\n },\n \"doubleValue\": \"\",\n \"intArray\": {\n \"intValues\": []\n },\n \"intValue\": \"\",\n \"jsonValue\": \"\",\n \"protoArray\": {\n \"protoValues\": [\n {}\n ]\n },\n \"protoValue\": {},\n \"serializedObjectValue\": {\n \"objectValue\": \"\"\n },\n \"stringArray\": {\n \"stringValues\": []\n },\n \"stringValue\": \"\"\n },\n \"inOutType\": \"\",\n \"isTransient\": false,\n \"jsonSchema\": \"\",\n \"key\": \"\",\n \"name\": \"\",\n \"producedBy\": {\n \"elementIdentifier\": \"\",\n \"elementType\": \"\"\n },\n \"producer\": \"\",\n \"protoDefName\": \"\",\n \"protoDefPath\": \"\"\n }\n ]\n },\n \"lastModifierEmail\": \"\",\n \"lockHolder\": \"\",\n \"name\": \"\",\n \"origin\": \"\",\n \"parentTemplateId\": \"\",\n \"runAsServiceAccount\": \"\",\n \"snapshotNumber\": \"\",\n \"state\": \"\",\n \"status\": \"\",\n \"taskConfigs\": [\n {\n \"description\": \"\",\n \"displayName\": \"\",\n \"errorCatcherId\": \"\",\n \"externalTaskType\": \"\",\n \"failurePolicy\": {\n \"intervalTime\": \"\",\n \"maxRetries\": 0,\n \"retryStrategy\": \"\"\n },\n \"jsonValidationOption\": \"\",\n \"nextTasks\": [\n {}\n ],\n \"nextTasksExecutionPolicy\": \"\",\n \"parameters\": {},\n \"position\": {},\n \"successPolicy\": {\n \"finalState\": \"\"\n },\n \"synchronousCallFailurePolicy\": {},\n \"task\": \"\",\n \"taskExecutionStrategy\": \"\",\n \"taskId\": \"\",\n \"taskTemplate\": \"\"\n }\n ],\n \"taskConfigsInternal\": [\n {\n \"alertConfigs\": [\n {\n \"aggregationPeriod\": \"\",\n \"alertDisabled\": false,\n \"alertName\": \"\",\n \"clientId\": \"\",\n \"durationThresholdMs\": \"\",\n \"errorEnumList\": {\n \"enumStrings\": [],\n \"filterType\": \"\"\n },\n \"metricType\": \"\",\n \"numAggregationPeriods\": 0,\n \"onlyFinalAttempt\": false,\n \"playbookUrl\": \"\",\n \"thresholdType\": \"\",\n \"thresholdValue\": {\n \"absolute\": \"\",\n \"percentage\": 0\n },\n \"warningEnumList\": {}\n }\n ],\n \"createTime\": \"\",\n \"creatorEmail\": \"\",\n \"description\": \"\",\n \"disableStrictTypeValidation\": false,\n \"errorCatcherId\": \"\",\n \"externalTaskType\": \"\",\n \"failurePolicy\": {\n \"intervalInSeconds\": \"\",\n \"maxNumRetries\": 0,\n \"retryStrategy\": \"\"\n },\n \"incomingEdgeCount\": 0,\n \"jsonValidationOption\": \"\",\n \"label\": \"\",\n \"lastModifiedTime\": \"\",\n \"nextTasks\": [\n {\n \"combinedConditions\": [\n {\n \"conditions\": [\n {\n \"eventPropertyKey\": \"\",\n \"operator\": \"\",\n \"value\": {}\n }\n ]\n }\n ],\n \"condition\": \"\",\n \"description\": \"\",\n \"label\": \"\",\n \"taskConfigId\": \"\",\n \"taskNumber\": \"\"\n }\n ],\n \"nextTasksExecutionPolicy\": \"\",\n \"parameters\": {},\n \"position\": {\n \"x\": 0,\n \"y\": 0\n },\n \"precondition\": \"\",\n \"preconditionLabel\": \"\",\n \"rollbackStrategy\": {\n \"parameters\": {\n \"parameters\": [\n {\n \"dataType\": \"\",\n \"key\": \"\",\n \"value\": {}\n }\n ]\n },\n \"rollbackTaskImplementationClassName\": \"\",\n \"taskNumbersToRollback\": []\n },\n \"successPolicy\": {\n \"finalState\": \"\"\n },\n \"synchronousCallFailurePolicy\": {},\n \"taskEntity\": {\n \"disabledForVpcSc\": false,\n \"metadata\": {\n \"activeTaskName\": \"\",\n \"admins\": [\n {\n \"googleGroupEmail\": \"\",\n \"userEmail\": \"\"\n }\n ],\n \"category\": \"\",\n \"codeSearchLink\": \"\",\n \"defaultJsonValidationOption\": \"\",\n \"defaultSpec\": \"\",\n \"description\": \"\",\n \"descriptiveName\": \"\",\n \"docMarkdown\": \"\",\n \"externalCategory\": \"\",\n \"externalCategorySequence\": 0,\n \"externalDocHtml\": \"\",\n \"externalDocLink\": \"\",\n \"externalDocMarkdown\": \"\",\n \"g3DocLink\": \"\",\n \"iconLink\": \"\",\n \"isDeprecated\": false,\n \"name\": \"\",\n \"standaloneExternalDocHtml\": \"\",\n \"status\": \"\",\n \"system\": \"\",\n \"tags\": []\n },\n \"paramSpecs\": {\n \"parameters\": [\n {\n \"className\": \"\",\n \"collectionElementClassName\": \"\",\n \"config\": {\n \"descriptivePhrase\": \"\",\n \"helpText\": \"\",\n \"hideDefaultValue\": false,\n \"inputDisplayOption\": \"\",\n \"isHidden\": false,\n \"label\": \"\",\n \"parameterNameOption\": \"\",\n \"subSectionLabel\": \"\",\n \"uiPlaceholderText\": \"\"\n },\n \"dataType\": \"\",\n \"defaultValue\": {},\n \"isDeprecated\": false,\n \"isOutput\": false,\n \"jsonSchema\": \"\",\n \"key\": \"\",\n \"protoDef\": {\n \"fullName\": \"\",\n \"path\": \"\"\n },\n \"required\": false,\n \"validationRule\": {\n \"doubleRange\": {\n \"max\": \"\",\n \"min\": \"\"\n },\n \"intRange\": {\n \"max\": \"\",\n \"min\": \"\"\n },\n \"stringRegex\": {\n \"exclusive\": false,\n \"regex\": \"\"\n }\n }\n }\n ]\n },\n \"stats\": {\n \"dimensions\": {\n \"clientId\": \"\",\n \"enumFilterType\": \"\",\n \"errorEnumString\": \"\",\n \"retryAttempt\": \"\",\n \"taskName\": \"\",\n \"taskNumber\": \"\",\n \"triggerId\": \"\",\n \"warningEnumString\": \"\",\n \"workflowId\": \"\",\n \"workflowName\": \"\"\n },\n \"durationInSeconds\": \"\",\n \"errorRate\": \"\",\n \"qps\": \"\",\n \"warningRate\": \"\"\n },\n \"taskType\": \"\",\n \"uiConfig\": {\n \"taskUiModuleConfigs\": [\n {\n \"moduleId\": \"\"\n }\n ]\n }\n },\n \"taskExecutionStrategy\": \"\",\n \"taskName\": \"\",\n \"taskNumber\": \"\",\n \"taskSpec\": \"\",\n \"taskTemplateName\": \"\",\n \"taskType\": \"\"\n }\n ],\n \"teardown\": {\n \"teardownTaskConfigs\": [\n {\n \"creatorEmail\": \"\",\n \"name\": \"\",\n \"nextTeardownTask\": {\n \"name\": \"\"\n },\n \"parameters\": {\n \"parameters\": [\n {\n \"key\": \"\",\n \"value\": {\n \"booleanArray\": {\n \"booleanValues\": []\n },\n \"booleanValue\": false,\n \"doubleArray\": {\n \"doubleValues\": []\n },\n \"doubleValue\": \"\",\n \"intArray\": {\n \"intValues\": []\n },\n \"intValue\": \"\",\n \"protoArray\": {\n \"protoValues\": [\n {}\n ]\n },\n \"protoValue\": {},\n \"serializedObjectValue\": {\n \"objectValue\": \"\"\n },\n \"stringArray\": {\n \"stringValues\": []\n },\n \"stringValue\": \"\"\n }\n }\n ]\n },\n \"properties\": {\n \"properties\": [\n {\n \"key\": \"\",\n \"value\": {}\n }\n ]\n },\n \"teardownTaskImplementationClassName\": \"\"\n }\n ]\n },\n \"triggerConfigs\": [\n {\n \"alertConfig\": [\n {\n \"aggregationPeriod\": \"\",\n \"alertThreshold\": 0,\n \"disableAlert\": false,\n \"displayName\": \"\",\n \"durationThreshold\": \"\",\n \"metricType\": \"\",\n \"onlyFinalAttempt\": false,\n \"thresholdType\": \"\",\n \"thresholdValue\": {\n \"absolute\": \"\",\n \"percentage\": 0\n }\n }\n ],\n \"cloudSchedulerConfig\": {\n \"cronTab\": \"\",\n \"errorMessage\": \"\",\n \"location\": \"\",\n \"serviceAccountEmail\": \"\"\n },\n \"description\": \"\",\n \"errorCatcherId\": \"\",\n \"label\": \"\",\n \"nextTasksExecutionPolicy\": \"\",\n \"position\": {},\n \"properties\": {},\n \"startTasks\": [\n {}\n ],\n \"triggerId\": \"\",\n \"triggerNumber\": \"\",\n \"triggerType\": \"\"\n }\n ],\n \"triggerConfigsInternal\": [\n {\n \"alertConfig\": [\n {\n \"aggregationPeriod\": \"\",\n \"alertDisabled\": false,\n \"alertName\": \"\",\n \"clientId\": \"\",\n \"durationThresholdMs\": \"\",\n \"errorEnumList\": {},\n \"metricType\": \"\",\n \"numAggregationPeriods\": 0,\n \"onlyFinalAttempt\": false,\n \"playbookUrl\": \"\",\n \"thresholdType\": \"\",\n \"thresholdValue\": {},\n \"warningEnumList\": {}\n }\n ],\n \"cloudSchedulerConfig\": {\n \"cronTab\": \"\",\n \"errorMessage\": \"\",\n \"location\": \"\",\n \"serviceAccountEmail\": \"\"\n },\n \"description\": \"\",\n \"enabledClients\": [],\n \"errorCatcherId\": \"\",\n \"label\": \"\",\n \"nextTasksExecutionPolicy\": \"\",\n \"pauseWorkflowExecutions\": false,\n \"position\": {},\n \"properties\": {},\n \"startTasks\": [\n {}\n ],\n \"triggerCriteria\": {\n \"condition\": \"\",\n \"parameters\": {},\n \"triggerCriteriaTaskImplementationClassName\": \"\"\n },\n \"triggerId\": \"\",\n \"triggerNumber\": \"\",\n \"triggerType\": \"\"\n }\n ],\n \"updateTime\": \"\",\n \"userLabel\": \"\"\n },\n \"parameters\": {},\n \"testMode\": false,\n \"triggerId\": \"\"\n}");
Request request = new Request.Builder()
.url("{{baseUrl}}/v1/:name:test")
.post(body)
.addHeader("content-type", "application/json")
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/v1/:name:test")
.header("content-type", "application/json")
.body("{\n \"clientId\": \"\",\n \"deadlineSecondsTime\": \"\",\n \"inputParameters\": {},\n \"integrationVersion\": {\n \"createTime\": \"\",\n \"databasePersistencePolicy\": \"\",\n \"description\": \"\",\n \"errorCatcherConfigs\": [\n {\n \"description\": \"\",\n \"errorCatcherId\": \"\",\n \"errorCatcherNumber\": \"\",\n \"label\": \"\",\n \"position\": {\n \"x\": 0,\n \"y\": 0\n },\n \"startErrorTasks\": [\n {\n \"condition\": \"\",\n \"description\": \"\",\n \"displayName\": \"\",\n \"taskConfigId\": \"\",\n \"taskId\": \"\"\n }\n ]\n }\n ],\n \"integrationParameters\": [\n {\n \"dataType\": \"\",\n \"defaultValue\": {\n \"booleanArray\": {\n \"booleanValues\": []\n },\n \"booleanValue\": false,\n \"doubleArray\": {\n \"doubleValues\": []\n },\n \"doubleValue\": \"\",\n \"intArray\": {\n \"intValues\": []\n },\n \"intValue\": \"\",\n \"jsonValue\": \"\",\n \"stringArray\": {\n \"stringValues\": []\n },\n \"stringValue\": \"\"\n },\n \"displayName\": \"\",\n \"inputOutputType\": \"\",\n \"isTransient\": false,\n \"jsonSchema\": \"\",\n \"key\": \"\",\n \"producer\": \"\",\n \"searchable\": false\n }\n ],\n \"integrationParametersInternal\": {\n \"parameters\": [\n {\n \"attributes\": {\n \"dataType\": \"\",\n \"defaultValue\": {\n \"booleanValue\": false,\n \"doubleArray\": {\n \"values\": []\n },\n \"doubleValue\": \"\",\n \"intArray\": {\n \"values\": []\n },\n \"intValue\": \"\",\n \"protoValue\": {},\n \"stringArray\": {\n \"values\": []\n },\n \"stringValue\": \"\"\n },\n \"isRequired\": false,\n \"isSearchable\": false,\n \"logSettings\": {\n \"logFieldName\": \"\",\n \"sanitizeOptions\": {\n \"isAlreadySanitized\": false,\n \"logType\": [],\n \"privacy\": \"\",\n \"sanitizeType\": \"\"\n },\n \"seedPeriod\": \"\",\n \"seedScope\": \"\",\n \"shorteningLimits\": {\n \"logAction\": \"\",\n \"logType\": [],\n \"maxArraySize\": 0,\n \"maxStringLength\": 0,\n \"shortenerType\": \"\"\n }\n },\n \"searchable\": \"\",\n \"taskVisibility\": []\n },\n \"children\": [],\n \"dataType\": \"\",\n \"defaultValue\": {\n \"booleanArray\": {\n \"booleanValues\": []\n },\n \"booleanValue\": false,\n \"doubleArray\": {\n \"doubleValues\": []\n },\n \"doubleValue\": \"\",\n \"intArray\": {\n \"intValues\": []\n },\n \"intValue\": \"\",\n \"jsonValue\": \"\",\n \"protoArray\": {\n \"protoValues\": [\n {}\n ]\n },\n \"protoValue\": {},\n \"serializedObjectValue\": {\n \"objectValue\": \"\"\n },\n \"stringArray\": {\n \"stringValues\": []\n },\n \"stringValue\": \"\"\n },\n \"inOutType\": \"\",\n \"isTransient\": false,\n \"jsonSchema\": \"\",\n \"key\": \"\",\n \"name\": \"\",\n \"producedBy\": {\n \"elementIdentifier\": \"\",\n \"elementType\": \"\"\n },\n \"producer\": \"\",\n \"protoDefName\": \"\",\n \"protoDefPath\": \"\"\n }\n ]\n },\n \"lastModifierEmail\": \"\",\n \"lockHolder\": \"\",\n \"name\": \"\",\n \"origin\": \"\",\n \"parentTemplateId\": \"\",\n \"runAsServiceAccount\": \"\",\n \"snapshotNumber\": \"\",\n \"state\": \"\",\n \"status\": \"\",\n \"taskConfigs\": [\n {\n \"description\": \"\",\n \"displayName\": \"\",\n \"errorCatcherId\": \"\",\n \"externalTaskType\": \"\",\n \"failurePolicy\": {\n \"intervalTime\": \"\",\n \"maxRetries\": 0,\n \"retryStrategy\": \"\"\n },\n \"jsonValidationOption\": \"\",\n \"nextTasks\": [\n {}\n ],\n \"nextTasksExecutionPolicy\": \"\",\n \"parameters\": {},\n \"position\": {},\n \"successPolicy\": {\n \"finalState\": \"\"\n },\n \"synchronousCallFailurePolicy\": {},\n \"task\": \"\",\n \"taskExecutionStrategy\": \"\",\n \"taskId\": \"\",\n \"taskTemplate\": \"\"\n }\n ],\n \"taskConfigsInternal\": [\n {\n \"alertConfigs\": [\n {\n \"aggregationPeriod\": \"\",\n \"alertDisabled\": false,\n \"alertName\": \"\",\n \"clientId\": \"\",\n \"durationThresholdMs\": \"\",\n \"errorEnumList\": {\n \"enumStrings\": [],\n \"filterType\": \"\"\n },\n \"metricType\": \"\",\n \"numAggregationPeriods\": 0,\n \"onlyFinalAttempt\": false,\n \"playbookUrl\": \"\",\n \"thresholdType\": \"\",\n \"thresholdValue\": {\n \"absolute\": \"\",\n \"percentage\": 0\n },\n \"warningEnumList\": {}\n }\n ],\n \"createTime\": \"\",\n \"creatorEmail\": \"\",\n \"description\": \"\",\n \"disableStrictTypeValidation\": false,\n \"errorCatcherId\": \"\",\n \"externalTaskType\": \"\",\n \"failurePolicy\": {\n \"intervalInSeconds\": \"\",\n \"maxNumRetries\": 0,\n \"retryStrategy\": \"\"\n },\n \"incomingEdgeCount\": 0,\n \"jsonValidationOption\": \"\",\n \"label\": \"\",\n \"lastModifiedTime\": \"\",\n \"nextTasks\": [\n {\n \"combinedConditions\": [\n {\n \"conditions\": [\n {\n \"eventPropertyKey\": \"\",\n \"operator\": \"\",\n \"value\": {}\n }\n ]\n }\n ],\n \"condition\": \"\",\n \"description\": \"\",\n \"label\": \"\",\n \"taskConfigId\": \"\",\n \"taskNumber\": \"\"\n }\n ],\n \"nextTasksExecutionPolicy\": \"\",\n \"parameters\": {},\n \"position\": {\n \"x\": 0,\n \"y\": 0\n },\n \"precondition\": \"\",\n \"preconditionLabel\": \"\",\n \"rollbackStrategy\": {\n \"parameters\": {\n \"parameters\": [\n {\n \"dataType\": \"\",\n \"key\": \"\",\n \"value\": {}\n }\n ]\n },\n \"rollbackTaskImplementationClassName\": \"\",\n \"taskNumbersToRollback\": []\n },\n \"successPolicy\": {\n \"finalState\": \"\"\n },\n \"synchronousCallFailurePolicy\": {},\n \"taskEntity\": {\n \"disabledForVpcSc\": false,\n \"metadata\": {\n \"activeTaskName\": \"\",\n \"admins\": [\n {\n \"googleGroupEmail\": \"\",\n \"userEmail\": \"\"\n }\n ],\n \"category\": \"\",\n \"codeSearchLink\": \"\",\n \"defaultJsonValidationOption\": \"\",\n \"defaultSpec\": \"\",\n \"description\": \"\",\n \"descriptiveName\": \"\",\n \"docMarkdown\": \"\",\n \"externalCategory\": \"\",\n \"externalCategorySequence\": 0,\n \"externalDocHtml\": \"\",\n \"externalDocLink\": \"\",\n \"externalDocMarkdown\": \"\",\n \"g3DocLink\": \"\",\n \"iconLink\": \"\",\n \"isDeprecated\": false,\n \"name\": \"\",\n \"standaloneExternalDocHtml\": \"\",\n \"status\": \"\",\n \"system\": \"\",\n \"tags\": []\n },\n \"paramSpecs\": {\n \"parameters\": [\n {\n \"className\": \"\",\n \"collectionElementClassName\": \"\",\n \"config\": {\n \"descriptivePhrase\": \"\",\n \"helpText\": \"\",\n \"hideDefaultValue\": false,\n \"inputDisplayOption\": \"\",\n \"isHidden\": false,\n \"label\": \"\",\n \"parameterNameOption\": \"\",\n \"subSectionLabel\": \"\",\n \"uiPlaceholderText\": \"\"\n },\n \"dataType\": \"\",\n \"defaultValue\": {},\n \"isDeprecated\": false,\n \"isOutput\": false,\n \"jsonSchema\": \"\",\n \"key\": \"\",\n \"protoDef\": {\n \"fullName\": \"\",\n \"path\": \"\"\n },\n \"required\": false,\n \"validationRule\": {\n \"doubleRange\": {\n \"max\": \"\",\n \"min\": \"\"\n },\n \"intRange\": {\n \"max\": \"\",\n \"min\": \"\"\n },\n \"stringRegex\": {\n \"exclusive\": false,\n \"regex\": \"\"\n }\n }\n }\n ]\n },\n \"stats\": {\n \"dimensions\": {\n \"clientId\": \"\",\n \"enumFilterType\": \"\",\n \"errorEnumString\": \"\",\n \"retryAttempt\": \"\",\n \"taskName\": \"\",\n \"taskNumber\": \"\",\n \"triggerId\": \"\",\n \"warningEnumString\": \"\",\n \"workflowId\": \"\",\n \"workflowName\": \"\"\n },\n \"durationInSeconds\": \"\",\n \"errorRate\": \"\",\n \"qps\": \"\",\n \"warningRate\": \"\"\n },\n \"taskType\": \"\",\n \"uiConfig\": {\n \"taskUiModuleConfigs\": [\n {\n \"moduleId\": \"\"\n }\n ]\n }\n },\n \"taskExecutionStrategy\": \"\",\n \"taskName\": \"\",\n \"taskNumber\": \"\",\n \"taskSpec\": \"\",\n \"taskTemplateName\": \"\",\n \"taskType\": \"\"\n }\n ],\n \"teardown\": {\n \"teardownTaskConfigs\": [\n {\n \"creatorEmail\": \"\",\n \"name\": \"\",\n \"nextTeardownTask\": {\n \"name\": \"\"\n },\n \"parameters\": {\n \"parameters\": [\n {\n \"key\": \"\",\n \"value\": {\n \"booleanArray\": {\n \"booleanValues\": []\n },\n \"booleanValue\": false,\n \"doubleArray\": {\n \"doubleValues\": []\n },\n \"doubleValue\": \"\",\n \"intArray\": {\n \"intValues\": []\n },\n \"intValue\": \"\",\n \"protoArray\": {\n \"protoValues\": [\n {}\n ]\n },\n \"protoValue\": {},\n \"serializedObjectValue\": {\n \"objectValue\": \"\"\n },\n \"stringArray\": {\n \"stringValues\": []\n },\n \"stringValue\": \"\"\n }\n }\n ]\n },\n \"properties\": {\n \"properties\": [\n {\n \"key\": \"\",\n \"value\": {}\n }\n ]\n },\n \"teardownTaskImplementationClassName\": \"\"\n }\n ]\n },\n \"triggerConfigs\": [\n {\n \"alertConfig\": [\n {\n \"aggregationPeriod\": \"\",\n \"alertThreshold\": 0,\n \"disableAlert\": false,\n \"displayName\": \"\",\n \"durationThreshold\": \"\",\n \"metricType\": \"\",\n \"onlyFinalAttempt\": false,\n \"thresholdType\": \"\",\n \"thresholdValue\": {\n \"absolute\": \"\",\n \"percentage\": 0\n }\n }\n ],\n \"cloudSchedulerConfig\": {\n \"cronTab\": \"\",\n \"errorMessage\": \"\",\n \"location\": \"\",\n \"serviceAccountEmail\": \"\"\n },\n \"description\": \"\",\n \"errorCatcherId\": \"\",\n \"label\": \"\",\n \"nextTasksExecutionPolicy\": \"\",\n \"position\": {},\n \"properties\": {},\n \"startTasks\": [\n {}\n ],\n \"triggerId\": \"\",\n \"triggerNumber\": \"\",\n \"triggerType\": \"\"\n }\n ],\n \"triggerConfigsInternal\": [\n {\n \"alertConfig\": [\n {\n \"aggregationPeriod\": \"\",\n \"alertDisabled\": false,\n \"alertName\": \"\",\n \"clientId\": \"\",\n \"durationThresholdMs\": \"\",\n \"errorEnumList\": {},\n \"metricType\": \"\",\n \"numAggregationPeriods\": 0,\n \"onlyFinalAttempt\": false,\n \"playbookUrl\": \"\",\n \"thresholdType\": \"\",\n \"thresholdValue\": {},\n \"warningEnumList\": {}\n }\n ],\n \"cloudSchedulerConfig\": {\n \"cronTab\": \"\",\n \"errorMessage\": \"\",\n \"location\": \"\",\n \"serviceAccountEmail\": \"\"\n },\n \"description\": \"\",\n \"enabledClients\": [],\n \"errorCatcherId\": \"\",\n \"label\": \"\",\n \"nextTasksExecutionPolicy\": \"\",\n \"pauseWorkflowExecutions\": false,\n \"position\": {},\n \"properties\": {},\n \"startTasks\": [\n {}\n ],\n \"triggerCriteria\": {\n \"condition\": \"\",\n \"parameters\": {},\n \"triggerCriteriaTaskImplementationClassName\": \"\"\n },\n \"triggerId\": \"\",\n \"triggerNumber\": \"\",\n \"triggerType\": \"\"\n }\n ],\n \"updateTime\": \"\",\n \"userLabel\": \"\"\n },\n \"parameters\": {},\n \"testMode\": false,\n \"triggerId\": \"\"\n}")
.asString();
const data = JSON.stringify({
clientId: '',
deadlineSecondsTime: '',
inputParameters: {},
integrationVersion: {
createTime: '',
databasePersistencePolicy: '',
description: '',
errorCatcherConfigs: [
{
description: '',
errorCatcherId: '',
errorCatcherNumber: '',
label: '',
position: {
x: 0,
y: 0
},
startErrorTasks: [
{
condition: '',
description: '',
displayName: '',
taskConfigId: '',
taskId: ''
}
]
}
],
integrationParameters: [
{
dataType: '',
defaultValue: {
booleanArray: {
booleanValues: []
},
booleanValue: false,
doubleArray: {
doubleValues: []
},
doubleValue: '',
intArray: {
intValues: []
},
intValue: '',
jsonValue: '',
stringArray: {
stringValues: []
},
stringValue: ''
},
displayName: '',
inputOutputType: '',
isTransient: false,
jsonSchema: '',
key: '',
producer: '',
searchable: false
}
],
integrationParametersInternal: {
parameters: [
{
attributes: {
dataType: '',
defaultValue: {
booleanValue: false,
doubleArray: {
values: []
},
doubleValue: '',
intArray: {
values: []
},
intValue: '',
protoValue: {},
stringArray: {
values: []
},
stringValue: ''
},
isRequired: false,
isSearchable: false,
logSettings: {
logFieldName: '',
sanitizeOptions: {
isAlreadySanitized: false,
logType: [],
privacy: '',
sanitizeType: ''
},
seedPeriod: '',
seedScope: '',
shorteningLimits: {
logAction: '',
logType: [],
maxArraySize: 0,
maxStringLength: 0,
shortenerType: ''
}
},
searchable: '',
taskVisibility: []
},
children: [],
dataType: '',
defaultValue: {
booleanArray: {
booleanValues: []
},
booleanValue: false,
doubleArray: {
doubleValues: []
},
doubleValue: '',
intArray: {
intValues: []
},
intValue: '',
jsonValue: '',
protoArray: {
protoValues: [
{}
]
},
protoValue: {},
serializedObjectValue: {
objectValue: ''
},
stringArray: {
stringValues: []
},
stringValue: ''
},
inOutType: '',
isTransient: false,
jsonSchema: '',
key: '',
name: '',
producedBy: {
elementIdentifier: '',
elementType: ''
},
producer: '',
protoDefName: '',
protoDefPath: ''
}
]
},
lastModifierEmail: '',
lockHolder: '',
name: '',
origin: '',
parentTemplateId: '',
runAsServiceAccount: '',
snapshotNumber: '',
state: '',
status: '',
taskConfigs: [
{
description: '',
displayName: '',
errorCatcherId: '',
externalTaskType: '',
failurePolicy: {
intervalTime: '',
maxRetries: 0,
retryStrategy: ''
},
jsonValidationOption: '',
nextTasks: [
{}
],
nextTasksExecutionPolicy: '',
parameters: {},
position: {},
successPolicy: {
finalState: ''
},
synchronousCallFailurePolicy: {},
task: '',
taskExecutionStrategy: '',
taskId: '',
taskTemplate: ''
}
],
taskConfigsInternal: [
{
alertConfigs: [
{
aggregationPeriod: '',
alertDisabled: false,
alertName: '',
clientId: '',
durationThresholdMs: '',
errorEnumList: {
enumStrings: [],
filterType: ''
},
metricType: '',
numAggregationPeriods: 0,
onlyFinalAttempt: false,
playbookUrl: '',
thresholdType: '',
thresholdValue: {
absolute: '',
percentage: 0
},
warningEnumList: {}
}
],
createTime: '',
creatorEmail: '',
description: '',
disableStrictTypeValidation: false,
errorCatcherId: '',
externalTaskType: '',
failurePolicy: {
intervalInSeconds: '',
maxNumRetries: 0,
retryStrategy: ''
},
incomingEdgeCount: 0,
jsonValidationOption: '',
label: '',
lastModifiedTime: '',
nextTasks: [
{
combinedConditions: [
{
conditions: [
{
eventPropertyKey: '',
operator: '',
value: {}
}
]
}
],
condition: '',
description: '',
label: '',
taskConfigId: '',
taskNumber: ''
}
],
nextTasksExecutionPolicy: '',
parameters: {},
position: {
x: 0,
y: 0
},
precondition: '',
preconditionLabel: '',
rollbackStrategy: {
parameters: {
parameters: [
{
dataType: '',
key: '',
value: {}
}
]
},
rollbackTaskImplementationClassName: '',
taskNumbersToRollback: []
},
successPolicy: {
finalState: ''
},
synchronousCallFailurePolicy: {},
taskEntity: {
disabledForVpcSc: false,
metadata: {
activeTaskName: '',
admins: [
{
googleGroupEmail: '',
userEmail: ''
}
],
category: '',
codeSearchLink: '',
defaultJsonValidationOption: '',
defaultSpec: '',
description: '',
descriptiveName: '',
docMarkdown: '',
externalCategory: '',
externalCategorySequence: 0,
externalDocHtml: '',
externalDocLink: '',
externalDocMarkdown: '',
g3DocLink: '',
iconLink: '',
isDeprecated: false,
name: '',
standaloneExternalDocHtml: '',
status: '',
system: '',
tags: []
},
paramSpecs: {
parameters: [
{
className: '',
collectionElementClassName: '',
config: {
descriptivePhrase: '',
helpText: '',
hideDefaultValue: false,
inputDisplayOption: '',
isHidden: false,
label: '',
parameterNameOption: '',
subSectionLabel: '',
uiPlaceholderText: ''
},
dataType: '',
defaultValue: {},
isDeprecated: false,
isOutput: false,
jsonSchema: '',
key: '',
protoDef: {
fullName: '',
path: ''
},
required: false,
validationRule: {
doubleRange: {
max: '',
min: ''
},
intRange: {
max: '',
min: ''
},
stringRegex: {
exclusive: false,
regex: ''
}
}
}
]
},
stats: {
dimensions: {
clientId: '',
enumFilterType: '',
errorEnumString: '',
retryAttempt: '',
taskName: '',
taskNumber: '',
triggerId: '',
warningEnumString: '',
workflowId: '',
workflowName: ''
},
durationInSeconds: '',
errorRate: '',
qps: '',
warningRate: ''
},
taskType: '',
uiConfig: {
taskUiModuleConfigs: [
{
moduleId: ''
}
]
}
},
taskExecutionStrategy: '',
taskName: '',
taskNumber: '',
taskSpec: '',
taskTemplateName: '',
taskType: ''
}
],
teardown: {
teardownTaskConfigs: [
{
creatorEmail: '',
name: '',
nextTeardownTask: {
name: ''
},
parameters: {
parameters: [
{
key: '',
value: {
booleanArray: {
booleanValues: []
},
booleanValue: false,
doubleArray: {
doubleValues: []
},
doubleValue: '',
intArray: {
intValues: []
},
intValue: '',
protoArray: {
protoValues: [
{}
]
},
protoValue: {},
serializedObjectValue: {
objectValue: ''
},
stringArray: {
stringValues: []
},
stringValue: ''
}
}
]
},
properties: {
properties: [
{
key: '',
value: {}
}
]
},
teardownTaskImplementationClassName: ''
}
]
},
triggerConfigs: [
{
alertConfig: [
{
aggregationPeriod: '',
alertThreshold: 0,
disableAlert: false,
displayName: '',
durationThreshold: '',
metricType: '',
onlyFinalAttempt: false,
thresholdType: '',
thresholdValue: {
absolute: '',
percentage: 0
}
}
],
cloudSchedulerConfig: {
cronTab: '',
errorMessage: '',
location: '',
serviceAccountEmail: ''
},
description: '',
errorCatcherId: '',
label: '',
nextTasksExecutionPolicy: '',
position: {},
properties: {},
startTasks: [
{}
],
triggerId: '',
triggerNumber: '',
triggerType: ''
}
],
triggerConfigsInternal: [
{
alertConfig: [
{
aggregationPeriod: '',
alertDisabled: false,
alertName: '',
clientId: '',
durationThresholdMs: '',
errorEnumList: {},
metricType: '',
numAggregationPeriods: 0,
onlyFinalAttempt: false,
playbookUrl: '',
thresholdType: '',
thresholdValue: {},
warningEnumList: {}
}
],
cloudSchedulerConfig: {
cronTab: '',
errorMessage: '',
location: '',
serviceAccountEmail: ''
},
description: '',
enabledClients: [],
errorCatcherId: '',
label: '',
nextTasksExecutionPolicy: '',
pauseWorkflowExecutions: false,
position: {},
properties: {},
startTasks: [
{}
],
triggerCriteria: {
condition: '',
parameters: {},
triggerCriteriaTaskImplementationClassName: ''
},
triggerId: '',
triggerNumber: '',
triggerType: ''
}
],
updateTime: '',
userLabel: ''
},
parameters: {},
testMode: false,
triggerId: ''
});
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('POST', '{{baseUrl}}/v1/:name:test');
xhr.setRequestHeader('content-type', 'application/json');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'POST',
url: '{{baseUrl}}/v1/:name:test',
headers: {'content-type': 'application/json'},
data: {
clientId: '',
deadlineSecondsTime: '',
inputParameters: {},
integrationVersion: {
createTime: '',
databasePersistencePolicy: '',
description: '',
errorCatcherConfigs: [
{
description: '',
errorCatcherId: '',
errorCatcherNumber: '',
label: '',
position: {x: 0, y: 0},
startErrorTasks: [
{condition: '', description: '', displayName: '', taskConfigId: '', taskId: ''}
]
}
],
integrationParameters: [
{
dataType: '',
defaultValue: {
booleanArray: {booleanValues: []},
booleanValue: false,
doubleArray: {doubleValues: []},
doubleValue: '',
intArray: {intValues: []},
intValue: '',
jsonValue: '',
stringArray: {stringValues: []},
stringValue: ''
},
displayName: '',
inputOutputType: '',
isTransient: false,
jsonSchema: '',
key: '',
producer: '',
searchable: false
}
],
integrationParametersInternal: {
parameters: [
{
attributes: {
dataType: '',
defaultValue: {
booleanValue: false,
doubleArray: {values: []},
doubleValue: '',
intArray: {values: []},
intValue: '',
protoValue: {},
stringArray: {values: []},
stringValue: ''
},
isRequired: false,
isSearchable: false,
logSettings: {
logFieldName: '',
sanitizeOptions: {isAlreadySanitized: false, logType: [], privacy: '', sanitizeType: ''},
seedPeriod: '',
seedScope: '',
shorteningLimits: {
logAction: '',
logType: [],
maxArraySize: 0,
maxStringLength: 0,
shortenerType: ''
}
},
searchable: '',
taskVisibility: []
},
children: [],
dataType: '',
defaultValue: {
booleanArray: {booleanValues: []},
booleanValue: false,
doubleArray: {doubleValues: []},
doubleValue: '',
intArray: {intValues: []},
intValue: '',
jsonValue: '',
protoArray: {protoValues: [{}]},
protoValue: {},
serializedObjectValue: {objectValue: ''},
stringArray: {stringValues: []},
stringValue: ''
},
inOutType: '',
isTransient: false,
jsonSchema: '',
key: '',
name: '',
producedBy: {elementIdentifier: '', elementType: ''},
producer: '',
protoDefName: '',
protoDefPath: ''
}
]
},
lastModifierEmail: '',
lockHolder: '',
name: '',
origin: '',
parentTemplateId: '',
runAsServiceAccount: '',
snapshotNumber: '',
state: '',
status: '',
taskConfigs: [
{
description: '',
displayName: '',
errorCatcherId: '',
externalTaskType: '',
failurePolicy: {intervalTime: '', maxRetries: 0, retryStrategy: ''},
jsonValidationOption: '',
nextTasks: [{}],
nextTasksExecutionPolicy: '',
parameters: {},
position: {},
successPolicy: {finalState: ''},
synchronousCallFailurePolicy: {},
task: '',
taskExecutionStrategy: '',
taskId: '',
taskTemplate: ''
}
],
taskConfigsInternal: [
{
alertConfigs: [
{
aggregationPeriod: '',
alertDisabled: false,
alertName: '',
clientId: '',
durationThresholdMs: '',
errorEnumList: {enumStrings: [], filterType: ''},
metricType: '',
numAggregationPeriods: 0,
onlyFinalAttempt: false,
playbookUrl: '',
thresholdType: '',
thresholdValue: {absolute: '', percentage: 0},
warningEnumList: {}
}
],
createTime: '',
creatorEmail: '',
description: '',
disableStrictTypeValidation: false,
errorCatcherId: '',
externalTaskType: '',
failurePolicy: {intervalInSeconds: '', maxNumRetries: 0, retryStrategy: ''},
incomingEdgeCount: 0,
jsonValidationOption: '',
label: '',
lastModifiedTime: '',
nextTasks: [
{
combinedConditions: [{conditions: [{eventPropertyKey: '', operator: '', value: {}}]}],
condition: '',
description: '',
label: '',
taskConfigId: '',
taskNumber: ''
}
],
nextTasksExecutionPolicy: '',
parameters: {},
position: {x: 0, y: 0},
precondition: '',
preconditionLabel: '',
rollbackStrategy: {
parameters: {parameters: [{dataType: '', key: '', value: {}}]},
rollbackTaskImplementationClassName: '',
taskNumbersToRollback: []
},
successPolicy: {finalState: ''},
synchronousCallFailurePolicy: {},
taskEntity: {
disabledForVpcSc: false,
metadata: {
activeTaskName: '',
admins: [{googleGroupEmail: '', userEmail: ''}],
category: '',
codeSearchLink: '',
defaultJsonValidationOption: '',
defaultSpec: '',
description: '',
descriptiveName: '',
docMarkdown: '',
externalCategory: '',
externalCategorySequence: 0,
externalDocHtml: '',
externalDocLink: '',
externalDocMarkdown: '',
g3DocLink: '',
iconLink: '',
isDeprecated: false,
name: '',
standaloneExternalDocHtml: '',
status: '',
system: '',
tags: []
},
paramSpecs: {
parameters: [
{
className: '',
collectionElementClassName: '',
config: {
descriptivePhrase: '',
helpText: '',
hideDefaultValue: false,
inputDisplayOption: '',
isHidden: false,
label: '',
parameterNameOption: '',
subSectionLabel: '',
uiPlaceholderText: ''
},
dataType: '',
defaultValue: {},
isDeprecated: false,
isOutput: false,
jsonSchema: '',
key: '',
protoDef: {fullName: '', path: ''},
required: false,
validationRule: {
doubleRange: {max: '', min: ''},
intRange: {max: '', min: ''},
stringRegex: {exclusive: false, regex: ''}
}
}
]
},
stats: {
dimensions: {
clientId: '',
enumFilterType: '',
errorEnumString: '',
retryAttempt: '',
taskName: '',
taskNumber: '',
triggerId: '',
warningEnumString: '',
workflowId: '',
workflowName: ''
},
durationInSeconds: '',
errorRate: '',
qps: '',
warningRate: ''
},
taskType: '',
uiConfig: {taskUiModuleConfigs: [{moduleId: ''}]}
},
taskExecutionStrategy: '',
taskName: '',
taskNumber: '',
taskSpec: '',
taskTemplateName: '',
taskType: ''
}
],
teardown: {
teardownTaskConfigs: [
{
creatorEmail: '',
name: '',
nextTeardownTask: {name: ''},
parameters: {
parameters: [
{
key: '',
value: {
booleanArray: {booleanValues: []},
booleanValue: false,
doubleArray: {doubleValues: []},
doubleValue: '',
intArray: {intValues: []},
intValue: '',
protoArray: {protoValues: [{}]},
protoValue: {},
serializedObjectValue: {objectValue: ''},
stringArray: {stringValues: []},
stringValue: ''
}
}
]
},
properties: {properties: [{key: '', value: {}}]},
teardownTaskImplementationClassName: ''
}
]
},
triggerConfigs: [
{
alertConfig: [
{
aggregationPeriod: '',
alertThreshold: 0,
disableAlert: false,
displayName: '',
durationThreshold: '',
metricType: '',
onlyFinalAttempt: false,
thresholdType: '',
thresholdValue: {absolute: '', percentage: 0}
}
],
cloudSchedulerConfig: {cronTab: '', errorMessage: '', location: '', serviceAccountEmail: ''},
description: '',
errorCatcherId: '',
label: '',
nextTasksExecutionPolicy: '',
position: {},
properties: {},
startTasks: [{}],
triggerId: '',
triggerNumber: '',
triggerType: ''
}
],
triggerConfigsInternal: [
{
alertConfig: [
{
aggregationPeriod: '',
alertDisabled: false,
alertName: '',
clientId: '',
durationThresholdMs: '',
errorEnumList: {},
metricType: '',
numAggregationPeriods: 0,
onlyFinalAttempt: false,
playbookUrl: '',
thresholdType: '',
thresholdValue: {},
warningEnumList: {}
}
],
cloudSchedulerConfig: {cronTab: '', errorMessage: '', location: '', serviceAccountEmail: ''},
description: '',
enabledClients: [],
errorCatcherId: '',
label: '',
nextTasksExecutionPolicy: '',
pauseWorkflowExecutions: false,
position: {},
properties: {},
startTasks: [{}],
triggerCriteria: {condition: '', parameters: {}, triggerCriteriaTaskImplementationClassName: ''},
triggerId: '',
triggerNumber: '',
triggerType: ''
}
],
updateTime: '',
userLabel: ''
},
parameters: {},
testMode: false,
triggerId: ''
}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/v1/:name:test';
const options = {
method: 'POST',
headers: {'content-type': 'application/json'},
body: '{"clientId":"","deadlineSecondsTime":"","inputParameters":{},"integrationVersion":{"createTime":"","databasePersistencePolicy":"","description":"","errorCatcherConfigs":[{"description":"","errorCatcherId":"","errorCatcherNumber":"","label":"","position":{"x":0,"y":0},"startErrorTasks":[{"condition":"","description":"","displayName":"","taskConfigId":"","taskId":""}]}],"integrationParameters":[{"dataType":"","defaultValue":{"booleanArray":{"booleanValues":[]},"booleanValue":false,"doubleArray":{"doubleValues":[]},"doubleValue":"","intArray":{"intValues":[]},"intValue":"","jsonValue":"","stringArray":{"stringValues":[]},"stringValue":""},"displayName":"","inputOutputType":"","isTransient":false,"jsonSchema":"","key":"","producer":"","searchable":false}],"integrationParametersInternal":{"parameters":[{"attributes":{"dataType":"","defaultValue":{"booleanValue":false,"doubleArray":{"values":[]},"doubleValue":"","intArray":{"values":[]},"intValue":"","protoValue":{},"stringArray":{"values":[]},"stringValue":""},"isRequired":false,"isSearchable":false,"logSettings":{"logFieldName":"","sanitizeOptions":{"isAlreadySanitized":false,"logType":[],"privacy":"","sanitizeType":""},"seedPeriod":"","seedScope":"","shorteningLimits":{"logAction":"","logType":[],"maxArraySize":0,"maxStringLength":0,"shortenerType":""}},"searchable":"","taskVisibility":[]},"children":[],"dataType":"","defaultValue":{"booleanArray":{"booleanValues":[]},"booleanValue":false,"doubleArray":{"doubleValues":[]},"doubleValue":"","intArray":{"intValues":[]},"intValue":"","jsonValue":"","protoArray":{"protoValues":[{}]},"protoValue":{},"serializedObjectValue":{"objectValue":""},"stringArray":{"stringValues":[]},"stringValue":""},"inOutType":"","isTransient":false,"jsonSchema":"","key":"","name":"","producedBy":{"elementIdentifier":"","elementType":""},"producer":"","protoDefName":"","protoDefPath":""}]},"lastModifierEmail":"","lockHolder":"","name":"","origin":"","parentTemplateId":"","runAsServiceAccount":"","snapshotNumber":"","state":"","status":"","taskConfigs":[{"description":"","displayName":"","errorCatcherId":"","externalTaskType":"","failurePolicy":{"intervalTime":"","maxRetries":0,"retryStrategy":""},"jsonValidationOption":"","nextTasks":[{}],"nextTasksExecutionPolicy":"","parameters":{},"position":{},"successPolicy":{"finalState":""},"synchronousCallFailurePolicy":{},"task":"","taskExecutionStrategy":"","taskId":"","taskTemplate":""}],"taskConfigsInternal":[{"alertConfigs":[{"aggregationPeriod":"","alertDisabled":false,"alertName":"","clientId":"","durationThresholdMs":"","errorEnumList":{"enumStrings":[],"filterType":""},"metricType":"","numAggregationPeriods":0,"onlyFinalAttempt":false,"playbookUrl":"","thresholdType":"","thresholdValue":{"absolute":"","percentage":0},"warningEnumList":{}}],"createTime":"","creatorEmail":"","description":"","disableStrictTypeValidation":false,"errorCatcherId":"","externalTaskType":"","failurePolicy":{"intervalInSeconds":"","maxNumRetries":0,"retryStrategy":""},"incomingEdgeCount":0,"jsonValidationOption":"","label":"","lastModifiedTime":"","nextTasks":[{"combinedConditions":[{"conditions":[{"eventPropertyKey":"","operator":"","value":{}}]}],"condition":"","description":"","label":"","taskConfigId":"","taskNumber":""}],"nextTasksExecutionPolicy":"","parameters":{},"position":{"x":0,"y":0},"precondition":"","preconditionLabel":"","rollbackStrategy":{"parameters":{"parameters":[{"dataType":"","key":"","value":{}}]},"rollbackTaskImplementationClassName":"","taskNumbersToRollback":[]},"successPolicy":{"finalState":""},"synchronousCallFailurePolicy":{},"taskEntity":{"disabledForVpcSc":false,"metadata":{"activeTaskName":"","admins":[{"googleGroupEmail":"","userEmail":""}],"category":"","codeSearchLink":"","defaultJsonValidationOption":"","defaultSpec":"","description":"","descriptiveName":"","docMarkdown":"","externalCategory":"","externalCategorySequence":0,"externalDocHtml":"","externalDocLink":"","externalDocMarkdown":"","g3DocLink":"","iconLink":"","isDeprecated":false,"name":"","standaloneExternalDocHtml":"","status":"","system":"","tags":[]},"paramSpecs":{"parameters":[{"className":"","collectionElementClassName":"","config":{"descriptivePhrase":"","helpText":"","hideDefaultValue":false,"inputDisplayOption":"","isHidden":false,"label":"","parameterNameOption":"","subSectionLabel":"","uiPlaceholderText":""},"dataType":"","defaultValue":{},"isDeprecated":false,"isOutput":false,"jsonSchema":"","key":"","protoDef":{"fullName":"","path":""},"required":false,"validationRule":{"doubleRange":{"max":"","min":""},"intRange":{"max":"","min":""},"stringRegex":{"exclusive":false,"regex":""}}}]},"stats":{"dimensions":{"clientId":"","enumFilterType":"","errorEnumString":"","retryAttempt":"","taskName":"","taskNumber":"","triggerId":"","warningEnumString":"","workflowId":"","workflowName":""},"durationInSeconds":"","errorRate":"","qps":"","warningRate":""},"taskType":"","uiConfig":{"taskUiModuleConfigs":[{"moduleId":""}]}},"taskExecutionStrategy":"","taskName":"","taskNumber":"","taskSpec":"","taskTemplateName":"","taskType":""}],"teardown":{"teardownTaskConfigs":[{"creatorEmail":"","name":"","nextTeardownTask":{"name":""},"parameters":{"parameters":[{"key":"","value":{"booleanArray":{"booleanValues":[]},"booleanValue":false,"doubleArray":{"doubleValues":[]},"doubleValue":"","intArray":{"intValues":[]},"intValue":"","protoArray":{"protoValues":[{}]},"protoValue":{},"serializedObjectValue":{"objectValue":""},"stringArray":{"stringValues":[]},"stringValue":""}}]},"properties":{"properties":[{"key":"","value":{}}]},"teardownTaskImplementationClassName":""}]},"triggerConfigs":[{"alertConfig":[{"aggregationPeriod":"","alertThreshold":0,"disableAlert":false,"displayName":"","durationThreshold":"","metricType":"","onlyFinalAttempt":false,"thresholdType":"","thresholdValue":{"absolute":"","percentage":0}}],"cloudSchedulerConfig":{"cronTab":"","errorMessage":"","location":"","serviceAccountEmail":""},"description":"","errorCatcherId":"","label":"","nextTasksExecutionPolicy":"","position":{},"properties":{},"startTasks":[{}],"triggerId":"","triggerNumber":"","triggerType":""}],"triggerConfigsInternal":[{"alertConfig":[{"aggregationPeriod":"","alertDisabled":false,"alertName":"","clientId":"","durationThresholdMs":"","errorEnumList":{},"metricType":"","numAggregationPeriods":0,"onlyFinalAttempt":false,"playbookUrl":"","thresholdType":"","thresholdValue":{},"warningEnumList":{}}],"cloudSchedulerConfig":{"cronTab":"","errorMessage":"","location":"","serviceAccountEmail":""},"description":"","enabledClients":[],"errorCatcherId":"","label":"","nextTasksExecutionPolicy":"","pauseWorkflowExecutions":false,"position":{},"properties":{},"startTasks":[{}],"triggerCriteria":{"condition":"","parameters":{},"triggerCriteriaTaskImplementationClassName":""},"triggerId":"","triggerNumber":"","triggerType":""}],"updateTime":"","userLabel":""},"parameters":{},"testMode":false,"triggerId":""}'
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/v1/:name:test',
method: 'POST',
headers: {
'content-type': 'application/json'
},
processData: false,
data: '{\n "clientId": "",\n "deadlineSecondsTime": "",\n "inputParameters": {},\n "integrationVersion": {\n "createTime": "",\n "databasePersistencePolicy": "",\n "description": "",\n "errorCatcherConfigs": [\n {\n "description": "",\n "errorCatcherId": "",\n "errorCatcherNumber": "",\n "label": "",\n "position": {\n "x": 0,\n "y": 0\n },\n "startErrorTasks": [\n {\n "condition": "",\n "description": "",\n "displayName": "",\n "taskConfigId": "",\n "taskId": ""\n }\n ]\n }\n ],\n "integrationParameters": [\n {\n "dataType": "",\n "defaultValue": {\n "booleanArray": {\n "booleanValues": []\n },\n "booleanValue": false,\n "doubleArray": {\n "doubleValues": []\n },\n "doubleValue": "",\n "intArray": {\n "intValues": []\n },\n "intValue": "",\n "jsonValue": "",\n "stringArray": {\n "stringValues": []\n },\n "stringValue": ""\n },\n "displayName": "",\n "inputOutputType": "",\n "isTransient": false,\n "jsonSchema": "",\n "key": "",\n "producer": "",\n "searchable": false\n }\n ],\n "integrationParametersInternal": {\n "parameters": [\n {\n "attributes": {\n "dataType": "",\n "defaultValue": {\n "booleanValue": false,\n "doubleArray": {\n "values": []\n },\n "doubleValue": "",\n "intArray": {\n "values": []\n },\n "intValue": "",\n "protoValue": {},\n "stringArray": {\n "values": []\n },\n "stringValue": ""\n },\n "isRequired": false,\n "isSearchable": false,\n "logSettings": {\n "logFieldName": "",\n "sanitizeOptions": {\n "isAlreadySanitized": false,\n "logType": [],\n "privacy": "",\n "sanitizeType": ""\n },\n "seedPeriod": "",\n "seedScope": "",\n "shorteningLimits": {\n "logAction": "",\n "logType": [],\n "maxArraySize": 0,\n "maxStringLength": 0,\n "shortenerType": ""\n }\n },\n "searchable": "",\n "taskVisibility": []\n },\n "children": [],\n "dataType": "",\n "defaultValue": {\n "booleanArray": {\n "booleanValues": []\n },\n "booleanValue": false,\n "doubleArray": {\n "doubleValues": []\n },\n "doubleValue": "",\n "intArray": {\n "intValues": []\n },\n "intValue": "",\n "jsonValue": "",\n "protoArray": {\n "protoValues": [\n {}\n ]\n },\n "protoValue": {},\n "serializedObjectValue": {\n "objectValue": ""\n },\n "stringArray": {\n "stringValues": []\n },\n "stringValue": ""\n },\n "inOutType": "",\n "isTransient": false,\n "jsonSchema": "",\n "key": "",\n "name": "",\n "producedBy": {\n "elementIdentifier": "",\n "elementType": ""\n },\n "producer": "",\n "protoDefName": "",\n "protoDefPath": ""\n }\n ]\n },\n "lastModifierEmail": "",\n "lockHolder": "",\n "name": "",\n "origin": "",\n "parentTemplateId": "",\n "runAsServiceAccount": "",\n "snapshotNumber": "",\n "state": "",\n "status": "",\n "taskConfigs": [\n {\n "description": "",\n "displayName": "",\n "errorCatcherId": "",\n "externalTaskType": "",\n "failurePolicy": {\n "intervalTime": "",\n "maxRetries": 0,\n "retryStrategy": ""\n },\n "jsonValidationOption": "",\n "nextTasks": [\n {}\n ],\n "nextTasksExecutionPolicy": "",\n "parameters": {},\n "position": {},\n "successPolicy": {\n "finalState": ""\n },\n "synchronousCallFailurePolicy": {},\n "task": "",\n "taskExecutionStrategy": "",\n "taskId": "",\n "taskTemplate": ""\n }\n ],\n "taskConfigsInternal": [\n {\n "alertConfigs": [\n {\n "aggregationPeriod": "",\n "alertDisabled": false,\n "alertName": "",\n "clientId": "",\n "durationThresholdMs": "",\n "errorEnumList": {\n "enumStrings": [],\n "filterType": ""\n },\n "metricType": "",\n "numAggregationPeriods": 0,\n "onlyFinalAttempt": false,\n "playbookUrl": "",\n "thresholdType": "",\n "thresholdValue": {\n "absolute": "",\n "percentage": 0\n },\n "warningEnumList": {}\n }\n ],\n "createTime": "",\n "creatorEmail": "",\n "description": "",\n "disableStrictTypeValidation": false,\n "errorCatcherId": "",\n "externalTaskType": "",\n "failurePolicy": {\n "intervalInSeconds": "",\n "maxNumRetries": 0,\n "retryStrategy": ""\n },\n "incomingEdgeCount": 0,\n "jsonValidationOption": "",\n "label": "",\n "lastModifiedTime": "",\n "nextTasks": [\n {\n "combinedConditions": [\n {\n "conditions": [\n {\n "eventPropertyKey": "",\n "operator": "",\n "value": {}\n }\n ]\n }\n ],\n "condition": "",\n "description": "",\n "label": "",\n "taskConfigId": "",\n "taskNumber": ""\n }\n ],\n "nextTasksExecutionPolicy": "",\n "parameters": {},\n "position": {\n "x": 0,\n "y": 0\n },\n "precondition": "",\n "preconditionLabel": "",\n "rollbackStrategy": {\n "parameters": {\n "parameters": [\n {\n "dataType": "",\n "key": "",\n "value": {}\n }\n ]\n },\n "rollbackTaskImplementationClassName": "",\n "taskNumbersToRollback": []\n },\n "successPolicy": {\n "finalState": ""\n },\n "synchronousCallFailurePolicy": {},\n "taskEntity": {\n "disabledForVpcSc": false,\n "metadata": {\n "activeTaskName": "",\n "admins": [\n {\n "googleGroupEmail": "",\n "userEmail": ""\n }\n ],\n "category": "",\n "codeSearchLink": "",\n "defaultJsonValidationOption": "",\n "defaultSpec": "",\n "description": "",\n "descriptiveName": "",\n "docMarkdown": "",\n "externalCategory": "",\n "externalCategorySequence": 0,\n "externalDocHtml": "",\n "externalDocLink": "",\n "externalDocMarkdown": "",\n "g3DocLink": "",\n "iconLink": "",\n "isDeprecated": false,\n "name": "",\n "standaloneExternalDocHtml": "",\n "status": "",\n "system": "",\n "tags": []\n },\n "paramSpecs": {\n "parameters": [\n {\n "className": "",\n "collectionElementClassName": "",\n "config": {\n "descriptivePhrase": "",\n "helpText": "",\n "hideDefaultValue": false,\n "inputDisplayOption": "",\n "isHidden": false,\n "label": "",\n "parameterNameOption": "",\n "subSectionLabel": "",\n "uiPlaceholderText": ""\n },\n "dataType": "",\n "defaultValue": {},\n "isDeprecated": false,\n "isOutput": false,\n "jsonSchema": "",\n "key": "",\n "protoDef": {\n "fullName": "",\n "path": ""\n },\n "required": false,\n "validationRule": {\n "doubleRange": {\n "max": "",\n "min": ""\n },\n "intRange": {\n "max": "",\n "min": ""\n },\n "stringRegex": {\n "exclusive": false,\n "regex": ""\n }\n }\n }\n ]\n },\n "stats": {\n "dimensions": {\n "clientId": "",\n "enumFilterType": "",\n "errorEnumString": "",\n "retryAttempt": "",\n "taskName": "",\n "taskNumber": "",\n "triggerId": "",\n "warningEnumString": "",\n "workflowId": "",\n "workflowName": ""\n },\n "durationInSeconds": "",\n "errorRate": "",\n "qps": "",\n "warningRate": ""\n },\n "taskType": "",\n "uiConfig": {\n "taskUiModuleConfigs": [\n {\n "moduleId": ""\n }\n ]\n }\n },\n "taskExecutionStrategy": "",\n "taskName": "",\n "taskNumber": "",\n "taskSpec": "",\n "taskTemplateName": "",\n "taskType": ""\n }\n ],\n "teardown": {\n "teardownTaskConfigs": [\n {\n "creatorEmail": "",\n "name": "",\n "nextTeardownTask": {\n "name": ""\n },\n "parameters": {\n "parameters": [\n {\n "key": "",\n "value": {\n "booleanArray": {\n "booleanValues": []\n },\n "booleanValue": false,\n "doubleArray": {\n "doubleValues": []\n },\n "doubleValue": "",\n "intArray": {\n "intValues": []\n },\n "intValue": "",\n "protoArray": {\n "protoValues": [\n {}\n ]\n },\n "protoValue": {},\n "serializedObjectValue": {\n "objectValue": ""\n },\n "stringArray": {\n "stringValues": []\n },\n "stringValue": ""\n }\n }\n ]\n },\n "properties": {\n "properties": [\n {\n "key": "",\n "value": {}\n }\n ]\n },\n "teardownTaskImplementationClassName": ""\n }\n ]\n },\n "triggerConfigs": [\n {\n "alertConfig": [\n {\n "aggregationPeriod": "",\n "alertThreshold": 0,\n "disableAlert": false,\n "displayName": "",\n "durationThreshold": "",\n "metricType": "",\n "onlyFinalAttempt": false,\n "thresholdType": "",\n "thresholdValue": {\n "absolute": "",\n "percentage": 0\n }\n }\n ],\n "cloudSchedulerConfig": {\n "cronTab": "",\n "errorMessage": "",\n "location": "",\n "serviceAccountEmail": ""\n },\n "description": "",\n "errorCatcherId": "",\n "label": "",\n "nextTasksExecutionPolicy": "",\n "position": {},\n "properties": {},\n "startTasks": [\n {}\n ],\n "triggerId": "",\n "triggerNumber": "",\n "triggerType": ""\n }\n ],\n "triggerConfigsInternal": [\n {\n "alertConfig": [\n {\n "aggregationPeriod": "",\n "alertDisabled": false,\n "alertName": "",\n "clientId": "",\n "durationThresholdMs": "",\n "errorEnumList": {},\n "metricType": "",\n "numAggregationPeriods": 0,\n "onlyFinalAttempt": false,\n "playbookUrl": "",\n "thresholdType": "",\n "thresholdValue": {},\n "warningEnumList": {}\n }\n ],\n "cloudSchedulerConfig": {\n "cronTab": "",\n "errorMessage": "",\n "location": "",\n "serviceAccountEmail": ""\n },\n "description": "",\n "enabledClients": [],\n "errorCatcherId": "",\n "label": "",\n "nextTasksExecutionPolicy": "",\n "pauseWorkflowExecutions": false,\n "position": {},\n "properties": {},\n "startTasks": [\n {}\n ],\n "triggerCriteria": {\n "condition": "",\n "parameters": {},\n "triggerCriteriaTaskImplementationClassName": ""\n },\n "triggerId": "",\n "triggerNumber": "",\n "triggerType": ""\n }\n ],\n "updateTime": "",\n "userLabel": ""\n },\n "parameters": {},\n "testMode": false,\n "triggerId": ""\n}'
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n \"clientId\": \"\",\n \"deadlineSecondsTime\": \"\",\n \"inputParameters\": {},\n \"integrationVersion\": {\n \"createTime\": \"\",\n \"databasePersistencePolicy\": \"\",\n \"description\": \"\",\n \"errorCatcherConfigs\": [\n {\n \"description\": \"\",\n \"errorCatcherId\": \"\",\n \"errorCatcherNumber\": \"\",\n \"label\": \"\",\n \"position\": {\n \"x\": 0,\n \"y\": 0\n },\n \"startErrorTasks\": [\n {\n \"condition\": \"\",\n \"description\": \"\",\n \"displayName\": \"\",\n \"taskConfigId\": \"\",\n \"taskId\": \"\"\n }\n ]\n }\n ],\n \"integrationParameters\": [\n {\n \"dataType\": \"\",\n \"defaultValue\": {\n \"booleanArray\": {\n \"booleanValues\": []\n },\n \"booleanValue\": false,\n \"doubleArray\": {\n \"doubleValues\": []\n },\n \"doubleValue\": \"\",\n \"intArray\": {\n \"intValues\": []\n },\n \"intValue\": \"\",\n \"jsonValue\": \"\",\n \"stringArray\": {\n \"stringValues\": []\n },\n \"stringValue\": \"\"\n },\n \"displayName\": \"\",\n \"inputOutputType\": \"\",\n \"isTransient\": false,\n \"jsonSchema\": \"\",\n \"key\": \"\",\n \"producer\": \"\",\n \"searchable\": false\n }\n ],\n \"integrationParametersInternal\": {\n \"parameters\": [\n {\n \"attributes\": {\n \"dataType\": \"\",\n \"defaultValue\": {\n \"booleanValue\": false,\n \"doubleArray\": {\n \"values\": []\n },\n \"doubleValue\": \"\",\n \"intArray\": {\n \"values\": []\n },\n \"intValue\": \"\",\n \"protoValue\": {},\n \"stringArray\": {\n \"values\": []\n },\n \"stringValue\": \"\"\n },\n \"isRequired\": false,\n \"isSearchable\": false,\n \"logSettings\": {\n \"logFieldName\": \"\",\n \"sanitizeOptions\": {\n \"isAlreadySanitized\": false,\n \"logType\": [],\n \"privacy\": \"\",\n \"sanitizeType\": \"\"\n },\n \"seedPeriod\": \"\",\n \"seedScope\": \"\",\n \"shorteningLimits\": {\n \"logAction\": \"\",\n \"logType\": [],\n \"maxArraySize\": 0,\n \"maxStringLength\": 0,\n \"shortenerType\": \"\"\n }\n },\n \"searchable\": \"\",\n \"taskVisibility\": []\n },\n \"children\": [],\n \"dataType\": \"\",\n \"defaultValue\": {\n \"booleanArray\": {\n \"booleanValues\": []\n },\n \"booleanValue\": false,\n \"doubleArray\": {\n \"doubleValues\": []\n },\n \"doubleValue\": \"\",\n \"intArray\": {\n \"intValues\": []\n },\n \"intValue\": \"\",\n \"jsonValue\": \"\",\n \"protoArray\": {\n \"protoValues\": [\n {}\n ]\n },\n \"protoValue\": {},\n \"serializedObjectValue\": {\n \"objectValue\": \"\"\n },\n \"stringArray\": {\n \"stringValues\": []\n },\n \"stringValue\": \"\"\n },\n \"inOutType\": \"\",\n \"isTransient\": false,\n \"jsonSchema\": \"\",\n \"key\": \"\",\n \"name\": \"\",\n \"producedBy\": {\n \"elementIdentifier\": \"\",\n \"elementType\": \"\"\n },\n \"producer\": \"\",\n \"protoDefName\": \"\",\n \"protoDefPath\": \"\"\n }\n ]\n },\n \"lastModifierEmail\": \"\",\n \"lockHolder\": \"\",\n \"name\": \"\",\n \"origin\": \"\",\n \"parentTemplateId\": \"\",\n \"runAsServiceAccount\": \"\",\n \"snapshotNumber\": \"\",\n \"state\": \"\",\n \"status\": \"\",\n \"taskConfigs\": [\n {\n \"description\": \"\",\n \"displayName\": \"\",\n \"errorCatcherId\": \"\",\n \"externalTaskType\": \"\",\n \"failurePolicy\": {\n \"intervalTime\": \"\",\n \"maxRetries\": 0,\n \"retryStrategy\": \"\"\n },\n \"jsonValidationOption\": \"\",\n \"nextTasks\": [\n {}\n ],\n \"nextTasksExecutionPolicy\": \"\",\n \"parameters\": {},\n \"position\": {},\n \"successPolicy\": {\n \"finalState\": \"\"\n },\n \"synchronousCallFailurePolicy\": {},\n \"task\": \"\",\n \"taskExecutionStrategy\": \"\",\n \"taskId\": \"\",\n \"taskTemplate\": \"\"\n }\n ],\n \"taskConfigsInternal\": [\n {\n \"alertConfigs\": [\n {\n \"aggregationPeriod\": \"\",\n \"alertDisabled\": false,\n \"alertName\": \"\",\n \"clientId\": \"\",\n \"durationThresholdMs\": \"\",\n \"errorEnumList\": {\n \"enumStrings\": [],\n \"filterType\": \"\"\n },\n \"metricType\": \"\",\n \"numAggregationPeriods\": 0,\n \"onlyFinalAttempt\": false,\n \"playbookUrl\": \"\",\n \"thresholdType\": \"\",\n \"thresholdValue\": {\n \"absolute\": \"\",\n \"percentage\": 0\n },\n \"warningEnumList\": {}\n }\n ],\n \"createTime\": \"\",\n \"creatorEmail\": \"\",\n \"description\": \"\",\n \"disableStrictTypeValidation\": false,\n \"errorCatcherId\": \"\",\n \"externalTaskType\": \"\",\n \"failurePolicy\": {\n \"intervalInSeconds\": \"\",\n \"maxNumRetries\": 0,\n \"retryStrategy\": \"\"\n },\n \"incomingEdgeCount\": 0,\n \"jsonValidationOption\": \"\",\n \"label\": \"\",\n \"lastModifiedTime\": \"\",\n \"nextTasks\": [\n {\n \"combinedConditions\": [\n {\n \"conditions\": [\n {\n \"eventPropertyKey\": \"\",\n \"operator\": \"\",\n \"value\": {}\n }\n ]\n }\n ],\n \"condition\": \"\",\n \"description\": \"\",\n \"label\": \"\",\n \"taskConfigId\": \"\",\n \"taskNumber\": \"\"\n }\n ],\n \"nextTasksExecutionPolicy\": \"\",\n \"parameters\": {},\n \"position\": {\n \"x\": 0,\n \"y\": 0\n },\n \"precondition\": \"\",\n \"preconditionLabel\": \"\",\n \"rollbackStrategy\": {\n \"parameters\": {\n \"parameters\": [\n {\n \"dataType\": \"\",\n \"key\": \"\",\n \"value\": {}\n }\n ]\n },\n \"rollbackTaskImplementationClassName\": \"\",\n \"taskNumbersToRollback\": []\n },\n \"successPolicy\": {\n \"finalState\": \"\"\n },\n \"synchronousCallFailurePolicy\": {},\n \"taskEntity\": {\n \"disabledForVpcSc\": false,\n \"metadata\": {\n \"activeTaskName\": \"\",\n \"admins\": [\n {\n \"googleGroupEmail\": \"\",\n \"userEmail\": \"\"\n }\n ],\n \"category\": \"\",\n \"codeSearchLink\": \"\",\n \"defaultJsonValidationOption\": \"\",\n \"defaultSpec\": \"\",\n \"description\": \"\",\n \"descriptiveName\": \"\",\n \"docMarkdown\": \"\",\n \"externalCategory\": \"\",\n \"externalCategorySequence\": 0,\n \"externalDocHtml\": \"\",\n \"externalDocLink\": \"\",\n \"externalDocMarkdown\": \"\",\n \"g3DocLink\": \"\",\n \"iconLink\": \"\",\n \"isDeprecated\": false,\n \"name\": \"\",\n \"standaloneExternalDocHtml\": \"\",\n \"status\": \"\",\n \"system\": \"\",\n \"tags\": []\n },\n \"paramSpecs\": {\n \"parameters\": [\n {\n \"className\": \"\",\n \"collectionElementClassName\": \"\",\n \"config\": {\n \"descriptivePhrase\": \"\",\n \"helpText\": \"\",\n \"hideDefaultValue\": false,\n \"inputDisplayOption\": \"\",\n \"isHidden\": false,\n \"label\": \"\",\n \"parameterNameOption\": \"\",\n \"subSectionLabel\": \"\",\n \"uiPlaceholderText\": \"\"\n },\n \"dataType\": \"\",\n \"defaultValue\": {},\n \"isDeprecated\": false,\n \"isOutput\": false,\n \"jsonSchema\": \"\",\n \"key\": \"\",\n \"protoDef\": {\n \"fullName\": \"\",\n \"path\": \"\"\n },\n \"required\": false,\n \"validationRule\": {\n \"doubleRange\": {\n \"max\": \"\",\n \"min\": \"\"\n },\n \"intRange\": {\n \"max\": \"\",\n \"min\": \"\"\n },\n \"stringRegex\": {\n \"exclusive\": false,\n \"regex\": \"\"\n }\n }\n }\n ]\n },\n \"stats\": {\n \"dimensions\": {\n \"clientId\": \"\",\n \"enumFilterType\": \"\",\n \"errorEnumString\": \"\",\n \"retryAttempt\": \"\",\n \"taskName\": \"\",\n \"taskNumber\": \"\",\n \"triggerId\": \"\",\n \"warningEnumString\": \"\",\n \"workflowId\": \"\",\n \"workflowName\": \"\"\n },\n \"durationInSeconds\": \"\",\n \"errorRate\": \"\",\n \"qps\": \"\",\n \"warningRate\": \"\"\n },\n \"taskType\": \"\",\n \"uiConfig\": {\n \"taskUiModuleConfigs\": [\n {\n \"moduleId\": \"\"\n }\n ]\n }\n },\n \"taskExecutionStrategy\": \"\",\n \"taskName\": \"\",\n \"taskNumber\": \"\",\n \"taskSpec\": \"\",\n \"taskTemplateName\": \"\",\n \"taskType\": \"\"\n }\n ],\n \"teardown\": {\n \"teardownTaskConfigs\": [\n {\n \"creatorEmail\": \"\",\n \"name\": \"\",\n \"nextTeardownTask\": {\n \"name\": \"\"\n },\n \"parameters\": {\n \"parameters\": [\n {\n \"key\": \"\",\n \"value\": {\n \"booleanArray\": {\n \"booleanValues\": []\n },\n \"booleanValue\": false,\n \"doubleArray\": {\n \"doubleValues\": []\n },\n \"doubleValue\": \"\",\n \"intArray\": {\n \"intValues\": []\n },\n \"intValue\": \"\",\n \"protoArray\": {\n \"protoValues\": [\n {}\n ]\n },\n \"protoValue\": {},\n \"serializedObjectValue\": {\n \"objectValue\": \"\"\n },\n \"stringArray\": {\n \"stringValues\": []\n },\n \"stringValue\": \"\"\n }\n }\n ]\n },\n \"properties\": {\n \"properties\": [\n {\n \"key\": \"\",\n \"value\": {}\n }\n ]\n },\n \"teardownTaskImplementationClassName\": \"\"\n }\n ]\n },\n \"triggerConfigs\": [\n {\n \"alertConfig\": [\n {\n \"aggregationPeriod\": \"\",\n \"alertThreshold\": 0,\n \"disableAlert\": false,\n \"displayName\": \"\",\n \"durationThreshold\": \"\",\n \"metricType\": \"\",\n \"onlyFinalAttempt\": false,\n \"thresholdType\": \"\",\n \"thresholdValue\": {\n \"absolute\": \"\",\n \"percentage\": 0\n }\n }\n ],\n \"cloudSchedulerConfig\": {\n \"cronTab\": \"\",\n \"errorMessage\": \"\",\n \"location\": \"\",\n \"serviceAccountEmail\": \"\"\n },\n \"description\": \"\",\n \"errorCatcherId\": \"\",\n \"label\": \"\",\n \"nextTasksExecutionPolicy\": \"\",\n \"position\": {},\n \"properties\": {},\n \"startTasks\": [\n {}\n ],\n \"triggerId\": \"\",\n \"triggerNumber\": \"\",\n \"triggerType\": \"\"\n }\n ],\n \"triggerConfigsInternal\": [\n {\n \"alertConfig\": [\n {\n \"aggregationPeriod\": \"\",\n \"alertDisabled\": false,\n \"alertName\": \"\",\n \"clientId\": \"\",\n \"durationThresholdMs\": \"\",\n \"errorEnumList\": {},\n \"metricType\": \"\",\n \"numAggregationPeriods\": 0,\n \"onlyFinalAttempt\": false,\n \"playbookUrl\": \"\",\n \"thresholdType\": \"\",\n \"thresholdValue\": {},\n \"warningEnumList\": {}\n }\n ],\n \"cloudSchedulerConfig\": {\n \"cronTab\": \"\",\n \"errorMessage\": \"\",\n \"location\": \"\",\n \"serviceAccountEmail\": \"\"\n },\n \"description\": \"\",\n \"enabledClients\": [],\n \"errorCatcherId\": \"\",\n \"label\": \"\",\n \"nextTasksExecutionPolicy\": \"\",\n \"pauseWorkflowExecutions\": false,\n \"position\": {},\n \"properties\": {},\n \"startTasks\": [\n {}\n ],\n \"triggerCriteria\": {\n \"condition\": \"\",\n \"parameters\": {},\n \"triggerCriteriaTaskImplementationClassName\": \"\"\n },\n \"triggerId\": \"\",\n \"triggerNumber\": \"\",\n \"triggerType\": \"\"\n }\n ],\n \"updateTime\": \"\",\n \"userLabel\": \"\"\n },\n \"parameters\": {},\n \"testMode\": false,\n \"triggerId\": \"\"\n}")
val request = Request.Builder()
.url("{{baseUrl}}/v1/:name:test")
.post(body)
.addHeader("content-type", "application/json")
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'POST',
hostname: 'example.com',
port: null,
path: '/baseUrl/v1/:name:test',
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({
clientId: '',
deadlineSecondsTime: '',
inputParameters: {},
integrationVersion: {
createTime: '',
databasePersistencePolicy: '',
description: '',
errorCatcherConfigs: [
{
description: '',
errorCatcherId: '',
errorCatcherNumber: '',
label: '',
position: {x: 0, y: 0},
startErrorTasks: [
{condition: '', description: '', displayName: '', taskConfigId: '', taskId: ''}
]
}
],
integrationParameters: [
{
dataType: '',
defaultValue: {
booleanArray: {booleanValues: []},
booleanValue: false,
doubleArray: {doubleValues: []},
doubleValue: '',
intArray: {intValues: []},
intValue: '',
jsonValue: '',
stringArray: {stringValues: []},
stringValue: ''
},
displayName: '',
inputOutputType: '',
isTransient: false,
jsonSchema: '',
key: '',
producer: '',
searchable: false
}
],
integrationParametersInternal: {
parameters: [
{
attributes: {
dataType: '',
defaultValue: {
booleanValue: false,
doubleArray: {values: []},
doubleValue: '',
intArray: {values: []},
intValue: '',
protoValue: {},
stringArray: {values: []},
stringValue: ''
},
isRequired: false,
isSearchable: false,
logSettings: {
logFieldName: '',
sanitizeOptions: {isAlreadySanitized: false, logType: [], privacy: '', sanitizeType: ''},
seedPeriod: '',
seedScope: '',
shorteningLimits: {
logAction: '',
logType: [],
maxArraySize: 0,
maxStringLength: 0,
shortenerType: ''
}
},
searchable: '',
taskVisibility: []
},
children: [],
dataType: '',
defaultValue: {
booleanArray: {booleanValues: []},
booleanValue: false,
doubleArray: {doubleValues: []},
doubleValue: '',
intArray: {intValues: []},
intValue: '',
jsonValue: '',
protoArray: {protoValues: [{}]},
protoValue: {},
serializedObjectValue: {objectValue: ''},
stringArray: {stringValues: []},
stringValue: ''
},
inOutType: '',
isTransient: false,
jsonSchema: '',
key: '',
name: '',
producedBy: {elementIdentifier: '', elementType: ''},
producer: '',
protoDefName: '',
protoDefPath: ''
}
]
},
lastModifierEmail: '',
lockHolder: '',
name: '',
origin: '',
parentTemplateId: '',
runAsServiceAccount: '',
snapshotNumber: '',
state: '',
status: '',
taskConfigs: [
{
description: '',
displayName: '',
errorCatcherId: '',
externalTaskType: '',
failurePolicy: {intervalTime: '', maxRetries: 0, retryStrategy: ''},
jsonValidationOption: '',
nextTasks: [{}],
nextTasksExecutionPolicy: '',
parameters: {},
position: {},
successPolicy: {finalState: ''},
synchronousCallFailurePolicy: {},
task: '',
taskExecutionStrategy: '',
taskId: '',
taskTemplate: ''
}
],
taskConfigsInternal: [
{
alertConfigs: [
{
aggregationPeriod: '',
alertDisabled: false,
alertName: '',
clientId: '',
durationThresholdMs: '',
errorEnumList: {enumStrings: [], filterType: ''},
metricType: '',
numAggregationPeriods: 0,
onlyFinalAttempt: false,
playbookUrl: '',
thresholdType: '',
thresholdValue: {absolute: '', percentage: 0},
warningEnumList: {}
}
],
createTime: '',
creatorEmail: '',
description: '',
disableStrictTypeValidation: false,
errorCatcherId: '',
externalTaskType: '',
failurePolicy: {intervalInSeconds: '', maxNumRetries: 0, retryStrategy: ''},
incomingEdgeCount: 0,
jsonValidationOption: '',
label: '',
lastModifiedTime: '',
nextTasks: [
{
combinedConditions: [{conditions: [{eventPropertyKey: '', operator: '', value: {}}]}],
condition: '',
description: '',
label: '',
taskConfigId: '',
taskNumber: ''
}
],
nextTasksExecutionPolicy: '',
parameters: {},
position: {x: 0, y: 0},
precondition: '',
preconditionLabel: '',
rollbackStrategy: {
parameters: {parameters: [{dataType: '', key: '', value: {}}]},
rollbackTaskImplementationClassName: '',
taskNumbersToRollback: []
},
successPolicy: {finalState: ''},
synchronousCallFailurePolicy: {},
taskEntity: {
disabledForVpcSc: false,
metadata: {
activeTaskName: '',
admins: [{googleGroupEmail: '', userEmail: ''}],
category: '',
codeSearchLink: '',
defaultJsonValidationOption: '',
defaultSpec: '',
description: '',
descriptiveName: '',
docMarkdown: '',
externalCategory: '',
externalCategorySequence: 0,
externalDocHtml: '',
externalDocLink: '',
externalDocMarkdown: '',
g3DocLink: '',
iconLink: '',
isDeprecated: false,
name: '',
standaloneExternalDocHtml: '',
status: '',
system: '',
tags: []
},
paramSpecs: {
parameters: [
{
className: '',
collectionElementClassName: '',
config: {
descriptivePhrase: '',
helpText: '',
hideDefaultValue: false,
inputDisplayOption: '',
isHidden: false,
label: '',
parameterNameOption: '',
subSectionLabel: '',
uiPlaceholderText: ''
},
dataType: '',
defaultValue: {},
isDeprecated: false,
isOutput: false,
jsonSchema: '',
key: '',
protoDef: {fullName: '', path: ''},
required: false,
validationRule: {
doubleRange: {max: '', min: ''},
intRange: {max: '', min: ''},
stringRegex: {exclusive: false, regex: ''}
}
}
]
},
stats: {
dimensions: {
clientId: '',
enumFilterType: '',
errorEnumString: '',
retryAttempt: '',
taskName: '',
taskNumber: '',
triggerId: '',
warningEnumString: '',
workflowId: '',
workflowName: ''
},
durationInSeconds: '',
errorRate: '',
qps: '',
warningRate: ''
},
taskType: '',
uiConfig: {taskUiModuleConfigs: [{moduleId: ''}]}
},
taskExecutionStrategy: '',
taskName: '',
taskNumber: '',
taskSpec: '',
taskTemplateName: '',
taskType: ''
}
],
teardown: {
teardownTaskConfigs: [
{
creatorEmail: '',
name: '',
nextTeardownTask: {name: ''},
parameters: {
parameters: [
{
key: '',
value: {
booleanArray: {booleanValues: []},
booleanValue: false,
doubleArray: {doubleValues: []},
doubleValue: '',
intArray: {intValues: []},
intValue: '',
protoArray: {protoValues: [{}]},
protoValue: {},
serializedObjectValue: {objectValue: ''},
stringArray: {stringValues: []},
stringValue: ''
}
}
]
},
properties: {properties: [{key: '', value: {}}]},
teardownTaskImplementationClassName: ''
}
]
},
triggerConfigs: [
{
alertConfig: [
{
aggregationPeriod: '',
alertThreshold: 0,
disableAlert: false,
displayName: '',
durationThreshold: '',
metricType: '',
onlyFinalAttempt: false,
thresholdType: '',
thresholdValue: {absolute: '', percentage: 0}
}
],
cloudSchedulerConfig: {cronTab: '', errorMessage: '', location: '', serviceAccountEmail: ''},
description: '',
errorCatcherId: '',
label: '',
nextTasksExecutionPolicy: '',
position: {},
properties: {},
startTasks: [{}],
triggerId: '',
triggerNumber: '',
triggerType: ''
}
],
triggerConfigsInternal: [
{
alertConfig: [
{
aggregationPeriod: '',
alertDisabled: false,
alertName: '',
clientId: '',
durationThresholdMs: '',
errorEnumList: {},
metricType: '',
numAggregationPeriods: 0,
onlyFinalAttempt: false,
playbookUrl: '',
thresholdType: '',
thresholdValue: {},
warningEnumList: {}
}
],
cloudSchedulerConfig: {cronTab: '', errorMessage: '', location: '', serviceAccountEmail: ''},
description: '',
enabledClients: [],
errorCatcherId: '',
label: '',
nextTasksExecutionPolicy: '',
pauseWorkflowExecutions: false,
position: {},
properties: {},
startTasks: [{}],
triggerCriteria: {condition: '', parameters: {}, triggerCriteriaTaskImplementationClassName: ''},
triggerId: '',
triggerNumber: '',
triggerType: ''
}
],
updateTime: '',
userLabel: ''
},
parameters: {},
testMode: false,
triggerId: ''
}));
req.end();
const request = require('request');
const options = {
method: 'POST',
url: '{{baseUrl}}/v1/:name:test',
headers: {'content-type': 'application/json'},
body: {
clientId: '',
deadlineSecondsTime: '',
inputParameters: {},
integrationVersion: {
createTime: '',
databasePersistencePolicy: '',
description: '',
errorCatcherConfigs: [
{
description: '',
errorCatcherId: '',
errorCatcherNumber: '',
label: '',
position: {x: 0, y: 0},
startErrorTasks: [
{condition: '', description: '', displayName: '', taskConfigId: '', taskId: ''}
]
}
],
integrationParameters: [
{
dataType: '',
defaultValue: {
booleanArray: {booleanValues: []},
booleanValue: false,
doubleArray: {doubleValues: []},
doubleValue: '',
intArray: {intValues: []},
intValue: '',
jsonValue: '',
stringArray: {stringValues: []},
stringValue: ''
},
displayName: '',
inputOutputType: '',
isTransient: false,
jsonSchema: '',
key: '',
producer: '',
searchable: false
}
],
integrationParametersInternal: {
parameters: [
{
attributes: {
dataType: '',
defaultValue: {
booleanValue: false,
doubleArray: {values: []},
doubleValue: '',
intArray: {values: []},
intValue: '',
protoValue: {},
stringArray: {values: []},
stringValue: ''
},
isRequired: false,
isSearchable: false,
logSettings: {
logFieldName: '',
sanitizeOptions: {isAlreadySanitized: false, logType: [], privacy: '', sanitizeType: ''},
seedPeriod: '',
seedScope: '',
shorteningLimits: {
logAction: '',
logType: [],
maxArraySize: 0,
maxStringLength: 0,
shortenerType: ''
}
},
searchable: '',
taskVisibility: []
},
children: [],
dataType: '',
defaultValue: {
booleanArray: {booleanValues: []},
booleanValue: false,
doubleArray: {doubleValues: []},
doubleValue: '',
intArray: {intValues: []},
intValue: '',
jsonValue: '',
protoArray: {protoValues: [{}]},
protoValue: {},
serializedObjectValue: {objectValue: ''},
stringArray: {stringValues: []},
stringValue: ''
},
inOutType: '',
isTransient: false,
jsonSchema: '',
key: '',
name: '',
producedBy: {elementIdentifier: '', elementType: ''},
producer: '',
protoDefName: '',
protoDefPath: ''
}
]
},
lastModifierEmail: '',
lockHolder: '',
name: '',
origin: '',
parentTemplateId: '',
runAsServiceAccount: '',
snapshotNumber: '',
state: '',
status: '',
taskConfigs: [
{
description: '',
displayName: '',
errorCatcherId: '',
externalTaskType: '',
failurePolicy: {intervalTime: '', maxRetries: 0, retryStrategy: ''},
jsonValidationOption: '',
nextTasks: [{}],
nextTasksExecutionPolicy: '',
parameters: {},
position: {},
successPolicy: {finalState: ''},
synchronousCallFailurePolicy: {},
task: '',
taskExecutionStrategy: '',
taskId: '',
taskTemplate: ''
}
],
taskConfigsInternal: [
{
alertConfigs: [
{
aggregationPeriod: '',
alertDisabled: false,
alertName: '',
clientId: '',
durationThresholdMs: '',
errorEnumList: {enumStrings: [], filterType: ''},
metricType: '',
numAggregationPeriods: 0,
onlyFinalAttempt: false,
playbookUrl: '',
thresholdType: '',
thresholdValue: {absolute: '', percentage: 0},
warningEnumList: {}
}
],
createTime: '',
creatorEmail: '',
description: '',
disableStrictTypeValidation: false,
errorCatcherId: '',
externalTaskType: '',
failurePolicy: {intervalInSeconds: '', maxNumRetries: 0, retryStrategy: ''},
incomingEdgeCount: 0,
jsonValidationOption: '',
label: '',
lastModifiedTime: '',
nextTasks: [
{
combinedConditions: [{conditions: [{eventPropertyKey: '', operator: '', value: {}}]}],
condition: '',
description: '',
label: '',
taskConfigId: '',
taskNumber: ''
}
],
nextTasksExecutionPolicy: '',
parameters: {},
position: {x: 0, y: 0},
precondition: '',
preconditionLabel: '',
rollbackStrategy: {
parameters: {parameters: [{dataType: '', key: '', value: {}}]},
rollbackTaskImplementationClassName: '',
taskNumbersToRollback: []
},
successPolicy: {finalState: ''},
synchronousCallFailurePolicy: {},
taskEntity: {
disabledForVpcSc: false,
metadata: {
activeTaskName: '',
admins: [{googleGroupEmail: '', userEmail: ''}],
category: '',
codeSearchLink: '',
defaultJsonValidationOption: '',
defaultSpec: '',
description: '',
descriptiveName: '',
docMarkdown: '',
externalCategory: '',
externalCategorySequence: 0,
externalDocHtml: '',
externalDocLink: '',
externalDocMarkdown: '',
g3DocLink: '',
iconLink: '',
isDeprecated: false,
name: '',
standaloneExternalDocHtml: '',
status: '',
system: '',
tags: []
},
paramSpecs: {
parameters: [
{
className: '',
collectionElementClassName: '',
config: {
descriptivePhrase: '',
helpText: '',
hideDefaultValue: false,
inputDisplayOption: '',
isHidden: false,
label: '',
parameterNameOption: '',
subSectionLabel: '',
uiPlaceholderText: ''
},
dataType: '',
defaultValue: {},
isDeprecated: false,
isOutput: false,
jsonSchema: '',
key: '',
protoDef: {fullName: '', path: ''},
required: false,
validationRule: {
doubleRange: {max: '', min: ''},
intRange: {max: '', min: ''},
stringRegex: {exclusive: false, regex: ''}
}
}
]
},
stats: {
dimensions: {
clientId: '',
enumFilterType: '',
errorEnumString: '',
retryAttempt: '',
taskName: '',
taskNumber: '',
triggerId: '',
warningEnumString: '',
workflowId: '',
workflowName: ''
},
durationInSeconds: '',
errorRate: '',
qps: '',
warningRate: ''
},
taskType: '',
uiConfig: {taskUiModuleConfigs: [{moduleId: ''}]}
},
taskExecutionStrategy: '',
taskName: '',
taskNumber: '',
taskSpec: '',
taskTemplateName: '',
taskType: ''
}
],
teardown: {
teardownTaskConfigs: [
{
creatorEmail: '',
name: '',
nextTeardownTask: {name: ''},
parameters: {
parameters: [
{
key: '',
value: {
booleanArray: {booleanValues: []},
booleanValue: false,
doubleArray: {doubleValues: []},
doubleValue: '',
intArray: {intValues: []},
intValue: '',
protoArray: {protoValues: [{}]},
protoValue: {},
serializedObjectValue: {objectValue: ''},
stringArray: {stringValues: []},
stringValue: ''
}
}
]
},
properties: {properties: [{key: '', value: {}}]},
teardownTaskImplementationClassName: ''
}
]
},
triggerConfigs: [
{
alertConfig: [
{
aggregationPeriod: '',
alertThreshold: 0,
disableAlert: false,
displayName: '',
durationThreshold: '',
metricType: '',
onlyFinalAttempt: false,
thresholdType: '',
thresholdValue: {absolute: '', percentage: 0}
}
],
cloudSchedulerConfig: {cronTab: '', errorMessage: '', location: '', serviceAccountEmail: ''},
description: '',
errorCatcherId: '',
label: '',
nextTasksExecutionPolicy: '',
position: {},
properties: {},
startTasks: [{}],
triggerId: '',
triggerNumber: '',
triggerType: ''
}
],
triggerConfigsInternal: [
{
alertConfig: [
{
aggregationPeriod: '',
alertDisabled: false,
alertName: '',
clientId: '',
durationThresholdMs: '',
errorEnumList: {},
metricType: '',
numAggregationPeriods: 0,
onlyFinalAttempt: false,
playbookUrl: '',
thresholdType: '',
thresholdValue: {},
warningEnumList: {}
}
],
cloudSchedulerConfig: {cronTab: '', errorMessage: '', location: '', serviceAccountEmail: ''},
description: '',
enabledClients: [],
errorCatcherId: '',
label: '',
nextTasksExecutionPolicy: '',
pauseWorkflowExecutions: false,
position: {},
properties: {},
startTasks: [{}],
triggerCriteria: {condition: '', parameters: {}, triggerCriteriaTaskImplementationClassName: ''},
triggerId: '',
triggerNumber: '',
triggerType: ''
}
],
updateTime: '',
userLabel: ''
},
parameters: {},
testMode: false,
triggerId: ''
},
json: true
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('POST', '{{baseUrl}}/v1/:name:test');
req.headers({
'content-type': 'application/json'
});
req.type('json');
req.send({
clientId: '',
deadlineSecondsTime: '',
inputParameters: {},
integrationVersion: {
createTime: '',
databasePersistencePolicy: '',
description: '',
errorCatcherConfigs: [
{
description: '',
errorCatcherId: '',
errorCatcherNumber: '',
label: '',
position: {
x: 0,
y: 0
},
startErrorTasks: [
{
condition: '',
description: '',
displayName: '',
taskConfigId: '',
taskId: ''
}
]
}
],
integrationParameters: [
{
dataType: '',
defaultValue: {
booleanArray: {
booleanValues: []
},
booleanValue: false,
doubleArray: {
doubleValues: []
},
doubleValue: '',
intArray: {
intValues: []
},
intValue: '',
jsonValue: '',
stringArray: {
stringValues: []
},
stringValue: ''
},
displayName: '',
inputOutputType: '',
isTransient: false,
jsonSchema: '',
key: '',
producer: '',
searchable: false
}
],
integrationParametersInternal: {
parameters: [
{
attributes: {
dataType: '',
defaultValue: {
booleanValue: false,
doubleArray: {
values: []
},
doubleValue: '',
intArray: {
values: []
},
intValue: '',
protoValue: {},
stringArray: {
values: []
},
stringValue: ''
},
isRequired: false,
isSearchable: false,
logSettings: {
logFieldName: '',
sanitizeOptions: {
isAlreadySanitized: false,
logType: [],
privacy: '',
sanitizeType: ''
},
seedPeriod: '',
seedScope: '',
shorteningLimits: {
logAction: '',
logType: [],
maxArraySize: 0,
maxStringLength: 0,
shortenerType: ''
}
},
searchable: '',
taskVisibility: []
},
children: [],
dataType: '',
defaultValue: {
booleanArray: {
booleanValues: []
},
booleanValue: false,
doubleArray: {
doubleValues: []
},
doubleValue: '',
intArray: {
intValues: []
},
intValue: '',
jsonValue: '',
protoArray: {
protoValues: [
{}
]
},
protoValue: {},
serializedObjectValue: {
objectValue: ''
},
stringArray: {
stringValues: []
},
stringValue: ''
},
inOutType: '',
isTransient: false,
jsonSchema: '',
key: '',
name: '',
producedBy: {
elementIdentifier: '',
elementType: ''
},
producer: '',
protoDefName: '',
protoDefPath: ''
}
]
},
lastModifierEmail: '',
lockHolder: '',
name: '',
origin: '',
parentTemplateId: '',
runAsServiceAccount: '',
snapshotNumber: '',
state: '',
status: '',
taskConfigs: [
{
description: '',
displayName: '',
errorCatcherId: '',
externalTaskType: '',
failurePolicy: {
intervalTime: '',
maxRetries: 0,
retryStrategy: ''
},
jsonValidationOption: '',
nextTasks: [
{}
],
nextTasksExecutionPolicy: '',
parameters: {},
position: {},
successPolicy: {
finalState: ''
},
synchronousCallFailurePolicy: {},
task: '',
taskExecutionStrategy: '',
taskId: '',
taskTemplate: ''
}
],
taskConfigsInternal: [
{
alertConfigs: [
{
aggregationPeriod: '',
alertDisabled: false,
alertName: '',
clientId: '',
durationThresholdMs: '',
errorEnumList: {
enumStrings: [],
filterType: ''
},
metricType: '',
numAggregationPeriods: 0,
onlyFinalAttempt: false,
playbookUrl: '',
thresholdType: '',
thresholdValue: {
absolute: '',
percentage: 0
},
warningEnumList: {}
}
],
createTime: '',
creatorEmail: '',
description: '',
disableStrictTypeValidation: false,
errorCatcherId: '',
externalTaskType: '',
failurePolicy: {
intervalInSeconds: '',
maxNumRetries: 0,
retryStrategy: ''
},
incomingEdgeCount: 0,
jsonValidationOption: '',
label: '',
lastModifiedTime: '',
nextTasks: [
{
combinedConditions: [
{
conditions: [
{
eventPropertyKey: '',
operator: '',
value: {}
}
]
}
],
condition: '',
description: '',
label: '',
taskConfigId: '',
taskNumber: ''
}
],
nextTasksExecutionPolicy: '',
parameters: {},
position: {
x: 0,
y: 0
},
precondition: '',
preconditionLabel: '',
rollbackStrategy: {
parameters: {
parameters: [
{
dataType: '',
key: '',
value: {}
}
]
},
rollbackTaskImplementationClassName: '',
taskNumbersToRollback: []
},
successPolicy: {
finalState: ''
},
synchronousCallFailurePolicy: {},
taskEntity: {
disabledForVpcSc: false,
metadata: {
activeTaskName: '',
admins: [
{
googleGroupEmail: '',
userEmail: ''
}
],
category: '',
codeSearchLink: '',
defaultJsonValidationOption: '',
defaultSpec: '',
description: '',
descriptiveName: '',
docMarkdown: '',
externalCategory: '',
externalCategorySequence: 0,
externalDocHtml: '',
externalDocLink: '',
externalDocMarkdown: '',
g3DocLink: '',
iconLink: '',
isDeprecated: false,
name: '',
standaloneExternalDocHtml: '',
status: '',
system: '',
tags: []
},
paramSpecs: {
parameters: [
{
className: '',
collectionElementClassName: '',
config: {
descriptivePhrase: '',
helpText: '',
hideDefaultValue: false,
inputDisplayOption: '',
isHidden: false,
label: '',
parameterNameOption: '',
subSectionLabel: '',
uiPlaceholderText: ''
},
dataType: '',
defaultValue: {},
isDeprecated: false,
isOutput: false,
jsonSchema: '',
key: '',
protoDef: {
fullName: '',
path: ''
},
required: false,
validationRule: {
doubleRange: {
max: '',
min: ''
},
intRange: {
max: '',
min: ''
},
stringRegex: {
exclusive: false,
regex: ''
}
}
}
]
},
stats: {
dimensions: {
clientId: '',
enumFilterType: '',
errorEnumString: '',
retryAttempt: '',
taskName: '',
taskNumber: '',
triggerId: '',
warningEnumString: '',
workflowId: '',
workflowName: ''
},
durationInSeconds: '',
errorRate: '',
qps: '',
warningRate: ''
},
taskType: '',
uiConfig: {
taskUiModuleConfigs: [
{
moduleId: ''
}
]
}
},
taskExecutionStrategy: '',
taskName: '',
taskNumber: '',
taskSpec: '',
taskTemplateName: '',
taskType: ''
}
],
teardown: {
teardownTaskConfigs: [
{
creatorEmail: '',
name: '',
nextTeardownTask: {
name: ''
},
parameters: {
parameters: [
{
key: '',
value: {
booleanArray: {
booleanValues: []
},
booleanValue: false,
doubleArray: {
doubleValues: []
},
doubleValue: '',
intArray: {
intValues: []
},
intValue: '',
protoArray: {
protoValues: [
{}
]
},
protoValue: {},
serializedObjectValue: {
objectValue: ''
},
stringArray: {
stringValues: []
},
stringValue: ''
}
}
]
},
properties: {
properties: [
{
key: '',
value: {}
}
]
},
teardownTaskImplementationClassName: ''
}
]
},
triggerConfigs: [
{
alertConfig: [
{
aggregationPeriod: '',
alertThreshold: 0,
disableAlert: false,
displayName: '',
durationThreshold: '',
metricType: '',
onlyFinalAttempt: false,
thresholdType: '',
thresholdValue: {
absolute: '',
percentage: 0
}
}
],
cloudSchedulerConfig: {
cronTab: '',
errorMessage: '',
location: '',
serviceAccountEmail: ''
},
description: '',
errorCatcherId: '',
label: '',
nextTasksExecutionPolicy: '',
position: {},
properties: {},
startTasks: [
{}
],
triggerId: '',
triggerNumber: '',
triggerType: ''
}
],
triggerConfigsInternal: [
{
alertConfig: [
{
aggregationPeriod: '',
alertDisabled: false,
alertName: '',
clientId: '',
durationThresholdMs: '',
errorEnumList: {},
metricType: '',
numAggregationPeriods: 0,
onlyFinalAttempt: false,
playbookUrl: '',
thresholdType: '',
thresholdValue: {},
warningEnumList: {}
}
],
cloudSchedulerConfig: {
cronTab: '',
errorMessage: '',
location: '',
serviceAccountEmail: ''
},
description: '',
enabledClients: [],
errorCatcherId: '',
label: '',
nextTasksExecutionPolicy: '',
pauseWorkflowExecutions: false,
position: {},
properties: {},
startTasks: [
{}
],
triggerCriteria: {
condition: '',
parameters: {},
triggerCriteriaTaskImplementationClassName: ''
},
triggerId: '',
triggerNumber: '',
triggerType: ''
}
],
updateTime: '',
userLabel: ''
},
parameters: {},
testMode: false,
triggerId: ''
});
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {
method: 'POST',
url: '{{baseUrl}}/v1/:name:test',
headers: {'content-type': 'application/json'},
data: {
clientId: '',
deadlineSecondsTime: '',
inputParameters: {},
integrationVersion: {
createTime: '',
databasePersistencePolicy: '',
description: '',
errorCatcherConfigs: [
{
description: '',
errorCatcherId: '',
errorCatcherNumber: '',
label: '',
position: {x: 0, y: 0},
startErrorTasks: [
{condition: '', description: '', displayName: '', taskConfigId: '', taskId: ''}
]
}
],
integrationParameters: [
{
dataType: '',
defaultValue: {
booleanArray: {booleanValues: []},
booleanValue: false,
doubleArray: {doubleValues: []},
doubleValue: '',
intArray: {intValues: []},
intValue: '',
jsonValue: '',
stringArray: {stringValues: []},
stringValue: ''
},
displayName: '',
inputOutputType: '',
isTransient: false,
jsonSchema: '',
key: '',
producer: '',
searchable: false
}
],
integrationParametersInternal: {
parameters: [
{
attributes: {
dataType: '',
defaultValue: {
booleanValue: false,
doubleArray: {values: []},
doubleValue: '',
intArray: {values: []},
intValue: '',
protoValue: {},
stringArray: {values: []},
stringValue: ''
},
isRequired: false,
isSearchable: false,
logSettings: {
logFieldName: '',
sanitizeOptions: {isAlreadySanitized: false, logType: [], privacy: '', sanitizeType: ''},
seedPeriod: '',
seedScope: '',
shorteningLimits: {
logAction: '',
logType: [],
maxArraySize: 0,
maxStringLength: 0,
shortenerType: ''
}
},
searchable: '',
taskVisibility: []
},
children: [],
dataType: '',
defaultValue: {
booleanArray: {booleanValues: []},
booleanValue: false,
doubleArray: {doubleValues: []},
doubleValue: '',
intArray: {intValues: []},
intValue: '',
jsonValue: '',
protoArray: {protoValues: [{}]},
protoValue: {},
serializedObjectValue: {objectValue: ''},
stringArray: {stringValues: []},
stringValue: ''
},
inOutType: '',
isTransient: false,
jsonSchema: '',
key: '',
name: '',
producedBy: {elementIdentifier: '', elementType: ''},
producer: '',
protoDefName: '',
protoDefPath: ''
}
]
},
lastModifierEmail: '',
lockHolder: '',
name: '',
origin: '',
parentTemplateId: '',
runAsServiceAccount: '',
snapshotNumber: '',
state: '',
status: '',
taskConfigs: [
{
description: '',
displayName: '',
errorCatcherId: '',
externalTaskType: '',
failurePolicy: {intervalTime: '', maxRetries: 0, retryStrategy: ''},
jsonValidationOption: '',
nextTasks: [{}],
nextTasksExecutionPolicy: '',
parameters: {},
position: {},
successPolicy: {finalState: ''},
synchronousCallFailurePolicy: {},
task: '',
taskExecutionStrategy: '',
taskId: '',
taskTemplate: ''
}
],
taskConfigsInternal: [
{
alertConfigs: [
{
aggregationPeriod: '',
alertDisabled: false,
alertName: '',
clientId: '',
durationThresholdMs: '',
errorEnumList: {enumStrings: [], filterType: ''},
metricType: '',
numAggregationPeriods: 0,
onlyFinalAttempt: false,
playbookUrl: '',
thresholdType: '',
thresholdValue: {absolute: '', percentage: 0},
warningEnumList: {}
}
],
createTime: '',
creatorEmail: '',
description: '',
disableStrictTypeValidation: false,
errorCatcherId: '',
externalTaskType: '',
failurePolicy: {intervalInSeconds: '', maxNumRetries: 0, retryStrategy: ''},
incomingEdgeCount: 0,
jsonValidationOption: '',
label: '',
lastModifiedTime: '',
nextTasks: [
{
combinedConditions: [{conditions: [{eventPropertyKey: '', operator: '', value: {}}]}],
condition: '',
description: '',
label: '',
taskConfigId: '',
taskNumber: ''
}
],
nextTasksExecutionPolicy: '',
parameters: {},
position: {x: 0, y: 0},
precondition: '',
preconditionLabel: '',
rollbackStrategy: {
parameters: {parameters: [{dataType: '', key: '', value: {}}]},
rollbackTaskImplementationClassName: '',
taskNumbersToRollback: []
},
successPolicy: {finalState: ''},
synchronousCallFailurePolicy: {},
taskEntity: {
disabledForVpcSc: false,
metadata: {
activeTaskName: '',
admins: [{googleGroupEmail: '', userEmail: ''}],
category: '',
codeSearchLink: '',
defaultJsonValidationOption: '',
defaultSpec: '',
description: '',
descriptiveName: '',
docMarkdown: '',
externalCategory: '',
externalCategorySequence: 0,
externalDocHtml: '',
externalDocLink: '',
externalDocMarkdown: '',
g3DocLink: '',
iconLink: '',
isDeprecated: false,
name: '',
standaloneExternalDocHtml: '',
status: '',
system: '',
tags: []
},
paramSpecs: {
parameters: [
{
className: '',
collectionElementClassName: '',
config: {
descriptivePhrase: '',
helpText: '',
hideDefaultValue: false,
inputDisplayOption: '',
isHidden: false,
label: '',
parameterNameOption: '',
subSectionLabel: '',
uiPlaceholderText: ''
},
dataType: '',
defaultValue: {},
isDeprecated: false,
isOutput: false,
jsonSchema: '',
key: '',
protoDef: {fullName: '', path: ''},
required: false,
validationRule: {
doubleRange: {max: '', min: ''},
intRange: {max: '', min: ''},
stringRegex: {exclusive: false, regex: ''}
}
}
]
},
stats: {
dimensions: {
clientId: '',
enumFilterType: '',
errorEnumString: '',
retryAttempt: '',
taskName: '',
taskNumber: '',
triggerId: '',
warningEnumString: '',
workflowId: '',
workflowName: ''
},
durationInSeconds: '',
errorRate: '',
qps: '',
warningRate: ''
},
taskType: '',
uiConfig: {taskUiModuleConfigs: [{moduleId: ''}]}
},
taskExecutionStrategy: '',
taskName: '',
taskNumber: '',
taskSpec: '',
taskTemplateName: '',
taskType: ''
}
],
teardown: {
teardownTaskConfigs: [
{
creatorEmail: '',
name: '',
nextTeardownTask: {name: ''},
parameters: {
parameters: [
{
key: '',
value: {
booleanArray: {booleanValues: []},
booleanValue: false,
doubleArray: {doubleValues: []},
doubleValue: '',
intArray: {intValues: []},
intValue: '',
protoArray: {protoValues: [{}]},
protoValue: {},
serializedObjectValue: {objectValue: ''},
stringArray: {stringValues: []},
stringValue: ''
}
}
]
},
properties: {properties: [{key: '', value: {}}]},
teardownTaskImplementationClassName: ''
}
]
},
triggerConfigs: [
{
alertConfig: [
{
aggregationPeriod: '',
alertThreshold: 0,
disableAlert: false,
displayName: '',
durationThreshold: '',
metricType: '',
onlyFinalAttempt: false,
thresholdType: '',
thresholdValue: {absolute: '', percentage: 0}
}
],
cloudSchedulerConfig: {cronTab: '', errorMessage: '', location: '', serviceAccountEmail: ''},
description: '',
errorCatcherId: '',
label: '',
nextTasksExecutionPolicy: '',
position: {},
properties: {},
startTasks: [{}],
triggerId: '',
triggerNumber: '',
triggerType: ''
}
],
triggerConfigsInternal: [
{
alertConfig: [
{
aggregationPeriod: '',
alertDisabled: false,
alertName: '',
clientId: '',
durationThresholdMs: '',
errorEnumList: {},
metricType: '',
numAggregationPeriods: 0,
onlyFinalAttempt: false,
playbookUrl: '',
thresholdType: '',
thresholdValue: {},
warningEnumList: {}
}
],
cloudSchedulerConfig: {cronTab: '', errorMessage: '', location: '', serviceAccountEmail: ''},
description: '',
enabledClients: [],
errorCatcherId: '',
label: '',
nextTasksExecutionPolicy: '',
pauseWorkflowExecutions: false,
position: {},
properties: {},
startTasks: [{}],
triggerCriteria: {condition: '', parameters: {}, triggerCriteriaTaskImplementationClassName: ''},
triggerId: '',
triggerNumber: '',
triggerType: ''
}
],
updateTime: '',
userLabel: ''
},
parameters: {},
testMode: false,
triggerId: ''
}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/v1/:name:test';
const options = {
method: 'POST',
headers: {'content-type': 'application/json'},
body: '{"clientId":"","deadlineSecondsTime":"","inputParameters":{},"integrationVersion":{"createTime":"","databasePersistencePolicy":"","description":"","errorCatcherConfigs":[{"description":"","errorCatcherId":"","errorCatcherNumber":"","label":"","position":{"x":0,"y":0},"startErrorTasks":[{"condition":"","description":"","displayName":"","taskConfigId":"","taskId":""}]}],"integrationParameters":[{"dataType":"","defaultValue":{"booleanArray":{"booleanValues":[]},"booleanValue":false,"doubleArray":{"doubleValues":[]},"doubleValue":"","intArray":{"intValues":[]},"intValue":"","jsonValue":"","stringArray":{"stringValues":[]},"stringValue":""},"displayName":"","inputOutputType":"","isTransient":false,"jsonSchema":"","key":"","producer":"","searchable":false}],"integrationParametersInternal":{"parameters":[{"attributes":{"dataType":"","defaultValue":{"booleanValue":false,"doubleArray":{"values":[]},"doubleValue":"","intArray":{"values":[]},"intValue":"","protoValue":{},"stringArray":{"values":[]},"stringValue":""},"isRequired":false,"isSearchable":false,"logSettings":{"logFieldName":"","sanitizeOptions":{"isAlreadySanitized":false,"logType":[],"privacy":"","sanitizeType":""},"seedPeriod":"","seedScope":"","shorteningLimits":{"logAction":"","logType":[],"maxArraySize":0,"maxStringLength":0,"shortenerType":""}},"searchable":"","taskVisibility":[]},"children":[],"dataType":"","defaultValue":{"booleanArray":{"booleanValues":[]},"booleanValue":false,"doubleArray":{"doubleValues":[]},"doubleValue":"","intArray":{"intValues":[]},"intValue":"","jsonValue":"","protoArray":{"protoValues":[{}]},"protoValue":{},"serializedObjectValue":{"objectValue":""},"stringArray":{"stringValues":[]},"stringValue":""},"inOutType":"","isTransient":false,"jsonSchema":"","key":"","name":"","producedBy":{"elementIdentifier":"","elementType":""},"producer":"","protoDefName":"","protoDefPath":""}]},"lastModifierEmail":"","lockHolder":"","name":"","origin":"","parentTemplateId":"","runAsServiceAccount":"","snapshotNumber":"","state":"","status":"","taskConfigs":[{"description":"","displayName":"","errorCatcherId":"","externalTaskType":"","failurePolicy":{"intervalTime":"","maxRetries":0,"retryStrategy":""},"jsonValidationOption":"","nextTasks":[{}],"nextTasksExecutionPolicy":"","parameters":{},"position":{},"successPolicy":{"finalState":""},"synchronousCallFailurePolicy":{},"task":"","taskExecutionStrategy":"","taskId":"","taskTemplate":""}],"taskConfigsInternal":[{"alertConfigs":[{"aggregationPeriod":"","alertDisabled":false,"alertName":"","clientId":"","durationThresholdMs":"","errorEnumList":{"enumStrings":[],"filterType":""},"metricType":"","numAggregationPeriods":0,"onlyFinalAttempt":false,"playbookUrl":"","thresholdType":"","thresholdValue":{"absolute":"","percentage":0},"warningEnumList":{}}],"createTime":"","creatorEmail":"","description":"","disableStrictTypeValidation":false,"errorCatcherId":"","externalTaskType":"","failurePolicy":{"intervalInSeconds":"","maxNumRetries":0,"retryStrategy":""},"incomingEdgeCount":0,"jsonValidationOption":"","label":"","lastModifiedTime":"","nextTasks":[{"combinedConditions":[{"conditions":[{"eventPropertyKey":"","operator":"","value":{}}]}],"condition":"","description":"","label":"","taskConfigId":"","taskNumber":""}],"nextTasksExecutionPolicy":"","parameters":{},"position":{"x":0,"y":0},"precondition":"","preconditionLabel":"","rollbackStrategy":{"parameters":{"parameters":[{"dataType":"","key":"","value":{}}]},"rollbackTaskImplementationClassName":"","taskNumbersToRollback":[]},"successPolicy":{"finalState":""},"synchronousCallFailurePolicy":{},"taskEntity":{"disabledForVpcSc":false,"metadata":{"activeTaskName":"","admins":[{"googleGroupEmail":"","userEmail":""}],"category":"","codeSearchLink":"","defaultJsonValidationOption":"","defaultSpec":"","description":"","descriptiveName":"","docMarkdown":"","externalCategory":"","externalCategorySequence":0,"externalDocHtml":"","externalDocLink":"","externalDocMarkdown":"","g3DocLink":"","iconLink":"","isDeprecated":false,"name":"","standaloneExternalDocHtml":"","status":"","system":"","tags":[]},"paramSpecs":{"parameters":[{"className":"","collectionElementClassName":"","config":{"descriptivePhrase":"","helpText":"","hideDefaultValue":false,"inputDisplayOption":"","isHidden":false,"label":"","parameterNameOption":"","subSectionLabel":"","uiPlaceholderText":""},"dataType":"","defaultValue":{},"isDeprecated":false,"isOutput":false,"jsonSchema":"","key":"","protoDef":{"fullName":"","path":""},"required":false,"validationRule":{"doubleRange":{"max":"","min":""},"intRange":{"max":"","min":""},"stringRegex":{"exclusive":false,"regex":""}}}]},"stats":{"dimensions":{"clientId":"","enumFilterType":"","errorEnumString":"","retryAttempt":"","taskName":"","taskNumber":"","triggerId":"","warningEnumString":"","workflowId":"","workflowName":""},"durationInSeconds":"","errorRate":"","qps":"","warningRate":""},"taskType":"","uiConfig":{"taskUiModuleConfigs":[{"moduleId":""}]}},"taskExecutionStrategy":"","taskName":"","taskNumber":"","taskSpec":"","taskTemplateName":"","taskType":""}],"teardown":{"teardownTaskConfigs":[{"creatorEmail":"","name":"","nextTeardownTask":{"name":""},"parameters":{"parameters":[{"key":"","value":{"booleanArray":{"booleanValues":[]},"booleanValue":false,"doubleArray":{"doubleValues":[]},"doubleValue":"","intArray":{"intValues":[]},"intValue":"","protoArray":{"protoValues":[{}]},"protoValue":{},"serializedObjectValue":{"objectValue":""},"stringArray":{"stringValues":[]},"stringValue":""}}]},"properties":{"properties":[{"key":"","value":{}}]},"teardownTaskImplementationClassName":""}]},"triggerConfigs":[{"alertConfig":[{"aggregationPeriod":"","alertThreshold":0,"disableAlert":false,"displayName":"","durationThreshold":"","metricType":"","onlyFinalAttempt":false,"thresholdType":"","thresholdValue":{"absolute":"","percentage":0}}],"cloudSchedulerConfig":{"cronTab":"","errorMessage":"","location":"","serviceAccountEmail":""},"description":"","errorCatcherId":"","label":"","nextTasksExecutionPolicy":"","position":{},"properties":{},"startTasks":[{}],"triggerId":"","triggerNumber":"","triggerType":""}],"triggerConfigsInternal":[{"alertConfig":[{"aggregationPeriod":"","alertDisabled":false,"alertName":"","clientId":"","durationThresholdMs":"","errorEnumList":{},"metricType":"","numAggregationPeriods":0,"onlyFinalAttempt":false,"playbookUrl":"","thresholdType":"","thresholdValue":{},"warningEnumList":{}}],"cloudSchedulerConfig":{"cronTab":"","errorMessage":"","location":"","serviceAccountEmail":""},"description":"","enabledClients":[],"errorCatcherId":"","label":"","nextTasksExecutionPolicy":"","pauseWorkflowExecutions":false,"position":{},"properties":{},"startTasks":[{}],"triggerCriteria":{"condition":"","parameters":{},"triggerCriteriaTaskImplementationClassName":""},"triggerId":"","triggerNumber":"","triggerType":""}],"updateTime":"","userLabel":""},"parameters":{},"testMode":false,"triggerId":""}'
};
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 = @{ @"clientId": @"",
@"deadlineSecondsTime": @"",
@"inputParameters": @{ },
@"integrationVersion": @{ @"createTime": @"", @"databasePersistencePolicy": @"", @"description": @"", @"errorCatcherConfigs": @[ @{ @"description": @"", @"errorCatcherId": @"", @"errorCatcherNumber": @"", @"label": @"", @"position": @{ @"x": @0, @"y": @0 }, @"startErrorTasks": @[ @{ @"condition": @"", @"description": @"", @"displayName": @"", @"taskConfigId": @"", @"taskId": @"" } ] } ], @"integrationParameters": @[ @{ @"dataType": @"", @"defaultValue": @{ @"booleanArray": @{ @"booleanValues": @[ ] }, @"booleanValue": @NO, @"doubleArray": @{ @"doubleValues": @[ ] }, @"doubleValue": @"", @"intArray": @{ @"intValues": @[ ] }, @"intValue": @"", @"jsonValue": @"", @"stringArray": @{ @"stringValues": @[ ] }, @"stringValue": @"" }, @"displayName": @"", @"inputOutputType": @"", @"isTransient": @NO, @"jsonSchema": @"", @"key": @"", @"producer": @"", @"searchable": @NO } ], @"integrationParametersInternal": @{ @"parameters": @[ @{ @"attributes": @{ @"dataType": @"", @"defaultValue": @{ @"booleanValue": @NO, @"doubleArray": @{ @"values": @[ ] }, @"doubleValue": @"", @"intArray": @{ @"values": @[ ] }, @"intValue": @"", @"protoValue": @{ }, @"stringArray": @{ @"values": @[ ] }, @"stringValue": @"" }, @"isRequired": @NO, @"isSearchable": @NO, @"logSettings": @{ @"logFieldName": @"", @"sanitizeOptions": @{ @"isAlreadySanitized": @NO, @"logType": @[ ], @"privacy": @"", @"sanitizeType": @"" }, @"seedPeriod": @"", @"seedScope": @"", @"shorteningLimits": @{ @"logAction": @"", @"logType": @[ ], @"maxArraySize": @0, @"maxStringLength": @0, @"shortenerType": @"" } }, @"searchable": @"", @"taskVisibility": @[ ] }, @"children": @[ ], @"dataType": @"", @"defaultValue": @{ @"booleanArray": @{ @"booleanValues": @[ ] }, @"booleanValue": @NO, @"doubleArray": @{ @"doubleValues": @[ ] }, @"doubleValue": @"", @"intArray": @{ @"intValues": @[ ] }, @"intValue": @"", @"jsonValue": @"", @"protoArray": @{ @"protoValues": @[ @{ } ] }, @"protoValue": @{ }, @"serializedObjectValue": @{ @"objectValue": @"" }, @"stringArray": @{ @"stringValues": @[ ] }, @"stringValue": @"" }, @"inOutType": @"", @"isTransient": @NO, @"jsonSchema": @"", @"key": @"", @"name": @"", @"producedBy": @{ @"elementIdentifier": @"", @"elementType": @"" }, @"producer": @"", @"protoDefName": @"", @"protoDefPath": @"" } ] }, @"lastModifierEmail": @"", @"lockHolder": @"", @"name": @"", @"origin": @"", @"parentTemplateId": @"", @"runAsServiceAccount": @"", @"snapshotNumber": @"", @"state": @"", @"status": @"", @"taskConfigs": @[ @{ @"description": @"", @"displayName": @"", @"errorCatcherId": @"", @"externalTaskType": @"", @"failurePolicy": @{ @"intervalTime": @"", @"maxRetries": @0, @"retryStrategy": @"" }, @"jsonValidationOption": @"", @"nextTasks": @[ @{ } ], @"nextTasksExecutionPolicy": @"", @"parameters": @{ }, @"position": @{ }, @"successPolicy": @{ @"finalState": @"" }, @"synchronousCallFailurePolicy": @{ }, @"task": @"", @"taskExecutionStrategy": @"", @"taskId": @"", @"taskTemplate": @"" } ], @"taskConfigsInternal": @[ @{ @"alertConfigs": @[ @{ @"aggregationPeriod": @"", @"alertDisabled": @NO, @"alertName": @"", @"clientId": @"", @"durationThresholdMs": @"", @"errorEnumList": @{ @"enumStrings": @[ ], @"filterType": @"" }, @"metricType": @"", @"numAggregationPeriods": @0, @"onlyFinalAttempt": @NO, @"playbookUrl": @"", @"thresholdType": @"", @"thresholdValue": @{ @"absolute": @"", @"percentage": @0 }, @"warningEnumList": @{ } } ], @"createTime": @"", @"creatorEmail": @"", @"description": @"", @"disableStrictTypeValidation": @NO, @"errorCatcherId": @"", @"externalTaskType": @"", @"failurePolicy": @{ @"intervalInSeconds": @"", @"maxNumRetries": @0, @"retryStrategy": @"" }, @"incomingEdgeCount": @0, @"jsonValidationOption": @"", @"label": @"", @"lastModifiedTime": @"", @"nextTasks": @[ @{ @"combinedConditions": @[ @{ @"conditions": @[ @{ @"eventPropertyKey": @"", @"operator": @"", @"value": @{ } } ] } ], @"condition": @"", @"description": @"", @"label": @"", @"taskConfigId": @"", @"taskNumber": @"" } ], @"nextTasksExecutionPolicy": @"", @"parameters": @{ }, @"position": @{ @"x": @0, @"y": @0 }, @"precondition": @"", @"preconditionLabel": @"", @"rollbackStrategy": @{ @"parameters": @{ @"parameters": @[ @{ @"dataType": @"", @"key": @"", @"value": @{ } } ] }, @"rollbackTaskImplementationClassName": @"", @"taskNumbersToRollback": @[ ] }, @"successPolicy": @{ @"finalState": @"" }, @"synchronousCallFailurePolicy": @{ }, @"taskEntity": @{ @"disabledForVpcSc": @NO, @"metadata": @{ @"activeTaskName": @"", @"admins": @[ @{ @"googleGroupEmail": @"", @"userEmail": @"" } ], @"category": @"", @"codeSearchLink": @"", @"defaultJsonValidationOption": @"", @"defaultSpec": @"", @"description": @"", @"descriptiveName": @"", @"docMarkdown": @"", @"externalCategory": @"", @"externalCategorySequence": @0, @"externalDocHtml": @"", @"externalDocLink": @"", @"externalDocMarkdown": @"", @"g3DocLink": @"", @"iconLink": @"", @"isDeprecated": @NO, @"name": @"", @"standaloneExternalDocHtml": @"", @"status": @"", @"system": @"", @"tags": @[ ] }, @"paramSpecs": @{ @"parameters": @[ @{ @"className": @"", @"collectionElementClassName": @"", @"config": @{ @"descriptivePhrase": @"", @"helpText": @"", @"hideDefaultValue": @NO, @"inputDisplayOption": @"", @"isHidden": @NO, @"label": @"", @"parameterNameOption": @"", @"subSectionLabel": @"", @"uiPlaceholderText": @"" }, @"dataType": @"", @"defaultValue": @{ }, @"isDeprecated": @NO, @"isOutput": @NO, @"jsonSchema": @"", @"key": @"", @"protoDef": @{ @"fullName": @"", @"path": @"" }, @"required": @NO, @"validationRule": @{ @"doubleRange": @{ @"max": @"", @"min": @"" }, @"intRange": @{ @"max": @"", @"min": @"" }, @"stringRegex": @{ @"exclusive": @NO, @"regex": @"" } } } ] }, @"stats": @{ @"dimensions": @{ @"clientId": @"", @"enumFilterType": @"", @"errorEnumString": @"", @"retryAttempt": @"", @"taskName": @"", @"taskNumber": @"", @"triggerId": @"", @"warningEnumString": @"", @"workflowId": @"", @"workflowName": @"" }, @"durationInSeconds": @"", @"errorRate": @"", @"qps": @"", @"warningRate": @"" }, @"taskType": @"", @"uiConfig": @{ @"taskUiModuleConfigs": @[ @{ @"moduleId": @"" } ] } }, @"taskExecutionStrategy": @"", @"taskName": @"", @"taskNumber": @"", @"taskSpec": @"", @"taskTemplateName": @"", @"taskType": @"" } ], @"teardown": @{ @"teardownTaskConfigs": @[ @{ @"creatorEmail": @"", @"name": @"", @"nextTeardownTask": @{ @"name": @"" }, @"parameters": @{ @"parameters": @[ @{ @"key": @"", @"value": @{ @"booleanArray": @{ @"booleanValues": @[ ] }, @"booleanValue": @NO, @"doubleArray": @{ @"doubleValues": @[ ] }, @"doubleValue": @"", @"intArray": @{ @"intValues": @[ ] }, @"intValue": @"", @"protoArray": @{ @"protoValues": @[ @{ } ] }, @"protoValue": @{ }, @"serializedObjectValue": @{ @"objectValue": @"" }, @"stringArray": @{ @"stringValues": @[ ] }, @"stringValue": @"" } } ] }, @"properties": @{ @"properties": @[ @{ @"key": @"", @"value": @{ } } ] }, @"teardownTaskImplementationClassName": @"" } ] }, @"triggerConfigs": @[ @{ @"alertConfig": @[ @{ @"aggregationPeriod": @"", @"alertThreshold": @0, @"disableAlert": @NO, @"displayName": @"", @"durationThreshold": @"", @"metricType": @"", @"onlyFinalAttempt": @NO, @"thresholdType": @"", @"thresholdValue": @{ @"absolute": @"", @"percentage": @0 } } ], @"cloudSchedulerConfig": @{ @"cronTab": @"", @"errorMessage": @"", @"location": @"", @"serviceAccountEmail": @"" }, @"description": @"", @"errorCatcherId": @"", @"label": @"", @"nextTasksExecutionPolicy": @"", @"position": @{ }, @"properties": @{ }, @"startTasks": @[ @{ } ], @"triggerId": @"", @"triggerNumber": @"", @"triggerType": @"" } ], @"triggerConfigsInternal": @[ @{ @"alertConfig": @[ @{ @"aggregationPeriod": @"", @"alertDisabled": @NO, @"alertName": @"", @"clientId": @"", @"durationThresholdMs": @"", @"errorEnumList": @{ }, @"metricType": @"", @"numAggregationPeriods": @0, @"onlyFinalAttempt": @NO, @"playbookUrl": @"", @"thresholdType": @"", @"thresholdValue": @{ }, @"warningEnumList": @{ } } ], @"cloudSchedulerConfig": @{ @"cronTab": @"", @"errorMessage": @"", @"location": @"", @"serviceAccountEmail": @"" }, @"description": @"", @"enabledClients": @[ ], @"errorCatcherId": @"", @"label": @"", @"nextTasksExecutionPolicy": @"", @"pauseWorkflowExecutions": @NO, @"position": @{ }, @"properties": @{ }, @"startTasks": @[ @{ } ], @"triggerCriteria": @{ @"condition": @"", @"parameters": @{ }, @"triggerCriteriaTaskImplementationClassName": @"" }, @"triggerId": @"", @"triggerNumber": @"", @"triggerType": @"" } ], @"updateTime": @"", @"userLabel": @"" },
@"parameters": @{ },
@"testMode": @NO,
@"triggerId": @"" };
NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/v1/:name:test"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"POST"];
[request setAllHTTPHeaderFields:headers];
[request setHTTPBody:postData];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/v1/:name:test" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n \"clientId\": \"\",\n \"deadlineSecondsTime\": \"\",\n \"inputParameters\": {},\n \"integrationVersion\": {\n \"createTime\": \"\",\n \"databasePersistencePolicy\": \"\",\n \"description\": \"\",\n \"errorCatcherConfigs\": [\n {\n \"description\": \"\",\n \"errorCatcherId\": \"\",\n \"errorCatcherNumber\": \"\",\n \"label\": \"\",\n \"position\": {\n \"x\": 0,\n \"y\": 0\n },\n \"startErrorTasks\": [\n {\n \"condition\": \"\",\n \"description\": \"\",\n \"displayName\": \"\",\n \"taskConfigId\": \"\",\n \"taskId\": \"\"\n }\n ]\n }\n ],\n \"integrationParameters\": [\n {\n \"dataType\": \"\",\n \"defaultValue\": {\n \"booleanArray\": {\n \"booleanValues\": []\n },\n \"booleanValue\": false,\n \"doubleArray\": {\n \"doubleValues\": []\n },\n \"doubleValue\": \"\",\n \"intArray\": {\n \"intValues\": []\n },\n \"intValue\": \"\",\n \"jsonValue\": \"\",\n \"stringArray\": {\n \"stringValues\": []\n },\n \"stringValue\": \"\"\n },\n \"displayName\": \"\",\n \"inputOutputType\": \"\",\n \"isTransient\": false,\n \"jsonSchema\": \"\",\n \"key\": \"\",\n \"producer\": \"\",\n \"searchable\": false\n }\n ],\n \"integrationParametersInternal\": {\n \"parameters\": [\n {\n \"attributes\": {\n \"dataType\": \"\",\n \"defaultValue\": {\n \"booleanValue\": false,\n \"doubleArray\": {\n \"values\": []\n },\n \"doubleValue\": \"\",\n \"intArray\": {\n \"values\": []\n },\n \"intValue\": \"\",\n \"protoValue\": {},\n \"stringArray\": {\n \"values\": []\n },\n \"stringValue\": \"\"\n },\n \"isRequired\": false,\n \"isSearchable\": false,\n \"logSettings\": {\n \"logFieldName\": \"\",\n \"sanitizeOptions\": {\n \"isAlreadySanitized\": false,\n \"logType\": [],\n \"privacy\": \"\",\n \"sanitizeType\": \"\"\n },\n \"seedPeriod\": \"\",\n \"seedScope\": \"\",\n \"shorteningLimits\": {\n \"logAction\": \"\",\n \"logType\": [],\n \"maxArraySize\": 0,\n \"maxStringLength\": 0,\n \"shortenerType\": \"\"\n }\n },\n \"searchable\": \"\",\n \"taskVisibility\": []\n },\n \"children\": [],\n \"dataType\": \"\",\n \"defaultValue\": {\n \"booleanArray\": {\n \"booleanValues\": []\n },\n \"booleanValue\": false,\n \"doubleArray\": {\n \"doubleValues\": []\n },\n \"doubleValue\": \"\",\n \"intArray\": {\n \"intValues\": []\n },\n \"intValue\": \"\",\n \"jsonValue\": \"\",\n \"protoArray\": {\n \"protoValues\": [\n {}\n ]\n },\n \"protoValue\": {},\n \"serializedObjectValue\": {\n \"objectValue\": \"\"\n },\n \"stringArray\": {\n \"stringValues\": []\n },\n \"stringValue\": \"\"\n },\n \"inOutType\": \"\",\n \"isTransient\": false,\n \"jsonSchema\": \"\",\n \"key\": \"\",\n \"name\": \"\",\n \"producedBy\": {\n \"elementIdentifier\": \"\",\n \"elementType\": \"\"\n },\n \"producer\": \"\",\n \"protoDefName\": \"\",\n \"protoDefPath\": \"\"\n }\n ]\n },\n \"lastModifierEmail\": \"\",\n \"lockHolder\": \"\",\n \"name\": \"\",\n \"origin\": \"\",\n \"parentTemplateId\": \"\",\n \"runAsServiceAccount\": \"\",\n \"snapshotNumber\": \"\",\n \"state\": \"\",\n \"status\": \"\",\n \"taskConfigs\": [\n {\n \"description\": \"\",\n \"displayName\": \"\",\n \"errorCatcherId\": \"\",\n \"externalTaskType\": \"\",\n \"failurePolicy\": {\n \"intervalTime\": \"\",\n \"maxRetries\": 0,\n \"retryStrategy\": \"\"\n },\n \"jsonValidationOption\": \"\",\n \"nextTasks\": [\n {}\n ],\n \"nextTasksExecutionPolicy\": \"\",\n \"parameters\": {},\n \"position\": {},\n \"successPolicy\": {\n \"finalState\": \"\"\n },\n \"synchronousCallFailurePolicy\": {},\n \"task\": \"\",\n \"taskExecutionStrategy\": \"\",\n \"taskId\": \"\",\n \"taskTemplate\": \"\"\n }\n ],\n \"taskConfigsInternal\": [\n {\n \"alertConfigs\": [\n {\n \"aggregationPeriod\": \"\",\n \"alertDisabled\": false,\n \"alertName\": \"\",\n \"clientId\": \"\",\n \"durationThresholdMs\": \"\",\n \"errorEnumList\": {\n \"enumStrings\": [],\n \"filterType\": \"\"\n },\n \"metricType\": \"\",\n \"numAggregationPeriods\": 0,\n \"onlyFinalAttempt\": false,\n \"playbookUrl\": \"\",\n \"thresholdType\": \"\",\n \"thresholdValue\": {\n \"absolute\": \"\",\n \"percentage\": 0\n },\n \"warningEnumList\": {}\n }\n ],\n \"createTime\": \"\",\n \"creatorEmail\": \"\",\n \"description\": \"\",\n \"disableStrictTypeValidation\": false,\n \"errorCatcherId\": \"\",\n \"externalTaskType\": \"\",\n \"failurePolicy\": {\n \"intervalInSeconds\": \"\",\n \"maxNumRetries\": 0,\n \"retryStrategy\": \"\"\n },\n \"incomingEdgeCount\": 0,\n \"jsonValidationOption\": \"\",\n \"label\": \"\",\n \"lastModifiedTime\": \"\",\n \"nextTasks\": [\n {\n \"combinedConditions\": [\n {\n \"conditions\": [\n {\n \"eventPropertyKey\": \"\",\n \"operator\": \"\",\n \"value\": {}\n }\n ]\n }\n ],\n \"condition\": \"\",\n \"description\": \"\",\n \"label\": \"\",\n \"taskConfigId\": \"\",\n \"taskNumber\": \"\"\n }\n ],\n \"nextTasksExecutionPolicy\": \"\",\n \"parameters\": {},\n \"position\": {\n \"x\": 0,\n \"y\": 0\n },\n \"precondition\": \"\",\n \"preconditionLabel\": \"\",\n \"rollbackStrategy\": {\n \"parameters\": {\n \"parameters\": [\n {\n \"dataType\": \"\",\n \"key\": \"\",\n \"value\": {}\n }\n ]\n },\n \"rollbackTaskImplementationClassName\": \"\",\n \"taskNumbersToRollback\": []\n },\n \"successPolicy\": {\n \"finalState\": \"\"\n },\n \"synchronousCallFailurePolicy\": {},\n \"taskEntity\": {\n \"disabledForVpcSc\": false,\n \"metadata\": {\n \"activeTaskName\": \"\",\n \"admins\": [\n {\n \"googleGroupEmail\": \"\",\n \"userEmail\": \"\"\n }\n ],\n \"category\": \"\",\n \"codeSearchLink\": \"\",\n \"defaultJsonValidationOption\": \"\",\n \"defaultSpec\": \"\",\n \"description\": \"\",\n \"descriptiveName\": \"\",\n \"docMarkdown\": \"\",\n \"externalCategory\": \"\",\n \"externalCategorySequence\": 0,\n \"externalDocHtml\": \"\",\n \"externalDocLink\": \"\",\n \"externalDocMarkdown\": \"\",\n \"g3DocLink\": \"\",\n \"iconLink\": \"\",\n \"isDeprecated\": false,\n \"name\": \"\",\n \"standaloneExternalDocHtml\": \"\",\n \"status\": \"\",\n \"system\": \"\",\n \"tags\": []\n },\n \"paramSpecs\": {\n \"parameters\": [\n {\n \"className\": \"\",\n \"collectionElementClassName\": \"\",\n \"config\": {\n \"descriptivePhrase\": \"\",\n \"helpText\": \"\",\n \"hideDefaultValue\": false,\n \"inputDisplayOption\": \"\",\n \"isHidden\": false,\n \"label\": \"\",\n \"parameterNameOption\": \"\",\n \"subSectionLabel\": \"\",\n \"uiPlaceholderText\": \"\"\n },\n \"dataType\": \"\",\n \"defaultValue\": {},\n \"isDeprecated\": false,\n \"isOutput\": false,\n \"jsonSchema\": \"\",\n \"key\": \"\",\n \"protoDef\": {\n \"fullName\": \"\",\n \"path\": \"\"\n },\n \"required\": false,\n \"validationRule\": {\n \"doubleRange\": {\n \"max\": \"\",\n \"min\": \"\"\n },\n \"intRange\": {\n \"max\": \"\",\n \"min\": \"\"\n },\n \"stringRegex\": {\n \"exclusive\": false,\n \"regex\": \"\"\n }\n }\n }\n ]\n },\n \"stats\": {\n \"dimensions\": {\n \"clientId\": \"\",\n \"enumFilterType\": \"\",\n \"errorEnumString\": \"\",\n \"retryAttempt\": \"\",\n \"taskName\": \"\",\n \"taskNumber\": \"\",\n \"triggerId\": \"\",\n \"warningEnumString\": \"\",\n \"workflowId\": \"\",\n \"workflowName\": \"\"\n },\n \"durationInSeconds\": \"\",\n \"errorRate\": \"\",\n \"qps\": \"\",\n \"warningRate\": \"\"\n },\n \"taskType\": \"\",\n \"uiConfig\": {\n \"taskUiModuleConfigs\": [\n {\n \"moduleId\": \"\"\n }\n ]\n }\n },\n \"taskExecutionStrategy\": \"\",\n \"taskName\": \"\",\n \"taskNumber\": \"\",\n \"taskSpec\": \"\",\n \"taskTemplateName\": \"\",\n \"taskType\": \"\"\n }\n ],\n \"teardown\": {\n \"teardownTaskConfigs\": [\n {\n \"creatorEmail\": \"\",\n \"name\": \"\",\n \"nextTeardownTask\": {\n \"name\": \"\"\n },\n \"parameters\": {\n \"parameters\": [\n {\n \"key\": \"\",\n \"value\": {\n \"booleanArray\": {\n \"booleanValues\": []\n },\n \"booleanValue\": false,\n \"doubleArray\": {\n \"doubleValues\": []\n },\n \"doubleValue\": \"\",\n \"intArray\": {\n \"intValues\": []\n },\n \"intValue\": \"\",\n \"protoArray\": {\n \"protoValues\": [\n {}\n ]\n },\n \"protoValue\": {},\n \"serializedObjectValue\": {\n \"objectValue\": \"\"\n },\n \"stringArray\": {\n \"stringValues\": []\n },\n \"stringValue\": \"\"\n }\n }\n ]\n },\n \"properties\": {\n \"properties\": [\n {\n \"key\": \"\",\n \"value\": {}\n }\n ]\n },\n \"teardownTaskImplementationClassName\": \"\"\n }\n ]\n },\n \"triggerConfigs\": [\n {\n \"alertConfig\": [\n {\n \"aggregationPeriod\": \"\",\n \"alertThreshold\": 0,\n \"disableAlert\": false,\n \"displayName\": \"\",\n \"durationThreshold\": \"\",\n \"metricType\": \"\",\n \"onlyFinalAttempt\": false,\n \"thresholdType\": \"\",\n \"thresholdValue\": {\n \"absolute\": \"\",\n \"percentage\": 0\n }\n }\n ],\n \"cloudSchedulerConfig\": {\n \"cronTab\": \"\",\n \"errorMessage\": \"\",\n \"location\": \"\",\n \"serviceAccountEmail\": \"\"\n },\n \"description\": \"\",\n \"errorCatcherId\": \"\",\n \"label\": \"\",\n \"nextTasksExecutionPolicy\": \"\",\n \"position\": {},\n \"properties\": {},\n \"startTasks\": [\n {}\n ],\n \"triggerId\": \"\",\n \"triggerNumber\": \"\",\n \"triggerType\": \"\"\n }\n ],\n \"triggerConfigsInternal\": [\n {\n \"alertConfig\": [\n {\n \"aggregationPeriod\": \"\",\n \"alertDisabled\": false,\n \"alertName\": \"\",\n \"clientId\": \"\",\n \"durationThresholdMs\": \"\",\n \"errorEnumList\": {},\n \"metricType\": \"\",\n \"numAggregationPeriods\": 0,\n \"onlyFinalAttempt\": false,\n \"playbookUrl\": \"\",\n \"thresholdType\": \"\",\n \"thresholdValue\": {},\n \"warningEnumList\": {}\n }\n ],\n \"cloudSchedulerConfig\": {\n \"cronTab\": \"\",\n \"errorMessage\": \"\",\n \"location\": \"\",\n \"serviceAccountEmail\": \"\"\n },\n \"description\": \"\",\n \"enabledClients\": [],\n \"errorCatcherId\": \"\",\n \"label\": \"\",\n \"nextTasksExecutionPolicy\": \"\",\n \"pauseWorkflowExecutions\": false,\n \"position\": {},\n \"properties\": {},\n \"startTasks\": [\n {}\n ],\n \"triggerCriteria\": {\n \"condition\": \"\",\n \"parameters\": {},\n \"triggerCriteriaTaskImplementationClassName\": \"\"\n },\n \"triggerId\": \"\",\n \"triggerNumber\": \"\",\n \"triggerType\": \"\"\n }\n ],\n \"updateTime\": \"\",\n \"userLabel\": \"\"\n },\n \"parameters\": {},\n \"testMode\": false,\n \"triggerId\": \"\"\n}" in
Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/v1/:name:test",
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([
'clientId' => '',
'deadlineSecondsTime' => '',
'inputParameters' => [
],
'integrationVersion' => [
'createTime' => '',
'databasePersistencePolicy' => '',
'description' => '',
'errorCatcherConfigs' => [
[
'description' => '',
'errorCatcherId' => '',
'errorCatcherNumber' => '',
'label' => '',
'position' => [
'x' => 0,
'y' => 0
],
'startErrorTasks' => [
[
'condition' => '',
'description' => '',
'displayName' => '',
'taskConfigId' => '',
'taskId' => ''
]
]
]
],
'integrationParameters' => [
[
'dataType' => '',
'defaultValue' => [
'booleanArray' => [
'booleanValues' => [
]
],
'booleanValue' => null,
'doubleArray' => [
'doubleValues' => [
]
],
'doubleValue' => '',
'intArray' => [
'intValues' => [
]
],
'intValue' => '',
'jsonValue' => '',
'stringArray' => [
'stringValues' => [
]
],
'stringValue' => ''
],
'displayName' => '',
'inputOutputType' => '',
'isTransient' => null,
'jsonSchema' => '',
'key' => '',
'producer' => '',
'searchable' => null
]
],
'integrationParametersInternal' => [
'parameters' => [
[
'attributes' => [
'dataType' => '',
'defaultValue' => [
'booleanValue' => null,
'doubleArray' => [
'values' => [
]
],
'doubleValue' => '',
'intArray' => [
'values' => [
]
],
'intValue' => '',
'protoValue' => [
],
'stringArray' => [
'values' => [
]
],
'stringValue' => ''
],
'isRequired' => null,
'isSearchable' => null,
'logSettings' => [
'logFieldName' => '',
'sanitizeOptions' => [
'isAlreadySanitized' => null,
'logType' => [
],
'privacy' => '',
'sanitizeType' => ''
],
'seedPeriod' => '',
'seedScope' => '',
'shorteningLimits' => [
'logAction' => '',
'logType' => [
],
'maxArraySize' => 0,
'maxStringLength' => 0,
'shortenerType' => ''
]
],
'searchable' => '',
'taskVisibility' => [
]
],
'children' => [
],
'dataType' => '',
'defaultValue' => [
'booleanArray' => [
'booleanValues' => [
]
],
'booleanValue' => null,
'doubleArray' => [
'doubleValues' => [
]
],
'doubleValue' => '',
'intArray' => [
'intValues' => [
]
],
'intValue' => '',
'jsonValue' => '',
'protoArray' => [
'protoValues' => [
[
]
]
],
'protoValue' => [
],
'serializedObjectValue' => [
'objectValue' => ''
],
'stringArray' => [
'stringValues' => [
]
],
'stringValue' => ''
],
'inOutType' => '',
'isTransient' => null,
'jsonSchema' => '',
'key' => '',
'name' => '',
'producedBy' => [
'elementIdentifier' => '',
'elementType' => ''
],
'producer' => '',
'protoDefName' => '',
'protoDefPath' => ''
]
]
],
'lastModifierEmail' => '',
'lockHolder' => '',
'name' => '',
'origin' => '',
'parentTemplateId' => '',
'runAsServiceAccount' => '',
'snapshotNumber' => '',
'state' => '',
'status' => '',
'taskConfigs' => [
[
'description' => '',
'displayName' => '',
'errorCatcherId' => '',
'externalTaskType' => '',
'failurePolicy' => [
'intervalTime' => '',
'maxRetries' => 0,
'retryStrategy' => ''
],
'jsonValidationOption' => '',
'nextTasks' => [
[
]
],
'nextTasksExecutionPolicy' => '',
'parameters' => [
],
'position' => [
],
'successPolicy' => [
'finalState' => ''
],
'synchronousCallFailurePolicy' => [
],
'task' => '',
'taskExecutionStrategy' => '',
'taskId' => '',
'taskTemplate' => ''
]
],
'taskConfigsInternal' => [
[
'alertConfigs' => [
[
'aggregationPeriod' => '',
'alertDisabled' => null,
'alertName' => '',
'clientId' => '',
'durationThresholdMs' => '',
'errorEnumList' => [
'enumStrings' => [
],
'filterType' => ''
],
'metricType' => '',
'numAggregationPeriods' => 0,
'onlyFinalAttempt' => null,
'playbookUrl' => '',
'thresholdType' => '',
'thresholdValue' => [
'absolute' => '',
'percentage' => 0
],
'warningEnumList' => [
]
]
],
'createTime' => '',
'creatorEmail' => '',
'description' => '',
'disableStrictTypeValidation' => null,
'errorCatcherId' => '',
'externalTaskType' => '',
'failurePolicy' => [
'intervalInSeconds' => '',
'maxNumRetries' => 0,
'retryStrategy' => ''
],
'incomingEdgeCount' => 0,
'jsonValidationOption' => '',
'label' => '',
'lastModifiedTime' => '',
'nextTasks' => [
[
'combinedConditions' => [
[
'conditions' => [
[
'eventPropertyKey' => '',
'operator' => '',
'value' => [
]
]
]
]
],
'condition' => '',
'description' => '',
'label' => '',
'taskConfigId' => '',
'taskNumber' => ''
]
],
'nextTasksExecutionPolicy' => '',
'parameters' => [
],
'position' => [
'x' => 0,
'y' => 0
],
'precondition' => '',
'preconditionLabel' => '',
'rollbackStrategy' => [
'parameters' => [
'parameters' => [
[
'dataType' => '',
'key' => '',
'value' => [
]
]
]
],
'rollbackTaskImplementationClassName' => '',
'taskNumbersToRollback' => [
]
],
'successPolicy' => [
'finalState' => ''
],
'synchronousCallFailurePolicy' => [
],
'taskEntity' => [
'disabledForVpcSc' => null,
'metadata' => [
'activeTaskName' => '',
'admins' => [
[
'googleGroupEmail' => '',
'userEmail' => ''
]
],
'category' => '',
'codeSearchLink' => '',
'defaultJsonValidationOption' => '',
'defaultSpec' => '',
'description' => '',
'descriptiveName' => '',
'docMarkdown' => '',
'externalCategory' => '',
'externalCategorySequence' => 0,
'externalDocHtml' => '',
'externalDocLink' => '',
'externalDocMarkdown' => '',
'g3DocLink' => '',
'iconLink' => '',
'isDeprecated' => null,
'name' => '',
'standaloneExternalDocHtml' => '',
'status' => '',
'system' => '',
'tags' => [
]
],
'paramSpecs' => [
'parameters' => [
[
'className' => '',
'collectionElementClassName' => '',
'config' => [
'descriptivePhrase' => '',
'helpText' => '',
'hideDefaultValue' => null,
'inputDisplayOption' => '',
'isHidden' => null,
'label' => '',
'parameterNameOption' => '',
'subSectionLabel' => '',
'uiPlaceholderText' => ''
],
'dataType' => '',
'defaultValue' => [
],
'isDeprecated' => null,
'isOutput' => null,
'jsonSchema' => '',
'key' => '',
'protoDef' => [
'fullName' => '',
'path' => ''
],
'required' => null,
'validationRule' => [
'doubleRange' => [
'max' => '',
'min' => ''
],
'intRange' => [
'max' => '',
'min' => ''
],
'stringRegex' => [
'exclusive' => null,
'regex' => ''
]
]
]
]
],
'stats' => [
'dimensions' => [
'clientId' => '',
'enumFilterType' => '',
'errorEnumString' => '',
'retryAttempt' => '',
'taskName' => '',
'taskNumber' => '',
'triggerId' => '',
'warningEnumString' => '',
'workflowId' => '',
'workflowName' => ''
],
'durationInSeconds' => '',
'errorRate' => '',
'qps' => '',
'warningRate' => ''
],
'taskType' => '',
'uiConfig' => [
'taskUiModuleConfigs' => [
[
'moduleId' => ''
]
]
]
],
'taskExecutionStrategy' => '',
'taskName' => '',
'taskNumber' => '',
'taskSpec' => '',
'taskTemplateName' => '',
'taskType' => ''
]
],
'teardown' => [
'teardownTaskConfigs' => [
[
'creatorEmail' => '',
'name' => '',
'nextTeardownTask' => [
'name' => ''
],
'parameters' => [
'parameters' => [
[
'key' => '',
'value' => [
'booleanArray' => [
'booleanValues' => [
]
],
'booleanValue' => null,
'doubleArray' => [
'doubleValues' => [
]
],
'doubleValue' => '',
'intArray' => [
'intValues' => [
]
],
'intValue' => '',
'protoArray' => [
'protoValues' => [
[
]
]
],
'protoValue' => [
],
'serializedObjectValue' => [
'objectValue' => ''
],
'stringArray' => [
'stringValues' => [
]
],
'stringValue' => ''
]
]
]
],
'properties' => [
'properties' => [
[
'key' => '',
'value' => [
]
]
]
],
'teardownTaskImplementationClassName' => ''
]
]
],
'triggerConfigs' => [
[
'alertConfig' => [
[
'aggregationPeriod' => '',
'alertThreshold' => 0,
'disableAlert' => null,
'displayName' => '',
'durationThreshold' => '',
'metricType' => '',
'onlyFinalAttempt' => null,
'thresholdType' => '',
'thresholdValue' => [
'absolute' => '',
'percentage' => 0
]
]
],
'cloudSchedulerConfig' => [
'cronTab' => '',
'errorMessage' => '',
'location' => '',
'serviceAccountEmail' => ''
],
'description' => '',
'errorCatcherId' => '',
'label' => '',
'nextTasksExecutionPolicy' => '',
'position' => [
],
'properties' => [
],
'startTasks' => [
[
]
],
'triggerId' => '',
'triggerNumber' => '',
'triggerType' => ''
]
],
'triggerConfigsInternal' => [
[
'alertConfig' => [
[
'aggregationPeriod' => '',
'alertDisabled' => null,
'alertName' => '',
'clientId' => '',
'durationThresholdMs' => '',
'errorEnumList' => [
],
'metricType' => '',
'numAggregationPeriods' => 0,
'onlyFinalAttempt' => null,
'playbookUrl' => '',
'thresholdType' => '',
'thresholdValue' => [
],
'warningEnumList' => [
]
]
],
'cloudSchedulerConfig' => [
'cronTab' => '',
'errorMessage' => '',
'location' => '',
'serviceAccountEmail' => ''
],
'description' => '',
'enabledClients' => [
],
'errorCatcherId' => '',
'label' => '',
'nextTasksExecutionPolicy' => '',
'pauseWorkflowExecutions' => null,
'position' => [
],
'properties' => [
],
'startTasks' => [
[
]
],
'triggerCriteria' => [
'condition' => '',
'parameters' => [
],
'triggerCriteriaTaskImplementationClassName' => ''
],
'triggerId' => '',
'triggerNumber' => '',
'triggerType' => ''
]
],
'updateTime' => '',
'userLabel' => ''
],
'parameters' => [
],
'testMode' => null,
'triggerId' => ''
]),
CURLOPT_HTTPHEADER => [
"content-type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('POST', '{{baseUrl}}/v1/:name:test', [
'body' => '{
"clientId": "",
"deadlineSecondsTime": "",
"inputParameters": {},
"integrationVersion": {
"createTime": "",
"databasePersistencePolicy": "",
"description": "",
"errorCatcherConfigs": [
{
"description": "",
"errorCatcherId": "",
"errorCatcherNumber": "",
"label": "",
"position": {
"x": 0,
"y": 0
},
"startErrorTasks": [
{
"condition": "",
"description": "",
"displayName": "",
"taskConfigId": "",
"taskId": ""
}
]
}
],
"integrationParameters": [
{
"dataType": "",
"defaultValue": {
"booleanArray": {
"booleanValues": []
},
"booleanValue": false,
"doubleArray": {
"doubleValues": []
},
"doubleValue": "",
"intArray": {
"intValues": []
},
"intValue": "",
"jsonValue": "",
"stringArray": {
"stringValues": []
},
"stringValue": ""
},
"displayName": "",
"inputOutputType": "",
"isTransient": false,
"jsonSchema": "",
"key": "",
"producer": "",
"searchable": false
}
],
"integrationParametersInternal": {
"parameters": [
{
"attributes": {
"dataType": "",
"defaultValue": {
"booleanValue": false,
"doubleArray": {
"values": []
},
"doubleValue": "",
"intArray": {
"values": []
},
"intValue": "",
"protoValue": {},
"stringArray": {
"values": []
},
"stringValue": ""
},
"isRequired": false,
"isSearchable": false,
"logSettings": {
"logFieldName": "",
"sanitizeOptions": {
"isAlreadySanitized": false,
"logType": [],
"privacy": "",
"sanitizeType": ""
},
"seedPeriod": "",
"seedScope": "",
"shorteningLimits": {
"logAction": "",
"logType": [],
"maxArraySize": 0,
"maxStringLength": 0,
"shortenerType": ""
}
},
"searchable": "",
"taskVisibility": []
},
"children": [],
"dataType": "",
"defaultValue": {
"booleanArray": {
"booleanValues": []
},
"booleanValue": false,
"doubleArray": {
"doubleValues": []
},
"doubleValue": "",
"intArray": {
"intValues": []
},
"intValue": "",
"jsonValue": "",
"protoArray": {
"protoValues": [
{}
]
},
"protoValue": {},
"serializedObjectValue": {
"objectValue": ""
},
"stringArray": {
"stringValues": []
},
"stringValue": ""
},
"inOutType": "",
"isTransient": false,
"jsonSchema": "",
"key": "",
"name": "",
"producedBy": {
"elementIdentifier": "",
"elementType": ""
},
"producer": "",
"protoDefName": "",
"protoDefPath": ""
}
]
},
"lastModifierEmail": "",
"lockHolder": "",
"name": "",
"origin": "",
"parentTemplateId": "",
"runAsServiceAccount": "",
"snapshotNumber": "",
"state": "",
"status": "",
"taskConfigs": [
{
"description": "",
"displayName": "",
"errorCatcherId": "",
"externalTaskType": "",
"failurePolicy": {
"intervalTime": "",
"maxRetries": 0,
"retryStrategy": ""
},
"jsonValidationOption": "",
"nextTasks": [
{}
],
"nextTasksExecutionPolicy": "",
"parameters": {},
"position": {},
"successPolicy": {
"finalState": ""
},
"synchronousCallFailurePolicy": {},
"task": "",
"taskExecutionStrategy": "",
"taskId": "",
"taskTemplate": ""
}
],
"taskConfigsInternal": [
{
"alertConfigs": [
{
"aggregationPeriod": "",
"alertDisabled": false,
"alertName": "",
"clientId": "",
"durationThresholdMs": "",
"errorEnumList": {
"enumStrings": [],
"filterType": ""
},
"metricType": "",
"numAggregationPeriods": 0,
"onlyFinalAttempt": false,
"playbookUrl": "",
"thresholdType": "",
"thresholdValue": {
"absolute": "",
"percentage": 0
},
"warningEnumList": {}
}
],
"createTime": "",
"creatorEmail": "",
"description": "",
"disableStrictTypeValidation": false,
"errorCatcherId": "",
"externalTaskType": "",
"failurePolicy": {
"intervalInSeconds": "",
"maxNumRetries": 0,
"retryStrategy": ""
},
"incomingEdgeCount": 0,
"jsonValidationOption": "",
"label": "",
"lastModifiedTime": "",
"nextTasks": [
{
"combinedConditions": [
{
"conditions": [
{
"eventPropertyKey": "",
"operator": "",
"value": {}
}
]
}
],
"condition": "",
"description": "",
"label": "",
"taskConfigId": "",
"taskNumber": ""
}
],
"nextTasksExecutionPolicy": "",
"parameters": {},
"position": {
"x": 0,
"y": 0
},
"precondition": "",
"preconditionLabel": "",
"rollbackStrategy": {
"parameters": {
"parameters": [
{
"dataType": "",
"key": "",
"value": {}
}
]
},
"rollbackTaskImplementationClassName": "",
"taskNumbersToRollback": []
},
"successPolicy": {
"finalState": ""
},
"synchronousCallFailurePolicy": {},
"taskEntity": {
"disabledForVpcSc": false,
"metadata": {
"activeTaskName": "",
"admins": [
{
"googleGroupEmail": "",
"userEmail": ""
}
],
"category": "",
"codeSearchLink": "",
"defaultJsonValidationOption": "",
"defaultSpec": "",
"description": "",
"descriptiveName": "",
"docMarkdown": "",
"externalCategory": "",
"externalCategorySequence": 0,
"externalDocHtml": "",
"externalDocLink": "",
"externalDocMarkdown": "",
"g3DocLink": "",
"iconLink": "",
"isDeprecated": false,
"name": "",
"standaloneExternalDocHtml": "",
"status": "",
"system": "",
"tags": []
},
"paramSpecs": {
"parameters": [
{
"className": "",
"collectionElementClassName": "",
"config": {
"descriptivePhrase": "",
"helpText": "",
"hideDefaultValue": false,
"inputDisplayOption": "",
"isHidden": false,
"label": "",
"parameterNameOption": "",
"subSectionLabel": "",
"uiPlaceholderText": ""
},
"dataType": "",
"defaultValue": {},
"isDeprecated": false,
"isOutput": false,
"jsonSchema": "",
"key": "",
"protoDef": {
"fullName": "",
"path": ""
},
"required": false,
"validationRule": {
"doubleRange": {
"max": "",
"min": ""
},
"intRange": {
"max": "",
"min": ""
},
"stringRegex": {
"exclusive": false,
"regex": ""
}
}
}
]
},
"stats": {
"dimensions": {
"clientId": "",
"enumFilterType": "",
"errorEnumString": "",
"retryAttempt": "",
"taskName": "",
"taskNumber": "",
"triggerId": "",
"warningEnumString": "",
"workflowId": "",
"workflowName": ""
},
"durationInSeconds": "",
"errorRate": "",
"qps": "",
"warningRate": ""
},
"taskType": "",
"uiConfig": {
"taskUiModuleConfigs": [
{
"moduleId": ""
}
]
}
},
"taskExecutionStrategy": "",
"taskName": "",
"taskNumber": "",
"taskSpec": "",
"taskTemplateName": "",
"taskType": ""
}
],
"teardown": {
"teardownTaskConfigs": [
{
"creatorEmail": "",
"name": "",
"nextTeardownTask": {
"name": ""
},
"parameters": {
"parameters": [
{
"key": "",
"value": {
"booleanArray": {
"booleanValues": []
},
"booleanValue": false,
"doubleArray": {
"doubleValues": []
},
"doubleValue": "",
"intArray": {
"intValues": []
},
"intValue": "",
"protoArray": {
"protoValues": [
{}
]
},
"protoValue": {},
"serializedObjectValue": {
"objectValue": ""
},
"stringArray": {
"stringValues": []
},
"stringValue": ""
}
}
]
},
"properties": {
"properties": [
{
"key": "",
"value": {}
}
]
},
"teardownTaskImplementationClassName": ""
}
]
},
"triggerConfigs": [
{
"alertConfig": [
{
"aggregationPeriod": "",
"alertThreshold": 0,
"disableAlert": false,
"displayName": "",
"durationThreshold": "",
"metricType": "",
"onlyFinalAttempt": false,
"thresholdType": "",
"thresholdValue": {
"absolute": "",
"percentage": 0
}
}
],
"cloudSchedulerConfig": {
"cronTab": "",
"errorMessage": "",
"location": "",
"serviceAccountEmail": ""
},
"description": "",
"errorCatcherId": "",
"label": "",
"nextTasksExecutionPolicy": "",
"position": {},
"properties": {},
"startTasks": [
{}
],
"triggerId": "",
"triggerNumber": "",
"triggerType": ""
}
],
"triggerConfigsInternal": [
{
"alertConfig": [
{
"aggregationPeriod": "",
"alertDisabled": false,
"alertName": "",
"clientId": "",
"durationThresholdMs": "",
"errorEnumList": {},
"metricType": "",
"numAggregationPeriods": 0,
"onlyFinalAttempt": false,
"playbookUrl": "",
"thresholdType": "",
"thresholdValue": {},
"warningEnumList": {}
}
],
"cloudSchedulerConfig": {
"cronTab": "",
"errorMessage": "",
"location": "",
"serviceAccountEmail": ""
},
"description": "",
"enabledClients": [],
"errorCatcherId": "",
"label": "",
"nextTasksExecutionPolicy": "",
"pauseWorkflowExecutions": false,
"position": {},
"properties": {},
"startTasks": [
{}
],
"triggerCriteria": {
"condition": "",
"parameters": {},
"triggerCriteriaTaskImplementationClassName": ""
},
"triggerId": "",
"triggerNumber": "",
"triggerType": ""
}
],
"updateTime": "",
"userLabel": ""
},
"parameters": {},
"testMode": false,
"triggerId": ""
}',
'headers' => [
'content-type' => 'application/json',
],
]);
echo $response->getBody();
setUrl('{{baseUrl}}/v1/:name:test');
$request->setMethod(HTTP_METH_POST);
$request->setHeaders([
'content-type' => 'application/json'
]);
$request->setContentType('application/json');
$request->setBody(json_encode([
'clientId' => '',
'deadlineSecondsTime' => '',
'inputParameters' => [
],
'integrationVersion' => [
'createTime' => '',
'databasePersistencePolicy' => '',
'description' => '',
'errorCatcherConfigs' => [
[
'description' => '',
'errorCatcherId' => '',
'errorCatcherNumber' => '',
'label' => '',
'position' => [
'x' => 0,
'y' => 0
],
'startErrorTasks' => [
[
'condition' => '',
'description' => '',
'displayName' => '',
'taskConfigId' => '',
'taskId' => ''
]
]
]
],
'integrationParameters' => [
[
'dataType' => '',
'defaultValue' => [
'booleanArray' => [
'booleanValues' => [
]
],
'booleanValue' => null,
'doubleArray' => [
'doubleValues' => [
]
],
'doubleValue' => '',
'intArray' => [
'intValues' => [
]
],
'intValue' => '',
'jsonValue' => '',
'stringArray' => [
'stringValues' => [
]
],
'stringValue' => ''
],
'displayName' => '',
'inputOutputType' => '',
'isTransient' => null,
'jsonSchema' => '',
'key' => '',
'producer' => '',
'searchable' => null
]
],
'integrationParametersInternal' => [
'parameters' => [
[
'attributes' => [
'dataType' => '',
'defaultValue' => [
'booleanValue' => null,
'doubleArray' => [
'values' => [
]
],
'doubleValue' => '',
'intArray' => [
'values' => [
]
],
'intValue' => '',
'protoValue' => [
],
'stringArray' => [
'values' => [
]
],
'stringValue' => ''
],
'isRequired' => null,
'isSearchable' => null,
'logSettings' => [
'logFieldName' => '',
'sanitizeOptions' => [
'isAlreadySanitized' => null,
'logType' => [
],
'privacy' => '',
'sanitizeType' => ''
],
'seedPeriod' => '',
'seedScope' => '',
'shorteningLimits' => [
'logAction' => '',
'logType' => [
],
'maxArraySize' => 0,
'maxStringLength' => 0,
'shortenerType' => ''
]
],
'searchable' => '',
'taskVisibility' => [
]
],
'children' => [
],
'dataType' => '',
'defaultValue' => [
'booleanArray' => [
'booleanValues' => [
]
],
'booleanValue' => null,
'doubleArray' => [
'doubleValues' => [
]
],
'doubleValue' => '',
'intArray' => [
'intValues' => [
]
],
'intValue' => '',
'jsonValue' => '',
'protoArray' => [
'protoValues' => [
[
]
]
],
'protoValue' => [
],
'serializedObjectValue' => [
'objectValue' => ''
],
'stringArray' => [
'stringValues' => [
]
],
'stringValue' => ''
],
'inOutType' => '',
'isTransient' => null,
'jsonSchema' => '',
'key' => '',
'name' => '',
'producedBy' => [
'elementIdentifier' => '',
'elementType' => ''
],
'producer' => '',
'protoDefName' => '',
'protoDefPath' => ''
]
]
],
'lastModifierEmail' => '',
'lockHolder' => '',
'name' => '',
'origin' => '',
'parentTemplateId' => '',
'runAsServiceAccount' => '',
'snapshotNumber' => '',
'state' => '',
'status' => '',
'taskConfigs' => [
[
'description' => '',
'displayName' => '',
'errorCatcherId' => '',
'externalTaskType' => '',
'failurePolicy' => [
'intervalTime' => '',
'maxRetries' => 0,
'retryStrategy' => ''
],
'jsonValidationOption' => '',
'nextTasks' => [
[
]
],
'nextTasksExecutionPolicy' => '',
'parameters' => [
],
'position' => [
],
'successPolicy' => [
'finalState' => ''
],
'synchronousCallFailurePolicy' => [
],
'task' => '',
'taskExecutionStrategy' => '',
'taskId' => '',
'taskTemplate' => ''
]
],
'taskConfigsInternal' => [
[
'alertConfigs' => [
[
'aggregationPeriod' => '',
'alertDisabled' => null,
'alertName' => '',
'clientId' => '',
'durationThresholdMs' => '',
'errorEnumList' => [
'enumStrings' => [
],
'filterType' => ''
],
'metricType' => '',
'numAggregationPeriods' => 0,
'onlyFinalAttempt' => null,
'playbookUrl' => '',
'thresholdType' => '',
'thresholdValue' => [
'absolute' => '',
'percentage' => 0
],
'warningEnumList' => [
]
]
],
'createTime' => '',
'creatorEmail' => '',
'description' => '',
'disableStrictTypeValidation' => null,
'errorCatcherId' => '',
'externalTaskType' => '',
'failurePolicy' => [
'intervalInSeconds' => '',
'maxNumRetries' => 0,
'retryStrategy' => ''
],
'incomingEdgeCount' => 0,
'jsonValidationOption' => '',
'label' => '',
'lastModifiedTime' => '',
'nextTasks' => [
[
'combinedConditions' => [
[
'conditions' => [
[
'eventPropertyKey' => '',
'operator' => '',
'value' => [
]
]
]
]
],
'condition' => '',
'description' => '',
'label' => '',
'taskConfigId' => '',
'taskNumber' => ''
]
],
'nextTasksExecutionPolicy' => '',
'parameters' => [
],
'position' => [
'x' => 0,
'y' => 0
],
'precondition' => '',
'preconditionLabel' => '',
'rollbackStrategy' => [
'parameters' => [
'parameters' => [
[
'dataType' => '',
'key' => '',
'value' => [
]
]
]
],
'rollbackTaskImplementationClassName' => '',
'taskNumbersToRollback' => [
]
],
'successPolicy' => [
'finalState' => ''
],
'synchronousCallFailurePolicy' => [
],
'taskEntity' => [
'disabledForVpcSc' => null,
'metadata' => [
'activeTaskName' => '',
'admins' => [
[
'googleGroupEmail' => '',
'userEmail' => ''
]
],
'category' => '',
'codeSearchLink' => '',
'defaultJsonValidationOption' => '',
'defaultSpec' => '',
'description' => '',
'descriptiveName' => '',
'docMarkdown' => '',
'externalCategory' => '',
'externalCategorySequence' => 0,
'externalDocHtml' => '',
'externalDocLink' => '',
'externalDocMarkdown' => '',
'g3DocLink' => '',
'iconLink' => '',
'isDeprecated' => null,
'name' => '',
'standaloneExternalDocHtml' => '',
'status' => '',
'system' => '',
'tags' => [
]
],
'paramSpecs' => [
'parameters' => [
[
'className' => '',
'collectionElementClassName' => '',
'config' => [
'descriptivePhrase' => '',
'helpText' => '',
'hideDefaultValue' => null,
'inputDisplayOption' => '',
'isHidden' => null,
'label' => '',
'parameterNameOption' => '',
'subSectionLabel' => '',
'uiPlaceholderText' => ''
],
'dataType' => '',
'defaultValue' => [
],
'isDeprecated' => null,
'isOutput' => null,
'jsonSchema' => '',
'key' => '',
'protoDef' => [
'fullName' => '',
'path' => ''
],
'required' => null,
'validationRule' => [
'doubleRange' => [
'max' => '',
'min' => ''
],
'intRange' => [
'max' => '',
'min' => ''
],
'stringRegex' => [
'exclusive' => null,
'regex' => ''
]
]
]
]
],
'stats' => [
'dimensions' => [
'clientId' => '',
'enumFilterType' => '',
'errorEnumString' => '',
'retryAttempt' => '',
'taskName' => '',
'taskNumber' => '',
'triggerId' => '',
'warningEnumString' => '',
'workflowId' => '',
'workflowName' => ''
],
'durationInSeconds' => '',
'errorRate' => '',
'qps' => '',
'warningRate' => ''
],
'taskType' => '',
'uiConfig' => [
'taskUiModuleConfigs' => [
[
'moduleId' => ''
]
]
]
],
'taskExecutionStrategy' => '',
'taskName' => '',
'taskNumber' => '',
'taskSpec' => '',
'taskTemplateName' => '',
'taskType' => ''
]
],
'teardown' => [
'teardownTaskConfigs' => [
[
'creatorEmail' => '',
'name' => '',
'nextTeardownTask' => [
'name' => ''
],
'parameters' => [
'parameters' => [
[
'key' => '',
'value' => [
'booleanArray' => [
'booleanValues' => [
]
],
'booleanValue' => null,
'doubleArray' => [
'doubleValues' => [
]
],
'doubleValue' => '',
'intArray' => [
'intValues' => [
]
],
'intValue' => '',
'protoArray' => [
'protoValues' => [
[
]
]
],
'protoValue' => [
],
'serializedObjectValue' => [
'objectValue' => ''
],
'stringArray' => [
'stringValues' => [
]
],
'stringValue' => ''
]
]
]
],
'properties' => [
'properties' => [
[
'key' => '',
'value' => [
]
]
]
],
'teardownTaskImplementationClassName' => ''
]
]
],
'triggerConfigs' => [
[
'alertConfig' => [
[
'aggregationPeriod' => '',
'alertThreshold' => 0,
'disableAlert' => null,
'displayName' => '',
'durationThreshold' => '',
'metricType' => '',
'onlyFinalAttempt' => null,
'thresholdType' => '',
'thresholdValue' => [
'absolute' => '',
'percentage' => 0
]
]
],
'cloudSchedulerConfig' => [
'cronTab' => '',
'errorMessage' => '',
'location' => '',
'serviceAccountEmail' => ''
],
'description' => '',
'errorCatcherId' => '',
'label' => '',
'nextTasksExecutionPolicy' => '',
'position' => [
],
'properties' => [
],
'startTasks' => [
[
]
],
'triggerId' => '',
'triggerNumber' => '',
'triggerType' => ''
]
],
'triggerConfigsInternal' => [
[
'alertConfig' => [
[
'aggregationPeriod' => '',
'alertDisabled' => null,
'alertName' => '',
'clientId' => '',
'durationThresholdMs' => '',
'errorEnumList' => [
],
'metricType' => '',
'numAggregationPeriods' => 0,
'onlyFinalAttempt' => null,
'playbookUrl' => '',
'thresholdType' => '',
'thresholdValue' => [
],
'warningEnumList' => [
]
]
],
'cloudSchedulerConfig' => [
'cronTab' => '',
'errorMessage' => '',
'location' => '',
'serviceAccountEmail' => ''
],
'description' => '',
'enabledClients' => [
],
'errorCatcherId' => '',
'label' => '',
'nextTasksExecutionPolicy' => '',
'pauseWorkflowExecutions' => null,
'position' => [
],
'properties' => [
],
'startTasks' => [
[
]
],
'triggerCriteria' => [
'condition' => '',
'parameters' => [
],
'triggerCriteriaTaskImplementationClassName' => ''
],
'triggerId' => '',
'triggerNumber' => '',
'triggerType' => ''
]
],
'updateTime' => '',
'userLabel' => ''
],
'parameters' => [
],
'testMode' => null,
'triggerId' => ''
]));
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
append(json_encode([
'clientId' => '',
'deadlineSecondsTime' => '',
'inputParameters' => [
],
'integrationVersion' => [
'createTime' => '',
'databasePersistencePolicy' => '',
'description' => '',
'errorCatcherConfigs' => [
[
'description' => '',
'errorCatcherId' => '',
'errorCatcherNumber' => '',
'label' => '',
'position' => [
'x' => 0,
'y' => 0
],
'startErrorTasks' => [
[
'condition' => '',
'description' => '',
'displayName' => '',
'taskConfigId' => '',
'taskId' => ''
]
]
]
],
'integrationParameters' => [
[
'dataType' => '',
'defaultValue' => [
'booleanArray' => [
'booleanValues' => [
]
],
'booleanValue' => null,
'doubleArray' => [
'doubleValues' => [
]
],
'doubleValue' => '',
'intArray' => [
'intValues' => [
]
],
'intValue' => '',
'jsonValue' => '',
'stringArray' => [
'stringValues' => [
]
],
'stringValue' => ''
],
'displayName' => '',
'inputOutputType' => '',
'isTransient' => null,
'jsonSchema' => '',
'key' => '',
'producer' => '',
'searchable' => null
]
],
'integrationParametersInternal' => [
'parameters' => [
[
'attributes' => [
'dataType' => '',
'defaultValue' => [
'booleanValue' => null,
'doubleArray' => [
'values' => [
]
],
'doubleValue' => '',
'intArray' => [
'values' => [
]
],
'intValue' => '',
'protoValue' => [
],
'stringArray' => [
'values' => [
]
],
'stringValue' => ''
],
'isRequired' => null,
'isSearchable' => null,
'logSettings' => [
'logFieldName' => '',
'sanitizeOptions' => [
'isAlreadySanitized' => null,
'logType' => [
],
'privacy' => '',
'sanitizeType' => ''
],
'seedPeriod' => '',
'seedScope' => '',
'shorteningLimits' => [
'logAction' => '',
'logType' => [
],
'maxArraySize' => 0,
'maxStringLength' => 0,
'shortenerType' => ''
]
],
'searchable' => '',
'taskVisibility' => [
]
],
'children' => [
],
'dataType' => '',
'defaultValue' => [
'booleanArray' => [
'booleanValues' => [
]
],
'booleanValue' => null,
'doubleArray' => [
'doubleValues' => [
]
],
'doubleValue' => '',
'intArray' => [
'intValues' => [
]
],
'intValue' => '',
'jsonValue' => '',
'protoArray' => [
'protoValues' => [
[
]
]
],
'protoValue' => [
],
'serializedObjectValue' => [
'objectValue' => ''
],
'stringArray' => [
'stringValues' => [
]
],
'stringValue' => ''
],
'inOutType' => '',
'isTransient' => null,
'jsonSchema' => '',
'key' => '',
'name' => '',
'producedBy' => [
'elementIdentifier' => '',
'elementType' => ''
],
'producer' => '',
'protoDefName' => '',
'protoDefPath' => ''
]
]
],
'lastModifierEmail' => '',
'lockHolder' => '',
'name' => '',
'origin' => '',
'parentTemplateId' => '',
'runAsServiceAccount' => '',
'snapshotNumber' => '',
'state' => '',
'status' => '',
'taskConfigs' => [
[
'description' => '',
'displayName' => '',
'errorCatcherId' => '',
'externalTaskType' => '',
'failurePolicy' => [
'intervalTime' => '',
'maxRetries' => 0,
'retryStrategy' => ''
],
'jsonValidationOption' => '',
'nextTasks' => [
[
]
],
'nextTasksExecutionPolicy' => '',
'parameters' => [
],
'position' => [
],
'successPolicy' => [
'finalState' => ''
],
'synchronousCallFailurePolicy' => [
],
'task' => '',
'taskExecutionStrategy' => '',
'taskId' => '',
'taskTemplate' => ''
]
],
'taskConfigsInternal' => [
[
'alertConfigs' => [
[
'aggregationPeriod' => '',
'alertDisabled' => null,
'alertName' => '',
'clientId' => '',
'durationThresholdMs' => '',
'errorEnumList' => [
'enumStrings' => [
],
'filterType' => ''
],
'metricType' => '',
'numAggregationPeriods' => 0,
'onlyFinalAttempt' => null,
'playbookUrl' => '',
'thresholdType' => '',
'thresholdValue' => [
'absolute' => '',
'percentage' => 0
],
'warningEnumList' => [
]
]
],
'createTime' => '',
'creatorEmail' => '',
'description' => '',
'disableStrictTypeValidation' => null,
'errorCatcherId' => '',
'externalTaskType' => '',
'failurePolicy' => [
'intervalInSeconds' => '',
'maxNumRetries' => 0,
'retryStrategy' => ''
],
'incomingEdgeCount' => 0,
'jsonValidationOption' => '',
'label' => '',
'lastModifiedTime' => '',
'nextTasks' => [
[
'combinedConditions' => [
[
'conditions' => [
[
'eventPropertyKey' => '',
'operator' => '',
'value' => [
]
]
]
]
],
'condition' => '',
'description' => '',
'label' => '',
'taskConfigId' => '',
'taskNumber' => ''
]
],
'nextTasksExecutionPolicy' => '',
'parameters' => [
],
'position' => [
'x' => 0,
'y' => 0
],
'precondition' => '',
'preconditionLabel' => '',
'rollbackStrategy' => [
'parameters' => [
'parameters' => [
[
'dataType' => '',
'key' => '',
'value' => [
]
]
]
],
'rollbackTaskImplementationClassName' => '',
'taskNumbersToRollback' => [
]
],
'successPolicy' => [
'finalState' => ''
],
'synchronousCallFailurePolicy' => [
],
'taskEntity' => [
'disabledForVpcSc' => null,
'metadata' => [
'activeTaskName' => '',
'admins' => [
[
'googleGroupEmail' => '',
'userEmail' => ''
]
],
'category' => '',
'codeSearchLink' => '',
'defaultJsonValidationOption' => '',
'defaultSpec' => '',
'description' => '',
'descriptiveName' => '',
'docMarkdown' => '',
'externalCategory' => '',
'externalCategorySequence' => 0,
'externalDocHtml' => '',
'externalDocLink' => '',
'externalDocMarkdown' => '',
'g3DocLink' => '',
'iconLink' => '',
'isDeprecated' => null,
'name' => '',
'standaloneExternalDocHtml' => '',
'status' => '',
'system' => '',
'tags' => [
]
],
'paramSpecs' => [
'parameters' => [
[
'className' => '',
'collectionElementClassName' => '',
'config' => [
'descriptivePhrase' => '',
'helpText' => '',
'hideDefaultValue' => null,
'inputDisplayOption' => '',
'isHidden' => null,
'label' => '',
'parameterNameOption' => '',
'subSectionLabel' => '',
'uiPlaceholderText' => ''
],
'dataType' => '',
'defaultValue' => [
],
'isDeprecated' => null,
'isOutput' => null,
'jsonSchema' => '',
'key' => '',
'protoDef' => [
'fullName' => '',
'path' => ''
],
'required' => null,
'validationRule' => [
'doubleRange' => [
'max' => '',
'min' => ''
],
'intRange' => [
'max' => '',
'min' => ''
],
'stringRegex' => [
'exclusive' => null,
'regex' => ''
]
]
]
]
],
'stats' => [
'dimensions' => [
'clientId' => '',
'enumFilterType' => '',
'errorEnumString' => '',
'retryAttempt' => '',
'taskName' => '',
'taskNumber' => '',
'triggerId' => '',
'warningEnumString' => '',
'workflowId' => '',
'workflowName' => ''
],
'durationInSeconds' => '',
'errorRate' => '',
'qps' => '',
'warningRate' => ''
],
'taskType' => '',
'uiConfig' => [
'taskUiModuleConfigs' => [
[
'moduleId' => ''
]
]
]
],
'taskExecutionStrategy' => '',
'taskName' => '',
'taskNumber' => '',
'taskSpec' => '',
'taskTemplateName' => '',
'taskType' => ''
]
],
'teardown' => [
'teardownTaskConfigs' => [
[
'creatorEmail' => '',
'name' => '',
'nextTeardownTask' => [
'name' => ''
],
'parameters' => [
'parameters' => [
[
'key' => '',
'value' => [
'booleanArray' => [
'booleanValues' => [
]
],
'booleanValue' => null,
'doubleArray' => [
'doubleValues' => [
]
],
'doubleValue' => '',
'intArray' => [
'intValues' => [
]
],
'intValue' => '',
'protoArray' => [
'protoValues' => [
[
]
]
],
'protoValue' => [
],
'serializedObjectValue' => [
'objectValue' => ''
],
'stringArray' => [
'stringValues' => [
]
],
'stringValue' => ''
]
]
]
],
'properties' => [
'properties' => [
[
'key' => '',
'value' => [
]
]
]
],
'teardownTaskImplementationClassName' => ''
]
]
],
'triggerConfigs' => [
[
'alertConfig' => [
[
'aggregationPeriod' => '',
'alertThreshold' => 0,
'disableAlert' => null,
'displayName' => '',
'durationThreshold' => '',
'metricType' => '',
'onlyFinalAttempt' => null,
'thresholdType' => '',
'thresholdValue' => [
'absolute' => '',
'percentage' => 0
]
]
],
'cloudSchedulerConfig' => [
'cronTab' => '',
'errorMessage' => '',
'location' => '',
'serviceAccountEmail' => ''
],
'description' => '',
'errorCatcherId' => '',
'label' => '',
'nextTasksExecutionPolicy' => '',
'position' => [
],
'properties' => [
],
'startTasks' => [
[
]
],
'triggerId' => '',
'triggerNumber' => '',
'triggerType' => ''
]
],
'triggerConfigsInternal' => [
[
'alertConfig' => [
[
'aggregationPeriod' => '',
'alertDisabled' => null,
'alertName' => '',
'clientId' => '',
'durationThresholdMs' => '',
'errorEnumList' => [
],
'metricType' => '',
'numAggregationPeriods' => 0,
'onlyFinalAttempt' => null,
'playbookUrl' => '',
'thresholdType' => '',
'thresholdValue' => [
],
'warningEnumList' => [
]
]
],
'cloudSchedulerConfig' => [
'cronTab' => '',
'errorMessage' => '',
'location' => '',
'serviceAccountEmail' => ''
],
'description' => '',
'enabledClients' => [
],
'errorCatcherId' => '',
'label' => '',
'nextTasksExecutionPolicy' => '',
'pauseWorkflowExecutions' => null,
'position' => [
],
'properties' => [
],
'startTasks' => [
[
]
],
'triggerCriteria' => [
'condition' => '',
'parameters' => [
],
'triggerCriteriaTaskImplementationClassName' => ''
],
'triggerId' => '',
'triggerNumber' => '',
'triggerType' => ''
]
],
'updateTime' => '',
'userLabel' => ''
],
'parameters' => [
],
'testMode' => null,
'triggerId' => ''
]));
$request->setRequestUrl('{{baseUrl}}/v1/:name:test');
$request->setRequestMethod('POST');
$request->setBody($body);
$request->setHeaders([
'content-type' => 'application/json'
]);
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/v1/:name:test' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
"clientId": "",
"deadlineSecondsTime": "",
"inputParameters": {},
"integrationVersion": {
"createTime": "",
"databasePersistencePolicy": "",
"description": "",
"errorCatcherConfigs": [
{
"description": "",
"errorCatcherId": "",
"errorCatcherNumber": "",
"label": "",
"position": {
"x": 0,
"y": 0
},
"startErrorTasks": [
{
"condition": "",
"description": "",
"displayName": "",
"taskConfigId": "",
"taskId": ""
}
]
}
],
"integrationParameters": [
{
"dataType": "",
"defaultValue": {
"booleanArray": {
"booleanValues": []
},
"booleanValue": false,
"doubleArray": {
"doubleValues": []
},
"doubleValue": "",
"intArray": {
"intValues": []
},
"intValue": "",
"jsonValue": "",
"stringArray": {
"stringValues": []
},
"stringValue": ""
},
"displayName": "",
"inputOutputType": "",
"isTransient": false,
"jsonSchema": "",
"key": "",
"producer": "",
"searchable": false
}
],
"integrationParametersInternal": {
"parameters": [
{
"attributes": {
"dataType": "",
"defaultValue": {
"booleanValue": false,
"doubleArray": {
"values": []
},
"doubleValue": "",
"intArray": {
"values": []
},
"intValue": "",
"protoValue": {},
"stringArray": {
"values": []
},
"stringValue": ""
},
"isRequired": false,
"isSearchable": false,
"logSettings": {
"logFieldName": "",
"sanitizeOptions": {
"isAlreadySanitized": false,
"logType": [],
"privacy": "",
"sanitizeType": ""
},
"seedPeriod": "",
"seedScope": "",
"shorteningLimits": {
"logAction": "",
"logType": [],
"maxArraySize": 0,
"maxStringLength": 0,
"shortenerType": ""
}
},
"searchable": "",
"taskVisibility": []
},
"children": [],
"dataType": "",
"defaultValue": {
"booleanArray": {
"booleanValues": []
},
"booleanValue": false,
"doubleArray": {
"doubleValues": []
},
"doubleValue": "",
"intArray": {
"intValues": []
},
"intValue": "",
"jsonValue": "",
"protoArray": {
"protoValues": [
{}
]
},
"protoValue": {},
"serializedObjectValue": {
"objectValue": ""
},
"stringArray": {
"stringValues": []
},
"stringValue": ""
},
"inOutType": "",
"isTransient": false,
"jsonSchema": "",
"key": "",
"name": "",
"producedBy": {
"elementIdentifier": "",
"elementType": ""
},
"producer": "",
"protoDefName": "",
"protoDefPath": ""
}
]
},
"lastModifierEmail": "",
"lockHolder": "",
"name": "",
"origin": "",
"parentTemplateId": "",
"runAsServiceAccount": "",
"snapshotNumber": "",
"state": "",
"status": "",
"taskConfigs": [
{
"description": "",
"displayName": "",
"errorCatcherId": "",
"externalTaskType": "",
"failurePolicy": {
"intervalTime": "",
"maxRetries": 0,
"retryStrategy": ""
},
"jsonValidationOption": "",
"nextTasks": [
{}
],
"nextTasksExecutionPolicy": "",
"parameters": {},
"position": {},
"successPolicy": {
"finalState": ""
},
"synchronousCallFailurePolicy": {},
"task": "",
"taskExecutionStrategy": "",
"taskId": "",
"taskTemplate": ""
}
],
"taskConfigsInternal": [
{
"alertConfigs": [
{
"aggregationPeriod": "",
"alertDisabled": false,
"alertName": "",
"clientId": "",
"durationThresholdMs": "",
"errorEnumList": {
"enumStrings": [],
"filterType": ""
},
"metricType": "",
"numAggregationPeriods": 0,
"onlyFinalAttempt": false,
"playbookUrl": "",
"thresholdType": "",
"thresholdValue": {
"absolute": "",
"percentage": 0
},
"warningEnumList": {}
}
],
"createTime": "",
"creatorEmail": "",
"description": "",
"disableStrictTypeValidation": false,
"errorCatcherId": "",
"externalTaskType": "",
"failurePolicy": {
"intervalInSeconds": "",
"maxNumRetries": 0,
"retryStrategy": ""
},
"incomingEdgeCount": 0,
"jsonValidationOption": "",
"label": "",
"lastModifiedTime": "",
"nextTasks": [
{
"combinedConditions": [
{
"conditions": [
{
"eventPropertyKey": "",
"operator": "",
"value": {}
}
]
}
],
"condition": "",
"description": "",
"label": "",
"taskConfigId": "",
"taskNumber": ""
}
],
"nextTasksExecutionPolicy": "",
"parameters": {},
"position": {
"x": 0,
"y": 0
},
"precondition": "",
"preconditionLabel": "",
"rollbackStrategy": {
"parameters": {
"parameters": [
{
"dataType": "",
"key": "",
"value": {}
}
]
},
"rollbackTaskImplementationClassName": "",
"taskNumbersToRollback": []
},
"successPolicy": {
"finalState": ""
},
"synchronousCallFailurePolicy": {},
"taskEntity": {
"disabledForVpcSc": false,
"metadata": {
"activeTaskName": "",
"admins": [
{
"googleGroupEmail": "",
"userEmail": ""
}
],
"category": "",
"codeSearchLink": "",
"defaultJsonValidationOption": "",
"defaultSpec": "",
"description": "",
"descriptiveName": "",
"docMarkdown": "",
"externalCategory": "",
"externalCategorySequence": 0,
"externalDocHtml": "",
"externalDocLink": "",
"externalDocMarkdown": "",
"g3DocLink": "",
"iconLink": "",
"isDeprecated": false,
"name": "",
"standaloneExternalDocHtml": "",
"status": "",
"system": "",
"tags": []
},
"paramSpecs": {
"parameters": [
{
"className": "",
"collectionElementClassName": "",
"config": {
"descriptivePhrase": "",
"helpText": "",
"hideDefaultValue": false,
"inputDisplayOption": "",
"isHidden": false,
"label": "",
"parameterNameOption": "",
"subSectionLabel": "",
"uiPlaceholderText": ""
},
"dataType": "",
"defaultValue": {},
"isDeprecated": false,
"isOutput": false,
"jsonSchema": "",
"key": "",
"protoDef": {
"fullName": "",
"path": ""
},
"required": false,
"validationRule": {
"doubleRange": {
"max": "",
"min": ""
},
"intRange": {
"max": "",
"min": ""
},
"stringRegex": {
"exclusive": false,
"regex": ""
}
}
}
]
},
"stats": {
"dimensions": {
"clientId": "",
"enumFilterType": "",
"errorEnumString": "",
"retryAttempt": "",
"taskName": "",
"taskNumber": "",
"triggerId": "",
"warningEnumString": "",
"workflowId": "",
"workflowName": ""
},
"durationInSeconds": "",
"errorRate": "",
"qps": "",
"warningRate": ""
},
"taskType": "",
"uiConfig": {
"taskUiModuleConfigs": [
{
"moduleId": ""
}
]
}
},
"taskExecutionStrategy": "",
"taskName": "",
"taskNumber": "",
"taskSpec": "",
"taskTemplateName": "",
"taskType": ""
}
],
"teardown": {
"teardownTaskConfigs": [
{
"creatorEmail": "",
"name": "",
"nextTeardownTask": {
"name": ""
},
"parameters": {
"parameters": [
{
"key": "",
"value": {
"booleanArray": {
"booleanValues": []
},
"booleanValue": false,
"doubleArray": {
"doubleValues": []
},
"doubleValue": "",
"intArray": {
"intValues": []
},
"intValue": "",
"protoArray": {
"protoValues": [
{}
]
},
"protoValue": {},
"serializedObjectValue": {
"objectValue": ""
},
"stringArray": {
"stringValues": []
},
"stringValue": ""
}
}
]
},
"properties": {
"properties": [
{
"key": "",
"value": {}
}
]
},
"teardownTaskImplementationClassName": ""
}
]
},
"triggerConfigs": [
{
"alertConfig": [
{
"aggregationPeriod": "",
"alertThreshold": 0,
"disableAlert": false,
"displayName": "",
"durationThreshold": "",
"metricType": "",
"onlyFinalAttempt": false,
"thresholdType": "",
"thresholdValue": {
"absolute": "",
"percentage": 0
}
}
],
"cloudSchedulerConfig": {
"cronTab": "",
"errorMessage": "",
"location": "",
"serviceAccountEmail": ""
},
"description": "",
"errorCatcherId": "",
"label": "",
"nextTasksExecutionPolicy": "",
"position": {},
"properties": {},
"startTasks": [
{}
],
"triggerId": "",
"triggerNumber": "",
"triggerType": ""
}
],
"triggerConfigsInternal": [
{
"alertConfig": [
{
"aggregationPeriod": "",
"alertDisabled": false,
"alertName": "",
"clientId": "",
"durationThresholdMs": "",
"errorEnumList": {},
"metricType": "",
"numAggregationPeriods": 0,
"onlyFinalAttempt": false,
"playbookUrl": "",
"thresholdType": "",
"thresholdValue": {},
"warningEnumList": {}
}
],
"cloudSchedulerConfig": {
"cronTab": "",
"errorMessage": "",
"location": "",
"serviceAccountEmail": ""
},
"description": "",
"enabledClients": [],
"errorCatcherId": "",
"label": "",
"nextTasksExecutionPolicy": "",
"pauseWorkflowExecutions": false,
"position": {},
"properties": {},
"startTasks": [
{}
],
"triggerCriteria": {
"condition": "",
"parameters": {},
"triggerCriteriaTaskImplementationClassName": ""
},
"triggerId": "",
"triggerNumber": "",
"triggerType": ""
}
],
"updateTime": "",
"userLabel": ""
},
"parameters": {},
"testMode": false,
"triggerId": ""
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/v1/:name:test' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
"clientId": "",
"deadlineSecondsTime": "",
"inputParameters": {},
"integrationVersion": {
"createTime": "",
"databasePersistencePolicy": "",
"description": "",
"errorCatcherConfigs": [
{
"description": "",
"errorCatcherId": "",
"errorCatcherNumber": "",
"label": "",
"position": {
"x": 0,
"y": 0
},
"startErrorTasks": [
{
"condition": "",
"description": "",
"displayName": "",
"taskConfigId": "",
"taskId": ""
}
]
}
],
"integrationParameters": [
{
"dataType": "",
"defaultValue": {
"booleanArray": {
"booleanValues": []
},
"booleanValue": false,
"doubleArray": {
"doubleValues": []
},
"doubleValue": "",
"intArray": {
"intValues": []
},
"intValue": "",
"jsonValue": "",
"stringArray": {
"stringValues": []
},
"stringValue": ""
},
"displayName": "",
"inputOutputType": "",
"isTransient": false,
"jsonSchema": "",
"key": "",
"producer": "",
"searchable": false
}
],
"integrationParametersInternal": {
"parameters": [
{
"attributes": {
"dataType": "",
"defaultValue": {
"booleanValue": false,
"doubleArray": {
"values": []
},
"doubleValue": "",
"intArray": {
"values": []
},
"intValue": "",
"protoValue": {},
"stringArray": {
"values": []
},
"stringValue": ""
},
"isRequired": false,
"isSearchable": false,
"logSettings": {
"logFieldName": "",
"sanitizeOptions": {
"isAlreadySanitized": false,
"logType": [],
"privacy": "",
"sanitizeType": ""
},
"seedPeriod": "",
"seedScope": "",
"shorteningLimits": {
"logAction": "",
"logType": [],
"maxArraySize": 0,
"maxStringLength": 0,
"shortenerType": ""
}
},
"searchable": "",
"taskVisibility": []
},
"children": [],
"dataType": "",
"defaultValue": {
"booleanArray": {
"booleanValues": []
},
"booleanValue": false,
"doubleArray": {
"doubleValues": []
},
"doubleValue": "",
"intArray": {
"intValues": []
},
"intValue": "",
"jsonValue": "",
"protoArray": {
"protoValues": [
{}
]
},
"protoValue": {},
"serializedObjectValue": {
"objectValue": ""
},
"stringArray": {
"stringValues": []
},
"stringValue": ""
},
"inOutType": "",
"isTransient": false,
"jsonSchema": "",
"key": "",
"name": "",
"producedBy": {
"elementIdentifier": "",
"elementType": ""
},
"producer": "",
"protoDefName": "",
"protoDefPath": ""
}
]
},
"lastModifierEmail": "",
"lockHolder": "",
"name": "",
"origin": "",
"parentTemplateId": "",
"runAsServiceAccount": "",
"snapshotNumber": "",
"state": "",
"status": "",
"taskConfigs": [
{
"description": "",
"displayName": "",
"errorCatcherId": "",
"externalTaskType": "",
"failurePolicy": {
"intervalTime": "",
"maxRetries": 0,
"retryStrategy": ""
},
"jsonValidationOption": "",
"nextTasks": [
{}
],
"nextTasksExecutionPolicy": "",
"parameters": {},
"position": {},
"successPolicy": {
"finalState": ""
},
"synchronousCallFailurePolicy": {},
"task": "",
"taskExecutionStrategy": "",
"taskId": "",
"taskTemplate": ""
}
],
"taskConfigsInternal": [
{
"alertConfigs": [
{
"aggregationPeriod": "",
"alertDisabled": false,
"alertName": "",
"clientId": "",
"durationThresholdMs": "",
"errorEnumList": {
"enumStrings": [],
"filterType": ""
},
"metricType": "",
"numAggregationPeriods": 0,
"onlyFinalAttempt": false,
"playbookUrl": "",
"thresholdType": "",
"thresholdValue": {
"absolute": "",
"percentage": 0
},
"warningEnumList": {}
}
],
"createTime": "",
"creatorEmail": "",
"description": "",
"disableStrictTypeValidation": false,
"errorCatcherId": "",
"externalTaskType": "",
"failurePolicy": {
"intervalInSeconds": "",
"maxNumRetries": 0,
"retryStrategy": ""
},
"incomingEdgeCount": 0,
"jsonValidationOption": "",
"label": "",
"lastModifiedTime": "",
"nextTasks": [
{
"combinedConditions": [
{
"conditions": [
{
"eventPropertyKey": "",
"operator": "",
"value": {}
}
]
}
],
"condition": "",
"description": "",
"label": "",
"taskConfigId": "",
"taskNumber": ""
}
],
"nextTasksExecutionPolicy": "",
"parameters": {},
"position": {
"x": 0,
"y": 0
},
"precondition": "",
"preconditionLabel": "",
"rollbackStrategy": {
"parameters": {
"parameters": [
{
"dataType": "",
"key": "",
"value": {}
}
]
},
"rollbackTaskImplementationClassName": "",
"taskNumbersToRollback": []
},
"successPolicy": {
"finalState": ""
},
"synchronousCallFailurePolicy": {},
"taskEntity": {
"disabledForVpcSc": false,
"metadata": {
"activeTaskName": "",
"admins": [
{
"googleGroupEmail": "",
"userEmail": ""
}
],
"category": "",
"codeSearchLink": "",
"defaultJsonValidationOption": "",
"defaultSpec": "",
"description": "",
"descriptiveName": "",
"docMarkdown": "",
"externalCategory": "",
"externalCategorySequence": 0,
"externalDocHtml": "",
"externalDocLink": "",
"externalDocMarkdown": "",
"g3DocLink": "",
"iconLink": "",
"isDeprecated": false,
"name": "",
"standaloneExternalDocHtml": "",
"status": "",
"system": "",
"tags": []
},
"paramSpecs": {
"parameters": [
{
"className": "",
"collectionElementClassName": "",
"config": {
"descriptivePhrase": "",
"helpText": "",
"hideDefaultValue": false,
"inputDisplayOption": "",
"isHidden": false,
"label": "",
"parameterNameOption": "",
"subSectionLabel": "",
"uiPlaceholderText": ""
},
"dataType": "",
"defaultValue": {},
"isDeprecated": false,
"isOutput": false,
"jsonSchema": "",
"key": "",
"protoDef": {
"fullName": "",
"path": ""
},
"required": false,
"validationRule": {
"doubleRange": {
"max": "",
"min": ""
},
"intRange": {
"max": "",
"min": ""
},
"stringRegex": {
"exclusive": false,
"regex": ""
}
}
}
]
},
"stats": {
"dimensions": {
"clientId": "",
"enumFilterType": "",
"errorEnumString": "",
"retryAttempt": "",
"taskName": "",
"taskNumber": "",
"triggerId": "",
"warningEnumString": "",
"workflowId": "",
"workflowName": ""
},
"durationInSeconds": "",
"errorRate": "",
"qps": "",
"warningRate": ""
},
"taskType": "",
"uiConfig": {
"taskUiModuleConfigs": [
{
"moduleId": ""
}
]
}
},
"taskExecutionStrategy": "",
"taskName": "",
"taskNumber": "",
"taskSpec": "",
"taskTemplateName": "",
"taskType": ""
}
],
"teardown": {
"teardownTaskConfigs": [
{
"creatorEmail": "",
"name": "",
"nextTeardownTask": {
"name": ""
},
"parameters": {
"parameters": [
{
"key": "",
"value": {
"booleanArray": {
"booleanValues": []
},
"booleanValue": false,
"doubleArray": {
"doubleValues": []
},
"doubleValue": "",
"intArray": {
"intValues": []
},
"intValue": "",
"protoArray": {
"protoValues": [
{}
]
},
"protoValue": {},
"serializedObjectValue": {
"objectValue": ""
},
"stringArray": {
"stringValues": []
},
"stringValue": ""
}
}
]
},
"properties": {
"properties": [
{
"key": "",
"value": {}
}
]
},
"teardownTaskImplementationClassName": ""
}
]
},
"triggerConfigs": [
{
"alertConfig": [
{
"aggregationPeriod": "",
"alertThreshold": 0,
"disableAlert": false,
"displayName": "",
"durationThreshold": "",
"metricType": "",
"onlyFinalAttempt": false,
"thresholdType": "",
"thresholdValue": {
"absolute": "",
"percentage": 0
}
}
],
"cloudSchedulerConfig": {
"cronTab": "",
"errorMessage": "",
"location": "",
"serviceAccountEmail": ""
},
"description": "",
"errorCatcherId": "",
"label": "",
"nextTasksExecutionPolicy": "",
"position": {},
"properties": {},
"startTasks": [
{}
],
"triggerId": "",
"triggerNumber": "",
"triggerType": ""
}
],
"triggerConfigsInternal": [
{
"alertConfig": [
{
"aggregationPeriod": "",
"alertDisabled": false,
"alertName": "",
"clientId": "",
"durationThresholdMs": "",
"errorEnumList": {},
"metricType": "",
"numAggregationPeriods": 0,
"onlyFinalAttempt": false,
"playbookUrl": "",
"thresholdType": "",
"thresholdValue": {},
"warningEnumList": {}
}
],
"cloudSchedulerConfig": {
"cronTab": "",
"errorMessage": "",
"location": "",
"serviceAccountEmail": ""
},
"description": "",
"enabledClients": [],
"errorCatcherId": "",
"label": "",
"nextTasksExecutionPolicy": "",
"pauseWorkflowExecutions": false,
"position": {},
"properties": {},
"startTasks": [
{}
],
"triggerCriteria": {
"condition": "",
"parameters": {},
"triggerCriteriaTaskImplementationClassName": ""
},
"triggerId": "",
"triggerNumber": "",
"triggerType": ""
}
],
"updateTime": "",
"userLabel": ""
},
"parameters": {},
"testMode": false,
"triggerId": ""
}'
import http.client
conn = http.client.HTTPSConnection("example.com")
payload = "{\n \"clientId\": \"\",\n \"deadlineSecondsTime\": \"\",\n \"inputParameters\": {},\n \"integrationVersion\": {\n \"createTime\": \"\",\n \"databasePersistencePolicy\": \"\",\n \"description\": \"\",\n \"errorCatcherConfigs\": [\n {\n \"description\": \"\",\n \"errorCatcherId\": \"\",\n \"errorCatcherNumber\": \"\",\n \"label\": \"\",\n \"position\": {\n \"x\": 0,\n \"y\": 0\n },\n \"startErrorTasks\": [\n {\n \"condition\": \"\",\n \"description\": \"\",\n \"displayName\": \"\",\n \"taskConfigId\": \"\",\n \"taskId\": \"\"\n }\n ]\n }\n ],\n \"integrationParameters\": [\n {\n \"dataType\": \"\",\n \"defaultValue\": {\n \"booleanArray\": {\n \"booleanValues\": []\n },\n \"booleanValue\": false,\n \"doubleArray\": {\n \"doubleValues\": []\n },\n \"doubleValue\": \"\",\n \"intArray\": {\n \"intValues\": []\n },\n \"intValue\": \"\",\n \"jsonValue\": \"\",\n \"stringArray\": {\n \"stringValues\": []\n },\n \"stringValue\": \"\"\n },\n \"displayName\": \"\",\n \"inputOutputType\": \"\",\n \"isTransient\": false,\n \"jsonSchema\": \"\",\n \"key\": \"\",\n \"producer\": \"\",\n \"searchable\": false\n }\n ],\n \"integrationParametersInternal\": {\n \"parameters\": [\n {\n \"attributes\": {\n \"dataType\": \"\",\n \"defaultValue\": {\n \"booleanValue\": false,\n \"doubleArray\": {\n \"values\": []\n },\n \"doubleValue\": \"\",\n \"intArray\": {\n \"values\": []\n },\n \"intValue\": \"\",\n \"protoValue\": {},\n \"stringArray\": {\n \"values\": []\n },\n \"stringValue\": \"\"\n },\n \"isRequired\": false,\n \"isSearchable\": false,\n \"logSettings\": {\n \"logFieldName\": \"\",\n \"sanitizeOptions\": {\n \"isAlreadySanitized\": false,\n \"logType\": [],\n \"privacy\": \"\",\n \"sanitizeType\": \"\"\n },\n \"seedPeriod\": \"\",\n \"seedScope\": \"\",\n \"shorteningLimits\": {\n \"logAction\": \"\",\n \"logType\": [],\n \"maxArraySize\": 0,\n \"maxStringLength\": 0,\n \"shortenerType\": \"\"\n }\n },\n \"searchable\": \"\",\n \"taskVisibility\": []\n },\n \"children\": [],\n \"dataType\": \"\",\n \"defaultValue\": {\n \"booleanArray\": {\n \"booleanValues\": []\n },\n \"booleanValue\": false,\n \"doubleArray\": {\n \"doubleValues\": []\n },\n \"doubleValue\": \"\",\n \"intArray\": {\n \"intValues\": []\n },\n \"intValue\": \"\",\n \"jsonValue\": \"\",\n \"protoArray\": {\n \"protoValues\": [\n {}\n ]\n },\n \"protoValue\": {},\n \"serializedObjectValue\": {\n \"objectValue\": \"\"\n },\n \"stringArray\": {\n \"stringValues\": []\n },\n \"stringValue\": \"\"\n },\n \"inOutType\": \"\",\n \"isTransient\": false,\n \"jsonSchema\": \"\",\n \"key\": \"\",\n \"name\": \"\",\n \"producedBy\": {\n \"elementIdentifier\": \"\",\n \"elementType\": \"\"\n },\n \"producer\": \"\",\n \"protoDefName\": \"\",\n \"protoDefPath\": \"\"\n }\n ]\n },\n \"lastModifierEmail\": \"\",\n \"lockHolder\": \"\",\n \"name\": \"\",\n \"origin\": \"\",\n \"parentTemplateId\": \"\",\n \"runAsServiceAccount\": \"\",\n \"snapshotNumber\": \"\",\n \"state\": \"\",\n \"status\": \"\",\n \"taskConfigs\": [\n {\n \"description\": \"\",\n \"displayName\": \"\",\n \"errorCatcherId\": \"\",\n \"externalTaskType\": \"\",\n \"failurePolicy\": {\n \"intervalTime\": \"\",\n \"maxRetries\": 0,\n \"retryStrategy\": \"\"\n },\n \"jsonValidationOption\": \"\",\n \"nextTasks\": [\n {}\n ],\n \"nextTasksExecutionPolicy\": \"\",\n \"parameters\": {},\n \"position\": {},\n \"successPolicy\": {\n \"finalState\": \"\"\n },\n \"synchronousCallFailurePolicy\": {},\n \"task\": \"\",\n \"taskExecutionStrategy\": \"\",\n \"taskId\": \"\",\n \"taskTemplate\": \"\"\n }\n ],\n \"taskConfigsInternal\": [\n {\n \"alertConfigs\": [\n {\n \"aggregationPeriod\": \"\",\n \"alertDisabled\": false,\n \"alertName\": \"\",\n \"clientId\": \"\",\n \"durationThresholdMs\": \"\",\n \"errorEnumList\": {\n \"enumStrings\": [],\n \"filterType\": \"\"\n },\n \"metricType\": \"\",\n \"numAggregationPeriods\": 0,\n \"onlyFinalAttempt\": false,\n \"playbookUrl\": \"\",\n \"thresholdType\": \"\",\n \"thresholdValue\": {\n \"absolute\": \"\",\n \"percentage\": 0\n },\n \"warningEnumList\": {}\n }\n ],\n \"createTime\": \"\",\n \"creatorEmail\": \"\",\n \"description\": \"\",\n \"disableStrictTypeValidation\": false,\n \"errorCatcherId\": \"\",\n \"externalTaskType\": \"\",\n \"failurePolicy\": {\n \"intervalInSeconds\": \"\",\n \"maxNumRetries\": 0,\n \"retryStrategy\": \"\"\n },\n \"incomingEdgeCount\": 0,\n \"jsonValidationOption\": \"\",\n \"label\": \"\",\n \"lastModifiedTime\": \"\",\n \"nextTasks\": [\n {\n \"combinedConditions\": [\n {\n \"conditions\": [\n {\n \"eventPropertyKey\": \"\",\n \"operator\": \"\",\n \"value\": {}\n }\n ]\n }\n ],\n \"condition\": \"\",\n \"description\": \"\",\n \"label\": \"\",\n \"taskConfigId\": \"\",\n \"taskNumber\": \"\"\n }\n ],\n \"nextTasksExecutionPolicy\": \"\",\n \"parameters\": {},\n \"position\": {\n \"x\": 0,\n \"y\": 0\n },\n \"precondition\": \"\",\n \"preconditionLabel\": \"\",\n \"rollbackStrategy\": {\n \"parameters\": {\n \"parameters\": [\n {\n \"dataType\": \"\",\n \"key\": \"\",\n \"value\": {}\n }\n ]\n },\n \"rollbackTaskImplementationClassName\": \"\",\n \"taskNumbersToRollback\": []\n },\n \"successPolicy\": {\n \"finalState\": \"\"\n },\n \"synchronousCallFailurePolicy\": {},\n \"taskEntity\": {\n \"disabledForVpcSc\": false,\n \"metadata\": {\n \"activeTaskName\": \"\",\n \"admins\": [\n {\n \"googleGroupEmail\": \"\",\n \"userEmail\": \"\"\n }\n ],\n \"category\": \"\",\n \"codeSearchLink\": \"\",\n \"defaultJsonValidationOption\": \"\",\n \"defaultSpec\": \"\",\n \"description\": \"\",\n \"descriptiveName\": \"\",\n \"docMarkdown\": \"\",\n \"externalCategory\": \"\",\n \"externalCategorySequence\": 0,\n \"externalDocHtml\": \"\",\n \"externalDocLink\": \"\",\n \"externalDocMarkdown\": \"\",\n \"g3DocLink\": \"\",\n \"iconLink\": \"\",\n \"isDeprecated\": false,\n \"name\": \"\",\n \"standaloneExternalDocHtml\": \"\",\n \"status\": \"\",\n \"system\": \"\",\n \"tags\": []\n },\n \"paramSpecs\": {\n \"parameters\": [\n {\n \"className\": \"\",\n \"collectionElementClassName\": \"\",\n \"config\": {\n \"descriptivePhrase\": \"\",\n \"helpText\": \"\",\n \"hideDefaultValue\": false,\n \"inputDisplayOption\": \"\",\n \"isHidden\": false,\n \"label\": \"\",\n \"parameterNameOption\": \"\",\n \"subSectionLabel\": \"\",\n \"uiPlaceholderText\": \"\"\n },\n \"dataType\": \"\",\n \"defaultValue\": {},\n \"isDeprecated\": false,\n \"isOutput\": false,\n \"jsonSchema\": \"\",\n \"key\": \"\",\n \"protoDef\": {\n \"fullName\": \"\",\n \"path\": \"\"\n },\n \"required\": false,\n \"validationRule\": {\n \"doubleRange\": {\n \"max\": \"\",\n \"min\": \"\"\n },\n \"intRange\": {\n \"max\": \"\",\n \"min\": \"\"\n },\n \"stringRegex\": {\n \"exclusive\": false,\n \"regex\": \"\"\n }\n }\n }\n ]\n },\n \"stats\": {\n \"dimensions\": {\n \"clientId\": \"\",\n \"enumFilterType\": \"\",\n \"errorEnumString\": \"\",\n \"retryAttempt\": \"\",\n \"taskName\": \"\",\n \"taskNumber\": \"\",\n \"triggerId\": \"\",\n \"warningEnumString\": \"\",\n \"workflowId\": \"\",\n \"workflowName\": \"\"\n },\n \"durationInSeconds\": \"\",\n \"errorRate\": \"\",\n \"qps\": \"\",\n \"warningRate\": \"\"\n },\n \"taskType\": \"\",\n \"uiConfig\": {\n \"taskUiModuleConfigs\": [\n {\n \"moduleId\": \"\"\n }\n ]\n }\n },\n \"taskExecutionStrategy\": \"\",\n \"taskName\": \"\",\n \"taskNumber\": \"\",\n \"taskSpec\": \"\",\n \"taskTemplateName\": \"\",\n \"taskType\": \"\"\n }\n ],\n \"teardown\": {\n \"teardownTaskConfigs\": [\n {\n \"creatorEmail\": \"\",\n \"name\": \"\",\n \"nextTeardownTask\": {\n \"name\": \"\"\n },\n \"parameters\": {\n \"parameters\": [\n {\n \"key\": \"\",\n \"value\": {\n \"booleanArray\": {\n \"booleanValues\": []\n },\n \"booleanValue\": false,\n \"doubleArray\": {\n \"doubleValues\": []\n },\n \"doubleValue\": \"\",\n \"intArray\": {\n \"intValues\": []\n },\n \"intValue\": \"\",\n \"protoArray\": {\n \"protoValues\": [\n {}\n ]\n },\n \"protoValue\": {},\n \"serializedObjectValue\": {\n \"objectValue\": \"\"\n },\n \"stringArray\": {\n \"stringValues\": []\n },\n \"stringValue\": \"\"\n }\n }\n ]\n },\n \"properties\": {\n \"properties\": [\n {\n \"key\": \"\",\n \"value\": {}\n }\n ]\n },\n \"teardownTaskImplementationClassName\": \"\"\n }\n ]\n },\n \"triggerConfigs\": [\n {\n \"alertConfig\": [\n {\n \"aggregationPeriod\": \"\",\n \"alertThreshold\": 0,\n \"disableAlert\": false,\n \"displayName\": \"\",\n \"durationThreshold\": \"\",\n \"metricType\": \"\",\n \"onlyFinalAttempt\": false,\n \"thresholdType\": \"\",\n \"thresholdValue\": {\n \"absolute\": \"\",\n \"percentage\": 0\n }\n }\n ],\n \"cloudSchedulerConfig\": {\n \"cronTab\": \"\",\n \"errorMessage\": \"\",\n \"location\": \"\",\n \"serviceAccountEmail\": \"\"\n },\n \"description\": \"\",\n \"errorCatcherId\": \"\",\n \"label\": \"\",\n \"nextTasksExecutionPolicy\": \"\",\n \"position\": {},\n \"properties\": {},\n \"startTasks\": [\n {}\n ],\n \"triggerId\": \"\",\n \"triggerNumber\": \"\",\n \"triggerType\": \"\"\n }\n ],\n \"triggerConfigsInternal\": [\n {\n \"alertConfig\": [\n {\n \"aggregationPeriod\": \"\",\n \"alertDisabled\": false,\n \"alertName\": \"\",\n \"clientId\": \"\",\n \"durationThresholdMs\": \"\",\n \"errorEnumList\": {},\n \"metricType\": \"\",\n \"numAggregationPeriods\": 0,\n \"onlyFinalAttempt\": false,\n \"playbookUrl\": \"\",\n \"thresholdType\": \"\",\n \"thresholdValue\": {},\n \"warningEnumList\": {}\n }\n ],\n \"cloudSchedulerConfig\": {\n \"cronTab\": \"\",\n \"errorMessage\": \"\",\n \"location\": \"\",\n \"serviceAccountEmail\": \"\"\n },\n \"description\": \"\",\n \"enabledClients\": [],\n \"errorCatcherId\": \"\",\n \"label\": \"\",\n \"nextTasksExecutionPolicy\": \"\",\n \"pauseWorkflowExecutions\": false,\n \"position\": {},\n \"properties\": {},\n \"startTasks\": [\n {}\n ],\n \"triggerCriteria\": {\n \"condition\": \"\",\n \"parameters\": {},\n \"triggerCriteriaTaskImplementationClassName\": \"\"\n },\n \"triggerId\": \"\",\n \"triggerNumber\": \"\",\n \"triggerType\": \"\"\n }\n ],\n \"updateTime\": \"\",\n \"userLabel\": \"\"\n },\n \"parameters\": {},\n \"testMode\": false,\n \"triggerId\": \"\"\n}"
headers = { 'content-type': "application/json" }
conn.request("POST", "/baseUrl/v1/:name:test", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/v1/:name:test"
payload = {
"clientId": "",
"deadlineSecondsTime": "",
"inputParameters": {},
"integrationVersion": {
"createTime": "",
"databasePersistencePolicy": "",
"description": "",
"errorCatcherConfigs": [
{
"description": "",
"errorCatcherId": "",
"errorCatcherNumber": "",
"label": "",
"position": {
"x": 0,
"y": 0
},
"startErrorTasks": [
{
"condition": "",
"description": "",
"displayName": "",
"taskConfigId": "",
"taskId": ""
}
]
}
],
"integrationParameters": [
{
"dataType": "",
"defaultValue": {
"booleanArray": { "booleanValues": [] },
"booleanValue": False,
"doubleArray": { "doubleValues": [] },
"doubleValue": "",
"intArray": { "intValues": [] },
"intValue": "",
"jsonValue": "",
"stringArray": { "stringValues": [] },
"stringValue": ""
},
"displayName": "",
"inputOutputType": "",
"isTransient": False,
"jsonSchema": "",
"key": "",
"producer": "",
"searchable": False
}
],
"integrationParametersInternal": { "parameters": [
{
"attributes": {
"dataType": "",
"defaultValue": {
"booleanValue": False,
"doubleArray": { "values": [] },
"doubleValue": "",
"intArray": { "values": [] },
"intValue": "",
"protoValue": {},
"stringArray": { "values": [] },
"stringValue": ""
},
"isRequired": False,
"isSearchable": False,
"logSettings": {
"logFieldName": "",
"sanitizeOptions": {
"isAlreadySanitized": False,
"logType": [],
"privacy": "",
"sanitizeType": ""
},
"seedPeriod": "",
"seedScope": "",
"shorteningLimits": {
"logAction": "",
"logType": [],
"maxArraySize": 0,
"maxStringLength": 0,
"shortenerType": ""
}
},
"searchable": "",
"taskVisibility": []
},
"children": [],
"dataType": "",
"defaultValue": {
"booleanArray": { "booleanValues": [] },
"booleanValue": False,
"doubleArray": { "doubleValues": [] },
"doubleValue": "",
"intArray": { "intValues": [] },
"intValue": "",
"jsonValue": "",
"protoArray": { "protoValues": [{}] },
"protoValue": {},
"serializedObjectValue": { "objectValue": "" },
"stringArray": { "stringValues": [] },
"stringValue": ""
},
"inOutType": "",
"isTransient": False,
"jsonSchema": "",
"key": "",
"name": "",
"producedBy": {
"elementIdentifier": "",
"elementType": ""
},
"producer": "",
"protoDefName": "",
"protoDefPath": ""
}
] },
"lastModifierEmail": "",
"lockHolder": "",
"name": "",
"origin": "",
"parentTemplateId": "",
"runAsServiceAccount": "",
"snapshotNumber": "",
"state": "",
"status": "",
"taskConfigs": [
{
"description": "",
"displayName": "",
"errorCatcherId": "",
"externalTaskType": "",
"failurePolicy": {
"intervalTime": "",
"maxRetries": 0,
"retryStrategy": ""
},
"jsonValidationOption": "",
"nextTasks": [{}],
"nextTasksExecutionPolicy": "",
"parameters": {},
"position": {},
"successPolicy": { "finalState": "" },
"synchronousCallFailurePolicy": {},
"task": "",
"taskExecutionStrategy": "",
"taskId": "",
"taskTemplate": ""
}
],
"taskConfigsInternal": [
{
"alertConfigs": [
{
"aggregationPeriod": "",
"alertDisabled": False,
"alertName": "",
"clientId": "",
"durationThresholdMs": "",
"errorEnumList": {
"enumStrings": [],
"filterType": ""
},
"metricType": "",
"numAggregationPeriods": 0,
"onlyFinalAttempt": False,
"playbookUrl": "",
"thresholdType": "",
"thresholdValue": {
"absolute": "",
"percentage": 0
},
"warningEnumList": {}
}
],
"createTime": "",
"creatorEmail": "",
"description": "",
"disableStrictTypeValidation": False,
"errorCatcherId": "",
"externalTaskType": "",
"failurePolicy": {
"intervalInSeconds": "",
"maxNumRetries": 0,
"retryStrategy": ""
},
"incomingEdgeCount": 0,
"jsonValidationOption": "",
"label": "",
"lastModifiedTime": "",
"nextTasks": [
{
"combinedConditions": [{ "conditions": [
{
"eventPropertyKey": "",
"operator": "",
"value": {}
}
] }],
"condition": "",
"description": "",
"label": "",
"taskConfigId": "",
"taskNumber": ""
}
],
"nextTasksExecutionPolicy": "",
"parameters": {},
"position": {
"x": 0,
"y": 0
},
"precondition": "",
"preconditionLabel": "",
"rollbackStrategy": {
"parameters": { "parameters": [
{
"dataType": "",
"key": "",
"value": {}
}
] },
"rollbackTaskImplementationClassName": "",
"taskNumbersToRollback": []
},
"successPolicy": { "finalState": "" },
"synchronousCallFailurePolicy": {},
"taskEntity": {
"disabledForVpcSc": False,
"metadata": {
"activeTaskName": "",
"admins": [
{
"googleGroupEmail": "",
"userEmail": ""
}
],
"category": "",
"codeSearchLink": "",
"defaultJsonValidationOption": "",
"defaultSpec": "",
"description": "",
"descriptiveName": "",
"docMarkdown": "",
"externalCategory": "",
"externalCategorySequence": 0,
"externalDocHtml": "",
"externalDocLink": "",
"externalDocMarkdown": "",
"g3DocLink": "",
"iconLink": "",
"isDeprecated": False,
"name": "",
"standaloneExternalDocHtml": "",
"status": "",
"system": "",
"tags": []
},
"paramSpecs": { "parameters": [
{
"className": "",
"collectionElementClassName": "",
"config": {
"descriptivePhrase": "",
"helpText": "",
"hideDefaultValue": False,
"inputDisplayOption": "",
"isHidden": False,
"label": "",
"parameterNameOption": "",
"subSectionLabel": "",
"uiPlaceholderText": ""
},
"dataType": "",
"defaultValue": {},
"isDeprecated": False,
"isOutput": False,
"jsonSchema": "",
"key": "",
"protoDef": {
"fullName": "",
"path": ""
},
"required": False,
"validationRule": {
"doubleRange": {
"max": "",
"min": ""
},
"intRange": {
"max": "",
"min": ""
},
"stringRegex": {
"exclusive": False,
"regex": ""
}
}
}
] },
"stats": {
"dimensions": {
"clientId": "",
"enumFilterType": "",
"errorEnumString": "",
"retryAttempt": "",
"taskName": "",
"taskNumber": "",
"triggerId": "",
"warningEnumString": "",
"workflowId": "",
"workflowName": ""
},
"durationInSeconds": "",
"errorRate": "",
"qps": "",
"warningRate": ""
},
"taskType": "",
"uiConfig": { "taskUiModuleConfigs": [{ "moduleId": "" }] }
},
"taskExecutionStrategy": "",
"taskName": "",
"taskNumber": "",
"taskSpec": "",
"taskTemplateName": "",
"taskType": ""
}
],
"teardown": { "teardownTaskConfigs": [
{
"creatorEmail": "",
"name": "",
"nextTeardownTask": { "name": "" },
"parameters": { "parameters": [
{
"key": "",
"value": {
"booleanArray": { "booleanValues": [] },
"booleanValue": False,
"doubleArray": { "doubleValues": [] },
"doubleValue": "",
"intArray": { "intValues": [] },
"intValue": "",
"protoArray": { "protoValues": [{}] },
"protoValue": {},
"serializedObjectValue": { "objectValue": "" },
"stringArray": { "stringValues": [] },
"stringValue": ""
}
}
] },
"properties": { "properties": [
{
"key": "",
"value": {}
}
] },
"teardownTaskImplementationClassName": ""
}
] },
"triggerConfigs": [
{
"alertConfig": [
{
"aggregationPeriod": "",
"alertThreshold": 0,
"disableAlert": False,
"displayName": "",
"durationThreshold": "",
"metricType": "",
"onlyFinalAttempt": False,
"thresholdType": "",
"thresholdValue": {
"absolute": "",
"percentage": 0
}
}
],
"cloudSchedulerConfig": {
"cronTab": "",
"errorMessage": "",
"location": "",
"serviceAccountEmail": ""
},
"description": "",
"errorCatcherId": "",
"label": "",
"nextTasksExecutionPolicy": "",
"position": {},
"properties": {},
"startTasks": [{}],
"triggerId": "",
"triggerNumber": "",
"triggerType": ""
}
],
"triggerConfigsInternal": [
{
"alertConfig": [
{
"aggregationPeriod": "",
"alertDisabled": False,
"alertName": "",
"clientId": "",
"durationThresholdMs": "",
"errorEnumList": {},
"metricType": "",
"numAggregationPeriods": 0,
"onlyFinalAttempt": False,
"playbookUrl": "",
"thresholdType": "",
"thresholdValue": {},
"warningEnumList": {}
}
],
"cloudSchedulerConfig": {
"cronTab": "",
"errorMessage": "",
"location": "",
"serviceAccountEmail": ""
},
"description": "",
"enabledClients": [],
"errorCatcherId": "",
"label": "",
"nextTasksExecutionPolicy": "",
"pauseWorkflowExecutions": False,
"position": {},
"properties": {},
"startTasks": [{}],
"triggerCriteria": {
"condition": "",
"parameters": {},
"triggerCriteriaTaskImplementationClassName": ""
},
"triggerId": "",
"triggerNumber": "",
"triggerType": ""
}
],
"updateTime": "",
"userLabel": ""
},
"parameters": {},
"testMode": False,
"triggerId": ""
}
headers = {"content-type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.json())
library(httr)
url <- "{{baseUrl}}/v1/:name:test"
payload <- "{\n \"clientId\": \"\",\n \"deadlineSecondsTime\": \"\",\n \"inputParameters\": {},\n \"integrationVersion\": {\n \"createTime\": \"\",\n \"databasePersistencePolicy\": \"\",\n \"description\": \"\",\n \"errorCatcherConfigs\": [\n {\n \"description\": \"\",\n \"errorCatcherId\": \"\",\n \"errorCatcherNumber\": \"\",\n \"label\": \"\",\n \"position\": {\n \"x\": 0,\n \"y\": 0\n },\n \"startErrorTasks\": [\n {\n \"condition\": \"\",\n \"description\": \"\",\n \"displayName\": \"\",\n \"taskConfigId\": \"\",\n \"taskId\": \"\"\n }\n ]\n }\n ],\n \"integrationParameters\": [\n {\n \"dataType\": \"\",\n \"defaultValue\": {\n \"booleanArray\": {\n \"booleanValues\": []\n },\n \"booleanValue\": false,\n \"doubleArray\": {\n \"doubleValues\": []\n },\n \"doubleValue\": \"\",\n \"intArray\": {\n \"intValues\": []\n },\n \"intValue\": \"\",\n \"jsonValue\": \"\",\n \"stringArray\": {\n \"stringValues\": []\n },\n \"stringValue\": \"\"\n },\n \"displayName\": \"\",\n \"inputOutputType\": \"\",\n \"isTransient\": false,\n \"jsonSchema\": \"\",\n \"key\": \"\",\n \"producer\": \"\",\n \"searchable\": false\n }\n ],\n \"integrationParametersInternal\": {\n \"parameters\": [\n {\n \"attributes\": {\n \"dataType\": \"\",\n \"defaultValue\": {\n \"booleanValue\": false,\n \"doubleArray\": {\n \"values\": []\n },\n \"doubleValue\": \"\",\n \"intArray\": {\n \"values\": []\n },\n \"intValue\": \"\",\n \"protoValue\": {},\n \"stringArray\": {\n \"values\": []\n },\n \"stringValue\": \"\"\n },\n \"isRequired\": false,\n \"isSearchable\": false,\n \"logSettings\": {\n \"logFieldName\": \"\",\n \"sanitizeOptions\": {\n \"isAlreadySanitized\": false,\n \"logType\": [],\n \"privacy\": \"\",\n \"sanitizeType\": \"\"\n },\n \"seedPeriod\": \"\",\n \"seedScope\": \"\",\n \"shorteningLimits\": {\n \"logAction\": \"\",\n \"logType\": [],\n \"maxArraySize\": 0,\n \"maxStringLength\": 0,\n \"shortenerType\": \"\"\n }\n },\n \"searchable\": \"\",\n \"taskVisibility\": []\n },\n \"children\": [],\n \"dataType\": \"\",\n \"defaultValue\": {\n \"booleanArray\": {\n \"booleanValues\": []\n },\n \"booleanValue\": false,\n \"doubleArray\": {\n \"doubleValues\": []\n },\n \"doubleValue\": \"\",\n \"intArray\": {\n \"intValues\": []\n },\n \"intValue\": \"\",\n \"jsonValue\": \"\",\n \"protoArray\": {\n \"protoValues\": [\n {}\n ]\n },\n \"protoValue\": {},\n \"serializedObjectValue\": {\n \"objectValue\": \"\"\n },\n \"stringArray\": {\n \"stringValues\": []\n },\n \"stringValue\": \"\"\n },\n \"inOutType\": \"\",\n \"isTransient\": false,\n \"jsonSchema\": \"\",\n \"key\": \"\",\n \"name\": \"\",\n \"producedBy\": {\n \"elementIdentifier\": \"\",\n \"elementType\": \"\"\n },\n \"producer\": \"\",\n \"protoDefName\": \"\",\n \"protoDefPath\": \"\"\n }\n ]\n },\n \"lastModifierEmail\": \"\",\n \"lockHolder\": \"\",\n \"name\": \"\",\n \"origin\": \"\",\n \"parentTemplateId\": \"\",\n \"runAsServiceAccount\": \"\",\n \"snapshotNumber\": \"\",\n \"state\": \"\",\n \"status\": \"\",\n \"taskConfigs\": [\n {\n \"description\": \"\",\n \"displayName\": \"\",\n \"errorCatcherId\": \"\",\n \"externalTaskType\": \"\",\n \"failurePolicy\": {\n \"intervalTime\": \"\",\n \"maxRetries\": 0,\n \"retryStrategy\": \"\"\n },\n \"jsonValidationOption\": \"\",\n \"nextTasks\": [\n {}\n ],\n \"nextTasksExecutionPolicy\": \"\",\n \"parameters\": {},\n \"position\": {},\n \"successPolicy\": {\n \"finalState\": \"\"\n },\n \"synchronousCallFailurePolicy\": {},\n \"task\": \"\",\n \"taskExecutionStrategy\": \"\",\n \"taskId\": \"\",\n \"taskTemplate\": \"\"\n }\n ],\n \"taskConfigsInternal\": [\n {\n \"alertConfigs\": [\n {\n \"aggregationPeriod\": \"\",\n \"alertDisabled\": false,\n \"alertName\": \"\",\n \"clientId\": \"\",\n \"durationThresholdMs\": \"\",\n \"errorEnumList\": {\n \"enumStrings\": [],\n \"filterType\": \"\"\n },\n \"metricType\": \"\",\n \"numAggregationPeriods\": 0,\n \"onlyFinalAttempt\": false,\n \"playbookUrl\": \"\",\n \"thresholdType\": \"\",\n \"thresholdValue\": {\n \"absolute\": \"\",\n \"percentage\": 0\n },\n \"warningEnumList\": {}\n }\n ],\n \"createTime\": \"\",\n \"creatorEmail\": \"\",\n \"description\": \"\",\n \"disableStrictTypeValidation\": false,\n \"errorCatcherId\": \"\",\n \"externalTaskType\": \"\",\n \"failurePolicy\": {\n \"intervalInSeconds\": \"\",\n \"maxNumRetries\": 0,\n \"retryStrategy\": \"\"\n },\n \"incomingEdgeCount\": 0,\n \"jsonValidationOption\": \"\",\n \"label\": \"\",\n \"lastModifiedTime\": \"\",\n \"nextTasks\": [\n {\n \"combinedConditions\": [\n {\n \"conditions\": [\n {\n \"eventPropertyKey\": \"\",\n \"operator\": \"\",\n \"value\": {}\n }\n ]\n }\n ],\n \"condition\": \"\",\n \"description\": \"\",\n \"label\": \"\",\n \"taskConfigId\": \"\",\n \"taskNumber\": \"\"\n }\n ],\n \"nextTasksExecutionPolicy\": \"\",\n \"parameters\": {},\n \"position\": {\n \"x\": 0,\n \"y\": 0\n },\n \"precondition\": \"\",\n \"preconditionLabel\": \"\",\n \"rollbackStrategy\": {\n \"parameters\": {\n \"parameters\": [\n {\n \"dataType\": \"\",\n \"key\": \"\",\n \"value\": {}\n }\n ]\n },\n \"rollbackTaskImplementationClassName\": \"\",\n \"taskNumbersToRollback\": []\n },\n \"successPolicy\": {\n \"finalState\": \"\"\n },\n \"synchronousCallFailurePolicy\": {},\n \"taskEntity\": {\n \"disabledForVpcSc\": false,\n \"metadata\": {\n \"activeTaskName\": \"\",\n \"admins\": [\n {\n \"googleGroupEmail\": \"\",\n \"userEmail\": \"\"\n }\n ],\n \"category\": \"\",\n \"codeSearchLink\": \"\",\n \"defaultJsonValidationOption\": \"\",\n \"defaultSpec\": \"\",\n \"description\": \"\",\n \"descriptiveName\": \"\",\n \"docMarkdown\": \"\",\n \"externalCategory\": \"\",\n \"externalCategorySequence\": 0,\n \"externalDocHtml\": \"\",\n \"externalDocLink\": \"\",\n \"externalDocMarkdown\": \"\",\n \"g3DocLink\": \"\",\n \"iconLink\": \"\",\n \"isDeprecated\": false,\n \"name\": \"\",\n \"standaloneExternalDocHtml\": \"\",\n \"status\": \"\",\n \"system\": \"\",\n \"tags\": []\n },\n \"paramSpecs\": {\n \"parameters\": [\n {\n \"className\": \"\",\n \"collectionElementClassName\": \"\",\n \"config\": {\n \"descriptivePhrase\": \"\",\n \"helpText\": \"\",\n \"hideDefaultValue\": false,\n \"inputDisplayOption\": \"\",\n \"isHidden\": false,\n \"label\": \"\",\n \"parameterNameOption\": \"\",\n \"subSectionLabel\": \"\",\n \"uiPlaceholderText\": \"\"\n },\n \"dataType\": \"\",\n \"defaultValue\": {},\n \"isDeprecated\": false,\n \"isOutput\": false,\n \"jsonSchema\": \"\",\n \"key\": \"\",\n \"protoDef\": {\n \"fullName\": \"\",\n \"path\": \"\"\n },\n \"required\": false,\n \"validationRule\": {\n \"doubleRange\": {\n \"max\": \"\",\n \"min\": \"\"\n },\n \"intRange\": {\n \"max\": \"\",\n \"min\": \"\"\n },\n \"stringRegex\": {\n \"exclusive\": false,\n \"regex\": \"\"\n }\n }\n }\n ]\n },\n \"stats\": {\n \"dimensions\": {\n \"clientId\": \"\",\n \"enumFilterType\": \"\",\n \"errorEnumString\": \"\",\n \"retryAttempt\": \"\",\n \"taskName\": \"\",\n \"taskNumber\": \"\",\n \"triggerId\": \"\",\n \"warningEnumString\": \"\",\n \"workflowId\": \"\",\n \"workflowName\": \"\"\n },\n \"durationInSeconds\": \"\",\n \"errorRate\": \"\",\n \"qps\": \"\",\n \"warningRate\": \"\"\n },\n \"taskType\": \"\",\n \"uiConfig\": {\n \"taskUiModuleConfigs\": [\n {\n \"moduleId\": \"\"\n }\n ]\n }\n },\n \"taskExecutionStrategy\": \"\",\n \"taskName\": \"\",\n \"taskNumber\": \"\",\n \"taskSpec\": \"\",\n \"taskTemplateName\": \"\",\n \"taskType\": \"\"\n }\n ],\n \"teardown\": {\n \"teardownTaskConfigs\": [\n {\n \"creatorEmail\": \"\",\n \"name\": \"\",\n \"nextTeardownTask\": {\n \"name\": \"\"\n },\n \"parameters\": {\n \"parameters\": [\n {\n \"key\": \"\",\n \"value\": {\n \"booleanArray\": {\n \"booleanValues\": []\n },\n \"booleanValue\": false,\n \"doubleArray\": {\n \"doubleValues\": []\n },\n \"doubleValue\": \"\",\n \"intArray\": {\n \"intValues\": []\n },\n \"intValue\": \"\",\n \"protoArray\": {\n \"protoValues\": [\n {}\n ]\n },\n \"protoValue\": {},\n \"serializedObjectValue\": {\n \"objectValue\": \"\"\n },\n \"stringArray\": {\n \"stringValues\": []\n },\n \"stringValue\": \"\"\n }\n }\n ]\n },\n \"properties\": {\n \"properties\": [\n {\n \"key\": \"\",\n \"value\": {}\n }\n ]\n },\n \"teardownTaskImplementationClassName\": \"\"\n }\n ]\n },\n \"triggerConfigs\": [\n {\n \"alertConfig\": [\n {\n \"aggregationPeriod\": \"\",\n \"alertThreshold\": 0,\n \"disableAlert\": false,\n \"displayName\": \"\",\n \"durationThreshold\": \"\",\n \"metricType\": \"\",\n \"onlyFinalAttempt\": false,\n \"thresholdType\": \"\",\n \"thresholdValue\": {\n \"absolute\": \"\",\n \"percentage\": 0\n }\n }\n ],\n \"cloudSchedulerConfig\": {\n \"cronTab\": \"\",\n \"errorMessage\": \"\",\n \"location\": \"\",\n \"serviceAccountEmail\": \"\"\n },\n \"description\": \"\",\n \"errorCatcherId\": \"\",\n \"label\": \"\",\n \"nextTasksExecutionPolicy\": \"\",\n \"position\": {},\n \"properties\": {},\n \"startTasks\": [\n {}\n ],\n \"triggerId\": \"\",\n \"triggerNumber\": \"\",\n \"triggerType\": \"\"\n }\n ],\n \"triggerConfigsInternal\": [\n {\n \"alertConfig\": [\n {\n \"aggregationPeriod\": \"\",\n \"alertDisabled\": false,\n \"alertName\": \"\",\n \"clientId\": \"\",\n \"durationThresholdMs\": \"\",\n \"errorEnumList\": {},\n \"metricType\": \"\",\n \"numAggregationPeriods\": 0,\n \"onlyFinalAttempt\": false,\n \"playbookUrl\": \"\",\n \"thresholdType\": \"\",\n \"thresholdValue\": {},\n \"warningEnumList\": {}\n }\n ],\n \"cloudSchedulerConfig\": {\n \"cronTab\": \"\",\n \"errorMessage\": \"\",\n \"location\": \"\",\n \"serviceAccountEmail\": \"\"\n },\n \"description\": \"\",\n \"enabledClients\": [],\n \"errorCatcherId\": \"\",\n \"label\": \"\",\n \"nextTasksExecutionPolicy\": \"\",\n \"pauseWorkflowExecutions\": false,\n \"position\": {},\n \"properties\": {},\n \"startTasks\": [\n {}\n ],\n \"triggerCriteria\": {\n \"condition\": \"\",\n \"parameters\": {},\n \"triggerCriteriaTaskImplementationClassName\": \"\"\n },\n \"triggerId\": \"\",\n \"triggerNumber\": \"\",\n \"triggerType\": \"\"\n }\n ],\n \"updateTime\": \"\",\n \"userLabel\": \"\"\n },\n \"parameters\": {},\n \"testMode\": false,\n \"triggerId\": \"\"\n}"
encode <- "json"
response <- VERB("POST", url, body = payload, content_type("application/json"), encode = encode)
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/v1/:name:test")
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 \"clientId\": \"\",\n \"deadlineSecondsTime\": \"\",\n \"inputParameters\": {},\n \"integrationVersion\": {\n \"createTime\": \"\",\n \"databasePersistencePolicy\": \"\",\n \"description\": \"\",\n \"errorCatcherConfigs\": [\n {\n \"description\": \"\",\n \"errorCatcherId\": \"\",\n \"errorCatcherNumber\": \"\",\n \"label\": \"\",\n \"position\": {\n \"x\": 0,\n \"y\": 0\n },\n \"startErrorTasks\": [\n {\n \"condition\": \"\",\n \"description\": \"\",\n \"displayName\": \"\",\n \"taskConfigId\": \"\",\n \"taskId\": \"\"\n }\n ]\n }\n ],\n \"integrationParameters\": [\n {\n \"dataType\": \"\",\n \"defaultValue\": {\n \"booleanArray\": {\n \"booleanValues\": []\n },\n \"booleanValue\": false,\n \"doubleArray\": {\n \"doubleValues\": []\n },\n \"doubleValue\": \"\",\n \"intArray\": {\n \"intValues\": []\n },\n \"intValue\": \"\",\n \"jsonValue\": \"\",\n \"stringArray\": {\n \"stringValues\": []\n },\n \"stringValue\": \"\"\n },\n \"displayName\": \"\",\n \"inputOutputType\": \"\",\n \"isTransient\": false,\n \"jsonSchema\": \"\",\n \"key\": \"\",\n \"producer\": \"\",\n \"searchable\": false\n }\n ],\n \"integrationParametersInternal\": {\n \"parameters\": [\n {\n \"attributes\": {\n \"dataType\": \"\",\n \"defaultValue\": {\n \"booleanValue\": false,\n \"doubleArray\": {\n \"values\": []\n },\n \"doubleValue\": \"\",\n \"intArray\": {\n \"values\": []\n },\n \"intValue\": \"\",\n \"protoValue\": {},\n \"stringArray\": {\n \"values\": []\n },\n \"stringValue\": \"\"\n },\n \"isRequired\": false,\n \"isSearchable\": false,\n \"logSettings\": {\n \"logFieldName\": \"\",\n \"sanitizeOptions\": {\n \"isAlreadySanitized\": false,\n \"logType\": [],\n \"privacy\": \"\",\n \"sanitizeType\": \"\"\n },\n \"seedPeriod\": \"\",\n \"seedScope\": \"\",\n \"shorteningLimits\": {\n \"logAction\": \"\",\n \"logType\": [],\n \"maxArraySize\": 0,\n \"maxStringLength\": 0,\n \"shortenerType\": \"\"\n }\n },\n \"searchable\": \"\",\n \"taskVisibility\": []\n },\n \"children\": [],\n \"dataType\": \"\",\n \"defaultValue\": {\n \"booleanArray\": {\n \"booleanValues\": []\n },\n \"booleanValue\": false,\n \"doubleArray\": {\n \"doubleValues\": []\n },\n \"doubleValue\": \"\",\n \"intArray\": {\n \"intValues\": []\n },\n \"intValue\": \"\",\n \"jsonValue\": \"\",\n \"protoArray\": {\n \"protoValues\": [\n {}\n ]\n },\n \"protoValue\": {},\n \"serializedObjectValue\": {\n \"objectValue\": \"\"\n },\n \"stringArray\": {\n \"stringValues\": []\n },\n \"stringValue\": \"\"\n },\n \"inOutType\": \"\",\n \"isTransient\": false,\n \"jsonSchema\": \"\",\n \"key\": \"\",\n \"name\": \"\",\n \"producedBy\": {\n \"elementIdentifier\": \"\",\n \"elementType\": \"\"\n },\n \"producer\": \"\",\n \"protoDefName\": \"\",\n \"protoDefPath\": \"\"\n }\n ]\n },\n \"lastModifierEmail\": \"\",\n \"lockHolder\": \"\",\n \"name\": \"\",\n \"origin\": \"\",\n \"parentTemplateId\": \"\",\n \"runAsServiceAccount\": \"\",\n \"snapshotNumber\": \"\",\n \"state\": \"\",\n \"status\": \"\",\n \"taskConfigs\": [\n {\n \"description\": \"\",\n \"displayName\": \"\",\n \"errorCatcherId\": \"\",\n \"externalTaskType\": \"\",\n \"failurePolicy\": {\n \"intervalTime\": \"\",\n \"maxRetries\": 0,\n \"retryStrategy\": \"\"\n },\n \"jsonValidationOption\": \"\",\n \"nextTasks\": [\n {}\n ],\n \"nextTasksExecutionPolicy\": \"\",\n \"parameters\": {},\n \"position\": {},\n \"successPolicy\": {\n \"finalState\": \"\"\n },\n \"synchronousCallFailurePolicy\": {},\n \"task\": \"\",\n \"taskExecutionStrategy\": \"\",\n \"taskId\": \"\",\n \"taskTemplate\": \"\"\n }\n ],\n \"taskConfigsInternal\": [\n {\n \"alertConfigs\": [\n {\n \"aggregationPeriod\": \"\",\n \"alertDisabled\": false,\n \"alertName\": \"\",\n \"clientId\": \"\",\n \"durationThresholdMs\": \"\",\n \"errorEnumList\": {\n \"enumStrings\": [],\n \"filterType\": \"\"\n },\n \"metricType\": \"\",\n \"numAggregationPeriods\": 0,\n \"onlyFinalAttempt\": false,\n \"playbookUrl\": \"\",\n \"thresholdType\": \"\",\n \"thresholdValue\": {\n \"absolute\": \"\",\n \"percentage\": 0\n },\n \"warningEnumList\": {}\n }\n ],\n \"createTime\": \"\",\n \"creatorEmail\": \"\",\n \"description\": \"\",\n \"disableStrictTypeValidation\": false,\n \"errorCatcherId\": \"\",\n \"externalTaskType\": \"\",\n \"failurePolicy\": {\n \"intervalInSeconds\": \"\",\n \"maxNumRetries\": 0,\n \"retryStrategy\": \"\"\n },\n \"incomingEdgeCount\": 0,\n \"jsonValidationOption\": \"\",\n \"label\": \"\",\n \"lastModifiedTime\": \"\",\n \"nextTasks\": [\n {\n \"combinedConditions\": [\n {\n \"conditions\": [\n {\n \"eventPropertyKey\": \"\",\n \"operator\": \"\",\n \"value\": {}\n }\n ]\n }\n ],\n \"condition\": \"\",\n \"description\": \"\",\n \"label\": \"\",\n \"taskConfigId\": \"\",\n \"taskNumber\": \"\"\n }\n ],\n \"nextTasksExecutionPolicy\": \"\",\n \"parameters\": {},\n \"position\": {\n \"x\": 0,\n \"y\": 0\n },\n \"precondition\": \"\",\n \"preconditionLabel\": \"\",\n \"rollbackStrategy\": {\n \"parameters\": {\n \"parameters\": [\n {\n \"dataType\": \"\",\n \"key\": \"\",\n \"value\": {}\n }\n ]\n },\n \"rollbackTaskImplementationClassName\": \"\",\n \"taskNumbersToRollback\": []\n },\n \"successPolicy\": {\n \"finalState\": \"\"\n },\n \"synchronousCallFailurePolicy\": {},\n \"taskEntity\": {\n \"disabledForVpcSc\": false,\n \"metadata\": {\n \"activeTaskName\": \"\",\n \"admins\": [\n {\n \"googleGroupEmail\": \"\",\n \"userEmail\": \"\"\n }\n ],\n \"category\": \"\",\n \"codeSearchLink\": \"\",\n \"defaultJsonValidationOption\": \"\",\n \"defaultSpec\": \"\",\n \"description\": \"\",\n \"descriptiveName\": \"\",\n \"docMarkdown\": \"\",\n \"externalCategory\": \"\",\n \"externalCategorySequence\": 0,\n \"externalDocHtml\": \"\",\n \"externalDocLink\": \"\",\n \"externalDocMarkdown\": \"\",\n \"g3DocLink\": \"\",\n \"iconLink\": \"\",\n \"isDeprecated\": false,\n \"name\": \"\",\n \"standaloneExternalDocHtml\": \"\",\n \"status\": \"\",\n \"system\": \"\",\n \"tags\": []\n },\n \"paramSpecs\": {\n \"parameters\": [\n {\n \"className\": \"\",\n \"collectionElementClassName\": \"\",\n \"config\": {\n \"descriptivePhrase\": \"\",\n \"helpText\": \"\",\n \"hideDefaultValue\": false,\n \"inputDisplayOption\": \"\",\n \"isHidden\": false,\n \"label\": \"\",\n \"parameterNameOption\": \"\",\n \"subSectionLabel\": \"\",\n \"uiPlaceholderText\": \"\"\n },\n \"dataType\": \"\",\n \"defaultValue\": {},\n \"isDeprecated\": false,\n \"isOutput\": false,\n \"jsonSchema\": \"\",\n \"key\": \"\",\n \"protoDef\": {\n \"fullName\": \"\",\n \"path\": \"\"\n },\n \"required\": false,\n \"validationRule\": {\n \"doubleRange\": {\n \"max\": \"\",\n \"min\": \"\"\n },\n \"intRange\": {\n \"max\": \"\",\n \"min\": \"\"\n },\n \"stringRegex\": {\n \"exclusive\": false,\n \"regex\": \"\"\n }\n }\n }\n ]\n },\n \"stats\": {\n \"dimensions\": {\n \"clientId\": \"\",\n \"enumFilterType\": \"\",\n \"errorEnumString\": \"\",\n \"retryAttempt\": \"\",\n \"taskName\": \"\",\n \"taskNumber\": \"\",\n \"triggerId\": \"\",\n \"warningEnumString\": \"\",\n \"workflowId\": \"\",\n \"workflowName\": \"\"\n },\n \"durationInSeconds\": \"\",\n \"errorRate\": \"\",\n \"qps\": \"\",\n \"warningRate\": \"\"\n },\n \"taskType\": \"\",\n \"uiConfig\": {\n \"taskUiModuleConfigs\": [\n {\n \"moduleId\": \"\"\n }\n ]\n }\n },\n \"taskExecutionStrategy\": \"\",\n \"taskName\": \"\",\n \"taskNumber\": \"\",\n \"taskSpec\": \"\",\n \"taskTemplateName\": \"\",\n \"taskType\": \"\"\n }\n ],\n \"teardown\": {\n \"teardownTaskConfigs\": [\n {\n \"creatorEmail\": \"\",\n \"name\": \"\",\n \"nextTeardownTask\": {\n \"name\": \"\"\n },\n \"parameters\": {\n \"parameters\": [\n {\n \"key\": \"\",\n \"value\": {\n \"booleanArray\": {\n \"booleanValues\": []\n },\n \"booleanValue\": false,\n \"doubleArray\": {\n \"doubleValues\": []\n },\n \"doubleValue\": \"\",\n \"intArray\": {\n \"intValues\": []\n },\n \"intValue\": \"\",\n \"protoArray\": {\n \"protoValues\": [\n {}\n ]\n },\n \"protoValue\": {},\n \"serializedObjectValue\": {\n \"objectValue\": \"\"\n },\n \"stringArray\": {\n \"stringValues\": []\n },\n \"stringValue\": \"\"\n }\n }\n ]\n },\n \"properties\": {\n \"properties\": [\n {\n \"key\": \"\",\n \"value\": {}\n }\n ]\n },\n \"teardownTaskImplementationClassName\": \"\"\n }\n ]\n },\n \"triggerConfigs\": [\n {\n \"alertConfig\": [\n {\n \"aggregationPeriod\": \"\",\n \"alertThreshold\": 0,\n \"disableAlert\": false,\n \"displayName\": \"\",\n \"durationThreshold\": \"\",\n \"metricType\": \"\",\n \"onlyFinalAttempt\": false,\n \"thresholdType\": \"\",\n \"thresholdValue\": {\n \"absolute\": \"\",\n \"percentage\": 0\n }\n }\n ],\n \"cloudSchedulerConfig\": {\n \"cronTab\": \"\",\n \"errorMessage\": \"\",\n \"location\": \"\",\n \"serviceAccountEmail\": \"\"\n },\n \"description\": \"\",\n \"errorCatcherId\": \"\",\n \"label\": \"\",\n \"nextTasksExecutionPolicy\": \"\",\n \"position\": {},\n \"properties\": {},\n \"startTasks\": [\n {}\n ],\n \"triggerId\": \"\",\n \"triggerNumber\": \"\",\n \"triggerType\": \"\"\n }\n ],\n \"triggerConfigsInternal\": [\n {\n \"alertConfig\": [\n {\n \"aggregationPeriod\": \"\",\n \"alertDisabled\": false,\n \"alertName\": \"\",\n \"clientId\": \"\",\n \"durationThresholdMs\": \"\",\n \"errorEnumList\": {},\n \"metricType\": \"\",\n \"numAggregationPeriods\": 0,\n \"onlyFinalAttempt\": false,\n \"playbookUrl\": \"\",\n \"thresholdType\": \"\",\n \"thresholdValue\": {},\n \"warningEnumList\": {}\n }\n ],\n \"cloudSchedulerConfig\": {\n \"cronTab\": \"\",\n \"errorMessage\": \"\",\n \"location\": \"\",\n \"serviceAccountEmail\": \"\"\n },\n \"description\": \"\",\n \"enabledClients\": [],\n \"errorCatcherId\": \"\",\n \"label\": \"\",\n \"nextTasksExecutionPolicy\": \"\",\n \"pauseWorkflowExecutions\": false,\n \"position\": {},\n \"properties\": {},\n \"startTasks\": [\n {}\n ],\n \"triggerCriteria\": {\n \"condition\": \"\",\n \"parameters\": {},\n \"triggerCriteriaTaskImplementationClassName\": \"\"\n },\n \"triggerId\": \"\",\n \"triggerNumber\": \"\",\n \"triggerType\": \"\"\n }\n ],\n \"updateTime\": \"\",\n \"userLabel\": \"\"\n },\n \"parameters\": {},\n \"testMode\": false,\n \"triggerId\": \"\"\n}"
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
headers: {'Content-Type' => 'application/json'}
)
response = conn.post('/baseUrl/v1/:name:test') do |req|
req.body = "{\n \"clientId\": \"\",\n \"deadlineSecondsTime\": \"\",\n \"inputParameters\": {},\n \"integrationVersion\": {\n \"createTime\": \"\",\n \"databasePersistencePolicy\": \"\",\n \"description\": \"\",\n \"errorCatcherConfigs\": [\n {\n \"description\": \"\",\n \"errorCatcherId\": \"\",\n \"errorCatcherNumber\": \"\",\n \"label\": \"\",\n \"position\": {\n \"x\": 0,\n \"y\": 0\n },\n \"startErrorTasks\": [\n {\n \"condition\": \"\",\n \"description\": \"\",\n \"displayName\": \"\",\n \"taskConfigId\": \"\",\n \"taskId\": \"\"\n }\n ]\n }\n ],\n \"integrationParameters\": [\n {\n \"dataType\": \"\",\n \"defaultValue\": {\n \"booleanArray\": {\n \"booleanValues\": []\n },\n \"booleanValue\": false,\n \"doubleArray\": {\n \"doubleValues\": []\n },\n \"doubleValue\": \"\",\n \"intArray\": {\n \"intValues\": []\n },\n \"intValue\": \"\",\n \"jsonValue\": \"\",\n \"stringArray\": {\n \"stringValues\": []\n },\n \"stringValue\": \"\"\n },\n \"displayName\": \"\",\n \"inputOutputType\": \"\",\n \"isTransient\": false,\n \"jsonSchema\": \"\",\n \"key\": \"\",\n \"producer\": \"\",\n \"searchable\": false\n }\n ],\n \"integrationParametersInternal\": {\n \"parameters\": [\n {\n \"attributes\": {\n \"dataType\": \"\",\n \"defaultValue\": {\n \"booleanValue\": false,\n \"doubleArray\": {\n \"values\": []\n },\n \"doubleValue\": \"\",\n \"intArray\": {\n \"values\": []\n },\n \"intValue\": \"\",\n \"protoValue\": {},\n \"stringArray\": {\n \"values\": []\n },\n \"stringValue\": \"\"\n },\n \"isRequired\": false,\n \"isSearchable\": false,\n \"logSettings\": {\n \"logFieldName\": \"\",\n \"sanitizeOptions\": {\n \"isAlreadySanitized\": false,\n \"logType\": [],\n \"privacy\": \"\",\n \"sanitizeType\": \"\"\n },\n \"seedPeriod\": \"\",\n \"seedScope\": \"\",\n \"shorteningLimits\": {\n \"logAction\": \"\",\n \"logType\": [],\n \"maxArraySize\": 0,\n \"maxStringLength\": 0,\n \"shortenerType\": \"\"\n }\n },\n \"searchable\": \"\",\n \"taskVisibility\": []\n },\n \"children\": [],\n \"dataType\": \"\",\n \"defaultValue\": {\n \"booleanArray\": {\n \"booleanValues\": []\n },\n \"booleanValue\": false,\n \"doubleArray\": {\n \"doubleValues\": []\n },\n \"doubleValue\": \"\",\n \"intArray\": {\n \"intValues\": []\n },\n \"intValue\": \"\",\n \"jsonValue\": \"\",\n \"protoArray\": {\n \"protoValues\": [\n {}\n ]\n },\n \"protoValue\": {},\n \"serializedObjectValue\": {\n \"objectValue\": \"\"\n },\n \"stringArray\": {\n \"stringValues\": []\n },\n \"stringValue\": \"\"\n },\n \"inOutType\": \"\",\n \"isTransient\": false,\n \"jsonSchema\": \"\",\n \"key\": \"\",\n \"name\": \"\",\n \"producedBy\": {\n \"elementIdentifier\": \"\",\n \"elementType\": \"\"\n },\n \"producer\": \"\",\n \"protoDefName\": \"\",\n \"protoDefPath\": \"\"\n }\n ]\n },\n \"lastModifierEmail\": \"\",\n \"lockHolder\": \"\",\n \"name\": \"\",\n \"origin\": \"\",\n \"parentTemplateId\": \"\",\n \"runAsServiceAccount\": \"\",\n \"snapshotNumber\": \"\",\n \"state\": \"\",\n \"status\": \"\",\n \"taskConfigs\": [\n {\n \"description\": \"\",\n \"displayName\": \"\",\n \"errorCatcherId\": \"\",\n \"externalTaskType\": \"\",\n \"failurePolicy\": {\n \"intervalTime\": \"\",\n \"maxRetries\": 0,\n \"retryStrategy\": \"\"\n },\n \"jsonValidationOption\": \"\",\n \"nextTasks\": [\n {}\n ],\n \"nextTasksExecutionPolicy\": \"\",\n \"parameters\": {},\n \"position\": {},\n \"successPolicy\": {\n \"finalState\": \"\"\n },\n \"synchronousCallFailurePolicy\": {},\n \"task\": \"\",\n \"taskExecutionStrategy\": \"\",\n \"taskId\": \"\",\n \"taskTemplate\": \"\"\n }\n ],\n \"taskConfigsInternal\": [\n {\n \"alertConfigs\": [\n {\n \"aggregationPeriod\": \"\",\n \"alertDisabled\": false,\n \"alertName\": \"\",\n \"clientId\": \"\",\n \"durationThresholdMs\": \"\",\n \"errorEnumList\": {\n \"enumStrings\": [],\n \"filterType\": \"\"\n },\n \"metricType\": \"\",\n \"numAggregationPeriods\": 0,\n \"onlyFinalAttempt\": false,\n \"playbookUrl\": \"\",\n \"thresholdType\": \"\",\n \"thresholdValue\": {\n \"absolute\": \"\",\n \"percentage\": 0\n },\n \"warningEnumList\": {}\n }\n ],\n \"createTime\": \"\",\n \"creatorEmail\": \"\",\n \"description\": \"\",\n \"disableStrictTypeValidation\": false,\n \"errorCatcherId\": \"\",\n \"externalTaskType\": \"\",\n \"failurePolicy\": {\n \"intervalInSeconds\": \"\",\n \"maxNumRetries\": 0,\n \"retryStrategy\": \"\"\n },\n \"incomingEdgeCount\": 0,\n \"jsonValidationOption\": \"\",\n \"label\": \"\",\n \"lastModifiedTime\": \"\",\n \"nextTasks\": [\n {\n \"combinedConditions\": [\n {\n \"conditions\": [\n {\n \"eventPropertyKey\": \"\",\n \"operator\": \"\",\n \"value\": {}\n }\n ]\n }\n ],\n \"condition\": \"\",\n \"description\": \"\",\n \"label\": \"\",\n \"taskConfigId\": \"\",\n \"taskNumber\": \"\"\n }\n ],\n \"nextTasksExecutionPolicy\": \"\",\n \"parameters\": {},\n \"position\": {\n \"x\": 0,\n \"y\": 0\n },\n \"precondition\": \"\",\n \"preconditionLabel\": \"\",\n \"rollbackStrategy\": {\n \"parameters\": {\n \"parameters\": [\n {\n \"dataType\": \"\",\n \"key\": \"\",\n \"value\": {}\n }\n ]\n },\n \"rollbackTaskImplementationClassName\": \"\",\n \"taskNumbersToRollback\": []\n },\n \"successPolicy\": {\n \"finalState\": \"\"\n },\n \"synchronousCallFailurePolicy\": {},\n \"taskEntity\": {\n \"disabledForVpcSc\": false,\n \"metadata\": {\n \"activeTaskName\": \"\",\n \"admins\": [\n {\n \"googleGroupEmail\": \"\",\n \"userEmail\": \"\"\n }\n ],\n \"category\": \"\",\n \"codeSearchLink\": \"\",\n \"defaultJsonValidationOption\": \"\",\n \"defaultSpec\": \"\",\n \"description\": \"\",\n \"descriptiveName\": \"\",\n \"docMarkdown\": \"\",\n \"externalCategory\": \"\",\n \"externalCategorySequence\": 0,\n \"externalDocHtml\": \"\",\n \"externalDocLink\": \"\",\n \"externalDocMarkdown\": \"\",\n \"g3DocLink\": \"\",\n \"iconLink\": \"\",\n \"isDeprecated\": false,\n \"name\": \"\",\n \"standaloneExternalDocHtml\": \"\",\n \"status\": \"\",\n \"system\": \"\",\n \"tags\": []\n },\n \"paramSpecs\": {\n \"parameters\": [\n {\n \"className\": \"\",\n \"collectionElementClassName\": \"\",\n \"config\": {\n \"descriptivePhrase\": \"\",\n \"helpText\": \"\",\n \"hideDefaultValue\": false,\n \"inputDisplayOption\": \"\",\n \"isHidden\": false,\n \"label\": \"\",\n \"parameterNameOption\": \"\",\n \"subSectionLabel\": \"\",\n \"uiPlaceholderText\": \"\"\n },\n \"dataType\": \"\",\n \"defaultValue\": {},\n \"isDeprecated\": false,\n \"isOutput\": false,\n \"jsonSchema\": \"\",\n \"key\": \"\",\n \"protoDef\": {\n \"fullName\": \"\",\n \"path\": \"\"\n },\n \"required\": false,\n \"validationRule\": {\n \"doubleRange\": {\n \"max\": \"\",\n \"min\": \"\"\n },\n \"intRange\": {\n \"max\": \"\",\n \"min\": \"\"\n },\n \"stringRegex\": {\n \"exclusive\": false,\n \"regex\": \"\"\n }\n }\n }\n ]\n },\n \"stats\": {\n \"dimensions\": {\n \"clientId\": \"\",\n \"enumFilterType\": \"\",\n \"errorEnumString\": \"\",\n \"retryAttempt\": \"\",\n \"taskName\": \"\",\n \"taskNumber\": \"\",\n \"triggerId\": \"\",\n \"warningEnumString\": \"\",\n \"workflowId\": \"\",\n \"workflowName\": \"\"\n },\n \"durationInSeconds\": \"\",\n \"errorRate\": \"\",\n \"qps\": \"\",\n \"warningRate\": \"\"\n },\n \"taskType\": \"\",\n \"uiConfig\": {\n \"taskUiModuleConfigs\": [\n {\n \"moduleId\": \"\"\n }\n ]\n }\n },\n \"taskExecutionStrategy\": \"\",\n \"taskName\": \"\",\n \"taskNumber\": \"\",\n \"taskSpec\": \"\",\n \"taskTemplateName\": \"\",\n \"taskType\": \"\"\n }\n ],\n \"teardown\": {\n \"teardownTaskConfigs\": [\n {\n \"creatorEmail\": \"\",\n \"name\": \"\",\n \"nextTeardownTask\": {\n \"name\": \"\"\n },\n \"parameters\": {\n \"parameters\": [\n {\n \"key\": \"\",\n \"value\": {\n \"booleanArray\": {\n \"booleanValues\": []\n },\n \"booleanValue\": false,\n \"doubleArray\": {\n \"doubleValues\": []\n },\n \"doubleValue\": \"\",\n \"intArray\": {\n \"intValues\": []\n },\n \"intValue\": \"\",\n \"protoArray\": {\n \"protoValues\": [\n {}\n ]\n },\n \"protoValue\": {},\n \"serializedObjectValue\": {\n \"objectValue\": \"\"\n },\n \"stringArray\": {\n \"stringValues\": []\n },\n \"stringValue\": \"\"\n }\n }\n ]\n },\n \"properties\": {\n \"properties\": [\n {\n \"key\": \"\",\n \"value\": {}\n }\n ]\n },\n \"teardownTaskImplementationClassName\": \"\"\n }\n ]\n },\n \"triggerConfigs\": [\n {\n \"alertConfig\": [\n {\n \"aggregationPeriod\": \"\",\n \"alertThreshold\": 0,\n \"disableAlert\": false,\n \"displayName\": \"\",\n \"durationThreshold\": \"\",\n \"metricType\": \"\",\n \"onlyFinalAttempt\": false,\n \"thresholdType\": \"\",\n \"thresholdValue\": {\n \"absolute\": \"\",\n \"percentage\": 0\n }\n }\n ],\n \"cloudSchedulerConfig\": {\n \"cronTab\": \"\",\n \"errorMessage\": \"\",\n \"location\": \"\",\n \"serviceAccountEmail\": \"\"\n },\n \"description\": \"\",\n \"errorCatcherId\": \"\",\n \"label\": \"\",\n \"nextTasksExecutionPolicy\": \"\",\n \"position\": {},\n \"properties\": {},\n \"startTasks\": [\n {}\n ],\n \"triggerId\": \"\",\n \"triggerNumber\": \"\",\n \"triggerType\": \"\"\n }\n ],\n \"triggerConfigsInternal\": [\n {\n \"alertConfig\": [\n {\n \"aggregationPeriod\": \"\",\n \"alertDisabled\": false,\n \"alertName\": \"\",\n \"clientId\": \"\",\n \"durationThresholdMs\": \"\",\n \"errorEnumList\": {},\n \"metricType\": \"\",\n \"numAggregationPeriods\": 0,\n \"onlyFinalAttempt\": false,\n \"playbookUrl\": \"\",\n \"thresholdType\": \"\",\n \"thresholdValue\": {},\n \"warningEnumList\": {}\n }\n ],\n \"cloudSchedulerConfig\": {\n \"cronTab\": \"\",\n \"errorMessage\": \"\",\n \"location\": \"\",\n \"serviceAccountEmail\": \"\"\n },\n \"description\": \"\",\n \"enabledClients\": [],\n \"errorCatcherId\": \"\",\n \"label\": \"\",\n \"nextTasksExecutionPolicy\": \"\",\n \"pauseWorkflowExecutions\": false,\n \"position\": {},\n \"properties\": {},\n \"startTasks\": [\n {}\n ],\n \"triggerCriteria\": {\n \"condition\": \"\",\n \"parameters\": {},\n \"triggerCriteriaTaskImplementationClassName\": \"\"\n },\n \"triggerId\": \"\",\n \"triggerNumber\": \"\",\n \"triggerType\": \"\"\n }\n ],\n \"updateTime\": \"\",\n \"userLabel\": \"\"\n },\n \"parameters\": {},\n \"testMode\": false,\n \"triggerId\": \"\"\n}"
end
puts response.status
puts response.body
use serde_json::json;
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/v1/:name:test";
let payload = json!({
"clientId": "",
"deadlineSecondsTime": "",
"inputParameters": json!({}),
"integrationVersion": json!({
"createTime": "",
"databasePersistencePolicy": "",
"description": "",
"errorCatcherConfigs": (
json!({
"description": "",
"errorCatcherId": "",
"errorCatcherNumber": "",
"label": "",
"position": json!({
"x": 0,
"y": 0
}),
"startErrorTasks": (
json!({
"condition": "",
"description": "",
"displayName": "",
"taskConfigId": "",
"taskId": ""
})
)
})
),
"integrationParameters": (
json!({
"dataType": "",
"defaultValue": json!({
"booleanArray": json!({"booleanValues": ()}),
"booleanValue": false,
"doubleArray": json!({"doubleValues": ()}),
"doubleValue": "",
"intArray": json!({"intValues": ()}),
"intValue": "",
"jsonValue": "",
"stringArray": json!({"stringValues": ()}),
"stringValue": ""
}),
"displayName": "",
"inputOutputType": "",
"isTransient": false,
"jsonSchema": "",
"key": "",
"producer": "",
"searchable": false
})
),
"integrationParametersInternal": json!({"parameters": (
json!({
"attributes": json!({
"dataType": "",
"defaultValue": json!({
"booleanValue": false,
"doubleArray": json!({"values": ()}),
"doubleValue": "",
"intArray": json!({"values": ()}),
"intValue": "",
"protoValue": json!({}),
"stringArray": json!({"values": ()}),
"stringValue": ""
}),
"isRequired": false,
"isSearchable": false,
"logSettings": json!({
"logFieldName": "",
"sanitizeOptions": json!({
"isAlreadySanitized": false,
"logType": (),
"privacy": "",
"sanitizeType": ""
}),
"seedPeriod": "",
"seedScope": "",
"shorteningLimits": json!({
"logAction": "",
"logType": (),
"maxArraySize": 0,
"maxStringLength": 0,
"shortenerType": ""
})
}),
"searchable": "",
"taskVisibility": ()
}),
"children": (),
"dataType": "",
"defaultValue": json!({
"booleanArray": json!({"booleanValues": ()}),
"booleanValue": false,
"doubleArray": json!({"doubleValues": ()}),
"doubleValue": "",
"intArray": json!({"intValues": ()}),
"intValue": "",
"jsonValue": "",
"protoArray": json!({"protoValues": (json!({}))}),
"protoValue": json!({}),
"serializedObjectValue": json!({"objectValue": ""}),
"stringArray": json!({"stringValues": ()}),
"stringValue": ""
}),
"inOutType": "",
"isTransient": false,
"jsonSchema": "",
"key": "",
"name": "",
"producedBy": json!({
"elementIdentifier": "",
"elementType": ""
}),
"producer": "",
"protoDefName": "",
"protoDefPath": ""
})
)}),
"lastModifierEmail": "",
"lockHolder": "",
"name": "",
"origin": "",
"parentTemplateId": "",
"runAsServiceAccount": "",
"snapshotNumber": "",
"state": "",
"status": "",
"taskConfigs": (
json!({
"description": "",
"displayName": "",
"errorCatcherId": "",
"externalTaskType": "",
"failurePolicy": json!({
"intervalTime": "",
"maxRetries": 0,
"retryStrategy": ""
}),
"jsonValidationOption": "",
"nextTasks": (json!({})),
"nextTasksExecutionPolicy": "",
"parameters": json!({}),
"position": json!({}),
"successPolicy": json!({"finalState": ""}),
"synchronousCallFailurePolicy": json!({}),
"task": "",
"taskExecutionStrategy": "",
"taskId": "",
"taskTemplate": ""
})
),
"taskConfigsInternal": (
json!({
"alertConfigs": (
json!({
"aggregationPeriod": "",
"alertDisabled": false,
"alertName": "",
"clientId": "",
"durationThresholdMs": "",
"errorEnumList": json!({
"enumStrings": (),
"filterType": ""
}),
"metricType": "",
"numAggregationPeriods": 0,
"onlyFinalAttempt": false,
"playbookUrl": "",
"thresholdType": "",
"thresholdValue": json!({
"absolute": "",
"percentage": 0
}),
"warningEnumList": json!({})
})
),
"createTime": "",
"creatorEmail": "",
"description": "",
"disableStrictTypeValidation": false,
"errorCatcherId": "",
"externalTaskType": "",
"failurePolicy": json!({
"intervalInSeconds": "",
"maxNumRetries": 0,
"retryStrategy": ""
}),
"incomingEdgeCount": 0,
"jsonValidationOption": "",
"label": "",
"lastModifiedTime": "",
"nextTasks": (
json!({
"combinedConditions": (json!({"conditions": (
json!({
"eventPropertyKey": "",
"operator": "",
"value": json!({})
})
)})),
"condition": "",
"description": "",
"label": "",
"taskConfigId": "",
"taskNumber": ""
})
),
"nextTasksExecutionPolicy": "",
"parameters": json!({}),
"position": json!({
"x": 0,
"y": 0
}),
"precondition": "",
"preconditionLabel": "",
"rollbackStrategy": json!({
"parameters": json!({"parameters": (
json!({
"dataType": "",
"key": "",
"value": json!({})
})
)}),
"rollbackTaskImplementationClassName": "",
"taskNumbersToRollback": ()
}),
"successPolicy": json!({"finalState": ""}),
"synchronousCallFailurePolicy": json!({}),
"taskEntity": json!({
"disabledForVpcSc": false,
"metadata": json!({
"activeTaskName": "",
"admins": (
json!({
"googleGroupEmail": "",
"userEmail": ""
})
),
"category": "",
"codeSearchLink": "",
"defaultJsonValidationOption": "",
"defaultSpec": "",
"description": "",
"descriptiveName": "",
"docMarkdown": "",
"externalCategory": "",
"externalCategorySequence": 0,
"externalDocHtml": "",
"externalDocLink": "",
"externalDocMarkdown": "",
"g3DocLink": "",
"iconLink": "",
"isDeprecated": false,
"name": "",
"standaloneExternalDocHtml": "",
"status": "",
"system": "",
"tags": ()
}),
"paramSpecs": json!({"parameters": (
json!({
"className": "",
"collectionElementClassName": "",
"config": json!({
"descriptivePhrase": "",
"helpText": "",
"hideDefaultValue": false,
"inputDisplayOption": "",
"isHidden": false,
"label": "",
"parameterNameOption": "",
"subSectionLabel": "",
"uiPlaceholderText": ""
}),
"dataType": "",
"defaultValue": json!({}),
"isDeprecated": false,
"isOutput": false,
"jsonSchema": "",
"key": "",
"protoDef": json!({
"fullName": "",
"path": ""
}),
"required": false,
"validationRule": json!({
"doubleRange": json!({
"max": "",
"min": ""
}),
"intRange": json!({
"max": "",
"min": ""
}),
"stringRegex": json!({
"exclusive": false,
"regex": ""
})
})
})
)}),
"stats": json!({
"dimensions": json!({
"clientId": "",
"enumFilterType": "",
"errorEnumString": "",
"retryAttempt": "",
"taskName": "",
"taskNumber": "",
"triggerId": "",
"warningEnumString": "",
"workflowId": "",
"workflowName": ""
}),
"durationInSeconds": "",
"errorRate": "",
"qps": "",
"warningRate": ""
}),
"taskType": "",
"uiConfig": json!({"taskUiModuleConfigs": (json!({"moduleId": ""}))})
}),
"taskExecutionStrategy": "",
"taskName": "",
"taskNumber": "",
"taskSpec": "",
"taskTemplateName": "",
"taskType": ""
})
),
"teardown": json!({"teardownTaskConfigs": (
json!({
"creatorEmail": "",
"name": "",
"nextTeardownTask": json!({"name": ""}),
"parameters": json!({"parameters": (
json!({
"key": "",
"value": json!({
"booleanArray": json!({"booleanValues": ()}),
"booleanValue": false,
"doubleArray": json!({"doubleValues": ()}),
"doubleValue": "",
"intArray": json!({"intValues": ()}),
"intValue": "",
"protoArray": json!({"protoValues": (json!({}))}),
"protoValue": json!({}),
"serializedObjectValue": json!({"objectValue": ""}),
"stringArray": json!({"stringValues": ()}),
"stringValue": ""
})
})
)}),
"properties": json!({"properties": (
json!({
"key": "",
"value": json!({})
})
)}),
"teardownTaskImplementationClassName": ""
})
)}),
"triggerConfigs": (
json!({
"alertConfig": (
json!({
"aggregationPeriod": "",
"alertThreshold": 0,
"disableAlert": false,
"displayName": "",
"durationThreshold": "",
"metricType": "",
"onlyFinalAttempt": false,
"thresholdType": "",
"thresholdValue": json!({
"absolute": "",
"percentage": 0
})
})
),
"cloudSchedulerConfig": json!({
"cronTab": "",
"errorMessage": "",
"location": "",
"serviceAccountEmail": ""
}),
"description": "",
"errorCatcherId": "",
"label": "",
"nextTasksExecutionPolicy": "",
"position": json!({}),
"properties": json!({}),
"startTasks": (json!({})),
"triggerId": "",
"triggerNumber": "",
"triggerType": ""
})
),
"triggerConfigsInternal": (
json!({
"alertConfig": (
json!({
"aggregationPeriod": "",
"alertDisabled": false,
"alertName": "",
"clientId": "",
"durationThresholdMs": "",
"errorEnumList": json!({}),
"metricType": "",
"numAggregationPeriods": 0,
"onlyFinalAttempt": false,
"playbookUrl": "",
"thresholdType": "",
"thresholdValue": json!({}),
"warningEnumList": json!({})
})
),
"cloudSchedulerConfig": json!({
"cronTab": "",
"errorMessage": "",
"location": "",
"serviceAccountEmail": ""
}),
"description": "",
"enabledClients": (),
"errorCatcherId": "",
"label": "",
"nextTasksExecutionPolicy": "",
"pauseWorkflowExecutions": false,
"position": json!({}),
"properties": json!({}),
"startTasks": (json!({})),
"triggerCriteria": json!({
"condition": "",
"parameters": json!({}),
"triggerCriteriaTaskImplementationClassName": ""
}),
"triggerId": "",
"triggerNumber": "",
"triggerType": ""
})
),
"updateTime": "",
"userLabel": ""
}),
"parameters": json!({}),
"testMode": false,
"triggerId": ""
});
let mut headers = reqwest::header::HeaderMap::new();
headers.insert("content-type", "application/json".parse().unwrap());
let client = reqwest::Client::new();
let response = client.post(url)
.headers(headers)
.json(&payload)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request POST \
--url {{baseUrl}}/v1/:name:test \
--header 'content-type: application/json' \
--data '{
"clientId": "",
"deadlineSecondsTime": "",
"inputParameters": {},
"integrationVersion": {
"createTime": "",
"databasePersistencePolicy": "",
"description": "",
"errorCatcherConfigs": [
{
"description": "",
"errorCatcherId": "",
"errorCatcherNumber": "",
"label": "",
"position": {
"x": 0,
"y": 0
},
"startErrorTasks": [
{
"condition": "",
"description": "",
"displayName": "",
"taskConfigId": "",
"taskId": ""
}
]
}
],
"integrationParameters": [
{
"dataType": "",
"defaultValue": {
"booleanArray": {
"booleanValues": []
},
"booleanValue": false,
"doubleArray": {
"doubleValues": []
},
"doubleValue": "",
"intArray": {
"intValues": []
},
"intValue": "",
"jsonValue": "",
"stringArray": {
"stringValues": []
},
"stringValue": ""
},
"displayName": "",
"inputOutputType": "",
"isTransient": false,
"jsonSchema": "",
"key": "",
"producer": "",
"searchable": false
}
],
"integrationParametersInternal": {
"parameters": [
{
"attributes": {
"dataType": "",
"defaultValue": {
"booleanValue": false,
"doubleArray": {
"values": []
},
"doubleValue": "",
"intArray": {
"values": []
},
"intValue": "",
"protoValue": {},
"stringArray": {
"values": []
},
"stringValue": ""
},
"isRequired": false,
"isSearchable": false,
"logSettings": {
"logFieldName": "",
"sanitizeOptions": {
"isAlreadySanitized": false,
"logType": [],
"privacy": "",
"sanitizeType": ""
},
"seedPeriod": "",
"seedScope": "",
"shorteningLimits": {
"logAction": "",
"logType": [],
"maxArraySize": 0,
"maxStringLength": 0,
"shortenerType": ""
}
},
"searchable": "",
"taskVisibility": []
},
"children": [],
"dataType": "",
"defaultValue": {
"booleanArray": {
"booleanValues": []
},
"booleanValue": false,
"doubleArray": {
"doubleValues": []
},
"doubleValue": "",
"intArray": {
"intValues": []
},
"intValue": "",
"jsonValue": "",
"protoArray": {
"protoValues": [
{}
]
},
"protoValue": {},
"serializedObjectValue": {
"objectValue": ""
},
"stringArray": {
"stringValues": []
},
"stringValue": ""
},
"inOutType": "",
"isTransient": false,
"jsonSchema": "",
"key": "",
"name": "",
"producedBy": {
"elementIdentifier": "",
"elementType": ""
},
"producer": "",
"protoDefName": "",
"protoDefPath": ""
}
]
},
"lastModifierEmail": "",
"lockHolder": "",
"name": "",
"origin": "",
"parentTemplateId": "",
"runAsServiceAccount": "",
"snapshotNumber": "",
"state": "",
"status": "",
"taskConfigs": [
{
"description": "",
"displayName": "",
"errorCatcherId": "",
"externalTaskType": "",
"failurePolicy": {
"intervalTime": "",
"maxRetries": 0,
"retryStrategy": ""
},
"jsonValidationOption": "",
"nextTasks": [
{}
],
"nextTasksExecutionPolicy": "",
"parameters": {},
"position": {},
"successPolicy": {
"finalState": ""
},
"synchronousCallFailurePolicy": {},
"task": "",
"taskExecutionStrategy": "",
"taskId": "",
"taskTemplate": ""
}
],
"taskConfigsInternal": [
{
"alertConfigs": [
{
"aggregationPeriod": "",
"alertDisabled": false,
"alertName": "",
"clientId": "",
"durationThresholdMs": "",
"errorEnumList": {
"enumStrings": [],
"filterType": ""
},
"metricType": "",
"numAggregationPeriods": 0,
"onlyFinalAttempt": false,
"playbookUrl": "",
"thresholdType": "",
"thresholdValue": {
"absolute": "",
"percentage": 0
},
"warningEnumList": {}
}
],
"createTime": "",
"creatorEmail": "",
"description": "",
"disableStrictTypeValidation": false,
"errorCatcherId": "",
"externalTaskType": "",
"failurePolicy": {
"intervalInSeconds": "",
"maxNumRetries": 0,
"retryStrategy": ""
},
"incomingEdgeCount": 0,
"jsonValidationOption": "",
"label": "",
"lastModifiedTime": "",
"nextTasks": [
{
"combinedConditions": [
{
"conditions": [
{
"eventPropertyKey": "",
"operator": "",
"value": {}
}
]
}
],
"condition": "",
"description": "",
"label": "",
"taskConfigId": "",
"taskNumber": ""
}
],
"nextTasksExecutionPolicy": "",
"parameters": {},
"position": {
"x": 0,
"y": 0
},
"precondition": "",
"preconditionLabel": "",
"rollbackStrategy": {
"parameters": {
"parameters": [
{
"dataType": "",
"key": "",
"value": {}
}
]
},
"rollbackTaskImplementationClassName": "",
"taskNumbersToRollback": []
},
"successPolicy": {
"finalState": ""
},
"synchronousCallFailurePolicy": {},
"taskEntity": {
"disabledForVpcSc": false,
"metadata": {
"activeTaskName": "",
"admins": [
{
"googleGroupEmail": "",
"userEmail": ""
}
],
"category": "",
"codeSearchLink": "",
"defaultJsonValidationOption": "",
"defaultSpec": "",
"description": "",
"descriptiveName": "",
"docMarkdown": "",
"externalCategory": "",
"externalCategorySequence": 0,
"externalDocHtml": "",
"externalDocLink": "",
"externalDocMarkdown": "",
"g3DocLink": "",
"iconLink": "",
"isDeprecated": false,
"name": "",
"standaloneExternalDocHtml": "",
"status": "",
"system": "",
"tags": []
},
"paramSpecs": {
"parameters": [
{
"className": "",
"collectionElementClassName": "",
"config": {
"descriptivePhrase": "",
"helpText": "",
"hideDefaultValue": false,
"inputDisplayOption": "",
"isHidden": false,
"label": "",
"parameterNameOption": "",
"subSectionLabel": "",
"uiPlaceholderText": ""
},
"dataType": "",
"defaultValue": {},
"isDeprecated": false,
"isOutput": false,
"jsonSchema": "",
"key": "",
"protoDef": {
"fullName": "",
"path": ""
},
"required": false,
"validationRule": {
"doubleRange": {
"max": "",
"min": ""
},
"intRange": {
"max": "",
"min": ""
},
"stringRegex": {
"exclusive": false,
"regex": ""
}
}
}
]
},
"stats": {
"dimensions": {
"clientId": "",
"enumFilterType": "",
"errorEnumString": "",
"retryAttempt": "",
"taskName": "",
"taskNumber": "",
"triggerId": "",
"warningEnumString": "",
"workflowId": "",
"workflowName": ""
},
"durationInSeconds": "",
"errorRate": "",
"qps": "",
"warningRate": ""
},
"taskType": "",
"uiConfig": {
"taskUiModuleConfigs": [
{
"moduleId": ""
}
]
}
},
"taskExecutionStrategy": "",
"taskName": "",
"taskNumber": "",
"taskSpec": "",
"taskTemplateName": "",
"taskType": ""
}
],
"teardown": {
"teardownTaskConfigs": [
{
"creatorEmail": "",
"name": "",
"nextTeardownTask": {
"name": ""
},
"parameters": {
"parameters": [
{
"key": "",
"value": {
"booleanArray": {
"booleanValues": []
},
"booleanValue": false,
"doubleArray": {
"doubleValues": []
},
"doubleValue": "",
"intArray": {
"intValues": []
},
"intValue": "",
"protoArray": {
"protoValues": [
{}
]
},
"protoValue": {},
"serializedObjectValue": {
"objectValue": ""
},
"stringArray": {
"stringValues": []
},
"stringValue": ""
}
}
]
},
"properties": {
"properties": [
{
"key": "",
"value": {}
}
]
},
"teardownTaskImplementationClassName": ""
}
]
},
"triggerConfigs": [
{
"alertConfig": [
{
"aggregationPeriod": "",
"alertThreshold": 0,
"disableAlert": false,
"displayName": "",
"durationThreshold": "",
"metricType": "",
"onlyFinalAttempt": false,
"thresholdType": "",
"thresholdValue": {
"absolute": "",
"percentage": 0
}
}
],
"cloudSchedulerConfig": {
"cronTab": "",
"errorMessage": "",
"location": "",
"serviceAccountEmail": ""
},
"description": "",
"errorCatcherId": "",
"label": "",
"nextTasksExecutionPolicy": "",
"position": {},
"properties": {},
"startTasks": [
{}
],
"triggerId": "",
"triggerNumber": "",
"triggerType": ""
}
],
"triggerConfigsInternal": [
{
"alertConfig": [
{
"aggregationPeriod": "",
"alertDisabled": false,
"alertName": "",
"clientId": "",
"durationThresholdMs": "",
"errorEnumList": {},
"metricType": "",
"numAggregationPeriods": 0,
"onlyFinalAttempt": false,
"playbookUrl": "",
"thresholdType": "",
"thresholdValue": {},
"warningEnumList": {}
}
],
"cloudSchedulerConfig": {
"cronTab": "",
"errorMessage": "",
"location": "",
"serviceAccountEmail": ""
},
"description": "",
"enabledClients": [],
"errorCatcherId": "",
"label": "",
"nextTasksExecutionPolicy": "",
"pauseWorkflowExecutions": false,
"position": {},
"properties": {},
"startTasks": [
{}
],
"triggerCriteria": {
"condition": "",
"parameters": {},
"triggerCriteriaTaskImplementationClassName": ""
},
"triggerId": "",
"triggerNumber": "",
"triggerType": ""
}
],
"updateTime": "",
"userLabel": ""
},
"parameters": {},
"testMode": false,
"triggerId": ""
}'
echo '{
"clientId": "",
"deadlineSecondsTime": "",
"inputParameters": {},
"integrationVersion": {
"createTime": "",
"databasePersistencePolicy": "",
"description": "",
"errorCatcherConfigs": [
{
"description": "",
"errorCatcherId": "",
"errorCatcherNumber": "",
"label": "",
"position": {
"x": 0,
"y": 0
},
"startErrorTasks": [
{
"condition": "",
"description": "",
"displayName": "",
"taskConfigId": "",
"taskId": ""
}
]
}
],
"integrationParameters": [
{
"dataType": "",
"defaultValue": {
"booleanArray": {
"booleanValues": []
},
"booleanValue": false,
"doubleArray": {
"doubleValues": []
},
"doubleValue": "",
"intArray": {
"intValues": []
},
"intValue": "",
"jsonValue": "",
"stringArray": {
"stringValues": []
},
"stringValue": ""
},
"displayName": "",
"inputOutputType": "",
"isTransient": false,
"jsonSchema": "",
"key": "",
"producer": "",
"searchable": false
}
],
"integrationParametersInternal": {
"parameters": [
{
"attributes": {
"dataType": "",
"defaultValue": {
"booleanValue": false,
"doubleArray": {
"values": []
},
"doubleValue": "",
"intArray": {
"values": []
},
"intValue": "",
"protoValue": {},
"stringArray": {
"values": []
},
"stringValue": ""
},
"isRequired": false,
"isSearchable": false,
"logSettings": {
"logFieldName": "",
"sanitizeOptions": {
"isAlreadySanitized": false,
"logType": [],
"privacy": "",
"sanitizeType": ""
},
"seedPeriod": "",
"seedScope": "",
"shorteningLimits": {
"logAction": "",
"logType": [],
"maxArraySize": 0,
"maxStringLength": 0,
"shortenerType": ""
}
},
"searchable": "",
"taskVisibility": []
},
"children": [],
"dataType": "",
"defaultValue": {
"booleanArray": {
"booleanValues": []
},
"booleanValue": false,
"doubleArray": {
"doubleValues": []
},
"doubleValue": "",
"intArray": {
"intValues": []
},
"intValue": "",
"jsonValue": "",
"protoArray": {
"protoValues": [
{}
]
},
"protoValue": {},
"serializedObjectValue": {
"objectValue": ""
},
"stringArray": {
"stringValues": []
},
"stringValue": ""
},
"inOutType": "",
"isTransient": false,
"jsonSchema": "",
"key": "",
"name": "",
"producedBy": {
"elementIdentifier": "",
"elementType": ""
},
"producer": "",
"protoDefName": "",
"protoDefPath": ""
}
]
},
"lastModifierEmail": "",
"lockHolder": "",
"name": "",
"origin": "",
"parentTemplateId": "",
"runAsServiceAccount": "",
"snapshotNumber": "",
"state": "",
"status": "",
"taskConfigs": [
{
"description": "",
"displayName": "",
"errorCatcherId": "",
"externalTaskType": "",
"failurePolicy": {
"intervalTime": "",
"maxRetries": 0,
"retryStrategy": ""
},
"jsonValidationOption": "",
"nextTasks": [
{}
],
"nextTasksExecutionPolicy": "",
"parameters": {},
"position": {},
"successPolicy": {
"finalState": ""
},
"synchronousCallFailurePolicy": {},
"task": "",
"taskExecutionStrategy": "",
"taskId": "",
"taskTemplate": ""
}
],
"taskConfigsInternal": [
{
"alertConfigs": [
{
"aggregationPeriod": "",
"alertDisabled": false,
"alertName": "",
"clientId": "",
"durationThresholdMs": "",
"errorEnumList": {
"enumStrings": [],
"filterType": ""
},
"metricType": "",
"numAggregationPeriods": 0,
"onlyFinalAttempt": false,
"playbookUrl": "",
"thresholdType": "",
"thresholdValue": {
"absolute": "",
"percentage": 0
},
"warningEnumList": {}
}
],
"createTime": "",
"creatorEmail": "",
"description": "",
"disableStrictTypeValidation": false,
"errorCatcherId": "",
"externalTaskType": "",
"failurePolicy": {
"intervalInSeconds": "",
"maxNumRetries": 0,
"retryStrategy": ""
},
"incomingEdgeCount": 0,
"jsonValidationOption": "",
"label": "",
"lastModifiedTime": "",
"nextTasks": [
{
"combinedConditions": [
{
"conditions": [
{
"eventPropertyKey": "",
"operator": "",
"value": {}
}
]
}
],
"condition": "",
"description": "",
"label": "",
"taskConfigId": "",
"taskNumber": ""
}
],
"nextTasksExecutionPolicy": "",
"parameters": {},
"position": {
"x": 0,
"y": 0
},
"precondition": "",
"preconditionLabel": "",
"rollbackStrategy": {
"parameters": {
"parameters": [
{
"dataType": "",
"key": "",
"value": {}
}
]
},
"rollbackTaskImplementationClassName": "",
"taskNumbersToRollback": []
},
"successPolicy": {
"finalState": ""
},
"synchronousCallFailurePolicy": {},
"taskEntity": {
"disabledForVpcSc": false,
"metadata": {
"activeTaskName": "",
"admins": [
{
"googleGroupEmail": "",
"userEmail": ""
}
],
"category": "",
"codeSearchLink": "",
"defaultJsonValidationOption": "",
"defaultSpec": "",
"description": "",
"descriptiveName": "",
"docMarkdown": "",
"externalCategory": "",
"externalCategorySequence": 0,
"externalDocHtml": "",
"externalDocLink": "",
"externalDocMarkdown": "",
"g3DocLink": "",
"iconLink": "",
"isDeprecated": false,
"name": "",
"standaloneExternalDocHtml": "",
"status": "",
"system": "",
"tags": []
},
"paramSpecs": {
"parameters": [
{
"className": "",
"collectionElementClassName": "",
"config": {
"descriptivePhrase": "",
"helpText": "",
"hideDefaultValue": false,
"inputDisplayOption": "",
"isHidden": false,
"label": "",
"parameterNameOption": "",
"subSectionLabel": "",
"uiPlaceholderText": ""
},
"dataType": "",
"defaultValue": {},
"isDeprecated": false,
"isOutput": false,
"jsonSchema": "",
"key": "",
"protoDef": {
"fullName": "",
"path": ""
},
"required": false,
"validationRule": {
"doubleRange": {
"max": "",
"min": ""
},
"intRange": {
"max": "",
"min": ""
},
"stringRegex": {
"exclusive": false,
"regex": ""
}
}
}
]
},
"stats": {
"dimensions": {
"clientId": "",
"enumFilterType": "",
"errorEnumString": "",
"retryAttempt": "",
"taskName": "",
"taskNumber": "",
"triggerId": "",
"warningEnumString": "",
"workflowId": "",
"workflowName": ""
},
"durationInSeconds": "",
"errorRate": "",
"qps": "",
"warningRate": ""
},
"taskType": "",
"uiConfig": {
"taskUiModuleConfigs": [
{
"moduleId": ""
}
]
}
},
"taskExecutionStrategy": "",
"taskName": "",
"taskNumber": "",
"taskSpec": "",
"taskTemplateName": "",
"taskType": ""
}
],
"teardown": {
"teardownTaskConfigs": [
{
"creatorEmail": "",
"name": "",
"nextTeardownTask": {
"name": ""
},
"parameters": {
"parameters": [
{
"key": "",
"value": {
"booleanArray": {
"booleanValues": []
},
"booleanValue": false,
"doubleArray": {
"doubleValues": []
},
"doubleValue": "",
"intArray": {
"intValues": []
},
"intValue": "",
"protoArray": {
"protoValues": [
{}
]
},
"protoValue": {},
"serializedObjectValue": {
"objectValue": ""
},
"stringArray": {
"stringValues": []
},
"stringValue": ""
}
}
]
},
"properties": {
"properties": [
{
"key": "",
"value": {}
}
]
},
"teardownTaskImplementationClassName": ""
}
]
},
"triggerConfigs": [
{
"alertConfig": [
{
"aggregationPeriod": "",
"alertThreshold": 0,
"disableAlert": false,
"displayName": "",
"durationThreshold": "",
"metricType": "",
"onlyFinalAttempt": false,
"thresholdType": "",
"thresholdValue": {
"absolute": "",
"percentage": 0
}
}
],
"cloudSchedulerConfig": {
"cronTab": "",
"errorMessage": "",
"location": "",
"serviceAccountEmail": ""
},
"description": "",
"errorCatcherId": "",
"label": "",
"nextTasksExecutionPolicy": "",
"position": {},
"properties": {},
"startTasks": [
{}
],
"triggerId": "",
"triggerNumber": "",
"triggerType": ""
}
],
"triggerConfigsInternal": [
{
"alertConfig": [
{
"aggregationPeriod": "",
"alertDisabled": false,
"alertName": "",
"clientId": "",
"durationThresholdMs": "",
"errorEnumList": {},
"metricType": "",
"numAggregationPeriods": 0,
"onlyFinalAttempt": false,
"playbookUrl": "",
"thresholdType": "",
"thresholdValue": {},
"warningEnumList": {}
}
],
"cloudSchedulerConfig": {
"cronTab": "",
"errorMessage": "",
"location": "",
"serviceAccountEmail": ""
},
"description": "",
"enabledClients": [],
"errorCatcherId": "",
"label": "",
"nextTasksExecutionPolicy": "",
"pauseWorkflowExecutions": false,
"position": {},
"properties": {},
"startTasks": [
{}
],
"triggerCriteria": {
"condition": "",
"parameters": {},
"triggerCriteriaTaskImplementationClassName": ""
},
"triggerId": "",
"triggerNumber": "",
"triggerType": ""
}
],
"updateTime": "",
"userLabel": ""
},
"parameters": {},
"testMode": false,
"triggerId": ""
}' | \
http POST {{baseUrl}}/v1/:name:test \
content-type:application/json
wget --quiet \
--method POST \
--header 'content-type: application/json' \
--body-data '{\n "clientId": "",\n "deadlineSecondsTime": "",\n "inputParameters": {},\n "integrationVersion": {\n "createTime": "",\n "databasePersistencePolicy": "",\n "description": "",\n "errorCatcherConfigs": [\n {\n "description": "",\n "errorCatcherId": "",\n "errorCatcherNumber": "",\n "label": "",\n "position": {\n "x": 0,\n "y": 0\n },\n "startErrorTasks": [\n {\n "condition": "",\n "description": "",\n "displayName": "",\n "taskConfigId": "",\n "taskId": ""\n }\n ]\n }\n ],\n "integrationParameters": [\n {\n "dataType": "",\n "defaultValue": {\n "booleanArray": {\n "booleanValues": []\n },\n "booleanValue": false,\n "doubleArray": {\n "doubleValues": []\n },\n "doubleValue": "",\n "intArray": {\n "intValues": []\n },\n "intValue": "",\n "jsonValue": "",\n "stringArray": {\n "stringValues": []\n },\n "stringValue": ""\n },\n "displayName": "",\n "inputOutputType": "",\n "isTransient": false,\n "jsonSchema": "",\n "key": "",\n "producer": "",\n "searchable": false\n }\n ],\n "integrationParametersInternal": {\n "parameters": [\n {\n "attributes": {\n "dataType": "",\n "defaultValue": {\n "booleanValue": false,\n "doubleArray": {\n "values": []\n },\n "doubleValue": "",\n "intArray": {\n "values": []\n },\n "intValue": "",\n "protoValue": {},\n "stringArray": {\n "values": []\n },\n "stringValue": ""\n },\n "isRequired": false,\n "isSearchable": false,\n "logSettings": {\n "logFieldName": "",\n "sanitizeOptions": {\n "isAlreadySanitized": false,\n "logType": [],\n "privacy": "",\n "sanitizeType": ""\n },\n "seedPeriod": "",\n "seedScope": "",\n "shorteningLimits": {\n "logAction": "",\n "logType": [],\n "maxArraySize": 0,\n "maxStringLength": 0,\n "shortenerType": ""\n }\n },\n "searchable": "",\n "taskVisibility": []\n },\n "children": [],\n "dataType": "",\n "defaultValue": {\n "booleanArray": {\n "booleanValues": []\n },\n "booleanValue": false,\n "doubleArray": {\n "doubleValues": []\n },\n "doubleValue": "",\n "intArray": {\n "intValues": []\n },\n "intValue": "",\n "jsonValue": "",\n "protoArray": {\n "protoValues": [\n {}\n ]\n },\n "protoValue": {},\n "serializedObjectValue": {\n "objectValue": ""\n },\n "stringArray": {\n "stringValues": []\n },\n "stringValue": ""\n },\n "inOutType": "",\n "isTransient": false,\n "jsonSchema": "",\n "key": "",\n "name": "",\n "producedBy": {\n "elementIdentifier": "",\n "elementType": ""\n },\n "producer": "",\n "protoDefName": "",\n "protoDefPath": ""\n }\n ]\n },\n "lastModifierEmail": "",\n "lockHolder": "",\n "name": "",\n "origin": "",\n "parentTemplateId": "",\n "runAsServiceAccount": "",\n "snapshotNumber": "",\n "state": "",\n "status": "",\n "taskConfigs": [\n {\n "description": "",\n "displayName": "",\n "errorCatcherId": "",\n "externalTaskType": "",\n "failurePolicy": {\n "intervalTime": "",\n "maxRetries": 0,\n "retryStrategy": ""\n },\n "jsonValidationOption": "",\n "nextTasks": [\n {}\n ],\n "nextTasksExecutionPolicy": "",\n "parameters": {},\n "position": {},\n "successPolicy": {\n "finalState": ""\n },\n "synchronousCallFailurePolicy": {},\n "task": "",\n "taskExecutionStrategy": "",\n "taskId": "",\n "taskTemplate": ""\n }\n ],\n "taskConfigsInternal": [\n {\n "alertConfigs": [\n {\n "aggregationPeriod": "",\n "alertDisabled": false,\n "alertName": "",\n "clientId": "",\n "durationThresholdMs": "",\n "errorEnumList": {\n "enumStrings": [],\n "filterType": ""\n },\n "metricType": "",\n "numAggregationPeriods": 0,\n "onlyFinalAttempt": false,\n "playbookUrl": "",\n "thresholdType": "",\n "thresholdValue": {\n "absolute": "",\n "percentage": 0\n },\n "warningEnumList": {}\n }\n ],\n "createTime": "",\n "creatorEmail": "",\n "description": "",\n "disableStrictTypeValidation": false,\n "errorCatcherId": "",\n "externalTaskType": "",\n "failurePolicy": {\n "intervalInSeconds": "",\n "maxNumRetries": 0,\n "retryStrategy": ""\n },\n "incomingEdgeCount": 0,\n "jsonValidationOption": "",\n "label": "",\n "lastModifiedTime": "",\n "nextTasks": [\n {\n "combinedConditions": [\n {\n "conditions": [\n {\n "eventPropertyKey": "",\n "operator": "",\n "value": {}\n }\n ]\n }\n ],\n "condition": "",\n "description": "",\n "label": "",\n "taskConfigId": "",\n "taskNumber": ""\n }\n ],\n "nextTasksExecutionPolicy": "",\n "parameters": {},\n "position": {\n "x": 0,\n "y": 0\n },\n "precondition": "",\n "preconditionLabel": "",\n "rollbackStrategy": {\n "parameters": {\n "parameters": [\n {\n "dataType": "",\n "key": "",\n "value": {}\n }\n ]\n },\n "rollbackTaskImplementationClassName": "",\n "taskNumbersToRollback": []\n },\n "successPolicy": {\n "finalState": ""\n },\n "synchronousCallFailurePolicy": {},\n "taskEntity": {\n "disabledForVpcSc": false,\n "metadata": {\n "activeTaskName": "",\n "admins": [\n {\n "googleGroupEmail": "",\n "userEmail": ""\n }\n ],\n "category": "",\n "codeSearchLink": "",\n "defaultJsonValidationOption": "",\n "defaultSpec": "",\n "description": "",\n "descriptiveName": "",\n "docMarkdown": "",\n "externalCategory": "",\n "externalCategorySequence": 0,\n "externalDocHtml": "",\n "externalDocLink": "",\n "externalDocMarkdown": "",\n "g3DocLink": "",\n "iconLink": "",\n "isDeprecated": false,\n "name": "",\n "standaloneExternalDocHtml": "",\n "status": "",\n "system": "",\n "tags": []\n },\n "paramSpecs": {\n "parameters": [\n {\n "className": "",\n "collectionElementClassName": "",\n "config": {\n "descriptivePhrase": "",\n "helpText": "",\n "hideDefaultValue": false,\n "inputDisplayOption": "",\n "isHidden": false,\n "label": "",\n "parameterNameOption": "",\n "subSectionLabel": "",\n "uiPlaceholderText": ""\n },\n "dataType": "",\n "defaultValue": {},\n "isDeprecated": false,\n "isOutput": false,\n "jsonSchema": "",\n "key": "",\n "protoDef": {\n "fullName": "",\n "path": ""\n },\n "required": false,\n "validationRule": {\n "doubleRange": {\n "max": "",\n "min": ""\n },\n "intRange": {\n "max": "",\n "min": ""\n },\n "stringRegex": {\n "exclusive": false,\n "regex": ""\n }\n }\n }\n ]\n },\n "stats": {\n "dimensions": {\n "clientId": "",\n "enumFilterType": "",\n "errorEnumString": "",\n "retryAttempt": "",\n "taskName": "",\n "taskNumber": "",\n "triggerId": "",\n "warningEnumString": "",\n "workflowId": "",\n "workflowName": ""\n },\n "durationInSeconds": "",\n "errorRate": "",\n "qps": "",\n "warningRate": ""\n },\n "taskType": "",\n "uiConfig": {\n "taskUiModuleConfigs": [\n {\n "moduleId": ""\n }\n ]\n }\n },\n "taskExecutionStrategy": "",\n "taskName": "",\n "taskNumber": "",\n "taskSpec": "",\n "taskTemplateName": "",\n "taskType": ""\n }\n ],\n "teardown": {\n "teardownTaskConfigs": [\n {\n "creatorEmail": "",\n "name": "",\n "nextTeardownTask": {\n "name": ""\n },\n "parameters": {\n "parameters": [\n {\n "key": "",\n "value": {\n "booleanArray": {\n "booleanValues": []\n },\n "booleanValue": false,\n "doubleArray": {\n "doubleValues": []\n },\n "doubleValue": "",\n "intArray": {\n "intValues": []\n },\n "intValue": "",\n "protoArray": {\n "protoValues": [\n {}\n ]\n },\n "protoValue": {},\n "serializedObjectValue": {\n "objectValue": ""\n },\n "stringArray": {\n "stringValues": []\n },\n "stringValue": ""\n }\n }\n ]\n },\n "properties": {\n "properties": [\n {\n "key": "",\n "value": {}\n }\n ]\n },\n "teardownTaskImplementationClassName": ""\n }\n ]\n },\n "triggerConfigs": [\n {\n "alertConfig": [\n {\n "aggregationPeriod": "",\n "alertThreshold": 0,\n "disableAlert": false,\n "displayName": "",\n "durationThreshold": "",\n "metricType": "",\n "onlyFinalAttempt": false,\n "thresholdType": "",\n "thresholdValue": {\n "absolute": "",\n "percentage": 0\n }\n }\n ],\n "cloudSchedulerConfig": {\n "cronTab": "",\n "errorMessage": "",\n "location": "",\n "serviceAccountEmail": ""\n },\n "description": "",\n "errorCatcherId": "",\n "label": "",\n "nextTasksExecutionPolicy": "",\n "position": {},\n "properties": {},\n "startTasks": [\n {}\n ],\n "triggerId": "",\n "triggerNumber": "",\n "triggerType": ""\n }\n ],\n "triggerConfigsInternal": [\n {\n "alertConfig": [\n {\n "aggregationPeriod": "",\n "alertDisabled": false,\n "alertName": "",\n "clientId": "",\n "durationThresholdMs": "",\n "errorEnumList": {},\n "metricType": "",\n "numAggregationPeriods": 0,\n "onlyFinalAttempt": false,\n "playbookUrl": "",\n "thresholdType": "",\n "thresholdValue": {},\n "warningEnumList": {}\n }\n ],\n "cloudSchedulerConfig": {\n "cronTab": "",\n "errorMessage": "",\n "location": "",\n "serviceAccountEmail": ""\n },\n "description": "",\n "enabledClients": [],\n "errorCatcherId": "",\n "label": "",\n "nextTasksExecutionPolicy": "",\n "pauseWorkflowExecutions": false,\n "position": {},\n "properties": {},\n "startTasks": [\n {}\n ],\n "triggerCriteria": {\n "condition": "",\n "parameters": {},\n "triggerCriteriaTaskImplementationClassName": ""\n },\n "triggerId": "",\n "triggerNumber": "",\n "triggerType": ""\n }\n ],\n "updateTime": "",\n "userLabel": ""\n },\n "parameters": {},\n "testMode": false,\n "triggerId": ""\n}' \
--output-document \
- {{baseUrl}}/v1/:name:test
import Foundation
let headers = ["content-type": "application/json"]
let parameters = [
"clientId": "",
"deadlineSecondsTime": "",
"inputParameters": [],
"integrationVersion": [
"createTime": "",
"databasePersistencePolicy": "",
"description": "",
"errorCatcherConfigs": [
[
"description": "",
"errorCatcherId": "",
"errorCatcherNumber": "",
"label": "",
"position": [
"x": 0,
"y": 0
],
"startErrorTasks": [
[
"condition": "",
"description": "",
"displayName": "",
"taskConfigId": "",
"taskId": ""
]
]
]
],
"integrationParameters": [
[
"dataType": "",
"defaultValue": [
"booleanArray": ["booleanValues": []],
"booleanValue": false,
"doubleArray": ["doubleValues": []],
"doubleValue": "",
"intArray": ["intValues": []],
"intValue": "",
"jsonValue": "",
"stringArray": ["stringValues": []],
"stringValue": ""
],
"displayName": "",
"inputOutputType": "",
"isTransient": false,
"jsonSchema": "",
"key": "",
"producer": "",
"searchable": false
]
],
"integrationParametersInternal": ["parameters": [
[
"attributes": [
"dataType": "",
"defaultValue": [
"booleanValue": false,
"doubleArray": ["values": []],
"doubleValue": "",
"intArray": ["values": []],
"intValue": "",
"protoValue": [],
"stringArray": ["values": []],
"stringValue": ""
],
"isRequired": false,
"isSearchable": false,
"logSettings": [
"logFieldName": "",
"sanitizeOptions": [
"isAlreadySanitized": false,
"logType": [],
"privacy": "",
"sanitizeType": ""
],
"seedPeriod": "",
"seedScope": "",
"shorteningLimits": [
"logAction": "",
"logType": [],
"maxArraySize": 0,
"maxStringLength": 0,
"shortenerType": ""
]
],
"searchable": "",
"taskVisibility": []
],
"children": [],
"dataType": "",
"defaultValue": [
"booleanArray": ["booleanValues": []],
"booleanValue": false,
"doubleArray": ["doubleValues": []],
"doubleValue": "",
"intArray": ["intValues": []],
"intValue": "",
"jsonValue": "",
"protoArray": ["protoValues": [[]]],
"protoValue": [],
"serializedObjectValue": ["objectValue": ""],
"stringArray": ["stringValues": []],
"stringValue": ""
],
"inOutType": "",
"isTransient": false,
"jsonSchema": "",
"key": "",
"name": "",
"producedBy": [
"elementIdentifier": "",
"elementType": ""
],
"producer": "",
"protoDefName": "",
"protoDefPath": ""
]
]],
"lastModifierEmail": "",
"lockHolder": "",
"name": "",
"origin": "",
"parentTemplateId": "",
"runAsServiceAccount": "",
"snapshotNumber": "",
"state": "",
"status": "",
"taskConfigs": [
[
"description": "",
"displayName": "",
"errorCatcherId": "",
"externalTaskType": "",
"failurePolicy": [
"intervalTime": "",
"maxRetries": 0,
"retryStrategy": ""
],
"jsonValidationOption": "",
"nextTasks": [[]],
"nextTasksExecutionPolicy": "",
"parameters": [],
"position": [],
"successPolicy": ["finalState": ""],
"synchronousCallFailurePolicy": [],
"task": "",
"taskExecutionStrategy": "",
"taskId": "",
"taskTemplate": ""
]
],
"taskConfigsInternal": [
[
"alertConfigs": [
[
"aggregationPeriod": "",
"alertDisabled": false,
"alertName": "",
"clientId": "",
"durationThresholdMs": "",
"errorEnumList": [
"enumStrings": [],
"filterType": ""
],
"metricType": "",
"numAggregationPeriods": 0,
"onlyFinalAttempt": false,
"playbookUrl": "",
"thresholdType": "",
"thresholdValue": [
"absolute": "",
"percentage": 0
],
"warningEnumList": []
]
],
"createTime": "",
"creatorEmail": "",
"description": "",
"disableStrictTypeValidation": false,
"errorCatcherId": "",
"externalTaskType": "",
"failurePolicy": [
"intervalInSeconds": "",
"maxNumRetries": 0,
"retryStrategy": ""
],
"incomingEdgeCount": 0,
"jsonValidationOption": "",
"label": "",
"lastModifiedTime": "",
"nextTasks": [
[
"combinedConditions": [["conditions": [
[
"eventPropertyKey": "",
"operator": "",
"value": []
]
]]],
"condition": "",
"description": "",
"label": "",
"taskConfigId": "",
"taskNumber": ""
]
],
"nextTasksExecutionPolicy": "",
"parameters": [],
"position": [
"x": 0,
"y": 0
],
"precondition": "",
"preconditionLabel": "",
"rollbackStrategy": [
"parameters": ["parameters": [
[
"dataType": "",
"key": "",
"value": []
]
]],
"rollbackTaskImplementationClassName": "",
"taskNumbersToRollback": []
],
"successPolicy": ["finalState": ""],
"synchronousCallFailurePolicy": [],
"taskEntity": [
"disabledForVpcSc": false,
"metadata": [
"activeTaskName": "",
"admins": [
[
"googleGroupEmail": "",
"userEmail": ""
]
],
"category": "",
"codeSearchLink": "",
"defaultJsonValidationOption": "",
"defaultSpec": "",
"description": "",
"descriptiveName": "",
"docMarkdown": "",
"externalCategory": "",
"externalCategorySequence": 0,
"externalDocHtml": "",
"externalDocLink": "",
"externalDocMarkdown": "",
"g3DocLink": "",
"iconLink": "",
"isDeprecated": false,
"name": "",
"standaloneExternalDocHtml": "",
"status": "",
"system": "",
"tags": []
],
"paramSpecs": ["parameters": [
[
"className": "",
"collectionElementClassName": "",
"config": [
"descriptivePhrase": "",
"helpText": "",
"hideDefaultValue": false,
"inputDisplayOption": "",
"isHidden": false,
"label": "",
"parameterNameOption": "",
"subSectionLabel": "",
"uiPlaceholderText": ""
],
"dataType": "",
"defaultValue": [],
"isDeprecated": false,
"isOutput": false,
"jsonSchema": "",
"key": "",
"protoDef": [
"fullName": "",
"path": ""
],
"required": false,
"validationRule": [
"doubleRange": [
"max": "",
"min": ""
],
"intRange": [
"max": "",
"min": ""
],
"stringRegex": [
"exclusive": false,
"regex": ""
]
]
]
]],
"stats": [
"dimensions": [
"clientId": "",
"enumFilterType": "",
"errorEnumString": "",
"retryAttempt": "",
"taskName": "",
"taskNumber": "",
"triggerId": "",
"warningEnumString": "",
"workflowId": "",
"workflowName": ""
],
"durationInSeconds": "",
"errorRate": "",
"qps": "",
"warningRate": ""
],
"taskType": "",
"uiConfig": ["taskUiModuleConfigs": [["moduleId": ""]]]
],
"taskExecutionStrategy": "",
"taskName": "",
"taskNumber": "",
"taskSpec": "",
"taskTemplateName": "",
"taskType": ""
]
],
"teardown": ["teardownTaskConfigs": [
[
"creatorEmail": "",
"name": "",
"nextTeardownTask": ["name": ""],
"parameters": ["parameters": [
[
"key": "",
"value": [
"booleanArray": ["booleanValues": []],
"booleanValue": false,
"doubleArray": ["doubleValues": []],
"doubleValue": "",
"intArray": ["intValues": []],
"intValue": "",
"protoArray": ["protoValues": [[]]],
"protoValue": [],
"serializedObjectValue": ["objectValue": ""],
"stringArray": ["stringValues": []],
"stringValue": ""
]
]
]],
"properties": ["properties": [
[
"key": "",
"value": []
]
]],
"teardownTaskImplementationClassName": ""
]
]],
"triggerConfigs": [
[
"alertConfig": [
[
"aggregationPeriod": "",
"alertThreshold": 0,
"disableAlert": false,
"displayName": "",
"durationThreshold": "",
"metricType": "",
"onlyFinalAttempt": false,
"thresholdType": "",
"thresholdValue": [
"absolute": "",
"percentage": 0
]
]
],
"cloudSchedulerConfig": [
"cronTab": "",
"errorMessage": "",
"location": "",
"serviceAccountEmail": ""
],
"description": "",
"errorCatcherId": "",
"label": "",
"nextTasksExecutionPolicy": "",
"position": [],
"properties": [],
"startTasks": [[]],
"triggerId": "",
"triggerNumber": "",
"triggerType": ""
]
],
"triggerConfigsInternal": [
[
"alertConfig": [
[
"aggregationPeriod": "",
"alertDisabled": false,
"alertName": "",
"clientId": "",
"durationThresholdMs": "",
"errorEnumList": [],
"metricType": "",
"numAggregationPeriods": 0,
"onlyFinalAttempt": false,
"playbookUrl": "",
"thresholdType": "",
"thresholdValue": [],
"warningEnumList": []
]
],
"cloudSchedulerConfig": [
"cronTab": "",
"errorMessage": "",
"location": "",
"serviceAccountEmail": ""
],
"description": "",
"enabledClients": [],
"errorCatcherId": "",
"label": "",
"nextTasksExecutionPolicy": "",
"pauseWorkflowExecutions": false,
"position": [],
"properties": [],
"startTasks": [[]],
"triggerCriteria": [
"condition": "",
"parameters": [],
"triggerCriteriaTaskImplementationClassName": ""
],
"triggerId": "",
"triggerNumber": "",
"triggerType": ""
]
],
"updateTime": "",
"userLabel": ""
],
"parameters": [],
"testMode": false,
"triggerId": ""
] as [String : Any]
let postData = JSONSerialization.data(withJSONObject: parameters, options: [])
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/v1/:name:test")! 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
integrations.projects.locations.products.integrations.versions.create
{{baseUrl}}/v1/:parent/versions
QUERY PARAMS
parent
BODY json
{
"createTime": "",
"databasePersistencePolicy": "",
"description": "",
"errorCatcherConfigs": [
{
"description": "",
"errorCatcherId": "",
"errorCatcherNumber": "",
"label": "",
"position": {
"x": 0,
"y": 0
},
"startErrorTasks": [
{
"condition": "",
"description": "",
"displayName": "",
"taskConfigId": "",
"taskId": ""
}
]
}
],
"integrationParameters": [
{
"dataType": "",
"defaultValue": {
"booleanArray": {
"booleanValues": []
},
"booleanValue": false,
"doubleArray": {
"doubleValues": []
},
"doubleValue": "",
"intArray": {
"intValues": []
},
"intValue": "",
"jsonValue": "",
"stringArray": {
"stringValues": []
},
"stringValue": ""
},
"displayName": "",
"inputOutputType": "",
"isTransient": false,
"jsonSchema": "",
"key": "",
"producer": "",
"searchable": false
}
],
"integrationParametersInternal": {
"parameters": [
{
"attributes": {
"dataType": "",
"defaultValue": {
"booleanValue": false,
"doubleArray": {
"values": []
},
"doubleValue": "",
"intArray": {
"values": []
},
"intValue": "",
"protoValue": {},
"stringArray": {
"values": []
},
"stringValue": ""
},
"isRequired": false,
"isSearchable": false,
"logSettings": {
"logFieldName": "",
"sanitizeOptions": {
"isAlreadySanitized": false,
"logType": [],
"privacy": "",
"sanitizeType": ""
},
"seedPeriod": "",
"seedScope": "",
"shorteningLimits": {
"logAction": "",
"logType": [],
"maxArraySize": 0,
"maxStringLength": 0,
"shortenerType": ""
}
},
"searchable": "",
"taskVisibility": []
},
"children": [],
"dataType": "",
"defaultValue": {
"booleanArray": {
"booleanValues": []
},
"booleanValue": false,
"doubleArray": {
"doubleValues": []
},
"doubleValue": "",
"intArray": {
"intValues": []
},
"intValue": "",
"jsonValue": "",
"protoArray": {
"protoValues": [
{}
]
},
"protoValue": {},
"serializedObjectValue": {
"objectValue": ""
},
"stringArray": {
"stringValues": []
},
"stringValue": ""
},
"inOutType": "",
"isTransient": false,
"jsonSchema": "",
"key": "",
"name": "",
"producedBy": {
"elementIdentifier": "",
"elementType": ""
},
"producer": "",
"protoDefName": "",
"protoDefPath": ""
}
]
},
"lastModifierEmail": "",
"lockHolder": "",
"name": "",
"origin": "",
"parentTemplateId": "",
"runAsServiceAccount": "",
"snapshotNumber": "",
"state": "",
"status": "",
"taskConfigs": [
{
"description": "",
"displayName": "",
"errorCatcherId": "",
"externalTaskType": "",
"failurePolicy": {
"intervalTime": "",
"maxRetries": 0,
"retryStrategy": ""
},
"jsonValidationOption": "",
"nextTasks": [
{}
],
"nextTasksExecutionPolicy": "",
"parameters": {},
"position": {},
"successPolicy": {
"finalState": ""
},
"synchronousCallFailurePolicy": {},
"task": "",
"taskExecutionStrategy": "",
"taskId": "",
"taskTemplate": ""
}
],
"taskConfigsInternal": [
{
"alertConfigs": [
{
"aggregationPeriod": "",
"alertDisabled": false,
"alertName": "",
"clientId": "",
"durationThresholdMs": "",
"errorEnumList": {
"enumStrings": [],
"filterType": ""
},
"metricType": "",
"numAggregationPeriods": 0,
"onlyFinalAttempt": false,
"playbookUrl": "",
"thresholdType": "",
"thresholdValue": {
"absolute": "",
"percentage": 0
},
"warningEnumList": {}
}
],
"createTime": "",
"creatorEmail": "",
"description": "",
"disableStrictTypeValidation": false,
"errorCatcherId": "",
"externalTaskType": "",
"failurePolicy": {
"intervalInSeconds": "",
"maxNumRetries": 0,
"retryStrategy": ""
},
"incomingEdgeCount": 0,
"jsonValidationOption": "",
"label": "",
"lastModifiedTime": "",
"nextTasks": [
{
"combinedConditions": [
{
"conditions": [
{
"eventPropertyKey": "",
"operator": "",
"value": {}
}
]
}
],
"condition": "",
"description": "",
"label": "",
"taskConfigId": "",
"taskNumber": ""
}
],
"nextTasksExecutionPolicy": "",
"parameters": {},
"position": {
"x": 0,
"y": 0
},
"precondition": "",
"preconditionLabel": "",
"rollbackStrategy": {
"parameters": {
"parameters": [
{
"dataType": "",
"key": "",
"value": {}
}
]
},
"rollbackTaskImplementationClassName": "",
"taskNumbersToRollback": []
},
"successPolicy": {
"finalState": ""
},
"synchronousCallFailurePolicy": {},
"taskEntity": {
"disabledForVpcSc": false,
"metadata": {
"activeTaskName": "",
"admins": [
{
"googleGroupEmail": "",
"userEmail": ""
}
],
"category": "",
"codeSearchLink": "",
"defaultJsonValidationOption": "",
"defaultSpec": "",
"description": "",
"descriptiveName": "",
"docMarkdown": "",
"externalCategory": "",
"externalCategorySequence": 0,
"externalDocHtml": "",
"externalDocLink": "",
"externalDocMarkdown": "",
"g3DocLink": "",
"iconLink": "",
"isDeprecated": false,
"name": "",
"standaloneExternalDocHtml": "",
"status": "",
"system": "",
"tags": []
},
"paramSpecs": {
"parameters": [
{
"className": "",
"collectionElementClassName": "",
"config": {
"descriptivePhrase": "",
"helpText": "",
"hideDefaultValue": false,
"inputDisplayOption": "",
"isHidden": false,
"label": "",
"parameterNameOption": "",
"subSectionLabel": "",
"uiPlaceholderText": ""
},
"dataType": "",
"defaultValue": {},
"isDeprecated": false,
"isOutput": false,
"jsonSchema": "",
"key": "",
"protoDef": {
"fullName": "",
"path": ""
},
"required": false,
"validationRule": {
"doubleRange": {
"max": "",
"min": ""
},
"intRange": {
"max": "",
"min": ""
},
"stringRegex": {
"exclusive": false,
"regex": ""
}
}
}
]
},
"stats": {
"dimensions": {
"clientId": "",
"enumFilterType": "",
"errorEnumString": "",
"retryAttempt": "",
"taskName": "",
"taskNumber": "",
"triggerId": "",
"warningEnumString": "",
"workflowId": "",
"workflowName": ""
},
"durationInSeconds": "",
"errorRate": "",
"qps": "",
"warningRate": ""
},
"taskType": "",
"uiConfig": {
"taskUiModuleConfigs": [
{
"moduleId": ""
}
]
}
},
"taskExecutionStrategy": "",
"taskName": "",
"taskNumber": "",
"taskSpec": "",
"taskTemplateName": "",
"taskType": ""
}
],
"teardown": {
"teardownTaskConfigs": [
{
"creatorEmail": "",
"name": "",
"nextTeardownTask": {
"name": ""
},
"parameters": {
"parameters": [
{
"key": "",
"value": {
"booleanArray": {
"booleanValues": []
},
"booleanValue": false,
"doubleArray": {
"doubleValues": []
},
"doubleValue": "",
"intArray": {
"intValues": []
},
"intValue": "",
"protoArray": {
"protoValues": [
{}
]
},
"protoValue": {},
"serializedObjectValue": {
"objectValue": ""
},
"stringArray": {
"stringValues": []
},
"stringValue": ""
}
}
]
},
"properties": {
"properties": [
{
"key": "",
"value": {}
}
]
},
"teardownTaskImplementationClassName": ""
}
]
},
"triggerConfigs": [
{
"alertConfig": [
{
"aggregationPeriod": "",
"alertThreshold": 0,
"disableAlert": false,
"displayName": "",
"durationThreshold": "",
"metricType": "",
"onlyFinalAttempt": false,
"thresholdType": "",
"thresholdValue": {
"absolute": "",
"percentage": 0
}
}
],
"cloudSchedulerConfig": {
"cronTab": "",
"errorMessage": "",
"location": "",
"serviceAccountEmail": ""
},
"description": "",
"errorCatcherId": "",
"label": "",
"nextTasksExecutionPolicy": "",
"position": {},
"properties": {},
"startTasks": [
{}
],
"triggerId": "",
"triggerNumber": "",
"triggerType": ""
}
],
"triggerConfigsInternal": [
{
"alertConfig": [
{
"aggregationPeriod": "",
"alertDisabled": false,
"alertName": "",
"clientId": "",
"durationThresholdMs": "",
"errorEnumList": {},
"metricType": "",
"numAggregationPeriods": 0,
"onlyFinalAttempt": false,
"playbookUrl": "",
"thresholdType": "",
"thresholdValue": {},
"warningEnumList": {}
}
],
"cloudSchedulerConfig": {
"cronTab": "",
"errorMessage": "",
"location": "",
"serviceAccountEmail": ""
},
"description": "",
"enabledClients": [],
"errorCatcherId": "",
"label": "",
"nextTasksExecutionPolicy": "",
"pauseWorkflowExecutions": false,
"position": {},
"properties": {},
"startTasks": [
{}
],
"triggerCriteria": {
"condition": "",
"parameters": {},
"triggerCriteriaTaskImplementationClassName": ""
},
"triggerId": "",
"triggerNumber": "",
"triggerType": ""
}
],
"updateTime": "",
"userLabel": ""
}
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/v1/:parent/versions");
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 \"databasePersistencePolicy\": \"\",\n \"description\": \"\",\n \"errorCatcherConfigs\": [\n {\n \"description\": \"\",\n \"errorCatcherId\": \"\",\n \"errorCatcherNumber\": \"\",\n \"label\": \"\",\n \"position\": {\n \"x\": 0,\n \"y\": 0\n },\n \"startErrorTasks\": [\n {\n \"condition\": \"\",\n \"description\": \"\",\n \"displayName\": \"\",\n \"taskConfigId\": \"\",\n \"taskId\": \"\"\n }\n ]\n }\n ],\n \"integrationParameters\": [\n {\n \"dataType\": \"\",\n \"defaultValue\": {\n \"booleanArray\": {\n \"booleanValues\": []\n },\n \"booleanValue\": false,\n \"doubleArray\": {\n \"doubleValues\": []\n },\n \"doubleValue\": \"\",\n \"intArray\": {\n \"intValues\": []\n },\n \"intValue\": \"\",\n \"jsonValue\": \"\",\n \"stringArray\": {\n \"stringValues\": []\n },\n \"stringValue\": \"\"\n },\n \"displayName\": \"\",\n \"inputOutputType\": \"\",\n \"isTransient\": false,\n \"jsonSchema\": \"\",\n \"key\": \"\",\n \"producer\": \"\",\n \"searchable\": false\n }\n ],\n \"integrationParametersInternal\": {\n \"parameters\": [\n {\n \"attributes\": {\n \"dataType\": \"\",\n \"defaultValue\": {\n \"booleanValue\": false,\n \"doubleArray\": {\n \"values\": []\n },\n \"doubleValue\": \"\",\n \"intArray\": {\n \"values\": []\n },\n \"intValue\": \"\",\n \"protoValue\": {},\n \"stringArray\": {\n \"values\": []\n },\n \"stringValue\": \"\"\n },\n \"isRequired\": false,\n \"isSearchable\": false,\n \"logSettings\": {\n \"logFieldName\": \"\",\n \"sanitizeOptions\": {\n \"isAlreadySanitized\": false,\n \"logType\": [],\n \"privacy\": \"\",\n \"sanitizeType\": \"\"\n },\n \"seedPeriod\": \"\",\n \"seedScope\": \"\",\n \"shorteningLimits\": {\n \"logAction\": \"\",\n \"logType\": [],\n \"maxArraySize\": 0,\n \"maxStringLength\": 0,\n \"shortenerType\": \"\"\n }\n },\n \"searchable\": \"\",\n \"taskVisibility\": []\n },\n \"children\": [],\n \"dataType\": \"\",\n \"defaultValue\": {\n \"booleanArray\": {\n \"booleanValues\": []\n },\n \"booleanValue\": false,\n \"doubleArray\": {\n \"doubleValues\": []\n },\n \"doubleValue\": \"\",\n \"intArray\": {\n \"intValues\": []\n },\n \"intValue\": \"\",\n \"jsonValue\": \"\",\n \"protoArray\": {\n \"protoValues\": [\n {}\n ]\n },\n \"protoValue\": {},\n \"serializedObjectValue\": {\n \"objectValue\": \"\"\n },\n \"stringArray\": {\n \"stringValues\": []\n },\n \"stringValue\": \"\"\n },\n \"inOutType\": \"\",\n \"isTransient\": false,\n \"jsonSchema\": \"\",\n \"key\": \"\",\n \"name\": \"\",\n \"producedBy\": {\n \"elementIdentifier\": \"\",\n \"elementType\": \"\"\n },\n \"producer\": \"\",\n \"protoDefName\": \"\",\n \"protoDefPath\": \"\"\n }\n ]\n },\n \"lastModifierEmail\": \"\",\n \"lockHolder\": \"\",\n \"name\": \"\",\n \"origin\": \"\",\n \"parentTemplateId\": \"\",\n \"runAsServiceAccount\": \"\",\n \"snapshotNumber\": \"\",\n \"state\": \"\",\n \"status\": \"\",\n \"taskConfigs\": [\n {\n \"description\": \"\",\n \"displayName\": \"\",\n \"errorCatcherId\": \"\",\n \"externalTaskType\": \"\",\n \"failurePolicy\": {\n \"intervalTime\": \"\",\n \"maxRetries\": 0,\n \"retryStrategy\": \"\"\n },\n \"jsonValidationOption\": \"\",\n \"nextTasks\": [\n {}\n ],\n \"nextTasksExecutionPolicy\": \"\",\n \"parameters\": {},\n \"position\": {},\n \"successPolicy\": {\n \"finalState\": \"\"\n },\n \"synchronousCallFailurePolicy\": {},\n \"task\": \"\",\n \"taskExecutionStrategy\": \"\",\n \"taskId\": \"\",\n \"taskTemplate\": \"\"\n }\n ],\n \"taskConfigsInternal\": [\n {\n \"alertConfigs\": [\n {\n \"aggregationPeriod\": \"\",\n \"alertDisabled\": false,\n \"alertName\": \"\",\n \"clientId\": \"\",\n \"durationThresholdMs\": \"\",\n \"errorEnumList\": {\n \"enumStrings\": [],\n \"filterType\": \"\"\n },\n \"metricType\": \"\",\n \"numAggregationPeriods\": 0,\n \"onlyFinalAttempt\": false,\n \"playbookUrl\": \"\",\n \"thresholdType\": \"\",\n \"thresholdValue\": {\n \"absolute\": \"\",\n \"percentage\": 0\n },\n \"warningEnumList\": {}\n }\n ],\n \"createTime\": \"\",\n \"creatorEmail\": \"\",\n \"description\": \"\",\n \"disableStrictTypeValidation\": false,\n \"errorCatcherId\": \"\",\n \"externalTaskType\": \"\",\n \"failurePolicy\": {\n \"intervalInSeconds\": \"\",\n \"maxNumRetries\": 0,\n \"retryStrategy\": \"\"\n },\n \"incomingEdgeCount\": 0,\n \"jsonValidationOption\": \"\",\n \"label\": \"\",\n \"lastModifiedTime\": \"\",\n \"nextTasks\": [\n {\n \"combinedConditions\": [\n {\n \"conditions\": [\n {\n \"eventPropertyKey\": \"\",\n \"operator\": \"\",\n \"value\": {}\n }\n ]\n }\n ],\n \"condition\": \"\",\n \"description\": \"\",\n \"label\": \"\",\n \"taskConfigId\": \"\",\n \"taskNumber\": \"\"\n }\n ],\n \"nextTasksExecutionPolicy\": \"\",\n \"parameters\": {},\n \"position\": {\n \"x\": 0,\n \"y\": 0\n },\n \"precondition\": \"\",\n \"preconditionLabel\": \"\",\n \"rollbackStrategy\": {\n \"parameters\": {\n \"parameters\": [\n {\n \"dataType\": \"\",\n \"key\": \"\",\n \"value\": {}\n }\n ]\n },\n \"rollbackTaskImplementationClassName\": \"\",\n \"taskNumbersToRollback\": []\n },\n \"successPolicy\": {\n \"finalState\": \"\"\n },\n \"synchronousCallFailurePolicy\": {},\n \"taskEntity\": {\n \"disabledForVpcSc\": false,\n \"metadata\": {\n \"activeTaskName\": \"\",\n \"admins\": [\n {\n \"googleGroupEmail\": \"\",\n \"userEmail\": \"\"\n }\n ],\n \"category\": \"\",\n \"codeSearchLink\": \"\",\n \"defaultJsonValidationOption\": \"\",\n \"defaultSpec\": \"\",\n \"description\": \"\",\n \"descriptiveName\": \"\",\n \"docMarkdown\": \"\",\n \"externalCategory\": \"\",\n \"externalCategorySequence\": 0,\n \"externalDocHtml\": \"\",\n \"externalDocLink\": \"\",\n \"externalDocMarkdown\": \"\",\n \"g3DocLink\": \"\",\n \"iconLink\": \"\",\n \"isDeprecated\": false,\n \"name\": \"\",\n \"standaloneExternalDocHtml\": \"\",\n \"status\": \"\",\n \"system\": \"\",\n \"tags\": []\n },\n \"paramSpecs\": {\n \"parameters\": [\n {\n \"className\": \"\",\n \"collectionElementClassName\": \"\",\n \"config\": {\n \"descriptivePhrase\": \"\",\n \"helpText\": \"\",\n \"hideDefaultValue\": false,\n \"inputDisplayOption\": \"\",\n \"isHidden\": false,\n \"label\": \"\",\n \"parameterNameOption\": \"\",\n \"subSectionLabel\": \"\",\n \"uiPlaceholderText\": \"\"\n },\n \"dataType\": \"\",\n \"defaultValue\": {},\n \"isDeprecated\": false,\n \"isOutput\": false,\n \"jsonSchema\": \"\",\n \"key\": \"\",\n \"protoDef\": {\n \"fullName\": \"\",\n \"path\": \"\"\n },\n \"required\": false,\n \"validationRule\": {\n \"doubleRange\": {\n \"max\": \"\",\n \"min\": \"\"\n },\n \"intRange\": {\n \"max\": \"\",\n \"min\": \"\"\n },\n \"stringRegex\": {\n \"exclusive\": false,\n \"regex\": \"\"\n }\n }\n }\n ]\n },\n \"stats\": {\n \"dimensions\": {\n \"clientId\": \"\",\n \"enumFilterType\": \"\",\n \"errorEnumString\": \"\",\n \"retryAttempt\": \"\",\n \"taskName\": \"\",\n \"taskNumber\": \"\",\n \"triggerId\": \"\",\n \"warningEnumString\": \"\",\n \"workflowId\": \"\",\n \"workflowName\": \"\"\n },\n \"durationInSeconds\": \"\",\n \"errorRate\": \"\",\n \"qps\": \"\",\n \"warningRate\": \"\"\n },\n \"taskType\": \"\",\n \"uiConfig\": {\n \"taskUiModuleConfigs\": [\n {\n \"moduleId\": \"\"\n }\n ]\n }\n },\n \"taskExecutionStrategy\": \"\",\n \"taskName\": \"\",\n \"taskNumber\": \"\",\n \"taskSpec\": \"\",\n \"taskTemplateName\": \"\",\n \"taskType\": \"\"\n }\n ],\n \"teardown\": {\n \"teardownTaskConfigs\": [\n {\n \"creatorEmail\": \"\",\n \"name\": \"\",\n \"nextTeardownTask\": {\n \"name\": \"\"\n },\n \"parameters\": {\n \"parameters\": [\n {\n \"key\": \"\",\n \"value\": {\n \"booleanArray\": {\n \"booleanValues\": []\n },\n \"booleanValue\": false,\n \"doubleArray\": {\n \"doubleValues\": []\n },\n \"doubleValue\": \"\",\n \"intArray\": {\n \"intValues\": []\n },\n \"intValue\": \"\",\n \"protoArray\": {\n \"protoValues\": [\n {}\n ]\n },\n \"protoValue\": {},\n \"serializedObjectValue\": {\n \"objectValue\": \"\"\n },\n \"stringArray\": {\n \"stringValues\": []\n },\n \"stringValue\": \"\"\n }\n }\n ]\n },\n \"properties\": {\n \"properties\": [\n {\n \"key\": \"\",\n \"value\": {}\n }\n ]\n },\n \"teardownTaskImplementationClassName\": \"\"\n }\n ]\n },\n \"triggerConfigs\": [\n {\n \"alertConfig\": [\n {\n \"aggregationPeriod\": \"\",\n \"alertThreshold\": 0,\n \"disableAlert\": false,\n \"displayName\": \"\",\n \"durationThreshold\": \"\",\n \"metricType\": \"\",\n \"onlyFinalAttempt\": false,\n \"thresholdType\": \"\",\n \"thresholdValue\": {\n \"absolute\": \"\",\n \"percentage\": 0\n }\n }\n ],\n \"cloudSchedulerConfig\": {\n \"cronTab\": \"\",\n \"errorMessage\": \"\",\n \"location\": \"\",\n \"serviceAccountEmail\": \"\"\n },\n \"description\": \"\",\n \"errorCatcherId\": \"\",\n \"label\": \"\",\n \"nextTasksExecutionPolicy\": \"\",\n \"position\": {},\n \"properties\": {},\n \"startTasks\": [\n {}\n ],\n \"triggerId\": \"\",\n \"triggerNumber\": \"\",\n \"triggerType\": \"\"\n }\n ],\n \"triggerConfigsInternal\": [\n {\n \"alertConfig\": [\n {\n \"aggregationPeriod\": \"\",\n \"alertDisabled\": false,\n \"alertName\": \"\",\n \"clientId\": \"\",\n \"durationThresholdMs\": \"\",\n \"errorEnumList\": {},\n \"metricType\": \"\",\n \"numAggregationPeriods\": 0,\n \"onlyFinalAttempt\": false,\n \"playbookUrl\": \"\",\n \"thresholdType\": \"\",\n \"thresholdValue\": {},\n \"warningEnumList\": {}\n }\n ],\n \"cloudSchedulerConfig\": {\n \"cronTab\": \"\",\n \"errorMessage\": \"\",\n \"location\": \"\",\n \"serviceAccountEmail\": \"\"\n },\n \"description\": \"\",\n \"enabledClients\": [],\n \"errorCatcherId\": \"\",\n \"label\": \"\",\n \"nextTasksExecutionPolicy\": \"\",\n \"pauseWorkflowExecutions\": false,\n \"position\": {},\n \"properties\": {},\n \"startTasks\": [\n {}\n ],\n \"triggerCriteria\": {\n \"condition\": \"\",\n \"parameters\": {},\n \"triggerCriteriaTaskImplementationClassName\": \"\"\n },\n \"triggerId\": \"\",\n \"triggerNumber\": \"\",\n \"triggerType\": \"\"\n }\n ],\n \"updateTime\": \"\",\n \"userLabel\": \"\"\n}");
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/post "{{baseUrl}}/v1/:parent/versions" {:content-type :json
:form-params {:createTime ""
:databasePersistencePolicy ""
:description ""
:errorCatcherConfigs [{:description ""
:errorCatcherId ""
:errorCatcherNumber ""
:label ""
:position {:x 0
:y 0}
:startErrorTasks [{:condition ""
:description ""
:displayName ""
:taskConfigId ""
:taskId ""}]}]
:integrationParameters [{:dataType ""
:defaultValue {:booleanArray {:booleanValues []}
:booleanValue false
:doubleArray {:doubleValues []}
:doubleValue ""
:intArray {:intValues []}
:intValue ""
:jsonValue ""
:stringArray {:stringValues []}
:stringValue ""}
:displayName ""
:inputOutputType ""
:isTransient false
:jsonSchema ""
:key ""
:producer ""
:searchable false}]
:integrationParametersInternal {:parameters [{:attributes {:dataType ""
:defaultValue {:booleanValue false
:doubleArray {:values []}
:doubleValue ""
:intArray {:values []}
:intValue ""
:protoValue {}
:stringArray {:values []}
:stringValue ""}
:isRequired false
:isSearchable false
:logSettings {:logFieldName ""
:sanitizeOptions {:isAlreadySanitized false
:logType []
:privacy ""
:sanitizeType ""}
:seedPeriod ""
:seedScope ""
:shorteningLimits {:logAction ""
:logType []
:maxArraySize 0
:maxStringLength 0
:shortenerType ""}}
:searchable ""
:taskVisibility []}
:children []
:dataType ""
:defaultValue {:booleanArray {:booleanValues []}
:booleanValue false
:doubleArray {:doubleValues []}
:doubleValue ""
:intArray {:intValues []}
:intValue ""
:jsonValue ""
:protoArray {:protoValues [{}]}
:protoValue {}
:serializedObjectValue {:objectValue ""}
:stringArray {:stringValues []}
:stringValue ""}
:inOutType ""
:isTransient false
:jsonSchema ""
:key ""
:name ""
:producedBy {:elementIdentifier ""
:elementType ""}
:producer ""
:protoDefName ""
:protoDefPath ""}]}
:lastModifierEmail ""
:lockHolder ""
:name ""
:origin ""
:parentTemplateId ""
:runAsServiceAccount ""
:snapshotNumber ""
:state ""
:status ""
:taskConfigs [{:description ""
:displayName ""
:errorCatcherId ""
:externalTaskType ""
:failurePolicy {:intervalTime ""
:maxRetries 0
:retryStrategy ""}
:jsonValidationOption ""
:nextTasks [{}]
:nextTasksExecutionPolicy ""
:parameters {}
:position {}
:successPolicy {:finalState ""}
:synchronousCallFailurePolicy {}
:task ""
:taskExecutionStrategy ""
:taskId ""
:taskTemplate ""}]
:taskConfigsInternal [{:alertConfigs [{:aggregationPeriod ""
:alertDisabled false
:alertName ""
:clientId ""
:durationThresholdMs ""
:errorEnumList {:enumStrings []
:filterType ""}
:metricType ""
:numAggregationPeriods 0
:onlyFinalAttempt false
:playbookUrl ""
:thresholdType ""
:thresholdValue {:absolute ""
:percentage 0}
:warningEnumList {}}]
:createTime ""
:creatorEmail ""
:description ""
:disableStrictTypeValidation false
:errorCatcherId ""
:externalTaskType ""
:failurePolicy {:intervalInSeconds ""
:maxNumRetries 0
:retryStrategy ""}
:incomingEdgeCount 0
:jsonValidationOption ""
:label ""
:lastModifiedTime ""
:nextTasks [{:combinedConditions [{:conditions [{:eventPropertyKey ""
:operator ""
:value {}}]}]
:condition ""
:description ""
:label ""
:taskConfigId ""
:taskNumber ""}]
:nextTasksExecutionPolicy ""
:parameters {}
:position {:x 0
:y 0}
:precondition ""
:preconditionLabel ""
:rollbackStrategy {:parameters {:parameters [{:dataType ""
:key ""
:value {}}]}
:rollbackTaskImplementationClassName ""
:taskNumbersToRollback []}
:successPolicy {:finalState ""}
:synchronousCallFailurePolicy {}
:taskEntity {:disabledForVpcSc false
:metadata {:activeTaskName ""
:admins [{:googleGroupEmail ""
:userEmail ""}]
:category ""
:codeSearchLink ""
:defaultJsonValidationOption ""
:defaultSpec ""
:description ""
:descriptiveName ""
:docMarkdown ""
:externalCategory ""
:externalCategorySequence 0
:externalDocHtml ""
:externalDocLink ""
:externalDocMarkdown ""
:g3DocLink ""
:iconLink ""
:isDeprecated false
:name ""
:standaloneExternalDocHtml ""
:status ""
:system ""
:tags []}
:paramSpecs {:parameters [{:className ""
:collectionElementClassName ""
:config {:descriptivePhrase ""
:helpText ""
:hideDefaultValue false
:inputDisplayOption ""
:isHidden false
:label ""
:parameterNameOption ""
:subSectionLabel ""
:uiPlaceholderText ""}
:dataType ""
:defaultValue {}
:isDeprecated false
:isOutput false
:jsonSchema ""
:key ""
:protoDef {:fullName ""
:path ""}
:required false
:validationRule {:doubleRange {:max ""
:min ""}
:intRange {:max ""
:min ""}
:stringRegex {:exclusive false
:regex ""}}}]}
:stats {:dimensions {:clientId ""
:enumFilterType ""
:errorEnumString ""
:retryAttempt ""
:taskName ""
:taskNumber ""
:triggerId ""
:warningEnumString ""
:workflowId ""
:workflowName ""}
:durationInSeconds ""
:errorRate ""
:qps ""
:warningRate ""}
:taskType ""
:uiConfig {:taskUiModuleConfigs [{:moduleId ""}]}}
:taskExecutionStrategy ""
:taskName ""
:taskNumber ""
:taskSpec ""
:taskTemplateName ""
:taskType ""}]
:teardown {:teardownTaskConfigs [{:creatorEmail ""
:name ""
:nextTeardownTask {:name ""}
:parameters {:parameters [{:key ""
:value {:booleanArray {:booleanValues []}
:booleanValue false
:doubleArray {:doubleValues []}
:doubleValue ""
:intArray {:intValues []}
:intValue ""
:protoArray {:protoValues [{}]}
:protoValue {}
:serializedObjectValue {:objectValue ""}
:stringArray {:stringValues []}
:stringValue ""}}]}
:properties {:properties [{:key ""
:value {}}]}
:teardownTaskImplementationClassName ""}]}
:triggerConfigs [{:alertConfig [{:aggregationPeriod ""
:alertThreshold 0
:disableAlert false
:displayName ""
:durationThreshold ""
:metricType ""
:onlyFinalAttempt false
:thresholdType ""
:thresholdValue {:absolute ""
:percentage 0}}]
:cloudSchedulerConfig {:cronTab ""
:errorMessage ""
:location ""
:serviceAccountEmail ""}
:description ""
:errorCatcherId ""
:label ""
:nextTasksExecutionPolicy ""
:position {}
:properties {}
:startTasks [{}]
:triggerId ""
:triggerNumber ""
:triggerType ""}]
:triggerConfigsInternal [{:alertConfig [{:aggregationPeriod ""
:alertDisabled false
:alertName ""
:clientId ""
:durationThresholdMs ""
:errorEnumList {}
:metricType ""
:numAggregationPeriods 0
:onlyFinalAttempt false
:playbookUrl ""
:thresholdType ""
:thresholdValue {}
:warningEnumList {}}]
:cloudSchedulerConfig {:cronTab ""
:errorMessage ""
:location ""
:serviceAccountEmail ""}
:description ""
:enabledClients []
:errorCatcherId ""
:label ""
:nextTasksExecutionPolicy ""
:pauseWorkflowExecutions false
:position {}
:properties {}
:startTasks [{}]
:triggerCriteria {:condition ""
:parameters {}
:triggerCriteriaTaskImplementationClassName ""}
:triggerId ""
:triggerNumber ""
:triggerType ""}]
:updateTime ""
:userLabel ""}})
require "http/client"
url = "{{baseUrl}}/v1/:parent/versions"
headers = HTTP::Headers{
"content-type" => "application/json"
}
reqBody = "{\n \"createTime\": \"\",\n \"databasePersistencePolicy\": \"\",\n \"description\": \"\",\n \"errorCatcherConfigs\": [\n {\n \"description\": \"\",\n \"errorCatcherId\": \"\",\n \"errorCatcherNumber\": \"\",\n \"label\": \"\",\n \"position\": {\n \"x\": 0,\n \"y\": 0\n },\n \"startErrorTasks\": [\n {\n \"condition\": \"\",\n \"description\": \"\",\n \"displayName\": \"\",\n \"taskConfigId\": \"\",\n \"taskId\": \"\"\n }\n ]\n }\n ],\n \"integrationParameters\": [\n {\n \"dataType\": \"\",\n \"defaultValue\": {\n \"booleanArray\": {\n \"booleanValues\": []\n },\n \"booleanValue\": false,\n \"doubleArray\": {\n \"doubleValues\": []\n },\n \"doubleValue\": \"\",\n \"intArray\": {\n \"intValues\": []\n },\n \"intValue\": \"\",\n \"jsonValue\": \"\",\n \"stringArray\": {\n \"stringValues\": []\n },\n \"stringValue\": \"\"\n },\n \"displayName\": \"\",\n \"inputOutputType\": \"\",\n \"isTransient\": false,\n \"jsonSchema\": \"\",\n \"key\": \"\",\n \"producer\": \"\",\n \"searchable\": false\n }\n ],\n \"integrationParametersInternal\": {\n \"parameters\": [\n {\n \"attributes\": {\n \"dataType\": \"\",\n \"defaultValue\": {\n \"booleanValue\": false,\n \"doubleArray\": {\n \"values\": []\n },\n \"doubleValue\": \"\",\n \"intArray\": {\n \"values\": []\n },\n \"intValue\": \"\",\n \"protoValue\": {},\n \"stringArray\": {\n \"values\": []\n },\n \"stringValue\": \"\"\n },\n \"isRequired\": false,\n \"isSearchable\": false,\n \"logSettings\": {\n \"logFieldName\": \"\",\n \"sanitizeOptions\": {\n \"isAlreadySanitized\": false,\n \"logType\": [],\n \"privacy\": \"\",\n \"sanitizeType\": \"\"\n },\n \"seedPeriod\": \"\",\n \"seedScope\": \"\",\n \"shorteningLimits\": {\n \"logAction\": \"\",\n \"logType\": [],\n \"maxArraySize\": 0,\n \"maxStringLength\": 0,\n \"shortenerType\": \"\"\n }\n },\n \"searchable\": \"\",\n \"taskVisibility\": []\n },\n \"children\": [],\n \"dataType\": \"\",\n \"defaultValue\": {\n \"booleanArray\": {\n \"booleanValues\": []\n },\n \"booleanValue\": false,\n \"doubleArray\": {\n \"doubleValues\": []\n },\n \"doubleValue\": \"\",\n \"intArray\": {\n \"intValues\": []\n },\n \"intValue\": \"\",\n \"jsonValue\": \"\",\n \"protoArray\": {\n \"protoValues\": [\n {}\n ]\n },\n \"protoValue\": {},\n \"serializedObjectValue\": {\n \"objectValue\": \"\"\n },\n \"stringArray\": {\n \"stringValues\": []\n },\n \"stringValue\": \"\"\n },\n \"inOutType\": \"\",\n \"isTransient\": false,\n \"jsonSchema\": \"\",\n \"key\": \"\",\n \"name\": \"\",\n \"producedBy\": {\n \"elementIdentifier\": \"\",\n \"elementType\": \"\"\n },\n \"producer\": \"\",\n \"protoDefName\": \"\",\n \"protoDefPath\": \"\"\n }\n ]\n },\n \"lastModifierEmail\": \"\",\n \"lockHolder\": \"\",\n \"name\": \"\",\n \"origin\": \"\",\n \"parentTemplateId\": \"\",\n \"runAsServiceAccount\": \"\",\n \"snapshotNumber\": \"\",\n \"state\": \"\",\n \"status\": \"\",\n \"taskConfigs\": [\n {\n \"description\": \"\",\n \"displayName\": \"\",\n \"errorCatcherId\": \"\",\n \"externalTaskType\": \"\",\n \"failurePolicy\": {\n \"intervalTime\": \"\",\n \"maxRetries\": 0,\n \"retryStrategy\": \"\"\n },\n \"jsonValidationOption\": \"\",\n \"nextTasks\": [\n {}\n ],\n \"nextTasksExecutionPolicy\": \"\",\n \"parameters\": {},\n \"position\": {},\n \"successPolicy\": {\n \"finalState\": \"\"\n },\n \"synchronousCallFailurePolicy\": {},\n \"task\": \"\",\n \"taskExecutionStrategy\": \"\",\n \"taskId\": \"\",\n \"taskTemplate\": \"\"\n }\n ],\n \"taskConfigsInternal\": [\n {\n \"alertConfigs\": [\n {\n \"aggregationPeriod\": \"\",\n \"alertDisabled\": false,\n \"alertName\": \"\",\n \"clientId\": \"\",\n \"durationThresholdMs\": \"\",\n \"errorEnumList\": {\n \"enumStrings\": [],\n \"filterType\": \"\"\n },\n \"metricType\": \"\",\n \"numAggregationPeriods\": 0,\n \"onlyFinalAttempt\": false,\n \"playbookUrl\": \"\",\n \"thresholdType\": \"\",\n \"thresholdValue\": {\n \"absolute\": \"\",\n \"percentage\": 0\n },\n \"warningEnumList\": {}\n }\n ],\n \"createTime\": \"\",\n \"creatorEmail\": \"\",\n \"description\": \"\",\n \"disableStrictTypeValidation\": false,\n \"errorCatcherId\": \"\",\n \"externalTaskType\": \"\",\n \"failurePolicy\": {\n \"intervalInSeconds\": \"\",\n \"maxNumRetries\": 0,\n \"retryStrategy\": \"\"\n },\n \"incomingEdgeCount\": 0,\n \"jsonValidationOption\": \"\",\n \"label\": \"\",\n \"lastModifiedTime\": \"\",\n \"nextTasks\": [\n {\n \"combinedConditions\": [\n {\n \"conditions\": [\n {\n \"eventPropertyKey\": \"\",\n \"operator\": \"\",\n \"value\": {}\n }\n ]\n }\n ],\n \"condition\": \"\",\n \"description\": \"\",\n \"label\": \"\",\n \"taskConfigId\": \"\",\n \"taskNumber\": \"\"\n }\n ],\n \"nextTasksExecutionPolicy\": \"\",\n \"parameters\": {},\n \"position\": {\n \"x\": 0,\n \"y\": 0\n },\n \"precondition\": \"\",\n \"preconditionLabel\": \"\",\n \"rollbackStrategy\": {\n \"parameters\": {\n \"parameters\": [\n {\n \"dataType\": \"\",\n \"key\": \"\",\n \"value\": {}\n }\n ]\n },\n \"rollbackTaskImplementationClassName\": \"\",\n \"taskNumbersToRollback\": []\n },\n \"successPolicy\": {\n \"finalState\": \"\"\n },\n \"synchronousCallFailurePolicy\": {},\n \"taskEntity\": {\n \"disabledForVpcSc\": false,\n \"metadata\": {\n \"activeTaskName\": \"\",\n \"admins\": [\n {\n \"googleGroupEmail\": \"\",\n \"userEmail\": \"\"\n }\n ],\n \"category\": \"\",\n \"codeSearchLink\": \"\",\n \"defaultJsonValidationOption\": \"\",\n \"defaultSpec\": \"\",\n \"description\": \"\",\n \"descriptiveName\": \"\",\n \"docMarkdown\": \"\",\n \"externalCategory\": \"\",\n \"externalCategorySequence\": 0,\n \"externalDocHtml\": \"\",\n \"externalDocLink\": \"\",\n \"externalDocMarkdown\": \"\",\n \"g3DocLink\": \"\",\n \"iconLink\": \"\",\n \"isDeprecated\": false,\n \"name\": \"\",\n \"standaloneExternalDocHtml\": \"\",\n \"status\": \"\",\n \"system\": \"\",\n \"tags\": []\n },\n \"paramSpecs\": {\n \"parameters\": [\n {\n \"className\": \"\",\n \"collectionElementClassName\": \"\",\n \"config\": {\n \"descriptivePhrase\": \"\",\n \"helpText\": \"\",\n \"hideDefaultValue\": false,\n \"inputDisplayOption\": \"\",\n \"isHidden\": false,\n \"label\": \"\",\n \"parameterNameOption\": \"\",\n \"subSectionLabel\": \"\",\n \"uiPlaceholderText\": \"\"\n },\n \"dataType\": \"\",\n \"defaultValue\": {},\n \"isDeprecated\": false,\n \"isOutput\": false,\n \"jsonSchema\": \"\",\n \"key\": \"\",\n \"protoDef\": {\n \"fullName\": \"\",\n \"path\": \"\"\n },\n \"required\": false,\n \"validationRule\": {\n \"doubleRange\": {\n \"max\": \"\",\n \"min\": \"\"\n },\n \"intRange\": {\n \"max\": \"\",\n \"min\": \"\"\n },\n \"stringRegex\": {\n \"exclusive\": false,\n \"regex\": \"\"\n }\n }\n }\n ]\n },\n \"stats\": {\n \"dimensions\": {\n \"clientId\": \"\",\n \"enumFilterType\": \"\",\n \"errorEnumString\": \"\",\n \"retryAttempt\": \"\",\n \"taskName\": \"\",\n \"taskNumber\": \"\",\n \"triggerId\": \"\",\n \"warningEnumString\": \"\",\n \"workflowId\": \"\",\n \"workflowName\": \"\"\n },\n \"durationInSeconds\": \"\",\n \"errorRate\": \"\",\n \"qps\": \"\",\n \"warningRate\": \"\"\n },\n \"taskType\": \"\",\n \"uiConfig\": {\n \"taskUiModuleConfigs\": [\n {\n \"moduleId\": \"\"\n }\n ]\n }\n },\n \"taskExecutionStrategy\": \"\",\n \"taskName\": \"\",\n \"taskNumber\": \"\",\n \"taskSpec\": \"\",\n \"taskTemplateName\": \"\",\n \"taskType\": \"\"\n }\n ],\n \"teardown\": {\n \"teardownTaskConfigs\": [\n {\n \"creatorEmail\": \"\",\n \"name\": \"\",\n \"nextTeardownTask\": {\n \"name\": \"\"\n },\n \"parameters\": {\n \"parameters\": [\n {\n \"key\": \"\",\n \"value\": {\n \"booleanArray\": {\n \"booleanValues\": []\n },\n \"booleanValue\": false,\n \"doubleArray\": {\n \"doubleValues\": []\n },\n \"doubleValue\": \"\",\n \"intArray\": {\n \"intValues\": []\n },\n \"intValue\": \"\",\n \"protoArray\": {\n \"protoValues\": [\n {}\n ]\n },\n \"protoValue\": {},\n \"serializedObjectValue\": {\n \"objectValue\": \"\"\n },\n \"stringArray\": {\n \"stringValues\": []\n },\n \"stringValue\": \"\"\n }\n }\n ]\n },\n \"properties\": {\n \"properties\": [\n {\n \"key\": \"\",\n \"value\": {}\n }\n ]\n },\n \"teardownTaskImplementationClassName\": \"\"\n }\n ]\n },\n \"triggerConfigs\": [\n {\n \"alertConfig\": [\n {\n \"aggregationPeriod\": \"\",\n \"alertThreshold\": 0,\n \"disableAlert\": false,\n \"displayName\": \"\",\n \"durationThreshold\": \"\",\n \"metricType\": \"\",\n \"onlyFinalAttempt\": false,\n \"thresholdType\": \"\",\n \"thresholdValue\": {\n \"absolute\": \"\",\n \"percentage\": 0\n }\n }\n ],\n \"cloudSchedulerConfig\": {\n \"cronTab\": \"\",\n \"errorMessage\": \"\",\n \"location\": \"\",\n \"serviceAccountEmail\": \"\"\n },\n \"description\": \"\",\n \"errorCatcherId\": \"\",\n \"label\": \"\",\n \"nextTasksExecutionPolicy\": \"\",\n \"position\": {},\n \"properties\": {},\n \"startTasks\": [\n {}\n ],\n \"triggerId\": \"\",\n \"triggerNumber\": \"\",\n \"triggerType\": \"\"\n }\n ],\n \"triggerConfigsInternal\": [\n {\n \"alertConfig\": [\n {\n \"aggregationPeriod\": \"\",\n \"alertDisabled\": false,\n \"alertName\": \"\",\n \"clientId\": \"\",\n \"durationThresholdMs\": \"\",\n \"errorEnumList\": {},\n \"metricType\": \"\",\n \"numAggregationPeriods\": 0,\n \"onlyFinalAttempt\": false,\n \"playbookUrl\": \"\",\n \"thresholdType\": \"\",\n \"thresholdValue\": {},\n \"warningEnumList\": {}\n }\n ],\n \"cloudSchedulerConfig\": {\n \"cronTab\": \"\",\n \"errorMessage\": \"\",\n \"location\": \"\",\n \"serviceAccountEmail\": \"\"\n },\n \"description\": \"\",\n \"enabledClients\": [],\n \"errorCatcherId\": \"\",\n \"label\": \"\",\n \"nextTasksExecutionPolicy\": \"\",\n \"pauseWorkflowExecutions\": false,\n \"position\": {},\n \"properties\": {},\n \"startTasks\": [\n {}\n ],\n \"triggerCriteria\": {\n \"condition\": \"\",\n \"parameters\": {},\n \"triggerCriteriaTaskImplementationClassName\": \"\"\n },\n \"triggerId\": \"\",\n \"triggerNumber\": \"\",\n \"triggerType\": \"\"\n }\n ],\n \"updateTime\": \"\",\n \"userLabel\": \"\"\n}"
response = HTTP::Client.post url, headers: headers, body: reqBody
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Post,
RequestUri = new Uri("{{baseUrl}}/v1/:parent/versions"),
Content = new StringContent("{\n \"createTime\": \"\",\n \"databasePersistencePolicy\": \"\",\n \"description\": \"\",\n \"errorCatcherConfigs\": [\n {\n \"description\": \"\",\n \"errorCatcherId\": \"\",\n \"errorCatcherNumber\": \"\",\n \"label\": \"\",\n \"position\": {\n \"x\": 0,\n \"y\": 0\n },\n \"startErrorTasks\": [\n {\n \"condition\": \"\",\n \"description\": \"\",\n \"displayName\": \"\",\n \"taskConfigId\": \"\",\n \"taskId\": \"\"\n }\n ]\n }\n ],\n \"integrationParameters\": [\n {\n \"dataType\": \"\",\n \"defaultValue\": {\n \"booleanArray\": {\n \"booleanValues\": []\n },\n \"booleanValue\": false,\n \"doubleArray\": {\n \"doubleValues\": []\n },\n \"doubleValue\": \"\",\n \"intArray\": {\n \"intValues\": []\n },\n \"intValue\": \"\",\n \"jsonValue\": \"\",\n \"stringArray\": {\n \"stringValues\": []\n },\n \"stringValue\": \"\"\n },\n \"displayName\": \"\",\n \"inputOutputType\": \"\",\n \"isTransient\": false,\n \"jsonSchema\": \"\",\n \"key\": \"\",\n \"producer\": \"\",\n \"searchable\": false\n }\n ],\n \"integrationParametersInternal\": {\n \"parameters\": [\n {\n \"attributes\": {\n \"dataType\": \"\",\n \"defaultValue\": {\n \"booleanValue\": false,\n \"doubleArray\": {\n \"values\": []\n },\n \"doubleValue\": \"\",\n \"intArray\": {\n \"values\": []\n },\n \"intValue\": \"\",\n \"protoValue\": {},\n \"stringArray\": {\n \"values\": []\n },\n \"stringValue\": \"\"\n },\n \"isRequired\": false,\n \"isSearchable\": false,\n \"logSettings\": {\n \"logFieldName\": \"\",\n \"sanitizeOptions\": {\n \"isAlreadySanitized\": false,\n \"logType\": [],\n \"privacy\": \"\",\n \"sanitizeType\": \"\"\n },\n \"seedPeriod\": \"\",\n \"seedScope\": \"\",\n \"shorteningLimits\": {\n \"logAction\": \"\",\n \"logType\": [],\n \"maxArraySize\": 0,\n \"maxStringLength\": 0,\n \"shortenerType\": \"\"\n }\n },\n \"searchable\": \"\",\n \"taskVisibility\": []\n },\n \"children\": [],\n \"dataType\": \"\",\n \"defaultValue\": {\n \"booleanArray\": {\n \"booleanValues\": []\n },\n \"booleanValue\": false,\n \"doubleArray\": {\n \"doubleValues\": []\n },\n \"doubleValue\": \"\",\n \"intArray\": {\n \"intValues\": []\n },\n \"intValue\": \"\",\n \"jsonValue\": \"\",\n \"protoArray\": {\n \"protoValues\": [\n {}\n ]\n },\n \"protoValue\": {},\n \"serializedObjectValue\": {\n \"objectValue\": \"\"\n },\n \"stringArray\": {\n \"stringValues\": []\n },\n \"stringValue\": \"\"\n },\n \"inOutType\": \"\",\n \"isTransient\": false,\n \"jsonSchema\": \"\",\n \"key\": \"\",\n \"name\": \"\",\n \"producedBy\": {\n \"elementIdentifier\": \"\",\n \"elementType\": \"\"\n },\n \"producer\": \"\",\n \"protoDefName\": \"\",\n \"protoDefPath\": \"\"\n }\n ]\n },\n \"lastModifierEmail\": \"\",\n \"lockHolder\": \"\",\n \"name\": \"\",\n \"origin\": \"\",\n \"parentTemplateId\": \"\",\n \"runAsServiceAccount\": \"\",\n \"snapshotNumber\": \"\",\n \"state\": \"\",\n \"status\": \"\",\n \"taskConfigs\": [\n {\n \"description\": \"\",\n \"displayName\": \"\",\n \"errorCatcherId\": \"\",\n \"externalTaskType\": \"\",\n \"failurePolicy\": {\n \"intervalTime\": \"\",\n \"maxRetries\": 0,\n \"retryStrategy\": \"\"\n },\n \"jsonValidationOption\": \"\",\n \"nextTasks\": [\n {}\n ],\n \"nextTasksExecutionPolicy\": \"\",\n \"parameters\": {},\n \"position\": {},\n \"successPolicy\": {\n \"finalState\": \"\"\n },\n \"synchronousCallFailurePolicy\": {},\n \"task\": \"\",\n \"taskExecutionStrategy\": \"\",\n \"taskId\": \"\",\n \"taskTemplate\": \"\"\n }\n ],\n \"taskConfigsInternal\": [\n {\n \"alertConfigs\": [\n {\n \"aggregationPeriod\": \"\",\n \"alertDisabled\": false,\n \"alertName\": \"\",\n \"clientId\": \"\",\n \"durationThresholdMs\": \"\",\n \"errorEnumList\": {\n \"enumStrings\": [],\n \"filterType\": \"\"\n },\n \"metricType\": \"\",\n \"numAggregationPeriods\": 0,\n \"onlyFinalAttempt\": false,\n \"playbookUrl\": \"\",\n \"thresholdType\": \"\",\n \"thresholdValue\": {\n \"absolute\": \"\",\n \"percentage\": 0\n },\n \"warningEnumList\": {}\n }\n ],\n \"createTime\": \"\",\n \"creatorEmail\": \"\",\n \"description\": \"\",\n \"disableStrictTypeValidation\": false,\n \"errorCatcherId\": \"\",\n \"externalTaskType\": \"\",\n \"failurePolicy\": {\n \"intervalInSeconds\": \"\",\n \"maxNumRetries\": 0,\n \"retryStrategy\": \"\"\n },\n \"incomingEdgeCount\": 0,\n \"jsonValidationOption\": \"\",\n \"label\": \"\",\n \"lastModifiedTime\": \"\",\n \"nextTasks\": [\n {\n \"combinedConditions\": [\n {\n \"conditions\": [\n {\n \"eventPropertyKey\": \"\",\n \"operator\": \"\",\n \"value\": {}\n }\n ]\n }\n ],\n \"condition\": \"\",\n \"description\": \"\",\n \"label\": \"\",\n \"taskConfigId\": \"\",\n \"taskNumber\": \"\"\n }\n ],\n \"nextTasksExecutionPolicy\": \"\",\n \"parameters\": {},\n \"position\": {\n \"x\": 0,\n \"y\": 0\n },\n \"precondition\": \"\",\n \"preconditionLabel\": \"\",\n \"rollbackStrategy\": {\n \"parameters\": {\n \"parameters\": [\n {\n \"dataType\": \"\",\n \"key\": \"\",\n \"value\": {}\n }\n ]\n },\n \"rollbackTaskImplementationClassName\": \"\",\n \"taskNumbersToRollback\": []\n },\n \"successPolicy\": {\n \"finalState\": \"\"\n },\n \"synchronousCallFailurePolicy\": {},\n \"taskEntity\": {\n \"disabledForVpcSc\": false,\n \"metadata\": {\n \"activeTaskName\": \"\",\n \"admins\": [\n {\n \"googleGroupEmail\": \"\",\n \"userEmail\": \"\"\n }\n ],\n \"category\": \"\",\n \"codeSearchLink\": \"\",\n \"defaultJsonValidationOption\": \"\",\n \"defaultSpec\": \"\",\n \"description\": \"\",\n \"descriptiveName\": \"\",\n \"docMarkdown\": \"\",\n \"externalCategory\": \"\",\n \"externalCategorySequence\": 0,\n \"externalDocHtml\": \"\",\n \"externalDocLink\": \"\",\n \"externalDocMarkdown\": \"\",\n \"g3DocLink\": \"\",\n \"iconLink\": \"\",\n \"isDeprecated\": false,\n \"name\": \"\",\n \"standaloneExternalDocHtml\": \"\",\n \"status\": \"\",\n \"system\": \"\",\n \"tags\": []\n },\n \"paramSpecs\": {\n \"parameters\": [\n {\n \"className\": \"\",\n \"collectionElementClassName\": \"\",\n \"config\": {\n \"descriptivePhrase\": \"\",\n \"helpText\": \"\",\n \"hideDefaultValue\": false,\n \"inputDisplayOption\": \"\",\n \"isHidden\": false,\n \"label\": \"\",\n \"parameterNameOption\": \"\",\n \"subSectionLabel\": \"\",\n \"uiPlaceholderText\": \"\"\n },\n \"dataType\": \"\",\n \"defaultValue\": {},\n \"isDeprecated\": false,\n \"isOutput\": false,\n \"jsonSchema\": \"\",\n \"key\": \"\",\n \"protoDef\": {\n \"fullName\": \"\",\n \"path\": \"\"\n },\n \"required\": false,\n \"validationRule\": {\n \"doubleRange\": {\n \"max\": \"\",\n \"min\": \"\"\n },\n \"intRange\": {\n \"max\": \"\",\n \"min\": \"\"\n },\n \"stringRegex\": {\n \"exclusive\": false,\n \"regex\": \"\"\n }\n }\n }\n ]\n },\n \"stats\": {\n \"dimensions\": {\n \"clientId\": \"\",\n \"enumFilterType\": \"\",\n \"errorEnumString\": \"\",\n \"retryAttempt\": \"\",\n \"taskName\": \"\",\n \"taskNumber\": \"\",\n \"triggerId\": \"\",\n \"warningEnumString\": \"\",\n \"workflowId\": \"\",\n \"workflowName\": \"\"\n },\n \"durationInSeconds\": \"\",\n \"errorRate\": \"\",\n \"qps\": \"\",\n \"warningRate\": \"\"\n },\n \"taskType\": \"\",\n \"uiConfig\": {\n \"taskUiModuleConfigs\": [\n {\n \"moduleId\": \"\"\n }\n ]\n }\n },\n \"taskExecutionStrategy\": \"\",\n \"taskName\": \"\",\n \"taskNumber\": \"\",\n \"taskSpec\": \"\",\n \"taskTemplateName\": \"\",\n \"taskType\": \"\"\n }\n ],\n \"teardown\": {\n \"teardownTaskConfigs\": [\n {\n \"creatorEmail\": \"\",\n \"name\": \"\",\n \"nextTeardownTask\": {\n \"name\": \"\"\n },\n \"parameters\": {\n \"parameters\": [\n {\n \"key\": \"\",\n \"value\": {\n \"booleanArray\": {\n \"booleanValues\": []\n },\n \"booleanValue\": false,\n \"doubleArray\": {\n \"doubleValues\": []\n },\n \"doubleValue\": \"\",\n \"intArray\": {\n \"intValues\": []\n },\n \"intValue\": \"\",\n \"protoArray\": {\n \"protoValues\": [\n {}\n ]\n },\n \"protoValue\": {},\n \"serializedObjectValue\": {\n \"objectValue\": \"\"\n },\n \"stringArray\": {\n \"stringValues\": []\n },\n \"stringValue\": \"\"\n }\n }\n ]\n },\n \"properties\": {\n \"properties\": [\n {\n \"key\": \"\",\n \"value\": {}\n }\n ]\n },\n \"teardownTaskImplementationClassName\": \"\"\n }\n ]\n },\n \"triggerConfigs\": [\n {\n \"alertConfig\": [\n {\n \"aggregationPeriod\": \"\",\n \"alertThreshold\": 0,\n \"disableAlert\": false,\n \"displayName\": \"\",\n \"durationThreshold\": \"\",\n \"metricType\": \"\",\n \"onlyFinalAttempt\": false,\n \"thresholdType\": \"\",\n \"thresholdValue\": {\n \"absolute\": \"\",\n \"percentage\": 0\n }\n }\n ],\n \"cloudSchedulerConfig\": {\n \"cronTab\": \"\",\n \"errorMessage\": \"\",\n \"location\": \"\",\n \"serviceAccountEmail\": \"\"\n },\n \"description\": \"\",\n \"errorCatcherId\": \"\",\n \"label\": \"\",\n \"nextTasksExecutionPolicy\": \"\",\n \"position\": {},\n \"properties\": {},\n \"startTasks\": [\n {}\n ],\n \"triggerId\": \"\",\n \"triggerNumber\": \"\",\n \"triggerType\": \"\"\n }\n ],\n \"triggerConfigsInternal\": [\n {\n \"alertConfig\": [\n {\n \"aggregationPeriod\": \"\",\n \"alertDisabled\": false,\n \"alertName\": \"\",\n \"clientId\": \"\",\n \"durationThresholdMs\": \"\",\n \"errorEnumList\": {},\n \"metricType\": \"\",\n \"numAggregationPeriods\": 0,\n \"onlyFinalAttempt\": false,\n \"playbookUrl\": \"\",\n \"thresholdType\": \"\",\n \"thresholdValue\": {},\n \"warningEnumList\": {}\n }\n ],\n \"cloudSchedulerConfig\": {\n \"cronTab\": \"\",\n \"errorMessage\": \"\",\n \"location\": \"\",\n \"serviceAccountEmail\": \"\"\n },\n \"description\": \"\",\n \"enabledClients\": [],\n \"errorCatcherId\": \"\",\n \"label\": \"\",\n \"nextTasksExecutionPolicy\": \"\",\n \"pauseWorkflowExecutions\": false,\n \"position\": {},\n \"properties\": {},\n \"startTasks\": [\n {}\n ],\n \"triggerCriteria\": {\n \"condition\": \"\",\n \"parameters\": {},\n \"triggerCriteriaTaskImplementationClassName\": \"\"\n },\n \"triggerId\": \"\",\n \"triggerNumber\": \"\",\n \"triggerType\": \"\"\n }\n ],\n \"updateTime\": \"\",\n \"userLabel\": \"\"\n}")
{
Headers =
{
ContentType = new MediaTypeHeaderValue("application/json")
}
}
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/v1/:parent/versions");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n \"createTime\": \"\",\n \"databasePersistencePolicy\": \"\",\n \"description\": \"\",\n \"errorCatcherConfigs\": [\n {\n \"description\": \"\",\n \"errorCatcherId\": \"\",\n \"errorCatcherNumber\": \"\",\n \"label\": \"\",\n \"position\": {\n \"x\": 0,\n \"y\": 0\n },\n \"startErrorTasks\": [\n {\n \"condition\": \"\",\n \"description\": \"\",\n \"displayName\": \"\",\n \"taskConfigId\": \"\",\n \"taskId\": \"\"\n }\n ]\n }\n ],\n \"integrationParameters\": [\n {\n \"dataType\": \"\",\n \"defaultValue\": {\n \"booleanArray\": {\n \"booleanValues\": []\n },\n \"booleanValue\": false,\n \"doubleArray\": {\n \"doubleValues\": []\n },\n \"doubleValue\": \"\",\n \"intArray\": {\n \"intValues\": []\n },\n \"intValue\": \"\",\n \"jsonValue\": \"\",\n \"stringArray\": {\n \"stringValues\": []\n },\n \"stringValue\": \"\"\n },\n \"displayName\": \"\",\n \"inputOutputType\": \"\",\n \"isTransient\": false,\n \"jsonSchema\": \"\",\n \"key\": \"\",\n \"producer\": \"\",\n \"searchable\": false\n }\n ],\n \"integrationParametersInternal\": {\n \"parameters\": [\n {\n \"attributes\": {\n \"dataType\": \"\",\n \"defaultValue\": {\n \"booleanValue\": false,\n \"doubleArray\": {\n \"values\": []\n },\n \"doubleValue\": \"\",\n \"intArray\": {\n \"values\": []\n },\n \"intValue\": \"\",\n \"protoValue\": {},\n \"stringArray\": {\n \"values\": []\n },\n \"stringValue\": \"\"\n },\n \"isRequired\": false,\n \"isSearchable\": false,\n \"logSettings\": {\n \"logFieldName\": \"\",\n \"sanitizeOptions\": {\n \"isAlreadySanitized\": false,\n \"logType\": [],\n \"privacy\": \"\",\n \"sanitizeType\": \"\"\n },\n \"seedPeriod\": \"\",\n \"seedScope\": \"\",\n \"shorteningLimits\": {\n \"logAction\": \"\",\n \"logType\": [],\n \"maxArraySize\": 0,\n \"maxStringLength\": 0,\n \"shortenerType\": \"\"\n }\n },\n \"searchable\": \"\",\n \"taskVisibility\": []\n },\n \"children\": [],\n \"dataType\": \"\",\n \"defaultValue\": {\n \"booleanArray\": {\n \"booleanValues\": []\n },\n \"booleanValue\": false,\n \"doubleArray\": {\n \"doubleValues\": []\n },\n \"doubleValue\": \"\",\n \"intArray\": {\n \"intValues\": []\n },\n \"intValue\": \"\",\n \"jsonValue\": \"\",\n \"protoArray\": {\n \"protoValues\": [\n {}\n ]\n },\n \"protoValue\": {},\n \"serializedObjectValue\": {\n \"objectValue\": \"\"\n },\n \"stringArray\": {\n \"stringValues\": []\n },\n \"stringValue\": \"\"\n },\n \"inOutType\": \"\",\n \"isTransient\": false,\n \"jsonSchema\": \"\",\n \"key\": \"\",\n \"name\": \"\",\n \"producedBy\": {\n \"elementIdentifier\": \"\",\n \"elementType\": \"\"\n },\n \"producer\": \"\",\n \"protoDefName\": \"\",\n \"protoDefPath\": \"\"\n }\n ]\n },\n \"lastModifierEmail\": \"\",\n \"lockHolder\": \"\",\n \"name\": \"\",\n \"origin\": \"\",\n \"parentTemplateId\": \"\",\n \"runAsServiceAccount\": \"\",\n \"snapshotNumber\": \"\",\n \"state\": \"\",\n \"status\": \"\",\n \"taskConfigs\": [\n {\n \"description\": \"\",\n \"displayName\": \"\",\n \"errorCatcherId\": \"\",\n \"externalTaskType\": \"\",\n \"failurePolicy\": {\n \"intervalTime\": \"\",\n \"maxRetries\": 0,\n \"retryStrategy\": \"\"\n },\n \"jsonValidationOption\": \"\",\n \"nextTasks\": [\n {}\n ],\n \"nextTasksExecutionPolicy\": \"\",\n \"parameters\": {},\n \"position\": {},\n \"successPolicy\": {\n \"finalState\": \"\"\n },\n \"synchronousCallFailurePolicy\": {},\n \"task\": \"\",\n \"taskExecutionStrategy\": \"\",\n \"taskId\": \"\",\n \"taskTemplate\": \"\"\n }\n ],\n \"taskConfigsInternal\": [\n {\n \"alertConfigs\": [\n {\n \"aggregationPeriod\": \"\",\n \"alertDisabled\": false,\n \"alertName\": \"\",\n \"clientId\": \"\",\n \"durationThresholdMs\": \"\",\n \"errorEnumList\": {\n \"enumStrings\": [],\n \"filterType\": \"\"\n },\n \"metricType\": \"\",\n \"numAggregationPeriods\": 0,\n \"onlyFinalAttempt\": false,\n \"playbookUrl\": \"\",\n \"thresholdType\": \"\",\n \"thresholdValue\": {\n \"absolute\": \"\",\n \"percentage\": 0\n },\n \"warningEnumList\": {}\n }\n ],\n \"createTime\": \"\",\n \"creatorEmail\": \"\",\n \"description\": \"\",\n \"disableStrictTypeValidation\": false,\n \"errorCatcherId\": \"\",\n \"externalTaskType\": \"\",\n \"failurePolicy\": {\n \"intervalInSeconds\": \"\",\n \"maxNumRetries\": 0,\n \"retryStrategy\": \"\"\n },\n \"incomingEdgeCount\": 0,\n \"jsonValidationOption\": \"\",\n \"label\": \"\",\n \"lastModifiedTime\": \"\",\n \"nextTasks\": [\n {\n \"combinedConditions\": [\n {\n \"conditions\": [\n {\n \"eventPropertyKey\": \"\",\n \"operator\": \"\",\n \"value\": {}\n }\n ]\n }\n ],\n \"condition\": \"\",\n \"description\": \"\",\n \"label\": \"\",\n \"taskConfigId\": \"\",\n \"taskNumber\": \"\"\n }\n ],\n \"nextTasksExecutionPolicy\": \"\",\n \"parameters\": {},\n \"position\": {\n \"x\": 0,\n \"y\": 0\n },\n \"precondition\": \"\",\n \"preconditionLabel\": \"\",\n \"rollbackStrategy\": {\n \"parameters\": {\n \"parameters\": [\n {\n \"dataType\": \"\",\n \"key\": \"\",\n \"value\": {}\n }\n ]\n },\n \"rollbackTaskImplementationClassName\": \"\",\n \"taskNumbersToRollback\": []\n },\n \"successPolicy\": {\n \"finalState\": \"\"\n },\n \"synchronousCallFailurePolicy\": {},\n \"taskEntity\": {\n \"disabledForVpcSc\": false,\n \"metadata\": {\n \"activeTaskName\": \"\",\n \"admins\": [\n {\n \"googleGroupEmail\": \"\",\n \"userEmail\": \"\"\n }\n ],\n \"category\": \"\",\n \"codeSearchLink\": \"\",\n \"defaultJsonValidationOption\": \"\",\n \"defaultSpec\": \"\",\n \"description\": \"\",\n \"descriptiveName\": \"\",\n \"docMarkdown\": \"\",\n \"externalCategory\": \"\",\n \"externalCategorySequence\": 0,\n \"externalDocHtml\": \"\",\n \"externalDocLink\": \"\",\n \"externalDocMarkdown\": \"\",\n \"g3DocLink\": \"\",\n \"iconLink\": \"\",\n \"isDeprecated\": false,\n \"name\": \"\",\n \"standaloneExternalDocHtml\": \"\",\n \"status\": \"\",\n \"system\": \"\",\n \"tags\": []\n },\n \"paramSpecs\": {\n \"parameters\": [\n {\n \"className\": \"\",\n \"collectionElementClassName\": \"\",\n \"config\": {\n \"descriptivePhrase\": \"\",\n \"helpText\": \"\",\n \"hideDefaultValue\": false,\n \"inputDisplayOption\": \"\",\n \"isHidden\": false,\n \"label\": \"\",\n \"parameterNameOption\": \"\",\n \"subSectionLabel\": \"\",\n \"uiPlaceholderText\": \"\"\n },\n \"dataType\": \"\",\n \"defaultValue\": {},\n \"isDeprecated\": false,\n \"isOutput\": false,\n \"jsonSchema\": \"\",\n \"key\": \"\",\n \"protoDef\": {\n \"fullName\": \"\",\n \"path\": \"\"\n },\n \"required\": false,\n \"validationRule\": {\n \"doubleRange\": {\n \"max\": \"\",\n \"min\": \"\"\n },\n \"intRange\": {\n \"max\": \"\",\n \"min\": \"\"\n },\n \"stringRegex\": {\n \"exclusive\": false,\n \"regex\": \"\"\n }\n }\n }\n ]\n },\n \"stats\": {\n \"dimensions\": {\n \"clientId\": \"\",\n \"enumFilterType\": \"\",\n \"errorEnumString\": \"\",\n \"retryAttempt\": \"\",\n \"taskName\": \"\",\n \"taskNumber\": \"\",\n \"triggerId\": \"\",\n \"warningEnumString\": \"\",\n \"workflowId\": \"\",\n \"workflowName\": \"\"\n },\n \"durationInSeconds\": \"\",\n \"errorRate\": \"\",\n \"qps\": \"\",\n \"warningRate\": \"\"\n },\n \"taskType\": \"\",\n \"uiConfig\": {\n \"taskUiModuleConfigs\": [\n {\n \"moduleId\": \"\"\n }\n ]\n }\n },\n \"taskExecutionStrategy\": \"\",\n \"taskName\": \"\",\n \"taskNumber\": \"\",\n \"taskSpec\": \"\",\n \"taskTemplateName\": \"\",\n \"taskType\": \"\"\n }\n ],\n \"teardown\": {\n \"teardownTaskConfigs\": [\n {\n \"creatorEmail\": \"\",\n \"name\": \"\",\n \"nextTeardownTask\": {\n \"name\": \"\"\n },\n \"parameters\": {\n \"parameters\": [\n {\n \"key\": \"\",\n \"value\": {\n \"booleanArray\": {\n \"booleanValues\": []\n },\n \"booleanValue\": false,\n \"doubleArray\": {\n \"doubleValues\": []\n },\n \"doubleValue\": \"\",\n \"intArray\": {\n \"intValues\": []\n },\n \"intValue\": \"\",\n \"protoArray\": {\n \"protoValues\": [\n {}\n ]\n },\n \"protoValue\": {},\n \"serializedObjectValue\": {\n \"objectValue\": \"\"\n },\n \"stringArray\": {\n \"stringValues\": []\n },\n \"stringValue\": \"\"\n }\n }\n ]\n },\n \"properties\": {\n \"properties\": [\n {\n \"key\": \"\",\n \"value\": {}\n }\n ]\n },\n \"teardownTaskImplementationClassName\": \"\"\n }\n ]\n },\n \"triggerConfigs\": [\n {\n \"alertConfig\": [\n {\n \"aggregationPeriod\": \"\",\n \"alertThreshold\": 0,\n \"disableAlert\": false,\n \"displayName\": \"\",\n \"durationThreshold\": \"\",\n \"metricType\": \"\",\n \"onlyFinalAttempt\": false,\n \"thresholdType\": \"\",\n \"thresholdValue\": {\n \"absolute\": \"\",\n \"percentage\": 0\n }\n }\n ],\n \"cloudSchedulerConfig\": {\n \"cronTab\": \"\",\n \"errorMessage\": \"\",\n \"location\": \"\",\n \"serviceAccountEmail\": \"\"\n },\n \"description\": \"\",\n \"errorCatcherId\": \"\",\n \"label\": \"\",\n \"nextTasksExecutionPolicy\": \"\",\n \"position\": {},\n \"properties\": {},\n \"startTasks\": [\n {}\n ],\n \"triggerId\": \"\",\n \"triggerNumber\": \"\",\n \"triggerType\": \"\"\n }\n ],\n \"triggerConfigsInternal\": [\n {\n \"alertConfig\": [\n {\n \"aggregationPeriod\": \"\",\n \"alertDisabled\": false,\n \"alertName\": \"\",\n \"clientId\": \"\",\n \"durationThresholdMs\": \"\",\n \"errorEnumList\": {},\n \"metricType\": \"\",\n \"numAggregationPeriods\": 0,\n \"onlyFinalAttempt\": false,\n \"playbookUrl\": \"\",\n \"thresholdType\": \"\",\n \"thresholdValue\": {},\n \"warningEnumList\": {}\n }\n ],\n \"cloudSchedulerConfig\": {\n \"cronTab\": \"\",\n \"errorMessage\": \"\",\n \"location\": \"\",\n \"serviceAccountEmail\": \"\"\n },\n \"description\": \"\",\n \"enabledClients\": [],\n \"errorCatcherId\": \"\",\n \"label\": \"\",\n \"nextTasksExecutionPolicy\": \"\",\n \"pauseWorkflowExecutions\": false,\n \"position\": {},\n \"properties\": {},\n \"startTasks\": [\n {}\n ],\n \"triggerCriteria\": {\n \"condition\": \"\",\n \"parameters\": {},\n \"triggerCriteriaTaskImplementationClassName\": \"\"\n },\n \"triggerId\": \"\",\n \"triggerNumber\": \"\",\n \"triggerType\": \"\"\n }\n ],\n \"updateTime\": \"\",\n \"userLabel\": \"\"\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/v1/:parent/versions"
payload := strings.NewReader("{\n \"createTime\": \"\",\n \"databasePersistencePolicy\": \"\",\n \"description\": \"\",\n \"errorCatcherConfigs\": [\n {\n \"description\": \"\",\n \"errorCatcherId\": \"\",\n \"errorCatcherNumber\": \"\",\n \"label\": \"\",\n \"position\": {\n \"x\": 0,\n \"y\": 0\n },\n \"startErrorTasks\": [\n {\n \"condition\": \"\",\n \"description\": \"\",\n \"displayName\": \"\",\n \"taskConfigId\": \"\",\n \"taskId\": \"\"\n }\n ]\n }\n ],\n \"integrationParameters\": [\n {\n \"dataType\": \"\",\n \"defaultValue\": {\n \"booleanArray\": {\n \"booleanValues\": []\n },\n \"booleanValue\": false,\n \"doubleArray\": {\n \"doubleValues\": []\n },\n \"doubleValue\": \"\",\n \"intArray\": {\n \"intValues\": []\n },\n \"intValue\": \"\",\n \"jsonValue\": \"\",\n \"stringArray\": {\n \"stringValues\": []\n },\n \"stringValue\": \"\"\n },\n \"displayName\": \"\",\n \"inputOutputType\": \"\",\n \"isTransient\": false,\n \"jsonSchema\": \"\",\n \"key\": \"\",\n \"producer\": \"\",\n \"searchable\": false\n }\n ],\n \"integrationParametersInternal\": {\n \"parameters\": [\n {\n \"attributes\": {\n \"dataType\": \"\",\n \"defaultValue\": {\n \"booleanValue\": false,\n \"doubleArray\": {\n \"values\": []\n },\n \"doubleValue\": \"\",\n \"intArray\": {\n \"values\": []\n },\n \"intValue\": \"\",\n \"protoValue\": {},\n \"stringArray\": {\n \"values\": []\n },\n \"stringValue\": \"\"\n },\n \"isRequired\": false,\n \"isSearchable\": false,\n \"logSettings\": {\n \"logFieldName\": \"\",\n \"sanitizeOptions\": {\n \"isAlreadySanitized\": false,\n \"logType\": [],\n \"privacy\": \"\",\n \"sanitizeType\": \"\"\n },\n \"seedPeriod\": \"\",\n \"seedScope\": \"\",\n \"shorteningLimits\": {\n \"logAction\": \"\",\n \"logType\": [],\n \"maxArraySize\": 0,\n \"maxStringLength\": 0,\n \"shortenerType\": \"\"\n }\n },\n \"searchable\": \"\",\n \"taskVisibility\": []\n },\n \"children\": [],\n \"dataType\": \"\",\n \"defaultValue\": {\n \"booleanArray\": {\n \"booleanValues\": []\n },\n \"booleanValue\": false,\n \"doubleArray\": {\n \"doubleValues\": []\n },\n \"doubleValue\": \"\",\n \"intArray\": {\n \"intValues\": []\n },\n \"intValue\": \"\",\n \"jsonValue\": \"\",\n \"protoArray\": {\n \"protoValues\": [\n {}\n ]\n },\n \"protoValue\": {},\n \"serializedObjectValue\": {\n \"objectValue\": \"\"\n },\n \"stringArray\": {\n \"stringValues\": []\n },\n \"stringValue\": \"\"\n },\n \"inOutType\": \"\",\n \"isTransient\": false,\n \"jsonSchema\": \"\",\n \"key\": \"\",\n \"name\": \"\",\n \"producedBy\": {\n \"elementIdentifier\": \"\",\n \"elementType\": \"\"\n },\n \"producer\": \"\",\n \"protoDefName\": \"\",\n \"protoDefPath\": \"\"\n }\n ]\n },\n \"lastModifierEmail\": \"\",\n \"lockHolder\": \"\",\n \"name\": \"\",\n \"origin\": \"\",\n \"parentTemplateId\": \"\",\n \"runAsServiceAccount\": \"\",\n \"snapshotNumber\": \"\",\n \"state\": \"\",\n \"status\": \"\",\n \"taskConfigs\": [\n {\n \"description\": \"\",\n \"displayName\": \"\",\n \"errorCatcherId\": \"\",\n \"externalTaskType\": \"\",\n \"failurePolicy\": {\n \"intervalTime\": \"\",\n \"maxRetries\": 0,\n \"retryStrategy\": \"\"\n },\n \"jsonValidationOption\": \"\",\n \"nextTasks\": [\n {}\n ],\n \"nextTasksExecutionPolicy\": \"\",\n \"parameters\": {},\n \"position\": {},\n \"successPolicy\": {\n \"finalState\": \"\"\n },\n \"synchronousCallFailurePolicy\": {},\n \"task\": \"\",\n \"taskExecutionStrategy\": \"\",\n \"taskId\": \"\",\n \"taskTemplate\": \"\"\n }\n ],\n \"taskConfigsInternal\": [\n {\n \"alertConfigs\": [\n {\n \"aggregationPeriod\": \"\",\n \"alertDisabled\": false,\n \"alertName\": \"\",\n \"clientId\": \"\",\n \"durationThresholdMs\": \"\",\n \"errorEnumList\": {\n \"enumStrings\": [],\n \"filterType\": \"\"\n },\n \"metricType\": \"\",\n \"numAggregationPeriods\": 0,\n \"onlyFinalAttempt\": false,\n \"playbookUrl\": \"\",\n \"thresholdType\": \"\",\n \"thresholdValue\": {\n \"absolute\": \"\",\n \"percentage\": 0\n },\n \"warningEnumList\": {}\n }\n ],\n \"createTime\": \"\",\n \"creatorEmail\": \"\",\n \"description\": \"\",\n \"disableStrictTypeValidation\": false,\n \"errorCatcherId\": \"\",\n \"externalTaskType\": \"\",\n \"failurePolicy\": {\n \"intervalInSeconds\": \"\",\n \"maxNumRetries\": 0,\n \"retryStrategy\": \"\"\n },\n \"incomingEdgeCount\": 0,\n \"jsonValidationOption\": \"\",\n \"label\": \"\",\n \"lastModifiedTime\": \"\",\n \"nextTasks\": [\n {\n \"combinedConditions\": [\n {\n \"conditions\": [\n {\n \"eventPropertyKey\": \"\",\n \"operator\": \"\",\n \"value\": {}\n }\n ]\n }\n ],\n \"condition\": \"\",\n \"description\": \"\",\n \"label\": \"\",\n \"taskConfigId\": \"\",\n \"taskNumber\": \"\"\n }\n ],\n \"nextTasksExecutionPolicy\": \"\",\n \"parameters\": {},\n \"position\": {\n \"x\": 0,\n \"y\": 0\n },\n \"precondition\": \"\",\n \"preconditionLabel\": \"\",\n \"rollbackStrategy\": {\n \"parameters\": {\n \"parameters\": [\n {\n \"dataType\": \"\",\n \"key\": \"\",\n \"value\": {}\n }\n ]\n },\n \"rollbackTaskImplementationClassName\": \"\",\n \"taskNumbersToRollback\": []\n },\n \"successPolicy\": {\n \"finalState\": \"\"\n },\n \"synchronousCallFailurePolicy\": {},\n \"taskEntity\": {\n \"disabledForVpcSc\": false,\n \"metadata\": {\n \"activeTaskName\": \"\",\n \"admins\": [\n {\n \"googleGroupEmail\": \"\",\n \"userEmail\": \"\"\n }\n ],\n \"category\": \"\",\n \"codeSearchLink\": \"\",\n \"defaultJsonValidationOption\": \"\",\n \"defaultSpec\": \"\",\n \"description\": \"\",\n \"descriptiveName\": \"\",\n \"docMarkdown\": \"\",\n \"externalCategory\": \"\",\n \"externalCategorySequence\": 0,\n \"externalDocHtml\": \"\",\n \"externalDocLink\": \"\",\n \"externalDocMarkdown\": \"\",\n \"g3DocLink\": \"\",\n \"iconLink\": \"\",\n \"isDeprecated\": false,\n \"name\": \"\",\n \"standaloneExternalDocHtml\": \"\",\n \"status\": \"\",\n \"system\": \"\",\n \"tags\": []\n },\n \"paramSpecs\": {\n \"parameters\": [\n {\n \"className\": \"\",\n \"collectionElementClassName\": \"\",\n \"config\": {\n \"descriptivePhrase\": \"\",\n \"helpText\": \"\",\n \"hideDefaultValue\": false,\n \"inputDisplayOption\": \"\",\n \"isHidden\": false,\n \"label\": \"\",\n \"parameterNameOption\": \"\",\n \"subSectionLabel\": \"\",\n \"uiPlaceholderText\": \"\"\n },\n \"dataType\": \"\",\n \"defaultValue\": {},\n \"isDeprecated\": false,\n \"isOutput\": false,\n \"jsonSchema\": \"\",\n \"key\": \"\",\n \"protoDef\": {\n \"fullName\": \"\",\n \"path\": \"\"\n },\n \"required\": false,\n \"validationRule\": {\n \"doubleRange\": {\n \"max\": \"\",\n \"min\": \"\"\n },\n \"intRange\": {\n \"max\": \"\",\n \"min\": \"\"\n },\n \"stringRegex\": {\n \"exclusive\": false,\n \"regex\": \"\"\n }\n }\n }\n ]\n },\n \"stats\": {\n \"dimensions\": {\n \"clientId\": \"\",\n \"enumFilterType\": \"\",\n \"errorEnumString\": \"\",\n \"retryAttempt\": \"\",\n \"taskName\": \"\",\n \"taskNumber\": \"\",\n \"triggerId\": \"\",\n \"warningEnumString\": \"\",\n \"workflowId\": \"\",\n \"workflowName\": \"\"\n },\n \"durationInSeconds\": \"\",\n \"errorRate\": \"\",\n \"qps\": \"\",\n \"warningRate\": \"\"\n },\n \"taskType\": \"\",\n \"uiConfig\": {\n \"taskUiModuleConfigs\": [\n {\n \"moduleId\": \"\"\n }\n ]\n }\n },\n \"taskExecutionStrategy\": \"\",\n \"taskName\": \"\",\n \"taskNumber\": \"\",\n \"taskSpec\": \"\",\n \"taskTemplateName\": \"\",\n \"taskType\": \"\"\n }\n ],\n \"teardown\": {\n \"teardownTaskConfigs\": [\n {\n \"creatorEmail\": \"\",\n \"name\": \"\",\n \"nextTeardownTask\": {\n \"name\": \"\"\n },\n \"parameters\": {\n \"parameters\": [\n {\n \"key\": \"\",\n \"value\": {\n \"booleanArray\": {\n \"booleanValues\": []\n },\n \"booleanValue\": false,\n \"doubleArray\": {\n \"doubleValues\": []\n },\n \"doubleValue\": \"\",\n \"intArray\": {\n \"intValues\": []\n },\n \"intValue\": \"\",\n \"protoArray\": {\n \"protoValues\": [\n {}\n ]\n },\n \"protoValue\": {},\n \"serializedObjectValue\": {\n \"objectValue\": \"\"\n },\n \"stringArray\": {\n \"stringValues\": []\n },\n \"stringValue\": \"\"\n }\n }\n ]\n },\n \"properties\": {\n \"properties\": [\n {\n \"key\": \"\",\n \"value\": {}\n }\n ]\n },\n \"teardownTaskImplementationClassName\": \"\"\n }\n ]\n },\n \"triggerConfigs\": [\n {\n \"alertConfig\": [\n {\n \"aggregationPeriod\": \"\",\n \"alertThreshold\": 0,\n \"disableAlert\": false,\n \"displayName\": \"\",\n \"durationThreshold\": \"\",\n \"metricType\": \"\",\n \"onlyFinalAttempt\": false,\n \"thresholdType\": \"\",\n \"thresholdValue\": {\n \"absolute\": \"\",\n \"percentage\": 0\n }\n }\n ],\n \"cloudSchedulerConfig\": {\n \"cronTab\": \"\",\n \"errorMessage\": \"\",\n \"location\": \"\",\n \"serviceAccountEmail\": \"\"\n },\n \"description\": \"\",\n \"errorCatcherId\": \"\",\n \"label\": \"\",\n \"nextTasksExecutionPolicy\": \"\",\n \"position\": {},\n \"properties\": {},\n \"startTasks\": [\n {}\n ],\n \"triggerId\": \"\",\n \"triggerNumber\": \"\",\n \"triggerType\": \"\"\n }\n ],\n \"triggerConfigsInternal\": [\n {\n \"alertConfig\": [\n {\n \"aggregationPeriod\": \"\",\n \"alertDisabled\": false,\n \"alertName\": \"\",\n \"clientId\": \"\",\n \"durationThresholdMs\": \"\",\n \"errorEnumList\": {},\n \"metricType\": \"\",\n \"numAggregationPeriods\": 0,\n \"onlyFinalAttempt\": false,\n \"playbookUrl\": \"\",\n \"thresholdType\": \"\",\n \"thresholdValue\": {},\n \"warningEnumList\": {}\n }\n ],\n \"cloudSchedulerConfig\": {\n \"cronTab\": \"\",\n \"errorMessage\": \"\",\n \"location\": \"\",\n \"serviceAccountEmail\": \"\"\n },\n \"description\": \"\",\n \"enabledClients\": [],\n \"errorCatcherId\": \"\",\n \"label\": \"\",\n \"nextTasksExecutionPolicy\": \"\",\n \"pauseWorkflowExecutions\": false,\n \"position\": {},\n \"properties\": {},\n \"startTasks\": [\n {}\n ],\n \"triggerCriteria\": {\n \"condition\": \"\",\n \"parameters\": {},\n \"triggerCriteriaTaskImplementationClassName\": \"\"\n },\n \"triggerId\": \"\",\n \"triggerNumber\": \"\",\n \"triggerType\": \"\"\n }\n ],\n \"updateTime\": \"\",\n \"userLabel\": \"\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("content-type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
POST /baseUrl/v1/:parent/versions HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 12586
{
"createTime": "",
"databasePersistencePolicy": "",
"description": "",
"errorCatcherConfigs": [
{
"description": "",
"errorCatcherId": "",
"errorCatcherNumber": "",
"label": "",
"position": {
"x": 0,
"y": 0
},
"startErrorTasks": [
{
"condition": "",
"description": "",
"displayName": "",
"taskConfigId": "",
"taskId": ""
}
]
}
],
"integrationParameters": [
{
"dataType": "",
"defaultValue": {
"booleanArray": {
"booleanValues": []
},
"booleanValue": false,
"doubleArray": {
"doubleValues": []
},
"doubleValue": "",
"intArray": {
"intValues": []
},
"intValue": "",
"jsonValue": "",
"stringArray": {
"stringValues": []
},
"stringValue": ""
},
"displayName": "",
"inputOutputType": "",
"isTransient": false,
"jsonSchema": "",
"key": "",
"producer": "",
"searchable": false
}
],
"integrationParametersInternal": {
"parameters": [
{
"attributes": {
"dataType": "",
"defaultValue": {
"booleanValue": false,
"doubleArray": {
"values": []
},
"doubleValue": "",
"intArray": {
"values": []
},
"intValue": "",
"protoValue": {},
"stringArray": {
"values": []
},
"stringValue": ""
},
"isRequired": false,
"isSearchable": false,
"logSettings": {
"logFieldName": "",
"sanitizeOptions": {
"isAlreadySanitized": false,
"logType": [],
"privacy": "",
"sanitizeType": ""
},
"seedPeriod": "",
"seedScope": "",
"shorteningLimits": {
"logAction": "",
"logType": [],
"maxArraySize": 0,
"maxStringLength": 0,
"shortenerType": ""
}
},
"searchable": "",
"taskVisibility": []
},
"children": [],
"dataType": "",
"defaultValue": {
"booleanArray": {
"booleanValues": []
},
"booleanValue": false,
"doubleArray": {
"doubleValues": []
},
"doubleValue": "",
"intArray": {
"intValues": []
},
"intValue": "",
"jsonValue": "",
"protoArray": {
"protoValues": [
{}
]
},
"protoValue": {},
"serializedObjectValue": {
"objectValue": ""
},
"stringArray": {
"stringValues": []
},
"stringValue": ""
},
"inOutType": "",
"isTransient": false,
"jsonSchema": "",
"key": "",
"name": "",
"producedBy": {
"elementIdentifier": "",
"elementType": ""
},
"producer": "",
"protoDefName": "",
"protoDefPath": ""
}
]
},
"lastModifierEmail": "",
"lockHolder": "",
"name": "",
"origin": "",
"parentTemplateId": "",
"runAsServiceAccount": "",
"snapshotNumber": "",
"state": "",
"status": "",
"taskConfigs": [
{
"description": "",
"displayName": "",
"errorCatcherId": "",
"externalTaskType": "",
"failurePolicy": {
"intervalTime": "",
"maxRetries": 0,
"retryStrategy": ""
},
"jsonValidationOption": "",
"nextTasks": [
{}
],
"nextTasksExecutionPolicy": "",
"parameters": {},
"position": {},
"successPolicy": {
"finalState": ""
},
"synchronousCallFailurePolicy": {},
"task": "",
"taskExecutionStrategy": "",
"taskId": "",
"taskTemplate": ""
}
],
"taskConfigsInternal": [
{
"alertConfigs": [
{
"aggregationPeriod": "",
"alertDisabled": false,
"alertName": "",
"clientId": "",
"durationThresholdMs": "",
"errorEnumList": {
"enumStrings": [],
"filterType": ""
},
"metricType": "",
"numAggregationPeriods": 0,
"onlyFinalAttempt": false,
"playbookUrl": "",
"thresholdType": "",
"thresholdValue": {
"absolute": "",
"percentage": 0
},
"warningEnumList": {}
}
],
"createTime": "",
"creatorEmail": "",
"description": "",
"disableStrictTypeValidation": false,
"errorCatcherId": "",
"externalTaskType": "",
"failurePolicy": {
"intervalInSeconds": "",
"maxNumRetries": 0,
"retryStrategy": ""
},
"incomingEdgeCount": 0,
"jsonValidationOption": "",
"label": "",
"lastModifiedTime": "",
"nextTasks": [
{
"combinedConditions": [
{
"conditions": [
{
"eventPropertyKey": "",
"operator": "",
"value": {}
}
]
}
],
"condition": "",
"description": "",
"label": "",
"taskConfigId": "",
"taskNumber": ""
}
],
"nextTasksExecutionPolicy": "",
"parameters": {},
"position": {
"x": 0,
"y": 0
},
"precondition": "",
"preconditionLabel": "",
"rollbackStrategy": {
"parameters": {
"parameters": [
{
"dataType": "",
"key": "",
"value": {}
}
]
},
"rollbackTaskImplementationClassName": "",
"taskNumbersToRollback": []
},
"successPolicy": {
"finalState": ""
},
"synchronousCallFailurePolicy": {},
"taskEntity": {
"disabledForVpcSc": false,
"metadata": {
"activeTaskName": "",
"admins": [
{
"googleGroupEmail": "",
"userEmail": ""
}
],
"category": "",
"codeSearchLink": "",
"defaultJsonValidationOption": "",
"defaultSpec": "",
"description": "",
"descriptiveName": "",
"docMarkdown": "",
"externalCategory": "",
"externalCategorySequence": 0,
"externalDocHtml": "",
"externalDocLink": "",
"externalDocMarkdown": "",
"g3DocLink": "",
"iconLink": "",
"isDeprecated": false,
"name": "",
"standaloneExternalDocHtml": "",
"status": "",
"system": "",
"tags": []
},
"paramSpecs": {
"parameters": [
{
"className": "",
"collectionElementClassName": "",
"config": {
"descriptivePhrase": "",
"helpText": "",
"hideDefaultValue": false,
"inputDisplayOption": "",
"isHidden": false,
"label": "",
"parameterNameOption": "",
"subSectionLabel": "",
"uiPlaceholderText": ""
},
"dataType": "",
"defaultValue": {},
"isDeprecated": false,
"isOutput": false,
"jsonSchema": "",
"key": "",
"protoDef": {
"fullName": "",
"path": ""
},
"required": false,
"validationRule": {
"doubleRange": {
"max": "",
"min": ""
},
"intRange": {
"max": "",
"min": ""
},
"stringRegex": {
"exclusive": false,
"regex": ""
}
}
}
]
},
"stats": {
"dimensions": {
"clientId": "",
"enumFilterType": "",
"errorEnumString": "",
"retryAttempt": "",
"taskName": "",
"taskNumber": "",
"triggerId": "",
"warningEnumString": "",
"workflowId": "",
"workflowName": ""
},
"durationInSeconds": "",
"errorRate": "",
"qps": "",
"warningRate": ""
},
"taskType": "",
"uiConfig": {
"taskUiModuleConfigs": [
{
"moduleId": ""
}
]
}
},
"taskExecutionStrategy": "",
"taskName": "",
"taskNumber": "",
"taskSpec": "",
"taskTemplateName": "",
"taskType": ""
}
],
"teardown": {
"teardownTaskConfigs": [
{
"creatorEmail": "",
"name": "",
"nextTeardownTask": {
"name": ""
},
"parameters": {
"parameters": [
{
"key": "",
"value": {
"booleanArray": {
"booleanValues": []
},
"booleanValue": false,
"doubleArray": {
"doubleValues": []
},
"doubleValue": "",
"intArray": {
"intValues": []
},
"intValue": "",
"protoArray": {
"protoValues": [
{}
]
},
"protoValue": {},
"serializedObjectValue": {
"objectValue": ""
},
"stringArray": {
"stringValues": []
},
"stringValue": ""
}
}
]
},
"properties": {
"properties": [
{
"key": "",
"value": {}
}
]
},
"teardownTaskImplementationClassName": ""
}
]
},
"triggerConfigs": [
{
"alertConfig": [
{
"aggregationPeriod": "",
"alertThreshold": 0,
"disableAlert": false,
"displayName": "",
"durationThreshold": "",
"metricType": "",
"onlyFinalAttempt": false,
"thresholdType": "",
"thresholdValue": {
"absolute": "",
"percentage": 0
}
}
],
"cloudSchedulerConfig": {
"cronTab": "",
"errorMessage": "",
"location": "",
"serviceAccountEmail": ""
},
"description": "",
"errorCatcherId": "",
"label": "",
"nextTasksExecutionPolicy": "",
"position": {},
"properties": {},
"startTasks": [
{}
],
"triggerId": "",
"triggerNumber": "",
"triggerType": ""
}
],
"triggerConfigsInternal": [
{
"alertConfig": [
{
"aggregationPeriod": "",
"alertDisabled": false,
"alertName": "",
"clientId": "",
"durationThresholdMs": "",
"errorEnumList": {},
"metricType": "",
"numAggregationPeriods": 0,
"onlyFinalAttempt": false,
"playbookUrl": "",
"thresholdType": "",
"thresholdValue": {},
"warningEnumList": {}
}
],
"cloudSchedulerConfig": {
"cronTab": "",
"errorMessage": "",
"location": "",
"serviceAccountEmail": ""
},
"description": "",
"enabledClients": [],
"errorCatcherId": "",
"label": "",
"nextTasksExecutionPolicy": "",
"pauseWorkflowExecutions": false,
"position": {},
"properties": {},
"startTasks": [
{}
],
"triggerCriteria": {
"condition": "",
"parameters": {},
"triggerCriteriaTaskImplementationClassName": ""
},
"triggerId": "",
"triggerNumber": "",
"triggerType": ""
}
],
"updateTime": "",
"userLabel": ""
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/v1/:parent/versions")
.setHeader("content-type", "application/json")
.setBody("{\n \"createTime\": \"\",\n \"databasePersistencePolicy\": \"\",\n \"description\": \"\",\n \"errorCatcherConfigs\": [\n {\n \"description\": \"\",\n \"errorCatcherId\": \"\",\n \"errorCatcherNumber\": \"\",\n \"label\": \"\",\n \"position\": {\n \"x\": 0,\n \"y\": 0\n },\n \"startErrorTasks\": [\n {\n \"condition\": \"\",\n \"description\": \"\",\n \"displayName\": \"\",\n \"taskConfigId\": \"\",\n \"taskId\": \"\"\n }\n ]\n }\n ],\n \"integrationParameters\": [\n {\n \"dataType\": \"\",\n \"defaultValue\": {\n \"booleanArray\": {\n \"booleanValues\": []\n },\n \"booleanValue\": false,\n \"doubleArray\": {\n \"doubleValues\": []\n },\n \"doubleValue\": \"\",\n \"intArray\": {\n \"intValues\": []\n },\n \"intValue\": \"\",\n \"jsonValue\": \"\",\n \"stringArray\": {\n \"stringValues\": []\n },\n \"stringValue\": \"\"\n },\n \"displayName\": \"\",\n \"inputOutputType\": \"\",\n \"isTransient\": false,\n \"jsonSchema\": \"\",\n \"key\": \"\",\n \"producer\": \"\",\n \"searchable\": false\n }\n ],\n \"integrationParametersInternal\": {\n \"parameters\": [\n {\n \"attributes\": {\n \"dataType\": \"\",\n \"defaultValue\": {\n \"booleanValue\": false,\n \"doubleArray\": {\n \"values\": []\n },\n \"doubleValue\": \"\",\n \"intArray\": {\n \"values\": []\n },\n \"intValue\": \"\",\n \"protoValue\": {},\n \"stringArray\": {\n \"values\": []\n },\n \"stringValue\": \"\"\n },\n \"isRequired\": false,\n \"isSearchable\": false,\n \"logSettings\": {\n \"logFieldName\": \"\",\n \"sanitizeOptions\": {\n \"isAlreadySanitized\": false,\n \"logType\": [],\n \"privacy\": \"\",\n \"sanitizeType\": \"\"\n },\n \"seedPeriod\": \"\",\n \"seedScope\": \"\",\n \"shorteningLimits\": {\n \"logAction\": \"\",\n \"logType\": [],\n \"maxArraySize\": 0,\n \"maxStringLength\": 0,\n \"shortenerType\": \"\"\n }\n },\n \"searchable\": \"\",\n \"taskVisibility\": []\n },\n \"children\": [],\n \"dataType\": \"\",\n \"defaultValue\": {\n \"booleanArray\": {\n \"booleanValues\": []\n },\n \"booleanValue\": false,\n \"doubleArray\": {\n \"doubleValues\": []\n },\n \"doubleValue\": \"\",\n \"intArray\": {\n \"intValues\": []\n },\n \"intValue\": \"\",\n \"jsonValue\": \"\",\n \"protoArray\": {\n \"protoValues\": [\n {}\n ]\n },\n \"protoValue\": {},\n \"serializedObjectValue\": {\n \"objectValue\": \"\"\n },\n \"stringArray\": {\n \"stringValues\": []\n },\n \"stringValue\": \"\"\n },\n \"inOutType\": \"\",\n \"isTransient\": false,\n \"jsonSchema\": \"\",\n \"key\": \"\",\n \"name\": \"\",\n \"producedBy\": {\n \"elementIdentifier\": \"\",\n \"elementType\": \"\"\n },\n \"producer\": \"\",\n \"protoDefName\": \"\",\n \"protoDefPath\": \"\"\n }\n ]\n },\n \"lastModifierEmail\": \"\",\n \"lockHolder\": \"\",\n \"name\": \"\",\n \"origin\": \"\",\n \"parentTemplateId\": \"\",\n \"runAsServiceAccount\": \"\",\n \"snapshotNumber\": \"\",\n \"state\": \"\",\n \"status\": \"\",\n \"taskConfigs\": [\n {\n \"description\": \"\",\n \"displayName\": \"\",\n \"errorCatcherId\": \"\",\n \"externalTaskType\": \"\",\n \"failurePolicy\": {\n \"intervalTime\": \"\",\n \"maxRetries\": 0,\n \"retryStrategy\": \"\"\n },\n \"jsonValidationOption\": \"\",\n \"nextTasks\": [\n {}\n ],\n \"nextTasksExecutionPolicy\": \"\",\n \"parameters\": {},\n \"position\": {},\n \"successPolicy\": {\n \"finalState\": \"\"\n },\n \"synchronousCallFailurePolicy\": {},\n \"task\": \"\",\n \"taskExecutionStrategy\": \"\",\n \"taskId\": \"\",\n \"taskTemplate\": \"\"\n }\n ],\n \"taskConfigsInternal\": [\n {\n \"alertConfigs\": [\n {\n \"aggregationPeriod\": \"\",\n \"alertDisabled\": false,\n \"alertName\": \"\",\n \"clientId\": \"\",\n \"durationThresholdMs\": \"\",\n \"errorEnumList\": {\n \"enumStrings\": [],\n \"filterType\": \"\"\n },\n \"metricType\": \"\",\n \"numAggregationPeriods\": 0,\n \"onlyFinalAttempt\": false,\n \"playbookUrl\": \"\",\n \"thresholdType\": \"\",\n \"thresholdValue\": {\n \"absolute\": \"\",\n \"percentage\": 0\n },\n \"warningEnumList\": {}\n }\n ],\n \"createTime\": \"\",\n \"creatorEmail\": \"\",\n \"description\": \"\",\n \"disableStrictTypeValidation\": false,\n \"errorCatcherId\": \"\",\n \"externalTaskType\": \"\",\n \"failurePolicy\": {\n \"intervalInSeconds\": \"\",\n \"maxNumRetries\": 0,\n \"retryStrategy\": \"\"\n },\n \"incomingEdgeCount\": 0,\n \"jsonValidationOption\": \"\",\n \"label\": \"\",\n \"lastModifiedTime\": \"\",\n \"nextTasks\": [\n {\n \"combinedConditions\": [\n {\n \"conditions\": [\n {\n \"eventPropertyKey\": \"\",\n \"operator\": \"\",\n \"value\": {}\n }\n ]\n }\n ],\n \"condition\": \"\",\n \"description\": \"\",\n \"label\": \"\",\n \"taskConfigId\": \"\",\n \"taskNumber\": \"\"\n }\n ],\n \"nextTasksExecutionPolicy\": \"\",\n \"parameters\": {},\n \"position\": {\n \"x\": 0,\n \"y\": 0\n },\n \"precondition\": \"\",\n \"preconditionLabel\": \"\",\n \"rollbackStrategy\": {\n \"parameters\": {\n \"parameters\": [\n {\n \"dataType\": \"\",\n \"key\": \"\",\n \"value\": {}\n }\n ]\n },\n \"rollbackTaskImplementationClassName\": \"\",\n \"taskNumbersToRollback\": []\n },\n \"successPolicy\": {\n \"finalState\": \"\"\n },\n \"synchronousCallFailurePolicy\": {},\n \"taskEntity\": {\n \"disabledForVpcSc\": false,\n \"metadata\": {\n \"activeTaskName\": \"\",\n \"admins\": [\n {\n \"googleGroupEmail\": \"\",\n \"userEmail\": \"\"\n }\n ],\n \"category\": \"\",\n \"codeSearchLink\": \"\",\n \"defaultJsonValidationOption\": \"\",\n \"defaultSpec\": \"\",\n \"description\": \"\",\n \"descriptiveName\": \"\",\n \"docMarkdown\": \"\",\n \"externalCategory\": \"\",\n \"externalCategorySequence\": 0,\n \"externalDocHtml\": \"\",\n \"externalDocLink\": \"\",\n \"externalDocMarkdown\": \"\",\n \"g3DocLink\": \"\",\n \"iconLink\": \"\",\n \"isDeprecated\": false,\n \"name\": \"\",\n \"standaloneExternalDocHtml\": \"\",\n \"status\": \"\",\n \"system\": \"\",\n \"tags\": []\n },\n \"paramSpecs\": {\n \"parameters\": [\n {\n \"className\": \"\",\n \"collectionElementClassName\": \"\",\n \"config\": {\n \"descriptivePhrase\": \"\",\n \"helpText\": \"\",\n \"hideDefaultValue\": false,\n \"inputDisplayOption\": \"\",\n \"isHidden\": false,\n \"label\": \"\",\n \"parameterNameOption\": \"\",\n \"subSectionLabel\": \"\",\n \"uiPlaceholderText\": \"\"\n },\n \"dataType\": \"\",\n \"defaultValue\": {},\n \"isDeprecated\": false,\n \"isOutput\": false,\n \"jsonSchema\": \"\",\n \"key\": \"\",\n \"protoDef\": {\n \"fullName\": \"\",\n \"path\": \"\"\n },\n \"required\": false,\n \"validationRule\": {\n \"doubleRange\": {\n \"max\": \"\",\n \"min\": \"\"\n },\n \"intRange\": {\n \"max\": \"\",\n \"min\": \"\"\n },\n \"stringRegex\": {\n \"exclusive\": false,\n \"regex\": \"\"\n }\n }\n }\n ]\n },\n \"stats\": {\n \"dimensions\": {\n \"clientId\": \"\",\n \"enumFilterType\": \"\",\n \"errorEnumString\": \"\",\n \"retryAttempt\": \"\",\n \"taskName\": \"\",\n \"taskNumber\": \"\",\n \"triggerId\": \"\",\n \"warningEnumString\": \"\",\n \"workflowId\": \"\",\n \"workflowName\": \"\"\n },\n \"durationInSeconds\": \"\",\n \"errorRate\": \"\",\n \"qps\": \"\",\n \"warningRate\": \"\"\n },\n \"taskType\": \"\",\n \"uiConfig\": {\n \"taskUiModuleConfigs\": [\n {\n \"moduleId\": \"\"\n }\n ]\n }\n },\n \"taskExecutionStrategy\": \"\",\n \"taskName\": \"\",\n \"taskNumber\": \"\",\n \"taskSpec\": \"\",\n \"taskTemplateName\": \"\",\n \"taskType\": \"\"\n }\n ],\n \"teardown\": {\n \"teardownTaskConfigs\": [\n {\n \"creatorEmail\": \"\",\n \"name\": \"\",\n \"nextTeardownTask\": {\n \"name\": \"\"\n },\n \"parameters\": {\n \"parameters\": [\n {\n \"key\": \"\",\n \"value\": {\n \"booleanArray\": {\n \"booleanValues\": []\n },\n \"booleanValue\": false,\n \"doubleArray\": {\n \"doubleValues\": []\n },\n \"doubleValue\": \"\",\n \"intArray\": {\n \"intValues\": []\n },\n \"intValue\": \"\",\n \"protoArray\": {\n \"protoValues\": [\n {}\n ]\n },\n \"protoValue\": {},\n \"serializedObjectValue\": {\n \"objectValue\": \"\"\n },\n \"stringArray\": {\n \"stringValues\": []\n },\n \"stringValue\": \"\"\n }\n }\n ]\n },\n \"properties\": {\n \"properties\": [\n {\n \"key\": \"\",\n \"value\": {}\n }\n ]\n },\n \"teardownTaskImplementationClassName\": \"\"\n }\n ]\n },\n \"triggerConfigs\": [\n {\n \"alertConfig\": [\n {\n \"aggregationPeriod\": \"\",\n \"alertThreshold\": 0,\n \"disableAlert\": false,\n \"displayName\": \"\",\n \"durationThreshold\": \"\",\n \"metricType\": \"\",\n \"onlyFinalAttempt\": false,\n \"thresholdType\": \"\",\n \"thresholdValue\": {\n \"absolute\": \"\",\n \"percentage\": 0\n }\n }\n ],\n \"cloudSchedulerConfig\": {\n \"cronTab\": \"\",\n \"errorMessage\": \"\",\n \"location\": \"\",\n \"serviceAccountEmail\": \"\"\n },\n \"description\": \"\",\n \"errorCatcherId\": \"\",\n \"label\": \"\",\n \"nextTasksExecutionPolicy\": \"\",\n \"position\": {},\n \"properties\": {},\n \"startTasks\": [\n {}\n ],\n \"triggerId\": \"\",\n \"triggerNumber\": \"\",\n \"triggerType\": \"\"\n }\n ],\n \"triggerConfigsInternal\": [\n {\n \"alertConfig\": [\n {\n \"aggregationPeriod\": \"\",\n \"alertDisabled\": false,\n \"alertName\": \"\",\n \"clientId\": \"\",\n \"durationThresholdMs\": \"\",\n \"errorEnumList\": {},\n \"metricType\": \"\",\n \"numAggregationPeriods\": 0,\n \"onlyFinalAttempt\": false,\n \"playbookUrl\": \"\",\n \"thresholdType\": \"\",\n \"thresholdValue\": {},\n \"warningEnumList\": {}\n }\n ],\n \"cloudSchedulerConfig\": {\n \"cronTab\": \"\",\n \"errorMessage\": \"\",\n \"location\": \"\",\n \"serviceAccountEmail\": \"\"\n },\n \"description\": \"\",\n \"enabledClients\": [],\n \"errorCatcherId\": \"\",\n \"label\": \"\",\n \"nextTasksExecutionPolicy\": \"\",\n \"pauseWorkflowExecutions\": false,\n \"position\": {},\n \"properties\": {},\n \"startTasks\": [\n {}\n ],\n \"triggerCriteria\": {\n \"condition\": \"\",\n \"parameters\": {},\n \"triggerCriteriaTaskImplementationClassName\": \"\"\n },\n \"triggerId\": \"\",\n \"triggerNumber\": \"\",\n \"triggerType\": \"\"\n }\n ],\n \"updateTime\": \"\",\n \"userLabel\": \"\"\n}")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/v1/:parent/versions"))
.header("content-type", "application/json")
.method("POST", HttpRequest.BodyPublishers.ofString("{\n \"createTime\": \"\",\n \"databasePersistencePolicy\": \"\",\n \"description\": \"\",\n \"errorCatcherConfigs\": [\n {\n \"description\": \"\",\n \"errorCatcherId\": \"\",\n \"errorCatcherNumber\": \"\",\n \"label\": \"\",\n \"position\": {\n \"x\": 0,\n \"y\": 0\n },\n \"startErrorTasks\": [\n {\n \"condition\": \"\",\n \"description\": \"\",\n \"displayName\": \"\",\n \"taskConfigId\": \"\",\n \"taskId\": \"\"\n }\n ]\n }\n ],\n \"integrationParameters\": [\n {\n \"dataType\": \"\",\n \"defaultValue\": {\n \"booleanArray\": {\n \"booleanValues\": []\n },\n \"booleanValue\": false,\n \"doubleArray\": {\n \"doubleValues\": []\n },\n \"doubleValue\": \"\",\n \"intArray\": {\n \"intValues\": []\n },\n \"intValue\": \"\",\n \"jsonValue\": \"\",\n \"stringArray\": {\n \"stringValues\": []\n },\n \"stringValue\": \"\"\n },\n \"displayName\": \"\",\n \"inputOutputType\": \"\",\n \"isTransient\": false,\n \"jsonSchema\": \"\",\n \"key\": \"\",\n \"producer\": \"\",\n \"searchable\": false\n }\n ],\n \"integrationParametersInternal\": {\n \"parameters\": [\n {\n \"attributes\": {\n \"dataType\": \"\",\n \"defaultValue\": {\n \"booleanValue\": false,\n \"doubleArray\": {\n \"values\": []\n },\n \"doubleValue\": \"\",\n \"intArray\": {\n \"values\": []\n },\n \"intValue\": \"\",\n \"protoValue\": {},\n \"stringArray\": {\n \"values\": []\n },\n \"stringValue\": \"\"\n },\n \"isRequired\": false,\n \"isSearchable\": false,\n \"logSettings\": {\n \"logFieldName\": \"\",\n \"sanitizeOptions\": {\n \"isAlreadySanitized\": false,\n \"logType\": [],\n \"privacy\": \"\",\n \"sanitizeType\": \"\"\n },\n \"seedPeriod\": \"\",\n \"seedScope\": \"\",\n \"shorteningLimits\": {\n \"logAction\": \"\",\n \"logType\": [],\n \"maxArraySize\": 0,\n \"maxStringLength\": 0,\n \"shortenerType\": \"\"\n }\n },\n \"searchable\": \"\",\n \"taskVisibility\": []\n },\n \"children\": [],\n \"dataType\": \"\",\n \"defaultValue\": {\n \"booleanArray\": {\n \"booleanValues\": []\n },\n \"booleanValue\": false,\n \"doubleArray\": {\n \"doubleValues\": []\n },\n \"doubleValue\": \"\",\n \"intArray\": {\n \"intValues\": []\n },\n \"intValue\": \"\",\n \"jsonValue\": \"\",\n \"protoArray\": {\n \"protoValues\": [\n {}\n ]\n },\n \"protoValue\": {},\n \"serializedObjectValue\": {\n \"objectValue\": \"\"\n },\n \"stringArray\": {\n \"stringValues\": []\n },\n \"stringValue\": \"\"\n },\n \"inOutType\": \"\",\n \"isTransient\": false,\n \"jsonSchema\": \"\",\n \"key\": \"\",\n \"name\": \"\",\n \"producedBy\": {\n \"elementIdentifier\": \"\",\n \"elementType\": \"\"\n },\n \"producer\": \"\",\n \"protoDefName\": \"\",\n \"protoDefPath\": \"\"\n }\n ]\n },\n \"lastModifierEmail\": \"\",\n \"lockHolder\": \"\",\n \"name\": \"\",\n \"origin\": \"\",\n \"parentTemplateId\": \"\",\n \"runAsServiceAccount\": \"\",\n \"snapshotNumber\": \"\",\n \"state\": \"\",\n \"status\": \"\",\n \"taskConfigs\": [\n {\n \"description\": \"\",\n \"displayName\": \"\",\n \"errorCatcherId\": \"\",\n \"externalTaskType\": \"\",\n \"failurePolicy\": {\n \"intervalTime\": \"\",\n \"maxRetries\": 0,\n \"retryStrategy\": \"\"\n },\n \"jsonValidationOption\": \"\",\n \"nextTasks\": [\n {}\n ],\n \"nextTasksExecutionPolicy\": \"\",\n \"parameters\": {},\n \"position\": {},\n \"successPolicy\": {\n \"finalState\": \"\"\n },\n \"synchronousCallFailurePolicy\": {},\n \"task\": \"\",\n \"taskExecutionStrategy\": \"\",\n \"taskId\": \"\",\n \"taskTemplate\": \"\"\n }\n ],\n \"taskConfigsInternal\": [\n {\n \"alertConfigs\": [\n {\n \"aggregationPeriod\": \"\",\n \"alertDisabled\": false,\n \"alertName\": \"\",\n \"clientId\": \"\",\n \"durationThresholdMs\": \"\",\n \"errorEnumList\": {\n \"enumStrings\": [],\n \"filterType\": \"\"\n },\n \"metricType\": \"\",\n \"numAggregationPeriods\": 0,\n \"onlyFinalAttempt\": false,\n \"playbookUrl\": \"\",\n \"thresholdType\": \"\",\n \"thresholdValue\": {\n \"absolute\": \"\",\n \"percentage\": 0\n },\n \"warningEnumList\": {}\n }\n ],\n \"createTime\": \"\",\n \"creatorEmail\": \"\",\n \"description\": \"\",\n \"disableStrictTypeValidation\": false,\n \"errorCatcherId\": \"\",\n \"externalTaskType\": \"\",\n \"failurePolicy\": {\n \"intervalInSeconds\": \"\",\n \"maxNumRetries\": 0,\n \"retryStrategy\": \"\"\n },\n \"incomingEdgeCount\": 0,\n \"jsonValidationOption\": \"\",\n \"label\": \"\",\n \"lastModifiedTime\": \"\",\n \"nextTasks\": [\n {\n \"combinedConditions\": [\n {\n \"conditions\": [\n {\n \"eventPropertyKey\": \"\",\n \"operator\": \"\",\n \"value\": {}\n }\n ]\n }\n ],\n \"condition\": \"\",\n \"description\": \"\",\n \"label\": \"\",\n \"taskConfigId\": \"\",\n \"taskNumber\": \"\"\n }\n ],\n \"nextTasksExecutionPolicy\": \"\",\n \"parameters\": {},\n \"position\": {\n \"x\": 0,\n \"y\": 0\n },\n \"precondition\": \"\",\n \"preconditionLabel\": \"\",\n \"rollbackStrategy\": {\n \"parameters\": {\n \"parameters\": [\n {\n \"dataType\": \"\",\n \"key\": \"\",\n \"value\": {}\n }\n ]\n },\n \"rollbackTaskImplementationClassName\": \"\",\n \"taskNumbersToRollback\": []\n },\n \"successPolicy\": {\n \"finalState\": \"\"\n },\n \"synchronousCallFailurePolicy\": {},\n \"taskEntity\": {\n \"disabledForVpcSc\": false,\n \"metadata\": {\n \"activeTaskName\": \"\",\n \"admins\": [\n {\n \"googleGroupEmail\": \"\",\n \"userEmail\": \"\"\n }\n ],\n \"category\": \"\",\n \"codeSearchLink\": \"\",\n \"defaultJsonValidationOption\": \"\",\n \"defaultSpec\": \"\",\n \"description\": \"\",\n \"descriptiveName\": \"\",\n \"docMarkdown\": \"\",\n \"externalCategory\": \"\",\n \"externalCategorySequence\": 0,\n \"externalDocHtml\": \"\",\n \"externalDocLink\": \"\",\n \"externalDocMarkdown\": \"\",\n \"g3DocLink\": \"\",\n \"iconLink\": \"\",\n \"isDeprecated\": false,\n \"name\": \"\",\n \"standaloneExternalDocHtml\": \"\",\n \"status\": \"\",\n \"system\": \"\",\n \"tags\": []\n },\n \"paramSpecs\": {\n \"parameters\": [\n {\n \"className\": \"\",\n \"collectionElementClassName\": \"\",\n \"config\": {\n \"descriptivePhrase\": \"\",\n \"helpText\": \"\",\n \"hideDefaultValue\": false,\n \"inputDisplayOption\": \"\",\n \"isHidden\": false,\n \"label\": \"\",\n \"parameterNameOption\": \"\",\n \"subSectionLabel\": \"\",\n \"uiPlaceholderText\": \"\"\n },\n \"dataType\": \"\",\n \"defaultValue\": {},\n \"isDeprecated\": false,\n \"isOutput\": false,\n \"jsonSchema\": \"\",\n \"key\": \"\",\n \"protoDef\": {\n \"fullName\": \"\",\n \"path\": \"\"\n },\n \"required\": false,\n \"validationRule\": {\n \"doubleRange\": {\n \"max\": \"\",\n \"min\": \"\"\n },\n \"intRange\": {\n \"max\": \"\",\n \"min\": \"\"\n },\n \"stringRegex\": {\n \"exclusive\": false,\n \"regex\": \"\"\n }\n }\n }\n ]\n },\n \"stats\": {\n \"dimensions\": {\n \"clientId\": \"\",\n \"enumFilterType\": \"\",\n \"errorEnumString\": \"\",\n \"retryAttempt\": \"\",\n \"taskName\": \"\",\n \"taskNumber\": \"\",\n \"triggerId\": \"\",\n \"warningEnumString\": \"\",\n \"workflowId\": \"\",\n \"workflowName\": \"\"\n },\n \"durationInSeconds\": \"\",\n \"errorRate\": \"\",\n \"qps\": \"\",\n \"warningRate\": \"\"\n },\n \"taskType\": \"\",\n \"uiConfig\": {\n \"taskUiModuleConfigs\": [\n {\n \"moduleId\": \"\"\n }\n ]\n }\n },\n \"taskExecutionStrategy\": \"\",\n \"taskName\": \"\",\n \"taskNumber\": \"\",\n \"taskSpec\": \"\",\n \"taskTemplateName\": \"\",\n \"taskType\": \"\"\n }\n ],\n \"teardown\": {\n \"teardownTaskConfigs\": [\n {\n \"creatorEmail\": \"\",\n \"name\": \"\",\n \"nextTeardownTask\": {\n \"name\": \"\"\n },\n \"parameters\": {\n \"parameters\": [\n {\n \"key\": \"\",\n \"value\": {\n \"booleanArray\": {\n \"booleanValues\": []\n },\n \"booleanValue\": false,\n \"doubleArray\": {\n \"doubleValues\": []\n },\n \"doubleValue\": \"\",\n \"intArray\": {\n \"intValues\": []\n },\n \"intValue\": \"\",\n \"protoArray\": {\n \"protoValues\": [\n {}\n ]\n },\n \"protoValue\": {},\n \"serializedObjectValue\": {\n \"objectValue\": \"\"\n },\n \"stringArray\": {\n \"stringValues\": []\n },\n \"stringValue\": \"\"\n }\n }\n ]\n },\n \"properties\": {\n \"properties\": [\n {\n \"key\": \"\",\n \"value\": {}\n }\n ]\n },\n \"teardownTaskImplementationClassName\": \"\"\n }\n ]\n },\n \"triggerConfigs\": [\n {\n \"alertConfig\": [\n {\n \"aggregationPeriod\": \"\",\n \"alertThreshold\": 0,\n \"disableAlert\": false,\n \"displayName\": \"\",\n \"durationThreshold\": \"\",\n \"metricType\": \"\",\n \"onlyFinalAttempt\": false,\n \"thresholdType\": \"\",\n \"thresholdValue\": {\n \"absolute\": \"\",\n \"percentage\": 0\n }\n }\n ],\n \"cloudSchedulerConfig\": {\n \"cronTab\": \"\",\n \"errorMessage\": \"\",\n \"location\": \"\",\n \"serviceAccountEmail\": \"\"\n },\n \"description\": \"\",\n \"errorCatcherId\": \"\",\n \"label\": \"\",\n \"nextTasksExecutionPolicy\": \"\",\n \"position\": {},\n \"properties\": {},\n \"startTasks\": [\n {}\n ],\n \"triggerId\": \"\",\n \"triggerNumber\": \"\",\n \"triggerType\": \"\"\n }\n ],\n \"triggerConfigsInternal\": [\n {\n \"alertConfig\": [\n {\n \"aggregationPeriod\": \"\",\n \"alertDisabled\": false,\n \"alertName\": \"\",\n \"clientId\": \"\",\n \"durationThresholdMs\": \"\",\n \"errorEnumList\": {},\n \"metricType\": \"\",\n \"numAggregationPeriods\": 0,\n \"onlyFinalAttempt\": false,\n \"playbookUrl\": \"\",\n \"thresholdType\": \"\",\n \"thresholdValue\": {},\n \"warningEnumList\": {}\n }\n ],\n \"cloudSchedulerConfig\": {\n \"cronTab\": \"\",\n \"errorMessage\": \"\",\n \"location\": \"\",\n \"serviceAccountEmail\": \"\"\n },\n \"description\": \"\",\n \"enabledClients\": [],\n \"errorCatcherId\": \"\",\n \"label\": \"\",\n \"nextTasksExecutionPolicy\": \"\",\n \"pauseWorkflowExecutions\": false,\n \"position\": {},\n \"properties\": {},\n \"startTasks\": [\n {}\n ],\n \"triggerCriteria\": {\n \"condition\": \"\",\n \"parameters\": {},\n \"triggerCriteriaTaskImplementationClassName\": \"\"\n },\n \"triggerId\": \"\",\n \"triggerNumber\": \"\",\n \"triggerType\": \"\"\n }\n ],\n \"updateTime\": \"\",\n \"userLabel\": \"\"\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 \"databasePersistencePolicy\": \"\",\n \"description\": \"\",\n \"errorCatcherConfigs\": [\n {\n \"description\": \"\",\n \"errorCatcherId\": \"\",\n \"errorCatcherNumber\": \"\",\n \"label\": \"\",\n \"position\": {\n \"x\": 0,\n \"y\": 0\n },\n \"startErrorTasks\": [\n {\n \"condition\": \"\",\n \"description\": \"\",\n \"displayName\": \"\",\n \"taskConfigId\": \"\",\n \"taskId\": \"\"\n }\n ]\n }\n ],\n \"integrationParameters\": [\n {\n \"dataType\": \"\",\n \"defaultValue\": {\n \"booleanArray\": {\n \"booleanValues\": []\n },\n \"booleanValue\": false,\n \"doubleArray\": {\n \"doubleValues\": []\n },\n \"doubleValue\": \"\",\n \"intArray\": {\n \"intValues\": []\n },\n \"intValue\": \"\",\n \"jsonValue\": \"\",\n \"stringArray\": {\n \"stringValues\": []\n },\n \"stringValue\": \"\"\n },\n \"displayName\": \"\",\n \"inputOutputType\": \"\",\n \"isTransient\": false,\n \"jsonSchema\": \"\",\n \"key\": \"\",\n \"producer\": \"\",\n \"searchable\": false\n }\n ],\n \"integrationParametersInternal\": {\n \"parameters\": [\n {\n \"attributes\": {\n \"dataType\": \"\",\n \"defaultValue\": {\n \"booleanValue\": false,\n \"doubleArray\": {\n \"values\": []\n },\n \"doubleValue\": \"\",\n \"intArray\": {\n \"values\": []\n },\n \"intValue\": \"\",\n \"protoValue\": {},\n \"stringArray\": {\n \"values\": []\n },\n \"stringValue\": \"\"\n },\n \"isRequired\": false,\n \"isSearchable\": false,\n \"logSettings\": {\n \"logFieldName\": \"\",\n \"sanitizeOptions\": {\n \"isAlreadySanitized\": false,\n \"logType\": [],\n \"privacy\": \"\",\n \"sanitizeType\": \"\"\n },\n \"seedPeriod\": \"\",\n \"seedScope\": \"\",\n \"shorteningLimits\": {\n \"logAction\": \"\",\n \"logType\": [],\n \"maxArraySize\": 0,\n \"maxStringLength\": 0,\n \"shortenerType\": \"\"\n }\n },\n \"searchable\": \"\",\n \"taskVisibility\": []\n },\n \"children\": [],\n \"dataType\": \"\",\n \"defaultValue\": {\n \"booleanArray\": {\n \"booleanValues\": []\n },\n \"booleanValue\": false,\n \"doubleArray\": {\n \"doubleValues\": []\n },\n \"doubleValue\": \"\",\n \"intArray\": {\n \"intValues\": []\n },\n \"intValue\": \"\",\n \"jsonValue\": \"\",\n \"protoArray\": {\n \"protoValues\": [\n {}\n ]\n },\n \"protoValue\": {},\n \"serializedObjectValue\": {\n \"objectValue\": \"\"\n },\n \"stringArray\": {\n \"stringValues\": []\n },\n \"stringValue\": \"\"\n },\n \"inOutType\": \"\",\n \"isTransient\": false,\n \"jsonSchema\": \"\",\n \"key\": \"\",\n \"name\": \"\",\n \"producedBy\": {\n \"elementIdentifier\": \"\",\n \"elementType\": \"\"\n },\n \"producer\": \"\",\n \"protoDefName\": \"\",\n \"protoDefPath\": \"\"\n }\n ]\n },\n \"lastModifierEmail\": \"\",\n \"lockHolder\": \"\",\n \"name\": \"\",\n \"origin\": \"\",\n \"parentTemplateId\": \"\",\n \"runAsServiceAccount\": \"\",\n \"snapshotNumber\": \"\",\n \"state\": \"\",\n \"status\": \"\",\n \"taskConfigs\": [\n {\n \"description\": \"\",\n \"displayName\": \"\",\n \"errorCatcherId\": \"\",\n \"externalTaskType\": \"\",\n \"failurePolicy\": {\n \"intervalTime\": \"\",\n \"maxRetries\": 0,\n \"retryStrategy\": \"\"\n },\n \"jsonValidationOption\": \"\",\n \"nextTasks\": [\n {}\n ],\n \"nextTasksExecutionPolicy\": \"\",\n \"parameters\": {},\n \"position\": {},\n \"successPolicy\": {\n \"finalState\": \"\"\n },\n \"synchronousCallFailurePolicy\": {},\n \"task\": \"\",\n \"taskExecutionStrategy\": \"\",\n \"taskId\": \"\",\n \"taskTemplate\": \"\"\n }\n ],\n \"taskConfigsInternal\": [\n {\n \"alertConfigs\": [\n {\n \"aggregationPeriod\": \"\",\n \"alertDisabled\": false,\n \"alertName\": \"\",\n \"clientId\": \"\",\n \"durationThresholdMs\": \"\",\n \"errorEnumList\": {\n \"enumStrings\": [],\n \"filterType\": \"\"\n },\n \"metricType\": \"\",\n \"numAggregationPeriods\": 0,\n \"onlyFinalAttempt\": false,\n \"playbookUrl\": \"\",\n \"thresholdType\": \"\",\n \"thresholdValue\": {\n \"absolute\": \"\",\n \"percentage\": 0\n },\n \"warningEnumList\": {}\n }\n ],\n \"createTime\": \"\",\n \"creatorEmail\": \"\",\n \"description\": \"\",\n \"disableStrictTypeValidation\": false,\n \"errorCatcherId\": \"\",\n \"externalTaskType\": \"\",\n \"failurePolicy\": {\n \"intervalInSeconds\": \"\",\n \"maxNumRetries\": 0,\n \"retryStrategy\": \"\"\n },\n \"incomingEdgeCount\": 0,\n \"jsonValidationOption\": \"\",\n \"label\": \"\",\n \"lastModifiedTime\": \"\",\n \"nextTasks\": [\n {\n \"combinedConditions\": [\n {\n \"conditions\": [\n {\n \"eventPropertyKey\": \"\",\n \"operator\": \"\",\n \"value\": {}\n }\n ]\n }\n ],\n \"condition\": \"\",\n \"description\": \"\",\n \"label\": \"\",\n \"taskConfigId\": \"\",\n \"taskNumber\": \"\"\n }\n ],\n \"nextTasksExecutionPolicy\": \"\",\n \"parameters\": {},\n \"position\": {\n \"x\": 0,\n \"y\": 0\n },\n \"precondition\": \"\",\n \"preconditionLabel\": \"\",\n \"rollbackStrategy\": {\n \"parameters\": {\n \"parameters\": [\n {\n \"dataType\": \"\",\n \"key\": \"\",\n \"value\": {}\n }\n ]\n },\n \"rollbackTaskImplementationClassName\": \"\",\n \"taskNumbersToRollback\": []\n },\n \"successPolicy\": {\n \"finalState\": \"\"\n },\n \"synchronousCallFailurePolicy\": {},\n \"taskEntity\": {\n \"disabledForVpcSc\": false,\n \"metadata\": {\n \"activeTaskName\": \"\",\n \"admins\": [\n {\n \"googleGroupEmail\": \"\",\n \"userEmail\": \"\"\n }\n ],\n \"category\": \"\",\n \"codeSearchLink\": \"\",\n \"defaultJsonValidationOption\": \"\",\n \"defaultSpec\": \"\",\n \"description\": \"\",\n \"descriptiveName\": \"\",\n \"docMarkdown\": \"\",\n \"externalCategory\": \"\",\n \"externalCategorySequence\": 0,\n \"externalDocHtml\": \"\",\n \"externalDocLink\": \"\",\n \"externalDocMarkdown\": \"\",\n \"g3DocLink\": \"\",\n \"iconLink\": \"\",\n \"isDeprecated\": false,\n \"name\": \"\",\n \"standaloneExternalDocHtml\": \"\",\n \"status\": \"\",\n \"system\": \"\",\n \"tags\": []\n },\n \"paramSpecs\": {\n \"parameters\": [\n {\n \"className\": \"\",\n \"collectionElementClassName\": \"\",\n \"config\": {\n \"descriptivePhrase\": \"\",\n \"helpText\": \"\",\n \"hideDefaultValue\": false,\n \"inputDisplayOption\": \"\",\n \"isHidden\": false,\n \"label\": \"\",\n \"parameterNameOption\": \"\",\n \"subSectionLabel\": \"\",\n \"uiPlaceholderText\": \"\"\n },\n \"dataType\": \"\",\n \"defaultValue\": {},\n \"isDeprecated\": false,\n \"isOutput\": false,\n \"jsonSchema\": \"\",\n \"key\": \"\",\n \"protoDef\": {\n \"fullName\": \"\",\n \"path\": \"\"\n },\n \"required\": false,\n \"validationRule\": {\n \"doubleRange\": {\n \"max\": \"\",\n \"min\": \"\"\n },\n \"intRange\": {\n \"max\": \"\",\n \"min\": \"\"\n },\n \"stringRegex\": {\n \"exclusive\": false,\n \"regex\": \"\"\n }\n }\n }\n ]\n },\n \"stats\": {\n \"dimensions\": {\n \"clientId\": \"\",\n \"enumFilterType\": \"\",\n \"errorEnumString\": \"\",\n \"retryAttempt\": \"\",\n \"taskName\": \"\",\n \"taskNumber\": \"\",\n \"triggerId\": \"\",\n \"warningEnumString\": \"\",\n \"workflowId\": \"\",\n \"workflowName\": \"\"\n },\n \"durationInSeconds\": \"\",\n \"errorRate\": \"\",\n \"qps\": \"\",\n \"warningRate\": \"\"\n },\n \"taskType\": \"\",\n \"uiConfig\": {\n \"taskUiModuleConfigs\": [\n {\n \"moduleId\": \"\"\n }\n ]\n }\n },\n \"taskExecutionStrategy\": \"\",\n \"taskName\": \"\",\n \"taskNumber\": \"\",\n \"taskSpec\": \"\",\n \"taskTemplateName\": \"\",\n \"taskType\": \"\"\n }\n ],\n \"teardown\": {\n \"teardownTaskConfigs\": [\n {\n \"creatorEmail\": \"\",\n \"name\": \"\",\n \"nextTeardownTask\": {\n \"name\": \"\"\n },\n \"parameters\": {\n \"parameters\": [\n {\n \"key\": \"\",\n \"value\": {\n \"booleanArray\": {\n \"booleanValues\": []\n },\n \"booleanValue\": false,\n \"doubleArray\": {\n \"doubleValues\": []\n },\n \"doubleValue\": \"\",\n \"intArray\": {\n \"intValues\": []\n },\n \"intValue\": \"\",\n \"protoArray\": {\n \"protoValues\": [\n {}\n ]\n },\n \"protoValue\": {},\n \"serializedObjectValue\": {\n \"objectValue\": \"\"\n },\n \"stringArray\": {\n \"stringValues\": []\n },\n \"stringValue\": \"\"\n }\n }\n ]\n },\n \"properties\": {\n \"properties\": [\n {\n \"key\": \"\",\n \"value\": {}\n }\n ]\n },\n \"teardownTaskImplementationClassName\": \"\"\n }\n ]\n },\n \"triggerConfigs\": [\n {\n \"alertConfig\": [\n {\n \"aggregationPeriod\": \"\",\n \"alertThreshold\": 0,\n \"disableAlert\": false,\n \"displayName\": \"\",\n \"durationThreshold\": \"\",\n \"metricType\": \"\",\n \"onlyFinalAttempt\": false,\n \"thresholdType\": \"\",\n \"thresholdValue\": {\n \"absolute\": \"\",\n \"percentage\": 0\n }\n }\n ],\n \"cloudSchedulerConfig\": {\n \"cronTab\": \"\",\n \"errorMessage\": \"\",\n \"location\": \"\",\n \"serviceAccountEmail\": \"\"\n },\n \"description\": \"\",\n \"errorCatcherId\": \"\",\n \"label\": \"\",\n \"nextTasksExecutionPolicy\": \"\",\n \"position\": {},\n \"properties\": {},\n \"startTasks\": [\n {}\n ],\n \"triggerId\": \"\",\n \"triggerNumber\": \"\",\n \"triggerType\": \"\"\n }\n ],\n \"triggerConfigsInternal\": [\n {\n \"alertConfig\": [\n {\n \"aggregationPeriod\": \"\",\n \"alertDisabled\": false,\n \"alertName\": \"\",\n \"clientId\": \"\",\n \"durationThresholdMs\": \"\",\n \"errorEnumList\": {},\n \"metricType\": \"\",\n \"numAggregationPeriods\": 0,\n \"onlyFinalAttempt\": false,\n \"playbookUrl\": \"\",\n \"thresholdType\": \"\",\n \"thresholdValue\": {},\n \"warningEnumList\": {}\n }\n ],\n \"cloudSchedulerConfig\": {\n \"cronTab\": \"\",\n \"errorMessage\": \"\",\n \"location\": \"\",\n \"serviceAccountEmail\": \"\"\n },\n \"description\": \"\",\n \"enabledClients\": [],\n \"errorCatcherId\": \"\",\n \"label\": \"\",\n \"nextTasksExecutionPolicy\": \"\",\n \"pauseWorkflowExecutions\": false,\n \"position\": {},\n \"properties\": {},\n \"startTasks\": [\n {}\n ],\n \"triggerCriteria\": {\n \"condition\": \"\",\n \"parameters\": {},\n \"triggerCriteriaTaskImplementationClassName\": \"\"\n },\n \"triggerId\": \"\",\n \"triggerNumber\": \"\",\n \"triggerType\": \"\"\n }\n ],\n \"updateTime\": \"\",\n \"userLabel\": \"\"\n}");
Request request = new Request.Builder()
.url("{{baseUrl}}/v1/:parent/versions")
.post(body)
.addHeader("content-type", "application/json")
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/v1/:parent/versions")
.header("content-type", "application/json")
.body("{\n \"createTime\": \"\",\n \"databasePersistencePolicy\": \"\",\n \"description\": \"\",\n \"errorCatcherConfigs\": [\n {\n \"description\": \"\",\n \"errorCatcherId\": \"\",\n \"errorCatcherNumber\": \"\",\n \"label\": \"\",\n \"position\": {\n \"x\": 0,\n \"y\": 0\n },\n \"startErrorTasks\": [\n {\n \"condition\": \"\",\n \"description\": \"\",\n \"displayName\": \"\",\n \"taskConfigId\": \"\",\n \"taskId\": \"\"\n }\n ]\n }\n ],\n \"integrationParameters\": [\n {\n \"dataType\": \"\",\n \"defaultValue\": {\n \"booleanArray\": {\n \"booleanValues\": []\n },\n \"booleanValue\": false,\n \"doubleArray\": {\n \"doubleValues\": []\n },\n \"doubleValue\": \"\",\n \"intArray\": {\n \"intValues\": []\n },\n \"intValue\": \"\",\n \"jsonValue\": \"\",\n \"stringArray\": {\n \"stringValues\": []\n },\n \"stringValue\": \"\"\n },\n \"displayName\": \"\",\n \"inputOutputType\": \"\",\n \"isTransient\": false,\n \"jsonSchema\": \"\",\n \"key\": \"\",\n \"producer\": \"\",\n \"searchable\": false\n }\n ],\n \"integrationParametersInternal\": {\n \"parameters\": [\n {\n \"attributes\": {\n \"dataType\": \"\",\n \"defaultValue\": {\n \"booleanValue\": false,\n \"doubleArray\": {\n \"values\": []\n },\n \"doubleValue\": \"\",\n \"intArray\": {\n \"values\": []\n },\n \"intValue\": \"\",\n \"protoValue\": {},\n \"stringArray\": {\n \"values\": []\n },\n \"stringValue\": \"\"\n },\n \"isRequired\": false,\n \"isSearchable\": false,\n \"logSettings\": {\n \"logFieldName\": \"\",\n \"sanitizeOptions\": {\n \"isAlreadySanitized\": false,\n \"logType\": [],\n \"privacy\": \"\",\n \"sanitizeType\": \"\"\n },\n \"seedPeriod\": \"\",\n \"seedScope\": \"\",\n \"shorteningLimits\": {\n \"logAction\": \"\",\n \"logType\": [],\n \"maxArraySize\": 0,\n \"maxStringLength\": 0,\n \"shortenerType\": \"\"\n }\n },\n \"searchable\": \"\",\n \"taskVisibility\": []\n },\n \"children\": [],\n \"dataType\": \"\",\n \"defaultValue\": {\n \"booleanArray\": {\n \"booleanValues\": []\n },\n \"booleanValue\": false,\n \"doubleArray\": {\n \"doubleValues\": []\n },\n \"doubleValue\": \"\",\n \"intArray\": {\n \"intValues\": []\n },\n \"intValue\": \"\",\n \"jsonValue\": \"\",\n \"protoArray\": {\n \"protoValues\": [\n {}\n ]\n },\n \"protoValue\": {},\n \"serializedObjectValue\": {\n \"objectValue\": \"\"\n },\n \"stringArray\": {\n \"stringValues\": []\n },\n \"stringValue\": \"\"\n },\n \"inOutType\": \"\",\n \"isTransient\": false,\n \"jsonSchema\": \"\",\n \"key\": \"\",\n \"name\": \"\",\n \"producedBy\": {\n \"elementIdentifier\": \"\",\n \"elementType\": \"\"\n },\n \"producer\": \"\",\n \"protoDefName\": \"\",\n \"protoDefPath\": \"\"\n }\n ]\n },\n \"lastModifierEmail\": \"\",\n \"lockHolder\": \"\",\n \"name\": \"\",\n \"origin\": \"\",\n \"parentTemplateId\": \"\",\n \"runAsServiceAccount\": \"\",\n \"snapshotNumber\": \"\",\n \"state\": \"\",\n \"status\": \"\",\n \"taskConfigs\": [\n {\n \"description\": \"\",\n \"displayName\": \"\",\n \"errorCatcherId\": \"\",\n \"externalTaskType\": \"\",\n \"failurePolicy\": {\n \"intervalTime\": \"\",\n \"maxRetries\": 0,\n \"retryStrategy\": \"\"\n },\n \"jsonValidationOption\": \"\",\n \"nextTasks\": [\n {}\n ],\n \"nextTasksExecutionPolicy\": \"\",\n \"parameters\": {},\n \"position\": {},\n \"successPolicy\": {\n \"finalState\": \"\"\n },\n \"synchronousCallFailurePolicy\": {},\n \"task\": \"\",\n \"taskExecutionStrategy\": \"\",\n \"taskId\": \"\",\n \"taskTemplate\": \"\"\n }\n ],\n \"taskConfigsInternal\": [\n {\n \"alertConfigs\": [\n {\n \"aggregationPeriod\": \"\",\n \"alertDisabled\": false,\n \"alertName\": \"\",\n \"clientId\": \"\",\n \"durationThresholdMs\": \"\",\n \"errorEnumList\": {\n \"enumStrings\": [],\n \"filterType\": \"\"\n },\n \"metricType\": \"\",\n \"numAggregationPeriods\": 0,\n \"onlyFinalAttempt\": false,\n \"playbookUrl\": \"\",\n \"thresholdType\": \"\",\n \"thresholdValue\": {\n \"absolute\": \"\",\n \"percentage\": 0\n },\n \"warningEnumList\": {}\n }\n ],\n \"createTime\": \"\",\n \"creatorEmail\": \"\",\n \"description\": \"\",\n \"disableStrictTypeValidation\": false,\n \"errorCatcherId\": \"\",\n \"externalTaskType\": \"\",\n \"failurePolicy\": {\n \"intervalInSeconds\": \"\",\n \"maxNumRetries\": 0,\n \"retryStrategy\": \"\"\n },\n \"incomingEdgeCount\": 0,\n \"jsonValidationOption\": \"\",\n \"label\": \"\",\n \"lastModifiedTime\": \"\",\n \"nextTasks\": [\n {\n \"combinedConditions\": [\n {\n \"conditions\": [\n {\n \"eventPropertyKey\": \"\",\n \"operator\": \"\",\n \"value\": {}\n }\n ]\n }\n ],\n \"condition\": \"\",\n \"description\": \"\",\n \"label\": \"\",\n \"taskConfigId\": \"\",\n \"taskNumber\": \"\"\n }\n ],\n \"nextTasksExecutionPolicy\": \"\",\n \"parameters\": {},\n \"position\": {\n \"x\": 0,\n \"y\": 0\n },\n \"precondition\": \"\",\n \"preconditionLabel\": \"\",\n \"rollbackStrategy\": {\n \"parameters\": {\n \"parameters\": [\n {\n \"dataType\": \"\",\n \"key\": \"\",\n \"value\": {}\n }\n ]\n },\n \"rollbackTaskImplementationClassName\": \"\",\n \"taskNumbersToRollback\": []\n },\n \"successPolicy\": {\n \"finalState\": \"\"\n },\n \"synchronousCallFailurePolicy\": {},\n \"taskEntity\": {\n \"disabledForVpcSc\": false,\n \"metadata\": {\n \"activeTaskName\": \"\",\n \"admins\": [\n {\n \"googleGroupEmail\": \"\",\n \"userEmail\": \"\"\n }\n ],\n \"category\": \"\",\n \"codeSearchLink\": \"\",\n \"defaultJsonValidationOption\": \"\",\n \"defaultSpec\": \"\",\n \"description\": \"\",\n \"descriptiveName\": \"\",\n \"docMarkdown\": \"\",\n \"externalCategory\": \"\",\n \"externalCategorySequence\": 0,\n \"externalDocHtml\": \"\",\n \"externalDocLink\": \"\",\n \"externalDocMarkdown\": \"\",\n \"g3DocLink\": \"\",\n \"iconLink\": \"\",\n \"isDeprecated\": false,\n \"name\": \"\",\n \"standaloneExternalDocHtml\": \"\",\n \"status\": \"\",\n \"system\": \"\",\n \"tags\": []\n },\n \"paramSpecs\": {\n \"parameters\": [\n {\n \"className\": \"\",\n \"collectionElementClassName\": \"\",\n \"config\": {\n \"descriptivePhrase\": \"\",\n \"helpText\": \"\",\n \"hideDefaultValue\": false,\n \"inputDisplayOption\": \"\",\n \"isHidden\": false,\n \"label\": \"\",\n \"parameterNameOption\": \"\",\n \"subSectionLabel\": \"\",\n \"uiPlaceholderText\": \"\"\n },\n \"dataType\": \"\",\n \"defaultValue\": {},\n \"isDeprecated\": false,\n \"isOutput\": false,\n \"jsonSchema\": \"\",\n \"key\": \"\",\n \"protoDef\": {\n \"fullName\": \"\",\n \"path\": \"\"\n },\n \"required\": false,\n \"validationRule\": {\n \"doubleRange\": {\n \"max\": \"\",\n \"min\": \"\"\n },\n \"intRange\": {\n \"max\": \"\",\n \"min\": \"\"\n },\n \"stringRegex\": {\n \"exclusive\": false,\n \"regex\": \"\"\n }\n }\n }\n ]\n },\n \"stats\": {\n \"dimensions\": {\n \"clientId\": \"\",\n \"enumFilterType\": \"\",\n \"errorEnumString\": \"\",\n \"retryAttempt\": \"\",\n \"taskName\": \"\",\n \"taskNumber\": \"\",\n \"triggerId\": \"\",\n \"warningEnumString\": \"\",\n \"workflowId\": \"\",\n \"workflowName\": \"\"\n },\n \"durationInSeconds\": \"\",\n \"errorRate\": \"\",\n \"qps\": \"\",\n \"warningRate\": \"\"\n },\n \"taskType\": \"\",\n \"uiConfig\": {\n \"taskUiModuleConfigs\": [\n {\n \"moduleId\": \"\"\n }\n ]\n }\n },\n \"taskExecutionStrategy\": \"\",\n \"taskName\": \"\",\n \"taskNumber\": \"\",\n \"taskSpec\": \"\",\n \"taskTemplateName\": \"\",\n \"taskType\": \"\"\n }\n ],\n \"teardown\": {\n \"teardownTaskConfigs\": [\n {\n \"creatorEmail\": \"\",\n \"name\": \"\",\n \"nextTeardownTask\": {\n \"name\": \"\"\n },\n \"parameters\": {\n \"parameters\": [\n {\n \"key\": \"\",\n \"value\": {\n \"booleanArray\": {\n \"booleanValues\": []\n },\n \"booleanValue\": false,\n \"doubleArray\": {\n \"doubleValues\": []\n },\n \"doubleValue\": \"\",\n \"intArray\": {\n \"intValues\": []\n },\n \"intValue\": \"\",\n \"protoArray\": {\n \"protoValues\": [\n {}\n ]\n },\n \"protoValue\": {},\n \"serializedObjectValue\": {\n \"objectValue\": \"\"\n },\n \"stringArray\": {\n \"stringValues\": []\n },\n \"stringValue\": \"\"\n }\n }\n ]\n },\n \"properties\": {\n \"properties\": [\n {\n \"key\": \"\",\n \"value\": {}\n }\n ]\n },\n \"teardownTaskImplementationClassName\": \"\"\n }\n ]\n },\n \"triggerConfigs\": [\n {\n \"alertConfig\": [\n {\n \"aggregationPeriod\": \"\",\n \"alertThreshold\": 0,\n \"disableAlert\": false,\n \"displayName\": \"\",\n \"durationThreshold\": \"\",\n \"metricType\": \"\",\n \"onlyFinalAttempt\": false,\n \"thresholdType\": \"\",\n \"thresholdValue\": {\n \"absolute\": \"\",\n \"percentage\": 0\n }\n }\n ],\n \"cloudSchedulerConfig\": {\n \"cronTab\": \"\",\n \"errorMessage\": \"\",\n \"location\": \"\",\n \"serviceAccountEmail\": \"\"\n },\n \"description\": \"\",\n \"errorCatcherId\": \"\",\n \"label\": \"\",\n \"nextTasksExecutionPolicy\": \"\",\n \"position\": {},\n \"properties\": {},\n \"startTasks\": [\n {}\n ],\n \"triggerId\": \"\",\n \"triggerNumber\": \"\",\n \"triggerType\": \"\"\n }\n ],\n \"triggerConfigsInternal\": [\n {\n \"alertConfig\": [\n {\n \"aggregationPeriod\": \"\",\n \"alertDisabled\": false,\n \"alertName\": \"\",\n \"clientId\": \"\",\n \"durationThresholdMs\": \"\",\n \"errorEnumList\": {},\n \"metricType\": \"\",\n \"numAggregationPeriods\": 0,\n \"onlyFinalAttempt\": false,\n \"playbookUrl\": \"\",\n \"thresholdType\": \"\",\n \"thresholdValue\": {},\n \"warningEnumList\": {}\n }\n ],\n \"cloudSchedulerConfig\": {\n \"cronTab\": \"\",\n \"errorMessage\": \"\",\n \"location\": \"\",\n \"serviceAccountEmail\": \"\"\n },\n \"description\": \"\",\n \"enabledClients\": [],\n \"errorCatcherId\": \"\",\n \"label\": \"\",\n \"nextTasksExecutionPolicy\": \"\",\n \"pauseWorkflowExecutions\": false,\n \"position\": {},\n \"properties\": {},\n \"startTasks\": [\n {}\n ],\n \"triggerCriteria\": {\n \"condition\": \"\",\n \"parameters\": {},\n \"triggerCriteriaTaskImplementationClassName\": \"\"\n },\n \"triggerId\": \"\",\n \"triggerNumber\": \"\",\n \"triggerType\": \"\"\n }\n ],\n \"updateTime\": \"\",\n \"userLabel\": \"\"\n}")
.asString();
const data = JSON.stringify({
createTime: '',
databasePersistencePolicy: '',
description: '',
errorCatcherConfigs: [
{
description: '',
errorCatcherId: '',
errorCatcherNumber: '',
label: '',
position: {
x: 0,
y: 0
},
startErrorTasks: [
{
condition: '',
description: '',
displayName: '',
taskConfigId: '',
taskId: ''
}
]
}
],
integrationParameters: [
{
dataType: '',
defaultValue: {
booleanArray: {
booleanValues: []
},
booleanValue: false,
doubleArray: {
doubleValues: []
},
doubleValue: '',
intArray: {
intValues: []
},
intValue: '',
jsonValue: '',
stringArray: {
stringValues: []
},
stringValue: ''
},
displayName: '',
inputOutputType: '',
isTransient: false,
jsonSchema: '',
key: '',
producer: '',
searchable: false
}
],
integrationParametersInternal: {
parameters: [
{
attributes: {
dataType: '',
defaultValue: {
booleanValue: false,
doubleArray: {
values: []
},
doubleValue: '',
intArray: {
values: []
},
intValue: '',
protoValue: {},
stringArray: {
values: []
},
stringValue: ''
},
isRequired: false,
isSearchable: false,
logSettings: {
logFieldName: '',
sanitizeOptions: {
isAlreadySanitized: false,
logType: [],
privacy: '',
sanitizeType: ''
},
seedPeriod: '',
seedScope: '',
shorteningLimits: {
logAction: '',
logType: [],
maxArraySize: 0,
maxStringLength: 0,
shortenerType: ''
}
},
searchable: '',
taskVisibility: []
},
children: [],
dataType: '',
defaultValue: {
booleanArray: {
booleanValues: []
},
booleanValue: false,
doubleArray: {
doubleValues: []
},
doubleValue: '',
intArray: {
intValues: []
},
intValue: '',
jsonValue: '',
protoArray: {
protoValues: [
{}
]
},
protoValue: {},
serializedObjectValue: {
objectValue: ''
},
stringArray: {
stringValues: []
},
stringValue: ''
},
inOutType: '',
isTransient: false,
jsonSchema: '',
key: '',
name: '',
producedBy: {
elementIdentifier: '',
elementType: ''
},
producer: '',
protoDefName: '',
protoDefPath: ''
}
]
},
lastModifierEmail: '',
lockHolder: '',
name: '',
origin: '',
parentTemplateId: '',
runAsServiceAccount: '',
snapshotNumber: '',
state: '',
status: '',
taskConfigs: [
{
description: '',
displayName: '',
errorCatcherId: '',
externalTaskType: '',
failurePolicy: {
intervalTime: '',
maxRetries: 0,
retryStrategy: ''
},
jsonValidationOption: '',
nextTasks: [
{}
],
nextTasksExecutionPolicy: '',
parameters: {},
position: {},
successPolicy: {
finalState: ''
},
synchronousCallFailurePolicy: {},
task: '',
taskExecutionStrategy: '',
taskId: '',
taskTemplate: ''
}
],
taskConfigsInternal: [
{
alertConfigs: [
{
aggregationPeriod: '',
alertDisabled: false,
alertName: '',
clientId: '',
durationThresholdMs: '',
errorEnumList: {
enumStrings: [],
filterType: ''
},
metricType: '',
numAggregationPeriods: 0,
onlyFinalAttempt: false,
playbookUrl: '',
thresholdType: '',
thresholdValue: {
absolute: '',
percentage: 0
},
warningEnumList: {}
}
],
createTime: '',
creatorEmail: '',
description: '',
disableStrictTypeValidation: false,
errorCatcherId: '',
externalTaskType: '',
failurePolicy: {
intervalInSeconds: '',
maxNumRetries: 0,
retryStrategy: ''
},
incomingEdgeCount: 0,
jsonValidationOption: '',
label: '',
lastModifiedTime: '',
nextTasks: [
{
combinedConditions: [
{
conditions: [
{
eventPropertyKey: '',
operator: '',
value: {}
}
]
}
],
condition: '',
description: '',
label: '',
taskConfigId: '',
taskNumber: ''
}
],
nextTasksExecutionPolicy: '',
parameters: {},
position: {
x: 0,
y: 0
},
precondition: '',
preconditionLabel: '',
rollbackStrategy: {
parameters: {
parameters: [
{
dataType: '',
key: '',
value: {}
}
]
},
rollbackTaskImplementationClassName: '',
taskNumbersToRollback: []
},
successPolicy: {
finalState: ''
},
synchronousCallFailurePolicy: {},
taskEntity: {
disabledForVpcSc: false,
metadata: {
activeTaskName: '',
admins: [
{
googleGroupEmail: '',
userEmail: ''
}
],
category: '',
codeSearchLink: '',
defaultJsonValidationOption: '',
defaultSpec: '',
description: '',
descriptiveName: '',
docMarkdown: '',
externalCategory: '',
externalCategorySequence: 0,
externalDocHtml: '',
externalDocLink: '',
externalDocMarkdown: '',
g3DocLink: '',
iconLink: '',
isDeprecated: false,
name: '',
standaloneExternalDocHtml: '',
status: '',
system: '',
tags: []
},
paramSpecs: {
parameters: [
{
className: '',
collectionElementClassName: '',
config: {
descriptivePhrase: '',
helpText: '',
hideDefaultValue: false,
inputDisplayOption: '',
isHidden: false,
label: '',
parameterNameOption: '',
subSectionLabel: '',
uiPlaceholderText: ''
},
dataType: '',
defaultValue: {},
isDeprecated: false,
isOutput: false,
jsonSchema: '',
key: '',
protoDef: {
fullName: '',
path: ''
},
required: false,
validationRule: {
doubleRange: {
max: '',
min: ''
},
intRange: {
max: '',
min: ''
},
stringRegex: {
exclusive: false,
regex: ''
}
}
}
]
},
stats: {
dimensions: {
clientId: '',
enumFilterType: '',
errorEnumString: '',
retryAttempt: '',
taskName: '',
taskNumber: '',
triggerId: '',
warningEnumString: '',
workflowId: '',
workflowName: ''
},
durationInSeconds: '',
errorRate: '',
qps: '',
warningRate: ''
},
taskType: '',
uiConfig: {
taskUiModuleConfigs: [
{
moduleId: ''
}
]
}
},
taskExecutionStrategy: '',
taskName: '',
taskNumber: '',
taskSpec: '',
taskTemplateName: '',
taskType: ''
}
],
teardown: {
teardownTaskConfigs: [
{
creatorEmail: '',
name: '',
nextTeardownTask: {
name: ''
},
parameters: {
parameters: [
{
key: '',
value: {
booleanArray: {
booleanValues: []
},
booleanValue: false,
doubleArray: {
doubleValues: []
},
doubleValue: '',
intArray: {
intValues: []
},
intValue: '',
protoArray: {
protoValues: [
{}
]
},
protoValue: {},
serializedObjectValue: {
objectValue: ''
},
stringArray: {
stringValues: []
},
stringValue: ''
}
}
]
},
properties: {
properties: [
{
key: '',
value: {}
}
]
},
teardownTaskImplementationClassName: ''
}
]
},
triggerConfigs: [
{
alertConfig: [
{
aggregationPeriod: '',
alertThreshold: 0,
disableAlert: false,
displayName: '',
durationThreshold: '',
metricType: '',
onlyFinalAttempt: false,
thresholdType: '',
thresholdValue: {
absolute: '',
percentage: 0
}
}
],
cloudSchedulerConfig: {
cronTab: '',
errorMessage: '',
location: '',
serviceAccountEmail: ''
},
description: '',
errorCatcherId: '',
label: '',
nextTasksExecutionPolicy: '',
position: {},
properties: {},
startTasks: [
{}
],
triggerId: '',
triggerNumber: '',
triggerType: ''
}
],
triggerConfigsInternal: [
{
alertConfig: [
{
aggregationPeriod: '',
alertDisabled: false,
alertName: '',
clientId: '',
durationThresholdMs: '',
errorEnumList: {},
metricType: '',
numAggregationPeriods: 0,
onlyFinalAttempt: false,
playbookUrl: '',
thresholdType: '',
thresholdValue: {},
warningEnumList: {}
}
],
cloudSchedulerConfig: {
cronTab: '',
errorMessage: '',
location: '',
serviceAccountEmail: ''
},
description: '',
enabledClients: [],
errorCatcherId: '',
label: '',
nextTasksExecutionPolicy: '',
pauseWorkflowExecutions: false,
position: {},
properties: {},
startTasks: [
{}
],
triggerCriteria: {
condition: '',
parameters: {},
triggerCriteriaTaskImplementationClassName: ''
},
triggerId: '',
triggerNumber: '',
triggerType: ''
}
],
updateTime: '',
userLabel: ''
});
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('POST', '{{baseUrl}}/v1/:parent/versions');
xhr.setRequestHeader('content-type', 'application/json');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'POST',
url: '{{baseUrl}}/v1/:parent/versions',
headers: {'content-type': 'application/json'},
data: {
createTime: '',
databasePersistencePolicy: '',
description: '',
errorCatcherConfigs: [
{
description: '',
errorCatcherId: '',
errorCatcherNumber: '',
label: '',
position: {x: 0, y: 0},
startErrorTasks: [
{condition: '', description: '', displayName: '', taskConfigId: '', taskId: ''}
]
}
],
integrationParameters: [
{
dataType: '',
defaultValue: {
booleanArray: {booleanValues: []},
booleanValue: false,
doubleArray: {doubleValues: []},
doubleValue: '',
intArray: {intValues: []},
intValue: '',
jsonValue: '',
stringArray: {stringValues: []},
stringValue: ''
},
displayName: '',
inputOutputType: '',
isTransient: false,
jsonSchema: '',
key: '',
producer: '',
searchable: false
}
],
integrationParametersInternal: {
parameters: [
{
attributes: {
dataType: '',
defaultValue: {
booleanValue: false,
doubleArray: {values: []},
doubleValue: '',
intArray: {values: []},
intValue: '',
protoValue: {},
stringArray: {values: []},
stringValue: ''
},
isRequired: false,
isSearchable: false,
logSettings: {
logFieldName: '',
sanitizeOptions: {isAlreadySanitized: false, logType: [], privacy: '', sanitizeType: ''},
seedPeriod: '',
seedScope: '',
shorteningLimits: {
logAction: '',
logType: [],
maxArraySize: 0,
maxStringLength: 0,
shortenerType: ''
}
},
searchable: '',
taskVisibility: []
},
children: [],
dataType: '',
defaultValue: {
booleanArray: {booleanValues: []},
booleanValue: false,
doubleArray: {doubleValues: []},
doubleValue: '',
intArray: {intValues: []},
intValue: '',
jsonValue: '',
protoArray: {protoValues: [{}]},
protoValue: {},
serializedObjectValue: {objectValue: ''},
stringArray: {stringValues: []},
stringValue: ''
},
inOutType: '',
isTransient: false,
jsonSchema: '',
key: '',
name: '',
producedBy: {elementIdentifier: '', elementType: ''},
producer: '',
protoDefName: '',
protoDefPath: ''
}
]
},
lastModifierEmail: '',
lockHolder: '',
name: '',
origin: '',
parentTemplateId: '',
runAsServiceAccount: '',
snapshotNumber: '',
state: '',
status: '',
taskConfigs: [
{
description: '',
displayName: '',
errorCatcherId: '',
externalTaskType: '',
failurePolicy: {intervalTime: '', maxRetries: 0, retryStrategy: ''},
jsonValidationOption: '',
nextTasks: [{}],
nextTasksExecutionPolicy: '',
parameters: {},
position: {},
successPolicy: {finalState: ''},
synchronousCallFailurePolicy: {},
task: '',
taskExecutionStrategy: '',
taskId: '',
taskTemplate: ''
}
],
taskConfigsInternal: [
{
alertConfigs: [
{
aggregationPeriod: '',
alertDisabled: false,
alertName: '',
clientId: '',
durationThresholdMs: '',
errorEnumList: {enumStrings: [], filterType: ''},
metricType: '',
numAggregationPeriods: 0,
onlyFinalAttempt: false,
playbookUrl: '',
thresholdType: '',
thresholdValue: {absolute: '', percentage: 0},
warningEnumList: {}
}
],
createTime: '',
creatorEmail: '',
description: '',
disableStrictTypeValidation: false,
errorCatcherId: '',
externalTaskType: '',
failurePolicy: {intervalInSeconds: '', maxNumRetries: 0, retryStrategy: ''},
incomingEdgeCount: 0,
jsonValidationOption: '',
label: '',
lastModifiedTime: '',
nextTasks: [
{
combinedConditions: [{conditions: [{eventPropertyKey: '', operator: '', value: {}}]}],
condition: '',
description: '',
label: '',
taskConfigId: '',
taskNumber: ''
}
],
nextTasksExecutionPolicy: '',
parameters: {},
position: {x: 0, y: 0},
precondition: '',
preconditionLabel: '',
rollbackStrategy: {
parameters: {parameters: [{dataType: '', key: '', value: {}}]},
rollbackTaskImplementationClassName: '',
taskNumbersToRollback: []
},
successPolicy: {finalState: ''},
synchronousCallFailurePolicy: {},
taskEntity: {
disabledForVpcSc: false,
metadata: {
activeTaskName: '',
admins: [{googleGroupEmail: '', userEmail: ''}],
category: '',
codeSearchLink: '',
defaultJsonValidationOption: '',
defaultSpec: '',
description: '',
descriptiveName: '',
docMarkdown: '',
externalCategory: '',
externalCategorySequence: 0,
externalDocHtml: '',
externalDocLink: '',
externalDocMarkdown: '',
g3DocLink: '',
iconLink: '',
isDeprecated: false,
name: '',
standaloneExternalDocHtml: '',
status: '',
system: '',
tags: []
},
paramSpecs: {
parameters: [
{
className: '',
collectionElementClassName: '',
config: {
descriptivePhrase: '',
helpText: '',
hideDefaultValue: false,
inputDisplayOption: '',
isHidden: false,
label: '',
parameterNameOption: '',
subSectionLabel: '',
uiPlaceholderText: ''
},
dataType: '',
defaultValue: {},
isDeprecated: false,
isOutput: false,
jsonSchema: '',
key: '',
protoDef: {fullName: '', path: ''},
required: false,
validationRule: {
doubleRange: {max: '', min: ''},
intRange: {max: '', min: ''},
stringRegex: {exclusive: false, regex: ''}
}
}
]
},
stats: {
dimensions: {
clientId: '',
enumFilterType: '',
errorEnumString: '',
retryAttempt: '',
taskName: '',
taskNumber: '',
triggerId: '',
warningEnumString: '',
workflowId: '',
workflowName: ''
},
durationInSeconds: '',
errorRate: '',
qps: '',
warningRate: ''
},
taskType: '',
uiConfig: {taskUiModuleConfigs: [{moduleId: ''}]}
},
taskExecutionStrategy: '',
taskName: '',
taskNumber: '',
taskSpec: '',
taskTemplateName: '',
taskType: ''
}
],
teardown: {
teardownTaskConfigs: [
{
creatorEmail: '',
name: '',
nextTeardownTask: {name: ''},
parameters: {
parameters: [
{
key: '',
value: {
booleanArray: {booleanValues: []},
booleanValue: false,
doubleArray: {doubleValues: []},
doubleValue: '',
intArray: {intValues: []},
intValue: '',
protoArray: {protoValues: [{}]},
protoValue: {},
serializedObjectValue: {objectValue: ''},
stringArray: {stringValues: []},
stringValue: ''
}
}
]
},
properties: {properties: [{key: '', value: {}}]},
teardownTaskImplementationClassName: ''
}
]
},
triggerConfigs: [
{
alertConfig: [
{
aggregationPeriod: '',
alertThreshold: 0,
disableAlert: false,
displayName: '',
durationThreshold: '',
metricType: '',
onlyFinalAttempt: false,
thresholdType: '',
thresholdValue: {absolute: '', percentage: 0}
}
],
cloudSchedulerConfig: {cronTab: '', errorMessage: '', location: '', serviceAccountEmail: ''},
description: '',
errorCatcherId: '',
label: '',
nextTasksExecutionPolicy: '',
position: {},
properties: {},
startTasks: [{}],
triggerId: '',
triggerNumber: '',
triggerType: ''
}
],
triggerConfigsInternal: [
{
alertConfig: [
{
aggregationPeriod: '',
alertDisabled: false,
alertName: '',
clientId: '',
durationThresholdMs: '',
errorEnumList: {},
metricType: '',
numAggregationPeriods: 0,
onlyFinalAttempt: false,
playbookUrl: '',
thresholdType: '',
thresholdValue: {},
warningEnumList: {}
}
],
cloudSchedulerConfig: {cronTab: '', errorMessage: '', location: '', serviceAccountEmail: ''},
description: '',
enabledClients: [],
errorCatcherId: '',
label: '',
nextTasksExecutionPolicy: '',
pauseWorkflowExecutions: false,
position: {},
properties: {},
startTasks: [{}],
triggerCriteria: {condition: '', parameters: {}, triggerCriteriaTaskImplementationClassName: ''},
triggerId: '',
triggerNumber: '',
triggerType: ''
}
],
updateTime: '',
userLabel: ''
}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/v1/:parent/versions';
const options = {
method: 'POST',
headers: {'content-type': 'application/json'},
body: '{"createTime":"","databasePersistencePolicy":"","description":"","errorCatcherConfigs":[{"description":"","errorCatcherId":"","errorCatcherNumber":"","label":"","position":{"x":0,"y":0},"startErrorTasks":[{"condition":"","description":"","displayName":"","taskConfigId":"","taskId":""}]}],"integrationParameters":[{"dataType":"","defaultValue":{"booleanArray":{"booleanValues":[]},"booleanValue":false,"doubleArray":{"doubleValues":[]},"doubleValue":"","intArray":{"intValues":[]},"intValue":"","jsonValue":"","stringArray":{"stringValues":[]},"stringValue":""},"displayName":"","inputOutputType":"","isTransient":false,"jsonSchema":"","key":"","producer":"","searchable":false}],"integrationParametersInternal":{"parameters":[{"attributes":{"dataType":"","defaultValue":{"booleanValue":false,"doubleArray":{"values":[]},"doubleValue":"","intArray":{"values":[]},"intValue":"","protoValue":{},"stringArray":{"values":[]},"stringValue":""},"isRequired":false,"isSearchable":false,"logSettings":{"logFieldName":"","sanitizeOptions":{"isAlreadySanitized":false,"logType":[],"privacy":"","sanitizeType":""},"seedPeriod":"","seedScope":"","shorteningLimits":{"logAction":"","logType":[],"maxArraySize":0,"maxStringLength":0,"shortenerType":""}},"searchable":"","taskVisibility":[]},"children":[],"dataType":"","defaultValue":{"booleanArray":{"booleanValues":[]},"booleanValue":false,"doubleArray":{"doubleValues":[]},"doubleValue":"","intArray":{"intValues":[]},"intValue":"","jsonValue":"","protoArray":{"protoValues":[{}]},"protoValue":{},"serializedObjectValue":{"objectValue":""},"stringArray":{"stringValues":[]},"stringValue":""},"inOutType":"","isTransient":false,"jsonSchema":"","key":"","name":"","producedBy":{"elementIdentifier":"","elementType":""},"producer":"","protoDefName":"","protoDefPath":""}]},"lastModifierEmail":"","lockHolder":"","name":"","origin":"","parentTemplateId":"","runAsServiceAccount":"","snapshotNumber":"","state":"","status":"","taskConfigs":[{"description":"","displayName":"","errorCatcherId":"","externalTaskType":"","failurePolicy":{"intervalTime":"","maxRetries":0,"retryStrategy":""},"jsonValidationOption":"","nextTasks":[{}],"nextTasksExecutionPolicy":"","parameters":{},"position":{},"successPolicy":{"finalState":""},"synchronousCallFailurePolicy":{},"task":"","taskExecutionStrategy":"","taskId":"","taskTemplate":""}],"taskConfigsInternal":[{"alertConfigs":[{"aggregationPeriod":"","alertDisabled":false,"alertName":"","clientId":"","durationThresholdMs":"","errorEnumList":{"enumStrings":[],"filterType":""},"metricType":"","numAggregationPeriods":0,"onlyFinalAttempt":false,"playbookUrl":"","thresholdType":"","thresholdValue":{"absolute":"","percentage":0},"warningEnumList":{}}],"createTime":"","creatorEmail":"","description":"","disableStrictTypeValidation":false,"errorCatcherId":"","externalTaskType":"","failurePolicy":{"intervalInSeconds":"","maxNumRetries":0,"retryStrategy":""},"incomingEdgeCount":0,"jsonValidationOption":"","label":"","lastModifiedTime":"","nextTasks":[{"combinedConditions":[{"conditions":[{"eventPropertyKey":"","operator":"","value":{}}]}],"condition":"","description":"","label":"","taskConfigId":"","taskNumber":""}],"nextTasksExecutionPolicy":"","parameters":{},"position":{"x":0,"y":0},"precondition":"","preconditionLabel":"","rollbackStrategy":{"parameters":{"parameters":[{"dataType":"","key":"","value":{}}]},"rollbackTaskImplementationClassName":"","taskNumbersToRollback":[]},"successPolicy":{"finalState":""},"synchronousCallFailurePolicy":{},"taskEntity":{"disabledForVpcSc":false,"metadata":{"activeTaskName":"","admins":[{"googleGroupEmail":"","userEmail":""}],"category":"","codeSearchLink":"","defaultJsonValidationOption":"","defaultSpec":"","description":"","descriptiveName":"","docMarkdown":"","externalCategory":"","externalCategorySequence":0,"externalDocHtml":"","externalDocLink":"","externalDocMarkdown":"","g3DocLink":"","iconLink":"","isDeprecated":false,"name":"","standaloneExternalDocHtml":"","status":"","system":"","tags":[]},"paramSpecs":{"parameters":[{"className":"","collectionElementClassName":"","config":{"descriptivePhrase":"","helpText":"","hideDefaultValue":false,"inputDisplayOption":"","isHidden":false,"label":"","parameterNameOption":"","subSectionLabel":"","uiPlaceholderText":""},"dataType":"","defaultValue":{},"isDeprecated":false,"isOutput":false,"jsonSchema":"","key":"","protoDef":{"fullName":"","path":""},"required":false,"validationRule":{"doubleRange":{"max":"","min":""},"intRange":{"max":"","min":""},"stringRegex":{"exclusive":false,"regex":""}}}]},"stats":{"dimensions":{"clientId":"","enumFilterType":"","errorEnumString":"","retryAttempt":"","taskName":"","taskNumber":"","triggerId":"","warningEnumString":"","workflowId":"","workflowName":""},"durationInSeconds":"","errorRate":"","qps":"","warningRate":""},"taskType":"","uiConfig":{"taskUiModuleConfigs":[{"moduleId":""}]}},"taskExecutionStrategy":"","taskName":"","taskNumber":"","taskSpec":"","taskTemplateName":"","taskType":""}],"teardown":{"teardownTaskConfigs":[{"creatorEmail":"","name":"","nextTeardownTask":{"name":""},"parameters":{"parameters":[{"key":"","value":{"booleanArray":{"booleanValues":[]},"booleanValue":false,"doubleArray":{"doubleValues":[]},"doubleValue":"","intArray":{"intValues":[]},"intValue":"","protoArray":{"protoValues":[{}]},"protoValue":{},"serializedObjectValue":{"objectValue":""},"stringArray":{"stringValues":[]},"stringValue":""}}]},"properties":{"properties":[{"key":"","value":{}}]},"teardownTaskImplementationClassName":""}]},"triggerConfigs":[{"alertConfig":[{"aggregationPeriod":"","alertThreshold":0,"disableAlert":false,"displayName":"","durationThreshold":"","metricType":"","onlyFinalAttempt":false,"thresholdType":"","thresholdValue":{"absolute":"","percentage":0}}],"cloudSchedulerConfig":{"cronTab":"","errorMessage":"","location":"","serviceAccountEmail":""},"description":"","errorCatcherId":"","label":"","nextTasksExecutionPolicy":"","position":{},"properties":{},"startTasks":[{}],"triggerId":"","triggerNumber":"","triggerType":""}],"triggerConfigsInternal":[{"alertConfig":[{"aggregationPeriod":"","alertDisabled":false,"alertName":"","clientId":"","durationThresholdMs":"","errorEnumList":{},"metricType":"","numAggregationPeriods":0,"onlyFinalAttempt":false,"playbookUrl":"","thresholdType":"","thresholdValue":{},"warningEnumList":{}}],"cloudSchedulerConfig":{"cronTab":"","errorMessage":"","location":"","serviceAccountEmail":""},"description":"","enabledClients":[],"errorCatcherId":"","label":"","nextTasksExecutionPolicy":"","pauseWorkflowExecutions":false,"position":{},"properties":{},"startTasks":[{}],"triggerCriteria":{"condition":"","parameters":{},"triggerCriteriaTaskImplementationClassName":""},"triggerId":"","triggerNumber":"","triggerType":""}],"updateTime":"","userLabel":""}'
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/v1/:parent/versions',
method: 'POST',
headers: {
'content-type': 'application/json'
},
processData: false,
data: '{\n "createTime": "",\n "databasePersistencePolicy": "",\n "description": "",\n "errorCatcherConfigs": [\n {\n "description": "",\n "errorCatcherId": "",\n "errorCatcherNumber": "",\n "label": "",\n "position": {\n "x": 0,\n "y": 0\n },\n "startErrorTasks": [\n {\n "condition": "",\n "description": "",\n "displayName": "",\n "taskConfigId": "",\n "taskId": ""\n }\n ]\n }\n ],\n "integrationParameters": [\n {\n "dataType": "",\n "defaultValue": {\n "booleanArray": {\n "booleanValues": []\n },\n "booleanValue": false,\n "doubleArray": {\n "doubleValues": []\n },\n "doubleValue": "",\n "intArray": {\n "intValues": []\n },\n "intValue": "",\n "jsonValue": "",\n "stringArray": {\n "stringValues": []\n },\n "stringValue": ""\n },\n "displayName": "",\n "inputOutputType": "",\n "isTransient": false,\n "jsonSchema": "",\n "key": "",\n "producer": "",\n "searchable": false\n }\n ],\n "integrationParametersInternal": {\n "parameters": [\n {\n "attributes": {\n "dataType": "",\n "defaultValue": {\n "booleanValue": false,\n "doubleArray": {\n "values": []\n },\n "doubleValue": "",\n "intArray": {\n "values": []\n },\n "intValue": "",\n "protoValue": {},\n "stringArray": {\n "values": []\n },\n "stringValue": ""\n },\n "isRequired": false,\n "isSearchable": false,\n "logSettings": {\n "logFieldName": "",\n "sanitizeOptions": {\n "isAlreadySanitized": false,\n "logType": [],\n "privacy": "",\n "sanitizeType": ""\n },\n "seedPeriod": "",\n "seedScope": "",\n "shorteningLimits": {\n "logAction": "",\n "logType": [],\n "maxArraySize": 0,\n "maxStringLength": 0,\n "shortenerType": ""\n }\n },\n "searchable": "",\n "taskVisibility": []\n },\n "children": [],\n "dataType": "",\n "defaultValue": {\n "booleanArray": {\n "booleanValues": []\n },\n "booleanValue": false,\n "doubleArray": {\n "doubleValues": []\n },\n "doubleValue": "",\n "intArray": {\n "intValues": []\n },\n "intValue": "",\n "jsonValue": "",\n "protoArray": {\n "protoValues": [\n {}\n ]\n },\n "protoValue": {},\n "serializedObjectValue": {\n "objectValue": ""\n },\n "stringArray": {\n "stringValues": []\n },\n "stringValue": ""\n },\n "inOutType": "",\n "isTransient": false,\n "jsonSchema": "",\n "key": "",\n "name": "",\n "producedBy": {\n "elementIdentifier": "",\n "elementType": ""\n },\n "producer": "",\n "protoDefName": "",\n "protoDefPath": ""\n }\n ]\n },\n "lastModifierEmail": "",\n "lockHolder": "",\n "name": "",\n "origin": "",\n "parentTemplateId": "",\n "runAsServiceAccount": "",\n "snapshotNumber": "",\n "state": "",\n "status": "",\n "taskConfigs": [\n {\n "description": "",\n "displayName": "",\n "errorCatcherId": "",\n "externalTaskType": "",\n "failurePolicy": {\n "intervalTime": "",\n "maxRetries": 0,\n "retryStrategy": ""\n },\n "jsonValidationOption": "",\n "nextTasks": [\n {}\n ],\n "nextTasksExecutionPolicy": "",\n "parameters": {},\n "position": {},\n "successPolicy": {\n "finalState": ""\n },\n "synchronousCallFailurePolicy": {},\n "task": "",\n "taskExecutionStrategy": "",\n "taskId": "",\n "taskTemplate": ""\n }\n ],\n "taskConfigsInternal": [\n {\n "alertConfigs": [\n {\n "aggregationPeriod": "",\n "alertDisabled": false,\n "alertName": "",\n "clientId": "",\n "durationThresholdMs": "",\n "errorEnumList": {\n "enumStrings": [],\n "filterType": ""\n },\n "metricType": "",\n "numAggregationPeriods": 0,\n "onlyFinalAttempt": false,\n "playbookUrl": "",\n "thresholdType": "",\n "thresholdValue": {\n "absolute": "",\n "percentage": 0\n },\n "warningEnumList": {}\n }\n ],\n "createTime": "",\n "creatorEmail": "",\n "description": "",\n "disableStrictTypeValidation": false,\n "errorCatcherId": "",\n "externalTaskType": "",\n "failurePolicy": {\n "intervalInSeconds": "",\n "maxNumRetries": 0,\n "retryStrategy": ""\n },\n "incomingEdgeCount": 0,\n "jsonValidationOption": "",\n "label": "",\n "lastModifiedTime": "",\n "nextTasks": [\n {\n "combinedConditions": [\n {\n "conditions": [\n {\n "eventPropertyKey": "",\n "operator": "",\n "value": {}\n }\n ]\n }\n ],\n "condition": "",\n "description": "",\n "label": "",\n "taskConfigId": "",\n "taskNumber": ""\n }\n ],\n "nextTasksExecutionPolicy": "",\n "parameters": {},\n "position": {\n "x": 0,\n "y": 0\n },\n "precondition": "",\n "preconditionLabel": "",\n "rollbackStrategy": {\n "parameters": {\n "parameters": [\n {\n "dataType": "",\n "key": "",\n "value": {}\n }\n ]\n },\n "rollbackTaskImplementationClassName": "",\n "taskNumbersToRollback": []\n },\n "successPolicy": {\n "finalState": ""\n },\n "synchronousCallFailurePolicy": {},\n "taskEntity": {\n "disabledForVpcSc": false,\n "metadata": {\n "activeTaskName": "",\n "admins": [\n {\n "googleGroupEmail": "",\n "userEmail": ""\n }\n ],\n "category": "",\n "codeSearchLink": "",\n "defaultJsonValidationOption": "",\n "defaultSpec": "",\n "description": "",\n "descriptiveName": "",\n "docMarkdown": "",\n "externalCategory": "",\n "externalCategorySequence": 0,\n "externalDocHtml": "",\n "externalDocLink": "",\n "externalDocMarkdown": "",\n "g3DocLink": "",\n "iconLink": "",\n "isDeprecated": false,\n "name": "",\n "standaloneExternalDocHtml": "",\n "status": "",\n "system": "",\n "tags": []\n },\n "paramSpecs": {\n "parameters": [\n {\n "className": "",\n "collectionElementClassName": "",\n "config": {\n "descriptivePhrase": "",\n "helpText": "",\n "hideDefaultValue": false,\n "inputDisplayOption": "",\n "isHidden": false,\n "label": "",\n "parameterNameOption": "",\n "subSectionLabel": "",\n "uiPlaceholderText": ""\n },\n "dataType": "",\n "defaultValue": {},\n "isDeprecated": false,\n "isOutput": false,\n "jsonSchema": "",\n "key": "",\n "protoDef": {\n "fullName": "",\n "path": ""\n },\n "required": false,\n "validationRule": {\n "doubleRange": {\n "max": "",\n "min": ""\n },\n "intRange": {\n "max": "",\n "min": ""\n },\n "stringRegex": {\n "exclusive": false,\n "regex": ""\n }\n }\n }\n ]\n },\n "stats": {\n "dimensions": {\n "clientId": "",\n "enumFilterType": "",\n "errorEnumString": "",\n "retryAttempt": "",\n "taskName": "",\n "taskNumber": "",\n "triggerId": "",\n "warningEnumString": "",\n "workflowId": "",\n "workflowName": ""\n },\n "durationInSeconds": "",\n "errorRate": "",\n "qps": "",\n "warningRate": ""\n },\n "taskType": "",\n "uiConfig": {\n "taskUiModuleConfigs": [\n {\n "moduleId": ""\n }\n ]\n }\n },\n "taskExecutionStrategy": "",\n "taskName": "",\n "taskNumber": "",\n "taskSpec": "",\n "taskTemplateName": "",\n "taskType": ""\n }\n ],\n "teardown": {\n "teardownTaskConfigs": [\n {\n "creatorEmail": "",\n "name": "",\n "nextTeardownTask": {\n "name": ""\n },\n "parameters": {\n "parameters": [\n {\n "key": "",\n "value": {\n "booleanArray": {\n "booleanValues": []\n },\n "booleanValue": false,\n "doubleArray": {\n "doubleValues": []\n },\n "doubleValue": "",\n "intArray": {\n "intValues": []\n },\n "intValue": "",\n "protoArray": {\n "protoValues": [\n {}\n ]\n },\n "protoValue": {},\n "serializedObjectValue": {\n "objectValue": ""\n },\n "stringArray": {\n "stringValues": []\n },\n "stringValue": ""\n }\n }\n ]\n },\n "properties": {\n "properties": [\n {\n "key": "",\n "value": {}\n }\n ]\n },\n "teardownTaskImplementationClassName": ""\n }\n ]\n },\n "triggerConfigs": [\n {\n "alertConfig": [\n {\n "aggregationPeriod": "",\n "alertThreshold": 0,\n "disableAlert": false,\n "displayName": "",\n "durationThreshold": "",\n "metricType": "",\n "onlyFinalAttempt": false,\n "thresholdType": "",\n "thresholdValue": {\n "absolute": "",\n "percentage": 0\n }\n }\n ],\n "cloudSchedulerConfig": {\n "cronTab": "",\n "errorMessage": "",\n "location": "",\n "serviceAccountEmail": ""\n },\n "description": "",\n "errorCatcherId": "",\n "label": "",\n "nextTasksExecutionPolicy": "",\n "position": {},\n "properties": {},\n "startTasks": [\n {}\n ],\n "triggerId": "",\n "triggerNumber": "",\n "triggerType": ""\n }\n ],\n "triggerConfigsInternal": [\n {\n "alertConfig": [\n {\n "aggregationPeriod": "",\n "alertDisabled": false,\n "alertName": "",\n "clientId": "",\n "durationThresholdMs": "",\n "errorEnumList": {},\n "metricType": "",\n "numAggregationPeriods": 0,\n "onlyFinalAttempt": false,\n "playbookUrl": "",\n "thresholdType": "",\n "thresholdValue": {},\n "warningEnumList": {}\n }\n ],\n "cloudSchedulerConfig": {\n "cronTab": "",\n "errorMessage": "",\n "location": "",\n "serviceAccountEmail": ""\n },\n "description": "",\n "enabledClients": [],\n "errorCatcherId": "",\n "label": "",\n "nextTasksExecutionPolicy": "",\n "pauseWorkflowExecutions": false,\n "position": {},\n "properties": {},\n "startTasks": [\n {}\n ],\n "triggerCriteria": {\n "condition": "",\n "parameters": {},\n "triggerCriteriaTaskImplementationClassName": ""\n },\n "triggerId": "",\n "triggerNumber": "",\n "triggerType": ""\n }\n ],\n "updateTime": "",\n "userLabel": ""\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 \"databasePersistencePolicy\": \"\",\n \"description\": \"\",\n \"errorCatcherConfigs\": [\n {\n \"description\": \"\",\n \"errorCatcherId\": \"\",\n \"errorCatcherNumber\": \"\",\n \"label\": \"\",\n \"position\": {\n \"x\": 0,\n \"y\": 0\n },\n \"startErrorTasks\": [\n {\n \"condition\": \"\",\n \"description\": \"\",\n \"displayName\": \"\",\n \"taskConfigId\": \"\",\n \"taskId\": \"\"\n }\n ]\n }\n ],\n \"integrationParameters\": [\n {\n \"dataType\": \"\",\n \"defaultValue\": {\n \"booleanArray\": {\n \"booleanValues\": []\n },\n \"booleanValue\": false,\n \"doubleArray\": {\n \"doubleValues\": []\n },\n \"doubleValue\": \"\",\n \"intArray\": {\n \"intValues\": []\n },\n \"intValue\": \"\",\n \"jsonValue\": \"\",\n \"stringArray\": {\n \"stringValues\": []\n },\n \"stringValue\": \"\"\n },\n \"displayName\": \"\",\n \"inputOutputType\": \"\",\n \"isTransient\": false,\n \"jsonSchema\": \"\",\n \"key\": \"\",\n \"producer\": \"\",\n \"searchable\": false\n }\n ],\n \"integrationParametersInternal\": {\n \"parameters\": [\n {\n \"attributes\": {\n \"dataType\": \"\",\n \"defaultValue\": {\n \"booleanValue\": false,\n \"doubleArray\": {\n \"values\": []\n },\n \"doubleValue\": \"\",\n \"intArray\": {\n \"values\": []\n },\n \"intValue\": \"\",\n \"protoValue\": {},\n \"stringArray\": {\n \"values\": []\n },\n \"stringValue\": \"\"\n },\n \"isRequired\": false,\n \"isSearchable\": false,\n \"logSettings\": {\n \"logFieldName\": \"\",\n \"sanitizeOptions\": {\n \"isAlreadySanitized\": false,\n \"logType\": [],\n \"privacy\": \"\",\n \"sanitizeType\": \"\"\n },\n \"seedPeriod\": \"\",\n \"seedScope\": \"\",\n \"shorteningLimits\": {\n \"logAction\": \"\",\n \"logType\": [],\n \"maxArraySize\": 0,\n \"maxStringLength\": 0,\n \"shortenerType\": \"\"\n }\n },\n \"searchable\": \"\",\n \"taskVisibility\": []\n },\n \"children\": [],\n \"dataType\": \"\",\n \"defaultValue\": {\n \"booleanArray\": {\n \"booleanValues\": []\n },\n \"booleanValue\": false,\n \"doubleArray\": {\n \"doubleValues\": []\n },\n \"doubleValue\": \"\",\n \"intArray\": {\n \"intValues\": []\n },\n \"intValue\": \"\",\n \"jsonValue\": \"\",\n \"protoArray\": {\n \"protoValues\": [\n {}\n ]\n },\n \"protoValue\": {},\n \"serializedObjectValue\": {\n \"objectValue\": \"\"\n },\n \"stringArray\": {\n \"stringValues\": []\n },\n \"stringValue\": \"\"\n },\n \"inOutType\": \"\",\n \"isTransient\": false,\n \"jsonSchema\": \"\",\n \"key\": \"\",\n \"name\": \"\",\n \"producedBy\": {\n \"elementIdentifier\": \"\",\n \"elementType\": \"\"\n },\n \"producer\": \"\",\n \"protoDefName\": \"\",\n \"protoDefPath\": \"\"\n }\n ]\n },\n \"lastModifierEmail\": \"\",\n \"lockHolder\": \"\",\n \"name\": \"\",\n \"origin\": \"\",\n \"parentTemplateId\": \"\",\n \"runAsServiceAccount\": \"\",\n \"snapshotNumber\": \"\",\n \"state\": \"\",\n \"status\": \"\",\n \"taskConfigs\": [\n {\n \"description\": \"\",\n \"displayName\": \"\",\n \"errorCatcherId\": \"\",\n \"externalTaskType\": \"\",\n \"failurePolicy\": {\n \"intervalTime\": \"\",\n \"maxRetries\": 0,\n \"retryStrategy\": \"\"\n },\n \"jsonValidationOption\": \"\",\n \"nextTasks\": [\n {}\n ],\n \"nextTasksExecutionPolicy\": \"\",\n \"parameters\": {},\n \"position\": {},\n \"successPolicy\": {\n \"finalState\": \"\"\n },\n \"synchronousCallFailurePolicy\": {},\n \"task\": \"\",\n \"taskExecutionStrategy\": \"\",\n \"taskId\": \"\",\n \"taskTemplate\": \"\"\n }\n ],\n \"taskConfigsInternal\": [\n {\n \"alertConfigs\": [\n {\n \"aggregationPeriod\": \"\",\n \"alertDisabled\": false,\n \"alertName\": \"\",\n \"clientId\": \"\",\n \"durationThresholdMs\": \"\",\n \"errorEnumList\": {\n \"enumStrings\": [],\n \"filterType\": \"\"\n },\n \"metricType\": \"\",\n \"numAggregationPeriods\": 0,\n \"onlyFinalAttempt\": false,\n \"playbookUrl\": \"\",\n \"thresholdType\": \"\",\n \"thresholdValue\": {\n \"absolute\": \"\",\n \"percentage\": 0\n },\n \"warningEnumList\": {}\n }\n ],\n \"createTime\": \"\",\n \"creatorEmail\": \"\",\n \"description\": \"\",\n \"disableStrictTypeValidation\": false,\n \"errorCatcherId\": \"\",\n \"externalTaskType\": \"\",\n \"failurePolicy\": {\n \"intervalInSeconds\": \"\",\n \"maxNumRetries\": 0,\n \"retryStrategy\": \"\"\n },\n \"incomingEdgeCount\": 0,\n \"jsonValidationOption\": \"\",\n \"label\": \"\",\n \"lastModifiedTime\": \"\",\n \"nextTasks\": [\n {\n \"combinedConditions\": [\n {\n \"conditions\": [\n {\n \"eventPropertyKey\": \"\",\n \"operator\": \"\",\n \"value\": {}\n }\n ]\n }\n ],\n \"condition\": \"\",\n \"description\": \"\",\n \"label\": \"\",\n \"taskConfigId\": \"\",\n \"taskNumber\": \"\"\n }\n ],\n \"nextTasksExecutionPolicy\": \"\",\n \"parameters\": {},\n \"position\": {\n \"x\": 0,\n \"y\": 0\n },\n \"precondition\": \"\",\n \"preconditionLabel\": \"\",\n \"rollbackStrategy\": {\n \"parameters\": {\n \"parameters\": [\n {\n \"dataType\": \"\",\n \"key\": \"\",\n \"value\": {}\n }\n ]\n },\n \"rollbackTaskImplementationClassName\": \"\",\n \"taskNumbersToRollback\": []\n },\n \"successPolicy\": {\n \"finalState\": \"\"\n },\n \"synchronousCallFailurePolicy\": {},\n \"taskEntity\": {\n \"disabledForVpcSc\": false,\n \"metadata\": {\n \"activeTaskName\": \"\",\n \"admins\": [\n {\n \"googleGroupEmail\": \"\",\n \"userEmail\": \"\"\n }\n ],\n \"category\": \"\",\n \"codeSearchLink\": \"\",\n \"defaultJsonValidationOption\": \"\",\n \"defaultSpec\": \"\",\n \"description\": \"\",\n \"descriptiveName\": \"\",\n \"docMarkdown\": \"\",\n \"externalCategory\": \"\",\n \"externalCategorySequence\": 0,\n \"externalDocHtml\": \"\",\n \"externalDocLink\": \"\",\n \"externalDocMarkdown\": \"\",\n \"g3DocLink\": \"\",\n \"iconLink\": \"\",\n \"isDeprecated\": false,\n \"name\": \"\",\n \"standaloneExternalDocHtml\": \"\",\n \"status\": \"\",\n \"system\": \"\",\n \"tags\": []\n },\n \"paramSpecs\": {\n \"parameters\": [\n {\n \"className\": \"\",\n \"collectionElementClassName\": \"\",\n \"config\": {\n \"descriptivePhrase\": \"\",\n \"helpText\": \"\",\n \"hideDefaultValue\": false,\n \"inputDisplayOption\": \"\",\n \"isHidden\": false,\n \"label\": \"\",\n \"parameterNameOption\": \"\",\n \"subSectionLabel\": \"\",\n \"uiPlaceholderText\": \"\"\n },\n \"dataType\": \"\",\n \"defaultValue\": {},\n \"isDeprecated\": false,\n \"isOutput\": false,\n \"jsonSchema\": \"\",\n \"key\": \"\",\n \"protoDef\": {\n \"fullName\": \"\",\n \"path\": \"\"\n },\n \"required\": false,\n \"validationRule\": {\n \"doubleRange\": {\n \"max\": \"\",\n \"min\": \"\"\n },\n \"intRange\": {\n \"max\": \"\",\n \"min\": \"\"\n },\n \"stringRegex\": {\n \"exclusive\": false,\n \"regex\": \"\"\n }\n }\n }\n ]\n },\n \"stats\": {\n \"dimensions\": {\n \"clientId\": \"\",\n \"enumFilterType\": \"\",\n \"errorEnumString\": \"\",\n \"retryAttempt\": \"\",\n \"taskName\": \"\",\n \"taskNumber\": \"\",\n \"triggerId\": \"\",\n \"warningEnumString\": \"\",\n \"workflowId\": \"\",\n \"workflowName\": \"\"\n },\n \"durationInSeconds\": \"\",\n \"errorRate\": \"\",\n \"qps\": \"\",\n \"warningRate\": \"\"\n },\n \"taskType\": \"\",\n \"uiConfig\": {\n \"taskUiModuleConfigs\": [\n {\n \"moduleId\": \"\"\n }\n ]\n }\n },\n \"taskExecutionStrategy\": \"\",\n \"taskName\": \"\",\n \"taskNumber\": \"\",\n \"taskSpec\": \"\",\n \"taskTemplateName\": \"\",\n \"taskType\": \"\"\n }\n ],\n \"teardown\": {\n \"teardownTaskConfigs\": [\n {\n \"creatorEmail\": \"\",\n \"name\": \"\",\n \"nextTeardownTask\": {\n \"name\": \"\"\n },\n \"parameters\": {\n \"parameters\": [\n {\n \"key\": \"\",\n \"value\": {\n \"booleanArray\": {\n \"booleanValues\": []\n },\n \"booleanValue\": false,\n \"doubleArray\": {\n \"doubleValues\": []\n },\n \"doubleValue\": \"\",\n \"intArray\": {\n \"intValues\": []\n },\n \"intValue\": \"\",\n \"protoArray\": {\n \"protoValues\": [\n {}\n ]\n },\n \"protoValue\": {},\n \"serializedObjectValue\": {\n \"objectValue\": \"\"\n },\n \"stringArray\": {\n \"stringValues\": []\n },\n \"stringValue\": \"\"\n }\n }\n ]\n },\n \"properties\": {\n \"properties\": [\n {\n \"key\": \"\",\n \"value\": {}\n }\n ]\n },\n \"teardownTaskImplementationClassName\": \"\"\n }\n ]\n },\n \"triggerConfigs\": [\n {\n \"alertConfig\": [\n {\n \"aggregationPeriod\": \"\",\n \"alertThreshold\": 0,\n \"disableAlert\": false,\n \"displayName\": \"\",\n \"durationThreshold\": \"\",\n \"metricType\": \"\",\n \"onlyFinalAttempt\": false,\n \"thresholdType\": \"\",\n \"thresholdValue\": {\n \"absolute\": \"\",\n \"percentage\": 0\n }\n }\n ],\n \"cloudSchedulerConfig\": {\n \"cronTab\": \"\",\n \"errorMessage\": \"\",\n \"location\": \"\",\n \"serviceAccountEmail\": \"\"\n },\n \"description\": \"\",\n \"errorCatcherId\": \"\",\n \"label\": \"\",\n \"nextTasksExecutionPolicy\": \"\",\n \"position\": {},\n \"properties\": {},\n \"startTasks\": [\n {}\n ],\n \"triggerId\": \"\",\n \"triggerNumber\": \"\",\n \"triggerType\": \"\"\n }\n ],\n \"triggerConfigsInternal\": [\n {\n \"alertConfig\": [\n {\n \"aggregationPeriod\": \"\",\n \"alertDisabled\": false,\n \"alertName\": \"\",\n \"clientId\": \"\",\n \"durationThresholdMs\": \"\",\n \"errorEnumList\": {},\n \"metricType\": \"\",\n \"numAggregationPeriods\": 0,\n \"onlyFinalAttempt\": false,\n \"playbookUrl\": \"\",\n \"thresholdType\": \"\",\n \"thresholdValue\": {},\n \"warningEnumList\": {}\n }\n ],\n \"cloudSchedulerConfig\": {\n \"cronTab\": \"\",\n \"errorMessage\": \"\",\n \"location\": \"\",\n \"serviceAccountEmail\": \"\"\n },\n \"description\": \"\",\n \"enabledClients\": [],\n \"errorCatcherId\": \"\",\n \"label\": \"\",\n \"nextTasksExecutionPolicy\": \"\",\n \"pauseWorkflowExecutions\": false,\n \"position\": {},\n \"properties\": {},\n \"startTasks\": [\n {}\n ],\n \"triggerCriteria\": {\n \"condition\": \"\",\n \"parameters\": {},\n \"triggerCriteriaTaskImplementationClassName\": \"\"\n },\n \"triggerId\": \"\",\n \"triggerNumber\": \"\",\n \"triggerType\": \"\"\n }\n ],\n \"updateTime\": \"\",\n \"userLabel\": \"\"\n}")
val request = Request.Builder()
.url("{{baseUrl}}/v1/:parent/versions")
.post(body)
.addHeader("content-type", "application/json")
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'POST',
hostname: 'example.com',
port: null,
path: '/baseUrl/v1/:parent/versions',
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: '',
databasePersistencePolicy: '',
description: '',
errorCatcherConfigs: [
{
description: '',
errorCatcherId: '',
errorCatcherNumber: '',
label: '',
position: {x: 0, y: 0},
startErrorTasks: [
{condition: '', description: '', displayName: '', taskConfigId: '', taskId: ''}
]
}
],
integrationParameters: [
{
dataType: '',
defaultValue: {
booleanArray: {booleanValues: []},
booleanValue: false,
doubleArray: {doubleValues: []},
doubleValue: '',
intArray: {intValues: []},
intValue: '',
jsonValue: '',
stringArray: {stringValues: []},
stringValue: ''
},
displayName: '',
inputOutputType: '',
isTransient: false,
jsonSchema: '',
key: '',
producer: '',
searchable: false
}
],
integrationParametersInternal: {
parameters: [
{
attributes: {
dataType: '',
defaultValue: {
booleanValue: false,
doubleArray: {values: []},
doubleValue: '',
intArray: {values: []},
intValue: '',
protoValue: {},
stringArray: {values: []},
stringValue: ''
},
isRequired: false,
isSearchable: false,
logSettings: {
logFieldName: '',
sanitizeOptions: {isAlreadySanitized: false, logType: [], privacy: '', sanitizeType: ''},
seedPeriod: '',
seedScope: '',
shorteningLimits: {
logAction: '',
logType: [],
maxArraySize: 0,
maxStringLength: 0,
shortenerType: ''
}
},
searchable: '',
taskVisibility: []
},
children: [],
dataType: '',
defaultValue: {
booleanArray: {booleanValues: []},
booleanValue: false,
doubleArray: {doubleValues: []},
doubleValue: '',
intArray: {intValues: []},
intValue: '',
jsonValue: '',
protoArray: {protoValues: [{}]},
protoValue: {},
serializedObjectValue: {objectValue: ''},
stringArray: {stringValues: []},
stringValue: ''
},
inOutType: '',
isTransient: false,
jsonSchema: '',
key: '',
name: '',
producedBy: {elementIdentifier: '', elementType: ''},
producer: '',
protoDefName: '',
protoDefPath: ''
}
]
},
lastModifierEmail: '',
lockHolder: '',
name: '',
origin: '',
parentTemplateId: '',
runAsServiceAccount: '',
snapshotNumber: '',
state: '',
status: '',
taskConfigs: [
{
description: '',
displayName: '',
errorCatcherId: '',
externalTaskType: '',
failurePolicy: {intervalTime: '', maxRetries: 0, retryStrategy: ''},
jsonValidationOption: '',
nextTasks: [{}],
nextTasksExecutionPolicy: '',
parameters: {},
position: {},
successPolicy: {finalState: ''},
synchronousCallFailurePolicy: {},
task: '',
taskExecutionStrategy: '',
taskId: '',
taskTemplate: ''
}
],
taskConfigsInternal: [
{
alertConfigs: [
{
aggregationPeriod: '',
alertDisabled: false,
alertName: '',
clientId: '',
durationThresholdMs: '',
errorEnumList: {enumStrings: [], filterType: ''},
metricType: '',
numAggregationPeriods: 0,
onlyFinalAttempt: false,
playbookUrl: '',
thresholdType: '',
thresholdValue: {absolute: '', percentage: 0},
warningEnumList: {}
}
],
createTime: '',
creatorEmail: '',
description: '',
disableStrictTypeValidation: false,
errorCatcherId: '',
externalTaskType: '',
failurePolicy: {intervalInSeconds: '', maxNumRetries: 0, retryStrategy: ''},
incomingEdgeCount: 0,
jsonValidationOption: '',
label: '',
lastModifiedTime: '',
nextTasks: [
{
combinedConditions: [{conditions: [{eventPropertyKey: '', operator: '', value: {}}]}],
condition: '',
description: '',
label: '',
taskConfigId: '',
taskNumber: ''
}
],
nextTasksExecutionPolicy: '',
parameters: {},
position: {x: 0, y: 0},
precondition: '',
preconditionLabel: '',
rollbackStrategy: {
parameters: {parameters: [{dataType: '', key: '', value: {}}]},
rollbackTaskImplementationClassName: '',
taskNumbersToRollback: []
},
successPolicy: {finalState: ''},
synchronousCallFailurePolicy: {},
taskEntity: {
disabledForVpcSc: false,
metadata: {
activeTaskName: '',
admins: [{googleGroupEmail: '', userEmail: ''}],
category: '',
codeSearchLink: '',
defaultJsonValidationOption: '',
defaultSpec: '',
description: '',
descriptiveName: '',
docMarkdown: '',
externalCategory: '',
externalCategorySequence: 0,
externalDocHtml: '',
externalDocLink: '',
externalDocMarkdown: '',
g3DocLink: '',
iconLink: '',
isDeprecated: false,
name: '',
standaloneExternalDocHtml: '',
status: '',
system: '',
tags: []
},
paramSpecs: {
parameters: [
{
className: '',
collectionElementClassName: '',
config: {
descriptivePhrase: '',
helpText: '',
hideDefaultValue: false,
inputDisplayOption: '',
isHidden: false,
label: '',
parameterNameOption: '',
subSectionLabel: '',
uiPlaceholderText: ''
},
dataType: '',
defaultValue: {},
isDeprecated: false,
isOutput: false,
jsonSchema: '',
key: '',
protoDef: {fullName: '', path: ''},
required: false,
validationRule: {
doubleRange: {max: '', min: ''},
intRange: {max: '', min: ''},
stringRegex: {exclusive: false, regex: ''}
}
}
]
},
stats: {
dimensions: {
clientId: '',
enumFilterType: '',
errorEnumString: '',
retryAttempt: '',
taskName: '',
taskNumber: '',
triggerId: '',
warningEnumString: '',
workflowId: '',
workflowName: ''
},
durationInSeconds: '',
errorRate: '',
qps: '',
warningRate: ''
},
taskType: '',
uiConfig: {taskUiModuleConfigs: [{moduleId: ''}]}
},
taskExecutionStrategy: '',
taskName: '',
taskNumber: '',
taskSpec: '',
taskTemplateName: '',
taskType: ''
}
],
teardown: {
teardownTaskConfigs: [
{
creatorEmail: '',
name: '',
nextTeardownTask: {name: ''},
parameters: {
parameters: [
{
key: '',
value: {
booleanArray: {booleanValues: []},
booleanValue: false,
doubleArray: {doubleValues: []},
doubleValue: '',
intArray: {intValues: []},
intValue: '',
protoArray: {protoValues: [{}]},
protoValue: {},
serializedObjectValue: {objectValue: ''},
stringArray: {stringValues: []},
stringValue: ''
}
}
]
},
properties: {properties: [{key: '', value: {}}]},
teardownTaskImplementationClassName: ''
}
]
},
triggerConfigs: [
{
alertConfig: [
{
aggregationPeriod: '',
alertThreshold: 0,
disableAlert: false,
displayName: '',
durationThreshold: '',
metricType: '',
onlyFinalAttempt: false,
thresholdType: '',
thresholdValue: {absolute: '', percentage: 0}
}
],
cloudSchedulerConfig: {cronTab: '', errorMessage: '', location: '', serviceAccountEmail: ''},
description: '',
errorCatcherId: '',
label: '',
nextTasksExecutionPolicy: '',
position: {},
properties: {},
startTasks: [{}],
triggerId: '',
triggerNumber: '',
triggerType: ''
}
],
triggerConfigsInternal: [
{
alertConfig: [
{
aggregationPeriod: '',
alertDisabled: false,
alertName: '',
clientId: '',
durationThresholdMs: '',
errorEnumList: {},
metricType: '',
numAggregationPeriods: 0,
onlyFinalAttempt: false,
playbookUrl: '',
thresholdType: '',
thresholdValue: {},
warningEnumList: {}
}
],
cloudSchedulerConfig: {cronTab: '', errorMessage: '', location: '', serviceAccountEmail: ''},
description: '',
enabledClients: [],
errorCatcherId: '',
label: '',
nextTasksExecutionPolicy: '',
pauseWorkflowExecutions: false,
position: {},
properties: {},
startTasks: [{}],
triggerCriteria: {condition: '', parameters: {}, triggerCriteriaTaskImplementationClassName: ''},
triggerId: '',
triggerNumber: '',
triggerType: ''
}
],
updateTime: '',
userLabel: ''
}));
req.end();
const request = require('request');
const options = {
method: 'POST',
url: '{{baseUrl}}/v1/:parent/versions',
headers: {'content-type': 'application/json'},
body: {
createTime: '',
databasePersistencePolicy: '',
description: '',
errorCatcherConfigs: [
{
description: '',
errorCatcherId: '',
errorCatcherNumber: '',
label: '',
position: {x: 0, y: 0},
startErrorTasks: [
{condition: '', description: '', displayName: '', taskConfigId: '', taskId: ''}
]
}
],
integrationParameters: [
{
dataType: '',
defaultValue: {
booleanArray: {booleanValues: []},
booleanValue: false,
doubleArray: {doubleValues: []},
doubleValue: '',
intArray: {intValues: []},
intValue: '',
jsonValue: '',
stringArray: {stringValues: []},
stringValue: ''
},
displayName: '',
inputOutputType: '',
isTransient: false,
jsonSchema: '',
key: '',
producer: '',
searchable: false
}
],
integrationParametersInternal: {
parameters: [
{
attributes: {
dataType: '',
defaultValue: {
booleanValue: false,
doubleArray: {values: []},
doubleValue: '',
intArray: {values: []},
intValue: '',
protoValue: {},
stringArray: {values: []},
stringValue: ''
},
isRequired: false,
isSearchable: false,
logSettings: {
logFieldName: '',
sanitizeOptions: {isAlreadySanitized: false, logType: [], privacy: '', sanitizeType: ''},
seedPeriod: '',
seedScope: '',
shorteningLimits: {
logAction: '',
logType: [],
maxArraySize: 0,
maxStringLength: 0,
shortenerType: ''
}
},
searchable: '',
taskVisibility: []
},
children: [],
dataType: '',
defaultValue: {
booleanArray: {booleanValues: []},
booleanValue: false,
doubleArray: {doubleValues: []},
doubleValue: '',
intArray: {intValues: []},
intValue: '',
jsonValue: '',
protoArray: {protoValues: [{}]},
protoValue: {},
serializedObjectValue: {objectValue: ''},
stringArray: {stringValues: []},
stringValue: ''
},
inOutType: '',
isTransient: false,
jsonSchema: '',
key: '',
name: '',
producedBy: {elementIdentifier: '', elementType: ''},
producer: '',
protoDefName: '',
protoDefPath: ''
}
]
},
lastModifierEmail: '',
lockHolder: '',
name: '',
origin: '',
parentTemplateId: '',
runAsServiceAccount: '',
snapshotNumber: '',
state: '',
status: '',
taskConfigs: [
{
description: '',
displayName: '',
errorCatcherId: '',
externalTaskType: '',
failurePolicy: {intervalTime: '', maxRetries: 0, retryStrategy: ''},
jsonValidationOption: '',
nextTasks: [{}],
nextTasksExecutionPolicy: '',
parameters: {},
position: {},
successPolicy: {finalState: ''},
synchronousCallFailurePolicy: {},
task: '',
taskExecutionStrategy: '',
taskId: '',
taskTemplate: ''
}
],
taskConfigsInternal: [
{
alertConfigs: [
{
aggregationPeriod: '',
alertDisabled: false,
alertName: '',
clientId: '',
durationThresholdMs: '',
errorEnumList: {enumStrings: [], filterType: ''},
metricType: '',
numAggregationPeriods: 0,
onlyFinalAttempt: false,
playbookUrl: '',
thresholdType: '',
thresholdValue: {absolute: '', percentage: 0},
warningEnumList: {}
}
],
createTime: '',
creatorEmail: '',
description: '',
disableStrictTypeValidation: false,
errorCatcherId: '',
externalTaskType: '',
failurePolicy: {intervalInSeconds: '', maxNumRetries: 0, retryStrategy: ''},
incomingEdgeCount: 0,
jsonValidationOption: '',
label: '',
lastModifiedTime: '',
nextTasks: [
{
combinedConditions: [{conditions: [{eventPropertyKey: '', operator: '', value: {}}]}],
condition: '',
description: '',
label: '',
taskConfigId: '',
taskNumber: ''
}
],
nextTasksExecutionPolicy: '',
parameters: {},
position: {x: 0, y: 0},
precondition: '',
preconditionLabel: '',
rollbackStrategy: {
parameters: {parameters: [{dataType: '', key: '', value: {}}]},
rollbackTaskImplementationClassName: '',
taskNumbersToRollback: []
},
successPolicy: {finalState: ''},
synchronousCallFailurePolicy: {},
taskEntity: {
disabledForVpcSc: false,
metadata: {
activeTaskName: '',
admins: [{googleGroupEmail: '', userEmail: ''}],
category: '',
codeSearchLink: '',
defaultJsonValidationOption: '',
defaultSpec: '',
description: '',
descriptiveName: '',
docMarkdown: '',
externalCategory: '',
externalCategorySequence: 0,
externalDocHtml: '',
externalDocLink: '',
externalDocMarkdown: '',
g3DocLink: '',
iconLink: '',
isDeprecated: false,
name: '',
standaloneExternalDocHtml: '',
status: '',
system: '',
tags: []
},
paramSpecs: {
parameters: [
{
className: '',
collectionElementClassName: '',
config: {
descriptivePhrase: '',
helpText: '',
hideDefaultValue: false,
inputDisplayOption: '',
isHidden: false,
label: '',
parameterNameOption: '',
subSectionLabel: '',
uiPlaceholderText: ''
},
dataType: '',
defaultValue: {},
isDeprecated: false,
isOutput: false,
jsonSchema: '',
key: '',
protoDef: {fullName: '', path: ''},
required: false,
validationRule: {
doubleRange: {max: '', min: ''},
intRange: {max: '', min: ''},
stringRegex: {exclusive: false, regex: ''}
}
}
]
},
stats: {
dimensions: {
clientId: '',
enumFilterType: '',
errorEnumString: '',
retryAttempt: '',
taskName: '',
taskNumber: '',
triggerId: '',
warningEnumString: '',
workflowId: '',
workflowName: ''
},
durationInSeconds: '',
errorRate: '',
qps: '',
warningRate: ''
},
taskType: '',
uiConfig: {taskUiModuleConfigs: [{moduleId: ''}]}
},
taskExecutionStrategy: '',
taskName: '',
taskNumber: '',
taskSpec: '',
taskTemplateName: '',
taskType: ''
}
],
teardown: {
teardownTaskConfigs: [
{
creatorEmail: '',
name: '',
nextTeardownTask: {name: ''},
parameters: {
parameters: [
{
key: '',
value: {
booleanArray: {booleanValues: []},
booleanValue: false,
doubleArray: {doubleValues: []},
doubleValue: '',
intArray: {intValues: []},
intValue: '',
protoArray: {protoValues: [{}]},
protoValue: {},
serializedObjectValue: {objectValue: ''},
stringArray: {stringValues: []},
stringValue: ''
}
}
]
},
properties: {properties: [{key: '', value: {}}]},
teardownTaskImplementationClassName: ''
}
]
},
triggerConfigs: [
{
alertConfig: [
{
aggregationPeriod: '',
alertThreshold: 0,
disableAlert: false,
displayName: '',
durationThreshold: '',
metricType: '',
onlyFinalAttempt: false,
thresholdType: '',
thresholdValue: {absolute: '', percentage: 0}
}
],
cloudSchedulerConfig: {cronTab: '', errorMessage: '', location: '', serviceAccountEmail: ''},
description: '',
errorCatcherId: '',
label: '',
nextTasksExecutionPolicy: '',
position: {},
properties: {},
startTasks: [{}],
triggerId: '',
triggerNumber: '',
triggerType: ''
}
],
triggerConfigsInternal: [
{
alertConfig: [
{
aggregationPeriod: '',
alertDisabled: false,
alertName: '',
clientId: '',
durationThresholdMs: '',
errorEnumList: {},
metricType: '',
numAggregationPeriods: 0,
onlyFinalAttempt: false,
playbookUrl: '',
thresholdType: '',
thresholdValue: {},
warningEnumList: {}
}
],
cloudSchedulerConfig: {cronTab: '', errorMessage: '', location: '', serviceAccountEmail: ''},
description: '',
enabledClients: [],
errorCatcherId: '',
label: '',
nextTasksExecutionPolicy: '',
pauseWorkflowExecutions: false,
position: {},
properties: {},
startTasks: [{}],
triggerCriteria: {condition: '', parameters: {}, triggerCriteriaTaskImplementationClassName: ''},
triggerId: '',
triggerNumber: '',
triggerType: ''
}
],
updateTime: '',
userLabel: ''
},
json: true
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('POST', '{{baseUrl}}/v1/:parent/versions');
req.headers({
'content-type': 'application/json'
});
req.type('json');
req.send({
createTime: '',
databasePersistencePolicy: '',
description: '',
errorCatcherConfigs: [
{
description: '',
errorCatcherId: '',
errorCatcherNumber: '',
label: '',
position: {
x: 0,
y: 0
},
startErrorTasks: [
{
condition: '',
description: '',
displayName: '',
taskConfigId: '',
taskId: ''
}
]
}
],
integrationParameters: [
{
dataType: '',
defaultValue: {
booleanArray: {
booleanValues: []
},
booleanValue: false,
doubleArray: {
doubleValues: []
},
doubleValue: '',
intArray: {
intValues: []
},
intValue: '',
jsonValue: '',
stringArray: {
stringValues: []
},
stringValue: ''
},
displayName: '',
inputOutputType: '',
isTransient: false,
jsonSchema: '',
key: '',
producer: '',
searchable: false
}
],
integrationParametersInternal: {
parameters: [
{
attributes: {
dataType: '',
defaultValue: {
booleanValue: false,
doubleArray: {
values: []
},
doubleValue: '',
intArray: {
values: []
},
intValue: '',
protoValue: {},
stringArray: {
values: []
},
stringValue: ''
},
isRequired: false,
isSearchable: false,
logSettings: {
logFieldName: '',
sanitizeOptions: {
isAlreadySanitized: false,
logType: [],
privacy: '',
sanitizeType: ''
},
seedPeriod: '',
seedScope: '',
shorteningLimits: {
logAction: '',
logType: [],
maxArraySize: 0,
maxStringLength: 0,
shortenerType: ''
}
},
searchable: '',
taskVisibility: []
},
children: [],
dataType: '',
defaultValue: {
booleanArray: {
booleanValues: []
},
booleanValue: false,
doubleArray: {
doubleValues: []
},
doubleValue: '',
intArray: {
intValues: []
},
intValue: '',
jsonValue: '',
protoArray: {
protoValues: [
{}
]
},
protoValue: {},
serializedObjectValue: {
objectValue: ''
},
stringArray: {
stringValues: []
},
stringValue: ''
},
inOutType: '',
isTransient: false,
jsonSchema: '',
key: '',
name: '',
producedBy: {
elementIdentifier: '',
elementType: ''
},
producer: '',
protoDefName: '',
protoDefPath: ''
}
]
},
lastModifierEmail: '',
lockHolder: '',
name: '',
origin: '',
parentTemplateId: '',
runAsServiceAccount: '',
snapshotNumber: '',
state: '',
status: '',
taskConfigs: [
{
description: '',
displayName: '',
errorCatcherId: '',
externalTaskType: '',
failurePolicy: {
intervalTime: '',
maxRetries: 0,
retryStrategy: ''
},
jsonValidationOption: '',
nextTasks: [
{}
],
nextTasksExecutionPolicy: '',
parameters: {},
position: {},
successPolicy: {
finalState: ''
},
synchronousCallFailurePolicy: {},
task: '',
taskExecutionStrategy: '',
taskId: '',
taskTemplate: ''
}
],
taskConfigsInternal: [
{
alertConfigs: [
{
aggregationPeriod: '',
alertDisabled: false,
alertName: '',
clientId: '',
durationThresholdMs: '',
errorEnumList: {
enumStrings: [],
filterType: ''
},
metricType: '',
numAggregationPeriods: 0,
onlyFinalAttempt: false,
playbookUrl: '',
thresholdType: '',
thresholdValue: {
absolute: '',
percentage: 0
},
warningEnumList: {}
}
],
createTime: '',
creatorEmail: '',
description: '',
disableStrictTypeValidation: false,
errorCatcherId: '',
externalTaskType: '',
failurePolicy: {
intervalInSeconds: '',
maxNumRetries: 0,
retryStrategy: ''
},
incomingEdgeCount: 0,
jsonValidationOption: '',
label: '',
lastModifiedTime: '',
nextTasks: [
{
combinedConditions: [
{
conditions: [
{
eventPropertyKey: '',
operator: '',
value: {}
}
]
}
],
condition: '',
description: '',
label: '',
taskConfigId: '',
taskNumber: ''
}
],
nextTasksExecutionPolicy: '',
parameters: {},
position: {
x: 0,
y: 0
},
precondition: '',
preconditionLabel: '',
rollbackStrategy: {
parameters: {
parameters: [
{
dataType: '',
key: '',
value: {}
}
]
},
rollbackTaskImplementationClassName: '',
taskNumbersToRollback: []
},
successPolicy: {
finalState: ''
},
synchronousCallFailurePolicy: {},
taskEntity: {
disabledForVpcSc: false,
metadata: {
activeTaskName: '',
admins: [
{
googleGroupEmail: '',
userEmail: ''
}
],
category: '',
codeSearchLink: '',
defaultJsonValidationOption: '',
defaultSpec: '',
description: '',
descriptiveName: '',
docMarkdown: '',
externalCategory: '',
externalCategorySequence: 0,
externalDocHtml: '',
externalDocLink: '',
externalDocMarkdown: '',
g3DocLink: '',
iconLink: '',
isDeprecated: false,
name: '',
standaloneExternalDocHtml: '',
status: '',
system: '',
tags: []
},
paramSpecs: {
parameters: [
{
className: '',
collectionElementClassName: '',
config: {
descriptivePhrase: '',
helpText: '',
hideDefaultValue: false,
inputDisplayOption: '',
isHidden: false,
label: '',
parameterNameOption: '',
subSectionLabel: '',
uiPlaceholderText: ''
},
dataType: '',
defaultValue: {},
isDeprecated: false,
isOutput: false,
jsonSchema: '',
key: '',
protoDef: {
fullName: '',
path: ''
},
required: false,
validationRule: {
doubleRange: {
max: '',
min: ''
},
intRange: {
max: '',
min: ''
},
stringRegex: {
exclusive: false,
regex: ''
}
}
}
]
},
stats: {
dimensions: {
clientId: '',
enumFilterType: '',
errorEnumString: '',
retryAttempt: '',
taskName: '',
taskNumber: '',
triggerId: '',
warningEnumString: '',
workflowId: '',
workflowName: ''
},
durationInSeconds: '',
errorRate: '',
qps: '',
warningRate: ''
},
taskType: '',
uiConfig: {
taskUiModuleConfigs: [
{
moduleId: ''
}
]
}
},
taskExecutionStrategy: '',
taskName: '',
taskNumber: '',
taskSpec: '',
taskTemplateName: '',
taskType: ''
}
],
teardown: {
teardownTaskConfigs: [
{
creatorEmail: '',
name: '',
nextTeardownTask: {
name: ''
},
parameters: {
parameters: [
{
key: '',
value: {
booleanArray: {
booleanValues: []
},
booleanValue: false,
doubleArray: {
doubleValues: []
},
doubleValue: '',
intArray: {
intValues: []
},
intValue: '',
protoArray: {
protoValues: [
{}
]
},
protoValue: {},
serializedObjectValue: {
objectValue: ''
},
stringArray: {
stringValues: []
},
stringValue: ''
}
}
]
},
properties: {
properties: [
{
key: '',
value: {}
}
]
},
teardownTaskImplementationClassName: ''
}
]
},
triggerConfigs: [
{
alertConfig: [
{
aggregationPeriod: '',
alertThreshold: 0,
disableAlert: false,
displayName: '',
durationThreshold: '',
metricType: '',
onlyFinalAttempt: false,
thresholdType: '',
thresholdValue: {
absolute: '',
percentage: 0
}
}
],
cloudSchedulerConfig: {
cronTab: '',
errorMessage: '',
location: '',
serviceAccountEmail: ''
},
description: '',
errorCatcherId: '',
label: '',
nextTasksExecutionPolicy: '',
position: {},
properties: {},
startTasks: [
{}
],
triggerId: '',
triggerNumber: '',
triggerType: ''
}
],
triggerConfigsInternal: [
{
alertConfig: [
{
aggregationPeriod: '',
alertDisabled: false,
alertName: '',
clientId: '',
durationThresholdMs: '',
errorEnumList: {},
metricType: '',
numAggregationPeriods: 0,
onlyFinalAttempt: false,
playbookUrl: '',
thresholdType: '',
thresholdValue: {},
warningEnumList: {}
}
],
cloudSchedulerConfig: {
cronTab: '',
errorMessage: '',
location: '',
serviceAccountEmail: ''
},
description: '',
enabledClients: [],
errorCatcherId: '',
label: '',
nextTasksExecutionPolicy: '',
pauseWorkflowExecutions: false,
position: {},
properties: {},
startTasks: [
{}
],
triggerCriteria: {
condition: '',
parameters: {},
triggerCriteriaTaskImplementationClassName: ''
},
triggerId: '',
triggerNumber: '',
triggerType: ''
}
],
updateTime: '',
userLabel: ''
});
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {
method: 'POST',
url: '{{baseUrl}}/v1/:parent/versions',
headers: {'content-type': 'application/json'},
data: {
createTime: '',
databasePersistencePolicy: '',
description: '',
errorCatcherConfigs: [
{
description: '',
errorCatcherId: '',
errorCatcherNumber: '',
label: '',
position: {x: 0, y: 0},
startErrorTasks: [
{condition: '', description: '', displayName: '', taskConfigId: '', taskId: ''}
]
}
],
integrationParameters: [
{
dataType: '',
defaultValue: {
booleanArray: {booleanValues: []},
booleanValue: false,
doubleArray: {doubleValues: []},
doubleValue: '',
intArray: {intValues: []},
intValue: '',
jsonValue: '',
stringArray: {stringValues: []},
stringValue: ''
},
displayName: '',
inputOutputType: '',
isTransient: false,
jsonSchema: '',
key: '',
producer: '',
searchable: false
}
],
integrationParametersInternal: {
parameters: [
{
attributes: {
dataType: '',
defaultValue: {
booleanValue: false,
doubleArray: {values: []},
doubleValue: '',
intArray: {values: []},
intValue: '',
protoValue: {},
stringArray: {values: []},
stringValue: ''
},
isRequired: false,
isSearchable: false,
logSettings: {
logFieldName: '',
sanitizeOptions: {isAlreadySanitized: false, logType: [], privacy: '', sanitizeType: ''},
seedPeriod: '',
seedScope: '',
shorteningLimits: {
logAction: '',
logType: [],
maxArraySize: 0,
maxStringLength: 0,
shortenerType: ''
}
},
searchable: '',
taskVisibility: []
},
children: [],
dataType: '',
defaultValue: {
booleanArray: {booleanValues: []},
booleanValue: false,
doubleArray: {doubleValues: []},
doubleValue: '',
intArray: {intValues: []},
intValue: '',
jsonValue: '',
protoArray: {protoValues: [{}]},
protoValue: {},
serializedObjectValue: {objectValue: ''},
stringArray: {stringValues: []},
stringValue: ''
},
inOutType: '',
isTransient: false,
jsonSchema: '',
key: '',
name: '',
producedBy: {elementIdentifier: '', elementType: ''},
producer: '',
protoDefName: '',
protoDefPath: ''
}
]
},
lastModifierEmail: '',
lockHolder: '',
name: '',
origin: '',
parentTemplateId: '',
runAsServiceAccount: '',
snapshotNumber: '',
state: '',
status: '',
taskConfigs: [
{
description: '',
displayName: '',
errorCatcherId: '',
externalTaskType: '',
failurePolicy: {intervalTime: '', maxRetries: 0, retryStrategy: ''},
jsonValidationOption: '',
nextTasks: [{}],
nextTasksExecutionPolicy: '',
parameters: {},
position: {},
successPolicy: {finalState: ''},
synchronousCallFailurePolicy: {},
task: '',
taskExecutionStrategy: '',
taskId: '',
taskTemplate: ''
}
],
taskConfigsInternal: [
{
alertConfigs: [
{
aggregationPeriod: '',
alertDisabled: false,
alertName: '',
clientId: '',
durationThresholdMs: '',
errorEnumList: {enumStrings: [], filterType: ''},
metricType: '',
numAggregationPeriods: 0,
onlyFinalAttempt: false,
playbookUrl: '',
thresholdType: '',
thresholdValue: {absolute: '', percentage: 0},
warningEnumList: {}
}
],
createTime: '',
creatorEmail: '',
description: '',
disableStrictTypeValidation: false,
errorCatcherId: '',
externalTaskType: '',
failurePolicy: {intervalInSeconds: '', maxNumRetries: 0, retryStrategy: ''},
incomingEdgeCount: 0,
jsonValidationOption: '',
label: '',
lastModifiedTime: '',
nextTasks: [
{
combinedConditions: [{conditions: [{eventPropertyKey: '', operator: '', value: {}}]}],
condition: '',
description: '',
label: '',
taskConfigId: '',
taskNumber: ''
}
],
nextTasksExecutionPolicy: '',
parameters: {},
position: {x: 0, y: 0},
precondition: '',
preconditionLabel: '',
rollbackStrategy: {
parameters: {parameters: [{dataType: '', key: '', value: {}}]},
rollbackTaskImplementationClassName: '',
taskNumbersToRollback: []
},
successPolicy: {finalState: ''},
synchronousCallFailurePolicy: {},
taskEntity: {
disabledForVpcSc: false,
metadata: {
activeTaskName: '',
admins: [{googleGroupEmail: '', userEmail: ''}],
category: '',
codeSearchLink: '',
defaultJsonValidationOption: '',
defaultSpec: '',
description: '',
descriptiveName: '',
docMarkdown: '',
externalCategory: '',
externalCategorySequence: 0,
externalDocHtml: '',
externalDocLink: '',
externalDocMarkdown: '',
g3DocLink: '',
iconLink: '',
isDeprecated: false,
name: '',
standaloneExternalDocHtml: '',
status: '',
system: '',
tags: []
},
paramSpecs: {
parameters: [
{
className: '',
collectionElementClassName: '',
config: {
descriptivePhrase: '',
helpText: '',
hideDefaultValue: false,
inputDisplayOption: '',
isHidden: false,
label: '',
parameterNameOption: '',
subSectionLabel: '',
uiPlaceholderText: ''
},
dataType: '',
defaultValue: {},
isDeprecated: false,
isOutput: false,
jsonSchema: '',
key: '',
protoDef: {fullName: '', path: ''},
required: false,
validationRule: {
doubleRange: {max: '', min: ''},
intRange: {max: '', min: ''},
stringRegex: {exclusive: false, regex: ''}
}
}
]
},
stats: {
dimensions: {
clientId: '',
enumFilterType: '',
errorEnumString: '',
retryAttempt: '',
taskName: '',
taskNumber: '',
triggerId: '',
warningEnumString: '',
workflowId: '',
workflowName: ''
},
durationInSeconds: '',
errorRate: '',
qps: '',
warningRate: ''
},
taskType: '',
uiConfig: {taskUiModuleConfigs: [{moduleId: ''}]}
},
taskExecutionStrategy: '',
taskName: '',
taskNumber: '',
taskSpec: '',
taskTemplateName: '',
taskType: ''
}
],
teardown: {
teardownTaskConfigs: [
{
creatorEmail: '',
name: '',
nextTeardownTask: {name: ''},
parameters: {
parameters: [
{
key: '',
value: {
booleanArray: {booleanValues: []},
booleanValue: false,
doubleArray: {doubleValues: []},
doubleValue: '',
intArray: {intValues: []},
intValue: '',
protoArray: {protoValues: [{}]},
protoValue: {},
serializedObjectValue: {objectValue: ''},
stringArray: {stringValues: []},
stringValue: ''
}
}
]
},
properties: {properties: [{key: '', value: {}}]},
teardownTaskImplementationClassName: ''
}
]
},
triggerConfigs: [
{
alertConfig: [
{
aggregationPeriod: '',
alertThreshold: 0,
disableAlert: false,
displayName: '',
durationThreshold: '',
metricType: '',
onlyFinalAttempt: false,
thresholdType: '',
thresholdValue: {absolute: '', percentage: 0}
}
],
cloudSchedulerConfig: {cronTab: '', errorMessage: '', location: '', serviceAccountEmail: ''},
description: '',
errorCatcherId: '',
label: '',
nextTasksExecutionPolicy: '',
position: {},
properties: {},
startTasks: [{}],
triggerId: '',
triggerNumber: '',
triggerType: ''
}
],
triggerConfigsInternal: [
{
alertConfig: [
{
aggregationPeriod: '',
alertDisabled: false,
alertName: '',
clientId: '',
durationThresholdMs: '',
errorEnumList: {},
metricType: '',
numAggregationPeriods: 0,
onlyFinalAttempt: false,
playbookUrl: '',
thresholdType: '',
thresholdValue: {},
warningEnumList: {}
}
],
cloudSchedulerConfig: {cronTab: '', errorMessage: '', location: '', serviceAccountEmail: ''},
description: '',
enabledClients: [],
errorCatcherId: '',
label: '',
nextTasksExecutionPolicy: '',
pauseWorkflowExecutions: false,
position: {},
properties: {},
startTasks: [{}],
triggerCriteria: {condition: '', parameters: {}, triggerCriteriaTaskImplementationClassName: ''},
triggerId: '',
triggerNumber: '',
triggerType: ''
}
],
updateTime: '',
userLabel: ''
}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/v1/:parent/versions';
const options = {
method: 'POST',
headers: {'content-type': 'application/json'},
body: '{"createTime":"","databasePersistencePolicy":"","description":"","errorCatcherConfigs":[{"description":"","errorCatcherId":"","errorCatcherNumber":"","label":"","position":{"x":0,"y":0},"startErrorTasks":[{"condition":"","description":"","displayName":"","taskConfigId":"","taskId":""}]}],"integrationParameters":[{"dataType":"","defaultValue":{"booleanArray":{"booleanValues":[]},"booleanValue":false,"doubleArray":{"doubleValues":[]},"doubleValue":"","intArray":{"intValues":[]},"intValue":"","jsonValue":"","stringArray":{"stringValues":[]},"stringValue":""},"displayName":"","inputOutputType":"","isTransient":false,"jsonSchema":"","key":"","producer":"","searchable":false}],"integrationParametersInternal":{"parameters":[{"attributes":{"dataType":"","defaultValue":{"booleanValue":false,"doubleArray":{"values":[]},"doubleValue":"","intArray":{"values":[]},"intValue":"","protoValue":{},"stringArray":{"values":[]},"stringValue":""},"isRequired":false,"isSearchable":false,"logSettings":{"logFieldName":"","sanitizeOptions":{"isAlreadySanitized":false,"logType":[],"privacy":"","sanitizeType":""},"seedPeriod":"","seedScope":"","shorteningLimits":{"logAction":"","logType":[],"maxArraySize":0,"maxStringLength":0,"shortenerType":""}},"searchable":"","taskVisibility":[]},"children":[],"dataType":"","defaultValue":{"booleanArray":{"booleanValues":[]},"booleanValue":false,"doubleArray":{"doubleValues":[]},"doubleValue":"","intArray":{"intValues":[]},"intValue":"","jsonValue":"","protoArray":{"protoValues":[{}]},"protoValue":{},"serializedObjectValue":{"objectValue":""},"stringArray":{"stringValues":[]},"stringValue":""},"inOutType":"","isTransient":false,"jsonSchema":"","key":"","name":"","producedBy":{"elementIdentifier":"","elementType":""},"producer":"","protoDefName":"","protoDefPath":""}]},"lastModifierEmail":"","lockHolder":"","name":"","origin":"","parentTemplateId":"","runAsServiceAccount":"","snapshotNumber":"","state":"","status":"","taskConfigs":[{"description":"","displayName":"","errorCatcherId":"","externalTaskType":"","failurePolicy":{"intervalTime":"","maxRetries":0,"retryStrategy":""},"jsonValidationOption":"","nextTasks":[{}],"nextTasksExecutionPolicy":"","parameters":{},"position":{},"successPolicy":{"finalState":""},"synchronousCallFailurePolicy":{},"task":"","taskExecutionStrategy":"","taskId":"","taskTemplate":""}],"taskConfigsInternal":[{"alertConfigs":[{"aggregationPeriod":"","alertDisabled":false,"alertName":"","clientId":"","durationThresholdMs":"","errorEnumList":{"enumStrings":[],"filterType":""},"metricType":"","numAggregationPeriods":0,"onlyFinalAttempt":false,"playbookUrl":"","thresholdType":"","thresholdValue":{"absolute":"","percentage":0},"warningEnumList":{}}],"createTime":"","creatorEmail":"","description":"","disableStrictTypeValidation":false,"errorCatcherId":"","externalTaskType":"","failurePolicy":{"intervalInSeconds":"","maxNumRetries":0,"retryStrategy":""},"incomingEdgeCount":0,"jsonValidationOption":"","label":"","lastModifiedTime":"","nextTasks":[{"combinedConditions":[{"conditions":[{"eventPropertyKey":"","operator":"","value":{}}]}],"condition":"","description":"","label":"","taskConfigId":"","taskNumber":""}],"nextTasksExecutionPolicy":"","parameters":{},"position":{"x":0,"y":0},"precondition":"","preconditionLabel":"","rollbackStrategy":{"parameters":{"parameters":[{"dataType":"","key":"","value":{}}]},"rollbackTaskImplementationClassName":"","taskNumbersToRollback":[]},"successPolicy":{"finalState":""},"synchronousCallFailurePolicy":{},"taskEntity":{"disabledForVpcSc":false,"metadata":{"activeTaskName":"","admins":[{"googleGroupEmail":"","userEmail":""}],"category":"","codeSearchLink":"","defaultJsonValidationOption":"","defaultSpec":"","description":"","descriptiveName":"","docMarkdown":"","externalCategory":"","externalCategorySequence":0,"externalDocHtml":"","externalDocLink":"","externalDocMarkdown":"","g3DocLink":"","iconLink":"","isDeprecated":false,"name":"","standaloneExternalDocHtml":"","status":"","system":"","tags":[]},"paramSpecs":{"parameters":[{"className":"","collectionElementClassName":"","config":{"descriptivePhrase":"","helpText":"","hideDefaultValue":false,"inputDisplayOption":"","isHidden":false,"label":"","parameterNameOption":"","subSectionLabel":"","uiPlaceholderText":""},"dataType":"","defaultValue":{},"isDeprecated":false,"isOutput":false,"jsonSchema":"","key":"","protoDef":{"fullName":"","path":""},"required":false,"validationRule":{"doubleRange":{"max":"","min":""},"intRange":{"max":"","min":""},"stringRegex":{"exclusive":false,"regex":""}}}]},"stats":{"dimensions":{"clientId":"","enumFilterType":"","errorEnumString":"","retryAttempt":"","taskName":"","taskNumber":"","triggerId":"","warningEnumString":"","workflowId":"","workflowName":""},"durationInSeconds":"","errorRate":"","qps":"","warningRate":""},"taskType":"","uiConfig":{"taskUiModuleConfigs":[{"moduleId":""}]}},"taskExecutionStrategy":"","taskName":"","taskNumber":"","taskSpec":"","taskTemplateName":"","taskType":""}],"teardown":{"teardownTaskConfigs":[{"creatorEmail":"","name":"","nextTeardownTask":{"name":""},"parameters":{"parameters":[{"key":"","value":{"booleanArray":{"booleanValues":[]},"booleanValue":false,"doubleArray":{"doubleValues":[]},"doubleValue":"","intArray":{"intValues":[]},"intValue":"","protoArray":{"protoValues":[{}]},"protoValue":{},"serializedObjectValue":{"objectValue":""},"stringArray":{"stringValues":[]},"stringValue":""}}]},"properties":{"properties":[{"key":"","value":{}}]},"teardownTaskImplementationClassName":""}]},"triggerConfigs":[{"alertConfig":[{"aggregationPeriod":"","alertThreshold":0,"disableAlert":false,"displayName":"","durationThreshold":"","metricType":"","onlyFinalAttempt":false,"thresholdType":"","thresholdValue":{"absolute":"","percentage":0}}],"cloudSchedulerConfig":{"cronTab":"","errorMessage":"","location":"","serviceAccountEmail":""},"description":"","errorCatcherId":"","label":"","nextTasksExecutionPolicy":"","position":{},"properties":{},"startTasks":[{}],"triggerId":"","triggerNumber":"","triggerType":""}],"triggerConfigsInternal":[{"alertConfig":[{"aggregationPeriod":"","alertDisabled":false,"alertName":"","clientId":"","durationThresholdMs":"","errorEnumList":{},"metricType":"","numAggregationPeriods":0,"onlyFinalAttempt":false,"playbookUrl":"","thresholdType":"","thresholdValue":{},"warningEnumList":{}}],"cloudSchedulerConfig":{"cronTab":"","errorMessage":"","location":"","serviceAccountEmail":""},"description":"","enabledClients":[],"errorCatcherId":"","label":"","nextTasksExecutionPolicy":"","pauseWorkflowExecutions":false,"position":{},"properties":{},"startTasks":[{}],"triggerCriteria":{"condition":"","parameters":{},"triggerCriteriaTaskImplementationClassName":""},"triggerId":"","triggerNumber":"","triggerType":""}],"updateTime":"","userLabel":""}'
};
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": @"",
@"databasePersistencePolicy": @"",
@"description": @"",
@"errorCatcherConfigs": @[ @{ @"description": @"", @"errorCatcherId": @"", @"errorCatcherNumber": @"", @"label": @"", @"position": @{ @"x": @0, @"y": @0 }, @"startErrorTasks": @[ @{ @"condition": @"", @"description": @"", @"displayName": @"", @"taskConfigId": @"", @"taskId": @"" } ] } ],
@"integrationParameters": @[ @{ @"dataType": @"", @"defaultValue": @{ @"booleanArray": @{ @"booleanValues": @[ ] }, @"booleanValue": @NO, @"doubleArray": @{ @"doubleValues": @[ ] }, @"doubleValue": @"", @"intArray": @{ @"intValues": @[ ] }, @"intValue": @"", @"jsonValue": @"", @"stringArray": @{ @"stringValues": @[ ] }, @"stringValue": @"" }, @"displayName": @"", @"inputOutputType": @"", @"isTransient": @NO, @"jsonSchema": @"", @"key": @"", @"producer": @"", @"searchable": @NO } ],
@"integrationParametersInternal": @{ @"parameters": @[ @{ @"attributes": @{ @"dataType": @"", @"defaultValue": @{ @"booleanValue": @NO, @"doubleArray": @{ @"values": @[ ] }, @"doubleValue": @"", @"intArray": @{ @"values": @[ ] }, @"intValue": @"", @"protoValue": @{ }, @"stringArray": @{ @"values": @[ ] }, @"stringValue": @"" }, @"isRequired": @NO, @"isSearchable": @NO, @"logSettings": @{ @"logFieldName": @"", @"sanitizeOptions": @{ @"isAlreadySanitized": @NO, @"logType": @[ ], @"privacy": @"", @"sanitizeType": @"" }, @"seedPeriod": @"", @"seedScope": @"", @"shorteningLimits": @{ @"logAction": @"", @"logType": @[ ], @"maxArraySize": @0, @"maxStringLength": @0, @"shortenerType": @"" } }, @"searchable": @"", @"taskVisibility": @[ ] }, @"children": @[ ], @"dataType": @"", @"defaultValue": @{ @"booleanArray": @{ @"booleanValues": @[ ] }, @"booleanValue": @NO, @"doubleArray": @{ @"doubleValues": @[ ] }, @"doubleValue": @"", @"intArray": @{ @"intValues": @[ ] }, @"intValue": @"", @"jsonValue": @"", @"protoArray": @{ @"protoValues": @[ @{ } ] }, @"protoValue": @{ }, @"serializedObjectValue": @{ @"objectValue": @"" }, @"stringArray": @{ @"stringValues": @[ ] }, @"stringValue": @"" }, @"inOutType": @"", @"isTransient": @NO, @"jsonSchema": @"", @"key": @"", @"name": @"", @"producedBy": @{ @"elementIdentifier": @"", @"elementType": @"" }, @"producer": @"", @"protoDefName": @"", @"protoDefPath": @"" } ] },
@"lastModifierEmail": @"",
@"lockHolder": @"",
@"name": @"",
@"origin": @"",
@"parentTemplateId": @"",
@"runAsServiceAccount": @"",
@"snapshotNumber": @"",
@"state": @"",
@"status": @"",
@"taskConfigs": @[ @{ @"description": @"", @"displayName": @"", @"errorCatcherId": @"", @"externalTaskType": @"", @"failurePolicy": @{ @"intervalTime": @"", @"maxRetries": @0, @"retryStrategy": @"" }, @"jsonValidationOption": @"", @"nextTasks": @[ @{ } ], @"nextTasksExecutionPolicy": @"", @"parameters": @{ }, @"position": @{ }, @"successPolicy": @{ @"finalState": @"" }, @"synchronousCallFailurePolicy": @{ }, @"task": @"", @"taskExecutionStrategy": @"", @"taskId": @"", @"taskTemplate": @"" } ],
@"taskConfigsInternal": @[ @{ @"alertConfigs": @[ @{ @"aggregationPeriod": @"", @"alertDisabled": @NO, @"alertName": @"", @"clientId": @"", @"durationThresholdMs": @"", @"errorEnumList": @{ @"enumStrings": @[ ], @"filterType": @"" }, @"metricType": @"", @"numAggregationPeriods": @0, @"onlyFinalAttempt": @NO, @"playbookUrl": @"", @"thresholdType": @"", @"thresholdValue": @{ @"absolute": @"", @"percentage": @0 }, @"warningEnumList": @{ } } ], @"createTime": @"", @"creatorEmail": @"", @"description": @"", @"disableStrictTypeValidation": @NO, @"errorCatcherId": @"", @"externalTaskType": @"", @"failurePolicy": @{ @"intervalInSeconds": @"", @"maxNumRetries": @0, @"retryStrategy": @"" }, @"incomingEdgeCount": @0, @"jsonValidationOption": @"", @"label": @"", @"lastModifiedTime": @"", @"nextTasks": @[ @{ @"combinedConditions": @[ @{ @"conditions": @[ @{ @"eventPropertyKey": @"", @"operator": @"", @"value": @{ } } ] } ], @"condition": @"", @"description": @"", @"label": @"", @"taskConfigId": @"", @"taskNumber": @"" } ], @"nextTasksExecutionPolicy": @"", @"parameters": @{ }, @"position": @{ @"x": @0, @"y": @0 }, @"precondition": @"", @"preconditionLabel": @"", @"rollbackStrategy": @{ @"parameters": @{ @"parameters": @[ @{ @"dataType": @"", @"key": @"", @"value": @{ } } ] }, @"rollbackTaskImplementationClassName": @"", @"taskNumbersToRollback": @[ ] }, @"successPolicy": @{ @"finalState": @"" }, @"synchronousCallFailurePolicy": @{ }, @"taskEntity": @{ @"disabledForVpcSc": @NO, @"metadata": @{ @"activeTaskName": @"", @"admins": @[ @{ @"googleGroupEmail": @"", @"userEmail": @"" } ], @"category": @"", @"codeSearchLink": @"", @"defaultJsonValidationOption": @"", @"defaultSpec": @"", @"description": @"", @"descriptiveName": @"", @"docMarkdown": @"", @"externalCategory": @"", @"externalCategorySequence": @0, @"externalDocHtml": @"", @"externalDocLink": @"", @"externalDocMarkdown": @"", @"g3DocLink": @"", @"iconLink": @"", @"isDeprecated": @NO, @"name": @"", @"standaloneExternalDocHtml": @"", @"status": @"", @"system": @"", @"tags": @[ ] }, @"paramSpecs": @{ @"parameters": @[ @{ @"className": @"", @"collectionElementClassName": @"", @"config": @{ @"descriptivePhrase": @"", @"helpText": @"", @"hideDefaultValue": @NO, @"inputDisplayOption": @"", @"isHidden": @NO, @"label": @"", @"parameterNameOption": @"", @"subSectionLabel": @"", @"uiPlaceholderText": @"" }, @"dataType": @"", @"defaultValue": @{ }, @"isDeprecated": @NO, @"isOutput": @NO, @"jsonSchema": @"", @"key": @"", @"protoDef": @{ @"fullName": @"", @"path": @"" }, @"required": @NO, @"validationRule": @{ @"doubleRange": @{ @"max": @"", @"min": @"" }, @"intRange": @{ @"max": @"", @"min": @"" }, @"stringRegex": @{ @"exclusive": @NO, @"regex": @"" } } } ] }, @"stats": @{ @"dimensions": @{ @"clientId": @"", @"enumFilterType": @"", @"errorEnumString": @"", @"retryAttempt": @"", @"taskName": @"", @"taskNumber": @"", @"triggerId": @"", @"warningEnumString": @"", @"workflowId": @"", @"workflowName": @"" }, @"durationInSeconds": @"", @"errorRate": @"", @"qps": @"", @"warningRate": @"" }, @"taskType": @"", @"uiConfig": @{ @"taskUiModuleConfigs": @[ @{ @"moduleId": @"" } ] } }, @"taskExecutionStrategy": @"", @"taskName": @"", @"taskNumber": @"", @"taskSpec": @"", @"taskTemplateName": @"", @"taskType": @"" } ],
@"teardown": @{ @"teardownTaskConfigs": @[ @{ @"creatorEmail": @"", @"name": @"", @"nextTeardownTask": @{ @"name": @"" }, @"parameters": @{ @"parameters": @[ @{ @"key": @"", @"value": @{ @"booleanArray": @{ @"booleanValues": @[ ] }, @"booleanValue": @NO, @"doubleArray": @{ @"doubleValues": @[ ] }, @"doubleValue": @"", @"intArray": @{ @"intValues": @[ ] }, @"intValue": @"", @"protoArray": @{ @"protoValues": @[ @{ } ] }, @"protoValue": @{ }, @"serializedObjectValue": @{ @"objectValue": @"" }, @"stringArray": @{ @"stringValues": @[ ] }, @"stringValue": @"" } } ] }, @"properties": @{ @"properties": @[ @{ @"key": @"", @"value": @{ } } ] }, @"teardownTaskImplementationClassName": @"" } ] },
@"triggerConfigs": @[ @{ @"alertConfig": @[ @{ @"aggregationPeriod": @"", @"alertThreshold": @0, @"disableAlert": @NO, @"displayName": @"", @"durationThreshold": @"", @"metricType": @"", @"onlyFinalAttempt": @NO, @"thresholdType": @"", @"thresholdValue": @{ @"absolute": @"", @"percentage": @0 } } ], @"cloudSchedulerConfig": @{ @"cronTab": @"", @"errorMessage": @"", @"location": @"", @"serviceAccountEmail": @"" }, @"description": @"", @"errorCatcherId": @"", @"label": @"", @"nextTasksExecutionPolicy": @"", @"position": @{ }, @"properties": @{ }, @"startTasks": @[ @{ } ], @"triggerId": @"", @"triggerNumber": @"", @"triggerType": @"" } ],
@"triggerConfigsInternal": @[ @{ @"alertConfig": @[ @{ @"aggregationPeriod": @"", @"alertDisabled": @NO, @"alertName": @"", @"clientId": @"", @"durationThresholdMs": @"", @"errorEnumList": @{ }, @"metricType": @"", @"numAggregationPeriods": @0, @"onlyFinalAttempt": @NO, @"playbookUrl": @"", @"thresholdType": @"", @"thresholdValue": @{ }, @"warningEnumList": @{ } } ], @"cloudSchedulerConfig": @{ @"cronTab": @"", @"errorMessage": @"", @"location": @"", @"serviceAccountEmail": @"" }, @"description": @"", @"enabledClients": @[ ], @"errorCatcherId": @"", @"label": @"", @"nextTasksExecutionPolicy": @"", @"pauseWorkflowExecutions": @NO, @"position": @{ }, @"properties": @{ }, @"startTasks": @[ @{ } ], @"triggerCriteria": @{ @"condition": @"", @"parameters": @{ }, @"triggerCriteriaTaskImplementationClassName": @"" }, @"triggerId": @"", @"triggerNumber": @"", @"triggerType": @"" } ],
@"updateTime": @"",
@"userLabel": @"" };
NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/v1/:parent/versions"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"POST"];
[request setAllHTTPHeaderFields:headers];
[request setHTTPBody:postData];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/v1/:parent/versions" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n \"createTime\": \"\",\n \"databasePersistencePolicy\": \"\",\n \"description\": \"\",\n \"errorCatcherConfigs\": [\n {\n \"description\": \"\",\n \"errorCatcherId\": \"\",\n \"errorCatcherNumber\": \"\",\n \"label\": \"\",\n \"position\": {\n \"x\": 0,\n \"y\": 0\n },\n \"startErrorTasks\": [\n {\n \"condition\": \"\",\n \"description\": \"\",\n \"displayName\": \"\",\n \"taskConfigId\": \"\",\n \"taskId\": \"\"\n }\n ]\n }\n ],\n \"integrationParameters\": [\n {\n \"dataType\": \"\",\n \"defaultValue\": {\n \"booleanArray\": {\n \"booleanValues\": []\n },\n \"booleanValue\": false,\n \"doubleArray\": {\n \"doubleValues\": []\n },\n \"doubleValue\": \"\",\n \"intArray\": {\n \"intValues\": []\n },\n \"intValue\": \"\",\n \"jsonValue\": \"\",\n \"stringArray\": {\n \"stringValues\": []\n },\n \"stringValue\": \"\"\n },\n \"displayName\": \"\",\n \"inputOutputType\": \"\",\n \"isTransient\": false,\n \"jsonSchema\": \"\",\n \"key\": \"\",\n \"producer\": \"\",\n \"searchable\": false\n }\n ],\n \"integrationParametersInternal\": {\n \"parameters\": [\n {\n \"attributes\": {\n \"dataType\": \"\",\n \"defaultValue\": {\n \"booleanValue\": false,\n \"doubleArray\": {\n \"values\": []\n },\n \"doubleValue\": \"\",\n \"intArray\": {\n \"values\": []\n },\n \"intValue\": \"\",\n \"protoValue\": {},\n \"stringArray\": {\n \"values\": []\n },\n \"stringValue\": \"\"\n },\n \"isRequired\": false,\n \"isSearchable\": false,\n \"logSettings\": {\n \"logFieldName\": \"\",\n \"sanitizeOptions\": {\n \"isAlreadySanitized\": false,\n \"logType\": [],\n \"privacy\": \"\",\n \"sanitizeType\": \"\"\n },\n \"seedPeriod\": \"\",\n \"seedScope\": \"\",\n \"shorteningLimits\": {\n \"logAction\": \"\",\n \"logType\": [],\n \"maxArraySize\": 0,\n \"maxStringLength\": 0,\n \"shortenerType\": \"\"\n }\n },\n \"searchable\": \"\",\n \"taskVisibility\": []\n },\n \"children\": [],\n \"dataType\": \"\",\n \"defaultValue\": {\n \"booleanArray\": {\n \"booleanValues\": []\n },\n \"booleanValue\": false,\n \"doubleArray\": {\n \"doubleValues\": []\n },\n \"doubleValue\": \"\",\n \"intArray\": {\n \"intValues\": []\n },\n \"intValue\": \"\",\n \"jsonValue\": \"\",\n \"protoArray\": {\n \"protoValues\": [\n {}\n ]\n },\n \"protoValue\": {},\n \"serializedObjectValue\": {\n \"objectValue\": \"\"\n },\n \"stringArray\": {\n \"stringValues\": []\n },\n \"stringValue\": \"\"\n },\n \"inOutType\": \"\",\n \"isTransient\": false,\n \"jsonSchema\": \"\",\n \"key\": \"\",\n \"name\": \"\",\n \"producedBy\": {\n \"elementIdentifier\": \"\",\n \"elementType\": \"\"\n },\n \"producer\": \"\",\n \"protoDefName\": \"\",\n \"protoDefPath\": \"\"\n }\n ]\n },\n \"lastModifierEmail\": \"\",\n \"lockHolder\": \"\",\n \"name\": \"\",\n \"origin\": \"\",\n \"parentTemplateId\": \"\",\n \"runAsServiceAccount\": \"\",\n \"snapshotNumber\": \"\",\n \"state\": \"\",\n \"status\": \"\",\n \"taskConfigs\": [\n {\n \"description\": \"\",\n \"displayName\": \"\",\n \"errorCatcherId\": \"\",\n \"externalTaskType\": \"\",\n \"failurePolicy\": {\n \"intervalTime\": \"\",\n \"maxRetries\": 0,\n \"retryStrategy\": \"\"\n },\n \"jsonValidationOption\": \"\",\n \"nextTasks\": [\n {}\n ],\n \"nextTasksExecutionPolicy\": \"\",\n \"parameters\": {},\n \"position\": {},\n \"successPolicy\": {\n \"finalState\": \"\"\n },\n \"synchronousCallFailurePolicy\": {},\n \"task\": \"\",\n \"taskExecutionStrategy\": \"\",\n \"taskId\": \"\",\n \"taskTemplate\": \"\"\n }\n ],\n \"taskConfigsInternal\": [\n {\n \"alertConfigs\": [\n {\n \"aggregationPeriod\": \"\",\n \"alertDisabled\": false,\n \"alertName\": \"\",\n \"clientId\": \"\",\n \"durationThresholdMs\": \"\",\n \"errorEnumList\": {\n \"enumStrings\": [],\n \"filterType\": \"\"\n },\n \"metricType\": \"\",\n \"numAggregationPeriods\": 0,\n \"onlyFinalAttempt\": false,\n \"playbookUrl\": \"\",\n \"thresholdType\": \"\",\n \"thresholdValue\": {\n \"absolute\": \"\",\n \"percentage\": 0\n },\n \"warningEnumList\": {}\n }\n ],\n \"createTime\": \"\",\n \"creatorEmail\": \"\",\n \"description\": \"\",\n \"disableStrictTypeValidation\": false,\n \"errorCatcherId\": \"\",\n \"externalTaskType\": \"\",\n \"failurePolicy\": {\n \"intervalInSeconds\": \"\",\n \"maxNumRetries\": 0,\n \"retryStrategy\": \"\"\n },\n \"incomingEdgeCount\": 0,\n \"jsonValidationOption\": \"\",\n \"label\": \"\",\n \"lastModifiedTime\": \"\",\n \"nextTasks\": [\n {\n \"combinedConditions\": [\n {\n \"conditions\": [\n {\n \"eventPropertyKey\": \"\",\n \"operator\": \"\",\n \"value\": {}\n }\n ]\n }\n ],\n \"condition\": \"\",\n \"description\": \"\",\n \"label\": \"\",\n \"taskConfigId\": \"\",\n \"taskNumber\": \"\"\n }\n ],\n \"nextTasksExecutionPolicy\": \"\",\n \"parameters\": {},\n \"position\": {\n \"x\": 0,\n \"y\": 0\n },\n \"precondition\": \"\",\n \"preconditionLabel\": \"\",\n \"rollbackStrategy\": {\n \"parameters\": {\n \"parameters\": [\n {\n \"dataType\": \"\",\n \"key\": \"\",\n \"value\": {}\n }\n ]\n },\n \"rollbackTaskImplementationClassName\": \"\",\n \"taskNumbersToRollback\": []\n },\n \"successPolicy\": {\n \"finalState\": \"\"\n },\n \"synchronousCallFailurePolicy\": {},\n \"taskEntity\": {\n \"disabledForVpcSc\": false,\n \"metadata\": {\n \"activeTaskName\": \"\",\n \"admins\": [\n {\n \"googleGroupEmail\": \"\",\n \"userEmail\": \"\"\n }\n ],\n \"category\": \"\",\n \"codeSearchLink\": \"\",\n \"defaultJsonValidationOption\": \"\",\n \"defaultSpec\": \"\",\n \"description\": \"\",\n \"descriptiveName\": \"\",\n \"docMarkdown\": \"\",\n \"externalCategory\": \"\",\n \"externalCategorySequence\": 0,\n \"externalDocHtml\": \"\",\n \"externalDocLink\": \"\",\n \"externalDocMarkdown\": \"\",\n \"g3DocLink\": \"\",\n \"iconLink\": \"\",\n \"isDeprecated\": false,\n \"name\": \"\",\n \"standaloneExternalDocHtml\": \"\",\n \"status\": \"\",\n \"system\": \"\",\n \"tags\": []\n },\n \"paramSpecs\": {\n \"parameters\": [\n {\n \"className\": \"\",\n \"collectionElementClassName\": \"\",\n \"config\": {\n \"descriptivePhrase\": \"\",\n \"helpText\": \"\",\n \"hideDefaultValue\": false,\n \"inputDisplayOption\": \"\",\n \"isHidden\": false,\n \"label\": \"\",\n \"parameterNameOption\": \"\",\n \"subSectionLabel\": \"\",\n \"uiPlaceholderText\": \"\"\n },\n \"dataType\": \"\",\n \"defaultValue\": {},\n \"isDeprecated\": false,\n \"isOutput\": false,\n \"jsonSchema\": \"\",\n \"key\": \"\",\n \"protoDef\": {\n \"fullName\": \"\",\n \"path\": \"\"\n },\n \"required\": false,\n \"validationRule\": {\n \"doubleRange\": {\n \"max\": \"\",\n \"min\": \"\"\n },\n \"intRange\": {\n \"max\": \"\",\n \"min\": \"\"\n },\n \"stringRegex\": {\n \"exclusive\": false,\n \"regex\": \"\"\n }\n }\n }\n ]\n },\n \"stats\": {\n \"dimensions\": {\n \"clientId\": \"\",\n \"enumFilterType\": \"\",\n \"errorEnumString\": \"\",\n \"retryAttempt\": \"\",\n \"taskName\": \"\",\n \"taskNumber\": \"\",\n \"triggerId\": \"\",\n \"warningEnumString\": \"\",\n \"workflowId\": \"\",\n \"workflowName\": \"\"\n },\n \"durationInSeconds\": \"\",\n \"errorRate\": \"\",\n \"qps\": \"\",\n \"warningRate\": \"\"\n },\n \"taskType\": \"\",\n \"uiConfig\": {\n \"taskUiModuleConfigs\": [\n {\n \"moduleId\": \"\"\n }\n ]\n }\n },\n \"taskExecutionStrategy\": \"\",\n \"taskName\": \"\",\n \"taskNumber\": \"\",\n \"taskSpec\": \"\",\n \"taskTemplateName\": \"\",\n \"taskType\": \"\"\n }\n ],\n \"teardown\": {\n \"teardownTaskConfigs\": [\n {\n \"creatorEmail\": \"\",\n \"name\": \"\",\n \"nextTeardownTask\": {\n \"name\": \"\"\n },\n \"parameters\": {\n \"parameters\": [\n {\n \"key\": \"\",\n \"value\": {\n \"booleanArray\": {\n \"booleanValues\": []\n },\n \"booleanValue\": false,\n \"doubleArray\": {\n \"doubleValues\": []\n },\n \"doubleValue\": \"\",\n \"intArray\": {\n \"intValues\": []\n },\n \"intValue\": \"\",\n \"protoArray\": {\n \"protoValues\": [\n {}\n ]\n },\n \"protoValue\": {},\n \"serializedObjectValue\": {\n \"objectValue\": \"\"\n },\n \"stringArray\": {\n \"stringValues\": []\n },\n \"stringValue\": \"\"\n }\n }\n ]\n },\n \"properties\": {\n \"properties\": [\n {\n \"key\": \"\",\n \"value\": {}\n }\n ]\n },\n \"teardownTaskImplementationClassName\": \"\"\n }\n ]\n },\n \"triggerConfigs\": [\n {\n \"alertConfig\": [\n {\n \"aggregationPeriod\": \"\",\n \"alertThreshold\": 0,\n \"disableAlert\": false,\n \"displayName\": \"\",\n \"durationThreshold\": \"\",\n \"metricType\": \"\",\n \"onlyFinalAttempt\": false,\n \"thresholdType\": \"\",\n \"thresholdValue\": {\n \"absolute\": \"\",\n \"percentage\": 0\n }\n }\n ],\n \"cloudSchedulerConfig\": {\n \"cronTab\": \"\",\n \"errorMessage\": \"\",\n \"location\": \"\",\n \"serviceAccountEmail\": \"\"\n },\n \"description\": \"\",\n \"errorCatcherId\": \"\",\n \"label\": \"\",\n \"nextTasksExecutionPolicy\": \"\",\n \"position\": {},\n \"properties\": {},\n \"startTasks\": [\n {}\n ],\n \"triggerId\": \"\",\n \"triggerNumber\": \"\",\n \"triggerType\": \"\"\n }\n ],\n \"triggerConfigsInternal\": [\n {\n \"alertConfig\": [\n {\n \"aggregationPeriod\": \"\",\n \"alertDisabled\": false,\n \"alertName\": \"\",\n \"clientId\": \"\",\n \"durationThresholdMs\": \"\",\n \"errorEnumList\": {},\n \"metricType\": \"\",\n \"numAggregationPeriods\": 0,\n \"onlyFinalAttempt\": false,\n \"playbookUrl\": \"\",\n \"thresholdType\": \"\",\n \"thresholdValue\": {},\n \"warningEnumList\": {}\n }\n ],\n \"cloudSchedulerConfig\": {\n \"cronTab\": \"\",\n \"errorMessage\": \"\",\n \"location\": \"\",\n \"serviceAccountEmail\": \"\"\n },\n \"description\": \"\",\n \"enabledClients\": [],\n \"errorCatcherId\": \"\",\n \"label\": \"\",\n \"nextTasksExecutionPolicy\": \"\",\n \"pauseWorkflowExecutions\": false,\n \"position\": {},\n \"properties\": {},\n \"startTasks\": [\n {}\n ],\n \"triggerCriteria\": {\n \"condition\": \"\",\n \"parameters\": {},\n \"triggerCriteriaTaskImplementationClassName\": \"\"\n },\n \"triggerId\": \"\",\n \"triggerNumber\": \"\",\n \"triggerType\": \"\"\n }\n ],\n \"updateTime\": \"\",\n \"userLabel\": \"\"\n}" in
Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/v1/:parent/versions",
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' => '',
'databasePersistencePolicy' => '',
'description' => '',
'errorCatcherConfigs' => [
[
'description' => '',
'errorCatcherId' => '',
'errorCatcherNumber' => '',
'label' => '',
'position' => [
'x' => 0,
'y' => 0
],
'startErrorTasks' => [
[
'condition' => '',
'description' => '',
'displayName' => '',
'taskConfigId' => '',
'taskId' => ''
]
]
]
],
'integrationParameters' => [
[
'dataType' => '',
'defaultValue' => [
'booleanArray' => [
'booleanValues' => [
]
],
'booleanValue' => null,
'doubleArray' => [
'doubleValues' => [
]
],
'doubleValue' => '',
'intArray' => [
'intValues' => [
]
],
'intValue' => '',
'jsonValue' => '',
'stringArray' => [
'stringValues' => [
]
],
'stringValue' => ''
],
'displayName' => '',
'inputOutputType' => '',
'isTransient' => null,
'jsonSchema' => '',
'key' => '',
'producer' => '',
'searchable' => null
]
],
'integrationParametersInternal' => [
'parameters' => [
[
'attributes' => [
'dataType' => '',
'defaultValue' => [
'booleanValue' => null,
'doubleArray' => [
'values' => [
]
],
'doubleValue' => '',
'intArray' => [
'values' => [
]
],
'intValue' => '',
'protoValue' => [
],
'stringArray' => [
'values' => [
]
],
'stringValue' => ''
],
'isRequired' => null,
'isSearchable' => null,
'logSettings' => [
'logFieldName' => '',
'sanitizeOptions' => [
'isAlreadySanitized' => null,
'logType' => [
],
'privacy' => '',
'sanitizeType' => ''
],
'seedPeriod' => '',
'seedScope' => '',
'shorteningLimits' => [
'logAction' => '',
'logType' => [
],
'maxArraySize' => 0,
'maxStringLength' => 0,
'shortenerType' => ''
]
],
'searchable' => '',
'taskVisibility' => [
]
],
'children' => [
],
'dataType' => '',
'defaultValue' => [
'booleanArray' => [
'booleanValues' => [
]
],
'booleanValue' => null,
'doubleArray' => [
'doubleValues' => [
]
],
'doubleValue' => '',
'intArray' => [
'intValues' => [
]
],
'intValue' => '',
'jsonValue' => '',
'protoArray' => [
'protoValues' => [
[
]
]
],
'protoValue' => [
],
'serializedObjectValue' => [
'objectValue' => ''
],
'stringArray' => [
'stringValues' => [
]
],
'stringValue' => ''
],
'inOutType' => '',
'isTransient' => null,
'jsonSchema' => '',
'key' => '',
'name' => '',
'producedBy' => [
'elementIdentifier' => '',
'elementType' => ''
],
'producer' => '',
'protoDefName' => '',
'protoDefPath' => ''
]
]
],
'lastModifierEmail' => '',
'lockHolder' => '',
'name' => '',
'origin' => '',
'parentTemplateId' => '',
'runAsServiceAccount' => '',
'snapshotNumber' => '',
'state' => '',
'status' => '',
'taskConfigs' => [
[
'description' => '',
'displayName' => '',
'errorCatcherId' => '',
'externalTaskType' => '',
'failurePolicy' => [
'intervalTime' => '',
'maxRetries' => 0,
'retryStrategy' => ''
],
'jsonValidationOption' => '',
'nextTasks' => [
[
]
],
'nextTasksExecutionPolicy' => '',
'parameters' => [
],
'position' => [
],
'successPolicy' => [
'finalState' => ''
],
'synchronousCallFailurePolicy' => [
],
'task' => '',
'taskExecutionStrategy' => '',
'taskId' => '',
'taskTemplate' => ''
]
],
'taskConfigsInternal' => [
[
'alertConfigs' => [
[
'aggregationPeriod' => '',
'alertDisabled' => null,
'alertName' => '',
'clientId' => '',
'durationThresholdMs' => '',
'errorEnumList' => [
'enumStrings' => [
],
'filterType' => ''
],
'metricType' => '',
'numAggregationPeriods' => 0,
'onlyFinalAttempt' => null,
'playbookUrl' => '',
'thresholdType' => '',
'thresholdValue' => [
'absolute' => '',
'percentage' => 0
],
'warningEnumList' => [
]
]
],
'createTime' => '',
'creatorEmail' => '',
'description' => '',
'disableStrictTypeValidation' => null,
'errorCatcherId' => '',
'externalTaskType' => '',
'failurePolicy' => [
'intervalInSeconds' => '',
'maxNumRetries' => 0,
'retryStrategy' => ''
],
'incomingEdgeCount' => 0,
'jsonValidationOption' => '',
'label' => '',
'lastModifiedTime' => '',
'nextTasks' => [
[
'combinedConditions' => [
[
'conditions' => [
[
'eventPropertyKey' => '',
'operator' => '',
'value' => [
]
]
]
]
],
'condition' => '',
'description' => '',
'label' => '',
'taskConfigId' => '',
'taskNumber' => ''
]
],
'nextTasksExecutionPolicy' => '',
'parameters' => [
],
'position' => [
'x' => 0,
'y' => 0
],
'precondition' => '',
'preconditionLabel' => '',
'rollbackStrategy' => [
'parameters' => [
'parameters' => [
[
'dataType' => '',
'key' => '',
'value' => [
]
]
]
],
'rollbackTaskImplementationClassName' => '',
'taskNumbersToRollback' => [
]
],
'successPolicy' => [
'finalState' => ''
],
'synchronousCallFailurePolicy' => [
],
'taskEntity' => [
'disabledForVpcSc' => null,
'metadata' => [
'activeTaskName' => '',
'admins' => [
[
'googleGroupEmail' => '',
'userEmail' => ''
]
],
'category' => '',
'codeSearchLink' => '',
'defaultJsonValidationOption' => '',
'defaultSpec' => '',
'description' => '',
'descriptiveName' => '',
'docMarkdown' => '',
'externalCategory' => '',
'externalCategorySequence' => 0,
'externalDocHtml' => '',
'externalDocLink' => '',
'externalDocMarkdown' => '',
'g3DocLink' => '',
'iconLink' => '',
'isDeprecated' => null,
'name' => '',
'standaloneExternalDocHtml' => '',
'status' => '',
'system' => '',
'tags' => [
]
],
'paramSpecs' => [
'parameters' => [
[
'className' => '',
'collectionElementClassName' => '',
'config' => [
'descriptivePhrase' => '',
'helpText' => '',
'hideDefaultValue' => null,
'inputDisplayOption' => '',
'isHidden' => null,
'label' => '',
'parameterNameOption' => '',
'subSectionLabel' => '',
'uiPlaceholderText' => ''
],
'dataType' => '',
'defaultValue' => [
],
'isDeprecated' => null,
'isOutput' => null,
'jsonSchema' => '',
'key' => '',
'protoDef' => [
'fullName' => '',
'path' => ''
],
'required' => null,
'validationRule' => [
'doubleRange' => [
'max' => '',
'min' => ''
],
'intRange' => [
'max' => '',
'min' => ''
],
'stringRegex' => [
'exclusive' => null,
'regex' => ''
]
]
]
]
],
'stats' => [
'dimensions' => [
'clientId' => '',
'enumFilterType' => '',
'errorEnumString' => '',
'retryAttempt' => '',
'taskName' => '',
'taskNumber' => '',
'triggerId' => '',
'warningEnumString' => '',
'workflowId' => '',
'workflowName' => ''
],
'durationInSeconds' => '',
'errorRate' => '',
'qps' => '',
'warningRate' => ''
],
'taskType' => '',
'uiConfig' => [
'taskUiModuleConfigs' => [
[
'moduleId' => ''
]
]
]
],
'taskExecutionStrategy' => '',
'taskName' => '',
'taskNumber' => '',
'taskSpec' => '',
'taskTemplateName' => '',
'taskType' => ''
]
],
'teardown' => [
'teardownTaskConfigs' => [
[
'creatorEmail' => '',
'name' => '',
'nextTeardownTask' => [
'name' => ''
],
'parameters' => [
'parameters' => [
[
'key' => '',
'value' => [
'booleanArray' => [
'booleanValues' => [
]
],
'booleanValue' => null,
'doubleArray' => [
'doubleValues' => [
]
],
'doubleValue' => '',
'intArray' => [
'intValues' => [
]
],
'intValue' => '',
'protoArray' => [
'protoValues' => [
[
]
]
],
'protoValue' => [
],
'serializedObjectValue' => [
'objectValue' => ''
],
'stringArray' => [
'stringValues' => [
]
],
'stringValue' => ''
]
]
]
],
'properties' => [
'properties' => [
[
'key' => '',
'value' => [
]
]
]
],
'teardownTaskImplementationClassName' => ''
]
]
],
'triggerConfigs' => [
[
'alertConfig' => [
[
'aggregationPeriod' => '',
'alertThreshold' => 0,
'disableAlert' => null,
'displayName' => '',
'durationThreshold' => '',
'metricType' => '',
'onlyFinalAttempt' => null,
'thresholdType' => '',
'thresholdValue' => [
'absolute' => '',
'percentage' => 0
]
]
],
'cloudSchedulerConfig' => [
'cronTab' => '',
'errorMessage' => '',
'location' => '',
'serviceAccountEmail' => ''
],
'description' => '',
'errorCatcherId' => '',
'label' => '',
'nextTasksExecutionPolicy' => '',
'position' => [
],
'properties' => [
],
'startTasks' => [
[
]
],
'triggerId' => '',
'triggerNumber' => '',
'triggerType' => ''
]
],
'triggerConfigsInternal' => [
[
'alertConfig' => [
[
'aggregationPeriod' => '',
'alertDisabled' => null,
'alertName' => '',
'clientId' => '',
'durationThresholdMs' => '',
'errorEnumList' => [
],
'metricType' => '',
'numAggregationPeriods' => 0,
'onlyFinalAttempt' => null,
'playbookUrl' => '',
'thresholdType' => '',
'thresholdValue' => [
],
'warningEnumList' => [
]
]
],
'cloudSchedulerConfig' => [
'cronTab' => '',
'errorMessage' => '',
'location' => '',
'serviceAccountEmail' => ''
],
'description' => '',
'enabledClients' => [
],
'errorCatcherId' => '',
'label' => '',
'nextTasksExecutionPolicy' => '',
'pauseWorkflowExecutions' => null,
'position' => [
],
'properties' => [
],
'startTasks' => [
[
]
],
'triggerCriteria' => [
'condition' => '',
'parameters' => [
],
'triggerCriteriaTaskImplementationClassName' => ''
],
'triggerId' => '',
'triggerNumber' => '',
'triggerType' => ''
]
],
'updateTime' => '',
'userLabel' => ''
]),
CURLOPT_HTTPHEADER => [
"content-type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('POST', '{{baseUrl}}/v1/:parent/versions', [
'body' => '{
"createTime": "",
"databasePersistencePolicy": "",
"description": "",
"errorCatcherConfigs": [
{
"description": "",
"errorCatcherId": "",
"errorCatcherNumber": "",
"label": "",
"position": {
"x": 0,
"y": 0
},
"startErrorTasks": [
{
"condition": "",
"description": "",
"displayName": "",
"taskConfigId": "",
"taskId": ""
}
]
}
],
"integrationParameters": [
{
"dataType": "",
"defaultValue": {
"booleanArray": {
"booleanValues": []
},
"booleanValue": false,
"doubleArray": {
"doubleValues": []
},
"doubleValue": "",
"intArray": {
"intValues": []
},
"intValue": "",
"jsonValue": "",
"stringArray": {
"stringValues": []
},
"stringValue": ""
},
"displayName": "",
"inputOutputType": "",
"isTransient": false,
"jsonSchema": "",
"key": "",
"producer": "",
"searchable": false
}
],
"integrationParametersInternal": {
"parameters": [
{
"attributes": {
"dataType": "",
"defaultValue": {
"booleanValue": false,
"doubleArray": {
"values": []
},
"doubleValue": "",
"intArray": {
"values": []
},
"intValue": "",
"protoValue": {},
"stringArray": {
"values": []
},
"stringValue": ""
},
"isRequired": false,
"isSearchable": false,
"logSettings": {
"logFieldName": "",
"sanitizeOptions": {
"isAlreadySanitized": false,
"logType": [],
"privacy": "",
"sanitizeType": ""
},
"seedPeriod": "",
"seedScope": "",
"shorteningLimits": {
"logAction": "",
"logType": [],
"maxArraySize": 0,
"maxStringLength": 0,
"shortenerType": ""
}
},
"searchable": "",
"taskVisibility": []
},
"children": [],
"dataType": "",
"defaultValue": {
"booleanArray": {
"booleanValues": []
},
"booleanValue": false,
"doubleArray": {
"doubleValues": []
},
"doubleValue": "",
"intArray": {
"intValues": []
},
"intValue": "",
"jsonValue": "",
"protoArray": {
"protoValues": [
{}
]
},
"protoValue": {},
"serializedObjectValue": {
"objectValue": ""
},
"stringArray": {
"stringValues": []
},
"stringValue": ""
},
"inOutType": "",
"isTransient": false,
"jsonSchema": "",
"key": "",
"name": "",
"producedBy": {
"elementIdentifier": "",
"elementType": ""
},
"producer": "",
"protoDefName": "",
"protoDefPath": ""
}
]
},
"lastModifierEmail": "",
"lockHolder": "",
"name": "",
"origin": "",
"parentTemplateId": "",
"runAsServiceAccount": "",
"snapshotNumber": "",
"state": "",
"status": "",
"taskConfigs": [
{
"description": "",
"displayName": "",
"errorCatcherId": "",
"externalTaskType": "",
"failurePolicy": {
"intervalTime": "",
"maxRetries": 0,
"retryStrategy": ""
},
"jsonValidationOption": "",
"nextTasks": [
{}
],
"nextTasksExecutionPolicy": "",
"parameters": {},
"position": {},
"successPolicy": {
"finalState": ""
},
"synchronousCallFailurePolicy": {},
"task": "",
"taskExecutionStrategy": "",
"taskId": "",
"taskTemplate": ""
}
],
"taskConfigsInternal": [
{
"alertConfigs": [
{
"aggregationPeriod": "",
"alertDisabled": false,
"alertName": "",
"clientId": "",
"durationThresholdMs": "",
"errorEnumList": {
"enumStrings": [],
"filterType": ""
},
"metricType": "",
"numAggregationPeriods": 0,
"onlyFinalAttempt": false,
"playbookUrl": "",
"thresholdType": "",
"thresholdValue": {
"absolute": "",
"percentage": 0
},
"warningEnumList": {}
}
],
"createTime": "",
"creatorEmail": "",
"description": "",
"disableStrictTypeValidation": false,
"errorCatcherId": "",
"externalTaskType": "",
"failurePolicy": {
"intervalInSeconds": "",
"maxNumRetries": 0,
"retryStrategy": ""
},
"incomingEdgeCount": 0,
"jsonValidationOption": "",
"label": "",
"lastModifiedTime": "",
"nextTasks": [
{
"combinedConditions": [
{
"conditions": [
{
"eventPropertyKey": "",
"operator": "",
"value": {}
}
]
}
],
"condition": "",
"description": "",
"label": "",
"taskConfigId": "",
"taskNumber": ""
}
],
"nextTasksExecutionPolicy": "",
"parameters": {},
"position": {
"x": 0,
"y": 0
},
"precondition": "",
"preconditionLabel": "",
"rollbackStrategy": {
"parameters": {
"parameters": [
{
"dataType": "",
"key": "",
"value": {}
}
]
},
"rollbackTaskImplementationClassName": "",
"taskNumbersToRollback": []
},
"successPolicy": {
"finalState": ""
},
"synchronousCallFailurePolicy": {},
"taskEntity": {
"disabledForVpcSc": false,
"metadata": {
"activeTaskName": "",
"admins": [
{
"googleGroupEmail": "",
"userEmail": ""
}
],
"category": "",
"codeSearchLink": "",
"defaultJsonValidationOption": "",
"defaultSpec": "",
"description": "",
"descriptiveName": "",
"docMarkdown": "",
"externalCategory": "",
"externalCategorySequence": 0,
"externalDocHtml": "",
"externalDocLink": "",
"externalDocMarkdown": "",
"g3DocLink": "",
"iconLink": "",
"isDeprecated": false,
"name": "",
"standaloneExternalDocHtml": "",
"status": "",
"system": "",
"tags": []
},
"paramSpecs": {
"parameters": [
{
"className": "",
"collectionElementClassName": "",
"config": {
"descriptivePhrase": "",
"helpText": "",
"hideDefaultValue": false,
"inputDisplayOption": "",
"isHidden": false,
"label": "",
"parameterNameOption": "",
"subSectionLabel": "",
"uiPlaceholderText": ""
},
"dataType": "",
"defaultValue": {},
"isDeprecated": false,
"isOutput": false,
"jsonSchema": "",
"key": "",
"protoDef": {
"fullName": "",
"path": ""
},
"required": false,
"validationRule": {
"doubleRange": {
"max": "",
"min": ""
},
"intRange": {
"max": "",
"min": ""
},
"stringRegex": {
"exclusive": false,
"regex": ""
}
}
}
]
},
"stats": {
"dimensions": {
"clientId": "",
"enumFilterType": "",
"errorEnumString": "",
"retryAttempt": "",
"taskName": "",
"taskNumber": "",
"triggerId": "",
"warningEnumString": "",
"workflowId": "",
"workflowName": ""
},
"durationInSeconds": "",
"errorRate": "",
"qps": "",
"warningRate": ""
},
"taskType": "",
"uiConfig": {
"taskUiModuleConfigs": [
{
"moduleId": ""
}
]
}
},
"taskExecutionStrategy": "",
"taskName": "",
"taskNumber": "",
"taskSpec": "",
"taskTemplateName": "",
"taskType": ""
}
],
"teardown": {
"teardownTaskConfigs": [
{
"creatorEmail": "",
"name": "",
"nextTeardownTask": {
"name": ""
},
"parameters": {
"parameters": [
{
"key": "",
"value": {
"booleanArray": {
"booleanValues": []
},
"booleanValue": false,
"doubleArray": {
"doubleValues": []
},
"doubleValue": "",
"intArray": {
"intValues": []
},
"intValue": "",
"protoArray": {
"protoValues": [
{}
]
},
"protoValue": {},
"serializedObjectValue": {
"objectValue": ""
},
"stringArray": {
"stringValues": []
},
"stringValue": ""
}
}
]
},
"properties": {
"properties": [
{
"key": "",
"value": {}
}
]
},
"teardownTaskImplementationClassName": ""
}
]
},
"triggerConfigs": [
{
"alertConfig": [
{
"aggregationPeriod": "",
"alertThreshold": 0,
"disableAlert": false,
"displayName": "",
"durationThreshold": "",
"metricType": "",
"onlyFinalAttempt": false,
"thresholdType": "",
"thresholdValue": {
"absolute": "",
"percentage": 0
}
}
],
"cloudSchedulerConfig": {
"cronTab": "",
"errorMessage": "",
"location": "",
"serviceAccountEmail": ""
},
"description": "",
"errorCatcherId": "",
"label": "",
"nextTasksExecutionPolicy": "",
"position": {},
"properties": {},
"startTasks": [
{}
],
"triggerId": "",
"triggerNumber": "",
"triggerType": ""
}
],
"triggerConfigsInternal": [
{
"alertConfig": [
{
"aggregationPeriod": "",
"alertDisabled": false,
"alertName": "",
"clientId": "",
"durationThresholdMs": "",
"errorEnumList": {},
"metricType": "",
"numAggregationPeriods": 0,
"onlyFinalAttempt": false,
"playbookUrl": "",
"thresholdType": "",
"thresholdValue": {},
"warningEnumList": {}
}
],
"cloudSchedulerConfig": {
"cronTab": "",
"errorMessage": "",
"location": "",
"serviceAccountEmail": ""
},
"description": "",
"enabledClients": [],
"errorCatcherId": "",
"label": "",
"nextTasksExecutionPolicy": "",
"pauseWorkflowExecutions": false,
"position": {},
"properties": {},
"startTasks": [
{}
],
"triggerCriteria": {
"condition": "",
"parameters": {},
"triggerCriteriaTaskImplementationClassName": ""
},
"triggerId": "",
"triggerNumber": "",
"triggerType": ""
}
],
"updateTime": "",
"userLabel": ""
}',
'headers' => [
'content-type' => 'application/json',
],
]);
echo $response->getBody();
setUrl('{{baseUrl}}/v1/:parent/versions');
$request->setMethod(HTTP_METH_POST);
$request->setHeaders([
'content-type' => 'application/json'
]);
$request->setContentType('application/json');
$request->setBody(json_encode([
'createTime' => '',
'databasePersistencePolicy' => '',
'description' => '',
'errorCatcherConfigs' => [
[
'description' => '',
'errorCatcherId' => '',
'errorCatcherNumber' => '',
'label' => '',
'position' => [
'x' => 0,
'y' => 0
],
'startErrorTasks' => [
[
'condition' => '',
'description' => '',
'displayName' => '',
'taskConfigId' => '',
'taskId' => ''
]
]
]
],
'integrationParameters' => [
[
'dataType' => '',
'defaultValue' => [
'booleanArray' => [
'booleanValues' => [
]
],
'booleanValue' => null,
'doubleArray' => [
'doubleValues' => [
]
],
'doubleValue' => '',
'intArray' => [
'intValues' => [
]
],
'intValue' => '',
'jsonValue' => '',
'stringArray' => [
'stringValues' => [
]
],
'stringValue' => ''
],
'displayName' => '',
'inputOutputType' => '',
'isTransient' => null,
'jsonSchema' => '',
'key' => '',
'producer' => '',
'searchable' => null
]
],
'integrationParametersInternal' => [
'parameters' => [
[
'attributes' => [
'dataType' => '',
'defaultValue' => [
'booleanValue' => null,
'doubleArray' => [
'values' => [
]
],
'doubleValue' => '',
'intArray' => [
'values' => [
]
],
'intValue' => '',
'protoValue' => [
],
'stringArray' => [
'values' => [
]
],
'stringValue' => ''
],
'isRequired' => null,
'isSearchable' => null,
'logSettings' => [
'logFieldName' => '',
'sanitizeOptions' => [
'isAlreadySanitized' => null,
'logType' => [
],
'privacy' => '',
'sanitizeType' => ''
],
'seedPeriod' => '',
'seedScope' => '',
'shorteningLimits' => [
'logAction' => '',
'logType' => [
],
'maxArraySize' => 0,
'maxStringLength' => 0,
'shortenerType' => ''
]
],
'searchable' => '',
'taskVisibility' => [
]
],
'children' => [
],
'dataType' => '',
'defaultValue' => [
'booleanArray' => [
'booleanValues' => [
]
],
'booleanValue' => null,
'doubleArray' => [
'doubleValues' => [
]
],
'doubleValue' => '',
'intArray' => [
'intValues' => [
]
],
'intValue' => '',
'jsonValue' => '',
'protoArray' => [
'protoValues' => [
[
]
]
],
'protoValue' => [
],
'serializedObjectValue' => [
'objectValue' => ''
],
'stringArray' => [
'stringValues' => [
]
],
'stringValue' => ''
],
'inOutType' => '',
'isTransient' => null,
'jsonSchema' => '',
'key' => '',
'name' => '',
'producedBy' => [
'elementIdentifier' => '',
'elementType' => ''
],
'producer' => '',
'protoDefName' => '',
'protoDefPath' => ''
]
]
],
'lastModifierEmail' => '',
'lockHolder' => '',
'name' => '',
'origin' => '',
'parentTemplateId' => '',
'runAsServiceAccount' => '',
'snapshotNumber' => '',
'state' => '',
'status' => '',
'taskConfigs' => [
[
'description' => '',
'displayName' => '',
'errorCatcherId' => '',
'externalTaskType' => '',
'failurePolicy' => [
'intervalTime' => '',
'maxRetries' => 0,
'retryStrategy' => ''
],
'jsonValidationOption' => '',
'nextTasks' => [
[
]
],
'nextTasksExecutionPolicy' => '',
'parameters' => [
],
'position' => [
],
'successPolicy' => [
'finalState' => ''
],
'synchronousCallFailurePolicy' => [
],
'task' => '',
'taskExecutionStrategy' => '',
'taskId' => '',
'taskTemplate' => ''
]
],
'taskConfigsInternal' => [
[
'alertConfigs' => [
[
'aggregationPeriod' => '',
'alertDisabled' => null,
'alertName' => '',
'clientId' => '',
'durationThresholdMs' => '',
'errorEnumList' => [
'enumStrings' => [
],
'filterType' => ''
],
'metricType' => '',
'numAggregationPeriods' => 0,
'onlyFinalAttempt' => null,
'playbookUrl' => '',
'thresholdType' => '',
'thresholdValue' => [
'absolute' => '',
'percentage' => 0
],
'warningEnumList' => [
]
]
],
'createTime' => '',
'creatorEmail' => '',
'description' => '',
'disableStrictTypeValidation' => null,
'errorCatcherId' => '',
'externalTaskType' => '',
'failurePolicy' => [
'intervalInSeconds' => '',
'maxNumRetries' => 0,
'retryStrategy' => ''
],
'incomingEdgeCount' => 0,
'jsonValidationOption' => '',
'label' => '',
'lastModifiedTime' => '',
'nextTasks' => [
[
'combinedConditions' => [
[
'conditions' => [
[
'eventPropertyKey' => '',
'operator' => '',
'value' => [
]
]
]
]
],
'condition' => '',
'description' => '',
'label' => '',
'taskConfigId' => '',
'taskNumber' => ''
]
],
'nextTasksExecutionPolicy' => '',
'parameters' => [
],
'position' => [
'x' => 0,
'y' => 0
],
'precondition' => '',
'preconditionLabel' => '',
'rollbackStrategy' => [
'parameters' => [
'parameters' => [
[
'dataType' => '',
'key' => '',
'value' => [
]
]
]
],
'rollbackTaskImplementationClassName' => '',
'taskNumbersToRollback' => [
]
],
'successPolicy' => [
'finalState' => ''
],
'synchronousCallFailurePolicy' => [
],
'taskEntity' => [
'disabledForVpcSc' => null,
'metadata' => [
'activeTaskName' => '',
'admins' => [
[
'googleGroupEmail' => '',
'userEmail' => ''
]
],
'category' => '',
'codeSearchLink' => '',
'defaultJsonValidationOption' => '',
'defaultSpec' => '',
'description' => '',
'descriptiveName' => '',
'docMarkdown' => '',
'externalCategory' => '',
'externalCategorySequence' => 0,
'externalDocHtml' => '',
'externalDocLink' => '',
'externalDocMarkdown' => '',
'g3DocLink' => '',
'iconLink' => '',
'isDeprecated' => null,
'name' => '',
'standaloneExternalDocHtml' => '',
'status' => '',
'system' => '',
'tags' => [
]
],
'paramSpecs' => [
'parameters' => [
[
'className' => '',
'collectionElementClassName' => '',
'config' => [
'descriptivePhrase' => '',
'helpText' => '',
'hideDefaultValue' => null,
'inputDisplayOption' => '',
'isHidden' => null,
'label' => '',
'parameterNameOption' => '',
'subSectionLabel' => '',
'uiPlaceholderText' => ''
],
'dataType' => '',
'defaultValue' => [
],
'isDeprecated' => null,
'isOutput' => null,
'jsonSchema' => '',
'key' => '',
'protoDef' => [
'fullName' => '',
'path' => ''
],
'required' => null,
'validationRule' => [
'doubleRange' => [
'max' => '',
'min' => ''
],
'intRange' => [
'max' => '',
'min' => ''
],
'stringRegex' => [
'exclusive' => null,
'regex' => ''
]
]
]
]
],
'stats' => [
'dimensions' => [
'clientId' => '',
'enumFilterType' => '',
'errorEnumString' => '',
'retryAttempt' => '',
'taskName' => '',
'taskNumber' => '',
'triggerId' => '',
'warningEnumString' => '',
'workflowId' => '',
'workflowName' => ''
],
'durationInSeconds' => '',
'errorRate' => '',
'qps' => '',
'warningRate' => ''
],
'taskType' => '',
'uiConfig' => [
'taskUiModuleConfigs' => [
[
'moduleId' => ''
]
]
]
],
'taskExecutionStrategy' => '',
'taskName' => '',
'taskNumber' => '',
'taskSpec' => '',
'taskTemplateName' => '',
'taskType' => ''
]
],
'teardown' => [
'teardownTaskConfigs' => [
[
'creatorEmail' => '',
'name' => '',
'nextTeardownTask' => [
'name' => ''
],
'parameters' => [
'parameters' => [
[
'key' => '',
'value' => [
'booleanArray' => [
'booleanValues' => [
]
],
'booleanValue' => null,
'doubleArray' => [
'doubleValues' => [
]
],
'doubleValue' => '',
'intArray' => [
'intValues' => [
]
],
'intValue' => '',
'protoArray' => [
'protoValues' => [
[
]
]
],
'protoValue' => [
],
'serializedObjectValue' => [
'objectValue' => ''
],
'stringArray' => [
'stringValues' => [
]
],
'stringValue' => ''
]
]
]
],
'properties' => [
'properties' => [
[
'key' => '',
'value' => [
]
]
]
],
'teardownTaskImplementationClassName' => ''
]
]
],
'triggerConfigs' => [
[
'alertConfig' => [
[
'aggregationPeriod' => '',
'alertThreshold' => 0,
'disableAlert' => null,
'displayName' => '',
'durationThreshold' => '',
'metricType' => '',
'onlyFinalAttempt' => null,
'thresholdType' => '',
'thresholdValue' => [
'absolute' => '',
'percentage' => 0
]
]
],
'cloudSchedulerConfig' => [
'cronTab' => '',
'errorMessage' => '',
'location' => '',
'serviceAccountEmail' => ''
],
'description' => '',
'errorCatcherId' => '',
'label' => '',
'nextTasksExecutionPolicy' => '',
'position' => [
],
'properties' => [
],
'startTasks' => [
[
]
],
'triggerId' => '',
'triggerNumber' => '',
'triggerType' => ''
]
],
'triggerConfigsInternal' => [
[
'alertConfig' => [
[
'aggregationPeriod' => '',
'alertDisabled' => null,
'alertName' => '',
'clientId' => '',
'durationThresholdMs' => '',
'errorEnumList' => [
],
'metricType' => '',
'numAggregationPeriods' => 0,
'onlyFinalAttempt' => null,
'playbookUrl' => '',
'thresholdType' => '',
'thresholdValue' => [
],
'warningEnumList' => [
]
]
],
'cloudSchedulerConfig' => [
'cronTab' => '',
'errorMessage' => '',
'location' => '',
'serviceAccountEmail' => ''
],
'description' => '',
'enabledClients' => [
],
'errorCatcherId' => '',
'label' => '',
'nextTasksExecutionPolicy' => '',
'pauseWorkflowExecutions' => null,
'position' => [
],
'properties' => [
],
'startTasks' => [
[
]
],
'triggerCriteria' => [
'condition' => '',
'parameters' => [
],
'triggerCriteriaTaskImplementationClassName' => ''
],
'triggerId' => '',
'triggerNumber' => '',
'triggerType' => ''
]
],
'updateTime' => '',
'userLabel' => ''
]));
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
append(json_encode([
'createTime' => '',
'databasePersistencePolicy' => '',
'description' => '',
'errorCatcherConfigs' => [
[
'description' => '',
'errorCatcherId' => '',
'errorCatcherNumber' => '',
'label' => '',
'position' => [
'x' => 0,
'y' => 0
],
'startErrorTasks' => [
[
'condition' => '',
'description' => '',
'displayName' => '',
'taskConfigId' => '',
'taskId' => ''
]
]
]
],
'integrationParameters' => [
[
'dataType' => '',
'defaultValue' => [
'booleanArray' => [
'booleanValues' => [
]
],
'booleanValue' => null,
'doubleArray' => [
'doubleValues' => [
]
],
'doubleValue' => '',
'intArray' => [
'intValues' => [
]
],
'intValue' => '',
'jsonValue' => '',
'stringArray' => [
'stringValues' => [
]
],
'stringValue' => ''
],
'displayName' => '',
'inputOutputType' => '',
'isTransient' => null,
'jsonSchema' => '',
'key' => '',
'producer' => '',
'searchable' => null
]
],
'integrationParametersInternal' => [
'parameters' => [
[
'attributes' => [
'dataType' => '',
'defaultValue' => [
'booleanValue' => null,
'doubleArray' => [
'values' => [
]
],
'doubleValue' => '',
'intArray' => [
'values' => [
]
],
'intValue' => '',
'protoValue' => [
],
'stringArray' => [
'values' => [
]
],
'stringValue' => ''
],
'isRequired' => null,
'isSearchable' => null,
'logSettings' => [
'logFieldName' => '',
'sanitizeOptions' => [
'isAlreadySanitized' => null,
'logType' => [
],
'privacy' => '',
'sanitizeType' => ''
],
'seedPeriod' => '',
'seedScope' => '',
'shorteningLimits' => [
'logAction' => '',
'logType' => [
],
'maxArraySize' => 0,
'maxStringLength' => 0,
'shortenerType' => ''
]
],
'searchable' => '',
'taskVisibility' => [
]
],
'children' => [
],
'dataType' => '',
'defaultValue' => [
'booleanArray' => [
'booleanValues' => [
]
],
'booleanValue' => null,
'doubleArray' => [
'doubleValues' => [
]
],
'doubleValue' => '',
'intArray' => [
'intValues' => [
]
],
'intValue' => '',
'jsonValue' => '',
'protoArray' => [
'protoValues' => [
[
]
]
],
'protoValue' => [
],
'serializedObjectValue' => [
'objectValue' => ''
],
'stringArray' => [
'stringValues' => [
]
],
'stringValue' => ''
],
'inOutType' => '',
'isTransient' => null,
'jsonSchema' => '',
'key' => '',
'name' => '',
'producedBy' => [
'elementIdentifier' => '',
'elementType' => ''
],
'producer' => '',
'protoDefName' => '',
'protoDefPath' => ''
]
]
],
'lastModifierEmail' => '',
'lockHolder' => '',
'name' => '',
'origin' => '',
'parentTemplateId' => '',
'runAsServiceAccount' => '',
'snapshotNumber' => '',
'state' => '',
'status' => '',
'taskConfigs' => [
[
'description' => '',
'displayName' => '',
'errorCatcherId' => '',
'externalTaskType' => '',
'failurePolicy' => [
'intervalTime' => '',
'maxRetries' => 0,
'retryStrategy' => ''
],
'jsonValidationOption' => '',
'nextTasks' => [
[
]
],
'nextTasksExecutionPolicy' => '',
'parameters' => [
],
'position' => [
],
'successPolicy' => [
'finalState' => ''
],
'synchronousCallFailurePolicy' => [
],
'task' => '',
'taskExecutionStrategy' => '',
'taskId' => '',
'taskTemplate' => ''
]
],
'taskConfigsInternal' => [
[
'alertConfigs' => [
[
'aggregationPeriod' => '',
'alertDisabled' => null,
'alertName' => '',
'clientId' => '',
'durationThresholdMs' => '',
'errorEnumList' => [
'enumStrings' => [
],
'filterType' => ''
],
'metricType' => '',
'numAggregationPeriods' => 0,
'onlyFinalAttempt' => null,
'playbookUrl' => '',
'thresholdType' => '',
'thresholdValue' => [
'absolute' => '',
'percentage' => 0
],
'warningEnumList' => [
]
]
],
'createTime' => '',
'creatorEmail' => '',
'description' => '',
'disableStrictTypeValidation' => null,
'errorCatcherId' => '',
'externalTaskType' => '',
'failurePolicy' => [
'intervalInSeconds' => '',
'maxNumRetries' => 0,
'retryStrategy' => ''
],
'incomingEdgeCount' => 0,
'jsonValidationOption' => '',
'label' => '',
'lastModifiedTime' => '',
'nextTasks' => [
[
'combinedConditions' => [
[
'conditions' => [
[
'eventPropertyKey' => '',
'operator' => '',
'value' => [
]
]
]
]
],
'condition' => '',
'description' => '',
'label' => '',
'taskConfigId' => '',
'taskNumber' => ''
]
],
'nextTasksExecutionPolicy' => '',
'parameters' => [
],
'position' => [
'x' => 0,
'y' => 0
],
'precondition' => '',
'preconditionLabel' => '',
'rollbackStrategy' => [
'parameters' => [
'parameters' => [
[
'dataType' => '',
'key' => '',
'value' => [
]
]
]
],
'rollbackTaskImplementationClassName' => '',
'taskNumbersToRollback' => [
]
],
'successPolicy' => [
'finalState' => ''
],
'synchronousCallFailurePolicy' => [
],
'taskEntity' => [
'disabledForVpcSc' => null,
'metadata' => [
'activeTaskName' => '',
'admins' => [
[
'googleGroupEmail' => '',
'userEmail' => ''
]
],
'category' => '',
'codeSearchLink' => '',
'defaultJsonValidationOption' => '',
'defaultSpec' => '',
'description' => '',
'descriptiveName' => '',
'docMarkdown' => '',
'externalCategory' => '',
'externalCategorySequence' => 0,
'externalDocHtml' => '',
'externalDocLink' => '',
'externalDocMarkdown' => '',
'g3DocLink' => '',
'iconLink' => '',
'isDeprecated' => null,
'name' => '',
'standaloneExternalDocHtml' => '',
'status' => '',
'system' => '',
'tags' => [
]
],
'paramSpecs' => [
'parameters' => [
[
'className' => '',
'collectionElementClassName' => '',
'config' => [
'descriptivePhrase' => '',
'helpText' => '',
'hideDefaultValue' => null,
'inputDisplayOption' => '',
'isHidden' => null,
'label' => '',
'parameterNameOption' => '',
'subSectionLabel' => '',
'uiPlaceholderText' => ''
],
'dataType' => '',
'defaultValue' => [
],
'isDeprecated' => null,
'isOutput' => null,
'jsonSchema' => '',
'key' => '',
'protoDef' => [
'fullName' => '',
'path' => ''
],
'required' => null,
'validationRule' => [
'doubleRange' => [
'max' => '',
'min' => ''
],
'intRange' => [
'max' => '',
'min' => ''
],
'stringRegex' => [
'exclusive' => null,
'regex' => ''
]
]
]
]
],
'stats' => [
'dimensions' => [
'clientId' => '',
'enumFilterType' => '',
'errorEnumString' => '',
'retryAttempt' => '',
'taskName' => '',
'taskNumber' => '',
'triggerId' => '',
'warningEnumString' => '',
'workflowId' => '',
'workflowName' => ''
],
'durationInSeconds' => '',
'errorRate' => '',
'qps' => '',
'warningRate' => ''
],
'taskType' => '',
'uiConfig' => [
'taskUiModuleConfigs' => [
[
'moduleId' => ''
]
]
]
],
'taskExecutionStrategy' => '',
'taskName' => '',
'taskNumber' => '',
'taskSpec' => '',
'taskTemplateName' => '',
'taskType' => ''
]
],
'teardown' => [
'teardownTaskConfigs' => [
[
'creatorEmail' => '',
'name' => '',
'nextTeardownTask' => [
'name' => ''
],
'parameters' => [
'parameters' => [
[
'key' => '',
'value' => [
'booleanArray' => [
'booleanValues' => [
]
],
'booleanValue' => null,
'doubleArray' => [
'doubleValues' => [
]
],
'doubleValue' => '',
'intArray' => [
'intValues' => [
]
],
'intValue' => '',
'protoArray' => [
'protoValues' => [
[
]
]
],
'protoValue' => [
],
'serializedObjectValue' => [
'objectValue' => ''
],
'stringArray' => [
'stringValues' => [
]
],
'stringValue' => ''
]
]
]
],
'properties' => [
'properties' => [
[
'key' => '',
'value' => [
]
]
]
],
'teardownTaskImplementationClassName' => ''
]
]
],
'triggerConfigs' => [
[
'alertConfig' => [
[
'aggregationPeriod' => '',
'alertThreshold' => 0,
'disableAlert' => null,
'displayName' => '',
'durationThreshold' => '',
'metricType' => '',
'onlyFinalAttempt' => null,
'thresholdType' => '',
'thresholdValue' => [
'absolute' => '',
'percentage' => 0
]
]
],
'cloudSchedulerConfig' => [
'cronTab' => '',
'errorMessage' => '',
'location' => '',
'serviceAccountEmail' => ''
],
'description' => '',
'errorCatcherId' => '',
'label' => '',
'nextTasksExecutionPolicy' => '',
'position' => [
],
'properties' => [
],
'startTasks' => [
[
]
],
'triggerId' => '',
'triggerNumber' => '',
'triggerType' => ''
]
],
'triggerConfigsInternal' => [
[
'alertConfig' => [
[
'aggregationPeriod' => '',
'alertDisabled' => null,
'alertName' => '',
'clientId' => '',
'durationThresholdMs' => '',
'errorEnumList' => [
],
'metricType' => '',
'numAggregationPeriods' => 0,
'onlyFinalAttempt' => null,
'playbookUrl' => '',
'thresholdType' => '',
'thresholdValue' => [
],
'warningEnumList' => [
]
]
],
'cloudSchedulerConfig' => [
'cronTab' => '',
'errorMessage' => '',
'location' => '',
'serviceAccountEmail' => ''
],
'description' => '',
'enabledClients' => [
],
'errorCatcherId' => '',
'label' => '',
'nextTasksExecutionPolicy' => '',
'pauseWorkflowExecutions' => null,
'position' => [
],
'properties' => [
],
'startTasks' => [
[
]
],
'triggerCriteria' => [
'condition' => '',
'parameters' => [
],
'triggerCriteriaTaskImplementationClassName' => ''
],
'triggerId' => '',
'triggerNumber' => '',
'triggerType' => ''
]
],
'updateTime' => '',
'userLabel' => ''
]));
$request->setRequestUrl('{{baseUrl}}/v1/:parent/versions');
$request->setRequestMethod('POST');
$request->setBody($body);
$request->setHeaders([
'content-type' => 'application/json'
]);
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/v1/:parent/versions' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
"createTime": "",
"databasePersistencePolicy": "",
"description": "",
"errorCatcherConfigs": [
{
"description": "",
"errorCatcherId": "",
"errorCatcherNumber": "",
"label": "",
"position": {
"x": 0,
"y": 0
},
"startErrorTasks": [
{
"condition": "",
"description": "",
"displayName": "",
"taskConfigId": "",
"taskId": ""
}
]
}
],
"integrationParameters": [
{
"dataType": "",
"defaultValue": {
"booleanArray": {
"booleanValues": []
},
"booleanValue": false,
"doubleArray": {
"doubleValues": []
},
"doubleValue": "",
"intArray": {
"intValues": []
},
"intValue": "",
"jsonValue": "",
"stringArray": {
"stringValues": []
},
"stringValue": ""
},
"displayName": "",
"inputOutputType": "",
"isTransient": false,
"jsonSchema": "",
"key": "",
"producer": "",
"searchable": false
}
],
"integrationParametersInternal": {
"parameters": [
{
"attributes": {
"dataType": "",
"defaultValue": {
"booleanValue": false,
"doubleArray": {
"values": []
},
"doubleValue": "",
"intArray": {
"values": []
},
"intValue": "",
"protoValue": {},
"stringArray": {
"values": []
},
"stringValue": ""
},
"isRequired": false,
"isSearchable": false,
"logSettings": {
"logFieldName": "",
"sanitizeOptions": {
"isAlreadySanitized": false,
"logType": [],
"privacy": "",
"sanitizeType": ""
},
"seedPeriod": "",
"seedScope": "",
"shorteningLimits": {
"logAction": "",
"logType": [],
"maxArraySize": 0,
"maxStringLength": 0,
"shortenerType": ""
}
},
"searchable": "",
"taskVisibility": []
},
"children": [],
"dataType": "",
"defaultValue": {
"booleanArray": {
"booleanValues": []
},
"booleanValue": false,
"doubleArray": {
"doubleValues": []
},
"doubleValue": "",
"intArray": {
"intValues": []
},
"intValue": "",
"jsonValue": "",
"protoArray": {
"protoValues": [
{}
]
},
"protoValue": {},
"serializedObjectValue": {
"objectValue": ""
},
"stringArray": {
"stringValues": []
},
"stringValue": ""
},
"inOutType": "",
"isTransient": false,
"jsonSchema": "",
"key": "",
"name": "",
"producedBy": {
"elementIdentifier": "",
"elementType": ""
},
"producer": "",
"protoDefName": "",
"protoDefPath": ""
}
]
},
"lastModifierEmail": "",
"lockHolder": "",
"name": "",
"origin": "",
"parentTemplateId": "",
"runAsServiceAccount": "",
"snapshotNumber": "",
"state": "",
"status": "",
"taskConfigs": [
{
"description": "",
"displayName": "",
"errorCatcherId": "",
"externalTaskType": "",
"failurePolicy": {
"intervalTime": "",
"maxRetries": 0,
"retryStrategy": ""
},
"jsonValidationOption": "",
"nextTasks": [
{}
],
"nextTasksExecutionPolicy": "",
"parameters": {},
"position": {},
"successPolicy": {
"finalState": ""
},
"synchronousCallFailurePolicy": {},
"task": "",
"taskExecutionStrategy": "",
"taskId": "",
"taskTemplate": ""
}
],
"taskConfigsInternal": [
{
"alertConfigs": [
{
"aggregationPeriod": "",
"alertDisabled": false,
"alertName": "",
"clientId": "",
"durationThresholdMs": "",
"errorEnumList": {
"enumStrings": [],
"filterType": ""
},
"metricType": "",
"numAggregationPeriods": 0,
"onlyFinalAttempt": false,
"playbookUrl": "",
"thresholdType": "",
"thresholdValue": {
"absolute": "",
"percentage": 0
},
"warningEnumList": {}
}
],
"createTime": "",
"creatorEmail": "",
"description": "",
"disableStrictTypeValidation": false,
"errorCatcherId": "",
"externalTaskType": "",
"failurePolicy": {
"intervalInSeconds": "",
"maxNumRetries": 0,
"retryStrategy": ""
},
"incomingEdgeCount": 0,
"jsonValidationOption": "",
"label": "",
"lastModifiedTime": "",
"nextTasks": [
{
"combinedConditions": [
{
"conditions": [
{
"eventPropertyKey": "",
"operator": "",
"value": {}
}
]
}
],
"condition": "",
"description": "",
"label": "",
"taskConfigId": "",
"taskNumber": ""
}
],
"nextTasksExecutionPolicy": "",
"parameters": {},
"position": {
"x": 0,
"y": 0
},
"precondition": "",
"preconditionLabel": "",
"rollbackStrategy": {
"parameters": {
"parameters": [
{
"dataType": "",
"key": "",
"value": {}
}
]
},
"rollbackTaskImplementationClassName": "",
"taskNumbersToRollback": []
},
"successPolicy": {
"finalState": ""
},
"synchronousCallFailurePolicy": {},
"taskEntity": {
"disabledForVpcSc": false,
"metadata": {
"activeTaskName": "",
"admins": [
{
"googleGroupEmail": "",
"userEmail": ""
}
],
"category": "",
"codeSearchLink": "",
"defaultJsonValidationOption": "",
"defaultSpec": "",
"description": "",
"descriptiveName": "",
"docMarkdown": "",
"externalCategory": "",
"externalCategorySequence": 0,
"externalDocHtml": "",
"externalDocLink": "",
"externalDocMarkdown": "",
"g3DocLink": "",
"iconLink": "",
"isDeprecated": false,
"name": "",
"standaloneExternalDocHtml": "",
"status": "",
"system": "",
"tags": []
},
"paramSpecs": {
"parameters": [
{
"className": "",
"collectionElementClassName": "",
"config": {
"descriptivePhrase": "",
"helpText": "",
"hideDefaultValue": false,
"inputDisplayOption": "",
"isHidden": false,
"label": "",
"parameterNameOption": "",
"subSectionLabel": "",
"uiPlaceholderText": ""
},
"dataType": "",
"defaultValue": {},
"isDeprecated": false,
"isOutput": false,
"jsonSchema": "",
"key": "",
"protoDef": {
"fullName": "",
"path": ""
},
"required": false,
"validationRule": {
"doubleRange": {
"max": "",
"min": ""
},
"intRange": {
"max": "",
"min": ""
},
"stringRegex": {
"exclusive": false,
"regex": ""
}
}
}
]
},
"stats": {
"dimensions": {
"clientId": "",
"enumFilterType": "",
"errorEnumString": "",
"retryAttempt": "",
"taskName": "",
"taskNumber": "",
"triggerId": "",
"warningEnumString": "",
"workflowId": "",
"workflowName": ""
},
"durationInSeconds": "",
"errorRate": "",
"qps": "",
"warningRate": ""
},
"taskType": "",
"uiConfig": {
"taskUiModuleConfigs": [
{
"moduleId": ""
}
]
}
},
"taskExecutionStrategy": "",
"taskName": "",
"taskNumber": "",
"taskSpec": "",
"taskTemplateName": "",
"taskType": ""
}
],
"teardown": {
"teardownTaskConfigs": [
{
"creatorEmail": "",
"name": "",
"nextTeardownTask": {
"name": ""
},
"parameters": {
"parameters": [
{
"key": "",
"value": {
"booleanArray": {
"booleanValues": []
},
"booleanValue": false,
"doubleArray": {
"doubleValues": []
},
"doubleValue": "",
"intArray": {
"intValues": []
},
"intValue": "",
"protoArray": {
"protoValues": [
{}
]
},
"protoValue": {},
"serializedObjectValue": {
"objectValue": ""
},
"stringArray": {
"stringValues": []
},
"stringValue": ""
}
}
]
},
"properties": {
"properties": [
{
"key": "",
"value": {}
}
]
},
"teardownTaskImplementationClassName": ""
}
]
},
"triggerConfigs": [
{
"alertConfig": [
{
"aggregationPeriod": "",
"alertThreshold": 0,
"disableAlert": false,
"displayName": "",
"durationThreshold": "",
"metricType": "",
"onlyFinalAttempt": false,
"thresholdType": "",
"thresholdValue": {
"absolute": "",
"percentage": 0
}
}
],
"cloudSchedulerConfig": {
"cronTab": "",
"errorMessage": "",
"location": "",
"serviceAccountEmail": ""
},
"description": "",
"errorCatcherId": "",
"label": "",
"nextTasksExecutionPolicy": "",
"position": {},
"properties": {},
"startTasks": [
{}
],
"triggerId": "",
"triggerNumber": "",
"triggerType": ""
}
],
"triggerConfigsInternal": [
{
"alertConfig": [
{
"aggregationPeriod": "",
"alertDisabled": false,
"alertName": "",
"clientId": "",
"durationThresholdMs": "",
"errorEnumList": {},
"metricType": "",
"numAggregationPeriods": 0,
"onlyFinalAttempt": false,
"playbookUrl": "",
"thresholdType": "",
"thresholdValue": {},
"warningEnumList": {}
}
],
"cloudSchedulerConfig": {
"cronTab": "",
"errorMessage": "",
"location": "",
"serviceAccountEmail": ""
},
"description": "",
"enabledClients": [],
"errorCatcherId": "",
"label": "",
"nextTasksExecutionPolicy": "",
"pauseWorkflowExecutions": false,
"position": {},
"properties": {},
"startTasks": [
{}
],
"triggerCriteria": {
"condition": "",
"parameters": {},
"triggerCriteriaTaskImplementationClassName": ""
},
"triggerId": "",
"triggerNumber": "",
"triggerType": ""
}
],
"updateTime": "",
"userLabel": ""
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/v1/:parent/versions' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
"createTime": "",
"databasePersistencePolicy": "",
"description": "",
"errorCatcherConfigs": [
{
"description": "",
"errorCatcherId": "",
"errorCatcherNumber": "",
"label": "",
"position": {
"x": 0,
"y": 0
},
"startErrorTasks": [
{
"condition": "",
"description": "",
"displayName": "",
"taskConfigId": "",
"taskId": ""
}
]
}
],
"integrationParameters": [
{
"dataType": "",
"defaultValue": {
"booleanArray": {
"booleanValues": []
},
"booleanValue": false,
"doubleArray": {
"doubleValues": []
},
"doubleValue": "",
"intArray": {
"intValues": []
},
"intValue": "",
"jsonValue": "",
"stringArray": {
"stringValues": []
},
"stringValue": ""
},
"displayName": "",
"inputOutputType": "",
"isTransient": false,
"jsonSchema": "",
"key": "",
"producer": "",
"searchable": false
}
],
"integrationParametersInternal": {
"parameters": [
{
"attributes": {
"dataType": "",
"defaultValue": {
"booleanValue": false,
"doubleArray": {
"values": []
},
"doubleValue": "",
"intArray": {
"values": []
},
"intValue": "",
"protoValue": {},
"stringArray": {
"values": []
},
"stringValue": ""
},
"isRequired": false,
"isSearchable": false,
"logSettings": {
"logFieldName": "",
"sanitizeOptions": {
"isAlreadySanitized": false,
"logType": [],
"privacy": "",
"sanitizeType": ""
},
"seedPeriod": "",
"seedScope": "",
"shorteningLimits": {
"logAction": "",
"logType": [],
"maxArraySize": 0,
"maxStringLength": 0,
"shortenerType": ""
}
},
"searchable": "",
"taskVisibility": []
},
"children": [],
"dataType": "",
"defaultValue": {
"booleanArray": {
"booleanValues": []
},
"booleanValue": false,
"doubleArray": {
"doubleValues": []
},
"doubleValue": "",
"intArray": {
"intValues": []
},
"intValue": "",
"jsonValue": "",
"protoArray": {
"protoValues": [
{}
]
},
"protoValue": {},
"serializedObjectValue": {
"objectValue": ""
},
"stringArray": {
"stringValues": []
},
"stringValue": ""
},
"inOutType": "",
"isTransient": false,
"jsonSchema": "",
"key": "",
"name": "",
"producedBy": {
"elementIdentifier": "",
"elementType": ""
},
"producer": "",
"protoDefName": "",
"protoDefPath": ""
}
]
},
"lastModifierEmail": "",
"lockHolder": "",
"name": "",
"origin": "",
"parentTemplateId": "",
"runAsServiceAccount": "",
"snapshotNumber": "",
"state": "",
"status": "",
"taskConfigs": [
{
"description": "",
"displayName": "",
"errorCatcherId": "",
"externalTaskType": "",
"failurePolicy": {
"intervalTime": "",
"maxRetries": 0,
"retryStrategy": ""
},
"jsonValidationOption": "",
"nextTasks": [
{}
],
"nextTasksExecutionPolicy": "",
"parameters": {},
"position": {},
"successPolicy": {
"finalState": ""
},
"synchronousCallFailurePolicy": {},
"task": "",
"taskExecutionStrategy": "",
"taskId": "",
"taskTemplate": ""
}
],
"taskConfigsInternal": [
{
"alertConfigs": [
{
"aggregationPeriod": "",
"alertDisabled": false,
"alertName": "",
"clientId": "",
"durationThresholdMs": "",
"errorEnumList": {
"enumStrings": [],
"filterType": ""
},
"metricType": "",
"numAggregationPeriods": 0,
"onlyFinalAttempt": false,
"playbookUrl": "",
"thresholdType": "",
"thresholdValue": {
"absolute": "",
"percentage": 0
},
"warningEnumList": {}
}
],
"createTime": "",
"creatorEmail": "",
"description": "",
"disableStrictTypeValidation": false,
"errorCatcherId": "",
"externalTaskType": "",
"failurePolicy": {
"intervalInSeconds": "",
"maxNumRetries": 0,
"retryStrategy": ""
},
"incomingEdgeCount": 0,
"jsonValidationOption": "",
"label": "",
"lastModifiedTime": "",
"nextTasks": [
{
"combinedConditions": [
{
"conditions": [
{
"eventPropertyKey": "",
"operator": "",
"value": {}
}
]
}
],
"condition": "",
"description": "",
"label": "",
"taskConfigId": "",
"taskNumber": ""
}
],
"nextTasksExecutionPolicy": "",
"parameters": {},
"position": {
"x": 0,
"y": 0
},
"precondition": "",
"preconditionLabel": "",
"rollbackStrategy": {
"parameters": {
"parameters": [
{
"dataType": "",
"key": "",
"value": {}
}
]
},
"rollbackTaskImplementationClassName": "",
"taskNumbersToRollback": []
},
"successPolicy": {
"finalState": ""
},
"synchronousCallFailurePolicy": {},
"taskEntity": {
"disabledForVpcSc": false,
"metadata": {
"activeTaskName": "",
"admins": [
{
"googleGroupEmail": "",
"userEmail": ""
}
],
"category": "",
"codeSearchLink": "",
"defaultJsonValidationOption": "",
"defaultSpec": "",
"description": "",
"descriptiveName": "",
"docMarkdown": "",
"externalCategory": "",
"externalCategorySequence": 0,
"externalDocHtml": "",
"externalDocLink": "",
"externalDocMarkdown": "",
"g3DocLink": "",
"iconLink": "",
"isDeprecated": false,
"name": "",
"standaloneExternalDocHtml": "",
"status": "",
"system": "",
"tags": []
},
"paramSpecs": {
"parameters": [
{
"className": "",
"collectionElementClassName": "",
"config": {
"descriptivePhrase": "",
"helpText": "",
"hideDefaultValue": false,
"inputDisplayOption": "",
"isHidden": false,
"label": "",
"parameterNameOption": "",
"subSectionLabel": "",
"uiPlaceholderText": ""
},
"dataType": "",
"defaultValue": {},
"isDeprecated": false,
"isOutput": false,
"jsonSchema": "",
"key": "",
"protoDef": {
"fullName": "",
"path": ""
},
"required": false,
"validationRule": {
"doubleRange": {
"max": "",
"min": ""
},
"intRange": {
"max": "",
"min": ""
},
"stringRegex": {
"exclusive": false,
"regex": ""
}
}
}
]
},
"stats": {
"dimensions": {
"clientId": "",
"enumFilterType": "",
"errorEnumString": "",
"retryAttempt": "",
"taskName": "",
"taskNumber": "",
"triggerId": "",
"warningEnumString": "",
"workflowId": "",
"workflowName": ""
},
"durationInSeconds": "",
"errorRate": "",
"qps": "",
"warningRate": ""
},
"taskType": "",
"uiConfig": {
"taskUiModuleConfigs": [
{
"moduleId": ""
}
]
}
},
"taskExecutionStrategy": "",
"taskName": "",
"taskNumber": "",
"taskSpec": "",
"taskTemplateName": "",
"taskType": ""
}
],
"teardown": {
"teardownTaskConfigs": [
{
"creatorEmail": "",
"name": "",
"nextTeardownTask": {
"name": ""
},
"parameters": {
"parameters": [
{
"key": "",
"value": {
"booleanArray": {
"booleanValues": []
},
"booleanValue": false,
"doubleArray": {
"doubleValues": []
},
"doubleValue": "",
"intArray": {
"intValues": []
},
"intValue": "",
"protoArray": {
"protoValues": [
{}
]
},
"protoValue": {},
"serializedObjectValue": {
"objectValue": ""
},
"stringArray": {
"stringValues": []
},
"stringValue": ""
}
}
]
},
"properties": {
"properties": [
{
"key": "",
"value": {}
}
]
},
"teardownTaskImplementationClassName": ""
}
]
},
"triggerConfigs": [
{
"alertConfig": [
{
"aggregationPeriod": "",
"alertThreshold": 0,
"disableAlert": false,
"displayName": "",
"durationThreshold": "",
"metricType": "",
"onlyFinalAttempt": false,
"thresholdType": "",
"thresholdValue": {
"absolute": "",
"percentage": 0
}
}
],
"cloudSchedulerConfig": {
"cronTab": "",
"errorMessage": "",
"location": "",
"serviceAccountEmail": ""
},
"description": "",
"errorCatcherId": "",
"label": "",
"nextTasksExecutionPolicy": "",
"position": {},
"properties": {},
"startTasks": [
{}
],
"triggerId": "",
"triggerNumber": "",
"triggerType": ""
}
],
"triggerConfigsInternal": [
{
"alertConfig": [
{
"aggregationPeriod": "",
"alertDisabled": false,
"alertName": "",
"clientId": "",
"durationThresholdMs": "",
"errorEnumList": {},
"metricType": "",
"numAggregationPeriods": 0,
"onlyFinalAttempt": false,
"playbookUrl": "",
"thresholdType": "",
"thresholdValue": {},
"warningEnumList": {}
}
],
"cloudSchedulerConfig": {
"cronTab": "",
"errorMessage": "",
"location": "",
"serviceAccountEmail": ""
},
"description": "",
"enabledClients": [],
"errorCatcherId": "",
"label": "",
"nextTasksExecutionPolicy": "",
"pauseWorkflowExecutions": false,
"position": {},
"properties": {},
"startTasks": [
{}
],
"triggerCriteria": {
"condition": "",
"parameters": {},
"triggerCriteriaTaskImplementationClassName": ""
},
"triggerId": "",
"triggerNumber": "",
"triggerType": ""
}
],
"updateTime": "",
"userLabel": ""
}'
import http.client
conn = http.client.HTTPSConnection("example.com")
payload = "{\n \"createTime\": \"\",\n \"databasePersistencePolicy\": \"\",\n \"description\": \"\",\n \"errorCatcherConfigs\": [\n {\n \"description\": \"\",\n \"errorCatcherId\": \"\",\n \"errorCatcherNumber\": \"\",\n \"label\": \"\",\n \"position\": {\n \"x\": 0,\n \"y\": 0\n },\n \"startErrorTasks\": [\n {\n \"condition\": \"\",\n \"description\": \"\",\n \"displayName\": \"\",\n \"taskConfigId\": \"\",\n \"taskId\": \"\"\n }\n ]\n }\n ],\n \"integrationParameters\": [\n {\n \"dataType\": \"\",\n \"defaultValue\": {\n \"booleanArray\": {\n \"booleanValues\": []\n },\n \"booleanValue\": false,\n \"doubleArray\": {\n \"doubleValues\": []\n },\n \"doubleValue\": \"\",\n \"intArray\": {\n \"intValues\": []\n },\n \"intValue\": \"\",\n \"jsonValue\": \"\",\n \"stringArray\": {\n \"stringValues\": []\n },\n \"stringValue\": \"\"\n },\n \"displayName\": \"\",\n \"inputOutputType\": \"\",\n \"isTransient\": false,\n \"jsonSchema\": \"\",\n \"key\": \"\",\n \"producer\": \"\",\n \"searchable\": false\n }\n ],\n \"integrationParametersInternal\": {\n \"parameters\": [\n {\n \"attributes\": {\n \"dataType\": \"\",\n \"defaultValue\": {\n \"booleanValue\": false,\n \"doubleArray\": {\n \"values\": []\n },\n \"doubleValue\": \"\",\n \"intArray\": {\n \"values\": []\n },\n \"intValue\": \"\",\n \"protoValue\": {},\n \"stringArray\": {\n \"values\": []\n },\n \"stringValue\": \"\"\n },\n \"isRequired\": false,\n \"isSearchable\": false,\n \"logSettings\": {\n \"logFieldName\": \"\",\n \"sanitizeOptions\": {\n \"isAlreadySanitized\": false,\n \"logType\": [],\n \"privacy\": \"\",\n \"sanitizeType\": \"\"\n },\n \"seedPeriod\": \"\",\n \"seedScope\": \"\",\n \"shorteningLimits\": {\n \"logAction\": \"\",\n \"logType\": [],\n \"maxArraySize\": 0,\n \"maxStringLength\": 0,\n \"shortenerType\": \"\"\n }\n },\n \"searchable\": \"\",\n \"taskVisibility\": []\n },\n \"children\": [],\n \"dataType\": \"\",\n \"defaultValue\": {\n \"booleanArray\": {\n \"booleanValues\": []\n },\n \"booleanValue\": false,\n \"doubleArray\": {\n \"doubleValues\": []\n },\n \"doubleValue\": \"\",\n \"intArray\": {\n \"intValues\": []\n },\n \"intValue\": \"\",\n \"jsonValue\": \"\",\n \"protoArray\": {\n \"protoValues\": [\n {}\n ]\n },\n \"protoValue\": {},\n \"serializedObjectValue\": {\n \"objectValue\": \"\"\n },\n \"stringArray\": {\n \"stringValues\": []\n },\n \"stringValue\": \"\"\n },\n \"inOutType\": \"\",\n \"isTransient\": false,\n \"jsonSchema\": \"\",\n \"key\": \"\",\n \"name\": \"\",\n \"producedBy\": {\n \"elementIdentifier\": \"\",\n \"elementType\": \"\"\n },\n \"producer\": \"\",\n \"protoDefName\": \"\",\n \"protoDefPath\": \"\"\n }\n ]\n },\n \"lastModifierEmail\": \"\",\n \"lockHolder\": \"\",\n \"name\": \"\",\n \"origin\": \"\",\n \"parentTemplateId\": \"\",\n \"runAsServiceAccount\": \"\",\n \"snapshotNumber\": \"\",\n \"state\": \"\",\n \"status\": \"\",\n \"taskConfigs\": [\n {\n \"description\": \"\",\n \"displayName\": \"\",\n \"errorCatcherId\": \"\",\n \"externalTaskType\": \"\",\n \"failurePolicy\": {\n \"intervalTime\": \"\",\n \"maxRetries\": 0,\n \"retryStrategy\": \"\"\n },\n \"jsonValidationOption\": \"\",\n \"nextTasks\": [\n {}\n ],\n \"nextTasksExecutionPolicy\": \"\",\n \"parameters\": {},\n \"position\": {},\n \"successPolicy\": {\n \"finalState\": \"\"\n },\n \"synchronousCallFailurePolicy\": {},\n \"task\": \"\",\n \"taskExecutionStrategy\": \"\",\n \"taskId\": \"\",\n \"taskTemplate\": \"\"\n }\n ],\n \"taskConfigsInternal\": [\n {\n \"alertConfigs\": [\n {\n \"aggregationPeriod\": \"\",\n \"alertDisabled\": false,\n \"alertName\": \"\",\n \"clientId\": \"\",\n \"durationThresholdMs\": \"\",\n \"errorEnumList\": {\n \"enumStrings\": [],\n \"filterType\": \"\"\n },\n \"metricType\": \"\",\n \"numAggregationPeriods\": 0,\n \"onlyFinalAttempt\": false,\n \"playbookUrl\": \"\",\n \"thresholdType\": \"\",\n \"thresholdValue\": {\n \"absolute\": \"\",\n \"percentage\": 0\n },\n \"warningEnumList\": {}\n }\n ],\n \"createTime\": \"\",\n \"creatorEmail\": \"\",\n \"description\": \"\",\n \"disableStrictTypeValidation\": false,\n \"errorCatcherId\": \"\",\n \"externalTaskType\": \"\",\n \"failurePolicy\": {\n \"intervalInSeconds\": \"\",\n \"maxNumRetries\": 0,\n \"retryStrategy\": \"\"\n },\n \"incomingEdgeCount\": 0,\n \"jsonValidationOption\": \"\",\n \"label\": \"\",\n \"lastModifiedTime\": \"\",\n \"nextTasks\": [\n {\n \"combinedConditions\": [\n {\n \"conditions\": [\n {\n \"eventPropertyKey\": \"\",\n \"operator\": \"\",\n \"value\": {}\n }\n ]\n }\n ],\n \"condition\": \"\",\n \"description\": \"\",\n \"label\": \"\",\n \"taskConfigId\": \"\",\n \"taskNumber\": \"\"\n }\n ],\n \"nextTasksExecutionPolicy\": \"\",\n \"parameters\": {},\n \"position\": {\n \"x\": 0,\n \"y\": 0\n },\n \"precondition\": \"\",\n \"preconditionLabel\": \"\",\n \"rollbackStrategy\": {\n \"parameters\": {\n \"parameters\": [\n {\n \"dataType\": \"\",\n \"key\": \"\",\n \"value\": {}\n }\n ]\n },\n \"rollbackTaskImplementationClassName\": \"\",\n \"taskNumbersToRollback\": []\n },\n \"successPolicy\": {\n \"finalState\": \"\"\n },\n \"synchronousCallFailurePolicy\": {},\n \"taskEntity\": {\n \"disabledForVpcSc\": false,\n \"metadata\": {\n \"activeTaskName\": \"\",\n \"admins\": [\n {\n \"googleGroupEmail\": \"\",\n \"userEmail\": \"\"\n }\n ],\n \"category\": \"\",\n \"codeSearchLink\": \"\",\n \"defaultJsonValidationOption\": \"\",\n \"defaultSpec\": \"\",\n \"description\": \"\",\n \"descriptiveName\": \"\",\n \"docMarkdown\": \"\",\n \"externalCategory\": \"\",\n \"externalCategorySequence\": 0,\n \"externalDocHtml\": \"\",\n \"externalDocLink\": \"\",\n \"externalDocMarkdown\": \"\",\n \"g3DocLink\": \"\",\n \"iconLink\": \"\",\n \"isDeprecated\": false,\n \"name\": \"\",\n \"standaloneExternalDocHtml\": \"\",\n \"status\": \"\",\n \"system\": \"\",\n \"tags\": []\n },\n \"paramSpecs\": {\n \"parameters\": [\n {\n \"className\": \"\",\n \"collectionElementClassName\": \"\",\n \"config\": {\n \"descriptivePhrase\": \"\",\n \"helpText\": \"\",\n \"hideDefaultValue\": false,\n \"inputDisplayOption\": \"\",\n \"isHidden\": false,\n \"label\": \"\",\n \"parameterNameOption\": \"\",\n \"subSectionLabel\": \"\",\n \"uiPlaceholderText\": \"\"\n },\n \"dataType\": \"\",\n \"defaultValue\": {},\n \"isDeprecated\": false,\n \"isOutput\": false,\n \"jsonSchema\": \"\",\n \"key\": \"\",\n \"protoDef\": {\n \"fullName\": \"\",\n \"path\": \"\"\n },\n \"required\": false,\n \"validationRule\": {\n \"doubleRange\": {\n \"max\": \"\",\n \"min\": \"\"\n },\n \"intRange\": {\n \"max\": \"\",\n \"min\": \"\"\n },\n \"stringRegex\": {\n \"exclusive\": false,\n \"regex\": \"\"\n }\n }\n }\n ]\n },\n \"stats\": {\n \"dimensions\": {\n \"clientId\": \"\",\n \"enumFilterType\": \"\",\n \"errorEnumString\": \"\",\n \"retryAttempt\": \"\",\n \"taskName\": \"\",\n \"taskNumber\": \"\",\n \"triggerId\": \"\",\n \"warningEnumString\": \"\",\n \"workflowId\": \"\",\n \"workflowName\": \"\"\n },\n \"durationInSeconds\": \"\",\n \"errorRate\": \"\",\n \"qps\": \"\",\n \"warningRate\": \"\"\n },\n \"taskType\": \"\",\n \"uiConfig\": {\n \"taskUiModuleConfigs\": [\n {\n \"moduleId\": \"\"\n }\n ]\n }\n },\n \"taskExecutionStrategy\": \"\",\n \"taskName\": \"\",\n \"taskNumber\": \"\",\n \"taskSpec\": \"\",\n \"taskTemplateName\": \"\",\n \"taskType\": \"\"\n }\n ],\n \"teardown\": {\n \"teardownTaskConfigs\": [\n {\n \"creatorEmail\": \"\",\n \"name\": \"\",\n \"nextTeardownTask\": {\n \"name\": \"\"\n },\n \"parameters\": {\n \"parameters\": [\n {\n \"key\": \"\",\n \"value\": {\n \"booleanArray\": {\n \"booleanValues\": []\n },\n \"booleanValue\": false,\n \"doubleArray\": {\n \"doubleValues\": []\n },\n \"doubleValue\": \"\",\n \"intArray\": {\n \"intValues\": []\n },\n \"intValue\": \"\",\n \"protoArray\": {\n \"protoValues\": [\n {}\n ]\n },\n \"protoValue\": {},\n \"serializedObjectValue\": {\n \"objectValue\": \"\"\n },\n \"stringArray\": {\n \"stringValues\": []\n },\n \"stringValue\": \"\"\n }\n }\n ]\n },\n \"properties\": {\n \"properties\": [\n {\n \"key\": \"\",\n \"value\": {}\n }\n ]\n },\n \"teardownTaskImplementationClassName\": \"\"\n }\n ]\n },\n \"triggerConfigs\": [\n {\n \"alertConfig\": [\n {\n \"aggregationPeriod\": \"\",\n \"alertThreshold\": 0,\n \"disableAlert\": false,\n \"displayName\": \"\",\n \"durationThreshold\": \"\",\n \"metricType\": \"\",\n \"onlyFinalAttempt\": false,\n \"thresholdType\": \"\",\n \"thresholdValue\": {\n \"absolute\": \"\",\n \"percentage\": 0\n }\n }\n ],\n \"cloudSchedulerConfig\": {\n \"cronTab\": \"\",\n \"errorMessage\": \"\",\n \"location\": \"\",\n \"serviceAccountEmail\": \"\"\n },\n \"description\": \"\",\n \"errorCatcherId\": \"\",\n \"label\": \"\",\n \"nextTasksExecutionPolicy\": \"\",\n \"position\": {},\n \"properties\": {},\n \"startTasks\": [\n {}\n ],\n \"triggerId\": \"\",\n \"triggerNumber\": \"\",\n \"triggerType\": \"\"\n }\n ],\n \"triggerConfigsInternal\": [\n {\n \"alertConfig\": [\n {\n \"aggregationPeriod\": \"\",\n \"alertDisabled\": false,\n \"alertName\": \"\",\n \"clientId\": \"\",\n \"durationThresholdMs\": \"\",\n \"errorEnumList\": {},\n \"metricType\": \"\",\n \"numAggregationPeriods\": 0,\n \"onlyFinalAttempt\": false,\n \"playbookUrl\": \"\",\n \"thresholdType\": \"\",\n \"thresholdValue\": {},\n \"warningEnumList\": {}\n }\n ],\n \"cloudSchedulerConfig\": {\n \"cronTab\": \"\",\n \"errorMessage\": \"\",\n \"location\": \"\",\n \"serviceAccountEmail\": \"\"\n },\n \"description\": \"\",\n \"enabledClients\": [],\n \"errorCatcherId\": \"\",\n \"label\": \"\",\n \"nextTasksExecutionPolicy\": \"\",\n \"pauseWorkflowExecutions\": false,\n \"position\": {},\n \"properties\": {},\n \"startTasks\": [\n {}\n ],\n \"triggerCriteria\": {\n \"condition\": \"\",\n \"parameters\": {},\n \"triggerCriteriaTaskImplementationClassName\": \"\"\n },\n \"triggerId\": \"\",\n \"triggerNumber\": \"\",\n \"triggerType\": \"\"\n }\n ],\n \"updateTime\": \"\",\n \"userLabel\": \"\"\n}"
headers = { 'content-type': "application/json" }
conn.request("POST", "/baseUrl/v1/:parent/versions", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/v1/:parent/versions"
payload = {
"createTime": "",
"databasePersistencePolicy": "",
"description": "",
"errorCatcherConfigs": [
{
"description": "",
"errorCatcherId": "",
"errorCatcherNumber": "",
"label": "",
"position": {
"x": 0,
"y": 0
},
"startErrorTasks": [
{
"condition": "",
"description": "",
"displayName": "",
"taskConfigId": "",
"taskId": ""
}
]
}
],
"integrationParameters": [
{
"dataType": "",
"defaultValue": {
"booleanArray": { "booleanValues": [] },
"booleanValue": False,
"doubleArray": { "doubleValues": [] },
"doubleValue": "",
"intArray": { "intValues": [] },
"intValue": "",
"jsonValue": "",
"stringArray": { "stringValues": [] },
"stringValue": ""
},
"displayName": "",
"inputOutputType": "",
"isTransient": False,
"jsonSchema": "",
"key": "",
"producer": "",
"searchable": False
}
],
"integrationParametersInternal": { "parameters": [
{
"attributes": {
"dataType": "",
"defaultValue": {
"booleanValue": False,
"doubleArray": { "values": [] },
"doubleValue": "",
"intArray": { "values": [] },
"intValue": "",
"protoValue": {},
"stringArray": { "values": [] },
"stringValue": ""
},
"isRequired": False,
"isSearchable": False,
"logSettings": {
"logFieldName": "",
"sanitizeOptions": {
"isAlreadySanitized": False,
"logType": [],
"privacy": "",
"sanitizeType": ""
},
"seedPeriod": "",
"seedScope": "",
"shorteningLimits": {
"logAction": "",
"logType": [],
"maxArraySize": 0,
"maxStringLength": 0,
"shortenerType": ""
}
},
"searchable": "",
"taskVisibility": []
},
"children": [],
"dataType": "",
"defaultValue": {
"booleanArray": { "booleanValues": [] },
"booleanValue": False,
"doubleArray": { "doubleValues": [] },
"doubleValue": "",
"intArray": { "intValues": [] },
"intValue": "",
"jsonValue": "",
"protoArray": { "protoValues": [{}] },
"protoValue": {},
"serializedObjectValue": { "objectValue": "" },
"stringArray": { "stringValues": [] },
"stringValue": ""
},
"inOutType": "",
"isTransient": False,
"jsonSchema": "",
"key": "",
"name": "",
"producedBy": {
"elementIdentifier": "",
"elementType": ""
},
"producer": "",
"protoDefName": "",
"protoDefPath": ""
}
] },
"lastModifierEmail": "",
"lockHolder": "",
"name": "",
"origin": "",
"parentTemplateId": "",
"runAsServiceAccount": "",
"snapshotNumber": "",
"state": "",
"status": "",
"taskConfigs": [
{
"description": "",
"displayName": "",
"errorCatcherId": "",
"externalTaskType": "",
"failurePolicy": {
"intervalTime": "",
"maxRetries": 0,
"retryStrategy": ""
},
"jsonValidationOption": "",
"nextTasks": [{}],
"nextTasksExecutionPolicy": "",
"parameters": {},
"position": {},
"successPolicy": { "finalState": "" },
"synchronousCallFailurePolicy": {},
"task": "",
"taskExecutionStrategy": "",
"taskId": "",
"taskTemplate": ""
}
],
"taskConfigsInternal": [
{
"alertConfigs": [
{
"aggregationPeriod": "",
"alertDisabled": False,
"alertName": "",
"clientId": "",
"durationThresholdMs": "",
"errorEnumList": {
"enumStrings": [],
"filterType": ""
},
"metricType": "",
"numAggregationPeriods": 0,
"onlyFinalAttempt": False,
"playbookUrl": "",
"thresholdType": "",
"thresholdValue": {
"absolute": "",
"percentage": 0
},
"warningEnumList": {}
}
],
"createTime": "",
"creatorEmail": "",
"description": "",
"disableStrictTypeValidation": False,
"errorCatcherId": "",
"externalTaskType": "",
"failurePolicy": {
"intervalInSeconds": "",
"maxNumRetries": 0,
"retryStrategy": ""
},
"incomingEdgeCount": 0,
"jsonValidationOption": "",
"label": "",
"lastModifiedTime": "",
"nextTasks": [
{
"combinedConditions": [{ "conditions": [
{
"eventPropertyKey": "",
"operator": "",
"value": {}
}
] }],
"condition": "",
"description": "",
"label": "",
"taskConfigId": "",
"taskNumber": ""
}
],
"nextTasksExecutionPolicy": "",
"parameters": {},
"position": {
"x": 0,
"y": 0
},
"precondition": "",
"preconditionLabel": "",
"rollbackStrategy": {
"parameters": { "parameters": [
{
"dataType": "",
"key": "",
"value": {}
}
] },
"rollbackTaskImplementationClassName": "",
"taskNumbersToRollback": []
},
"successPolicy": { "finalState": "" },
"synchronousCallFailurePolicy": {},
"taskEntity": {
"disabledForVpcSc": False,
"metadata": {
"activeTaskName": "",
"admins": [
{
"googleGroupEmail": "",
"userEmail": ""
}
],
"category": "",
"codeSearchLink": "",
"defaultJsonValidationOption": "",
"defaultSpec": "",
"description": "",
"descriptiveName": "",
"docMarkdown": "",
"externalCategory": "",
"externalCategorySequence": 0,
"externalDocHtml": "",
"externalDocLink": "",
"externalDocMarkdown": "",
"g3DocLink": "",
"iconLink": "",
"isDeprecated": False,
"name": "",
"standaloneExternalDocHtml": "",
"status": "",
"system": "",
"tags": []
},
"paramSpecs": { "parameters": [
{
"className": "",
"collectionElementClassName": "",
"config": {
"descriptivePhrase": "",
"helpText": "",
"hideDefaultValue": False,
"inputDisplayOption": "",
"isHidden": False,
"label": "",
"parameterNameOption": "",
"subSectionLabel": "",
"uiPlaceholderText": ""
},
"dataType": "",
"defaultValue": {},
"isDeprecated": False,
"isOutput": False,
"jsonSchema": "",
"key": "",
"protoDef": {
"fullName": "",
"path": ""
},
"required": False,
"validationRule": {
"doubleRange": {
"max": "",
"min": ""
},
"intRange": {
"max": "",
"min": ""
},
"stringRegex": {
"exclusive": False,
"regex": ""
}
}
}
] },
"stats": {
"dimensions": {
"clientId": "",
"enumFilterType": "",
"errorEnumString": "",
"retryAttempt": "",
"taskName": "",
"taskNumber": "",
"triggerId": "",
"warningEnumString": "",
"workflowId": "",
"workflowName": ""
},
"durationInSeconds": "",
"errorRate": "",
"qps": "",
"warningRate": ""
},
"taskType": "",
"uiConfig": { "taskUiModuleConfigs": [{ "moduleId": "" }] }
},
"taskExecutionStrategy": "",
"taskName": "",
"taskNumber": "",
"taskSpec": "",
"taskTemplateName": "",
"taskType": ""
}
],
"teardown": { "teardownTaskConfigs": [
{
"creatorEmail": "",
"name": "",
"nextTeardownTask": { "name": "" },
"parameters": { "parameters": [
{
"key": "",
"value": {
"booleanArray": { "booleanValues": [] },
"booleanValue": False,
"doubleArray": { "doubleValues": [] },
"doubleValue": "",
"intArray": { "intValues": [] },
"intValue": "",
"protoArray": { "protoValues": [{}] },
"protoValue": {},
"serializedObjectValue": { "objectValue": "" },
"stringArray": { "stringValues": [] },
"stringValue": ""
}
}
] },
"properties": { "properties": [
{
"key": "",
"value": {}
}
] },
"teardownTaskImplementationClassName": ""
}
] },
"triggerConfigs": [
{
"alertConfig": [
{
"aggregationPeriod": "",
"alertThreshold": 0,
"disableAlert": False,
"displayName": "",
"durationThreshold": "",
"metricType": "",
"onlyFinalAttempt": False,
"thresholdType": "",
"thresholdValue": {
"absolute": "",
"percentage": 0
}
}
],
"cloudSchedulerConfig": {
"cronTab": "",
"errorMessage": "",
"location": "",
"serviceAccountEmail": ""
},
"description": "",
"errorCatcherId": "",
"label": "",
"nextTasksExecutionPolicy": "",
"position": {},
"properties": {},
"startTasks": [{}],
"triggerId": "",
"triggerNumber": "",
"triggerType": ""
}
],
"triggerConfigsInternal": [
{
"alertConfig": [
{
"aggregationPeriod": "",
"alertDisabled": False,
"alertName": "",
"clientId": "",
"durationThresholdMs": "",
"errorEnumList": {},
"metricType": "",
"numAggregationPeriods": 0,
"onlyFinalAttempt": False,
"playbookUrl": "",
"thresholdType": "",
"thresholdValue": {},
"warningEnumList": {}
}
],
"cloudSchedulerConfig": {
"cronTab": "",
"errorMessage": "",
"location": "",
"serviceAccountEmail": ""
},
"description": "",
"enabledClients": [],
"errorCatcherId": "",
"label": "",
"nextTasksExecutionPolicy": "",
"pauseWorkflowExecutions": False,
"position": {},
"properties": {},
"startTasks": [{}],
"triggerCriteria": {
"condition": "",
"parameters": {},
"triggerCriteriaTaskImplementationClassName": ""
},
"triggerId": "",
"triggerNumber": "",
"triggerType": ""
}
],
"updateTime": "",
"userLabel": ""
}
headers = {"content-type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.json())
library(httr)
url <- "{{baseUrl}}/v1/:parent/versions"
payload <- "{\n \"createTime\": \"\",\n \"databasePersistencePolicy\": \"\",\n \"description\": \"\",\n \"errorCatcherConfigs\": [\n {\n \"description\": \"\",\n \"errorCatcherId\": \"\",\n \"errorCatcherNumber\": \"\",\n \"label\": \"\",\n \"position\": {\n \"x\": 0,\n \"y\": 0\n },\n \"startErrorTasks\": [\n {\n \"condition\": \"\",\n \"description\": \"\",\n \"displayName\": \"\",\n \"taskConfigId\": \"\",\n \"taskId\": \"\"\n }\n ]\n }\n ],\n \"integrationParameters\": [\n {\n \"dataType\": \"\",\n \"defaultValue\": {\n \"booleanArray\": {\n \"booleanValues\": []\n },\n \"booleanValue\": false,\n \"doubleArray\": {\n \"doubleValues\": []\n },\n \"doubleValue\": \"\",\n \"intArray\": {\n \"intValues\": []\n },\n \"intValue\": \"\",\n \"jsonValue\": \"\",\n \"stringArray\": {\n \"stringValues\": []\n },\n \"stringValue\": \"\"\n },\n \"displayName\": \"\",\n \"inputOutputType\": \"\",\n \"isTransient\": false,\n \"jsonSchema\": \"\",\n \"key\": \"\",\n \"producer\": \"\",\n \"searchable\": false\n }\n ],\n \"integrationParametersInternal\": {\n \"parameters\": [\n {\n \"attributes\": {\n \"dataType\": \"\",\n \"defaultValue\": {\n \"booleanValue\": false,\n \"doubleArray\": {\n \"values\": []\n },\n \"doubleValue\": \"\",\n \"intArray\": {\n \"values\": []\n },\n \"intValue\": \"\",\n \"protoValue\": {},\n \"stringArray\": {\n \"values\": []\n },\n \"stringValue\": \"\"\n },\n \"isRequired\": false,\n \"isSearchable\": false,\n \"logSettings\": {\n \"logFieldName\": \"\",\n \"sanitizeOptions\": {\n \"isAlreadySanitized\": false,\n \"logType\": [],\n \"privacy\": \"\",\n \"sanitizeType\": \"\"\n },\n \"seedPeriod\": \"\",\n \"seedScope\": \"\",\n \"shorteningLimits\": {\n \"logAction\": \"\",\n \"logType\": [],\n \"maxArraySize\": 0,\n \"maxStringLength\": 0,\n \"shortenerType\": \"\"\n }\n },\n \"searchable\": \"\",\n \"taskVisibility\": []\n },\n \"children\": [],\n \"dataType\": \"\",\n \"defaultValue\": {\n \"booleanArray\": {\n \"booleanValues\": []\n },\n \"booleanValue\": false,\n \"doubleArray\": {\n \"doubleValues\": []\n },\n \"doubleValue\": \"\",\n \"intArray\": {\n \"intValues\": []\n },\n \"intValue\": \"\",\n \"jsonValue\": \"\",\n \"protoArray\": {\n \"protoValues\": [\n {}\n ]\n },\n \"protoValue\": {},\n \"serializedObjectValue\": {\n \"objectValue\": \"\"\n },\n \"stringArray\": {\n \"stringValues\": []\n },\n \"stringValue\": \"\"\n },\n \"inOutType\": \"\",\n \"isTransient\": false,\n \"jsonSchema\": \"\",\n \"key\": \"\",\n \"name\": \"\",\n \"producedBy\": {\n \"elementIdentifier\": \"\",\n \"elementType\": \"\"\n },\n \"producer\": \"\",\n \"protoDefName\": \"\",\n \"protoDefPath\": \"\"\n }\n ]\n },\n \"lastModifierEmail\": \"\",\n \"lockHolder\": \"\",\n \"name\": \"\",\n \"origin\": \"\",\n \"parentTemplateId\": \"\",\n \"runAsServiceAccount\": \"\",\n \"snapshotNumber\": \"\",\n \"state\": \"\",\n \"status\": \"\",\n \"taskConfigs\": [\n {\n \"description\": \"\",\n \"displayName\": \"\",\n \"errorCatcherId\": \"\",\n \"externalTaskType\": \"\",\n \"failurePolicy\": {\n \"intervalTime\": \"\",\n \"maxRetries\": 0,\n \"retryStrategy\": \"\"\n },\n \"jsonValidationOption\": \"\",\n \"nextTasks\": [\n {}\n ],\n \"nextTasksExecutionPolicy\": \"\",\n \"parameters\": {},\n \"position\": {},\n \"successPolicy\": {\n \"finalState\": \"\"\n },\n \"synchronousCallFailurePolicy\": {},\n \"task\": \"\",\n \"taskExecutionStrategy\": \"\",\n \"taskId\": \"\",\n \"taskTemplate\": \"\"\n }\n ],\n \"taskConfigsInternal\": [\n {\n \"alertConfigs\": [\n {\n \"aggregationPeriod\": \"\",\n \"alertDisabled\": false,\n \"alertName\": \"\",\n \"clientId\": \"\",\n \"durationThresholdMs\": \"\",\n \"errorEnumList\": {\n \"enumStrings\": [],\n \"filterType\": \"\"\n },\n \"metricType\": \"\",\n \"numAggregationPeriods\": 0,\n \"onlyFinalAttempt\": false,\n \"playbookUrl\": \"\",\n \"thresholdType\": \"\",\n \"thresholdValue\": {\n \"absolute\": \"\",\n \"percentage\": 0\n },\n \"warningEnumList\": {}\n }\n ],\n \"createTime\": \"\",\n \"creatorEmail\": \"\",\n \"description\": \"\",\n \"disableStrictTypeValidation\": false,\n \"errorCatcherId\": \"\",\n \"externalTaskType\": \"\",\n \"failurePolicy\": {\n \"intervalInSeconds\": \"\",\n \"maxNumRetries\": 0,\n \"retryStrategy\": \"\"\n },\n \"incomingEdgeCount\": 0,\n \"jsonValidationOption\": \"\",\n \"label\": \"\",\n \"lastModifiedTime\": \"\",\n \"nextTasks\": [\n {\n \"combinedConditions\": [\n {\n \"conditions\": [\n {\n \"eventPropertyKey\": \"\",\n \"operator\": \"\",\n \"value\": {}\n }\n ]\n }\n ],\n \"condition\": \"\",\n \"description\": \"\",\n \"label\": \"\",\n \"taskConfigId\": \"\",\n \"taskNumber\": \"\"\n }\n ],\n \"nextTasksExecutionPolicy\": \"\",\n \"parameters\": {},\n \"position\": {\n \"x\": 0,\n \"y\": 0\n },\n \"precondition\": \"\",\n \"preconditionLabel\": \"\",\n \"rollbackStrategy\": {\n \"parameters\": {\n \"parameters\": [\n {\n \"dataType\": \"\",\n \"key\": \"\",\n \"value\": {}\n }\n ]\n },\n \"rollbackTaskImplementationClassName\": \"\",\n \"taskNumbersToRollback\": []\n },\n \"successPolicy\": {\n \"finalState\": \"\"\n },\n \"synchronousCallFailurePolicy\": {},\n \"taskEntity\": {\n \"disabledForVpcSc\": false,\n \"metadata\": {\n \"activeTaskName\": \"\",\n \"admins\": [\n {\n \"googleGroupEmail\": \"\",\n \"userEmail\": \"\"\n }\n ],\n \"category\": \"\",\n \"codeSearchLink\": \"\",\n \"defaultJsonValidationOption\": \"\",\n \"defaultSpec\": \"\",\n \"description\": \"\",\n \"descriptiveName\": \"\",\n \"docMarkdown\": \"\",\n \"externalCategory\": \"\",\n \"externalCategorySequence\": 0,\n \"externalDocHtml\": \"\",\n \"externalDocLink\": \"\",\n \"externalDocMarkdown\": \"\",\n \"g3DocLink\": \"\",\n \"iconLink\": \"\",\n \"isDeprecated\": false,\n \"name\": \"\",\n \"standaloneExternalDocHtml\": \"\",\n \"status\": \"\",\n \"system\": \"\",\n \"tags\": []\n },\n \"paramSpecs\": {\n \"parameters\": [\n {\n \"className\": \"\",\n \"collectionElementClassName\": \"\",\n \"config\": {\n \"descriptivePhrase\": \"\",\n \"helpText\": \"\",\n \"hideDefaultValue\": false,\n \"inputDisplayOption\": \"\",\n \"isHidden\": false,\n \"label\": \"\",\n \"parameterNameOption\": \"\",\n \"subSectionLabel\": \"\",\n \"uiPlaceholderText\": \"\"\n },\n \"dataType\": \"\",\n \"defaultValue\": {},\n \"isDeprecated\": false,\n \"isOutput\": false,\n \"jsonSchema\": \"\",\n \"key\": \"\",\n \"protoDef\": {\n \"fullName\": \"\",\n \"path\": \"\"\n },\n \"required\": false,\n \"validationRule\": {\n \"doubleRange\": {\n \"max\": \"\",\n \"min\": \"\"\n },\n \"intRange\": {\n \"max\": \"\",\n \"min\": \"\"\n },\n \"stringRegex\": {\n \"exclusive\": false,\n \"regex\": \"\"\n }\n }\n }\n ]\n },\n \"stats\": {\n \"dimensions\": {\n \"clientId\": \"\",\n \"enumFilterType\": \"\",\n \"errorEnumString\": \"\",\n \"retryAttempt\": \"\",\n \"taskName\": \"\",\n \"taskNumber\": \"\",\n \"triggerId\": \"\",\n \"warningEnumString\": \"\",\n \"workflowId\": \"\",\n \"workflowName\": \"\"\n },\n \"durationInSeconds\": \"\",\n \"errorRate\": \"\",\n \"qps\": \"\",\n \"warningRate\": \"\"\n },\n \"taskType\": \"\",\n \"uiConfig\": {\n \"taskUiModuleConfigs\": [\n {\n \"moduleId\": \"\"\n }\n ]\n }\n },\n \"taskExecutionStrategy\": \"\",\n \"taskName\": \"\",\n \"taskNumber\": \"\",\n \"taskSpec\": \"\",\n \"taskTemplateName\": \"\",\n \"taskType\": \"\"\n }\n ],\n \"teardown\": {\n \"teardownTaskConfigs\": [\n {\n \"creatorEmail\": \"\",\n \"name\": \"\",\n \"nextTeardownTask\": {\n \"name\": \"\"\n },\n \"parameters\": {\n \"parameters\": [\n {\n \"key\": \"\",\n \"value\": {\n \"booleanArray\": {\n \"booleanValues\": []\n },\n \"booleanValue\": false,\n \"doubleArray\": {\n \"doubleValues\": []\n },\n \"doubleValue\": \"\",\n \"intArray\": {\n \"intValues\": []\n },\n \"intValue\": \"\",\n \"protoArray\": {\n \"protoValues\": [\n {}\n ]\n },\n \"protoValue\": {},\n \"serializedObjectValue\": {\n \"objectValue\": \"\"\n },\n \"stringArray\": {\n \"stringValues\": []\n },\n \"stringValue\": \"\"\n }\n }\n ]\n },\n \"properties\": {\n \"properties\": [\n {\n \"key\": \"\",\n \"value\": {}\n }\n ]\n },\n \"teardownTaskImplementationClassName\": \"\"\n }\n ]\n },\n \"triggerConfigs\": [\n {\n \"alertConfig\": [\n {\n \"aggregationPeriod\": \"\",\n \"alertThreshold\": 0,\n \"disableAlert\": false,\n \"displayName\": \"\",\n \"durationThreshold\": \"\",\n \"metricType\": \"\",\n \"onlyFinalAttempt\": false,\n \"thresholdType\": \"\",\n \"thresholdValue\": {\n \"absolute\": \"\",\n \"percentage\": 0\n }\n }\n ],\n \"cloudSchedulerConfig\": {\n \"cronTab\": \"\",\n \"errorMessage\": \"\",\n \"location\": \"\",\n \"serviceAccountEmail\": \"\"\n },\n \"description\": \"\",\n \"errorCatcherId\": \"\",\n \"label\": \"\",\n \"nextTasksExecutionPolicy\": \"\",\n \"position\": {},\n \"properties\": {},\n \"startTasks\": [\n {}\n ],\n \"triggerId\": \"\",\n \"triggerNumber\": \"\",\n \"triggerType\": \"\"\n }\n ],\n \"triggerConfigsInternal\": [\n {\n \"alertConfig\": [\n {\n \"aggregationPeriod\": \"\",\n \"alertDisabled\": false,\n \"alertName\": \"\",\n \"clientId\": \"\",\n \"durationThresholdMs\": \"\",\n \"errorEnumList\": {},\n \"metricType\": \"\",\n \"numAggregationPeriods\": 0,\n \"onlyFinalAttempt\": false,\n \"playbookUrl\": \"\",\n \"thresholdType\": \"\",\n \"thresholdValue\": {},\n \"warningEnumList\": {}\n }\n ],\n \"cloudSchedulerConfig\": {\n \"cronTab\": \"\",\n \"errorMessage\": \"\",\n \"location\": \"\",\n \"serviceAccountEmail\": \"\"\n },\n \"description\": \"\",\n \"enabledClients\": [],\n \"errorCatcherId\": \"\",\n \"label\": \"\",\n \"nextTasksExecutionPolicy\": \"\",\n \"pauseWorkflowExecutions\": false,\n \"position\": {},\n \"properties\": {},\n \"startTasks\": [\n {}\n ],\n \"triggerCriteria\": {\n \"condition\": \"\",\n \"parameters\": {},\n \"triggerCriteriaTaskImplementationClassName\": \"\"\n },\n \"triggerId\": \"\",\n \"triggerNumber\": \"\",\n \"triggerType\": \"\"\n }\n ],\n \"updateTime\": \"\",\n \"userLabel\": \"\"\n}"
encode <- "json"
response <- VERB("POST", url, body = payload, content_type("application/json"), encode = encode)
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/v1/:parent/versions")
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 \"databasePersistencePolicy\": \"\",\n \"description\": \"\",\n \"errorCatcherConfigs\": [\n {\n \"description\": \"\",\n \"errorCatcherId\": \"\",\n \"errorCatcherNumber\": \"\",\n \"label\": \"\",\n \"position\": {\n \"x\": 0,\n \"y\": 0\n },\n \"startErrorTasks\": [\n {\n \"condition\": \"\",\n \"description\": \"\",\n \"displayName\": \"\",\n \"taskConfigId\": \"\",\n \"taskId\": \"\"\n }\n ]\n }\n ],\n \"integrationParameters\": [\n {\n \"dataType\": \"\",\n \"defaultValue\": {\n \"booleanArray\": {\n \"booleanValues\": []\n },\n \"booleanValue\": false,\n \"doubleArray\": {\n \"doubleValues\": []\n },\n \"doubleValue\": \"\",\n \"intArray\": {\n \"intValues\": []\n },\n \"intValue\": \"\",\n \"jsonValue\": \"\",\n \"stringArray\": {\n \"stringValues\": []\n },\n \"stringValue\": \"\"\n },\n \"displayName\": \"\",\n \"inputOutputType\": \"\",\n \"isTransient\": false,\n \"jsonSchema\": \"\",\n \"key\": \"\",\n \"producer\": \"\",\n \"searchable\": false\n }\n ],\n \"integrationParametersInternal\": {\n \"parameters\": [\n {\n \"attributes\": {\n \"dataType\": \"\",\n \"defaultValue\": {\n \"booleanValue\": false,\n \"doubleArray\": {\n \"values\": []\n },\n \"doubleValue\": \"\",\n \"intArray\": {\n \"values\": []\n },\n \"intValue\": \"\",\n \"protoValue\": {},\n \"stringArray\": {\n \"values\": []\n },\n \"stringValue\": \"\"\n },\n \"isRequired\": false,\n \"isSearchable\": false,\n \"logSettings\": {\n \"logFieldName\": \"\",\n \"sanitizeOptions\": {\n \"isAlreadySanitized\": false,\n \"logType\": [],\n \"privacy\": \"\",\n \"sanitizeType\": \"\"\n },\n \"seedPeriod\": \"\",\n \"seedScope\": \"\",\n \"shorteningLimits\": {\n \"logAction\": \"\",\n \"logType\": [],\n \"maxArraySize\": 0,\n \"maxStringLength\": 0,\n \"shortenerType\": \"\"\n }\n },\n \"searchable\": \"\",\n \"taskVisibility\": []\n },\n \"children\": [],\n \"dataType\": \"\",\n \"defaultValue\": {\n \"booleanArray\": {\n \"booleanValues\": []\n },\n \"booleanValue\": false,\n \"doubleArray\": {\n \"doubleValues\": []\n },\n \"doubleValue\": \"\",\n \"intArray\": {\n \"intValues\": []\n },\n \"intValue\": \"\",\n \"jsonValue\": \"\",\n \"protoArray\": {\n \"protoValues\": [\n {}\n ]\n },\n \"protoValue\": {},\n \"serializedObjectValue\": {\n \"objectValue\": \"\"\n },\n \"stringArray\": {\n \"stringValues\": []\n },\n \"stringValue\": \"\"\n },\n \"inOutType\": \"\",\n \"isTransient\": false,\n \"jsonSchema\": \"\",\n \"key\": \"\",\n \"name\": \"\",\n \"producedBy\": {\n \"elementIdentifier\": \"\",\n \"elementType\": \"\"\n },\n \"producer\": \"\",\n \"protoDefName\": \"\",\n \"protoDefPath\": \"\"\n }\n ]\n },\n \"lastModifierEmail\": \"\",\n \"lockHolder\": \"\",\n \"name\": \"\",\n \"origin\": \"\",\n \"parentTemplateId\": \"\",\n \"runAsServiceAccount\": \"\",\n \"snapshotNumber\": \"\",\n \"state\": \"\",\n \"status\": \"\",\n \"taskConfigs\": [\n {\n \"description\": \"\",\n \"displayName\": \"\",\n \"errorCatcherId\": \"\",\n \"externalTaskType\": \"\",\n \"failurePolicy\": {\n \"intervalTime\": \"\",\n \"maxRetries\": 0,\n \"retryStrategy\": \"\"\n },\n \"jsonValidationOption\": \"\",\n \"nextTasks\": [\n {}\n ],\n \"nextTasksExecutionPolicy\": \"\",\n \"parameters\": {},\n \"position\": {},\n \"successPolicy\": {\n \"finalState\": \"\"\n },\n \"synchronousCallFailurePolicy\": {},\n \"task\": \"\",\n \"taskExecutionStrategy\": \"\",\n \"taskId\": \"\",\n \"taskTemplate\": \"\"\n }\n ],\n \"taskConfigsInternal\": [\n {\n \"alertConfigs\": [\n {\n \"aggregationPeriod\": \"\",\n \"alertDisabled\": false,\n \"alertName\": \"\",\n \"clientId\": \"\",\n \"durationThresholdMs\": \"\",\n \"errorEnumList\": {\n \"enumStrings\": [],\n \"filterType\": \"\"\n },\n \"metricType\": \"\",\n \"numAggregationPeriods\": 0,\n \"onlyFinalAttempt\": false,\n \"playbookUrl\": \"\",\n \"thresholdType\": \"\",\n \"thresholdValue\": {\n \"absolute\": \"\",\n \"percentage\": 0\n },\n \"warningEnumList\": {}\n }\n ],\n \"createTime\": \"\",\n \"creatorEmail\": \"\",\n \"description\": \"\",\n \"disableStrictTypeValidation\": false,\n \"errorCatcherId\": \"\",\n \"externalTaskType\": \"\",\n \"failurePolicy\": {\n \"intervalInSeconds\": \"\",\n \"maxNumRetries\": 0,\n \"retryStrategy\": \"\"\n },\n \"incomingEdgeCount\": 0,\n \"jsonValidationOption\": \"\",\n \"label\": \"\",\n \"lastModifiedTime\": \"\",\n \"nextTasks\": [\n {\n \"combinedConditions\": [\n {\n \"conditions\": [\n {\n \"eventPropertyKey\": \"\",\n \"operator\": \"\",\n \"value\": {}\n }\n ]\n }\n ],\n \"condition\": \"\",\n \"description\": \"\",\n \"label\": \"\",\n \"taskConfigId\": \"\",\n \"taskNumber\": \"\"\n }\n ],\n \"nextTasksExecutionPolicy\": \"\",\n \"parameters\": {},\n \"position\": {\n \"x\": 0,\n \"y\": 0\n },\n \"precondition\": \"\",\n \"preconditionLabel\": \"\",\n \"rollbackStrategy\": {\n \"parameters\": {\n \"parameters\": [\n {\n \"dataType\": \"\",\n \"key\": \"\",\n \"value\": {}\n }\n ]\n },\n \"rollbackTaskImplementationClassName\": \"\",\n \"taskNumbersToRollback\": []\n },\n \"successPolicy\": {\n \"finalState\": \"\"\n },\n \"synchronousCallFailurePolicy\": {},\n \"taskEntity\": {\n \"disabledForVpcSc\": false,\n \"metadata\": {\n \"activeTaskName\": \"\",\n \"admins\": [\n {\n \"googleGroupEmail\": \"\",\n \"userEmail\": \"\"\n }\n ],\n \"category\": \"\",\n \"codeSearchLink\": \"\",\n \"defaultJsonValidationOption\": \"\",\n \"defaultSpec\": \"\",\n \"description\": \"\",\n \"descriptiveName\": \"\",\n \"docMarkdown\": \"\",\n \"externalCategory\": \"\",\n \"externalCategorySequence\": 0,\n \"externalDocHtml\": \"\",\n \"externalDocLink\": \"\",\n \"externalDocMarkdown\": \"\",\n \"g3DocLink\": \"\",\n \"iconLink\": \"\",\n \"isDeprecated\": false,\n \"name\": \"\",\n \"standaloneExternalDocHtml\": \"\",\n \"status\": \"\",\n \"system\": \"\",\n \"tags\": []\n },\n \"paramSpecs\": {\n \"parameters\": [\n {\n \"className\": \"\",\n \"collectionElementClassName\": \"\",\n \"config\": {\n \"descriptivePhrase\": \"\",\n \"helpText\": \"\",\n \"hideDefaultValue\": false,\n \"inputDisplayOption\": \"\",\n \"isHidden\": false,\n \"label\": \"\",\n \"parameterNameOption\": \"\",\n \"subSectionLabel\": \"\",\n \"uiPlaceholderText\": \"\"\n },\n \"dataType\": \"\",\n \"defaultValue\": {},\n \"isDeprecated\": false,\n \"isOutput\": false,\n \"jsonSchema\": \"\",\n \"key\": \"\",\n \"protoDef\": {\n \"fullName\": \"\",\n \"path\": \"\"\n },\n \"required\": false,\n \"validationRule\": {\n \"doubleRange\": {\n \"max\": \"\",\n \"min\": \"\"\n },\n \"intRange\": {\n \"max\": \"\",\n \"min\": \"\"\n },\n \"stringRegex\": {\n \"exclusive\": false,\n \"regex\": \"\"\n }\n }\n }\n ]\n },\n \"stats\": {\n \"dimensions\": {\n \"clientId\": \"\",\n \"enumFilterType\": \"\",\n \"errorEnumString\": \"\",\n \"retryAttempt\": \"\",\n \"taskName\": \"\",\n \"taskNumber\": \"\",\n \"triggerId\": \"\",\n \"warningEnumString\": \"\",\n \"workflowId\": \"\",\n \"workflowName\": \"\"\n },\n \"durationInSeconds\": \"\",\n \"errorRate\": \"\",\n \"qps\": \"\",\n \"warningRate\": \"\"\n },\n \"taskType\": \"\",\n \"uiConfig\": {\n \"taskUiModuleConfigs\": [\n {\n \"moduleId\": \"\"\n }\n ]\n }\n },\n \"taskExecutionStrategy\": \"\",\n \"taskName\": \"\",\n \"taskNumber\": \"\",\n \"taskSpec\": \"\",\n \"taskTemplateName\": \"\",\n \"taskType\": \"\"\n }\n ],\n \"teardown\": {\n \"teardownTaskConfigs\": [\n {\n \"creatorEmail\": \"\",\n \"name\": \"\",\n \"nextTeardownTask\": {\n \"name\": \"\"\n },\n \"parameters\": {\n \"parameters\": [\n {\n \"key\": \"\",\n \"value\": {\n \"booleanArray\": {\n \"booleanValues\": []\n },\n \"booleanValue\": false,\n \"doubleArray\": {\n \"doubleValues\": []\n },\n \"doubleValue\": \"\",\n \"intArray\": {\n \"intValues\": []\n },\n \"intValue\": \"\",\n \"protoArray\": {\n \"protoValues\": [\n {}\n ]\n },\n \"protoValue\": {},\n \"serializedObjectValue\": {\n \"objectValue\": \"\"\n },\n \"stringArray\": {\n \"stringValues\": []\n },\n \"stringValue\": \"\"\n }\n }\n ]\n },\n \"properties\": {\n \"properties\": [\n {\n \"key\": \"\",\n \"value\": {}\n }\n ]\n },\n \"teardownTaskImplementationClassName\": \"\"\n }\n ]\n },\n \"triggerConfigs\": [\n {\n \"alertConfig\": [\n {\n \"aggregationPeriod\": \"\",\n \"alertThreshold\": 0,\n \"disableAlert\": false,\n \"displayName\": \"\",\n \"durationThreshold\": \"\",\n \"metricType\": \"\",\n \"onlyFinalAttempt\": false,\n \"thresholdType\": \"\",\n \"thresholdValue\": {\n \"absolute\": \"\",\n \"percentage\": 0\n }\n }\n ],\n \"cloudSchedulerConfig\": {\n \"cronTab\": \"\",\n \"errorMessage\": \"\",\n \"location\": \"\",\n \"serviceAccountEmail\": \"\"\n },\n \"description\": \"\",\n \"errorCatcherId\": \"\",\n \"label\": \"\",\n \"nextTasksExecutionPolicy\": \"\",\n \"position\": {},\n \"properties\": {},\n \"startTasks\": [\n {}\n ],\n \"triggerId\": \"\",\n \"triggerNumber\": \"\",\n \"triggerType\": \"\"\n }\n ],\n \"triggerConfigsInternal\": [\n {\n \"alertConfig\": [\n {\n \"aggregationPeriod\": \"\",\n \"alertDisabled\": false,\n \"alertName\": \"\",\n \"clientId\": \"\",\n \"durationThresholdMs\": \"\",\n \"errorEnumList\": {},\n \"metricType\": \"\",\n \"numAggregationPeriods\": 0,\n \"onlyFinalAttempt\": false,\n \"playbookUrl\": \"\",\n \"thresholdType\": \"\",\n \"thresholdValue\": {},\n \"warningEnumList\": {}\n }\n ],\n \"cloudSchedulerConfig\": {\n \"cronTab\": \"\",\n \"errorMessage\": \"\",\n \"location\": \"\",\n \"serviceAccountEmail\": \"\"\n },\n \"description\": \"\",\n \"enabledClients\": [],\n \"errorCatcherId\": \"\",\n \"label\": \"\",\n \"nextTasksExecutionPolicy\": \"\",\n \"pauseWorkflowExecutions\": false,\n \"position\": {},\n \"properties\": {},\n \"startTasks\": [\n {}\n ],\n \"triggerCriteria\": {\n \"condition\": \"\",\n \"parameters\": {},\n \"triggerCriteriaTaskImplementationClassName\": \"\"\n },\n \"triggerId\": \"\",\n \"triggerNumber\": \"\",\n \"triggerType\": \"\"\n }\n ],\n \"updateTime\": \"\",\n \"userLabel\": \"\"\n}"
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
headers: {'Content-Type' => 'application/json'}
)
response = conn.post('/baseUrl/v1/:parent/versions') do |req|
req.body = "{\n \"createTime\": \"\",\n \"databasePersistencePolicy\": \"\",\n \"description\": \"\",\n \"errorCatcherConfigs\": [\n {\n \"description\": \"\",\n \"errorCatcherId\": \"\",\n \"errorCatcherNumber\": \"\",\n \"label\": \"\",\n \"position\": {\n \"x\": 0,\n \"y\": 0\n },\n \"startErrorTasks\": [\n {\n \"condition\": \"\",\n \"description\": \"\",\n \"displayName\": \"\",\n \"taskConfigId\": \"\",\n \"taskId\": \"\"\n }\n ]\n }\n ],\n \"integrationParameters\": [\n {\n \"dataType\": \"\",\n \"defaultValue\": {\n \"booleanArray\": {\n \"booleanValues\": []\n },\n \"booleanValue\": false,\n \"doubleArray\": {\n \"doubleValues\": []\n },\n \"doubleValue\": \"\",\n \"intArray\": {\n \"intValues\": []\n },\n \"intValue\": \"\",\n \"jsonValue\": \"\",\n \"stringArray\": {\n \"stringValues\": []\n },\n \"stringValue\": \"\"\n },\n \"displayName\": \"\",\n \"inputOutputType\": \"\",\n \"isTransient\": false,\n \"jsonSchema\": \"\",\n \"key\": \"\",\n \"producer\": \"\",\n \"searchable\": false\n }\n ],\n \"integrationParametersInternal\": {\n \"parameters\": [\n {\n \"attributes\": {\n \"dataType\": \"\",\n \"defaultValue\": {\n \"booleanValue\": false,\n \"doubleArray\": {\n \"values\": []\n },\n \"doubleValue\": \"\",\n \"intArray\": {\n \"values\": []\n },\n \"intValue\": \"\",\n \"protoValue\": {},\n \"stringArray\": {\n \"values\": []\n },\n \"stringValue\": \"\"\n },\n \"isRequired\": false,\n \"isSearchable\": false,\n \"logSettings\": {\n \"logFieldName\": \"\",\n \"sanitizeOptions\": {\n \"isAlreadySanitized\": false,\n \"logType\": [],\n \"privacy\": \"\",\n \"sanitizeType\": \"\"\n },\n \"seedPeriod\": \"\",\n \"seedScope\": \"\",\n \"shorteningLimits\": {\n \"logAction\": \"\",\n \"logType\": [],\n \"maxArraySize\": 0,\n \"maxStringLength\": 0,\n \"shortenerType\": \"\"\n }\n },\n \"searchable\": \"\",\n \"taskVisibility\": []\n },\n \"children\": [],\n \"dataType\": \"\",\n \"defaultValue\": {\n \"booleanArray\": {\n \"booleanValues\": []\n },\n \"booleanValue\": false,\n \"doubleArray\": {\n \"doubleValues\": []\n },\n \"doubleValue\": \"\",\n \"intArray\": {\n \"intValues\": []\n },\n \"intValue\": \"\",\n \"jsonValue\": \"\",\n \"protoArray\": {\n \"protoValues\": [\n {}\n ]\n },\n \"protoValue\": {},\n \"serializedObjectValue\": {\n \"objectValue\": \"\"\n },\n \"stringArray\": {\n \"stringValues\": []\n },\n \"stringValue\": \"\"\n },\n \"inOutType\": \"\",\n \"isTransient\": false,\n \"jsonSchema\": \"\",\n \"key\": \"\",\n \"name\": \"\",\n \"producedBy\": {\n \"elementIdentifier\": \"\",\n \"elementType\": \"\"\n },\n \"producer\": \"\",\n \"protoDefName\": \"\",\n \"protoDefPath\": \"\"\n }\n ]\n },\n \"lastModifierEmail\": \"\",\n \"lockHolder\": \"\",\n \"name\": \"\",\n \"origin\": \"\",\n \"parentTemplateId\": \"\",\n \"runAsServiceAccount\": \"\",\n \"snapshotNumber\": \"\",\n \"state\": \"\",\n \"status\": \"\",\n \"taskConfigs\": [\n {\n \"description\": \"\",\n \"displayName\": \"\",\n \"errorCatcherId\": \"\",\n \"externalTaskType\": \"\",\n \"failurePolicy\": {\n \"intervalTime\": \"\",\n \"maxRetries\": 0,\n \"retryStrategy\": \"\"\n },\n \"jsonValidationOption\": \"\",\n \"nextTasks\": [\n {}\n ],\n \"nextTasksExecutionPolicy\": \"\",\n \"parameters\": {},\n \"position\": {},\n \"successPolicy\": {\n \"finalState\": \"\"\n },\n \"synchronousCallFailurePolicy\": {},\n \"task\": \"\",\n \"taskExecutionStrategy\": \"\",\n \"taskId\": \"\",\n \"taskTemplate\": \"\"\n }\n ],\n \"taskConfigsInternal\": [\n {\n \"alertConfigs\": [\n {\n \"aggregationPeriod\": \"\",\n \"alertDisabled\": false,\n \"alertName\": \"\",\n \"clientId\": \"\",\n \"durationThresholdMs\": \"\",\n \"errorEnumList\": {\n \"enumStrings\": [],\n \"filterType\": \"\"\n },\n \"metricType\": \"\",\n \"numAggregationPeriods\": 0,\n \"onlyFinalAttempt\": false,\n \"playbookUrl\": \"\",\n \"thresholdType\": \"\",\n \"thresholdValue\": {\n \"absolute\": \"\",\n \"percentage\": 0\n },\n \"warningEnumList\": {}\n }\n ],\n \"createTime\": \"\",\n \"creatorEmail\": \"\",\n \"description\": \"\",\n \"disableStrictTypeValidation\": false,\n \"errorCatcherId\": \"\",\n \"externalTaskType\": \"\",\n \"failurePolicy\": {\n \"intervalInSeconds\": \"\",\n \"maxNumRetries\": 0,\n \"retryStrategy\": \"\"\n },\n \"incomingEdgeCount\": 0,\n \"jsonValidationOption\": \"\",\n \"label\": \"\",\n \"lastModifiedTime\": \"\",\n \"nextTasks\": [\n {\n \"combinedConditions\": [\n {\n \"conditions\": [\n {\n \"eventPropertyKey\": \"\",\n \"operator\": \"\",\n \"value\": {}\n }\n ]\n }\n ],\n \"condition\": \"\",\n \"description\": \"\",\n \"label\": \"\",\n \"taskConfigId\": \"\",\n \"taskNumber\": \"\"\n }\n ],\n \"nextTasksExecutionPolicy\": \"\",\n \"parameters\": {},\n \"position\": {\n \"x\": 0,\n \"y\": 0\n },\n \"precondition\": \"\",\n \"preconditionLabel\": \"\",\n \"rollbackStrategy\": {\n \"parameters\": {\n \"parameters\": [\n {\n \"dataType\": \"\",\n \"key\": \"\",\n \"value\": {}\n }\n ]\n },\n \"rollbackTaskImplementationClassName\": \"\",\n \"taskNumbersToRollback\": []\n },\n \"successPolicy\": {\n \"finalState\": \"\"\n },\n \"synchronousCallFailurePolicy\": {},\n \"taskEntity\": {\n \"disabledForVpcSc\": false,\n \"metadata\": {\n \"activeTaskName\": \"\",\n \"admins\": [\n {\n \"googleGroupEmail\": \"\",\n \"userEmail\": \"\"\n }\n ],\n \"category\": \"\",\n \"codeSearchLink\": \"\",\n \"defaultJsonValidationOption\": \"\",\n \"defaultSpec\": \"\",\n \"description\": \"\",\n \"descriptiveName\": \"\",\n \"docMarkdown\": \"\",\n \"externalCategory\": \"\",\n \"externalCategorySequence\": 0,\n \"externalDocHtml\": \"\",\n \"externalDocLink\": \"\",\n \"externalDocMarkdown\": \"\",\n \"g3DocLink\": \"\",\n \"iconLink\": \"\",\n \"isDeprecated\": false,\n \"name\": \"\",\n \"standaloneExternalDocHtml\": \"\",\n \"status\": \"\",\n \"system\": \"\",\n \"tags\": []\n },\n \"paramSpecs\": {\n \"parameters\": [\n {\n \"className\": \"\",\n \"collectionElementClassName\": \"\",\n \"config\": {\n \"descriptivePhrase\": \"\",\n \"helpText\": \"\",\n \"hideDefaultValue\": false,\n \"inputDisplayOption\": \"\",\n \"isHidden\": false,\n \"label\": \"\",\n \"parameterNameOption\": \"\",\n \"subSectionLabel\": \"\",\n \"uiPlaceholderText\": \"\"\n },\n \"dataType\": \"\",\n \"defaultValue\": {},\n \"isDeprecated\": false,\n \"isOutput\": false,\n \"jsonSchema\": \"\",\n \"key\": \"\",\n \"protoDef\": {\n \"fullName\": \"\",\n \"path\": \"\"\n },\n \"required\": false,\n \"validationRule\": {\n \"doubleRange\": {\n \"max\": \"\",\n \"min\": \"\"\n },\n \"intRange\": {\n \"max\": \"\",\n \"min\": \"\"\n },\n \"stringRegex\": {\n \"exclusive\": false,\n \"regex\": \"\"\n }\n }\n }\n ]\n },\n \"stats\": {\n \"dimensions\": {\n \"clientId\": \"\",\n \"enumFilterType\": \"\",\n \"errorEnumString\": \"\",\n \"retryAttempt\": \"\",\n \"taskName\": \"\",\n \"taskNumber\": \"\",\n \"triggerId\": \"\",\n \"warningEnumString\": \"\",\n \"workflowId\": \"\",\n \"workflowName\": \"\"\n },\n \"durationInSeconds\": \"\",\n \"errorRate\": \"\",\n \"qps\": \"\",\n \"warningRate\": \"\"\n },\n \"taskType\": \"\",\n \"uiConfig\": {\n \"taskUiModuleConfigs\": [\n {\n \"moduleId\": \"\"\n }\n ]\n }\n },\n \"taskExecutionStrategy\": \"\",\n \"taskName\": \"\",\n \"taskNumber\": \"\",\n \"taskSpec\": \"\",\n \"taskTemplateName\": \"\",\n \"taskType\": \"\"\n }\n ],\n \"teardown\": {\n \"teardownTaskConfigs\": [\n {\n \"creatorEmail\": \"\",\n \"name\": \"\",\n \"nextTeardownTask\": {\n \"name\": \"\"\n },\n \"parameters\": {\n \"parameters\": [\n {\n \"key\": \"\",\n \"value\": {\n \"booleanArray\": {\n \"booleanValues\": []\n },\n \"booleanValue\": false,\n \"doubleArray\": {\n \"doubleValues\": []\n },\n \"doubleValue\": \"\",\n \"intArray\": {\n \"intValues\": []\n },\n \"intValue\": \"\",\n \"protoArray\": {\n \"protoValues\": [\n {}\n ]\n },\n \"protoValue\": {},\n \"serializedObjectValue\": {\n \"objectValue\": \"\"\n },\n \"stringArray\": {\n \"stringValues\": []\n },\n \"stringValue\": \"\"\n }\n }\n ]\n },\n \"properties\": {\n \"properties\": [\n {\n \"key\": \"\",\n \"value\": {}\n }\n ]\n },\n \"teardownTaskImplementationClassName\": \"\"\n }\n ]\n },\n \"triggerConfigs\": [\n {\n \"alertConfig\": [\n {\n \"aggregationPeriod\": \"\",\n \"alertThreshold\": 0,\n \"disableAlert\": false,\n \"displayName\": \"\",\n \"durationThreshold\": \"\",\n \"metricType\": \"\",\n \"onlyFinalAttempt\": false,\n \"thresholdType\": \"\",\n \"thresholdValue\": {\n \"absolute\": \"\",\n \"percentage\": 0\n }\n }\n ],\n \"cloudSchedulerConfig\": {\n \"cronTab\": \"\",\n \"errorMessage\": \"\",\n \"location\": \"\",\n \"serviceAccountEmail\": \"\"\n },\n \"description\": \"\",\n \"errorCatcherId\": \"\",\n \"label\": \"\",\n \"nextTasksExecutionPolicy\": \"\",\n \"position\": {},\n \"properties\": {},\n \"startTasks\": [\n {}\n ],\n \"triggerId\": \"\",\n \"triggerNumber\": \"\",\n \"triggerType\": \"\"\n }\n ],\n \"triggerConfigsInternal\": [\n {\n \"alertConfig\": [\n {\n \"aggregationPeriod\": \"\",\n \"alertDisabled\": false,\n \"alertName\": \"\",\n \"clientId\": \"\",\n \"durationThresholdMs\": \"\",\n \"errorEnumList\": {},\n \"metricType\": \"\",\n \"numAggregationPeriods\": 0,\n \"onlyFinalAttempt\": false,\n \"playbookUrl\": \"\",\n \"thresholdType\": \"\",\n \"thresholdValue\": {},\n \"warningEnumList\": {}\n }\n ],\n \"cloudSchedulerConfig\": {\n \"cronTab\": \"\",\n \"errorMessage\": \"\",\n \"location\": \"\",\n \"serviceAccountEmail\": \"\"\n },\n \"description\": \"\",\n \"enabledClients\": [],\n \"errorCatcherId\": \"\",\n \"label\": \"\",\n \"nextTasksExecutionPolicy\": \"\",\n \"pauseWorkflowExecutions\": false,\n \"position\": {},\n \"properties\": {},\n \"startTasks\": [\n {}\n ],\n \"triggerCriteria\": {\n \"condition\": \"\",\n \"parameters\": {},\n \"triggerCriteriaTaskImplementationClassName\": \"\"\n },\n \"triggerId\": \"\",\n \"triggerNumber\": \"\",\n \"triggerType\": \"\"\n }\n ],\n \"updateTime\": \"\",\n \"userLabel\": \"\"\n}"
end
puts response.status
puts response.body
use serde_json::json;
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/v1/:parent/versions";
let payload = json!({
"createTime": "",
"databasePersistencePolicy": "",
"description": "",
"errorCatcherConfigs": (
json!({
"description": "",
"errorCatcherId": "",
"errorCatcherNumber": "",
"label": "",
"position": json!({
"x": 0,
"y": 0
}),
"startErrorTasks": (
json!({
"condition": "",
"description": "",
"displayName": "",
"taskConfigId": "",
"taskId": ""
})
)
})
),
"integrationParameters": (
json!({
"dataType": "",
"defaultValue": json!({
"booleanArray": json!({"booleanValues": ()}),
"booleanValue": false,
"doubleArray": json!({"doubleValues": ()}),
"doubleValue": "",
"intArray": json!({"intValues": ()}),
"intValue": "",
"jsonValue": "",
"stringArray": json!({"stringValues": ()}),
"stringValue": ""
}),
"displayName": "",
"inputOutputType": "",
"isTransient": false,
"jsonSchema": "",
"key": "",
"producer": "",
"searchable": false
})
),
"integrationParametersInternal": json!({"parameters": (
json!({
"attributes": json!({
"dataType": "",
"defaultValue": json!({
"booleanValue": false,
"doubleArray": json!({"values": ()}),
"doubleValue": "",
"intArray": json!({"values": ()}),
"intValue": "",
"protoValue": json!({}),
"stringArray": json!({"values": ()}),
"stringValue": ""
}),
"isRequired": false,
"isSearchable": false,
"logSettings": json!({
"logFieldName": "",
"sanitizeOptions": json!({
"isAlreadySanitized": false,
"logType": (),
"privacy": "",
"sanitizeType": ""
}),
"seedPeriod": "",
"seedScope": "",
"shorteningLimits": json!({
"logAction": "",
"logType": (),
"maxArraySize": 0,
"maxStringLength": 0,
"shortenerType": ""
})
}),
"searchable": "",
"taskVisibility": ()
}),
"children": (),
"dataType": "",
"defaultValue": json!({
"booleanArray": json!({"booleanValues": ()}),
"booleanValue": false,
"doubleArray": json!({"doubleValues": ()}),
"doubleValue": "",
"intArray": json!({"intValues": ()}),
"intValue": "",
"jsonValue": "",
"protoArray": json!({"protoValues": (json!({}))}),
"protoValue": json!({}),
"serializedObjectValue": json!({"objectValue": ""}),
"stringArray": json!({"stringValues": ()}),
"stringValue": ""
}),
"inOutType": "",
"isTransient": false,
"jsonSchema": "",
"key": "",
"name": "",
"producedBy": json!({
"elementIdentifier": "",
"elementType": ""
}),
"producer": "",
"protoDefName": "",
"protoDefPath": ""
})
)}),
"lastModifierEmail": "",
"lockHolder": "",
"name": "",
"origin": "",
"parentTemplateId": "",
"runAsServiceAccount": "",
"snapshotNumber": "",
"state": "",
"status": "",
"taskConfigs": (
json!({
"description": "",
"displayName": "",
"errorCatcherId": "",
"externalTaskType": "",
"failurePolicy": json!({
"intervalTime": "",
"maxRetries": 0,
"retryStrategy": ""
}),
"jsonValidationOption": "",
"nextTasks": (json!({})),
"nextTasksExecutionPolicy": "",
"parameters": json!({}),
"position": json!({}),
"successPolicy": json!({"finalState": ""}),
"synchronousCallFailurePolicy": json!({}),
"task": "",
"taskExecutionStrategy": "",
"taskId": "",
"taskTemplate": ""
})
),
"taskConfigsInternal": (
json!({
"alertConfigs": (
json!({
"aggregationPeriod": "",
"alertDisabled": false,
"alertName": "",
"clientId": "",
"durationThresholdMs": "",
"errorEnumList": json!({
"enumStrings": (),
"filterType": ""
}),
"metricType": "",
"numAggregationPeriods": 0,
"onlyFinalAttempt": false,
"playbookUrl": "",
"thresholdType": "",
"thresholdValue": json!({
"absolute": "",
"percentage": 0
}),
"warningEnumList": json!({})
})
),
"createTime": "",
"creatorEmail": "",
"description": "",
"disableStrictTypeValidation": false,
"errorCatcherId": "",
"externalTaskType": "",
"failurePolicy": json!({
"intervalInSeconds": "",
"maxNumRetries": 0,
"retryStrategy": ""
}),
"incomingEdgeCount": 0,
"jsonValidationOption": "",
"label": "",
"lastModifiedTime": "",
"nextTasks": (
json!({
"combinedConditions": (json!({"conditions": (
json!({
"eventPropertyKey": "",
"operator": "",
"value": json!({})
})
)})),
"condition": "",
"description": "",
"label": "",
"taskConfigId": "",
"taskNumber": ""
})
),
"nextTasksExecutionPolicy": "",
"parameters": json!({}),
"position": json!({
"x": 0,
"y": 0
}),
"precondition": "",
"preconditionLabel": "",
"rollbackStrategy": json!({
"parameters": json!({"parameters": (
json!({
"dataType": "",
"key": "",
"value": json!({})
})
)}),
"rollbackTaskImplementationClassName": "",
"taskNumbersToRollback": ()
}),
"successPolicy": json!({"finalState": ""}),
"synchronousCallFailurePolicy": json!({}),
"taskEntity": json!({
"disabledForVpcSc": false,
"metadata": json!({
"activeTaskName": "",
"admins": (
json!({
"googleGroupEmail": "",
"userEmail": ""
})
),
"category": "",
"codeSearchLink": "",
"defaultJsonValidationOption": "",
"defaultSpec": "",
"description": "",
"descriptiveName": "",
"docMarkdown": "",
"externalCategory": "",
"externalCategorySequence": 0,
"externalDocHtml": "",
"externalDocLink": "",
"externalDocMarkdown": "",
"g3DocLink": "",
"iconLink": "",
"isDeprecated": false,
"name": "",
"standaloneExternalDocHtml": "",
"status": "",
"system": "",
"tags": ()
}),
"paramSpecs": json!({"parameters": (
json!({
"className": "",
"collectionElementClassName": "",
"config": json!({
"descriptivePhrase": "",
"helpText": "",
"hideDefaultValue": false,
"inputDisplayOption": "",
"isHidden": false,
"label": "",
"parameterNameOption": "",
"subSectionLabel": "",
"uiPlaceholderText": ""
}),
"dataType": "",
"defaultValue": json!({}),
"isDeprecated": false,
"isOutput": false,
"jsonSchema": "",
"key": "",
"protoDef": json!({
"fullName": "",
"path": ""
}),
"required": false,
"validationRule": json!({
"doubleRange": json!({
"max": "",
"min": ""
}),
"intRange": json!({
"max": "",
"min": ""
}),
"stringRegex": json!({
"exclusive": false,
"regex": ""
})
})
})
)}),
"stats": json!({
"dimensions": json!({
"clientId": "",
"enumFilterType": "",
"errorEnumString": "",
"retryAttempt": "",
"taskName": "",
"taskNumber": "",
"triggerId": "",
"warningEnumString": "",
"workflowId": "",
"workflowName": ""
}),
"durationInSeconds": "",
"errorRate": "",
"qps": "",
"warningRate": ""
}),
"taskType": "",
"uiConfig": json!({"taskUiModuleConfigs": (json!({"moduleId": ""}))})
}),
"taskExecutionStrategy": "",
"taskName": "",
"taskNumber": "",
"taskSpec": "",
"taskTemplateName": "",
"taskType": ""
})
),
"teardown": json!({"teardownTaskConfigs": (
json!({
"creatorEmail": "",
"name": "",
"nextTeardownTask": json!({"name": ""}),
"parameters": json!({"parameters": (
json!({
"key": "",
"value": json!({
"booleanArray": json!({"booleanValues": ()}),
"booleanValue": false,
"doubleArray": json!({"doubleValues": ()}),
"doubleValue": "",
"intArray": json!({"intValues": ()}),
"intValue": "",
"protoArray": json!({"protoValues": (json!({}))}),
"protoValue": json!({}),
"serializedObjectValue": json!({"objectValue": ""}),
"stringArray": json!({"stringValues": ()}),
"stringValue": ""
})
})
)}),
"properties": json!({"properties": (
json!({
"key": "",
"value": json!({})
})
)}),
"teardownTaskImplementationClassName": ""
})
)}),
"triggerConfigs": (
json!({
"alertConfig": (
json!({
"aggregationPeriod": "",
"alertThreshold": 0,
"disableAlert": false,
"displayName": "",
"durationThreshold": "",
"metricType": "",
"onlyFinalAttempt": false,
"thresholdType": "",
"thresholdValue": json!({
"absolute": "",
"percentage": 0
})
})
),
"cloudSchedulerConfig": json!({
"cronTab": "",
"errorMessage": "",
"location": "",
"serviceAccountEmail": ""
}),
"description": "",
"errorCatcherId": "",
"label": "",
"nextTasksExecutionPolicy": "",
"position": json!({}),
"properties": json!({}),
"startTasks": (json!({})),
"triggerId": "",
"triggerNumber": "",
"triggerType": ""
})
),
"triggerConfigsInternal": (
json!({
"alertConfig": (
json!({
"aggregationPeriod": "",
"alertDisabled": false,
"alertName": "",
"clientId": "",
"durationThresholdMs": "",
"errorEnumList": json!({}),
"metricType": "",
"numAggregationPeriods": 0,
"onlyFinalAttempt": false,
"playbookUrl": "",
"thresholdType": "",
"thresholdValue": json!({}),
"warningEnumList": json!({})
})
),
"cloudSchedulerConfig": json!({
"cronTab": "",
"errorMessage": "",
"location": "",
"serviceAccountEmail": ""
}),
"description": "",
"enabledClients": (),
"errorCatcherId": "",
"label": "",
"nextTasksExecutionPolicy": "",
"pauseWorkflowExecutions": false,
"position": json!({}),
"properties": json!({}),
"startTasks": (json!({})),
"triggerCriteria": json!({
"condition": "",
"parameters": json!({}),
"triggerCriteriaTaskImplementationClassName": ""
}),
"triggerId": "",
"triggerNumber": "",
"triggerType": ""
})
),
"updateTime": "",
"userLabel": ""
});
let mut headers = reqwest::header::HeaderMap::new();
headers.insert("content-type", "application/json".parse().unwrap());
let client = reqwest::Client::new();
let response = client.post(url)
.headers(headers)
.json(&payload)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request POST \
--url {{baseUrl}}/v1/:parent/versions \
--header 'content-type: application/json' \
--data '{
"createTime": "",
"databasePersistencePolicy": "",
"description": "",
"errorCatcherConfigs": [
{
"description": "",
"errorCatcherId": "",
"errorCatcherNumber": "",
"label": "",
"position": {
"x": 0,
"y": 0
},
"startErrorTasks": [
{
"condition": "",
"description": "",
"displayName": "",
"taskConfigId": "",
"taskId": ""
}
]
}
],
"integrationParameters": [
{
"dataType": "",
"defaultValue": {
"booleanArray": {
"booleanValues": []
},
"booleanValue": false,
"doubleArray": {
"doubleValues": []
},
"doubleValue": "",
"intArray": {
"intValues": []
},
"intValue": "",
"jsonValue": "",
"stringArray": {
"stringValues": []
},
"stringValue": ""
},
"displayName": "",
"inputOutputType": "",
"isTransient": false,
"jsonSchema": "",
"key": "",
"producer": "",
"searchable": false
}
],
"integrationParametersInternal": {
"parameters": [
{
"attributes": {
"dataType": "",
"defaultValue": {
"booleanValue": false,
"doubleArray": {
"values": []
},
"doubleValue": "",
"intArray": {
"values": []
},
"intValue": "",
"protoValue": {},
"stringArray": {
"values": []
},
"stringValue": ""
},
"isRequired": false,
"isSearchable": false,
"logSettings": {
"logFieldName": "",
"sanitizeOptions": {
"isAlreadySanitized": false,
"logType": [],
"privacy": "",
"sanitizeType": ""
},
"seedPeriod": "",
"seedScope": "",
"shorteningLimits": {
"logAction": "",
"logType": [],
"maxArraySize": 0,
"maxStringLength": 0,
"shortenerType": ""
}
},
"searchable": "",
"taskVisibility": []
},
"children": [],
"dataType": "",
"defaultValue": {
"booleanArray": {
"booleanValues": []
},
"booleanValue": false,
"doubleArray": {
"doubleValues": []
},
"doubleValue": "",
"intArray": {
"intValues": []
},
"intValue": "",
"jsonValue": "",
"protoArray": {
"protoValues": [
{}
]
},
"protoValue": {},
"serializedObjectValue": {
"objectValue": ""
},
"stringArray": {
"stringValues": []
},
"stringValue": ""
},
"inOutType": "",
"isTransient": false,
"jsonSchema": "",
"key": "",
"name": "",
"producedBy": {
"elementIdentifier": "",
"elementType": ""
},
"producer": "",
"protoDefName": "",
"protoDefPath": ""
}
]
},
"lastModifierEmail": "",
"lockHolder": "",
"name": "",
"origin": "",
"parentTemplateId": "",
"runAsServiceAccount": "",
"snapshotNumber": "",
"state": "",
"status": "",
"taskConfigs": [
{
"description": "",
"displayName": "",
"errorCatcherId": "",
"externalTaskType": "",
"failurePolicy": {
"intervalTime": "",
"maxRetries": 0,
"retryStrategy": ""
},
"jsonValidationOption": "",
"nextTasks": [
{}
],
"nextTasksExecutionPolicy": "",
"parameters": {},
"position": {},
"successPolicy": {
"finalState": ""
},
"synchronousCallFailurePolicy": {},
"task": "",
"taskExecutionStrategy": "",
"taskId": "",
"taskTemplate": ""
}
],
"taskConfigsInternal": [
{
"alertConfigs": [
{
"aggregationPeriod": "",
"alertDisabled": false,
"alertName": "",
"clientId": "",
"durationThresholdMs": "",
"errorEnumList": {
"enumStrings": [],
"filterType": ""
},
"metricType": "",
"numAggregationPeriods": 0,
"onlyFinalAttempt": false,
"playbookUrl": "",
"thresholdType": "",
"thresholdValue": {
"absolute": "",
"percentage": 0
},
"warningEnumList": {}
}
],
"createTime": "",
"creatorEmail": "",
"description": "",
"disableStrictTypeValidation": false,
"errorCatcherId": "",
"externalTaskType": "",
"failurePolicy": {
"intervalInSeconds": "",
"maxNumRetries": 0,
"retryStrategy": ""
},
"incomingEdgeCount": 0,
"jsonValidationOption": "",
"label": "",
"lastModifiedTime": "",
"nextTasks": [
{
"combinedConditions": [
{
"conditions": [
{
"eventPropertyKey": "",
"operator": "",
"value": {}
}
]
}
],
"condition": "",
"description": "",
"label": "",
"taskConfigId": "",
"taskNumber": ""
}
],
"nextTasksExecutionPolicy": "",
"parameters": {},
"position": {
"x": 0,
"y": 0
},
"precondition": "",
"preconditionLabel": "",
"rollbackStrategy": {
"parameters": {
"parameters": [
{
"dataType": "",
"key": "",
"value": {}
}
]
},
"rollbackTaskImplementationClassName": "",
"taskNumbersToRollback": []
},
"successPolicy": {
"finalState": ""
},
"synchronousCallFailurePolicy": {},
"taskEntity": {
"disabledForVpcSc": false,
"metadata": {
"activeTaskName": "",
"admins": [
{
"googleGroupEmail": "",
"userEmail": ""
}
],
"category": "",
"codeSearchLink": "",
"defaultJsonValidationOption": "",
"defaultSpec": "",
"description": "",
"descriptiveName": "",
"docMarkdown": "",
"externalCategory": "",
"externalCategorySequence": 0,
"externalDocHtml": "",
"externalDocLink": "",
"externalDocMarkdown": "",
"g3DocLink": "",
"iconLink": "",
"isDeprecated": false,
"name": "",
"standaloneExternalDocHtml": "",
"status": "",
"system": "",
"tags": []
},
"paramSpecs": {
"parameters": [
{
"className": "",
"collectionElementClassName": "",
"config": {
"descriptivePhrase": "",
"helpText": "",
"hideDefaultValue": false,
"inputDisplayOption": "",
"isHidden": false,
"label": "",
"parameterNameOption": "",
"subSectionLabel": "",
"uiPlaceholderText": ""
},
"dataType": "",
"defaultValue": {},
"isDeprecated": false,
"isOutput": false,
"jsonSchema": "",
"key": "",
"protoDef": {
"fullName": "",
"path": ""
},
"required": false,
"validationRule": {
"doubleRange": {
"max": "",
"min": ""
},
"intRange": {
"max": "",
"min": ""
},
"stringRegex": {
"exclusive": false,
"regex": ""
}
}
}
]
},
"stats": {
"dimensions": {
"clientId": "",
"enumFilterType": "",
"errorEnumString": "",
"retryAttempt": "",
"taskName": "",
"taskNumber": "",
"triggerId": "",
"warningEnumString": "",
"workflowId": "",
"workflowName": ""
},
"durationInSeconds": "",
"errorRate": "",
"qps": "",
"warningRate": ""
},
"taskType": "",
"uiConfig": {
"taskUiModuleConfigs": [
{
"moduleId": ""
}
]
}
},
"taskExecutionStrategy": "",
"taskName": "",
"taskNumber": "",
"taskSpec": "",
"taskTemplateName": "",
"taskType": ""
}
],
"teardown": {
"teardownTaskConfigs": [
{
"creatorEmail": "",
"name": "",
"nextTeardownTask": {
"name": ""
},
"parameters": {
"parameters": [
{
"key": "",
"value": {
"booleanArray": {
"booleanValues": []
},
"booleanValue": false,
"doubleArray": {
"doubleValues": []
},
"doubleValue": "",
"intArray": {
"intValues": []
},
"intValue": "",
"protoArray": {
"protoValues": [
{}
]
},
"protoValue": {},
"serializedObjectValue": {
"objectValue": ""
},
"stringArray": {
"stringValues": []
},
"stringValue": ""
}
}
]
},
"properties": {
"properties": [
{
"key": "",
"value": {}
}
]
},
"teardownTaskImplementationClassName": ""
}
]
},
"triggerConfigs": [
{
"alertConfig": [
{
"aggregationPeriod": "",
"alertThreshold": 0,
"disableAlert": false,
"displayName": "",
"durationThreshold": "",
"metricType": "",
"onlyFinalAttempt": false,
"thresholdType": "",
"thresholdValue": {
"absolute": "",
"percentage": 0
}
}
],
"cloudSchedulerConfig": {
"cronTab": "",
"errorMessage": "",
"location": "",
"serviceAccountEmail": ""
},
"description": "",
"errorCatcherId": "",
"label": "",
"nextTasksExecutionPolicy": "",
"position": {},
"properties": {},
"startTasks": [
{}
],
"triggerId": "",
"triggerNumber": "",
"triggerType": ""
}
],
"triggerConfigsInternal": [
{
"alertConfig": [
{
"aggregationPeriod": "",
"alertDisabled": false,
"alertName": "",
"clientId": "",
"durationThresholdMs": "",
"errorEnumList": {},
"metricType": "",
"numAggregationPeriods": 0,
"onlyFinalAttempt": false,
"playbookUrl": "",
"thresholdType": "",
"thresholdValue": {},
"warningEnumList": {}
}
],
"cloudSchedulerConfig": {
"cronTab": "",
"errorMessage": "",
"location": "",
"serviceAccountEmail": ""
},
"description": "",
"enabledClients": [],
"errorCatcherId": "",
"label": "",
"nextTasksExecutionPolicy": "",
"pauseWorkflowExecutions": false,
"position": {},
"properties": {},
"startTasks": [
{}
],
"triggerCriteria": {
"condition": "",
"parameters": {},
"triggerCriteriaTaskImplementationClassName": ""
},
"triggerId": "",
"triggerNumber": "",
"triggerType": ""
}
],
"updateTime": "",
"userLabel": ""
}'
echo '{
"createTime": "",
"databasePersistencePolicy": "",
"description": "",
"errorCatcherConfigs": [
{
"description": "",
"errorCatcherId": "",
"errorCatcherNumber": "",
"label": "",
"position": {
"x": 0,
"y": 0
},
"startErrorTasks": [
{
"condition": "",
"description": "",
"displayName": "",
"taskConfigId": "",
"taskId": ""
}
]
}
],
"integrationParameters": [
{
"dataType": "",
"defaultValue": {
"booleanArray": {
"booleanValues": []
},
"booleanValue": false,
"doubleArray": {
"doubleValues": []
},
"doubleValue": "",
"intArray": {
"intValues": []
},
"intValue": "",
"jsonValue": "",
"stringArray": {
"stringValues": []
},
"stringValue": ""
},
"displayName": "",
"inputOutputType": "",
"isTransient": false,
"jsonSchema": "",
"key": "",
"producer": "",
"searchable": false
}
],
"integrationParametersInternal": {
"parameters": [
{
"attributes": {
"dataType": "",
"defaultValue": {
"booleanValue": false,
"doubleArray": {
"values": []
},
"doubleValue": "",
"intArray": {
"values": []
},
"intValue": "",
"protoValue": {},
"stringArray": {
"values": []
},
"stringValue": ""
},
"isRequired": false,
"isSearchable": false,
"logSettings": {
"logFieldName": "",
"sanitizeOptions": {
"isAlreadySanitized": false,
"logType": [],
"privacy": "",
"sanitizeType": ""
},
"seedPeriod": "",
"seedScope": "",
"shorteningLimits": {
"logAction": "",
"logType": [],
"maxArraySize": 0,
"maxStringLength": 0,
"shortenerType": ""
}
},
"searchable": "",
"taskVisibility": []
},
"children": [],
"dataType": "",
"defaultValue": {
"booleanArray": {
"booleanValues": []
},
"booleanValue": false,
"doubleArray": {
"doubleValues": []
},
"doubleValue": "",
"intArray": {
"intValues": []
},
"intValue": "",
"jsonValue": "",
"protoArray": {
"protoValues": [
{}
]
},
"protoValue": {},
"serializedObjectValue": {
"objectValue": ""
},
"stringArray": {
"stringValues": []
},
"stringValue": ""
},
"inOutType": "",
"isTransient": false,
"jsonSchema": "",
"key": "",
"name": "",
"producedBy": {
"elementIdentifier": "",
"elementType": ""
},
"producer": "",
"protoDefName": "",
"protoDefPath": ""
}
]
},
"lastModifierEmail": "",
"lockHolder": "",
"name": "",
"origin": "",
"parentTemplateId": "",
"runAsServiceAccount": "",
"snapshotNumber": "",
"state": "",
"status": "",
"taskConfigs": [
{
"description": "",
"displayName": "",
"errorCatcherId": "",
"externalTaskType": "",
"failurePolicy": {
"intervalTime": "",
"maxRetries": 0,
"retryStrategy": ""
},
"jsonValidationOption": "",
"nextTasks": [
{}
],
"nextTasksExecutionPolicy": "",
"parameters": {},
"position": {},
"successPolicy": {
"finalState": ""
},
"synchronousCallFailurePolicy": {},
"task": "",
"taskExecutionStrategy": "",
"taskId": "",
"taskTemplate": ""
}
],
"taskConfigsInternal": [
{
"alertConfigs": [
{
"aggregationPeriod": "",
"alertDisabled": false,
"alertName": "",
"clientId": "",
"durationThresholdMs": "",
"errorEnumList": {
"enumStrings": [],
"filterType": ""
},
"metricType": "",
"numAggregationPeriods": 0,
"onlyFinalAttempt": false,
"playbookUrl": "",
"thresholdType": "",
"thresholdValue": {
"absolute": "",
"percentage": 0
},
"warningEnumList": {}
}
],
"createTime": "",
"creatorEmail": "",
"description": "",
"disableStrictTypeValidation": false,
"errorCatcherId": "",
"externalTaskType": "",
"failurePolicy": {
"intervalInSeconds": "",
"maxNumRetries": 0,
"retryStrategy": ""
},
"incomingEdgeCount": 0,
"jsonValidationOption": "",
"label": "",
"lastModifiedTime": "",
"nextTasks": [
{
"combinedConditions": [
{
"conditions": [
{
"eventPropertyKey": "",
"operator": "",
"value": {}
}
]
}
],
"condition": "",
"description": "",
"label": "",
"taskConfigId": "",
"taskNumber": ""
}
],
"nextTasksExecutionPolicy": "",
"parameters": {},
"position": {
"x": 0,
"y": 0
},
"precondition": "",
"preconditionLabel": "",
"rollbackStrategy": {
"parameters": {
"parameters": [
{
"dataType": "",
"key": "",
"value": {}
}
]
},
"rollbackTaskImplementationClassName": "",
"taskNumbersToRollback": []
},
"successPolicy": {
"finalState": ""
},
"synchronousCallFailurePolicy": {},
"taskEntity": {
"disabledForVpcSc": false,
"metadata": {
"activeTaskName": "",
"admins": [
{
"googleGroupEmail": "",
"userEmail": ""
}
],
"category": "",
"codeSearchLink": "",
"defaultJsonValidationOption": "",
"defaultSpec": "",
"description": "",
"descriptiveName": "",
"docMarkdown": "",
"externalCategory": "",
"externalCategorySequence": 0,
"externalDocHtml": "",
"externalDocLink": "",
"externalDocMarkdown": "",
"g3DocLink": "",
"iconLink": "",
"isDeprecated": false,
"name": "",
"standaloneExternalDocHtml": "",
"status": "",
"system": "",
"tags": []
},
"paramSpecs": {
"parameters": [
{
"className": "",
"collectionElementClassName": "",
"config": {
"descriptivePhrase": "",
"helpText": "",
"hideDefaultValue": false,
"inputDisplayOption": "",
"isHidden": false,
"label": "",
"parameterNameOption": "",
"subSectionLabel": "",
"uiPlaceholderText": ""
},
"dataType": "",
"defaultValue": {},
"isDeprecated": false,
"isOutput": false,
"jsonSchema": "",
"key": "",
"protoDef": {
"fullName": "",
"path": ""
},
"required": false,
"validationRule": {
"doubleRange": {
"max": "",
"min": ""
},
"intRange": {
"max": "",
"min": ""
},
"stringRegex": {
"exclusive": false,
"regex": ""
}
}
}
]
},
"stats": {
"dimensions": {
"clientId": "",
"enumFilterType": "",
"errorEnumString": "",
"retryAttempt": "",
"taskName": "",
"taskNumber": "",
"triggerId": "",
"warningEnumString": "",
"workflowId": "",
"workflowName": ""
},
"durationInSeconds": "",
"errorRate": "",
"qps": "",
"warningRate": ""
},
"taskType": "",
"uiConfig": {
"taskUiModuleConfigs": [
{
"moduleId": ""
}
]
}
},
"taskExecutionStrategy": "",
"taskName": "",
"taskNumber": "",
"taskSpec": "",
"taskTemplateName": "",
"taskType": ""
}
],
"teardown": {
"teardownTaskConfigs": [
{
"creatorEmail": "",
"name": "",
"nextTeardownTask": {
"name": ""
},
"parameters": {
"parameters": [
{
"key": "",
"value": {
"booleanArray": {
"booleanValues": []
},
"booleanValue": false,
"doubleArray": {
"doubleValues": []
},
"doubleValue": "",
"intArray": {
"intValues": []
},
"intValue": "",
"protoArray": {
"protoValues": [
{}
]
},
"protoValue": {},
"serializedObjectValue": {
"objectValue": ""
},
"stringArray": {
"stringValues": []
},
"stringValue": ""
}
}
]
},
"properties": {
"properties": [
{
"key": "",
"value": {}
}
]
},
"teardownTaskImplementationClassName": ""
}
]
},
"triggerConfigs": [
{
"alertConfig": [
{
"aggregationPeriod": "",
"alertThreshold": 0,
"disableAlert": false,
"displayName": "",
"durationThreshold": "",
"metricType": "",
"onlyFinalAttempt": false,
"thresholdType": "",
"thresholdValue": {
"absolute": "",
"percentage": 0
}
}
],
"cloudSchedulerConfig": {
"cronTab": "",
"errorMessage": "",
"location": "",
"serviceAccountEmail": ""
},
"description": "",
"errorCatcherId": "",
"label": "",
"nextTasksExecutionPolicy": "",
"position": {},
"properties": {},
"startTasks": [
{}
],
"triggerId": "",
"triggerNumber": "",
"triggerType": ""
}
],
"triggerConfigsInternal": [
{
"alertConfig": [
{
"aggregationPeriod": "",
"alertDisabled": false,
"alertName": "",
"clientId": "",
"durationThresholdMs": "",
"errorEnumList": {},
"metricType": "",
"numAggregationPeriods": 0,
"onlyFinalAttempt": false,
"playbookUrl": "",
"thresholdType": "",
"thresholdValue": {},
"warningEnumList": {}
}
],
"cloudSchedulerConfig": {
"cronTab": "",
"errorMessage": "",
"location": "",
"serviceAccountEmail": ""
},
"description": "",
"enabledClients": [],
"errorCatcherId": "",
"label": "",
"nextTasksExecutionPolicy": "",
"pauseWorkflowExecutions": false,
"position": {},
"properties": {},
"startTasks": [
{}
],
"triggerCriteria": {
"condition": "",
"parameters": {},
"triggerCriteriaTaskImplementationClassName": ""
},
"triggerId": "",
"triggerNumber": "",
"triggerType": ""
}
],
"updateTime": "",
"userLabel": ""
}' | \
http POST {{baseUrl}}/v1/:parent/versions \
content-type:application/json
wget --quiet \
--method POST \
--header 'content-type: application/json' \
--body-data '{\n "createTime": "",\n "databasePersistencePolicy": "",\n "description": "",\n "errorCatcherConfigs": [\n {\n "description": "",\n "errorCatcherId": "",\n "errorCatcherNumber": "",\n "label": "",\n "position": {\n "x": 0,\n "y": 0\n },\n "startErrorTasks": [\n {\n "condition": "",\n "description": "",\n "displayName": "",\n "taskConfigId": "",\n "taskId": ""\n }\n ]\n }\n ],\n "integrationParameters": [\n {\n "dataType": "",\n "defaultValue": {\n "booleanArray": {\n "booleanValues": []\n },\n "booleanValue": false,\n "doubleArray": {\n "doubleValues": []\n },\n "doubleValue": "",\n "intArray": {\n "intValues": []\n },\n "intValue": "",\n "jsonValue": "",\n "stringArray": {\n "stringValues": []\n },\n "stringValue": ""\n },\n "displayName": "",\n "inputOutputType": "",\n "isTransient": false,\n "jsonSchema": "",\n "key": "",\n "producer": "",\n "searchable": false\n }\n ],\n "integrationParametersInternal": {\n "parameters": [\n {\n "attributes": {\n "dataType": "",\n "defaultValue": {\n "booleanValue": false,\n "doubleArray": {\n "values": []\n },\n "doubleValue": "",\n "intArray": {\n "values": []\n },\n "intValue": "",\n "protoValue": {},\n "stringArray": {\n "values": []\n },\n "stringValue": ""\n },\n "isRequired": false,\n "isSearchable": false,\n "logSettings": {\n "logFieldName": "",\n "sanitizeOptions": {\n "isAlreadySanitized": false,\n "logType": [],\n "privacy": "",\n "sanitizeType": ""\n },\n "seedPeriod": "",\n "seedScope": "",\n "shorteningLimits": {\n "logAction": "",\n "logType": [],\n "maxArraySize": 0,\n "maxStringLength": 0,\n "shortenerType": ""\n }\n },\n "searchable": "",\n "taskVisibility": []\n },\n "children": [],\n "dataType": "",\n "defaultValue": {\n "booleanArray": {\n "booleanValues": []\n },\n "booleanValue": false,\n "doubleArray": {\n "doubleValues": []\n },\n "doubleValue": "",\n "intArray": {\n "intValues": []\n },\n "intValue": "",\n "jsonValue": "",\n "protoArray": {\n "protoValues": [\n {}\n ]\n },\n "protoValue": {},\n "serializedObjectValue": {\n "objectValue": ""\n },\n "stringArray": {\n "stringValues": []\n },\n "stringValue": ""\n },\n "inOutType": "",\n "isTransient": false,\n "jsonSchema": "",\n "key": "",\n "name": "",\n "producedBy": {\n "elementIdentifier": "",\n "elementType": ""\n },\n "producer": "",\n "protoDefName": "",\n "protoDefPath": ""\n }\n ]\n },\n "lastModifierEmail": "",\n "lockHolder": "",\n "name": "",\n "origin": "",\n "parentTemplateId": "",\n "runAsServiceAccount": "",\n "snapshotNumber": "",\n "state": "",\n "status": "",\n "taskConfigs": [\n {\n "description": "",\n "displayName": "",\n "errorCatcherId": "",\n "externalTaskType": "",\n "failurePolicy": {\n "intervalTime": "",\n "maxRetries": 0,\n "retryStrategy": ""\n },\n "jsonValidationOption": "",\n "nextTasks": [\n {}\n ],\n "nextTasksExecutionPolicy": "",\n "parameters": {},\n "position": {},\n "successPolicy": {\n "finalState": ""\n },\n "synchronousCallFailurePolicy": {},\n "task": "",\n "taskExecutionStrategy": "",\n "taskId": "",\n "taskTemplate": ""\n }\n ],\n "taskConfigsInternal": [\n {\n "alertConfigs": [\n {\n "aggregationPeriod": "",\n "alertDisabled": false,\n "alertName": "",\n "clientId": "",\n "durationThresholdMs": "",\n "errorEnumList": {\n "enumStrings": [],\n "filterType": ""\n },\n "metricType": "",\n "numAggregationPeriods": 0,\n "onlyFinalAttempt": false,\n "playbookUrl": "",\n "thresholdType": "",\n "thresholdValue": {\n "absolute": "",\n "percentage": 0\n },\n "warningEnumList": {}\n }\n ],\n "createTime": "",\n "creatorEmail": "",\n "description": "",\n "disableStrictTypeValidation": false,\n "errorCatcherId": "",\n "externalTaskType": "",\n "failurePolicy": {\n "intervalInSeconds": "",\n "maxNumRetries": 0,\n "retryStrategy": ""\n },\n "incomingEdgeCount": 0,\n "jsonValidationOption": "",\n "label": "",\n "lastModifiedTime": "",\n "nextTasks": [\n {\n "combinedConditions": [\n {\n "conditions": [\n {\n "eventPropertyKey": "",\n "operator": "",\n "value": {}\n }\n ]\n }\n ],\n "condition": "",\n "description": "",\n "label": "",\n "taskConfigId": "",\n "taskNumber": ""\n }\n ],\n "nextTasksExecutionPolicy": "",\n "parameters": {},\n "position": {\n "x": 0,\n "y": 0\n },\n "precondition": "",\n "preconditionLabel": "",\n "rollbackStrategy": {\n "parameters": {\n "parameters": [\n {\n "dataType": "",\n "key": "",\n "value": {}\n }\n ]\n },\n "rollbackTaskImplementationClassName": "",\n "taskNumbersToRollback": []\n },\n "successPolicy": {\n "finalState": ""\n },\n "synchronousCallFailurePolicy": {},\n "taskEntity": {\n "disabledForVpcSc": false,\n "metadata": {\n "activeTaskName": "",\n "admins": [\n {\n "googleGroupEmail": "",\n "userEmail": ""\n }\n ],\n "category": "",\n "codeSearchLink": "",\n "defaultJsonValidationOption": "",\n "defaultSpec": "",\n "description": "",\n "descriptiveName": "",\n "docMarkdown": "",\n "externalCategory": "",\n "externalCategorySequence": 0,\n "externalDocHtml": "",\n "externalDocLink": "",\n "externalDocMarkdown": "",\n "g3DocLink": "",\n "iconLink": "",\n "isDeprecated": false,\n "name": "",\n "standaloneExternalDocHtml": "",\n "status": "",\n "system": "",\n "tags": []\n },\n "paramSpecs": {\n "parameters": [\n {\n "className": "",\n "collectionElementClassName": "",\n "config": {\n "descriptivePhrase": "",\n "helpText": "",\n "hideDefaultValue": false,\n "inputDisplayOption": "",\n "isHidden": false,\n "label": "",\n "parameterNameOption": "",\n "subSectionLabel": "",\n "uiPlaceholderText": ""\n },\n "dataType": "",\n "defaultValue": {},\n "isDeprecated": false,\n "isOutput": false,\n "jsonSchema": "",\n "key": "",\n "protoDef": {\n "fullName": "",\n "path": ""\n },\n "required": false,\n "validationRule": {\n "doubleRange": {\n "max": "",\n "min": ""\n },\n "intRange": {\n "max": "",\n "min": ""\n },\n "stringRegex": {\n "exclusive": false,\n "regex": ""\n }\n }\n }\n ]\n },\n "stats": {\n "dimensions": {\n "clientId": "",\n "enumFilterType": "",\n "errorEnumString": "",\n "retryAttempt": "",\n "taskName": "",\n "taskNumber": "",\n "triggerId": "",\n "warningEnumString": "",\n "workflowId": "",\n "workflowName": ""\n },\n "durationInSeconds": "",\n "errorRate": "",\n "qps": "",\n "warningRate": ""\n },\n "taskType": "",\n "uiConfig": {\n "taskUiModuleConfigs": [\n {\n "moduleId": ""\n }\n ]\n }\n },\n "taskExecutionStrategy": "",\n "taskName": "",\n "taskNumber": "",\n "taskSpec": "",\n "taskTemplateName": "",\n "taskType": ""\n }\n ],\n "teardown": {\n "teardownTaskConfigs": [\n {\n "creatorEmail": "",\n "name": "",\n "nextTeardownTask": {\n "name": ""\n },\n "parameters": {\n "parameters": [\n {\n "key": "",\n "value": {\n "booleanArray": {\n "booleanValues": []\n },\n "booleanValue": false,\n "doubleArray": {\n "doubleValues": []\n },\n "doubleValue": "",\n "intArray": {\n "intValues": []\n },\n "intValue": "",\n "protoArray": {\n "protoValues": [\n {}\n ]\n },\n "protoValue": {},\n "serializedObjectValue": {\n "objectValue": ""\n },\n "stringArray": {\n "stringValues": []\n },\n "stringValue": ""\n }\n }\n ]\n },\n "properties": {\n "properties": [\n {\n "key": "",\n "value": {}\n }\n ]\n },\n "teardownTaskImplementationClassName": ""\n }\n ]\n },\n "triggerConfigs": [\n {\n "alertConfig": [\n {\n "aggregationPeriod": "",\n "alertThreshold": 0,\n "disableAlert": false,\n "displayName": "",\n "durationThreshold": "",\n "metricType": "",\n "onlyFinalAttempt": false,\n "thresholdType": "",\n "thresholdValue": {\n "absolute": "",\n "percentage": 0\n }\n }\n ],\n "cloudSchedulerConfig": {\n "cronTab": "",\n "errorMessage": "",\n "location": "",\n "serviceAccountEmail": ""\n },\n "description": "",\n "errorCatcherId": "",\n "label": "",\n "nextTasksExecutionPolicy": "",\n "position": {},\n "properties": {},\n "startTasks": [\n {}\n ],\n "triggerId": "",\n "triggerNumber": "",\n "triggerType": ""\n }\n ],\n "triggerConfigsInternal": [\n {\n "alertConfig": [\n {\n "aggregationPeriod": "",\n "alertDisabled": false,\n "alertName": "",\n "clientId": "",\n "durationThresholdMs": "",\n "errorEnumList": {},\n "metricType": "",\n "numAggregationPeriods": 0,\n "onlyFinalAttempt": false,\n "playbookUrl": "",\n "thresholdType": "",\n "thresholdValue": {},\n "warningEnumList": {}\n }\n ],\n "cloudSchedulerConfig": {\n "cronTab": "",\n "errorMessage": "",\n "location": "",\n "serviceAccountEmail": ""\n },\n "description": "",\n "enabledClients": [],\n "errorCatcherId": "",\n "label": "",\n "nextTasksExecutionPolicy": "",\n "pauseWorkflowExecutions": false,\n "position": {},\n "properties": {},\n "startTasks": [\n {}\n ],\n "triggerCriteria": {\n "condition": "",\n "parameters": {},\n "triggerCriteriaTaskImplementationClassName": ""\n },\n "triggerId": "",\n "triggerNumber": "",\n "triggerType": ""\n }\n ],\n "updateTime": "",\n "userLabel": ""\n}' \
--output-document \
- {{baseUrl}}/v1/:parent/versions
import Foundation
let headers = ["content-type": "application/json"]
let parameters = [
"createTime": "",
"databasePersistencePolicy": "",
"description": "",
"errorCatcherConfigs": [
[
"description": "",
"errorCatcherId": "",
"errorCatcherNumber": "",
"label": "",
"position": [
"x": 0,
"y": 0
],
"startErrorTasks": [
[
"condition": "",
"description": "",
"displayName": "",
"taskConfigId": "",
"taskId": ""
]
]
]
],
"integrationParameters": [
[
"dataType": "",
"defaultValue": [
"booleanArray": ["booleanValues": []],
"booleanValue": false,
"doubleArray": ["doubleValues": []],
"doubleValue": "",
"intArray": ["intValues": []],
"intValue": "",
"jsonValue": "",
"stringArray": ["stringValues": []],
"stringValue": ""
],
"displayName": "",
"inputOutputType": "",
"isTransient": false,
"jsonSchema": "",
"key": "",
"producer": "",
"searchable": false
]
],
"integrationParametersInternal": ["parameters": [
[
"attributes": [
"dataType": "",
"defaultValue": [
"booleanValue": false,
"doubleArray": ["values": []],
"doubleValue": "",
"intArray": ["values": []],
"intValue": "",
"protoValue": [],
"stringArray": ["values": []],
"stringValue": ""
],
"isRequired": false,
"isSearchable": false,
"logSettings": [
"logFieldName": "",
"sanitizeOptions": [
"isAlreadySanitized": false,
"logType": [],
"privacy": "",
"sanitizeType": ""
],
"seedPeriod": "",
"seedScope": "",
"shorteningLimits": [
"logAction": "",
"logType": [],
"maxArraySize": 0,
"maxStringLength": 0,
"shortenerType": ""
]
],
"searchable": "",
"taskVisibility": []
],
"children": [],
"dataType": "",
"defaultValue": [
"booleanArray": ["booleanValues": []],
"booleanValue": false,
"doubleArray": ["doubleValues": []],
"doubleValue": "",
"intArray": ["intValues": []],
"intValue": "",
"jsonValue": "",
"protoArray": ["protoValues": [[]]],
"protoValue": [],
"serializedObjectValue": ["objectValue": ""],
"stringArray": ["stringValues": []],
"stringValue": ""
],
"inOutType": "",
"isTransient": false,
"jsonSchema": "",
"key": "",
"name": "",
"producedBy": [
"elementIdentifier": "",
"elementType": ""
],
"producer": "",
"protoDefName": "",
"protoDefPath": ""
]
]],
"lastModifierEmail": "",
"lockHolder": "",
"name": "",
"origin": "",
"parentTemplateId": "",
"runAsServiceAccount": "",
"snapshotNumber": "",
"state": "",
"status": "",
"taskConfigs": [
[
"description": "",
"displayName": "",
"errorCatcherId": "",
"externalTaskType": "",
"failurePolicy": [
"intervalTime": "",
"maxRetries": 0,
"retryStrategy": ""
],
"jsonValidationOption": "",
"nextTasks": [[]],
"nextTasksExecutionPolicy": "",
"parameters": [],
"position": [],
"successPolicy": ["finalState": ""],
"synchronousCallFailurePolicy": [],
"task": "",
"taskExecutionStrategy": "",
"taskId": "",
"taskTemplate": ""
]
],
"taskConfigsInternal": [
[
"alertConfigs": [
[
"aggregationPeriod": "",
"alertDisabled": false,
"alertName": "",
"clientId": "",
"durationThresholdMs": "",
"errorEnumList": [
"enumStrings": [],
"filterType": ""
],
"metricType": "",
"numAggregationPeriods": 0,
"onlyFinalAttempt": false,
"playbookUrl": "",
"thresholdType": "",
"thresholdValue": [
"absolute": "",
"percentage": 0
],
"warningEnumList": []
]
],
"createTime": "",
"creatorEmail": "",
"description": "",
"disableStrictTypeValidation": false,
"errorCatcherId": "",
"externalTaskType": "",
"failurePolicy": [
"intervalInSeconds": "",
"maxNumRetries": 0,
"retryStrategy": ""
],
"incomingEdgeCount": 0,
"jsonValidationOption": "",
"label": "",
"lastModifiedTime": "",
"nextTasks": [
[
"combinedConditions": [["conditions": [
[
"eventPropertyKey": "",
"operator": "",
"value": []
]
]]],
"condition": "",
"description": "",
"label": "",
"taskConfigId": "",
"taskNumber": ""
]
],
"nextTasksExecutionPolicy": "",
"parameters": [],
"position": [
"x": 0,
"y": 0
],
"precondition": "",
"preconditionLabel": "",
"rollbackStrategy": [
"parameters": ["parameters": [
[
"dataType": "",
"key": "",
"value": []
]
]],
"rollbackTaskImplementationClassName": "",
"taskNumbersToRollback": []
],
"successPolicy": ["finalState": ""],
"synchronousCallFailurePolicy": [],
"taskEntity": [
"disabledForVpcSc": false,
"metadata": [
"activeTaskName": "",
"admins": [
[
"googleGroupEmail": "",
"userEmail": ""
]
],
"category": "",
"codeSearchLink": "",
"defaultJsonValidationOption": "",
"defaultSpec": "",
"description": "",
"descriptiveName": "",
"docMarkdown": "",
"externalCategory": "",
"externalCategorySequence": 0,
"externalDocHtml": "",
"externalDocLink": "",
"externalDocMarkdown": "",
"g3DocLink": "",
"iconLink": "",
"isDeprecated": false,
"name": "",
"standaloneExternalDocHtml": "",
"status": "",
"system": "",
"tags": []
],
"paramSpecs": ["parameters": [
[
"className": "",
"collectionElementClassName": "",
"config": [
"descriptivePhrase": "",
"helpText": "",
"hideDefaultValue": false,
"inputDisplayOption": "",
"isHidden": false,
"label": "",
"parameterNameOption": "",
"subSectionLabel": "",
"uiPlaceholderText": ""
],
"dataType": "",
"defaultValue": [],
"isDeprecated": false,
"isOutput": false,
"jsonSchema": "",
"key": "",
"protoDef": [
"fullName": "",
"path": ""
],
"required": false,
"validationRule": [
"doubleRange": [
"max": "",
"min": ""
],
"intRange": [
"max": "",
"min": ""
],
"stringRegex": [
"exclusive": false,
"regex": ""
]
]
]
]],
"stats": [
"dimensions": [
"clientId": "",
"enumFilterType": "",
"errorEnumString": "",
"retryAttempt": "",
"taskName": "",
"taskNumber": "",
"triggerId": "",
"warningEnumString": "",
"workflowId": "",
"workflowName": ""
],
"durationInSeconds": "",
"errorRate": "",
"qps": "",
"warningRate": ""
],
"taskType": "",
"uiConfig": ["taskUiModuleConfigs": [["moduleId": ""]]]
],
"taskExecutionStrategy": "",
"taskName": "",
"taskNumber": "",
"taskSpec": "",
"taskTemplateName": "",
"taskType": ""
]
],
"teardown": ["teardownTaskConfigs": [
[
"creatorEmail": "",
"name": "",
"nextTeardownTask": ["name": ""],
"parameters": ["parameters": [
[
"key": "",
"value": [
"booleanArray": ["booleanValues": []],
"booleanValue": false,
"doubleArray": ["doubleValues": []],
"doubleValue": "",
"intArray": ["intValues": []],
"intValue": "",
"protoArray": ["protoValues": [[]]],
"protoValue": [],
"serializedObjectValue": ["objectValue": ""],
"stringArray": ["stringValues": []],
"stringValue": ""
]
]
]],
"properties": ["properties": [
[
"key": "",
"value": []
]
]],
"teardownTaskImplementationClassName": ""
]
]],
"triggerConfigs": [
[
"alertConfig": [
[
"aggregationPeriod": "",
"alertThreshold": 0,
"disableAlert": false,
"displayName": "",
"durationThreshold": "",
"metricType": "",
"onlyFinalAttempt": false,
"thresholdType": "",
"thresholdValue": [
"absolute": "",
"percentage": 0
]
]
],
"cloudSchedulerConfig": [
"cronTab": "",
"errorMessage": "",
"location": "",
"serviceAccountEmail": ""
],
"description": "",
"errorCatcherId": "",
"label": "",
"nextTasksExecutionPolicy": "",
"position": [],
"properties": [],
"startTasks": [[]],
"triggerId": "",
"triggerNumber": "",
"triggerType": ""
]
],
"triggerConfigsInternal": [
[
"alertConfig": [
[
"aggregationPeriod": "",
"alertDisabled": false,
"alertName": "",
"clientId": "",
"durationThresholdMs": "",
"errorEnumList": [],
"metricType": "",
"numAggregationPeriods": 0,
"onlyFinalAttempt": false,
"playbookUrl": "",
"thresholdType": "",
"thresholdValue": [],
"warningEnumList": []
]
],
"cloudSchedulerConfig": [
"cronTab": "",
"errorMessage": "",
"location": "",
"serviceAccountEmail": ""
],
"description": "",
"enabledClients": [],
"errorCatcherId": "",
"label": "",
"nextTasksExecutionPolicy": "",
"pauseWorkflowExecutions": false,
"position": [],
"properties": [],
"startTasks": [[]],
"triggerCriteria": [
"condition": "",
"parameters": [],
"triggerCriteriaTaskImplementationClassName": ""
],
"triggerId": "",
"triggerNumber": "",
"triggerType": ""
]
],
"updateTime": "",
"userLabel": ""
] as [String : Any]
let postData = JSONSerialization.data(withJSONObject: parameters, options: [])
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/v1/:parent/versions")! 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
integrations.projects.locations.products.integrations.versions.download
{{baseUrl}}/v1/:name:download
QUERY PARAMS
name
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/v1/:name:download");
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/get "{{baseUrl}}/v1/:name:download")
require "http/client"
url = "{{baseUrl}}/v1/:name:download"
response = HTTP::Client.get url
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Get,
RequestUri = new Uri("{{baseUrl}}/v1/:name:download"),
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/v1/:name:download");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/v1/:name:download"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
GET /baseUrl/v1/:name:download HTTP/1.1
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/v1/:name:download")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/v1/:name:download"))
.method("GET", HttpRequest.BodyPublishers.noBody())
.build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("{{baseUrl}}/v1/:name:download")
.get()
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/v1/:name:download")
.asString();
const data = null;
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('GET', '{{baseUrl}}/v1/:name:download');
xhr.send(data);
import axios from 'axios';
const options = {method: 'GET', url: '{{baseUrl}}/v1/:name:download'};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/v1/:name:download';
const options = {method: 'GET'};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/v1/:name:download',
method: 'GET',
headers: {}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/v1/:name:download")
.get()
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'GET',
hostname: 'example.com',
port: null,
path: '/baseUrl/v1/:name:download',
headers: {}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
const request = require('request');
const options = {method: 'GET', url: '{{baseUrl}}/v1/:name:download'};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('GET', '{{baseUrl}}/v1/:name:download');
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {method: 'GET', url: '{{baseUrl}}/v1/:name:download'};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/v1/:name:download';
const options = {method: 'GET'};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/v1/:name:download"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/v1/:name:download" in
Client.call `GET uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/v1/:name:download",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('GET', '{{baseUrl}}/v1/:name:download');
echo $response->getBody();
setUrl('{{baseUrl}}/v1/:name:download');
$request->setMethod(HTTP_METH_GET);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/v1/:name:download');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/v1/:name:download' -Method GET
$response = Invoke-RestMethod -Uri '{{baseUrl}}/v1/:name:download' -Method GET
import http.client
conn = http.client.HTTPSConnection("example.com")
conn.request("GET", "/baseUrl/v1/:name:download")
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/v1/:name:download"
response = requests.get(url)
print(response.json())
library(httr)
url <- "{{baseUrl}}/v1/:name:download"
response <- VERB("GET", url, content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/v1/:name:download")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
)
response = conn.get('/baseUrl/v1/:name:download') do |req|
end
puts response.status
puts response.body
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/v1/:name:download";
let client = reqwest::Client::new();
let response = client.get(url)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request GET \
--url {{baseUrl}}/v1/:name:download
http GET {{baseUrl}}/v1/:name:download
wget --quiet \
--method GET \
--output-document \
- {{baseUrl}}/v1/:name:download
import Foundation
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/v1/:name:download")! 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
integrations.projects.locations.products.integrations.versions.list
{{baseUrl}}/v1/:parent/versions
QUERY PARAMS
parent
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/v1/:parent/versions");
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/get "{{baseUrl}}/v1/:parent/versions")
require "http/client"
url = "{{baseUrl}}/v1/:parent/versions"
response = HTTP::Client.get url
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Get,
RequestUri = new Uri("{{baseUrl}}/v1/:parent/versions"),
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/v1/:parent/versions");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/v1/:parent/versions"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
GET /baseUrl/v1/:parent/versions HTTP/1.1
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/v1/:parent/versions")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/v1/:parent/versions"))
.method("GET", HttpRequest.BodyPublishers.noBody())
.build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("{{baseUrl}}/v1/:parent/versions")
.get()
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/v1/:parent/versions")
.asString();
const data = null;
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('GET', '{{baseUrl}}/v1/:parent/versions');
xhr.send(data);
import axios from 'axios';
const options = {method: 'GET', url: '{{baseUrl}}/v1/:parent/versions'};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/v1/:parent/versions';
const options = {method: 'GET'};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/v1/:parent/versions',
method: 'GET',
headers: {}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/v1/:parent/versions")
.get()
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'GET',
hostname: 'example.com',
port: null,
path: '/baseUrl/v1/:parent/versions',
headers: {}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
const request = require('request');
const options = {method: 'GET', url: '{{baseUrl}}/v1/:parent/versions'};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('GET', '{{baseUrl}}/v1/:parent/versions');
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {method: 'GET', url: '{{baseUrl}}/v1/:parent/versions'};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/v1/:parent/versions';
const options = {method: 'GET'};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/v1/:parent/versions"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/v1/:parent/versions" in
Client.call `GET uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/v1/:parent/versions",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('GET', '{{baseUrl}}/v1/:parent/versions');
echo $response->getBody();
setUrl('{{baseUrl}}/v1/:parent/versions');
$request->setMethod(HTTP_METH_GET);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/v1/:parent/versions');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/v1/:parent/versions' -Method GET
$response = Invoke-RestMethod -Uri '{{baseUrl}}/v1/:parent/versions' -Method GET
import http.client
conn = http.client.HTTPSConnection("example.com")
conn.request("GET", "/baseUrl/v1/:parent/versions")
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/v1/:parent/versions"
response = requests.get(url)
print(response.json())
library(httr)
url <- "{{baseUrl}}/v1/:parent/versions"
response <- VERB("GET", url, content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/v1/:parent/versions")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
)
response = conn.get('/baseUrl/v1/:parent/versions') do |req|
end
puts response.status
puts response.body
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/v1/:parent/versions";
let client = reqwest::Client::new();
let response = client.get(url)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request GET \
--url {{baseUrl}}/v1/:parent/versions
http GET {{baseUrl}}/v1/:parent/versions
wget --quiet \
--method GET \
--output-document \
- {{baseUrl}}/v1/:parent/versions
import Foundation
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/v1/:parent/versions")! 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
integrations.projects.locations.products.integrations.versions.publish
{{baseUrl}}/v1/:name:publish
QUERY PARAMS
name
BODY json
{}
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/v1/:name:publish");
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "content-type: application/json");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
curl_easy_setopt(hnd, CURLOPT_POSTFIELDS, "{}");
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/post "{{baseUrl}}/v1/:name:publish" {:content-type :json})
require "http/client"
url = "{{baseUrl}}/v1/:name:publish"
headers = HTTP::Headers{
"content-type" => "application/json"
}
reqBody = "{}"
response = HTTP::Client.post url, headers: headers, body: reqBody
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Post,
RequestUri = new Uri("{{baseUrl}}/v1/:name:publish"),
Content = new StringContent("{}")
{
Headers =
{
ContentType = new MediaTypeHeaderValue("application/json")
}
}
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/v1/:name:publish");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{}", ParameterType.RequestBody);
var response = client.Execute(request);
package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/v1/:name:publish"
payload := strings.NewReader("{}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("content-type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
POST /baseUrl/v1/:name:publish HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 2
{}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/v1/:name:publish")
.setHeader("content-type", "application/json")
.setBody("{}")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/v1/:name:publish"))
.header("content-type", "application/json")
.method("POST", HttpRequest.BodyPublishers.ofString("{}"))
.build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();
MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{}");
Request request = new Request.Builder()
.url("{{baseUrl}}/v1/:name:publish")
.post(body)
.addHeader("content-type", "application/json")
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/v1/:name:publish")
.header("content-type", "application/json")
.body("{}")
.asString();
const data = JSON.stringify({});
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('POST', '{{baseUrl}}/v1/:name:publish');
xhr.setRequestHeader('content-type', 'application/json');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'POST',
url: '{{baseUrl}}/v1/:name:publish',
headers: {'content-type': 'application/json'},
data: {}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/v1/:name:publish';
const options = {method: 'POST', headers: {'content-type': 'application/json'}, body: '{}'};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/v1/:name:publish',
method: 'POST',
headers: {
'content-type': 'application/json'
},
processData: false,
data: '{}'
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{}")
val request = Request.Builder()
.url("{{baseUrl}}/v1/:name:publish")
.post(body)
.addHeader("content-type", "application/json")
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'POST',
hostname: 'example.com',
port: null,
path: '/baseUrl/v1/:name:publish',
headers: {
'content-type': 'application/json'
}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.write(JSON.stringify({}));
req.end();
const request = require('request');
const options = {
method: 'POST',
url: '{{baseUrl}}/v1/:name:publish',
headers: {'content-type': 'application/json'},
body: {},
json: true
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('POST', '{{baseUrl}}/v1/:name:publish');
req.headers({
'content-type': 'application/json'
});
req.type('json');
req.send({});
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {
method: 'POST',
url: '{{baseUrl}}/v1/:name:publish',
headers: {'content-type': 'application/json'},
data: {}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/v1/:name:publish';
const options = {method: 'POST', headers: {'content-type': 'application/json'}, body: '{}'};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSDictionary *headers = @{ @"content-type": @"application/json" };
NSDictionary *parameters = @{ };
NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/v1/:name:publish"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"POST"];
[request setAllHTTPHeaderFields:headers];
[request setHTTPBody:postData];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/v1/:name:publish" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{}" in
Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/v1/:name:publish",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
]),
CURLOPT_HTTPHEADER => [
"content-type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('POST', '{{baseUrl}}/v1/:name:publish', [
'body' => '{}',
'headers' => [
'content-type' => 'application/json',
],
]);
echo $response->getBody();
setUrl('{{baseUrl}}/v1/:name:publish');
$request->setMethod(HTTP_METH_POST);
$request->setHeaders([
'content-type' => 'application/json'
]);
$request->setContentType('application/json');
$request->setBody(json_encode([
]));
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
append(json_encode([
]));
$request->setRequestUrl('{{baseUrl}}/v1/:name:publish');
$request->setRequestMethod('POST');
$request->setBody($body);
$request->setHeaders([
'content-type' => 'application/json'
]);
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/v1/:name:publish' -Method POST -Headers $headers -ContentType 'application/json' -Body '{}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/v1/:name:publish' -Method POST -Headers $headers -ContentType 'application/json' -Body '{}'
import http.client
conn = http.client.HTTPSConnection("example.com")
payload = "{}"
headers = { 'content-type': "application/json" }
conn.request("POST", "/baseUrl/v1/:name:publish", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/v1/:name:publish"
payload = {}
headers = {"content-type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.json())
library(httr)
url <- "{{baseUrl}}/v1/:name:publish"
payload <- "{}"
encode <- "json"
response <- VERB("POST", url, body = payload, content_type("application/json"), encode = encode)
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/v1/:name:publish")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["content-type"] = 'application/json'
request.body = "{}"
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
headers: {'Content-Type' => 'application/json'}
)
response = conn.post('/baseUrl/v1/:name:publish') do |req|
req.body = "{}"
end
puts response.status
puts response.body
use serde_json::json;
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/v1/:name:publish";
let payload = json!({});
let mut headers = reqwest::header::HeaderMap::new();
headers.insert("content-type", "application/json".parse().unwrap());
let client = reqwest::Client::new();
let response = client.post(url)
.headers(headers)
.json(&payload)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request POST \
--url {{baseUrl}}/v1/:name:publish \
--header 'content-type: application/json' \
--data '{}'
echo '{}' | \
http POST {{baseUrl}}/v1/:name:publish \
content-type:application/json
wget --quiet \
--method POST \
--header 'content-type: application/json' \
--body-data '{}' \
--output-document \
- {{baseUrl}}/v1/:name:publish
import Foundation
let headers = ["content-type": "application/json"]
let parameters = [] as [String : Any]
let postData = JSONSerialization.data(withJSONObject: parameters, options: [])
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/v1/:name:publish")! 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
integrations.projects.locations.products.integrations.versions.takeoverEditLock
{{baseUrl}}/v1/:integrationVersion:takeoverEditLock
QUERY PARAMS
integrationVersion
BODY json
{}
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/v1/:integrationVersion:takeoverEditLock");
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "content-type: application/json");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
curl_easy_setopt(hnd, CURLOPT_POSTFIELDS, "{}");
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/post "{{baseUrl}}/v1/:integrationVersion:takeoverEditLock" {:content-type :json})
require "http/client"
url = "{{baseUrl}}/v1/:integrationVersion:takeoverEditLock"
headers = HTTP::Headers{
"content-type" => "application/json"
}
reqBody = "{}"
response = HTTP::Client.post url, headers: headers, body: reqBody
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Post,
RequestUri = new Uri("{{baseUrl}}/v1/:integrationVersion:takeoverEditLock"),
Content = new StringContent("{}")
{
Headers =
{
ContentType = new MediaTypeHeaderValue("application/json")
}
}
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/v1/:integrationVersion:takeoverEditLock");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{}", ParameterType.RequestBody);
var response = client.Execute(request);
package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/v1/:integrationVersion:takeoverEditLock"
payload := strings.NewReader("{}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("content-type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
POST /baseUrl/v1/:integrationVersion:takeoverEditLock HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 2
{}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/v1/:integrationVersion:takeoverEditLock")
.setHeader("content-type", "application/json")
.setBody("{}")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/v1/:integrationVersion:takeoverEditLock"))
.header("content-type", "application/json")
.method("POST", HttpRequest.BodyPublishers.ofString("{}"))
.build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();
MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{}");
Request request = new Request.Builder()
.url("{{baseUrl}}/v1/:integrationVersion:takeoverEditLock")
.post(body)
.addHeader("content-type", "application/json")
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/v1/:integrationVersion:takeoverEditLock")
.header("content-type", "application/json")
.body("{}")
.asString();
const data = JSON.stringify({});
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('POST', '{{baseUrl}}/v1/:integrationVersion:takeoverEditLock');
xhr.setRequestHeader('content-type', 'application/json');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'POST',
url: '{{baseUrl}}/v1/:integrationVersion:takeoverEditLock',
headers: {'content-type': 'application/json'},
data: {}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/v1/:integrationVersion:takeoverEditLock';
const options = {method: 'POST', headers: {'content-type': 'application/json'}, body: '{}'};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/v1/:integrationVersion:takeoverEditLock',
method: 'POST',
headers: {
'content-type': 'application/json'
},
processData: false,
data: '{}'
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{}")
val request = Request.Builder()
.url("{{baseUrl}}/v1/:integrationVersion:takeoverEditLock")
.post(body)
.addHeader("content-type", "application/json")
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'POST',
hostname: 'example.com',
port: null,
path: '/baseUrl/v1/:integrationVersion:takeoverEditLock',
headers: {
'content-type': 'application/json'
}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.write(JSON.stringify({}));
req.end();
const request = require('request');
const options = {
method: 'POST',
url: '{{baseUrl}}/v1/:integrationVersion:takeoverEditLock',
headers: {'content-type': 'application/json'},
body: {},
json: true
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('POST', '{{baseUrl}}/v1/:integrationVersion:takeoverEditLock');
req.headers({
'content-type': 'application/json'
});
req.type('json');
req.send({});
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {
method: 'POST',
url: '{{baseUrl}}/v1/:integrationVersion:takeoverEditLock',
headers: {'content-type': 'application/json'},
data: {}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/v1/:integrationVersion:takeoverEditLock';
const options = {method: 'POST', headers: {'content-type': 'application/json'}, body: '{}'};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSDictionary *headers = @{ @"content-type": @"application/json" };
NSDictionary *parameters = @{ };
NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/v1/:integrationVersion:takeoverEditLock"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"POST"];
[request setAllHTTPHeaderFields:headers];
[request setHTTPBody:postData];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/v1/:integrationVersion:takeoverEditLock" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{}" in
Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/v1/:integrationVersion:takeoverEditLock",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
]),
CURLOPT_HTTPHEADER => [
"content-type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('POST', '{{baseUrl}}/v1/:integrationVersion:takeoverEditLock', [
'body' => '{}',
'headers' => [
'content-type' => 'application/json',
],
]);
echo $response->getBody();
setUrl('{{baseUrl}}/v1/:integrationVersion:takeoverEditLock');
$request->setMethod(HTTP_METH_POST);
$request->setHeaders([
'content-type' => 'application/json'
]);
$request->setContentType('application/json');
$request->setBody(json_encode([
]));
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
append(json_encode([
]));
$request->setRequestUrl('{{baseUrl}}/v1/:integrationVersion:takeoverEditLock');
$request->setRequestMethod('POST');
$request->setBody($body);
$request->setHeaders([
'content-type' => 'application/json'
]);
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/v1/:integrationVersion:takeoverEditLock' -Method POST -Headers $headers -ContentType 'application/json' -Body '{}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/v1/:integrationVersion:takeoverEditLock' -Method POST -Headers $headers -ContentType 'application/json' -Body '{}'
import http.client
conn = http.client.HTTPSConnection("example.com")
payload = "{}"
headers = { 'content-type': "application/json" }
conn.request("POST", "/baseUrl/v1/:integrationVersion:takeoverEditLock", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/v1/:integrationVersion:takeoverEditLock"
payload = {}
headers = {"content-type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.json())
library(httr)
url <- "{{baseUrl}}/v1/:integrationVersion:takeoverEditLock"
payload <- "{}"
encode <- "json"
response <- VERB("POST", url, body = payload, content_type("application/json"), encode = encode)
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/v1/:integrationVersion:takeoverEditLock")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["content-type"] = 'application/json'
request.body = "{}"
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
headers: {'Content-Type' => 'application/json'}
)
response = conn.post('/baseUrl/v1/:integrationVersion:takeoverEditLock') do |req|
req.body = "{}"
end
puts response.status
puts response.body
use serde_json::json;
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/v1/:integrationVersion:takeoverEditLock";
let payload = json!({});
let mut headers = reqwest::header::HeaderMap::new();
headers.insert("content-type", "application/json".parse().unwrap());
let client = reqwest::Client::new();
let response = client.post(url)
.headers(headers)
.json(&payload)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request POST \
--url {{baseUrl}}/v1/:integrationVersion:takeoverEditLock \
--header 'content-type: application/json' \
--data '{}'
echo '{}' | \
http POST {{baseUrl}}/v1/:integrationVersion:takeoverEditLock \
content-type:application/json
wget --quiet \
--method POST \
--header 'content-type: application/json' \
--body-data '{}' \
--output-document \
- {{baseUrl}}/v1/:integrationVersion:takeoverEditLock
import Foundation
let headers = ["content-type": "application/json"]
let parameters = [] as [String : Any]
let postData = JSONSerialization.data(withJSONObject: parameters, options: [])
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/v1/:integrationVersion:takeoverEditLock")! 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
integrations.projects.locations.products.integrations.versions.unpublish
{{baseUrl}}/v1/:name:unpublish
QUERY PARAMS
name
BODY json
{}
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/v1/:name:unpublish");
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "content-type: application/json");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
curl_easy_setopt(hnd, CURLOPT_POSTFIELDS, "{}");
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/post "{{baseUrl}}/v1/:name:unpublish" {:content-type :json})
require "http/client"
url = "{{baseUrl}}/v1/:name:unpublish"
headers = HTTP::Headers{
"content-type" => "application/json"
}
reqBody = "{}"
response = HTTP::Client.post url, headers: headers, body: reqBody
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Post,
RequestUri = new Uri("{{baseUrl}}/v1/:name:unpublish"),
Content = new StringContent("{}")
{
Headers =
{
ContentType = new MediaTypeHeaderValue("application/json")
}
}
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/v1/:name:unpublish");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{}", ParameterType.RequestBody);
var response = client.Execute(request);
package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/v1/:name:unpublish"
payload := strings.NewReader("{}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("content-type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
POST /baseUrl/v1/:name:unpublish HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 2
{}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/v1/:name:unpublish")
.setHeader("content-type", "application/json")
.setBody("{}")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/v1/:name:unpublish"))
.header("content-type", "application/json")
.method("POST", HttpRequest.BodyPublishers.ofString("{}"))
.build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();
MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{}");
Request request = new Request.Builder()
.url("{{baseUrl}}/v1/:name:unpublish")
.post(body)
.addHeader("content-type", "application/json")
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/v1/:name:unpublish")
.header("content-type", "application/json")
.body("{}")
.asString();
const data = JSON.stringify({});
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('POST', '{{baseUrl}}/v1/:name:unpublish');
xhr.setRequestHeader('content-type', 'application/json');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'POST',
url: '{{baseUrl}}/v1/:name:unpublish',
headers: {'content-type': 'application/json'},
data: {}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/v1/:name:unpublish';
const options = {method: 'POST', headers: {'content-type': 'application/json'}, body: '{}'};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/v1/:name:unpublish',
method: 'POST',
headers: {
'content-type': 'application/json'
},
processData: false,
data: '{}'
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{}")
val request = Request.Builder()
.url("{{baseUrl}}/v1/:name:unpublish")
.post(body)
.addHeader("content-type", "application/json")
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'POST',
hostname: 'example.com',
port: null,
path: '/baseUrl/v1/:name:unpublish',
headers: {
'content-type': 'application/json'
}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.write(JSON.stringify({}));
req.end();
const request = require('request');
const options = {
method: 'POST',
url: '{{baseUrl}}/v1/:name:unpublish',
headers: {'content-type': 'application/json'},
body: {},
json: true
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('POST', '{{baseUrl}}/v1/:name:unpublish');
req.headers({
'content-type': 'application/json'
});
req.type('json');
req.send({});
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {
method: 'POST',
url: '{{baseUrl}}/v1/:name:unpublish',
headers: {'content-type': 'application/json'},
data: {}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/v1/:name:unpublish';
const options = {method: 'POST', headers: {'content-type': 'application/json'}, body: '{}'};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSDictionary *headers = @{ @"content-type": @"application/json" };
NSDictionary *parameters = @{ };
NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/v1/:name:unpublish"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"POST"];
[request setAllHTTPHeaderFields:headers];
[request setHTTPBody:postData];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/v1/:name:unpublish" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{}" in
Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/v1/:name:unpublish",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
]),
CURLOPT_HTTPHEADER => [
"content-type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('POST', '{{baseUrl}}/v1/:name:unpublish', [
'body' => '{}',
'headers' => [
'content-type' => 'application/json',
],
]);
echo $response->getBody();
setUrl('{{baseUrl}}/v1/:name:unpublish');
$request->setMethod(HTTP_METH_POST);
$request->setHeaders([
'content-type' => 'application/json'
]);
$request->setContentType('application/json');
$request->setBody(json_encode([
]));
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
append(json_encode([
]));
$request->setRequestUrl('{{baseUrl}}/v1/:name:unpublish');
$request->setRequestMethod('POST');
$request->setBody($body);
$request->setHeaders([
'content-type' => 'application/json'
]);
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/v1/:name:unpublish' -Method POST -Headers $headers -ContentType 'application/json' -Body '{}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/v1/:name:unpublish' -Method POST -Headers $headers -ContentType 'application/json' -Body '{}'
import http.client
conn = http.client.HTTPSConnection("example.com")
payload = "{}"
headers = { 'content-type': "application/json" }
conn.request("POST", "/baseUrl/v1/:name:unpublish", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/v1/:name:unpublish"
payload = {}
headers = {"content-type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.json())
library(httr)
url <- "{{baseUrl}}/v1/:name:unpublish"
payload <- "{}"
encode <- "json"
response <- VERB("POST", url, body = payload, content_type("application/json"), encode = encode)
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/v1/:name:unpublish")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["content-type"] = 'application/json'
request.body = "{}"
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
headers: {'Content-Type' => 'application/json'}
)
response = conn.post('/baseUrl/v1/:name:unpublish') do |req|
req.body = "{}"
end
puts response.status
puts response.body
use serde_json::json;
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/v1/:name:unpublish";
let payload = json!({});
let mut headers = reqwest::header::HeaderMap::new();
headers.insert("content-type", "application/json".parse().unwrap());
let client = reqwest::Client::new();
let response = client.post(url)
.headers(headers)
.json(&payload)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request POST \
--url {{baseUrl}}/v1/:name:unpublish \
--header 'content-type: application/json' \
--data '{}'
echo '{}' | \
http POST {{baseUrl}}/v1/:name:unpublish \
content-type:application/json
wget --quiet \
--method POST \
--header 'content-type: application/json' \
--body-data '{}' \
--output-document \
- {{baseUrl}}/v1/:name:unpublish
import Foundation
let headers = ["content-type": "application/json"]
let parameters = [] as [String : Any]
let postData = JSONSerialization.data(withJSONObject: parameters, options: [])
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/v1/:name:unpublish")! 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
integrations.projects.locations.products.integrations.versions.upload
{{baseUrl}}/v1/:parent/versions:upload
QUERY PARAMS
parent
BODY json
{
"content": "",
"fileFormat": ""
}
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/v1/:parent/versions:upload");
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 \"content\": \"\",\n \"fileFormat\": \"\"\n}");
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/post "{{baseUrl}}/v1/:parent/versions:upload" {:content-type :json
:form-params {:content ""
:fileFormat ""}})
require "http/client"
url = "{{baseUrl}}/v1/:parent/versions:upload"
headers = HTTP::Headers{
"content-type" => "application/json"
}
reqBody = "{\n \"content\": \"\",\n \"fileFormat\": \"\"\n}"
response = HTTP::Client.post url, headers: headers, body: reqBody
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Post,
RequestUri = new Uri("{{baseUrl}}/v1/:parent/versions:upload"),
Content = new StringContent("{\n \"content\": \"\",\n \"fileFormat\": \"\"\n}")
{
Headers =
{
ContentType = new MediaTypeHeaderValue("application/json")
}
}
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/v1/:parent/versions:upload");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n \"content\": \"\",\n \"fileFormat\": \"\"\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/v1/:parent/versions:upload"
payload := strings.NewReader("{\n \"content\": \"\",\n \"fileFormat\": \"\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("content-type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
POST /baseUrl/v1/:parent/versions:upload HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 39
{
"content": "",
"fileFormat": ""
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/v1/:parent/versions:upload")
.setHeader("content-type", "application/json")
.setBody("{\n \"content\": \"\",\n \"fileFormat\": \"\"\n}")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/v1/:parent/versions:upload"))
.header("content-type", "application/json")
.method("POST", HttpRequest.BodyPublishers.ofString("{\n \"content\": \"\",\n \"fileFormat\": \"\"\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 \"content\": \"\",\n \"fileFormat\": \"\"\n}");
Request request = new Request.Builder()
.url("{{baseUrl}}/v1/:parent/versions:upload")
.post(body)
.addHeader("content-type", "application/json")
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/v1/:parent/versions:upload")
.header("content-type", "application/json")
.body("{\n \"content\": \"\",\n \"fileFormat\": \"\"\n}")
.asString();
const data = JSON.stringify({
content: '',
fileFormat: ''
});
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('POST', '{{baseUrl}}/v1/:parent/versions:upload');
xhr.setRequestHeader('content-type', 'application/json');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'POST',
url: '{{baseUrl}}/v1/:parent/versions:upload',
headers: {'content-type': 'application/json'},
data: {content: '', fileFormat: ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/v1/:parent/versions:upload';
const options = {
method: 'POST',
headers: {'content-type': 'application/json'},
body: '{"content":"","fileFormat":""}'
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/v1/:parent/versions:upload',
method: 'POST',
headers: {
'content-type': 'application/json'
},
processData: false,
data: '{\n "content": "",\n "fileFormat": ""\n}'
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n \"content\": \"\",\n \"fileFormat\": \"\"\n}")
val request = Request.Builder()
.url("{{baseUrl}}/v1/:parent/versions:upload")
.post(body)
.addHeader("content-type", "application/json")
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'POST',
hostname: 'example.com',
port: null,
path: '/baseUrl/v1/:parent/versions:upload',
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({content: '', fileFormat: ''}));
req.end();
const request = require('request');
const options = {
method: 'POST',
url: '{{baseUrl}}/v1/:parent/versions:upload',
headers: {'content-type': 'application/json'},
body: {content: '', fileFormat: ''},
json: true
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('POST', '{{baseUrl}}/v1/:parent/versions:upload');
req.headers({
'content-type': 'application/json'
});
req.type('json');
req.send({
content: '',
fileFormat: ''
});
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {
method: 'POST',
url: '{{baseUrl}}/v1/:parent/versions:upload',
headers: {'content-type': 'application/json'},
data: {content: '', fileFormat: ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/v1/:parent/versions:upload';
const options = {
method: 'POST',
headers: {'content-type': 'application/json'},
body: '{"content":"","fileFormat":""}'
};
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 = @{ @"content": @"",
@"fileFormat": @"" };
NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/v1/:parent/versions:upload"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"POST"];
[request setAllHTTPHeaderFields:headers];
[request setHTTPBody:postData];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/v1/:parent/versions:upload" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n \"content\": \"\",\n \"fileFormat\": \"\"\n}" in
Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/v1/:parent/versions:upload",
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([
'content' => '',
'fileFormat' => ''
]),
CURLOPT_HTTPHEADER => [
"content-type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('POST', '{{baseUrl}}/v1/:parent/versions:upload', [
'body' => '{
"content": "",
"fileFormat": ""
}',
'headers' => [
'content-type' => 'application/json',
],
]);
echo $response->getBody();
setUrl('{{baseUrl}}/v1/:parent/versions:upload');
$request->setMethod(HTTP_METH_POST);
$request->setHeaders([
'content-type' => 'application/json'
]);
$request->setContentType('application/json');
$request->setBody(json_encode([
'content' => '',
'fileFormat' => ''
]));
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
append(json_encode([
'content' => '',
'fileFormat' => ''
]));
$request->setRequestUrl('{{baseUrl}}/v1/:parent/versions:upload');
$request->setRequestMethod('POST');
$request->setBody($body);
$request->setHeaders([
'content-type' => 'application/json'
]);
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/v1/:parent/versions:upload' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
"content": "",
"fileFormat": ""
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/v1/:parent/versions:upload' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
"content": "",
"fileFormat": ""
}'
import http.client
conn = http.client.HTTPSConnection("example.com")
payload = "{\n \"content\": \"\",\n \"fileFormat\": \"\"\n}"
headers = { 'content-type': "application/json" }
conn.request("POST", "/baseUrl/v1/:parent/versions:upload", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/v1/:parent/versions:upload"
payload = {
"content": "",
"fileFormat": ""
}
headers = {"content-type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.json())
library(httr)
url <- "{{baseUrl}}/v1/:parent/versions:upload"
payload <- "{\n \"content\": \"\",\n \"fileFormat\": \"\"\n}"
encode <- "json"
response <- VERB("POST", url, body = payload, content_type("application/json"), encode = encode)
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/v1/:parent/versions:upload")
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 \"content\": \"\",\n \"fileFormat\": \"\"\n}"
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
headers: {'Content-Type' => 'application/json'}
)
response = conn.post('/baseUrl/v1/:parent/versions:upload') do |req|
req.body = "{\n \"content\": \"\",\n \"fileFormat\": \"\"\n}"
end
puts response.status
puts response.body
use serde_json::json;
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/v1/:parent/versions:upload";
let payload = json!({
"content": "",
"fileFormat": ""
});
let mut headers = reqwest::header::HeaderMap::new();
headers.insert("content-type", "application/json".parse().unwrap());
let client = reqwest::Client::new();
let response = client.post(url)
.headers(headers)
.json(&payload)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request POST \
--url {{baseUrl}}/v1/:parent/versions:upload \
--header 'content-type: application/json' \
--data '{
"content": "",
"fileFormat": ""
}'
echo '{
"content": "",
"fileFormat": ""
}' | \
http POST {{baseUrl}}/v1/:parent/versions:upload \
content-type:application/json
wget --quiet \
--method POST \
--header 'content-type: application/json' \
--body-data '{\n "content": "",\n "fileFormat": ""\n}' \
--output-document \
- {{baseUrl}}/v1/:parent/versions:upload
import Foundation
let headers = ["content-type": "application/json"]
let parameters = [
"content": "",
"fileFormat": ""
] as [String : Any]
let postData = JSONSerialization.data(withJSONObject: parameters, options: [])
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/v1/:parent/versions:upload")! 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
integrations.projects.locations.sfdcInstances.create
{{baseUrl}}/v1/:parent/sfdcInstances
QUERY PARAMS
parent
BODY json
{
"authConfigId": [],
"createTime": "",
"deleteTime": "",
"description": "",
"displayName": "",
"name": "",
"serviceAuthority": "",
"sfdcOrgId": "",
"updateTime": ""
}
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/v1/:parent/sfdcInstances");
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 \"authConfigId\": [],\n \"createTime\": \"\",\n \"deleteTime\": \"\",\n \"description\": \"\",\n \"displayName\": \"\",\n \"name\": \"\",\n \"serviceAuthority\": \"\",\n \"sfdcOrgId\": \"\",\n \"updateTime\": \"\"\n}");
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/post "{{baseUrl}}/v1/:parent/sfdcInstances" {:content-type :json
:form-params {:authConfigId []
:createTime ""
:deleteTime ""
:description ""
:displayName ""
:name ""
:serviceAuthority ""
:sfdcOrgId ""
:updateTime ""}})
require "http/client"
url = "{{baseUrl}}/v1/:parent/sfdcInstances"
headers = HTTP::Headers{
"content-type" => "application/json"
}
reqBody = "{\n \"authConfigId\": [],\n \"createTime\": \"\",\n \"deleteTime\": \"\",\n \"description\": \"\",\n \"displayName\": \"\",\n \"name\": \"\",\n \"serviceAuthority\": \"\",\n \"sfdcOrgId\": \"\",\n \"updateTime\": \"\"\n}"
response = HTTP::Client.post url, headers: headers, body: reqBody
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Post,
RequestUri = new Uri("{{baseUrl}}/v1/:parent/sfdcInstances"),
Content = new StringContent("{\n \"authConfigId\": [],\n \"createTime\": \"\",\n \"deleteTime\": \"\",\n \"description\": \"\",\n \"displayName\": \"\",\n \"name\": \"\",\n \"serviceAuthority\": \"\",\n \"sfdcOrgId\": \"\",\n \"updateTime\": \"\"\n}")
{
Headers =
{
ContentType = new MediaTypeHeaderValue("application/json")
}
}
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/v1/:parent/sfdcInstances");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n \"authConfigId\": [],\n \"createTime\": \"\",\n \"deleteTime\": \"\",\n \"description\": \"\",\n \"displayName\": \"\",\n \"name\": \"\",\n \"serviceAuthority\": \"\",\n \"sfdcOrgId\": \"\",\n \"updateTime\": \"\"\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/v1/:parent/sfdcInstances"
payload := strings.NewReader("{\n \"authConfigId\": [],\n \"createTime\": \"\",\n \"deleteTime\": \"\",\n \"description\": \"\",\n \"displayName\": \"\",\n \"name\": \"\",\n \"serviceAuthority\": \"\",\n \"sfdcOrgId\": \"\",\n \"updateTime\": \"\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("content-type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
POST /baseUrl/v1/:parent/sfdcInstances HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 185
{
"authConfigId": [],
"createTime": "",
"deleteTime": "",
"description": "",
"displayName": "",
"name": "",
"serviceAuthority": "",
"sfdcOrgId": "",
"updateTime": ""
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/v1/:parent/sfdcInstances")
.setHeader("content-type", "application/json")
.setBody("{\n \"authConfigId\": [],\n \"createTime\": \"\",\n \"deleteTime\": \"\",\n \"description\": \"\",\n \"displayName\": \"\",\n \"name\": \"\",\n \"serviceAuthority\": \"\",\n \"sfdcOrgId\": \"\",\n \"updateTime\": \"\"\n}")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/v1/:parent/sfdcInstances"))
.header("content-type", "application/json")
.method("POST", HttpRequest.BodyPublishers.ofString("{\n \"authConfigId\": [],\n \"createTime\": \"\",\n \"deleteTime\": \"\",\n \"description\": \"\",\n \"displayName\": \"\",\n \"name\": \"\",\n \"serviceAuthority\": \"\",\n \"sfdcOrgId\": \"\",\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 \"authConfigId\": [],\n \"createTime\": \"\",\n \"deleteTime\": \"\",\n \"description\": \"\",\n \"displayName\": \"\",\n \"name\": \"\",\n \"serviceAuthority\": \"\",\n \"sfdcOrgId\": \"\",\n \"updateTime\": \"\"\n}");
Request request = new Request.Builder()
.url("{{baseUrl}}/v1/:parent/sfdcInstances")
.post(body)
.addHeader("content-type", "application/json")
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/v1/:parent/sfdcInstances")
.header("content-type", "application/json")
.body("{\n \"authConfigId\": [],\n \"createTime\": \"\",\n \"deleteTime\": \"\",\n \"description\": \"\",\n \"displayName\": \"\",\n \"name\": \"\",\n \"serviceAuthority\": \"\",\n \"sfdcOrgId\": \"\",\n \"updateTime\": \"\"\n}")
.asString();
const data = JSON.stringify({
authConfigId: [],
createTime: '',
deleteTime: '',
description: '',
displayName: '',
name: '',
serviceAuthority: '',
sfdcOrgId: '',
updateTime: ''
});
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('POST', '{{baseUrl}}/v1/:parent/sfdcInstances');
xhr.setRequestHeader('content-type', 'application/json');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'POST',
url: '{{baseUrl}}/v1/:parent/sfdcInstances',
headers: {'content-type': 'application/json'},
data: {
authConfigId: [],
createTime: '',
deleteTime: '',
description: '',
displayName: '',
name: '',
serviceAuthority: '',
sfdcOrgId: '',
updateTime: ''
}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/v1/:parent/sfdcInstances';
const options = {
method: 'POST',
headers: {'content-type': 'application/json'},
body: '{"authConfigId":[],"createTime":"","deleteTime":"","description":"","displayName":"","name":"","serviceAuthority":"","sfdcOrgId":"","updateTime":""}'
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/v1/:parent/sfdcInstances',
method: 'POST',
headers: {
'content-type': 'application/json'
},
processData: false,
data: '{\n "authConfigId": [],\n "createTime": "",\n "deleteTime": "",\n "description": "",\n "displayName": "",\n "name": "",\n "serviceAuthority": "",\n "sfdcOrgId": "",\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 \"authConfigId\": [],\n \"createTime\": \"\",\n \"deleteTime\": \"\",\n \"description\": \"\",\n \"displayName\": \"\",\n \"name\": \"\",\n \"serviceAuthority\": \"\",\n \"sfdcOrgId\": \"\",\n \"updateTime\": \"\"\n}")
val request = Request.Builder()
.url("{{baseUrl}}/v1/:parent/sfdcInstances")
.post(body)
.addHeader("content-type", "application/json")
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'POST',
hostname: 'example.com',
port: null,
path: '/baseUrl/v1/:parent/sfdcInstances',
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({
authConfigId: [],
createTime: '',
deleteTime: '',
description: '',
displayName: '',
name: '',
serviceAuthority: '',
sfdcOrgId: '',
updateTime: ''
}));
req.end();
const request = require('request');
const options = {
method: 'POST',
url: '{{baseUrl}}/v1/:parent/sfdcInstances',
headers: {'content-type': 'application/json'},
body: {
authConfigId: [],
createTime: '',
deleteTime: '',
description: '',
displayName: '',
name: '',
serviceAuthority: '',
sfdcOrgId: '',
updateTime: ''
},
json: true
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('POST', '{{baseUrl}}/v1/:parent/sfdcInstances');
req.headers({
'content-type': 'application/json'
});
req.type('json');
req.send({
authConfigId: [],
createTime: '',
deleteTime: '',
description: '',
displayName: '',
name: '',
serviceAuthority: '',
sfdcOrgId: '',
updateTime: ''
});
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {
method: 'POST',
url: '{{baseUrl}}/v1/:parent/sfdcInstances',
headers: {'content-type': 'application/json'},
data: {
authConfigId: [],
createTime: '',
deleteTime: '',
description: '',
displayName: '',
name: '',
serviceAuthority: '',
sfdcOrgId: '',
updateTime: ''
}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/v1/:parent/sfdcInstances';
const options = {
method: 'POST',
headers: {'content-type': 'application/json'},
body: '{"authConfigId":[],"createTime":"","deleteTime":"","description":"","displayName":"","name":"","serviceAuthority":"","sfdcOrgId":"","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 = @{ @"authConfigId": @[ ],
@"createTime": @"",
@"deleteTime": @"",
@"description": @"",
@"displayName": @"",
@"name": @"",
@"serviceAuthority": @"",
@"sfdcOrgId": @"",
@"updateTime": @"" };
NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/v1/:parent/sfdcInstances"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"POST"];
[request setAllHTTPHeaderFields:headers];
[request setHTTPBody:postData];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/v1/:parent/sfdcInstances" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n \"authConfigId\": [],\n \"createTime\": \"\",\n \"deleteTime\": \"\",\n \"description\": \"\",\n \"displayName\": \"\",\n \"name\": \"\",\n \"serviceAuthority\": \"\",\n \"sfdcOrgId\": \"\",\n \"updateTime\": \"\"\n}" in
Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/v1/:parent/sfdcInstances",
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([
'authConfigId' => [
],
'createTime' => '',
'deleteTime' => '',
'description' => '',
'displayName' => '',
'name' => '',
'serviceAuthority' => '',
'sfdcOrgId' => '',
'updateTime' => ''
]),
CURLOPT_HTTPHEADER => [
"content-type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('POST', '{{baseUrl}}/v1/:parent/sfdcInstances', [
'body' => '{
"authConfigId": [],
"createTime": "",
"deleteTime": "",
"description": "",
"displayName": "",
"name": "",
"serviceAuthority": "",
"sfdcOrgId": "",
"updateTime": ""
}',
'headers' => [
'content-type' => 'application/json',
],
]);
echo $response->getBody();
setUrl('{{baseUrl}}/v1/:parent/sfdcInstances');
$request->setMethod(HTTP_METH_POST);
$request->setHeaders([
'content-type' => 'application/json'
]);
$request->setContentType('application/json');
$request->setBody(json_encode([
'authConfigId' => [
],
'createTime' => '',
'deleteTime' => '',
'description' => '',
'displayName' => '',
'name' => '',
'serviceAuthority' => '',
'sfdcOrgId' => '',
'updateTime' => ''
]));
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
append(json_encode([
'authConfigId' => [
],
'createTime' => '',
'deleteTime' => '',
'description' => '',
'displayName' => '',
'name' => '',
'serviceAuthority' => '',
'sfdcOrgId' => '',
'updateTime' => ''
]));
$request->setRequestUrl('{{baseUrl}}/v1/:parent/sfdcInstances');
$request->setRequestMethod('POST');
$request->setBody($body);
$request->setHeaders([
'content-type' => 'application/json'
]);
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/v1/:parent/sfdcInstances' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
"authConfigId": [],
"createTime": "",
"deleteTime": "",
"description": "",
"displayName": "",
"name": "",
"serviceAuthority": "",
"sfdcOrgId": "",
"updateTime": ""
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/v1/:parent/sfdcInstances' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
"authConfigId": [],
"createTime": "",
"deleteTime": "",
"description": "",
"displayName": "",
"name": "",
"serviceAuthority": "",
"sfdcOrgId": "",
"updateTime": ""
}'
import http.client
conn = http.client.HTTPSConnection("example.com")
payload = "{\n \"authConfigId\": [],\n \"createTime\": \"\",\n \"deleteTime\": \"\",\n \"description\": \"\",\n \"displayName\": \"\",\n \"name\": \"\",\n \"serviceAuthority\": \"\",\n \"sfdcOrgId\": \"\",\n \"updateTime\": \"\"\n}"
headers = { 'content-type': "application/json" }
conn.request("POST", "/baseUrl/v1/:parent/sfdcInstances", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/v1/:parent/sfdcInstances"
payload = {
"authConfigId": [],
"createTime": "",
"deleteTime": "",
"description": "",
"displayName": "",
"name": "",
"serviceAuthority": "",
"sfdcOrgId": "",
"updateTime": ""
}
headers = {"content-type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.json())
library(httr)
url <- "{{baseUrl}}/v1/:parent/sfdcInstances"
payload <- "{\n \"authConfigId\": [],\n \"createTime\": \"\",\n \"deleteTime\": \"\",\n \"description\": \"\",\n \"displayName\": \"\",\n \"name\": \"\",\n \"serviceAuthority\": \"\",\n \"sfdcOrgId\": \"\",\n \"updateTime\": \"\"\n}"
encode <- "json"
response <- VERB("POST", url, body = payload, content_type("application/json"), encode = encode)
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/v1/:parent/sfdcInstances")
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 \"authConfigId\": [],\n \"createTime\": \"\",\n \"deleteTime\": \"\",\n \"description\": \"\",\n \"displayName\": \"\",\n \"name\": \"\",\n \"serviceAuthority\": \"\",\n \"sfdcOrgId\": \"\",\n \"updateTime\": \"\"\n}"
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
headers: {'Content-Type' => 'application/json'}
)
response = conn.post('/baseUrl/v1/:parent/sfdcInstances') do |req|
req.body = "{\n \"authConfigId\": [],\n \"createTime\": \"\",\n \"deleteTime\": \"\",\n \"description\": \"\",\n \"displayName\": \"\",\n \"name\": \"\",\n \"serviceAuthority\": \"\",\n \"sfdcOrgId\": \"\",\n \"updateTime\": \"\"\n}"
end
puts response.status
puts response.body
use serde_json::json;
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/v1/:parent/sfdcInstances";
let payload = json!({
"authConfigId": (),
"createTime": "",
"deleteTime": "",
"description": "",
"displayName": "",
"name": "",
"serviceAuthority": "",
"sfdcOrgId": "",
"updateTime": ""
});
let mut headers = reqwest::header::HeaderMap::new();
headers.insert("content-type", "application/json".parse().unwrap());
let client = reqwest::Client::new();
let response = client.post(url)
.headers(headers)
.json(&payload)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request POST \
--url {{baseUrl}}/v1/:parent/sfdcInstances \
--header 'content-type: application/json' \
--data '{
"authConfigId": [],
"createTime": "",
"deleteTime": "",
"description": "",
"displayName": "",
"name": "",
"serviceAuthority": "",
"sfdcOrgId": "",
"updateTime": ""
}'
echo '{
"authConfigId": [],
"createTime": "",
"deleteTime": "",
"description": "",
"displayName": "",
"name": "",
"serviceAuthority": "",
"sfdcOrgId": "",
"updateTime": ""
}' | \
http POST {{baseUrl}}/v1/:parent/sfdcInstances \
content-type:application/json
wget --quiet \
--method POST \
--header 'content-type: application/json' \
--body-data '{\n "authConfigId": [],\n "createTime": "",\n "deleteTime": "",\n "description": "",\n "displayName": "",\n "name": "",\n "serviceAuthority": "",\n "sfdcOrgId": "",\n "updateTime": ""\n}' \
--output-document \
- {{baseUrl}}/v1/:parent/sfdcInstances
import Foundation
let headers = ["content-type": "application/json"]
let parameters = [
"authConfigId": [],
"createTime": "",
"deleteTime": "",
"description": "",
"displayName": "",
"name": "",
"serviceAuthority": "",
"sfdcOrgId": "",
"updateTime": ""
] as [String : Any]
let postData = JSONSerialization.data(withJSONObject: parameters, options: [])
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/v1/:parent/sfdcInstances")! 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
integrations.projects.locations.sfdcInstances.list
{{baseUrl}}/v1/:parent/sfdcInstances
QUERY PARAMS
parent
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/v1/:parent/sfdcInstances");
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/get "{{baseUrl}}/v1/:parent/sfdcInstances")
require "http/client"
url = "{{baseUrl}}/v1/:parent/sfdcInstances"
response = HTTP::Client.get url
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Get,
RequestUri = new Uri("{{baseUrl}}/v1/:parent/sfdcInstances"),
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/v1/:parent/sfdcInstances");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/v1/:parent/sfdcInstances"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
GET /baseUrl/v1/:parent/sfdcInstances HTTP/1.1
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/v1/:parent/sfdcInstances")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/v1/:parent/sfdcInstances"))
.method("GET", HttpRequest.BodyPublishers.noBody())
.build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("{{baseUrl}}/v1/:parent/sfdcInstances")
.get()
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/v1/:parent/sfdcInstances")
.asString();
const data = null;
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('GET', '{{baseUrl}}/v1/:parent/sfdcInstances');
xhr.send(data);
import axios from 'axios';
const options = {method: 'GET', url: '{{baseUrl}}/v1/:parent/sfdcInstances'};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/v1/:parent/sfdcInstances';
const options = {method: 'GET'};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/v1/:parent/sfdcInstances',
method: 'GET',
headers: {}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/v1/:parent/sfdcInstances")
.get()
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'GET',
hostname: 'example.com',
port: null,
path: '/baseUrl/v1/:parent/sfdcInstances',
headers: {}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
const request = require('request');
const options = {method: 'GET', url: '{{baseUrl}}/v1/:parent/sfdcInstances'};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('GET', '{{baseUrl}}/v1/:parent/sfdcInstances');
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {method: 'GET', url: '{{baseUrl}}/v1/:parent/sfdcInstances'};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/v1/:parent/sfdcInstances';
const options = {method: 'GET'};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/v1/:parent/sfdcInstances"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/v1/:parent/sfdcInstances" in
Client.call `GET uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/v1/:parent/sfdcInstances",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('GET', '{{baseUrl}}/v1/:parent/sfdcInstances');
echo $response->getBody();
setUrl('{{baseUrl}}/v1/:parent/sfdcInstances');
$request->setMethod(HTTP_METH_GET);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/v1/:parent/sfdcInstances');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/v1/:parent/sfdcInstances' -Method GET
$response = Invoke-RestMethod -Uri '{{baseUrl}}/v1/:parent/sfdcInstances' -Method GET
import http.client
conn = http.client.HTTPSConnection("example.com")
conn.request("GET", "/baseUrl/v1/:parent/sfdcInstances")
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/v1/:parent/sfdcInstances"
response = requests.get(url)
print(response.json())
library(httr)
url <- "{{baseUrl}}/v1/:parent/sfdcInstances"
response <- VERB("GET", url, content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/v1/:parent/sfdcInstances")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
)
response = conn.get('/baseUrl/v1/:parent/sfdcInstances') do |req|
end
puts response.status
puts response.body
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/v1/:parent/sfdcInstances";
let client = reqwest::Client::new();
let response = client.get(url)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request GET \
--url {{baseUrl}}/v1/:parent/sfdcInstances
http GET {{baseUrl}}/v1/:parent/sfdcInstances
wget --quiet \
--method GET \
--output-document \
- {{baseUrl}}/v1/:parent/sfdcInstances
import Foundation
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/v1/:parent/sfdcInstances")! 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
integrations.projects.locations.sfdcInstances.sfdcChannels.create
{{baseUrl}}/v1/:parent/sfdcChannels
QUERY PARAMS
parent
BODY json
{
"channelTopic": "",
"createTime": "",
"deleteTime": "",
"description": "",
"displayName": "",
"isActive": false,
"lastReplayId": "",
"name": "",
"updateTime": ""
}
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/v1/:parent/sfdcChannels");
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 \"channelTopic\": \"\",\n \"createTime\": \"\",\n \"deleteTime\": \"\",\n \"description\": \"\",\n \"displayName\": \"\",\n \"isActive\": false,\n \"lastReplayId\": \"\",\n \"name\": \"\",\n \"updateTime\": \"\"\n}");
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/post "{{baseUrl}}/v1/:parent/sfdcChannels" {:content-type :json
:form-params {:channelTopic ""
:createTime ""
:deleteTime ""
:description ""
:displayName ""
:isActive false
:lastReplayId ""
:name ""
:updateTime ""}})
require "http/client"
url = "{{baseUrl}}/v1/:parent/sfdcChannels"
headers = HTTP::Headers{
"content-type" => "application/json"
}
reqBody = "{\n \"channelTopic\": \"\",\n \"createTime\": \"\",\n \"deleteTime\": \"\",\n \"description\": \"\",\n \"displayName\": \"\",\n \"isActive\": false,\n \"lastReplayId\": \"\",\n \"name\": \"\",\n \"updateTime\": \"\"\n}"
response = HTTP::Client.post url, headers: headers, body: reqBody
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Post,
RequestUri = new Uri("{{baseUrl}}/v1/:parent/sfdcChannels"),
Content = new StringContent("{\n \"channelTopic\": \"\",\n \"createTime\": \"\",\n \"deleteTime\": \"\",\n \"description\": \"\",\n \"displayName\": \"\",\n \"isActive\": false,\n \"lastReplayId\": \"\",\n \"name\": \"\",\n \"updateTime\": \"\"\n}")
{
Headers =
{
ContentType = new MediaTypeHeaderValue("application/json")
}
}
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/v1/:parent/sfdcChannels");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n \"channelTopic\": \"\",\n \"createTime\": \"\",\n \"deleteTime\": \"\",\n \"description\": \"\",\n \"displayName\": \"\",\n \"isActive\": false,\n \"lastReplayId\": \"\",\n \"name\": \"\",\n \"updateTime\": \"\"\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/v1/:parent/sfdcChannels"
payload := strings.NewReader("{\n \"channelTopic\": \"\",\n \"createTime\": \"\",\n \"deleteTime\": \"\",\n \"description\": \"\",\n \"displayName\": \"\",\n \"isActive\": false,\n \"lastReplayId\": \"\",\n \"name\": \"\",\n \"updateTime\": \"\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("content-type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
POST /baseUrl/v1/:parent/sfdcChannels HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 183
{
"channelTopic": "",
"createTime": "",
"deleteTime": "",
"description": "",
"displayName": "",
"isActive": false,
"lastReplayId": "",
"name": "",
"updateTime": ""
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/v1/:parent/sfdcChannels")
.setHeader("content-type", "application/json")
.setBody("{\n \"channelTopic\": \"\",\n \"createTime\": \"\",\n \"deleteTime\": \"\",\n \"description\": \"\",\n \"displayName\": \"\",\n \"isActive\": false,\n \"lastReplayId\": \"\",\n \"name\": \"\",\n \"updateTime\": \"\"\n}")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/v1/:parent/sfdcChannels"))
.header("content-type", "application/json")
.method("POST", HttpRequest.BodyPublishers.ofString("{\n \"channelTopic\": \"\",\n \"createTime\": \"\",\n \"deleteTime\": \"\",\n \"description\": \"\",\n \"displayName\": \"\",\n \"isActive\": false,\n \"lastReplayId\": \"\",\n \"name\": \"\",\n \"updateTime\": \"\"\n}"))
.build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();
MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\n \"channelTopic\": \"\",\n \"createTime\": \"\",\n \"deleteTime\": \"\",\n \"description\": \"\",\n \"displayName\": \"\",\n \"isActive\": false,\n \"lastReplayId\": \"\",\n \"name\": \"\",\n \"updateTime\": \"\"\n}");
Request request = new Request.Builder()
.url("{{baseUrl}}/v1/:parent/sfdcChannels")
.post(body)
.addHeader("content-type", "application/json")
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/v1/:parent/sfdcChannels")
.header("content-type", "application/json")
.body("{\n \"channelTopic\": \"\",\n \"createTime\": \"\",\n \"deleteTime\": \"\",\n \"description\": \"\",\n \"displayName\": \"\",\n \"isActive\": false,\n \"lastReplayId\": \"\",\n \"name\": \"\",\n \"updateTime\": \"\"\n}")
.asString();
const data = JSON.stringify({
channelTopic: '',
createTime: '',
deleteTime: '',
description: '',
displayName: '',
isActive: false,
lastReplayId: '',
name: '',
updateTime: ''
});
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('POST', '{{baseUrl}}/v1/:parent/sfdcChannels');
xhr.setRequestHeader('content-type', 'application/json');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'POST',
url: '{{baseUrl}}/v1/:parent/sfdcChannels',
headers: {'content-type': 'application/json'},
data: {
channelTopic: '',
createTime: '',
deleteTime: '',
description: '',
displayName: '',
isActive: false,
lastReplayId: '',
name: '',
updateTime: ''
}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/v1/:parent/sfdcChannels';
const options = {
method: 'POST',
headers: {'content-type': 'application/json'},
body: '{"channelTopic":"","createTime":"","deleteTime":"","description":"","displayName":"","isActive":false,"lastReplayId":"","name":"","updateTime":""}'
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/v1/:parent/sfdcChannels',
method: 'POST',
headers: {
'content-type': 'application/json'
},
processData: false,
data: '{\n "channelTopic": "",\n "createTime": "",\n "deleteTime": "",\n "description": "",\n "displayName": "",\n "isActive": false,\n "lastReplayId": "",\n "name": "",\n "updateTime": ""\n}'
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n \"channelTopic\": \"\",\n \"createTime\": \"\",\n \"deleteTime\": \"\",\n \"description\": \"\",\n \"displayName\": \"\",\n \"isActive\": false,\n \"lastReplayId\": \"\",\n \"name\": \"\",\n \"updateTime\": \"\"\n}")
val request = Request.Builder()
.url("{{baseUrl}}/v1/:parent/sfdcChannels")
.post(body)
.addHeader("content-type", "application/json")
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'POST',
hostname: 'example.com',
port: null,
path: '/baseUrl/v1/:parent/sfdcChannels',
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({
channelTopic: '',
createTime: '',
deleteTime: '',
description: '',
displayName: '',
isActive: false,
lastReplayId: '',
name: '',
updateTime: ''
}));
req.end();
const request = require('request');
const options = {
method: 'POST',
url: '{{baseUrl}}/v1/:parent/sfdcChannels',
headers: {'content-type': 'application/json'},
body: {
channelTopic: '',
createTime: '',
deleteTime: '',
description: '',
displayName: '',
isActive: false,
lastReplayId: '',
name: '',
updateTime: ''
},
json: true
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('POST', '{{baseUrl}}/v1/:parent/sfdcChannels');
req.headers({
'content-type': 'application/json'
});
req.type('json');
req.send({
channelTopic: '',
createTime: '',
deleteTime: '',
description: '',
displayName: '',
isActive: false,
lastReplayId: '',
name: '',
updateTime: ''
});
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {
method: 'POST',
url: '{{baseUrl}}/v1/:parent/sfdcChannels',
headers: {'content-type': 'application/json'},
data: {
channelTopic: '',
createTime: '',
deleteTime: '',
description: '',
displayName: '',
isActive: false,
lastReplayId: '',
name: '',
updateTime: ''
}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/v1/:parent/sfdcChannels';
const options = {
method: 'POST',
headers: {'content-type': 'application/json'},
body: '{"channelTopic":"","createTime":"","deleteTime":"","description":"","displayName":"","isActive":false,"lastReplayId":"","name":"","updateTime":""}'
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSDictionary *headers = @{ @"content-type": @"application/json" };
NSDictionary *parameters = @{ @"channelTopic": @"",
@"createTime": @"",
@"deleteTime": @"",
@"description": @"",
@"displayName": @"",
@"isActive": @NO,
@"lastReplayId": @"",
@"name": @"",
@"updateTime": @"" };
NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/v1/:parent/sfdcChannels"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"POST"];
[request setAllHTTPHeaderFields:headers];
[request setHTTPBody:postData];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/v1/:parent/sfdcChannels" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n \"channelTopic\": \"\",\n \"createTime\": \"\",\n \"deleteTime\": \"\",\n \"description\": \"\",\n \"displayName\": \"\",\n \"isActive\": false,\n \"lastReplayId\": \"\",\n \"name\": \"\",\n \"updateTime\": \"\"\n}" in
Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/v1/:parent/sfdcChannels",
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([
'channelTopic' => '',
'createTime' => '',
'deleteTime' => '',
'description' => '',
'displayName' => '',
'isActive' => null,
'lastReplayId' => '',
'name' => '',
'updateTime' => ''
]),
CURLOPT_HTTPHEADER => [
"content-type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('POST', '{{baseUrl}}/v1/:parent/sfdcChannels', [
'body' => '{
"channelTopic": "",
"createTime": "",
"deleteTime": "",
"description": "",
"displayName": "",
"isActive": false,
"lastReplayId": "",
"name": "",
"updateTime": ""
}',
'headers' => [
'content-type' => 'application/json',
],
]);
echo $response->getBody();
setUrl('{{baseUrl}}/v1/:parent/sfdcChannels');
$request->setMethod(HTTP_METH_POST);
$request->setHeaders([
'content-type' => 'application/json'
]);
$request->setContentType('application/json');
$request->setBody(json_encode([
'channelTopic' => '',
'createTime' => '',
'deleteTime' => '',
'description' => '',
'displayName' => '',
'isActive' => null,
'lastReplayId' => '',
'name' => '',
'updateTime' => ''
]));
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
append(json_encode([
'channelTopic' => '',
'createTime' => '',
'deleteTime' => '',
'description' => '',
'displayName' => '',
'isActive' => null,
'lastReplayId' => '',
'name' => '',
'updateTime' => ''
]));
$request->setRequestUrl('{{baseUrl}}/v1/:parent/sfdcChannels');
$request->setRequestMethod('POST');
$request->setBody($body);
$request->setHeaders([
'content-type' => 'application/json'
]);
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/v1/:parent/sfdcChannels' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
"channelTopic": "",
"createTime": "",
"deleteTime": "",
"description": "",
"displayName": "",
"isActive": false,
"lastReplayId": "",
"name": "",
"updateTime": ""
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/v1/:parent/sfdcChannels' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
"channelTopic": "",
"createTime": "",
"deleteTime": "",
"description": "",
"displayName": "",
"isActive": false,
"lastReplayId": "",
"name": "",
"updateTime": ""
}'
import http.client
conn = http.client.HTTPSConnection("example.com")
payload = "{\n \"channelTopic\": \"\",\n \"createTime\": \"\",\n \"deleteTime\": \"\",\n \"description\": \"\",\n \"displayName\": \"\",\n \"isActive\": false,\n \"lastReplayId\": \"\",\n \"name\": \"\",\n \"updateTime\": \"\"\n}"
headers = { 'content-type': "application/json" }
conn.request("POST", "/baseUrl/v1/:parent/sfdcChannels", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/v1/:parent/sfdcChannels"
payload = {
"channelTopic": "",
"createTime": "",
"deleteTime": "",
"description": "",
"displayName": "",
"isActive": False,
"lastReplayId": "",
"name": "",
"updateTime": ""
}
headers = {"content-type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.json())
library(httr)
url <- "{{baseUrl}}/v1/:parent/sfdcChannels"
payload <- "{\n \"channelTopic\": \"\",\n \"createTime\": \"\",\n \"deleteTime\": \"\",\n \"description\": \"\",\n \"displayName\": \"\",\n \"isActive\": false,\n \"lastReplayId\": \"\",\n \"name\": \"\",\n \"updateTime\": \"\"\n}"
encode <- "json"
response <- VERB("POST", url, body = payload, content_type("application/json"), encode = encode)
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/v1/:parent/sfdcChannels")
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 \"channelTopic\": \"\",\n \"createTime\": \"\",\n \"deleteTime\": \"\",\n \"description\": \"\",\n \"displayName\": \"\",\n \"isActive\": false,\n \"lastReplayId\": \"\",\n \"name\": \"\",\n \"updateTime\": \"\"\n}"
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
headers: {'Content-Type' => 'application/json'}
)
response = conn.post('/baseUrl/v1/:parent/sfdcChannels') do |req|
req.body = "{\n \"channelTopic\": \"\",\n \"createTime\": \"\",\n \"deleteTime\": \"\",\n \"description\": \"\",\n \"displayName\": \"\",\n \"isActive\": false,\n \"lastReplayId\": \"\",\n \"name\": \"\",\n \"updateTime\": \"\"\n}"
end
puts response.status
puts response.body
use serde_json::json;
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/v1/:parent/sfdcChannels";
let payload = json!({
"channelTopic": "",
"createTime": "",
"deleteTime": "",
"description": "",
"displayName": "",
"isActive": false,
"lastReplayId": "",
"name": "",
"updateTime": ""
});
let mut headers = reqwest::header::HeaderMap::new();
headers.insert("content-type", "application/json".parse().unwrap());
let client = reqwest::Client::new();
let response = client.post(url)
.headers(headers)
.json(&payload)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request POST \
--url {{baseUrl}}/v1/:parent/sfdcChannels \
--header 'content-type: application/json' \
--data '{
"channelTopic": "",
"createTime": "",
"deleteTime": "",
"description": "",
"displayName": "",
"isActive": false,
"lastReplayId": "",
"name": "",
"updateTime": ""
}'
echo '{
"channelTopic": "",
"createTime": "",
"deleteTime": "",
"description": "",
"displayName": "",
"isActive": false,
"lastReplayId": "",
"name": "",
"updateTime": ""
}' | \
http POST {{baseUrl}}/v1/:parent/sfdcChannels \
content-type:application/json
wget --quiet \
--method POST \
--header 'content-type: application/json' \
--body-data '{\n "channelTopic": "",\n "createTime": "",\n "deleteTime": "",\n "description": "",\n "displayName": "",\n "isActive": false,\n "lastReplayId": "",\n "name": "",\n "updateTime": ""\n}' \
--output-document \
- {{baseUrl}}/v1/:parent/sfdcChannels
import Foundation
let headers = ["content-type": "application/json"]
let parameters = [
"channelTopic": "",
"createTime": "",
"deleteTime": "",
"description": "",
"displayName": "",
"isActive": false,
"lastReplayId": "",
"name": "",
"updateTime": ""
] as [String : Any]
let postData = JSONSerialization.data(withJSONObject: parameters, options: [])
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/v1/:parent/sfdcChannels")! 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
integrations.projects.locations.sfdcInstances.sfdcChannels.delete
{{baseUrl}}/v1/:name
QUERY PARAMS
name
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "DELETE");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/v1/:name");
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/delete "{{baseUrl}}/v1/:name")
require "http/client"
url = "{{baseUrl}}/v1/:name"
response = HTTP::Client.delete url
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Delete,
RequestUri = new Uri("{{baseUrl}}/v1/:name"),
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/v1/:name");
var request = new RestRequest("", Method.Delete);
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/v1/:name"
req, _ := http.NewRequest("DELETE", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
DELETE /baseUrl/v1/:name HTTP/1.1
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("DELETE", "{{baseUrl}}/v1/:name")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/v1/:name"))
.method("DELETE", HttpRequest.BodyPublishers.noBody())
.build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("{{baseUrl}}/v1/:name")
.delete(null)
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.delete("{{baseUrl}}/v1/:name")
.asString();
const data = null;
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('DELETE', '{{baseUrl}}/v1/:name');
xhr.send(data);
import axios from 'axios';
const options = {method: 'DELETE', url: '{{baseUrl}}/v1/:name'};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/v1/:name';
const options = {method: 'DELETE'};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/v1/:name',
method: 'DELETE',
headers: {}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/v1/:name")
.delete(null)
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'DELETE',
hostname: 'example.com',
port: null,
path: '/baseUrl/v1/:name',
headers: {}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
const request = require('request');
const options = {method: 'DELETE', url: '{{baseUrl}}/v1/:name'};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('DELETE', '{{baseUrl}}/v1/:name');
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {method: 'DELETE', url: '{{baseUrl}}/v1/:name'};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/v1/:name';
const options = {method: 'DELETE'};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/v1/:name"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"DELETE"];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/v1/:name" in
Client.call `DELETE uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/v1/:name",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "DELETE",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('DELETE', '{{baseUrl}}/v1/:name');
echo $response->getBody();
setUrl('{{baseUrl}}/v1/:name');
$request->setMethod(HTTP_METH_DELETE);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/v1/:name');
$request->setRequestMethod('DELETE');
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/v1/:name' -Method DELETE
$response = Invoke-RestMethod -Uri '{{baseUrl}}/v1/:name' -Method DELETE
import http.client
conn = http.client.HTTPSConnection("example.com")
conn.request("DELETE", "/baseUrl/v1/:name")
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/v1/:name"
response = requests.delete(url)
print(response.json())
library(httr)
url <- "{{baseUrl}}/v1/:name"
response <- VERB("DELETE", url, content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/v1/:name")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Delete.new(url)
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
)
response = conn.delete('/baseUrl/v1/:name') do |req|
end
puts response.status
puts response.body
use std::str::FromStr;
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/v1/:name";
let client = reqwest::Client::new();
let response = client.request(reqwest::Method::from_str("DELETE").unwrap(), url)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request DELETE \
--url {{baseUrl}}/v1/:name
http DELETE {{baseUrl}}/v1/:name
wget --quiet \
--method DELETE \
--output-document \
- {{baseUrl}}/v1/:name
import Foundation
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/v1/:name")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "DELETE"
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
GET
integrations.projects.locations.sfdcInstances.sfdcChannels.get
{{baseUrl}}/v1/:name
QUERY PARAMS
name
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/v1/:name");
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/get "{{baseUrl}}/v1/:name")
require "http/client"
url = "{{baseUrl}}/v1/:name"
response = HTTP::Client.get url
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Get,
RequestUri = new Uri("{{baseUrl}}/v1/:name"),
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/v1/:name");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/v1/:name"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
GET /baseUrl/v1/:name HTTP/1.1
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/v1/:name")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/v1/:name"))
.method("GET", HttpRequest.BodyPublishers.noBody())
.build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("{{baseUrl}}/v1/:name")
.get()
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/v1/:name")
.asString();
const data = null;
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('GET', '{{baseUrl}}/v1/:name');
xhr.send(data);
import axios from 'axios';
const options = {method: 'GET', url: '{{baseUrl}}/v1/:name'};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/v1/:name';
const options = {method: 'GET'};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/v1/:name',
method: 'GET',
headers: {}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/v1/:name")
.get()
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'GET',
hostname: 'example.com',
port: null,
path: '/baseUrl/v1/:name',
headers: {}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
const request = require('request');
const options = {method: 'GET', url: '{{baseUrl}}/v1/:name'};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('GET', '{{baseUrl}}/v1/:name');
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {method: 'GET', url: '{{baseUrl}}/v1/:name'};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/v1/:name';
const options = {method: 'GET'};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/v1/:name"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/v1/:name" in
Client.call `GET uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/v1/:name",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('GET', '{{baseUrl}}/v1/:name');
echo $response->getBody();
setUrl('{{baseUrl}}/v1/:name');
$request->setMethod(HTTP_METH_GET);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/v1/:name');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/v1/:name' -Method GET
$response = Invoke-RestMethod -Uri '{{baseUrl}}/v1/:name' -Method GET
import http.client
conn = http.client.HTTPSConnection("example.com")
conn.request("GET", "/baseUrl/v1/:name")
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/v1/:name"
response = requests.get(url)
print(response.json())
library(httr)
url <- "{{baseUrl}}/v1/:name"
response <- VERB("GET", url, content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/v1/:name")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
)
response = conn.get('/baseUrl/v1/:name') do |req|
end
puts response.status
puts response.body
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/v1/:name";
let client = reqwest::Client::new();
let response = client.get(url)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request GET \
--url {{baseUrl}}/v1/:name
http GET {{baseUrl}}/v1/:name
wget --quiet \
--method GET \
--output-document \
- {{baseUrl}}/v1/:name
import Foundation
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/v1/:name")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "GET"
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
GET
integrations.projects.locations.sfdcInstances.sfdcChannels.list
{{baseUrl}}/v1/:parent/sfdcChannels
QUERY PARAMS
parent
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/v1/:parent/sfdcChannels");
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/get "{{baseUrl}}/v1/:parent/sfdcChannels")
require "http/client"
url = "{{baseUrl}}/v1/:parent/sfdcChannels"
response = HTTP::Client.get url
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Get,
RequestUri = new Uri("{{baseUrl}}/v1/:parent/sfdcChannels"),
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/v1/:parent/sfdcChannels");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/v1/:parent/sfdcChannels"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
GET /baseUrl/v1/:parent/sfdcChannels HTTP/1.1
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/v1/:parent/sfdcChannels")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/v1/:parent/sfdcChannels"))
.method("GET", HttpRequest.BodyPublishers.noBody())
.build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("{{baseUrl}}/v1/:parent/sfdcChannels")
.get()
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/v1/:parent/sfdcChannels")
.asString();
const data = null;
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('GET', '{{baseUrl}}/v1/:parent/sfdcChannels');
xhr.send(data);
import axios from 'axios';
const options = {method: 'GET', url: '{{baseUrl}}/v1/:parent/sfdcChannels'};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/v1/:parent/sfdcChannels';
const options = {method: 'GET'};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/v1/:parent/sfdcChannels',
method: 'GET',
headers: {}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/v1/:parent/sfdcChannels")
.get()
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'GET',
hostname: 'example.com',
port: null,
path: '/baseUrl/v1/:parent/sfdcChannels',
headers: {}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
const request = require('request');
const options = {method: 'GET', url: '{{baseUrl}}/v1/:parent/sfdcChannels'};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('GET', '{{baseUrl}}/v1/:parent/sfdcChannels');
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {method: 'GET', url: '{{baseUrl}}/v1/:parent/sfdcChannels'};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/v1/:parent/sfdcChannels';
const options = {method: 'GET'};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/v1/:parent/sfdcChannels"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/v1/:parent/sfdcChannels" in
Client.call `GET uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/v1/:parent/sfdcChannels",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('GET', '{{baseUrl}}/v1/:parent/sfdcChannels');
echo $response->getBody();
setUrl('{{baseUrl}}/v1/:parent/sfdcChannels');
$request->setMethod(HTTP_METH_GET);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/v1/:parent/sfdcChannels');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/v1/:parent/sfdcChannels' -Method GET
$response = Invoke-RestMethod -Uri '{{baseUrl}}/v1/:parent/sfdcChannels' -Method GET
import http.client
conn = http.client.HTTPSConnection("example.com")
conn.request("GET", "/baseUrl/v1/:parent/sfdcChannels")
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/v1/:parent/sfdcChannels"
response = requests.get(url)
print(response.json())
library(httr)
url <- "{{baseUrl}}/v1/:parent/sfdcChannels"
response <- VERB("GET", url, content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/v1/:parent/sfdcChannels")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
)
response = conn.get('/baseUrl/v1/:parent/sfdcChannels') do |req|
end
puts response.status
puts response.body
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/v1/:parent/sfdcChannels";
let client = reqwest::Client::new();
let response = client.get(url)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request GET \
--url {{baseUrl}}/v1/:parent/sfdcChannels
http GET {{baseUrl}}/v1/:parent/sfdcChannels
wget --quiet \
--method GET \
--output-document \
- {{baseUrl}}/v1/:parent/sfdcChannels
import Foundation
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/v1/:parent/sfdcChannels")! 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
integrations.projects.locations.sfdcInstances.sfdcChannels.patch
{{baseUrl}}/v1/:name
QUERY PARAMS
name
BODY json
{
"channelTopic": "",
"createTime": "",
"deleteTime": "",
"description": "",
"displayName": "",
"isActive": false,
"lastReplayId": "",
"name": "",
"updateTime": ""
}
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "PATCH");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/v1/:name");
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "content-type: application/json");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
curl_easy_setopt(hnd, CURLOPT_POSTFIELDS, "{\n \"channelTopic\": \"\",\n \"createTime\": \"\",\n \"deleteTime\": \"\",\n \"description\": \"\",\n \"displayName\": \"\",\n \"isActive\": false,\n \"lastReplayId\": \"\",\n \"name\": \"\",\n \"updateTime\": \"\"\n}");
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/patch "{{baseUrl}}/v1/:name" {:content-type :json
:form-params {:channelTopic ""
:createTime ""
:deleteTime ""
:description ""
:displayName ""
:isActive false
:lastReplayId ""
:name ""
:updateTime ""}})
require "http/client"
url = "{{baseUrl}}/v1/:name"
headers = HTTP::Headers{
"content-type" => "application/json"
}
reqBody = "{\n \"channelTopic\": \"\",\n \"createTime\": \"\",\n \"deleteTime\": \"\",\n \"description\": \"\",\n \"displayName\": \"\",\n \"isActive\": false,\n \"lastReplayId\": \"\",\n \"name\": \"\",\n \"updateTime\": \"\"\n}"
response = HTTP::Client.patch url, headers: headers, body: reqBody
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Patch,
RequestUri = new Uri("{{baseUrl}}/v1/:name"),
Content = new StringContent("{\n \"channelTopic\": \"\",\n \"createTime\": \"\",\n \"deleteTime\": \"\",\n \"description\": \"\",\n \"displayName\": \"\",\n \"isActive\": false,\n \"lastReplayId\": \"\",\n \"name\": \"\",\n \"updateTime\": \"\"\n}")
{
Headers =
{
ContentType = new MediaTypeHeaderValue("application/json")
}
}
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/v1/:name");
var request = new RestRequest("", Method.Patch);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n \"channelTopic\": \"\",\n \"createTime\": \"\",\n \"deleteTime\": \"\",\n \"description\": \"\",\n \"displayName\": \"\",\n \"isActive\": false,\n \"lastReplayId\": \"\",\n \"name\": \"\",\n \"updateTime\": \"\"\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/v1/:name"
payload := strings.NewReader("{\n \"channelTopic\": \"\",\n \"createTime\": \"\",\n \"deleteTime\": \"\",\n \"description\": \"\",\n \"displayName\": \"\",\n \"isActive\": false,\n \"lastReplayId\": \"\",\n \"name\": \"\",\n \"updateTime\": \"\"\n}")
req, _ := http.NewRequest("PATCH", url, payload)
req.Header.Add("content-type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
PATCH /baseUrl/v1/:name HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 183
{
"channelTopic": "",
"createTime": "",
"deleteTime": "",
"description": "",
"displayName": "",
"isActive": false,
"lastReplayId": "",
"name": "",
"updateTime": ""
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("PATCH", "{{baseUrl}}/v1/:name")
.setHeader("content-type", "application/json")
.setBody("{\n \"channelTopic\": \"\",\n \"createTime\": \"\",\n \"deleteTime\": \"\",\n \"description\": \"\",\n \"displayName\": \"\",\n \"isActive\": false,\n \"lastReplayId\": \"\",\n \"name\": \"\",\n \"updateTime\": \"\"\n}")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/v1/:name"))
.header("content-type", "application/json")
.method("PATCH", HttpRequest.BodyPublishers.ofString("{\n \"channelTopic\": \"\",\n \"createTime\": \"\",\n \"deleteTime\": \"\",\n \"description\": \"\",\n \"displayName\": \"\",\n \"isActive\": false,\n \"lastReplayId\": \"\",\n \"name\": \"\",\n \"updateTime\": \"\"\n}"))
.build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();
MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\n \"channelTopic\": \"\",\n \"createTime\": \"\",\n \"deleteTime\": \"\",\n \"description\": \"\",\n \"displayName\": \"\",\n \"isActive\": false,\n \"lastReplayId\": \"\",\n \"name\": \"\",\n \"updateTime\": \"\"\n}");
Request request = new Request.Builder()
.url("{{baseUrl}}/v1/:name")
.patch(body)
.addHeader("content-type", "application/json")
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.patch("{{baseUrl}}/v1/:name")
.header("content-type", "application/json")
.body("{\n \"channelTopic\": \"\",\n \"createTime\": \"\",\n \"deleteTime\": \"\",\n \"description\": \"\",\n \"displayName\": \"\",\n \"isActive\": false,\n \"lastReplayId\": \"\",\n \"name\": \"\",\n \"updateTime\": \"\"\n}")
.asString();
const data = JSON.stringify({
channelTopic: '',
createTime: '',
deleteTime: '',
description: '',
displayName: '',
isActive: false,
lastReplayId: '',
name: '',
updateTime: ''
});
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('PATCH', '{{baseUrl}}/v1/:name');
xhr.setRequestHeader('content-type', 'application/json');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'PATCH',
url: '{{baseUrl}}/v1/:name',
headers: {'content-type': 'application/json'},
data: {
channelTopic: '',
createTime: '',
deleteTime: '',
description: '',
displayName: '',
isActive: false,
lastReplayId: '',
name: '',
updateTime: ''
}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/v1/:name';
const options = {
method: 'PATCH',
headers: {'content-type': 'application/json'},
body: '{"channelTopic":"","createTime":"","deleteTime":"","description":"","displayName":"","isActive":false,"lastReplayId":"","name":"","updateTime":""}'
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/v1/:name',
method: 'PATCH',
headers: {
'content-type': 'application/json'
},
processData: false,
data: '{\n "channelTopic": "",\n "createTime": "",\n "deleteTime": "",\n "description": "",\n "displayName": "",\n "isActive": false,\n "lastReplayId": "",\n "name": "",\n "updateTime": ""\n}'
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n \"channelTopic\": \"\",\n \"createTime\": \"\",\n \"deleteTime\": \"\",\n \"description\": \"\",\n \"displayName\": \"\",\n \"isActive\": false,\n \"lastReplayId\": \"\",\n \"name\": \"\",\n \"updateTime\": \"\"\n}")
val request = Request.Builder()
.url("{{baseUrl}}/v1/:name")
.patch(body)
.addHeader("content-type", "application/json")
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'PATCH',
hostname: 'example.com',
port: null,
path: '/baseUrl/v1/:name',
headers: {
'content-type': 'application/json'
}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.write(JSON.stringify({
channelTopic: '',
createTime: '',
deleteTime: '',
description: '',
displayName: '',
isActive: false,
lastReplayId: '',
name: '',
updateTime: ''
}));
req.end();
const request = require('request');
const options = {
method: 'PATCH',
url: '{{baseUrl}}/v1/:name',
headers: {'content-type': 'application/json'},
body: {
channelTopic: '',
createTime: '',
deleteTime: '',
description: '',
displayName: '',
isActive: false,
lastReplayId: '',
name: '',
updateTime: ''
},
json: true
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('PATCH', '{{baseUrl}}/v1/:name');
req.headers({
'content-type': 'application/json'
});
req.type('json');
req.send({
channelTopic: '',
createTime: '',
deleteTime: '',
description: '',
displayName: '',
isActive: false,
lastReplayId: '',
name: '',
updateTime: ''
});
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {
method: 'PATCH',
url: '{{baseUrl}}/v1/:name',
headers: {'content-type': 'application/json'},
data: {
channelTopic: '',
createTime: '',
deleteTime: '',
description: '',
displayName: '',
isActive: false,
lastReplayId: '',
name: '',
updateTime: ''
}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/v1/:name';
const options = {
method: 'PATCH',
headers: {'content-type': 'application/json'},
body: '{"channelTopic":"","createTime":"","deleteTime":"","description":"","displayName":"","isActive":false,"lastReplayId":"","name":"","updateTime":""}'
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSDictionary *headers = @{ @"content-type": @"application/json" };
NSDictionary *parameters = @{ @"channelTopic": @"",
@"createTime": @"",
@"deleteTime": @"",
@"description": @"",
@"displayName": @"",
@"isActive": @NO,
@"lastReplayId": @"",
@"name": @"",
@"updateTime": @"" };
NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/v1/:name"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"PATCH"];
[request setAllHTTPHeaderFields:headers];
[request setHTTPBody:postData];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/v1/:name" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n \"channelTopic\": \"\",\n \"createTime\": \"\",\n \"deleteTime\": \"\",\n \"description\": \"\",\n \"displayName\": \"\",\n \"isActive\": false,\n \"lastReplayId\": \"\",\n \"name\": \"\",\n \"updateTime\": \"\"\n}" in
Client.call ~headers ~body `PATCH uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/v1/:name",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PATCH",
CURLOPT_POSTFIELDS => json_encode([
'channelTopic' => '',
'createTime' => '',
'deleteTime' => '',
'description' => '',
'displayName' => '',
'isActive' => null,
'lastReplayId' => '',
'name' => '',
'updateTime' => ''
]),
CURLOPT_HTTPHEADER => [
"content-type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('PATCH', '{{baseUrl}}/v1/:name', [
'body' => '{
"channelTopic": "",
"createTime": "",
"deleteTime": "",
"description": "",
"displayName": "",
"isActive": false,
"lastReplayId": "",
"name": "",
"updateTime": ""
}',
'headers' => [
'content-type' => 'application/json',
],
]);
echo $response->getBody();
setUrl('{{baseUrl}}/v1/:name');
$request->setMethod(HttpRequest::HTTP_METH_PATCH);
$request->setHeaders([
'content-type' => 'application/json'
]);
$request->setContentType('application/json');
$request->setBody(json_encode([
'channelTopic' => '',
'createTime' => '',
'deleteTime' => '',
'description' => '',
'displayName' => '',
'isActive' => null,
'lastReplayId' => '',
'name' => '',
'updateTime' => ''
]));
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
append(json_encode([
'channelTopic' => '',
'createTime' => '',
'deleteTime' => '',
'description' => '',
'displayName' => '',
'isActive' => null,
'lastReplayId' => '',
'name' => '',
'updateTime' => ''
]));
$request->setRequestUrl('{{baseUrl}}/v1/:name');
$request->setRequestMethod('PATCH');
$request->setBody($body);
$request->setHeaders([
'content-type' => 'application/json'
]);
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/v1/:name' -Method PATCH -Headers $headers -ContentType 'application/json' -Body '{
"channelTopic": "",
"createTime": "",
"deleteTime": "",
"description": "",
"displayName": "",
"isActive": false,
"lastReplayId": "",
"name": "",
"updateTime": ""
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/v1/:name' -Method PATCH -Headers $headers -ContentType 'application/json' -Body '{
"channelTopic": "",
"createTime": "",
"deleteTime": "",
"description": "",
"displayName": "",
"isActive": false,
"lastReplayId": "",
"name": "",
"updateTime": ""
}'
import http.client
conn = http.client.HTTPSConnection("example.com")
payload = "{\n \"channelTopic\": \"\",\n \"createTime\": \"\",\n \"deleteTime\": \"\",\n \"description\": \"\",\n \"displayName\": \"\",\n \"isActive\": false,\n \"lastReplayId\": \"\",\n \"name\": \"\",\n \"updateTime\": \"\"\n}"
headers = { 'content-type': "application/json" }
conn.request("PATCH", "/baseUrl/v1/:name", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/v1/:name"
payload = {
"channelTopic": "",
"createTime": "",
"deleteTime": "",
"description": "",
"displayName": "",
"isActive": False,
"lastReplayId": "",
"name": "",
"updateTime": ""
}
headers = {"content-type": "application/json"}
response = requests.patch(url, json=payload, headers=headers)
print(response.json())
library(httr)
url <- "{{baseUrl}}/v1/:name"
payload <- "{\n \"channelTopic\": \"\",\n \"createTime\": \"\",\n \"deleteTime\": \"\",\n \"description\": \"\",\n \"displayName\": \"\",\n \"isActive\": false,\n \"lastReplayId\": \"\",\n \"name\": \"\",\n \"updateTime\": \"\"\n}"
encode <- "json"
response <- VERB("PATCH", url, body = payload, content_type("application/json"), encode = encode)
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/v1/:name")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["content-type"] = 'application/json'
request.body = "{\n \"channelTopic\": \"\",\n \"createTime\": \"\",\n \"deleteTime\": \"\",\n \"description\": \"\",\n \"displayName\": \"\",\n \"isActive\": false,\n \"lastReplayId\": \"\",\n \"name\": \"\",\n \"updateTime\": \"\"\n}"
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
headers: {'Content-Type' => 'application/json'}
)
response = conn.patch('/baseUrl/v1/:name') do |req|
req.body = "{\n \"channelTopic\": \"\",\n \"createTime\": \"\",\n \"deleteTime\": \"\",\n \"description\": \"\",\n \"displayName\": \"\",\n \"isActive\": false,\n \"lastReplayId\": \"\",\n \"name\": \"\",\n \"updateTime\": \"\"\n}"
end
puts response.status
puts response.body
use std::str::FromStr;
use serde_json::json;
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/v1/:name";
let payload = json!({
"channelTopic": "",
"createTime": "",
"deleteTime": "",
"description": "",
"displayName": "",
"isActive": false,
"lastReplayId": "",
"name": "",
"updateTime": ""
});
let mut headers = reqwest::header::HeaderMap::new();
headers.insert("content-type", "application/json".parse().unwrap());
let client = reqwest::Client::new();
let response = client.request(reqwest::Method::from_str("PATCH").unwrap(), url)
.headers(headers)
.json(&payload)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request PATCH \
--url {{baseUrl}}/v1/:name \
--header 'content-type: application/json' \
--data '{
"channelTopic": "",
"createTime": "",
"deleteTime": "",
"description": "",
"displayName": "",
"isActive": false,
"lastReplayId": "",
"name": "",
"updateTime": ""
}'
echo '{
"channelTopic": "",
"createTime": "",
"deleteTime": "",
"description": "",
"displayName": "",
"isActive": false,
"lastReplayId": "",
"name": "",
"updateTime": ""
}' | \
http PATCH {{baseUrl}}/v1/:name \
content-type:application/json
wget --quiet \
--method PATCH \
--header 'content-type: application/json' \
--body-data '{\n "channelTopic": "",\n "createTime": "",\n "deleteTime": "",\n "description": "",\n "displayName": "",\n "isActive": false,\n "lastReplayId": "",\n "name": "",\n "updateTime": ""\n}' \
--output-document \
- {{baseUrl}}/v1/:name
import Foundation
let headers = ["content-type": "application/json"]
let parameters = [
"channelTopic": "",
"createTime": "",
"deleteTime": "",
"description": "",
"displayName": "",
"isActive": false,
"lastReplayId": "",
"name": "",
"updateTime": ""
] as [String : Any]
let postData = JSONSerialization.data(withJSONObject: parameters, options: [])
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/v1/:name")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "PATCH"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()