From 41fd9ee85791f463e92c8a130a37fdd2fb1e1bdf Mon Sep 17 00:00:00 2001 From: Robert Jackson Date: Sat, 31 May 2025 11:47:33 -0400 Subject: [PATCH 1/2] feat(code-samples): add instance configuration support Add support for injecting instance configuration into generated code samples across multiple languages (Python, TypeScript, Go, Java) with language-specific transformation patterns. --- src/code-sample-transformer.js | 92 +++++++++++++-- tests/code-sample-transformer.test.js | 154 ++++++++++++++++++++++++++ 2 files changed, 237 insertions(+), 9 deletions(-) diff --git a/src/code-sample-transformer.js b/src/code-sample-transformer.js index 4c72169..653c79a 100644 --- a/src/code-sample-transformer.js +++ b/src/code-sample-transformer.js @@ -1,5 +1,21 @@ import yaml from 'js-yaml'; +/** + * Generator that yields language and code sample pairs from pathSpec + * @param {Object} pathSpec The OpenAPI spec object for the specific path being processed + * @yields {[string, Object]} A tuple containing the language and code sample object + */ +export function* codeSnippets(pathSpec) { + for (const [_, methodSpec] of Object.entries(pathSpec)) { + if (methodSpec && methodSpec['x-codeSamples']) { + const codeSamples = methodSpec['x-codeSamples']; + for (const sample of codeSamples) { + yield [sample.lang, sample]; + } + } + } +} + /** * Extracts code snippet for a specific language from pathSpec * @param {Object} pathSpec The OpenAPI spec object for the specific path being processed @@ -7,15 +23,9 @@ import yaml from 'js-yaml'; * @returns {string} The source code snippet for the specified language */ export function extractCodeSnippet(pathSpec, language) { - for (const [httpMethod, methodSpec] of Object.entries(pathSpec)) { - if (methodSpec && methodSpec['x-codeSamples']) { - const codeSamples = methodSpec['x-codeSamples']; - - const matchingSample = codeSamples.find( - (sample) => sample.lang === language, - ); - - return matchingSample; + for (const [lang, sample] of codeSnippets(pathSpec)) { + if (lang === language) { + return sample; } } @@ -66,6 +76,69 @@ export function transformPythonCodeSamplesToPython(spec) { return spec; } +/** + * Transforms code samples in an OpenAPI specification to add instance configuration + * for various programming languages. This function adds the necessary instance/server + * configuration to existing code samples that only contain API token configuration. + * + * Supported transformations: + * - Python: Adds `instance=os.getenv("GLEAN_INSTANCE", "")` after `api_token` + * - TypeScript: Adds `instance: process.env["GLEAN_INSTANCE"] ?? ""` after `apiToken` + * - Go: Adds `apiclientgo.WithInstance("")` before `WithSecurity` + * - Java: Adds `.instance("")` after `.apiToken()` + * + * @param {Object} spec The OpenAPI specification object containing code samples + * @returns {Object} The modified OpenAPI specification with updated code samples + */ +export function addInstanceToCodeSamples(spec) { + const transformationsByLang = { + python: [ + [ + /([\s]*)(api_token=os\.getenv\("GLEAN_API_TOKEN", ""\),)/, + '$1$2$1instance=os.getenv("GLEAN_INSTANCE", ""),', + ], + ], + typescript: [ + [ + /([\s]*)(apiToken: process\.env\["GLEAN_API_TOKEN"\] \?\? "",)/, + '$1$2$1instance: process.env["GLEAN_INSTANCE"] ?? "",', + ], + ], + go: [ + [ + /([\s]*)(apiclientgo\.WithSecurity\(os\.Getenv\("GLEAN_API_TOKEN"\)\),)/, + '$1$2$1apiclientgo.WithInstance(os.Getenv("GLEAN_INSTANCE")),', + ], + ], + java: [ + [ + /([\s]*)(\.apiToken\(""\))/, + '$1$2$1.instance("")', + ], + ], + }; + + for (const [_, pathSpec] of path(spec)) { + for (const [lang, codeSample] of codeSnippets(pathSpec)) { + const transformations = transformationsByLang[lang]; + + if (!transformations) { + continue; + } + + let codeSampleSource = codeSample.source; + + for (const [pattern, replacement] of transformations) { + codeSampleSource = codeSampleSource.replace(pattern, replacement); + } + + codeSample.source = codeSampleSource; + } + } + + return spec; +} + /** * Transforms OpenAPI YAML by adjusting server URLs and paths * @param {string} content The OpenAPI YAML content @@ -76,6 +149,7 @@ export function transform(content, _filename) { const spec = yaml.load(content); transformPythonCodeSamplesToPython(spec); + addInstanceToCodeSamples(spec); return yaml.dump(spec, { lineWidth: -1, // Preserve line breaks diff --git a/tests/code-sample-transformer.test.js b/tests/code-sample-transformer.test.js index 69b6682..3e808d0 100644 --- a/tests/code-sample-transformer.test.js +++ b/tests/code-sample-transformer.test.js @@ -132,4 +132,158 @@ paths: `); }); }); + + describe('addInstanceToCodeSamples', () => { + test('updates chat code sample to use namespace', () => { + const spec = yaml.load(fixtureContent); + + const updatedSpec = codeSampleTransformer.addInstanceToCodeSamples(spec); + const chatSpec = updatedSpec.paths['/rest/api/v1/chat']; + + expect(codeSampleTransformer.extractCodeSnippet(chatSpec, 'python')) + .toMatchInlineSnapshot(` + { + "label": "Python (API Client)", + "lang": "python", + "source": "from glean import Glean, models + import os + + + with Glean( + api_token=os.getenv("GLEAN_API_TOKEN", ""), + instance=os.getenv("GLEAN_INSTANCE", ""), + ) as g_client: + + res = g_client.client.chat.create(messages=[ + { + "fragments": [ + models.ChatMessageFragment( + text="What are the company holidays this year?", + ), + ], + }, + ], timeout_millis=30000) + + # Handle response + print(res)", + } + `); + expect(codeSampleTransformer.extractCodeSnippet(chatSpec, 'typescript')) + .toMatchInlineSnapshot(` + { + "label": "Typescript (API Client)", + "lang": "typescript", + "source": "import { Glean } from "@gleanwork/api-client"; + + const glean = new Glean({ + apiToken: process.env["GLEAN_API_TOKEN"] ?? "", + instance: process.env["GLEAN_INSTANCE"] ?? "", + }); + + async function run() { + const result = await glean.client.chat.create({ + messages: [ + { + fragments: [ + { + text: "What are the company holidays this year?", + }, + ], + }, + ], + }); + + // Handle the result + console.log(result); + } + + run();", + } + `); + expect(codeSampleTransformer.extractCodeSnippet(chatSpec, 'go')) + .toMatchInlineSnapshot(` + { + "label": "Go (API Client)", + "lang": "go", + "source": "package main + + import( + "context" + "os" + apiclientgo "github.com/gleanwork/api-client-go" + "github.com/gleanwork/api-client-go/models/components" + "log" + ) + + func main() { + ctx := context.Background() + + s := apiclientgo.New( + apiclientgo.WithSecurity(os.Getenv("GLEAN_API_TOKEN")), + apiclientgo.WithInstance(os.Getenv("GLEAN_INSTANCE")), + ) + + res, err := s.Client.Chat.Create(ctx, components.ChatRequest{ + Messages: []components.ChatMessage{ + components.ChatMessage{ + Fragments: []components.ChatMessageFragment{ + components.ChatMessageFragment{ + Text: apiclientgo.String("What are the company holidays this year?"), + }, + }, + }, + }, + }, nil) + if err != nil { + log.Fatal(err) + } + if res.ChatResponse != nil { + // handle response + } + }", + } + `); + expect(codeSampleTransformer.extractCodeSnippet(chatSpec, 'java')) + .toMatchInlineSnapshot(` + { + "label": "Java (API Client)", + "lang": "java", + "source": "package hello.world; + + import com.glean.api_client.glean_api_client.Glean; + import com.glean.api_client.glean_api_client.models.components.*; + import com.glean.api_client.glean_api_client.models.operations.ChatResponse; + import java.lang.Exception; + import java.util.List; + + public class Application { + + public static void main(String[] args) throws Exception { + + Glean sdk = Glean.builder() + .apiToken("") + .instance("") + .build(); + + ChatResponse res = sdk.client().chat().create() + .chatRequest(ChatRequest.builder() + .messages(List.of( + ChatMessage.builder() + .fragments(List.of( + ChatMessageFragment.builder() + .text("What are the company holidays this year?") + .build())) + .build())) + .build()) + .call(); + + if (res.chatResponse().isPresent()) { + // handle response + } + } + }", + } + `); + }); + }); }); From ac867925f878741ab1a25ddf3c9b9bfc90bd7355 Mon Sep 17 00:00:00 2001 From: Robert Jackson Date: Sat, 31 May 2025 12:18:20 -0400 Subject: [PATCH 2/2] chore: `pnpm transform:merged_code_samples_specs` --- modified_code_samples_specs/client_rest.yaml | 360 +++++++++++++++---- modified_code_samples_specs/indexing.yaml | 170 +++++++-- 2 files changed, 424 insertions(+), 106 deletions(-) diff --git a/modified_code_samples_specs/client_rest.yaml b/modified_code_samples_specs/client_rest.yaml index 22c46b0..a5a2bef 100644 --- a/modified_code_samples_specs/client_rest.yaml +++ b/modified_code_samples_specs/client_rest.yaml @@ -71,6 +71,7 @@ paths: with Glean( api_token=os.getenv("GLEAN_API_TOKEN", ""), + instance=os.getenv("GLEAN_INSTANCE", ""), ) as g_client: g_client.client.activity.report(events=[ @@ -106,6 +107,7 @@ paths: const glean = new Glean({ apiToken: process.env["GLEAN_API_TOKEN"] ?? "", + instance: process.env["GLEAN_INSTANCE"] ?? "", }); async function run() { @@ -142,7 +144,7 @@ paths: run(); - lang: go label: Go (API Client) - source: "package main\n\nimport(\n\t\"context\"\n\t\"os\"\n\tapiclientgo \"github.com/gleanwork/api-client-go\"\n\t\"github.com/gleanwork/api-client-go/models/components\"\n\t\"github.com/gleanwork/api-client-go/types\"\n\t\"log\"\n)\n\nfunc main() {\n ctx := context.Background()\n\n s := apiclientgo.New(\n apiclientgo.WithSecurity(os.Getenv(\"GLEAN_API_TOKEN\")),\n )\n\n res, err := s.Client.Activity.Report(ctx, components.Activity{\n Events: []components.ActivityEvent{\n components.ActivityEvent{\n Action: components.ActivityEventActionHistoricalView,\n Timestamp: types.MustTimeFromString(\"2000-01-23T04:56:07.000Z\"),\n URL: \"https://example.com/\",\n },\n components.ActivityEvent{\n Action: components.ActivityEventActionSearch,\n Params: &components.ActivityEventParams{\n Query: apiclientgo.String(\"query\"),\n },\n Timestamp: types.MustTimeFromString(\"2000-01-23T04:56:07.000Z\"),\n URL: \"https://example.com/search?q=query\",\n },\n components.ActivityEvent{\n Action: components.ActivityEventActionView,\n Params: &components.ActivityEventParams{\n Duration: apiclientgo.Int64(20),\n Referrer: apiclientgo.String(\"https://example.com/document\"),\n },\n Timestamp: types.MustTimeFromString(\"2000-01-23T04:56:07.000Z\"),\n URL: \"https://example.com/\",\n },\n },\n })\n if err != nil {\n log.Fatal(err)\n }\n if res != nil {\n // handle response\n }\n}" + source: "package main\n\nimport(\n\t\"context\"\n\t\"os\"\n\tapiclientgo \"github.com/gleanwork/api-client-go\"\n\t\"github.com/gleanwork/api-client-go/models/components\"\n\t\"github.com/gleanwork/api-client-go/types\"\n\t\"log\"\n)\n\nfunc main() {\n ctx := context.Background()\n\n s := apiclientgo.New(\n apiclientgo.WithSecurity(os.Getenv(\"GLEAN_API_TOKEN\")),\n apiclientgo.WithInstance(os.Getenv(\"GLEAN_INSTANCE\")),\n )\n\n res, err := s.Client.Activity.Report(ctx, components.Activity{\n Events: []components.ActivityEvent{\n components.ActivityEvent{\n Action: components.ActivityEventActionHistoricalView,\n Timestamp: types.MustTimeFromString(\"2000-01-23T04:56:07.000Z\"),\n URL: \"https://example.com/\",\n },\n components.ActivityEvent{\n Action: components.ActivityEventActionSearch,\n Params: &components.ActivityEventParams{\n Query: apiclientgo.String(\"query\"),\n },\n Timestamp: types.MustTimeFromString(\"2000-01-23T04:56:07.000Z\"),\n URL: \"https://example.com/search?q=query\",\n },\n components.ActivityEvent{\n Action: components.ActivityEventActionView,\n Params: &components.ActivityEventParams{\n Duration: apiclientgo.Int64(20),\n Referrer: apiclientgo.String(\"https://example.com/document\"),\n },\n Timestamp: types.MustTimeFromString(\"2000-01-23T04:56:07.000Z\"),\n URL: \"https://example.com/\",\n },\n },\n })\n if err != nil {\n log.Fatal(err)\n }\n if res != nil {\n // handle response\n }\n}" - lang: java label: Java (API Client) source: |- @@ -161,6 +163,7 @@ paths: Glean sdk = Glean.builder() .apiToken("") + .instance("") .build(); Activity req = Activity.builder() @@ -238,6 +241,7 @@ paths: with Glean( api_token=os.getenv("GLEAN_API_TOKEN", ""), + instance=os.getenv("GLEAN_INSTANCE", ""), ) as g_client: g_client.client.activity.feedback(feedback1={ @@ -255,6 +259,7 @@ paths: const glean = new Glean({ apiToken: process.env["GLEAN_API_TOKEN"] ?? "", + instance: process.env["GLEAN_INSTANCE"] ?? "", }); async function run() { @@ -271,7 +276,7 @@ paths: run(); - lang: go label: Go (API Client) - source: "package main\n\nimport(\n\t\"context\"\n\t\"os\"\n\tapiclientgo \"github.com/gleanwork/api-client-go\"\n\t\"github.com/gleanwork/api-client-go/models/components\"\n\t\"log\"\n)\n\nfunc main() {\n ctx := context.Background()\n\n s := apiclientgo.New(\n apiclientgo.WithSecurity(os.Getenv(\"GLEAN_API_TOKEN\")),\n )\n\n res, err := s.Client.Activity.Feedback(ctx, nil, &components.Feedback{\n TrackingTokens: []string{\n \"trackingTokens\",\n },\n Event: components.EventView,\n })\n if err != nil {\n log.Fatal(err)\n }\n if res != nil {\n // handle response\n }\n}" + source: "package main\n\nimport(\n\t\"context\"\n\t\"os\"\n\tapiclientgo \"github.com/gleanwork/api-client-go\"\n\t\"github.com/gleanwork/api-client-go/models/components\"\n\t\"log\"\n)\n\nfunc main() {\n ctx := context.Background()\n\n s := apiclientgo.New(\n apiclientgo.WithSecurity(os.Getenv(\"GLEAN_API_TOKEN\")),\n apiclientgo.WithInstance(os.Getenv(\"GLEAN_INSTANCE\")),\n )\n\n res, err := s.Client.Activity.Feedback(ctx, nil, &components.Feedback{\n TrackingTokens: []string{\n \"trackingTokens\",\n },\n Event: components.EventView,\n })\n if err != nil {\n log.Fatal(err)\n }\n if res != nil {\n // handle response\n }\n}" - lang: java label: Java (API Client) source: |- @@ -290,6 +295,7 @@ paths: Glean sdk = Glean.builder() .apiToken("") + .instance("") .build(); FeedbackResponse res = sdk.client().activity().feedback() @@ -347,6 +353,7 @@ paths: with Glean( api_token=os.getenv("GLEAN_API_TOKEN", ""), + instance=os.getenv("GLEAN_INSTANCE", ""), ) as g_client: res = g_client.client.announcements.create(start_time=parse_datetime("2023-05-01T12:02:10.816Z"), end_time=parse_datetime("2024-03-17T14:19:30.278Z"), title="", body={ @@ -2932,6 +2939,7 @@ paths: const glean = new Glean({ apiToken: process.env["GLEAN_API_TOKEN"] ?? "", + instance: process.env["GLEAN_INSTANCE"] ?? "", }); async function run() { @@ -5522,7 +5530,7 @@ paths: run(); - lang: go label: Go (API Client) - source: "package main\n\nimport(\n\t\"context\"\n\t\"os\"\n\tapiclientgo \"github.com/gleanwork/api-client-go\"\n\t\"github.com/gleanwork/api-client-go/types\"\n\t\"github.com/gleanwork/api-client-go/models/components\"\n\t\"log\"\n)\n\nfunc main() {\n ctx := context.Background()\n\n s := apiclientgo.New(\n apiclientgo.WithSecurity(os.Getenv(\"GLEAN_API_TOKEN\")),\n )\n\n res, err := s.Client.Announcements.Create(ctx, components.CreateAnnouncementRequest{\n StartTime: types.MustTimeFromString(\"2023-05-01T12:02:10.816Z\"),\n EndTime: types.MustTimeFromString(\"2024-03-17T14:19:30.278Z\"),\n Title: \"\",\n Body: &components.StructuredText{\n Text: \"From https://en.wikipedia.org/wiki/Diffuse_sky_radiation, the sky is blue because blue light is more strongly scattered than longer-wavelength light.\",\n StructuredList: []components.StructuredTextItem{\n components.StructuredTextItem{\n Link: apiclientgo.String(\"https://en.wikipedia.org/wiki/Diffuse_sky_radiation\"),\n Document: &components.Document{\n Metadata: &components.DocumentMetadata{\n Datasource: apiclientgo.String(\"datasource\"),\n ObjectType: apiclientgo.String(\"Feature Request\"),\n Container: apiclientgo.String(\"container\"),\n ParentID: apiclientgo.String(\"JIRA_EN-1337\"),\n MimeType: apiclientgo.String(\"mimeType\"),\n DocumentID: apiclientgo.String(\"documentId\"),\n CreateTime: types.MustNewTimeFromString(\"2000-01-23T04:56:07.000Z\"),\n UpdateTime: types.MustNewTimeFromString(\"2000-01-23T04:56:07.000Z\"),\n Author: &components.Person{\n Name: \"name\",\n ObfuscatedID: \"\",\n },\n Components: []string{\n \"Backend\",\n \"Networking\",\n },\n Status: apiclientgo.String(\"[\\\"Done\\\"]\"),\n CustomData: map[string]components.CustomDataValue{\n \"someCustomField\": components.CustomDataValue{},\n },\n },\n },\n Text: apiclientgo.String(\"Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue.\"),\n StructuredResult: &components.StructuredResult{\n Document: &components.Document{\n Metadata: &components.DocumentMetadata{\n Datasource: apiclientgo.String(\"datasource\"),\n ObjectType: apiclientgo.String(\"Feature Request\"),\n Container: apiclientgo.String(\"container\"),\n ParentID: apiclientgo.String(\"JIRA_EN-1337\"),\n MimeType: apiclientgo.String(\"mimeType\"),\n DocumentID: apiclientgo.String(\"documentId\"),\n CreateTime: types.MustNewTimeFromString(\"2000-01-23T04:56:07.000Z\"),\n UpdateTime: types.MustNewTimeFromString(\"2000-01-23T04:56:07.000Z\"),\n Author: &components.Person{\n Name: \"name\",\n ObfuscatedID: \"\",\n },\n Components: []string{\n \"Backend\",\n \"Networking\",\n },\n Status: apiclientgo.String(\"[\\\"Done\\\"]\"),\n CustomData: map[string]components.CustomDataValue{\n \"someCustomField\": components.CustomDataValue{},\n },\n },\n },\n Person: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n Customer: &components.Customer{\n ID: \"\",\n Company: components.Company{\n Name: \"\",\n Location: apiclientgo.String(\"New York City\"),\n Industry: apiclientgo.String(\"Finances\"),\n About: apiclientgo.String(\"Financial, software, data, and media company headquartered in Midtown Manhattan, New York City\"),\n },\n Poc: []components.Person{\n components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n },\n MergedCustomers: []components.Customer{\n components.Customer{\n ID: \"\",\n Company: components.Company{\n Name: \"\",\n Location: apiclientgo.String(\"New York City\"),\n Industry: apiclientgo.String(\"Finances\"),\n About: apiclientgo.String(\"Financial, software, data, and media company headquartered in Midtown Manhattan, New York City\"),\n },\n Notes: apiclientgo.String(\"CIO is interested in trying out the product.\"),\n },\n components.Customer{\n ID: \"\",\n Company: components.Company{\n Name: \"\",\n Location: apiclientgo.String(\"New York City\"),\n Industry: apiclientgo.String(\"Finances\"),\n About: apiclientgo.String(\"Financial, software, data, and media company headquartered in Midtown Manhattan, New York City\"),\n },\n Notes: apiclientgo.String(\"CIO is interested in trying out the product.\"),\n },\n components.Customer{\n ID: \"\",\n Company: components.Company{\n Name: \"\",\n Location: apiclientgo.String(\"New York City\"),\n Industry: apiclientgo.String(\"Finances\"),\n About: apiclientgo.String(\"Financial, software, data, and media company headquartered in Midtown Manhattan, New York City\"),\n },\n Notes: apiclientgo.String(\"CIO is interested in trying out the product.\"),\n },\n },\n Notes: apiclientgo.String(\"CIO is interested in trying out the product.\"),\n },\n Team: &components.Team{\n ID: \"\",\n Name: \"\",\n Members: []components.PersonToTeamRelationship{\n components.PersonToTeamRelationship{\n Person: components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n },\n components.PersonToTeamRelationship{\n Person: components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n },\n },\n CustomFields: []components.CustomFieldData{\n components.CustomFieldData{\n Label: \"\",\n Values: []components.CustomFieldValue{\n components.CreateCustomFieldValueCustomFieldValuePerson(\n components.CustomFieldValuePerson{\n Person: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n },\n ),\n components.CreateCustomFieldValueCustomFieldValuePerson(\n components.CustomFieldValuePerson{\n Person: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n },\n ),\n components.CreateCustomFieldValueCustomFieldValuePerson(\n components.CustomFieldValuePerson{\n Person: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n },\n ),\n },\n },\n components.CustomFieldData{\n Label: \"\",\n Values: []components.CustomFieldValue{\n components.CreateCustomFieldValueCustomFieldValuePerson(\n components.CustomFieldValuePerson{\n Person: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n },\n ),\n components.CreateCustomFieldValueCustomFieldValuePerson(\n components.CustomFieldValuePerson{\n Person: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n },\n ),\n components.CreateCustomFieldValueCustomFieldValuePerson(\n components.CustomFieldValuePerson{\n Person: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n },\n ),\n },\n },\n components.CustomFieldData{\n Label: \"\",\n Values: []components.CustomFieldValue{\n components.CreateCustomFieldValueCustomFieldValuePerson(\n components.CustomFieldValuePerson{\n Person: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n },\n ),\n components.CreateCustomFieldValueCustomFieldValuePerson(\n components.CustomFieldValuePerson{\n Person: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n },\n ),\n components.CreateCustomFieldValueCustomFieldValuePerson(\n components.CustomFieldValuePerson{\n Person: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n },\n ),\n },\n },\n },\n DatasourceProfiles: []components.DatasourceProfile{\n components.DatasourceProfile{\n Datasource: \"github\",\n Handle: \"\",\n },\n components.DatasourceProfile{\n Datasource: \"github\",\n Handle: \"\",\n },\n components.DatasourceProfile{\n Datasource: \"github\",\n Handle: \"\",\n },\n },\n },\n CustomEntity: &components.CustomEntity{\n Roles: []components.UserRoleSpecification{\n components.UserRoleSpecification{\n Person: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n Role: components.UserRoleEditor,\n },\n components.UserRoleSpecification{\n Person: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n Role: components.UserRoleEditor,\n },\n },\n },\n Answer: &components.Answer{\n ID: 3,\n DocID: apiclientgo.String(\"ANSWERS_answer_3\"),\n Question: apiclientgo.String(\"Why is the sky blue?\"),\n BodyText: apiclientgo.String(\"From https://en.wikipedia.org/wiki/Diffuse_sky_radiation, the sky is blue because blue light is more strongly scattered than longer-wavelength light.\"),\n AudienceFilters: []components.FacetFilter{\n components.FacetFilter{\n FieldName: apiclientgo.String(\"type\"),\n Values: []components.FacetFilterValue{\n components.FacetFilterValue{\n Value: apiclientgo.String(\"Spreadsheet\"),\n RelationType: components.RelationTypeEquals.ToPointer(),\n },\n components.FacetFilterValue{\n Value: apiclientgo.String(\"Presentation\"),\n RelationType: components.RelationTypeEquals.ToPointer(),\n },\n },\n },\n },\n AddedRoles: []components.UserRoleSpecification{\n components.UserRoleSpecification{\n Person: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n Role: components.UserRoleEditor,\n },\n components.UserRoleSpecification{\n Person: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n Role: components.UserRoleEditor,\n },\n components.UserRoleSpecification{\n Person: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n Role: components.UserRoleEditor,\n },\n },\n RemovedRoles: []components.UserRoleSpecification{\n components.UserRoleSpecification{\n Person: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n Role: components.UserRoleVerifier,\n },\n components.UserRoleSpecification{\n Person: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n Role: components.UserRoleVerifier,\n },\n },\n Likes: &components.AnswerLikes{\n LikedBy: []components.AnswerLike{\n components.AnswerLike{\n User: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n },\n components.AnswerLike{\n User: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n },\n components.AnswerLike{\n User: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n },\n },\n LikedByUser: false,\n NumLikes: 716571,\n },\n Author: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n UpdatedBy: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n Verification: &components.Verification{\n State: components.StateUnverified,\n Metadata: &components.VerificationMetadata{\n LastVerifier: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n Document: &components.Document{\n Metadata: &components.DocumentMetadata{\n Datasource: apiclientgo.String(\"datasource\"),\n ObjectType: apiclientgo.String(\"Feature Request\"),\n Container: apiclientgo.String(\"container\"),\n ParentID: apiclientgo.String(\"JIRA_EN-1337\"),\n MimeType: apiclientgo.String(\"mimeType\"),\n DocumentID: apiclientgo.String(\"documentId\"),\n CreateTime: types.MustNewTimeFromString(\"2000-01-23T04:56:07.000Z\"),\n UpdateTime: types.MustNewTimeFromString(\"2000-01-23T04:56:07.000Z\"),\n Author: &components.Person{\n Name: \"name\",\n ObfuscatedID: \"\",\n },\n Components: []string{\n \"Backend\",\n \"Networking\",\n },\n Status: apiclientgo.String(\"[\\\"Done\\\"]\"),\n CustomData: map[string]components.CustomDataValue{\n \"someCustomField\": components.CustomDataValue{},\n },\n },\n },\n Reminders: []components.Reminder{\n components.Reminder{\n Assignee: components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n Requestor: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n RemindAt: 852101,\n },\n },\n LastReminder: &components.Reminder{\n Assignee: components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n Requestor: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n RemindAt: 829206,\n },\n CandidateVerifiers: []components.Person{\n components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n },\n },\n },\n Board: &components.AnswerBoard{\n Name: \"\",\n Description: \"pronoun whether likely likewise negative possession ape furthermore\",\n AudienceFilters: []components.FacetFilter{\n components.FacetFilter{\n FieldName: apiclientgo.String(\"type\"),\n Values: []components.FacetFilterValue{\n components.FacetFilterValue{\n Value: apiclientgo.String(\"Spreadsheet\"),\n RelationType: components.RelationTypeEquals.ToPointer(),\n },\n components.FacetFilterValue{\n Value: apiclientgo.String(\"Presentation\"),\n RelationType: components.RelationTypeEquals.ToPointer(),\n },\n },\n },\n },\n ID: 856490,\n Creator: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n UpdatedBy: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n },\n Collections: []components.Collection{\n components.Collection{\n Name: \"\",\n Description: \"tedious given quixotic\",\n AudienceFilters: []components.FacetFilter{\n components.FacetFilter{\n FieldName: apiclientgo.String(\"type\"),\n Values: []components.FacetFilterValue{\n components.FacetFilterValue{\n Value: apiclientgo.String(\"Spreadsheet\"),\n RelationType: components.RelationTypeEquals.ToPointer(),\n },\n components.FacetFilterValue{\n Value: apiclientgo.String(\"Presentation\"),\n RelationType: components.RelationTypeEquals.ToPointer(),\n },\n },\n },\n },\n ID: 590805,\n Creator: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n UpdatedBy: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n Items: []components.CollectionItem{\n components.CollectionItem{\n CollectionID: 913703,\n CreatedBy: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n Document: &components.Document{\n Metadata: &components.DocumentMetadata{\n Datasource: apiclientgo.String(\"datasource\"),\n ObjectType: apiclientgo.String(\"Feature Request\"),\n Container: apiclientgo.String(\"container\"),\n ParentID: apiclientgo.String(\"JIRA_EN-1337\"),\n MimeType: apiclientgo.String(\"mimeType\"),\n DocumentID: apiclientgo.String(\"documentId\"),\n CreateTime: types.MustNewTimeFromString(\"2000-01-23T04:56:07.000Z\"),\n UpdateTime: types.MustNewTimeFromString(\"2000-01-23T04:56:07.000Z\"),\n Author: &components.Person{\n Name: \"name\",\n ObfuscatedID: \"\",\n },\n Components: []string{\n \"Backend\",\n \"Networking\",\n },\n Status: apiclientgo.String(\"[\\\"Done\\\"]\"),\n CustomData: map[string]components.CustomDataValue{\n \"someCustomField\": components.CustomDataValue{},\n },\n },\n },\n Shortcut: &components.Shortcut{\n InputAlias: \"\",\n CreatedBy: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n UpdatedBy: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n DestinationDocument: &components.Document{\n Metadata: &components.DocumentMetadata{\n Datasource: apiclientgo.String(\"datasource\"),\n ObjectType: apiclientgo.String(\"Feature Request\"),\n Container: apiclientgo.String(\"container\"),\n ParentID: apiclientgo.String(\"JIRA_EN-1337\"),\n MimeType: apiclientgo.String(\"mimeType\"),\n DocumentID: apiclientgo.String(\"documentId\"),\n CreateTime: types.MustNewTimeFromString(\"2000-01-23T04:56:07.000Z\"),\n UpdateTime: types.MustNewTimeFromString(\"2000-01-23T04:56:07.000Z\"),\n Author: &components.Person{\n Name: \"name\",\n ObfuscatedID: \"\",\n },\n Components: []string{\n \"Backend\",\n \"Networking\",\n },\n Status: apiclientgo.String(\"[\\\"Done\\\"]\"),\n CustomData: map[string]components.CustomDataValue{\n \"someCustomField\": components.CustomDataValue{},\n },\n },\n },\n },\n ItemType: components.CollectionItemItemTypeCollection,\n },\n },\n Children: []components.Collection{\n components.Collection{\n Name: \"\",\n Description: \"whoever vice reassuringly boo fess\",\n AudienceFilters: []components.FacetFilter{\n components.FacetFilter{\n FieldName: apiclientgo.String(\"type\"),\n Values: []components.FacetFilterValue{\n components.FacetFilterValue{\n Value: apiclientgo.String(\"Spreadsheet\"),\n RelationType: components.RelationTypeEquals.ToPointer(),\n },\n components.FacetFilterValue{\n Value: apiclientgo.String(\"Presentation\"),\n RelationType: components.RelationTypeEquals.ToPointer(),\n },\n },\n },\n },\n ID: 953002,\n Creator: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n UpdatedBy: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n },\n components.Collection{\n Name: \"\",\n Description: \"whoever vice reassuringly boo fess\",\n AudienceFilters: []components.FacetFilter{\n components.FacetFilter{\n FieldName: apiclientgo.String(\"type\"),\n Values: []components.FacetFilterValue{\n components.FacetFilterValue{\n Value: apiclientgo.String(\"Spreadsheet\"),\n RelationType: components.RelationTypeEquals.ToPointer(),\n },\n components.FacetFilterValue{\n Value: apiclientgo.String(\"Presentation\"),\n RelationType: components.RelationTypeEquals.ToPointer(),\n },\n },\n },\n },\n ID: 953002,\n Creator: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n UpdatedBy: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n },\n components.Collection{\n Name: \"\",\n Description: \"whoever vice reassuringly boo fess\",\n AudienceFilters: []components.FacetFilter{\n components.FacetFilter{\n FieldName: apiclientgo.String(\"type\"),\n Values: []components.FacetFilterValue{\n components.FacetFilterValue{\n Value: apiclientgo.String(\"Spreadsheet\"),\n RelationType: components.RelationTypeEquals.ToPointer(),\n },\n components.FacetFilterValue{\n Value: apiclientgo.String(\"Presentation\"),\n RelationType: components.RelationTypeEquals.ToPointer(),\n },\n },\n },\n },\n ID: 953002,\n Creator: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n UpdatedBy: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n },\n },\n },\n components.Collection{\n Name: \"\",\n Description: \"tedious given quixotic\",\n AudienceFilters: []components.FacetFilter{\n components.FacetFilter{\n FieldName: apiclientgo.String(\"type\"),\n Values: []components.FacetFilterValue{\n components.FacetFilterValue{\n Value: apiclientgo.String(\"Spreadsheet\"),\n RelationType: components.RelationTypeEquals.ToPointer(),\n },\n components.FacetFilterValue{\n Value: apiclientgo.String(\"Presentation\"),\n RelationType: components.RelationTypeEquals.ToPointer(),\n },\n },\n },\n },\n ID: 590805,\n Creator: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n UpdatedBy: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n Items: []components.CollectionItem{\n components.CollectionItem{\n CollectionID: 913703,\n CreatedBy: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n Document: &components.Document{\n Metadata: &components.DocumentMetadata{\n Datasource: apiclientgo.String(\"datasource\"),\n ObjectType: apiclientgo.String(\"Feature Request\"),\n Container: apiclientgo.String(\"container\"),\n ParentID: apiclientgo.String(\"JIRA_EN-1337\"),\n MimeType: apiclientgo.String(\"mimeType\"),\n DocumentID: apiclientgo.String(\"documentId\"),\n CreateTime: types.MustNewTimeFromString(\"2000-01-23T04:56:07.000Z\"),\n UpdateTime: types.MustNewTimeFromString(\"2000-01-23T04:56:07.000Z\"),\n Author: &components.Person{\n Name: \"name\",\n ObfuscatedID: \"\",\n },\n Components: []string{\n \"Backend\",\n \"Networking\",\n },\n Status: apiclientgo.String(\"[\\\"Done\\\"]\"),\n CustomData: map[string]components.CustomDataValue{\n \"someCustomField\": components.CustomDataValue{},\n },\n },\n },\n Shortcut: &components.Shortcut{\n InputAlias: \"\",\n CreatedBy: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n UpdatedBy: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n DestinationDocument: &components.Document{\n Metadata: &components.DocumentMetadata{\n Datasource: apiclientgo.String(\"datasource\"),\n ObjectType: apiclientgo.String(\"Feature Request\"),\n Container: apiclientgo.String(\"container\"),\n ParentID: apiclientgo.String(\"JIRA_EN-1337\"),\n MimeType: apiclientgo.String(\"mimeType\"),\n DocumentID: apiclientgo.String(\"documentId\"),\n CreateTime: types.MustNewTimeFromString(\"2000-01-23T04:56:07.000Z\"),\n UpdateTime: types.MustNewTimeFromString(\"2000-01-23T04:56:07.000Z\"),\n Author: &components.Person{\n Name: \"name\",\n ObfuscatedID: \"\",\n },\n Components: []string{\n \"Backend\",\n \"Networking\",\n },\n Status: apiclientgo.String(\"[\\\"Done\\\"]\"),\n CustomData: map[string]components.CustomDataValue{\n \"someCustomField\": components.CustomDataValue{},\n },\n },\n },\n },\n ItemType: components.CollectionItemItemTypeCollection,\n },\n },\n Children: []components.Collection{\n components.Collection{\n Name: \"\",\n Description: \"whoever vice reassuringly boo fess\",\n AudienceFilters: []components.FacetFilter{\n components.FacetFilter{\n FieldName: apiclientgo.String(\"type\"),\n Values: []components.FacetFilterValue{\n components.FacetFilterValue{\n Value: apiclientgo.String(\"Spreadsheet\"),\n RelationType: components.RelationTypeEquals.ToPointer(),\n },\n components.FacetFilterValue{\n Value: apiclientgo.String(\"Presentation\"),\n RelationType: components.RelationTypeEquals.ToPointer(),\n },\n },\n },\n },\n ID: 953002,\n Creator: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n UpdatedBy: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n },\n components.Collection{\n Name: \"\",\n Description: \"whoever vice reassuringly boo fess\",\n AudienceFilters: []components.FacetFilter{\n components.FacetFilter{\n FieldName: apiclientgo.String(\"type\"),\n Values: []components.FacetFilterValue{\n components.FacetFilterValue{\n Value: apiclientgo.String(\"Spreadsheet\"),\n RelationType: components.RelationTypeEquals.ToPointer(),\n },\n components.FacetFilterValue{\n Value: apiclientgo.String(\"Presentation\"),\n RelationType: components.RelationTypeEquals.ToPointer(),\n },\n },\n },\n },\n ID: 953002,\n Creator: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n UpdatedBy: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n },\n components.Collection{\n Name: \"\",\n Description: \"whoever vice reassuringly boo fess\",\n AudienceFilters: []components.FacetFilter{\n components.FacetFilter{\n FieldName: apiclientgo.String(\"type\"),\n Values: []components.FacetFilterValue{\n components.FacetFilterValue{\n Value: apiclientgo.String(\"Spreadsheet\"),\n RelationType: components.RelationTypeEquals.ToPointer(),\n },\n components.FacetFilterValue{\n Value: apiclientgo.String(\"Presentation\"),\n RelationType: components.RelationTypeEquals.ToPointer(),\n },\n },\n },\n },\n ID: 953002,\n Creator: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n UpdatedBy: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n },\n },\n },\n components.Collection{\n Name: \"\",\n Description: \"tedious given quixotic\",\n AudienceFilters: []components.FacetFilter{\n components.FacetFilter{\n FieldName: apiclientgo.String(\"type\"),\n Values: []components.FacetFilterValue{\n components.FacetFilterValue{\n Value: apiclientgo.String(\"Spreadsheet\"),\n RelationType: components.RelationTypeEquals.ToPointer(),\n },\n components.FacetFilterValue{\n Value: apiclientgo.String(\"Presentation\"),\n RelationType: components.RelationTypeEquals.ToPointer(),\n },\n },\n },\n },\n ID: 590805,\n Creator: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n UpdatedBy: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n Items: []components.CollectionItem{\n components.CollectionItem{\n CollectionID: 913703,\n CreatedBy: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n Document: &components.Document{\n Metadata: &components.DocumentMetadata{\n Datasource: apiclientgo.String(\"datasource\"),\n ObjectType: apiclientgo.String(\"Feature Request\"),\n Container: apiclientgo.String(\"container\"),\n ParentID: apiclientgo.String(\"JIRA_EN-1337\"),\n MimeType: apiclientgo.String(\"mimeType\"),\n DocumentID: apiclientgo.String(\"documentId\"),\n CreateTime: types.MustNewTimeFromString(\"2000-01-23T04:56:07.000Z\"),\n UpdateTime: types.MustNewTimeFromString(\"2000-01-23T04:56:07.000Z\"),\n Author: &components.Person{\n Name: \"name\",\n ObfuscatedID: \"\",\n },\n Components: []string{\n \"Backend\",\n \"Networking\",\n },\n Status: apiclientgo.String(\"[\\\"Done\\\"]\"),\n CustomData: map[string]components.CustomDataValue{\n \"someCustomField\": components.CustomDataValue{},\n },\n },\n },\n Shortcut: &components.Shortcut{\n InputAlias: \"\",\n CreatedBy: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n UpdatedBy: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n DestinationDocument: &components.Document{\n Metadata: &components.DocumentMetadata{\n Datasource: apiclientgo.String(\"datasource\"),\n ObjectType: apiclientgo.String(\"Feature Request\"),\n Container: apiclientgo.String(\"container\"),\n ParentID: apiclientgo.String(\"JIRA_EN-1337\"),\n MimeType: apiclientgo.String(\"mimeType\"),\n DocumentID: apiclientgo.String(\"documentId\"),\n CreateTime: types.MustNewTimeFromString(\"2000-01-23T04:56:07.000Z\"),\n UpdateTime: types.MustNewTimeFromString(\"2000-01-23T04:56:07.000Z\"),\n Author: &components.Person{\n Name: \"name\",\n ObfuscatedID: \"\",\n },\n Components: []string{\n \"Backend\",\n \"Networking\",\n },\n Status: apiclientgo.String(\"[\\\"Done\\\"]\"),\n CustomData: map[string]components.CustomDataValue{\n \"someCustomField\": components.CustomDataValue{},\n },\n },\n },\n },\n ItemType: components.CollectionItemItemTypeCollection,\n },\n },\n Children: []components.Collection{\n components.Collection{\n Name: \"\",\n Description: \"whoever vice reassuringly boo fess\",\n AudienceFilters: []components.FacetFilter{\n components.FacetFilter{\n FieldName: apiclientgo.String(\"type\"),\n Values: []components.FacetFilterValue{\n components.FacetFilterValue{\n Value: apiclientgo.String(\"Spreadsheet\"),\n RelationType: components.RelationTypeEquals.ToPointer(),\n },\n components.FacetFilterValue{\n Value: apiclientgo.String(\"Presentation\"),\n RelationType: components.RelationTypeEquals.ToPointer(),\n },\n },\n },\n },\n ID: 953002,\n Creator: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n UpdatedBy: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n },\n components.Collection{\n Name: \"\",\n Description: \"whoever vice reassuringly boo fess\",\n AudienceFilters: []components.FacetFilter{\n components.FacetFilter{\n FieldName: apiclientgo.String(\"type\"),\n Values: []components.FacetFilterValue{\n components.FacetFilterValue{\n Value: apiclientgo.String(\"Spreadsheet\"),\n RelationType: components.RelationTypeEquals.ToPointer(),\n },\n components.FacetFilterValue{\n Value: apiclientgo.String(\"Presentation\"),\n RelationType: components.RelationTypeEquals.ToPointer(),\n },\n },\n },\n },\n ID: 953002,\n Creator: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n UpdatedBy: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n },\n components.Collection{\n Name: \"\",\n Description: \"whoever vice reassuringly boo fess\",\n AudienceFilters: []components.FacetFilter{\n components.FacetFilter{\n FieldName: apiclientgo.String(\"type\"),\n Values: []components.FacetFilterValue{\n components.FacetFilterValue{\n Value: apiclientgo.String(\"Spreadsheet\"),\n RelationType: components.RelationTypeEquals.ToPointer(),\n },\n components.FacetFilterValue{\n Value: apiclientgo.String(\"Presentation\"),\n RelationType: components.RelationTypeEquals.ToPointer(),\n },\n },\n },\n },\n ID: 953002,\n Creator: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n UpdatedBy: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n },\n },\n },\n },\n SourceDocument: &components.Document{\n Metadata: &components.DocumentMetadata{\n Datasource: apiclientgo.String(\"datasource\"),\n ObjectType: apiclientgo.String(\"Feature Request\"),\n Container: apiclientgo.String(\"container\"),\n ParentID: apiclientgo.String(\"JIRA_EN-1337\"),\n MimeType: apiclientgo.String(\"mimeType\"),\n DocumentID: apiclientgo.String(\"documentId\"),\n CreateTime: types.MustNewTimeFromString(\"2000-01-23T04:56:07.000Z\"),\n UpdateTime: types.MustNewTimeFromString(\"2000-01-23T04:56:07.000Z\"),\n Author: &components.Person{\n Name: \"name\",\n ObfuscatedID: \"\",\n },\n Components: []string{\n \"Backend\",\n \"Networking\",\n },\n Status: apiclientgo.String(\"[\\\"Done\\\"]\"),\n CustomData: map[string]components.CustomDataValue{\n \"someCustomField\": components.CustomDataValue{},\n },\n },\n },\n },\n ExtractedQnA: &components.ExtractedQnA{\n QuestionResult: &components.SearchResult{\n Title: apiclientgo.String(\"title\"),\n URL: \"https://example.com/foo/bar\",\n NativeAppURL: apiclientgo.String(\"slack://foo/bar\"),\n Snippets: []components.SearchResultSnippet{\n components.SearchResultSnippet{\n Snippet: \"snippet\",\n MimeType: apiclientgo.String(\"mimeType\"),\n },\n },\n MustIncludeSuggestions: &components.QuerySuggestionList{},\n },\n },\n Meeting: &components.Meeting{\n Attendees: &components.CalendarAttendees{\n People: []components.CalendarAttendee{\n components.CalendarAttendee{\n Person: components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n GroupAttendees: []components.CalendarAttendee{\n components.CalendarAttendee{\n Person: components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n },\n },\n },\n },\n },\n },\n Collection: &components.Collection{\n Name: \"\",\n Description: \"fortunate ha gazebo\",\n AudienceFilters: []components.FacetFilter{\n components.FacetFilter{\n FieldName: apiclientgo.String(\"type\"),\n Values: []components.FacetFilterValue{\n components.FacetFilterValue{\n Value: apiclientgo.String(\"Spreadsheet\"),\n RelationType: components.RelationTypeEquals.ToPointer(),\n },\n components.FacetFilterValue{\n Value: apiclientgo.String(\"Presentation\"),\n RelationType: components.RelationTypeEquals.ToPointer(),\n },\n },\n },\n },\n ID: 437915,\n Creator: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n UpdatedBy: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n },\n AnswerBoard: &components.AnswerBoard{\n Name: \"\",\n Description: \"grouper amidst pulse fowl swine that following adolescent yippee celsius\",\n AudienceFilters: []components.FacetFilter{\n components.FacetFilter{\n FieldName: apiclientgo.String(\"type\"),\n Values: []components.FacetFilterValue{\n components.FacetFilterValue{\n Value: apiclientgo.String(\"Spreadsheet\"),\n RelationType: components.RelationTypeEquals.ToPointer(),\n },\n components.FacetFilterValue{\n Value: apiclientgo.String(\"Presentation\"),\n RelationType: components.RelationTypeEquals.ToPointer(),\n },\n },\n },\n },\n ID: 751446,\n Creator: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n UpdatedBy: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n },\n Code: &components.Code{\n RepoName: apiclientgo.String(\"scio\"),\n FileName: apiclientgo.String(\"README.md\"),\n },\n Shortcut: &components.Shortcut{\n InputAlias: \"\",\n CreatedBy: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n UpdatedBy: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n DestinationDocument: &components.Document{\n Metadata: &components.DocumentMetadata{\n Datasource: apiclientgo.String(\"datasource\"),\n ObjectType: apiclientgo.String(\"Feature Request\"),\n Container: apiclientgo.String(\"container\"),\n ParentID: apiclientgo.String(\"JIRA_EN-1337\"),\n MimeType: apiclientgo.String(\"mimeType\"),\n DocumentID: apiclientgo.String(\"documentId\"),\n CreateTime: types.MustNewTimeFromString(\"2000-01-23T04:56:07.000Z\"),\n UpdateTime: types.MustNewTimeFromString(\"2000-01-23T04:56:07.000Z\"),\n Author: &components.Person{\n Name: \"name\",\n ObfuscatedID: \"\",\n },\n Components: []string{\n \"Backend\",\n \"Networking\",\n },\n Status: apiclientgo.String(\"[\\\"Done\\\"]\"),\n CustomData: map[string]components.CustomDataValue{\n \"someCustomField\": components.CustomDataValue{},\n },\n },\n },\n },\n QuerySuggestions: &components.QuerySuggestionList{\n Suggestions: []components.QuerySuggestion{\n components.QuerySuggestion{\n Query: \"app:github type:pull author:mortimer\",\n Label: apiclientgo.String(\"Mortimer's PRs\"),\n Datasource: apiclientgo.String(\"github\"),\n },\n },\n Person: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n },\n RelatedDocuments: []components.RelatedDocuments{\n components.RelatedDocuments{\n QuerySuggestion: &components.QuerySuggestion{\n Query: \"app:github type:pull author:mortimer\",\n Label: apiclientgo.String(\"Mortimer's PRs\"),\n Datasource: apiclientgo.String(\"github\"),\n },\n Results: []components.SearchResult{\n components.SearchResult{\n Title: apiclientgo.String(\"title\"),\n URL: \"https://example.com/foo/bar\",\n NativeAppURL: apiclientgo.String(\"slack://foo/bar\"),\n Snippets: []components.SearchResultSnippet{\n components.SearchResultSnippet{\n Snippet: \"snippet\",\n MimeType: apiclientgo.String(\"mimeType\"),\n },\n },\n MustIncludeSuggestions: &components.QuerySuggestionList{},\n },\n },\n },\n components.RelatedDocuments{\n QuerySuggestion: &components.QuerySuggestion{\n Query: \"app:github type:pull author:mortimer\",\n Label: apiclientgo.String(\"Mortimer's PRs\"),\n Datasource: apiclientgo.String(\"github\"),\n },\n Results: []components.SearchResult{\n components.SearchResult{\n Title: apiclientgo.String(\"title\"),\n URL: \"https://example.com/foo/bar\",\n NativeAppURL: apiclientgo.String(\"slack://foo/bar\"),\n Snippets: []components.SearchResultSnippet{\n components.SearchResultSnippet{\n Snippet: \"snippet\",\n MimeType: apiclientgo.String(\"mimeType\"),\n },\n },\n MustIncludeSuggestions: &components.QuerySuggestionList{},\n },\n },\n },\n components.RelatedDocuments{\n QuerySuggestion: &components.QuerySuggestion{\n Query: \"app:github type:pull author:mortimer\",\n Label: apiclientgo.String(\"Mortimer's PRs\"),\n Datasource: apiclientgo.String(\"github\"),\n },\n Results: []components.SearchResult{\n components.SearchResult{\n Title: apiclientgo.String(\"title\"),\n URL: \"https://example.com/foo/bar\",\n NativeAppURL: apiclientgo.String(\"slack://foo/bar\"),\n Snippets: []components.SearchResultSnippet{\n components.SearchResultSnippet{\n Snippet: \"snippet\",\n MimeType: apiclientgo.String(\"mimeType\"),\n },\n },\n MustIncludeSuggestions: &components.QuerySuggestionList{},\n },\n },\n },\n },\n RelatedQuestion: &components.RelatedQuestion{\n Ranges: []components.TextRange{\n components.TextRange{\n StartIndex: 913402,\n Document: &components.Document{\n Metadata: &components.DocumentMetadata{\n Datasource: apiclientgo.String(\"datasource\"),\n ObjectType: apiclientgo.String(\"Feature Request\"),\n Container: apiclientgo.String(\"container\"),\n ParentID: apiclientgo.String(\"JIRA_EN-1337\"),\n MimeType: apiclientgo.String(\"mimeType\"),\n DocumentID: apiclientgo.String(\"documentId\"),\n CreateTime: types.MustNewTimeFromString(\"2000-01-23T04:56:07.000Z\"),\n UpdateTime: types.MustNewTimeFromString(\"2000-01-23T04:56:07.000Z\"),\n Author: &components.Person{\n Name: \"name\",\n ObfuscatedID: \"\",\n },\n Components: []string{\n \"Backend\",\n \"Networking\",\n },\n Status: apiclientgo.String(\"[\\\"Done\\\"]\"),\n CustomData: map[string]components.CustomDataValue{\n \"someCustomField\": components.CustomDataValue{},\n },\n },\n },\n },\n components.TextRange{\n StartIndex: 913402,\n Document: &components.Document{\n Metadata: &components.DocumentMetadata{\n Datasource: apiclientgo.String(\"datasource\"),\n ObjectType: apiclientgo.String(\"Feature Request\"),\n Container: apiclientgo.String(\"container\"),\n ParentID: apiclientgo.String(\"JIRA_EN-1337\"),\n MimeType: apiclientgo.String(\"mimeType\"),\n DocumentID: apiclientgo.String(\"documentId\"),\n CreateTime: types.MustNewTimeFromString(\"2000-01-23T04:56:07.000Z\"),\n UpdateTime: types.MustNewTimeFromString(\"2000-01-23T04:56:07.000Z\"),\n Author: &components.Person{\n Name: \"name\",\n ObfuscatedID: \"\",\n },\n Components: []string{\n \"Backend\",\n \"Networking\",\n },\n Status: apiclientgo.String(\"[\\\"Done\\\"]\"),\n CustomData: map[string]components.CustomDataValue{\n \"someCustomField\": components.CustomDataValue{},\n },\n },\n },\n },\n components.TextRange{\n StartIndex: 913402,\n Document: &components.Document{\n Metadata: &components.DocumentMetadata{\n Datasource: apiclientgo.String(\"datasource\"),\n ObjectType: apiclientgo.String(\"Feature Request\"),\n Container: apiclientgo.String(\"container\"),\n ParentID: apiclientgo.String(\"JIRA_EN-1337\"),\n MimeType: apiclientgo.String(\"mimeType\"),\n DocumentID: apiclientgo.String(\"documentId\"),\n CreateTime: types.MustNewTimeFromString(\"2000-01-23T04:56:07.000Z\"),\n UpdateTime: types.MustNewTimeFromString(\"2000-01-23T04:56:07.000Z\"),\n Author: &components.Person{\n Name: \"name\",\n ObfuscatedID: \"\",\n },\n Components: []string{\n \"Backend\",\n \"Networking\",\n },\n Status: apiclientgo.String(\"[\\\"Done\\\"]\"),\n CustomData: map[string]components.CustomDataValue{\n \"someCustomField\": components.CustomDataValue{},\n },\n },\n },\n },\n },\n },\n },\n },\n components.StructuredTextItem{\n Link: apiclientgo.String(\"https://en.wikipedia.org/wiki/Diffuse_sky_radiation\"),\n Document: &components.Document{\n Metadata: &components.DocumentMetadata{\n Datasource: apiclientgo.String(\"datasource\"),\n ObjectType: apiclientgo.String(\"Feature Request\"),\n Container: apiclientgo.String(\"container\"),\n ParentID: apiclientgo.String(\"JIRA_EN-1337\"),\n MimeType: apiclientgo.String(\"mimeType\"),\n DocumentID: apiclientgo.String(\"documentId\"),\n CreateTime: types.MustNewTimeFromString(\"2000-01-23T04:56:07.000Z\"),\n UpdateTime: types.MustNewTimeFromString(\"2000-01-23T04:56:07.000Z\"),\n Author: &components.Person{\n Name: \"name\",\n ObfuscatedID: \"\",\n },\n Components: []string{\n \"Backend\",\n \"Networking\",\n },\n Status: apiclientgo.String(\"[\\\"Done\\\"]\"),\n CustomData: map[string]components.CustomDataValue{\n \"someCustomField\": components.CustomDataValue{},\n },\n },\n },\n Text: apiclientgo.String(\"Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue.\"),\n StructuredResult: &components.StructuredResult{\n Document: &components.Document{\n Metadata: &components.DocumentMetadata{\n Datasource: apiclientgo.String(\"datasource\"),\n ObjectType: apiclientgo.String(\"Feature Request\"),\n Container: apiclientgo.String(\"container\"),\n ParentID: apiclientgo.String(\"JIRA_EN-1337\"),\n MimeType: apiclientgo.String(\"mimeType\"),\n DocumentID: apiclientgo.String(\"documentId\"),\n CreateTime: types.MustNewTimeFromString(\"2000-01-23T04:56:07.000Z\"),\n UpdateTime: types.MustNewTimeFromString(\"2000-01-23T04:56:07.000Z\"),\n Author: &components.Person{\n Name: \"name\",\n ObfuscatedID: \"\",\n },\n Components: []string{\n \"Backend\",\n \"Networking\",\n },\n Status: apiclientgo.String(\"[\\\"Done\\\"]\"),\n CustomData: map[string]components.CustomDataValue{\n \"someCustomField\": components.CustomDataValue{},\n },\n },\n },\n Person: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n Customer: &components.Customer{\n ID: \"\",\n Company: components.Company{\n Name: \"\",\n Location: apiclientgo.String(\"New York City\"),\n Industry: apiclientgo.String(\"Finances\"),\n About: apiclientgo.String(\"Financial, software, data, and media company headquartered in Midtown Manhattan, New York City\"),\n },\n Poc: []components.Person{\n components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n },\n MergedCustomers: []components.Customer{\n components.Customer{\n ID: \"\",\n Company: components.Company{\n Name: \"\",\n Location: apiclientgo.String(\"New York City\"),\n Industry: apiclientgo.String(\"Finances\"),\n About: apiclientgo.String(\"Financial, software, data, and media company headquartered in Midtown Manhattan, New York City\"),\n },\n Notes: apiclientgo.String(\"CIO is interested in trying out the product.\"),\n },\n components.Customer{\n ID: \"\",\n Company: components.Company{\n Name: \"\",\n Location: apiclientgo.String(\"New York City\"),\n Industry: apiclientgo.String(\"Finances\"),\n About: apiclientgo.String(\"Financial, software, data, and media company headquartered in Midtown Manhattan, New York City\"),\n },\n Notes: apiclientgo.String(\"CIO is interested in trying out the product.\"),\n },\n components.Customer{\n ID: \"\",\n Company: components.Company{\n Name: \"\",\n Location: apiclientgo.String(\"New York City\"),\n Industry: apiclientgo.String(\"Finances\"),\n About: apiclientgo.String(\"Financial, software, data, and media company headquartered in Midtown Manhattan, New York City\"),\n },\n Notes: apiclientgo.String(\"CIO is interested in trying out the product.\"),\n },\n },\n Notes: apiclientgo.String(\"CIO is interested in trying out the product.\"),\n },\n Team: &components.Team{\n ID: \"\",\n Name: \"\",\n Members: []components.PersonToTeamRelationship{\n components.PersonToTeamRelationship{\n Person: components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n },\n components.PersonToTeamRelationship{\n Person: components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n },\n },\n CustomFields: []components.CustomFieldData{\n components.CustomFieldData{\n Label: \"\",\n Values: []components.CustomFieldValue{\n components.CreateCustomFieldValueCustomFieldValuePerson(\n components.CustomFieldValuePerson{\n Person: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n },\n ),\n components.CreateCustomFieldValueCustomFieldValuePerson(\n components.CustomFieldValuePerson{\n Person: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n },\n ),\n components.CreateCustomFieldValueCustomFieldValuePerson(\n components.CustomFieldValuePerson{\n Person: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n },\n ),\n },\n },\n components.CustomFieldData{\n Label: \"\",\n Values: []components.CustomFieldValue{\n components.CreateCustomFieldValueCustomFieldValuePerson(\n components.CustomFieldValuePerson{\n Person: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n },\n ),\n components.CreateCustomFieldValueCustomFieldValuePerson(\n components.CustomFieldValuePerson{\n Person: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n },\n ),\n components.CreateCustomFieldValueCustomFieldValuePerson(\n components.CustomFieldValuePerson{\n Person: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n },\n ),\n },\n },\n components.CustomFieldData{\n Label: \"\",\n Values: []components.CustomFieldValue{\n components.CreateCustomFieldValueCustomFieldValuePerson(\n components.CustomFieldValuePerson{\n Person: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n },\n ),\n components.CreateCustomFieldValueCustomFieldValuePerson(\n components.CustomFieldValuePerson{\n Person: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n },\n ),\n components.CreateCustomFieldValueCustomFieldValuePerson(\n components.CustomFieldValuePerson{\n Person: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n },\n ),\n },\n },\n },\n DatasourceProfiles: []components.DatasourceProfile{\n components.DatasourceProfile{\n Datasource: \"github\",\n Handle: \"\",\n },\n components.DatasourceProfile{\n Datasource: \"github\",\n Handle: \"\",\n },\n components.DatasourceProfile{\n Datasource: \"github\",\n Handle: \"\",\n },\n },\n },\n CustomEntity: &components.CustomEntity{\n Roles: []components.UserRoleSpecification{\n components.UserRoleSpecification{\n Person: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n Role: components.UserRoleEditor,\n },\n components.UserRoleSpecification{\n Person: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n Role: components.UserRoleEditor,\n },\n },\n },\n Answer: &components.Answer{\n ID: 3,\n DocID: apiclientgo.String(\"ANSWERS_answer_3\"),\n Question: apiclientgo.String(\"Why is the sky blue?\"),\n BodyText: apiclientgo.String(\"From https://en.wikipedia.org/wiki/Diffuse_sky_radiation, the sky is blue because blue light is more strongly scattered than longer-wavelength light.\"),\n AudienceFilters: []components.FacetFilter{\n components.FacetFilter{\n FieldName: apiclientgo.String(\"type\"),\n Values: []components.FacetFilterValue{\n components.FacetFilterValue{\n Value: apiclientgo.String(\"Spreadsheet\"),\n RelationType: components.RelationTypeEquals.ToPointer(),\n },\n components.FacetFilterValue{\n Value: apiclientgo.String(\"Presentation\"),\n RelationType: components.RelationTypeEquals.ToPointer(),\n },\n },\n },\n },\n AddedRoles: []components.UserRoleSpecification{\n components.UserRoleSpecification{\n Person: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n Role: components.UserRoleEditor,\n },\n components.UserRoleSpecification{\n Person: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n Role: components.UserRoleEditor,\n },\n components.UserRoleSpecification{\n Person: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n Role: components.UserRoleEditor,\n },\n },\n RemovedRoles: []components.UserRoleSpecification{\n components.UserRoleSpecification{\n Person: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n Role: components.UserRoleVerifier,\n },\n components.UserRoleSpecification{\n Person: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n Role: components.UserRoleVerifier,\n },\n },\n Likes: &components.AnswerLikes{\n LikedBy: []components.AnswerLike{\n components.AnswerLike{\n User: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n },\n components.AnswerLike{\n User: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n },\n components.AnswerLike{\n User: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n },\n },\n LikedByUser: false,\n NumLikes: 716571,\n },\n Author: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n UpdatedBy: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n Verification: &components.Verification{\n State: components.StateUnverified,\n Metadata: &components.VerificationMetadata{\n LastVerifier: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n Document: &components.Document{\n Metadata: &components.DocumentMetadata{\n Datasource: apiclientgo.String(\"datasource\"),\n ObjectType: apiclientgo.String(\"Feature Request\"),\n Container: apiclientgo.String(\"container\"),\n ParentID: apiclientgo.String(\"JIRA_EN-1337\"),\n MimeType: apiclientgo.String(\"mimeType\"),\n DocumentID: apiclientgo.String(\"documentId\"),\n CreateTime: types.MustNewTimeFromString(\"2000-01-23T04:56:07.000Z\"),\n UpdateTime: types.MustNewTimeFromString(\"2000-01-23T04:56:07.000Z\"),\n Author: &components.Person{\n Name: \"name\",\n ObfuscatedID: \"\",\n },\n Components: []string{\n \"Backend\",\n \"Networking\",\n },\n Status: apiclientgo.String(\"[\\\"Done\\\"]\"),\n CustomData: map[string]components.CustomDataValue{\n \"someCustomField\": components.CustomDataValue{},\n },\n },\n },\n Reminders: []components.Reminder{\n components.Reminder{\n Assignee: components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n Requestor: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n RemindAt: 852101,\n },\n },\n LastReminder: &components.Reminder{\n Assignee: components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n Requestor: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n RemindAt: 829206,\n },\n CandidateVerifiers: []components.Person{\n components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n },\n },\n },\n Board: &components.AnswerBoard{\n Name: \"\",\n Description: \"pronoun whether likely likewise negative possession ape furthermore\",\n AudienceFilters: []components.FacetFilter{\n components.FacetFilter{\n FieldName: apiclientgo.String(\"type\"),\n Values: []components.FacetFilterValue{\n components.FacetFilterValue{\n Value: apiclientgo.String(\"Spreadsheet\"),\n RelationType: components.RelationTypeEquals.ToPointer(),\n },\n components.FacetFilterValue{\n Value: apiclientgo.String(\"Presentation\"),\n RelationType: components.RelationTypeEquals.ToPointer(),\n },\n },\n },\n },\n ID: 856490,\n Creator: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n UpdatedBy: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n },\n Collections: []components.Collection{\n components.Collection{\n Name: \"\",\n Description: \"tedious given quixotic\",\n AudienceFilters: []components.FacetFilter{\n components.FacetFilter{\n FieldName: apiclientgo.String(\"type\"),\n Values: []components.FacetFilterValue{\n components.FacetFilterValue{\n Value: apiclientgo.String(\"Spreadsheet\"),\n RelationType: components.RelationTypeEquals.ToPointer(),\n },\n components.FacetFilterValue{\n Value: apiclientgo.String(\"Presentation\"),\n RelationType: components.RelationTypeEquals.ToPointer(),\n },\n },\n },\n },\n ID: 590805,\n Creator: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n UpdatedBy: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n Items: []components.CollectionItem{\n components.CollectionItem{\n CollectionID: 913703,\n CreatedBy: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n Document: &components.Document{\n Metadata: &components.DocumentMetadata{\n Datasource: apiclientgo.String(\"datasource\"),\n ObjectType: apiclientgo.String(\"Feature Request\"),\n Container: apiclientgo.String(\"container\"),\n ParentID: apiclientgo.String(\"JIRA_EN-1337\"),\n MimeType: apiclientgo.String(\"mimeType\"),\n DocumentID: apiclientgo.String(\"documentId\"),\n CreateTime: types.MustNewTimeFromString(\"2000-01-23T04:56:07.000Z\"),\n UpdateTime: types.MustNewTimeFromString(\"2000-01-23T04:56:07.000Z\"),\n Author: &components.Person{\n Name: \"name\",\n ObfuscatedID: \"\",\n },\n Components: []string{\n \"Backend\",\n \"Networking\",\n },\n Status: apiclientgo.String(\"[\\\"Done\\\"]\"),\n CustomData: map[string]components.CustomDataValue{\n \"someCustomField\": components.CustomDataValue{},\n },\n },\n },\n Shortcut: &components.Shortcut{\n InputAlias: \"\",\n CreatedBy: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n UpdatedBy: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n DestinationDocument: &components.Document{\n Metadata: &components.DocumentMetadata{\n Datasource: apiclientgo.String(\"datasource\"),\n ObjectType: apiclientgo.String(\"Feature Request\"),\n Container: apiclientgo.String(\"container\"),\n ParentID: apiclientgo.String(\"JIRA_EN-1337\"),\n MimeType: apiclientgo.String(\"mimeType\"),\n DocumentID: apiclientgo.String(\"documentId\"),\n CreateTime: types.MustNewTimeFromString(\"2000-01-23T04:56:07.000Z\"),\n UpdateTime: types.MustNewTimeFromString(\"2000-01-23T04:56:07.000Z\"),\n Author: &components.Person{\n Name: \"name\",\n ObfuscatedID: \"\",\n },\n Components: []string{\n \"Backend\",\n \"Networking\",\n },\n Status: apiclientgo.String(\"[\\\"Done\\\"]\"),\n CustomData: map[string]components.CustomDataValue{\n \"someCustomField\": components.CustomDataValue{},\n },\n },\n },\n },\n ItemType: components.CollectionItemItemTypeCollection,\n },\n },\n Children: []components.Collection{\n components.Collection{\n Name: \"\",\n Description: \"whoever vice reassuringly boo fess\",\n AudienceFilters: []components.FacetFilter{\n components.FacetFilter{\n FieldName: apiclientgo.String(\"type\"),\n Values: []components.FacetFilterValue{\n components.FacetFilterValue{\n Value: apiclientgo.String(\"Spreadsheet\"),\n RelationType: components.RelationTypeEquals.ToPointer(),\n },\n components.FacetFilterValue{\n Value: apiclientgo.String(\"Presentation\"),\n RelationType: components.RelationTypeEquals.ToPointer(),\n },\n },\n },\n },\n ID: 953002,\n Creator: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n UpdatedBy: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n },\n components.Collection{\n Name: \"\",\n Description: \"whoever vice reassuringly boo fess\",\n AudienceFilters: []components.FacetFilter{\n components.FacetFilter{\n FieldName: apiclientgo.String(\"type\"),\n Values: []components.FacetFilterValue{\n components.FacetFilterValue{\n Value: apiclientgo.String(\"Spreadsheet\"),\n RelationType: components.RelationTypeEquals.ToPointer(),\n },\n components.FacetFilterValue{\n Value: apiclientgo.String(\"Presentation\"),\n RelationType: components.RelationTypeEquals.ToPointer(),\n },\n },\n },\n },\n ID: 953002,\n Creator: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n UpdatedBy: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n },\n components.Collection{\n Name: \"\",\n Description: \"whoever vice reassuringly boo fess\",\n AudienceFilters: []components.FacetFilter{\n components.FacetFilter{\n FieldName: apiclientgo.String(\"type\"),\n Values: []components.FacetFilterValue{\n components.FacetFilterValue{\n Value: apiclientgo.String(\"Spreadsheet\"),\n RelationType: components.RelationTypeEquals.ToPointer(),\n },\n components.FacetFilterValue{\n Value: apiclientgo.String(\"Presentation\"),\n RelationType: components.RelationTypeEquals.ToPointer(),\n },\n },\n },\n },\n ID: 953002,\n Creator: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n UpdatedBy: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n },\n },\n },\n components.Collection{\n Name: \"\",\n Description: \"tedious given quixotic\",\n AudienceFilters: []components.FacetFilter{\n components.FacetFilter{\n FieldName: apiclientgo.String(\"type\"),\n Values: []components.FacetFilterValue{\n components.FacetFilterValue{\n Value: apiclientgo.String(\"Spreadsheet\"),\n RelationType: components.RelationTypeEquals.ToPointer(),\n },\n components.FacetFilterValue{\n Value: apiclientgo.String(\"Presentation\"),\n RelationType: components.RelationTypeEquals.ToPointer(),\n },\n },\n },\n },\n ID: 590805,\n Creator: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n UpdatedBy: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n Items: []components.CollectionItem{\n components.CollectionItem{\n CollectionID: 913703,\n CreatedBy: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n Document: &components.Document{\n Metadata: &components.DocumentMetadata{\n Datasource: apiclientgo.String(\"datasource\"),\n ObjectType: apiclientgo.String(\"Feature Request\"),\n Container: apiclientgo.String(\"container\"),\n ParentID: apiclientgo.String(\"JIRA_EN-1337\"),\n MimeType: apiclientgo.String(\"mimeType\"),\n DocumentID: apiclientgo.String(\"documentId\"),\n CreateTime: types.MustNewTimeFromString(\"2000-01-23T04:56:07.000Z\"),\n UpdateTime: types.MustNewTimeFromString(\"2000-01-23T04:56:07.000Z\"),\n Author: &components.Person{\n Name: \"name\",\n ObfuscatedID: \"\",\n },\n Components: []string{\n \"Backend\",\n \"Networking\",\n },\n Status: apiclientgo.String(\"[\\\"Done\\\"]\"),\n CustomData: map[string]components.CustomDataValue{\n \"someCustomField\": components.CustomDataValue{},\n },\n },\n },\n Shortcut: &components.Shortcut{\n InputAlias: \"\",\n CreatedBy: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n UpdatedBy: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n DestinationDocument: &components.Document{\n Metadata: &components.DocumentMetadata{\n Datasource: apiclientgo.String(\"datasource\"),\n ObjectType: apiclientgo.String(\"Feature Request\"),\n Container: apiclientgo.String(\"container\"),\n ParentID: apiclientgo.String(\"JIRA_EN-1337\"),\n MimeType: apiclientgo.String(\"mimeType\"),\n DocumentID: apiclientgo.String(\"documentId\"),\n CreateTime: types.MustNewTimeFromString(\"2000-01-23T04:56:07.000Z\"),\n UpdateTime: types.MustNewTimeFromString(\"2000-01-23T04:56:07.000Z\"),\n Author: &components.Person{\n Name: \"name\",\n ObfuscatedID: \"\",\n },\n Components: []string{\n \"Backend\",\n \"Networking\",\n },\n Status: apiclientgo.String(\"[\\\"Done\\\"]\"),\n CustomData: map[string]components.CustomDataValue{\n \"someCustomField\": components.CustomDataValue{},\n },\n },\n },\n },\n ItemType: components.CollectionItemItemTypeCollection,\n },\n },\n Children: []components.Collection{\n components.Collection{\n Name: \"\",\n Description: \"whoever vice reassuringly boo fess\",\n AudienceFilters: []components.FacetFilter{\n components.FacetFilter{\n FieldName: apiclientgo.String(\"type\"),\n Values: []components.FacetFilterValue{\n components.FacetFilterValue{\n Value: apiclientgo.String(\"Spreadsheet\"),\n RelationType: components.RelationTypeEquals.ToPointer(),\n },\n components.FacetFilterValue{\n Value: apiclientgo.String(\"Presentation\"),\n RelationType: components.RelationTypeEquals.ToPointer(),\n },\n },\n },\n },\n ID: 953002,\n Creator: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n UpdatedBy: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n },\n components.Collection{\n Name: \"\",\n Description: \"whoever vice reassuringly boo fess\",\n AudienceFilters: []components.FacetFilter{\n components.FacetFilter{\n FieldName: apiclientgo.String(\"type\"),\n Values: []components.FacetFilterValue{\n components.FacetFilterValue{\n Value: apiclientgo.String(\"Spreadsheet\"),\n RelationType: components.RelationTypeEquals.ToPointer(),\n },\n components.FacetFilterValue{\n Value: apiclientgo.String(\"Presentation\"),\n RelationType: components.RelationTypeEquals.ToPointer(),\n },\n },\n },\n },\n ID: 953002,\n Creator: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n UpdatedBy: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n },\n components.Collection{\n Name: \"\",\n Description: \"whoever vice reassuringly boo fess\",\n AudienceFilters: []components.FacetFilter{\n components.FacetFilter{\n FieldName: apiclientgo.String(\"type\"),\n Values: []components.FacetFilterValue{\n components.FacetFilterValue{\n Value: apiclientgo.String(\"Spreadsheet\"),\n RelationType: components.RelationTypeEquals.ToPointer(),\n },\n components.FacetFilterValue{\n Value: apiclientgo.String(\"Presentation\"),\n RelationType: components.RelationTypeEquals.ToPointer(),\n },\n },\n },\n },\n ID: 953002,\n Creator: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n UpdatedBy: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n },\n },\n },\n components.Collection{\n Name: \"\",\n Description: \"tedious given quixotic\",\n AudienceFilters: []components.FacetFilter{\n components.FacetFilter{\n FieldName: apiclientgo.String(\"type\"),\n Values: []components.FacetFilterValue{\n components.FacetFilterValue{\n Value: apiclientgo.String(\"Spreadsheet\"),\n RelationType: components.RelationTypeEquals.ToPointer(),\n },\n components.FacetFilterValue{\n Value: apiclientgo.String(\"Presentation\"),\n RelationType: components.RelationTypeEquals.ToPointer(),\n },\n },\n },\n },\n ID: 590805,\n Creator: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n UpdatedBy: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n Items: []components.CollectionItem{\n components.CollectionItem{\n CollectionID: 913703,\n CreatedBy: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n Document: &components.Document{\n Metadata: &components.DocumentMetadata{\n Datasource: apiclientgo.String(\"datasource\"),\n ObjectType: apiclientgo.String(\"Feature Request\"),\n Container: apiclientgo.String(\"container\"),\n ParentID: apiclientgo.String(\"JIRA_EN-1337\"),\n MimeType: apiclientgo.String(\"mimeType\"),\n DocumentID: apiclientgo.String(\"documentId\"),\n CreateTime: types.MustNewTimeFromString(\"2000-01-23T04:56:07.000Z\"),\n UpdateTime: types.MustNewTimeFromString(\"2000-01-23T04:56:07.000Z\"),\n Author: &components.Person{\n Name: \"name\",\n ObfuscatedID: \"\",\n },\n Components: []string{\n \"Backend\",\n \"Networking\",\n },\n Status: apiclientgo.String(\"[\\\"Done\\\"]\"),\n CustomData: map[string]components.CustomDataValue{\n \"someCustomField\": components.CustomDataValue{},\n },\n },\n },\n Shortcut: &components.Shortcut{\n InputAlias: \"\",\n CreatedBy: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n UpdatedBy: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n DestinationDocument: &components.Document{\n Metadata: &components.DocumentMetadata{\n Datasource: apiclientgo.String(\"datasource\"),\n ObjectType: apiclientgo.String(\"Feature Request\"),\n Container: apiclientgo.String(\"container\"),\n ParentID: apiclientgo.String(\"JIRA_EN-1337\"),\n MimeType: apiclientgo.String(\"mimeType\"),\n DocumentID: apiclientgo.String(\"documentId\"),\n CreateTime: types.MustNewTimeFromString(\"2000-01-23T04:56:07.000Z\"),\n UpdateTime: types.MustNewTimeFromString(\"2000-01-23T04:56:07.000Z\"),\n Author: &components.Person{\n Name: \"name\",\n ObfuscatedID: \"\",\n },\n Components: []string{\n \"Backend\",\n \"Networking\",\n },\n Status: apiclientgo.String(\"[\\\"Done\\\"]\"),\n CustomData: map[string]components.CustomDataValue{\n \"someCustomField\": components.CustomDataValue{},\n },\n },\n },\n },\n ItemType: components.CollectionItemItemTypeCollection,\n },\n },\n Children: []components.Collection{\n components.Collection{\n Name: \"\",\n Description: \"whoever vice reassuringly boo fess\",\n AudienceFilters: []components.FacetFilter{\n components.FacetFilter{\n FieldName: apiclientgo.String(\"type\"),\n Values: []components.FacetFilterValue{\n components.FacetFilterValue{\n Value: apiclientgo.String(\"Spreadsheet\"),\n RelationType: components.RelationTypeEquals.ToPointer(),\n },\n components.FacetFilterValue{\n Value: apiclientgo.String(\"Presentation\"),\n RelationType: components.RelationTypeEquals.ToPointer(),\n },\n },\n },\n },\n ID: 953002,\n Creator: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n UpdatedBy: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n },\n components.Collection{\n Name: \"\",\n Description: \"whoever vice reassuringly boo fess\",\n AudienceFilters: []components.FacetFilter{\n components.FacetFilter{\n FieldName: apiclientgo.String(\"type\"),\n Values: []components.FacetFilterValue{\n components.FacetFilterValue{\n Value: apiclientgo.String(\"Spreadsheet\"),\n RelationType: components.RelationTypeEquals.ToPointer(),\n },\n components.FacetFilterValue{\n Value: apiclientgo.String(\"Presentation\"),\n RelationType: components.RelationTypeEquals.ToPointer(),\n },\n },\n },\n },\n ID: 953002,\n Creator: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n UpdatedBy: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n },\n components.Collection{\n Name: \"\",\n Description: \"whoever vice reassuringly boo fess\",\n AudienceFilters: []components.FacetFilter{\n components.FacetFilter{\n FieldName: apiclientgo.String(\"type\"),\n Values: []components.FacetFilterValue{\n components.FacetFilterValue{\n Value: apiclientgo.String(\"Spreadsheet\"),\n RelationType: components.RelationTypeEquals.ToPointer(),\n },\n components.FacetFilterValue{\n Value: apiclientgo.String(\"Presentation\"),\n RelationType: components.RelationTypeEquals.ToPointer(),\n },\n },\n },\n },\n ID: 953002,\n Creator: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n UpdatedBy: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n },\n },\n },\n },\n SourceDocument: &components.Document{\n Metadata: &components.DocumentMetadata{\n Datasource: apiclientgo.String(\"datasource\"),\n ObjectType: apiclientgo.String(\"Feature Request\"),\n Container: apiclientgo.String(\"container\"),\n ParentID: apiclientgo.String(\"JIRA_EN-1337\"),\n MimeType: apiclientgo.String(\"mimeType\"),\n DocumentID: apiclientgo.String(\"documentId\"),\n CreateTime: types.MustNewTimeFromString(\"2000-01-23T04:56:07.000Z\"),\n UpdateTime: types.MustNewTimeFromString(\"2000-01-23T04:56:07.000Z\"),\n Author: &components.Person{\n Name: \"name\",\n ObfuscatedID: \"\",\n },\n Components: []string{\n \"Backend\",\n \"Networking\",\n },\n Status: apiclientgo.String(\"[\\\"Done\\\"]\"),\n CustomData: map[string]components.CustomDataValue{\n \"someCustomField\": components.CustomDataValue{},\n },\n },\n },\n },\n ExtractedQnA: &components.ExtractedQnA{\n QuestionResult: &components.SearchResult{\n Title: apiclientgo.String(\"title\"),\n URL: \"https://example.com/foo/bar\",\n NativeAppURL: apiclientgo.String(\"slack://foo/bar\"),\n Snippets: []components.SearchResultSnippet{\n components.SearchResultSnippet{\n Snippet: \"snippet\",\n MimeType: apiclientgo.String(\"mimeType\"),\n },\n },\n MustIncludeSuggestions: &components.QuerySuggestionList{},\n },\n },\n Meeting: &components.Meeting{\n Attendees: &components.CalendarAttendees{\n People: []components.CalendarAttendee{\n components.CalendarAttendee{\n Person: components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n GroupAttendees: []components.CalendarAttendee{\n components.CalendarAttendee{\n Person: components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n },\n },\n },\n },\n },\n },\n Collection: &components.Collection{\n Name: \"\",\n Description: \"fortunate ha gazebo\",\n AudienceFilters: []components.FacetFilter{\n components.FacetFilter{\n FieldName: apiclientgo.String(\"type\"),\n Values: []components.FacetFilterValue{\n components.FacetFilterValue{\n Value: apiclientgo.String(\"Spreadsheet\"),\n RelationType: components.RelationTypeEquals.ToPointer(),\n },\n components.FacetFilterValue{\n Value: apiclientgo.String(\"Presentation\"),\n RelationType: components.RelationTypeEquals.ToPointer(),\n },\n },\n },\n },\n ID: 437915,\n Creator: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n UpdatedBy: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n },\n AnswerBoard: &components.AnswerBoard{\n Name: \"\",\n Description: \"grouper amidst pulse fowl swine that following adolescent yippee celsius\",\n AudienceFilters: []components.FacetFilter{\n components.FacetFilter{\n FieldName: apiclientgo.String(\"type\"),\n Values: []components.FacetFilterValue{\n components.FacetFilterValue{\n Value: apiclientgo.String(\"Spreadsheet\"),\n RelationType: components.RelationTypeEquals.ToPointer(),\n },\n components.FacetFilterValue{\n Value: apiclientgo.String(\"Presentation\"),\n RelationType: components.RelationTypeEquals.ToPointer(),\n },\n },\n },\n },\n ID: 751446,\n Creator: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n UpdatedBy: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n },\n Code: &components.Code{\n RepoName: apiclientgo.String(\"scio\"),\n FileName: apiclientgo.String(\"README.md\"),\n },\n Shortcut: &components.Shortcut{\n InputAlias: \"\",\n CreatedBy: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n UpdatedBy: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n DestinationDocument: &components.Document{\n Metadata: &components.DocumentMetadata{\n Datasource: apiclientgo.String(\"datasource\"),\n ObjectType: apiclientgo.String(\"Feature Request\"),\n Container: apiclientgo.String(\"container\"),\n ParentID: apiclientgo.String(\"JIRA_EN-1337\"),\n MimeType: apiclientgo.String(\"mimeType\"),\n DocumentID: apiclientgo.String(\"documentId\"),\n CreateTime: types.MustNewTimeFromString(\"2000-01-23T04:56:07.000Z\"),\n UpdateTime: types.MustNewTimeFromString(\"2000-01-23T04:56:07.000Z\"),\n Author: &components.Person{\n Name: \"name\",\n ObfuscatedID: \"\",\n },\n Components: []string{\n \"Backend\",\n \"Networking\",\n },\n Status: apiclientgo.String(\"[\\\"Done\\\"]\"),\n CustomData: map[string]components.CustomDataValue{\n \"someCustomField\": components.CustomDataValue{},\n },\n },\n },\n },\n QuerySuggestions: &components.QuerySuggestionList{\n Suggestions: []components.QuerySuggestion{\n components.QuerySuggestion{\n Query: \"app:github type:pull author:mortimer\",\n Label: apiclientgo.String(\"Mortimer's PRs\"),\n Datasource: apiclientgo.String(\"github\"),\n },\n },\n Person: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n },\n RelatedDocuments: []components.RelatedDocuments{\n components.RelatedDocuments{\n QuerySuggestion: &components.QuerySuggestion{\n Query: \"app:github type:pull author:mortimer\",\n Label: apiclientgo.String(\"Mortimer's PRs\"),\n Datasource: apiclientgo.String(\"github\"),\n },\n Results: []components.SearchResult{\n components.SearchResult{\n Title: apiclientgo.String(\"title\"),\n URL: \"https://example.com/foo/bar\",\n NativeAppURL: apiclientgo.String(\"slack://foo/bar\"),\n Snippets: []components.SearchResultSnippet{\n components.SearchResultSnippet{\n Snippet: \"snippet\",\n MimeType: apiclientgo.String(\"mimeType\"),\n },\n },\n MustIncludeSuggestions: &components.QuerySuggestionList{},\n },\n },\n },\n components.RelatedDocuments{\n QuerySuggestion: &components.QuerySuggestion{\n Query: \"app:github type:pull author:mortimer\",\n Label: apiclientgo.String(\"Mortimer's PRs\"),\n Datasource: apiclientgo.String(\"github\"),\n },\n Results: []components.SearchResult{\n components.SearchResult{\n Title: apiclientgo.String(\"title\"),\n URL: \"https://example.com/foo/bar\",\n NativeAppURL: apiclientgo.String(\"slack://foo/bar\"),\n Snippets: []components.SearchResultSnippet{\n components.SearchResultSnippet{\n Snippet: \"snippet\",\n MimeType: apiclientgo.String(\"mimeType\"),\n },\n },\n MustIncludeSuggestions: &components.QuerySuggestionList{},\n },\n },\n },\n components.RelatedDocuments{\n QuerySuggestion: &components.QuerySuggestion{\n Query: \"app:github type:pull author:mortimer\",\n Label: apiclientgo.String(\"Mortimer's PRs\"),\n Datasource: apiclientgo.String(\"github\"),\n },\n Results: []components.SearchResult{\n components.SearchResult{\n Title: apiclientgo.String(\"title\"),\n URL: \"https://example.com/foo/bar\",\n NativeAppURL: apiclientgo.String(\"slack://foo/bar\"),\n Snippets: []components.SearchResultSnippet{\n components.SearchResultSnippet{\n Snippet: \"snippet\",\n MimeType: apiclientgo.String(\"mimeType\"),\n },\n },\n MustIncludeSuggestions: &components.QuerySuggestionList{},\n },\n },\n },\n },\n RelatedQuestion: &components.RelatedQuestion{\n Ranges: []components.TextRange{\n components.TextRange{\n StartIndex: 913402,\n Document: &components.Document{\n Metadata: &components.DocumentMetadata{\n Datasource: apiclientgo.String(\"datasource\"),\n ObjectType: apiclientgo.String(\"Feature Request\"),\n Container: apiclientgo.String(\"container\"),\n ParentID: apiclientgo.String(\"JIRA_EN-1337\"),\n MimeType: apiclientgo.String(\"mimeType\"),\n DocumentID: apiclientgo.String(\"documentId\"),\n CreateTime: types.MustNewTimeFromString(\"2000-01-23T04:56:07.000Z\"),\n UpdateTime: types.MustNewTimeFromString(\"2000-01-23T04:56:07.000Z\"),\n Author: &components.Person{\n Name: \"name\",\n ObfuscatedID: \"\",\n },\n Components: []string{\n \"Backend\",\n \"Networking\",\n },\n Status: apiclientgo.String(\"[\\\"Done\\\"]\"),\n CustomData: map[string]components.CustomDataValue{\n \"someCustomField\": components.CustomDataValue{},\n },\n },\n },\n },\n components.TextRange{\n StartIndex: 913402,\n Document: &components.Document{\n Metadata: &components.DocumentMetadata{\n Datasource: apiclientgo.String(\"datasource\"),\n ObjectType: apiclientgo.String(\"Feature Request\"),\n Container: apiclientgo.String(\"container\"),\n ParentID: apiclientgo.String(\"JIRA_EN-1337\"),\n MimeType: apiclientgo.String(\"mimeType\"),\n DocumentID: apiclientgo.String(\"documentId\"),\n CreateTime: types.MustNewTimeFromString(\"2000-01-23T04:56:07.000Z\"),\n UpdateTime: types.MustNewTimeFromString(\"2000-01-23T04:56:07.000Z\"),\n Author: &components.Person{\n Name: \"name\",\n ObfuscatedID: \"\",\n },\n Components: []string{\n \"Backend\",\n \"Networking\",\n },\n Status: apiclientgo.String(\"[\\\"Done\\\"]\"),\n CustomData: map[string]components.CustomDataValue{\n \"someCustomField\": components.CustomDataValue{},\n },\n },\n },\n },\n components.TextRange{\n StartIndex: 913402,\n Document: &components.Document{\n Metadata: &components.DocumentMetadata{\n Datasource: apiclientgo.String(\"datasource\"),\n ObjectType: apiclientgo.String(\"Feature Request\"),\n Container: apiclientgo.String(\"container\"),\n ParentID: apiclientgo.String(\"JIRA_EN-1337\"),\n MimeType: apiclientgo.String(\"mimeType\"),\n DocumentID: apiclientgo.String(\"documentId\"),\n CreateTime: types.MustNewTimeFromString(\"2000-01-23T04:56:07.000Z\"),\n UpdateTime: types.MustNewTimeFromString(\"2000-01-23T04:56:07.000Z\"),\n Author: &components.Person{\n Name: \"name\",\n ObfuscatedID: \"\",\n },\n Components: []string{\n \"Backend\",\n \"Networking\",\n },\n Status: apiclientgo.String(\"[\\\"Done\\\"]\"),\n CustomData: map[string]components.CustomDataValue{\n \"someCustomField\": components.CustomDataValue{},\n },\n },\n },\n },\n },\n },\n },\n },\n },\n },\n AudienceFilters: []components.FacetFilter{\n components.FacetFilter{\n FieldName: apiclientgo.String(\"type\"),\n Values: []components.FacetFilterValue{\n components.FacetFilterValue{\n Value: apiclientgo.String(\"Spreadsheet\"),\n RelationType: components.RelationTypeEquals.ToPointer(),\n },\n components.FacetFilterValue{\n Value: apiclientgo.String(\"Presentation\"),\n RelationType: components.RelationTypeEquals.ToPointer(),\n },\n },\n },\n },\n })\n if err != nil {\n log.Fatal(err)\n }\n if res.Announcement != nil {\n // handle response\n }\n}" + source: "package main\n\nimport(\n\t\"context\"\n\t\"os\"\n\tapiclientgo \"github.com/gleanwork/api-client-go\"\n\t\"github.com/gleanwork/api-client-go/types\"\n\t\"github.com/gleanwork/api-client-go/models/components\"\n\t\"log\"\n)\n\nfunc main() {\n ctx := context.Background()\n\n s := apiclientgo.New(\n apiclientgo.WithSecurity(os.Getenv(\"GLEAN_API_TOKEN\")),\n apiclientgo.WithInstance(os.Getenv(\"GLEAN_INSTANCE\")),\n )\n\n res, err := s.Client.Announcements.Create(ctx, components.CreateAnnouncementRequest{\n StartTime: types.MustTimeFromString(\"2023-05-01T12:02:10.816Z\"),\n EndTime: types.MustTimeFromString(\"2024-03-17T14:19:30.278Z\"),\n Title: \"\",\n Body: &components.StructuredText{\n Text: \"From https://en.wikipedia.org/wiki/Diffuse_sky_radiation, the sky is blue because blue light is more strongly scattered than longer-wavelength light.\",\n StructuredList: []components.StructuredTextItem{\n components.StructuredTextItem{\n Link: apiclientgo.String(\"https://en.wikipedia.org/wiki/Diffuse_sky_radiation\"),\n Document: &components.Document{\n Metadata: &components.DocumentMetadata{\n Datasource: apiclientgo.String(\"datasource\"),\n ObjectType: apiclientgo.String(\"Feature Request\"),\n Container: apiclientgo.String(\"container\"),\n ParentID: apiclientgo.String(\"JIRA_EN-1337\"),\n MimeType: apiclientgo.String(\"mimeType\"),\n DocumentID: apiclientgo.String(\"documentId\"),\n CreateTime: types.MustNewTimeFromString(\"2000-01-23T04:56:07.000Z\"),\n UpdateTime: types.MustNewTimeFromString(\"2000-01-23T04:56:07.000Z\"),\n Author: &components.Person{\n Name: \"name\",\n ObfuscatedID: \"\",\n },\n Components: []string{\n \"Backend\",\n \"Networking\",\n },\n Status: apiclientgo.String(\"[\\\"Done\\\"]\"),\n CustomData: map[string]components.CustomDataValue{\n \"someCustomField\": components.CustomDataValue{},\n },\n },\n },\n Text: apiclientgo.String(\"Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue.\"),\n StructuredResult: &components.StructuredResult{\n Document: &components.Document{\n Metadata: &components.DocumentMetadata{\n Datasource: apiclientgo.String(\"datasource\"),\n ObjectType: apiclientgo.String(\"Feature Request\"),\n Container: apiclientgo.String(\"container\"),\n ParentID: apiclientgo.String(\"JIRA_EN-1337\"),\n MimeType: apiclientgo.String(\"mimeType\"),\n DocumentID: apiclientgo.String(\"documentId\"),\n CreateTime: types.MustNewTimeFromString(\"2000-01-23T04:56:07.000Z\"),\n UpdateTime: types.MustNewTimeFromString(\"2000-01-23T04:56:07.000Z\"),\n Author: &components.Person{\n Name: \"name\",\n ObfuscatedID: \"\",\n },\n Components: []string{\n \"Backend\",\n \"Networking\",\n },\n Status: apiclientgo.String(\"[\\\"Done\\\"]\"),\n CustomData: map[string]components.CustomDataValue{\n \"someCustomField\": components.CustomDataValue{},\n },\n },\n },\n Person: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n Customer: &components.Customer{\n ID: \"\",\n Company: components.Company{\n Name: \"\",\n Location: apiclientgo.String(\"New York City\"),\n Industry: apiclientgo.String(\"Finances\"),\n About: apiclientgo.String(\"Financial, software, data, and media company headquartered in Midtown Manhattan, New York City\"),\n },\n Poc: []components.Person{\n components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n },\n MergedCustomers: []components.Customer{\n components.Customer{\n ID: \"\",\n Company: components.Company{\n Name: \"\",\n Location: apiclientgo.String(\"New York City\"),\n Industry: apiclientgo.String(\"Finances\"),\n About: apiclientgo.String(\"Financial, software, data, and media company headquartered in Midtown Manhattan, New York City\"),\n },\n Notes: apiclientgo.String(\"CIO is interested in trying out the product.\"),\n },\n components.Customer{\n ID: \"\",\n Company: components.Company{\n Name: \"\",\n Location: apiclientgo.String(\"New York City\"),\n Industry: apiclientgo.String(\"Finances\"),\n About: apiclientgo.String(\"Financial, software, data, and media company headquartered in Midtown Manhattan, New York City\"),\n },\n Notes: apiclientgo.String(\"CIO is interested in trying out the product.\"),\n },\n components.Customer{\n ID: \"\",\n Company: components.Company{\n Name: \"\",\n Location: apiclientgo.String(\"New York City\"),\n Industry: apiclientgo.String(\"Finances\"),\n About: apiclientgo.String(\"Financial, software, data, and media company headquartered in Midtown Manhattan, New York City\"),\n },\n Notes: apiclientgo.String(\"CIO is interested in trying out the product.\"),\n },\n },\n Notes: apiclientgo.String(\"CIO is interested in trying out the product.\"),\n },\n Team: &components.Team{\n ID: \"\",\n Name: \"\",\n Members: []components.PersonToTeamRelationship{\n components.PersonToTeamRelationship{\n Person: components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n },\n components.PersonToTeamRelationship{\n Person: components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n },\n },\n CustomFields: []components.CustomFieldData{\n components.CustomFieldData{\n Label: \"\",\n Values: []components.CustomFieldValue{\n components.CreateCustomFieldValueCustomFieldValuePerson(\n components.CustomFieldValuePerson{\n Person: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n },\n ),\n components.CreateCustomFieldValueCustomFieldValuePerson(\n components.CustomFieldValuePerson{\n Person: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n },\n ),\n components.CreateCustomFieldValueCustomFieldValuePerson(\n components.CustomFieldValuePerson{\n Person: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n },\n ),\n },\n },\n components.CustomFieldData{\n Label: \"\",\n Values: []components.CustomFieldValue{\n components.CreateCustomFieldValueCustomFieldValuePerson(\n components.CustomFieldValuePerson{\n Person: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n },\n ),\n components.CreateCustomFieldValueCustomFieldValuePerson(\n components.CustomFieldValuePerson{\n Person: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n },\n ),\n components.CreateCustomFieldValueCustomFieldValuePerson(\n components.CustomFieldValuePerson{\n Person: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n },\n ),\n },\n },\n components.CustomFieldData{\n Label: \"\",\n Values: []components.CustomFieldValue{\n components.CreateCustomFieldValueCustomFieldValuePerson(\n components.CustomFieldValuePerson{\n Person: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n },\n ),\n components.CreateCustomFieldValueCustomFieldValuePerson(\n components.CustomFieldValuePerson{\n Person: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n },\n ),\n components.CreateCustomFieldValueCustomFieldValuePerson(\n components.CustomFieldValuePerson{\n Person: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n },\n ),\n },\n },\n },\n DatasourceProfiles: []components.DatasourceProfile{\n components.DatasourceProfile{\n Datasource: \"github\",\n Handle: \"\",\n },\n components.DatasourceProfile{\n Datasource: \"github\",\n Handle: \"\",\n },\n components.DatasourceProfile{\n Datasource: \"github\",\n Handle: \"\",\n },\n },\n },\n CustomEntity: &components.CustomEntity{\n Roles: []components.UserRoleSpecification{\n components.UserRoleSpecification{\n Person: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n Role: components.UserRoleEditor,\n },\n components.UserRoleSpecification{\n Person: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n Role: components.UserRoleEditor,\n },\n },\n },\n Answer: &components.Answer{\n ID: 3,\n DocID: apiclientgo.String(\"ANSWERS_answer_3\"),\n Question: apiclientgo.String(\"Why is the sky blue?\"),\n BodyText: apiclientgo.String(\"From https://en.wikipedia.org/wiki/Diffuse_sky_radiation, the sky is blue because blue light is more strongly scattered than longer-wavelength light.\"),\n AudienceFilters: []components.FacetFilter{\n components.FacetFilter{\n FieldName: apiclientgo.String(\"type\"),\n Values: []components.FacetFilterValue{\n components.FacetFilterValue{\n Value: apiclientgo.String(\"Spreadsheet\"),\n RelationType: components.RelationTypeEquals.ToPointer(),\n },\n components.FacetFilterValue{\n Value: apiclientgo.String(\"Presentation\"),\n RelationType: components.RelationTypeEquals.ToPointer(),\n },\n },\n },\n },\n AddedRoles: []components.UserRoleSpecification{\n components.UserRoleSpecification{\n Person: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n Role: components.UserRoleEditor,\n },\n components.UserRoleSpecification{\n Person: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n Role: components.UserRoleEditor,\n },\n components.UserRoleSpecification{\n Person: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n Role: components.UserRoleEditor,\n },\n },\n RemovedRoles: []components.UserRoleSpecification{\n components.UserRoleSpecification{\n Person: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n Role: components.UserRoleVerifier,\n },\n components.UserRoleSpecification{\n Person: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n Role: components.UserRoleVerifier,\n },\n },\n Likes: &components.AnswerLikes{\n LikedBy: []components.AnswerLike{\n components.AnswerLike{\n User: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n },\n components.AnswerLike{\n User: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n },\n components.AnswerLike{\n User: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n },\n },\n LikedByUser: false,\n NumLikes: 716571,\n },\n Author: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n UpdatedBy: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n Verification: &components.Verification{\n State: components.StateUnverified,\n Metadata: &components.VerificationMetadata{\n LastVerifier: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n Document: &components.Document{\n Metadata: &components.DocumentMetadata{\n Datasource: apiclientgo.String(\"datasource\"),\n ObjectType: apiclientgo.String(\"Feature Request\"),\n Container: apiclientgo.String(\"container\"),\n ParentID: apiclientgo.String(\"JIRA_EN-1337\"),\n MimeType: apiclientgo.String(\"mimeType\"),\n DocumentID: apiclientgo.String(\"documentId\"),\n CreateTime: types.MustNewTimeFromString(\"2000-01-23T04:56:07.000Z\"),\n UpdateTime: types.MustNewTimeFromString(\"2000-01-23T04:56:07.000Z\"),\n Author: &components.Person{\n Name: \"name\",\n ObfuscatedID: \"\",\n },\n Components: []string{\n \"Backend\",\n \"Networking\",\n },\n Status: apiclientgo.String(\"[\\\"Done\\\"]\"),\n CustomData: map[string]components.CustomDataValue{\n \"someCustomField\": components.CustomDataValue{},\n },\n },\n },\n Reminders: []components.Reminder{\n components.Reminder{\n Assignee: components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n Requestor: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n RemindAt: 852101,\n },\n },\n LastReminder: &components.Reminder{\n Assignee: components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n Requestor: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n RemindAt: 829206,\n },\n CandidateVerifiers: []components.Person{\n components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n },\n },\n },\n Board: &components.AnswerBoard{\n Name: \"\",\n Description: \"pronoun whether likely likewise negative possession ape furthermore\",\n AudienceFilters: []components.FacetFilter{\n components.FacetFilter{\n FieldName: apiclientgo.String(\"type\"),\n Values: []components.FacetFilterValue{\n components.FacetFilterValue{\n Value: apiclientgo.String(\"Spreadsheet\"),\n RelationType: components.RelationTypeEquals.ToPointer(),\n },\n components.FacetFilterValue{\n Value: apiclientgo.String(\"Presentation\"),\n RelationType: components.RelationTypeEquals.ToPointer(),\n },\n },\n },\n },\n ID: 856490,\n Creator: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n UpdatedBy: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n },\n Collections: []components.Collection{\n components.Collection{\n Name: \"\",\n Description: \"tedious given quixotic\",\n AudienceFilters: []components.FacetFilter{\n components.FacetFilter{\n FieldName: apiclientgo.String(\"type\"),\n Values: []components.FacetFilterValue{\n components.FacetFilterValue{\n Value: apiclientgo.String(\"Spreadsheet\"),\n RelationType: components.RelationTypeEquals.ToPointer(),\n },\n components.FacetFilterValue{\n Value: apiclientgo.String(\"Presentation\"),\n RelationType: components.RelationTypeEquals.ToPointer(),\n },\n },\n },\n },\n ID: 590805,\n Creator: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n UpdatedBy: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n Items: []components.CollectionItem{\n components.CollectionItem{\n CollectionID: 913703,\n CreatedBy: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n Document: &components.Document{\n Metadata: &components.DocumentMetadata{\n Datasource: apiclientgo.String(\"datasource\"),\n ObjectType: apiclientgo.String(\"Feature Request\"),\n Container: apiclientgo.String(\"container\"),\n ParentID: apiclientgo.String(\"JIRA_EN-1337\"),\n MimeType: apiclientgo.String(\"mimeType\"),\n DocumentID: apiclientgo.String(\"documentId\"),\n CreateTime: types.MustNewTimeFromString(\"2000-01-23T04:56:07.000Z\"),\n UpdateTime: types.MustNewTimeFromString(\"2000-01-23T04:56:07.000Z\"),\n Author: &components.Person{\n Name: \"name\",\n ObfuscatedID: \"\",\n },\n Components: []string{\n \"Backend\",\n \"Networking\",\n },\n Status: apiclientgo.String(\"[\\\"Done\\\"]\"),\n CustomData: map[string]components.CustomDataValue{\n \"someCustomField\": components.CustomDataValue{},\n },\n },\n },\n Shortcut: &components.Shortcut{\n InputAlias: \"\",\n CreatedBy: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n UpdatedBy: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n DestinationDocument: &components.Document{\n Metadata: &components.DocumentMetadata{\n Datasource: apiclientgo.String(\"datasource\"),\n ObjectType: apiclientgo.String(\"Feature Request\"),\n Container: apiclientgo.String(\"container\"),\n ParentID: apiclientgo.String(\"JIRA_EN-1337\"),\n MimeType: apiclientgo.String(\"mimeType\"),\n DocumentID: apiclientgo.String(\"documentId\"),\n CreateTime: types.MustNewTimeFromString(\"2000-01-23T04:56:07.000Z\"),\n UpdateTime: types.MustNewTimeFromString(\"2000-01-23T04:56:07.000Z\"),\n Author: &components.Person{\n Name: \"name\",\n ObfuscatedID: \"\",\n },\n Components: []string{\n \"Backend\",\n \"Networking\",\n },\n Status: apiclientgo.String(\"[\\\"Done\\\"]\"),\n CustomData: map[string]components.CustomDataValue{\n \"someCustomField\": components.CustomDataValue{},\n },\n },\n },\n },\n ItemType: components.CollectionItemItemTypeCollection,\n },\n },\n Children: []components.Collection{\n components.Collection{\n Name: \"\",\n Description: \"whoever vice reassuringly boo fess\",\n AudienceFilters: []components.FacetFilter{\n components.FacetFilter{\n FieldName: apiclientgo.String(\"type\"),\n Values: []components.FacetFilterValue{\n components.FacetFilterValue{\n Value: apiclientgo.String(\"Spreadsheet\"),\n RelationType: components.RelationTypeEquals.ToPointer(),\n },\n components.FacetFilterValue{\n Value: apiclientgo.String(\"Presentation\"),\n RelationType: components.RelationTypeEquals.ToPointer(),\n },\n },\n },\n },\n ID: 953002,\n Creator: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n UpdatedBy: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n },\n components.Collection{\n Name: \"\",\n Description: \"whoever vice reassuringly boo fess\",\n AudienceFilters: []components.FacetFilter{\n components.FacetFilter{\n FieldName: apiclientgo.String(\"type\"),\n Values: []components.FacetFilterValue{\n components.FacetFilterValue{\n Value: apiclientgo.String(\"Spreadsheet\"),\n RelationType: components.RelationTypeEquals.ToPointer(),\n },\n components.FacetFilterValue{\n Value: apiclientgo.String(\"Presentation\"),\n RelationType: components.RelationTypeEquals.ToPointer(),\n },\n },\n },\n },\n ID: 953002,\n Creator: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n UpdatedBy: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n },\n components.Collection{\n Name: \"\",\n Description: \"whoever vice reassuringly boo fess\",\n AudienceFilters: []components.FacetFilter{\n components.FacetFilter{\n FieldName: apiclientgo.String(\"type\"),\n Values: []components.FacetFilterValue{\n components.FacetFilterValue{\n Value: apiclientgo.String(\"Spreadsheet\"),\n RelationType: components.RelationTypeEquals.ToPointer(),\n },\n components.FacetFilterValue{\n Value: apiclientgo.String(\"Presentation\"),\n RelationType: components.RelationTypeEquals.ToPointer(),\n },\n },\n },\n },\n ID: 953002,\n Creator: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n UpdatedBy: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n },\n },\n },\n components.Collection{\n Name: \"\",\n Description: \"tedious given quixotic\",\n AudienceFilters: []components.FacetFilter{\n components.FacetFilter{\n FieldName: apiclientgo.String(\"type\"),\n Values: []components.FacetFilterValue{\n components.FacetFilterValue{\n Value: apiclientgo.String(\"Spreadsheet\"),\n RelationType: components.RelationTypeEquals.ToPointer(),\n },\n components.FacetFilterValue{\n Value: apiclientgo.String(\"Presentation\"),\n RelationType: components.RelationTypeEquals.ToPointer(),\n },\n },\n },\n },\n ID: 590805,\n Creator: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n UpdatedBy: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n Items: []components.CollectionItem{\n components.CollectionItem{\n CollectionID: 913703,\n CreatedBy: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n Document: &components.Document{\n Metadata: &components.DocumentMetadata{\n Datasource: apiclientgo.String(\"datasource\"),\n ObjectType: apiclientgo.String(\"Feature Request\"),\n Container: apiclientgo.String(\"container\"),\n ParentID: apiclientgo.String(\"JIRA_EN-1337\"),\n MimeType: apiclientgo.String(\"mimeType\"),\n DocumentID: apiclientgo.String(\"documentId\"),\n CreateTime: types.MustNewTimeFromString(\"2000-01-23T04:56:07.000Z\"),\n UpdateTime: types.MustNewTimeFromString(\"2000-01-23T04:56:07.000Z\"),\n Author: &components.Person{\n Name: \"name\",\n ObfuscatedID: \"\",\n },\n Components: []string{\n \"Backend\",\n \"Networking\",\n },\n Status: apiclientgo.String(\"[\\\"Done\\\"]\"),\n CustomData: map[string]components.CustomDataValue{\n \"someCustomField\": components.CustomDataValue{},\n },\n },\n },\n Shortcut: &components.Shortcut{\n InputAlias: \"\",\n CreatedBy: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n UpdatedBy: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n DestinationDocument: &components.Document{\n Metadata: &components.DocumentMetadata{\n Datasource: apiclientgo.String(\"datasource\"),\n ObjectType: apiclientgo.String(\"Feature Request\"),\n Container: apiclientgo.String(\"container\"),\n ParentID: apiclientgo.String(\"JIRA_EN-1337\"),\n MimeType: apiclientgo.String(\"mimeType\"),\n DocumentID: apiclientgo.String(\"documentId\"),\n CreateTime: types.MustNewTimeFromString(\"2000-01-23T04:56:07.000Z\"),\n UpdateTime: types.MustNewTimeFromString(\"2000-01-23T04:56:07.000Z\"),\n Author: &components.Person{\n Name: \"name\",\n ObfuscatedID: \"\",\n },\n Components: []string{\n \"Backend\",\n \"Networking\",\n },\n Status: apiclientgo.String(\"[\\\"Done\\\"]\"),\n CustomData: map[string]components.CustomDataValue{\n \"someCustomField\": components.CustomDataValue{},\n },\n },\n },\n },\n ItemType: components.CollectionItemItemTypeCollection,\n },\n },\n Children: []components.Collection{\n components.Collection{\n Name: \"\",\n Description: \"whoever vice reassuringly boo fess\",\n AudienceFilters: []components.FacetFilter{\n components.FacetFilter{\n FieldName: apiclientgo.String(\"type\"),\n Values: []components.FacetFilterValue{\n components.FacetFilterValue{\n Value: apiclientgo.String(\"Spreadsheet\"),\n RelationType: components.RelationTypeEquals.ToPointer(),\n },\n components.FacetFilterValue{\n Value: apiclientgo.String(\"Presentation\"),\n RelationType: components.RelationTypeEquals.ToPointer(),\n },\n },\n },\n },\n ID: 953002,\n Creator: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n UpdatedBy: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n },\n components.Collection{\n Name: \"\",\n Description: \"whoever vice reassuringly boo fess\",\n AudienceFilters: []components.FacetFilter{\n components.FacetFilter{\n FieldName: apiclientgo.String(\"type\"),\n Values: []components.FacetFilterValue{\n components.FacetFilterValue{\n Value: apiclientgo.String(\"Spreadsheet\"),\n RelationType: components.RelationTypeEquals.ToPointer(),\n },\n components.FacetFilterValue{\n Value: apiclientgo.String(\"Presentation\"),\n RelationType: components.RelationTypeEquals.ToPointer(),\n },\n },\n },\n },\n ID: 953002,\n Creator: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n UpdatedBy: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n },\n components.Collection{\n Name: \"\",\n Description: \"whoever vice reassuringly boo fess\",\n AudienceFilters: []components.FacetFilter{\n components.FacetFilter{\n FieldName: apiclientgo.String(\"type\"),\n Values: []components.FacetFilterValue{\n components.FacetFilterValue{\n Value: apiclientgo.String(\"Spreadsheet\"),\n RelationType: components.RelationTypeEquals.ToPointer(),\n },\n components.FacetFilterValue{\n Value: apiclientgo.String(\"Presentation\"),\n RelationType: components.RelationTypeEquals.ToPointer(),\n },\n },\n },\n },\n ID: 953002,\n Creator: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n UpdatedBy: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n },\n },\n },\n components.Collection{\n Name: \"\",\n Description: \"tedious given quixotic\",\n AudienceFilters: []components.FacetFilter{\n components.FacetFilter{\n FieldName: apiclientgo.String(\"type\"),\n Values: []components.FacetFilterValue{\n components.FacetFilterValue{\n Value: apiclientgo.String(\"Spreadsheet\"),\n RelationType: components.RelationTypeEquals.ToPointer(),\n },\n components.FacetFilterValue{\n Value: apiclientgo.String(\"Presentation\"),\n RelationType: components.RelationTypeEquals.ToPointer(),\n },\n },\n },\n },\n ID: 590805,\n Creator: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n UpdatedBy: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n Items: []components.CollectionItem{\n components.CollectionItem{\n CollectionID: 913703,\n CreatedBy: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n Document: &components.Document{\n Metadata: &components.DocumentMetadata{\n Datasource: apiclientgo.String(\"datasource\"),\n ObjectType: apiclientgo.String(\"Feature Request\"),\n Container: apiclientgo.String(\"container\"),\n ParentID: apiclientgo.String(\"JIRA_EN-1337\"),\n MimeType: apiclientgo.String(\"mimeType\"),\n DocumentID: apiclientgo.String(\"documentId\"),\n CreateTime: types.MustNewTimeFromString(\"2000-01-23T04:56:07.000Z\"),\n UpdateTime: types.MustNewTimeFromString(\"2000-01-23T04:56:07.000Z\"),\n Author: &components.Person{\n Name: \"name\",\n ObfuscatedID: \"\",\n },\n Components: []string{\n \"Backend\",\n \"Networking\",\n },\n Status: apiclientgo.String(\"[\\\"Done\\\"]\"),\n CustomData: map[string]components.CustomDataValue{\n \"someCustomField\": components.CustomDataValue{},\n },\n },\n },\n Shortcut: &components.Shortcut{\n InputAlias: \"\",\n CreatedBy: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n UpdatedBy: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n DestinationDocument: &components.Document{\n Metadata: &components.DocumentMetadata{\n Datasource: apiclientgo.String(\"datasource\"),\n ObjectType: apiclientgo.String(\"Feature Request\"),\n Container: apiclientgo.String(\"container\"),\n ParentID: apiclientgo.String(\"JIRA_EN-1337\"),\n MimeType: apiclientgo.String(\"mimeType\"),\n DocumentID: apiclientgo.String(\"documentId\"),\n CreateTime: types.MustNewTimeFromString(\"2000-01-23T04:56:07.000Z\"),\n UpdateTime: types.MustNewTimeFromString(\"2000-01-23T04:56:07.000Z\"),\n Author: &components.Person{\n Name: \"name\",\n ObfuscatedID: \"\",\n },\n Components: []string{\n \"Backend\",\n \"Networking\",\n },\n Status: apiclientgo.String(\"[\\\"Done\\\"]\"),\n CustomData: map[string]components.CustomDataValue{\n \"someCustomField\": components.CustomDataValue{},\n },\n },\n },\n },\n ItemType: components.CollectionItemItemTypeCollection,\n },\n },\n Children: []components.Collection{\n components.Collection{\n Name: \"\",\n Description: \"whoever vice reassuringly boo fess\",\n AudienceFilters: []components.FacetFilter{\n components.FacetFilter{\n FieldName: apiclientgo.String(\"type\"),\n Values: []components.FacetFilterValue{\n components.FacetFilterValue{\n Value: apiclientgo.String(\"Spreadsheet\"),\n RelationType: components.RelationTypeEquals.ToPointer(),\n },\n components.FacetFilterValue{\n Value: apiclientgo.String(\"Presentation\"),\n RelationType: components.RelationTypeEquals.ToPointer(),\n },\n },\n },\n },\n ID: 953002,\n Creator: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n UpdatedBy: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n },\n components.Collection{\n Name: \"\",\n Description: \"whoever vice reassuringly boo fess\",\n AudienceFilters: []components.FacetFilter{\n components.FacetFilter{\n FieldName: apiclientgo.String(\"type\"),\n Values: []components.FacetFilterValue{\n components.FacetFilterValue{\n Value: apiclientgo.String(\"Spreadsheet\"),\n RelationType: components.RelationTypeEquals.ToPointer(),\n },\n components.FacetFilterValue{\n Value: apiclientgo.String(\"Presentation\"),\n RelationType: components.RelationTypeEquals.ToPointer(),\n },\n },\n },\n },\n ID: 953002,\n Creator: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n UpdatedBy: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n },\n components.Collection{\n Name: \"\",\n Description: \"whoever vice reassuringly boo fess\",\n AudienceFilters: []components.FacetFilter{\n components.FacetFilter{\n FieldName: apiclientgo.String(\"type\"),\n Values: []components.FacetFilterValue{\n components.FacetFilterValue{\n Value: apiclientgo.String(\"Spreadsheet\"),\n RelationType: components.RelationTypeEquals.ToPointer(),\n },\n components.FacetFilterValue{\n Value: apiclientgo.String(\"Presentation\"),\n RelationType: components.RelationTypeEquals.ToPointer(),\n },\n },\n },\n },\n ID: 953002,\n Creator: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n UpdatedBy: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n },\n },\n },\n },\n SourceDocument: &components.Document{\n Metadata: &components.DocumentMetadata{\n Datasource: apiclientgo.String(\"datasource\"),\n ObjectType: apiclientgo.String(\"Feature Request\"),\n Container: apiclientgo.String(\"container\"),\n ParentID: apiclientgo.String(\"JIRA_EN-1337\"),\n MimeType: apiclientgo.String(\"mimeType\"),\n DocumentID: apiclientgo.String(\"documentId\"),\n CreateTime: types.MustNewTimeFromString(\"2000-01-23T04:56:07.000Z\"),\n UpdateTime: types.MustNewTimeFromString(\"2000-01-23T04:56:07.000Z\"),\n Author: &components.Person{\n Name: \"name\",\n ObfuscatedID: \"\",\n },\n Components: []string{\n \"Backend\",\n \"Networking\",\n },\n Status: apiclientgo.String(\"[\\\"Done\\\"]\"),\n CustomData: map[string]components.CustomDataValue{\n \"someCustomField\": components.CustomDataValue{},\n },\n },\n },\n },\n ExtractedQnA: &components.ExtractedQnA{\n QuestionResult: &components.SearchResult{\n Title: apiclientgo.String(\"title\"),\n URL: \"https://example.com/foo/bar\",\n NativeAppURL: apiclientgo.String(\"slack://foo/bar\"),\n Snippets: []components.SearchResultSnippet{\n components.SearchResultSnippet{\n Snippet: \"snippet\",\n MimeType: apiclientgo.String(\"mimeType\"),\n },\n },\n MustIncludeSuggestions: &components.QuerySuggestionList{},\n },\n },\n Meeting: &components.Meeting{\n Attendees: &components.CalendarAttendees{\n People: []components.CalendarAttendee{\n components.CalendarAttendee{\n Person: components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n GroupAttendees: []components.CalendarAttendee{\n components.CalendarAttendee{\n Person: components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n },\n },\n },\n },\n },\n },\n Collection: &components.Collection{\n Name: \"\",\n Description: \"fortunate ha gazebo\",\n AudienceFilters: []components.FacetFilter{\n components.FacetFilter{\n FieldName: apiclientgo.String(\"type\"),\n Values: []components.FacetFilterValue{\n components.FacetFilterValue{\n Value: apiclientgo.String(\"Spreadsheet\"),\n RelationType: components.RelationTypeEquals.ToPointer(),\n },\n components.FacetFilterValue{\n Value: apiclientgo.String(\"Presentation\"),\n RelationType: components.RelationTypeEquals.ToPointer(),\n },\n },\n },\n },\n ID: 437915,\n Creator: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n UpdatedBy: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n },\n AnswerBoard: &components.AnswerBoard{\n Name: \"\",\n Description: \"grouper amidst pulse fowl swine that following adolescent yippee celsius\",\n AudienceFilters: []components.FacetFilter{\n components.FacetFilter{\n FieldName: apiclientgo.String(\"type\"),\n Values: []components.FacetFilterValue{\n components.FacetFilterValue{\n Value: apiclientgo.String(\"Spreadsheet\"),\n RelationType: components.RelationTypeEquals.ToPointer(),\n },\n components.FacetFilterValue{\n Value: apiclientgo.String(\"Presentation\"),\n RelationType: components.RelationTypeEquals.ToPointer(),\n },\n },\n },\n },\n ID: 751446,\n Creator: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n UpdatedBy: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n },\n Code: &components.Code{\n RepoName: apiclientgo.String(\"scio\"),\n FileName: apiclientgo.String(\"README.md\"),\n },\n Shortcut: &components.Shortcut{\n InputAlias: \"\",\n CreatedBy: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n UpdatedBy: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n DestinationDocument: &components.Document{\n Metadata: &components.DocumentMetadata{\n Datasource: apiclientgo.String(\"datasource\"),\n ObjectType: apiclientgo.String(\"Feature Request\"),\n Container: apiclientgo.String(\"container\"),\n ParentID: apiclientgo.String(\"JIRA_EN-1337\"),\n MimeType: apiclientgo.String(\"mimeType\"),\n DocumentID: apiclientgo.String(\"documentId\"),\n CreateTime: types.MustNewTimeFromString(\"2000-01-23T04:56:07.000Z\"),\n UpdateTime: types.MustNewTimeFromString(\"2000-01-23T04:56:07.000Z\"),\n Author: &components.Person{\n Name: \"name\",\n ObfuscatedID: \"\",\n },\n Components: []string{\n \"Backend\",\n \"Networking\",\n },\n Status: apiclientgo.String(\"[\\\"Done\\\"]\"),\n CustomData: map[string]components.CustomDataValue{\n \"someCustomField\": components.CustomDataValue{},\n },\n },\n },\n },\n QuerySuggestions: &components.QuerySuggestionList{\n Suggestions: []components.QuerySuggestion{\n components.QuerySuggestion{\n Query: \"app:github type:pull author:mortimer\",\n Label: apiclientgo.String(\"Mortimer's PRs\"),\n Datasource: apiclientgo.String(\"github\"),\n },\n },\n Person: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n },\n RelatedDocuments: []components.RelatedDocuments{\n components.RelatedDocuments{\n QuerySuggestion: &components.QuerySuggestion{\n Query: \"app:github type:pull author:mortimer\",\n Label: apiclientgo.String(\"Mortimer's PRs\"),\n Datasource: apiclientgo.String(\"github\"),\n },\n Results: []components.SearchResult{\n components.SearchResult{\n Title: apiclientgo.String(\"title\"),\n URL: \"https://example.com/foo/bar\",\n NativeAppURL: apiclientgo.String(\"slack://foo/bar\"),\n Snippets: []components.SearchResultSnippet{\n components.SearchResultSnippet{\n Snippet: \"snippet\",\n MimeType: apiclientgo.String(\"mimeType\"),\n },\n },\n MustIncludeSuggestions: &components.QuerySuggestionList{},\n },\n },\n },\n components.RelatedDocuments{\n QuerySuggestion: &components.QuerySuggestion{\n Query: \"app:github type:pull author:mortimer\",\n Label: apiclientgo.String(\"Mortimer's PRs\"),\n Datasource: apiclientgo.String(\"github\"),\n },\n Results: []components.SearchResult{\n components.SearchResult{\n Title: apiclientgo.String(\"title\"),\n URL: \"https://example.com/foo/bar\",\n NativeAppURL: apiclientgo.String(\"slack://foo/bar\"),\n Snippets: []components.SearchResultSnippet{\n components.SearchResultSnippet{\n Snippet: \"snippet\",\n MimeType: apiclientgo.String(\"mimeType\"),\n },\n },\n MustIncludeSuggestions: &components.QuerySuggestionList{},\n },\n },\n },\n components.RelatedDocuments{\n QuerySuggestion: &components.QuerySuggestion{\n Query: \"app:github type:pull author:mortimer\",\n Label: apiclientgo.String(\"Mortimer's PRs\"),\n Datasource: apiclientgo.String(\"github\"),\n },\n Results: []components.SearchResult{\n components.SearchResult{\n Title: apiclientgo.String(\"title\"),\n URL: \"https://example.com/foo/bar\",\n NativeAppURL: apiclientgo.String(\"slack://foo/bar\"),\n Snippets: []components.SearchResultSnippet{\n components.SearchResultSnippet{\n Snippet: \"snippet\",\n MimeType: apiclientgo.String(\"mimeType\"),\n },\n },\n MustIncludeSuggestions: &components.QuerySuggestionList{},\n },\n },\n },\n },\n RelatedQuestion: &components.RelatedQuestion{\n Ranges: []components.TextRange{\n components.TextRange{\n StartIndex: 913402,\n Document: &components.Document{\n Metadata: &components.DocumentMetadata{\n Datasource: apiclientgo.String(\"datasource\"),\n ObjectType: apiclientgo.String(\"Feature Request\"),\n Container: apiclientgo.String(\"container\"),\n ParentID: apiclientgo.String(\"JIRA_EN-1337\"),\n MimeType: apiclientgo.String(\"mimeType\"),\n DocumentID: apiclientgo.String(\"documentId\"),\n CreateTime: types.MustNewTimeFromString(\"2000-01-23T04:56:07.000Z\"),\n UpdateTime: types.MustNewTimeFromString(\"2000-01-23T04:56:07.000Z\"),\n Author: &components.Person{\n Name: \"name\",\n ObfuscatedID: \"\",\n },\n Components: []string{\n \"Backend\",\n \"Networking\",\n },\n Status: apiclientgo.String(\"[\\\"Done\\\"]\"),\n CustomData: map[string]components.CustomDataValue{\n \"someCustomField\": components.CustomDataValue{},\n },\n },\n },\n },\n components.TextRange{\n StartIndex: 913402,\n Document: &components.Document{\n Metadata: &components.DocumentMetadata{\n Datasource: apiclientgo.String(\"datasource\"),\n ObjectType: apiclientgo.String(\"Feature Request\"),\n Container: apiclientgo.String(\"container\"),\n ParentID: apiclientgo.String(\"JIRA_EN-1337\"),\n MimeType: apiclientgo.String(\"mimeType\"),\n DocumentID: apiclientgo.String(\"documentId\"),\n CreateTime: types.MustNewTimeFromString(\"2000-01-23T04:56:07.000Z\"),\n UpdateTime: types.MustNewTimeFromString(\"2000-01-23T04:56:07.000Z\"),\n Author: &components.Person{\n Name: \"name\",\n ObfuscatedID: \"\",\n },\n Components: []string{\n \"Backend\",\n \"Networking\",\n },\n Status: apiclientgo.String(\"[\\\"Done\\\"]\"),\n CustomData: map[string]components.CustomDataValue{\n \"someCustomField\": components.CustomDataValue{},\n },\n },\n },\n },\n components.TextRange{\n StartIndex: 913402,\n Document: &components.Document{\n Metadata: &components.DocumentMetadata{\n Datasource: apiclientgo.String(\"datasource\"),\n ObjectType: apiclientgo.String(\"Feature Request\"),\n Container: apiclientgo.String(\"container\"),\n ParentID: apiclientgo.String(\"JIRA_EN-1337\"),\n MimeType: apiclientgo.String(\"mimeType\"),\n DocumentID: apiclientgo.String(\"documentId\"),\n CreateTime: types.MustNewTimeFromString(\"2000-01-23T04:56:07.000Z\"),\n UpdateTime: types.MustNewTimeFromString(\"2000-01-23T04:56:07.000Z\"),\n Author: &components.Person{\n Name: \"name\",\n ObfuscatedID: \"\",\n },\n Components: []string{\n \"Backend\",\n \"Networking\",\n },\n Status: apiclientgo.String(\"[\\\"Done\\\"]\"),\n CustomData: map[string]components.CustomDataValue{\n \"someCustomField\": components.CustomDataValue{},\n },\n },\n },\n },\n },\n },\n },\n },\n components.StructuredTextItem{\n Link: apiclientgo.String(\"https://en.wikipedia.org/wiki/Diffuse_sky_radiation\"),\n Document: &components.Document{\n Metadata: &components.DocumentMetadata{\n Datasource: apiclientgo.String(\"datasource\"),\n ObjectType: apiclientgo.String(\"Feature Request\"),\n Container: apiclientgo.String(\"container\"),\n ParentID: apiclientgo.String(\"JIRA_EN-1337\"),\n MimeType: apiclientgo.String(\"mimeType\"),\n DocumentID: apiclientgo.String(\"documentId\"),\n CreateTime: types.MustNewTimeFromString(\"2000-01-23T04:56:07.000Z\"),\n UpdateTime: types.MustNewTimeFromString(\"2000-01-23T04:56:07.000Z\"),\n Author: &components.Person{\n Name: \"name\",\n ObfuscatedID: \"\",\n },\n Components: []string{\n \"Backend\",\n \"Networking\",\n },\n Status: apiclientgo.String(\"[\\\"Done\\\"]\"),\n CustomData: map[string]components.CustomDataValue{\n \"someCustomField\": components.CustomDataValue{},\n },\n },\n },\n Text: apiclientgo.String(\"Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue.\"),\n StructuredResult: &components.StructuredResult{\n Document: &components.Document{\n Metadata: &components.DocumentMetadata{\n Datasource: apiclientgo.String(\"datasource\"),\n ObjectType: apiclientgo.String(\"Feature Request\"),\n Container: apiclientgo.String(\"container\"),\n ParentID: apiclientgo.String(\"JIRA_EN-1337\"),\n MimeType: apiclientgo.String(\"mimeType\"),\n DocumentID: apiclientgo.String(\"documentId\"),\n CreateTime: types.MustNewTimeFromString(\"2000-01-23T04:56:07.000Z\"),\n UpdateTime: types.MustNewTimeFromString(\"2000-01-23T04:56:07.000Z\"),\n Author: &components.Person{\n Name: \"name\",\n ObfuscatedID: \"\",\n },\n Components: []string{\n \"Backend\",\n \"Networking\",\n },\n Status: apiclientgo.String(\"[\\\"Done\\\"]\"),\n CustomData: map[string]components.CustomDataValue{\n \"someCustomField\": components.CustomDataValue{},\n },\n },\n },\n Person: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n Customer: &components.Customer{\n ID: \"\",\n Company: components.Company{\n Name: \"\",\n Location: apiclientgo.String(\"New York City\"),\n Industry: apiclientgo.String(\"Finances\"),\n About: apiclientgo.String(\"Financial, software, data, and media company headquartered in Midtown Manhattan, New York City\"),\n },\n Poc: []components.Person{\n components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n },\n MergedCustomers: []components.Customer{\n components.Customer{\n ID: \"\",\n Company: components.Company{\n Name: \"\",\n Location: apiclientgo.String(\"New York City\"),\n Industry: apiclientgo.String(\"Finances\"),\n About: apiclientgo.String(\"Financial, software, data, and media company headquartered in Midtown Manhattan, New York City\"),\n },\n Notes: apiclientgo.String(\"CIO is interested in trying out the product.\"),\n },\n components.Customer{\n ID: \"\",\n Company: components.Company{\n Name: \"\",\n Location: apiclientgo.String(\"New York City\"),\n Industry: apiclientgo.String(\"Finances\"),\n About: apiclientgo.String(\"Financial, software, data, and media company headquartered in Midtown Manhattan, New York City\"),\n },\n Notes: apiclientgo.String(\"CIO is interested in trying out the product.\"),\n },\n components.Customer{\n ID: \"\",\n Company: components.Company{\n Name: \"\",\n Location: apiclientgo.String(\"New York City\"),\n Industry: apiclientgo.String(\"Finances\"),\n About: apiclientgo.String(\"Financial, software, data, and media company headquartered in Midtown Manhattan, New York City\"),\n },\n Notes: apiclientgo.String(\"CIO is interested in trying out the product.\"),\n },\n },\n Notes: apiclientgo.String(\"CIO is interested in trying out the product.\"),\n },\n Team: &components.Team{\n ID: \"\",\n Name: \"\",\n Members: []components.PersonToTeamRelationship{\n components.PersonToTeamRelationship{\n Person: components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n },\n components.PersonToTeamRelationship{\n Person: components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n },\n },\n CustomFields: []components.CustomFieldData{\n components.CustomFieldData{\n Label: \"\",\n Values: []components.CustomFieldValue{\n components.CreateCustomFieldValueCustomFieldValuePerson(\n components.CustomFieldValuePerson{\n Person: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n },\n ),\n components.CreateCustomFieldValueCustomFieldValuePerson(\n components.CustomFieldValuePerson{\n Person: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n },\n ),\n components.CreateCustomFieldValueCustomFieldValuePerson(\n components.CustomFieldValuePerson{\n Person: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n },\n ),\n },\n },\n components.CustomFieldData{\n Label: \"\",\n Values: []components.CustomFieldValue{\n components.CreateCustomFieldValueCustomFieldValuePerson(\n components.CustomFieldValuePerson{\n Person: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n },\n ),\n components.CreateCustomFieldValueCustomFieldValuePerson(\n components.CustomFieldValuePerson{\n Person: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n },\n ),\n components.CreateCustomFieldValueCustomFieldValuePerson(\n components.CustomFieldValuePerson{\n Person: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n },\n ),\n },\n },\n components.CustomFieldData{\n Label: \"\",\n Values: []components.CustomFieldValue{\n components.CreateCustomFieldValueCustomFieldValuePerson(\n components.CustomFieldValuePerson{\n Person: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n },\n ),\n components.CreateCustomFieldValueCustomFieldValuePerson(\n components.CustomFieldValuePerson{\n Person: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n },\n ),\n components.CreateCustomFieldValueCustomFieldValuePerson(\n components.CustomFieldValuePerson{\n Person: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n },\n ),\n },\n },\n },\n DatasourceProfiles: []components.DatasourceProfile{\n components.DatasourceProfile{\n Datasource: \"github\",\n Handle: \"\",\n },\n components.DatasourceProfile{\n Datasource: \"github\",\n Handle: \"\",\n },\n components.DatasourceProfile{\n Datasource: \"github\",\n Handle: \"\",\n },\n },\n },\n CustomEntity: &components.CustomEntity{\n Roles: []components.UserRoleSpecification{\n components.UserRoleSpecification{\n Person: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n Role: components.UserRoleEditor,\n },\n components.UserRoleSpecification{\n Person: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n Role: components.UserRoleEditor,\n },\n },\n },\n Answer: &components.Answer{\n ID: 3,\n DocID: apiclientgo.String(\"ANSWERS_answer_3\"),\n Question: apiclientgo.String(\"Why is the sky blue?\"),\n BodyText: apiclientgo.String(\"From https://en.wikipedia.org/wiki/Diffuse_sky_radiation, the sky is blue because blue light is more strongly scattered than longer-wavelength light.\"),\n AudienceFilters: []components.FacetFilter{\n components.FacetFilter{\n FieldName: apiclientgo.String(\"type\"),\n Values: []components.FacetFilterValue{\n components.FacetFilterValue{\n Value: apiclientgo.String(\"Spreadsheet\"),\n RelationType: components.RelationTypeEquals.ToPointer(),\n },\n components.FacetFilterValue{\n Value: apiclientgo.String(\"Presentation\"),\n RelationType: components.RelationTypeEquals.ToPointer(),\n },\n },\n },\n },\n AddedRoles: []components.UserRoleSpecification{\n components.UserRoleSpecification{\n Person: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n Role: components.UserRoleEditor,\n },\n components.UserRoleSpecification{\n Person: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n Role: components.UserRoleEditor,\n },\n components.UserRoleSpecification{\n Person: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n Role: components.UserRoleEditor,\n },\n },\n RemovedRoles: []components.UserRoleSpecification{\n components.UserRoleSpecification{\n Person: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n Role: components.UserRoleVerifier,\n },\n components.UserRoleSpecification{\n Person: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n Role: components.UserRoleVerifier,\n },\n },\n Likes: &components.AnswerLikes{\n LikedBy: []components.AnswerLike{\n components.AnswerLike{\n User: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n },\n components.AnswerLike{\n User: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n },\n components.AnswerLike{\n User: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n },\n },\n LikedByUser: false,\n NumLikes: 716571,\n },\n Author: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n UpdatedBy: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n Verification: &components.Verification{\n State: components.StateUnverified,\n Metadata: &components.VerificationMetadata{\n LastVerifier: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n Document: &components.Document{\n Metadata: &components.DocumentMetadata{\n Datasource: apiclientgo.String(\"datasource\"),\n ObjectType: apiclientgo.String(\"Feature Request\"),\n Container: apiclientgo.String(\"container\"),\n ParentID: apiclientgo.String(\"JIRA_EN-1337\"),\n MimeType: apiclientgo.String(\"mimeType\"),\n DocumentID: apiclientgo.String(\"documentId\"),\n CreateTime: types.MustNewTimeFromString(\"2000-01-23T04:56:07.000Z\"),\n UpdateTime: types.MustNewTimeFromString(\"2000-01-23T04:56:07.000Z\"),\n Author: &components.Person{\n Name: \"name\",\n ObfuscatedID: \"\",\n },\n Components: []string{\n \"Backend\",\n \"Networking\",\n },\n Status: apiclientgo.String(\"[\\\"Done\\\"]\"),\n CustomData: map[string]components.CustomDataValue{\n \"someCustomField\": components.CustomDataValue{},\n },\n },\n },\n Reminders: []components.Reminder{\n components.Reminder{\n Assignee: components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n Requestor: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n RemindAt: 852101,\n },\n },\n LastReminder: &components.Reminder{\n Assignee: components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n Requestor: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n RemindAt: 829206,\n },\n CandidateVerifiers: []components.Person{\n components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n },\n },\n },\n Board: &components.AnswerBoard{\n Name: \"\",\n Description: \"pronoun whether likely likewise negative possession ape furthermore\",\n AudienceFilters: []components.FacetFilter{\n components.FacetFilter{\n FieldName: apiclientgo.String(\"type\"),\n Values: []components.FacetFilterValue{\n components.FacetFilterValue{\n Value: apiclientgo.String(\"Spreadsheet\"),\n RelationType: components.RelationTypeEquals.ToPointer(),\n },\n components.FacetFilterValue{\n Value: apiclientgo.String(\"Presentation\"),\n RelationType: components.RelationTypeEquals.ToPointer(),\n },\n },\n },\n },\n ID: 856490,\n Creator: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n UpdatedBy: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n },\n Collections: []components.Collection{\n components.Collection{\n Name: \"\",\n Description: \"tedious given quixotic\",\n AudienceFilters: []components.FacetFilter{\n components.FacetFilter{\n FieldName: apiclientgo.String(\"type\"),\n Values: []components.FacetFilterValue{\n components.FacetFilterValue{\n Value: apiclientgo.String(\"Spreadsheet\"),\n RelationType: components.RelationTypeEquals.ToPointer(),\n },\n components.FacetFilterValue{\n Value: apiclientgo.String(\"Presentation\"),\n RelationType: components.RelationTypeEquals.ToPointer(),\n },\n },\n },\n },\n ID: 590805,\n Creator: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n UpdatedBy: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n Items: []components.CollectionItem{\n components.CollectionItem{\n CollectionID: 913703,\n CreatedBy: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n Document: &components.Document{\n Metadata: &components.DocumentMetadata{\n Datasource: apiclientgo.String(\"datasource\"),\n ObjectType: apiclientgo.String(\"Feature Request\"),\n Container: apiclientgo.String(\"container\"),\n ParentID: apiclientgo.String(\"JIRA_EN-1337\"),\n MimeType: apiclientgo.String(\"mimeType\"),\n DocumentID: apiclientgo.String(\"documentId\"),\n CreateTime: types.MustNewTimeFromString(\"2000-01-23T04:56:07.000Z\"),\n UpdateTime: types.MustNewTimeFromString(\"2000-01-23T04:56:07.000Z\"),\n Author: &components.Person{\n Name: \"name\",\n ObfuscatedID: \"\",\n },\n Components: []string{\n \"Backend\",\n \"Networking\",\n },\n Status: apiclientgo.String(\"[\\\"Done\\\"]\"),\n CustomData: map[string]components.CustomDataValue{\n \"someCustomField\": components.CustomDataValue{},\n },\n },\n },\n Shortcut: &components.Shortcut{\n InputAlias: \"\",\n CreatedBy: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n UpdatedBy: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n DestinationDocument: &components.Document{\n Metadata: &components.DocumentMetadata{\n Datasource: apiclientgo.String(\"datasource\"),\n ObjectType: apiclientgo.String(\"Feature Request\"),\n Container: apiclientgo.String(\"container\"),\n ParentID: apiclientgo.String(\"JIRA_EN-1337\"),\n MimeType: apiclientgo.String(\"mimeType\"),\n DocumentID: apiclientgo.String(\"documentId\"),\n CreateTime: types.MustNewTimeFromString(\"2000-01-23T04:56:07.000Z\"),\n UpdateTime: types.MustNewTimeFromString(\"2000-01-23T04:56:07.000Z\"),\n Author: &components.Person{\n Name: \"name\",\n ObfuscatedID: \"\",\n },\n Components: []string{\n \"Backend\",\n \"Networking\",\n },\n Status: apiclientgo.String(\"[\\\"Done\\\"]\"),\n CustomData: map[string]components.CustomDataValue{\n \"someCustomField\": components.CustomDataValue{},\n },\n },\n },\n },\n ItemType: components.CollectionItemItemTypeCollection,\n },\n },\n Children: []components.Collection{\n components.Collection{\n Name: \"\",\n Description: \"whoever vice reassuringly boo fess\",\n AudienceFilters: []components.FacetFilter{\n components.FacetFilter{\n FieldName: apiclientgo.String(\"type\"),\n Values: []components.FacetFilterValue{\n components.FacetFilterValue{\n Value: apiclientgo.String(\"Spreadsheet\"),\n RelationType: components.RelationTypeEquals.ToPointer(),\n },\n components.FacetFilterValue{\n Value: apiclientgo.String(\"Presentation\"),\n RelationType: components.RelationTypeEquals.ToPointer(),\n },\n },\n },\n },\n ID: 953002,\n Creator: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n UpdatedBy: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n },\n components.Collection{\n Name: \"\",\n Description: \"whoever vice reassuringly boo fess\",\n AudienceFilters: []components.FacetFilter{\n components.FacetFilter{\n FieldName: apiclientgo.String(\"type\"),\n Values: []components.FacetFilterValue{\n components.FacetFilterValue{\n Value: apiclientgo.String(\"Spreadsheet\"),\n RelationType: components.RelationTypeEquals.ToPointer(),\n },\n components.FacetFilterValue{\n Value: apiclientgo.String(\"Presentation\"),\n RelationType: components.RelationTypeEquals.ToPointer(),\n },\n },\n },\n },\n ID: 953002,\n Creator: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n UpdatedBy: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n },\n components.Collection{\n Name: \"\",\n Description: \"whoever vice reassuringly boo fess\",\n AudienceFilters: []components.FacetFilter{\n components.FacetFilter{\n FieldName: apiclientgo.String(\"type\"),\n Values: []components.FacetFilterValue{\n components.FacetFilterValue{\n Value: apiclientgo.String(\"Spreadsheet\"),\n RelationType: components.RelationTypeEquals.ToPointer(),\n },\n components.FacetFilterValue{\n Value: apiclientgo.String(\"Presentation\"),\n RelationType: components.RelationTypeEquals.ToPointer(),\n },\n },\n },\n },\n ID: 953002,\n Creator: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n UpdatedBy: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n },\n },\n },\n components.Collection{\n Name: \"\",\n Description: \"tedious given quixotic\",\n AudienceFilters: []components.FacetFilter{\n components.FacetFilter{\n FieldName: apiclientgo.String(\"type\"),\n Values: []components.FacetFilterValue{\n components.FacetFilterValue{\n Value: apiclientgo.String(\"Spreadsheet\"),\n RelationType: components.RelationTypeEquals.ToPointer(),\n },\n components.FacetFilterValue{\n Value: apiclientgo.String(\"Presentation\"),\n RelationType: components.RelationTypeEquals.ToPointer(),\n },\n },\n },\n },\n ID: 590805,\n Creator: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n UpdatedBy: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n Items: []components.CollectionItem{\n components.CollectionItem{\n CollectionID: 913703,\n CreatedBy: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n Document: &components.Document{\n Metadata: &components.DocumentMetadata{\n Datasource: apiclientgo.String(\"datasource\"),\n ObjectType: apiclientgo.String(\"Feature Request\"),\n Container: apiclientgo.String(\"container\"),\n ParentID: apiclientgo.String(\"JIRA_EN-1337\"),\n MimeType: apiclientgo.String(\"mimeType\"),\n DocumentID: apiclientgo.String(\"documentId\"),\n CreateTime: types.MustNewTimeFromString(\"2000-01-23T04:56:07.000Z\"),\n UpdateTime: types.MustNewTimeFromString(\"2000-01-23T04:56:07.000Z\"),\n Author: &components.Person{\n Name: \"name\",\n ObfuscatedID: \"\",\n },\n Components: []string{\n \"Backend\",\n \"Networking\",\n },\n Status: apiclientgo.String(\"[\\\"Done\\\"]\"),\n CustomData: map[string]components.CustomDataValue{\n \"someCustomField\": components.CustomDataValue{},\n },\n },\n },\n Shortcut: &components.Shortcut{\n InputAlias: \"\",\n CreatedBy: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n UpdatedBy: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n DestinationDocument: &components.Document{\n Metadata: &components.DocumentMetadata{\n Datasource: apiclientgo.String(\"datasource\"),\n ObjectType: apiclientgo.String(\"Feature Request\"),\n Container: apiclientgo.String(\"container\"),\n ParentID: apiclientgo.String(\"JIRA_EN-1337\"),\n MimeType: apiclientgo.String(\"mimeType\"),\n DocumentID: apiclientgo.String(\"documentId\"),\n CreateTime: types.MustNewTimeFromString(\"2000-01-23T04:56:07.000Z\"),\n UpdateTime: types.MustNewTimeFromString(\"2000-01-23T04:56:07.000Z\"),\n Author: &components.Person{\n Name: \"name\",\n ObfuscatedID: \"\",\n },\n Components: []string{\n \"Backend\",\n \"Networking\",\n },\n Status: apiclientgo.String(\"[\\\"Done\\\"]\"),\n CustomData: map[string]components.CustomDataValue{\n \"someCustomField\": components.CustomDataValue{},\n },\n },\n },\n },\n ItemType: components.CollectionItemItemTypeCollection,\n },\n },\n Children: []components.Collection{\n components.Collection{\n Name: \"\",\n Description: \"whoever vice reassuringly boo fess\",\n AudienceFilters: []components.FacetFilter{\n components.FacetFilter{\n FieldName: apiclientgo.String(\"type\"),\n Values: []components.FacetFilterValue{\n components.FacetFilterValue{\n Value: apiclientgo.String(\"Spreadsheet\"),\n RelationType: components.RelationTypeEquals.ToPointer(),\n },\n components.FacetFilterValue{\n Value: apiclientgo.String(\"Presentation\"),\n RelationType: components.RelationTypeEquals.ToPointer(),\n },\n },\n },\n },\n ID: 953002,\n Creator: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n UpdatedBy: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n },\n components.Collection{\n Name: \"\",\n Description: \"whoever vice reassuringly boo fess\",\n AudienceFilters: []components.FacetFilter{\n components.FacetFilter{\n FieldName: apiclientgo.String(\"type\"),\n Values: []components.FacetFilterValue{\n components.FacetFilterValue{\n Value: apiclientgo.String(\"Spreadsheet\"),\n RelationType: components.RelationTypeEquals.ToPointer(),\n },\n components.FacetFilterValue{\n Value: apiclientgo.String(\"Presentation\"),\n RelationType: components.RelationTypeEquals.ToPointer(),\n },\n },\n },\n },\n ID: 953002,\n Creator: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n UpdatedBy: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n },\n components.Collection{\n Name: \"\",\n Description: \"whoever vice reassuringly boo fess\",\n AudienceFilters: []components.FacetFilter{\n components.FacetFilter{\n FieldName: apiclientgo.String(\"type\"),\n Values: []components.FacetFilterValue{\n components.FacetFilterValue{\n Value: apiclientgo.String(\"Spreadsheet\"),\n RelationType: components.RelationTypeEquals.ToPointer(),\n },\n components.FacetFilterValue{\n Value: apiclientgo.String(\"Presentation\"),\n RelationType: components.RelationTypeEquals.ToPointer(),\n },\n },\n },\n },\n ID: 953002,\n Creator: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n UpdatedBy: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n },\n },\n },\n components.Collection{\n Name: \"\",\n Description: \"tedious given quixotic\",\n AudienceFilters: []components.FacetFilter{\n components.FacetFilter{\n FieldName: apiclientgo.String(\"type\"),\n Values: []components.FacetFilterValue{\n components.FacetFilterValue{\n Value: apiclientgo.String(\"Spreadsheet\"),\n RelationType: components.RelationTypeEquals.ToPointer(),\n },\n components.FacetFilterValue{\n Value: apiclientgo.String(\"Presentation\"),\n RelationType: components.RelationTypeEquals.ToPointer(),\n },\n },\n },\n },\n ID: 590805,\n Creator: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n UpdatedBy: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n Items: []components.CollectionItem{\n components.CollectionItem{\n CollectionID: 913703,\n CreatedBy: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n Document: &components.Document{\n Metadata: &components.DocumentMetadata{\n Datasource: apiclientgo.String(\"datasource\"),\n ObjectType: apiclientgo.String(\"Feature Request\"),\n Container: apiclientgo.String(\"container\"),\n ParentID: apiclientgo.String(\"JIRA_EN-1337\"),\n MimeType: apiclientgo.String(\"mimeType\"),\n DocumentID: apiclientgo.String(\"documentId\"),\n CreateTime: types.MustNewTimeFromString(\"2000-01-23T04:56:07.000Z\"),\n UpdateTime: types.MustNewTimeFromString(\"2000-01-23T04:56:07.000Z\"),\n Author: &components.Person{\n Name: \"name\",\n ObfuscatedID: \"\",\n },\n Components: []string{\n \"Backend\",\n \"Networking\",\n },\n Status: apiclientgo.String(\"[\\\"Done\\\"]\"),\n CustomData: map[string]components.CustomDataValue{\n \"someCustomField\": components.CustomDataValue{},\n },\n },\n },\n Shortcut: &components.Shortcut{\n InputAlias: \"\",\n CreatedBy: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n UpdatedBy: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n DestinationDocument: &components.Document{\n Metadata: &components.DocumentMetadata{\n Datasource: apiclientgo.String(\"datasource\"),\n ObjectType: apiclientgo.String(\"Feature Request\"),\n Container: apiclientgo.String(\"container\"),\n ParentID: apiclientgo.String(\"JIRA_EN-1337\"),\n MimeType: apiclientgo.String(\"mimeType\"),\n DocumentID: apiclientgo.String(\"documentId\"),\n CreateTime: types.MustNewTimeFromString(\"2000-01-23T04:56:07.000Z\"),\n UpdateTime: types.MustNewTimeFromString(\"2000-01-23T04:56:07.000Z\"),\n Author: &components.Person{\n Name: \"name\",\n ObfuscatedID: \"\",\n },\n Components: []string{\n \"Backend\",\n \"Networking\",\n },\n Status: apiclientgo.String(\"[\\\"Done\\\"]\"),\n CustomData: map[string]components.CustomDataValue{\n \"someCustomField\": components.CustomDataValue{},\n },\n },\n },\n },\n ItemType: components.CollectionItemItemTypeCollection,\n },\n },\n Children: []components.Collection{\n components.Collection{\n Name: \"\",\n Description: \"whoever vice reassuringly boo fess\",\n AudienceFilters: []components.FacetFilter{\n components.FacetFilter{\n FieldName: apiclientgo.String(\"type\"),\n Values: []components.FacetFilterValue{\n components.FacetFilterValue{\n Value: apiclientgo.String(\"Spreadsheet\"),\n RelationType: components.RelationTypeEquals.ToPointer(),\n },\n components.FacetFilterValue{\n Value: apiclientgo.String(\"Presentation\"),\n RelationType: components.RelationTypeEquals.ToPointer(),\n },\n },\n },\n },\n ID: 953002,\n Creator: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n UpdatedBy: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n },\n components.Collection{\n Name: \"\",\n Description: \"whoever vice reassuringly boo fess\",\n AudienceFilters: []components.FacetFilter{\n components.FacetFilter{\n FieldName: apiclientgo.String(\"type\"),\n Values: []components.FacetFilterValue{\n components.FacetFilterValue{\n Value: apiclientgo.String(\"Spreadsheet\"),\n RelationType: components.RelationTypeEquals.ToPointer(),\n },\n components.FacetFilterValue{\n Value: apiclientgo.String(\"Presentation\"),\n RelationType: components.RelationTypeEquals.ToPointer(),\n },\n },\n },\n },\n ID: 953002,\n Creator: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n UpdatedBy: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n },\n components.Collection{\n Name: \"\",\n Description: \"whoever vice reassuringly boo fess\",\n AudienceFilters: []components.FacetFilter{\n components.FacetFilter{\n FieldName: apiclientgo.String(\"type\"),\n Values: []components.FacetFilterValue{\n components.FacetFilterValue{\n Value: apiclientgo.String(\"Spreadsheet\"),\n RelationType: components.RelationTypeEquals.ToPointer(),\n },\n components.FacetFilterValue{\n Value: apiclientgo.String(\"Presentation\"),\n RelationType: components.RelationTypeEquals.ToPointer(),\n },\n },\n },\n },\n ID: 953002,\n Creator: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n UpdatedBy: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n },\n },\n },\n },\n SourceDocument: &components.Document{\n Metadata: &components.DocumentMetadata{\n Datasource: apiclientgo.String(\"datasource\"),\n ObjectType: apiclientgo.String(\"Feature Request\"),\n Container: apiclientgo.String(\"container\"),\n ParentID: apiclientgo.String(\"JIRA_EN-1337\"),\n MimeType: apiclientgo.String(\"mimeType\"),\n DocumentID: apiclientgo.String(\"documentId\"),\n CreateTime: types.MustNewTimeFromString(\"2000-01-23T04:56:07.000Z\"),\n UpdateTime: types.MustNewTimeFromString(\"2000-01-23T04:56:07.000Z\"),\n Author: &components.Person{\n Name: \"name\",\n ObfuscatedID: \"\",\n },\n Components: []string{\n \"Backend\",\n \"Networking\",\n },\n Status: apiclientgo.String(\"[\\\"Done\\\"]\"),\n CustomData: map[string]components.CustomDataValue{\n \"someCustomField\": components.CustomDataValue{},\n },\n },\n },\n },\n ExtractedQnA: &components.ExtractedQnA{\n QuestionResult: &components.SearchResult{\n Title: apiclientgo.String(\"title\"),\n URL: \"https://example.com/foo/bar\",\n NativeAppURL: apiclientgo.String(\"slack://foo/bar\"),\n Snippets: []components.SearchResultSnippet{\n components.SearchResultSnippet{\n Snippet: \"snippet\",\n MimeType: apiclientgo.String(\"mimeType\"),\n },\n },\n MustIncludeSuggestions: &components.QuerySuggestionList{},\n },\n },\n Meeting: &components.Meeting{\n Attendees: &components.CalendarAttendees{\n People: []components.CalendarAttendee{\n components.CalendarAttendee{\n Person: components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n GroupAttendees: []components.CalendarAttendee{\n components.CalendarAttendee{\n Person: components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n },\n },\n },\n },\n },\n },\n Collection: &components.Collection{\n Name: \"\",\n Description: \"fortunate ha gazebo\",\n AudienceFilters: []components.FacetFilter{\n components.FacetFilter{\n FieldName: apiclientgo.String(\"type\"),\n Values: []components.FacetFilterValue{\n components.FacetFilterValue{\n Value: apiclientgo.String(\"Spreadsheet\"),\n RelationType: components.RelationTypeEquals.ToPointer(),\n },\n components.FacetFilterValue{\n Value: apiclientgo.String(\"Presentation\"),\n RelationType: components.RelationTypeEquals.ToPointer(),\n },\n },\n },\n },\n ID: 437915,\n Creator: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n UpdatedBy: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n },\n AnswerBoard: &components.AnswerBoard{\n Name: \"\",\n Description: \"grouper amidst pulse fowl swine that following adolescent yippee celsius\",\n AudienceFilters: []components.FacetFilter{\n components.FacetFilter{\n FieldName: apiclientgo.String(\"type\"),\n Values: []components.FacetFilterValue{\n components.FacetFilterValue{\n Value: apiclientgo.String(\"Spreadsheet\"),\n RelationType: components.RelationTypeEquals.ToPointer(),\n },\n components.FacetFilterValue{\n Value: apiclientgo.String(\"Presentation\"),\n RelationType: components.RelationTypeEquals.ToPointer(),\n },\n },\n },\n },\n ID: 751446,\n Creator: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n UpdatedBy: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n },\n Code: &components.Code{\n RepoName: apiclientgo.String(\"scio\"),\n FileName: apiclientgo.String(\"README.md\"),\n },\n Shortcut: &components.Shortcut{\n InputAlias: \"\",\n CreatedBy: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n UpdatedBy: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n DestinationDocument: &components.Document{\n Metadata: &components.DocumentMetadata{\n Datasource: apiclientgo.String(\"datasource\"),\n ObjectType: apiclientgo.String(\"Feature Request\"),\n Container: apiclientgo.String(\"container\"),\n ParentID: apiclientgo.String(\"JIRA_EN-1337\"),\n MimeType: apiclientgo.String(\"mimeType\"),\n DocumentID: apiclientgo.String(\"documentId\"),\n CreateTime: types.MustNewTimeFromString(\"2000-01-23T04:56:07.000Z\"),\n UpdateTime: types.MustNewTimeFromString(\"2000-01-23T04:56:07.000Z\"),\n Author: &components.Person{\n Name: \"name\",\n ObfuscatedID: \"\",\n },\n Components: []string{\n \"Backend\",\n \"Networking\",\n },\n Status: apiclientgo.String(\"[\\\"Done\\\"]\"),\n CustomData: map[string]components.CustomDataValue{\n \"someCustomField\": components.CustomDataValue{},\n },\n },\n },\n },\n QuerySuggestions: &components.QuerySuggestionList{\n Suggestions: []components.QuerySuggestion{\n components.QuerySuggestion{\n Query: \"app:github type:pull author:mortimer\",\n Label: apiclientgo.String(\"Mortimer's PRs\"),\n Datasource: apiclientgo.String(\"github\"),\n },\n },\n Person: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n },\n RelatedDocuments: []components.RelatedDocuments{\n components.RelatedDocuments{\n QuerySuggestion: &components.QuerySuggestion{\n Query: \"app:github type:pull author:mortimer\",\n Label: apiclientgo.String(\"Mortimer's PRs\"),\n Datasource: apiclientgo.String(\"github\"),\n },\n Results: []components.SearchResult{\n components.SearchResult{\n Title: apiclientgo.String(\"title\"),\n URL: \"https://example.com/foo/bar\",\n NativeAppURL: apiclientgo.String(\"slack://foo/bar\"),\n Snippets: []components.SearchResultSnippet{\n components.SearchResultSnippet{\n Snippet: \"snippet\",\n MimeType: apiclientgo.String(\"mimeType\"),\n },\n },\n MustIncludeSuggestions: &components.QuerySuggestionList{},\n },\n },\n },\n components.RelatedDocuments{\n QuerySuggestion: &components.QuerySuggestion{\n Query: \"app:github type:pull author:mortimer\",\n Label: apiclientgo.String(\"Mortimer's PRs\"),\n Datasource: apiclientgo.String(\"github\"),\n },\n Results: []components.SearchResult{\n components.SearchResult{\n Title: apiclientgo.String(\"title\"),\n URL: \"https://example.com/foo/bar\",\n NativeAppURL: apiclientgo.String(\"slack://foo/bar\"),\n Snippets: []components.SearchResultSnippet{\n components.SearchResultSnippet{\n Snippet: \"snippet\",\n MimeType: apiclientgo.String(\"mimeType\"),\n },\n },\n MustIncludeSuggestions: &components.QuerySuggestionList{},\n },\n },\n },\n components.RelatedDocuments{\n QuerySuggestion: &components.QuerySuggestion{\n Query: \"app:github type:pull author:mortimer\",\n Label: apiclientgo.String(\"Mortimer's PRs\"),\n Datasource: apiclientgo.String(\"github\"),\n },\n Results: []components.SearchResult{\n components.SearchResult{\n Title: apiclientgo.String(\"title\"),\n URL: \"https://example.com/foo/bar\",\n NativeAppURL: apiclientgo.String(\"slack://foo/bar\"),\n Snippets: []components.SearchResultSnippet{\n components.SearchResultSnippet{\n Snippet: \"snippet\",\n MimeType: apiclientgo.String(\"mimeType\"),\n },\n },\n MustIncludeSuggestions: &components.QuerySuggestionList{},\n },\n },\n },\n },\n RelatedQuestion: &components.RelatedQuestion{\n Ranges: []components.TextRange{\n components.TextRange{\n StartIndex: 913402,\n Document: &components.Document{\n Metadata: &components.DocumentMetadata{\n Datasource: apiclientgo.String(\"datasource\"),\n ObjectType: apiclientgo.String(\"Feature Request\"),\n Container: apiclientgo.String(\"container\"),\n ParentID: apiclientgo.String(\"JIRA_EN-1337\"),\n MimeType: apiclientgo.String(\"mimeType\"),\n DocumentID: apiclientgo.String(\"documentId\"),\n CreateTime: types.MustNewTimeFromString(\"2000-01-23T04:56:07.000Z\"),\n UpdateTime: types.MustNewTimeFromString(\"2000-01-23T04:56:07.000Z\"),\n Author: &components.Person{\n Name: \"name\",\n ObfuscatedID: \"\",\n },\n Components: []string{\n \"Backend\",\n \"Networking\",\n },\n Status: apiclientgo.String(\"[\\\"Done\\\"]\"),\n CustomData: map[string]components.CustomDataValue{\n \"someCustomField\": components.CustomDataValue{},\n },\n },\n },\n },\n components.TextRange{\n StartIndex: 913402,\n Document: &components.Document{\n Metadata: &components.DocumentMetadata{\n Datasource: apiclientgo.String(\"datasource\"),\n ObjectType: apiclientgo.String(\"Feature Request\"),\n Container: apiclientgo.String(\"container\"),\n ParentID: apiclientgo.String(\"JIRA_EN-1337\"),\n MimeType: apiclientgo.String(\"mimeType\"),\n DocumentID: apiclientgo.String(\"documentId\"),\n CreateTime: types.MustNewTimeFromString(\"2000-01-23T04:56:07.000Z\"),\n UpdateTime: types.MustNewTimeFromString(\"2000-01-23T04:56:07.000Z\"),\n Author: &components.Person{\n Name: \"name\",\n ObfuscatedID: \"\",\n },\n Components: []string{\n \"Backend\",\n \"Networking\",\n },\n Status: apiclientgo.String(\"[\\\"Done\\\"]\"),\n CustomData: map[string]components.CustomDataValue{\n \"someCustomField\": components.CustomDataValue{},\n },\n },\n },\n },\n components.TextRange{\n StartIndex: 913402,\n Document: &components.Document{\n Metadata: &components.DocumentMetadata{\n Datasource: apiclientgo.String(\"datasource\"),\n ObjectType: apiclientgo.String(\"Feature Request\"),\n Container: apiclientgo.String(\"container\"),\n ParentID: apiclientgo.String(\"JIRA_EN-1337\"),\n MimeType: apiclientgo.String(\"mimeType\"),\n DocumentID: apiclientgo.String(\"documentId\"),\n CreateTime: types.MustNewTimeFromString(\"2000-01-23T04:56:07.000Z\"),\n UpdateTime: types.MustNewTimeFromString(\"2000-01-23T04:56:07.000Z\"),\n Author: &components.Person{\n Name: \"name\",\n ObfuscatedID: \"\",\n },\n Components: []string{\n \"Backend\",\n \"Networking\",\n },\n Status: apiclientgo.String(\"[\\\"Done\\\"]\"),\n CustomData: map[string]components.CustomDataValue{\n \"someCustomField\": components.CustomDataValue{},\n },\n },\n },\n },\n },\n },\n },\n },\n },\n },\n AudienceFilters: []components.FacetFilter{\n components.FacetFilter{\n FieldName: apiclientgo.String(\"type\"),\n Values: []components.FacetFilterValue{\n components.FacetFilterValue{\n Value: apiclientgo.String(\"Spreadsheet\"),\n RelationType: components.RelationTypeEquals.ToPointer(),\n },\n components.FacetFilterValue{\n Value: apiclientgo.String(\"Presentation\"),\n RelationType: components.RelationTypeEquals.ToPointer(),\n },\n },\n },\n },\n })\n if err != nil {\n log.Fatal(err)\n }\n if res.Announcement != nil {\n // handle response\n }\n}" - lang: java label: Java (API Client) source: |- @@ -5542,6 +5550,7 @@ paths: Glean sdk = Glean.builder() .apiToken("") + .instance("") .build(); CreateAnnouncementRequest req = CreateAnnouncementRequest.builder() @@ -8019,6 +8028,7 @@ paths: with Glean( api_token=os.getenv("GLEAN_API_TOKEN", ""), + instance=os.getenv("GLEAN_INSTANCE", ""), ) as g_client: g_client.client.announcements.delete(id=458809) @@ -8031,6 +8041,7 @@ paths: const glean = new Glean({ apiToken: process.env["GLEAN_API_TOKEN"] ?? "", + instance: process.env["GLEAN_INSTANCE"] ?? "", }); async function run() { @@ -8044,7 +8055,7 @@ paths: run(); - lang: go label: Go (API Client) - source: "package main\n\nimport(\n\t\"context\"\n\t\"os\"\n\tapiclientgo \"github.com/gleanwork/api-client-go\"\n\t\"github.com/gleanwork/api-client-go/models/components\"\n\t\"log\"\n)\n\nfunc main() {\n ctx := context.Background()\n\n s := apiclientgo.New(\n apiclientgo.WithSecurity(os.Getenv(\"GLEAN_API_TOKEN\")),\n )\n\n res, err := s.Client.Announcements.Delete(ctx, components.DeleteAnnouncementRequest{\n ID: 458809,\n })\n if err != nil {\n log.Fatal(err)\n }\n if res != nil {\n // handle response\n }\n}" + source: "package main\n\nimport(\n\t\"context\"\n\t\"os\"\n\tapiclientgo \"github.com/gleanwork/api-client-go\"\n\t\"github.com/gleanwork/api-client-go/models/components\"\n\t\"log\"\n)\n\nfunc main() {\n ctx := context.Background()\n\n s := apiclientgo.New(\n apiclientgo.WithSecurity(os.Getenv(\"GLEAN_API_TOKEN\")),\n apiclientgo.WithInstance(os.Getenv(\"GLEAN_INSTANCE\")),\n )\n\n res, err := s.Client.Announcements.Delete(ctx, components.DeleteAnnouncementRequest{\n ID: 458809,\n })\n if err != nil {\n log.Fatal(err)\n }\n if res != nil {\n // handle response\n }\n}" - lang: java label: Java (API Client) source: |- @@ -8061,6 +8072,7 @@ paths: Glean sdk = Glean.builder() .apiToken("") + .instance("") .build(); DeleteAnnouncementRequest req = DeleteAnnouncementRequest.builder() @@ -8118,6 +8130,7 @@ paths: with Glean( api_token=os.getenv("GLEAN_API_TOKEN", ""), + instance=os.getenv("GLEAN_INSTANCE", ""), ) as g_client: res = g_client.client.announcements.update(start_time=parse_datetime("2023-10-24T01:53:24.440Z"), end_time=parse_datetime("2024-10-30T07:24:12.087Z"), title="", id=121004, body={ @@ -11920,6 +11933,7 @@ paths: const glean = new Glean({ apiToken: process.env["GLEAN_API_TOKEN"] ?? "", + instance: process.env["GLEAN_INSTANCE"] ?? "", }); async function run() { @@ -15728,7 +15742,7 @@ paths: run(); - lang: go label: Go (API Client) - source: "package main\n\nimport(\n\t\"context\"\n\t\"os\"\n\tapiclientgo \"github.com/gleanwork/api-client-go\"\n\t\"github.com/gleanwork/api-client-go/types\"\n\t\"github.com/gleanwork/api-client-go/models/components\"\n\t\"log\"\n)\n\nfunc main() {\n ctx := context.Background()\n\n s := apiclientgo.New(\n apiclientgo.WithSecurity(os.Getenv(\"GLEAN_API_TOKEN\")),\n )\n\n res, err := s.Client.Announcements.Update(ctx, components.UpdateAnnouncementRequest{\n StartTime: types.MustTimeFromString(\"2023-10-24T01:53:24.440Z\"),\n EndTime: types.MustTimeFromString(\"2024-10-30T07:24:12.087Z\"),\n Title: \"\",\n Body: &components.StructuredText{\n Text: \"From https://en.wikipedia.org/wiki/Diffuse_sky_radiation, the sky is blue because blue light is more strongly scattered than longer-wavelength light.\",\n StructuredList: []components.StructuredTextItem{\n components.StructuredTextItem{\n Link: apiclientgo.String(\"https://en.wikipedia.org/wiki/Diffuse_sky_radiation\"),\n Document: &components.Document{\n Metadata: &components.DocumentMetadata{\n Datasource: apiclientgo.String(\"datasource\"),\n ObjectType: apiclientgo.String(\"Feature Request\"),\n Container: apiclientgo.String(\"container\"),\n ParentID: apiclientgo.String(\"JIRA_EN-1337\"),\n MimeType: apiclientgo.String(\"mimeType\"),\n DocumentID: apiclientgo.String(\"documentId\"),\n CreateTime: types.MustNewTimeFromString(\"2000-01-23T04:56:07.000Z\"),\n UpdateTime: types.MustNewTimeFromString(\"2000-01-23T04:56:07.000Z\"),\n Author: &components.Person{\n Name: \"name\",\n ObfuscatedID: \"\",\n },\n Components: []string{\n \"Backend\",\n \"Networking\",\n },\n Status: apiclientgo.String(\"[\\\"Done\\\"]\"),\n CustomData: map[string]components.CustomDataValue{\n \"someCustomField\": components.CustomDataValue{},\n },\n },\n },\n Text: apiclientgo.String(\"Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue.\"),\n StructuredResult: &components.StructuredResult{\n Document: &components.Document{\n Metadata: &components.DocumentMetadata{\n Datasource: apiclientgo.String(\"datasource\"),\n ObjectType: apiclientgo.String(\"Feature Request\"),\n Container: apiclientgo.String(\"container\"),\n ParentID: apiclientgo.String(\"JIRA_EN-1337\"),\n MimeType: apiclientgo.String(\"mimeType\"),\n DocumentID: apiclientgo.String(\"documentId\"),\n CreateTime: types.MustNewTimeFromString(\"2000-01-23T04:56:07.000Z\"),\n UpdateTime: types.MustNewTimeFromString(\"2000-01-23T04:56:07.000Z\"),\n Author: &components.Person{\n Name: \"name\",\n ObfuscatedID: \"\",\n },\n Components: []string{\n \"Backend\",\n \"Networking\",\n },\n Status: apiclientgo.String(\"[\\\"Done\\\"]\"),\n CustomData: map[string]components.CustomDataValue{\n \"someCustomField\": components.CustomDataValue{},\n },\n },\n },\n Person: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n Customer: &components.Customer{\n ID: \"\",\n Company: components.Company{\n Name: \"\",\n Location: apiclientgo.String(\"New York City\"),\n Industry: apiclientgo.String(\"Finances\"),\n About: apiclientgo.String(\"Financial, software, data, and media company headquartered in Midtown Manhattan, New York City\"),\n },\n Poc: []components.Person{\n components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n },\n MergedCustomers: []components.Customer{\n components.Customer{\n ID: \"\",\n Company: components.Company{\n Name: \"\",\n Location: apiclientgo.String(\"New York City\"),\n Industry: apiclientgo.String(\"Finances\"),\n About: apiclientgo.String(\"Financial, software, data, and media company headquartered in Midtown Manhattan, New York City\"),\n },\n Notes: apiclientgo.String(\"CIO is interested in trying out the product.\"),\n },\n components.Customer{\n ID: \"\",\n Company: components.Company{\n Name: \"\",\n Location: apiclientgo.String(\"New York City\"),\n Industry: apiclientgo.String(\"Finances\"),\n About: apiclientgo.String(\"Financial, software, data, and media company headquartered in Midtown Manhattan, New York City\"),\n },\n Notes: apiclientgo.String(\"CIO is interested in trying out the product.\"),\n },\n components.Customer{\n ID: \"\",\n Company: components.Company{\n Name: \"\",\n Location: apiclientgo.String(\"New York City\"),\n Industry: apiclientgo.String(\"Finances\"),\n About: apiclientgo.String(\"Financial, software, data, and media company headquartered in Midtown Manhattan, New York City\"),\n },\n Notes: apiclientgo.String(\"CIO is interested in trying out the product.\"),\n },\n },\n Notes: apiclientgo.String(\"CIO is interested in trying out the product.\"),\n },\n Team: &components.Team{\n ID: \"\",\n Name: \"\",\n Members: []components.PersonToTeamRelationship{\n components.PersonToTeamRelationship{\n Person: components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n },\n components.PersonToTeamRelationship{\n Person: components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n },\n },\n CustomFields: []components.CustomFieldData{\n components.CustomFieldData{\n Label: \"\",\n Values: []components.CustomFieldValue{},\n },\n components.CustomFieldData{\n Label: \"\",\n Values: []components.CustomFieldValue{},\n },\n },\n DatasourceProfiles: []components.DatasourceProfile{\n components.DatasourceProfile{\n Datasource: \"github\",\n Handle: \"\",\n },\n components.DatasourceProfile{\n Datasource: \"github\",\n Handle: \"\",\n },\n components.DatasourceProfile{\n Datasource: \"github\",\n Handle: \"\",\n },\n },\n },\n CustomEntity: &components.CustomEntity{\n Roles: []components.UserRoleSpecification{\n components.UserRoleSpecification{\n Person: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n Role: components.UserRoleEditor,\n },\n components.UserRoleSpecification{\n Person: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n Role: components.UserRoleEditor,\n },\n },\n },\n Answer: &components.Answer{\n ID: 3,\n DocID: apiclientgo.String(\"ANSWERS_answer_3\"),\n Question: apiclientgo.String(\"Why is the sky blue?\"),\n BodyText: apiclientgo.String(\"From https://en.wikipedia.org/wiki/Diffuse_sky_radiation, the sky is blue because blue light is more strongly scattered than longer-wavelength light.\"),\n AudienceFilters: []components.FacetFilter{\n components.FacetFilter{\n FieldName: apiclientgo.String(\"type\"),\n Values: []components.FacetFilterValue{\n components.FacetFilterValue{\n Value: apiclientgo.String(\"Spreadsheet\"),\n RelationType: components.RelationTypeEquals.ToPointer(),\n },\n components.FacetFilterValue{\n Value: apiclientgo.String(\"Presentation\"),\n RelationType: components.RelationTypeEquals.ToPointer(),\n },\n },\n },\n },\n AddedRoles: []components.UserRoleSpecification{\n components.UserRoleSpecification{\n Person: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n Role: components.UserRoleOwner,\n },\n components.UserRoleSpecification{\n Person: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n Role: components.UserRoleOwner,\n },\n },\n RemovedRoles: []components.UserRoleSpecification{\n components.UserRoleSpecification{\n Person: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n Role: components.UserRoleAnswerModerator,\n },\n components.UserRoleSpecification{\n Person: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n Role: components.UserRoleAnswerModerator,\n },\n components.UserRoleSpecification{\n Person: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n Role: components.UserRoleAnswerModerator,\n },\n },\n Likes: &components.AnswerLikes{\n LikedBy: []components.AnswerLike{\n components.AnswerLike{\n User: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n },\n },\n LikedByUser: true,\n NumLikes: 38608,\n },\n Author: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n UpdatedBy: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n Verification: &components.Verification{\n State: components.StateDeprecated,\n Metadata: &components.VerificationMetadata{\n LastVerifier: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n Document: &components.Document{\n Metadata: &components.DocumentMetadata{\n Datasource: apiclientgo.String(\"datasource\"),\n ObjectType: apiclientgo.String(\"Feature Request\"),\n Container: apiclientgo.String(\"container\"),\n ParentID: apiclientgo.String(\"JIRA_EN-1337\"),\n MimeType: apiclientgo.String(\"mimeType\"),\n DocumentID: apiclientgo.String(\"documentId\"),\n CreateTime: types.MustNewTimeFromString(\"2000-01-23T04:56:07.000Z\"),\n UpdateTime: types.MustNewTimeFromString(\"2000-01-23T04:56:07.000Z\"),\n Author: &components.Person{\n Name: \"name\",\n ObfuscatedID: \"\",\n },\n Components: []string{\n \"Backend\",\n \"Networking\",\n },\n Status: apiclientgo.String(\"[\\\"Done\\\"]\"),\n CustomData: map[string]components.CustomDataValue{\n \"someCustomField\": components.CustomDataValue{},\n },\n },\n },\n Reminders: []components.Reminder{\n components.Reminder{\n Assignee: components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n Requestor: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n RemindAt: 735135,\n },\n components.Reminder{\n Assignee: components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n Requestor: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n RemindAt: 735135,\n },\n },\n LastReminder: &components.Reminder{\n Assignee: components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n Requestor: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n RemindAt: 528697,\n },\n CandidateVerifiers: []components.Person{\n components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n },\n },\n },\n Board: &components.AnswerBoard{\n Name: \"\",\n Description: \"treasure phrase meaty\",\n AudienceFilters: []components.FacetFilter{\n components.FacetFilter{\n FieldName: apiclientgo.String(\"type\"),\n Values: []components.FacetFilterValue{\n components.FacetFilterValue{\n Value: apiclientgo.String(\"Spreadsheet\"),\n RelationType: components.RelationTypeEquals.ToPointer(),\n },\n components.FacetFilterValue{\n Value: apiclientgo.String(\"Presentation\"),\n RelationType: components.RelationTypeEquals.ToPointer(),\n },\n },\n },\n },\n ID: 355296,\n Creator: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n UpdatedBy: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n },\n Collections: []components.Collection{\n components.Collection{\n Name: \"\",\n Description: \"thunderbolt acidly warmly hence zowie\",\n AudienceFilters: []components.FacetFilter{\n components.FacetFilter{\n FieldName: apiclientgo.String(\"type\"),\n Values: []components.FacetFilterValue{\n components.FacetFilterValue{\n Value: apiclientgo.String(\"Spreadsheet\"),\n RelationType: components.RelationTypeEquals.ToPointer(),\n },\n components.FacetFilterValue{\n Value: apiclientgo.String(\"Presentation\"),\n RelationType: components.RelationTypeEquals.ToPointer(),\n },\n },\n },\n },\n ID: 416180,\n Creator: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n UpdatedBy: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n Items: []components.CollectionItem{\n components.CollectionItem{\n CollectionID: 213025,\n CreatedBy: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n Document: &components.Document{\n Metadata: &components.DocumentMetadata{\n Datasource: apiclientgo.String(\"datasource\"),\n ObjectType: apiclientgo.String(\"Feature Request\"),\n Container: apiclientgo.String(\"container\"),\n ParentID: apiclientgo.String(\"JIRA_EN-1337\"),\n MimeType: apiclientgo.String(\"mimeType\"),\n DocumentID: apiclientgo.String(\"documentId\"),\n CreateTime: types.MustNewTimeFromString(\"2000-01-23T04:56:07.000Z\"),\n UpdateTime: types.MustNewTimeFromString(\"2000-01-23T04:56:07.000Z\"),\n Author: &components.Person{\n Name: \"name\",\n ObfuscatedID: \"\",\n },\n Components: []string{\n \"Backend\",\n \"Networking\",\n },\n Status: apiclientgo.String(\"[\\\"Done\\\"]\"),\n CustomData: map[string]components.CustomDataValue{\n \"someCustomField\": components.CustomDataValue{},\n },\n },\n },\n Shortcut: &components.Shortcut{\n InputAlias: \"\",\n CreatedBy: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n UpdatedBy: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n DestinationDocument: &components.Document{\n Metadata: &components.DocumentMetadata{\n Datasource: apiclientgo.String(\"datasource\"),\n ObjectType: apiclientgo.String(\"Feature Request\"),\n Container: apiclientgo.String(\"container\"),\n ParentID: apiclientgo.String(\"JIRA_EN-1337\"),\n MimeType: apiclientgo.String(\"mimeType\"),\n DocumentID: apiclientgo.String(\"documentId\"),\n CreateTime: types.MustNewTimeFromString(\"2000-01-23T04:56:07.000Z\"),\n UpdateTime: types.MustNewTimeFromString(\"2000-01-23T04:56:07.000Z\"),\n Author: &components.Person{\n Name: \"name\",\n ObfuscatedID: \"\",\n },\n Components: []string{\n \"Backend\",\n \"Networking\",\n },\n Status: apiclientgo.String(\"[\\\"Done\\\"]\"),\n CustomData: map[string]components.CustomDataValue{\n \"someCustomField\": components.CustomDataValue{},\n },\n },\n },\n },\n ItemType: components.CollectionItemItemTypeText,\n },\n components.CollectionItem{\n CollectionID: 213025,\n CreatedBy: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n Document: &components.Document{\n Metadata: &components.DocumentMetadata{\n Datasource: apiclientgo.String(\"datasource\"),\n ObjectType: apiclientgo.String(\"Feature Request\"),\n Container: apiclientgo.String(\"container\"),\n ParentID: apiclientgo.String(\"JIRA_EN-1337\"),\n MimeType: apiclientgo.String(\"mimeType\"),\n DocumentID: apiclientgo.String(\"documentId\"),\n CreateTime: types.MustNewTimeFromString(\"2000-01-23T04:56:07.000Z\"),\n UpdateTime: types.MustNewTimeFromString(\"2000-01-23T04:56:07.000Z\"),\n Author: &components.Person{\n Name: \"name\",\n ObfuscatedID: \"\",\n },\n Components: []string{\n \"Backend\",\n \"Networking\",\n },\n Status: apiclientgo.String(\"[\\\"Done\\\"]\"),\n CustomData: map[string]components.CustomDataValue{\n \"someCustomField\": components.CustomDataValue{},\n },\n },\n },\n Shortcut: &components.Shortcut{\n InputAlias: \"\",\n CreatedBy: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n UpdatedBy: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n DestinationDocument: &components.Document{\n Metadata: &components.DocumentMetadata{\n Datasource: apiclientgo.String(\"datasource\"),\n ObjectType: apiclientgo.String(\"Feature Request\"),\n Container: apiclientgo.String(\"container\"),\n ParentID: apiclientgo.String(\"JIRA_EN-1337\"),\n MimeType: apiclientgo.String(\"mimeType\"),\n DocumentID: apiclientgo.String(\"documentId\"),\n CreateTime: types.MustNewTimeFromString(\"2000-01-23T04:56:07.000Z\"),\n UpdateTime: types.MustNewTimeFromString(\"2000-01-23T04:56:07.000Z\"),\n Author: &components.Person{\n Name: \"name\",\n ObfuscatedID: \"\",\n },\n Components: []string{\n \"Backend\",\n \"Networking\",\n },\n Status: apiclientgo.String(\"[\\\"Done\\\"]\"),\n CustomData: map[string]components.CustomDataValue{\n \"someCustomField\": components.CustomDataValue{},\n },\n },\n },\n },\n ItemType: components.CollectionItemItemTypeText,\n },\n components.CollectionItem{\n CollectionID: 213025,\n CreatedBy: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n Document: &components.Document{\n Metadata: &components.DocumentMetadata{\n Datasource: apiclientgo.String(\"datasource\"),\n ObjectType: apiclientgo.String(\"Feature Request\"),\n Container: apiclientgo.String(\"container\"),\n ParentID: apiclientgo.String(\"JIRA_EN-1337\"),\n MimeType: apiclientgo.String(\"mimeType\"),\n DocumentID: apiclientgo.String(\"documentId\"),\n CreateTime: types.MustNewTimeFromString(\"2000-01-23T04:56:07.000Z\"),\n UpdateTime: types.MustNewTimeFromString(\"2000-01-23T04:56:07.000Z\"),\n Author: &components.Person{\n Name: \"name\",\n ObfuscatedID: \"\",\n },\n Components: []string{\n \"Backend\",\n \"Networking\",\n },\n Status: apiclientgo.String(\"[\\\"Done\\\"]\"),\n CustomData: map[string]components.CustomDataValue{\n \"someCustomField\": components.CustomDataValue{},\n },\n },\n },\n Shortcut: &components.Shortcut{\n InputAlias: \"\",\n CreatedBy: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n UpdatedBy: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n DestinationDocument: &components.Document{\n Metadata: &components.DocumentMetadata{\n Datasource: apiclientgo.String(\"datasource\"),\n ObjectType: apiclientgo.String(\"Feature Request\"),\n Container: apiclientgo.String(\"container\"),\n ParentID: apiclientgo.String(\"JIRA_EN-1337\"),\n MimeType: apiclientgo.String(\"mimeType\"),\n DocumentID: apiclientgo.String(\"documentId\"),\n CreateTime: types.MustNewTimeFromString(\"2000-01-23T04:56:07.000Z\"),\n UpdateTime: types.MustNewTimeFromString(\"2000-01-23T04:56:07.000Z\"),\n Author: &components.Person{\n Name: \"name\",\n ObfuscatedID: \"\",\n },\n Components: []string{\n \"Backend\",\n \"Networking\",\n },\n Status: apiclientgo.String(\"[\\\"Done\\\"]\"),\n CustomData: map[string]components.CustomDataValue{\n \"someCustomField\": components.CustomDataValue{},\n },\n },\n },\n },\n ItemType: components.CollectionItemItemTypeText,\n },\n },\n Children: []components.Collection{\n components.Collection{\n Name: \"\",\n Description: \"likewise blindly mooch travel pinion\",\n AudienceFilters: []components.FacetFilter{\n components.FacetFilter{\n FieldName: apiclientgo.String(\"type\"),\n Values: []components.FacetFilterValue{\n components.FacetFilterValue{\n Value: apiclientgo.String(\"Spreadsheet\"),\n RelationType: components.RelationTypeEquals.ToPointer(),\n },\n components.FacetFilterValue{\n Value: apiclientgo.String(\"Presentation\"),\n RelationType: components.RelationTypeEquals.ToPointer(),\n },\n },\n },\n },\n ID: 184689,\n Creator: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n UpdatedBy: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n },\n components.Collection{\n Name: \"\",\n Description: \"likewise blindly mooch travel pinion\",\n AudienceFilters: []components.FacetFilter{\n components.FacetFilter{\n FieldName: apiclientgo.String(\"type\"),\n Values: []components.FacetFilterValue{\n components.FacetFilterValue{\n Value: apiclientgo.String(\"Spreadsheet\"),\n RelationType: components.RelationTypeEquals.ToPointer(),\n },\n components.FacetFilterValue{\n Value: apiclientgo.String(\"Presentation\"),\n RelationType: components.RelationTypeEquals.ToPointer(),\n },\n },\n },\n },\n ID: 184689,\n Creator: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n UpdatedBy: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n },\n components.Collection{\n Name: \"\",\n Description: \"likewise blindly mooch travel pinion\",\n AudienceFilters: []components.FacetFilter{\n components.FacetFilter{\n FieldName: apiclientgo.String(\"type\"),\n Values: []components.FacetFilterValue{\n components.FacetFilterValue{\n Value: apiclientgo.String(\"Spreadsheet\"),\n RelationType: components.RelationTypeEquals.ToPointer(),\n },\n components.FacetFilterValue{\n Value: apiclientgo.String(\"Presentation\"),\n RelationType: components.RelationTypeEquals.ToPointer(),\n },\n },\n },\n },\n ID: 184689,\n Creator: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n UpdatedBy: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n },\n },\n },\n components.Collection{\n Name: \"\",\n Description: \"thunderbolt acidly warmly hence zowie\",\n AudienceFilters: []components.FacetFilter{\n components.FacetFilter{\n FieldName: apiclientgo.String(\"type\"),\n Values: []components.FacetFilterValue{\n components.FacetFilterValue{\n Value: apiclientgo.String(\"Spreadsheet\"),\n RelationType: components.RelationTypeEquals.ToPointer(),\n },\n components.FacetFilterValue{\n Value: apiclientgo.String(\"Presentation\"),\n RelationType: components.RelationTypeEquals.ToPointer(),\n },\n },\n },\n },\n ID: 416180,\n Creator: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n UpdatedBy: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n Items: []components.CollectionItem{\n components.CollectionItem{\n CollectionID: 213025,\n CreatedBy: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n Document: &components.Document{\n Metadata: &components.DocumentMetadata{\n Datasource: apiclientgo.String(\"datasource\"),\n ObjectType: apiclientgo.String(\"Feature Request\"),\n Container: apiclientgo.String(\"container\"),\n ParentID: apiclientgo.String(\"JIRA_EN-1337\"),\n MimeType: apiclientgo.String(\"mimeType\"),\n DocumentID: apiclientgo.String(\"documentId\"),\n CreateTime: types.MustNewTimeFromString(\"2000-01-23T04:56:07.000Z\"),\n UpdateTime: types.MustNewTimeFromString(\"2000-01-23T04:56:07.000Z\"),\n Author: &components.Person{\n Name: \"name\",\n ObfuscatedID: \"\",\n },\n Components: []string{\n \"Backend\",\n \"Networking\",\n },\n Status: apiclientgo.String(\"[\\\"Done\\\"]\"),\n CustomData: map[string]components.CustomDataValue{\n \"someCustomField\": components.CustomDataValue{},\n },\n },\n },\n Shortcut: &components.Shortcut{\n InputAlias: \"\",\n CreatedBy: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n UpdatedBy: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n DestinationDocument: &components.Document{\n Metadata: &components.DocumentMetadata{\n Datasource: apiclientgo.String(\"datasource\"),\n ObjectType: apiclientgo.String(\"Feature Request\"),\n Container: apiclientgo.String(\"container\"),\n ParentID: apiclientgo.String(\"JIRA_EN-1337\"),\n MimeType: apiclientgo.String(\"mimeType\"),\n DocumentID: apiclientgo.String(\"documentId\"),\n CreateTime: types.MustNewTimeFromString(\"2000-01-23T04:56:07.000Z\"),\n UpdateTime: types.MustNewTimeFromString(\"2000-01-23T04:56:07.000Z\"),\n Author: &components.Person{\n Name: \"name\",\n ObfuscatedID: \"\",\n },\n Components: []string{\n \"Backend\",\n \"Networking\",\n },\n Status: apiclientgo.String(\"[\\\"Done\\\"]\"),\n CustomData: map[string]components.CustomDataValue{\n \"someCustomField\": components.CustomDataValue{},\n },\n },\n },\n },\n ItemType: components.CollectionItemItemTypeText,\n },\n components.CollectionItem{\n CollectionID: 213025,\n CreatedBy: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n Document: &components.Document{\n Metadata: &components.DocumentMetadata{\n Datasource: apiclientgo.String(\"datasource\"),\n ObjectType: apiclientgo.String(\"Feature Request\"),\n Container: apiclientgo.String(\"container\"),\n ParentID: apiclientgo.String(\"JIRA_EN-1337\"),\n MimeType: apiclientgo.String(\"mimeType\"),\n DocumentID: apiclientgo.String(\"documentId\"),\n CreateTime: types.MustNewTimeFromString(\"2000-01-23T04:56:07.000Z\"),\n UpdateTime: types.MustNewTimeFromString(\"2000-01-23T04:56:07.000Z\"),\n Author: &components.Person{\n Name: \"name\",\n ObfuscatedID: \"\",\n },\n Components: []string{\n \"Backend\",\n \"Networking\",\n },\n Status: apiclientgo.String(\"[\\\"Done\\\"]\"),\n CustomData: map[string]components.CustomDataValue{\n \"someCustomField\": components.CustomDataValue{},\n },\n },\n },\n Shortcut: &components.Shortcut{\n InputAlias: \"\",\n CreatedBy: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n UpdatedBy: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n DestinationDocument: &components.Document{\n Metadata: &components.DocumentMetadata{\n Datasource: apiclientgo.String(\"datasource\"),\n ObjectType: apiclientgo.String(\"Feature Request\"),\n Container: apiclientgo.String(\"container\"),\n ParentID: apiclientgo.String(\"JIRA_EN-1337\"),\n MimeType: apiclientgo.String(\"mimeType\"),\n DocumentID: apiclientgo.String(\"documentId\"),\n CreateTime: types.MustNewTimeFromString(\"2000-01-23T04:56:07.000Z\"),\n UpdateTime: types.MustNewTimeFromString(\"2000-01-23T04:56:07.000Z\"),\n Author: &components.Person{\n Name: \"name\",\n ObfuscatedID: \"\",\n },\n Components: []string{\n \"Backend\",\n \"Networking\",\n },\n Status: apiclientgo.String(\"[\\\"Done\\\"]\"),\n CustomData: map[string]components.CustomDataValue{\n \"someCustomField\": components.CustomDataValue{},\n },\n },\n },\n },\n ItemType: components.CollectionItemItemTypeText,\n },\n components.CollectionItem{\n CollectionID: 213025,\n CreatedBy: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n Document: &components.Document{\n Metadata: &components.DocumentMetadata{\n Datasource: apiclientgo.String(\"datasource\"),\n ObjectType: apiclientgo.String(\"Feature Request\"),\n Container: apiclientgo.String(\"container\"),\n ParentID: apiclientgo.String(\"JIRA_EN-1337\"),\n MimeType: apiclientgo.String(\"mimeType\"),\n DocumentID: apiclientgo.String(\"documentId\"),\n CreateTime: types.MustNewTimeFromString(\"2000-01-23T04:56:07.000Z\"),\n UpdateTime: types.MustNewTimeFromString(\"2000-01-23T04:56:07.000Z\"),\n Author: &components.Person{\n Name: \"name\",\n ObfuscatedID: \"\",\n },\n Components: []string{\n \"Backend\",\n \"Networking\",\n },\n Status: apiclientgo.String(\"[\\\"Done\\\"]\"),\n CustomData: map[string]components.CustomDataValue{\n \"someCustomField\": components.CustomDataValue{},\n },\n },\n },\n Shortcut: &components.Shortcut{\n InputAlias: \"\",\n CreatedBy: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n UpdatedBy: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n DestinationDocument: &components.Document{\n Metadata: &components.DocumentMetadata{\n Datasource: apiclientgo.String(\"datasource\"),\n ObjectType: apiclientgo.String(\"Feature Request\"),\n Container: apiclientgo.String(\"container\"),\n ParentID: apiclientgo.String(\"JIRA_EN-1337\"),\n MimeType: apiclientgo.String(\"mimeType\"),\n DocumentID: apiclientgo.String(\"documentId\"),\n CreateTime: types.MustNewTimeFromString(\"2000-01-23T04:56:07.000Z\"),\n UpdateTime: types.MustNewTimeFromString(\"2000-01-23T04:56:07.000Z\"),\n Author: &components.Person{\n Name: \"name\",\n ObfuscatedID: \"\",\n },\n Components: []string{\n \"Backend\",\n \"Networking\",\n },\n Status: apiclientgo.String(\"[\\\"Done\\\"]\"),\n CustomData: map[string]components.CustomDataValue{\n \"someCustomField\": components.CustomDataValue{},\n },\n },\n },\n },\n ItemType: components.CollectionItemItemTypeText,\n },\n },\n Children: []components.Collection{\n components.Collection{\n Name: \"\",\n Description: \"likewise blindly mooch travel pinion\",\n AudienceFilters: []components.FacetFilter{\n components.FacetFilter{\n FieldName: apiclientgo.String(\"type\"),\n Values: []components.FacetFilterValue{\n components.FacetFilterValue{\n Value: apiclientgo.String(\"Spreadsheet\"),\n RelationType: components.RelationTypeEquals.ToPointer(),\n },\n components.FacetFilterValue{\n Value: apiclientgo.String(\"Presentation\"),\n RelationType: components.RelationTypeEquals.ToPointer(),\n },\n },\n },\n },\n ID: 184689,\n Creator: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n UpdatedBy: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n },\n components.Collection{\n Name: \"\",\n Description: \"likewise blindly mooch travel pinion\",\n AudienceFilters: []components.FacetFilter{\n components.FacetFilter{\n FieldName: apiclientgo.String(\"type\"),\n Values: []components.FacetFilterValue{\n components.FacetFilterValue{\n Value: apiclientgo.String(\"Spreadsheet\"),\n RelationType: components.RelationTypeEquals.ToPointer(),\n },\n components.FacetFilterValue{\n Value: apiclientgo.String(\"Presentation\"),\n RelationType: components.RelationTypeEquals.ToPointer(),\n },\n },\n },\n },\n ID: 184689,\n Creator: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n UpdatedBy: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n },\n components.Collection{\n Name: \"\",\n Description: \"likewise blindly mooch travel pinion\",\n AudienceFilters: []components.FacetFilter{\n components.FacetFilter{\n FieldName: apiclientgo.String(\"type\"),\n Values: []components.FacetFilterValue{\n components.FacetFilterValue{\n Value: apiclientgo.String(\"Spreadsheet\"),\n RelationType: components.RelationTypeEquals.ToPointer(),\n },\n components.FacetFilterValue{\n Value: apiclientgo.String(\"Presentation\"),\n RelationType: components.RelationTypeEquals.ToPointer(),\n },\n },\n },\n },\n ID: 184689,\n Creator: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n UpdatedBy: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n },\n },\n },\n },\n SourceDocument: &components.Document{\n Metadata: &components.DocumentMetadata{\n Datasource: apiclientgo.String(\"datasource\"),\n ObjectType: apiclientgo.String(\"Feature Request\"),\n Container: apiclientgo.String(\"container\"),\n ParentID: apiclientgo.String(\"JIRA_EN-1337\"),\n MimeType: apiclientgo.String(\"mimeType\"),\n DocumentID: apiclientgo.String(\"documentId\"),\n CreateTime: types.MustNewTimeFromString(\"2000-01-23T04:56:07.000Z\"),\n UpdateTime: types.MustNewTimeFromString(\"2000-01-23T04:56:07.000Z\"),\n Author: &components.Person{\n Name: \"name\",\n ObfuscatedID: \"\",\n },\n Components: []string{\n \"Backend\",\n \"Networking\",\n },\n Status: apiclientgo.String(\"[\\\"Done\\\"]\"),\n CustomData: map[string]components.CustomDataValue{\n \"someCustomField\": components.CustomDataValue{},\n },\n },\n },\n },\n ExtractedQnA: &components.ExtractedQnA{\n QuestionResult: &components.SearchResult{\n Title: apiclientgo.String(\"title\"),\n URL: \"https://example.com/foo/bar\",\n NativeAppURL: apiclientgo.String(\"slack://foo/bar\"),\n Snippets: []components.SearchResultSnippet{\n components.SearchResultSnippet{\n Snippet: \"snippet\",\n MimeType: apiclientgo.String(\"mimeType\"),\n },\n },\n MustIncludeSuggestions: &components.QuerySuggestionList{},\n },\n },\n Meeting: &components.Meeting{\n Attendees: &components.CalendarAttendees{\n People: []components.CalendarAttendee{\n components.CalendarAttendee{\n Person: components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n GroupAttendees: []components.CalendarAttendee{\n components.CalendarAttendee{\n Person: components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n },\n components.CalendarAttendee{\n Person: components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n },\n },\n },\n components.CalendarAttendee{\n Person: components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n GroupAttendees: []components.CalendarAttendee{\n components.CalendarAttendee{\n Person: components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n },\n components.CalendarAttendee{\n Person: components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n },\n },\n },\n },\n },\n },\n Collection: &components.Collection{\n Name: \"\",\n Description: \"mismatch noisily jive worth meh following hmph analyse\",\n AudienceFilters: []components.FacetFilter{\n components.FacetFilter{\n FieldName: apiclientgo.String(\"type\"),\n Values: []components.FacetFilterValue{\n components.FacetFilterValue{\n Value: apiclientgo.String(\"Spreadsheet\"),\n RelationType: components.RelationTypeEquals.ToPointer(),\n },\n components.FacetFilterValue{\n Value: apiclientgo.String(\"Presentation\"),\n RelationType: components.RelationTypeEquals.ToPointer(),\n },\n },\n },\n },\n ID: 5797,\n Creator: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n UpdatedBy: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n },\n AnswerBoard: &components.AnswerBoard{\n Name: \"\",\n Description: \"pulse yum shakily notwithstanding faithfully boohoo urgently exterior before um\",\n AudienceFilters: []components.FacetFilter{\n components.FacetFilter{\n FieldName: apiclientgo.String(\"type\"),\n Values: []components.FacetFilterValue{\n components.FacetFilterValue{\n Value: apiclientgo.String(\"Spreadsheet\"),\n RelationType: components.RelationTypeEquals.ToPointer(),\n },\n components.FacetFilterValue{\n Value: apiclientgo.String(\"Presentation\"),\n RelationType: components.RelationTypeEquals.ToPointer(),\n },\n },\n },\n },\n ID: 609567,\n Creator: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n UpdatedBy: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n },\n Code: &components.Code{\n RepoName: apiclientgo.String(\"scio\"),\n FileName: apiclientgo.String(\"README.md\"),\n },\n Shortcut: &components.Shortcut{\n InputAlias: \"\",\n CreatedBy: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n UpdatedBy: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n DestinationDocument: &components.Document{\n Metadata: &components.DocumentMetadata{\n Datasource: apiclientgo.String(\"datasource\"),\n ObjectType: apiclientgo.String(\"Feature Request\"),\n Container: apiclientgo.String(\"container\"),\n ParentID: apiclientgo.String(\"JIRA_EN-1337\"),\n MimeType: apiclientgo.String(\"mimeType\"),\n DocumentID: apiclientgo.String(\"documentId\"),\n CreateTime: types.MustNewTimeFromString(\"2000-01-23T04:56:07.000Z\"),\n UpdateTime: types.MustNewTimeFromString(\"2000-01-23T04:56:07.000Z\"),\n Author: &components.Person{\n Name: \"name\",\n ObfuscatedID: \"\",\n },\n Components: []string{\n \"Backend\",\n \"Networking\",\n },\n Status: apiclientgo.String(\"[\\\"Done\\\"]\"),\n CustomData: map[string]components.CustomDataValue{\n \"someCustomField\": components.CustomDataValue{},\n },\n },\n },\n },\n QuerySuggestions: &components.QuerySuggestionList{\n Suggestions: []components.QuerySuggestion{\n components.QuerySuggestion{\n Query: \"app:github type:pull author:mortimer\",\n Label: apiclientgo.String(\"Mortimer's PRs\"),\n Datasource: apiclientgo.String(\"github\"),\n },\n },\n Person: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n },\n RelatedDocuments: []components.RelatedDocuments{\n components.RelatedDocuments{\n QuerySuggestion: &components.QuerySuggestion{\n Query: \"app:github type:pull author:mortimer\",\n Label: apiclientgo.String(\"Mortimer's PRs\"),\n Datasource: apiclientgo.String(\"github\"),\n },\n Results: []components.SearchResult{\n components.SearchResult{\n Title: apiclientgo.String(\"title\"),\n URL: \"https://example.com/foo/bar\",\n NativeAppURL: apiclientgo.String(\"slack://foo/bar\"),\n Snippets: []components.SearchResultSnippet{\n components.SearchResultSnippet{\n Snippet: \"snippet\",\n MimeType: apiclientgo.String(\"mimeType\"),\n },\n },\n MustIncludeSuggestions: &components.QuerySuggestionList{},\n },\n },\n },\n },\n RelatedQuestion: &components.RelatedQuestion{\n Ranges: []components.TextRange{\n components.TextRange{\n StartIndex: 896307,\n Document: &components.Document{\n Metadata: &components.DocumentMetadata{\n Datasource: apiclientgo.String(\"datasource\"),\n ObjectType: apiclientgo.String(\"Feature Request\"),\n Container: apiclientgo.String(\"container\"),\n ParentID: apiclientgo.String(\"JIRA_EN-1337\"),\n MimeType: apiclientgo.String(\"mimeType\"),\n DocumentID: apiclientgo.String(\"documentId\"),\n CreateTime: types.MustNewTimeFromString(\"2000-01-23T04:56:07.000Z\"),\n UpdateTime: types.MustNewTimeFromString(\"2000-01-23T04:56:07.000Z\"),\n Author: &components.Person{\n Name: \"name\",\n ObfuscatedID: \"\",\n },\n Components: []string{\n \"Backend\",\n \"Networking\",\n },\n Status: apiclientgo.String(\"[\\\"Done\\\"]\"),\n CustomData: map[string]components.CustomDataValue{\n \"someCustomField\": components.CustomDataValue{},\n },\n },\n },\n },\n components.TextRange{\n StartIndex: 896307,\n Document: &components.Document{\n Metadata: &components.DocumentMetadata{\n Datasource: apiclientgo.String(\"datasource\"),\n ObjectType: apiclientgo.String(\"Feature Request\"),\n Container: apiclientgo.String(\"container\"),\n ParentID: apiclientgo.String(\"JIRA_EN-1337\"),\n MimeType: apiclientgo.String(\"mimeType\"),\n DocumentID: apiclientgo.String(\"documentId\"),\n CreateTime: types.MustNewTimeFromString(\"2000-01-23T04:56:07.000Z\"),\n UpdateTime: types.MustNewTimeFromString(\"2000-01-23T04:56:07.000Z\"),\n Author: &components.Person{\n Name: \"name\",\n ObfuscatedID: \"\",\n },\n Components: []string{\n \"Backend\",\n \"Networking\",\n },\n Status: apiclientgo.String(\"[\\\"Done\\\"]\"),\n CustomData: map[string]components.CustomDataValue{\n \"someCustomField\": components.CustomDataValue{},\n },\n },\n },\n },\n },\n },\n },\n },\n components.StructuredTextItem{\n Link: apiclientgo.String(\"https://en.wikipedia.org/wiki/Diffuse_sky_radiation\"),\n Document: &components.Document{\n Metadata: &components.DocumentMetadata{\n Datasource: apiclientgo.String(\"datasource\"),\n ObjectType: apiclientgo.String(\"Feature Request\"),\n Container: apiclientgo.String(\"container\"),\n ParentID: apiclientgo.String(\"JIRA_EN-1337\"),\n MimeType: apiclientgo.String(\"mimeType\"),\n DocumentID: apiclientgo.String(\"documentId\"),\n CreateTime: types.MustNewTimeFromString(\"2000-01-23T04:56:07.000Z\"),\n UpdateTime: types.MustNewTimeFromString(\"2000-01-23T04:56:07.000Z\"),\n Author: &components.Person{\n Name: \"name\",\n ObfuscatedID: \"\",\n },\n Components: []string{\n \"Backend\",\n \"Networking\",\n },\n Status: apiclientgo.String(\"[\\\"Done\\\"]\"),\n CustomData: map[string]components.CustomDataValue{\n \"someCustomField\": components.CustomDataValue{},\n },\n },\n },\n Text: apiclientgo.String(\"Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue.\"),\n StructuredResult: &components.StructuredResult{\n Document: &components.Document{\n Metadata: &components.DocumentMetadata{\n Datasource: apiclientgo.String(\"datasource\"),\n ObjectType: apiclientgo.String(\"Feature Request\"),\n Container: apiclientgo.String(\"container\"),\n ParentID: apiclientgo.String(\"JIRA_EN-1337\"),\n MimeType: apiclientgo.String(\"mimeType\"),\n DocumentID: apiclientgo.String(\"documentId\"),\n CreateTime: types.MustNewTimeFromString(\"2000-01-23T04:56:07.000Z\"),\n UpdateTime: types.MustNewTimeFromString(\"2000-01-23T04:56:07.000Z\"),\n Author: &components.Person{\n Name: \"name\",\n ObfuscatedID: \"\",\n },\n Components: []string{\n \"Backend\",\n \"Networking\",\n },\n Status: apiclientgo.String(\"[\\\"Done\\\"]\"),\n CustomData: map[string]components.CustomDataValue{\n \"someCustomField\": components.CustomDataValue{},\n },\n },\n },\n Person: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n Customer: &components.Customer{\n ID: \"\",\n Company: components.Company{\n Name: \"\",\n Location: apiclientgo.String(\"New York City\"),\n Industry: apiclientgo.String(\"Finances\"),\n About: apiclientgo.String(\"Financial, software, data, and media company headquartered in Midtown Manhattan, New York City\"),\n },\n Poc: []components.Person{\n components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n },\n MergedCustomers: []components.Customer{\n components.Customer{\n ID: \"\",\n Company: components.Company{\n Name: \"\",\n Location: apiclientgo.String(\"New York City\"),\n Industry: apiclientgo.String(\"Finances\"),\n About: apiclientgo.String(\"Financial, software, data, and media company headquartered in Midtown Manhattan, New York City\"),\n },\n Notes: apiclientgo.String(\"CIO is interested in trying out the product.\"),\n },\n components.Customer{\n ID: \"\",\n Company: components.Company{\n Name: \"\",\n Location: apiclientgo.String(\"New York City\"),\n Industry: apiclientgo.String(\"Finances\"),\n About: apiclientgo.String(\"Financial, software, data, and media company headquartered in Midtown Manhattan, New York City\"),\n },\n Notes: apiclientgo.String(\"CIO is interested in trying out the product.\"),\n },\n components.Customer{\n ID: \"\",\n Company: components.Company{\n Name: \"\",\n Location: apiclientgo.String(\"New York City\"),\n Industry: apiclientgo.String(\"Finances\"),\n About: apiclientgo.String(\"Financial, software, data, and media company headquartered in Midtown Manhattan, New York City\"),\n },\n Notes: apiclientgo.String(\"CIO is interested in trying out the product.\"),\n },\n },\n Notes: apiclientgo.String(\"CIO is interested in trying out the product.\"),\n },\n Team: &components.Team{\n ID: \"\",\n Name: \"\",\n Members: []components.PersonToTeamRelationship{\n components.PersonToTeamRelationship{\n Person: components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n },\n components.PersonToTeamRelationship{\n Person: components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n },\n },\n CustomFields: []components.CustomFieldData{\n components.CustomFieldData{\n Label: \"\",\n Values: []components.CustomFieldValue{},\n },\n components.CustomFieldData{\n Label: \"\",\n Values: []components.CustomFieldValue{},\n },\n },\n DatasourceProfiles: []components.DatasourceProfile{\n components.DatasourceProfile{\n Datasource: \"github\",\n Handle: \"\",\n },\n components.DatasourceProfile{\n Datasource: \"github\",\n Handle: \"\",\n },\n components.DatasourceProfile{\n Datasource: \"github\",\n Handle: \"\",\n },\n },\n },\n CustomEntity: &components.CustomEntity{\n Roles: []components.UserRoleSpecification{\n components.UserRoleSpecification{\n Person: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n Role: components.UserRoleEditor,\n },\n components.UserRoleSpecification{\n Person: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n Role: components.UserRoleEditor,\n },\n },\n },\n Answer: &components.Answer{\n ID: 3,\n DocID: apiclientgo.String(\"ANSWERS_answer_3\"),\n Question: apiclientgo.String(\"Why is the sky blue?\"),\n BodyText: apiclientgo.String(\"From https://en.wikipedia.org/wiki/Diffuse_sky_radiation, the sky is blue because blue light is more strongly scattered than longer-wavelength light.\"),\n AudienceFilters: []components.FacetFilter{\n components.FacetFilter{\n FieldName: apiclientgo.String(\"type\"),\n Values: []components.FacetFilterValue{\n components.FacetFilterValue{\n Value: apiclientgo.String(\"Spreadsheet\"),\n RelationType: components.RelationTypeEquals.ToPointer(),\n },\n components.FacetFilterValue{\n Value: apiclientgo.String(\"Presentation\"),\n RelationType: components.RelationTypeEquals.ToPointer(),\n },\n },\n },\n },\n AddedRoles: []components.UserRoleSpecification{\n components.UserRoleSpecification{\n Person: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n Role: components.UserRoleOwner,\n },\n components.UserRoleSpecification{\n Person: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n Role: components.UserRoleOwner,\n },\n },\n RemovedRoles: []components.UserRoleSpecification{\n components.UserRoleSpecification{\n Person: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n Role: components.UserRoleAnswerModerator,\n },\n components.UserRoleSpecification{\n Person: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n Role: components.UserRoleAnswerModerator,\n },\n components.UserRoleSpecification{\n Person: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n Role: components.UserRoleAnswerModerator,\n },\n },\n Likes: &components.AnswerLikes{\n LikedBy: []components.AnswerLike{\n components.AnswerLike{\n User: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n },\n },\n LikedByUser: true,\n NumLikes: 38608,\n },\n Author: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n UpdatedBy: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n Verification: &components.Verification{\n State: components.StateDeprecated,\n Metadata: &components.VerificationMetadata{\n LastVerifier: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n Document: &components.Document{\n Metadata: &components.DocumentMetadata{\n Datasource: apiclientgo.String(\"datasource\"),\n ObjectType: apiclientgo.String(\"Feature Request\"),\n Container: apiclientgo.String(\"container\"),\n ParentID: apiclientgo.String(\"JIRA_EN-1337\"),\n MimeType: apiclientgo.String(\"mimeType\"),\n DocumentID: apiclientgo.String(\"documentId\"),\n CreateTime: types.MustNewTimeFromString(\"2000-01-23T04:56:07.000Z\"),\n UpdateTime: types.MustNewTimeFromString(\"2000-01-23T04:56:07.000Z\"),\n Author: &components.Person{\n Name: \"name\",\n ObfuscatedID: \"\",\n },\n Components: []string{\n \"Backend\",\n \"Networking\",\n },\n Status: apiclientgo.String(\"[\\\"Done\\\"]\"),\n CustomData: map[string]components.CustomDataValue{\n \"someCustomField\": components.CustomDataValue{},\n },\n },\n },\n Reminders: []components.Reminder{\n components.Reminder{\n Assignee: components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n Requestor: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n RemindAt: 735135,\n },\n components.Reminder{\n Assignee: components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n Requestor: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n RemindAt: 735135,\n },\n },\n LastReminder: &components.Reminder{\n Assignee: components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n Requestor: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n RemindAt: 528697,\n },\n CandidateVerifiers: []components.Person{\n components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n },\n },\n },\n Board: &components.AnswerBoard{\n Name: \"\",\n Description: \"treasure phrase meaty\",\n AudienceFilters: []components.FacetFilter{\n components.FacetFilter{\n FieldName: apiclientgo.String(\"type\"),\n Values: []components.FacetFilterValue{\n components.FacetFilterValue{\n Value: apiclientgo.String(\"Spreadsheet\"),\n RelationType: components.RelationTypeEquals.ToPointer(),\n },\n components.FacetFilterValue{\n Value: apiclientgo.String(\"Presentation\"),\n RelationType: components.RelationTypeEquals.ToPointer(),\n },\n },\n },\n },\n ID: 355296,\n Creator: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n UpdatedBy: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n },\n Collections: []components.Collection{\n components.Collection{\n Name: \"\",\n Description: \"thunderbolt acidly warmly hence zowie\",\n AudienceFilters: []components.FacetFilter{\n components.FacetFilter{\n FieldName: apiclientgo.String(\"type\"),\n Values: []components.FacetFilterValue{\n components.FacetFilterValue{\n Value: apiclientgo.String(\"Spreadsheet\"),\n RelationType: components.RelationTypeEquals.ToPointer(),\n },\n components.FacetFilterValue{\n Value: apiclientgo.String(\"Presentation\"),\n RelationType: components.RelationTypeEquals.ToPointer(),\n },\n },\n },\n },\n ID: 416180,\n Creator: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n UpdatedBy: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n Items: []components.CollectionItem{\n components.CollectionItem{\n CollectionID: 213025,\n CreatedBy: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n Document: &components.Document{\n Metadata: &components.DocumentMetadata{\n Datasource: apiclientgo.String(\"datasource\"),\n ObjectType: apiclientgo.String(\"Feature Request\"),\n Container: apiclientgo.String(\"container\"),\n ParentID: apiclientgo.String(\"JIRA_EN-1337\"),\n MimeType: apiclientgo.String(\"mimeType\"),\n DocumentID: apiclientgo.String(\"documentId\"),\n CreateTime: types.MustNewTimeFromString(\"2000-01-23T04:56:07.000Z\"),\n UpdateTime: types.MustNewTimeFromString(\"2000-01-23T04:56:07.000Z\"),\n Author: &components.Person{\n Name: \"name\",\n ObfuscatedID: \"\",\n },\n Components: []string{\n \"Backend\",\n \"Networking\",\n },\n Status: apiclientgo.String(\"[\\\"Done\\\"]\"),\n CustomData: map[string]components.CustomDataValue{\n \"someCustomField\": components.CustomDataValue{},\n },\n },\n },\n Shortcut: &components.Shortcut{\n InputAlias: \"\",\n CreatedBy: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n UpdatedBy: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n DestinationDocument: &components.Document{\n Metadata: &components.DocumentMetadata{\n Datasource: apiclientgo.String(\"datasource\"),\n ObjectType: apiclientgo.String(\"Feature Request\"),\n Container: apiclientgo.String(\"container\"),\n ParentID: apiclientgo.String(\"JIRA_EN-1337\"),\n MimeType: apiclientgo.String(\"mimeType\"),\n DocumentID: apiclientgo.String(\"documentId\"),\n CreateTime: types.MustNewTimeFromString(\"2000-01-23T04:56:07.000Z\"),\n UpdateTime: types.MustNewTimeFromString(\"2000-01-23T04:56:07.000Z\"),\n Author: &components.Person{\n Name: \"name\",\n ObfuscatedID: \"\",\n },\n Components: []string{\n \"Backend\",\n \"Networking\",\n },\n Status: apiclientgo.String(\"[\\\"Done\\\"]\"),\n CustomData: map[string]components.CustomDataValue{\n \"someCustomField\": components.CustomDataValue{},\n },\n },\n },\n },\n ItemType: components.CollectionItemItemTypeText,\n },\n components.CollectionItem{\n CollectionID: 213025,\n CreatedBy: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n Document: &components.Document{\n Metadata: &components.DocumentMetadata{\n Datasource: apiclientgo.String(\"datasource\"),\n ObjectType: apiclientgo.String(\"Feature Request\"),\n Container: apiclientgo.String(\"container\"),\n ParentID: apiclientgo.String(\"JIRA_EN-1337\"),\n MimeType: apiclientgo.String(\"mimeType\"),\n DocumentID: apiclientgo.String(\"documentId\"),\n CreateTime: types.MustNewTimeFromString(\"2000-01-23T04:56:07.000Z\"),\n UpdateTime: types.MustNewTimeFromString(\"2000-01-23T04:56:07.000Z\"),\n Author: &components.Person{\n Name: \"name\",\n ObfuscatedID: \"\",\n },\n Components: []string{\n \"Backend\",\n \"Networking\",\n },\n Status: apiclientgo.String(\"[\\\"Done\\\"]\"),\n CustomData: map[string]components.CustomDataValue{\n \"someCustomField\": components.CustomDataValue{},\n },\n },\n },\n Shortcut: &components.Shortcut{\n InputAlias: \"\",\n CreatedBy: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n UpdatedBy: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n DestinationDocument: &components.Document{\n Metadata: &components.DocumentMetadata{\n Datasource: apiclientgo.String(\"datasource\"),\n ObjectType: apiclientgo.String(\"Feature Request\"),\n Container: apiclientgo.String(\"container\"),\n ParentID: apiclientgo.String(\"JIRA_EN-1337\"),\n MimeType: apiclientgo.String(\"mimeType\"),\n DocumentID: apiclientgo.String(\"documentId\"),\n CreateTime: types.MustNewTimeFromString(\"2000-01-23T04:56:07.000Z\"),\n UpdateTime: types.MustNewTimeFromString(\"2000-01-23T04:56:07.000Z\"),\n Author: &components.Person{\n Name: \"name\",\n ObfuscatedID: \"\",\n },\n Components: []string{\n \"Backend\",\n \"Networking\",\n },\n Status: apiclientgo.String(\"[\\\"Done\\\"]\"),\n CustomData: map[string]components.CustomDataValue{\n \"someCustomField\": components.CustomDataValue{},\n },\n },\n },\n },\n ItemType: components.CollectionItemItemTypeText,\n },\n components.CollectionItem{\n CollectionID: 213025,\n CreatedBy: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n Document: &components.Document{\n Metadata: &components.DocumentMetadata{\n Datasource: apiclientgo.String(\"datasource\"),\n ObjectType: apiclientgo.String(\"Feature Request\"),\n Container: apiclientgo.String(\"container\"),\n ParentID: apiclientgo.String(\"JIRA_EN-1337\"),\n MimeType: apiclientgo.String(\"mimeType\"),\n DocumentID: apiclientgo.String(\"documentId\"),\n CreateTime: types.MustNewTimeFromString(\"2000-01-23T04:56:07.000Z\"),\n UpdateTime: types.MustNewTimeFromString(\"2000-01-23T04:56:07.000Z\"),\n Author: &components.Person{\n Name: \"name\",\n ObfuscatedID: \"\",\n },\n Components: []string{\n \"Backend\",\n \"Networking\",\n },\n Status: apiclientgo.String(\"[\\\"Done\\\"]\"),\n CustomData: map[string]components.CustomDataValue{\n \"someCustomField\": components.CustomDataValue{},\n },\n },\n },\n Shortcut: &components.Shortcut{\n InputAlias: \"\",\n CreatedBy: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n UpdatedBy: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n DestinationDocument: &components.Document{\n Metadata: &components.DocumentMetadata{\n Datasource: apiclientgo.String(\"datasource\"),\n ObjectType: apiclientgo.String(\"Feature Request\"),\n Container: apiclientgo.String(\"container\"),\n ParentID: apiclientgo.String(\"JIRA_EN-1337\"),\n MimeType: apiclientgo.String(\"mimeType\"),\n DocumentID: apiclientgo.String(\"documentId\"),\n CreateTime: types.MustNewTimeFromString(\"2000-01-23T04:56:07.000Z\"),\n UpdateTime: types.MustNewTimeFromString(\"2000-01-23T04:56:07.000Z\"),\n Author: &components.Person{\n Name: \"name\",\n ObfuscatedID: \"\",\n },\n Components: []string{\n \"Backend\",\n \"Networking\",\n },\n Status: apiclientgo.String(\"[\\\"Done\\\"]\"),\n CustomData: map[string]components.CustomDataValue{\n \"someCustomField\": components.CustomDataValue{},\n },\n },\n },\n },\n ItemType: components.CollectionItemItemTypeText,\n },\n },\n Children: []components.Collection{\n components.Collection{\n Name: \"\",\n Description: \"likewise blindly mooch travel pinion\",\n AudienceFilters: []components.FacetFilter{\n components.FacetFilter{\n FieldName: apiclientgo.String(\"type\"),\n Values: []components.FacetFilterValue{\n components.FacetFilterValue{\n Value: apiclientgo.String(\"Spreadsheet\"),\n RelationType: components.RelationTypeEquals.ToPointer(),\n },\n components.FacetFilterValue{\n Value: apiclientgo.String(\"Presentation\"),\n RelationType: components.RelationTypeEquals.ToPointer(),\n },\n },\n },\n },\n ID: 184689,\n Creator: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n UpdatedBy: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n },\n components.Collection{\n Name: \"\",\n Description: \"likewise blindly mooch travel pinion\",\n AudienceFilters: []components.FacetFilter{\n components.FacetFilter{\n FieldName: apiclientgo.String(\"type\"),\n Values: []components.FacetFilterValue{\n components.FacetFilterValue{\n Value: apiclientgo.String(\"Spreadsheet\"),\n RelationType: components.RelationTypeEquals.ToPointer(),\n },\n components.FacetFilterValue{\n Value: apiclientgo.String(\"Presentation\"),\n RelationType: components.RelationTypeEquals.ToPointer(),\n },\n },\n },\n },\n ID: 184689,\n Creator: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n UpdatedBy: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n },\n components.Collection{\n Name: \"\",\n Description: \"likewise blindly mooch travel pinion\",\n AudienceFilters: []components.FacetFilter{\n components.FacetFilter{\n FieldName: apiclientgo.String(\"type\"),\n Values: []components.FacetFilterValue{\n components.FacetFilterValue{\n Value: apiclientgo.String(\"Spreadsheet\"),\n RelationType: components.RelationTypeEquals.ToPointer(),\n },\n components.FacetFilterValue{\n Value: apiclientgo.String(\"Presentation\"),\n RelationType: components.RelationTypeEquals.ToPointer(),\n },\n },\n },\n },\n ID: 184689,\n Creator: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n UpdatedBy: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n },\n },\n },\n components.Collection{\n Name: \"\",\n Description: \"thunderbolt acidly warmly hence zowie\",\n AudienceFilters: []components.FacetFilter{\n components.FacetFilter{\n FieldName: apiclientgo.String(\"type\"),\n Values: []components.FacetFilterValue{\n components.FacetFilterValue{\n Value: apiclientgo.String(\"Spreadsheet\"),\n RelationType: components.RelationTypeEquals.ToPointer(),\n },\n components.FacetFilterValue{\n Value: apiclientgo.String(\"Presentation\"),\n RelationType: components.RelationTypeEquals.ToPointer(),\n },\n },\n },\n },\n ID: 416180,\n Creator: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n UpdatedBy: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n Items: []components.CollectionItem{\n components.CollectionItem{\n CollectionID: 213025,\n CreatedBy: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n Document: &components.Document{\n Metadata: &components.DocumentMetadata{\n Datasource: apiclientgo.String(\"datasource\"),\n ObjectType: apiclientgo.String(\"Feature Request\"),\n Container: apiclientgo.String(\"container\"),\n ParentID: apiclientgo.String(\"JIRA_EN-1337\"),\n MimeType: apiclientgo.String(\"mimeType\"),\n DocumentID: apiclientgo.String(\"documentId\"),\n CreateTime: types.MustNewTimeFromString(\"2000-01-23T04:56:07.000Z\"),\n UpdateTime: types.MustNewTimeFromString(\"2000-01-23T04:56:07.000Z\"),\n Author: &components.Person{\n Name: \"name\",\n ObfuscatedID: \"\",\n },\n Components: []string{\n \"Backend\",\n \"Networking\",\n },\n Status: apiclientgo.String(\"[\\\"Done\\\"]\"),\n CustomData: map[string]components.CustomDataValue{\n \"someCustomField\": components.CustomDataValue{},\n },\n },\n },\n Shortcut: &components.Shortcut{\n InputAlias: \"\",\n CreatedBy: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n UpdatedBy: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n DestinationDocument: &components.Document{\n Metadata: &components.DocumentMetadata{\n Datasource: apiclientgo.String(\"datasource\"),\n ObjectType: apiclientgo.String(\"Feature Request\"),\n Container: apiclientgo.String(\"container\"),\n ParentID: apiclientgo.String(\"JIRA_EN-1337\"),\n MimeType: apiclientgo.String(\"mimeType\"),\n DocumentID: apiclientgo.String(\"documentId\"),\n CreateTime: types.MustNewTimeFromString(\"2000-01-23T04:56:07.000Z\"),\n UpdateTime: types.MustNewTimeFromString(\"2000-01-23T04:56:07.000Z\"),\n Author: &components.Person{\n Name: \"name\",\n ObfuscatedID: \"\",\n },\n Components: []string{\n \"Backend\",\n \"Networking\",\n },\n Status: apiclientgo.String(\"[\\\"Done\\\"]\"),\n CustomData: map[string]components.CustomDataValue{\n \"someCustomField\": components.CustomDataValue{},\n },\n },\n },\n },\n ItemType: components.CollectionItemItemTypeText,\n },\n components.CollectionItem{\n CollectionID: 213025,\n CreatedBy: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n Document: &components.Document{\n Metadata: &components.DocumentMetadata{\n Datasource: apiclientgo.String(\"datasource\"),\n ObjectType: apiclientgo.String(\"Feature Request\"),\n Container: apiclientgo.String(\"container\"),\n ParentID: apiclientgo.String(\"JIRA_EN-1337\"),\n MimeType: apiclientgo.String(\"mimeType\"),\n DocumentID: apiclientgo.String(\"documentId\"),\n CreateTime: types.MustNewTimeFromString(\"2000-01-23T04:56:07.000Z\"),\n UpdateTime: types.MustNewTimeFromString(\"2000-01-23T04:56:07.000Z\"),\n Author: &components.Person{\n Name: \"name\",\n ObfuscatedID: \"\",\n },\n Components: []string{\n \"Backend\",\n \"Networking\",\n },\n Status: apiclientgo.String(\"[\\\"Done\\\"]\"),\n CustomData: map[string]components.CustomDataValue{\n \"someCustomField\": components.CustomDataValue{},\n },\n },\n },\n Shortcut: &components.Shortcut{\n InputAlias: \"\",\n CreatedBy: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n UpdatedBy: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n DestinationDocument: &components.Document{\n Metadata: &components.DocumentMetadata{\n Datasource: apiclientgo.String(\"datasource\"),\n ObjectType: apiclientgo.String(\"Feature Request\"),\n Container: apiclientgo.String(\"container\"),\n ParentID: apiclientgo.String(\"JIRA_EN-1337\"),\n MimeType: apiclientgo.String(\"mimeType\"),\n DocumentID: apiclientgo.String(\"documentId\"),\n CreateTime: types.MustNewTimeFromString(\"2000-01-23T04:56:07.000Z\"),\n UpdateTime: types.MustNewTimeFromString(\"2000-01-23T04:56:07.000Z\"),\n Author: &components.Person{\n Name: \"name\",\n ObfuscatedID: \"\",\n },\n Components: []string{\n \"Backend\",\n \"Networking\",\n },\n Status: apiclientgo.String(\"[\\\"Done\\\"]\"),\n CustomData: map[string]components.CustomDataValue{\n \"someCustomField\": components.CustomDataValue{},\n },\n },\n },\n },\n ItemType: components.CollectionItemItemTypeText,\n },\n components.CollectionItem{\n CollectionID: 213025,\n CreatedBy: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n Document: &components.Document{\n Metadata: &components.DocumentMetadata{\n Datasource: apiclientgo.String(\"datasource\"),\n ObjectType: apiclientgo.String(\"Feature Request\"),\n Container: apiclientgo.String(\"container\"),\n ParentID: apiclientgo.String(\"JIRA_EN-1337\"),\n MimeType: apiclientgo.String(\"mimeType\"),\n DocumentID: apiclientgo.String(\"documentId\"),\n CreateTime: types.MustNewTimeFromString(\"2000-01-23T04:56:07.000Z\"),\n UpdateTime: types.MustNewTimeFromString(\"2000-01-23T04:56:07.000Z\"),\n Author: &components.Person{\n Name: \"name\",\n ObfuscatedID: \"\",\n },\n Components: []string{\n \"Backend\",\n \"Networking\",\n },\n Status: apiclientgo.String(\"[\\\"Done\\\"]\"),\n CustomData: map[string]components.CustomDataValue{\n \"someCustomField\": components.CustomDataValue{},\n },\n },\n },\n Shortcut: &components.Shortcut{\n InputAlias: \"\",\n CreatedBy: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n UpdatedBy: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n DestinationDocument: &components.Document{\n Metadata: &components.DocumentMetadata{\n Datasource: apiclientgo.String(\"datasource\"),\n ObjectType: apiclientgo.String(\"Feature Request\"),\n Container: apiclientgo.String(\"container\"),\n ParentID: apiclientgo.String(\"JIRA_EN-1337\"),\n MimeType: apiclientgo.String(\"mimeType\"),\n DocumentID: apiclientgo.String(\"documentId\"),\n CreateTime: types.MustNewTimeFromString(\"2000-01-23T04:56:07.000Z\"),\n UpdateTime: types.MustNewTimeFromString(\"2000-01-23T04:56:07.000Z\"),\n Author: &components.Person{\n Name: \"name\",\n ObfuscatedID: \"\",\n },\n Components: []string{\n \"Backend\",\n \"Networking\",\n },\n Status: apiclientgo.String(\"[\\\"Done\\\"]\"),\n CustomData: map[string]components.CustomDataValue{\n \"someCustomField\": components.CustomDataValue{},\n },\n },\n },\n },\n ItemType: components.CollectionItemItemTypeText,\n },\n },\n Children: []components.Collection{\n components.Collection{\n Name: \"\",\n Description: \"likewise blindly mooch travel pinion\",\n AudienceFilters: []components.FacetFilter{\n components.FacetFilter{\n FieldName: apiclientgo.String(\"type\"),\n Values: []components.FacetFilterValue{\n components.FacetFilterValue{\n Value: apiclientgo.String(\"Spreadsheet\"),\n RelationType: components.RelationTypeEquals.ToPointer(),\n },\n components.FacetFilterValue{\n Value: apiclientgo.String(\"Presentation\"),\n RelationType: components.RelationTypeEquals.ToPointer(),\n },\n },\n },\n },\n ID: 184689,\n Creator: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n UpdatedBy: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n },\n components.Collection{\n Name: \"\",\n Description: \"likewise blindly mooch travel pinion\",\n AudienceFilters: []components.FacetFilter{\n components.FacetFilter{\n FieldName: apiclientgo.String(\"type\"),\n Values: []components.FacetFilterValue{\n components.FacetFilterValue{\n Value: apiclientgo.String(\"Spreadsheet\"),\n RelationType: components.RelationTypeEquals.ToPointer(),\n },\n components.FacetFilterValue{\n Value: apiclientgo.String(\"Presentation\"),\n RelationType: components.RelationTypeEquals.ToPointer(),\n },\n },\n },\n },\n ID: 184689,\n Creator: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n UpdatedBy: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n },\n components.Collection{\n Name: \"\",\n Description: \"likewise blindly mooch travel pinion\",\n AudienceFilters: []components.FacetFilter{\n components.FacetFilter{\n FieldName: apiclientgo.String(\"type\"),\n Values: []components.FacetFilterValue{\n components.FacetFilterValue{\n Value: apiclientgo.String(\"Spreadsheet\"),\n RelationType: components.RelationTypeEquals.ToPointer(),\n },\n components.FacetFilterValue{\n Value: apiclientgo.String(\"Presentation\"),\n RelationType: components.RelationTypeEquals.ToPointer(),\n },\n },\n },\n },\n ID: 184689,\n Creator: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n UpdatedBy: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n },\n },\n },\n },\n SourceDocument: &components.Document{\n Metadata: &components.DocumentMetadata{\n Datasource: apiclientgo.String(\"datasource\"),\n ObjectType: apiclientgo.String(\"Feature Request\"),\n Container: apiclientgo.String(\"container\"),\n ParentID: apiclientgo.String(\"JIRA_EN-1337\"),\n MimeType: apiclientgo.String(\"mimeType\"),\n DocumentID: apiclientgo.String(\"documentId\"),\n CreateTime: types.MustNewTimeFromString(\"2000-01-23T04:56:07.000Z\"),\n UpdateTime: types.MustNewTimeFromString(\"2000-01-23T04:56:07.000Z\"),\n Author: &components.Person{\n Name: \"name\",\n ObfuscatedID: \"\",\n },\n Components: []string{\n \"Backend\",\n \"Networking\",\n },\n Status: apiclientgo.String(\"[\\\"Done\\\"]\"),\n CustomData: map[string]components.CustomDataValue{\n \"someCustomField\": components.CustomDataValue{},\n },\n },\n },\n },\n ExtractedQnA: &components.ExtractedQnA{\n QuestionResult: &components.SearchResult{\n Title: apiclientgo.String(\"title\"),\n URL: \"https://example.com/foo/bar\",\n NativeAppURL: apiclientgo.String(\"slack://foo/bar\"),\n Snippets: []components.SearchResultSnippet{\n components.SearchResultSnippet{\n Snippet: \"snippet\",\n MimeType: apiclientgo.String(\"mimeType\"),\n },\n },\n MustIncludeSuggestions: &components.QuerySuggestionList{},\n },\n },\n Meeting: &components.Meeting{\n Attendees: &components.CalendarAttendees{\n People: []components.CalendarAttendee{\n components.CalendarAttendee{\n Person: components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n GroupAttendees: []components.CalendarAttendee{\n components.CalendarAttendee{\n Person: components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n },\n components.CalendarAttendee{\n Person: components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n },\n },\n },\n components.CalendarAttendee{\n Person: components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n GroupAttendees: []components.CalendarAttendee{\n components.CalendarAttendee{\n Person: components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n },\n components.CalendarAttendee{\n Person: components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n },\n },\n },\n },\n },\n },\n Collection: &components.Collection{\n Name: \"\",\n Description: \"mismatch noisily jive worth meh following hmph analyse\",\n AudienceFilters: []components.FacetFilter{\n components.FacetFilter{\n FieldName: apiclientgo.String(\"type\"),\n Values: []components.FacetFilterValue{\n components.FacetFilterValue{\n Value: apiclientgo.String(\"Spreadsheet\"),\n RelationType: components.RelationTypeEquals.ToPointer(),\n },\n components.FacetFilterValue{\n Value: apiclientgo.String(\"Presentation\"),\n RelationType: components.RelationTypeEquals.ToPointer(),\n },\n },\n },\n },\n ID: 5797,\n Creator: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n UpdatedBy: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n },\n AnswerBoard: &components.AnswerBoard{\n Name: \"\",\n Description: \"pulse yum shakily notwithstanding faithfully boohoo urgently exterior before um\",\n AudienceFilters: []components.FacetFilter{\n components.FacetFilter{\n FieldName: apiclientgo.String(\"type\"),\n Values: []components.FacetFilterValue{\n components.FacetFilterValue{\n Value: apiclientgo.String(\"Spreadsheet\"),\n RelationType: components.RelationTypeEquals.ToPointer(),\n },\n components.FacetFilterValue{\n Value: apiclientgo.String(\"Presentation\"),\n RelationType: components.RelationTypeEquals.ToPointer(),\n },\n },\n },\n },\n ID: 609567,\n Creator: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n UpdatedBy: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n },\n Code: &components.Code{\n RepoName: apiclientgo.String(\"scio\"),\n FileName: apiclientgo.String(\"README.md\"),\n },\n Shortcut: &components.Shortcut{\n InputAlias: \"\",\n CreatedBy: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n UpdatedBy: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n DestinationDocument: &components.Document{\n Metadata: &components.DocumentMetadata{\n Datasource: apiclientgo.String(\"datasource\"),\n ObjectType: apiclientgo.String(\"Feature Request\"),\n Container: apiclientgo.String(\"container\"),\n ParentID: apiclientgo.String(\"JIRA_EN-1337\"),\n MimeType: apiclientgo.String(\"mimeType\"),\n DocumentID: apiclientgo.String(\"documentId\"),\n CreateTime: types.MustNewTimeFromString(\"2000-01-23T04:56:07.000Z\"),\n UpdateTime: types.MustNewTimeFromString(\"2000-01-23T04:56:07.000Z\"),\n Author: &components.Person{\n Name: \"name\",\n ObfuscatedID: \"\",\n },\n Components: []string{\n \"Backend\",\n \"Networking\",\n },\n Status: apiclientgo.String(\"[\\\"Done\\\"]\"),\n CustomData: map[string]components.CustomDataValue{\n \"someCustomField\": components.CustomDataValue{},\n },\n },\n },\n },\n QuerySuggestions: &components.QuerySuggestionList{\n Suggestions: []components.QuerySuggestion{\n components.QuerySuggestion{\n Query: \"app:github type:pull author:mortimer\",\n Label: apiclientgo.String(\"Mortimer's PRs\"),\n Datasource: apiclientgo.String(\"github\"),\n },\n },\n Person: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n },\n RelatedDocuments: []components.RelatedDocuments{\n components.RelatedDocuments{\n QuerySuggestion: &components.QuerySuggestion{\n Query: \"app:github type:pull author:mortimer\",\n Label: apiclientgo.String(\"Mortimer's PRs\"),\n Datasource: apiclientgo.String(\"github\"),\n },\n Results: []components.SearchResult{\n components.SearchResult{\n Title: apiclientgo.String(\"title\"),\n URL: \"https://example.com/foo/bar\",\n NativeAppURL: apiclientgo.String(\"slack://foo/bar\"),\n Snippets: []components.SearchResultSnippet{\n components.SearchResultSnippet{\n Snippet: \"snippet\",\n MimeType: apiclientgo.String(\"mimeType\"),\n },\n },\n MustIncludeSuggestions: &components.QuerySuggestionList{},\n },\n },\n },\n },\n RelatedQuestion: &components.RelatedQuestion{\n Ranges: []components.TextRange{\n components.TextRange{\n StartIndex: 896307,\n Document: &components.Document{\n Metadata: &components.DocumentMetadata{\n Datasource: apiclientgo.String(\"datasource\"),\n ObjectType: apiclientgo.String(\"Feature Request\"),\n Container: apiclientgo.String(\"container\"),\n ParentID: apiclientgo.String(\"JIRA_EN-1337\"),\n MimeType: apiclientgo.String(\"mimeType\"),\n DocumentID: apiclientgo.String(\"documentId\"),\n CreateTime: types.MustNewTimeFromString(\"2000-01-23T04:56:07.000Z\"),\n UpdateTime: types.MustNewTimeFromString(\"2000-01-23T04:56:07.000Z\"),\n Author: &components.Person{\n Name: \"name\",\n ObfuscatedID: \"\",\n },\n Components: []string{\n \"Backend\",\n \"Networking\",\n },\n Status: apiclientgo.String(\"[\\\"Done\\\"]\"),\n CustomData: map[string]components.CustomDataValue{\n \"someCustomField\": components.CustomDataValue{},\n },\n },\n },\n },\n components.TextRange{\n StartIndex: 896307,\n Document: &components.Document{\n Metadata: &components.DocumentMetadata{\n Datasource: apiclientgo.String(\"datasource\"),\n ObjectType: apiclientgo.String(\"Feature Request\"),\n Container: apiclientgo.String(\"container\"),\n ParentID: apiclientgo.String(\"JIRA_EN-1337\"),\n MimeType: apiclientgo.String(\"mimeType\"),\n DocumentID: apiclientgo.String(\"documentId\"),\n CreateTime: types.MustNewTimeFromString(\"2000-01-23T04:56:07.000Z\"),\n UpdateTime: types.MustNewTimeFromString(\"2000-01-23T04:56:07.000Z\"),\n Author: &components.Person{\n Name: \"name\",\n ObfuscatedID: \"\",\n },\n Components: []string{\n \"Backend\",\n \"Networking\",\n },\n Status: apiclientgo.String(\"[\\\"Done\\\"]\"),\n CustomData: map[string]components.CustomDataValue{\n \"someCustomField\": components.CustomDataValue{},\n },\n },\n },\n },\n },\n },\n },\n },\n components.StructuredTextItem{\n Link: apiclientgo.String(\"https://en.wikipedia.org/wiki/Diffuse_sky_radiation\"),\n Document: &components.Document{\n Metadata: &components.DocumentMetadata{\n Datasource: apiclientgo.String(\"datasource\"),\n ObjectType: apiclientgo.String(\"Feature Request\"),\n Container: apiclientgo.String(\"container\"),\n ParentID: apiclientgo.String(\"JIRA_EN-1337\"),\n MimeType: apiclientgo.String(\"mimeType\"),\n DocumentID: apiclientgo.String(\"documentId\"),\n CreateTime: types.MustNewTimeFromString(\"2000-01-23T04:56:07.000Z\"),\n UpdateTime: types.MustNewTimeFromString(\"2000-01-23T04:56:07.000Z\"),\n Author: &components.Person{\n Name: \"name\",\n ObfuscatedID: \"\",\n },\n Components: []string{\n \"Backend\",\n \"Networking\",\n },\n Status: apiclientgo.String(\"[\\\"Done\\\"]\"),\n CustomData: map[string]components.CustomDataValue{\n \"someCustomField\": components.CustomDataValue{},\n },\n },\n },\n Text: apiclientgo.String(\"Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue.\"),\n StructuredResult: &components.StructuredResult{\n Document: &components.Document{\n Metadata: &components.DocumentMetadata{\n Datasource: apiclientgo.String(\"datasource\"),\n ObjectType: apiclientgo.String(\"Feature Request\"),\n Container: apiclientgo.String(\"container\"),\n ParentID: apiclientgo.String(\"JIRA_EN-1337\"),\n MimeType: apiclientgo.String(\"mimeType\"),\n DocumentID: apiclientgo.String(\"documentId\"),\n CreateTime: types.MustNewTimeFromString(\"2000-01-23T04:56:07.000Z\"),\n UpdateTime: types.MustNewTimeFromString(\"2000-01-23T04:56:07.000Z\"),\n Author: &components.Person{\n Name: \"name\",\n ObfuscatedID: \"\",\n },\n Components: []string{\n \"Backend\",\n \"Networking\",\n },\n Status: apiclientgo.String(\"[\\\"Done\\\"]\"),\n CustomData: map[string]components.CustomDataValue{\n \"someCustomField\": components.CustomDataValue{},\n },\n },\n },\n Person: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n Customer: &components.Customer{\n ID: \"\",\n Company: components.Company{\n Name: \"\",\n Location: apiclientgo.String(\"New York City\"),\n Industry: apiclientgo.String(\"Finances\"),\n About: apiclientgo.String(\"Financial, software, data, and media company headquartered in Midtown Manhattan, New York City\"),\n },\n Poc: []components.Person{\n components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n },\n MergedCustomers: []components.Customer{\n components.Customer{\n ID: \"\",\n Company: components.Company{\n Name: \"\",\n Location: apiclientgo.String(\"New York City\"),\n Industry: apiclientgo.String(\"Finances\"),\n About: apiclientgo.String(\"Financial, software, data, and media company headquartered in Midtown Manhattan, New York City\"),\n },\n Notes: apiclientgo.String(\"CIO is interested in trying out the product.\"),\n },\n components.Customer{\n ID: \"\",\n Company: components.Company{\n Name: \"\",\n Location: apiclientgo.String(\"New York City\"),\n Industry: apiclientgo.String(\"Finances\"),\n About: apiclientgo.String(\"Financial, software, data, and media company headquartered in Midtown Manhattan, New York City\"),\n },\n Notes: apiclientgo.String(\"CIO is interested in trying out the product.\"),\n },\n components.Customer{\n ID: \"\",\n Company: components.Company{\n Name: \"\",\n Location: apiclientgo.String(\"New York City\"),\n Industry: apiclientgo.String(\"Finances\"),\n About: apiclientgo.String(\"Financial, software, data, and media company headquartered in Midtown Manhattan, New York City\"),\n },\n Notes: apiclientgo.String(\"CIO is interested in trying out the product.\"),\n },\n },\n Notes: apiclientgo.String(\"CIO is interested in trying out the product.\"),\n },\n Team: &components.Team{\n ID: \"\",\n Name: \"\",\n Members: []components.PersonToTeamRelationship{\n components.PersonToTeamRelationship{\n Person: components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n },\n components.PersonToTeamRelationship{\n Person: components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n },\n },\n CustomFields: []components.CustomFieldData{\n components.CustomFieldData{\n Label: \"\",\n Values: []components.CustomFieldValue{},\n },\n components.CustomFieldData{\n Label: \"\",\n Values: []components.CustomFieldValue{},\n },\n },\n DatasourceProfiles: []components.DatasourceProfile{\n components.DatasourceProfile{\n Datasource: \"github\",\n Handle: \"\",\n },\n components.DatasourceProfile{\n Datasource: \"github\",\n Handle: \"\",\n },\n components.DatasourceProfile{\n Datasource: \"github\",\n Handle: \"\",\n },\n },\n },\n CustomEntity: &components.CustomEntity{\n Roles: []components.UserRoleSpecification{\n components.UserRoleSpecification{\n Person: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n Role: components.UserRoleEditor,\n },\n components.UserRoleSpecification{\n Person: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n Role: components.UserRoleEditor,\n },\n },\n },\n Answer: &components.Answer{\n ID: 3,\n DocID: apiclientgo.String(\"ANSWERS_answer_3\"),\n Question: apiclientgo.String(\"Why is the sky blue?\"),\n BodyText: apiclientgo.String(\"From https://en.wikipedia.org/wiki/Diffuse_sky_radiation, the sky is blue because blue light is more strongly scattered than longer-wavelength light.\"),\n AudienceFilters: []components.FacetFilter{\n components.FacetFilter{\n FieldName: apiclientgo.String(\"type\"),\n Values: []components.FacetFilterValue{\n components.FacetFilterValue{\n Value: apiclientgo.String(\"Spreadsheet\"),\n RelationType: components.RelationTypeEquals.ToPointer(),\n },\n components.FacetFilterValue{\n Value: apiclientgo.String(\"Presentation\"),\n RelationType: components.RelationTypeEquals.ToPointer(),\n },\n },\n },\n },\n AddedRoles: []components.UserRoleSpecification{\n components.UserRoleSpecification{\n Person: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n Role: components.UserRoleOwner,\n },\n components.UserRoleSpecification{\n Person: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n Role: components.UserRoleOwner,\n },\n },\n RemovedRoles: []components.UserRoleSpecification{\n components.UserRoleSpecification{\n Person: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n Role: components.UserRoleAnswerModerator,\n },\n components.UserRoleSpecification{\n Person: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n Role: components.UserRoleAnswerModerator,\n },\n components.UserRoleSpecification{\n Person: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n Role: components.UserRoleAnswerModerator,\n },\n },\n Likes: &components.AnswerLikes{\n LikedBy: []components.AnswerLike{\n components.AnswerLike{\n User: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n },\n },\n LikedByUser: true,\n NumLikes: 38608,\n },\n Author: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n UpdatedBy: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n Verification: &components.Verification{\n State: components.StateDeprecated,\n Metadata: &components.VerificationMetadata{\n LastVerifier: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n Document: &components.Document{\n Metadata: &components.DocumentMetadata{\n Datasource: apiclientgo.String(\"datasource\"),\n ObjectType: apiclientgo.String(\"Feature Request\"),\n Container: apiclientgo.String(\"container\"),\n ParentID: apiclientgo.String(\"JIRA_EN-1337\"),\n MimeType: apiclientgo.String(\"mimeType\"),\n DocumentID: apiclientgo.String(\"documentId\"),\n CreateTime: types.MustNewTimeFromString(\"2000-01-23T04:56:07.000Z\"),\n UpdateTime: types.MustNewTimeFromString(\"2000-01-23T04:56:07.000Z\"),\n Author: &components.Person{\n Name: \"name\",\n ObfuscatedID: \"\",\n },\n Components: []string{\n \"Backend\",\n \"Networking\",\n },\n Status: apiclientgo.String(\"[\\\"Done\\\"]\"),\n CustomData: map[string]components.CustomDataValue{\n \"someCustomField\": components.CustomDataValue{},\n },\n },\n },\n Reminders: []components.Reminder{\n components.Reminder{\n Assignee: components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n Requestor: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n RemindAt: 735135,\n },\n components.Reminder{\n Assignee: components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n Requestor: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n RemindAt: 735135,\n },\n },\n LastReminder: &components.Reminder{\n Assignee: components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n Requestor: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n RemindAt: 528697,\n },\n CandidateVerifiers: []components.Person{\n components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n },\n },\n },\n Board: &components.AnswerBoard{\n Name: \"\",\n Description: \"treasure phrase meaty\",\n AudienceFilters: []components.FacetFilter{\n components.FacetFilter{\n FieldName: apiclientgo.String(\"type\"),\n Values: []components.FacetFilterValue{\n components.FacetFilterValue{\n Value: apiclientgo.String(\"Spreadsheet\"),\n RelationType: components.RelationTypeEquals.ToPointer(),\n },\n components.FacetFilterValue{\n Value: apiclientgo.String(\"Presentation\"),\n RelationType: components.RelationTypeEquals.ToPointer(),\n },\n },\n },\n },\n ID: 355296,\n Creator: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n UpdatedBy: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n },\n Collections: []components.Collection{\n components.Collection{\n Name: \"\",\n Description: \"thunderbolt acidly warmly hence zowie\",\n AudienceFilters: []components.FacetFilter{\n components.FacetFilter{\n FieldName: apiclientgo.String(\"type\"),\n Values: []components.FacetFilterValue{\n components.FacetFilterValue{\n Value: apiclientgo.String(\"Spreadsheet\"),\n RelationType: components.RelationTypeEquals.ToPointer(),\n },\n components.FacetFilterValue{\n Value: apiclientgo.String(\"Presentation\"),\n RelationType: components.RelationTypeEquals.ToPointer(),\n },\n },\n },\n },\n ID: 416180,\n Creator: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n UpdatedBy: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n Items: []components.CollectionItem{\n components.CollectionItem{\n CollectionID: 213025,\n CreatedBy: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n Document: &components.Document{\n Metadata: &components.DocumentMetadata{\n Datasource: apiclientgo.String(\"datasource\"),\n ObjectType: apiclientgo.String(\"Feature Request\"),\n Container: apiclientgo.String(\"container\"),\n ParentID: apiclientgo.String(\"JIRA_EN-1337\"),\n MimeType: apiclientgo.String(\"mimeType\"),\n DocumentID: apiclientgo.String(\"documentId\"),\n CreateTime: types.MustNewTimeFromString(\"2000-01-23T04:56:07.000Z\"),\n UpdateTime: types.MustNewTimeFromString(\"2000-01-23T04:56:07.000Z\"),\n Author: &components.Person{\n Name: \"name\",\n ObfuscatedID: \"\",\n },\n Components: []string{\n \"Backend\",\n \"Networking\",\n },\n Status: apiclientgo.String(\"[\\\"Done\\\"]\"),\n CustomData: map[string]components.CustomDataValue{\n \"someCustomField\": components.CustomDataValue{},\n },\n },\n },\n Shortcut: &components.Shortcut{\n InputAlias: \"\",\n CreatedBy: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n UpdatedBy: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n DestinationDocument: &components.Document{\n Metadata: &components.DocumentMetadata{\n Datasource: apiclientgo.String(\"datasource\"),\n ObjectType: apiclientgo.String(\"Feature Request\"),\n Container: apiclientgo.String(\"container\"),\n ParentID: apiclientgo.String(\"JIRA_EN-1337\"),\n MimeType: apiclientgo.String(\"mimeType\"),\n DocumentID: apiclientgo.String(\"documentId\"),\n CreateTime: types.MustNewTimeFromString(\"2000-01-23T04:56:07.000Z\"),\n UpdateTime: types.MustNewTimeFromString(\"2000-01-23T04:56:07.000Z\"),\n Author: &components.Person{\n Name: \"name\",\n ObfuscatedID: \"\",\n },\n Components: []string{\n \"Backend\",\n \"Networking\",\n },\n Status: apiclientgo.String(\"[\\\"Done\\\"]\"),\n CustomData: map[string]components.CustomDataValue{\n \"someCustomField\": components.CustomDataValue{},\n },\n },\n },\n },\n ItemType: components.CollectionItemItemTypeText,\n },\n components.CollectionItem{\n CollectionID: 213025,\n CreatedBy: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n Document: &components.Document{\n Metadata: &components.DocumentMetadata{\n Datasource: apiclientgo.String(\"datasource\"),\n ObjectType: apiclientgo.String(\"Feature Request\"),\n Container: apiclientgo.String(\"container\"),\n ParentID: apiclientgo.String(\"JIRA_EN-1337\"),\n MimeType: apiclientgo.String(\"mimeType\"),\n DocumentID: apiclientgo.String(\"documentId\"),\n CreateTime: types.MustNewTimeFromString(\"2000-01-23T04:56:07.000Z\"),\n UpdateTime: types.MustNewTimeFromString(\"2000-01-23T04:56:07.000Z\"),\n Author: &components.Person{\n Name: \"name\",\n ObfuscatedID: \"\",\n },\n Components: []string{\n \"Backend\",\n \"Networking\",\n },\n Status: apiclientgo.String(\"[\\\"Done\\\"]\"),\n CustomData: map[string]components.CustomDataValue{\n \"someCustomField\": components.CustomDataValue{},\n },\n },\n },\n Shortcut: &components.Shortcut{\n InputAlias: \"\",\n CreatedBy: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n UpdatedBy: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n DestinationDocument: &components.Document{\n Metadata: &components.DocumentMetadata{\n Datasource: apiclientgo.String(\"datasource\"),\n ObjectType: apiclientgo.String(\"Feature Request\"),\n Container: apiclientgo.String(\"container\"),\n ParentID: apiclientgo.String(\"JIRA_EN-1337\"),\n MimeType: apiclientgo.String(\"mimeType\"),\n DocumentID: apiclientgo.String(\"documentId\"),\n CreateTime: types.MustNewTimeFromString(\"2000-01-23T04:56:07.000Z\"),\n UpdateTime: types.MustNewTimeFromString(\"2000-01-23T04:56:07.000Z\"),\n Author: &components.Person{\n Name: \"name\",\n ObfuscatedID: \"\",\n },\n Components: []string{\n \"Backend\",\n \"Networking\",\n },\n Status: apiclientgo.String(\"[\\\"Done\\\"]\"),\n CustomData: map[string]components.CustomDataValue{\n \"someCustomField\": components.CustomDataValue{},\n },\n },\n },\n },\n ItemType: components.CollectionItemItemTypeText,\n },\n components.CollectionItem{\n CollectionID: 213025,\n CreatedBy: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n Document: &components.Document{\n Metadata: &components.DocumentMetadata{\n Datasource: apiclientgo.String(\"datasource\"),\n ObjectType: apiclientgo.String(\"Feature Request\"),\n Container: apiclientgo.String(\"container\"),\n ParentID: apiclientgo.String(\"JIRA_EN-1337\"),\n MimeType: apiclientgo.String(\"mimeType\"),\n DocumentID: apiclientgo.String(\"documentId\"),\n CreateTime: types.MustNewTimeFromString(\"2000-01-23T04:56:07.000Z\"),\n UpdateTime: types.MustNewTimeFromString(\"2000-01-23T04:56:07.000Z\"),\n Author: &components.Person{\n Name: \"name\",\n ObfuscatedID: \"\",\n },\n Components: []string{\n \"Backend\",\n \"Networking\",\n },\n Status: apiclientgo.String(\"[\\\"Done\\\"]\"),\n CustomData: map[string]components.CustomDataValue{\n \"someCustomField\": components.CustomDataValue{},\n },\n },\n },\n Shortcut: &components.Shortcut{\n InputAlias: \"\",\n CreatedBy: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n UpdatedBy: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n DestinationDocument: &components.Document{\n Metadata: &components.DocumentMetadata{\n Datasource: apiclientgo.String(\"datasource\"),\n ObjectType: apiclientgo.String(\"Feature Request\"),\n Container: apiclientgo.String(\"container\"),\n ParentID: apiclientgo.String(\"JIRA_EN-1337\"),\n MimeType: apiclientgo.String(\"mimeType\"),\n DocumentID: apiclientgo.String(\"documentId\"),\n CreateTime: types.MustNewTimeFromString(\"2000-01-23T04:56:07.000Z\"),\n UpdateTime: types.MustNewTimeFromString(\"2000-01-23T04:56:07.000Z\"),\n Author: &components.Person{\n Name: \"name\",\n ObfuscatedID: \"\",\n },\n Components: []string{\n \"Backend\",\n \"Networking\",\n },\n Status: apiclientgo.String(\"[\\\"Done\\\"]\"),\n CustomData: map[string]components.CustomDataValue{\n \"someCustomField\": components.CustomDataValue{},\n },\n },\n },\n },\n ItemType: components.CollectionItemItemTypeText,\n },\n },\n Children: []components.Collection{\n components.Collection{\n Name: \"\",\n Description: \"likewise blindly mooch travel pinion\",\n AudienceFilters: []components.FacetFilter{\n components.FacetFilter{\n FieldName: apiclientgo.String(\"type\"),\n Values: []components.FacetFilterValue{\n components.FacetFilterValue{\n Value: apiclientgo.String(\"Spreadsheet\"),\n RelationType: components.RelationTypeEquals.ToPointer(),\n },\n components.FacetFilterValue{\n Value: apiclientgo.String(\"Presentation\"),\n RelationType: components.RelationTypeEquals.ToPointer(),\n },\n },\n },\n },\n ID: 184689,\n Creator: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n UpdatedBy: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n },\n components.Collection{\n Name: \"\",\n Description: \"likewise blindly mooch travel pinion\",\n AudienceFilters: []components.FacetFilter{\n components.FacetFilter{\n FieldName: apiclientgo.String(\"type\"),\n Values: []components.FacetFilterValue{\n components.FacetFilterValue{\n Value: apiclientgo.String(\"Spreadsheet\"),\n RelationType: components.RelationTypeEquals.ToPointer(),\n },\n components.FacetFilterValue{\n Value: apiclientgo.String(\"Presentation\"),\n RelationType: components.RelationTypeEquals.ToPointer(),\n },\n },\n },\n },\n ID: 184689,\n Creator: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n UpdatedBy: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n },\n components.Collection{\n Name: \"\",\n Description: \"likewise blindly mooch travel pinion\",\n AudienceFilters: []components.FacetFilter{\n components.FacetFilter{\n FieldName: apiclientgo.String(\"type\"),\n Values: []components.FacetFilterValue{\n components.FacetFilterValue{\n Value: apiclientgo.String(\"Spreadsheet\"),\n RelationType: components.RelationTypeEquals.ToPointer(),\n },\n components.FacetFilterValue{\n Value: apiclientgo.String(\"Presentation\"),\n RelationType: components.RelationTypeEquals.ToPointer(),\n },\n },\n },\n },\n ID: 184689,\n Creator: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n UpdatedBy: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n },\n },\n },\n components.Collection{\n Name: \"\",\n Description: \"thunderbolt acidly warmly hence zowie\",\n AudienceFilters: []components.FacetFilter{\n components.FacetFilter{\n FieldName: apiclientgo.String(\"type\"),\n Values: []components.FacetFilterValue{\n components.FacetFilterValue{\n Value: apiclientgo.String(\"Spreadsheet\"),\n RelationType: components.RelationTypeEquals.ToPointer(),\n },\n components.FacetFilterValue{\n Value: apiclientgo.String(\"Presentation\"),\n RelationType: components.RelationTypeEquals.ToPointer(),\n },\n },\n },\n },\n ID: 416180,\n Creator: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n UpdatedBy: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n Items: []components.CollectionItem{\n components.CollectionItem{\n CollectionID: 213025,\n CreatedBy: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n Document: &components.Document{\n Metadata: &components.DocumentMetadata{\n Datasource: apiclientgo.String(\"datasource\"),\n ObjectType: apiclientgo.String(\"Feature Request\"),\n Container: apiclientgo.String(\"container\"),\n ParentID: apiclientgo.String(\"JIRA_EN-1337\"),\n MimeType: apiclientgo.String(\"mimeType\"),\n DocumentID: apiclientgo.String(\"documentId\"),\n CreateTime: types.MustNewTimeFromString(\"2000-01-23T04:56:07.000Z\"),\n UpdateTime: types.MustNewTimeFromString(\"2000-01-23T04:56:07.000Z\"),\n Author: &components.Person{\n Name: \"name\",\n ObfuscatedID: \"\",\n },\n Components: []string{\n \"Backend\",\n \"Networking\",\n },\n Status: apiclientgo.String(\"[\\\"Done\\\"]\"),\n CustomData: map[string]components.CustomDataValue{\n \"someCustomField\": components.CustomDataValue{},\n },\n },\n },\n Shortcut: &components.Shortcut{\n InputAlias: \"\",\n CreatedBy: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n UpdatedBy: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n DestinationDocument: &components.Document{\n Metadata: &components.DocumentMetadata{\n Datasource: apiclientgo.String(\"datasource\"),\n ObjectType: apiclientgo.String(\"Feature Request\"),\n Container: apiclientgo.String(\"container\"),\n ParentID: apiclientgo.String(\"JIRA_EN-1337\"),\n MimeType: apiclientgo.String(\"mimeType\"),\n DocumentID: apiclientgo.String(\"documentId\"),\n CreateTime: types.MustNewTimeFromString(\"2000-01-23T04:56:07.000Z\"),\n UpdateTime: types.MustNewTimeFromString(\"2000-01-23T04:56:07.000Z\"),\n Author: &components.Person{\n Name: \"name\",\n ObfuscatedID: \"\",\n },\n Components: []string{\n \"Backend\",\n \"Networking\",\n },\n Status: apiclientgo.String(\"[\\\"Done\\\"]\"),\n CustomData: map[string]components.CustomDataValue{\n \"someCustomField\": components.CustomDataValue{},\n },\n },\n },\n },\n ItemType: components.CollectionItemItemTypeText,\n },\n components.CollectionItem{\n CollectionID: 213025,\n CreatedBy: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n Document: &components.Document{\n Metadata: &components.DocumentMetadata{\n Datasource: apiclientgo.String(\"datasource\"),\n ObjectType: apiclientgo.String(\"Feature Request\"),\n Container: apiclientgo.String(\"container\"),\n ParentID: apiclientgo.String(\"JIRA_EN-1337\"),\n MimeType: apiclientgo.String(\"mimeType\"),\n DocumentID: apiclientgo.String(\"documentId\"),\n CreateTime: types.MustNewTimeFromString(\"2000-01-23T04:56:07.000Z\"),\n UpdateTime: types.MustNewTimeFromString(\"2000-01-23T04:56:07.000Z\"),\n Author: &components.Person{\n Name: \"name\",\n ObfuscatedID: \"\",\n },\n Components: []string{\n \"Backend\",\n \"Networking\",\n },\n Status: apiclientgo.String(\"[\\\"Done\\\"]\"),\n CustomData: map[string]components.CustomDataValue{\n \"someCustomField\": components.CustomDataValue{},\n },\n },\n },\n Shortcut: &components.Shortcut{\n InputAlias: \"\",\n CreatedBy: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n UpdatedBy: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n DestinationDocument: &components.Document{\n Metadata: &components.DocumentMetadata{\n Datasource: apiclientgo.String(\"datasource\"),\n ObjectType: apiclientgo.String(\"Feature Request\"),\n Container: apiclientgo.String(\"container\"),\n ParentID: apiclientgo.String(\"JIRA_EN-1337\"),\n MimeType: apiclientgo.String(\"mimeType\"),\n DocumentID: apiclientgo.String(\"documentId\"),\n CreateTime: types.MustNewTimeFromString(\"2000-01-23T04:56:07.000Z\"),\n UpdateTime: types.MustNewTimeFromString(\"2000-01-23T04:56:07.000Z\"),\n Author: &components.Person{\n Name: \"name\",\n ObfuscatedID: \"\",\n },\n Components: []string{\n \"Backend\",\n \"Networking\",\n },\n Status: apiclientgo.String(\"[\\\"Done\\\"]\"),\n CustomData: map[string]components.CustomDataValue{\n \"someCustomField\": components.CustomDataValue{},\n },\n },\n },\n },\n ItemType: components.CollectionItemItemTypeText,\n },\n components.CollectionItem{\n CollectionID: 213025,\n CreatedBy: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n Document: &components.Document{\n Metadata: &components.DocumentMetadata{\n Datasource: apiclientgo.String(\"datasource\"),\n ObjectType: apiclientgo.String(\"Feature Request\"),\n Container: apiclientgo.String(\"container\"),\n ParentID: apiclientgo.String(\"JIRA_EN-1337\"),\n MimeType: apiclientgo.String(\"mimeType\"),\n DocumentID: apiclientgo.String(\"documentId\"),\n CreateTime: types.MustNewTimeFromString(\"2000-01-23T04:56:07.000Z\"),\n UpdateTime: types.MustNewTimeFromString(\"2000-01-23T04:56:07.000Z\"),\n Author: &components.Person{\n Name: \"name\",\n ObfuscatedID: \"\",\n },\n Components: []string{\n \"Backend\",\n \"Networking\",\n },\n Status: apiclientgo.String(\"[\\\"Done\\\"]\"),\n CustomData: map[string]components.CustomDataValue{\n \"someCustomField\": components.CustomDataValue{},\n },\n },\n },\n Shortcut: &components.Shortcut{\n InputAlias: \"\",\n CreatedBy: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n UpdatedBy: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n DestinationDocument: &components.Document{\n Metadata: &components.DocumentMetadata{\n Datasource: apiclientgo.String(\"datasource\"),\n ObjectType: apiclientgo.String(\"Feature Request\"),\n Container: apiclientgo.String(\"container\"),\n ParentID: apiclientgo.String(\"JIRA_EN-1337\"),\n MimeType: apiclientgo.String(\"mimeType\"),\n DocumentID: apiclientgo.String(\"documentId\"),\n CreateTime: types.MustNewTimeFromString(\"2000-01-23T04:56:07.000Z\"),\n UpdateTime: types.MustNewTimeFromString(\"2000-01-23T04:56:07.000Z\"),\n Author: &components.Person{\n Name: \"name\",\n ObfuscatedID: \"\",\n },\n Components: []string{\n \"Backend\",\n \"Networking\",\n },\n Status: apiclientgo.String(\"[\\\"Done\\\"]\"),\n CustomData: map[string]components.CustomDataValue{\n \"someCustomField\": components.CustomDataValue{},\n },\n },\n },\n },\n ItemType: components.CollectionItemItemTypeText,\n },\n },\n Children: []components.Collection{\n components.Collection{\n Name: \"\",\n Description: \"likewise blindly mooch travel pinion\",\n AudienceFilters: []components.FacetFilter{\n components.FacetFilter{\n FieldName: apiclientgo.String(\"type\"),\n Values: []components.FacetFilterValue{\n components.FacetFilterValue{\n Value: apiclientgo.String(\"Spreadsheet\"),\n RelationType: components.RelationTypeEquals.ToPointer(),\n },\n components.FacetFilterValue{\n Value: apiclientgo.String(\"Presentation\"),\n RelationType: components.RelationTypeEquals.ToPointer(),\n },\n },\n },\n },\n ID: 184689,\n Creator: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n UpdatedBy: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n },\n components.Collection{\n Name: \"\",\n Description: \"likewise blindly mooch travel pinion\",\n AudienceFilters: []components.FacetFilter{\n components.FacetFilter{\n FieldName: apiclientgo.String(\"type\"),\n Values: []components.FacetFilterValue{\n components.FacetFilterValue{\n Value: apiclientgo.String(\"Spreadsheet\"),\n RelationType: components.RelationTypeEquals.ToPointer(),\n },\n components.FacetFilterValue{\n Value: apiclientgo.String(\"Presentation\"),\n RelationType: components.RelationTypeEquals.ToPointer(),\n },\n },\n },\n },\n ID: 184689,\n Creator: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n UpdatedBy: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n },\n components.Collection{\n Name: \"\",\n Description: \"likewise blindly mooch travel pinion\",\n AudienceFilters: []components.FacetFilter{\n components.FacetFilter{\n FieldName: apiclientgo.String(\"type\"),\n Values: []components.FacetFilterValue{\n components.FacetFilterValue{\n Value: apiclientgo.String(\"Spreadsheet\"),\n RelationType: components.RelationTypeEquals.ToPointer(),\n },\n components.FacetFilterValue{\n Value: apiclientgo.String(\"Presentation\"),\n RelationType: components.RelationTypeEquals.ToPointer(),\n },\n },\n },\n },\n ID: 184689,\n Creator: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n UpdatedBy: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n },\n },\n },\n },\n SourceDocument: &components.Document{\n Metadata: &components.DocumentMetadata{\n Datasource: apiclientgo.String(\"datasource\"),\n ObjectType: apiclientgo.String(\"Feature Request\"),\n Container: apiclientgo.String(\"container\"),\n ParentID: apiclientgo.String(\"JIRA_EN-1337\"),\n MimeType: apiclientgo.String(\"mimeType\"),\n DocumentID: apiclientgo.String(\"documentId\"),\n CreateTime: types.MustNewTimeFromString(\"2000-01-23T04:56:07.000Z\"),\n UpdateTime: types.MustNewTimeFromString(\"2000-01-23T04:56:07.000Z\"),\n Author: &components.Person{\n Name: \"name\",\n ObfuscatedID: \"\",\n },\n Components: []string{\n \"Backend\",\n \"Networking\",\n },\n Status: apiclientgo.String(\"[\\\"Done\\\"]\"),\n CustomData: map[string]components.CustomDataValue{\n \"someCustomField\": components.CustomDataValue{},\n },\n },\n },\n },\n ExtractedQnA: &components.ExtractedQnA{\n QuestionResult: &components.SearchResult{\n Title: apiclientgo.String(\"title\"),\n URL: \"https://example.com/foo/bar\",\n NativeAppURL: apiclientgo.String(\"slack://foo/bar\"),\n Snippets: []components.SearchResultSnippet{\n components.SearchResultSnippet{\n Snippet: \"snippet\",\n MimeType: apiclientgo.String(\"mimeType\"),\n },\n },\n MustIncludeSuggestions: &components.QuerySuggestionList{},\n },\n },\n Meeting: &components.Meeting{\n Attendees: &components.CalendarAttendees{\n People: []components.CalendarAttendee{\n components.CalendarAttendee{\n Person: components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n GroupAttendees: []components.CalendarAttendee{\n components.CalendarAttendee{\n Person: components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n },\n components.CalendarAttendee{\n Person: components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n },\n },\n },\n components.CalendarAttendee{\n Person: components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n GroupAttendees: []components.CalendarAttendee{\n components.CalendarAttendee{\n Person: components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n },\n components.CalendarAttendee{\n Person: components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n },\n },\n },\n },\n },\n },\n Collection: &components.Collection{\n Name: \"\",\n Description: \"mismatch noisily jive worth meh following hmph analyse\",\n AudienceFilters: []components.FacetFilter{\n components.FacetFilter{\n FieldName: apiclientgo.String(\"type\"),\n Values: []components.FacetFilterValue{\n components.FacetFilterValue{\n Value: apiclientgo.String(\"Spreadsheet\"),\n RelationType: components.RelationTypeEquals.ToPointer(),\n },\n components.FacetFilterValue{\n Value: apiclientgo.String(\"Presentation\"),\n RelationType: components.RelationTypeEquals.ToPointer(),\n },\n },\n },\n },\n ID: 5797,\n Creator: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n UpdatedBy: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n },\n AnswerBoard: &components.AnswerBoard{\n Name: \"\",\n Description: \"pulse yum shakily notwithstanding faithfully boohoo urgently exterior before um\",\n AudienceFilters: []components.FacetFilter{\n components.FacetFilter{\n FieldName: apiclientgo.String(\"type\"),\n Values: []components.FacetFilterValue{\n components.FacetFilterValue{\n Value: apiclientgo.String(\"Spreadsheet\"),\n RelationType: components.RelationTypeEquals.ToPointer(),\n },\n components.FacetFilterValue{\n Value: apiclientgo.String(\"Presentation\"),\n RelationType: components.RelationTypeEquals.ToPointer(),\n },\n },\n },\n },\n ID: 609567,\n Creator: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n UpdatedBy: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n },\n Code: &components.Code{\n RepoName: apiclientgo.String(\"scio\"),\n FileName: apiclientgo.String(\"README.md\"),\n },\n Shortcut: &components.Shortcut{\n InputAlias: \"\",\n CreatedBy: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n UpdatedBy: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n DestinationDocument: &components.Document{\n Metadata: &components.DocumentMetadata{\n Datasource: apiclientgo.String(\"datasource\"),\n ObjectType: apiclientgo.String(\"Feature Request\"),\n Container: apiclientgo.String(\"container\"),\n ParentID: apiclientgo.String(\"JIRA_EN-1337\"),\n MimeType: apiclientgo.String(\"mimeType\"),\n DocumentID: apiclientgo.String(\"documentId\"),\n CreateTime: types.MustNewTimeFromString(\"2000-01-23T04:56:07.000Z\"),\n UpdateTime: types.MustNewTimeFromString(\"2000-01-23T04:56:07.000Z\"),\n Author: &components.Person{\n Name: \"name\",\n ObfuscatedID: \"\",\n },\n Components: []string{\n \"Backend\",\n \"Networking\",\n },\n Status: apiclientgo.String(\"[\\\"Done\\\"]\"),\n CustomData: map[string]components.CustomDataValue{\n \"someCustomField\": components.CustomDataValue{},\n },\n },\n },\n },\n QuerySuggestions: &components.QuerySuggestionList{\n Suggestions: []components.QuerySuggestion{\n components.QuerySuggestion{\n Query: \"app:github type:pull author:mortimer\",\n Label: apiclientgo.String(\"Mortimer's PRs\"),\n Datasource: apiclientgo.String(\"github\"),\n },\n },\n Person: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n },\n RelatedDocuments: []components.RelatedDocuments{\n components.RelatedDocuments{\n QuerySuggestion: &components.QuerySuggestion{\n Query: \"app:github type:pull author:mortimer\",\n Label: apiclientgo.String(\"Mortimer's PRs\"),\n Datasource: apiclientgo.String(\"github\"),\n },\n Results: []components.SearchResult{\n components.SearchResult{\n Title: apiclientgo.String(\"title\"),\n URL: \"https://example.com/foo/bar\",\n NativeAppURL: apiclientgo.String(\"slack://foo/bar\"),\n Snippets: []components.SearchResultSnippet{\n components.SearchResultSnippet{\n Snippet: \"snippet\",\n MimeType: apiclientgo.String(\"mimeType\"),\n },\n },\n MustIncludeSuggestions: &components.QuerySuggestionList{},\n },\n },\n },\n },\n RelatedQuestion: &components.RelatedQuestion{\n Ranges: []components.TextRange{\n components.TextRange{\n StartIndex: 896307,\n Document: &components.Document{\n Metadata: &components.DocumentMetadata{\n Datasource: apiclientgo.String(\"datasource\"),\n ObjectType: apiclientgo.String(\"Feature Request\"),\n Container: apiclientgo.String(\"container\"),\n ParentID: apiclientgo.String(\"JIRA_EN-1337\"),\n MimeType: apiclientgo.String(\"mimeType\"),\n DocumentID: apiclientgo.String(\"documentId\"),\n CreateTime: types.MustNewTimeFromString(\"2000-01-23T04:56:07.000Z\"),\n UpdateTime: types.MustNewTimeFromString(\"2000-01-23T04:56:07.000Z\"),\n Author: &components.Person{\n Name: \"name\",\n ObfuscatedID: \"\",\n },\n Components: []string{\n \"Backend\",\n \"Networking\",\n },\n Status: apiclientgo.String(\"[\\\"Done\\\"]\"),\n CustomData: map[string]components.CustomDataValue{\n \"someCustomField\": components.CustomDataValue{},\n },\n },\n },\n },\n components.TextRange{\n StartIndex: 896307,\n Document: &components.Document{\n Metadata: &components.DocumentMetadata{\n Datasource: apiclientgo.String(\"datasource\"),\n ObjectType: apiclientgo.String(\"Feature Request\"),\n Container: apiclientgo.String(\"container\"),\n ParentID: apiclientgo.String(\"JIRA_EN-1337\"),\n MimeType: apiclientgo.String(\"mimeType\"),\n DocumentID: apiclientgo.String(\"documentId\"),\n CreateTime: types.MustNewTimeFromString(\"2000-01-23T04:56:07.000Z\"),\n UpdateTime: types.MustNewTimeFromString(\"2000-01-23T04:56:07.000Z\"),\n Author: &components.Person{\n Name: \"name\",\n ObfuscatedID: \"\",\n },\n Components: []string{\n \"Backend\",\n \"Networking\",\n },\n Status: apiclientgo.String(\"[\\\"Done\\\"]\"),\n CustomData: map[string]components.CustomDataValue{\n \"someCustomField\": components.CustomDataValue{},\n },\n },\n },\n },\n },\n },\n },\n },\n },\n },\n AudienceFilters: []components.FacetFilter{\n components.FacetFilter{\n FieldName: apiclientgo.String(\"type\"),\n Values: []components.FacetFilterValue{\n components.FacetFilterValue{\n Value: apiclientgo.String(\"Spreadsheet\"),\n RelationType: components.RelationTypeEquals.ToPointer(),\n },\n components.FacetFilterValue{\n Value: apiclientgo.String(\"Presentation\"),\n RelationType: components.RelationTypeEquals.ToPointer(),\n },\n },\n },\n },\n ID: 121004,\n })\n if err != nil {\n log.Fatal(err)\n }\n if res.Announcement != nil {\n // handle response\n }\n}" + source: "package main\n\nimport(\n\t\"context\"\n\t\"os\"\n\tapiclientgo \"github.com/gleanwork/api-client-go\"\n\t\"github.com/gleanwork/api-client-go/types\"\n\t\"github.com/gleanwork/api-client-go/models/components\"\n\t\"log\"\n)\n\nfunc main() {\n ctx := context.Background()\n\n s := apiclientgo.New(\n apiclientgo.WithSecurity(os.Getenv(\"GLEAN_API_TOKEN\")),\n apiclientgo.WithInstance(os.Getenv(\"GLEAN_INSTANCE\")),\n )\n\n res, err := s.Client.Announcements.Update(ctx, components.UpdateAnnouncementRequest{\n StartTime: types.MustTimeFromString(\"2023-10-24T01:53:24.440Z\"),\n EndTime: types.MustTimeFromString(\"2024-10-30T07:24:12.087Z\"),\n Title: \"\",\n Body: &components.StructuredText{\n Text: \"From https://en.wikipedia.org/wiki/Diffuse_sky_radiation, the sky is blue because blue light is more strongly scattered than longer-wavelength light.\",\n StructuredList: []components.StructuredTextItem{\n components.StructuredTextItem{\n Link: apiclientgo.String(\"https://en.wikipedia.org/wiki/Diffuse_sky_radiation\"),\n Document: &components.Document{\n Metadata: &components.DocumentMetadata{\n Datasource: apiclientgo.String(\"datasource\"),\n ObjectType: apiclientgo.String(\"Feature Request\"),\n Container: apiclientgo.String(\"container\"),\n ParentID: apiclientgo.String(\"JIRA_EN-1337\"),\n MimeType: apiclientgo.String(\"mimeType\"),\n DocumentID: apiclientgo.String(\"documentId\"),\n CreateTime: types.MustNewTimeFromString(\"2000-01-23T04:56:07.000Z\"),\n UpdateTime: types.MustNewTimeFromString(\"2000-01-23T04:56:07.000Z\"),\n Author: &components.Person{\n Name: \"name\",\n ObfuscatedID: \"\",\n },\n Components: []string{\n \"Backend\",\n \"Networking\",\n },\n Status: apiclientgo.String(\"[\\\"Done\\\"]\"),\n CustomData: map[string]components.CustomDataValue{\n \"someCustomField\": components.CustomDataValue{},\n },\n },\n },\n Text: apiclientgo.String(\"Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue.\"),\n StructuredResult: &components.StructuredResult{\n Document: &components.Document{\n Metadata: &components.DocumentMetadata{\n Datasource: apiclientgo.String(\"datasource\"),\n ObjectType: apiclientgo.String(\"Feature Request\"),\n Container: apiclientgo.String(\"container\"),\n ParentID: apiclientgo.String(\"JIRA_EN-1337\"),\n MimeType: apiclientgo.String(\"mimeType\"),\n DocumentID: apiclientgo.String(\"documentId\"),\n CreateTime: types.MustNewTimeFromString(\"2000-01-23T04:56:07.000Z\"),\n UpdateTime: types.MustNewTimeFromString(\"2000-01-23T04:56:07.000Z\"),\n Author: &components.Person{\n Name: \"name\",\n ObfuscatedID: \"\",\n },\n Components: []string{\n \"Backend\",\n \"Networking\",\n },\n Status: apiclientgo.String(\"[\\\"Done\\\"]\"),\n CustomData: map[string]components.CustomDataValue{\n \"someCustomField\": components.CustomDataValue{},\n },\n },\n },\n Person: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n Customer: &components.Customer{\n ID: \"\",\n Company: components.Company{\n Name: \"\",\n Location: apiclientgo.String(\"New York City\"),\n Industry: apiclientgo.String(\"Finances\"),\n About: apiclientgo.String(\"Financial, software, data, and media company headquartered in Midtown Manhattan, New York City\"),\n },\n Poc: []components.Person{\n components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n },\n MergedCustomers: []components.Customer{\n components.Customer{\n ID: \"\",\n Company: components.Company{\n Name: \"\",\n Location: apiclientgo.String(\"New York City\"),\n Industry: apiclientgo.String(\"Finances\"),\n About: apiclientgo.String(\"Financial, software, data, and media company headquartered in Midtown Manhattan, New York City\"),\n },\n Notes: apiclientgo.String(\"CIO is interested in trying out the product.\"),\n },\n components.Customer{\n ID: \"\",\n Company: components.Company{\n Name: \"\",\n Location: apiclientgo.String(\"New York City\"),\n Industry: apiclientgo.String(\"Finances\"),\n About: apiclientgo.String(\"Financial, software, data, and media company headquartered in Midtown Manhattan, New York City\"),\n },\n Notes: apiclientgo.String(\"CIO is interested in trying out the product.\"),\n },\n components.Customer{\n ID: \"\",\n Company: components.Company{\n Name: \"\",\n Location: apiclientgo.String(\"New York City\"),\n Industry: apiclientgo.String(\"Finances\"),\n About: apiclientgo.String(\"Financial, software, data, and media company headquartered in Midtown Manhattan, New York City\"),\n },\n Notes: apiclientgo.String(\"CIO is interested in trying out the product.\"),\n },\n },\n Notes: apiclientgo.String(\"CIO is interested in trying out the product.\"),\n },\n Team: &components.Team{\n ID: \"\",\n Name: \"\",\n Members: []components.PersonToTeamRelationship{\n components.PersonToTeamRelationship{\n Person: components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n },\n components.PersonToTeamRelationship{\n Person: components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n },\n },\n CustomFields: []components.CustomFieldData{\n components.CustomFieldData{\n Label: \"\",\n Values: []components.CustomFieldValue{},\n },\n components.CustomFieldData{\n Label: \"\",\n Values: []components.CustomFieldValue{},\n },\n },\n DatasourceProfiles: []components.DatasourceProfile{\n components.DatasourceProfile{\n Datasource: \"github\",\n Handle: \"\",\n },\n components.DatasourceProfile{\n Datasource: \"github\",\n Handle: \"\",\n },\n components.DatasourceProfile{\n Datasource: \"github\",\n Handle: \"\",\n },\n },\n },\n CustomEntity: &components.CustomEntity{\n Roles: []components.UserRoleSpecification{\n components.UserRoleSpecification{\n Person: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n Role: components.UserRoleEditor,\n },\n components.UserRoleSpecification{\n Person: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n Role: components.UserRoleEditor,\n },\n },\n },\n Answer: &components.Answer{\n ID: 3,\n DocID: apiclientgo.String(\"ANSWERS_answer_3\"),\n Question: apiclientgo.String(\"Why is the sky blue?\"),\n BodyText: apiclientgo.String(\"From https://en.wikipedia.org/wiki/Diffuse_sky_radiation, the sky is blue because blue light is more strongly scattered than longer-wavelength light.\"),\n AudienceFilters: []components.FacetFilter{\n components.FacetFilter{\n FieldName: apiclientgo.String(\"type\"),\n Values: []components.FacetFilterValue{\n components.FacetFilterValue{\n Value: apiclientgo.String(\"Spreadsheet\"),\n RelationType: components.RelationTypeEquals.ToPointer(),\n },\n components.FacetFilterValue{\n Value: apiclientgo.String(\"Presentation\"),\n RelationType: components.RelationTypeEquals.ToPointer(),\n },\n },\n },\n },\n AddedRoles: []components.UserRoleSpecification{\n components.UserRoleSpecification{\n Person: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n Role: components.UserRoleOwner,\n },\n components.UserRoleSpecification{\n Person: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n Role: components.UserRoleOwner,\n },\n },\n RemovedRoles: []components.UserRoleSpecification{\n components.UserRoleSpecification{\n Person: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n Role: components.UserRoleAnswerModerator,\n },\n components.UserRoleSpecification{\n Person: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n Role: components.UserRoleAnswerModerator,\n },\n components.UserRoleSpecification{\n Person: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n Role: components.UserRoleAnswerModerator,\n },\n },\n Likes: &components.AnswerLikes{\n LikedBy: []components.AnswerLike{\n components.AnswerLike{\n User: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n },\n },\n LikedByUser: true,\n NumLikes: 38608,\n },\n Author: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n UpdatedBy: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n Verification: &components.Verification{\n State: components.StateDeprecated,\n Metadata: &components.VerificationMetadata{\n LastVerifier: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n Document: &components.Document{\n Metadata: &components.DocumentMetadata{\n Datasource: apiclientgo.String(\"datasource\"),\n ObjectType: apiclientgo.String(\"Feature Request\"),\n Container: apiclientgo.String(\"container\"),\n ParentID: apiclientgo.String(\"JIRA_EN-1337\"),\n MimeType: apiclientgo.String(\"mimeType\"),\n DocumentID: apiclientgo.String(\"documentId\"),\n CreateTime: types.MustNewTimeFromString(\"2000-01-23T04:56:07.000Z\"),\n UpdateTime: types.MustNewTimeFromString(\"2000-01-23T04:56:07.000Z\"),\n Author: &components.Person{\n Name: \"name\",\n ObfuscatedID: \"\",\n },\n Components: []string{\n \"Backend\",\n \"Networking\",\n },\n Status: apiclientgo.String(\"[\\\"Done\\\"]\"),\n CustomData: map[string]components.CustomDataValue{\n \"someCustomField\": components.CustomDataValue{},\n },\n },\n },\n Reminders: []components.Reminder{\n components.Reminder{\n Assignee: components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n Requestor: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n RemindAt: 735135,\n },\n components.Reminder{\n Assignee: components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n Requestor: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n RemindAt: 735135,\n },\n },\n LastReminder: &components.Reminder{\n Assignee: components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n Requestor: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n RemindAt: 528697,\n },\n CandidateVerifiers: []components.Person{\n components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n },\n },\n },\n Board: &components.AnswerBoard{\n Name: \"\",\n Description: \"treasure phrase meaty\",\n AudienceFilters: []components.FacetFilter{\n components.FacetFilter{\n FieldName: apiclientgo.String(\"type\"),\n Values: []components.FacetFilterValue{\n components.FacetFilterValue{\n Value: apiclientgo.String(\"Spreadsheet\"),\n RelationType: components.RelationTypeEquals.ToPointer(),\n },\n components.FacetFilterValue{\n Value: apiclientgo.String(\"Presentation\"),\n RelationType: components.RelationTypeEquals.ToPointer(),\n },\n },\n },\n },\n ID: 355296,\n Creator: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n UpdatedBy: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n },\n Collections: []components.Collection{\n components.Collection{\n Name: \"\",\n Description: \"thunderbolt acidly warmly hence zowie\",\n AudienceFilters: []components.FacetFilter{\n components.FacetFilter{\n FieldName: apiclientgo.String(\"type\"),\n Values: []components.FacetFilterValue{\n components.FacetFilterValue{\n Value: apiclientgo.String(\"Spreadsheet\"),\n RelationType: components.RelationTypeEquals.ToPointer(),\n },\n components.FacetFilterValue{\n Value: apiclientgo.String(\"Presentation\"),\n RelationType: components.RelationTypeEquals.ToPointer(),\n },\n },\n },\n },\n ID: 416180,\n Creator: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n UpdatedBy: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n Items: []components.CollectionItem{\n components.CollectionItem{\n CollectionID: 213025,\n CreatedBy: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n Document: &components.Document{\n Metadata: &components.DocumentMetadata{\n Datasource: apiclientgo.String(\"datasource\"),\n ObjectType: apiclientgo.String(\"Feature Request\"),\n Container: apiclientgo.String(\"container\"),\n ParentID: apiclientgo.String(\"JIRA_EN-1337\"),\n MimeType: apiclientgo.String(\"mimeType\"),\n DocumentID: apiclientgo.String(\"documentId\"),\n CreateTime: types.MustNewTimeFromString(\"2000-01-23T04:56:07.000Z\"),\n UpdateTime: types.MustNewTimeFromString(\"2000-01-23T04:56:07.000Z\"),\n Author: &components.Person{\n Name: \"name\",\n ObfuscatedID: \"\",\n },\n Components: []string{\n \"Backend\",\n \"Networking\",\n },\n Status: apiclientgo.String(\"[\\\"Done\\\"]\"),\n CustomData: map[string]components.CustomDataValue{\n \"someCustomField\": components.CustomDataValue{},\n },\n },\n },\n Shortcut: &components.Shortcut{\n InputAlias: \"\",\n CreatedBy: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n UpdatedBy: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n DestinationDocument: &components.Document{\n Metadata: &components.DocumentMetadata{\n Datasource: apiclientgo.String(\"datasource\"),\n ObjectType: apiclientgo.String(\"Feature Request\"),\n Container: apiclientgo.String(\"container\"),\n ParentID: apiclientgo.String(\"JIRA_EN-1337\"),\n MimeType: apiclientgo.String(\"mimeType\"),\n DocumentID: apiclientgo.String(\"documentId\"),\n CreateTime: types.MustNewTimeFromString(\"2000-01-23T04:56:07.000Z\"),\n UpdateTime: types.MustNewTimeFromString(\"2000-01-23T04:56:07.000Z\"),\n Author: &components.Person{\n Name: \"name\",\n ObfuscatedID: \"\",\n },\n Components: []string{\n \"Backend\",\n \"Networking\",\n },\n Status: apiclientgo.String(\"[\\\"Done\\\"]\"),\n CustomData: map[string]components.CustomDataValue{\n \"someCustomField\": components.CustomDataValue{},\n },\n },\n },\n },\n ItemType: components.CollectionItemItemTypeText,\n },\n components.CollectionItem{\n CollectionID: 213025,\n CreatedBy: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n Document: &components.Document{\n Metadata: &components.DocumentMetadata{\n Datasource: apiclientgo.String(\"datasource\"),\n ObjectType: apiclientgo.String(\"Feature Request\"),\n Container: apiclientgo.String(\"container\"),\n ParentID: apiclientgo.String(\"JIRA_EN-1337\"),\n MimeType: apiclientgo.String(\"mimeType\"),\n DocumentID: apiclientgo.String(\"documentId\"),\n CreateTime: types.MustNewTimeFromString(\"2000-01-23T04:56:07.000Z\"),\n UpdateTime: types.MustNewTimeFromString(\"2000-01-23T04:56:07.000Z\"),\n Author: &components.Person{\n Name: \"name\",\n ObfuscatedID: \"\",\n },\n Components: []string{\n \"Backend\",\n \"Networking\",\n },\n Status: apiclientgo.String(\"[\\\"Done\\\"]\"),\n CustomData: map[string]components.CustomDataValue{\n \"someCustomField\": components.CustomDataValue{},\n },\n },\n },\n Shortcut: &components.Shortcut{\n InputAlias: \"\",\n CreatedBy: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n UpdatedBy: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n DestinationDocument: &components.Document{\n Metadata: &components.DocumentMetadata{\n Datasource: apiclientgo.String(\"datasource\"),\n ObjectType: apiclientgo.String(\"Feature Request\"),\n Container: apiclientgo.String(\"container\"),\n ParentID: apiclientgo.String(\"JIRA_EN-1337\"),\n MimeType: apiclientgo.String(\"mimeType\"),\n DocumentID: apiclientgo.String(\"documentId\"),\n CreateTime: types.MustNewTimeFromString(\"2000-01-23T04:56:07.000Z\"),\n UpdateTime: types.MustNewTimeFromString(\"2000-01-23T04:56:07.000Z\"),\n Author: &components.Person{\n Name: \"name\",\n ObfuscatedID: \"\",\n },\n Components: []string{\n \"Backend\",\n \"Networking\",\n },\n Status: apiclientgo.String(\"[\\\"Done\\\"]\"),\n CustomData: map[string]components.CustomDataValue{\n \"someCustomField\": components.CustomDataValue{},\n },\n },\n },\n },\n ItemType: components.CollectionItemItemTypeText,\n },\n components.CollectionItem{\n CollectionID: 213025,\n CreatedBy: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n Document: &components.Document{\n Metadata: &components.DocumentMetadata{\n Datasource: apiclientgo.String(\"datasource\"),\n ObjectType: apiclientgo.String(\"Feature Request\"),\n Container: apiclientgo.String(\"container\"),\n ParentID: apiclientgo.String(\"JIRA_EN-1337\"),\n MimeType: apiclientgo.String(\"mimeType\"),\n DocumentID: apiclientgo.String(\"documentId\"),\n CreateTime: types.MustNewTimeFromString(\"2000-01-23T04:56:07.000Z\"),\n UpdateTime: types.MustNewTimeFromString(\"2000-01-23T04:56:07.000Z\"),\n Author: &components.Person{\n Name: \"name\",\n ObfuscatedID: \"\",\n },\n Components: []string{\n \"Backend\",\n \"Networking\",\n },\n Status: apiclientgo.String(\"[\\\"Done\\\"]\"),\n CustomData: map[string]components.CustomDataValue{\n \"someCustomField\": components.CustomDataValue{},\n },\n },\n },\n Shortcut: &components.Shortcut{\n InputAlias: \"\",\n CreatedBy: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n UpdatedBy: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n DestinationDocument: &components.Document{\n Metadata: &components.DocumentMetadata{\n Datasource: apiclientgo.String(\"datasource\"),\n ObjectType: apiclientgo.String(\"Feature Request\"),\n Container: apiclientgo.String(\"container\"),\n ParentID: apiclientgo.String(\"JIRA_EN-1337\"),\n MimeType: apiclientgo.String(\"mimeType\"),\n DocumentID: apiclientgo.String(\"documentId\"),\n CreateTime: types.MustNewTimeFromString(\"2000-01-23T04:56:07.000Z\"),\n UpdateTime: types.MustNewTimeFromString(\"2000-01-23T04:56:07.000Z\"),\n Author: &components.Person{\n Name: \"name\",\n ObfuscatedID: \"\",\n },\n Components: []string{\n \"Backend\",\n \"Networking\",\n },\n Status: apiclientgo.String(\"[\\\"Done\\\"]\"),\n CustomData: map[string]components.CustomDataValue{\n \"someCustomField\": components.CustomDataValue{},\n },\n },\n },\n },\n ItemType: components.CollectionItemItemTypeText,\n },\n },\n Children: []components.Collection{\n components.Collection{\n Name: \"\",\n Description: \"likewise blindly mooch travel pinion\",\n AudienceFilters: []components.FacetFilter{\n components.FacetFilter{\n FieldName: apiclientgo.String(\"type\"),\n Values: []components.FacetFilterValue{\n components.FacetFilterValue{\n Value: apiclientgo.String(\"Spreadsheet\"),\n RelationType: components.RelationTypeEquals.ToPointer(),\n },\n components.FacetFilterValue{\n Value: apiclientgo.String(\"Presentation\"),\n RelationType: components.RelationTypeEquals.ToPointer(),\n },\n },\n },\n },\n ID: 184689,\n Creator: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n UpdatedBy: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n },\n components.Collection{\n Name: \"\",\n Description: \"likewise blindly mooch travel pinion\",\n AudienceFilters: []components.FacetFilter{\n components.FacetFilter{\n FieldName: apiclientgo.String(\"type\"),\n Values: []components.FacetFilterValue{\n components.FacetFilterValue{\n Value: apiclientgo.String(\"Spreadsheet\"),\n RelationType: components.RelationTypeEquals.ToPointer(),\n },\n components.FacetFilterValue{\n Value: apiclientgo.String(\"Presentation\"),\n RelationType: components.RelationTypeEquals.ToPointer(),\n },\n },\n },\n },\n ID: 184689,\n Creator: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n UpdatedBy: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n },\n components.Collection{\n Name: \"\",\n Description: \"likewise blindly mooch travel pinion\",\n AudienceFilters: []components.FacetFilter{\n components.FacetFilter{\n FieldName: apiclientgo.String(\"type\"),\n Values: []components.FacetFilterValue{\n components.FacetFilterValue{\n Value: apiclientgo.String(\"Spreadsheet\"),\n RelationType: components.RelationTypeEquals.ToPointer(),\n },\n components.FacetFilterValue{\n Value: apiclientgo.String(\"Presentation\"),\n RelationType: components.RelationTypeEquals.ToPointer(),\n },\n },\n },\n },\n ID: 184689,\n Creator: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n UpdatedBy: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n },\n },\n },\n components.Collection{\n Name: \"\",\n Description: \"thunderbolt acidly warmly hence zowie\",\n AudienceFilters: []components.FacetFilter{\n components.FacetFilter{\n FieldName: apiclientgo.String(\"type\"),\n Values: []components.FacetFilterValue{\n components.FacetFilterValue{\n Value: apiclientgo.String(\"Spreadsheet\"),\n RelationType: components.RelationTypeEquals.ToPointer(),\n },\n components.FacetFilterValue{\n Value: apiclientgo.String(\"Presentation\"),\n RelationType: components.RelationTypeEquals.ToPointer(),\n },\n },\n },\n },\n ID: 416180,\n Creator: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n UpdatedBy: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n Items: []components.CollectionItem{\n components.CollectionItem{\n CollectionID: 213025,\n CreatedBy: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n Document: &components.Document{\n Metadata: &components.DocumentMetadata{\n Datasource: apiclientgo.String(\"datasource\"),\n ObjectType: apiclientgo.String(\"Feature Request\"),\n Container: apiclientgo.String(\"container\"),\n ParentID: apiclientgo.String(\"JIRA_EN-1337\"),\n MimeType: apiclientgo.String(\"mimeType\"),\n DocumentID: apiclientgo.String(\"documentId\"),\n CreateTime: types.MustNewTimeFromString(\"2000-01-23T04:56:07.000Z\"),\n UpdateTime: types.MustNewTimeFromString(\"2000-01-23T04:56:07.000Z\"),\n Author: &components.Person{\n Name: \"name\",\n ObfuscatedID: \"\",\n },\n Components: []string{\n \"Backend\",\n \"Networking\",\n },\n Status: apiclientgo.String(\"[\\\"Done\\\"]\"),\n CustomData: map[string]components.CustomDataValue{\n \"someCustomField\": components.CustomDataValue{},\n },\n },\n },\n Shortcut: &components.Shortcut{\n InputAlias: \"\",\n CreatedBy: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n UpdatedBy: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n DestinationDocument: &components.Document{\n Metadata: &components.DocumentMetadata{\n Datasource: apiclientgo.String(\"datasource\"),\n ObjectType: apiclientgo.String(\"Feature Request\"),\n Container: apiclientgo.String(\"container\"),\n ParentID: apiclientgo.String(\"JIRA_EN-1337\"),\n MimeType: apiclientgo.String(\"mimeType\"),\n DocumentID: apiclientgo.String(\"documentId\"),\n CreateTime: types.MustNewTimeFromString(\"2000-01-23T04:56:07.000Z\"),\n UpdateTime: types.MustNewTimeFromString(\"2000-01-23T04:56:07.000Z\"),\n Author: &components.Person{\n Name: \"name\",\n ObfuscatedID: \"\",\n },\n Components: []string{\n \"Backend\",\n \"Networking\",\n },\n Status: apiclientgo.String(\"[\\\"Done\\\"]\"),\n CustomData: map[string]components.CustomDataValue{\n \"someCustomField\": components.CustomDataValue{},\n },\n },\n },\n },\n ItemType: components.CollectionItemItemTypeText,\n },\n components.CollectionItem{\n CollectionID: 213025,\n CreatedBy: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n Document: &components.Document{\n Metadata: &components.DocumentMetadata{\n Datasource: apiclientgo.String(\"datasource\"),\n ObjectType: apiclientgo.String(\"Feature Request\"),\n Container: apiclientgo.String(\"container\"),\n ParentID: apiclientgo.String(\"JIRA_EN-1337\"),\n MimeType: apiclientgo.String(\"mimeType\"),\n DocumentID: apiclientgo.String(\"documentId\"),\n CreateTime: types.MustNewTimeFromString(\"2000-01-23T04:56:07.000Z\"),\n UpdateTime: types.MustNewTimeFromString(\"2000-01-23T04:56:07.000Z\"),\n Author: &components.Person{\n Name: \"name\",\n ObfuscatedID: \"\",\n },\n Components: []string{\n \"Backend\",\n \"Networking\",\n },\n Status: apiclientgo.String(\"[\\\"Done\\\"]\"),\n CustomData: map[string]components.CustomDataValue{\n \"someCustomField\": components.CustomDataValue{},\n },\n },\n },\n Shortcut: &components.Shortcut{\n InputAlias: \"\",\n CreatedBy: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n UpdatedBy: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n DestinationDocument: &components.Document{\n Metadata: &components.DocumentMetadata{\n Datasource: apiclientgo.String(\"datasource\"),\n ObjectType: apiclientgo.String(\"Feature Request\"),\n Container: apiclientgo.String(\"container\"),\n ParentID: apiclientgo.String(\"JIRA_EN-1337\"),\n MimeType: apiclientgo.String(\"mimeType\"),\n DocumentID: apiclientgo.String(\"documentId\"),\n CreateTime: types.MustNewTimeFromString(\"2000-01-23T04:56:07.000Z\"),\n UpdateTime: types.MustNewTimeFromString(\"2000-01-23T04:56:07.000Z\"),\n Author: &components.Person{\n Name: \"name\",\n ObfuscatedID: \"\",\n },\n Components: []string{\n \"Backend\",\n \"Networking\",\n },\n Status: apiclientgo.String(\"[\\\"Done\\\"]\"),\n CustomData: map[string]components.CustomDataValue{\n \"someCustomField\": components.CustomDataValue{},\n },\n },\n },\n },\n ItemType: components.CollectionItemItemTypeText,\n },\n components.CollectionItem{\n CollectionID: 213025,\n CreatedBy: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n Document: &components.Document{\n Metadata: &components.DocumentMetadata{\n Datasource: apiclientgo.String(\"datasource\"),\n ObjectType: apiclientgo.String(\"Feature Request\"),\n Container: apiclientgo.String(\"container\"),\n ParentID: apiclientgo.String(\"JIRA_EN-1337\"),\n MimeType: apiclientgo.String(\"mimeType\"),\n DocumentID: apiclientgo.String(\"documentId\"),\n CreateTime: types.MustNewTimeFromString(\"2000-01-23T04:56:07.000Z\"),\n UpdateTime: types.MustNewTimeFromString(\"2000-01-23T04:56:07.000Z\"),\n Author: &components.Person{\n Name: \"name\",\n ObfuscatedID: \"\",\n },\n Components: []string{\n \"Backend\",\n \"Networking\",\n },\n Status: apiclientgo.String(\"[\\\"Done\\\"]\"),\n CustomData: map[string]components.CustomDataValue{\n \"someCustomField\": components.CustomDataValue{},\n },\n },\n },\n Shortcut: &components.Shortcut{\n InputAlias: \"\",\n CreatedBy: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n UpdatedBy: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n DestinationDocument: &components.Document{\n Metadata: &components.DocumentMetadata{\n Datasource: apiclientgo.String(\"datasource\"),\n ObjectType: apiclientgo.String(\"Feature Request\"),\n Container: apiclientgo.String(\"container\"),\n ParentID: apiclientgo.String(\"JIRA_EN-1337\"),\n MimeType: apiclientgo.String(\"mimeType\"),\n DocumentID: apiclientgo.String(\"documentId\"),\n CreateTime: types.MustNewTimeFromString(\"2000-01-23T04:56:07.000Z\"),\n UpdateTime: types.MustNewTimeFromString(\"2000-01-23T04:56:07.000Z\"),\n Author: &components.Person{\n Name: \"name\",\n ObfuscatedID: \"\",\n },\n Components: []string{\n \"Backend\",\n \"Networking\",\n },\n Status: apiclientgo.String(\"[\\\"Done\\\"]\"),\n CustomData: map[string]components.CustomDataValue{\n \"someCustomField\": components.CustomDataValue{},\n },\n },\n },\n },\n ItemType: components.CollectionItemItemTypeText,\n },\n },\n Children: []components.Collection{\n components.Collection{\n Name: \"\",\n Description: \"likewise blindly mooch travel pinion\",\n AudienceFilters: []components.FacetFilter{\n components.FacetFilter{\n FieldName: apiclientgo.String(\"type\"),\n Values: []components.FacetFilterValue{\n components.FacetFilterValue{\n Value: apiclientgo.String(\"Spreadsheet\"),\n RelationType: components.RelationTypeEquals.ToPointer(),\n },\n components.FacetFilterValue{\n Value: apiclientgo.String(\"Presentation\"),\n RelationType: components.RelationTypeEquals.ToPointer(),\n },\n },\n },\n },\n ID: 184689,\n Creator: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n UpdatedBy: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n },\n components.Collection{\n Name: \"\",\n Description: \"likewise blindly mooch travel pinion\",\n AudienceFilters: []components.FacetFilter{\n components.FacetFilter{\n FieldName: apiclientgo.String(\"type\"),\n Values: []components.FacetFilterValue{\n components.FacetFilterValue{\n Value: apiclientgo.String(\"Spreadsheet\"),\n RelationType: components.RelationTypeEquals.ToPointer(),\n },\n components.FacetFilterValue{\n Value: apiclientgo.String(\"Presentation\"),\n RelationType: components.RelationTypeEquals.ToPointer(),\n },\n },\n },\n },\n ID: 184689,\n Creator: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n UpdatedBy: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n },\n components.Collection{\n Name: \"\",\n Description: \"likewise blindly mooch travel pinion\",\n AudienceFilters: []components.FacetFilter{\n components.FacetFilter{\n FieldName: apiclientgo.String(\"type\"),\n Values: []components.FacetFilterValue{\n components.FacetFilterValue{\n Value: apiclientgo.String(\"Spreadsheet\"),\n RelationType: components.RelationTypeEquals.ToPointer(),\n },\n components.FacetFilterValue{\n Value: apiclientgo.String(\"Presentation\"),\n RelationType: components.RelationTypeEquals.ToPointer(),\n },\n },\n },\n },\n ID: 184689,\n Creator: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n UpdatedBy: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n },\n },\n },\n },\n SourceDocument: &components.Document{\n Metadata: &components.DocumentMetadata{\n Datasource: apiclientgo.String(\"datasource\"),\n ObjectType: apiclientgo.String(\"Feature Request\"),\n Container: apiclientgo.String(\"container\"),\n ParentID: apiclientgo.String(\"JIRA_EN-1337\"),\n MimeType: apiclientgo.String(\"mimeType\"),\n DocumentID: apiclientgo.String(\"documentId\"),\n CreateTime: types.MustNewTimeFromString(\"2000-01-23T04:56:07.000Z\"),\n UpdateTime: types.MustNewTimeFromString(\"2000-01-23T04:56:07.000Z\"),\n Author: &components.Person{\n Name: \"name\",\n ObfuscatedID: \"\",\n },\n Components: []string{\n \"Backend\",\n \"Networking\",\n },\n Status: apiclientgo.String(\"[\\\"Done\\\"]\"),\n CustomData: map[string]components.CustomDataValue{\n \"someCustomField\": components.CustomDataValue{},\n },\n },\n },\n },\n ExtractedQnA: &components.ExtractedQnA{\n QuestionResult: &components.SearchResult{\n Title: apiclientgo.String(\"title\"),\n URL: \"https://example.com/foo/bar\",\n NativeAppURL: apiclientgo.String(\"slack://foo/bar\"),\n Snippets: []components.SearchResultSnippet{\n components.SearchResultSnippet{\n Snippet: \"snippet\",\n MimeType: apiclientgo.String(\"mimeType\"),\n },\n },\n MustIncludeSuggestions: &components.QuerySuggestionList{},\n },\n },\n Meeting: &components.Meeting{\n Attendees: &components.CalendarAttendees{\n People: []components.CalendarAttendee{\n components.CalendarAttendee{\n Person: components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n GroupAttendees: []components.CalendarAttendee{\n components.CalendarAttendee{\n Person: components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n },\n components.CalendarAttendee{\n Person: components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n },\n },\n },\n components.CalendarAttendee{\n Person: components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n GroupAttendees: []components.CalendarAttendee{\n components.CalendarAttendee{\n Person: components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n },\n components.CalendarAttendee{\n Person: components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n },\n },\n },\n },\n },\n },\n Collection: &components.Collection{\n Name: \"\",\n Description: \"mismatch noisily jive worth meh following hmph analyse\",\n AudienceFilters: []components.FacetFilter{\n components.FacetFilter{\n FieldName: apiclientgo.String(\"type\"),\n Values: []components.FacetFilterValue{\n components.FacetFilterValue{\n Value: apiclientgo.String(\"Spreadsheet\"),\n RelationType: components.RelationTypeEquals.ToPointer(),\n },\n components.FacetFilterValue{\n Value: apiclientgo.String(\"Presentation\"),\n RelationType: components.RelationTypeEquals.ToPointer(),\n },\n },\n },\n },\n ID: 5797,\n Creator: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n UpdatedBy: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n },\n AnswerBoard: &components.AnswerBoard{\n Name: \"\",\n Description: \"pulse yum shakily notwithstanding faithfully boohoo urgently exterior before um\",\n AudienceFilters: []components.FacetFilter{\n components.FacetFilter{\n FieldName: apiclientgo.String(\"type\"),\n Values: []components.FacetFilterValue{\n components.FacetFilterValue{\n Value: apiclientgo.String(\"Spreadsheet\"),\n RelationType: components.RelationTypeEquals.ToPointer(),\n },\n components.FacetFilterValue{\n Value: apiclientgo.String(\"Presentation\"),\n RelationType: components.RelationTypeEquals.ToPointer(),\n },\n },\n },\n },\n ID: 609567,\n Creator: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n UpdatedBy: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n },\n Code: &components.Code{\n RepoName: apiclientgo.String(\"scio\"),\n FileName: apiclientgo.String(\"README.md\"),\n },\n Shortcut: &components.Shortcut{\n InputAlias: \"\",\n CreatedBy: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n UpdatedBy: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n DestinationDocument: &components.Document{\n Metadata: &components.DocumentMetadata{\n Datasource: apiclientgo.String(\"datasource\"),\n ObjectType: apiclientgo.String(\"Feature Request\"),\n Container: apiclientgo.String(\"container\"),\n ParentID: apiclientgo.String(\"JIRA_EN-1337\"),\n MimeType: apiclientgo.String(\"mimeType\"),\n DocumentID: apiclientgo.String(\"documentId\"),\n CreateTime: types.MustNewTimeFromString(\"2000-01-23T04:56:07.000Z\"),\n UpdateTime: types.MustNewTimeFromString(\"2000-01-23T04:56:07.000Z\"),\n Author: &components.Person{\n Name: \"name\",\n ObfuscatedID: \"\",\n },\n Components: []string{\n \"Backend\",\n \"Networking\",\n },\n Status: apiclientgo.String(\"[\\\"Done\\\"]\"),\n CustomData: map[string]components.CustomDataValue{\n \"someCustomField\": components.CustomDataValue{},\n },\n },\n },\n },\n QuerySuggestions: &components.QuerySuggestionList{\n Suggestions: []components.QuerySuggestion{\n components.QuerySuggestion{\n Query: \"app:github type:pull author:mortimer\",\n Label: apiclientgo.String(\"Mortimer's PRs\"),\n Datasource: apiclientgo.String(\"github\"),\n },\n },\n Person: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n },\n RelatedDocuments: []components.RelatedDocuments{\n components.RelatedDocuments{\n QuerySuggestion: &components.QuerySuggestion{\n Query: \"app:github type:pull author:mortimer\",\n Label: apiclientgo.String(\"Mortimer's PRs\"),\n Datasource: apiclientgo.String(\"github\"),\n },\n Results: []components.SearchResult{\n components.SearchResult{\n Title: apiclientgo.String(\"title\"),\n URL: \"https://example.com/foo/bar\",\n NativeAppURL: apiclientgo.String(\"slack://foo/bar\"),\n Snippets: []components.SearchResultSnippet{\n components.SearchResultSnippet{\n Snippet: \"snippet\",\n MimeType: apiclientgo.String(\"mimeType\"),\n },\n },\n MustIncludeSuggestions: &components.QuerySuggestionList{},\n },\n },\n },\n },\n RelatedQuestion: &components.RelatedQuestion{\n Ranges: []components.TextRange{\n components.TextRange{\n StartIndex: 896307,\n Document: &components.Document{\n Metadata: &components.DocumentMetadata{\n Datasource: apiclientgo.String(\"datasource\"),\n ObjectType: apiclientgo.String(\"Feature Request\"),\n Container: apiclientgo.String(\"container\"),\n ParentID: apiclientgo.String(\"JIRA_EN-1337\"),\n MimeType: apiclientgo.String(\"mimeType\"),\n DocumentID: apiclientgo.String(\"documentId\"),\n CreateTime: types.MustNewTimeFromString(\"2000-01-23T04:56:07.000Z\"),\n UpdateTime: types.MustNewTimeFromString(\"2000-01-23T04:56:07.000Z\"),\n Author: &components.Person{\n Name: \"name\",\n ObfuscatedID: \"\",\n },\n Components: []string{\n \"Backend\",\n \"Networking\",\n },\n Status: apiclientgo.String(\"[\\\"Done\\\"]\"),\n CustomData: map[string]components.CustomDataValue{\n \"someCustomField\": components.CustomDataValue{},\n },\n },\n },\n },\n components.TextRange{\n StartIndex: 896307,\n Document: &components.Document{\n Metadata: &components.DocumentMetadata{\n Datasource: apiclientgo.String(\"datasource\"),\n ObjectType: apiclientgo.String(\"Feature Request\"),\n Container: apiclientgo.String(\"container\"),\n ParentID: apiclientgo.String(\"JIRA_EN-1337\"),\n MimeType: apiclientgo.String(\"mimeType\"),\n DocumentID: apiclientgo.String(\"documentId\"),\n CreateTime: types.MustNewTimeFromString(\"2000-01-23T04:56:07.000Z\"),\n UpdateTime: types.MustNewTimeFromString(\"2000-01-23T04:56:07.000Z\"),\n Author: &components.Person{\n Name: \"name\",\n ObfuscatedID: \"\",\n },\n Components: []string{\n \"Backend\",\n \"Networking\",\n },\n Status: apiclientgo.String(\"[\\\"Done\\\"]\"),\n CustomData: map[string]components.CustomDataValue{\n \"someCustomField\": components.CustomDataValue{},\n },\n },\n },\n },\n },\n },\n },\n },\n components.StructuredTextItem{\n Link: apiclientgo.String(\"https://en.wikipedia.org/wiki/Diffuse_sky_radiation\"),\n Document: &components.Document{\n Metadata: &components.DocumentMetadata{\n Datasource: apiclientgo.String(\"datasource\"),\n ObjectType: apiclientgo.String(\"Feature Request\"),\n Container: apiclientgo.String(\"container\"),\n ParentID: apiclientgo.String(\"JIRA_EN-1337\"),\n MimeType: apiclientgo.String(\"mimeType\"),\n DocumentID: apiclientgo.String(\"documentId\"),\n CreateTime: types.MustNewTimeFromString(\"2000-01-23T04:56:07.000Z\"),\n UpdateTime: types.MustNewTimeFromString(\"2000-01-23T04:56:07.000Z\"),\n Author: &components.Person{\n Name: \"name\",\n ObfuscatedID: \"\",\n },\n Components: []string{\n \"Backend\",\n \"Networking\",\n },\n Status: apiclientgo.String(\"[\\\"Done\\\"]\"),\n CustomData: map[string]components.CustomDataValue{\n \"someCustomField\": components.CustomDataValue{},\n },\n },\n },\n Text: apiclientgo.String(\"Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue.\"),\n StructuredResult: &components.StructuredResult{\n Document: &components.Document{\n Metadata: &components.DocumentMetadata{\n Datasource: apiclientgo.String(\"datasource\"),\n ObjectType: apiclientgo.String(\"Feature Request\"),\n Container: apiclientgo.String(\"container\"),\n ParentID: apiclientgo.String(\"JIRA_EN-1337\"),\n MimeType: apiclientgo.String(\"mimeType\"),\n DocumentID: apiclientgo.String(\"documentId\"),\n CreateTime: types.MustNewTimeFromString(\"2000-01-23T04:56:07.000Z\"),\n UpdateTime: types.MustNewTimeFromString(\"2000-01-23T04:56:07.000Z\"),\n Author: &components.Person{\n Name: \"name\",\n ObfuscatedID: \"\",\n },\n Components: []string{\n \"Backend\",\n \"Networking\",\n },\n Status: apiclientgo.String(\"[\\\"Done\\\"]\"),\n CustomData: map[string]components.CustomDataValue{\n \"someCustomField\": components.CustomDataValue{},\n },\n },\n },\n Person: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n Customer: &components.Customer{\n ID: \"\",\n Company: components.Company{\n Name: \"\",\n Location: apiclientgo.String(\"New York City\"),\n Industry: apiclientgo.String(\"Finances\"),\n About: apiclientgo.String(\"Financial, software, data, and media company headquartered in Midtown Manhattan, New York City\"),\n },\n Poc: []components.Person{\n components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n },\n MergedCustomers: []components.Customer{\n components.Customer{\n ID: \"\",\n Company: components.Company{\n Name: \"\",\n Location: apiclientgo.String(\"New York City\"),\n Industry: apiclientgo.String(\"Finances\"),\n About: apiclientgo.String(\"Financial, software, data, and media company headquartered in Midtown Manhattan, New York City\"),\n },\n Notes: apiclientgo.String(\"CIO is interested in trying out the product.\"),\n },\n components.Customer{\n ID: \"\",\n Company: components.Company{\n Name: \"\",\n Location: apiclientgo.String(\"New York City\"),\n Industry: apiclientgo.String(\"Finances\"),\n About: apiclientgo.String(\"Financial, software, data, and media company headquartered in Midtown Manhattan, New York City\"),\n },\n Notes: apiclientgo.String(\"CIO is interested in trying out the product.\"),\n },\n components.Customer{\n ID: \"\",\n Company: components.Company{\n Name: \"\",\n Location: apiclientgo.String(\"New York City\"),\n Industry: apiclientgo.String(\"Finances\"),\n About: apiclientgo.String(\"Financial, software, data, and media company headquartered in Midtown Manhattan, New York City\"),\n },\n Notes: apiclientgo.String(\"CIO is interested in trying out the product.\"),\n },\n },\n Notes: apiclientgo.String(\"CIO is interested in trying out the product.\"),\n },\n Team: &components.Team{\n ID: \"\",\n Name: \"\",\n Members: []components.PersonToTeamRelationship{\n components.PersonToTeamRelationship{\n Person: components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n },\n components.PersonToTeamRelationship{\n Person: components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n },\n },\n CustomFields: []components.CustomFieldData{\n components.CustomFieldData{\n Label: \"\",\n Values: []components.CustomFieldValue{},\n },\n components.CustomFieldData{\n Label: \"\",\n Values: []components.CustomFieldValue{},\n },\n },\n DatasourceProfiles: []components.DatasourceProfile{\n components.DatasourceProfile{\n Datasource: \"github\",\n Handle: \"\",\n },\n components.DatasourceProfile{\n Datasource: \"github\",\n Handle: \"\",\n },\n components.DatasourceProfile{\n Datasource: \"github\",\n Handle: \"\",\n },\n },\n },\n CustomEntity: &components.CustomEntity{\n Roles: []components.UserRoleSpecification{\n components.UserRoleSpecification{\n Person: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n Role: components.UserRoleEditor,\n },\n components.UserRoleSpecification{\n Person: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n Role: components.UserRoleEditor,\n },\n },\n },\n Answer: &components.Answer{\n ID: 3,\n DocID: apiclientgo.String(\"ANSWERS_answer_3\"),\n Question: apiclientgo.String(\"Why is the sky blue?\"),\n BodyText: apiclientgo.String(\"From https://en.wikipedia.org/wiki/Diffuse_sky_radiation, the sky is blue because blue light is more strongly scattered than longer-wavelength light.\"),\n AudienceFilters: []components.FacetFilter{\n components.FacetFilter{\n FieldName: apiclientgo.String(\"type\"),\n Values: []components.FacetFilterValue{\n components.FacetFilterValue{\n Value: apiclientgo.String(\"Spreadsheet\"),\n RelationType: components.RelationTypeEquals.ToPointer(),\n },\n components.FacetFilterValue{\n Value: apiclientgo.String(\"Presentation\"),\n RelationType: components.RelationTypeEquals.ToPointer(),\n },\n },\n },\n },\n AddedRoles: []components.UserRoleSpecification{\n components.UserRoleSpecification{\n Person: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n Role: components.UserRoleOwner,\n },\n components.UserRoleSpecification{\n Person: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n Role: components.UserRoleOwner,\n },\n },\n RemovedRoles: []components.UserRoleSpecification{\n components.UserRoleSpecification{\n Person: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n Role: components.UserRoleAnswerModerator,\n },\n components.UserRoleSpecification{\n Person: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n Role: components.UserRoleAnswerModerator,\n },\n components.UserRoleSpecification{\n Person: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n Role: components.UserRoleAnswerModerator,\n },\n },\n Likes: &components.AnswerLikes{\n LikedBy: []components.AnswerLike{\n components.AnswerLike{\n User: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n },\n },\n LikedByUser: true,\n NumLikes: 38608,\n },\n Author: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n UpdatedBy: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n Verification: &components.Verification{\n State: components.StateDeprecated,\n Metadata: &components.VerificationMetadata{\n LastVerifier: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n Document: &components.Document{\n Metadata: &components.DocumentMetadata{\n Datasource: apiclientgo.String(\"datasource\"),\n ObjectType: apiclientgo.String(\"Feature Request\"),\n Container: apiclientgo.String(\"container\"),\n ParentID: apiclientgo.String(\"JIRA_EN-1337\"),\n MimeType: apiclientgo.String(\"mimeType\"),\n DocumentID: apiclientgo.String(\"documentId\"),\n CreateTime: types.MustNewTimeFromString(\"2000-01-23T04:56:07.000Z\"),\n UpdateTime: types.MustNewTimeFromString(\"2000-01-23T04:56:07.000Z\"),\n Author: &components.Person{\n Name: \"name\",\n ObfuscatedID: \"\",\n },\n Components: []string{\n \"Backend\",\n \"Networking\",\n },\n Status: apiclientgo.String(\"[\\\"Done\\\"]\"),\n CustomData: map[string]components.CustomDataValue{\n \"someCustomField\": components.CustomDataValue{},\n },\n },\n },\n Reminders: []components.Reminder{\n components.Reminder{\n Assignee: components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n Requestor: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n RemindAt: 735135,\n },\n components.Reminder{\n Assignee: components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n Requestor: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n RemindAt: 735135,\n },\n },\n LastReminder: &components.Reminder{\n Assignee: components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n Requestor: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n RemindAt: 528697,\n },\n CandidateVerifiers: []components.Person{\n components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n },\n },\n },\n Board: &components.AnswerBoard{\n Name: \"\",\n Description: \"treasure phrase meaty\",\n AudienceFilters: []components.FacetFilter{\n components.FacetFilter{\n FieldName: apiclientgo.String(\"type\"),\n Values: []components.FacetFilterValue{\n components.FacetFilterValue{\n Value: apiclientgo.String(\"Spreadsheet\"),\n RelationType: components.RelationTypeEquals.ToPointer(),\n },\n components.FacetFilterValue{\n Value: apiclientgo.String(\"Presentation\"),\n RelationType: components.RelationTypeEquals.ToPointer(),\n },\n },\n },\n },\n ID: 355296,\n Creator: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n UpdatedBy: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n },\n Collections: []components.Collection{\n components.Collection{\n Name: \"\",\n Description: \"thunderbolt acidly warmly hence zowie\",\n AudienceFilters: []components.FacetFilter{\n components.FacetFilter{\n FieldName: apiclientgo.String(\"type\"),\n Values: []components.FacetFilterValue{\n components.FacetFilterValue{\n Value: apiclientgo.String(\"Spreadsheet\"),\n RelationType: components.RelationTypeEquals.ToPointer(),\n },\n components.FacetFilterValue{\n Value: apiclientgo.String(\"Presentation\"),\n RelationType: components.RelationTypeEquals.ToPointer(),\n },\n },\n },\n },\n ID: 416180,\n Creator: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n UpdatedBy: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n Items: []components.CollectionItem{\n components.CollectionItem{\n CollectionID: 213025,\n CreatedBy: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n Document: &components.Document{\n Metadata: &components.DocumentMetadata{\n Datasource: apiclientgo.String(\"datasource\"),\n ObjectType: apiclientgo.String(\"Feature Request\"),\n Container: apiclientgo.String(\"container\"),\n ParentID: apiclientgo.String(\"JIRA_EN-1337\"),\n MimeType: apiclientgo.String(\"mimeType\"),\n DocumentID: apiclientgo.String(\"documentId\"),\n CreateTime: types.MustNewTimeFromString(\"2000-01-23T04:56:07.000Z\"),\n UpdateTime: types.MustNewTimeFromString(\"2000-01-23T04:56:07.000Z\"),\n Author: &components.Person{\n Name: \"name\",\n ObfuscatedID: \"\",\n },\n Components: []string{\n \"Backend\",\n \"Networking\",\n },\n Status: apiclientgo.String(\"[\\\"Done\\\"]\"),\n CustomData: map[string]components.CustomDataValue{\n \"someCustomField\": components.CustomDataValue{},\n },\n },\n },\n Shortcut: &components.Shortcut{\n InputAlias: \"\",\n CreatedBy: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n UpdatedBy: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n DestinationDocument: &components.Document{\n Metadata: &components.DocumentMetadata{\n Datasource: apiclientgo.String(\"datasource\"),\n ObjectType: apiclientgo.String(\"Feature Request\"),\n Container: apiclientgo.String(\"container\"),\n ParentID: apiclientgo.String(\"JIRA_EN-1337\"),\n MimeType: apiclientgo.String(\"mimeType\"),\n DocumentID: apiclientgo.String(\"documentId\"),\n CreateTime: types.MustNewTimeFromString(\"2000-01-23T04:56:07.000Z\"),\n UpdateTime: types.MustNewTimeFromString(\"2000-01-23T04:56:07.000Z\"),\n Author: &components.Person{\n Name: \"name\",\n ObfuscatedID: \"\",\n },\n Components: []string{\n \"Backend\",\n \"Networking\",\n },\n Status: apiclientgo.String(\"[\\\"Done\\\"]\"),\n CustomData: map[string]components.CustomDataValue{\n \"someCustomField\": components.CustomDataValue{},\n },\n },\n },\n },\n ItemType: components.CollectionItemItemTypeText,\n },\n components.CollectionItem{\n CollectionID: 213025,\n CreatedBy: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n Document: &components.Document{\n Metadata: &components.DocumentMetadata{\n Datasource: apiclientgo.String(\"datasource\"),\n ObjectType: apiclientgo.String(\"Feature Request\"),\n Container: apiclientgo.String(\"container\"),\n ParentID: apiclientgo.String(\"JIRA_EN-1337\"),\n MimeType: apiclientgo.String(\"mimeType\"),\n DocumentID: apiclientgo.String(\"documentId\"),\n CreateTime: types.MustNewTimeFromString(\"2000-01-23T04:56:07.000Z\"),\n UpdateTime: types.MustNewTimeFromString(\"2000-01-23T04:56:07.000Z\"),\n Author: &components.Person{\n Name: \"name\",\n ObfuscatedID: \"\",\n },\n Components: []string{\n \"Backend\",\n \"Networking\",\n },\n Status: apiclientgo.String(\"[\\\"Done\\\"]\"),\n CustomData: map[string]components.CustomDataValue{\n \"someCustomField\": components.CustomDataValue{},\n },\n },\n },\n Shortcut: &components.Shortcut{\n InputAlias: \"\",\n CreatedBy: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n UpdatedBy: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n DestinationDocument: &components.Document{\n Metadata: &components.DocumentMetadata{\n Datasource: apiclientgo.String(\"datasource\"),\n ObjectType: apiclientgo.String(\"Feature Request\"),\n Container: apiclientgo.String(\"container\"),\n ParentID: apiclientgo.String(\"JIRA_EN-1337\"),\n MimeType: apiclientgo.String(\"mimeType\"),\n DocumentID: apiclientgo.String(\"documentId\"),\n CreateTime: types.MustNewTimeFromString(\"2000-01-23T04:56:07.000Z\"),\n UpdateTime: types.MustNewTimeFromString(\"2000-01-23T04:56:07.000Z\"),\n Author: &components.Person{\n Name: \"name\",\n ObfuscatedID: \"\",\n },\n Components: []string{\n \"Backend\",\n \"Networking\",\n },\n Status: apiclientgo.String(\"[\\\"Done\\\"]\"),\n CustomData: map[string]components.CustomDataValue{\n \"someCustomField\": components.CustomDataValue{},\n },\n },\n },\n },\n ItemType: components.CollectionItemItemTypeText,\n },\n components.CollectionItem{\n CollectionID: 213025,\n CreatedBy: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n Document: &components.Document{\n Metadata: &components.DocumentMetadata{\n Datasource: apiclientgo.String(\"datasource\"),\n ObjectType: apiclientgo.String(\"Feature Request\"),\n Container: apiclientgo.String(\"container\"),\n ParentID: apiclientgo.String(\"JIRA_EN-1337\"),\n MimeType: apiclientgo.String(\"mimeType\"),\n DocumentID: apiclientgo.String(\"documentId\"),\n CreateTime: types.MustNewTimeFromString(\"2000-01-23T04:56:07.000Z\"),\n UpdateTime: types.MustNewTimeFromString(\"2000-01-23T04:56:07.000Z\"),\n Author: &components.Person{\n Name: \"name\",\n ObfuscatedID: \"\",\n },\n Components: []string{\n \"Backend\",\n \"Networking\",\n },\n Status: apiclientgo.String(\"[\\\"Done\\\"]\"),\n CustomData: map[string]components.CustomDataValue{\n \"someCustomField\": components.CustomDataValue{},\n },\n },\n },\n Shortcut: &components.Shortcut{\n InputAlias: \"\",\n CreatedBy: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n UpdatedBy: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n DestinationDocument: &components.Document{\n Metadata: &components.DocumentMetadata{\n Datasource: apiclientgo.String(\"datasource\"),\n ObjectType: apiclientgo.String(\"Feature Request\"),\n Container: apiclientgo.String(\"container\"),\n ParentID: apiclientgo.String(\"JIRA_EN-1337\"),\n MimeType: apiclientgo.String(\"mimeType\"),\n DocumentID: apiclientgo.String(\"documentId\"),\n CreateTime: types.MustNewTimeFromString(\"2000-01-23T04:56:07.000Z\"),\n UpdateTime: types.MustNewTimeFromString(\"2000-01-23T04:56:07.000Z\"),\n Author: &components.Person{\n Name: \"name\",\n ObfuscatedID: \"\",\n },\n Components: []string{\n \"Backend\",\n \"Networking\",\n },\n Status: apiclientgo.String(\"[\\\"Done\\\"]\"),\n CustomData: map[string]components.CustomDataValue{\n \"someCustomField\": components.CustomDataValue{},\n },\n },\n },\n },\n ItemType: components.CollectionItemItemTypeText,\n },\n },\n Children: []components.Collection{\n components.Collection{\n Name: \"\",\n Description: \"likewise blindly mooch travel pinion\",\n AudienceFilters: []components.FacetFilter{\n components.FacetFilter{\n FieldName: apiclientgo.String(\"type\"),\n Values: []components.FacetFilterValue{\n components.FacetFilterValue{\n Value: apiclientgo.String(\"Spreadsheet\"),\n RelationType: components.RelationTypeEquals.ToPointer(),\n },\n components.FacetFilterValue{\n Value: apiclientgo.String(\"Presentation\"),\n RelationType: components.RelationTypeEquals.ToPointer(),\n },\n },\n },\n },\n ID: 184689,\n Creator: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n UpdatedBy: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n },\n components.Collection{\n Name: \"\",\n Description: \"likewise blindly mooch travel pinion\",\n AudienceFilters: []components.FacetFilter{\n components.FacetFilter{\n FieldName: apiclientgo.String(\"type\"),\n Values: []components.FacetFilterValue{\n components.FacetFilterValue{\n Value: apiclientgo.String(\"Spreadsheet\"),\n RelationType: components.RelationTypeEquals.ToPointer(),\n },\n components.FacetFilterValue{\n Value: apiclientgo.String(\"Presentation\"),\n RelationType: components.RelationTypeEquals.ToPointer(),\n },\n },\n },\n },\n ID: 184689,\n Creator: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n UpdatedBy: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n },\n components.Collection{\n Name: \"\",\n Description: \"likewise blindly mooch travel pinion\",\n AudienceFilters: []components.FacetFilter{\n components.FacetFilter{\n FieldName: apiclientgo.String(\"type\"),\n Values: []components.FacetFilterValue{\n components.FacetFilterValue{\n Value: apiclientgo.String(\"Spreadsheet\"),\n RelationType: components.RelationTypeEquals.ToPointer(),\n },\n components.FacetFilterValue{\n Value: apiclientgo.String(\"Presentation\"),\n RelationType: components.RelationTypeEquals.ToPointer(),\n },\n },\n },\n },\n ID: 184689,\n Creator: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n UpdatedBy: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n },\n },\n },\n components.Collection{\n Name: \"\",\n Description: \"thunderbolt acidly warmly hence zowie\",\n AudienceFilters: []components.FacetFilter{\n components.FacetFilter{\n FieldName: apiclientgo.String(\"type\"),\n Values: []components.FacetFilterValue{\n components.FacetFilterValue{\n Value: apiclientgo.String(\"Spreadsheet\"),\n RelationType: components.RelationTypeEquals.ToPointer(),\n },\n components.FacetFilterValue{\n Value: apiclientgo.String(\"Presentation\"),\n RelationType: components.RelationTypeEquals.ToPointer(),\n },\n },\n },\n },\n ID: 416180,\n Creator: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n UpdatedBy: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n Items: []components.CollectionItem{\n components.CollectionItem{\n CollectionID: 213025,\n CreatedBy: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n Document: &components.Document{\n Metadata: &components.DocumentMetadata{\n Datasource: apiclientgo.String(\"datasource\"),\n ObjectType: apiclientgo.String(\"Feature Request\"),\n Container: apiclientgo.String(\"container\"),\n ParentID: apiclientgo.String(\"JIRA_EN-1337\"),\n MimeType: apiclientgo.String(\"mimeType\"),\n DocumentID: apiclientgo.String(\"documentId\"),\n CreateTime: types.MustNewTimeFromString(\"2000-01-23T04:56:07.000Z\"),\n UpdateTime: types.MustNewTimeFromString(\"2000-01-23T04:56:07.000Z\"),\n Author: &components.Person{\n Name: \"name\",\n ObfuscatedID: \"\",\n },\n Components: []string{\n \"Backend\",\n \"Networking\",\n },\n Status: apiclientgo.String(\"[\\\"Done\\\"]\"),\n CustomData: map[string]components.CustomDataValue{\n \"someCustomField\": components.CustomDataValue{},\n },\n },\n },\n Shortcut: &components.Shortcut{\n InputAlias: \"\",\n CreatedBy: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n UpdatedBy: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n DestinationDocument: &components.Document{\n Metadata: &components.DocumentMetadata{\n Datasource: apiclientgo.String(\"datasource\"),\n ObjectType: apiclientgo.String(\"Feature Request\"),\n Container: apiclientgo.String(\"container\"),\n ParentID: apiclientgo.String(\"JIRA_EN-1337\"),\n MimeType: apiclientgo.String(\"mimeType\"),\n DocumentID: apiclientgo.String(\"documentId\"),\n CreateTime: types.MustNewTimeFromString(\"2000-01-23T04:56:07.000Z\"),\n UpdateTime: types.MustNewTimeFromString(\"2000-01-23T04:56:07.000Z\"),\n Author: &components.Person{\n Name: \"name\",\n ObfuscatedID: \"\",\n },\n Components: []string{\n \"Backend\",\n \"Networking\",\n },\n Status: apiclientgo.String(\"[\\\"Done\\\"]\"),\n CustomData: map[string]components.CustomDataValue{\n \"someCustomField\": components.CustomDataValue{},\n },\n },\n },\n },\n ItemType: components.CollectionItemItemTypeText,\n },\n components.CollectionItem{\n CollectionID: 213025,\n CreatedBy: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n Document: &components.Document{\n Metadata: &components.DocumentMetadata{\n Datasource: apiclientgo.String(\"datasource\"),\n ObjectType: apiclientgo.String(\"Feature Request\"),\n Container: apiclientgo.String(\"container\"),\n ParentID: apiclientgo.String(\"JIRA_EN-1337\"),\n MimeType: apiclientgo.String(\"mimeType\"),\n DocumentID: apiclientgo.String(\"documentId\"),\n CreateTime: types.MustNewTimeFromString(\"2000-01-23T04:56:07.000Z\"),\n UpdateTime: types.MustNewTimeFromString(\"2000-01-23T04:56:07.000Z\"),\n Author: &components.Person{\n Name: \"name\",\n ObfuscatedID: \"\",\n },\n Components: []string{\n \"Backend\",\n \"Networking\",\n },\n Status: apiclientgo.String(\"[\\\"Done\\\"]\"),\n CustomData: map[string]components.CustomDataValue{\n \"someCustomField\": components.CustomDataValue{},\n },\n },\n },\n Shortcut: &components.Shortcut{\n InputAlias: \"\",\n CreatedBy: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n UpdatedBy: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n DestinationDocument: &components.Document{\n Metadata: &components.DocumentMetadata{\n Datasource: apiclientgo.String(\"datasource\"),\n ObjectType: apiclientgo.String(\"Feature Request\"),\n Container: apiclientgo.String(\"container\"),\n ParentID: apiclientgo.String(\"JIRA_EN-1337\"),\n MimeType: apiclientgo.String(\"mimeType\"),\n DocumentID: apiclientgo.String(\"documentId\"),\n CreateTime: types.MustNewTimeFromString(\"2000-01-23T04:56:07.000Z\"),\n UpdateTime: types.MustNewTimeFromString(\"2000-01-23T04:56:07.000Z\"),\n Author: &components.Person{\n Name: \"name\",\n ObfuscatedID: \"\",\n },\n Components: []string{\n \"Backend\",\n \"Networking\",\n },\n Status: apiclientgo.String(\"[\\\"Done\\\"]\"),\n CustomData: map[string]components.CustomDataValue{\n \"someCustomField\": components.CustomDataValue{},\n },\n },\n },\n },\n ItemType: components.CollectionItemItemTypeText,\n },\n components.CollectionItem{\n CollectionID: 213025,\n CreatedBy: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n Document: &components.Document{\n Metadata: &components.DocumentMetadata{\n Datasource: apiclientgo.String(\"datasource\"),\n ObjectType: apiclientgo.String(\"Feature Request\"),\n Container: apiclientgo.String(\"container\"),\n ParentID: apiclientgo.String(\"JIRA_EN-1337\"),\n MimeType: apiclientgo.String(\"mimeType\"),\n DocumentID: apiclientgo.String(\"documentId\"),\n CreateTime: types.MustNewTimeFromString(\"2000-01-23T04:56:07.000Z\"),\n UpdateTime: types.MustNewTimeFromString(\"2000-01-23T04:56:07.000Z\"),\n Author: &components.Person{\n Name: \"name\",\n ObfuscatedID: \"\",\n },\n Components: []string{\n \"Backend\",\n \"Networking\",\n },\n Status: apiclientgo.String(\"[\\\"Done\\\"]\"),\n CustomData: map[string]components.CustomDataValue{\n \"someCustomField\": components.CustomDataValue{},\n },\n },\n },\n Shortcut: &components.Shortcut{\n InputAlias: \"\",\n CreatedBy: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n UpdatedBy: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n DestinationDocument: &components.Document{\n Metadata: &components.DocumentMetadata{\n Datasource: apiclientgo.String(\"datasource\"),\n ObjectType: apiclientgo.String(\"Feature Request\"),\n Container: apiclientgo.String(\"container\"),\n ParentID: apiclientgo.String(\"JIRA_EN-1337\"),\n MimeType: apiclientgo.String(\"mimeType\"),\n DocumentID: apiclientgo.String(\"documentId\"),\n CreateTime: types.MustNewTimeFromString(\"2000-01-23T04:56:07.000Z\"),\n UpdateTime: types.MustNewTimeFromString(\"2000-01-23T04:56:07.000Z\"),\n Author: &components.Person{\n Name: \"name\",\n ObfuscatedID: \"\",\n },\n Components: []string{\n \"Backend\",\n \"Networking\",\n },\n Status: apiclientgo.String(\"[\\\"Done\\\"]\"),\n CustomData: map[string]components.CustomDataValue{\n \"someCustomField\": components.CustomDataValue{},\n },\n },\n },\n },\n ItemType: components.CollectionItemItemTypeText,\n },\n },\n Children: []components.Collection{\n components.Collection{\n Name: \"\",\n Description: \"likewise blindly mooch travel pinion\",\n AudienceFilters: []components.FacetFilter{\n components.FacetFilter{\n FieldName: apiclientgo.String(\"type\"),\n Values: []components.FacetFilterValue{\n components.FacetFilterValue{\n Value: apiclientgo.String(\"Spreadsheet\"),\n RelationType: components.RelationTypeEquals.ToPointer(),\n },\n components.FacetFilterValue{\n Value: apiclientgo.String(\"Presentation\"),\n RelationType: components.RelationTypeEquals.ToPointer(),\n },\n },\n },\n },\n ID: 184689,\n Creator: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n UpdatedBy: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n },\n components.Collection{\n Name: \"\",\n Description: \"likewise blindly mooch travel pinion\",\n AudienceFilters: []components.FacetFilter{\n components.FacetFilter{\n FieldName: apiclientgo.String(\"type\"),\n Values: []components.FacetFilterValue{\n components.FacetFilterValue{\n Value: apiclientgo.String(\"Spreadsheet\"),\n RelationType: components.RelationTypeEquals.ToPointer(),\n },\n components.FacetFilterValue{\n Value: apiclientgo.String(\"Presentation\"),\n RelationType: components.RelationTypeEquals.ToPointer(),\n },\n },\n },\n },\n ID: 184689,\n Creator: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n UpdatedBy: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n },\n components.Collection{\n Name: \"\",\n Description: \"likewise blindly mooch travel pinion\",\n AudienceFilters: []components.FacetFilter{\n components.FacetFilter{\n FieldName: apiclientgo.String(\"type\"),\n Values: []components.FacetFilterValue{\n components.FacetFilterValue{\n Value: apiclientgo.String(\"Spreadsheet\"),\n RelationType: components.RelationTypeEquals.ToPointer(),\n },\n components.FacetFilterValue{\n Value: apiclientgo.String(\"Presentation\"),\n RelationType: components.RelationTypeEquals.ToPointer(),\n },\n },\n },\n },\n ID: 184689,\n Creator: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n UpdatedBy: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n },\n },\n },\n },\n SourceDocument: &components.Document{\n Metadata: &components.DocumentMetadata{\n Datasource: apiclientgo.String(\"datasource\"),\n ObjectType: apiclientgo.String(\"Feature Request\"),\n Container: apiclientgo.String(\"container\"),\n ParentID: apiclientgo.String(\"JIRA_EN-1337\"),\n MimeType: apiclientgo.String(\"mimeType\"),\n DocumentID: apiclientgo.String(\"documentId\"),\n CreateTime: types.MustNewTimeFromString(\"2000-01-23T04:56:07.000Z\"),\n UpdateTime: types.MustNewTimeFromString(\"2000-01-23T04:56:07.000Z\"),\n Author: &components.Person{\n Name: \"name\",\n ObfuscatedID: \"\",\n },\n Components: []string{\n \"Backend\",\n \"Networking\",\n },\n Status: apiclientgo.String(\"[\\\"Done\\\"]\"),\n CustomData: map[string]components.CustomDataValue{\n \"someCustomField\": components.CustomDataValue{},\n },\n },\n },\n },\n ExtractedQnA: &components.ExtractedQnA{\n QuestionResult: &components.SearchResult{\n Title: apiclientgo.String(\"title\"),\n URL: \"https://example.com/foo/bar\",\n NativeAppURL: apiclientgo.String(\"slack://foo/bar\"),\n Snippets: []components.SearchResultSnippet{\n components.SearchResultSnippet{\n Snippet: \"snippet\",\n MimeType: apiclientgo.String(\"mimeType\"),\n },\n },\n MustIncludeSuggestions: &components.QuerySuggestionList{},\n },\n },\n Meeting: &components.Meeting{\n Attendees: &components.CalendarAttendees{\n People: []components.CalendarAttendee{\n components.CalendarAttendee{\n Person: components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n GroupAttendees: []components.CalendarAttendee{\n components.CalendarAttendee{\n Person: components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n },\n components.CalendarAttendee{\n Person: components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n },\n },\n },\n components.CalendarAttendee{\n Person: components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n GroupAttendees: []components.CalendarAttendee{\n components.CalendarAttendee{\n Person: components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n },\n components.CalendarAttendee{\n Person: components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n },\n },\n },\n },\n },\n },\n Collection: &components.Collection{\n Name: \"\",\n Description: \"mismatch noisily jive worth meh following hmph analyse\",\n AudienceFilters: []components.FacetFilter{\n components.FacetFilter{\n FieldName: apiclientgo.String(\"type\"),\n Values: []components.FacetFilterValue{\n components.FacetFilterValue{\n Value: apiclientgo.String(\"Spreadsheet\"),\n RelationType: components.RelationTypeEquals.ToPointer(),\n },\n components.FacetFilterValue{\n Value: apiclientgo.String(\"Presentation\"),\n RelationType: components.RelationTypeEquals.ToPointer(),\n },\n },\n },\n },\n ID: 5797,\n Creator: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n UpdatedBy: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n },\n AnswerBoard: &components.AnswerBoard{\n Name: \"\",\n Description: \"pulse yum shakily notwithstanding faithfully boohoo urgently exterior before um\",\n AudienceFilters: []components.FacetFilter{\n components.FacetFilter{\n FieldName: apiclientgo.String(\"type\"),\n Values: []components.FacetFilterValue{\n components.FacetFilterValue{\n Value: apiclientgo.String(\"Spreadsheet\"),\n RelationType: components.RelationTypeEquals.ToPointer(),\n },\n components.FacetFilterValue{\n Value: apiclientgo.String(\"Presentation\"),\n RelationType: components.RelationTypeEquals.ToPointer(),\n },\n },\n },\n },\n ID: 609567,\n Creator: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n UpdatedBy: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n },\n Code: &components.Code{\n RepoName: apiclientgo.String(\"scio\"),\n FileName: apiclientgo.String(\"README.md\"),\n },\n Shortcut: &components.Shortcut{\n InputAlias: \"\",\n CreatedBy: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n UpdatedBy: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n DestinationDocument: &components.Document{\n Metadata: &components.DocumentMetadata{\n Datasource: apiclientgo.String(\"datasource\"),\n ObjectType: apiclientgo.String(\"Feature Request\"),\n Container: apiclientgo.String(\"container\"),\n ParentID: apiclientgo.String(\"JIRA_EN-1337\"),\n MimeType: apiclientgo.String(\"mimeType\"),\n DocumentID: apiclientgo.String(\"documentId\"),\n CreateTime: types.MustNewTimeFromString(\"2000-01-23T04:56:07.000Z\"),\n UpdateTime: types.MustNewTimeFromString(\"2000-01-23T04:56:07.000Z\"),\n Author: &components.Person{\n Name: \"name\",\n ObfuscatedID: \"\",\n },\n Components: []string{\n \"Backend\",\n \"Networking\",\n },\n Status: apiclientgo.String(\"[\\\"Done\\\"]\"),\n CustomData: map[string]components.CustomDataValue{\n \"someCustomField\": components.CustomDataValue{},\n },\n },\n },\n },\n QuerySuggestions: &components.QuerySuggestionList{\n Suggestions: []components.QuerySuggestion{\n components.QuerySuggestion{\n Query: \"app:github type:pull author:mortimer\",\n Label: apiclientgo.String(\"Mortimer's PRs\"),\n Datasource: apiclientgo.String(\"github\"),\n },\n },\n Person: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n },\n RelatedDocuments: []components.RelatedDocuments{\n components.RelatedDocuments{\n QuerySuggestion: &components.QuerySuggestion{\n Query: \"app:github type:pull author:mortimer\",\n Label: apiclientgo.String(\"Mortimer's PRs\"),\n Datasource: apiclientgo.String(\"github\"),\n },\n Results: []components.SearchResult{\n components.SearchResult{\n Title: apiclientgo.String(\"title\"),\n URL: \"https://example.com/foo/bar\",\n NativeAppURL: apiclientgo.String(\"slack://foo/bar\"),\n Snippets: []components.SearchResultSnippet{\n components.SearchResultSnippet{\n Snippet: \"snippet\",\n MimeType: apiclientgo.String(\"mimeType\"),\n },\n },\n MustIncludeSuggestions: &components.QuerySuggestionList{},\n },\n },\n },\n },\n RelatedQuestion: &components.RelatedQuestion{\n Ranges: []components.TextRange{\n components.TextRange{\n StartIndex: 896307,\n Document: &components.Document{\n Metadata: &components.DocumentMetadata{\n Datasource: apiclientgo.String(\"datasource\"),\n ObjectType: apiclientgo.String(\"Feature Request\"),\n Container: apiclientgo.String(\"container\"),\n ParentID: apiclientgo.String(\"JIRA_EN-1337\"),\n MimeType: apiclientgo.String(\"mimeType\"),\n DocumentID: apiclientgo.String(\"documentId\"),\n CreateTime: types.MustNewTimeFromString(\"2000-01-23T04:56:07.000Z\"),\n UpdateTime: types.MustNewTimeFromString(\"2000-01-23T04:56:07.000Z\"),\n Author: &components.Person{\n Name: \"name\",\n ObfuscatedID: \"\",\n },\n Components: []string{\n \"Backend\",\n \"Networking\",\n },\n Status: apiclientgo.String(\"[\\\"Done\\\"]\"),\n CustomData: map[string]components.CustomDataValue{\n \"someCustomField\": components.CustomDataValue{},\n },\n },\n },\n },\n components.TextRange{\n StartIndex: 896307,\n Document: &components.Document{\n Metadata: &components.DocumentMetadata{\n Datasource: apiclientgo.String(\"datasource\"),\n ObjectType: apiclientgo.String(\"Feature Request\"),\n Container: apiclientgo.String(\"container\"),\n ParentID: apiclientgo.String(\"JIRA_EN-1337\"),\n MimeType: apiclientgo.String(\"mimeType\"),\n DocumentID: apiclientgo.String(\"documentId\"),\n CreateTime: types.MustNewTimeFromString(\"2000-01-23T04:56:07.000Z\"),\n UpdateTime: types.MustNewTimeFromString(\"2000-01-23T04:56:07.000Z\"),\n Author: &components.Person{\n Name: \"name\",\n ObfuscatedID: \"\",\n },\n Components: []string{\n \"Backend\",\n \"Networking\",\n },\n Status: apiclientgo.String(\"[\\\"Done\\\"]\"),\n CustomData: map[string]components.CustomDataValue{\n \"someCustomField\": components.CustomDataValue{},\n },\n },\n },\n },\n },\n },\n },\n },\n components.StructuredTextItem{\n Link: apiclientgo.String(\"https://en.wikipedia.org/wiki/Diffuse_sky_radiation\"),\n Document: &components.Document{\n Metadata: &components.DocumentMetadata{\n Datasource: apiclientgo.String(\"datasource\"),\n ObjectType: apiclientgo.String(\"Feature Request\"),\n Container: apiclientgo.String(\"container\"),\n ParentID: apiclientgo.String(\"JIRA_EN-1337\"),\n MimeType: apiclientgo.String(\"mimeType\"),\n DocumentID: apiclientgo.String(\"documentId\"),\n CreateTime: types.MustNewTimeFromString(\"2000-01-23T04:56:07.000Z\"),\n UpdateTime: types.MustNewTimeFromString(\"2000-01-23T04:56:07.000Z\"),\n Author: &components.Person{\n Name: \"name\",\n ObfuscatedID: \"\",\n },\n Components: []string{\n \"Backend\",\n \"Networking\",\n },\n Status: apiclientgo.String(\"[\\\"Done\\\"]\"),\n CustomData: map[string]components.CustomDataValue{\n \"someCustomField\": components.CustomDataValue{},\n },\n },\n },\n Text: apiclientgo.String(\"Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue.\"),\n StructuredResult: &components.StructuredResult{\n Document: &components.Document{\n Metadata: &components.DocumentMetadata{\n Datasource: apiclientgo.String(\"datasource\"),\n ObjectType: apiclientgo.String(\"Feature Request\"),\n Container: apiclientgo.String(\"container\"),\n ParentID: apiclientgo.String(\"JIRA_EN-1337\"),\n MimeType: apiclientgo.String(\"mimeType\"),\n DocumentID: apiclientgo.String(\"documentId\"),\n CreateTime: types.MustNewTimeFromString(\"2000-01-23T04:56:07.000Z\"),\n UpdateTime: types.MustNewTimeFromString(\"2000-01-23T04:56:07.000Z\"),\n Author: &components.Person{\n Name: \"name\",\n ObfuscatedID: \"\",\n },\n Components: []string{\n \"Backend\",\n \"Networking\",\n },\n Status: apiclientgo.String(\"[\\\"Done\\\"]\"),\n CustomData: map[string]components.CustomDataValue{\n \"someCustomField\": components.CustomDataValue{},\n },\n },\n },\n Person: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n Customer: &components.Customer{\n ID: \"\",\n Company: components.Company{\n Name: \"\",\n Location: apiclientgo.String(\"New York City\"),\n Industry: apiclientgo.String(\"Finances\"),\n About: apiclientgo.String(\"Financial, software, data, and media company headquartered in Midtown Manhattan, New York City\"),\n },\n Poc: []components.Person{\n components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n },\n MergedCustomers: []components.Customer{\n components.Customer{\n ID: \"\",\n Company: components.Company{\n Name: \"\",\n Location: apiclientgo.String(\"New York City\"),\n Industry: apiclientgo.String(\"Finances\"),\n About: apiclientgo.String(\"Financial, software, data, and media company headquartered in Midtown Manhattan, New York City\"),\n },\n Notes: apiclientgo.String(\"CIO is interested in trying out the product.\"),\n },\n components.Customer{\n ID: \"\",\n Company: components.Company{\n Name: \"\",\n Location: apiclientgo.String(\"New York City\"),\n Industry: apiclientgo.String(\"Finances\"),\n About: apiclientgo.String(\"Financial, software, data, and media company headquartered in Midtown Manhattan, New York City\"),\n },\n Notes: apiclientgo.String(\"CIO is interested in trying out the product.\"),\n },\n components.Customer{\n ID: \"\",\n Company: components.Company{\n Name: \"\",\n Location: apiclientgo.String(\"New York City\"),\n Industry: apiclientgo.String(\"Finances\"),\n About: apiclientgo.String(\"Financial, software, data, and media company headquartered in Midtown Manhattan, New York City\"),\n },\n Notes: apiclientgo.String(\"CIO is interested in trying out the product.\"),\n },\n },\n Notes: apiclientgo.String(\"CIO is interested in trying out the product.\"),\n },\n Team: &components.Team{\n ID: \"\",\n Name: \"\",\n Members: []components.PersonToTeamRelationship{\n components.PersonToTeamRelationship{\n Person: components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n },\n components.PersonToTeamRelationship{\n Person: components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n },\n },\n CustomFields: []components.CustomFieldData{\n components.CustomFieldData{\n Label: \"\",\n Values: []components.CustomFieldValue{},\n },\n components.CustomFieldData{\n Label: \"\",\n Values: []components.CustomFieldValue{},\n },\n },\n DatasourceProfiles: []components.DatasourceProfile{\n components.DatasourceProfile{\n Datasource: \"github\",\n Handle: \"\",\n },\n components.DatasourceProfile{\n Datasource: \"github\",\n Handle: \"\",\n },\n components.DatasourceProfile{\n Datasource: \"github\",\n Handle: \"\",\n },\n },\n },\n CustomEntity: &components.CustomEntity{\n Roles: []components.UserRoleSpecification{\n components.UserRoleSpecification{\n Person: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n Role: components.UserRoleEditor,\n },\n components.UserRoleSpecification{\n Person: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n Role: components.UserRoleEditor,\n },\n },\n },\n Answer: &components.Answer{\n ID: 3,\n DocID: apiclientgo.String(\"ANSWERS_answer_3\"),\n Question: apiclientgo.String(\"Why is the sky blue?\"),\n BodyText: apiclientgo.String(\"From https://en.wikipedia.org/wiki/Diffuse_sky_radiation, the sky is blue because blue light is more strongly scattered than longer-wavelength light.\"),\n AudienceFilters: []components.FacetFilter{\n components.FacetFilter{\n FieldName: apiclientgo.String(\"type\"),\n Values: []components.FacetFilterValue{\n components.FacetFilterValue{\n Value: apiclientgo.String(\"Spreadsheet\"),\n RelationType: components.RelationTypeEquals.ToPointer(),\n },\n components.FacetFilterValue{\n Value: apiclientgo.String(\"Presentation\"),\n RelationType: components.RelationTypeEquals.ToPointer(),\n },\n },\n },\n },\n AddedRoles: []components.UserRoleSpecification{\n components.UserRoleSpecification{\n Person: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n Role: components.UserRoleOwner,\n },\n components.UserRoleSpecification{\n Person: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n Role: components.UserRoleOwner,\n },\n },\n RemovedRoles: []components.UserRoleSpecification{\n components.UserRoleSpecification{\n Person: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n Role: components.UserRoleAnswerModerator,\n },\n components.UserRoleSpecification{\n Person: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n Role: components.UserRoleAnswerModerator,\n },\n components.UserRoleSpecification{\n Person: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n Role: components.UserRoleAnswerModerator,\n },\n },\n Likes: &components.AnswerLikes{\n LikedBy: []components.AnswerLike{\n components.AnswerLike{\n User: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n },\n },\n LikedByUser: true,\n NumLikes: 38608,\n },\n Author: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n UpdatedBy: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n Verification: &components.Verification{\n State: components.StateDeprecated,\n Metadata: &components.VerificationMetadata{\n LastVerifier: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n Document: &components.Document{\n Metadata: &components.DocumentMetadata{\n Datasource: apiclientgo.String(\"datasource\"),\n ObjectType: apiclientgo.String(\"Feature Request\"),\n Container: apiclientgo.String(\"container\"),\n ParentID: apiclientgo.String(\"JIRA_EN-1337\"),\n MimeType: apiclientgo.String(\"mimeType\"),\n DocumentID: apiclientgo.String(\"documentId\"),\n CreateTime: types.MustNewTimeFromString(\"2000-01-23T04:56:07.000Z\"),\n UpdateTime: types.MustNewTimeFromString(\"2000-01-23T04:56:07.000Z\"),\n Author: &components.Person{\n Name: \"name\",\n ObfuscatedID: \"\",\n },\n Components: []string{\n \"Backend\",\n \"Networking\",\n },\n Status: apiclientgo.String(\"[\\\"Done\\\"]\"),\n CustomData: map[string]components.CustomDataValue{\n \"someCustomField\": components.CustomDataValue{},\n },\n },\n },\n Reminders: []components.Reminder{\n components.Reminder{\n Assignee: components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n Requestor: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n RemindAt: 735135,\n },\n components.Reminder{\n Assignee: components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n Requestor: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n RemindAt: 735135,\n },\n },\n LastReminder: &components.Reminder{\n Assignee: components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n Requestor: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n RemindAt: 528697,\n },\n CandidateVerifiers: []components.Person{\n components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n },\n },\n },\n Board: &components.AnswerBoard{\n Name: \"\",\n Description: \"treasure phrase meaty\",\n AudienceFilters: []components.FacetFilter{\n components.FacetFilter{\n FieldName: apiclientgo.String(\"type\"),\n Values: []components.FacetFilterValue{\n components.FacetFilterValue{\n Value: apiclientgo.String(\"Spreadsheet\"),\n RelationType: components.RelationTypeEquals.ToPointer(),\n },\n components.FacetFilterValue{\n Value: apiclientgo.String(\"Presentation\"),\n RelationType: components.RelationTypeEquals.ToPointer(),\n },\n },\n },\n },\n ID: 355296,\n Creator: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n UpdatedBy: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n },\n Collections: []components.Collection{\n components.Collection{\n Name: \"\",\n Description: \"thunderbolt acidly warmly hence zowie\",\n AudienceFilters: []components.FacetFilter{\n components.FacetFilter{\n FieldName: apiclientgo.String(\"type\"),\n Values: []components.FacetFilterValue{\n components.FacetFilterValue{\n Value: apiclientgo.String(\"Spreadsheet\"),\n RelationType: components.RelationTypeEquals.ToPointer(),\n },\n components.FacetFilterValue{\n Value: apiclientgo.String(\"Presentation\"),\n RelationType: components.RelationTypeEquals.ToPointer(),\n },\n },\n },\n },\n ID: 416180,\n Creator: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n UpdatedBy: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n Items: []components.CollectionItem{\n components.CollectionItem{\n CollectionID: 213025,\n CreatedBy: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n Document: &components.Document{\n Metadata: &components.DocumentMetadata{\n Datasource: apiclientgo.String(\"datasource\"),\n ObjectType: apiclientgo.String(\"Feature Request\"),\n Container: apiclientgo.String(\"container\"),\n ParentID: apiclientgo.String(\"JIRA_EN-1337\"),\n MimeType: apiclientgo.String(\"mimeType\"),\n DocumentID: apiclientgo.String(\"documentId\"),\n CreateTime: types.MustNewTimeFromString(\"2000-01-23T04:56:07.000Z\"),\n UpdateTime: types.MustNewTimeFromString(\"2000-01-23T04:56:07.000Z\"),\n Author: &components.Person{\n Name: \"name\",\n ObfuscatedID: \"\",\n },\n Components: []string{\n \"Backend\",\n \"Networking\",\n },\n Status: apiclientgo.String(\"[\\\"Done\\\"]\"),\n CustomData: map[string]components.CustomDataValue{\n \"someCustomField\": components.CustomDataValue{},\n },\n },\n },\n Shortcut: &components.Shortcut{\n InputAlias: \"\",\n CreatedBy: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n UpdatedBy: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n DestinationDocument: &components.Document{\n Metadata: &components.DocumentMetadata{\n Datasource: apiclientgo.String(\"datasource\"),\n ObjectType: apiclientgo.String(\"Feature Request\"),\n Container: apiclientgo.String(\"container\"),\n ParentID: apiclientgo.String(\"JIRA_EN-1337\"),\n MimeType: apiclientgo.String(\"mimeType\"),\n DocumentID: apiclientgo.String(\"documentId\"),\n CreateTime: types.MustNewTimeFromString(\"2000-01-23T04:56:07.000Z\"),\n UpdateTime: types.MustNewTimeFromString(\"2000-01-23T04:56:07.000Z\"),\n Author: &components.Person{\n Name: \"name\",\n ObfuscatedID: \"\",\n },\n Components: []string{\n \"Backend\",\n \"Networking\",\n },\n Status: apiclientgo.String(\"[\\\"Done\\\"]\"),\n CustomData: map[string]components.CustomDataValue{\n \"someCustomField\": components.CustomDataValue{},\n },\n },\n },\n },\n ItemType: components.CollectionItemItemTypeText,\n },\n components.CollectionItem{\n CollectionID: 213025,\n CreatedBy: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n Document: &components.Document{\n Metadata: &components.DocumentMetadata{\n Datasource: apiclientgo.String(\"datasource\"),\n ObjectType: apiclientgo.String(\"Feature Request\"),\n Container: apiclientgo.String(\"container\"),\n ParentID: apiclientgo.String(\"JIRA_EN-1337\"),\n MimeType: apiclientgo.String(\"mimeType\"),\n DocumentID: apiclientgo.String(\"documentId\"),\n CreateTime: types.MustNewTimeFromString(\"2000-01-23T04:56:07.000Z\"),\n UpdateTime: types.MustNewTimeFromString(\"2000-01-23T04:56:07.000Z\"),\n Author: &components.Person{\n Name: \"name\",\n ObfuscatedID: \"\",\n },\n Components: []string{\n \"Backend\",\n \"Networking\",\n },\n Status: apiclientgo.String(\"[\\\"Done\\\"]\"),\n CustomData: map[string]components.CustomDataValue{\n \"someCustomField\": components.CustomDataValue{},\n },\n },\n },\n Shortcut: &components.Shortcut{\n InputAlias: \"\",\n CreatedBy: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n UpdatedBy: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n DestinationDocument: &components.Document{\n Metadata: &components.DocumentMetadata{\n Datasource: apiclientgo.String(\"datasource\"),\n ObjectType: apiclientgo.String(\"Feature Request\"),\n Container: apiclientgo.String(\"container\"),\n ParentID: apiclientgo.String(\"JIRA_EN-1337\"),\n MimeType: apiclientgo.String(\"mimeType\"),\n DocumentID: apiclientgo.String(\"documentId\"),\n CreateTime: types.MustNewTimeFromString(\"2000-01-23T04:56:07.000Z\"),\n UpdateTime: types.MustNewTimeFromString(\"2000-01-23T04:56:07.000Z\"),\n Author: &components.Person{\n Name: \"name\",\n ObfuscatedID: \"\",\n },\n Components: []string{\n \"Backend\",\n \"Networking\",\n },\n Status: apiclientgo.String(\"[\\\"Done\\\"]\"),\n CustomData: map[string]components.CustomDataValue{\n \"someCustomField\": components.CustomDataValue{},\n },\n },\n },\n },\n ItemType: components.CollectionItemItemTypeText,\n },\n components.CollectionItem{\n CollectionID: 213025,\n CreatedBy: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n Document: &components.Document{\n Metadata: &components.DocumentMetadata{\n Datasource: apiclientgo.String(\"datasource\"),\n ObjectType: apiclientgo.String(\"Feature Request\"),\n Container: apiclientgo.String(\"container\"),\n ParentID: apiclientgo.String(\"JIRA_EN-1337\"),\n MimeType: apiclientgo.String(\"mimeType\"),\n DocumentID: apiclientgo.String(\"documentId\"),\n CreateTime: types.MustNewTimeFromString(\"2000-01-23T04:56:07.000Z\"),\n UpdateTime: types.MustNewTimeFromString(\"2000-01-23T04:56:07.000Z\"),\n Author: &components.Person{\n Name: \"name\",\n ObfuscatedID: \"\",\n },\n Components: []string{\n \"Backend\",\n \"Networking\",\n },\n Status: apiclientgo.String(\"[\\\"Done\\\"]\"),\n CustomData: map[string]components.CustomDataValue{\n \"someCustomField\": components.CustomDataValue{},\n },\n },\n },\n Shortcut: &components.Shortcut{\n InputAlias: \"\",\n CreatedBy: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n UpdatedBy: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n DestinationDocument: &components.Document{\n Metadata: &components.DocumentMetadata{\n Datasource: apiclientgo.String(\"datasource\"),\n ObjectType: apiclientgo.String(\"Feature Request\"),\n Container: apiclientgo.String(\"container\"),\n ParentID: apiclientgo.String(\"JIRA_EN-1337\"),\n MimeType: apiclientgo.String(\"mimeType\"),\n DocumentID: apiclientgo.String(\"documentId\"),\n CreateTime: types.MustNewTimeFromString(\"2000-01-23T04:56:07.000Z\"),\n UpdateTime: types.MustNewTimeFromString(\"2000-01-23T04:56:07.000Z\"),\n Author: &components.Person{\n Name: \"name\",\n ObfuscatedID: \"\",\n },\n Components: []string{\n \"Backend\",\n \"Networking\",\n },\n Status: apiclientgo.String(\"[\\\"Done\\\"]\"),\n CustomData: map[string]components.CustomDataValue{\n \"someCustomField\": components.CustomDataValue{},\n },\n },\n },\n },\n ItemType: components.CollectionItemItemTypeText,\n },\n },\n Children: []components.Collection{\n components.Collection{\n Name: \"\",\n Description: \"likewise blindly mooch travel pinion\",\n AudienceFilters: []components.FacetFilter{\n components.FacetFilter{\n FieldName: apiclientgo.String(\"type\"),\n Values: []components.FacetFilterValue{\n components.FacetFilterValue{\n Value: apiclientgo.String(\"Spreadsheet\"),\n RelationType: components.RelationTypeEquals.ToPointer(),\n },\n components.FacetFilterValue{\n Value: apiclientgo.String(\"Presentation\"),\n RelationType: components.RelationTypeEquals.ToPointer(),\n },\n },\n },\n },\n ID: 184689,\n Creator: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n UpdatedBy: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n },\n components.Collection{\n Name: \"\",\n Description: \"likewise blindly mooch travel pinion\",\n AudienceFilters: []components.FacetFilter{\n components.FacetFilter{\n FieldName: apiclientgo.String(\"type\"),\n Values: []components.FacetFilterValue{\n components.FacetFilterValue{\n Value: apiclientgo.String(\"Spreadsheet\"),\n RelationType: components.RelationTypeEquals.ToPointer(),\n },\n components.FacetFilterValue{\n Value: apiclientgo.String(\"Presentation\"),\n RelationType: components.RelationTypeEquals.ToPointer(),\n },\n },\n },\n },\n ID: 184689,\n Creator: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n UpdatedBy: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n },\n components.Collection{\n Name: \"\",\n Description: \"likewise blindly mooch travel pinion\",\n AudienceFilters: []components.FacetFilter{\n components.FacetFilter{\n FieldName: apiclientgo.String(\"type\"),\n Values: []components.FacetFilterValue{\n components.FacetFilterValue{\n Value: apiclientgo.String(\"Spreadsheet\"),\n RelationType: components.RelationTypeEquals.ToPointer(),\n },\n components.FacetFilterValue{\n Value: apiclientgo.String(\"Presentation\"),\n RelationType: components.RelationTypeEquals.ToPointer(),\n },\n },\n },\n },\n ID: 184689,\n Creator: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n UpdatedBy: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n },\n },\n },\n components.Collection{\n Name: \"\",\n Description: \"thunderbolt acidly warmly hence zowie\",\n AudienceFilters: []components.FacetFilter{\n components.FacetFilter{\n FieldName: apiclientgo.String(\"type\"),\n Values: []components.FacetFilterValue{\n components.FacetFilterValue{\n Value: apiclientgo.String(\"Spreadsheet\"),\n RelationType: components.RelationTypeEquals.ToPointer(),\n },\n components.FacetFilterValue{\n Value: apiclientgo.String(\"Presentation\"),\n RelationType: components.RelationTypeEquals.ToPointer(),\n },\n },\n },\n },\n ID: 416180,\n Creator: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n UpdatedBy: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n Items: []components.CollectionItem{\n components.CollectionItem{\n CollectionID: 213025,\n CreatedBy: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n Document: &components.Document{\n Metadata: &components.DocumentMetadata{\n Datasource: apiclientgo.String(\"datasource\"),\n ObjectType: apiclientgo.String(\"Feature Request\"),\n Container: apiclientgo.String(\"container\"),\n ParentID: apiclientgo.String(\"JIRA_EN-1337\"),\n MimeType: apiclientgo.String(\"mimeType\"),\n DocumentID: apiclientgo.String(\"documentId\"),\n CreateTime: types.MustNewTimeFromString(\"2000-01-23T04:56:07.000Z\"),\n UpdateTime: types.MustNewTimeFromString(\"2000-01-23T04:56:07.000Z\"),\n Author: &components.Person{\n Name: \"name\",\n ObfuscatedID: \"\",\n },\n Components: []string{\n \"Backend\",\n \"Networking\",\n },\n Status: apiclientgo.String(\"[\\\"Done\\\"]\"),\n CustomData: map[string]components.CustomDataValue{\n \"someCustomField\": components.CustomDataValue{},\n },\n },\n },\n Shortcut: &components.Shortcut{\n InputAlias: \"\",\n CreatedBy: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n UpdatedBy: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n DestinationDocument: &components.Document{\n Metadata: &components.DocumentMetadata{\n Datasource: apiclientgo.String(\"datasource\"),\n ObjectType: apiclientgo.String(\"Feature Request\"),\n Container: apiclientgo.String(\"container\"),\n ParentID: apiclientgo.String(\"JIRA_EN-1337\"),\n MimeType: apiclientgo.String(\"mimeType\"),\n DocumentID: apiclientgo.String(\"documentId\"),\n CreateTime: types.MustNewTimeFromString(\"2000-01-23T04:56:07.000Z\"),\n UpdateTime: types.MustNewTimeFromString(\"2000-01-23T04:56:07.000Z\"),\n Author: &components.Person{\n Name: \"name\",\n ObfuscatedID: \"\",\n },\n Components: []string{\n \"Backend\",\n \"Networking\",\n },\n Status: apiclientgo.String(\"[\\\"Done\\\"]\"),\n CustomData: map[string]components.CustomDataValue{\n \"someCustomField\": components.CustomDataValue{},\n },\n },\n },\n },\n ItemType: components.CollectionItemItemTypeText,\n },\n components.CollectionItem{\n CollectionID: 213025,\n CreatedBy: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n Document: &components.Document{\n Metadata: &components.DocumentMetadata{\n Datasource: apiclientgo.String(\"datasource\"),\n ObjectType: apiclientgo.String(\"Feature Request\"),\n Container: apiclientgo.String(\"container\"),\n ParentID: apiclientgo.String(\"JIRA_EN-1337\"),\n MimeType: apiclientgo.String(\"mimeType\"),\n DocumentID: apiclientgo.String(\"documentId\"),\n CreateTime: types.MustNewTimeFromString(\"2000-01-23T04:56:07.000Z\"),\n UpdateTime: types.MustNewTimeFromString(\"2000-01-23T04:56:07.000Z\"),\n Author: &components.Person{\n Name: \"name\",\n ObfuscatedID: \"\",\n },\n Components: []string{\n \"Backend\",\n \"Networking\",\n },\n Status: apiclientgo.String(\"[\\\"Done\\\"]\"),\n CustomData: map[string]components.CustomDataValue{\n \"someCustomField\": components.CustomDataValue{},\n },\n },\n },\n Shortcut: &components.Shortcut{\n InputAlias: \"\",\n CreatedBy: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n UpdatedBy: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n DestinationDocument: &components.Document{\n Metadata: &components.DocumentMetadata{\n Datasource: apiclientgo.String(\"datasource\"),\n ObjectType: apiclientgo.String(\"Feature Request\"),\n Container: apiclientgo.String(\"container\"),\n ParentID: apiclientgo.String(\"JIRA_EN-1337\"),\n MimeType: apiclientgo.String(\"mimeType\"),\n DocumentID: apiclientgo.String(\"documentId\"),\n CreateTime: types.MustNewTimeFromString(\"2000-01-23T04:56:07.000Z\"),\n UpdateTime: types.MustNewTimeFromString(\"2000-01-23T04:56:07.000Z\"),\n Author: &components.Person{\n Name: \"name\",\n ObfuscatedID: \"\",\n },\n Components: []string{\n \"Backend\",\n \"Networking\",\n },\n Status: apiclientgo.String(\"[\\\"Done\\\"]\"),\n CustomData: map[string]components.CustomDataValue{\n \"someCustomField\": components.CustomDataValue{},\n },\n },\n },\n },\n ItemType: components.CollectionItemItemTypeText,\n },\n components.CollectionItem{\n CollectionID: 213025,\n CreatedBy: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n Document: &components.Document{\n Metadata: &components.DocumentMetadata{\n Datasource: apiclientgo.String(\"datasource\"),\n ObjectType: apiclientgo.String(\"Feature Request\"),\n Container: apiclientgo.String(\"container\"),\n ParentID: apiclientgo.String(\"JIRA_EN-1337\"),\n MimeType: apiclientgo.String(\"mimeType\"),\n DocumentID: apiclientgo.String(\"documentId\"),\n CreateTime: types.MustNewTimeFromString(\"2000-01-23T04:56:07.000Z\"),\n UpdateTime: types.MustNewTimeFromString(\"2000-01-23T04:56:07.000Z\"),\n Author: &components.Person{\n Name: \"name\",\n ObfuscatedID: \"\",\n },\n Components: []string{\n \"Backend\",\n \"Networking\",\n },\n Status: apiclientgo.String(\"[\\\"Done\\\"]\"),\n CustomData: map[string]components.CustomDataValue{\n \"someCustomField\": components.CustomDataValue{},\n },\n },\n },\n Shortcut: &components.Shortcut{\n InputAlias: \"\",\n CreatedBy: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n UpdatedBy: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n DestinationDocument: &components.Document{\n Metadata: &components.DocumentMetadata{\n Datasource: apiclientgo.String(\"datasource\"),\n ObjectType: apiclientgo.String(\"Feature Request\"),\n Container: apiclientgo.String(\"container\"),\n ParentID: apiclientgo.String(\"JIRA_EN-1337\"),\n MimeType: apiclientgo.String(\"mimeType\"),\n DocumentID: apiclientgo.String(\"documentId\"),\n CreateTime: types.MustNewTimeFromString(\"2000-01-23T04:56:07.000Z\"),\n UpdateTime: types.MustNewTimeFromString(\"2000-01-23T04:56:07.000Z\"),\n Author: &components.Person{\n Name: \"name\",\n ObfuscatedID: \"\",\n },\n Components: []string{\n \"Backend\",\n \"Networking\",\n },\n Status: apiclientgo.String(\"[\\\"Done\\\"]\"),\n CustomData: map[string]components.CustomDataValue{\n \"someCustomField\": components.CustomDataValue{},\n },\n },\n },\n },\n ItemType: components.CollectionItemItemTypeText,\n },\n },\n Children: []components.Collection{\n components.Collection{\n Name: \"\",\n Description: \"likewise blindly mooch travel pinion\",\n AudienceFilters: []components.FacetFilter{\n components.FacetFilter{\n FieldName: apiclientgo.String(\"type\"),\n Values: []components.FacetFilterValue{\n components.FacetFilterValue{\n Value: apiclientgo.String(\"Spreadsheet\"),\n RelationType: components.RelationTypeEquals.ToPointer(),\n },\n components.FacetFilterValue{\n Value: apiclientgo.String(\"Presentation\"),\n RelationType: components.RelationTypeEquals.ToPointer(),\n },\n },\n },\n },\n ID: 184689,\n Creator: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n UpdatedBy: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n },\n components.Collection{\n Name: \"\",\n Description: \"likewise blindly mooch travel pinion\",\n AudienceFilters: []components.FacetFilter{\n components.FacetFilter{\n FieldName: apiclientgo.String(\"type\"),\n Values: []components.FacetFilterValue{\n components.FacetFilterValue{\n Value: apiclientgo.String(\"Spreadsheet\"),\n RelationType: components.RelationTypeEquals.ToPointer(),\n },\n components.FacetFilterValue{\n Value: apiclientgo.String(\"Presentation\"),\n RelationType: components.RelationTypeEquals.ToPointer(),\n },\n },\n },\n },\n ID: 184689,\n Creator: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n UpdatedBy: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n },\n components.Collection{\n Name: \"\",\n Description: \"likewise blindly mooch travel pinion\",\n AudienceFilters: []components.FacetFilter{\n components.FacetFilter{\n FieldName: apiclientgo.String(\"type\"),\n Values: []components.FacetFilterValue{\n components.FacetFilterValue{\n Value: apiclientgo.String(\"Spreadsheet\"),\n RelationType: components.RelationTypeEquals.ToPointer(),\n },\n components.FacetFilterValue{\n Value: apiclientgo.String(\"Presentation\"),\n RelationType: components.RelationTypeEquals.ToPointer(),\n },\n },\n },\n },\n ID: 184689,\n Creator: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n UpdatedBy: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n },\n },\n },\n },\n SourceDocument: &components.Document{\n Metadata: &components.DocumentMetadata{\n Datasource: apiclientgo.String(\"datasource\"),\n ObjectType: apiclientgo.String(\"Feature Request\"),\n Container: apiclientgo.String(\"container\"),\n ParentID: apiclientgo.String(\"JIRA_EN-1337\"),\n MimeType: apiclientgo.String(\"mimeType\"),\n DocumentID: apiclientgo.String(\"documentId\"),\n CreateTime: types.MustNewTimeFromString(\"2000-01-23T04:56:07.000Z\"),\n UpdateTime: types.MustNewTimeFromString(\"2000-01-23T04:56:07.000Z\"),\n Author: &components.Person{\n Name: \"name\",\n ObfuscatedID: \"\",\n },\n Components: []string{\n \"Backend\",\n \"Networking\",\n },\n Status: apiclientgo.String(\"[\\\"Done\\\"]\"),\n CustomData: map[string]components.CustomDataValue{\n \"someCustomField\": components.CustomDataValue{},\n },\n },\n },\n },\n ExtractedQnA: &components.ExtractedQnA{\n QuestionResult: &components.SearchResult{\n Title: apiclientgo.String(\"title\"),\n URL: \"https://example.com/foo/bar\",\n NativeAppURL: apiclientgo.String(\"slack://foo/bar\"),\n Snippets: []components.SearchResultSnippet{\n components.SearchResultSnippet{\n Snippet: \"snippet\",\n MimeType: apiclientgo.String(\"mimeType\"),\n },\n },\n MustIncludeSuggestions: &components.QuerySuggestionList{},\n },\n },\n Meeting: &components.Meeting{\n Attendees: &components.CalendarAttendees{\n People: []components.CalendarAttendee{\n components.CalendarAttendee{\n Person: components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n GroupAttendees: []components.CalendarAttendee{\n components.CalendarAttendee{\n Person: components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n },\n components.CalendarAttendee{\n Person: components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n },\n },\n },\n components.CalendarAttendee{\n Person: components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n GroupAttendees: []components.CalendarAttendee{\n components.CalendarAttendee{\n Person: components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n },\n components.CalendarAttendee{\n Person: components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n },\n },\n },\n },\n },\n },\n Collection: &components.Collection{\n Name: \"\",\n Description: \"mismatch noisily jive worth meh following hmph analyse\",\n AudienceFilters: []components.FacetFilter{\n components.FacetFilter{\n FieldName: apiclientgo.String(\"type\"),\n Values: []components.FacetFilterValue{\n components.FacetFilterValue{\n Value: apiclientgo.String(\"Spreadsheet\"),\n RelationType: components.RelationTypeEquals.ToPointer(),\n },\n components.FacetFilterValue{\n Value: apiclientgo.String(\"Presentation\"),\n RelationType: components.RelationTypeEquals.ToPointer(),\n },\n },\n },\n },\n ID: 5797,\n Creator: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n UpdatedBy: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n },\n AnswerBoard: &components.AnswerBoard{\n Name: \"\",\n Description: \"pulse yum shakily notwithstanding faithfully boohoo urgently exterior before um\",\n AudienceFilters: []components.FacetFilter{\n components.FacetFilter{\n FieldName: apiclientgo.String(\"type\"),\n Values: []components.FacetFilterValue{\n components.FacetFilterValue{\n Value: apiclientgo.String(\"Spreadsheet\"),\n RelationType: components.RelationTypeEquals.ToPointer(),\n },\n components.FacetFilterValue{\n Value: apiclientgo.String(\"Presentation\"),\n RelationType: components.RelationTypeEquals.ToPointer(),\n },\n },\n },\n },\n ID: 609567,\n Creator: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n UpdatedBy: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n },\n Code: &components.Code{\n RepoName: apiclientgo.String(\"scio\"),\n FileName: apiclientgo.String(\"README.md\"),\n },\n Shortcut: &components.Shortcut{\n InputAlias: \"\",\n CreatedBy: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n UpdatedBy: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n DestinationDocument: &components.Document{\n Metadata: &components.DocumentMetadata{\n Datasource: apiclientgo.String(\"datasource\"),\n ObjectType: apiclientgo.String(\"Feature Request\"),\n Container: apiclientgo.String(\"container\"),\n ParentID: apiclientgo.String(\"JIRA_EN-1337\"),\n MimeType: apiclientgo.String(\"mimeType\"),\n DocumentID: apiclientgo.String(\"documentId\"),\n CreateTime: types.MustNewTimeFromString(\"2000-01-23T04:56:07.000Z\"),\n UpdateTime: types.MustNewTimeFromString(\"2000-01-23T04:56:07.000Z\"),\n Author: &components.Person{\n Name: \"name\",\n ObfuscatedID: \"\",\n },\n Components: []string{\n \"Backend\",\n \"Networking\",\n },\n Status: apiclientgo.String(\"[\\\"Done\\\"]\"),\n CustomData: map[string]components.CustomDataValue{\n \"someCustomField\": components.CustomDataValue{},\n },\n },\n },\n },\n QuerySuggestions: &components.QuerySuggestionList{\n Suggestions: []components.QuerySuggestion{\n components.QuerySuggestion{\n Query: \"app:github type:pull author:mortimer\",\n Label: apiclientgo.String(\"Mortimer's PRs\"),\n Datasource: apiclientgo.String(\"github\"),\n },\n },\n Person: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n },\n RelatedDocuments: []components.RelatedDocuments{\n components.RelatedDocuments{\n QuerySuggestion: &components.QuerySuggestion{\n Query: \"app:github type:pull author:mortimer\",\n Label: apiclientgo.String(\"Mortimer's PRs\"),\n Datasource: apiclientgo.String(\"github\"),\n },\n Results: []components.SearchResult{\n components.SearchResult{\n Title: apiclientgo.String(\"title\"),\n URL: \"https://example.com/foo/bar\",\n NativeAppURL: apiclientgo.String(\"slack://foo/bar\"),\n Snippets: []components.SearchResultSnippet{\n components.SearchResultSnippet{\n Snippet: \"snippet\",\n MimeType: apiclientgo.String(\"mimeType\"),\n },\n },\n MustIncludeSuggestions: &components.QuerySuggestionList{},\n },\n },\n },\n },\n RelatedQuestion: &components.RelatedQuestion{\n Ranges: []components.TextRange{\n components.TextRange{\n StartIndex: 896307,\n Document: &components.Document{\n Metadata: &components.DocumentMetadata{\n Datasource: apiclientgo.String(\"datasource\"),\n ObjectType: apiclientgo.String(\"Feature Request\"),\n Container: apiclientgo.String(\"container\"),\n ParentID: apiclientgo.String(\"JIRA_EN-1337\"),\n MimeType: apiclientgo.String(\"mimeType\"),\n DocumentID: apiclientgo.String(\"documentId\"),\n CreateTime: types.MustNewTimeFromString(\"2000-01-23T04:56:07.000Z\"),\n UpdateTime: types.MustNewTimeFromString(\"2000-01-23T04:56:07.000Z\"),\n Author: &components.Person{\n Name: \"name\",\n ObfuscatedID: \"\",\n },\n Components: []string{\n \"Backend\",\n \"Networking\",\n },\n Status: apiclientgo.String(\"[\\\"Done\\\"]\"),\n CustomData: map[string]components.CustomDataValue{\n \"someCustomField\": components.CustomDataValue{},\n },\n },\n },\n },\n components.TextRange{\n StartIndex: 896307,\n Document: &components.Document{\n Metadata: &components.DocumentMetadata{\n Datasource: apiclientgo.String(\"datasource\"),\n ObjectType: apiclientgo.String(\"Feature Request\"),\n Container: apiclientgo.String(\"container\"),\n ParentID: apiclientgo.String(\"JIRA_EN-1337\"),\n MimeType: apiclientgo.String(\"mimeType\"),\n DocumentID: apiclientgo.String(\"documentId\"),\n CreateTime: types.MustNewTimeFromString(\"2000-01-23T04:56:07.000Z\"),\n UpdateTime: types.MustNewTimeFromString(\"2000-01-23T04:56:07.000Z\"),\n Author: &components.Person{\n Name: \"name\",\n ObfuscatedID: \"\",\n },\n Components: []string{\n \"Backend\",\n \"Networking\",\n },\n Status: apiclientgo.String(\"[\\\"Done\\\"]\"),\n CustomData: map[string]components.CustomDataValue{\n \"someCustomField\": components.CustomDataValue{},\n },\n },\n },\n },\n },\n },\n },\n },\n },\n },\n AudienceFilters: []components.FacetFilter{\n components.FacetFilter{\n FieldName: apiclientgo.String(\"type\"),\n Values: []components.FacetFilterValue{\n components.FacetFilterValue{\n Value: apiclientgo.String(\"Spreadsheet\"),\n RelationType: components.RelationTypeEquals.ToPointer(),\n },\n components.FacetFilterValue{\n Value: apiclientgo.String(\"Presentation\"),\n RelationType: components.RelationTypeEquals.ToPointer(),\n },\n },\n },\n },\n ID: 121004,\n })\n if err != nil {\n log.Fatal(err)\n }\n if res.Announcement != nil {\n // handle response\n }\n}" - lang: java label: Java (API Client) source: |- @@ -15748,6 +15762,7 @@ paths: Glean sdk = Glean.builder() .apiToken("") + .instance("") .build(); UpdateAnnouncementRequest req = UpdateAnnouncementRequest.builder() @@ -19399,6 +19414,7 @@ paths: with Glean( api_token=os.getenv("GLEAN_API_TOKEN", ""), + instance=os.getenv("GLEAN_INSTANCE", ""), ) as g_client: res = g_client.client.answers.create(data={ @@ -19467,6 +19483,7 @@ paths: const glean = new Glean({ apiToken: process.env["GLEAN_API_TOKEN"] ?? "", + instance: process.env["GLEAN_INSTANCE"] ?? "", }); async function run() { @@ -19536,7 +19553,7 @@ paths: run(); - lang: go label: Go (API Client) - source: "package main\n\nimport(\n\t\"context\"\n\t\"os\"\n\tapiclientgo \"github.com/gleanwork/api-client-go\"\n\t\"github.com/gleanwork/api-client-go/models/components\"\n\t\"log\"\n)\n\nfunc main() {\n ctx := context.Background()\n\n s := apiclientgo.New(\n apiclientgo.WithSecurity(os.Getenv(\"GLEAN_API_TOKEN\")),\n )\n\n res, err := s.Client.Answers.Create(ctx, components.CreateAnswerRequest{\n Data: components.AnswerCreationData{\n Question: apiclientgo.String(\"Why is the sky blue?\"),\n BodyText: apiclientgo.String(\"From https://en.wikipedia.org/wiki/Diffuse_sky_radiation, the sky is blue because blue light is more strongly scattered than longer-wavelength light.\"),\n AudienceFilters: []components.FacetFilter{\n components.FacetFilter{\n FieldName: apiclientgo.String(\"type\"),\n Values: []components.FacetFilterValue{\n components.FacetFilterValue{\n Value: apiclientgo.String(\"Spreadsheet\"),\n RelationType: components.RelationTypeEquals.ToPointer(),\n },\n components.FacetFilterValue{\n Value: apiclientgo.String(\"Presentation\"),\n RelationType: components.RelationTypeEquals.ToPointer(),\n },\n },\n },\n },\n AddedRoles: []components.UserRoleSpecification{\n components.UserRoleSpecification{\n Person: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n Role: components.UserRoleAnswerModerator,\n },\n },\n RemovedRoles: []components.UserRoleSpecification{\n components.UserRoleSpecification{\n Person: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n Role: components.UserRoleEditor,\n },\n },\n Roles: []components.UserRoleSpecification{\n components.UserRoleSpecification{\n Person: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n Role: components.UserRoleVerifier,\n },\n components.UserRoleSpecification{\n Person: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n Role: components.UserRoleVerifier,\n },\n },\n CombinedAnswerText: &components.StructuredTextMutableProperties{\n Text: \"From https://en.wikipedia.org/wiki/Diffuse_sky_radiation, the sky is blue because blue light is more strongly scattered than longer-wavelength light.\",\n },\n },\n })\n if err != nil {\n log.Fatal(err)\n }\n if res.Answer != nil {\n // handle response\n }\n}" + source: "package main\n\nimport(\n\t\"context\"\n\t\"os\"\n\tapiclientgo \"github.com/gleanwork/api-client-go\"\n\t\"github.com/gleanwork/api-client-go/models/components\"\n\t\"log\"\n)\n\nfunc main() {\n ctx := context.Background()\n\n s := apiclientgo.New(\n apiclientgo.WithSecurity(os.Getenv(\"GLEAN_API_TOKEN\")),\n apiclientgo.WithInstance(os.Getenv(\"GLEAN_INSTANCE\")),\n )\n\n res, err := s.Client.Answers.Create(ctx, components.CreateAnswerRequest{\n Data: components.AnswerCreationData{\n Question: apiclientgo.String(\"Why is the sky blue?\"),\n BodyText: apiclientgo.String(\"From https://en.wikipedia.org/wiki/Diffuse_sky_radiation, the sky is blue because blue light is more strongly scattered than longer-wavelength light.\"),\n AudienceFilters: []components.FacetFilter{\n components.FacetFilter{\n FieldName: apiclientgo.String(\"type\"),\n Values: []components.FacetFilterValue{\n components.FacetFilterValue{\n Value: apiclientgo.String(\"Spreadsheet\"),\n RelationType: components.RelationTypeEquals.ToPointer(),\n },\n components.FacetFilterValue{\n Value: apiclientgo.String(\"Presentation\"),\n RelationType: components.RelationTypeEquals.ToPointer(),\n },\n },\n },\n },\n AddedRoles: []components.UserRoleSpecification{\n components.UserRoleSpecification{\n Person: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n Role: components.UserRoleAnswerModerator,\n },\n },\n RemovedRoles: []components.UserRoleSpecification{\n components.UserRoleSpecification{\n Person: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n Role: components.UserRoleEditor,\n },\n },\n Roles: []components.UserRoleSpecification{\n components.UserRoleSpecification{\n Person: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n Role: components.UserRoleVerifier,\n },\n components.UserRoleSpecification{\n Person: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n Role: components.UserRoleVerifier,\n },\n },\n CombinedAnswerText: &components.StructuredTextMutableProperties{\n Text: \"From https://en.wikipedia.org/wiki/Diffuse_sky_radiation, the sky is blue because blue light is more strongly scattered than longer-wavelength light.\",\n },\n },\n })\n if err != nil {\n log.Fatal(err)\n }\n if res.Answer != nil {\n // handle response\n }\n}" - lang: java label: Java (API Client) source: |- @@ -19554,6 +19571,7 @@ paths: Glean sdk = Glean.builder() .apiToken("") + .instance("") .build(); CreateAnswerRequest req = CreateAnswerRequest.builder() @@ -19658,6 +19676,7 @@ paths: with Glean( api_token=os.getenv("GLEAN_API_TOKEN", ""), + instance=os.getenv("GLEAN_INSTANCE", ""), ) as g_client: g_client.client.answers.delete(id=3, doc_id="ANSWERS_answer_3") @@ -19670,6 +19689,7 @@ paths: const glean = new Glean({ apiToken: process.env["GLEAN_API_TOKEN"] ?? "", + instance: process.env["GLEAN_INSTANCE"] ?? "", }); async function run() { @@ -19684,7 +19704,7 @@ paths: run(); - lang: go label: Go (API Client) - source: "package main\n\nimport(\n\t\"context\"\n\t\"os\"\n\tapiclientgo \"github.com/gleanwork/api-client-go\"\n\t\"github.com/gleanwork/api-client-go/models/components\"\n\t\"log\"\n)\n\nfunc main() {\n ctx := context.Background()\n\n s := apiclientgo.New(\n apiclientgo.WithSecurity(os.Getenv(\"GLEAN_API_TOKEN\")),\n )\n\n res, err := s.Client.Answers.Delete(ctx, components.DeleteAnswerRequest{\n ID: 3,\n DocID: apiclientgo.String(\"ANSWERS_answer_3\"),\n })\n if err != nil {\n log.Fatal(err)\n }\n if res != nil {\n // handle response\n }\n}" + source: "package main\n\nimport(\n\t\"context\"\n\t\"os\"\n\tapiclientgo \"github.com/gleanwork/api-client-go\"\n\t\"github.com/gleanwork/api-client-go/models/components\"\n\t\"log\"\n)\n\nfunc main() {\n ctx := context.Background()\n\n s := apiclientgo.New(\n apiclientgo.WithSecurity(os.Getenv(\"GLEAN_API_TOKEN\")),\n apiclientgo.WithInstance(os.Getenv(\"GLEAN_INSTANCE\")),\n )\n\n res, err := s.Client.Answers.Delete(ctx, components.DeleteAnswerRequest{\n ID: 3,\n DocID: apiclientgo.String(\"ANSWERS_answer_3\"),\n })\n if err != nil {\n log.Fatal(err)\n }\n if res != nil {\n // handle response\n }\n}" - lang: java label: Java (API Client) source: |- @@ -19701,6 +19721,7 @@ paths: Glean sdk = Glean.builder() .apiToken("") + .instance("") .build(); DeleteAnswerRequest req = DeleteAnswerRequest.builder() @@ -19758,6 +19779,7 @@ paths: with Glean( api_token=os.getenv("GLEAN_API_TOKEN", ""), + instance=os.getenv("GLEAN_INSTANCE", ""), ) as g_client: res = g_client.client.answers.update(id=3, doc_id="ANSWERS_answer_3", question="Why is the sky blue?", body_text="From https://en.wikipedia.org/wiki/Diffuse_sky_radiation, the sky is blue because blue light is more strongly scattered than longer-wavelength light.", audience_filters=[ @@ -19832,6 +19854,7 @@ paths: const glean = new Glean({ apiToken: process.env["GLEAN_API_TOKEN"] ?? "", + instance: process.env["GLEAN_INSTANCE"] ?? "", }); async function run() { @@ -19915,7 +19938,7 @@ paths: run(); - lang: go label: Go (API Client) - source: "package main\n\nimport(\n\t\"context\"\n\t\"os\"\n\tapiclientgo \"github.com/gleanwork/api-client-go\"\n\t\"github.com/gleanwork/api-client-go/models/components\"\n\t\"log\"\n)\n\nfunc main() {\n ctx := context.Background()\n\n s := apiclientgo.New(\n apiclientgo.WithSecurity(os.Getenv(\"GLEAN_API_TOKEN\")),\n )\n\n res, err := s.Client.Answers.Update(ctx, components.EditAnswerRequest{\n ID: 3,\n DocID: apiclientgo.String(\"ANSWERS_answer_3\"),\n Question: apiclientgo.String(\"Why is the sky blue?\"),\n BodyText: apiclientgo.String(\"From https://en.wikipedia.org/wiki/Diffuse_sky_radiation, the sky is blue because blue light is more strongly scattered than longer-wavelength light.\"),\n AudienceFilters: []components.FacetFilter{\n components.FacetFilter{\n FieldName: apiclientgo.String(\"type\"),\n Values: []components.FacetFilterValue{\n components.FacetFilterValue{\n Value: apiclientgo.String(\"Spreadsheet\"),\n RelationType: components.RelationTypeEquals.ToPointer(),\n },\n components.FacetFilterValue{\n Value: apiclientgo.String(\"Presentation\"),\n RelationType: components.RelationTypeEquals.ToPointer(),\n },\n },\n },\n },\n AddedRoles: []components.UserRoleSpecification{\n components.UserRoleSpecification{\n Person: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n Role: components.UserRoleOwner,\n },\n components.UserRoleSpecification{\n Person: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n Role: components.UserRoleOwner,\n },\n },\n RemovedRoles: []components.UserRoleSpecification{\n components.UserRoleSpecification{\n Person: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n Role: components.UserRoleAnswerModerator,\n },\n components.UserRoleSpecification{\n Person: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n Role: components.UserRoleAnswerModerator,\n },\n components.UserRoleSpecification{\n Person: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n Role: components.UserRoleAnswerModerator,\n },\n },\n Roles: []components.UserRoleSpecification{\n components.UserRoleSpecification{\n Person: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n Role: components.UserRoleOwner,\n },\n },\n CombinedAnswerText: &components.StructuredTextMutableProperties{\n Text: \"From https://en.wikipedia.org/wiki/Diffuse_sky_radiation, the sky is blue because blue light is more strongly scattered than longer-wavelength light.\",\n },\n })\n if err != nil {\n log.Fatal(err)\n }\n if res.Answer != nil {\n // handle response\n }\n}" + source: "package main\n\nimport(\n\t\"context\"\n\t\"os\"\n\tapiclientgo \"github.com/gleanwork/api-client-go\"\n\t\"github.com/gleanwork/api-client-go/models/components\"\n\t\"log\"\n)\n\nfunc main() {\n ctx := context.Background()\n\n s := apiclientgo.New(\n apiclientgo.WithSecurity(os.Getenv(\"GLEAN_API_TOKEN\")),\n apiclientgo.WithInstance(os.Getenv(\"GLEAN_INSTANCE\")),\n )\n\n res, err := s.Client.Answers.Update(ctx, components.EditAnswerRequest{\n ID: 3,\n DocID: apiclientgo.String(\"ANSWERS_answer_3\"),\n Question: apiclientgo.String(\"Why is the sky blue?\"),\n BodyText: apiclientgo.String(\"From https://en.wikipedia.org/wiki/Diffuse_sky_radiation, the sky is blue because blue light is more strongly scattered than longer-wavelength light.\"),\n AudienceFilters: []components.FacetFilter{\n components.FacetFilter{\n FieldName: apiclientgo.String(\"type\"),\n Values: []components.FacetFilterValue{\n components.FacetFilterValue{\n Value: apiclientgo.String(\"Spreadsheet\"),\n RelationType: components.RelationTypeEquals.ToPointer(),\n },\n components.FacetFilterValue{\n Value: apiclientgo.String(\"Presentation\"),\n RelationType: components.RelationTypeEquals.ToPointer(),\n },\n },\n },\n },\n AddedRoles: []components.UserRoleSpecification{\n components.UserRoleSpecification{\n Person: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n Role: components.UserRoleOwner,\n },\n components.UserRoleSpecification{\n Person: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n Role: components.UserRoleOwner,\n },\n },\n RemovedRoles: []components.UserRoleSpecification{\n components.UserRoleSpecification{\n Person: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n Role: components.UserRoleAnswerModerator,\n },\n components.UserRoleSpecification{\n Person: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n Role: components.UserRoleAnswerModerator,\n },\n components.UserRoleSpecification{\n Person: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n Role: components.UserRoleAnswerModerator,\n },\n },\n Roles: []components.UserRoleSpecification{\n components.UserRoleSpecification{\n Person: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n Role: components.UserRoleOwner,\n },\n },\n CombinedAnswerText: &components.StructuredTextMutableProperties{\n Text: \"From https://en.wikipedia.org/wiki/Diffuse_sky_radiation, the sky is blue because blue light is more strongly scattered than longer-wavelength light.\",\n },\n })\n if err != nil {\n log.Fatal(err)\n }\n if res.Answer != nil {\n // handle response\n }\n}" - lang: java label: Java (API Client) source: |- @@ -19933,6 +19956,7 @@ paths: Glean sdk = Glean.builder() .apiToken("") + .instance("") .build(); EditAnswerRequest req = EditAnswerRequest.builder() @@ -20055,6 +20079,7 @@ paths: with Glean( api_token=os.getenv("GLEAN_API_TOKEN", ""), + instance=os.getenv("GLEAN_INSTANCE", ""), ) as g_client: res = g_client.client.answers.retrieve(request={ @@ -20071,6 +20096,7 @@ paths: const glean = new Glean({ apiToken: process.env["GLEAN_API_TOKEN"] ?? "", + instance: process.env["GLEAN_INSTANCE"] ?? "", }); async function run() { @@ -20086,7 +20112,7 @@ paths: run(); - lang: go label: Go (API Client) - source: "package main\n\nimport(\n\t\"context\"\n\t\"os\"\n\tapiclientgo \"github.com/gleanwork/api-client-go\"\n\t\"github.com/gleanwork/api-client-go/models/components\"\n\t\"log\"\n)\n\nfunc main() {\n ctx := context.Background()\n\n s := apiclientgo.New(\n apiclientgo.WithSecurity(os.Getenv(\"GLEAN_API_TOKEN\")),\n )\n\n res, err := s.Client.Answers.Retrieve(ctx, components.GetAnswerRequest{\n ID: apiclientgo.Int64(3),\n DocID: apiclientgo.String(\"ANSWERS_answer_3\"),\n })\n if err != nil {\n log.Fatal(err)\n }\n if res.GetAnswerResponse != nil {\n // handle response\n }\n}" + source: "package main\n\nimport(\n\t\"context\"\n\t\"os\"\n\tapiclientgo \"github.com/gleanwork/api-client-go\"\n\t\"github.com/gleanwork/api-client-go/models/components\"\n\t\"log\"\n)\n\nfunc main() {\n ctx := context.Background()\n\n s := apiclientgo.New(\n apiclientgo.WithSecurity(os.Getenv(\"GLEAN_API_TOKEN\")),\n apiclientgo.WithInstance(os.Getenv(\"GLEAN_INSTANCE\")),\n )\n\n res, err := s.Client.Answers.Retrieve(ctx, components.GetAnswerRequest{\n ID: apiclientgo.Int64(3),\n DocID: apiclientgo.String(\"ANSWERS_answer_3\"),\n })\n if err != nil {\n log.Fatal(err)\n }\n if res.GetAnswerResponse != nil {\n // handle response\n }\n}" - lang: java label: Java (API Client) source: |- @@ -20103,6 +20129,7 @@ paths: Glean sdk = Glean.builder() .apiToken("") + .instance("") .build(); GetAnswerRequest req = GetAnswerRequest.builder() @@ -20162,6 +20189,7 @@ paths: with Glean( api_token=os.getenv("GLEAN_API_TOKEN", ""), + instance=os.getenv("GLEAN_INSTANCE", ""), ) as g_client: res = g_client.client.answers.list() @@ -20175,6 +20203,7 @@ paths: const glean = new Glean({ apiToken: process.env["GLEAN_API_TOKEN"] ?? "", + instance: process.env["GLEAN_INSTANCE"] ?? "", }); async function run() { @@ -20187,7 +20216,7 @@ paths: run(); - lang: go label: Go (API Client) - source: "package main\n\nimport(\n\t\"context\"\n\t\"os\"\n\tapiclientgo \"github.com/gleanwork/api-client-go\"\n\t\"github.com/gleanwork/api-client-go/models/components\"\n\t\"log\"\n)\n\nfunc main() {\n ctx := context.Background()\n\n s := apiclientgo.New(\n apiclientgo.WithSecurity(os.Getenv(\"GLEAN_API_TOKEN\")),\n )\n\n res, err := s.Client.Answers.List(ctx, components.ListAnswersRequest{})\n if err != nil {\n log.Fatal(err)\n }\n if res.ListAnswersResponse != nil {\n // handle response\n }\n}" + source: "package main\n\nimport(\n\t\"context\"\n\t\"os\"\n\tapiclientgo \"github.com/gleanwork/api-client-go\"\n\t\"github.com/gleanwork/api-client-go/models/components\"\n\t\"log\"\n)\n\nfunc main() {\n ctx := context.Background()\n\n s := apiclientgo.New(\n apiclientgo.WithSecurity(os.Getenv(\"GLEAN_API_TOKEN\")),\n apiclientgo.WithInstance(os.Getenv(\"GLEAN_INSTANCE\")),\n )\n\n res, err := s.Client.Answers.List(ctx, components.ListAnswersRequest{})\n if err != nil {\n log.Fatal(err)\n }\n if res.ListAnswersResponse != nil {\n // handle response\n }\n}" - lang: java label: Java (API Client) source: |- @@ -20204,6 +20233,7 @@ paths: Glean sdk = Glean.builder() .apiToken("") + .instance("") .build(); ListAnswersRequest req = ListAnswersRequest.builder() @@ -20252,6 +20282,7 @@ paths: with Glean( api_token=os.getenv("GLEAN_API_TOKEN", ""), + instance=os.getenv("GLEAN_INSTANCE", ""), ) as g_client: res = g_client.client.authentication.create_token() @@ -20265,6 +20296,7 @@ paths: const glean = new Glean({ apiToken: process.env["GLEAN_API_TOKEN"] ?? "", + instance: process.env["GLEAN_INSTANCE"] ?? "", }); async function run() { @@ -20277,7 +20309,7 @@ paths: run(); - lang: go label: Go (API Client) - source: "package main\n\nimport(\n\t\"context\"\n\t\"os\"\n\tapiclientgo \"github.com/gleanwork/api-client-go\"\n\t\"log\"\n)\n\nfunc main() {\n ctx := context.Background()\n\n s := apiclientgo.New(\n apiclientgo.WithSecurity(os.Getenv(\"GLEAN_API_TOKEN\")),\n )\n\n res, err := s.Client.Authentication.CreateToken(ctx)\n if err != nil {\n log.Fatal(err)\n }\n if res.CreateAuthTokenResponse != nil {\n // handle response\n }\n}" + source: "package main\n\nimport(\n\t\"context\"\n\t\"os\"\n\tapiclientgo \"github.com/gleanwork/api-client-go\"\n\t\"log\"\n)\n\nfunc main() {\n ctx := context.Background()\n\n s := apiclientgo.New(\n apiclientgo.WithSecurity(os.Getenv(\"GLEAN_API_TOKEN\")),\n apiclientgo.WithInstance(os.Getenv(\"GLEAN_INSTANCE\")),\n )\n\n res, err := s.Client.Authentication.CreateToken(ctx)\n if err != nil {\n log.Fatal(err)\n }\n if res.CreateAuthTokenResponse != nil {\n // handle response\n }\n}" - lang: java label: Java (API Client) source: |- @@ -20293,6 +20325,7 @@ paths: Glean sdk = Glean.builder() .apiToken("") + .instance("") .build(); CreateauthtokenResponse res = sdk.client().authentication().createToken() @@ -20451,6 +20484,7 @@ paths: with Glean( api_token=os.getenv("GLEAN_API_TOKEN", ""), + instance=os.getenv("GLEAN_INSTANCE", ""), ) as g_client: res = g_client.client.chat.create(messages=[ @@ -20472,6 +20506,7 @@ paths: const glean = new Glean({ apiToken: process.env["GLEAN_API_TOKEN"] ?? "", + instance: process.env["GLEAN_INSTANCE"] ?? "", }); async function run() { @@ -20494,7 +20529,7 @@ paths: run(); - lang: go label: Go (API Client) - source: "package main\n\nimport(\n\t\"context\"\n\t\"os\"\n\tapiclientgo \"github.com/gleanwork/api-client-go\"\n\t\"github.com/gleanwork/api-client-go/models/components\"\n\t\"log\"\n)\n\nfunc main() {\n ctx := context.Background()\n\n s := apiclientgo.New(\n apiclientgo.WithSecurity(os.Getenv(\"GLEAN_API_TOKEN\")),\n )\n\n res, err := s.Client.Chat.Create(ctx, components.ChatRequest{\n Messages: []components.ChatMessage{\n components.ChatMessage{\n Fragments: []components.ChatMessageFragment{\n components.ChatMessageFragment{\n Text: apiclientgo.String(\"What are the company holidays this year?\"),\n },\n },\n },\n },\n }, nil)\n if err != nil {\n log.Fatal(err)\n }\n if res.ChatResponse != nil {\n // handle response\n }\n}" + source: "package main\n\nimport(\n\t\"context\"\n\t\"os\"\n\tapiclientgo \"github.com/gleanwork/api-client-go\"\n\t\"github.com/gleanwork/api-client-go/models/components\"\n\t\"log\"\n)\n\nfunc main() {\n ctx := context.Background()\n\n s := apiclientgo.New(\n apiclientgo.WithSecurity(os.Getenv(\"GLEAN_API_TOKEN\")),\n apiclientgo.WithInstance(os.Getenv(\"GLEAN_INSTANCE\")),\n )\n\n res, err := s.Client.Chat.Create(ctx, components.ChatRequest{\n Messages: []components.ChatMessage{\n components.ChatMessage{\n Fragments: []components.ChatMessageFragment{\n components.ChatMessageFragment{\n Text: apiclientgo.String(\"What are the company holidays this year?\"),\n },\n },\n },\n },\n }, nil)\n if err != nil {\n log.Fatal(err)\n }\n if res.ChatResponse != nil {\n // handle response\n }\n}" - lang: java label: Java (API Client) source: |- @@ -20512,6 +20547,7 @@ paths: Glean sdk = Glean.builder() .apiToken("") + .instance("") .build(); ChatResponse res = sdk.client().chat().create() @@ -20563,6 +20599,7 @@ paths: with Glean( api_token=os.getenv("GLEAN_API_TOKEN", ""), + instance=os.getenv("GLEAN_INSTANCE", ""), ) as g_client: g_client.client.chat.delete_all() @@ -20575,6 +20612,7 @@ paths: const glean = new Glean({ apiToken: process.env["GLEAN_API_TOKEN"] ?? "", + instance: process.env["GLEAN_INSTANCE"] ?? "", }); async function run() { @@ -20586,7 +20624,7 @@ paths: run(); - lang: go label: Go (API Client) - source: "package main\n\nimport(\n\t\"context\"\n\t\"os\"\n\tapiclientgo \"github.com/gleanwork/api-client-go\"\n\t\"log\"\n)\n\nfunc main() {\n ctx := context.Background()\n\n s := apiclientgo.New(\n apiclientgo.WithSecurity(os.Getenv(\"GLEAN_API_TOKEN\")),\n )\n\n res, err := s.Client.Chat.DeleteAll(ctx, nil)\n if err != nil {\n log.Fatal(err)\n }\n if res != nil {\n // handle response\n }\n}" + source: "package main\n\nimport(\n\t\"context\"\n\t\"os\"\n\tapiclientgo \"github.com/gleanwork/api-client-go\"\n\t\"log\"\n)\n\nfunc main() {\n ctx := context.Background()\n\n s := apiclientgo.New(\n apiclientgo.WithSecurity(os.Getenv(\"GLEAN_API_TOKEN\")),\n apiclientgo.WithInstance(os.Getenv(\"GLEAN_INSTANCE\")),\n )\n\n res, err := s.Client.Chat.DeleteAll(ctx, nil)\n if err != nil {\n log.Fatal(err)\n }\n if res != nil {\n // handle response\n }\n}" - lang: java label: Java (API Client) source: |- @@ -20602,6 +20640,7 @@ paths: Glean sdk = Glean.builder() .apiToken("") + .instance("") .build(); DeleteallchatsResponse res = sdk.client().chat().deleteAll() @@ -20651,6 +20690,7 @@ paths: with Glean( api_token=os.getenv("GLEAN_API_TOKEN", ""), + instance=os.getenv("GLEAN_INSTANCE", ""), ) as g_client: g_client.client.chat.delete(ids=[]) @@ -20663,6 +20703,7 @@ paths: const glean = new Glean({ apiToken: process.env["GLEAN_API_TOKEN"] ?? "", + instance: process.env["GLEAN_INSTANCE"] ?? "", }); async function run() { @@ -20676,7 +20717,7 @@ paths: run(); - lang: go label: Go (API Client) - source: "package main\n\nimport(\n\t\"context\"\n\t\"os\"\n\tapiclientgo \"github.com/gleanwork/api-client-go\"\n\t\"github.com/gleanwork/api-client-go/models/components\"\n\t\"log\"\n)\n\nfunc main() {\n ctx := context.Background()\n\n s := apiclientgo.New(\n apiclientgo.WithSecurity(os.Getenv(\"GLEAN_API_TOKEN\")),\n )\n\n res, err := s.Client.Chat.Delete(ctx, components.DeleteChatsRequest{\n Ids: []string{},\n }, nil)\n if err != nil {\n log.Fatal(err)\n }\n if res != nil {\n // handle response\n }\n}" + source: "package main\n\nimport(\n\t\"context\"\n\t\"os\"\n\tapiclientgo \"github.com/gleanwork/api-client-go\"\n\t\"github.com/gleanwork/api-client-go/models/components\"\n\t\"log\"\n)\n\nfunc main() {\n ctx := context.Background()\n\n s := apiclientgo.New(\n apiclientgo.WithSecurity(os.Getenv(\"GLEAN_API_TOKEN\")),\n apiclientgo.WithInstance(os.Getenv(\"GLEAN_INSTANCE\")),\n )\n\n res, err := s.Client.Chat.Delete(ctx, components.DeleteChatsRequest{\n Ids: []string{},\n }, nil)\n if err != nil {\n log.Fatal(err)\n }\n if res != nil {\n // handle response\n }\n}" - lang: java label: Java (API Client) source: |- @@ -20694,6 +20735,7 @@ paths: Glean sdk = Glean.builder() .apiToken("") + .instance("") .build(); DeletechatsResponse res = sdk.client().chat().delete() @@ -20750,6 +20792,7 @@ paths: with Glean( api_token=os.getenv("GLEAN_API_TOKEN", ""), + instance=os.getenv("GLEAN_INSTANCE", ""), ) as g_client: res = g_client.client.chat.retrieve(id="") @@ -20763,6 +20806,7 @@ paths: const glean = new Glean({ apiToken: process.env["GLEAN_API_TOKEN"] ?? "", + instance: process.env["GLEAN_INSTANCE"] ?? "", }); async function run() { @@ -20777,7 +20821,7 @@ paths: run(); - lang: go label: Go (API Client) - source: "package main\n\nimport(\n\t\"context\"\n\t\"os\"\n\tapiclientgo \"github.com/gleanwork/api-client-go\"\n\t\"github.com/gleanwork/api-client-go/models/components\"\n\t\"log\"\n)\n\nfunc main() {\n ctx := context.Background()\n\n s := apiclientgo.New(\n apiclientgo.WithSecurity(os.Getenv(\"GLEAN_API_TOKEN\")),\n )\n\n res, err := s.Client.Chat.Retrieve(ctx, components.GetChatRequest{\n ID: \"\",\n }, nil)\n if err != nil {\n log.Fatal(err)\n }\n if res.GetChatResponse != nil {\n // handle response\n }\n}" + source: "package main\n\nimport(\n\t\"context\"\n\t\"os\"\n\tapiclientgo \"github.com/gleanwork/api-client-go\"\n\t\"github.com/gleanwork/api-client-go/models/components\"\n\t\"log\"\n)\n\nfunc main() {\n ctx := context.Background()\n\n s := apiclientgo.New(\n apiclientgo.WithSecurity(os.Getenv(\"GLEAN_API_TOKEN\")),\n apiclientgo.WithInstance(os.Getenv(\"GLEAN_INSTANCE\")),\n )\n\n res, err := s.Client.Chat.Retrieve(ctx, components.GetChatRequest{\n ID: \"\",\n }, nil)\n if err != nil {\n log.Fatal(err)\n }\n if res.GetChatResponse != nil {\n // handle response\n }\n}" - lang: java label: Java (API Client) source: |- @@ -20794,6 +20838,7 @@ paths: Glean sdk = Glean.builder() .apiToken("") + .instance("") .build(); GetchatResponse res = sdk.client().chat().retrieve() @@ -20843,6 +20888,7 @@ paths: with Glean( api_token=os.getenv("GLEAN_API_TOKEN", ""), + instance=os.getenv("GLEAN_INSTANCE", ""), ) as g_client: res = g_client.client.chat.list() @@ -20856,6 +20902,7 @@ paths: const glean = new Glean({ apiToken: process.env["GLEAN_API_TOKEN"] ?? "", + instance: process.env["GLEAN_INSTANCE"] ?? "", }); async function run() { @@ -20868,7 +20915,7 @@ paths: run(); - lang: go label: Go (API Client) - source: "package main\n\nimport(\n\t\"context\"\n\t\"os\"\n\tapiclientgo \"github.com/gleanwork/api-client-go\"\n\t\"log\"\n)\n\nfunc main() {\n ctx := context.Background()\n\n s := apiclientgo.New(\n apiclientgo.WithSecurity(os.Getenv(\"GLEAN_API_TOKEN\")),\n )\n\n res, err := s.Client.Chat.List(ctx, nil)\n if err != nil {\n log.Fatal(err)\n }\n if res.ListChatsResponse != nil {\n // handle response\n }\n}" + source: "package main\n\nimport(\n\t\"context\"\n\t\"os\"\n\tapiclientgo \"github.com/gleanwork/api-client-go\"\n\t\"log\"\n)\n\nfunc main() {\n ctx := context.Background()\n\n s := apiclientgo.New(\n apiclientgo.WithSecurity(os.Getenv(\"GLEAN_API_TOKEN\")),\n apiclientgo.WithInstance(os.Getenv(\"GLEAN_INSTANCE\")),\n )\n\n res, err := s.Client.Chat.List(ctx, nil)\n if err != nil {\n log.Fatal(err)\n }\n if res.ListChatsResponse != nil {\n // handle response\n }\n}" - lang: java label: Java (API Client) source: |- @@ -20884,6 +20931,7 @@ paths: Glean sdk = Glean.builder() .apiToken("") + .instance("") .build(); ListchatsResponse res = sdk.client().chat().list() @@ -20937,6 +20985,7 @@ paths: with Glean( api_token=os.getenv("GLEAN_API_TOKEN", ""), + instance=os.getenv("GLEAN_INSTANCE", ""), ) as g_client: res = g_client.client.chat.retrieve_application(id="") @@ -20950,6 +20999,7 @@ paths: const glean = new Glean({ apiToken: process.env["GLEAN_API_TOKEN"] ?? "", + instance: process.env["GLEAN_INSTANCE"] ?? "", }); async function run() { @@ -20964,7 +21014,7 @@ paths: run(); - lang: go label: Go (API Client) - source: "package main\n\nimport(\n\t\"context\"\n\t\"os\"\n\tapiclientgo \"github.com/gleanwork/api-client-go\"\n\t\"github.com/gleanwork/api-client-go/models/components\"\n\t\"log\"\n)\n\nfunc main() {\n ctx := context.Background()\n\n s := apiclientgo.New(\n apiclientgo.WithSecurity(os.Getenv(\"GLEAN_API_TOKEN\")),\n )\n\n res, err := s.Client.Chat.RetrieveApplication(ctx, components.GetChatApplicationRequest{\n ID: \"\",\n }, nil)\n if err != nil {\n log.Fatal(err)\n }\n if res.GetChatApplicationResponse != nil {\n // handle response\n }\n}" + source: "package main\n\nimport(\n\t\"context\"\n\t\"os\"\n\tapiclientgo \"github.com/gleanwork/api-client-go\"\n\t\"github.com/gleanwork/api-client-go/models/components\"\n\t\"log\"\n)\n\nfunc main() {\n ctx := context.Background()\n\n s := apiclientgo.New(\n apiclientgo.WithSecurity(os.Getenv(\"GLEAN_API_TOKEN\")),\n apiclientgo.WithInstance(os.Getenv(\"GLEAN_INSTANCE\")),\n )\n\n res, err := s.Client.Chat.RetrieveApplication(ctx, components.GetChatApplicationRequest{\n ID: \"\",\n }, nil)\n if err != nil {\n log.Fatal(err)\n }\n if res.GetChatApplicationResponse != nil {\n // handle response\n }\n}" - lang: java label: Java (API Client) source: |- @@ -20981,6 +21031,7 @@ paths: Glean sdk = Glean.builder() .apiToken("") + .instance("") .build(); GetchatapplicationResponse res = sdk.client().chat().retrieveApplication() @@ -21038,6 +21089,7 @@ paths: with Glean( api_token=os.getenv("GLEAN_API_TOKEN", ""), + instance=os.getenv("GLEAN_INSTANCE", ""), ) as g_client: res = g_client.client.chat.upload_files(files=[ @@ -21057,6 +21109,7 @@ paths: const glean = new Glean({ apiToken: process.env["GLEAN_API_TOKEN"] ?? "", + instance: process.env["GLEAN_INSTANCE"] ?? "", }); async function run() { @@ -21076,7 +21129,7 @@ paths: run(); - lang: go label: Go (API Client) - source: "package main\n\nimport(\n\t\"context\"\n\t\"os\"\n\tapiclientgo \"github.com/gleanwork/api-client-go\"\n\t\"github.com/gleanwork/api-client-go/models/components\"\n\t\"log\"\n)\n\nfunc main() {\n ctx := context.Background()\n\n s := apiclientgo.New(\n apiclientgo.WithSecurity(os.Getenv(\"GLEAN_API_TOKEN\")),\n )\n\n res, err := s.Client.Chat.UploadFiles(ctx, components.UploadChatFilesRequest{\n Files: []components.File{\n components.File{\n FileName: \"example.file\",\n Content: content,\n },\n },\n }, nil)\n if err != nil {\n log.Fatal(err)\n }\n if res.UploadChatFilesResponse != nil {\n // handle response\n }\n}" + source: "package main\n\nimport(\n\t\"context\"\n\t\"os\"\n\tapiclientgo \"github.com/gleanwork/api-client-go\"\n\t\"github.com/gleanwork/api-client-go/models/components\"\n\t\"log\"\n)\n\nfunc main() {\n ctx := context.Background()\n\n s := apiclientgo.New(\n apiclientgo.WithSecurity(os.Getenv(\"GLEAN_API_TOKEN\")),\n apiclientgo.WithInstance(os.Getenv(\"GLEAN_INSTANCE\")),\n )\n\n res, err := s.Client.Chat.UploadFiles(ctx, components.UploadChatFilesRequest{\n Files: []components.File{\n components.File{\n FileName: \"example.file\",\n Content: content,\n },\n },\n }, nil)\n if err != nil {\n log.Fatal(err)\n }\n if res.UploadChatFilesResponse != nil {\n // handle response\n }\n}" - lang: java label: Java (API Client) source: |- @@ -21096,6 +21149,7 @@ paths: Glean sdk = Glean.builder() .apiToken("") + .instance("") .build(); UploadchatfilesResponse res = sdk.client().chat().uploadFiles() @@ -21157,6 +21211,7 @@ paths: with Glean( api_token=os.getenv("GLEAN_API_TOKEN", ""), + instance=os.getenv("GLEAN_INSTANCE", ""), ) as g_client: res = g_client.client.chat.retrieve_files(file_ids=[ @@ -21172,6 +21227,7 @@ paths: const glean = new Glean({ apiToken: process.env["GLEAN_API_TOKEN"] ?? "", + instance: process.env["GLEAN_INSTANCE"] ?? "", }); async function run() { @@ -21188,7 +21244,7 @@ paths: run(); - lang: go label: Go (API Client) - source: "package main\n\nimport(\n\t\"context\"\n\t\"os\"\n\tapiclientgo \"github.com/gleanwork/api-client-go\"\n\t\"github.com/gleanwork/api-client-go/models/components\"\n\t\"log\"\n)\n\nfunc main() {\n ctx := context.Background()\n\n s := apiclientgo.New(\n apiclientgo.WithSecurity(os.Getenv(\"GLEAN_API_TOKEN\")),\n )\n\n res, err := s.Client.Chat.RetrieveFiles(ctx, components.GetChatFilesRequest{\n FileIds: []string{\n \"\",\n },\n }, nil)\n if err != nil {\n log.Fatal(err)\n }\n if res.GetChatFilesResponse != nil {\n // handle response\n }\n}" + source: "package main\n\nimport(\n\t\"context\"\n\t\"os\"\n\tapiclientgo \"github.com/gleanwork/api-client-go\"\n\t\"github.com/gleanwork/api-client-go/models/components\"\n\t\"log\"\n)\n\nfunc main() {\n ctx := context.Background()\n\n s := apiclientgo.New(\n apiclientgo.WithSecurity(os.Getenv(\"GLEAN_API_TOKEN\")),\n apiclientgo.WithInstance(os.Getenv(\"GLEAN_INSTANCE\")),\n )\n\n res, err := s.Client.Chat.RetrieveFiles(ctx, components.GetChatFilesRequest{\n FileIds: []string{\n \"\",\n },\n }, nil)\n if err != nil {\n log.Fatal(err)\n }\n if res.GetChatFilesResponse != nil {\n // handle response\n }\n}" - lang: java label: Java (API Client) source: |- @@ -21206,6 +21262,7 @@ paths: Glean sdk = Glean.builder() .apiToken("") + .instance("") .build(); GetchatfilesResponse res = sdk.client().chat().retrieveFiles() @@ -21259,6 +21316,7 @@ paths: with Glean( api_token=os.getenv("GLEAN_API_TOKEN", ""), + instance=os.getenv("GLEAN_INSTANCE", ""), ) as g_client: g_client.client.chat.delete_files(file_ids=[ @@ -21275,6 +21333,7 @@ paths: const glean = new Glean({ apiToken: process.env["GLEAN_API_TOKEN"] ?? "", + instance: process.env["GLEAN_INSTANCE"] ?? "", }); async function run() { @@ -21292,7 +21351,7 @@ paths: run(); - lang: go label: Go (API Client) - source: "package main\n\nimport(\n\t\"context\"\n\t\"os\"\n\tapiclientgo \"github.com/gleanwork/api-client-go\"\n\t\"github.com/gleanwork/api-client-go/models/components\"\n\t\"log\"\n)\n\nfunc main() {\n ctx := context.Background()\n\n s := apiclientgo.New(\n apiclientgo.WithSecurity(os.Getenv(\"GLEAN_API_TOKEN\")),\n )\n\n res, err := s.Client.Chat.DeleteFiles(ctx, components.DeleteChatFilesRequest{\n FileIds: []string{\n \"\",\n \"\",\n \"\",\n },\n }, nil)\n if err != nil {\n log.Fatal(err)\n }\n if res != nil {\n // handle response\n }\n}" + source: "package main\n\nimport(\n\t\"context\"\n\t\"os\"\n\tapiclientgo \"github.com/gleanwork/api-client-go\"\n\t\"github.com/gleanwork/api-client-go/models/components\"\n\t\"log\"\n)\n\nfunc main() {\n ctx := context.Background()\n\n s := apiclientgo.New(\n apiclientgo.WithSecurity(os.Getenv(\"GLEAN_API_TOKEN\")),\n apiclientgo.WithInstance(os.Getenv(\"GLEAN_INSTANCE\")),\n )\n\n res, err := s.Client.Chat.DeleteFiles(ctx, components.DeleteChatFilesRequest{\n FileIds: []string{\n \"\",\n \"\",\n \"\",\n },\n }, nil)\n if err != nil {\n log.Fatal(err)\n }\n if res != nil {\n // handle response\n }\n}" - lang: java label: Java (API Client) source: |- @@ -21310,6 +21369,7 @@ paths: Glean sdk = Glean.builder() .apiToken("") + .instance("") .build(); DeletechatfilesResponse res = sdk.client().chat().deleteFiles() @@ -21373,6 +21433,7 @@ paths: with Glean( api_token=os.getenv("GLEAN_API_TOKEN", ""), + instance=os.getenv("GLEAN_INSTANCE", ""), ) as g_client: res = g_client.client.agents.retrieve(agent_id="") @@ -21386,6 +21447,7 @@ paths: const glean = new Glean({ apiToken: process.env["GLEAN_API_TOKEN"] ?? "", + instance: process.env["GLEAN_INSTANCE"] ?? "", }); async function run() { @@ -21398,7 +21460,7 @@ paths: run(); - lang: go label: Go (API Client) - source: "package main\n\nimport(\n\t\"context\"\n\t\"os\"\n\tapiclientgo \"github.com/gleanwork/api-client-go\"\n\t\"log\"\n)\n\nfunc main() {\n ctx := context.Background()\n\n s := apiclientgo.New(\n apiclientgo.WithSecurity(os.Getenv(\"GLEAN_API_TOKEN\")),\n )\n\n res, err := s.Client.Agents.Retrieve(ctx, \"\", nil)\n if err != nil {\n log.Fatal(err)\n }\n if res.Agent != nil {\n // handle response\n }\n}" + source: "package main\n\nimport(\n\t\"context\"\n\t\"os\"\n\tapiclientgo \"github.com/gleanwork/api-client-go\"\n\t\"log\"\n)\n\nfunc main() {\n ctx := context.Background()\n\n s := apiclientgo.New(\n apiclientgo.WithSecurity(os.Getenv(\"GLEAN_API_TOKEN\")),\n apiclientgo.WithInstance(os.Getenv(\"GLEAN_INSTANCE\")),\n )\n\n res, err := s.Client.Agents.Retrieve(ctx, \"\", nil)\n if err != nil {\n log.Fatal(err)\n }\n if res.Agent != nil {\n // handle response\n }\n}" - lang: java label: Java (API Client) source: |- @@ -21414,6 +21476,7 @@ paths: Glean sdk = Glean.builder() .apiToken("") + .instance("") .build(); GetAgentResponse res = sdk.client().agents().retrieve() @@ -21480,6 +21543,7 @@ paths: with Glean( api_token=os.getenv("GLEAN_API_TOKEN", ""), + instance=os.getenv("GLEAN_INSTANCE", ""), ) as g_client: res = g_client.client.agents.retrieve_schemas(agent_id="") @@ -21493,6 +21557,7 @@ paths: const glean = new Glean({ apiToken: process.env["GLEAN_API_TOKEN"] ?? "", + instance: process.env["GLEAN_INSTANCE"] ?? "", }); async function run() { @@ -21505,7 +21570,7 @@ paths: run(); - lang: go label: Go (API Client) - source: "package main\n\nimport(\n\t\"context\"\n\t\"os\"\n\tapiclientgo \"github.com/gleanwork/api-client-go\"\n\t\"log\"\n)\n\nfunc main() {\n ctx := context.Background()\n\n s := apiclientgo.New(\n apiclientgo.WithSecurity(os.Getenv(\"GLEAN_API_TOKEN\")),\n )\n\n res, err := s.Client.Agents.RetrieveSchemas(ctx, \"\", nil)\n if err != nil {\n log.Fatal(err)\n }\n if res.AgentSchemas != nil {\n // handle response\n }\n}" + source: "package main\n\nimport(\n\t\"context\"\n\t\"os\"\n\tapiclientgo \"github.com/gleanwork/api-client-go\"\n\t\"log\"\n)\n\nfunc main() {\n ctx := context.Background()\n\n s := apiclientgo.New(\n apiclientgo.WithSecurity(os.Getenv(\"GLEAN_API_TOKEN\")),\n apiclientgo.WithInstance(os.Getenv(\"GLEAN_INSTANCE\")),\n )\n\n res, err := s.Client.Agents.RetrieveSchemas(ctx, \"\", nil)\n if err != nil {\n log.Fatal(err)\n }\n if res.AgentSchemas != nil {\n // handle response\n }\n}" - lang: java label: Java (API Client) source: |- @@ -21521,6 +21586,7 @@ paths: Glean sdk = Glean.builder() .apiToken("") + .instance("") .build(); GetAgentSchemasResponse res = sdk.client().agents().retrieveSchemas() @@ -21583,6 +21649,7 @@ paths: with Glean( api_token=os.getenv("GLEAN_API_TOKEN", ""), + instance=os.getenv("GLEAN_INSTANCE", ""), ) as g_client: res = g_client.client.agents.list() @@ -21596,6 +21663,7 @@ paths: const glean = new Glean({ apiToken: process.env["GLEAN_API_TOKEN"] ?? "", + instance: process.env["GLEAN_INSTANCE"] ?? "", }); async function run() { @@ -21608,7 +21676,7 @@ paths: run(); - lang: go label: Go (API Client) - source: "package main\n\nimport(\n\t\"context\"\n\t\"os\"\n\tapiclientgo \"github.com/gleanwork/api-client-go\"\n\t\"github.com/gleanwork/api-client-go/models/components\"\n\t\"log\"\n)\n\nfunc main() {\n ctx := context.Background()\n\n s := apiclientgo.New(\n apiclientgo.WithSecurity(os.Getenv(\"GLEAN_API_TOKEN\")),\n )\n\n res, err := s.Client.Agents.List(ctx, components.SearchAgentsRequest{})\n if err != nil {\n log.Fatal(err)\n }\n if res.SearchAgentsResponse != nil {\n // handle response\n }\n}" + source: "package main\n\nimport(\n\t\"context\"\n\t\"os\"\n\tapiclientgo \"github.com/gleanwork/api-client-go\"\n\t\"github.com/gleanwork/api-client-go/models/components\"\n\t\"log\"\n)\n\nfunc main() {\n ctx := context.Background()\n\n s := apiclientgo.New(\n apiclientgo.WithSecurity(os.Getenv(\"GLEAN_API_TOKEN\")),\n apiclientgo.WithInstance(os.Getenv(\"GLEAN_INSTANCE\")),\n )\n\n res, err := s.Client.Agents.List(ctx, components.SearchAgentsRequest{})\n if err != nil {\n log.Fatal(err)\n }\n if res.SearchAgentsResponse != nil {\n // handle response\n }\n}" - lang: java label: Java (API Client) source: |- @@ -21625,6 +21693,7 @@ paths: Glean sdk = Glean.builder() .apiToken("") + .instance("") .build(); SearchAgentsRequest req = SearchAgentsRequest.builder() @@ -21702,6 +21771,7 @@ paths: with Glean( api_token=os.getenv("GLEAN_API_TOKEN", ""), + instance=os.getenv("GLEAN_INSTANCE", ""), ) as g_client: res = g_client.client.agents.run_stream() @@ -21715,6 +21785,7 @@ paths: const glean = new Glean({ apiToken: process.env["GLEAN_API_TOKEN"] ?? "", + instance: process.env["GLEAN_INSTANCE"] ?? "", }); async function run() { @@ -21727,7 +21798,7 @@ paths: run(); - lang: go label: Go (API Client) - source: "package main\n\nimport(\n\t\"context\"\n\t\"os\"\n\tapiclientgo \"github.com/gleanwork/api-client-go\"\n\t\"github.com/gleanwork/api-client-go/models/components\"\n\t\"log\"\n)\n\nfunc main() {\n ctx := context.Background()\n\n s := apiclientgo.New(\n apiclientgo.WithSecurity(os.Getenv(\"GLEAN_API_TOKEN\")),\n )\n\n res, err := s.Client.Agents.RunStream(ctx, components.AgentRunCreate{})\n if err != nil {\n log.Fatal(err)\n }\n if res.Res != nil {\n // handle response\n }\n}" + source: "package main\n\nimport(\n\t\"context\"\n\t\"os\"\n\tapiclientgo \"github.com/gleanwork/api-client-go\"\n\t\"github.com/gleanwork/api-client-go/models/components\"\n\t\"log\"\n)\n\nfunc main() {\n ctx := context.Background()\n\n s := apiclientgo.New(\n apiclientgo.WithSecurity(os.Getenv(\"GLEAN_API_TOKEN\")),\n apiclientgo.WithInstance(os.Getenv(\"GLEAN_INSTANCE\")),\n )\n\n res, err := s.Client.Agents.RunStream(ctx, components.AgentRunCreate{})\n if err != nil {\n log.Fatal(err)\n }\n if res.Res != nil {\n // handle response\n }\n}" - lang: java label: Java (API Client) source: |- @@ -21744,6 +21815,7 @@ paths: Glean sdk = Glean.builder() .apiToken("") + .instance("") .build(); AgentRunCreate req = AgentRunCreate.builder() @@ -21803,6 +21875,7 @@ paths: with Glean( api_token=os.getenv("GLEAN_API_TOKEN", ""), + instance=os.getenv("GLEAN_INSTANCE", ""), ) as g_client: res = g_client.client.agents.run() @@ -21816,6 +21889,7 @@ paths: const glean = new Glean({ apiToken: process.env["GLEAN_API_TOKEN"] ?? "", + instance: process.env["GLEAN_INSTANCE"] ?? "", }); async function run() { @@ -21828,7 +21902,7 @@ paths: run(); - lang: go label: Go (API Client) - source: "package main\n\nimport(\n\t\"context\"\n\t\"os\"\n\tapiclientgo \"github.com/gleanwork/api-client-go\"\n\t\"github.com/gleanwork/api-client-go/models/components\"\n\t\"log\"\n)\n\nfunc main() {\n ctx := context.Background()\n\n s := apiclientgo.New(\n apiclientgo.WithSecurity(os.Getenv(\"GLEAN_API_TOKEN\")),\n )\n\n res, err := s.Client.Agents.Run(ctx, components.AgentRunCreate{})\n if err != nil {\n log.Fatal(err)\n }\n if res.AgentRunWaitResponse != nil {\n // handle response\n }\n}" + source: "package main\n\nimport(\n\t\"context\"\n\t\"os\"\n\tapiclientgo \"github.com/gleanwork/api-client-go\"\n\t\"github.com/gleanwork/api-client-go/models/components\"\n\t\"log\"\n)\n\nfunc main() {\n ctx := context.Background()\n\n s := apiclientgo.New(\n apiclientgo.WithSecurity(os.Getenv(\"GLEAN_API_TOKEN\")),\n apiclientgo.WithInstance(os.Getenv(\"GLEAN_INSTANCE\")),\n )\n\n res, err := s.Client.Agents.Run(ctx, components.AgentRunCreate{})\n if err != nil {\n log.Fatal(err)\n }\n if res.AgentRunWaitResponse != nil {\n // handle response\n }\n}" - lang: java label: Java (API Client) source: |- @@ -21845,6 +21919,7 @@ paths: Glean sdk = Glean.builder() .apiToken("") + .instance("") .build(); AgentRunCreate req = AgentRunCreate.builder() @@ -21902,6 +21977,7 @@ paths: with Glean( api_token=os.getenv("GLEAN_API_TOKEN", ""), + instance=os.getenv("GLEAN_INSTANCE", ""), ) as g_client: res = g_client.client.collections.add_items(collection_id=7742.68) @@ -21915,6 +21991,7 @@ paths: const glean = new Glean({ apiToken: process.env["GLEAN_API_TOKEN"] ?? "", + instance: process.env["GLEAN_INSTANCE"] ?? "", }); async function run() { @@ -21929,7 +22006,7 @@ paths: run(); - lang: go label: Go (API Client) - source: "package main\n\nimport(\n\t\"context\"\n\t\"os\"\n\tapiclientgo \"github.com/gleanwork/api-client-go\"\n\t\"github.com/gleanwork/api-client-go/models/components\"\n\t\"log\"\n)\n\nfunc main() {\n ctx := context.Background()\n\n s := apiclientgo.New(\n apiclientgo.WithSecurity(os.Getenv(\"GLEAN_API_TOKEN\")),\n )\n\n res, err := s.Client.Collections.AddItems(ctx, components.AddCollectionItemsRequest{\n CollectionID: 7742.68,\n })\n if err != nil {\n log.Fatal(err)\n }\n if res.AddCollectionItemsResponse != nil {\n // handle response\n }\n}" + source: "package main\n\nimport(\n\t\"context\"\n\t\"os\"\n\tapiclientgo \"github.com/gleanwork/api-client-go\"\n\t\"github.com/gleanwork/api-client-go/models/components\"\n\t\"log\"\n)\n\nfunc main() {\n ctx := context.Background()\n\n s := apiclientgo.New(\n apiclientgo.WithSecurity(os.Getenv(\"GLEAN_API_TOKEN\")),\n apiclientgo.WithInstance(os.Getenv(\"GLEAN_INSTANCE\")),\n )\n\n res, err := s.Client.Collections.AddItems(ctx, components.AddCollectionItemsRequest{\n CollectionID: 7742.68,\n })\n if err != nil {\n log.Fatal(err)\n }\n if res.AddCollectionItemsResponse != nil {\n // handle response\n }\n}" - lang: java label: Java (API Client) source: |- @@ -21946,6 +22023,7 @@ paths: Glean sdk = Glean.builder() .apiToken("") + .instance("") .build(); AddCollectionItemsRequest req = AddCollectionItemsRequest.builder() @@ -22010,6 +22088,7 @@ paths: with Glean( api_token=os.getenv("GLEAN_API_TOKEN", ""), + instance=os.getenv("GLEAN_INSTANCE", ""), ) as g_client: res = g_client.client.collections.create(name="", added_roles=[ @@ -22067,6 +22146,7 @@ paths: const glean = new Glean({ apiToken: process.env["GLEAN_API_TOKEN"] ?? "", + instance: process.env["GLEAN_INSTANCE"] ?? "", }); async function run() { @@ -22128,7 +22208,7 @@ paths: run(); - lang: go label: Go (API Client) - source: "package main\n\nimport(\n\t\"context\"\n\t\"os\"\n\tapiclientgo \"github.com/gleanwork/api-client-go\"\n\t\"github.com/gleanwork/api-client-go/models/components\"\n\t\"log\"\n)\n\nfunc main() {\n ctx := context.Background()\n\n s := apiclientgo.New(\n apiclientgo.WithSecurity(os.Getenv(\"GLEAN_API_TOKEN\")),\n )\n\n res, err := s.Client.Collections.Create(ctx, components.CreateCollectionRequest{\n Name: \"\",\n AddedRoles: []components.UserRoleSpecification{\n components.UserRoleSpecification{\n Person: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n Role: components.UserRoleAnswerModerator,\n },\n },\n RemovedRoles: []components.UserRoleSpecification{\n components.UserRoleSpecification{\n Person: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n Role: components.UserRoleVerifier,\n },\n components.UserRoleSpecification{\n Person: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n Role: components.UserRoleVerifier,\n },\n components.UserRoleSpecification{\n Person: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n Role: components.UserRoleVerifier,\n },\n },\n AudienceFilters: []components.FacetFilter{\n components.FacetFilter{\n FieldName: apiclientgo.String(\"type\"),\n Values: []components.FacetFilterValue{\n components.FacetFilterValue{\n Value: apiclientgo.String(\"Spreadsheet\"),\n RelationType: components.RelationTypeEquals.ToPointer(),\n },\n components.FacetFilterValue{\n Value: apiclientgo.String(\"Presentation\"),\n RelationType: components.RelationTypeEquals.ToPointer(),\n },\n },\n },\n },\n })\n if err != nil {\n log.Fatal(err)\n }\n if res.CreateCollectionResponse != nil {\n // handle response\n }\n}" + source: "package main\n\nimport(\n\t\"context\"\n\t\"os\"\n\tapiclientgo \"github.com/gleanwork/api-client-go\"\n\t\"github.com/gleanwork/api-client-go/models/components\"\n\t\"log\"\n)\n\nfunc main() {\n ctx := context.Background()\n\n s := apiclientgo.New(\n apiclientgo.WithSecurity(os.Getenv(\"GLEAN_API_TOKEN\")),\n apiclientgo.WithInstance(os.Getenv(\"GLEAN_INSTANCE\")),\n )\n\n res, err := s.Client.Collections.Create(ctx, components.CreateCollectionRequest{\n Name: \"\",\n AddedRoles: []components.UserRoleSpecification{\n components.UserRoleSpecification{\n Person: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n Role: components.UserRoleAnswerModerator,\n },\n },\n RemovedRoles: []components.UserRoleSpecification{\n components.UserRoleSpecification{\n Person: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n Role: components.UserRoleVerifier,\n },\n components.UserRoleSpecification{\n Person: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n Role: components.UserRoleVerifier,\n },\n components.UserRoleSpecification{\n Person: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n Role: components.UserRoleVerifier,\n },\n },\n AudienceFilters: []components.FacetFilter{\n components.FacetFilter{\n FieldName: apiclientgo.String(\"type\"),\n Values: []components.FacetFilterValue{\n components.FacetFilterValue{\n Value: apiclientgo.String(\"Spreadsheet\"),\n RelationType: components.RelationTypeEquals.ToPointer(),\n },\n components.FacetFilterValue{\n Value: apiclientgo.String(\"Presentation\"),\n RelationType: components.RelationTypeEquals.ToPointer(),\n },\n },\n },\n },\n })\n if err != nil {\n log.Fatal(err)\n }\n if res.CreateCollectionResponse != nil {\n // handle response\n }\n}" - lang: java label: Java (API Client) source: |- @@ -22147,6 +22227,7 @@ paths: Glean sdk = Glean.builder() .apiToken("") + .instance("") .build(); CreateCollectionRequest req = CreateCollectionRequest.builder() @@ -22250,6 +22331,7 @@ paths: with Glean( api_token=os.getenv("GLEAN_API_TOKEN", ""), + instance=os.getenv("GLEAN_INSTANCE", ""), ) as g_client: g_client.client.collections.delete(ids=[ @@ -22266,6 +22348,7 @@ paths: const glean = new Glean({ apiToken: process.env["GLEAN_API_TOKEN"] ?? "", + instance: process.env["GLEAN_INSTANCE"] ?? "", }); async function run() { @@ -22283,7 +22366,7 @@ paths: run(); - lang: go label: Go (API Client) - source: "package main\n\nimport(\n\t\"context\"\n\t\"os\"\n\tapiclientgo \"github.com/gleanwork/api-client-go\"\n\t\"github.com/gleanwork/api-client-go/models/components\"\n\t\"log\"\n)\n\nfunc main() {\n ctx := context.Background()\n\n s := apiclientgo.New(\n apiclientgo.WithSecurity(os.Getenv(\"GLEAN_API_TOKEN\")),\n )\n\n res, err := s.Client.Collections.Delete(ctx, components.DeleteCollectionRequest{\n Ids: []int64{\n 930352,\n 156719,\n 25102,\n },\n })\n if err != nil {\n log.Fatal(err)\n }\n if res != nil {\n // handle response\n }\n}" + source: "package main\n\nimport(\n\t\"context\"\n\t\"os\"\n\tapiclientgo \"github.com/gleanwork/api-client-go\"\n\t\"github.com/gleanwork/api-client-go/models/components\"\n\t\"log\"\n)\n\nfunc main() {\n ctx := context.Background()\n\n s := apiclientgo.New(\n apiclientgo.WithSecurity(os.Getenv(\"GLEAN_API_TOKEN\")),\n apiclientgo.WithInstance(os.Getenv(\"GLEAN_INSTANCE\")),\n )\n\n res, err := s.Client.Collections.Delete(ctx, components.DeleteCollectionRequest{\n Ids: []int64{\n 930352,\n 156719,\n 25102,\n },\n })\n if err != nil {\n log.Fatal(err)\n }\n if res != nil {\n // handle response\n }\n}" - lang: java label: Java (API Client) source: |- @@ -22302,6 +22385,7 @@ paths: Glean sdk = Glean.builder() .apiToken("") + .instance("") .build(); DeleteCollectionRequest req = DeleteCollectionRequest.builder() @@ -22363,6 +22447,7 @@ paths: with Glean( api_token=os.getenv("GLEAN_API_TOKEN", ""), + instance=os.getenv("GLEAN_INSTANCE", ""), ) as g_client: res = g_client.client.collections.delete_item(collection_id=6980.49, item_id="") @@ -22376,6 +22461,7 @@ paths: const glean = new Glean({ apiToken: process.env["GLEAN_API_TOKEN"] ?? "", + instance: process.env["GLEAN_INSTANCE"] ?? "", }); async function run() { @@ -22391,7 +22477,7 @@ paths: run(); - lang: go label: Go (API Client) - source: "package main\n\nimport(\n\t\"context\"\n\t\"os\"\n\tapiclientgo \"github.com/gleanwork/api-client-go\"\n\t\"github.com/gleanwork/api-client-go/models/components\"\n\t\"log\"\n)\n\nfunc main() {\n ctx := context.Background()\n\n s := apiclientgo.New(\n apiclientgo.WithSecurity(os.Getenv(\"GLEAN_API_TOKEN\")),\n )\n\n res, err := s.Client.Collections.DeleteItem(ctx, components.DeleteCollectionItemRequest{\n CollectionID: 6980.49,\n ItemID: \"\",\n })\n if err != nil {\n log.Fatal(err)\n }\n if res.DeleteCollectionItemResponse != nil {\n // handle response\n }\n}" + source: "package main\n\nimport(\n\t\"context\"\n\t\"os\"\n\tapiclientgo \"github.com/gleanwork/api-client-go\"\n\t\"github.com/gleanwork/api-client-go/models/components\"\n\t\"log\"\n)\n\nfunc main() {\n ctx := context.Background()\n\n s := apiclientgo.New(\n apiclientgo.WithSecurity(os.Getenv(\"GLEAN_API_TOKEN\")),\n apiclientgo.WithInstance(os.Getenv(\"GLEAN_INSTANCE\")),\n )\n\n res, err := s.Client.Collections.DeleteItem(ctx, components.DeleteCollectionItemRequest{\n CollectionID: 6980.49,\n ItemID: \"\",\n })\n if err != nil {\n log.Fatal(err)\n }\n if res.DeleteCollectionItemResponse != nil {\n // handle response\n }\n}" - lang: java label: Java (API Client) source: |- @@ -22408,6 +22494,7 @@ paths: Glean sdk = Glean.builder() .apiToken("") + .instance("") .build(); DeleteCollectionItemRequest req = DeleteCollectionItemRequest.builder() @@ -22473,6 +22560,7 @@ paths: with Glean( api_token=os.getenv("GLEAN_API_TOKEN", ""), + instance=os.getenv("GLEAN_INSTANCE", ""), ) as g_client: res = g_client.client.collections.update(name="", id=330922, added_roles=[ @@ -22523,6 +22611,7 @@ paths: const glean = new Glean({ apiToken: process.env["GLEAN_API_TOKEN"] ?? "", + instance: process.env["GLEAN_INSTANCE"] ?? "", }); async function run() { @@ -22578,7 +22667,7 @@ paths: run(); - lang: go label: Go (API Client) - source: "package main\n\nimport(\n\t\"context\"\n\t\"os\"\n\tapiclientgo \"github.com/gleanwork/api-client-go\"\n\t\"github.com/gleanwork/api-client-go/models/components\"\n\t\"log\"\n)\n\nfunc main() {\n ctx := context.Background()\n\n s := apiclientgo.New(\n apiclientgo.WithSecurity(os.Getenv(\"GLEAN_API_TOKEN\")),\n )\n\n res, err := s.Client.Collections.Update(ctx, components.EditCollectionRequest{\n Name: \"\",\n AddedRoles: []components.UserRoleSpecification{\n components.UserRoleSpecification{\n Person: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n Role: components.UserRoleVerifier,\n },\n },\n RemovedRoles: []components.UserRoleSpecification{\n components.UserRoleSpecification{\n Person: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n Role: components.UserRoleEditor,\n },\n components.UserRoleSpecification{\n Person: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n Role: components.UserRoleEditor,\n },\n },\n AudienceFilters: []components.FacetFilter{\n components.FacetFilter{\n FieldName: apiclientgo.String(\"type\"),\n Values: []components.FacetFilterValue{\n components.FacetFilterValue{\n Value: apiclientgo.String(\"Spreadsheet\"),\n RelationType: components.RelationTypeEquals.ToPointer(),\n },\n components.FacetFilterValue{\n Value: apiclientgo.String(\"Presentation\"),\n RelationType: components.RelationTypeEquals.ToPointer(),\n },\n },\n },\n },\n ID: 330922,\n })\n if err != nil {\n log.Fatal(err)\n }\n if res.EditCollectionResponse != nil {\n // handle response\n }\n}" + source: "package main\n\nimport(\n\t\"context\"\n\t\"os\"\n\tapiclientgo \"github.com/gleanwork/api-client-go\"\n\t\"github.com/gleanwork/api-client-go/models/components\"\n\t\"log\"\n)\n\nfunc main() {\n ctx := context.Background()\n\n s := apiclientgo.New(\n apiclientgo.WithSecurity(os.Getenv(\"GLEAN_API_TOKEN\")),\n apiclientgo.WithInstance(os.Getenv(\"GLEAN_INSTANCE\")),\n )\n\n res, err := s.Client.Collections.Update(ctx, components.EditCollectionRequest{\n Name: \"\",\n AddedRoles: []components.UserRoleSpecification{\n components.UserRoleSpecification{\n Person: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n Role: components.UserRoleVerifier,\n },\n },\n RemovedRoles: []components.UserRoleSpecification{\n components.UserRoleSpecification{\n Person: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n Role: components.UserRoleEditor,\n },\n components.UserRoleSpecification{\n Person: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n Role: components.UserRoleEditor,\n },\n },\n AudienceFilters: []components.FacetFilter{\n components.FacetFilter{\n FieldName: apiclientgo.String(\"type\"),\n Values: []components.FacetFilterValue{\n components.FacetFilterValue{\n Value: apiclientgo.String(\"Spreadsheet\"),\n RelationType: components.RelationTypeEquals.ToPointer(),\n },\n components.FacetFilterValue{\n Value: apiclientgo.String(\"Presentation\"),\n RelationType: components.RelationTypeEquals.ToPointer(),\n },\n },\n },\n },\n ID: 330922,\n })\n if err != nil {\n log.Fatal(err)\n }\n if res.EditCollectionResponse != nil {\n // handle response\n }\n}" - lang: java label: Java (API Client) source: |- @@ -22597,6 +22686,7 @@ paths: Glean sdk = Glean.builder() .apiToken("") + .instance("") .build(); EditCollectionRequest req = EditCollectionRequest.builder() @@ -22692,6 +22782,7 @@ paths: with Glean( api_token=os.getenv("GLEAN_API_TOKEN", ""), + instance=os.getenv("GLEAN_INSTANCE", ""), ) as g_client: res = g_client.client.collections.update_item(collection_id=142375, item_id="") @@ -22705,6 +22796,7 @@ paths: const glean = new Glean({ apiToken: process.env["GLEAN_API_TOKEN"] ?? "", + instance: process.env["GLEAN_INSTANCE"] ?? "", }); async function run() { @@ -22720,7 +22812,7 @@ paths: run(); - lang: go label: Go (API Client) - source: "package main\n\nimport(\n\t\"context\"\n\t\"os\"\n\tapiclientgo \"github.com/gleanwork/api-client-go\"\n\t\"github.com/gleanwork/api-client-go/models/components\"\n\t\"log\"\n)\n\nfunc main() {\n ctx := context.Background()\n\n s := apiclientgo.New(\n apiclientgo.WithSecurity(os.Getenv(\"GLEAN_API_TOKEN\")),\n )\n\n res, err := s.Client.Collections.UpdateItem(ctx, components.EditCollectionItemRequest{\n CollectionID: 142375,\n ItemID: \"\",\n })\n if err != nil {\n log.Fatal(err)\n }\n if res.EditCollectionItemResponse != nil {\n // handle response\n }\n}" + source: "package main\n\nimport(\n\t\"context\"\n\t\"os\"\n\tapiclientgo \"github.com/gleanwork/api-client-go\"\n\t\"github.com/gleanwork/api-client-go/models/components\"\n\t\"log\"\n)\n\nfunc main() {\n ctx := context.Background()\n\n s := apiclientgo.New(\n apiclientgo.WithSecurity(os.Getenv(\"GLEAN_API_TOKEN\")),\n apiclientgo.WithInstance(os.Getenv(\"GLEAN_INSTANCE\")),\n )\n\n res, err := s.Client.Collections.UpdateItem(ctx, components.EditCollectionItemRequest{\n CollectionID: 142375,\n ItemID: \"\",\n })\n if err != nil {\n log.Fatal(err)\n }\n if res.EditCollectionItemResponse != nil {\n // handle response\n }\n}" - lang: java label: Java (API Client) source: |- @@ -22737,6 +22829,7 @@ paths: Glean sdk = Glean.builder() .apiToken("") + .instance("") .build(); EditCollectionItemRequest req = EditCollectionItemRequest.builder() @@ -22796,6 +22889,7 @@ paths: with Glean( api_token=os.getenv("GLEAN_API_TOKEN", ""), + instance=os.getenv("GLEAN_INSTANCE", ""), ) as g_client: res = g_client.client.collections.retrieve(id=425335) @@ -22809,6 +22903,7 @@ paths: const glean = new Glean({ apiToken: process.env["GLEAN_API_TOKEN"] ?? "", + instance: process.env["GLEAN_INSTANCE"] ?? "", }); async function run() { @@ -22823,7 +22918,7 @@ paths: run(); - lang: go label: Go (API Client) - source: "package main\n\nimport(\n\t\"context\"\n\t\"os\"\n\tapiclientgo \"github.com/gleanwork/api-client-go\"\n\t\"github.com/gleanwork/api-client-go/models/components\"\n\t\"log\"\n)\n\nfunc main() {\n ctx := context.Background()\n\n s := apiclientgo.New(\n apiclientgo.WithSecurity(os.Getenv(\"GLEAN_API_TOKEN\")),\n )\n\n res, err := s.Client.Collections.Retrieve(ctx, components.GetCollectionRequest{\n ID: 425335,\n })\n if err != nil {\n log.Fatal(err)\n }\n if res.GetCollectionResponse != nil {\n // handle response\n }\n}" + source: "package main\n\nimport(\n\t\"context\"\n\t\"os\"\n\tapiclientgo \"github.com/gleanwork/api-client-go\"\n\t\"github.com/gleanwork/api-client-go/models/components\"\n\t\"log\"\n)\n\nfunc main() {\n ctx := context.Background()\n\n s := apiclientgo.New(\n apiclientgo.WithSecurity(os.Getenv(\"GLEAN_API_TOKEN\")),\n apiclientgo.WithInstance(os.Getenv(\"GLEAN_INSTANCE\")),\n )\n\n res, err := s.Client.Collections.Retrieve(ctx, components.GetCollectionRequest{\n ID: 425335,\n })\n if err != nil {\n log.Fatal(err)\n }\n if res.GetCollectionResponse != nil {\n // handle response\n }\n}" - lang: java label: Java (API Client) source: |- @@ -22840,6 +22935,7 @@ paths: Glean sdk = Glean.builder() .apiToken("") + .instance("") .build(); GetCollectionRequest req = GetCollectionRequest.builder() @@ -22898,6 +22994,7 @@ paths: with Glean( api_token=os.getenv("GLEAN_API_TOKEN", ""), + instance=os.getenv("GLEAN_INSTANCE", ""), ) as g_client: res = g_client.client.collections.list() @@ -22911,6 +23008,7 @@ paths: const glean = new Glean({ apiToken: process.env["GLEAN_API_TOKEN"] ?? "", + instance: process.env["GLEAN_INSTANCE"] ?? "", }); async function run() { @@ -22923,7 +23021,7 @@ paths: run(); - lang: go label: Go (API Client) - source: "package main\n\nimport(\n\t\"context\"\n\t\"os\"\n\tapiclientgo \"github.com/gleanwork/api-client-go\"\n\t\"github.com/gleanwork/api-client-go/models/components\"\n\t\"log\"\n)\n\nfunc main() {\n ctx := context.Background()\n\n s := apiclientgo.New(\n apiclientgo.WithSecurity(os.Getenv(\"GLEAN_API_TOKEN\")),\n )\n\n res, err := s.Client.Collections.List(ctx, components.ListCollectionsRequest{})\n if err != nil {\n log.Fatal(err)\n }\n if res.ListCollectionsResponse != nil {\n // handle response\n }\n}" + source: "package main\n\nimport(\n\t\"context\"\n\t\"os\"\n\tapiclientgo \"github.com/gleanwork/api-client-go\"\n\t\"github.com/gleanwork/api-client-go/models/components\"\n\t\"log\"\n)\n\nfunc main() {\n ctx := context.Background()\n\n s := apiclientgo.New(\n apiclientgo.WithSecurity(os.Getenv(\"GLEAN_API_TOKEN\")),\n apiclientgo.WithInstance(os.Getenv(\"GLEAN_INSTANCE\")),\n )\n\n res, err := s.Client.Collections.List(ctx, components.ListCollectionsRequest{})\n if err != nil {\n log.Fatal(err)\n }\n if res.ListCollectionsResponse != nil {\n // handle response\n }\n}" - lang: java label: Java (API Client) source: |- @@ -22940,6 +23038,7 @@ paths: Glean sdk = Glean.builder() .apiToken("") + .instance("") .build(); ListCollectionsRequest req = ListCollectionsRequest.builder() @@ -22999,6 +23098,7 @@ paths: with Glean( api_token=os.getenv("GLEAN_API_TOKEN", ""), + instance=os.getenv("GLEAN_INSTANCE", ""), ) as g_client: res = g_client.client.documents.retrieve_permissions() @@ -23012,6 +23112,7 @@ paths: const glean = new Glean({ apiToken: process.env["GLEAN_API_TOKEN"] ?? "", + instance: process.env["GLEAN_INSTANCE"] ?? "", }); async function run() { @@ -23024,7 +23125,7 @@ paths: run(); - lang: go label: Go (API Client) - source: "package main\n\nimport(\n\t\"context\"\n\t\"os\"\n\tapiclientgo \"github.com/gleanwork/api-client-go\"\n\t\"github.com/gleanwork/api-client-go/models/components\"\n\t\"log\"\n)\n\nfunc main() {\n ctx := context.Background()\n\n s := apiclientgo.New(\n apiclientgo.WithSecurity(os.Getenv(\"GLEAN_API_TOKEN\")),\n )\n\n res, err := s.Client.Documents.RetrievePermissions(ctx, components.GetDocPermissionsRequest{})\n if err != nil {\n log.Fatal(err)\n }\n if res.GetDocPermissionsResponse != nil {\n // handle response\n }\n}" + source: "package main\n\nimport(\n\t\"context\"\n\t\"os\"\n\tapiclientgo \"github.com/gleanwork/api-client-go\"\n\t\"github.com/gleanwork/api-client-go/models/components\"\n\t\"log\"\n)\n\nfunc main() {\n ctx := context.Background()\n\n s := apiclientgo.New(\n apiclientgo.WithSecurity(os.Getenv(\"GLEAN_API_TOKEN\")),\n apiclientgo.WithInstance(os.Getenv(\"GLEAN_INSTANCE\")),\n )\n\n res, err := s.Client.Documents.RetrievePermissions(ctx, components.GetDocPermissionsRequest{})\n if err != nil {\n log.Fatal(err)\n }\n if res.GetDocPermissionsResponse != nil {\n // handle response\n }\n}" - lang: java label: Java (API Client) source: |- @@ -23041,6 +23142,7 @@ paths: Glean sdk = Glean.builder() .apiToken("") + .instance("") .build(); GetDocPermissionsRequest req = GetDocPermissionsRequest.builder() @@ -23098,6 +23200,7 @@ paths: with Glean( api_token=os.getenv("GLEAN_API_TOKEN", ""), + instance=os.getenv("GLEAN_INSTANCE", ""), ) as g_client: res = g_client.client.documents.retrieve() @@ -23111,6 +23214,7 @@ paths: const glean = new Glean({ apiToken: process.env["GLEAN_API_TOKEN"] ?? "", + instance: process.env["GLEAN_INSTANCE"] ?? "", }); async function run() { @@ -23123,7 +23227,7 @@ paths: run(); - lang: go label: Go (API Client) - source: "package main\n\nimport(\n\t\"context\"\n\t\"os\"\n\tapiclientgo \"github.com/gleanwork/api-client-go\"\n\t\"log\"\n)\n\nfunc main() {\n ctx := context.Background()\n\n s := apiclientgo.New(\n apiclientgo.WithSecurity(os.Getenv(\"GLEAN_API_TOKEN\")),\n )\n\n res, err := s.Client.Documents.Retrieve(ctx, nil)\n if err != nil {\n log.Fatal(err)\n }\n if res.GetDocumentsResponse != nil {\n // handle response\n }\n}" + source: "package main\n\nimport(\n\t\"context\"\n\t\"os\"\n\tapiclientgo \"github.com/gleanwork/api-client-go\"\n\t\"log\"\n)\n\nfunc main() {\n ctx := context.Background()\n\n s := apiclientgo.New(\n apiclientgo.WithSecurity(os.Getenv(\"GLEAN_API_TOKEN\")),\n apiclientgo.WithInstance(os.Getenv(\"GLEAN_INSTANCE\")),\n )\n\n res, err := s.Client.Documents.Retrieve(ctx, nil)\n if err != nil {\n log.Fatal(err)\n }\n if res.GetDocumentsResponse != nil {\n // handle response\n }\n}" - lang: java label: Java (API Client) source: |- @@ -23141,6 +23245,7 @@ paths: Glean sdk = Glean.builder() .apiToken("") + .instance("") .build(); GetDocumentsRequest req = GetDocumentsRequest.builder() @@ -23201,6 +23306,7 @@ paths: with Glean( api_token=os.getenv("GLEAN_API_TOKEN", ""), + instance=os.getenv("GLEAN_INSTANCE", ""), ) as g_client: res = g_client.client.documents.retrieve_by_facets(request={ @@ -23251,6 +23357,7 @@ paths: const glean = new Glean({ apiToken: process.env["GLEAN_API_TOKEN"] ?? "", + instance: process.env["GLEAN_INSTANCE"] ?? "", }); async function run() { @@ -23300,7 +23407,7 @@ paths: run(); - lang: go label: Go (API Client) - source: "package main\n\nimport(\n\t\"context\"\n\t\"os\"\n\tapiclientgo \"github.com/gleanwork/api-client-go\"\n\t\"github.com/gleanwork/api-client-go/models/components\"\n\t\"log\"\n)\n\nfunc main() {\n ctx := context.Background()\n\n s := apiclientgo.New(\n apiclientgo.WithSecurity(os.Getenv(\"GLEAN_API_TOKEN\")),\n )\n\n res, err := s.Client.Documents.RetrieveByFacets(ctx, &components.GetDocumentsByFacetsRequest{\n FilterSets: []components.FacetFilterSet{\n components.FacetFilterSet{\n Filters: []components.FacetFilter{\n components.FacetFilter{\n FieldName: apiclientgo.String(\"type\"),\n Values: []components.FacetFilterValue{\n components.FacetFilterValue{\n Value: apiclientgo.String(\"Spreadsheet\"),\n RelationType: components.RelationTypeEquals.ToPointer(),\n },\n components.FacetFilterValue{\n Value: apiclientgo.String(\"Presentation\"),\n RelationType: components.RelationTypeEquals.ToPointer(),\n },\n },\n },\n },\n },\n components.FacetFilterSet{\n Filters: []components.FacetFilter{\n components.FacetFilter{\n FieldName: apiclientgo.String(\"type\"),\n Values: []components.FacetFilterValue{\n components.FacetFilterValue{\n Value: apiclientgo.String(\"Spreadsheet\"),\n RelationType: components.RelationTypeEquals.ToPointer(),\n },\n components.FacetFilterValue{\n Value: apiclientgo.String(\"Presentation\"),\n RelationType: components.RelationTypeEquals.ToPointer(),\n },\n },\n },\n },\n },\n },\n })\n if err != nil {\n log.Fatal(err)\n }\n if res.GetDocumentsByFacetsResponse != nil {\n // handle response\n }\n}" + source: "package main\n\nimport(\n\t\"context\"\n\t\"os\"\n\tapiclientgo \"github.com/gleanwork/api-client-go\"\n\t\"github.com/gleanwork/api-client-go/models/components\"\n\t\"log\"\n)\n\nfunc main() {\n ctx := context.Background()\n\n s := apiclientgo.New(\n apiclientgo.WithSecurity(os.Getenv(\"GLEAN_API_TOKEN\")),\n apiclientgo.WithInstance(os.Getenv(\"GLEAN_INSTANCE\")),\n )\n\n res, err := s.Client.Documents.RetrieveByFacets(ctx, &components.GetDocumentsByFacetsRequest{\n FilterSets: []components.FacetFilterSet{\n components.FacetFilterSet{\n Filters: []components.FacetFilter{\n components.FacetFilter{\n FieldName: apiclientgo.String(\"type\"),\n Values: []components.FacetFilterValue{\n components.FacetFilterValue{\n Value: apiclientgo.String(\"Spreadsheet\"),\n RelationType: components.RelationTypeEquals.ToPointer(),\n },\n components.FacetFilterValue{\n Value: apiclientgo.String(\"Presentation\"),\n RelationType: components.RelationTypeEquals.ToPointer(),\n },\n },\n },\n },\n },\n components.FacetFilterSet{\n Filters: []components.FacetFilter{\n components.FacetFilter{\n FieldName: apiclientgo.String(\"type\"),\n Values: []components.FacetFilterValue{\n components.FacetFilterValue{\n Value: apiclientgo.String(\"Spreadsheet\"),\n RelationType: components.RelationTypeEquals.ToPointer(),\n },\n components.FacetFilterValue{\n Value: apiclientgo.String(\"Presentation\"),\n RelationType: components.RelationTypeEquals.ToPointer(),\n },\n },\n },\n },\n },\n },\n })\n if err != nil {\n log.Fatal(err)\n }\n if res.GetDocumentsByFacetsResponse != nil {\n // handle response\n }\n}" - lang: java label: Java (API Client) source: |- @@ -23318,6 +23425,7 @@ paths: Glean sdk = Glean.builder() .apiToken("") + .instance("") .build(); GetDocumentsByFacetsRequest req = GetDocumentsByFacetsRequest.builder() @@ -23406,6 +23514,7 @@ paths: with Glean( api_token=os.getenv("GLEAN_API_TOKEN", ""), + instance=os.getenv("GLEAN_INSTANCE", ""), ) as g_client: res = g_client.client.insights.retrieve(categories=[ @@ -23423,6 +23532,7 @@ paths: const glean = new Glean({ apiToken: process.env["GLEAN_API_TOKEN"] ?? "", + instance: process.env["GLEAN_INSTANCE"] ?? "", }); async function run() { @@ -23441,7 +23551,7 @@ paths: run(); - lang: go label: Go (API Client) - source: "package main\n\nimport(\n\t\"context\"\n\t\"os\"\n\tapiclientgo \"github.com/gleanwork/api-client-go\"\n\t\"github.com/gleanwork/api-client-go/models/components\"\n\t\"log\"\n)\n\nfunc main() {\n ctx := context.Background()\n\n s := apiclientgo.New(\n apiclientgo.WithSecurity(os.Getenv(\"GLEAN_API_TOKEN\")),\n )\n\n res, err := s.Client.Insights.Retrieve(ctx, components.InsightsRequest{\n Categories: []components.InsightsRequestCategory{\n components.InsightsRequestCategoryCollections,\n components.InsightsRequestCategoryShortcuts,\n components.InsightsRequestCategoryAnnouncements,\n },\n })\n if err != nil {\n log.Fatal(err)\n }\n if res.InsightsResponse != nil {\n // handle response\n }\n}" + source: "package main\n\nimport(\n\t\"context\"\n\t\"os\"\n\tapiclientgo \"github.com/gleanwork/api-client-go\"\n\t\"github.com/gleanwork/api-client-go/models/components\"\n\t\"log\"\n)\n\nfunc main() {\n ctx := context.Background()\n\n s := apiclientgo.New(\n apiclientgo.WithSecurity(os.Getenv(\"GLEAN_API_TOKEN\")),\n apiclientgo.WithInstance(os.Getenv(\"GLEAN_INSTANCE\")),\n )\n\n res, err := s.Client.Insights.Retrieve(ctx, components.InsightsRequest{\n Categories: []components.InsightsRequestCategory{\n components.InsightsRequestCategoryCollections,\n components.InsightsRequestCategoryShortcuts,\n components.InsightsRequestCategoryAnnouncements,\n },\n })\n if err != nil {\n log.Fatal(err)\n }\n if res.InsightsResponse != nil {\n // handle response\n }\n}" - lang: java label: Java (API Client) source: |- @@ -23460,6 +23570,7 @@ paths: Glean sdk = Glean.builder() .apiToken("") + .instance("") .build(); InsightsRequest req = InsightsRequest.builder() @@ -23521,6 +23632,7 @@ paths: with Glean( api_token=os.getenv("GLEAN_API_TOKEN", ""), + instance=os.getenv("GLEAN_INSTANCE", ""), ) as g_client: res = g_client.client.messages.retrieve(id_type=models.IDType.CONVERSATION_ID, id="") @@ -23534,6 +23646,7 @@ paths: const glean = new Glean({ apiToken: process.env["GLEAN_API_TOKEN"] ?? "", + instance: process.env["GLEAN_INSTANCE"] ?? "", }); async function run() { @@ -23549,7 +23662,7 @@ paths: run(); - lang: go label: Go (API Client) - source: "package main\n\nimport(\n\t\"context\"\n\t\"os\"\n\tapiclientgo \"github.com/gleanwork/api-client-go\"\n\t\"github.com/gleanwork/api-client-go/models/components\"\n\t\"log\"\n)\n\nfunc main() {\n ctx := context.Background()\n\n s := apiclientgo.New(\n apiclientgo.WithSecurity(os.Getenv(\"GLEAN_API_TOKEN\")),\n )\n\n res, err := s.Client.Messages.Retrieve(ctx, components.MessagesRequest{\n IDType: components.IDTypeConversationID,\n ID: \"\",\n })\n if err != nil {\n log.Fatal(err)\n }\n if res.MessagesResponse != nil {\n // handle response\n }\n}" + source: "package main\n\nimport(\n\t\"context\"\n\t\"os\"\n\tapiclientgo \"github.com/gleanwork/api-client-go\"\n\t\"github.com/gleanwork/api-client-go/models/components\"\n\t\"log\"\n)\n\nfunc main() {\n ctx := context.Background()\n\n s := apiclientgo.New(\n apiclientgo.WithSecurity(os.Getenv(\"GLEAN_API_TOKEN\")),\n apiclientgo.WithInstance(os.Getenv(\"GLEAN_INSTANCE\")),\n )\n\n res, err := s.Client.Messages.Retrieve(ctx, components.MessagesRequest{\n IDType: components.IDTypeConversationID,\n ID: \"\",\n })\n if err != nil {\n log.Fatal(err)\n }\n if res.MessagesResponse != nil {\n // handle response\n }\n}" - lang: java label: Java (API Client) source: |- @@ -23567,6 +23680,7 @@ paths: Glean sdk = Glean.builder() .apiToken("") + .instance("") .build(); MessagesRequest req = MessagesRequest.builder() @@ -23626,6 +23740,7 @@ paths: with Glean( api_token=os.getenv("GLEAN_API_TOKEN", ""), + instance=os.getenv("GLEAN_INSTANCE", ""), ) as g_client: res = g_client.client.pins.update(request={ @@ -23655,6 +23770,7 @@ paths: const glean = new Glean({ apiToken: process.env["GLEAN_API_TOKEN"] ?? "", + instance: process.env["GLEAN_INSTANCE"] ?? "", }); async function run() { @@ -23683,7 +23799,7 @@ paths: run(); - lang: go label: Go (API Client) - source: "package main\n\nimport(\n\t\"context\"\n\t\"os\"\n\tapiclientgo \"github.com/gleanwork/api-client-go\"\n\t\"github.com/gleanwork/api-client-go/models/components\"\n\t\"log\"\n)\n\nfunc main() {\n ctx := context.Background()\n\n s := apiclientgo.New(\n apiclientgo.WithSecurity(os.Getenv(\"GLEAN_API_TOKEN\")),\n )\n\n res, err := s.Client.Pins.Update(ctx, components.EditPinRequest{\n AudienceFilters: []components.FacetFilter{\n components.FacetFilter{\n FieldName: apiclientgo.String(\"type\"),\n Values: []components.FacetFilterValue{\n components.FacetFilterValue{\n Value: apiclientgo.String(\"Spreadsheet\"),\n RelationType: components.RelationTypeEquals.ToPointer(),\n },\n components.FacetFilterValue{\n Value: apiclientgo.String(\"Presentation\"),\n RelationType: components.RelationTypeEquals.ToPointer(),\n },\n },\n },\n },\n })\n if err != nil {\n log.Fatal(err)\n }\n if res.PinDocument != nil {\n // handle response\n }\n}" + source: "package main\n\nimport(\n\t\"context\"\n\t\"os\"\n\tapiclientgo \"github.com/gleanwork/api-client-go\"\n\t\"github.com/gleanwork/api-client-go/models/components\"\n\t\"log\"\n)\n\nfunc main() {\n ctx := context.Background()\n\n s := apiclientgo.New(\n apiclientgo.WithSecurity(os.Getenv(\"GLEAN_API_TOKEN\")),\n apiclientgo.WithInstance(os.Getenv(\"GLEAN_INSTANCE\")),\n )\n\n res, err := s.Client.Pins.Update(ctx, components.EditPinRequest{\n AudienceFilters: []components.FacetFilter{\n components.FacetFilter{\n FieldName: apiclientgo.String(\"type\"),\n Values: []components.FacetFilterValue{\n components.FacetFilterValue{\n Value: apiclientgo.String(\"Spreadsheet\"),\n RelationType: components.RelationTypeEquals.ToPointer(),\n },\n components.FacetFilterValue{\n Value: apiclientgo.String(\"Presentation\"),\n RelationType: components.RelationTypeEquals.ToPointer(),\n },\n },\n },\n },\n })\n if err != nil {\n log.Fatal(err)\n }\n if res.PinDocument != nil {\n // handle response\n }\n}" - lang: java label: Java (API Client) source: |- @@ -23701,6 +23817,7 @@ paths: Glean sdk = Glean.builder() .apiToken("") + .instance("") .build(); EditPinRequest req = EditPinRequest.builder() @@ -23771,6 +23888,7 @@ paths: with Glean( api_token=os.getenv("GLEAN_API_TOKEN", ""), + instance=os.getenv("GLEAN_INSTANCE", ""), ) as g_client: res = g_client.client.pins.retrieve() @@ -23784,6 +23902,7 @@ paths: const glean = new Glean({ apiToken: process.env["GLEAN_API_TOKEN"] ?? "", + instance: process.env["GLEAN_INSTANCE"] ?? "", }); async function run() { @@ -23796,7 +23915,7 @@ paths: run(); - lang: go label: Go (API Client) - source: "package main\n\nimport(\n\t\"context\"\n\t\"os\"\n\tapiclientgo \"github.com/gleanwork/api-client-go\"\n\t\"github.com/gleanwork/api-client-go/models/components\"\n\t\"log\"\n)\n\nfunc main() {\n ctx := context.Background()\n\n s := apiclientgo.New(\n apiclientgo.WithSecurity(os.Getenv(\"GLEAN_API_TOKEN\")),\n )\n\n res, err := s.Client.Pins.Retrieve(ctx, components.GetPinRequest{})\n if err != nil {\n log.Fatal(err)\n }\n if res.GetPinResponse != nil {\n // handle response\n }\n}" + source: "package main\n\nimport(\n\t\"context\"\n\t\"os\"\n\tapiclientgo \"github.com/gleanwork/api-client-go\"\n\t\"github.com/gleanwork/api-client-go/models/components\"\n\t\"log\"\n)\n\nfunc main() {\n ctx := context.Background()\n\n s := apiclientgo.New(\n apiclientgo.WithSecurity(os.Getenv(\"GLEAN_API_TOKEN\")),\n apiclientgo.WithInstance(os.Getenv(\"GLEAN_INSTANCE\")),\n )\n\n res, err := s.Client.Pins.Retrieve(ctx, components.GetPinRequest{})\n if err != nil {\n log.Fatal(err)\n }\n if res.GetPinResponse != nil {\n // handle response\n }\n}" - lang: java label: Java (API Client) source: |- @@ -23813,6 +23932,7 @@ paths: Glean sdk = Glean.builder() .apiToken("") + .instance("") .build(); GetPinRequest req = GetPinRequest.builder() @@ -23870,6 +23990,7 @@ paths: with Glean( api_token=os.getenv("GLEAN_API_TOKEN", ""), + instance=os.getenv("GLEAN_INSTANCE", ""), ) as g_client: res = g_client.client.pins.list() @@ -23883,6 +24004,7 @@ paths: const glean = new Glean({ apiToken: process.env["GLEAN_API_TOKEN"] ?? "", + instance: process.env["GLEAN_INSTANCE"] ?? "", }); async function run() { @@ -23895,7 +24017,7 @@ paths: run(); - lang: go label: Go (API Client) - source: "package main\n\nimport(\n\t\"context\"\n\t\"os\"\n\tapiclientgo \"github.com/gleanwork/api-client-go\"\n\t\"github.com/gleanwork/api-client-go/models/operations\"\n\t\"log\"\n)\n\nfunc main() {\n ctx := context.Background()\n\n s := apiclientgo.New(\n apiclientgo.WithSecurity(os.Getenv(\"GLEAN_API_TOKEN\")),\n )\n\n res, err := s.Client.Pins.List(ctx, operations.ListpinsRequest{})\n if err != nil {\n log.Fatal(err)\n }\n if res.ListPinsResponse != nil {\n // handle response\n }\n}" + source: "package main\n\nimport(\n\t\"context\"\n\t\"os\"\n\tapiclientgo \"github.com/gleanwork/api-client-go\"\n\t\"github.com/gleanwork/api-client-go/models/operations\"\n\t\"log\"\n)\n\nfunc main() {\n ctx := context.Background()\n\n s := apiclientgo.New(\n apiclientgo.WithSecurity(os.Getenv(\"GLEAN_API_TOKEN\")),\n apiclientgo.WithInstance(os.Getenv(\"GLEAN_INSTANCE\")),\n )\n\n res, err := s.Client.Pins.List(ctx, operations.ListpinsRequest{})\n if err != nil {\n log.Fatal(err)\n }\n if res.ListPinsResponse != nil {\n // handle response\n }\n}" - lang: java label: Java (API Client) source: |- @@ -23912,6 +24034,7 @@ paths: Glean sdk = Glean.builder() .apiToken("") + .instance("") .build(); ListpinsRequest req = ListpinsRequest.builder() @@ -23969,6 +24092,7 @@ paths: with Glean( api_token=os.getenv("GLEAN_API_TOKEN", ""), + instance=os.getenv("GLEAN_INSTANCE", ""), ) as g_client: res = g_client.client.pins.create(request={ @@ -23998,6 +24122,7 @@ paths: const glean = new Glean({ apiToken: process.env["GLEAN_API_TOKEN"] ?? "", + instance: process.env["GLEAN_INSTANCE"] ?? "", }); async function run() { @@ -24026,7 +24151,7 @@ paths: run(); - lang: go label: Go (API Client) - source: "package main\n\nimport(\n\t\"context\"\n\t\"os\"\n\tapiclientgo \"github.com/gleanwork/api-client-go\"\n\t\"github.com/gleanwork/api-client-go/models/components\"\n\t\"log\"\n)\n\nfunc main() {\n ctx := context.Background()\n\n s := apiclientgo.New(\n apiclientgo.WithSecurity(os.Getenv(\"GLEAN_API_TOKEN\")),\n )\n\n res, err := s.Client.Pins.Create(ctx, components.PinRequest{\n AudienceFilters: []components.FacetFilter{\n components.FacetFilter{\n FieldName: apiclientgo.String(\"type\"),\n Values: []components.FacetFilterValue{\n components.FacetFilterValue{\n Value: apiclientgo.String(\"Spreadsheet\"),\n RelationType: components.RelationTypeEquals.ToPointer(),\n },\n components.FacetFilterValue{\n Value: apiclientgo.String(\"Presentation\"),\n RelationType: components.RelationTypeEquals.ToPointer(),\n },\n },\n },\n },\n })\n if err != nil {\n log.Fatal(err)\n }\n if res.PinDocument != nil {\n // handle response\n }\n}" + source: "package main\n\nimport(\n\t\"context\"\n\t\"os\"\n\tapiclientgo \"github.com/gleanwork/api-client-go\"\n\t\"github.com/gleanwork/api-client-go/models/components\"\n\t\"log\"\n)\n\nfunc main() {\n ctx := context.Background()\n\n s := apiclientgo.New(\n apiclientgo.WithSecurity(os.Getenv(\"GLEAN_API_TOKEN\")),\n apiclientgo.WithInstance(os.Getenv(\"GLEAN_INSTANCE\")),\n )\n\n res, err := s.Client.Pins.Create(ctx, components.PinRequest{\n AudienceFilters: []components.FacetFilter{\n components.FacetFilter{\n FieldName: apiclientgo.String(\"type\"),\n Values: []components.FacetFilterValue{\n components.FacetFilterValue{\n Value: apiclientgo.String(\"Spreadsheet\"),\n RelationType: components.RelationTypeEquals.ToPointer(),\n },\n components.FacetFilterValue{\n Value: apiclientgo.String(\"Presentation\"),\n RelationType: components.RelationTypeEquals.ToPointer(),\n },\n },\n },\n },\n })\n if err != nil {\n log.Fatal(err)\n }\n if res.PinDocument != nil {\n // handle response\n }\n}" - lang: java label: Java (API Client) source: |- @@ -24044,6 +24169,7 @@ paths: Glean sdk = Glean.builder() .apiToken("") + .instance("") .build(); PinRequest req = PinRequest.builder() @@ -24112,6 +24238,7 @@ paths: with Glean( api_token=os.getenv("GLEAN_API_TOKEN", ""), + instance=os.getenv("GLEAN_INSTANCE", ""), ) as g_client: g_client.client.pins.remove() @@ -24124,6 +24251,7 @@ paths: const glean = new Glean({ apiToken: process.env["GLEAN_API_TOKEN"] ?? "", + instance: process.env["GLEAN_INSTANCE"] ?? "", }); async function run() { @@ -24135,7 +24263,7 @@ paths: run(); - lang: go label: Go (API Client) - source: "package main\n\nimport(\n\t\"context\"\n\t\"os\"\n\tapiclientgo \"github.com/gleanwork/api-client-go\"\n\t\"github.com/gleanwork/api-client-go/models/components\"\n\t\"log\"\n)\n\nfunc main() {\n ctx := context.Background()\n\n s := apiclientgo.New(\n apiclientgo.WithSecurity(os.Getenv(\"GLEAN_API_TOKEN\")),\n )\n\n res, err := s.Client.Pins.Remove(ctx, components.Unpin{})\n if err != nil {\n log.Fatal(err)\n }\n if res != nil {\n // handle response\n }\n}" + source: "package main\n\nimport(\n\t\"context\"\n\t\"os\"\n\tapiclientgo \"github.com/gleanwork/api-client-go\"\n\t\"github.com/gleanwork/api-client-go/models/components\"\n\t\"log\"\n)\n\nfunc main() {\n ctx := context.Background()\n\n s := apiclientgo.New(\n apiclientgo.WithSecurity(os.Getenv(\"GLEAN_API_TOKEN\")),\n apiclientgo.WithInstance(os.Getenv(\"GLEAN_INSTANCE\")),\n )\n\n res, err := s.Client.Pins.Remove(ctx, components.Unpin{})\n if err != nil {\n log.Fatal(err)\n }\n if res != nil {\n // handle response\n }\n}" - lang: java label: Java (API Client) source: |- @@ -24152,6 +24280,7 @@ paths: Glean sdk = Glean.builder() .apiToken("") + .instance("") .build(); Unpin req = Unpin.builder() @@ -24220,6 +24349,7 @@ paths: with Glean( api_token=os.getenv("GLEAN_API_TOKEN", ""), + instance=os.getenv("GLEAN_INSTANCE", ""), ) as g_client: res = g_client.client.search.query_as_admin(query="vacation policy", tracking_token="trackingToken", source_document=models.Document( @@ -24293,6 +24423,7 @@ paths: const glean = new Glean({ apiToken: process.env["GLEAN_API_TOKEN"] ?? "", + instance: process.env["GLEAN_INSTANCE"] ?? "", }); async function run() { @@ -24336,7 +24467,7 @@ paths: run(); - lang: go label: Go (API Client) - source: "package main\n\nimport(\n\t\"context\"\n\t\"os\"\n\tapiclientgo \"github.com/gleanwork/api-client-go\"\n\t\"github.com/gleanwork/api-client-go/types\"\n\t\"github.com/gleanwork/api-client-go/models/components\"\n\t\"log\"\n)\n\nfunc main() {\n ctx := context.Background()\n\n s := apiclientgo.New(\n apiclientgo.WithSecurity(os.Getenv(\"GLEAN_API_TOKEN\")),\n )\n\n res, err := s.Client.Search.QueryAsAdmin(ctx, components.SearchRequest{\n TrackingToken: apiclientgo.String(\"trackingToken\"),\n PageSize: apiclientgo.Int64(10),\n Query: \"vacation policy\",\n RequestOptions: &components.SearchRequestOptions{\n FacetFilters: []components.FacetFilter{\n components.FacetFilter{\n FieldName: apiclientgo.String(\"type\"),\n Values: []components.FacetFilterValue{\n components.FacetFilterValue{\n Value: apiclientgo.String(\"article\"),\n RelationType: components.RelationTypeEquals.ToPointer(),\n },\n components.FacetFilterValue{\n Value: apiclientgo.String(\"document\"),\n RelationType: components.RelationTypeEquals.ToPointer(),\n },\n },\n },\n components.FacetFilter{\n FieldName: apiclientgo.String(\"department\"),\n Values: []components.FacetFilterValue{\n components.FacetFilterValue{\n Value: apiclientgo.String(\"engineering\"),\n RelationType: components.RelationTypeEquals.ToPointer(),\n },\n },\n },\n },\n FacetBucketSize: 723824,\n },\n })\n if err != nil {\n log.Fatal(err)\n }\n if res.SearchResponse != nil {\n // handle response\n }\n}" + source: "package main\n\nimport(\n\t\"context\"\n\t\"os\"\n\tapiclientgo \"github.com/gleanwork/api-client-go\"\n\t\"github.com/gleanwork/api-client-go/types\"\n\t\"github.com/gleanwork/api-client-go/models/components\"\n\t\"log\"\n)\n\nfunc main() {\n ctx := context.Background()\n\n s := apiclientgo.New(\n apiclientgo.WithSecurity(os.Getenv(\"GLEAN_API_TOKEN\")),\n apiclientgo.WithInstance(os.Getenv(\"GLEAN_INSTANCE\")),\n )\n\n res, err := s.Client.Search.QueryAsAdmin(ctx, components.SearchRequest{\n TrackingToken: apiclientgo.String(\"trackingToken\"),\n PageSize: apiclientgo.Int64(10),\n Query: \"vacation policy\",\n RequestOptions: &components.SearchRequestOptions{\n FacetFilters: []components.FacetFilter{\n components.FacetFilter{\n FieldName: apiclientgo.String(\"type\"),\n Values: []components.FacetFilterValue{\n components.FacetFilterValue{\n Value: apiclientgo.String(\"article\"),\n RelationType: components.RelationTypeEquals.ToPointer(),\n },\n components.FacetFilterValue{\n Value: apiclientgo.String(\"document\"),\n RelationType: components.RelationTypeEquals.ToPointer(),\n },\n },\n },\n components.FacetFilter{\n FieldName: apiclientgo.String(\"department\"),\n Values: []components.FacetFilterValue{\n components.FacetFilterValue{\n Value: apiclientgo.String(\"engineering\"),\n RelationType: components.RelationTypeEquals.ToPointer(),\n },\n },\n },\n },\n FacetBucketSize: 723824,\n },\n })\n if err != nil {\n log.Fatal(err)\n }\n if res.SearchResponse != nil {\n // handle response\n }\n}" - lang: java label: Java (API Client) source: |- @@ -24355,6 +24486,7 @@ paths: Glean sdk = Glean.builder() .apiToken("") + .instance("") .build(); SearchRequest req = SearchRequest.builder() @@ -24439,6 +24571,7 @@ paths: with Glean( api_token=os.getenv("GLEAN_API_TOKEN", ""), + instance=os.getenv("GLEAN_INSTANCE", ""), ) as g_client: res = g_client.client.search.autocomplete(request={ @@ -24457,6 +24590,7 @@ paths: const glean = new Glean({ apiToken: process.env["GLEAN_API_TOKEN"] ?? "", + instance: process.env["GLEAN_INSTANCE"] ?? "", }); async function run() { @@ -24474,7 +24608,7 @@ paths: run(); - lang: go label: Go (API Client) - source: "package main\n\nimport(\n\t\"context\"\n\t\"os\"\n\tapiclientgo \"github.com/gleanwork/api-client-go\"\n\t\"github.com/gleanwork/api-client-go/models/components\"\n\t\"log\"\n)\n\nfunc main() {\n ctx := context.Background()\n\n s := apiclientgo.New(\n apiclientgo.WithSecurity(os.Getenv(\"GLEAN_API_TOKEN\")),\n )\n\n res, err := s.Client.Search.Autocomplete(ctx, components.AutocompleteRequest{\n TrackingToken: apiclientgo.String(\"trackingToken\"),\n Query: apiclientgo.String(\"what is a que\"),\n Datasource: apiclientgo.String(\"GDRIVE\"),\n ResultSize: apiclientgo.Int64(10),\n })\n if err != nil {\n log.Fatal(err)\n }\n if res.AutocompleteResponse != nil {\n // handle response\n }\n}" + source: "package main\n\nimport(\n\t\"context\"\n\t\"os\"\n\tapiclientgo \"github.com/gleanwork/api-client-go\"\n\t\"github.com/gleanwork/api-client-go/models/components\"\n\t\"log\"\n)\n\nfunc main() {\n ctx := context.Background()\n\n s := apiclientgo.New(\n apiclientgo.WithSecurity(os.Getenv(\"GLEAN_API_TOKEN\")),\n apiclientgo.WithInstance(os.Getenv(\"GLEAN_INSTANCE\")),\n )\n\n res, err := s.Client.Search.Autocomplete(ctx, components.AutocompleteRequest{\n TrackingToken: apiclientgo.String(\"trackingToken\"),\n Query: apiclientgo.String(\"what is a que\"),\n Datasource: apiclientgo.String(\"GDRIVE\"),\n ResultSize: apiclientgo.Int64(10),\n })\n if err != nil {\n log.Fatal(err)\n }\n if res.AutocompleteResponse != nil {\n // handle response\n }\n}" - lang: java label: Java (API Client) source: |- @@ -24491,6 +24625,7 @@ paths: Glean sdk = Glean.builder() .apiToken("") + .instance("") .build(); AutocompleteRequest req = AutocompleteRequest.builder() @@ -24554,6 +24689,7 @@ paths: with Glean( api_token=os.getenv("GLEAN_API_TOKEN", ""), + instance=os.getenv("GLEAN_INSTANCE", ""), ) as g_client: res = g_client.client.search.retrieve_feed(request={ @@ -24569,6 +24705,7 @@ paths: const glean = new Glean({ apiToken: process.env["GLEAN_API_TOKEN"] ?? "", + instance: process.env["GLEAN_INSTANCE"] ?? "", }); async function run() { @@ -24583,7 +24720,7 @@ paths: run(); - lang: go label: Go (API Client) - source: "package main\n\nimport(\n\t\"context\"\n\t\"os\"\n\tapiclientgo \"github.com/gleanwork/api-client-go\"\n\t\"github.com/gleanwork/api-client-go/models/components\"\n\t\"log\"\n)\n\nfunc main() {\n ctx := context.Background()\n\n s := apiclientgo.New(\n apiclientgo.WithSecurity(os.Getenv(\"GLEAN_API_TOKEN\")),\n )\n\n res, err := s.Client.Search.RetrieveFeed(ctx, components.FeedRequest{\n TimeoutMillis: apiclientgo.Int64(5000),\n })\n if err != nil {\n log.Fatal(err)\n }\n if res.FeedResponse != nil {\n // handle response\n }\n}" + source: "package main\n\nimport(\n\t\"context\"\n\t\"os\"\n\tapiclientgo \"github.com/gleanwork/api-client-go\"\n\t\"github.com/gleanwork/api-client-go/models/components\"\n\t\"log\"\n)\n\nfunc main() {\n ctx := context.Background()\n\n s := apiclientgo.New(\n apiclientgo.WithSecurity(os.Getenv(\"GLEAN_API_TOKEN\")),\n apiclientgo.WithInstance(os.Getenv(\"GLEAN_INSTANCE\")),\n )\n\n res, err := s.Client.Search.RetrieveFeed(ctx, components.FeedRequest{\n TimeoutMillis: apiclientgo.Int64(5000),\n })\n if err != nil {\n log.Fatal(err)\n }\n if res.FeedResponse != nil {\n // handle response\n }\n}" - lang: java label: Java (API Client) source: |- @@ -24600,6 +24737,7 @@ paths: Glean sdk = Glean.builder() .apiToken("") + .instance("") .build(); FeedRequest req = FeedRequest.builder() @@ -24665,6 +24803,7 @@ paths: with Glean( api_token=os.getenv("GLEAN_API_TOKEN", ""), + instance=os.getenv("GLEAN_INSTANCE", ""), ) as g_client: res = g_client.client.search.recommendations(request=models.RecommendationsRequest( @@ -24752,6 +24891,7 @@ paths: const glean = new Glean({ apiToken: process.env["GLEAN_API_TOKEN"] ?? "", + instance: process.env["GLEAN_INSTANCE"] ?? "", }); async function run() { @@ -24836,7 +24976,7 @@ paths: run(); - lang: go label: Go (API Client) - source: "package main\n\nimport(\n\t\"context\"\n\t\"os\"\n\tapiclientgo \"github.com/gleanwork/api-client-go\"\n\t\"github.com/gleanwork/api-client-go/types\"\n\t\"github.com/gleanwork/api-client-go/models/components\"\n\t\"log\"\n)\n\nfunc main() {\n ctx := context.Background()\n\n s := apiclientgo.New(\n apiclientgo.WithSecurity(os.Getenv(\"GLEAN_API_TOKEN\")),\n )\n\n res, err := s.Client.Search.Recommendations(ctx, components.RecommendationsRequest{\n SourceDocument: &components.Document{\n Metadata: &components.DocumentMetadata{\n Datasource: apiclientgo.String(\"datasource\"),\n ObjectType: apiclientgo.String(\"Feature Request\"),\n Container: apiclientgo.String(\"container\"),\n ParentID: apiclientgo.String(\"JIRA_EN-1337\"),\n MimeType: apiclientgo.String(\"mimeType\"),\n DocumentID: apiclientgo.String(\"documentId\"),\n CreateTime: types.MustNewTimeFromString(\"2000-01-23T04:56:07.000Z\"),\n UpdateTime: types.MustNewTimeFromString(\"2000-01-23T04:56:07.000Z\"),\n Author: &components.Person{\n Name: \"name\",\n ObfuscatedID: \"\",\n },\n Components: []string{\n \"Backend\",\n \"Networking\",\n },\n Status: apiclientgo.String(\"[\\\"Done\\\"]\"),\n CustomData: map[string]components.CustomDataValue{\n \"someCustomField\": components.CustomDataValue{},\n },\n },\n },\n PageSize: apiclientgo.Int64(100),\n MaxSnippetSize: apiclientgo.Int64(400),\n RequestOptions: &components.RecommendationsRequestOptions{\n FacetFilterSets: []components.FacetFilterSet{\n components.FacetFilterSet{\n Filters: []components.FacetFilter{\n components.FacetFilter{\n FieldName: apiclientgo.String(\"type\"),\n Values: []components.FacetFilterValue{\n components.FacetFilterValue{\n Value: apiclientgo.String(\"Spreadsheet\"),\n RelationType: components.RelationTypeEquals.ToPointer(),\n },\n components.FacetFilterValue{\n Value: apiclientgo.String(\"Presentation\"),\n RelationType: components.RelationTypeEquals.ToPointer(),\n },\n },\n },\n },\n },\n },\n Context: &components.Document{\n Metadata: &components.DocumentMetadata{\n Datasource: apiclientgo.String(\"datasource\"),\n ObjectType: apiclientgo.String(\"Feature Request\"),\n Container: apiclientgo.String(\"container\"),\n ParentID: apiclientgo.String(\"JIRA_EN-1337\"),\n MimeType: apiclientgo.String(\"mimeType\"),\n DocumentID: apiclientgo.String(\"documentId\"),\n CreateTime: types.MustNewTimeFromString(\"2000-01-23T04:56:07.000Z\"),\n UpdateTime: types.MustNewTimeFromString(\"2000-01-23T04:56:07.000Z\"),\n Author: &components.Person{\n Name: \"name\",\n ObfuscatedID: \"\",\n },\n Components: []string{\n \"Backend\",\n \"Networking\",\n },\n Status: apiclientgo.String(\"[\\\"Done\\\"]\"),\n CustomData: map[string]components.CustomDataValue{\n \"someCustomField\": components.CustomDataValue{},\n },\n },\n },\n },\n })\n if err != nil {\n log.Fatal(err)\n }\n if res.ResultsResponse != nil {\n // handle response\n }\n}" + source: "package main\n\nimport(\n\t\"context\"\n\t\"os\"\n\tapiclientgo \"github.com/gleanwork/api-client-go\"\n\t\"github.com/gleanwork/api-client-go/types\"\n\t\"github.com/gleanwork/api-client-go/models/components\"\n\t\"log\"\n)\n\nfunc main() {\n ctx := context.Background()\n\n s := apiclientgo.New(\n apiclientgo.WithSecurity(os.Getenv(\"GLEAN_API_TOKEN\")),\n apiclientgo.WithInstance(os.Getenv(\"GLEAN_INSTANCE\")),\n )\n\n res, err := s.Client.Search.Recommendations(ctx, components.RecommendationsRequest{\n SourceDocument: &components.Document{\n Metadata: &components.DocumentMetadata{\n Datasource: apiclientgo.String(\"datasource\"),\n ObjectType: apiclientgo.String(\"Feature Request\"),\n Container: apiclientgo.String(\"container\"),\n ParentID: apiclientgo.String(\"JIRA_EN-1337\"),\n MimeType: apiclientgo.String(\"mimeType\"),\n DocumentID: apiclientgo.String(\"documentId\"),\n CreateTime: types.MustNewTimeFromString(\"2000-01-23T04:56:07.000Z\"),\n UpdateTime: types.MustNewTimeFromString(\"2000-01-23T04:56:07.000Z\"),\n Author: &components.Person{\n Name: \"name\",\n ObfuscatedID: \"\",\n },\n Components: []string{\n \"Backend\",\n \"Networking\",\n },\n Status: apiclientgo.String(\"[\\\"Done\\\"]\"),\n CustomData: map[string]components.CustomDataValue{\n \"someCustomField\": components.CustomDataValue{},\n },\n },\n },\n PageSize: apiclientgo.Int64(100),\n MaxSnippetSize: apiclientgo.Int64(400),\n RequestOptions: &components.RecommendationsRequestOptions{\n FacetFilterSets: []components.FacetFilterSet{\n components.FacetFilterSet{\n Filters: []components.FacetFilter{\n components.FacetFilter{\n FieldName: apiclientgo.String(\"type\"),\n Values: []components.FacetFilterValue{\n components.FacetFilterValue{\n Value: apiclientgo.String(\"Spreadsheet\"),\n RelationType: components.RelationTypeEquals.ToPointer(),\n },\n components.FacetFilterValue{\n Value: apiclientgo.String(\"Presentation\"),\n RelationType: components.RelationTypeEquals.ToPointer(),\n },\n },\n },\n },\n },\n },\n Context: &components.Document{\n Metadata: &components.DocumentMetadata{\n Datasource: apiclientgo.String(\"datasource\"),\n ObjectType: apiclientgo.String(\"Feature Request\"),\n Container: apiclientgo.String(\"container\"),\n ParentID: apiclientgo.String(\"JIRA_EN-1337\"),\n MimeType: apiclientgo.String(\"mimeType\"),\n DocumentID: apiclientgo.String(\"documentId\"),\n CreateTime: types.MustNewTimeFromString(\"2000-01-23T04:56:07.000Z\"),\n UpdateTime: types.MustNewTimeFromString(\"2000-01-23T04:56:07.000Z\"),\n Author: &components.Person{\n Name: \"name\",\n ObfuscatedID: \"\",\n },\n Components: []string{\n \"Backend\",\n \"Networking\",\n },\n Status: apiclientgo.String(\"[\\\"Done\\\"]\"),\n CustomData: map[string]components.CustomDataValue{\n \"someCustomField\": components.CustomDataValue{},\n },\n },\n },\n },\n })\n if err != nil {\n log.Fatal(err)\n }\n if res.ResultsResponse != nil {\n // handle response\n }\n}" - lang: java label: Java (API Client) source: |- @@ -24856,6 +24996,7 @@ paths: Glean sdk = Glean.builder() .apiToken("") + .instance("") .build(); RecommendationsRequest req = RecommendationsRequest.builder() @@ -24994,6 +25135,7 @@ paths: with Glean( api_token=os.getenv("GLEAN_API_TOKEN", ""), + instance=os.getenv("GLEAN_INSTANCE", ""), ) as g_client: res = g_client.client.search.query(query="vacation policy", tracking_token="trackingToken", source_document=models.Document( @@ -25067,6 +25209,7 @@ paths: const glean = new Glean({ apiToken: process.env["GLEAN_API_TOKEN"] ?? "", + instance: process.env["GLEAN_INSTANCE"] ?? "", }); async function run() { @@ -25110,7 +25253,7 @@ paths: run(); - lang: go label: Go (API Client) - source: "package main\n\nimport(\n\t\"context\"\n\t\"os\"\n\tapiclientgo \"github.com/gleanwork/api-client-go\"\n\t\"github.com/gleanwork/api-client-go/types\"\n\t\"github.com/gleanwork/api-client-go/models/components\"\n\t\"log\"\n)\n\nfunc main() {\n ctx := context.Background()\n\n s := apiclientgo.New(\n apiclientgo.WithSecurity(os.Getenv(\"GLEAN_API_TOKEN\")),\n )\n\n res, err := s.Client.Search.Query(ctx, components.SearchRequest{\n TrackingToken: apiclientgo.String(\"trackingToken\"),\n PageSize: apiclientgo.Int64(10),\n Query: \"vacation policy\",\n RequestOptions: &components.SearchRequestOptions{\n FacetFilters: []components.FacetFilter{\n components.FacetFilter{\n FieldName: apiclientgo.String(\"type\"),\n Values: []components.FacetFilterValue{\n components.FacetFilterValue{\n Value: apiclientgo.String(\"article\"),\n RelationType: components.RelationTypeEquals.ToPointer(),\n },\n components.FacetFilterValue{\n Value: apiclientgo.String(\"document\"),\n RelationType: components.RelationTypeEquals.ToPointer(),\n },\n },\n },\n components.FacetFilter{\n FieldName: apiclientgo.String(\"department\"),\n Values: []components.FacetFilterValue{\n components.FacetFilterValue{\n Value: apiclientgo.String(\"engineering\"),\n RelationType: components.RelationTypeEquals.ToPointer(),\n },\n },\n },\n },\n FacetBucketSize: 939520,\n },\n })\n if err != nil {\n log.Fatal(err)\n }\n if res.SearchResponse != nil {\n // handle response\n }\n}" + source: "package main\n\nimport(\n\t\"context\"\n\t\"os\"\n\tapiclientgo \"github.com/gleanwork/api-client-go\"\n\t\"github.com/gleanwork/api-client-go/types\"\n\t\"github.com/gleanwork/api-client-go/models/components\"\n\t\"log\"\n)\n\nfunc main() {\n ctx := context.Background()\n\n s := apiclientgo.New(\n apiclientgo.WithSecurity(os.Getenv(\"GLEAN_API_TOKEN\")),\n apiclientgo.WithInstance(os.Getenv(\"GLEAN_INSTANCE\")),\n )\n\n res, err := s.Client.Search.Query(ctx, components.SearchRequest{\n TrackingToken: apiclientgo.String(\"trackingToken\"),\n PageSize: apiclientgo.Int64(10),\n Query: \"vacation policy\",\n RequestOptions: &components.SearchRequestOptions{\n FacetFilters: []components.FacetFilter{\n components.FacetFilter{\n FieldName: apiclientgo.String(\"type\"),\n Values: []components.FacetFilterValue{\n components.FacetFilterValue{\n Value: apiclientgo.String(\"article\"),\n RelationType: components.RelationTypeEquals.ToPointer(),\n },\n components.FacetFilterValue{\n Value: apiclientgo.String(\"document\"),\n RelationType: components.RelationTypeEquals.ToPointer(),\n },\n },\n },\n components.FacetFilter{\n FieldName: apiclientgo.String(\"department\"),\n Values: []components.FacetFilterValue{\n components.FacetFilterValue{\n Value: apiclientgo.String(\"engineering\"),\n RelationType: components.RelationTypeEquals.ToPointer(),\n },\n },\n },\n },\n FacetBucketSize: 939520,\n },\n })\n if err != nil {\n log.Fatal(err)\n }\n if res.SearchResponse != nil {\n // handle response\n }\n}" - lang: java label: Java (API Client) source: |- @@ -25129,6 +25272,7 @@ paths: Glean sdk = Glean.builder() .apiToken("") + .instance("") .build(); SearchRequest req = SearchRequest.builder() @@ -25213,6 +25357,7 @@ paths: with Glean( api_token=os.getenv("GLEAN_API_TOKEN", ""), + instance=os.getenv("GLEAN_INSTANCE", ""), ) as g_client: res = g_client.client.entities.list(request={ @@ -25243,6 +25388,7 @@ paths: const glean = new Glean({ apiToken: process.env["GLEAN_API_TOKEN"] ?? "", + instance: process.env["GLEAN_INSTANCE"] ?? "", }); async function run() { @@ -25272,7 +25418,7 @@ paths: run(); - lang: go label: Go (API Client) - source: "package main\n\nimport(\n\t\"context\"\n\t\"os\"\n\tapiclientgo \"github.com/gleanwork/api-client-go\"\n\t\"github.com/gleanwork/api-client-go/models/components\"\n\t\"log\"\n)\n\nfunc main() {\n ctx := context.Background()\n\n s := apiclientgo.New(\n apiclientgo.WithSecurity(os.Getenv(\"GLEAN_API_TOKEN\")),\n )\n\n res, err := s.Client.Entities.List(ctx, components.ListEntitiesRequest{\n Filter: []components.FacetFilter{\n components.FacetFilter{\n FieldName: apiclientgo.String(\"type\"),\n Values: []components.FacetFilterValue{\n components.FacetFilterValue{\n Value: apiclientgo.String(\"Spreadsheet\"),\n RelationType: components.RelationTypeEquals.ToPointer(),\n },\n components.FacetFilterValue{\n Value: apiclientgo.String(\"Presentation\"),\n RelationType: components.RelationTypeEquals.ToPointer(),\n },\n },\n },\n },\n PageSize: apiclientgo.Int64(100),\n })\n if err != nil {\n log.Fatal(err)\n }\n if res.ListEntitiesResponse != nil {\n // handle response\n }\n}" + source: "package main\n\nimport(\n\t\"context\"\n\t\"os\"\n\tapiclientgo \"github.com/gleanwork/api-client-go\"\n\t\"github.com/gleanwork/api-client-go/models/components\"\n\t\"log\"\n)\n\nfunc main() {\n ctx := context.Background()\n\n s := apiclientgo.New(\n apiclientgo.WithSecurity(os.Getenv(\"GLEAN_API_TOKEN\")),\n apiclientgo.WithInstance(os.Getenv(\"GLEAN_INSTANCE\")),\n )\n\n res, err := s.Client.Entities.List(ctx, components.ListEntitiesRequest{\n Filter: []components.FacetFilter{\n components.FacetFilter{\n FieldName: apiclientgo.String(\"type\"),\n Values: []components.FacetFilterValue{\n components.FacetFilterValue{\n Value: apiclientgo.String(\"Spreadsheet\"),\n RelationType: components.RelationTypeEquals.ToPointer(),\n },\n components.FacetFilterValue{\n Value: apiclientgo.String(\"Presentation\"),\n RelationType: components.RelationTypeEquals.ToPointer(),\n },\n },\n },\n },\n PageSize: apiclientgo.Int64(100),\n })\n if err != nil {\n log.Fatal(err)\n }\n if res.ListEntitiesResponse != nil {\n // handle response\n }\n}" - lang: java label: Java (API Client) source: |- @@ -25290,6 +25436,7 @@ paths: Glean sdk = Glean.builder() .apiToken("") + .instance("") .build(); ListEntitiesRequest req = ListEntitiesRequest.builder() @@ -25361,6 +25508,7 @@ paths: with Glean( api_token=os.getenv("GLEAN_API_TOKEN", ""), + instance=os.getenv("GLEAN_INSTANCE", ""), ) as g_client: res = g_client.client.entities.read_people(request={ @@ -25379,6 +25527,7 @@ paths: const glean = new Glean({ apiToken: process.env["GLEAN_API_TOKEN"] ?? "", + instance: process.env["GLEAN_INSTANCE"] ?? "", }); async function run() { @@ -25396,7 +25545,7 @@ paths: run(); - lang: go label: Go (API Client) - source: "package main\n\nimport(\n\t\"context\"\n\t\"os\"\n\tapiclientgo \"github.com/gleanwork/api-client-go\"\n\t\"github.com/gleanwork/api-client-go/models/components\"\n\t\"log\"\n)\n\nfunc main() {\n ctx := context.Background()\n\n s := apiclientgo.New(\n apiclientgo.WithSecurity(os.Getenv(\"GLEAN_API_TOKEN\")),\n )\n\n res, err := s.Client.Entities.ReadPeople(ctx, components.PeopleRequest{\n ObfuscatedIds: []string{\n \"abc123\",\n \"abc456\",\n },\n })\n if err != nil {\n log.Fatal(err)\n }\n if res.PeopleResponse != nil {\n // handle response\n }\n}" + source: "package main\n\nimport(\n\t\"context\"\n\t\"os\"\n\tapiclientgo \"github.com/gleanwork/api-client-go\"\n\t\"github.com/gleanwork/api-client-go/models/components\"\n\t\"log\"\n)\n\nfunc main() {\n ctx := context.Background()\n\n s := apiclientgo.New(\n apiclientgo.WithSecurity(os.Getenv(\"GLEAN_API_TOKEN\")),\n apiclientgo.WithInstance(os.Getenv(\"GLEAN_INSTANCE\")),\n )\n\n res, err := s.Client.Entities.ReadPeople(ctx, components.PeopleRequest{\n ObfuscatedIds: []string{\n \"abc123\",\n \"abc456\",\n },\n })\n if err != nil {\n log.Fatal(err)\n }\n if res.PeopleResponse != nil {\n // handle response\n }\n}" - lang: java label: Java (API Client) source: |- @@ -25414,6 +25563,7 @@ paths: Glean sdk = Glean.builder() .apiToken("") + .instance("") .build(); PeopleRequest req = PeopleRequest.builder() @@ -25474,6 +25624,7 @@ paths: with Glean( api_token=os.getenv("GLEAN_API_TOKEN", ""), + instance=os.getenv("GLEAN_INSTANCE", ""), ) as g_client: res = g_client.client.shortcuts.create(data={ @@ -25534,6 +25685,7 @@ paths: const glean = new Glean({ apiToken: process.env["GLEAN_API_TOKEN"] ?? "", + instance: process.env["GLEAN_INSTANCE"] ?? "", }); async function run() { @@ -25595,7 +25747,7 @@ paths: run(); - lang: go label: Go (API Client) - source: "package main\n\nimport(\n\t\"context\"\n\t\"os\"\n\tapiclientgo \"github.com/gleanwork/api-client-go\"\n\t\"github.com/gleanwork/api-client-go/models/components\"\n\t\"log\"\n)\n\nfunc main() {\n ctx := context.Background()\n\n s := apiclientgo.New(\n apiclientgo.WithSecurity(os.Getenv(\"GLEAN_API_TOKEN\")),\n )\n\n res, err := s.Client.Shortcuts.Create(ctx, components.CreateShortcutRequest{\n Data: components.ShortcutMutableProperties{\n AddedRoles: []components.UserRoleSpecification{\n components.UserRoleSpecification{\n Person: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n Role: components.UserRoleViewer,\n },\n components.UserRoleSpecification{\n Person: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n Role: components.UserRoleViewer,\n },\n components.UserRoleSpecification{\n Person: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n Role: components.UserRoleViewer,\n },\n },\n RemovedRoles: []components.UserRoleSpecification{\n components.UserRoleSpecification{\n Person: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n Role: components.UserRoleAnswerModerator,\n },\n components.UserRoleSpecification{\n Person: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n Role: components.UserRoleAnswerModerator,\n },\n components.UserRoleSpecification{\n Person: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n Role: components.UserRoleAnswerModerator,\n },\n },\n },\n })\n if err != nil {\n log.Fatal(err)\n }\n if res.CreateShortcutResponse != nil {\n // handle response\n }\n}" + source: "package main\n\nimport(\n\t\"context\"\n\t\"os\"\n\tapiclientgo \"github.com/gleanwork/api-client-go\"\n\t\"github.com/gleanwork/api-client-go/models/components\"\n\t\"log\"\n)\n\nfunc main() {\n ctx := context.Background()\n\n s := apiclientgo.New(\n apiclientgo.WithSecurity(os.Getenv(\"GLEAN_API_TOKEN\")),\n apiclientgo.WithInstance(os.Getenv(\"GLEAN_INSTANCE\")),\n )\n\n res, err := s.Client.Shortcuts.Create(ctx, components.CreateShortcutRequest{\n Data: components.ShortcutMutableProperties{\n AddedRoles: []components.UserRoleSpecification{\n components.UserRoleSpecification{\n Person: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n Role: components.UserRoleViewer,\n },\n components.UserRoleSpecification{\n Person: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n Role: components.UserRoleViewer,\n },\n components.UserRoleSpecification{\n Person: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n Role: components.UserRoleViewer,\n },\n },\n RemovedRoles: []components.UserRoleSpecification{\n components.UserRoleSpecification{\n Person: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n Role: components.UserRoleAnswerModerator,\n },\n components.UserRoleSpecification{\n Person: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n Role: components.UserRoleAnswerModerator,\n },\n components.UserRoleSpecification{\n Person: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n Role: components.UserRoleAnswerModerator,\n },\n },\n },\n })\n if err != nil {\n log.Fatal(err)\n }\n if res.CreateShortcutResponse != nil {\n // handle response\n }\n}" - lang: java label: Java (API Client) source: |- @@ -25613,6 +25765,7 @@ paths: Glean sdk = Glean.builder() .apiToken("") + .instance("") .build(); CreateShortcutRequest req = CreateShortcutRequest.builder() @@ -25712,6 +25865,7 @@ paths: with Glean( api_token=os.getenv("GLEAN_API_TOKEN", ""), + instance=os.getenv("GLEAN_INSTANCE", ""), ) as g_client: g_client.client.shortcuts.delete(id=975862) @@ -25724,6 +25878,7 @@ paths: const glean = new Glean({ apiToken: process.env["GLEAN_API_TOKEN"] ?? "", + instance: process.env["GLEAN_INSTANCE"] ?? "", }); async function run() { @@ -25737,7 +25892,7 @@ paths: run(); - lang: go label: Go (API Client) - source: "package main\n\nimport(\n\t\"context\"\n\t\"os\"\n\tapiclientgo \"github.com/gleanwork/api-client-go\"\n\t\"github.com/gleanwork/api-client-go/models/components\"\n\t\"log\"\n)\n\nfunc main() {\n ctx := context.Background()\n\n s := apiclientgo.New(\n apiclientgo.WithSecurity(os.Getenv(\"GLEAN_API_TOKEN\")),\n )\n\n res, err := s.Client.Shortcuts.Delete(ctx, components.DeleteShortcutRequest{\n ID: 975862,\n })\n if err != nil {\n log.Fatal(err)\n }\n if res != nil {\n // handle response\n }\n}" + source: "package main\n\nimport(\n\t\"context\"\n\t\"os\"\n\tapiclientgo \"github.com/gleanwork/api-client-go\"\n\t\"github.com/gleanwork/api-client-go/models/components\"\n\t\"log\"\n)\n\nfunc main() {\n ctx := context.Background()\n\n s := apiclientgo.New(\n apiclientgo.WithSecurity(os.Getenv(\"GLEAN_API_TOKEN\")),\n apiclientgo.WithInstance(os.Getenv(\"GLEAN_INSTANCE\")),\n )\n\n res, err := s.Client.Shortcuts.Delete(ctx, components.DeleteShortcutRequest{\n ID: 975862,\n })\n if err != nil {\n log.Fatal(err)\n }\n if res != nil {\n // handle response\n }\n}" - lang: java label: Java (API Client) source: |- @@ -25754,6 +25909,7 @@ paths: Glean sdk = Glean.builder() .apiToken("") + .instance("") .build(); DeleteShortcutRequest req = DeleteShortcutRequest.builder() @@ -25810,6 +25966,7 @@ paths: with Glean( api_token=os.getenv("GLEAN_API_TOKEN", ""), + instance=os.getenv("GLEAN_INSTANCE", ""), ) as g_client: res = g_client.client.shortcuts.retrieve(request={ @@ -25825,6 +25982,7 @@ paths: const glean = new Glean({ apiToken: process.env["GLEAN_API_TOKEN"] ?? "", + instance: process.env["GLEAN_INSTANCE"] ?? "", }); async function run() { @@ -25839,7 +25997,7 @@ paths: run(); - lang: go label: Go (API Client) - source: "package main\n\nimport(\n\t\"context\"\n\t\"os\"\n\tapiclientgo \"github.com/gleanwork/api-client-go\"\n\t\"github.com/gleanwork/api-client-go/models/components\"\n\t\"log\"\n)\n\nfunc main() {\n ctx := context.Background()\n\n s := apiclientgo.New(\n apiclientgo.WithSecurity(os.Getenv(\"GLEAN_API_TOKEN\")),\n )\n\n res, err := s.Client.Shortcuts.Retrieve(ctx, components.CreateGetShortcutRequestUnionGetShortcutRequest(\n components.GetShortcutRequest{\n Alias: \"\",\n },\n ))\n if err != nil {\n log.Fatal(err)\n }\n if res.GetShortcutResponse != nil {\n // handle response\n }\n}" + source: "package main\n\nimport(\n\t\"context\"\n\t\"os\"\n\tapiclientgo \"github.com/gleanwork/api-client-go\"\n\t\"github.com/gleanwork/api-client-go/models/components\"\n\t\"log\"\n)\n\nfunc main() {\n ctx := context.Background()\n\n s := apiclientgo.New(\n apiclientgo.WithSecurity(os.Getenv(\"GLEAN_API_TOKEN\")),\n apiclientgo.WithInstance(os.Getenv(\"GLEAN_INSTANCE\")),\n )\n\n res, err := s.Client.Shortcuts.Retrieve(ctx, components.CreateGetShortcutRequestUnionGetShortcutRequest(\n components.GetShortcutRequest{\n Alias: \"\",\n },\n ))\n if err != nil {\n log.Fatal(err)\n }\n if res.GetShortcutResponse != nil {\n // handle response\n }\n}" - lang: java label: Java (API Client) source: |- @@ -25857,6 +26015,7 @@ paths: Glean sdk = Glean.builder() .apiToken("") + .instance("") .build(); GetShortcutRequestUnion req = GetShortcutRequestUnion.of(GetShortcutRequest.builder() @@ -25915,6 +26074,7 @@ paths: with Glean( api_token=os.getenv("GLEAN_API_TOKEN", ""), + instance=os.getenv("GLEAN_INSTANCE", ""), ) as g_client: res = g_client.client.shortcuts.list(page_size=10, filters=[ @@ -25942,6 +26102,7 @@ paths: const glean = new Glean({ apiToken: process.env["GLEAN_API_TOKEN"] ?? "", + instance: process.env["GLEAN_INSTANCE"] ?? "", }); async function run() { @@ -25971,7 +26132,7 @@ paths: run(); - lang: go label: Go (API Client) - source: "package main\n\nimport(\n\t\"context\"\n\t\"os\"\n\tapiclientgo \"github.com/gleanwork/api-client-go\"\n\t\"github.com/gleanwork/api-client-go/models/components\"\n\t\"log\"\n)\n\nfunc main() {\n ctx := context.Background()\n\n s := apiclientgo.New(\n apiclientgo.WithSecurity(os.Getenv(\"GLEAN_API_TOKEN\")),\n )\n\n res, err := s.Client.Shortcuts.List(ctx, components.ListShortcutsPaginatedRequest{\n PageSize: 10,\n Filters: []components.FacetFilter{\n components.FacetFilter{\n FieldName: apiclientgo.String(\"type\"),\n Values: []components.FacetFilterValue{\n components.FacetFilterValue{\n Value: apiclientgo.String(\"Spreadsheet\"),\n RelationType: components.RelationTypeEquals.ToPointer(),\n },\n components.FacetFilterValue{\n Value: apiclientgo.String(\"Presentation\"),\n RelationType: components.RelationTypeEquals.ToPointer(),\n },\n },\n },\n },\n })\n if err != nil {\n log.Fatal(err)\n }\n if res.ListShortcutsPaginatedResponse != nil {\n // handle response\n }\n}" + source: "package main\n\nimport(\n\t\"context\"\n\t\"os\"\n\tapiclientgo \"github.com/gleanwork/api-client-go\"\n\t\"github.com/gleanwork/api-client-go/models/components\"\n\t\"log\"\n)\n\nfunc main() {\n ctx := context.Background()\n\n s := apiclientgo.New(\n apiclientgo.WithSecurity(os.Getenv(\"GLEAN_API_TOKEN\")),\n apiclientgo.WithInstance(os.Getenv(\"GLEAN_INSTANCE\")),\n )\n\n res, err := s.Client.Shortcuts.List(ctx, components.ListShortcutsPaginatedRequest{\n PageSize: 10,\n Filters: []components.FacetFilter{\n components.FacetFilter{\n FieldName: apiclientgo.String(\"type\"),\n Values: []components.FacetFilterValue{\n components.FacetFilterValue{\n Value: apiclientgo.String(\"Spreadsheet\"),\n RelationType: components.RelationTypeEquals.ToPointer(),\n },\n components.FacetFilterValue{\n Value: apiclientgo.String(\"Presentation\"),\n RelationType: components.RelationTypeEquals.ToPointer(),\n },\n },\n },\n },\n })\n if err != nil {\n log.Fatal(err)\n }\n if res.ListShortcutsPaginatedResponse != nil {\n // handle response\n }\n}" - lang: java label: Java (API Client) source: |- @@ -25989,6 +26150,7 @@ paths: Glean sdk = Glean.builder() .apiToken("") + .instance("") .build(); ListShortcutsPaginatedRequest req = ListShortcutsPaginatedRequest.builder() @@ -26060,6 +26222,7 @@ paths: with Glean( api_token=os.getenv("GLEAN_API_TOKEN", ""), + instance=os.getenv("GLEAN_INSTANCE", ""), ) as g_client: res = g_client.client.shortcuts.update(id=268238, added_roles=[ @@ -26103,6 +26266,7 @@ paths: const glean = new Glean({ apiToken: process.env["GLEAN_API_TOKEN"] ?? "", + instance: process.env["GLEAN_INSTANCE"] ?? "", }); async function run() { @@ -26149,7 +26313,7 @@ paths: run(); - lang: go label: Go (API Client) - source: "package main\n\nimport(\n\t\"context\"\n\t\"os\"\n\tapiclientgo \"github.com/gleanwork/api-client-go\"\n\t\"github.com/gleanwork/api-client-go/models/components\"\n\t\"log\"\n)\n\nfunc main() {\n ctx := context.Background()\n\n s := apiclientgo.New(\n apiclientgo.WithSecurity(os.Getenv(\"GLEAN_API_TOKEN\")),\n )\n\n res, err := s.Client.Shortcuts.Update(ctx, components.UpdateShortcutRequest{\n ID: 268238,\n AddedRoles: []components.UserRoleSpecification{\n components.UserRoleSpecification{\n Person: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n Role: components.UserRoleAnswerModerator,\n },\n components.UserRoleSpecification{\n Person: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n Role: components.UserRoleAnswerModerator,\n },\n },\n RemovedRoles: []components.UserRoleSpecification{\n components.UserRoleSpecification{\n Person: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n Role: components.UserRoleVerifier,\n },\n components.UserRoleSpecification{\n Person: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n Role: components.UserRoleVerifier,\n },\n },\n })\n if err != nil {\n log.Fatal(err)\n }\n if res.UpdateShortcutResponse != nil {\n // handle response\n }\n}" + source: "package main\n\nimport(\n\t\"context\"\n\t\"os\"\n\tapiclientgo \"github.com/gleanwork/api-client-go\"\n\t\"github.com/gleanwork/api-client-go/models/components\"\n\t\"log\"\n)\n\nfunc main() {\n ctx := context.Background()\n\n s := apiclientgo.New(\n apiclientgo.WithSecurity(os.Getenv(\"GLEAN_API_TOKEN\")),\n apiclientgo.WithInstance(os.Getenv(\"GLEAN_INSTANCE\")),\n )\n\n res, err := s.Client.Shortcuts.Update(ctx, components.UpdateShortcutRequest{\n ID: 268238,\n AddedRoles: []components.UserRoleSpecification{\n components.UserRoleSpecification{\n Person: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n Role: components.UserRoleAnswerModerator,\n },\n components.UserRoleSpecification{\n Person: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n Role: components.UserRoleAnswerModerator,\n },\n },\n RemovedRoles: []components.UserRoleSpecification{\n components.UserRoleSpecification{\n Person: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n Role: components.UserRoleVerifier,\n },\n components.UserRoleSpecification{\n Person: &components.Person{\n Name: \"George Clooney\",\n ObfuscatedID: \"abc123\",\n },\n Role: components.UserRoleVerifier,\n },\n },\n })\n if err != nil {\n log.Fatal(err)\n }\n if res.UpdateShortcutResponse != nil {\n // handle response\n }\n}" - lang: java label: Java (API Client) source: |- @@ -26167,6 +26331,7 @@ paths: Glean sdk = Glean.builder() .apiToken("") + .instance("") .build(); UpdateShortcutRequest req = UpdateShortcutRequest.builder() @@ -26255,6 +26420,7 @@ paths: with Glean( api_token=os.getenv("GLEAN_API_TOKEN", ""), + instance=os.getenv("GLEAN_INSTANCE", ""), ) as g_client: res = g_client.client.documents.summarize(document_specs=[ @@ -26272,6 +26438,7 @@ paths: const glean = new Glean({ apiToken: process.env["GLEAN_API_TOKEN"] ?? "", + instance: process.env["GLEAN_INSTANCE"] ?? "", }); async function run() { @@ -26290,7 +26457,7 @@ paths: run(); - lang: go label: Go (API Client) - source: "package main\n\nimport(\n\t\"context\"\n\t\"os\"\n\tapiclientgo \"github.com/gleanwork/api-client-go\"\n\t\"github.com/gleanwork/api-client-go/models/components\"\n\t\"log\"\n)\n\nfunc main() {\n ctx := context.Background()\n\n s := apiclientgo.New(\n apiclientgo.WithSecurity(os.Getenv(\"GLEAN_API_TOKEN\")),\n )\n\n res, err := s.Client.Documents.Summarize(ctx, components.SummarizeRequest{\n DocumentSpecs: []components.DocumentSpecUnion{\n components.CreateDocumentSpecUnionDocumentSpec1(\n components.DocumentSpec1{},\n ),\n components.CreateDocumentSpecUnionDocumentSpec1(\n components.DocumentSpec1{},\n ),\n components.CreateDocumentSpecUnionDocumentSpec1(\n components.DocumentSpec1{},\n ),\n },\n })\n if err != nil {\n log.Fatal(err)\n }\n if res.SummarizeResponse != nil {\n // handle response\n }\n}" + source: "package main\n\nimport(\n\t\"context\"\n\t\"os\"\n\tapiclientgo \"github.com/gleanwork/api-client-go\"\n\t\"github.com/gleanwork/api-client-go/models/components\"\n\t\"log\"\n)\n\nfunc main() {\n ctx := context.Background()\n\n s := apiclientgo.New(\n apiclientgo.WithSecurity(os.Getenv(\"GLEAN_API_TOKEN\")),\n apiclientgo.WithInstance(os.Getenv(\"GLEAN_INSTANCE\")),\n )\n\n res, err := s.Client.Documents.Summarize(ctx, components.SummarizeRequest{\n DocumentSpecs: []components.DocumentSpecUnion{\n components.CreateDocumentSpecUnionDocumentSpec1(\n components.DocumentSpec1{},\n ),\n components.CreateDocumentSpecUnionDocumentSpec1(\n components.DocumentSpec1{},\n ),\n components.CreateDocumentSpecUnionDocumentSpec1(\n components.DocumentSpec1{},\n ),\n },\n })\n if err != nil {\n log.Fatal(err)\n }\n if res.SummarizeResponse != nil {\n // handle response\n }\n}" - lang: java label: Java (API Client) source: |- @@ -26308,6 +26475,7 @@ paths: Glean sdk = Glean.builder() .apiToken("") + .instance("") .build(); SummarizeRequest req = SummarizeRequest.builder() @@ -26374,6 +26542,7 @@ paths: with Glean( api_token=os.getenv("GLEAN_API_TOKEN", ""), + instance=os.getenv("GLEAN_INSTANCE", ""), ) as g_client: res = g_client.client.verification.add_reminder(document_id="") @@ -26387,6 +26556,7 @@ paths: const glean = new Glean({ apiToken: process.env["GLEAN_API_TOKEN"] ?? "", + instance: process.env["GLEAN_INSTANCE"] ?? "", }); async function run() { @@ -26401,7 +26571,7 @@ paths: run(); - lang: go label: Go (API Client) - source: "package main\n\nimport(\n\t\"context\"\n\t\"os\"\n\tapiclientgo \"github.com/gleanwork/api-client-go\"\n\t\"github.com/gleanwork/api-client-go/models/components\"\n\t\"log\"\n)\n\nfunc main() {\n ctx := context.Background()\n\n s := apiclientgo.New(\n apiclientgo.WithSecurity(os.Getenv(\"GLEAN_API_TOKEN\")),\n )\n\n res, err := s.Client.Verification.AddReminder(ctx, components.ReminderRequest{\n DocumentID: \"\",\n })\n if err != nil {\n log.Fatal(err)\n }\n if res.Verification != nil {\n // handle response\n }\n}" + source: "package main\n\nimport(\n\t\"context\"\n\t\"os\"\n\tapiclientgo \"github.com/gleanwork/api-client-go\"\n\t\"github.com/gleanwork/api-client-go/models/components\"\n\t\"log\"\n)\n\nfunc main() {\n ctx := context.Background()\n\n s := apiclientgo.New(\n apiclientgo.WithSecurity(os.Getenv(\"GLEAN_API_TOKEN\")),\n apiclientgo.WithInstance(os.Getenv(\"GLEAN_INSTANCE\")),\n )\n\n res, err := s.Client.Verification.AddReminder(ctx, components.ReminderRequest{\n DocumentID: \"\",\n })\n if err != nil {\n log.Fatal(err)\n }\n if res.Verification != nil {\n // handle response\n }\n}" - lang: java label: Java (API Client) source: |- @@ -26418,6 +26588,7 @@ paths: Glean sdk = Glean.builder() .apiToken("") + .instance("") .build(); ReminderRequest req = ReminderRequest.builder() @@ -26474,6 +26645,7 @@ paths: with Glean( api_token=os.getenv("GLEAN_API_TOKEN", ""), + instance=os.getenv("GLEAN_INSTANCE", ""), ) as g_client: res = g_client.client.verification.list() @@ -26487,6 +26659,7 @@ paths: const glean = new Glean({ apiToken: process.env["GLEAN_API_TOKEN"] ?? "", + instance: process.env["GLEAN_INSTANCE"] ?? "", }); async function run() { @@ -26499,7 +26672,7 @@ paths: run(); - lang: go label: Go (API Client) - source: "package main\n\nimport(\n\t\"context\"\n\t\"os\"\n\tapiclientgo \"github.com/gleanwork/api-client-go\"\n\t\"log\"\n)\n\nfunc main() {\n ctx := context.Background()\n\n s := apiclientgo.New(\n apiclientgo.WithSecurity(os.Getenv(\"GLEAN_API_TOKEN\")),\n )\n\n res, err := s.Client.Verification.List(ctx, nil)\n if err != nil {\n log.Fatal(err)\n }\n if res.VerificationFeed != nil {\n // handle response\n }\n}" + source: "package main\n\nimport(\n\t\"context\"\n\t\"os\"\n\tapiclientgo \"github.com/gleanwork/api-client-go\"\n\t\"log\"\n)\n\nfunc main() {\n ctx := context.Background()\n\n s := apiclientgo.New(\n apiclientgo.WithSecurity(os.Getenv(\"GLEAN_API_TOKEN\")),\n apiclientgo.WithInstance(os.Getenv(\"GLEAN_INSTANCE\")),\n )\n\n res, err := s.Client.Verification.List(ctx, nil)\n if err != nil {\n log.Fatal(err)\n }\n if res.VerificationFeed != nil {\n // handle response\n }\n}" - lang: java label: Java (API Client) source: |- @@ -26515,6 +26688,7 @@ paths: Glean sdk = Glean.builder() .apiToken("") + .instance("") .build(); ListverificationsResponse res = sdk.client().verification().list() @@ -26570,6 +26744,7 @@ paths: with Glean( api_token=os.getenv("GLEAN_API_TOKEN", ""), + instance=os.getenv("GLEAN_INSTANCE", ""), ) as g_client: res = g_client.client.verification.verify(document_id="") @@ -26583,6 +26758,7 @@ paths: const glean = new Glean({ apiToken: process.env["GLEAN_API_TOKEN"] ?? "", + instance: process.env["GLEAN_INSTANCE"] ?? "", }); async function run() { @@ -26597,7 +26773,7 @@ paths: run(); - lang: go label: Go (API Client) - source: "package main\n\nimport(\n\t\"context\"\n\t\"os\"\n\tapiclientgo \"github.com/gleanwork/api-client-go\"\n\t\"github.com/gleanwork/api-client-go/models/components\"\n\t\"log\"\n)\n\nfunc main() {\n ctx := context.Background()\n\n s := apiclientgo.New(\n apiclientgo.WithSecurity(os.Getenv(\"GLEAN_API_TOKEN\")),\n )\n\n res, err := s.Client.Verification.Verify(ctx, components.VerifyRequest{\n DocumentID: \"\",\n })\n if err != nil {\n log.Fatal(err)\n }\n if res.Verification != nil {\n // handle response\n }\n}" + source: "package main\n\nimport(\n\t\"context\"\n\t\"os\"\n\tapiclientgo \"github.com/gleanwork/api-client-go\"\n\t\"github.com/gleanwork/api-client-go/models/components\"\n\t\"log\"\n)\n\nfunc main() {\n ctx := context.Background()\n\n s := apiclientgo.New(\n apiclientgo.WithSecurity(os.Getenv(\"GLEAN_API_TOKEN\")),\n apiclientgo.WithInstance(os.Getenv(\"GLEAN_INSTANCE\")),\n )\n\n res, err := s.Client.Verification.Verify(ctx, components.VerifyRequest{\n DocumentID: \"\",\n })\n if err != nil {\n log.Fatal(err)\n }\n if res.Verification != nil {\n // handle response\n }\n}" - lang: java label: Java (API Client) source: |- @@ -26614,6 +26790,7 @@ paths: Glean sdk = Glean.builder() .apiToken("") + .instance("") .build(); VerifyRequest req = VerifyRequest.builder() @@ -26674,6 +26851,7 @@ paths: with Glean( api_token=os.getenv("GLEAN_API_TOKEN", ""), + instance=os.getenv("GLEAN_INSTANCE", ""), ) as g_client: res = g_client.client.tools.list() @@ -26687,6 +26865,7 @@ paths: const glean = new Glean({ apiToken: process.env["GLEAN_API_TOKEN"] ?? "", + instance: process.env["GLEAN_INSTANCE"] ?? "", }); async function run() { @@ -26699,7 +26878,7 @@ paths: run(); - lang: go label: Go (API Client) - source: "package main\n\nimport(\n\t\"context\"\n\t\"os\"\n\tapiclientgo \"github.com/gleanwork/api-client-go\"\n\t\"log\"\n)\n\nfunc main() {\n ctx := context.Background()\n\n s := apiclientgo.New(\n apiclientgo.WithSecurity(os.Getenv(\"GLEAN_API_TOKEN\")),\n )\n\n res, err := s.Client.Tools.List(ctx, nil)\n if err != nil {\n log.Fatal(err)\n }\n if res.ToolsListResponse != nil {\n // handle response\n }\n}" + source: "package main\n\nimport(\n\t\"context\"\n\t\"os\"\n\tapiclientgo \"github.com/gleanwork/api-client-go\"\n\t\"log\"\n)\n\nfunc main() {\n ctx := context.Background()\n\n s := apiclientgo.New(\n apiclientgo.WithSecurity(os.Getenv(\"GLEAN_API_TOKEN\")),\n apiclientgo.WithInstance(os.Getenv(\"GLEAN_INSTANCE\")),\n )\n\n res, err := s.Client.Tools.List(ctx, nil)\n if err != nil {\n log.Fatal(err)\n }\n if res.ToolsListResponse != nil {\n // handle response\n }\n}" - lang: java label: Java (API Client) source: |- @@ -26715,6 +26894,7 @@ paths: Glean sdk = Glean.builder() .apiToken("") + .instance("") .build(); GetRestApiV1ToolsListResponse res = sdk.client().tools().list() @@ -26765,6 +26945,7 @@ paths: with Glean( api_token=os.getenv("GLEAN_API_TOKEN", ""), + instance=os.getenv("GLEAN_INSTANCE", ""), ) as g_client: res = g_client.client.tools.run(name="", parameters={ @@ -26783,6 +26964,7 @@ paths: const glean = new Glean({ apiToken: process.env["GLEAN_API_TOKEN"] ?? "", + instance: process.env["GLEAN_INSTANCE"] ?? "", }); async function run() { @@ -26803,7 +26985,7 @@ paths: run(); - lang: go label: Go (API Client) - source: "package main\n\nimport(\n\t\"context\"\n\t\"os\"\n\tapiclientgo \"github.com/gleanwork/api-client-go\"\n\t\"github.com/gleanwork/api-client-go/models/components\"\n\t\"log\"\n)\n\nfunc main() {\n ctx := context.Background()\n\n s := apiclientgo.New(\n apiclientgo.WithSecurity(os.Getenv(\"GLEAN_API_TOKEN\")),\n )\n\n res, err := s.Client.Tools.Run(ctx, components.ToolsCallRequest{\n Name: \"\",\n Parameters: map[string]components.ToolsCallParameter{\n \"key\": components.ToolsCallParameter{\n Name: \"\",\n Value: \"\",\n },\n },\n })\n if err != nil {\n log.Fatal(err)\n }\n if res.ToolsCallResponse != nil {\n // handle response\n }\n}" + source: "package main\n\nimport(\n\t\"context\"\n\t\"os\"\n\tapiclientgo \"github.com/gleanwork/api-client-go\"\n\t\"github.com/gleanwork/api-client-go/models/components\"\n\t\"log\"\n)\n\nfunc main() {\n ctx := context.Background()\n\n s := apiclientgo.New(\n apiclientgo.WithSecurity(os.Getenv(\"GLEAN_API_TOKEN\")),\n apiclientgo.WithInstance(os.Getenv(\"GLEAN_INSTANCE\")),\n )\n\n res, err := s.Client.Tools.Run(ctx, components.ToolsCallRequest{\n Name: \"\",\n Parameters: map[string]components.ToolsCallParameter{\n \"key\": components.ToolsCallParameter{\n Name: \"\",\n Value: \"\",\n },\n },\n })\n if err != nil {\n log.Fatal(err)\n }\n if res.ToolsCallResponse != nil {\n // handle response\n }\n}" - lang: java label: Java (API Client) source: |- @@ -26822,6 +27004,7 @@ paths: Glean sdk = Glean.builder() .apiToken("") + .instance("") .build(); ToolsCallRequest req = ToolsCallRequest.builder() @@ -26887,6 +27070,7 @@ paths: with Glean( api_token=os.getenv("GLEAN_API_TOKEN", ""), + instance=os.getenv("GLEAN_INSTANCE", ""), ) as g_client: res = g_client.client.governance.data.policies.retrieve(id="") @@ -26900,6 +27084,7 @@ paths: const glean = new Glean({ apiToken: process.env["GLEAN_API_TOKEN"] ?? "", + instance: process.env["GLEAN_INSTANCE"] ?? "", }); async function run() { @@ -26912,7 +27097,7 @@ paths: run(); - lang: go label: Go (API Client) - source: "package main\n\nimport(\n\t\"context\"\n\t\"os\"\n\tapiclientgo \"github.com/gleanwork/api-client-go\"\n\t\"log\"\n)\n\nfunc main() {\n ctx := context.Background()\n\n s := apiclientgo.New(\n apiclientgo.WithSecurity(os.Getenv(\"GLEAN_API_TOKEN\")),\n )\n\n res, err := s.Client.Governance.Data.Policies.Retrieve(ctx, \"\", nil)\n if err != nil {\n log.Fatal(err)\n }\n if res.GetDlpReportResponse != nil {\n // handle response\n }\n}" + source: "package main\n\nimport(\n\t\"context\"\n\t\"os\"\n\tapiclientgo \"github.com/gleanwork/api-client-go\"\n\t\"log\"\n)\n\nfunc main() {\n ctx := context.Background()\n\n s := apiclientgo.New(\n apiclientgo.WithSecurity(os.Getenv(\"GLEAN_API_TOKEN\")),\n apiclientgo.WithInstance(os.Getenv(\"GLEAN_INSTANCE\")),\n )\n\n res, err := s.Client.Governance.Data.Policies.Retrieve(ctx, \"\", nil)\n if err != nil {\n log.Fatal(err)\n }\n if res.GetDlpReportResponse != nil {\n // handle response\n }\n}" - lang: java label: Java (API Client) source: |- @@ -26928,6 +27113,7 @@ paths: Glean sdk = Glean.builder() .apiToken("") + .instance("") .build(); GetpolicyResponse res = sdk.client().governance().data().policies().retrieve() @@ -26981,6 +27167,7 @@ paths: with Glean( api_token=os.getenv("GLEAN_API_TOKEN", ""), + instance=os.getenv("GLEAN_INSTANCE", ""), ) as g_client: res = g_client.client.governance.data.policies.update(id="") @@ -26994,6 +27181,7 @@ paths: const glean = new Glean({ apiToken: process.env["GLEAN_API_TOKEN"] ?? "", + instance: process.env["GLEAN_INSTANCE"] ?? "", }); async function run() { @@ -27006,7 +27194,7 @@ paths: run(); - lang: go label: Go (API Client) - source: "package main\n\nimport(\n\t\"context\"\n\t\"os\"\n\tapiclientgo \"github.com/gleanwork/api-client-go\"\n\t\"github.com/gleanwork/api-client-go/models/components\"\n\t\"log\"\n)\n\nfunc main() {\n ctx := context.Background()\n\n s := apiclientgo.New(\n apiclientgo.WithSecurity(os.Getenv(\"GLEAN_API_TOKEN\")),\n )\n\n res, err := s.Client.Governance.Data.Policies.Update(ctx, \"\", components.UpdateDlpReportRequest{})\n if err != nil {\n log.Fatal(err)\n }\n if res.UpdateDlpReportResponse != nil {\n // handle response\n }\n}" + source: "package main\n\nimport(\n\t\"context\"\n\t\"os\"\n\tapiclientgo \"github.com/gleanwork/api-client-go\"\n\t\"github.com/gleanwork/api-client-go/models/components\"\n\t\"log\"\n)\n\nfunc main() {\n ctx := context.Background()\n\n s := apiclientgo.New(\n apiclientgo.WithSecurity(os.Getenv(\"GLEAN_API_TOKEN\")),\n apiclientgo.WithInstance(os.Getenv(\"GLEAN_INSTANCE\")),\n )\n\n res, err := s.Client.Governance.Data.Policies.Update(ctx, \"\", components.UpdateDlpReportRequest{})\n if err != nil {\n log.Fatal(err)\n }\n if res.UpdateDlpReportResponse != nil {\n // handle response\n }\n}" - lang: java label: Java (API Client) source: |- @@ -27023,6 +27211,7 @@ paths: Glean sdk = Glean.builder() .apiToken("") + .instance("") .build(); UpdatepolicyResponse res = sdk.client().governance().data().policies().update() @@ -27080,6 +27269,7 @@ paths: with Glean( api_token=os.getenv("GLEAN_API_TOKEN", ""), + instance=os.getenv("GLEAN_INSTANCE", ""), ) as g_client: res = g_client.client.governance.data.policies.list() @@ -27093,6 +27283,7 @@ paths: const glean = new Glean({ apiToken: process.env["GLEAN_API_TOKEN"] ?? "", + instance: process.env["GLEAN_INSTANCE"] ?? "", }); async function run() { @@ -27105,7 +27296,7 @@ paths: run(); - lang: go label: Go (API Client) - source: "package main\n\nimport(\n\t\"context\"\n\t\"os\"\n\tapiclientgo \"github.com/gleanwork/api-client-go\"\n\t\"log\"\n)\n\nfunc main() {\n ctx := context.Background()\n\n s := apiclientgo.New(\n apiclientgo.WithSecurity(os.Getenv(\"GLEAN_API_TOKEN\")),\n )\n\n res, err := s.Client.Governance.Data.Policies.List(ctx, nil, nil)\n if err != nil {\n log.Fatal(err)\n }\n if res.ListDlpReportsResponse != nil {\n // handle response\n }\n}" + source: "package main\n\nimport(\n\t\"context\"\n\t\"os\"\n\tapiclientgo \"github.com/gleanwork/api-client-go\"\n\t\"log\"\n)\n\nfunc main() {\n ctx := context.Background()\n\n s := apiclientgo.New(\n apiclientgo.WithSecurity(os.Getenv(\"GLEAN_API_TOKEN\")),\n apiclientgo.WithInstance(os.Getenv(\"GLEAN_INSTANCE\")),\n )\n\n res, err := s.Client.Governance.Data.Policies.List(ctx, nil, nil)\n if err != nil {\n log.Fatal(err)\n }\n if res.ListDlpReportsResponse != nil {\n // handle response\n }\n}" - lang: java label: Java (API Client) source: |- @@ -27121,6 +27312,7 @@ paths: Glean sdk = Glean.builder() .apiToken("") + .instance("") .build(); ListpoliciesResponse res = sdk.client().governance().data().policies().list() @@ -27167,6 +27359,7 @@ paths: with Glean( api_token=os.getenv("GLEAN_API_TOKEN", ""), + instance=os.getenv("GLEAN_INSTANCE", ""), ) as g_client: res = g_client.client.governance.data.policies.create() @@ -27180,6 +27373,7 @@ paths: const glean = new Glean({ apiToken: process.env["GLEAN_API_TOKEN"] ?? "", + instance: process.env["GLEAN_INSTANCE"] ?? "", }); async function run() { @@ -27192,7 +27386,7 @@ paths: run(); - lang: go label: Go (API Client) - source: "package main\n\nimport(\n\t\"context\"\n\t\"os\"\n\tapiclientgo \"github.com/gleanwork/api-client-go\"\n\t\"github.com/gleanwork/api-client-go/models/components\"\n\t\"log\"\n)\n\nfunc main() {\n ctx := context.Background()\n\n s := apiclientgo.New(\n apiclientgo.WithSecurity(os.Getenv(\"GLEAN_API_TOKEN\")),\n )\n\n res, err := s.Client.Governance.Data.Policies.Create(ctx, components.CreateDlpReportRequest{})\n if err != nil {\n log.Fatal(err)\n }\n if res.CreateDlpReportResponse != nil {\n // handle response\n }\n}" + source: "package main\n\nimport(\n\t\"context\"\n\t\"os\"\n\tapiclientgo \"github.com/gleanwork/api-client-go\"\n\t\"github.com/gleanwork/api-client-go/models/components\"\n\t\"log\"\n)\n\nfunc main() {\n ctx := context.Background()\n\n s := apiclientgo.New(\n apiclientgo.WithSecurity(os.Getenv(\"GLEAN_API_TOKEN\")),\n apiclientgo.WithInstance(os.Getenv(\"GLEAN_INSTANCE\")),\n )\n\n res, err := s.Client.Governance.Data.Policies.Create(ctx, components.CreateDlpReportRequest{})\n if err != nil {\n log.Fatal(err)\n }\n if res.CreateDlpReportResponse != nil {\n // handle response\n }\n}" - lang: java label: Java (API Client) source: |- @@ -27209,6 +27403,7 @@ paths: Glean sdk = Glean.builder() .apiToken("") + .instance("") .build(); CreateDlpReportRequest req = CreateDlpReportRequest.builder() @@ -27262,6 +27457,7 @@ paths: with Glean( api_token=os.getenv("GLEAN_API_TOKEN", ""), + instance=os.getenv("GLEAN_INSTANCE", ""), ) as g_client: res = g_client.client.governance.data.policies.download(id="") @@ -27275,6 +27471,7 @@ paths: const glean = new Glean({ apiToken: process.env["GLEAN_API_TOKEN"] ?? "", + instance: process.env["GLEAN_INSTANCE"] ?? "", }); async function run() { @@ -27287,7 +27484,7 @@ paths: run(); - lang: go label: Go (API Client) - source: "package main\n\nimport(\n\t\"context\"\n\t\"os\"\n\tapiclientgo \"github.com/gleanwork/api-client-go\"\n\t\"log\"\n)\n\nfunc main() {\n ctx := context.Background()\n\n s := apiclientgo.New(\n apiclientgo.WithSecurity(os.Getenv(\"GLEAN_API_TOKEN\")),\n )\n\n res, err := s.Client.Governance.Data.Policies.Download(ctx, \"\")\n if err != nil {\n log.Fatal(err)\n }\n if res.Res != nil {\n // handle response\n }\n}" + source: "package main\n\nimport(\n\t\"context\"\n\t\"os\"\n\tapiclientgo \"github.com/gleanwork/api-client-go\"\n\t\"log\"\n)\n\nfunc main() {\n ctx := context.Background()\n\n s := apiclientgo.New(\n apiclientgo.WithSecurity(os.Getenv(\"GLEAN_API_TOKEN\")),\n apiclientgo.WithInstance(os.Getenv(\"GLEAN_INSTANCE\")),\n )\n\n res, err := s.Client.Governance.Data.Policies.Download(ctx, \"\")\n if err != nil {\n log.Fatal(err)\n }\n if res.Res != nil {\n // handle response\n }\n}" - lang: java label: Java (API Client) source: |- @@ -27303,6 +27500,7 @@ paths: Glean sdk = Glean.builder() .apiToken("") + .instance("") .build(); DownloadpolicycsvResponse res = sdk.client().governance().data().policies().download() @@ -27351,6 +27549,7 @@ paths: with Glean( api_token=os.getenv("GLEAN_API_TOKEN", ""), + instance=os.getenv("GLEAN_INSTANCE", ""), ) as g_client: res = g_client.client.governance.data.reports.create() @@ -27364,6 +27563,7 @@ paths: const glean = new Glean({ apiToken: process.env["GLEAN_API_TOKEN"] ?? "", + instance: process.env["GLEAN_INSTANCE"] ?? "", }); async function run() { @@ -27376,7 +27576,7 @@ paths: run(); - lang: go label: Go (API Client) - source: "package main\n\nimport(\n\t\"context\"\n\t\"os\"\n\tapiclientgo \"github.com/gleanwork/api-client-go\"\n\t\"github.com/gleanwork/api-client-go/models/components\"\n\t\"log\"\n)\n\nfunc main() {\n ctx := context.Background()\n\n s := apiclientgo.New(\n apiclientgo.WithSecurity(os.Getenv(\"GLEAN_API_TOKEN\")),\n )\n\n res, err := s.Client.Governance.Data.Reports.Create(ctx, components.UpdateDlpConfigRequest{})\n if err != nil {\n log.Fatal(err)\n }\n if res.UpdateDlpConfigResponse != nil {\n // handle response\n }\n}" + source: "package main\n\nimport(\n\t\"context\"\n\t\"os\"\n\tapiclientgo \"github.com/gleanwork/api-client-go\"\n\t\"github.com/gleanwork/api-client-go/models/components\"\n\t\"log\"\n)\n\nfunc main() {\n ctx := context.Background()\n\n s := apiclientgo.New(\n apiclientgo.WithSecurity(os.Getenv(\"GLEAN_API_TOKEN\")),\n apiclientgo.WithInstance(os.Getenv(\"GLEAN_INSTANCE\")),\n )\n\n res, err := s.Client.Governance.Data.Reports.Create(ctx, components.UpdateDlpConfigRequest{})\n if err != nil {\n log.Fatal(err)\n }\n if res.UpdateDlpConfigResponse != nil {\n // handle response\n }\n}" - lang: java label: Java (API Client) source: |- @@ -27393,6 +27593,7 @@ paths: Glean sdk = Glean.builder() .apiToken("") + .instance("") .build(); UpdateDlpConfigRequest req = UpdateDlpConfigRequest.builder() @@ -27446,6 +27647,7 @@ paths: with Glean( api_token=os.getenv("GLEAN_API_TOKEN", ""), + instance=os.getenv("GLEAN_INSTANCE", ""), ) as g_client: res = g_client.client.governance.data.reports.download(id="") @@ -27459,6 +27661,7 @@ paths: const glean = new Glean({ apiToken: process.env["GLEAN_API_TOKEN"] ?? "", + instance: process.env["GLEAN_INSTANCE"] ?? "", }); async function run() { @@ -27471,7 +27674,7 @@ paths: run(); - lang: go label: Go (API Client) - source: "package main\n\nimport(\n\t\"context\"\n\t\"os\"\n\tapiclientgo \"github.com/gleanwork/api-client-go\"\n\t\"log\"\n)\n\nfunc main() {\n ctx := context.Background()\n\n s := apiclientgo.New(\n apiclientgo.WithSecurity(os.Getenv(\"GLEAN_API_TOKEN\")),\n )\n\n res, err := s.Client.Governance.Data.Reports.Download(ctx, \"\")\n if err != nil {\n log.Fatal(err)\n }\n if res.Res != nil {\n // handle response\n }\n}" + source: "package main\n\nimport(\n\t\"context\"\n\t\"os\"\n\tapiclientgo \"github.com/gleanwork/api-client-go\"\n\t\"log\"\n)\n\nfunc main() {\n ctx := context.Background()\n\n s := apiclientgo.New(\n apiclientgo.WithSecurity(os.Getenv(\"GLEAN_API_TOKEN\")),\n apiclientgo.WithInstance(os.Getenv(\"GLEAN_INSTANCE\")),\n )\n\n res, err := s.Client.Governance.Data.Reports.Download(ctx, \"\")\n if err != nil {\n log.Fatal(err)\n }\n if res.Res != nil {\n // handle response\n }\n}" - lang: java label: Java (API Client) source: |- @@ -27487,6 +27690,7 @@ paths: Glean sdk = Glean.builder() .apiToken("") + .instance("") .build(); DownloadreportcsvResponse res = sdk.client().governance().data().reports().download() @@ -27536,6 +27740,7 @@ paths: with Glean( api_token=os.getenv("GLEAN_API_TOKEN", ""), + instance=os.getenv("GLEAN_INSTANCE", ""), ) as g_client: res = g_client.client.governance.data.reports.status(id="") @@ -27549,6 +27754,7 @@ paths: const glean = new Glean({ apiToken: process.env["GLEAN_API_TOKEN"] ?? "", + instance: process.env["GLEAN_INSTANCE"] ?? "", }); async function run() { @@ -27561,7 +27767,7 @@ paths: run(); - lang: go label: Go (API Client) - source: "package main\n\nimport(\n\t\"context\"\n\t\"os\"\n\tapiclientgo \"github.com/gleanwork/api-client-go\"\n\t\"log\"\n)\n\nfunc main() {\n ctx := context.Background()\n\n s := apiclientgo.New(\n apiclientgo.WithSecurity(os.Getenv(\"GLEAN_API_TOKEN\")),\n )\n\n res, err := s.Client.Governance.Data.Reports.Status(ctx, \"\")\n if err != nil {\n log.Fatal(err)\n }\n if res.ReportStatusResponse != nil {\n // handle response\n }\n}" + source: "package main\n\nimport(\n\t\"context\"\n\t\"os\"\n\tapiclientgo \"github.com/gleanwork/api-client-go\"\n\t\"log\"\n)\n\nfunc main() {\n ctx := context.Background()\n\n s := apiclientgo.New(\n apiclientgo.WithSecurity(os.Getenv(\"GLEAN_API_TOKEN\")),\n apiclientgo.WithInstance(os.Getenv(\"GLEAN_INSTANCE\")),\n )\n\n res, err := s.Client.Governance.Data.Reports.Status(ctx, \"\")\n if err != nil {\n log.Fatal(err)\n }\n if res.ReportStatusResponse != nil {\n // handle response\n }\n}" - lang: java label: Java (API Client) source: |- @@ -27577,6 +27783,7 @@ paths: Glean sdk = Glean.builder() .apiToken("") + .instance("") .build(); GetreportstatusResponse res = sdk.client().governance().data().reports().status() @@ -27627,6 +27834,7 @@ paths: with Glean( api_token=os.getenv("GLEAN_API_TOKEN", ""), + instance=os.getenv("GLEAN_INSTANCE", ""), ) as g_client: res = g_client.client.governance.documents.visibilityoverrides.list() @@ -27640,6 +27848,7 @@ paths: const glean = new Glean({ apiToken: process.env["GLEAN_API_TOKEN"] ?? "", + instance: process.env["GLEAN_INSTANCE"] ?? "", }); async function run() { @@ -27652,7 +27861,7 @@ paths: run(); - lang: go label: Go (API Client) - source: "package main\n\nimport(\n\t\"context\"\n\t\"os\"\n\tapiclientgo \"github.com/gleanwork/api-client-go\"\n\t\"log\"\n)\n\nfunc main() {\n ctx := context.Background()\n\n s := apiclientgo.New(\n apiclientgo.WithSecurity(os.Getenv(\"GLEAN_API_TOKEN\")),\n )\n\n res, err := s.Client.Governance.Documents.Visibilityoverrides.List(ctx, nil)\n if err != nil {\n log.Fatal(err)\n }\n if res.GetDocumentVisibilityOverridesResponse != nil {\n // handle response\n }\n}" + source: "package main\n\nimport(\n\t\"context\"\n\t\"os\"\n\tapiclientgo \"github.com/gleanwork/api-client-go\"\n\t\"log\"\n)\n\nfunc main() {\n ctx := context.Background()\n\n s := apiclientgo.New(\n apiclientgo.WithSecurity(os.Getenv(\"GLEAN_API_TOKEN\")),\n apiclientgo.WithInstance(os.Getenv(\"GLEAN_INSTANCE\")),\n )\n\n res, err := s.Client.Governance.Documents.Visibilityoverrides.List(ctx, nil)\n if err != nil {\n log.Fatal(err)\n }\n if res.GetDocumentVisibilityOverridesResponse != nil {\n // handle response\n }\n}" - lang: java label: Java (API Client) source: |- @@ -27668,6 +27877,7 @@ paths: Glean sdk = Glean.builder() .apiToken("") + .instance("") .build(); GetdocvisibilityResponse res = sdk.client().governance().documents().visibilityoverrides().list() @@ -27714,6 +27924,7 @@ paths: with Glean( api_token=os.getenv("GLEAN_API_TOKEN", ""), + instance=os.getenv("GLEAN_INSTANCE", ""), ) as g_client: res = g_client.client.governance.documents.visibilityoverrides.create() @@ -27727,6 +27938,7 @@ paths: const glean = new Glean({ apiToken: process.env["GLEAN_API_TOKEN"] ?? "", + instance: process.env["GLEAN_INSTANCE"] ?? "", }); async function run() { @@ -27739,7 +27951,7 @@ paths: run(); - lang: go label: Go (API Client) - source: "package main\n\nimport(\n\t\"context\"\n\t\"os\"\n\tapiclientgo \"github.com/gleanwork/api-client-go\"\n\t\"github.com/gleanwork/api-client-go/models/components\"\n\t\"log\"\n)\n\nfunc main() {\n ctx := context.Background()\n\n s := apiclientgo.New(\n apiclientgo.WithSecurity(os.Getenv(\"GLEAN_API_TOKEN\")),\n )\n\n res, err := s.Client.Governance.Documents.Visibilityoverrides.Create(ctx, components.UpdateDocumentVisibilityOverridesRequest{})\n if err != nil {\n log.Fatal(err)\n }\n if res.UpdateDocumentVisibilityOverridesResponse != nil {\n // handle response\n }\n}" + source: "package main\n\nimport(\n\t\"context\"\n\t\"os\"\n\tapiclientgo \"github.com/gleanwork/api-client-go\"\n\t\"github.com/gleanwork/api-client-go/models/components\"\n\t\"log\"\n)\n\nfunc main() {\n ctx := context.Background()\n\n s := apiclientgo.New(\n apiclientgo.WithSecurity(os.Getenv(\"GLEAN_API_TOKEN\")),\n apiclientgo.WithInstance(os.Getenv(\"GLEAN_INSTANCE\")),\n )\n\n res, err := s.Client.Governance.Documents.Visibilityoverrides.Create(ctx, components.UpdateDocumentVisibilityOverridesRequest{})\n if err != nil {\n log.Fatal(err)\n }\n if res.UpdateDocumentVisibilityOverridesResponse != nil {\n // handle response\n }\n}" - lang: java label: Java (API Client) source: |- @@ -27756,6 +27968,7 @@ paths: Glean sdk = Glean.builder() .apiToken("") + .instance("") .build(); UpdateDocumentVisibilityOverridesRequest req = UpdateDocumentVisibilityOverridesRequest.builder() @@ -27918,6 +28131,7 @@ paths: with Glean( api_token=os.getenv("GLEAN_API_TOKEN", ""), + instance=os.getenv("GLEAN_INSTANCE", ""), ) as g_client: res = g_client.client.chat.create_stream(messages=[ @@ -27939,6 +28153,7 @@ paths: const glean = new Glean({ apiToken: process.env["GLEAN_API_TOKEN"] ?? "", + instance: process.env["GLEAN_INSTANCE"] ?? "", }); async function run() { @@ -27961,7 +28176,7 @@ paths: run(); - lang: go label: Go (API Client) - source: "package main\n\nimport(\n\t\"context\"\n\t\"os\"\n\tapiclientgo \"github.com/gleanwork/api-client-go\"\n\t\"github.com/gleanwork/api-client-go/models/components\"\n\t\"log\"\n)\n\nfunc main() {\n ctx := context.Background()\n\n s := apiclientgo.New(\n apiclientgo.WithSecurity(os.Getenv(\"GLEAN_API_TOKEN\")),\n )\n\n res, err := s.Client.Chat.CreateStream(ctx, components.ChatRequest{\n Messages: []components.ChatMessage{\n components.ChatMessage{\n Fragments: []components.ChatMessageFragment{\n components.ChatMessageFragment{\n Text: apiclientgo.String(\"What are the company holidays this year?\"),\n },\n },\n },\n },\n }, nil)\n if err != nil {\n log.Fatal(err)\n }\n if res.ChatRequestStream != nil {\n // handle response\n }\n}" + source: "package main\n\nimport(\n\t\"context\"\n\t\"os\"\n\tapiclientgo \"github.com/gleanwork/api-client-go\"\n\t\"github.com/gleanwork/api-client-go/models/components\"\n\t\"log\"\n)\n\nfunc main() {\n ctx := context.Background()\n\n s := apiclientgo.New(\n apiclientgo.WithSecurity(os.Getenv(\"GLEAN_API_TOKEN\")),\n apiclientgo.WithInstance(os.Getenv(\"GLEAN_INSTANCE\")),\n )\n\n res, err := s.Client.Chat.CreateStream(ctx, components.ChatRequest{\n Messages: []components.ChatMessage{\n components.ChatMessage{\n Fragments: []components.ChatMessageFragment{\n components.ChatMessageFragment{\n Text: apiclientgo.String(\"What are the company holidays this year?\"),\n },\n },\n },\n },\n }, nil)\n if err != nil {\n log.Fatal(err)\n }\n if res.ChatRequestStream != nil {\n // handle response\n }\n}" - lang: java label: Java (API Client) source: |- @@ -27979,6 +28194,7 @@ paths: Glean sdk = Glean.builder() .apiToken("") + .instance("") .build(); ChatStreamResponse res = sdk.client().chat().createStream() diff --git a/modified_code_samples_specs/indexing.yaml b/modified_code_samples_specs/indexing.yaml index cfd456f..1c5abf9 100644 --- a/modified_code_samples_specs/indexing.yaml +++ b/modified_code_samples_specs/indexing.yaml @@ -80,6 +80,7 @@ paths: with Glean( api_token=os.getenv("GLEAN_API_TOKEN", ""), + instance=os.getenv("GLEAN_INSTANCE", ""), ) as g_client: g_client.indexing.documents.add_or_update(document=models.DocumentDefinition( @@ -94,6 +95,7 @@ paths: const glean = new Glean({ apiToken: process.env["GLEAN_API_TOKEN"] ?? "", + instance: process.env["GLEAN_INSTANCE"] ?? "", }); async function run() { @@ -124,6 +126,7 @@ paths: Glean sdk = Glean.builder() .apiToken("") + .instance("") .build(); IndexDocumentRequest req = IndexDocumentRequest.builder() @@ -141,7 +144,7 @@ paths: } - lang: go label: Go (API Client) - source: "package main\n\nimport(\n\t\"context\"\n\t\"os\"\n\tapiclientgo \"github.com/gleanwork/api-client-go\"\n\t\"github.com/gleanwork/api-client-go/models/components\"\n\t\"log\"\n)\n\nfunc main() {\n ctx := context.Background()\n\n s := apiclientgo.New(\n apiclientgo.WithSecurity(os.Getenv(\"GLEAN_API_TOKEN\")),\n )\n\n res, err := s.Indexing.Documents.AddOrUpdate(ctx, components.IndexDocumentRequest{\n Document: components.DocumentDefinition{\n Datasource: \"\",\n },\n })\n if err != nil {\n log.Fatal(err)\n }\n if res != nil {\n // handle response\n }\n}" + source: "package main\n\nimport(\n\t\"context\"\n\t\"os\"\n\tapiclientgo \"github.com/gleanwork/api-client-go\"\n\t\"github.com/gleanwork/api-client-go/models/components\"\n\t\"log\"\n)\n\nfunc main() {\n ctx := context.Background()\n\n s := apiclientgo.New(\n apiclientgo.WithSecurity(os.Getenv(\"GLEAN_API_TOKEN\")),\n apiclientgo.WithInstance(os.Getenv(\"GLEAN_INSTANCE\")),\n )\n\n res, err := s.Indexing.Documents.AddOrUpdate(ctx, components.IndexDocumentRequest{\n Document: components.DocumentDefinition{\n Datasource: \"\",\n },\n })\n if err != nil {\n log.Fatal(err)\n }\n if res != nil {\n // handle response\n }\n}" /api/index/v1/indexdocuments: post: summary: Index documents @@ -178,6 +181,7 @@ paths: with Glean( api_token=os.getenv("GLEAN_API_TOKEN", ""), + instance=os.getenv("GLEAN_INSTANCE", ""), ) as g_client: g_client.indexing.documents.index(datasource="", documents=[]) @@ -190,6 +194,7 @@ paths: const glean = new Glean({ apiToken: process.env["GLEAN_API_TOKEN"] ?? "", + instance: process.env["GLEAN_INSTANCE"] ?? "", }); async function run() { @@ -219,6 +224,7 @@ paths: Glean sdk = Glean.builder() .apiToken("") + .instance("") .build(); IndexDocumentsRequest req = IndexDocumentsRequest.builder() @@ -235,7 +241,7 @@ paths: } - lang: go label: Go (API Client) - source: "package main\n\nimport(\n\t\"context\"\n\t\"os\"\n\tapiclientgo \"github.com/gleanwork/api-client-go\"\n\t\"github.com/gleanwork/api-client-go/models/components\"\n\t\"log\"\n)\n\nfunc main() {\n ctx := context.Background()\n\n s := apiclientgo.New(\n apiclientgo.WithSecurity(os.Getenv(\"GLEAN_API_TOKEN\")),\n )\n\n res, err := s.Indexing.Documents.Index(ctx, components.IndexDocumentsRequest{\n Datasource: \"\",\n Documents: []components.DocumentDefinition{},\n })\n if err != nil {\n log.Fatal(err)\n }\n if res != nil {\n // handle response\n }\n}" + source: "package main\n\nimport(\n\t\"context\"\n\t\"os\"\n\tapiclientgo \"github.com/gleanwork/api-client-go\"\n\t\"github.com/gleanwork/api-client-go/models/components\"\n\t\"log\"\n)\n\nfunc main() {\n ctx := context.Background()\n\n s := apiclientgo.New(\n apiclientgo.WithSecurity(os.Getenv(\"GLEAN_API_TOKEN\")),\n apiclientgo.WithInstance(os.Getenv(\"GLEAN_INSTANCE\")),\n )\n\n res, err := s.Indexing.Documents.Index(ctx, components.IndexDocumentsRequest{\n Datasource: \"\",\n Documents: []components.DocumentDefinition{},\n })\n if err != nil {\n log.Fatal(err)\n }\n if res != nil {\n // handle response\n }\n}" /api/index/v1/bulkindexdocuments: post: summary: Bulk index documents @@ -270,6 +276,7 @@ paths: with Glean( api_token=os.getenv("GLEAN_API_TOKEN", ""), + instance=os.getenv("GLEAN_INSTANCE", ""), ) as g_client: g_client.indexing.documents.bulk_index(upload_id="", datasource="", documents=[]) @@ -282,6 +289,7 @@ paths: const glean = new Glean({ apiToken: process.env["GLEAN_API_TOKEN"] ?? "", + instance: process.env["GLEAN_INSTANCE"] ?? "", }); async function run() { @@ -312,6 +320,7 @@ paths: Glean sdk = Glean.builder() .apiToken("") + .instance("") .build(); BulkIndexDocumentsRequest req = BulkIndexDocumentsRequest.builder() @@ -329,7 +338,7 @@ paths: } - lang: go label: Go (API Client) - source: "package main\n\nimport(\n\t\"context\"\n\t\"os\"\n\tapiclientgo \"github.com/gleanwork/api-client-go\"\n\t\"github.com/gleanwork/api-client-go/models/components\"\n\t\"log\"\n)\n\nfunc main() {\n ctx := context.Background()\n\n s := apiclientgo.New(\n apiclientgo.WithSecurity(os.Getenv(\"GLEAN_API_TOKEN\")),\n )\n\n res, err := s.Indexing.Documents.BulkIndex(ctx, components.BulkIndexDocumentsRequest{\n UploadID: \"\",\n Datasource: \"\",\n Documents: []components.DocumentDefinition{},\n })\n if err != nil {\n log.Fatal(err)\n }\n if res != nil {\n // handle response\n }\n}" + source: "package main\n\nimport(\n\t\"context\"\n\t\"os\"\n\tapiclientgo \"github.com/gleanwork/api-client-go\"\n\t\"github.com/gleanwork/api-client-go/models/components\"\n\t\"log\"\n)\n\nfunc main() {\n ctx := context.Background()\n\n s := apiclientgo.New(\n apiclientgo.WithSecurity(os.Getenv(\"GLEAN_API_TOKEN\")),\n apiclientgo.WithInstance(os.Getenv(\"GLEAN_INSTANCE\")),\n )\n\n res, err := s.Indexing.Documents.BulkIndex(ctx, components.BulkIndexDocumentsRequest{\n UploadID: \"\",\n Datasource: \"\",\n Documents: []components.DocumentDefinition{},\n })\n if err != nil {\n log.Fatal(err)\n }\n if res != nil {\n // handle response\n }\n}" /api/index/v1/updatepermissions: post: summary: Update document permissions @@ -366,6 +375,7 @@ paths: with Glean( api_token=os.getenv("GLEAN_API_TOKEN", ""), + instance=os.getenv("GLEAN_INSTANCE", ""), ) as g_client: g_client.indexing.permissions.update_permissions(datasource="", permissions={}) @@ -378,6 +388,7 @@ paths: const glean = new Glean({ apiToken: process.env["GLEAN_API_TOKEN"] ?? "", + instance: process.env["GLEAN_INSTANCE"] ?? "", }); async function run() { @@ -407,6 +418,7 @@ paths: Glean sdk = Glean.builder() .apiToken("") + .instance("") .build(); UpdatePermissionsRequest req = UpdatePermissionsRequest.builder() @@ -424,7 +436,7 @@ paths: } - lang: go label: Go (API Client) - source: "package main\n\nimport(\n\t\"context\"\n\t\"os\"\n\tapiclientgo \"github.com/gleanwork/api-client-go\"\n\t\"github.com/gleanwork/api-client-go/models/components\"\n\t\"log\"\n)\n\nfunc main() {\n ctx := context.Background()\n\n s := apiclientgo.New(\n apiclientgo.WithSecurity(os.Getenv(\"GLEAN_API_TOKEN\")),\n )\n\n res, err := s.Indexing.Permissions.UpdatePermissions(ctx, components.UpdatePermissionsRequest{\n Datasource: \"\",\n Permissions: components.DocumentPermissionsDefinition{},\n })\n if err != nil {\n log.Fatal(err)\n }\n if res != nil {\n // handle response\n }\n}" + source: "package main\n\nimport(\n\t\"context\"\n\t\"os\"\n\tapiclientgo \"github.com/gleanwork/api-client-go\"\n\t\"github.com/gleanwork/api-client-go/models/components\"\n\t\"log\"\n)\n\nfunc main() {\n ctx := context.Background()\n\n s := apiclientgo.New(\n apiclientgo.WithSecurity(os.Getenv(\"GLEAN_API_TOKEN\")),\n apiclientgo.WithInstance(os.Getenv(\"GLEAN_INSTANCE\")),\n )\n\n res, err := s.Indexing.Permissions.UpdatePermissions(ctx, components.UpdatePermissionsRequest{\n Datasource: \"\",\n Permissions: components.DocumentPermissionsDefinition{},\n })\n if err != nil {\n log.Fatal(err)\n }\n if res != nil {\n // handle response\n }\n}" /api/index/v1/processalldocuments: post: summary: Schedules the processing of uploaded documents @@ -469,6 +481,7 @@ paths: with Glean( api_token=os.getenv("GLEAN_API_TOKEN", ""), + instance=os.getenv("GLEAN_INSTANCE", ""), ) as g_client: g_client.indexing.documents.process_all() @@ -481,6 +494,7 @@ paths: const glean = new Glean({ apiToken: process.env["GLEAN_API_TOKEN"] ?? "", + instance: process.env["GLEAN_INSTANCE"] ?? "", }); async function run() { @@ -506,6 +520,7 @@ paths: Glean sdk = Glean.builder() .apiToken("") + .instance("") .build(); ProcessAllDocumentsRequest req = ProcessAllDocumentsRequest.builder() @@ -520,7 +535,7 @@ paths: } - lang: go label: Go (API Client) - source: "package main\n\nimport(\n\t\"context\"\n\t\"os\"\n\tapiclientgo \"github.com/gleanwork/api-client-go\"\n\t\"log\"\n)\n\nfunc main() {\n ctx := context.Background()\n\n s := apiclientgo.New(\n apiclientgo.WithSecurity(os.Getenv(\"GLEAN_API_TOKEN\")),\n )\n\n res, err := s.Indexing.Documents.ProcessAll(ctx, nil)\n if err != nil {\n log.Fatal(err)\n }\n if res != nil {\n // handle response\n }\n}" + source: "package main\n\nimport(\n\t\"context\"\n\t\"os\"\n\tapiclientgo \"github.com/gleanwork/api-client-go\"\n\t\"log\"\n)\n\nfunc main() {\n ctx := context.Background()\n\n s := apiclientgo.New(\n apiclientgo.WithSecurity(os.Getenv(\"GLEAN_API_TOKEN\")),\n apiclientgo.WithInstance(os.Getenv(\"GLEAN_INSTANCE\")),\n )\n\n res, err := s.Indexing.Documents.ProcessAll(ctx, nil)\n if err != nil {\n log.Fatal(err)\n }\n if res != nil {\n // handle response\n }\n}" /api/index/v1/deletedocument: post: summary: Delete document @@ -555,6 +570,7 @@ paths: with Glean( api_token=os.getenv("GLEAN_API_TOKEN", ""), + instance=os.getenv("GLEAN_INSTANCE", ""), ) as g_client: g_client.indexing.documents.delete(datasource="", object_type="", id="") @@ -567,6 +583,7 @@ paths: const glean = new Glean({ apiToken: process.env["GLEAN_API_TOKEN"] ?? "", + instance: process.env["GLEAN_INSTANCE"] ?? "", }); async function run() { @@ -596,6 +613,7 @@ paths: Glean sdk = Glean.builder() .apiToken("") + .instance("") .build(); DeleteDocumentRequest req = DeleteDocumentRequest.builder() @@ -613,7 +631,7 @@ paths: } - lang: go label: Go (API Client) - source: "package main\n\nimport(\n\t\"context\"\n\t\"os\"\n\tapiclientgo \"github.com/gleanwork/api-client-go\"\n\t\"github.com/gleanwork/api-client-go/models/components\"\n\t\"log\"\n)\n\nfunc main() {\n ctx := context.Background()\n\n s := apiclientgo.New(\n apiclientgo.WithSecurity(os.Getenv(\"GLEAN_API_TOKEN\")),\n )\n\n res, err := s.Indexing.Documents.Delete(ctx, components.DeleteDocumentRequest{\n Datasource: \"\",\n ObjectType: \"\",\n ID: \"\",\n })\n if err != nil {\n log.Fatal(err)\n }\n if res != nil {\n // handle response\n }\n}" + source: "package main\n\nimport(\n\t\"context\"\n\t\"os\"\n\tapiclientgo \"github.com/gleanwork/api-client-go\"\n\t\"github.com/gleanwork/api-client-go/models/components\"\n\t\"log\"\n)\n\nfunc main() {\n ctx := context.Background()\n\n s := apiclientgo.New(\n apiclientgo.WithSecurity(os.Getenv(\"GLEAN_API_TOKEN\")),\n apiclientgo.WithInstance(os.Getenv(\"GLEAN_INSTANCE\")),\n )\n\n res, err := s.Indexing.Documents.Delete(ctx, components.DeleteDocumentRequest{\n Datasource: \"\",\n ObjectType: \"\",\n ID: \"\",\n })\n if err != nil {\n log.Fatal(err)\n }\n if res != nil {\n // handle response\n }\n}" /api/index/v1/indexuser: post: summary: Index user @@ -648,6 +666,7 @@ paths: with Glean( api_token=os.getenv("GLEAN_API_TOKEN", ""), + instance=os.getenv("GLEAN_INSTANCE", ""), ) as g_client: g_client.indexing.permissions.index_user(datasource="", user={ @@ -663,6 +682,7 @@ paths: const glean = new Glean({ apiToken: process.env["GLEAN_API_TOKEN"] ?? "", + instance: process.env["GLEAN_INSTANCE"] ?? "", }); async function run() { @@ -695,6 +715,7 @@ paths: Glean sdk = Glean.builder() .apiToken("") + .instance("") .build(); IndexUserRequest req = IndexUserRequest.builder() @@ -714,7 +735,7 @@ paths: } - lang: go label: Go (API Client) - source: "package main\n\nimport(\n\t\"context\"\n\t\"os\"\n\tapiclientgo \"github.com/gleanwork/api-client-go\"\n\t\"github.com/gleanwork/api-client-go/models/components\"\n\t\"log\"\n)\n\nfunc main() {\n ctx := context.Background()\n\n s := apiclientgo.New(\n apiclientgo.WithSecurity(os.Getenv(\"GLEAN_API_TOKEN\")),\n )\n\n res, err := s.Indexing.Permissions.IndexUser(ctx, components.IndexUserRequest{\n Datasource: \"\",\n User: components.DatasourceUserDefinition{\n Email: \"Art.Schaden@hotmail.com\",\n Name: \"\",\n },\n })\n if err != nil {\n log.Fatal(err)\n }\n if res != nil {\n // handle response\n }\n}" + source: "package main\n\nimport(\n\t\"context\"\n\t\"os\"\n\tapiclientgo \"github.com/gleanwork/api-client-go\"\n\t\"github.com/gleanwork/api-client-go/models/components\"\n\t\"log\"\n)\n\nfunc main() {\n ctx := context.Background()\n\n s := apiclientgo.New(\n apiclientgo.WithSecurity(os.Getenv(\"GLEAN_API_TOKEN\")),\n apiclientgo.WithInstance(os.Getenv(\"GLEAN_INSTANCE\")),\n )\n\n res, err := s.Indexing.Permissions.IndexUser(ctx, components.IndexUserRequest{\n Datasource: \"\",\n User: components.DatasourceUserDefinition{\n Email: \"Art.Schaden@hotmail.com\",\n Name: \"\",\n },\n })\n if err != nil {\n log.Fatal(err)\n }\n if res != nil {\n // handle response\n }\n}" /api/index/v1/bulkindexusers: post: summary: Bulk index users @@ -749,6 +770,7 @@ paths: with Glean( api_token=os.getenv("GLEAN_API_TOKEN", ""), + instance=os.getenv("GLEAN_INSTANCE", ""), ) as g_client: g_client.indexing.permissions.bulk_index_users(upload_id="", datasource="", users=[ @@ -774,6 +796,7 @@ paths: const glean = new Glean({ apiToken: process.env["GLEAN_API_TOKEN"] ?? "", + instance: process.env["GLEAN_INSTANCE"] ?? "", }); async function run() { @@ -818,6 +841,7 @@ paths: Glean sdk = Glean.builder() .apiToken("") + .instance("") .build(); BulkIndexUsersRequest req = BulkIndexUsersRequest.builder() @@ -847,7 +871,7 @@ paths: } - lang: go label: Go (API Client) - source: "package main\n\nimport(\n\t\"context\"\n\t\"os\"\n\tapiclientgo \"github.com/gleanwork/api-client-go\"\n\t\"github.com/gleanwork/api-client-go/models/components\"\n\t\"log\"\n)\n\nfunc main() {\n ctx := context.Background()\n\n s := apiclientgo.New(\n apiclientgo.WithSecurity(os.Getenv(\"GLEAN_API_TOKEN\")),\n )\n\n res, err := s.Indexing.Permissions.BulkIndexUsers(ctx, components.BulkIndexUsersRequest{\n UploadID: \"\",\n Datasource: \"\",\n Users: []components.DatasourceUserDefinition{\n components.DatasourceUserDefinition{\n Email: \"Ivory_Cummerata@hotmail.com\",\n Name: \"\",\n },\n components.DatasourceUserDefinition{\n Email: \"Ivory_Cummerata@hotmail.com\",\n Name: \"\",\n },\n components.DatasourceUserDefinition{\n Email: \"Ivory_Cummerata@hotmail.com\",\n Name: \"\",\n },\n },\n })\n if err != nil {\n log.Fatal(err)\n }\n if res != nil {\n // handle response\n }\n}" + source: "package main\n\nimport(\n\t\"context\"\n\t\"os\"\n\tapiclientgo \"github.com/gleanwork/api-client-go\"\n\t\"github.com/gleanwork/api-client-go/models/components\"\n\t\"log\"\n)\n\nfunc main() {\n ctx := context.Background()\n\n s := apiclientgo.New(\n apiclientgo.WithSecurity(os.Getenv(\"GLEAN_API_TOKEN\")),\n apiclientgo.WithInstance(os.Getenv(\"GLEAN_INSTANCE\")),\n )\n\n res, err := s.Indexing.Permissions.BulkIndexUsers(ctx, components.BulkIndexUsersRequest{\n UploadID: \"\",\n Datasource: \"\",\n Users: []components.DatasourceUserDefinition{\n components.DatasourceUserDefinition{\n Email: \"Ivory_Cummerata@hotmail.com\",\n Name: \"\",\n },\n components.DatasourceUserDefinition{\n Email: \"Ivory_Cummerata@hotmail.com\",\n Name: \"\",\n },\n components.DatasourceUserDefinition{\n Email: \"Ivory_Cummerata@hotmail.com\",\n Name: \"\",\n },\n },\n })\n if err != nil {\n log.Fatal(err)\n }\n if res != nil {\n // handle response\n }\n}" /api/index/v1/indexgroup: post: summary: Index group @@ -882,6 +906,7 @@ paths: with Glean( api_token=os.getenv("GLEAN_API_TOKEN", ""), + instance=os.getenv("GLEAN_INSTANCE", ""), ) as g_client: g_client.indexing.permissions.index_group(datasource="", group={ @@ -896,6 +921,7 @@ paths: const glean = new Glean({ apiToken: process.env["GLEAN_API_TOKEN"] ?? "", + instance: process.env["GLEAN_INSTANCE"] ?? "", }); async function run() { @@ -927,6 +953,7 @@ paths: Glean sdk = Glean.builder() .apiToken("") + .instance("") .build(); IndexGroupRequest req = IndexGroupRequest.builder() @@ -945,7 +972,7 @@ paths: } - lang: go label: Go (API Client) - source: "package main\n\nimport(\n\t\"context\"\n\t\"os\"\n\tapiclientgo \"github.com/gleanwork/api-client-go\"\n\t\"github.com/gleanwork/api-client-go/models/components\"\n\t\"log\"\n)\n\nfunc main() {\n ctx := context.Background()\n\n s := apiclientgo.New(\n apiclientgo.WithSecurity(os.Getenv(\"GLEAN_API_TOKEN\")),\n )\n\n res, err := s.Indexing.Permissions.IndexGroup(ctx, components.IndexGroupRequest{\n Datasource: \"\",\n Group: components.DatasourceGroupDefinition{\n Name: \"\",\n },\n })\n if err != nil {\n log.Fatal(err)\n }\n if res != nil {\n // handle response\n }\n}" + source: "package main\n\nimport(\n\t\"context\"\n\t\"os\"\n\tapiclientgo \"github.com/gleanwork/api-client-go\"\n\t\"github.com/gleanwork/api-client-go/models/components\"\n\t\"log\"\n)\n\nfunc main() {\n ctx := context.Background()\n\n s := apiclientgo.New(\n apiclientgo.WithSecurity(os.Getenv(\"GLEAN_API_TOKEN\")),\n apiclientgo.WithInstance(os.Getenv(\"GLEAN_INSTANCE\")),\n )\n\n res, err := s.Indexing.Permissions.IndexGroup(ctx, components.IndexGroupRequest{\n Datasource: \"\",\n Group: components.DatasourceGroupDefinition{\n Name: \"\",\n },\n })\n if err != nil {\n log.Fatal(err)\n }\n if res != nil {\n // handle response\n }\n}" /api/index/v1/bulkindexgroups: post: summary: Bulk index groups @@ -980,6 +1007,7 @@ paths: with Glean( api_token=os.getenv("GLEAN_API_TOKEN", ""), + instance=os.getenv("GLEAN_INSTANCE", ""), ) as g_client: g_client.indexing.permissions.bulk_index_groups(upload_id="", datasource="", groups=[ @@ -999,6 +1027,7 @@ paths: const glean = new Glean({ apiToken: process.env["GLEAN_API_TOKEN"] ?? "", + instance: process.env["GLEAN_INSTANCE"] ?? "", }); async function run() { @@ -1037,6 +1066,7 @@ paths: Glean sdk = Glean.builder() .apiToken("") + .instance("") .build(); BulkIndexGroupsRequest req = BulkIndexGroupsRequest.builder() @@ -1060,7 +1090,7 @@ paths: } - lang: go label: Go (API Client) - source: "package main\n\nimport(\n\t\"context\"\n\t\"os\"\n\tapiclientgo \"github.com/gleanwork/api-client-go\"\n\t\"github.com/gleanwork/api-client-go/models/components\"\n\t\"log\"\n)\n\nfunc main() {\n ctx := context.Background()\n\n s := apiclientgo.New(\n apiclientgo.WithSecurity(os.Getenv(\"GLEAN_API_TOKEN\")),\n )\n\n res, err := s.Indexing.Permissions.BulkIndexGroups(ctx, components.BulkIndexGroupsRequest{\n UploadID: \"\",\n Datasource: \"\",\n Groups: []components.DatasourceGroupDefinition{\n components.DatasourceGroupDefinition{\n Name: \"\",\n },\n components.DatasourceGroupDefinition{\n Name: \"\",\n },\n },\n })\n if err != nil {\n log.Fatal(err)\n }\n if res != nil {\n // handle response\n }\n}" + source: "package main\n\nimport(\n\t\"context\"\n\t\"os\"\n\tapiclientgo \"github.com/gleanwork/api-client-go\"\n\t\"github.com/gleanwork/api-client-go/models/components\"\n\t\"log\"\n)\n\nfunc main() {\n ctx := context.Background()\n\n s := apiclientgo.New(\n apiclientgo.WithSecurity(os.Getenv(\"GLEAN_API_TOKEN\")),\n apiclientgo.WithInstance(os.Getenv(\"GLEAN_INSTANCE\")),\n )\n\n res, err := s.Indexing.Permissions.BulkIndexGroups(ctx, components.BulkIndexGroupsRequest{\n UploadID: \"\",\n Datasource: \"\",\n Groups: []components.DatasourceGroupDefinition{\n components.DatasourceGroupDefinition{\n Name: \"\",\n },\n components.DatasourceGroupDefinition{\n Name: \"\",\n },\n },\n })\n if err != nil {\n log.Fatal(err)\n }\n if res != nil {\n // handle response\n }\n}" /api/index/v1/indexmembership: post: summary: Index membership @@ -1095,6 +1125,7 @@ paths: with Glean( api_token=os.getenv("GLEAN_API_TOKEN", ""), + instance=os.getenv("GLEAN_INSTANCE", ""), ) as g_client: g_client.indexing.permissions.index_membership(datasource="", membership={ @@ -1109,6 +1140,7 @@ paths: const glean = new Glean({ apiToken: process.env["GLEAN_API_TOKEN"] ?? "", + instance: process.env["GLEAN_INSTANCE"] ?? "", }); async function run() { @@ -1140,6 +1172,7 @@ paths: Glean sdk = Glean.builder() .apiToken("") + .instance("") .build(); IndexMembershipRequest req = IndexMembershipRequest.builder() @@ -1158,7 +1191,7 @@ paths: } - lang: go label: Go (API Client) - source: "package main\n\nimport(\n\t\"context\"\n\t\"os\"\n\tapiclientgo \"github.com/gleanwork/api-client-go\"\n\t\"github.com/gleanwork/api-client-go/models/components\"\n\t\"log\"\n)\n\nfunc main() {\n ctx := context.Background()\n\n s := apiclientgo.New(\n apiclientgo.WithSecurity(os.Getenv(\"GLEAN_API_TOKEN\")),\n )\n\n res, err := s.Indexing.Permissions.IndexMembership(ctx, components.IndexMembershipRequest{\n Datasource: \"\",\n Membership: components.DatasourceMembershipDefinition{\n GroupName: \"\",\n },\n })\n if err != nil {\n log.Fatal(err)\n }\n if res != nil {\n // handle response\n }\n}" + source: "package main\n\nimport(\n\t\"context\"\n\t\"os\"\n\tapiclientgo \"github.com/gleanwork/api-client-go\"\n\t\"github.com/gleanwork/api-client-go/models/components\"\n\t\"log\"\n)\n\nfunc main() {\n ctx := context.Background()\n\n s := apiclientgo.New(\n apiclientgo.WithSecurity(os.Getenv(\"GLEAN_API_TOKEN\")),\n apiclientgo.WithInstance(os.Getenv(\"GLEAN_INSTANCE\")),\n )\n\n res, err := s.Indexing.Permissions.IndexMembership(ctx, components.IndexMembershipRequest{\n Datasource: \"\",\n Membership: components.DatasourceMembershipDefinition{\n GroupName: \"\",\n },\n })\n if err != nil {\n log.Fatal(err)\n }\n if res != nil {\n // handle response\n }\n}" /api/index/v1/bulkindexmemberships: post: summary: Bulk index memberships for a group @@ -1193,6 +1226,7 @@ paths: with Glean( api_token=os.getenv("GLEAN_API_TOKEN", ""), + instance=os.getenv("GLEAN_INSTANCE", ""), ) as g_client: g_client.indexing.permissions.bulk_index_memberships(upload_id="", datasource="", memberships=[ @@ -1209,6 +1243,7 @@ paths: const glean = new Glean({ apiToken: process.env["GLEAN_API_TOKEN"] ?? "", + instance: process.env["GLEAN_INSTANCE"] ?? "", }); async function run() { @@ -1244,6 +1279,7 @@ paths: Glean sdk = Glean.builder() .apiToken("") + .instance("") .build(); BulkIndexMembershipsRequest req = BulkIndexMembershipsRequest.builder() @@ -1267,7 +1303,7 @@ paths: } - lang: go label: Go (API Client) - source: "package main\n\nimport(\n\t\"context\"\n\t\"os\"\n\tapiclientgo \"github.com/gleanwork/api-client-go\"\n\t\"github.com/gleanwork/api-client-go/models/components\"\n\t\"log\"\n)\n\nfunc main() {\n ctx := context.Background()\n\n s := apiclientgo.New(\n apiclientgo.WithSecurity(os.Getenv(\"GLEAN_API_TOKEN\")),\n )\n\n res, err := s.Indexing.Permissions.BulkIndexMemberships(ctx, components.BulkIndexMembershipsRequest{\n UploadID: \"\",\n Datasource: \"\",\n Memberships: []components.DatasourceBulkMembershipDefinition{\n components.DatasourceBulkMembershipDefinition{},\n components.DatasourceBulkMembershipDefinition{},\n components.DatasourceBulkMembershipDefinition{},\n },\n })\n if err != nil {\n log.Fatal(err)\n }\n if res != nil {\n // handle response\n }\n}" + source: "package main\n\nimport(\n\t\"context\"\n\t\"os\"\n\tapiclientgo \"github.com/gleanwork/api-client-go\"\n\t\"github.com/gleanwork/api-client-go/models/components\"\n\t\"log\"\n)\n\nfunc main() {\n ctx := context.Background()\n\n s := apiclientgo.New(\n apiclientgo.WithSecurity(os.Getenv(\"GLEAN_API_TOKEN\")),\n apiclientgo.WithInstance(os.Getenv(\"GLEAN_INSTANCE\")),\n )\n\n res, err := s.Indexing.Permissions.BulkIndexMemberships(ctx, components.BulkIndexMembershipsRequest{\n UploadID: \"\",\n Datasource: \"\",\n Memberships: []components.DatasourceBulkMembershipDefinition{\n components.DatasourceBulkMembershipDefinition{},\n components.DatasourceBulkMembershipDefinition{},\n components.DatasourceBulkMembershipDefinition{},\n },\n })\n if err != nil {\n log.Fatal(err)\n }\n if res != nil {\n // handle response\n }\n}" /api/index/v1/processallmemberships: post: summary: Schedules the processing of group memberships @@ -1300,6 +1336,7 @@ paths: with Glean( api_token=os.getenv("GLEAN_API_TOKEN", ""), + instance=os.getenv("GLEAN_INSTANCE", ""), ) as g_client: g_client.indexing.permissions.process_memberships() @@ -1312,6 +1349,7 @@ paths: const glean = new Glean({ apiToken: process.env["GLEAN_API_TOKEN"] ?? "", + instance: process.env["GLEAN_INSTANCE"] ?? "", }); async function run() { @@ -1337,6 +1375,7 @@ paths: Glean sdk = Glean.builder() .apiToken("") + .instance("") .build(); ProcessAllMembershipsRequest req = ProcessAllMembershipsRequest.builder() @@ -1351,7 +1390,7 @@ paths: } - lang: go label: Go (API Client) - source: "package main\n\nimport(\n\t\"context\"\n\t\"os\"\n\tapiclientgo \"github.com/gleanwork/api-client-go\"\n\t\"log\"\n)\n\nfunc main() {\n ctx := context.Background()\n\n s := apiclientgo.New(\n apiclientgo.WithSecurity(os.Getenv(\"GLEAN_API_TOKEN\")),\n )\n\n res, err := s.Indexing.Permissions.ProcessMemberships(ctx, nil)\n if err != nil {\n log.Fatal(err)\n }\n if res != nil {\n // handle response\n }\n}" + source: "package main\n\nimport(\n\t\"context\"\n\t\"os\"\n\tapiclientgo \"github.com/gleanwork/api-client-go\"\n\t\"log\"\n)\n\nfunc main() {\n ctx := context.Background()\n\n s := apiclientgo.New(\n apiclientgo.WithSecurity(os.Getenv(\"GLEAN_API_TOKEN\")),\n apiclientgo.WithInstance(os.Getenv(\"GLEAN_INSTANCE\")),\n )\n\n res, err := s.Indexing.Permissions.ProcessMemberships(ctx, nil)\n if err != nil {\n log.Fatal(err)\n }\n if res != nil {\n // handle response\n }\n}" /api/index/v1/deleteuser: post: summary: Delete user @@ -1386,6 +1425,7 @@ paths: with Glean( api_token=os.getenv("GLEAN_API_TOKEN", ""), + instance=os.getenv("GLEAN_INSTANCE", ""), ) as g_client: g_client.indexing.permissions.delete_user(datasource="", email="Ed.Johnston@gmail.com") @@ -1398,6 +1438,7 @@ paths: const glean = new Glean({ apiToken: process.env["GLEAN_API_TOKEN"] ?? "", + instance: process.env["GLEAN_INSTANCE"] ?? "", }); async function run() { @@ -1426,6 +1467,7 @@ paths: Glean sdk = Glean.builder() .apiToken("") + .instance("") .build(); DeleteUserRequest req = DeleteUserRequest.builder() @@ -1442,7 +1484,7 @@ paths: } - lang: go label: Go (API Client) - source: "package main\n\nimport(\n\t\"context\"\n\t\"os\"\n\tapiclientgo \"github.com/gleanwork/api-client-go\"\n\t\"github.com/gleanwork/api-client-go/models/components\"\n\t\"log\"\n)\n\nfunc main() {\n ctx := context.Background()\n\n s := apiclientgo.New(\n apiclientgo.WithSecurity(os.Getenv(\"GLEAN_API_TOKEN\")),\n )\n\n res, err := s.Indexing.Permissions.DeleteUser(ctx, components.DeleteUserRequest{\n Datasource: \"\",\n Email: \"Ed.Johnston@gmail.com\",\n })\n if err != nil {\n log.Fatal(err)\n }\n if res != nil {\n // handle response\n }\n}" + source: "package main\n\nimport(\n\t\"context\"\n\t\"os\"\n\tapiclientgo \"github.com/gleanwork/api-client-go\"\n\t\"github.com/gleanwork/api-client-go/models/components\"\n\t\"log\"\n)\n\nfunc main() {\n ctx := context.Background()\n\n s := apiclientgo.New(\n apiclientgo.WithSecurity(os.Getenv(\"GLEAN_API_TOKEN\")),\n apiclientgo.WithInstance(os.Getenv(\"GLEAN_INSTANCE\")),\n )\n\n res, err := s.Indexing.Permissions.DeleteUser(ctx, components.DeleteUserRequest{\n Datasource: \"\",\n Email: \"Ed.Johnston@gmail.com\",\n })\n if err != nil {\n log.Fatal(err)\n }\n if res != nil {\n // handle response\n }\n}" /api/index/v1/deletegroup: post: summary: Delete group @@ -1477,6 +1519,7 @@ paths: with Glean( api_token=os.getenv("GLEAN_API_TOKEN", ""), + instance=os.getenv("GLEAN_INSTANCE", ""), ) as g_client: g_client.indexing.permissions.delete_group(datasource="", group_name="") @@ -1489,6 +1532,7 @@ paths: const glean = new Glean({ apiToken: process.env["GLEAN_API_TOKEN"] ?? "", + instance: process.env["GLEAN_INSTANCE"] ?? "", }); async function run() { @@ -1517,6 +1561,7 @@ paths: Glean sdk = Glean.builder() .apiToken("") + .instance("") .build(); DeleteGroupRequest req = DeleteGroupRequest.builder() @@ -1533,7 +1578,7 @@ paths: } - lang: go label: Go (API Client) - source: "package main\n\nimport(\n\t\"context\"\n\t\"os\"\n\tapiclientgo \"github.com/gleanwork/api-client-go\"\n\t\"github.com/gleanwork/api-client-go/models/components\"\n\t\"log\"\n)\n\nfunc main() {\n ctx := context.Background()\n\n s := apiclientgo.New(\n apiclientgo.WithSecurity(os.Getenv(\"GLEAN_API_TOKEN\")),\n )\n\n res, err := s.Indexing.Permissions.DeleteGroup(ctx, components.DeleteGroupRequest{\n Datasource: \"\",\n GroupName: \"\",\n })\n if err != nil {\n log.Fatal(err)\n }\n if res != nil {\n // handle response\n }\n}" + source: "package main\n\nimport(\n\t\"context\"\n\t\"os\"\n\tapiclientgo \"github.com/gleanwork/api-client-go\"\n\t\"github.com/gleanwork/api-client-go/models/components\"\n\t\"log\"\n)\n\nfunc main() {\n ctx := context.Background()\n\n s := apiclientgo.New(\n apiclientgo.WithSecurity(os.Getenv(\"GLEAN_API_TOKEN\")),\n apiclientgo.WithInstance(os.Getenv(\"GLEAN_INSTANCE\")),\n )\n\n res, err := s.Indexing.Permissions.DeleteGroup(ctx, components.DeleteGroupRequest{\n Datasource: \"\",\n GroupName: \"\",\n })\n if err != nil {\n log.Fatal(err)\n }\n if res != nil {\n // handle response\n }\n}" /api/index/v1/deletemembership: post: summary: Delete membership @@ -1568,6 +1613,7 @@ paths: with Glean( api_token=os.getenv("GLEAN_API_TOKEN", ""), + instance=os.getenv("GLEAN_INSTANCE", ""), ) as g_client: g_client.indexing.permissions.delete_membership(datasource="", membership={ @@ -1582,6 +1628,7 @@ paths: const glean = new Glean({ apiToken: process.env["GLEAN_API_TOKEN"] ?? "", + instance: process.env["GLEAN_INSTANCE"] ?? "", }); async function run() { @@ -1613,6 +1660,7 @@ paths: Glean sdk = Glean.builder() .apiToken("") + .instance("") .build(); DeleteMembershipRequest req = DeleteMembershipRequest.builder() @@ -1631,7 +1679,7 @@ paths: } - lang: go label: Go (API Client) - source: "package main\n\nimport(\n\t\"context\"\n\t\"os\"\n\tapiclientgo \"github.com/gleanwork/api-client-go\"\n\t\"github.com/gleanwork/api-client-go/models/components\"\n\t\"log\"\n)\n\nfunc main() {\n ctx := context.Background()\n\n s := apiclientgo.New(\n apiclientgo.WithSecurity(os.Getenv(\"GLEAN_API_TOKEN\")),\n )\n\n res, err := s.Indexing.Permissions.DeleteMembership(ctx, components.DeleteMembershipRequest{\n Datasource: \"\",\n Membership: components.DatasourceMembershipDefinition{\n GroupName: \"\",\n },\n })\n if err != nil {\n log.Fatal(err)\n }\n if res != nil {\n // handle response\n }\n}" + source: "package main\n\nimport(\n\t\"context\"\n\t\"os\"\n\tapiclientgo \"github.com/gleanwork/api-client-go\"\n\t\"github.com/gleanwork/api-client-go/models/components\"\n\t\"log\"\n)\n\nfunc main() {\n ctx := context.Background()\n\n s := apiclientgo.New(\n apiclientgo.WithSecurity(os.Getenv(\"GLEAN_API_TOKEN\")),\n apiclientgo.WithInstance(os.Getenv(\"GLEAN_INSTANCE\")),\n )\n\n res, err := s.Indexing.Permissions.DeleteMembership(ctx, components.DeleteMembershipRequest{\n Datasource: \"\",\n Membership: components.DatasourceMembershipDefinition{\n GroupName: \"\",\n },\n })\n if err != nil {\n log.Fatal(err)\n }\n if res != nil {\n // handle response\n }\n}" /api/index/v1/debug/{datasource}/status: post: x-beta: true @@ -1673,6 +1721,7 @@ paths: with Glean( api_token=os.getenv("GLEAN_API_TOKEN", ""), + instance=os.getenv("GLEAN_INSTANCE", ""), ) as g_client: res = g_client.indexing.datasource.status(datasource="") @@ -1686,6 +1735,7 @@ paths: const glean = new Glean({ apiToken: process.env["GLEAN_API_TOKEN"] ?? "", + instance: process.env["GLEAN_INSTANCE"] ?? "", }); async function run() { @@ -1711,6 +1761,7 @@ paths: Glean sdk = Glean.builder() .apiToken("") + .instance("") .build(); PostApiIndexV1DebugDatasourceStatusResponse res = sdk.indexing().datasource().status() @@ -1724,7 +1775,7 @@ paths: } - lang: go label: Go (API Client) - source: "package main\n\nimport(\n\t\"context\"\n\t\"os\"\n\tapiclientgo \"github.com/gleanwork/api-client-go\"\n\t\"log\"\n)\n\nfunc main() {\n ctx := context.Background()\n\n s := apiclientgo.New(\n apiclientgo.WithSecurity(os.Getenv(\"GLEAN_API_TOKEN\")),\n )\n\n res, err := s.Indexing.Datasource.Status(ctx, \"\")\n if err != nil {\n log.Fatal(err)\n }\n if res.DebugDatasourceStatusResponse != nil {\n // handle response\n }\n}" + source: "package main\n\nimport(\n\t\"context\"\n\t\"os\"\n\tapiclientgo \"github.com/gleanwork/api-client-go\"\n\t\"log\"\n)\n\nfunc main() {\n ctx := context.Background()\n\n s := apiclientgo.New(\n apiclientgo.WithSecurity(os.Getenv(\"GLEAN_API_TOKEN\")),\n apiclientgo.WithInstance(os.Getenv(\"GLEAN_INSTANCE\")),\n )\n\n res, err := s.Indexing.Datasource.Status(ctx, \"\")\n if err != nil {\n log.Fatal(err)\n }\n if res.DebugDatasourceStatusResponse != nil {\n // handle response\n }\n}" /api/index/v1/debug/{datasource}/document: post: x-beta: true @@ -1773,6 +1824,7 @@ paths: with Glean( api_token=os.getenv("GLEAN_API_TOKEN", ""), + instance=os.getenv("GLEAN_INSTANCE", ""), ) as g_client: res = g_client.indexing.documents.debug(datasource="", object_type="Article", doc_id="art123") @@ -1786,6 +1838,7 @@ paths: const glean = new Glean({ apiToken: process.env["GLEAN_API_TOKEN"] ?? "", + instance: process.env["GLEAN_INSTANCE"] ?? "", }); async function run() { @@ -1815,6 +1868,7 @@ paths: Glean sdk = Glean.builder() .apiToken("") + .instance("") .build(); PostApiIndexV1DebugDatasourceDocumentResponse res = sdk.indexing().documents().debug() @@ -1832,7 +1886,7 @@ paths: } - lang: go label: Go (API Client) - source: "package main\n\nimport(\n\t\"context\"\n\t\"os\"\n\tapiclientgo \"github.com/gleanwork/api-client-go\"\n\t\"github.com/gleanwork/api-client-go/models/components\"\n\t\"log\"\n)\n\nfunc main() {\n ctx := context.Background()\n\n s := apiclientgo.New(\n apiclientgo.WithSecurity(os.Getenv(\"GLEAN_API_TOKEN\")),\n )\n\n res, err := s.Indexing.Documents.Debug(ctx, \"\", components.DebugDocumentRequest{\n ObjectType: \"Article\",\n DocID: \"art123\",\n })\n if err != nil {\n log.Fatal(err)\n }\n if res.DebugDocumentResponse != nil {\n // handle response\n }\n}" + source: "package main\n\nimport(\n\t\"context\"\n\t\"os\"\n\tapiclientgo \"github.com/gleanwork/api-client-go\"\n\t\"github.com/gleanwork/api-client-go/models/components\"\n\t\"log\"\n)\n\nfunc main() {\n ctx := context.Background()\n\n s := apiclientgo.New(\n apiclientgo.WithSecurity(os.Getenv(\"GLEAN_API_TOKEN\")),\n apiclientgo.WithInstance(os.Getenv(\"GLEAN_INSTANCE\")),\n )\n\n res, err := s.Indexing.Documents.Debug(ctx, \"\", components.DebugDocumentRequest{\n ObjectType: \"Article\",\n DocID: \"art123\",\n })\n if err != nil {\n log.Fatal(err)\n }\n if res.DebugDocumentResponse != nil {\n // handle response\n }\n}" /api/index/v1/debug/{datasource}/documents: post: x-beta: true @@ -1881,6 +1935,7 @@ paths: with Glean( api_token=os.getenv("GLEAN_API_TOKEN", ""), + instance=os.getenv("GLEAN_INSTANCE", ""), ) as g_client: res = g_client.indexing.documents.debug_many(datasource="", debug_documents=[ @@ -1899,6 +1954,7 @@ paths: const glean = new Glean({ apiToken: process.env["GLEAN_API_TOKEN"] ?? "", + instance: process.env["GLEAN_INSTANCE"] ?? "", }); async function run() { @@ -1934,6 +1990,7 @@ paths: Glean sdk = Glean.builder() .apiToken("") + .instance("") .build(); PostApiIndexV1DebugDatasourceDocumentsResponse res = sdk.indexing().documents().debugMany() @@ -1954,7 +2011,7 @@ paths: } - lang: go label: Go (API Client) - source: "package main\n\nimport(\n\t\"context\"\n\t\"os\"\n\tapiclientgo \"github.com/gleanwork/api-client-go\"\n\t\"github.com/gleanwork/api-client-go/models/components\"\n\t\"log\"\n)\n\nfunc main() {\n ctx := context.Background()\n\n s := apiclientgo.New(\n apiclientgo.WithSecurity(os.Getenv(\"GLEAN_API_TOKEN\")),\n )\n\n res, err := s.Indexing.Documents.DebugMany(ctx, \"\", components.DebugDocumentsRequest{\n DebugDocuments: []components.DebugDocumentRequest{\n components.DebugDocumentRequest{\n ObjectType: \"Article\",\n DocID: \"art123\",\n },\n },\n })\n if err != nil {\n log.Fatal(err)\n }\n if res.DebugDocumentsResponse != nil {\n // handle response\n }\n}" + source: "package main\n\nimport(\n\t\"context\"\n\t\"os\"\n\tapiclientgo \"github.com/gleanwork/api-client-go\"\n\t\"github.com/gleanwork/api-client-go/models/components\"\n\t\"log\"\n)\n\nfunc main() {\n ctx := context.Background()\n\n s := apiclientgo.New(\n apiclientgo.WithSecurity(os.Getenv(\"GLEAN_API_TOKEN\")),\n apiclientgo.WithInstance(os.Getenv(\"GLEAN_INSTANCE\")),\n )\n\n res, err := s.Indexing.Documents.DebugMany(ctx, \"\", components.DebugDocumentsRequest{\n DebugDocuments: []components.DebugDocumentRequest{\n components.DebugDocumentRequest{\n ObjectType: \"Article\",\n DocID: \"art123\",\n },\n },\n })\n if err != nil {\n log.Fatal(err)\n }\n if res.DebugDocumentsResponse != nil {\n // handle response\n }\n}" /api/index/v1/debug/{datasource}/user: post: x-beta: true @@ -2003,6 +2060,7 @@ paths: with Glean( api_token=os.getenv("GLEAN_API_TOKEN", ""), + instance=os.getenv("GLEAN_INSTANCE", ""), ) as g_client: res = g_client.indexing.people.debug(datasource="", email="u1@foo.com") @@ -2016,6 +2074,7 @@ paths: const glean = new Glean({ apiToken: process.env["GLEAN_API_TOKEN"] ?? "", + instance: process.env["GLEAN_INSTANCE"] ?? "", }); async function run() { @@ -2044,6 +2103,7 @@ paths: Glean sdk = Glean.builder() .apiToken("") + .instance("") .build(); PostApiIndexV1DebugDatasourceUserResponse res = sdk.indexing().people().debug() @@ -2060,7 +2120,7 @@ paths: } - lang: go label: Go (API Client) - source: "package main\n\nimport(\n\t\"context\"\n\t\"os\"\n\tapiclientgo \"github.com/gleanwork/api-client-go\"\n\t\"github.com/gleanwork/api-client-go/models/components\"\n\t\"log\"\n)\n\nfunc main() {\n ctx := context.Background()\n\n s := apiclientgo.New(\n apiclientgo.WithSecurity(os.Getenv(\"GLEAN_API_TOKEN\")),\n )\n\n res, err := s.Indexing.People.Debug(ctx, \"\", components.DebugUserRequest{\n Email: \"u1@foo.com\",\n })\n if err != nil {\n log.Fatal(err)\n }\n if res.DebugUserResponse != nil {\n // handle response\n }\n}" + source: "package main\n\nimport(\n\t\"context\"\n\t\"os\"\n\tapiclientgo \"github.com/gleanwork/api-client-go\"\n\t\"github.com/gleanwork/api-client-go/models/components\"\n\t\"log\"\n)\n\nfunc main() {\n ctx := context.Background()\n\n s := apiclientgo.New(\n apiclientgo.WithSecurity(os.Getenv(\"GLEAN_API_TOKEN\")),\n apiclientgo.WithInstance(os.Getenv(\"GLEAN_INSTANCE\")),\n )\n\n res, err := s.Indexing.People.Debug(ctx, \"\", components.DebugUserRequest{\n Email: \"u1@foo.com\",\n })\n if err != nil {\n log.Fatal(err)\n }\n if res.DebugUserResponse != nil {\n // handle response\n }\n}" /api/index/v1/checkdocumentaccess: post: summary: Check document access @@ -2102,6 +2162,7 @@ paths: with Glean( api_token=os.getenv("GLEAN_API_TOKEN", ""), + instance=os.getenv("GLEAN_INSTANCE", ""), ) as g_client: res = g_client.indexing.documents.check_access(datasource="", object_type="", doc_id="", user_email="") @@ -2115,6 +2176,7 @@ paths: const glean = new Glean({ apiToken: process.env["GLEAN_API_TOKEN"] ?? "", + instance: process.env["GLEAN_INSTANCE"] ?? "", }); async function run() { @@ -2146,6 +2208,7 @@ paths: Glean sdk = Glean.builder() .apiToken("") + .instance("") .build(); CheckDocumentAccessRequest req = CheckDocumentAccessRequest.builder() @@ -2166,7 +2229,7 @@ paths: } - lang: go label: Go (API Client) - source: "package main\n\nimport(\n\t\"context\"\n\t\"os\"\n\tapiclientgo \"github.com/gleanwork/api-client-go\"\n\t\"github.com/gleanwork/api-client-go/models/components\"\n\t\"log\"\n)\n\nfunc main() {\n ctx := context.Background()\n\n s := apiclientgo.New(\n apiclientgo.WithSecurity(os.Getenv(\"GLEAN_API_TOKEN\")),\n )\n\n res, err := s.Indexing.Documents.CheckAccess(ctx, components.CheckDocumentAccessRequest{\n Datasource: \"\",\n ObjectType: \"\",\n DocID: \"\",\n UserEmail: \"\",\n })\n if err != nil {\n log.Fatal(err)\n }\n if res.CheckDocumentAccessResponse != nil {\n // handle response\n }\n}" + source: "package main\n\nimport(\n\t\"context\"\n\t\"os\"\n\tapiclientgo \"github.com/gleanwork/api-client-go\"\n\t\"github.com/gleanwork/api-client-go/models/components\"\n\t\"log\"\n)\n\nfunc main() {\n ctx := context.Background()\n\n s := apiclientgo.New(\n apiclientgo.WithSecurity(os.Getenv(\"GLEAN_API_TOKEN\")),\n apiclientgo.WithInstance(os.Getenv(\"GLEAN_INSTANCE\")),\n )\n\n res, err := s.Indexing.Documents.CheckAccess(ctx, components.CheckDocumentAccessRequest{\n Datasource: \"\",\n ObjectType: \"\",\n DocID: \"\",\n UserEmail: \"\",\n })\n if err != nil {\n log.Fatal(err)\n }\n if res.CheckDocumentAccessResponse != nil {\n // handle response\n }\n}" /api/index/v1/getdocumentstatus: post: deprecated: true @@ -2297,6 +2360,7 @@ paths: with Glean( api_token=os.getenv("GLEAN_API_TOKEN", ""), + instance=os.getenv("GLEAN_INSTANCE", ""), ) as g_client: g_client.indexing.permissions.authorize_beta_users(datasource="", emails=[ @@ -2313,6 +2377,7 @@ paths: const glean = new Glean({ apiToken: process.env["GLEAN_API_TOKEN"] ?? "", + instance: process.env["GLEAN_INSTANCE"] ?? "", }); async function run() { @@ -2346,6 +2411,7 @@ paths: Glean sdk = Glean.builder() .apiToken("") + .instance("") .build(); GreenlistUsersRequest req = GreenlistUsersRequest.builder() @@ -2365,7 +2431,7 @@ paths: } - lang: go label: Go (API Client) - source: "package main\n\nimport(\n\t\"context\"\n\t\"os\"\n\tapiclientgo \"github.com/gleanwork/api-client-go\"\n\t\"github.com/gleanwork/api-client-go/models/components\"\n\t\"log\"\n)\n\nfunc main() {\n ctx := context.Background()\n\n s := apiclientgo.New(\n apiclientgo.WithSecurity(os.Getenv(\"GLEAN_API_TOKEN\")),\n )\n\n res, err := s.Indexing.Permissions.AuthorizeBetaUsers(ctx, components.GreenlistUsersRequest{\n Datasource: \"\",\n Emails: []string{\n \"Neil92@gmail.com\",\n \"Alejandrin_Boyer4@hotmail.com\",\n \"Shyanne_McLaughlin95@hotmail.com\",\n },\n })\n if err != nil {\n log.Fatal(err)\n }\n if res != nil {\n // handle response\n }\n}" + source: "package main\n\nimport(\n\t\"context\"\n\t\"os\"\n\tapiclientgo \"github.com/gleanwork/api-client-go\"\n\t\"github.com/gleanwork/api-client-go/models/components\"\n\t\"log\"\n)\n\nfunc main() {\n ctx := context.Background()\n\n s := apiclientgo.New(\n apiclientgo.WithSecurity(os.Getenv(\"GLEAN_API_TOKEN\")),\n apiclientgo.WithInstance(os.Getenv(\"GLEAN_INSTANCE\")),\n )\n\n res, err := s.Indexing.Permissions.AuthorizeBetaUsers(ctx, components.GreenlistUsersRequest{\n Datasource: \"\",\n Emails: []string{\n \"Neil92@gmail.com\",\n \"Alejandrin_Boyer4@hotmail.com\",\n \"Shyanne_McLaughlin95@hotmail.com\",\n },\n })\n if err != nil {\n log.Fatal(err)\n }\n if res != nil {\n // handle response\n }\n}" /api/index/v1/adddatasource: post: summary: Add or update datasource @@ -2398,6 +2464,7 @@ paths: with Glean( api_token=os.getenv("GLEAN_API_TOKEN", ""), + instance=os.getenv("GLEAN_INSTANCE", ""), ) as g_client: g_client.indexing.datasources.add(name="", url_regex="https://example-company.datasource.com/.*", quicklinks=[ @@ -2419,6 +2486,7 @@ paths: const glean = new Glean({ apiToken: process.env["GLEAN_API_TOKEN"] ?? "", + instance: process.env["GLEAN_INSTANCE"] ?? "", }); async function run() { @@ -2458,6 +2526,7 @@ paths: Glean sdk = Glean.builder() .apiToken("") + .instance("") .build(); CustomDatasourceConfig req = CustomDatasourceConfig.builder() @@ -2483,7 +2552,7 @@ paths: } - lang: go label: Go (API Client) - source: "package main\n\nimport(\n\t\"context\"\n\t\"os\"\n\tapiclientgo \"github.com/gleanwork/api-client-go\"\n\t\"github.com/gleanwork/api-client-go/models/components\"\n\t\"log\"\n)\n\nfunc main() {\n ctx := context.Background()\n\n s := apiclientgo.New(\n apiclientgo.WithSecurity(os.Getenv(\"GLEAN_API_TOKEN\")),\n )\n\n res, err := s.Indexing.Datasources.Add(ctx, components.CustomDatasourceConfig{\n Name: \"\",\n URLRegex: apiclientgo.String(\"https://example-company.datasource.com/.*\"),\n Quicklinks: []components.Quicklink{\n components.Quicklink{\n IconConfig: &components.IconConfig{\n Color: apiclientgo.String(\"#343CED\"),\n Key: apiclientgo.String(\"person_icon\"),\n IconType: components.IconTypeGlyph.ToPointer(),\n Name: apiclientgo.String(\"user\"),\n },\n },\n },\n })\n if err != nil {\n log.Fatal(err)\n }\n if res != nil {\n // handle response\n }\n}" + source: "package main\n\nimport(\n\t\"context\"\n\t\"os\"\n\tapiclientgo \"github.com/gleanwork/api-client-go\"\n\t\"github.com/gleanwork/api-client-go/models/components\"\n\t\"log\"\n)\n\nfunc main() {\n ctx := context.Background()\n\n s := apiclientgo.New(\n apiclientgo.WithSecurity(os.Getenv(\"GLEAN_API_TOKEN\")),\n apiclientgo.WithInstance(os.Getenv(\"GLEAN_INSTANCE\")),\n )\n\n res, err := s.Indexing.Datasources.Add(ctx, components.CustomDatasourceConfig{\n Name: \"\",\n URLRegex: apiclientgo.String(\"https://example-company.datasource.com/.*\"),\n Quicklinks: []components.Quicklink{\n components.Quicklink{\n IconConfig: &components.IconConfig{\n Color: apiclientgo.String(\"#343CED\"),\n Key: apiclientgo.String(\"person_icon\"),\n IconType: components.IconTypeGlyph.ToPointer(),\n Name: apiclientgo.String(\"user\"),\n },\n },\n },\n })\n if err != nil {\n log.Fatal(err)\n }\n if res != nil {\n // handle response\n }\n}" /api/index/v1/getdatasourceconfig: post: summary: Get datasource config @@ -2522,6 +2591,7 @@ paths: with Glean( api_token=os.getenv("GLEAN_API_TOKEN", ""), + instance=os.getenv("GLEAN_INSTANCE", ""), ) as g_client: res = g_client.indexing.datasources.retrieve_config(datasource="") @@ -2535,6 +2605,7 @@ paths: const glean = new Glean({ apiToken: process.env["GLEAN_API_TOKEN"] ?? "", + instance: process.env["GLEAN_INSTANCE"] ?? "", }); async function run() { @@ -2563,6 +2634,7 @@ paths: Glean sdk = Glean.builder() .apiToken("") + .instance("") .build(); GetDatasourceConfigRequest req = GetDatasourceConfigRequest.builder() @@ -2580,7 +2652,7 @@ paths: } - lang: go label: Go (API Client) - source: "package main\n\nimport(\n\t\"context\"\n\t\"os\"\n\tapiclientgo \"github.com/gleanwork/api-client-go\"\n\t\"github.com/gleanwork/api-client-go/models/components\"\n\t\"log\"\n)\n\nfunc main() {\n ctx := context.Background()\n\n s := apiclientgo.New(\n apiclientgo.WithSecurity(os.Getenv(\"GLEAN_API_TOKEN\")),\n )\n\n res, err := s.Indexing.Datasources.RetrieveConfig(ctx, components.GetDatasourceConfigRequest{\n Datasource: \"\",\n })\n if err != nil {\n log.Fatal(err)\n }\n if res.CustomDatasourceConfig != nil {\n // handle response\n }\n}" + source: "package main\n\nimport(\n\t\"context\"\n\t\"os\"\n\tapiclientgo \"github.com/gleanwork/api-client-go\"\n\t\"github.com/gleanwork/api-client-go/models/components\"\n\t\"log\"\n)\n\nfunc main() {\n ctx := context.Background()\n\n s := apiclientgo.New(\n apiclientgo.WithSecurity(os.Getenv(\"GLEAN_API_TOKEN\")),\n apiclientgo.WithInstance(os.Getenv(\"GLEAN_INSTANCE\")),\n )\n\n res, err := s.Indexing.Datasources.RetrieveConfig(ctx, components.GetDatasourceConfigRequest{\n Datasource: \"\",\n })\n if err != nil {\n log.Fatal(err)\n }\n if res.CustomDatasourceConfig != nil {\n // handle response\n }\n}" /api/index/v1/rotatetoken: post: summary: Rotate token @@ -2610,6 +2682,7 @@ paths: with Glean( api_token=os.getenv("GLEAN_API_TOKEN", ""), + instance=os.getenv("GLEAN_INSTANCE", ""), ) as g_client: res = g_client.indexing.authentication.rotate_token() @@ -2623,6 +2696,7 @@ paths: const glean = new Glean({ apiToken: process.env["GLEAN_API_TOKEN"] ?? "", + instance: process.env["GLEAN_INSTANCE"] ?? "", }); async function run() { @@ -2648,6 +2722,7 @@ paths: Glean sdk = Glean.builder() .apiToken("") + .instance("") .build(); PostApiIndexV1RotatetokenResponse res = sdk.indexing().authentication().rotateToken() @@ -2660,7 +2735,7 @@ paths: } - lang: go label: Go (API Client) - source: "package main\n\nimport(\n\t\"context\"\n\t\"os\"\n\tapiclientgo \"github.com/gleanwork/api-client-go\"\n\t\"log\"\n)\n\nfunc main() {\n ctx := context.Background()\n\n s := apiclientgo.New(\n apiclientgo.WithSecurity(os.Getenv(\"GLEAN_API_TOKEN\")),\n )\n\n res, err := s.Indexing.Authentication.RotateToken(ctx)\n if err != nil {\n log.Fatal(err)\n }\n if res.RotateTokenResponse != nil {\n // handle response\n }\n}" + source: "package main\n\nimport(\n\t\"context\"\n\t\"os\"\n\tapiclientgo \"github.com/gleanwork/api-client-go\"\n\t\"log\"\n)\n\nfunc main() {\n ctx := context.Background()\n\n s := apiclientgo.New(\n apiclientgo.WithSecurity(os.Getenv(\"GLEAN_API_TOKEN\")),\n apiclientgo.WithInstance(os.Getenv(\"GLEAN_INSTANCE\")),\n )\n\n res, err := s.Indexing.Authentication.RotateToken(ctx)\n if err != nil {\n log.Fatal(err)\n }\n if res.RotateTokenResponse != nil {\n // handle response\n }\n}" /api/index/v1/indexemployee: post: summary: Index employee @@ -2695,6 +2770,7 @@ paths: with Glean( api_token=os.getenv("GLEAN_API_TOKEN", ""), + instance=os.getenv("GLEAN_INSTANCE", ""), ) as g_client: g_client.indexing.people.index(employee={ @@ -2716,6 +2792,7 @@ paths: const glean = new Glean({ apiToken: process.env["GLEAN_API_TOKEN"] ?? "", + instance: process.env["GLEAN_INSTANCE"] ?? "", }); async function run() { @@ -2753,6 +2830,7 @@ paths: Glean sdk = Glean.builder() .apiToken("") + .instance("") .build(); IndexEmployeeRequest req = IndexEmployeeRequest.builder() @@ -2776,7 +2854,7 @@ paths: } - lang: go label: Go (API Client) - source: "package main\n\nimport(\n\t\"context\"\n\t\"os\"\n\tapiclientgo \"github.com/gleanwork/api-client-go\"\n\t\"github.com/gleanwork/api-client-go/models/components\"\n\t\"log\"\n)\n\nfunc main() {\n ctx := context.Background()\n\n s := apiclientgo.New(\n apiclientgo.WithSecurity(os.Getenv(\"GLEAN_API_TOKEN\")),\n )\n\n res, err := s.Indexing.People.Index(ctx, components.IndexEmployeeRequest{\n Employee: components.EmployeeInfoDefinition{\n Email: \"Jerrold_Hermann@hotmail.com\",\n Department: \"\",\n DatasourceProfiles: []components.DatasourceProfile{\n components.DatasourceProfile{\n Datasource: \"github\",\n Handle: \"\",\n },\n },\n },\n })\n if err != nil {\n log.Fatal(err)\n }\n if res != nil {\n // handle response\n }\n}" + source: "package main\n\nimport(\n\t\"context\"\n\t\"os\"\n\tapiclientgo \"github.com/gleanwork/api-client-go\"\n\t\"github.com/gleanwork/api-client-go/models/components\"\n\t\"log\"\n)\n\nfunc main() {\n ctx := context.Background()\n\n s := apiclientgo.New(\n apiclientgo.WithSecurity(os.Getenv(\"GLEAN_API_TOKEN\")),\n apiclientgo.WithInstance(os.Getenv(\"GLEAN_INSTANCE\")),\n )\n\n res, err := s.Indexing.People.Index(ctx, components.IndexEmployeeRequest{\n Employee: components.EmployeeInfoDefinition{\n Email: \"Jerrold_Hermann@hotmail.com\",\n Department: \"\",\n DatasourceProfiles: []components.DatasourceProfile{\n components.DatasourceProfile{\n Datasource: \"github\",\n Handle: \"\",\n },\n },\n },\n })\n if err != nil {\n log.Fatal(err)\n }\n if res != nil {\n // handle response\n }\n}" /api/index/v1/bulkindexemployees: post: summary: Bulk index employees @@ -2811,6 +2889,7 @@ paths: with Glean( api_token=os.getenv("GLEAN_API_TOKEN", ""), + instance=os.getenv("GLEAN_INSTANCE", ""), ) as g_client: g_client.indexing.people.bulk_index(upload_id="", employees=[ @@ -2854,6 +2933,7 @@ paths: const glean = new Glean({ apiToken: process.env["GLEAN_API_TOKEN"] ?? "", + instance: process.env["GLEAN_INSTANCE"] ?? "", }); async function run() { @@ -2914,6 +2994,7 @@ paths: Glean sdk = Glean.builder() .apiToken("") + .instance("") .build(); BulkIndexEmployeesRequest req = BulkIndexEmployeesRequest.builder() @@ -2957,7 +3038,7 @@ paths: } - lang: go label: Go (API Client) - source: "package main\n\nimport(\n\t\"context\"\n\t\"os\"\n\tapiclientgo \"github.com/gleanwork/api-client-go\"\n\t\"github.com/gleanwork/api-client-go/models/components\"\n\t\"log\"\n)\n\nfunc main() {\n ctx := context.Background()\n\n s := apiclientgo.New(\n apiclientgo.WithSecurity(os.Getenv(\"GLEAN_API_TOKEN\")),\n )\n\n res, err := s.Indexing.People.BulkIndex(ctx, components.BulkIndexEmployeesRequest{\n UploadID: \"\",\n Employees: []components.EmployeeInfoDefinition{\n components.EmployeeInfoDefinition{\n Email: \"Robin.Stoltenberg@yahoo.com\",\n Department: \"\",\n DatasourceProfiles: []components.DatasourceProfile{\n components.DatasourceProfile{\n Datasource: \"github\",\n Handle: \"\",\n },\n },\n },\n components.EmployeeInfoDefinition{\n Email: \"Robin.Stoltenberg@yahoo.com\",\n Department: \"\",\n DatasourceProfiles: []components.DatasourceProfile{\n components.DatasourceProfile{\n Datasource: \"github\",\n Handle: \"\",\n },\n },\n },\n components.EmployeeInfoDefinition{\n Email: \"Robin.Stoltenberg@yahoo.com\",\n Department: \"\",\n DatasourceProfiles: []components.DatasourceProfile{\n components.DatasourceProfile{\n Datasource: \"github\",\n Handle: \"\",\n },\n },\n },\n },\n })\n if err != nil {\n log.Fatal(err)\n }\n if res != nil {\n // handle response\n }\n}" + source: "package main\n\nimport(\n\t\"context\"\n\t\"os\"\n\tapiclientgo \"github.com/gleanwork/api-client-go\"\n\t\"github.com/gleanwork/api-client-go/models/components\"\n\t\"log\"\n)\n\nfunc main() {\n ctx := context.Background()\n\n s := apiclientgo.New(\n apiclientgo.WithSecurity(os.Getenv(\"GLEAN_API_TOKEN\")),\n apiclientgo.WithInstance(os.Getenv(\"GLEAN_INSTANCE\")),\n )\n\n res, err := s.Indexing.People.BulkIndex(ctx, components.BulkIndexEmployeesRequest{\n UploadID: \"\",\n Employees: []components.EmployeeInfoDefinition{\n components.EmployeeInfoDefinition{\n Email: \"Robin.Stoltenberg@yahoo.com\",\n Department: \"\",\n DatasourceProfiles: []components.DatasourceProfile{\n components.DatasourceProfile{\n Datasource: \"github\",\n Handle: \"\",\n },\n },\n },\n components.EmployeeInfoDefinition{\n Email: \"Robin.Stoltenberg@yahoo.com\",\n Department: \"\",\n DatasourceProfiles: []components.DatasourceProfile{\n components.DatasourceProfile{\n Datasource: \"github\",\n Handle: \"\",\n },\n },\n },\n components.EmployeeInfoDefinition{\n Email: \"Robin.Stoltenberg@yahoo.com\",\n Department: \"\",\n DatasourceProfiles: []components.DatasourceProfile{\n components.DatasourceProfile{\n Datasource: \"github\",\n Handle: \"\",\n },\n },\n },\n },\n })\n if err != nil {\n log.Fatal(err)\n }\n if res != nil {\n // handle response\n }\n}" /api/index/v1/indexemployeelist: {} /api/index/v1/processallemployeesandteams: post: @@ -2987,6 +3068,7 @@ paths: with Glean( api_token=os.getenv("GLEAN_API_TOKEN", ""), + instance=os.getenv("GLEAN_INSTANCE", ""), ) as g_client: g_client.indexing.people.process_all_employees_and_teams() @@ -2999,6 +3081,7 @@ paths: const glean = new Glean({ apiToken: process.env["GLEAN_API_TOKEN"] ?? "", + instance: process.env["GLEAN_INSTANCE"] ?? "", }); async function run() { @@ -3023,6 +3106,7 @@ paths: Glean sdk = Glean.builder() .apiToken("") + .instance("") .build(); PostApiIndexV1ProcessallemployeesandteamsResponse res = sdk.indexing().people().processAllEmployeesAndTeams() @@ -3033,7 +3117,7 @@ paths: } - lang: go label: Go (API Client) - source: "package main\n\nimport(\n\t\"context\"\n\t\"os\"\n\tapiclientgo \"github.com/gleanwork/api-client-go\"\n\t\"log\"\n)\n\nfunc main() {\n ctx := context.Background()\n\n s := apiclientgo.New(\n apiclientgo.WithSecurity(os.Getenv(\"GLEAN_API_TOKEN\")),\n )\n\n res, err := s.Indexing.People.ProcessAllEmployeesAndTeams(ctx)\n if err != nil {\n log.Fatal(err)\n }\n if res != nil {\n // handle response\n }\n}" + source: "package main\n\nimport(\n\t\"context\"\n\t\"os\"\n\tapiclientgo \"github.com/gleanwork/api-client-go\"\n\t\"log\"\n)\n\nfunc main() {\n ctx := context.Background()\n\n s := apiclientgo.New(\n apiclientgo.WithSecurity(os.Getenv(\"GLEAN_API_TOKEN\")),\n apiclientgo.WithInstance(os.Getenv(\"GLEAN_INSTANCE\")),\n )\n\n res, err := s.Indexing.People.ProcessAllEmployeesAndTeams(ctx)\n if err != nil {\n log.Fatal(err)\n }\n if res != nil {\n // handle response\n }\n}" /api/index/v1/deleteemployee: post: summary: Delete employee @@ -3068,6 +3152,7 @@ paths: with Glean( api_token=os.getenv("GLEAN_API_TOKEN", ""), + instance=os.getenv("GLEAN_INSTANCE", ""), ) as g_client: g_client.indexing.people.delete(employee_email="") @@ -3080,6 +3165,7 @@ paths: const glean = new Glean({ apiToken: process.env["GLEAN_API_TOKEN"] ?? "", + instance: process.env["GLEAN_INSTANCE"] ?? "", }); async function run() { @@ -3107,6 +3193,7 @@ paths: Glean sdk = Glean.builder() .apiToken("") + .instance("") .build(); DeleteEmployeeRequest req = DeleteEmployeeRequest.builder() @@ -3122,7 +3209,7 @@ paths: } - lang: go label: Go (API Client) - source: "package main\n\nimport(\n\t\"context\"\n\t\"os\"\n\tapiclientgo \"github.com/gleanwork/api-client-go\"\n\t\"github.com/gleanwork/api-client-go/models/components\"\n\t\"log\"\n)\n\nfunc main() {\n ctx := context.Background()\n\n s := apiclientgo.New(\n apiclientgo.WithSecurity(os.Getenv(\"GLEAN_API_TOKEN\")),\n )\n\n res, err := s.Indexing.People.Delete(ctx, components.DeleteEmployeeRequest{\n EmployeeEmail: \"\",\n })\n if err != nil {\n log.Fatal(err)\n }\n if res != nil {\n // handle response\n }\n}" + source: "package main\n\nimport(\n\t\"context\"\n\t\"os\"\n\tapiclientgo \"github.com/gleanwork/api-client-go\"\n\t\"github.com/gleanwork/api-client-go/models/components\"\n\t\"log\"\n)\n\nfunc main() {\n ctx := context.Background()\n\n s := apiclientgo.New(\n apiclientgo.WithSecurity(os.Getenv(\"GLEAN_API_TOKEN\")),\n apiclientgo.WithInstance(os.Getenv(\"GLEAN_INSTANCE\")),\n )\n\n res, err := s.Indexing.People.Delete(ctx, components.DeleteEmployeeRequest{\n EmployeeEmail: \"\",\n })\n if err != nil {\n log.Fatal(err)\n }\n if res != nil {\n // handle response\n }\n}" /api/index/v1/indexteam: post: summary: Index team @@ -3157,6 +3244,7 @@ paths: with Glean( api_token=os.getenv("GLEAN_API_TOKEN", ""), + instance=os.getenv("GLEAN_INSTANCE", ""), ) as g_client: g_client.indexing.people.index_team(team={ @@ -3191,6 +3279,7 @@ paths: const glean = new Glean({ apiToken: process.env["GLEAN_API_TOKEN"] ?? "", + instance: process.env["GLEAN_INSTANCE"] ?? "", }); async function run() { @@ -3241,6 +3330,7 @@ paths: Glean sdk = Glean.builder() .apiToken("") + .instance("") .build(); IndexTeamRequest req = IndexTeamRequest.builder() @@ -3276,7 +3366,7 @@ paths: } - lang: go label: Go (API Client) - source: "package main\n\nimport(\n\t\"context\"\n\t\"os\"\n\tapiclientgo \"github.com/gleanwork/api-client-go\"\n\t\"github.com/gleanwork/api-client-go/models/components\"\n\t\"log\"\n)\n\nfunc main() {\n ctx := context.Background()\n\n s := apiclientgo.New(\n apiclientgo.WithSecurity(os.Getenv(\"GLEAN_API_TOKEN\")),\n )\n\n res, err := s.Indexing.People.IndexTeam(ctx, components.IndexTeamRequest{\n Team: components.TeamInfoDefinition{\n ID: \"\",\n Name: \"\",\n DatasourceProfiles: []components.DatasourceProfile{\n components.DatasourceProfile{\n Datasource: \"github\",\n Handle: \"\",\n },\n components.DatasourceProfile{\n Datasource: \"github\",\n Handle: \"\",\n },\n components.DatasourceProfile{\n Datasource: \"github\",\n Handle: \"\",\n },\n },\n Members: []components.TeamMember{\n components.TeamMember{\n Email: \"Nasir.Hilll73@hotmail.com\",\n },\n },\n },\n })\n if err != nil {\n log.Fatal(err)\n }\n if res != nil {\n // handle response\n }\n}" + source: "package main\n\nimport(\n\t\"context\"\n\t\"os\"\n\tapiclientgo \"github.com/gleanwork/api-client-go\"\n\t\"github.com/gleanwork/api-client-go/models/components\"\n\t\"log\"\n)\n\nfunc main() {\n ctx := context.Background()\n\n s := apiclientgo.New(\n apiclientgo.WithSecurity(os.Getenv(\"GLEAN_API_TOKEN\")),\n apiclientgo.WithInstance(os.Getenv(\"GLEAN_INSTANCE\")),\n )\n\n res, err := s.Indexing.People.IndexTeam(ctx, components.IndexTeamRequest{\n Team: components.TeamInfoDefinition{\n ID: \"\",\n Name: \"\",\n DatasourceProfiles: []components.DatasourceProfile{\n components.DatasourceProfile{\n Datasource: \"github\",\n Handle: \"\",\n },\n components.DatasourceProfile{\n Datasource: \"github\",\n Handle: \"\",\n },\n components.DatasourceProfile{\n Datasource: \"github\",\n Handle: \"\",\n },\n },\n Members: []components.TeamMember{\n components.TeamMember{\n Email: \"Nasir.Hilll73@hotmail.com\",\n },\n },\n },\n })\n if err != nil {\n log.Fatal(err)\n }\n if res != nil {\n // handle response\n }\n}" /api/index/v1/deleteteam: post: summary: Delete team @@ -3311,6 +3401,7 @@ paths: with Glean( api_token=os.getenv("GLEAN_API_TOKEN", ""), + instance=os.getenv("GLEAN_INSTANCE", ""), ) as g_client: g_client.indexing.people.delete_team(id="") @@ -3323,6 +3414,7 @@ paths: const glean = new Glean({ apiToken: process.env["GLEAN_API_TOKEN"] ?? "", + instance: process.env["GLEAN_INSTANCE"] ?? "", }); async function run() { @@ -3350,6 +3442,7 @@ paths: Glean sdk = Glean.builder() .apiToken("") + .instance("") .build(); DeleteTeamRequest req = DeleteTeamRequest.builder() @@ -3365,7 +3458,7 @@ paths: } - lang: go label: Go (API Client) - source: "package main\n\nimport(\n\t\"context\"\n\t\"os\"\n\tapiclientgo \"github.com/gleanwork/api-client-go\"\n\t\"github.com/gleanwork/api-client-go/models/components\"\n\t\"log\"\n)\n\nfunc main() {\n ctx := context.Background()\n\n s := apiclientgo.New(\n apiclientgo.WithSecurity(os.Getenv(\"GLEAN_API_TOKEN\")),\n )\n\n res, err := s.Indexing.People.DeleteTeam(ctx, components.DeleteTeamRequest{\n ID: \"\",\n })\n if err != nil {\n log.Fatal(err)\n }\n if res != nil {\n // handle response\n }\n}" + source: "package main\n\nimport(\n\t\"context\"\n\t\"os\"\n\tapiclientgo \"github.com/gleanwork/api-client-go\"\n\t\"github.com/gleanwork/api-client-go/models/components\"\n\t\"log\"\n)\n\nfunc main() {\n ctx := context.Background()\n\n s := apiclientgo.New(\n apiclientgo.WithSecurity(os.Getenv(\"GLEAN_API_TOKEN\")),\n apiclientgo.WithInstance(os.Getenv(\"GLEAN_INSTANCE\")),\n )\n\n res, err := s.Indexing.People.DeleteTeam(ctx, components.DeleteTeamRequest{\n ID: \"\",\n })\n if err != nil {\n log.Fatal(err)\n }\n if res != nil {\n // handle response\n }\n}" /api/index/v1/bulkindexteams: post: summary: Bulk index teams @@ -3400,6 +3493,7 @@ paths: with Glean( api_token=os.getenv("GLEAN_API_TOKEN", ""), + instance=os.getenv("GLEAN_INSTANCE", ""), ) as g_client: g_client.indexing.people.bulk_index_teams(upload_id="", teams=[ @@ -3458,6 +3552,7 @@ paths: const glean = new Glean({ apiToken: process.env["GLEAN_API_TOKEN"] ?? "", + instance: process.env["GLEAN_INSTANCE"] ?? "", }); async function run() { @@ -3533,6 +3628,7 @@ paths: Glean sdk = Glean.builder() .apiToken("") + .instance("") .build(); BulkIndexTeamsRequest req = BulkIndexTeamsRequest.builder() @@ -3591,7 +3687,7 @@ paths: } - lang: go label: Go (API Client) - source: "package main\n\nimport(\n\t\"context\"\n\t\"os\"\n\tapiclientgo \"github.com/gleanwork/api-client-go\"\n\t\"github.com/gleanwork/api-client-go/models/components\"\n\t\"log\"\n)\n\nfunc main() {\n ctx := context.Background()\n\n s := apiclientgo.New(\n apiclientgo.WithSecurity(os.Getenv(\"GLEAN_API_TOKEN\")),\n )\n\n res, err := s.Indexing.People.BulkIndexTeams(ctx, components.BulkIndexTeamsRequest{\n UploadID: \"\",\n Teams: []components.TeamInfoDefinition{\n components.TeamInfoDefinition{\n ID: \"\",\n Name: \"\",\n DatasourceProfiles: []components.DatasourceProfile{\n components.DatasourceProfile{\n Datasource: \"github\",\n Handle: \"\",\n },\n components.DatasourceProfile{\n Datasource: \"github\",\n Handle: \"\",\n },\n },\n Members: []components.TeamMember{},\n },\n components.TeamInfoDefinition{\n ID: \"\",\n Name: \"\",\n DatasourceProfiles: []components.DatasourceProfile{\n components.DatasourceProfile{\n Datasource: \"github\",\n Handle: \"\",\n },\n components.DatasourceProfile{\n Datasource: \"github\",\n Handle: \"\",\n },\n },\n Members: []components.TeamMember{},\n },\n components.TeamInfoDefinition{\n ID: \"\",\n Name: \"\",\n DatasourceProfiles: []components.DatasourceProfile{\n components.DatasourceProfile{\n Datasource: \"github\",\n Handle: \"\",\n },\n components.DatasourceProfile{\n Datasource: \"github\",\n Handle: \"\",\n },\n },\n Members: []components.TeamMember{},\n },\n },\n })\n if err != nil {\n log.Fatal(err)\n }\n if res != nil {\n // handle response\n }\n}" + source: "package main\n\nimport(\n\t\"context\"\n\t\"os\"\n\tapiclientgo \"github.com/gleanwork/api-client-go\"\n\t\"github.com/gleanwork/api-client-go/models/components\"\n\t\"log\"\n)\n\nfunc main() {\n ctx := context.Background()\n\n s := apiclientgo.New(\n apiclientgo.WithSecurity(os.Getenv(\"GLEAN_API_TOKEN\")),\n apiclientgo.WithInstance(os.Getenv(\"GLEAN_INSTANCE\")),\n )\n\n res, err := s.Indexing.People.BulkIndexTeams(ctx, components.BulkIndexTeamsRequest{\n UploadID: \"\",\n Teams: []components.TeamInfoDefinition{\n components.TeamInfoDefinition{\n ID: \"\",\n Name: \"\",\n DatasourceProfiles: []components.DatasourceProfile{\n components.DatasourceProfile{\n Datasource: \"github\",\n Handle: \"\",\n },\n components.DatasourceProfile{\n Datasource: \"github\",\n Handle: \"\",\n },\n },\n Members: []components.TeamMember{},\n },\n components.TeamInfoDefinition{\n ID: \"\",\n Name: \"\",\n DatasourceProfiles: []components.DatasourceProfile{\n components.DatasourceProfile{\n Datasource: \"github\",\n Handle: \"\",\n },\n components.DatasourceProfile{\n Datasource: \"github\",\n Handle: \"\",\n },\n },\n Members: []components.TeamMember{},\n },\n components.TeamInfoDefinition{\n ID: \"\",\n Name: \"\",\n DatasourceProfiles: []components.DatasourceProfile{\n components.DatasourceProfile{\n Datasource: \"github\",\n Handle: \"\",\n },\n components.DatasourceProfile{\n Datasource: \"github\",\n Handle: \"\",\n },\n },\n Members: []components.TeamMember{},\n },\n },\n })\n if err != nil {\n log.Fatal(err)\n }\n if res != nil {\n // handle response\n }\n}" /api/index/v1/bulkindexshortcuts: post: summary: Bulk index external shortcuts @@ -3626,6 +3722,7 @@ paths: with Glean( api_token=os.getenv("GLEAN_API_TOKEN", ""), + instance=os.getenv("GLEAN_INSTANCE", ""), ) as g_client: g_client.indexing.shortcuts.bulk_index(upload_id="", shortcuts=[ @@ -3651,6 +3748,7 @@ paths: const glean = new Glean({ apiToken: process.env["GLEAN_API_TOKEN"] ?? "", + instance: process.env["GLEAN_INSTANCE"] ?? "", }); async function run() { @@ -3694,6 +3792,7 @@ paths: Glean sdk = Glean.builder() .apiToken("") + .instance("") .build(); BulkIndexShortcutsRequest req = BulkIndexShortcutsRequest.builder() @@ -3722,7 +3821,7 @@ paths: } - lang: go label: Go (API Client) - source: "package main\n\nimport(\n\t\"context\"\n\t\"os\"\n\tapiclientgo \"github.com/gleanwork/api-client-go\"\n\t\"github.com/gleanwork/api-client-go/models/components\"\n\t\"log\"\n)\n\nfunc main() {\n ctx := context.Background()\n\n s := apiclientgo.New(\n apiclientgo.WithSecurity(os.Getenv(\"GLEAN_API_TOKEN\")),\n )\n\n res, err := s.Indexing.Shortcuts.BulkIndex(ctx, components.BulkIndexShortcutsRequest{\n UploadID: \"\",\n Shortcuts: []components.ExternalShortcut{\n components.ExternalShortcut{\n InputAlias: \"\",\n DestinationURL: \"https://plump-tune-up.biz/\",\n CreatedBy: \"\",\n IntermediateURL: \"https://lean-sightseeing.net\",\n },\n components.ExternalShortcut{\n InputAlias: \"\",\n DestinationURL: \"https://plump-tune-up.biz/\",\n CreatedBy: \"\",\n IntermediateURL: \"https://lean-sightseeing.net\",\n },\n },\n })\n if err != nil {\n log.Fatal(err)\n }\n if res != nil {\n // handle response\n }\n}" + source: "package main\n\nimport(\n\t\"context\"\n\t\"os\"\n\tapiclientgo \"github.com/gleanwork/api-client-go\"\n\t\"github.com/gleanwork/api-client-go/models/components\"\n\t\"log\"\n)\n\nfunc main() {\n ctx := context.Background()\n\n s := apiclientgo.New(\n apiclientgo.WithSecurity(os.Getenv(\"GLEAN_API_TOKEN\")),\n apiclientgo.WithInstance(os.Getenv(\"GLEAN_INSTANCE\")),\n )\n\n res, err := s.Indexing.Shortcuts.BulkIndex(ctx, components.BulkIndexShortcutsRequest{\n UploadID: \"\",\n Shortcuts: []components.ExternalShortcut{\n components.ExternalShortcut{\n InputAlias: \"\",\n DestinationURL: \"https://plump-tune-up.biz/\",\n CreatedBy: \"\",\n IntermediateURL: \"https://lean-sightseeing.net\",\n },\n components.ExternalShortcut{\n InputAlias: \"\",\n DestinationURL: \"https://plump-tune-up.biz/\",\n CreatedBy: \"\",\n IntermediateURL: \"https://lean-sightseeing.net\",\n },\n },\n })\n if err != nil {\n log.Fatal(err)\n }\n if res != nil {\n // handle response\n }\n}" /api/index/v1/uploadshortcuts: post: summary: Upload shortcuts @@ -3757,6 +3856,7 @@ paths: with Glean( api_token=os.getenv("GLEAN_API_TOKEN", ""), + instance=os.getenv("GLEAN_INSTANCE", ""), ) as g_client: g_client.indexing.shortcuts.upload(upload_id="", shortcuts=[ @@ -3785,6 +3885,7 @@ paths: const glean = new Glean({ apiToken: process.env["GLEAN_API_TOKEN"] ?? "", + instance: process.env["GLEAN_INSTANCE"] ?? "", }); async function run() { @@ -3831,6 +3932,7 @@ paths: Glean sdk = Glean.builder() .apiToken("") + .instance("") .build(); UploadShortcutsRequest req = UploadShortcutsRequest.builder() @@ -3862,7 +3964,7 @@ paths: } - lang: go label: Go (API Client) - source: "package main\n\nimport(\n\t\"context\"\n\t\"os\"\n\tapiclientgo \"github.com/gleanwork/api-client-go\"\n\t\"github.com/gleanwork/api-client-go/models/components\"\n\t\"log\"\n)\n\nfunc main() {\n ctx := context.Background()\n\n s := apiclientgo.New(\n apiclientgo.WithSecurity(os.Getenv(\"GLEAN_API_TOKEN\")),\n )\n\n res, err := s.Indexing.Shortcuts.Upload(ctx, components.UploadShortcutsRequest{\n UploadID: \"\",\n Shortcuts: []components.IndexingShortcut{\n components.IndexingShortcut{\n InputAlias: \"\",\n DestinationURL: \"https://majestic-pharmacopoeia.info/\",\n CreatedBy: \"\",\n },\n components.IndexingShortcut{\n InputAlias: \"\",\n DestinationURL: \"https://majestic-pharmacopoeia.info/\",\n CreatedBy: \"\",\n },\n components.IndexingShortcut{\n InputAlias: \"\",\n DestinationURL: \"https://majestic-pharmacopoeia.info/\",\n CreatedBy: \"\",\n },\n },\n })\n if err != nil {\n log.Fatal(err)\n }\n if res != nil {\n // handle response\n }\n}" + source: "package main\n\nimport(\n\t\"context\"\n\t\"os\"\n\tapiclientgo \"github.com/gleanwork/api-client-go\"\n\t\"github.com/gleanwork/api-client-go/models/components\"\n\t\"log\"\n)\n\nfunc main() {\n ctx := context.Background()\n\n s := apiclientgo.New(\n apiclientgo.WithSecurity(os.Getenv(\"GLEAN_API_TOKEN\")),\n apiclientgo.WithInstance(os.Getenv(\"GLEAN_INSTANCE\")),\n )\n\n res, err := s.Indexing.Shortcuts.Upload(ctx, components.UploadShortcutsRequest{\n UploadID: \"\",\n Shortcuts: []components.IndexingShortcut{\n components.IndexingShortcut{\n InputAlias: \"\",\n DestinationURL: \"https://majestic-pharmacopoeia.info/\",\n CreatedBy: \"\",\n },\n components.IndexingShortcut{\n InputAlias: \"\",\n DestinationURL: \"https://majestic-pharmacopoeia.info/\",\n CreatedBy: \"\",\n },\n components.IndexingShortcut{\n InputAlias: \"\",\n DestinationURL: \"https://majestic-pharmacopoeia.info/\",\n CreatedBy: \"\",\n },\n },\n })\n if err != nil {\n log.Fatal(err)\n }\n if res != nil {\n // handle response\n }\n}" components: securitySchemes: APIToken: