@googleapis/integrations 10.0.1 → 10.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/v2.ts ADDED
@@ -0,0 +1,3368 @@
1
+ // Copyright 2020 Google LLC
2
+ // Licensed under the Apache License, Version 2.0 (the "License");
3
+ // you may not use this file except in compliance with the License.
4
+ // You may obtain a copy of the License at
5
+ //
6
+ // http://www.apache.org/licenses/LICENSE-2.0
7
+ //
8
+ // Unless required by applicable law or agreed to in writing, software
9
+ // distributed under the License is distributed on an "AS IS" BASIS,
10
+ // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11
+ // See the License for the specific language governing permissions and
12
+ // limitations under the License.
13
+
14
+ /* eslint-disable @typescript-eslint/no-explicit-any */
15
+ /* eslint-disable @typescript-eslint/no-unused-vars */
16
+ /* eslint-disable @typescript-eslint/no-empty-interface */
17
+ /* eslint-disable @typescript-eslint/no-namespace */
18
+ /* eslint-disable no-irregular-whitespace */
19
+
20
+ import {
21
+ OAuth2Client,
22
+ JWT,
23
+ Compute,
24
+ UserRefreshClient,
25
+ BaseExternalAccountClient,
26
+ GaxiosResponseWithHTTP2,
27
+ GoogleConfigurable,
28
+ createAPIRequest,
29
+ MethodOptions,
30
+ StreamMethodOptions,
31
+ GlobalOptions,
32
+ GoogleAuth,
33
+ BodyResponseCallback,
34
+ APIRequestContext,
35
+ } from 'googleapis-common';
36
+ import {Readable} from 'stream';
37
+
38
+ export namespace integrations_v2 {
39
+ export interface Options extends GlobalOptions {
40
+ version: 'v2';
41
+ }
42
+
43
+ interface StandardParameters {
44
+ /**
45
+ * Auth client or API Key for the request
46
+ */
47
+ auth?:
48
+ | string
49
+ | OAuth2Client
50
+ | JWT
51
+ | Compute
52
+ | UserRefreshClient
53
+ | BaseExternalAccountClient
54
+ | GoogleAuth;
55
+
56
+ /**
57
+ * V1 error format.
58
+ */
59
+ '$.xgafv'?: string;
60
+ /**
61
+ * OAuth access token.
62
+ */
63
+ access_token?: string;
64
+ /**
65
+ * Data format for response.
66
+ */
67
+ alt?: string;
68
+ /**
69
+ * JSONP
70
+ */
71
+ callback?: string;
72
+ /**
73
+ * Selector specifying which fields to include in a partial response.
74
+ */
75
+ fields?: string;
76
+ /**
77
+ * API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
78
+ */
79
+ key?: string;
80
+ /**
81
+ * OAuth 2.0 token for the current user.
82
+ */
83
+ oauth_token?: string;
84
+ /**
85
+ * Returns response with indentations and line breaks.
86
+ */
87
+ prettyPrint?: boolean;
88
+ /**
89
+ * Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
90
+ */
91
+ quotaUser?: string;
92
+ /**
93
+ * Legacy upload protocol for media (e.g. "media", "multipart").
94
+ */
95
+ uploadType?: string;
96
+ /**
97
+ * Upload protocol for media (e.g. "raw", "multipart").
98
+ */
99
+ upload_protocol?: string;
100
+ }
101
+
102
+ /**
103
+ * Application Integration API
104
+ *
105
+ *
106
+ *
107
+ * @example
108
+ * ```js
109
+ * const {google} = require('googleapis');
110
+ * const integrations = google.integrations('v2');
111
+ * ```
112
+ */
113
+ export class Integrations {
114
+ context: APIRequestContext;
115
+ projects: Resource$Projects;
116
+
117
+ constructor(options: GlobalOptions, google?: GoogleConfigurable) {
118
+ this.context = {
119
+ _options: options || {},
120
+ google,
121
+ };
122
+
123
+ this.projects = new Resource$Projects(this.context);
124
+ }
125
+ }
126
+
127
+ export interface Schema$EnterpriseCrmEventbusAuthconfigAuthConfigTaskParam {
128
+ /**
129
+ * Defines the credential types to be supported as Task may restrict specific types to use, e.g. Cloud SQL Task will use username/password type only.
130
+ */
131
+ allowedCredentialTypes?: string[] | null;
132
+ allowedServiceAccountInContext?: boolean | null;
133
+ /**
134
+ * UUID of the AuthConfig.
135
+ */
136
+ authConfigId?: string | null;
137
+ /**
138
+ * A space-delimited list of requested scope permissions.
139
+ */
140
+ scope?: string | null;
141
+ useServiceAccountInContext?: boolean | null;
142
+ }
143
+ /**
144
+ * Email address along with optional name and tokens. These tokens will be substituted for the variables in the form of [{var_name\}], where var_name could be any string of no more than 32 bytes.
145
+ */
146
+ export interface Schema$EnterpriseCrmEventbusProtoAddress {
147
+ /**
148
+ * Required.
149
+ */
150
+ email?: string | null;
151
+ name?: string | null;
152
+ tokens?: Schema$EnterpriseCrmEventbusProtoToken[];
153
+ }
154
+ export interface Schema$EnterpriseCrmEventbusProtoBaseFunction {
155
+ functionName?: string | null;
156
+ }
157
+ export interface Schema$EnterpriseCrmEventbusProtoBaseValue {
158
+ /**
159
+ * Start with a function that does not build on existing values. Eg. CurrentTime, Min, Max, Exists, etc.
160
+ */
161
+ baseFunction?: Schema$EnterpriseCrmEventbusProtoFunction;
162
+ /**
163
+ * Start with a literal value.
164
+ */
165
+ literalValue?: Schema$EnterpriseCrmEventbusProtoParameterValueType;
166
+ /**
167
+ * Start with a reference value to dereference.
168
+ */
169
+ referenceValue?: string | null;
170
+ }
171
+ export interface Schema$EnterpriseCrmEventbusProtoBooleanArrayFunction {
172
+ functionName?: string | null;
173
+ }
174
+ export interface Schema$EnterpriseCrmEventbusProtoBooleanFunction {
175
+ functionName?: string | null;
176
+ }
177
+ export interface Schema$EnterpriseCrmEventbusProtoBooleanParameterArray {
178
+ booleanValues?: boolean[] | null;
179
+ }
180
+ export interface Schema$EnterpriseCrmEventbusProtoBuganizerNotification {
181
+ /**
182
+ * Whom to assign the new bug. Optional.
183
+ */
184
+ assigneeEmailAddress?: string | null;
185
+ /**
186
+ * ID of the buganizer component within which to create a new issue. Required.
187
+ */
188
+ componentId?: string | null;
189
+ /**
190
+ * ID of the buganizer template to use. Optional.
191
+ */
192
+ templateId?: string | null;
193
+ /**
194
+ * Title of the issue to be created. Required.
195
+ */
196
+ title?: string | null;
197
+ }
198
+ export interface Schema$EnterpriseCrmEventbusProtoCloudKmsConfig {
199
+ /**
200
+ * Optional. The id of GCP project where the KMS key is stored. If not provided, assume the key is stored in the same GCP project defined in Client (tag 14).
201
+ */
202
+ gcpProjectId?: string | null;
203
+ /**
204
+ * A Cloud KMS key is a named object containing one or more key versions, along with metadata for the key. A key exists on exactly one key ring tied to a specific location.
205
+ */
206
+ keyName?: string | null;
207
+ /**
208
+ * A key ring organizes keys in a specific Google Cloud location and allows you to manage access control on groups of keys. A key ring's name does not need to be unique across a Google Cloud project, but must be unique within a given location.
209
+ */
210
+ keyRingName?: string | null;
211
+ /**
212
+ * Optional. Each version of a key contains key material used for encryption or signing. A key's version is represented by an integer, starting at 1. To decrypt data or verify a signature, you must use the same key version that was used to encrypt or sign the data.
213
+ */
214
+ keyVersionName?: string | null;
215
+ /**
216
+ * Location name of the key ring, e.g. "us-west1".
217
+ */
218
+ locationName?: string | null;
219
+ /**
220
+ * Optional. The service account used for authentication of this KMS key. If this is not provided, the service account in Client.clientSource will be used.
221
+ */
222
+ serviceAccount?: string | null;
223
+ }
224
+ export interface Schema$EnterpriseCrmEventbusProtoConnectorsConnection {
225
+ /**
226
+ * Connection name Format: projects/{project\}/locations/{location\}/connections/{connection\}
227
+ */
228
+ connectionName?: string | null;
229
+ /**
230
+ * Connector version Format: projects/{project\}/locations/{location\}/providers/{provider\}/connectors/{connector\}/versions/{version\}
231
+ */
232
+ connectorVersion?: string | null;
233
+ /**
234
+ * The name of the Hostname of the Service Directory service with TLS if used.
235
+ */
236
+ host?: string | null;
237
+ /**
238
+ * Service name Format: projects/{project\}/locations/{location\}/namespaces/{namespace\}/services/{service\}
239
+ */
240
+ serviceName?: string | null;
241
+ }
242
+ export interface Schema$EnterpriseCrmEventbusProtoConnectorsGenericConnectorTaskConfig {
243
+ /**
244
+ * User-selected connection.
245
+ */
246
+ connection?: Schema$EnterpriseCrmEventbusProtoConnectorsConnection;
247
+ /**
248
+ * Operation to perform using the configured connection.
249
+ */
250
+ operation?: string | null;
251
+ }
252
+ export interface Schema$EnterpriseCrmEventbusProtoCustomSuspensionRequest {
253
+ /**
254
+ * Request to fire an event containing the SuspensionInfo message.
255
+ */
256
+ postToQueueWithTriggerIdRequest?: Schema$GoogleInternalCloudCrmEventbusV3PostToQueueWithTriggerIdRequest;
257
+ /**
258
+ * In the fired event, set the SuspensionInfo message as the value for this key.
259
+ */
260
+ suspensionInfoEventParameterKey?: string | null;
261
+ }
262
+ export interface Schema$EnterpriseCrmEventbusProtoDoubleArrayFunction {
263
+ functionName?: string | null;
264
+ }
265
+ export interface Schema$EnterpriseCrmEventbusProtoDoubleFunction {
266
+ functionName?: string | null;
267
+ }
268
+ export interface Schema$EnterpriseCrmEventbusProtoDoubleParameterArray {
269
+ doubleValues?: number[] | null;
270
+ }
271
+ /**
272
+ * LINT.IfChange This message is used for processing and persisting (when applicable) key value pair parameters for each event in the event bus. Please see
273
+ */
274
+ export interface Schema$EnterpriseCrmEventbusProtoEventParameters {
275
+ /**
276
+ * Parameters are a part of Event and can be used to communicate between different tasks that are part of the same integration execution.
277
+ */
278
+ parameters?: Schema$EnterpriseCrmEventbusProtoParameterEntry[];
279
+ }
280
+ /**
281
+ * Message that helps aggregate all sub-executions triggered by one execution and keeps track of child-parent relationships.
282
+ */
283
+ export interface Schema$EnterpriseCrmEventbusProtoExecutionTraceInfo {
284
+ /**
285
+ * Parent event execution info id that triggers the current execution through SubWorkflowExecutorTask.
286
+ */
287
+ parentEventExecutionInfoId?: string | null;
288
+ /**
289
+ * Used to aggregate ExecutionTraceInfo.
290
+ */
291
+ traceId?: string | null;
292
+ }
293
+ /**
294
+ * Represents external traffic type and id.
295
+ */
296
+ export interface Schema$EnterpriseCrmEventbusProtoExternalTraffic {
297
+ /**
298
+ * Indicates the client enables internal IP feature, this is applicable for internal clients only.
299
+ */
300
+ enableInternalIp?: boolean | null;
301
+ /**
302
+ * User’s GCP project id the traffic is referring to.
303
+ */
304
+ gcpProjectId?: string | null;
305
+ /**
306
+ * User’s GCP project number the traffic is referring to.
307
+ */
308
+ gcpProjectNumber?: string | null;
309
+ /**
310
+ * Location for the user's request.
311
+ */
312
+ location?: string | null;
313
+ /**
314
+ * Enqueue the execution request due to quota issue
315
+ */
316
+ retryRequestForQuota?: boolean | null;
317
+ source?: string | null;
318
+ }
319
+ /**
320
+ * Information about the value and type of the field.
321
+ */
322
+ export interface Schema$EnterpriseCrmEventbusProtoField {
323
+ /**
324
+ * By default, if the cardinality is unspecified the field is considered required while mapping.
325
+ */
326
+ cardinality?: string | null;
327
+ /**
328
+ * This holds the default values for the fields. This value is supplied by user so may or may not contain PII or SPII data.
329
+ */
330
+ defaultValue?: Schema$EnterpriseCrmEventbusProtoParameterValueType;
331
+ /**
332
+ * Specifies the data type of the field.
333
+ */
334
+ fieldType?: string | null;
335
+ /**
336
+ * Optional. The fully qualified proto name (e.g. enterprise.crm.storage.Account). Required for output field of type PROTO_VALUE or PROTO_ARRAY. For e.g., if input field_type is BYTES and output field_type is PROTO_VALUE, then fully qualified proto type url should be provided to parse the input bytes. If field_type is *_ARRAY, then all the converted protos are of the same type.
337
+ */
338
+ protoDefPath?: string | null;
339
+ /**
340
+ * This holds the reference key of the workflow or task parameter. 1. Any workflow parameter, for e.g. $workflowParam1$. 2. Any task input or output parameter, for e.g. $task1_param1$. 3. Any workflow or task parameters with subfield references, for e.g., $task1_param1.employee.id$
341
+ */
342
+ referenceKey?: string | null;
343
+ /**
344
+ * This is the transform expression to fetch the input field value. for e.g. $param1$.CONCAT('test'). Keep points - 1. Only input field can have a transform expression. 2. If a transform expression is provided, reference_key will be ignored. 3. If no value is returned after evaluation of transform expression, default_value can be mapped if provided. 4. The field_type should be the type of the final object returned after the transform expression is evaluated. Scrubs the transform expression before logging as value provided by user so may or may not contain PII or SPII data.
345
+ */
346
+ transformExpression?: Schema$EnterpriseCrmEventbusProtoTransformExpression;
347
+ }
348
+ /**
349
+ * Field Mapping Config to map multiple output fields values from input fields values.
350
+ */
351
+ export interface Schema$EnterpriseCrmEventbusProtoFieldMappingConfig {
352
+ mappedFields?: Schema$EnterpriseCrmEventbusProtoMappedField[];
353
+ }
354
+ export interface Schema$EnterpriseCrmEventbusProtoFunction {
355
+ /**
356
+ * The name of the function to perform.
357
+ */
358
+ functionType?: Schema$EnterpriseCrmEventbusProtoFunctionType;
359
+ /**
360
+ * List of parameters required for the transformation.
361
+ */
362
+ parameters?: Schema$EnterpriseCrmEventbusProtoTransformExpression[];
363
+ }
364
+ export interface Schema$EnterpriseCrmEventbusProtoFunctionType {
365
+ /**
366
+ * LINT.IfChange
367
+ */
368
+ baseFunction?: Schema$EnterpriseCrmEventbusProtoBaseFunction;
369
+ booleanArrayFunction?: Schema$EnterpriseCrmEventbusProtoBooleanArrayFunction;
370
+ booleanFunction?: Schema$EnterpriseCrmEventbusProtoBooleanFunction;
371
+ doubleArrayFunction?: Schema$EnterpriseCrmEventbusProtoDoubleArrayFunction;
372
+ doubleFunction?: Schema$EnterpriseCrmEventbusProtoDoubleFunction;
373
+ intArrayFunction?: Schema$EnterpriseCrmEventbusProtoIntArrayFunction;
374
+ intFunction?: Schema$EnterpriseCrmEventbusProtoIntFunction;
375
+ jsonFunction?: Schema$EnterpriseCrmEventbusProtoJsonFunction;
376
+ protoArrayFunction?: Schema$EnterpriseCrmEventbusProtoProtoArrayFunction;
377
+ protoFunction?: Schema$EnterpriseCrmEventbusProtoProtoFunction;
378
+ stringArrayFunction?: Schema$EnterpriseCrmEventbusProtoStringArrayFunction;
379
+ stringFunction?: Schema$EnterpriseCrmEventbusProtoStringFunction;
380
+ }
381
+ export interface Schema$EnterpriseCrmEventbusProtoIntArrayFunction {
382
+ functionName?: string | null;
383
+ }
384
+ export interface Schema$EnterpriseCrmEventbusProtoIntFunction {
385
+ functionName?: string | null;
386
+ }
387
+ export interface Schema$EnterpriseCrmEventbusProtoIntParameterArray {
388
+ intValues?: string[] | null;
389
+ }
390
+ export interface Schema$EnterpriseCrmEventbusProtoJsonFunction {
391
+ functionName?: string | null;
392
+ }
393
+ export interface Schema$EnterpriseCrmEventbusProtoLoopMetadata {
394
+ /**
395
+ * Starting from 1, not 0.
396
+ */
397
+ currentIterationCount?: string | null;
398
+ /**
399
+ * Needs to be set by the loop impl class before each iteration. The abstract loop class will append the request and response to it. Eg. The foreach Loop will clean up and set it as the current iteration element at the start of each loop. The post request and response will be appended to the value once they are available.
400
+ */
401
+ currentIterationDetail?: string | null;
402
+ /**
403
+ * Add the error message when loops fail.
404
+ */
405
+ errorMsg?: string | null;
406
+ /**
407
+ * Indicates where in the loop logic did it error out.
408
+ */
409
+ failureLocation?: string | null;
410
+ }
411
+ /**
412
+ * Mapped field is a pair of input field and output field.
413
+ */
414
+ export interface Schema$EnterpriseCrmEventbusProtoMappedField {
415
+ /**
416
+ * The input field being mapped from.
417
+ */
418
+ inputField?: Schema$EnterpriseCrmEventbusProtoField;
419
+ /**
420
+ * The output field being mapped to.
421
+ */
422
+ outputField?: Schema$EnterpriseCrmEventbusProtoField;
423
+ }
424
+ export interface Schema$EnterpriseCrmEventbusProtoNotification {
425
+ buganizerNotification?: Schema$EnterpriseCrmEventbusProtoBuganizerNotification;
426
+ emailAddress?: Schema$EnterpriseCrmEventbusProtoAddress;
427
+ escalatorQueue?: string | null;
428
+ pubsubTopic?: string | null;
429
+ /**
430
+ * If the out-of-the-box email/pubsub notifications are not suitable and custom logic is required, fire a workflow containing all info needed to notify users to resume execution.
431
+ */
432
+ request?: Schema$EnterpriseCrmEventbusProtoCustomSuspensionRequest;
433
+ }
434
+ /**
435
+ * Key-value pair of EventBus parameters.
436
+ */
437
+ export interface Schema$EnterpriseCrmEventbusProtoParameterEntry {
438
+ /**
439
+ * Key is used to retrieve the corresponding parameter value. This should be unique for a given fired event. These parameters must be predefined in the integration definition.
440
+ */
441
+ key?: string | null;
442
+ /**
443
+ * True if this parameter should be masked in the logs
444
+ */
445
+ masked?: boolean | null;
446
+ /**
447
+ * Values for the defined keys. Each value can either be string, int, double or any proto message.
448
+ */
449
+ value?: Schema$EnterpriseCrmEventbusProtoParameterValueType;
450
+ }
451
+ /**
452
+ * A generic multi-map that holds key value pairs. They keys and values can be of any type, unless specified.
453
+ */
454
+ export interface Schema$EnterpriseCrmEventbusProtoParameterMap {
455
+ entries?: Schema$EnterpriseCrmEventbusProtoParameterMapEntry[];
456
+ /**
457
+ * Option to specify key value type for all entries of the map. If provided then field types for all entries must conform to this.
458
+ */
459
+ keyType?: string | null;
460
+ valueType?: string | null;
461
+ }
462
+ /**
463
+ * Entry is a pair of key and value.
464
+ */
465
+ export interface Schema$EnterpriseCrmEventbusProtoParameterMapEntry {
466
+ key?: Schema$EnterpriseCrmEventbusProtoParameterMapField;
467
+ value?: Schema$EnterpriseCrmEventbusProtoParameterMapField;
468
+ }
469
+ /**
470
+ * Field represents either the key or value in an entry.
471
+ */
472
+ export interface Schema$EnterpriseCrmEventbusProtoParameterMapField {
473
+ /**
474
+ * Passing a literal value.
475
+ */
476
+ literalValue?: Schema$EnterpriseCrmEventbusProtoParameterValueType;
477
+ /**
478
+ * Referencing one of the WF variables.
479
+ */
480
+ referenceKey?: string | null;
481
+ }
482
+ /**
483
+ * LINT.IfChange To support various types of parameter values. Next available id: 14
484
+ */
485
+ export interface Schema$EnterpriseCrmEventbusProtoParameterValueType {
486
+ booleanArray?: Schema$EnterpriseCrmEventbusProtoBooleanParameterArray;
487
+ booleanValue?: boolean | null;
488
+ doubleArray?: Schema$EnterpriseCrmEventbusProtoDoubleParameterArray;
489
+ doubleValue?: number | null;
490
+ intArray?: Schema$EnterpriseCrmEventbusProtoIntParameterArray;
491
+ intValue?: string | null;
492
+ protoArray?: Schema$EnterpriseCrmEventbusProtoProtoParameterArray;
493
+ protoValue?: {[key: string]: any} | null;
494
+ serializedObjectValue?: Schema$EnterpriseCrmEventbusProtoSerializedObjectParameter;
495
+ stringArray?: Schema$EnterpriseCrmEventbusProtoStringParameterArray;
496
+ stringValue?: string | null;
497
+ }
498
+ export interface Schema$EnterpriseCrmEventbusProtoProtoArrayFunction {
499
+ functionName?: string | null;
500
+ }
501
+ export interface Schema$EnterpriseCrmEventbusProtoProtoFunction {
502
+ functionName?: string | null;
503
+ }
504
+ export interface Schema$EnterpriseCrmEventbusProtoProtoParameterArray {
505
+ protoValues?: Array<{[key: string]: any}> | null;
506
+ }
507
+ export interface Schema$EnterpriseCrmEventbusProtoScatterResponse {
508
+ /**
509
+ * The error message of the failure if applicable.
510
+ */
511
+ errorMsg?: string | null;
512
+ /**
513
+ * The execution ids of each Subworkflow fired by this scatter.
514
+ */
515
+ executionIds?: string[] | null;
516
+ /**
517
+ * If execution is sync, this is true if the execution passed and false if it failed. If the execution is async, this is true if the WF was fired off successfully, and false if it failed to execute. The success or failure of the subworkflows executed are not captured.
518
+ */
519
+ isSuccessful?: boolean | null;
520
+ /**
521
+ * A list of all the response parameters in the aggregtorMap stored with the remapped key.
522
+ */
523
+ responseParams?: Schema$EnterpriseCrmEventbusProtoParameterEntry[];
524
+ /**
525
+ * The element that was scattered for this execution.
526
+ */
527
+ scatterElement?: Schema$EnterpriseCrmEventbusProtoParameterValueType;
528
+ }
529
+ export interface Schema$EnterpriseCrmEventbusProtoSerializedObjectParameter {
530
+ objectValue?: string | null;
531
+ }
532
+ export interface Schema$EnterpriseCrmEventbusProtoStringArrayFunction {
533
+ functionName?: string | null;
534
+ }
535
+ export interface Schema$EnterpriseCrmEventbusProtoStringFunction {
536
+ functionName?: string | null;
537
+ }
538
+ export interface Schema$EnterpriseCrmEventbusProtoStringParameterArray {
539
+ stringValues?: string[] | null;
540
+ }
541
+ /**
542
+ * LINT.IfChange
543
+ */
544
+ export interface Schema$EnterpriseCrmEventbusProtoSuspensionAuthPermissions {
545
+ /**
546
+ * Represents a Gaia identity for a person or service account.
547
+ */
548
+ gaiaIdentity?: Schema$EnterpriseCrmEventbusProtoSuspensionAuthPermissionsGaiaIdentity;
549
+ googleGroup?: Schema$EnterpriseCrmEventbusProtoSuspensionAuthPermissionsGaiaIdentity;
550
+ loasRole?: string | null;
551
+ mdbGroup?: string | null;
552
+ }
553
+ export interface Schema$EnterpriseCrmEventbusProtoSuspensionAuthPermissionsGaiaIdentity {
554
+ emailAddress?: string | null;
555
+ gaiaId?: string | null;
556
+ }
557
+ export interface Schema$EnterpriseCrmEventbusProtoSuspensionConfig {
558
+ /**
559
+ * Optional information to provide recipients of the suspension in addition to the resolution URL, typically containing relevant parameter values from the originating workflow.
560
+ */
561
+ customMessage?: string | null;
562
+ notifications?: Schema$EnterpriseCrmEventbusProtoNotification[];
563
+ /**
564
+ * Indicates the next steps when no external actions happen on the suspension.
565
+ */
566
+ suspensionExpiration?: Schema$EnterpriseCrmEventbusProtoSuspensionExpiration;
567
+ /**
568
+ * Identities able to resolve this suspension.
569
+ */
570
+ whoMayResolve?: Schema$EnterpriseCrmEventbusProtoSuspensionAuthPermissions[];
571
+ }
572
+ export interface Schema$EnterpriseCrmEventbusProtoSuspensionExpiration {
573
+ /**
574
+ * Milliseconds after which the suspension expires, if no action taken.
575
+ */
576
+ expireAfterMs?: number | null;
577
+ /**
578
+ * Whether the suspension will be REJECTED or LIFTED upon expiration. REJECTED is the default behavior.
579
+ */
580
+ liftWhenExpired?: boolean | null;
581
+ /**
582
+ * Milliseconds after which the previous suspension action reminder, if any, is sent using the selected notification option, for a suspension which is still PENDING_UNSPECIFIED.
583
+ */
584
+ remindAfterMs?: number | null;
585
+ }
586
+ export interface Schema$EnterpriseCrmEventbusProtoSuspensionResolutionInfo {
587
+ audit?: Schema$EnterpriseCrmEventbusProtoSuspensionResolutionInfoAudit;
588
+ /**
589
+ * The event data user sends as request.
590
+ */
591
+ clientId?: string | null;
592
+ /**
593
+ * KMS info, used by cmek/gmek integration
594
+ */
595
+ cloudKmsConfig?: Schema$EnterpriseCrmEventbusProtoCloudKmsConfig;
596
+ /**
597
+ * Auto-generated.
598
+ */
599
+ createdTimestamp?: string | null;
600
+ /**
601
+ * Encrypted SuspensionResolutionInfo
602
+ */
603
+ encryptedSuspensionResolutionInfo?: string | null;
604
+ /**
605
+ * Required. ID of the associated execution.
606
+ */
607
+ eventExecutionInfoId?: string | null;
608
+ /**
609
+ * The origin of the suspension for periodic notifications.
610
+ */
611
+ externalTraffic?: Schema$EnterpriseCrmEventbusProtoExternalTraffic;
612
+ /**
613
+ * Auto-generated.
614
+ */
615
+ lastModifiedTimestamp?: string | null;
616
+ /**
617
+ * Which Google product the suspension belongs to. If not set, the suspension belongs to Integration Platform by default.
618
+ */
619
+ product?: string | null;
620
+ status?: string | null;
621
+ suspensionConfig?: Schema$EnterpriseCrmEventbusProtoSuspensionConfig;
622
+ /**
623
+ * Primary key for the SuspensionResolutionInfoTable.
624
+ */
625
+ suspensionId?: string | null;
626
+ /**
627
+ * Required. Task number of the associated SuspensionTask.
628
+ */
629
+ taskNumber?: string | null;
630
+ /**
631
+ * Required. The name of the originating workflow.
632
+ */
633
+ workflowName?: string | null;
634
+ /**
635
+ * Wrapped dek
636
+ */
637
+ wrappedDek?: string | null;
638
+ }
639
+ export interface Schema$EnterpriseCrmEventbusProtoSuspensionResolutionInfoAudit {
640
+ resolvedBy?: string | null;
641
+ resolvedByCpi?: string | null;
642
+ timestamp?: string | null;
643
+ }
644
+ export interface Schema$EnterpriseCrmEventbusProtoToken {
645
+ name?: string | null;
646
+ value?: string | null;
647
+ }
648
+ export interface Schema$EnterpriseCrmEventbusProtoTransformExpression {
649
+ /**
650
+ * Initial value upon which to perform transformations.
651
+ */
652
+ initialValue?: Schema$EnterpriseCrmEventbusProtoBaseValue;
653
+ /**
654
+ * Transformations to be applied sequentially.
655
+ */
656
+ transformationFunctions?: Schema$EnterpriseCrmEventbusProtoFunction[];
657
+ }
658
+ export interface Schema$EnterpriseCrmFrontendsEventbusProtoBooleanParameterArray {
659
+ booleanValues?: boolean[] | null;
660
+ }
661
+ export interface Schema$EnterpriseCrmFrontendsEventbusProtoDoubleParameterArray {
662
+ doubleValues?: number[] | null;
663
+ }
664
+ export interface Schema$EnterpriseCrmFrontendsEventbusProtoIntParameterArray {
665
+ intValues?: string[] | null;
666
+ }
667
+ /**
668
+ * A generic multi-map that holds key value pairs. They keys and values can be of any type, unless specified.
669
+ */
670
+ export interface Schema$EnterpriseCrmFrontendsEventbusProtoParameterMap {
671
+ entries?: Schema$EnterpriseCrmFrontendsEventbusProtoParameterMapEntry[];
672
+ /**
673
+ * Option to specify key value type for all entries of the map. If provided then field types for all entries must conform to this.
674
+ */
675
+ keyType?: string | null;
676
+ valueType?: string | null;
677
+ }
678
+ /**
679
+ * Entry is a pair of key and value.
680
+ */
681
+ export interface Schema$EnterpriseCrmFrontendsEventbusProtoParameterMapEntry {
682
+ key?: Schema$EnterpriseCrmFrontendsEventbusProtoParameterMapField;
683
+ value?: Schema$EnterpriseCrmFrontendsEventbusProtoParameterMapField;
684
+ }
685
+ /**
686
+ * Field represents either the key or value in an entry.
687
+ */
688
+ export interface Schema$EnterpriseCrmFrontendsEventbusProtoParameterMapField {
689
+ /**
690
+ * Passing a literal value.
691
+ */
692
+ literalValue?: Schema$EnterpriseCrmFrontendsEventbusProtoParameterValueType;
693
+ /**
694
+ * Referencing one of the WF variables.
695
+ */
696
+ referenceKey?: string | null;
697
+ }
698
+ /**
699
+ * To support various types of parameter values. Next available id: 14
700
+ */
701
+ export interface Schema$EnterpriseCrmFrontendsEventbusProtoParameterValueType {
702
+ booleanArray?: Schema$EnterpriseCrmFrontendsEventbusProtoBooleanParameterArray;
703
+ booleanValue?: boolean | null;
704
+ doubleArray?: Schema$EnterpriseCrmFrontendsEventbusProtoDoubleParameterArray;
705
+ doubleValue?: number | null;
706
+ intArray?: Schema$EnterpriseCrmFrontendsEventbusProtoIntParameterArray;
707
+ intValue?: string | null;
708
+ jsonValue?: string | null;
709
+ protoArray?: Schema$EnterpriseCrmFrontendsEventbusProtoProtoParameterArray;
710
+ protoValue?: {[key: string]: any} | null;
711
+ serializedObjectValue?: Schema$EnterpriseCrmFrontendsEventbusProtoSerializedObjectParameter;
712
+ stringArray?: Schema$EnterpriseCrmFrontendsEventbusProtoStringParameterArray;
713
+ stringValue?: string | null;
714
+ }
715
+ export interface Schema$EnterpriseCrmFrontendsEventbusProtoProtoParameterArray {
716
+ protoValues?: Array<{[key: string]: any}> | null;
717
+ }
718
+ export interface Schema$EnterpriseCrmFrontendsEventbusProtoSerializedObjectParameter {
719
+ objectValue?: string | null;
720
+ }
721
+ export interface Schema$EnterpriseCrmFrontendsEventbusProtoStringParameterArray {
722
+ stringValues?: string[] | null;
723
+ }
724
+ /**
725
+ * Message that represents an arbitrary HTTP body. It should only be used for payload formats that can't be represented as JSON, such as raw binary or an HTML page. This message can be used both in streaming and non-streaming API methods in the request as well as the response. It can be used as a top-level request field, which is convenient if one wants to extract parameters from either the URL or HTTP template into the request fields and also want access to the raw HTTP body. Example: message GetResourceRequest { // A unique request id. string request_id = 1; // The raw HTTP body is bound to this field. google.api.HttpBody http_body = 2; \} service ResourceService { rpc GetResource(GetResourceRequest) returns (google.api.HttpBody); rpc UpdateResource(google.api.HttpBody) returns (google.protobuf.Empty); \} Example with streaming methods: service CaldavService { rpc GetCalendar(stream google.api.HttpBody) returns (stream google.api.HttpBody); rpc UpdateCalendar(stream google.api.HttpBody) returns (stream google.api.HttpBody); \} Use of this type only changes how the request and response bodies are handled, all other features will continue to work unchanged.
726
+ */
727
+ export interface Schema$GoogleApiHttpBody {
728
+ /**
729
+ * The HTTP Content-Type header value specifying the content type of the body.
730
+ */
731
+ contentType?: string | null;
732
+ /**
733
+ * The HTTP request/response body as raw binary.
734
+ */
735
+ data?: string | null;
736
+ /**
737
+ * Application specific response metadata. Must be set in the first response for streaming APIs.
738
+ */
739
+ extensions?: Array<{[key: string]: any}> | null;
740
+ }
741
+ /**
742
+ * Status for the execution attempt.
743
+ */
744
+ export interface Schema$GoogleCloudIntegrationsV2AttemptStats {
745
+ /**
746
+ * The end time of the execution for the current attempt.
747
+ */
748
+ endTime?: string | null;
749
+ /**
750
+ * The start time of the execution for the current attempt. This could be in the future if it's been scheduled.
751
+ */
752
+ startTime?: string | null;
753
+ }
754
+ /**
755
+ * Cloud Logging details for execution info
756
+ */
757
+ export interface Schema$GoogleCloudIntegrationsV2CloudLoggingDetails {
758
+ /**
759
+ * Optional. Severity selected by the customer for the logs to be sent to Cloud Logging, for the integration version getting executed.
760
+ */
761
+ cloudLoggingSeverity?: string | null;
762
+ /**
763
+ * Optional. Status of whether Cloud Logging is enabled or not for the integration version getting executed.
764
+ */
765
+ enableCloudLogging?: boolean | null;
766
+ }
767
+ /**
768
+ * This message only contains a field of boolean array.
769
+ */
770
+ export interface Schema$GoogleCloudIntegrationsV2DuetBooleanParameterArray {
771
+ /**
772
+ * Boolean array.
773
+ */
774
+ booleanValues?: boolean[] | null;
775
+ }
776
+ /**
777
+ * Cloud Scheduler Trigger configuration
778
+ */
779
+ export interface Schema$GoogleCloudIntegrationsV2DuetCloudSchedulerConfig {
780
+ /**
781
+ * Required. The cron tab of cloud scheduler trigger.
782
+ */
783
+ cronTab?: string | null;
784
+ /**
785
+ * Optional. When the job was deleted from Pantheon UI, error_message will be populated when Get/List integrations
786
+ */
787
+ errorMessage?: string | null;
788
+ /**
789
+ * Required. The location where associated cloud scheduler job will be created
790
+ */
791
+ location?: string | null;
792
+ /**
793
+ * Required. Service account used by Cloud Scheduler to trigger the integration at scheduled time
794
+ */
795
+ serviceAccountEmail?: string | null;
796
+ }
797
+ /**
798
+ * This message only contains a field of double number array.
799
+ */
800
+ export interface Schema$GoogleCloudIntegrationsV2DuetDoubleParameterArray {
801
+ /**
802
+ * Double number array.
803
+ */
804
+ doubleValues?: number[] | null;
805
+ }
806
+ /**
807
+ * Configuration detail of a error catch task
808
+ */
809
+ export interface Schema$GoogleCloudIntegrationsV2DuetErrorCatcherConfig {
810
+ /**
811
+ * Optional. User-provided description intended to give more business context about the error catcher config.
812
+ */
813
+ description?: string | null;
814
+ /**
815
+ * Required. An error catcher id is string representation for the error catcher config. Within a workflow, error_catcher_id uniquely identifies an error catcher config among all error catcher configs for the workflow
816
+ */
817
+ errorCatcherId?: string | null;
818
+ /**
819
+ * Required. A number to uniquely identify each error catcher config within the workflow on UI.
820
+ */
821
+ errorCatcherNumber?: string | null;
822
+ /**
823
+ * Optional. The user created label for a particular error catcher. Optional.
824
+ */
825
+ label?: string | null;
826
+ /**
827
+ * Required. The set of start tasks that are to be executed for the error catch flow
828
+ */
829
+ startErrorTasks?: Schema$GoogleCloudIntegrationsV2DuetNextTask[];
830
+ }
831
+ /**
832
+ * This message is used for processing and persisting (when applicable) key value pair parameters for each event in the event bus.
833
+ */
834
+ export interface Schema$GoogleCloudIntegrationsV2DuetEventParameter {
835
+ /**
836
+ * Key is used to retrieve the corresponding parameter value. This should be unique for a given fired event. These parameters must be predefined in the integration definition.
837
+ */
838
+ key?: string | null;
839
+ /**
840
+ * Values for the defined keys. Each value can either be string, int, double or any proto message.
841
+ */
842
+ value?: Schema$GoogleCloudIntegrationsV2DuetValueType;
843
+ }
844
+ /**
845
+ * Request message for generating an integration branch containing tasks.
846
+ */
847
+ export interface Schema$GoogleCloudIntegrationsV2DuetGenerateIntegrationBranchRequest {
848
+ /**
849
+ * Required. The integration branch request payload.
850
+ */
851
+ integrationBranchRequest?: Schema$GoogleCloudIntegrationsV2DuetIntegrationBranchRequest;
852
+ /**
853
+ * Required. User prompt.
854
+ */
855
+ prompt?: string | null;
856
+ }
857
+ /**
858
+ * Response message containing the generated integration branch data.
859
+ */
860
+ export interface Schema$GoogleCloudIntegrationsV2DuetGenerateIntegrationBranchResponse {
861
+ /**
862
+ * The integration branch returned by Duet
863
+ */
864
+ integrationBranch?: Schema$GoogleCloudIntegrationsV2DuetIntegrationBranch;
865
+ }
866
+ /**
867
+ * Request message for generating documentation for an integration version.
868
+ */
869
+ export interface Schema$GoogleCloudIntegrationsV2DuetGenerateIntegrationDocumentRequest {
870
+ /**
871
+ * Required. The integration document request payload.
872
+ */
873
+ integrationDocumentRequest?: Schema$GoogleCloudIntegrationsV2DuetIntegrationDocumentRequest;
874
+ }
875
+ /**
876
+ * Response message containing generated integration documentation text.
877
+ */
878
+ export interface Schema$GoogleCloudIntegrationsV2DuetGenerateIntegrationDocumentResponse {
879
+ /**
880
+ * The description of the integration returned by Duet AI.
881
+ */
882
+ document?: string | null;
883
+ }
884
+ /**
885
+ * Request for generating an integration.
886
+ */
887
+ export interface Schema$GoogleCloudIntegrationsV2DuetGenerateIntegrationRequest {
888
+ /**
889
+ * Optional. Indicates if copilot is enabled. Copilot features may alter the generated integration structure.
890
+ */
891
+ copilotEnabled?: boolean | null;
892
+ /**
893
+ * Required. The natural language prompt based on which the integration will be generated.
894
+ */
895
+ prompt?: string | null;
896
+ }
897
+ /**
898
+ * Response for generating an integration.
899
+ */
900
+ export interface Schema$GoogleCloudIntegrationsV2DuetGenerateIntegrationResponse {
901
+ /**
902
+ * The list of integration skeletons returned.
903
+ */
904
+ skeletonIntegrations?: Schema$GoogleCloudIntegrationsV2DuetIntegrationSkeleton[];
905
+ }
906
+ /**
907
+ * Request message for generating data mapping Javascript.
908
+ */
909
+ export interface Schema$GoogleCloudIntegrationsV2DuetGenerateJavascriptRequest {
910
+ /**
911
+ * Required. The javascript request payload.
912
+ */
913
+ javascriptRequest?: Schema$GoogleCloudIntegrationsV2DuetJavascriptRequest;
914
+ /**
915
+ * Optional. User prompt.
916
+ */
917
+ prompt?: string | null;
918
+ }
919
+ /**
920
+ * Response message containing generated Javascript code recommendations.
921
+ */
922
+ export interface Schema$GoogleCloudIntegrationsV2DuetGenerateJavascriptResponse {
923
+ /**
924
+ * List of the Javascript recommendations.
925
+ */
926
+ recommendations?: Schema$GoogleCloudIntegrationsV2DuetJavascriptRecommendation[];
927
+ }
928
+ /**
929
+ * An integration branch skeleton containing basic fields which can be used to create an integration branch on the UI.
930
+ */
931
+ export interface Schema$GoogleCloudIntegrationsV2DuetIntegrationBranch {
932
+ /**
933
+ * The condition for the branch.
934
+ */
935
+ branchCondition?: string | null;
936
+ /**
937
+ * Explanation of why this integration branch was generated.
938
+ */
939
+ explanation?: string | null;
940
+ /**
941
+ * The newly generated workflow parameters.
942
+ */
943
+ integrationParameters?: Schema$GoogleCloudIntegrationsV2DuetIntegrationParameter[];
944
+ /**
945
+ * The newly generated tasks which can be branched into the current integration.
946
+ */
947
+ taskConfigs?: Schema$GoogleCloudIntegrationsV2DuetTaskConfig[];
948
+ }
949
+ /**
950
+ * The request for generating an integration branch.
951
+ */
952
+ export interface Schema$GoogleCloudIntegrationsV2DuetIntegrationBranchRequest {
953
+ /**
954
+ * Optional. The condition for the particular branch which the user selected.
955
+ */
956
+ branchCondition?: string | null;
957
+ /**
958
+ * Optional. A list of all the workflow parameters of the current integration.
959
+ */
960
+ integrationParameters?: Schema$GoogleCloudIntegrationsV2DuetIntegrationParameter[];
961
+ /**
962
+ * Required. A list of all the tasks of the current integration.
963
+ */
964
+ taskConfigs?: Schema$GoogleCloudIntegrationsV2DuetTaskConfig[];
965
+ }
966
+ /**
967
+ * Integration Config Parameter is defined in the integration config and are used to provide external configuration for integration. It provide information about data types of the expected parameters and provide any default values or value. They can also be used to add custom attributes.
968
+ */
969
+ export interface Schema$GoogleCloudIntegrationsV2DuetIntegrationConfigParameter {
970
+ /**
971
+ * Optional. Integration Parameter to provide the default value, data type and attributes required for the Integration config variables.
972
+ */
973
+ parameter?: Schema$GoogleCloudIntegrationsV2DuetIntegrationParameter;
974
+ /**
975
+ * Values for the defined keys. Each value can either be string, int, double or any proto message or a serialized object.
976
+ */
977
+ value?: Schema$GoogleCloudIntegrationsV2DuetValueType;
978
+ }
979
+ /**
980
+ * The request for generating description of an integration.
981
+ */
982
+ export interface Schema$GoogleCloudIntegrationsV2DuetIntegrationDocumentRequest {
983
+ /**
984
+ * Required. The current integrtion on the canvas.
985
+ */
986
+ integrationVersion?: Schema$GoogleCloudIntegrationsV2DuetIntegrationVersion;
987
+ }
988
+ /**
989
+ * Integration Parameter is defined in the integration config and are used to provide information about data types of the expected parameters and provide any default values if needed. They can also be used to add custom attributes. These are static in nature and should not be used for dynamic event definition.
990
+ */
991
+ export interface Schema$GoogleCloudIntegrationsV2DuetIntegrationParameter {
992
+ /**
993
+ * Type of the parameter.
994
+ */
995
+ dataType?: string | null;
996
+ /**
997
+ * Default values for the defined keys. Each value can either be string, int, double or any proto message or a serialized object.
998
+ */
999
+ defaultValue?: Schema$GoogleCloudIntegrationsV2DuetValueType;
1000
+ /**
1001
+ * Optional. Description of the parameter.
1002
+ */
1003
+ description?: string | null;
1004
+ /**
1005
+ * The name (without prefix) to be displayed in the UI for this parameter. E.g. if the key is "foo.bar.myName", then the name would be "myName".
1006
+ */
1007
+ displayName?: string | null;
1008
+ /**
1009
+ * Specifies the input/output type for the parameter.
1010
+ */
1011
+ inputOutputType?: string | null;
1012
+ /**
1013
+ * Whether this parameter is a transient parameter.
1014
+ */
1015
+ isTransient?: boolean | null;
1016
+ /**
1017
+ * This schema will be used to validate runtime JSON-typed values of this parameter.
1018
+ */
1019
+ jsonSchema?: string | null;
1020
+ /**
1021
+ * Key is used to retrieve the corresponding parameter value. This should be unique for a given fired event. These parameters must be predefined in the integration definition.
1022
+ */
1023
+ key?: string | null;
1024
+ }
1025
+ /**
1026
+ * An integration skeleton containing basic fields which can be used to create an integration on the UI.
1027
+ */
1028
+ export interface Schema$GoogleCloudIntegrationsV2DuetIntegrationSkeleton {
1029
+ /**
1030
+ * Explanation of why this integration was generated.
1031
+ */
1032
+ explanation?: string | null;
1033
+ /**
1034
+ * The integration version containing basic triggers and tasks.
1035
+ */
1036
+ integrationVersion?: Schema$GoogleCloudIntegrationsV2DuetIntegrationVersion;
1037
+ /**
1038
+ * The name of the integration.
1039
+ */
1040
+ name?: string | null;
1041
+ /**
1042
+ * Indicate the strategy/methodology used to generate the integration.
1043
+ */
1044
+ tag?: string | null;
1045
+ }
1046
+ /**
1047
+ * The integration version definition.
1048
+ */
1049
+ export interface Schema$GoogleCloudIntegrationsV2DuetIntegrationVersion {
1050
+ /**
1051
+ * Optional. The integration description.
1052
+ */
1053
+ description?: string | null;
1054
+ /**
1055
+ * Optional. Error Catch Task configuration for the integration. It's optional.
1056
+ */
1057
+ errorCatcherConfigs?: Schema$GoogleCloudIntegrationsV2DuetErrorCatcherConfig[];
1058
+ /**
1059
+ * Optional. Config Parameters that are expected to be passed to the integration when an integration is published. This consists of all the parameters that are expected to provide configuration in the integration execution. This gives the user the ability to provide default values, value, add information like connection url, project based configuration value and also provide data types of each parameter.
1060
+ */
1061
+ integrationConfigParameters?: Schema$GoogleCloudIntegrationsV2DuetIntegrationConfigParameter[];
1062
+ /**
1063
+ * Optional. Parameters that are expected to be passed to the integration when an event is triggered. This consists of all the parameters that are expected in the integration execution. This gives the user the ability to provide default values, add information like PII and also provide data types of each parameter.
1064
+ */
1065
+ integrationParameters?: Schema$GoogleCloudIntegrationsV2DuetIntegrationParameter[];
1066
+ /**
1067
+ * Optional. Auto-generated primary key.
1068
+ */
1069
+ name?: string | null;
1070
+ /**
1071
+ * Optional. An increasing sequence that is set when a new snapshot is created. The last created snapshot can be identified by [workflow_name, org_id latest(snapshot_number)]. However, last created snapshot need not be same as the HEAD. So users should always use "HEAD" tag to identify the head.
1072
+ */
1073
+ snapshotNumber?: string | null;
1074
+ /**
1075
+ * Output only. User should not set it as an input.
1076
+ */
1077
+ state?: string | null;
1078
+ /**
1079
+ * Optional. Task configuration for the integration. It's optional, but the integration doesn't do anything without task_configs.
1080
+ */
1081
+ taskConfigs?: Schema$GoogleCloudIntegrationsV2DuetTaskConfig[];
1082
+ /**
1083
+ * Optional. Trigger configurations.
1084
+ */
1085
+ triggerConfigs?: Schema$GoogleCloudIntegrationsV2DuetTriggerConfig[];
1086
+ /**
1087
+ * Optional. A user-defined label that annotates an integration version. Typically, this is only set when the integration version is created.
1088
+ */
1089
+ userLabel?: string | null;
1090
+ }
1091
+ /**
1092
+ * This message only contains a field of integer array.
1093
+ */
1094
+ export interface Schema$GoogleCloudIntegrationsV2DuetIntParameterArray {
1095
+ /**
1096
+ * Integer array.
1097
+ */
1098
+ intValues?: string[] | null;
1099
+ }
1100
+ /**
1101
+ * Individual Javascript recommendation containing the task config with the new code, integration parameters and the explanation.
1102
+ */
1103
+ export interface Schema$GoogleCloudIntegrationsV2DuetJavascriptRecommendation {
1104
+ /**
1105
+ * The explanation of the Javascript code.
1106
+ */
1107
+ explanation?: string | null;
1108
+ /**
1109
+ * Optional. The list of the new integration parameters.
1110
+ */
1111
+ integrationParameters?: Schema$GoogleCloudIntegrationsV2DuetIntegrationParameter[];
1112
+ /**
1113
+ * Optional. The task config of the Javascript task.
1114
+ */
1115
+ taskConfig?: Schema$GoogleCloudIntegrationsV2DuetTaskConfig;
1116
+ }
1117
+ /**
1118
+ * Request message for Javascript Task using Gemini.
1119
+ */
1120
+ export interface Schema$GoogleCloudIntegrationsV2DuetJavascriptRequest {
1121
+ /**
1122
+ * Optional. If this request is for copilot.
1123
+ */
1124
+ copilotEnabled?: boolean | null;
1125
+ /**
1126
+ * Required. The integration version which contains all the integration parameters, all triggers and tasks including the Javascript task.
1127
+ */
1128
+ integrationVersion?: Schema$GoogleCloudIntegrationsV2DuetIntegrationVersion;
1129
+ /**
1130
+ * Required. The task id of the Javascript task.
1131
+ */
1132
+ taskId?: string | null;
1133
+ /**
1134
+ * Optional. Whether to use the current javascript task config (JS code) to generate the Javascript code.
1135
+ */
1136
+ useCurrentScript?: boolean | null;
1137
+ }
1138
+ /**
1139
+ * The task that is next in line to be executed, if the condition specified evaluated to true.
1140
+ */
1141
+ export interface Schema$GoogleCloudIntegrationsV2DuetNextTask {
1142
+ /**
1143
+ * Standard filter expression for this task to become an eligible next task.
1144
+ */
1145
+ condition?: string | null;
1146
+ /**
1147
+ * User-provided description intended to give additional business context about the task.
1148
+ */
1149
+ description?: string | null;
1150
+ /**
1151
+ * User-provided label that is attached to this edge in the UI.
1152
+ */
1153
+ displayName?: string | null;
1154
+ /**
1155
+ * ID of the next task.
1156
+ */
1157
+ taskConfigId?: string | null;
1158
+ /**
1159
+ * Task number of the next task.
1160
+ */
1161
+ taskId?: string | null;
1162
+ }
1163
+ /**
1164
+ * Request message for recommending tasks to replace a selected task.
1165
+ */
1166
+ export interface Schema$GoogleCloudIntegrationsV2DuetRecommendTasksRequest {
1167
+ /**
1168
+ * Optional. User prompt.
1169
+ */
1170
+ prompt?: string | null;
1171
+ /**
1172
+ * Required. The current task to replace and options.
1173
+ */
1174
+ replaceTaskRequest?: Schema$GoogleCloudIntegrationsV2DuetReplaceTaskRequest;
1175
+ }
1176
+ /**
1177
+ * Response message containing recommended tasks for replacement.
1178
+ */
1179
+ export interface Schema$GoogleCloudIntegrationsV2DuetRecommendTasksResponse {
1180
+ /**
1181
+ * The list of recommended tasks.
1182
+ */
1183
+ taskConfigs?: Schema$GoogleCloudIntegrationsV2DuetTaskConfig[];
1184
+ /**
1185
+ * The list of task response status based on the task_types in the request.
1186
+ */
1187
+ taskResponseStatuses?: Schema$GoogleCloudIntegrationsV2DuetTaskResponseStatus[];
1188
+ }
1189
+ /**
1190
+ * Message for Replace Task Scenario.
1191
+ */
1192
+ export interface Schema$GoogleCloudIntegrationsV2DuetReplaceTaskRequest {
1193
+ /**
1194
+ * Optional. If this request is for copilot.
1195
+ */
1196
+ copilotEnabled?: boolean | null;
1197
+ /**
1198
+ * Required. The current task selected on the UI.
1199
+ */
1200
+ taskConfig?: Schema$GoogleCloudIntegrationsV2DuetTaskConfig;
1201
+ /**
1202
+ * The list of task types.
1203
+ */
1204
+ taskTypes?: string[] | null;
1205
+ }
1206
+ /**
1207
+ * This message only contains a field of string array.
1208
+ */
1209
+ export interface Schema$GoogleCloudIntegrationsV2DuetStringParameterArray {
1210
+ /**
1211
+ * String array.
1212
+ */
1213
+ stringValues?: string[] | null;
1214
+ }
1215
+ /**
1216
+ * The task configuration details. This is not the implementation of Task. There might be multiple TaskConfigs for the same Task.
1217
+ */
1218
+ export interface Schema$GoogleCloudIntegrationsV2DuetTaskConfig {
1219
+ /**
1220
+ * Optional. User-provided description intended to give additional business context about the task.
1221
+ */
1222
+ description?: string | null;
1223
+ /**
1224
+ * Optional. User-provided label that is attached to this TaskConfig in the UI.
1225
+ */
1226
+ displayName?: string | null;
1227
+ /**
1228
+ * Optional. Optional Error catcher id of the error catch flow which will be executed when execution error happens in the task
1229
+ */
1230
+ errorCatcherId?: string | null;
1231
+ /**
1232
+ * Optional. External task type of the task
1233
+ */
1234
+ externalTaskType?: string | null;
1235
+ /**
1236
+ * Optional. The set of tasks that are next in line to be executed as per the execution graph defined for the parent event, specified by `event_config_id`. Each of these next tasks are executed only if the condition associated with them evaluates to true.
1237
+ */
1238
+ nextTasks?: Schema$GoogleCloudIntegrationsV2DuetNextTask[];
1239
+ /**
1240
+ * Optional. The customized parameters the user can pass to this task.
1241
+ */
1242
+ parameters?: {
1243
+ [key: string]: Schema$GoogleCloudIntegrationsV2DuetEventParameter;
1244
+ } | null;
1245
+ /**
1246
+ * Optional. The name for the task.
1247
+ */
1248
+ task?: string | null;
1249
+ /**
1250
+ * Required. The identifier of this task within its parent event config, specified by the client. This should be unique among all the tasks belong to the same event config. We use this field as the identifier to find next tasks (via field `next_tasks.task_id`).
1251
+ */
1252
+ taskId?: string | null;
1253
+ }
1254
+ /**
1255
+ * Message for task response status.
1256
+ */
1257
+ export interface Schema$GoogleCloudIntegrationsV2DuetTaskResponseStatus {
1258
+ /**
1259
+ * The error message of the task response in case of failure.
1260
+ */
1261
+ errorMessage?: string | null;
1262
+ /**
1263
+ * The http code of the task response.
1264
+ */
1265
+ httpCode?: number | null;
1266
+ /**
1267
+ * The task type.
1268
+ */
1269
+ taskType?: string | null;
1270
+ }
1271
+ /**
1272
+ * Configuration detail of a trigger.
1273
+ */
1274
+ export interface Schema$GoogleCloudIntegrationsV2DuetTriggerConfig {
1275
+ /**
1276
+ * Optional. Cloud Scheduler Trigger related metadata
1277
+ */
1278
+ cloudSchedulerConfig?: Schema$GoogleCloudIntegrationsV2DuetCloudSchedulerConfig;
1279
+ /**
1280
+ * Optional. User-provided description intended to give additional business context about the task.
1281
+ */
1282
+ description?: string | null;
1283
+ /**
1284
+ * Optional. Optional Error catcher id of the error catch flow which will be executed when execution error happens in the task
1285
+ */
1286
+ errorCatcherId?: string | null;
1287
+ /**
1288
+ * Optional. List of input variables for the api trigger.
1289
+ */
1290
+ inputVariables?: Schema$GoogleCloudIntegrationsV2DuetTriggerConfigVariables;
1291
+ /**
1292
+ * Optional. The user created label for a particular trigger.
1293
+ */
1294
+ label?: string | null;
1295
+ /**
1296
+ * Optional. List of output variables for the api trigger.
1297
+ */
1298
+ outputVariables?: Schema$GoogleCloudIntegrationsV2DuetTriggerConfigVariables;
1299
+ /**
1300
+ * Optional. Configurable properties of the trigger, not to be confused with integration parameters. E.g. "name" is a property for API triggers and "subscription" is a property for Pub/sub triggers.
1301
+ */
1302
+ properties?: {[key: string]: string} | null;
1303
+ /**
1304
+ * Optional. Set of tasks numbers from where the integration execution is started by this trigger. If this is empty, then integration is executed with default start tasks. In the list of start tasks, none of two tasks can have direct ancestor-descendant relationships (i.e. in a same integration execution graph).
1305
+ */
1306
+ startTasks?: Schema$GoogleCloudIntegrationsV2DuetNextTask[];
1307
+ /**
1308
+ * Optional. Name of the trigger. Example: "API Trigger", "Cloud Pub Sub Trigger" When set will be sent out to monitoring dashabord for tracking purpose.
1309
+ */
1310
+ trigger?: string | null;
1311
+ /**
1312
+ * Optional. The backend trigger ID.
1313
+ */
1314
+ triggerId?: string | null;
1315
+ /**
1316
+ * Required. A number to uniquely identify each trigger config within the integration on UI.
1317
+ */
1318
+ triggerNumber?: string | null;
1319
+ /**
1320
+ * Optional. Type of trigger
1321
+ */
1322
+ triggerType?: string | null;
1323
+ }
1324
+ /**
1325
+ * Variables names mapped to api trigger.
1326
+ */
1327
+ export interface Schema$GoogleCloudIntegrationsV2DuetTriggerConfigVariables {
1328
+ /**
1329
+ * Optional. List of variable names.
1330
+ */
1331
+ names?: string[] | null;
1332
+ }
1333
+ /**
1334
+ * Response for troubleshooting an integration execution.
1335
+ */
1336
+ export interface Schema$GoogleCloudIntegrationsV2DuetTroubleshootExecutionResponse {
1337
+ /**
1338
+ * Detailed explanation of the root cause of the integration execution failure.
1339
+ */
1340
+ detailedExplanation?: string | null;
1341
+ /**
1342
+ * Display message to be shown to the user. Example - If integration execution succeeded, this field value can be "Integration execution succeeded. No troubleshooting needed.".
1343
+ */
1344
+ displayMessage?: string | null;
1345
+ /**
1346
+ * Error message of the integration execution, if the execution failed.
1347
+ */
1348
+ errorMessage?: string | null;
1349
+ /**
1350
+ * The execution id of the integration execution to be troubleshooted.
1351
+ */
1352
+ executionId?: string | null;
1353
+ /**
1354
+ * Root cause of the integration execution failure.
1355
+ */
1356
+ rootCause?: string | null;
1357
+ }
1358
+ /**
1359
+ * The type of the parameter.
1360
+ */
1361
+ export interface Schema$GoogleCloudIntegrationsV2DuetValueType {
1362
+ /**
1363
+ * Boolean Array.
1364
+ */
1365
+ booleanArray?: Schema$GoogleCloudIntegrationsV2DuetBooleanParameterArray;
1366
+ /**
1367
+ * Boolean.
1368
+ */
1369
+ booleanValue?: boolean | null;
1370
+ /**
1371
+ * Double Number Array.
1372
+ */
1373
+ doubleArray?: Schema$GoogleCloudIntegrationsV2DuetDoubleParameterArray;
1374
+ /**
1375
+ * Double Number.
1376
+ */
1377
+ doubleValue?: number | null;
1378
+ /**
1379
+ * Integer Array.
1380
+ */
1381
+ intArray?: Schema$GoogleCloudIntegrationsV2DuetIntParameterArray;
1382
+ /**
1383
+ * Integer.
1384
+ */
1385
+ intValue?: string | null;
1386
+ /**
1387
+ * Json.
1388
+ */
1389
+ jsonValue?: string | null;
1390
+ /**
1391
+ * String Array.
1392
+ */
1393
+ stringArray?: Schema$GoogleCloudIntegrationsV2DuetStringParameterArray;
1394
+ /**
1395
+ * String.
1396
+ */
1397
+ stringValue?: string | null;
1398
+ }
1399
+ /**
1400
+ * The Execution contains detailed information of an individual integration execution.
1401
+ */
1402
+ export interface Schema$GoogleCloudIntegrationsV2Execution {
1403
+ /**
1404
+ * Cloud Logging details for the integration version
1405
+ */
1406
+ cloudLoggingDetails?: Schema$GoogleCloudIntegrationsV2CloudLoggingDetails;
1407
+ /**
1408
+ * Indicates if the task execution contains variables.
1409
+ */
1410
+ containTaskVariables?: boolean | null;
1411
+ /**
1412
+ * Output only. Time the execution is created.
1413
+ */
1414
+ createTime?: string | null;
1415
+ /**
1416
+ * Start and end time of each execution attempt.
1417
+ */
1418
+ executionAttemptStats?: Schema$GoogleCloudIntegrationsV2AttemptStats[];
1419
+ /**
1420
+ * Indicates which snapshot of integration is used for this execution.
1421
+ */
1422
+ integrationVersionNumber?: string | null;
1423
+ /**
1424
+ * Optional. User-defined label that annotates the executed integration version.
1425
+ */
1426
+ integrationVersionUserLabel?: string | null;
1427
+ /**
1428
+ * Identifier. Execution resource name.
1429
+ */
1430
+ name?: string | null;
1431
+ /**
1432
+ * Output only. Replay info for the execution
1433
+ */
1434
+ replayInfo?: Schema$GoogleCloudIntegrationsV2ExecutionReplayInfo;
1435
+ /**
1436
+ * Optional. Variables provided in the request.
1437
+ */
1438
+ requestVariables?: {[key: string]: any} | null;
1439
+ /**
1440
+ * Optional. Variables returned as part of the response.
1441
+ */
1442
+ responseVariables?: {[key: string]: any} | null;
1443
+ /**
1444
+ * Output only. Status of the execution.
1445
+ */
1446
+ state?: string | null;
1447
+ /**
1448
+ * Optional. List of task executions.
1449
+ */
1450
+ taskExecutions?: Schema$GoogleCloudIntegrationsV2TaskExecution[];
1451
+ /**
1452
+ * The ID of the trigger invoked at the start of the execution.
1453
+ */
1454
+ triggerId?: string | null;
1455
+ /**
1456
+ * Output only. Time the execution is recently updated.
1457
+ */
1458
+ updateTime?: string | null;
1459
+ }
1460
+ /**
1461
+ * Contains the details of the execution info: this includes the replay reason and replay tree connecting executions in a parent-child relationship
1462
+ */
1463
+ export interface Schema$GoogleCloudIntegrationsV2ExecutionReplayInfo {
1464
+ /**
1465
+ * If this execution is a replay of another execution, then this field contains the original execution id.
1466
+ */
1467
+ originalExecutionId?: string | null;
1468
+ /**
1469
+ * If this execution has been replayed, then this field contains the execution ids of the replayed executions.
1470
+ */
1471
+ replayedExecutionIds?: string[] | null;
1472
+ /**
1473
+ * Replay mode for the execution
1474
+ */
1475
+ replayMode?: string | null;
1476
+ /**
1477
+ * reason for replay
1478
+ */
1479
+ replayReason?: string | null;
1480
+ }
1481
+ /**
1482
+ * Response for listing the Integration executions.
1483
+ */
1484
+ export interface Schema$GoogleCloudIntegrationsV2ListExecutionsResponse {
1485
+ /**
1486
+ * Required. The list of executions.
1487
+ */
1488
+ executions?: Schema$GoogleCloudIntegrationsV2Execution[];
1489
+ /**
1490
+ * The token for retrieving the next page of results.
1491
+ */
1492
+ nextPageToken?: string | null;
1493
+ }
1494
+ /**
1495
+ * Execution of a single task within an integration
1496
+ */
1497
+ export interface Schema$GoogleCloudIntegrationsV2TaskExecution {
1498
+ /**
1499
+ * Identifier. Task execution resource name.
1500
+ */
1501
+ name?: string | null;
1502
+ /**
1503
+ * Details of the task execution.
1504
+ */
1505
+ taskExecutionDetails?: Schema$GoogleCloudIntegrationsV2TaskExecutionDetails[];
1506
+ /**
1507
+ * Optional. Metadata of the task execution.
1508
+ */
1509
+ taskExecutionMetadata?: Schema$GoogleCloudIntegrationsV2TaskExecutionTaskExecutionMetadata;
1510
+ /**
1511
+ * Optional. Variables used during the execution.
1512
+ */
1513
+ variables?: {[key: string]: any} | null;
1514
+ }
1515
+ /**
1516
+ * Details of the task execution.
1517
+ */
1518
+ export interface Schema$GoogleCloudIntegrationsV2TaskExecutionDetails {
1519
+ /**
1520
+ * List for the current task execution attempts.
1521
+ */
1522
+ taskAttemptStats?: Schema$GoogleCloudIntegrationsV2AttemptStats[];
1523
+ /**
1524
+ * Output only. The execution state of this task.
1525
+ */
1526
+ taskExecutionState?: string | null;
1527
+ /**
1528
+ * Pointer to the task config it used for execution.
1529
+ */
1530
+ taskNumber?: string | null;
1531
+ }
1532
+ /**
1533
+ * Metadata of the task execution.
1534
+ */
1535
+ export interface Schema$GoogleCloudIntegrationsV2TaskExecutionTaskExecutionMetadata {
1536
+ /**
1537
+ * Optional. Ancestor iteration number for the task (it will only be non-empty if the task is under 'private integration').
1538
+ */
1539
+ ancestorIterationNumbers?: string[] | null;
1540
+ /**
1541
+ * Optional. Ancestor task number for the task (it will only be non-empty if the task is under 'private integration').
1542
+ */
1543
+ ancestorTaskNumbers?: string[] | null;
1544
+ /**
1545
+ * The execution attempt number this execution belongs to.
1546
+ */
1547
+ executionAttempt?: number | null;
1548
+ /**
1549
+ * Optional. The direct integration which the execution belongs to.
1550
+ */
1551
+ privateIntegrationName?: string | null;
1552
+ /**
1553
+ * The task name associated with this execution.
1554
+ */
1555
+ task?: string | null;
1556
+ /**
1557
+ * The task attempt number this execution belongs to.
1558
+ */
1559
+ taskAttempt?: number | null;
1560
+ /**
1561
+ * The task label associated with this execution.
1562
+ */
1563
+ taskLabel?: string | null;
1564
+ /**
1565
+ * The task number associated with this execution.
1566
+ */
1567
+ taskNumber?: string | null;
1568
+ }
1569
+ /**
1570
+ * LINT.IfChange Use this request to post all workflows associated with a given trigger id. Next available id: 13
1571
+ */
1572
+ export interface Schema$GoogleInternalCloudCrmEventbusV3PostToQueueWithTriggerIdRequest {
1573
+ /**
1574
+ * Optional. If the client id is provided, then the combination of trigger id and client id is matched across all the workflows. If the client id is not provided, then workflows with matching trigger id are executed for each client id in the {@link TriggerConfig\}. For Api Trigger, the client id is required and will be validated against the allowed clients.
1575
+ */
1576
+ clientId?: string | null;
1577
+ /**
1578
+ * Optional. Flag to determine whether clients would suppress a warning when no ACTIVE workflows are not found. If this flag is set to be true, an error will not be thrown if the requested trigger_id or client_id is not found in any ACTIVE workflow. Otherwise, the error is always thrown. The flag is set to be false by default.
1579
+ */
1580
+ ignoreErrorIfNoActiveWorkflow?: boolean | null;
1581
+ /**
1582
+ * Passed in as parameters to each workflow execution. Optional.
1583
+ */
1584
+ parameters?: Schema$EnterpriseCrmEventbusProtoEventParameters;
1585
+ /**
1586
+ * The request priority this request should be processed at. For internal users:
1587
+ */
1588
+ priority?: string | null;
1589
+ /**
1590
+ * Optional. This is a field to see the quota retry count for integration execution
1591
+ */
1592
+ quotaRetryCount?: number | null;
1593
+ /**
1594
+ * Optional. This is used to de-dup incoming request: if the duplicate request was detected, the response from the previous execution is returned. Must have no more than 36 characters and contain only alphanumeric characters and hyphens.
1595
+ */
1596
+ requestId?: string | null;
1597
+ /**
1598
+ * This field is only required when using Admin Access. The resource name of target, or the parent resource name. For example: "projects/x/locations/x/integrations/x"
1599
+ */
1600
+ resourceName?: string | null;
1601
+ /**
1602
+ * Optional. Time in milliseconds since epoch when the given event would be scheduled.
1603
+ */
1604
+ scheduledTime?: string | null;
1605
+ /**
1606
+ * Optional. Sets test mode in {@link enterprise/crm/eventbus/event_message.proto\}.
1607
+ */
1608
+ testMode?: boolean | null;
1609
+ /**
1610
+ * Matched against all {@link TriggerConfig\}s across all workflows. i.e. TriggerConfig.trigger_id.equals(trigger_id) Required.
1611
+ */
1612
+ triggerId?: string | null;
1613
+ /**
1614
+ * This is a unique id provided by the method caller. If provided this will be used as the execution_id when a new execution info is created. This is a string representation of a UUID. Must have no more than 36 characters and contain only alphanumeric characters and hyphens.
1615
+ */
1616
+ userGeneratedExecutionId?: string | null;
1617
+ /**
1618
+ * Optional. If provided, the workflow_name is used to filter all the matched workflows having same trigger_id+client_id. A combination of trigger_id, client_id and workflow_name identifies a unique workflow.
1619
+ */
1620
+ workflowName?: string | null;
1621
+ }
1622
+
1623
+ export class Resource$Projects {
1624
+ context: APIRequestContext;
1625
+ locations: Resource$Projects$Locations;
1626
+ constructor(context: APIRequestContext) {
1627
+ this.context = context;
1628
+ this.locations = new Resource$Projects$Locations(this.context);
1629
+ }
1630
+ }
1631
+
1632
+ export class Resource$Projects$Locations {
1633
+ context: APIRequestContext;
1634
+ integrations: Resource$Projects$Locations$Integrations;
1635
+ constructor(context: APIRequestContext) {
1636
+ this.context = context;
1637
+ this.integrations = new Resource$Projects$Locations$Integrations(
1638
+ this.context
1639
+ );
1640
+ }
1641
+
1642
+ /**
1643
+ * Generates an integration skeleton based on a natural language prompt.
1644
+ * @example
1645
+ * ```js
1646
+ * // Before running the sample:
1647
+ * // - Enable the API at:
1648
+ * // https://console.developers.google.com/apis/api/integrations.googleapis.com
1649
+ * // - Login into gcloud by running:
1650
+ * // ```sh
1651
+ * // $ gcloud auth application-default login
1652
+ * // ```
1653
+ * // - Install the npm module by running:
1654
+ * // ```sh
1655
+ * // $ npm install googleapis
1656
+ * // ```
1657
+ *
1658
+ * const {google} = require('googleapis');
1659
+ * const integrations = google.integrations('v2');
1660
+ *
1661
+ * async function main() {
1662
+ * const auth = new google.auth.GoogleAuth({
1663
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
1664
+ * scopes: ['https://www.googleapis.com/auth/cloud-platform'],
1665
+ * });
1666
+ *
1667
+ * // Acquire an auth client, and bind it to all future calls
1668
+ * const authClient = await auth.getClient();
1669
+ * google.options({auth: authClient});
1670
+ *
1671
+ * // Do the magic
1672
+ * const res = await integrations.projects.locations.generateIntegration({
1673
+ * // Required. The location in which the integration will be generated. Format: `projects/{project\}/locations/{location\}`
1674
+ * parent: 'projects/my-project/locations/my-location',
1675
+ *
1676
+ * // Request body metadata
1677
+ * requestBody: {
1678
+ * // request body parameters
1679
+ * // {
1680
+ * // "copilotEnabled": false,
1681
+ * // "prompt": "my_prompt"
1682
+ * // }
1683
+ * },
1684
+ * });
1685
+ * console.log(res.data);
1686
+ *
1687
+ * // Example response
1688
+ * // {
1689
+ * // "skeletonIntegrations": []
1690
+ * // }
1691
+ * }
1692
+ *
1693
+ * main().catch(e => {
1694
+ * console.error(e);
1695
+ * throw e;
1696
+ * });
1697
+ *
1698
+ * ```
1699
+ *
1700
+ * @param params - Parameters for request
1701
+ * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
1702
+ * @param callback - Optional callback that handles the response.
1703
+ * @returns A promise if used with async/await, or void if used with a callback.
1704
+ */
1705
+ generateIntegration(
1706
+ params: Params$Resource$Projects$Locations$Generateintegration,
1707
+ options: StreamMethodOptions
1708
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
1709
+ generateIntegration(
1710
+ params?: Params$Resource$Projects$Locations$Generateintegration,
1711
+ options?: MethodOptions
1712
+ ): Promise<
1713
+ GaxiosResponseWithHTTP2<Schema$GoogleCloudIntegrationsV2DuetGenerateIntegrationResponse>
1714
+ >;
1715
+ generateIntegration(
1716
+ params: Params$Resource$Projects$Locations$Generateintegration,
1717
+ options: StreamMethodOptions | BodyResponseCallback<Readable>,
1718
+ callback: BodyResponseCallback<Readable>
1719
+ ): void;
1720
+ generateIntegration(
1721
+ params: Params$Resource$Projects$Locations$Generateintegration,
1722
+ options:
1723
+ | MethodOptions
1724
+ | BodyResponseCallback<Schema$GoogleCloudIntegrationsV2DuetGenerateIntegrationResponse>,
1725
+ callback: BodyResponseCallback<Schema$GoogleCloudIntegrationsV2DuetGenerateIntegrationResponse>
1726
+ ): void;
1727
+ generateIntegration(
1728
+ params: Params$Resource$Projects$Locations$Generateintegration,
1729
+ callback: BodyResponseCallback<Schema$GoogleCloudIntegrationsV2DuetGenerateIntegrationResponse>
1730
+ ): void;
1731
+ generateIntegration(
1732
+ callback: BodyResponseCallback<Schema$GoogleCloudIntegrationsV2DuetGenerateIntegrationResponse>
1733
+ ): void;
1734
+ generateIntegration(
1735
+ paramsOrCallback?:
1736
+ | Params$Resource$Projects$Locations$Generateintegration
1737
+ | BodyResponseCallback<Schema$GoogleCloudIntegrationsV2DuetGenerateIntegrationResponse>
1738
+ | BodyResponseCallback<Readable>,
1739
+ optionsOrCallback?:
1740
+ | MethodOptions
1741
+ | StreamMethodOptions
1742
+ | BodyResponseCallback<Schema$GoogleCloudIntegrationsV2DuetGenerateIntegrationResponse>
1743
+ | BodyResponseCallback<Readable>,
1744
+ callback?:
1745
+ | BodyResponseCallback<Schema$GoogleCloudIntegrationsV2DuetGenerateIntegrationResponse>
1746
+ | BodyResponseCallback<Readable>
1747
+ ):
1748
+ | void
1749
+ | Promise<
1750
+ GaxiosResponseWithHTTP2<Schema$GoogleCloudIntegrationsV2DuetGenerateIntegrationResponse>
1751
+ >
1752
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
1753
+ let params = (paramsOrCallback ||
1754
+ {}) as Params$Resource$Projects$Locations$Generateintegration;
1755
+ let options = (optionsOrCallback || {}) as MethodOptions;
1756
+
1757
+ if (typeof paramsOrCallback === 'function') {
1758
+ callback = paramsOrCallback;
1759
+ params = {} as Params$Resource$Projects$Locations$Generateintegration;
1760
+ options = {};
1761
+ }
1762
+
1763
+ if (typeof optionsOrCallback === 'function') {
1764
+ callback = optionsOrCallback;
1765
+ options = {};
1766
+ }
1767
+
1768
+ const rootUrl = options.rootUrl || 'https://integrations.googleapis.com/';
1769
+ const parameters = {
1770
+ options: Object.assign(
1771
+ {
1772
+ url: (rootUrl + '/v2/{+parent}:generateIntegration').replace(
1773
+ /([^:]\/)\/+/g,
1774
+ '$1'
1775
+ ),
1776
+ method: 'POST',
1777
+ apiVersion: '',
1778
+ },
1779
+ options
1780
+ ),
1781
+ params,
1782
+ requiredParams: ['parent'],
1783
+ pathParams: ['parent'],
1784
+ context: this.context,
1785
+ };
1786
+ if (callback) {
1787
+ createAPIRequest<Schema$GoogleCloudIntegrationsV2DuetGenerateIntegrationResponse>(
1788
+ parameters,
1789
+ callback as BodyResponseCallback<unknown>
1790
+ );
1791
+ } else {
1792
+ return createAPIRequest<Schema$GoogleCloudIntegrationsV2DuetGenerateIntegrationResponse>(
1793
+ parameters
1794
+ );
1795
+ }
1796
+ }
1797
+ }
1798
+
1799
+ export interface Params$Resource$Projects$Locations$Generateintegration extends StandardParameters {
1800
+ /**
1801
+ * Required. The location in which the integration will be generated. Format: `projects/{project\}/locations/{location\}`
1802
+ */
1803
+ parent?: string;
1804
+
1805
+ /**
1806
+ * Request body metadata
1807
+ */
1808
+ requestBody?: Schema$GoogleCloudIntegrationsV2DuetGenerateIntegrationRequest;
1809
+ }
1810
+
1811
+ export class Resource$Projects$Locations$Integrations {
1812
+ context: APIRequestContext;
1813
+ executions: Resource$Projects$Locations$Integrations$Executions;
1814
+ constructor(context: APIRequestContext) {
1815
+ this.context = context;
1816
+ this.executions = new Resource$Projects$Locations$Integrations$Executions(
1817
+ this.context
1818
+ );
1819
+ }
1820
+
1821
+ /**
1822
+ * Executes integrations synchronously. The response is not returned until the requested execution is either fulfilled or experienced an error. Only one integration can be executed. Request format URL: https://integrations.googleapis.com/v2/projects/$PROJECT/locations/$LOCATION/integrations/$INTEGRATION_NAME:execute Request payload: (the entire payload is optional unless input variables need to be set.) {"variable1": "hello world", "variable2": 1, "variable3": {"my_json_key": "my json string value" \}
1823
+ * @example
1824
+ * ```js
1825
+ * // Before running the sample:
1826
+ * // - Enable the API at:
1827
+ * // https://console.developers.google.com/apis/api/integrations.googleapis.com
1828
+ * // - Login into gcloud by running:
1829
+ * // ```sh
1830
+ * // $ gcloud auth application-default login
1831
+ * // ```
1832
+ * // - Install the npm module by running:
1833
+ * // ```sh
1834
+ * // $ npm install googleapis
1835
+ * // ```
1836
+ *
1837
+ * const {google} = require('googleapis');
1838
+ * const integrations = google.integrations('v2');
1839
+ *
1840
+ * async function main() {
1841
+ * const auth = new google.auth.GoogleAuth({
1842
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
1843
+ * scopes: ['https://www.googleapis.com/auth/cloud-platform'],
1844
+ * });
1845
+ *
1846
+ * // Acquire an auth client, and bind it to all future calls
1847
+ * const authClient = await auth.getClient();
1848
+ * google.options({auth: authClient});
1849
+ *
1850
+ * // Do the magic
1851
+ * const res = await integrations.projects.locations.integrations.execute({
1852
+ * // Required. The integration resource name.
1853
+ * parent:
1854
+ * 'projects/my-project/locations/my-location/integrations/my-integration',
1855
+ * // Optional. This is used to de-dup incoming request: if the duplicate request was detected, the response from the previous execution is returned.
1856
+ * requestId: 'placeholder-value',
1857
+ * // Required. The API trigger id associated with the integration. An integration can have multiple trigger_id. This field is required to disambiguate which trigger should be invoked.
1858
+ * triggerId: 'placeholder-value',
1859
+ *
1860
+ * // Request body metadata
1861
+ * requestBody: {
1862
+ * // request body parameters
1863
+ * //
1864
+ * },
1865
+ * });
1866
+ * console.log(res.data);
1867
+ *
1868
+ * // Example response
1869
+ * // {
1870
+ * // "contentType": "my_contentType",
1871
+ * // "data": "my_data",
1872
+ * // "extensions": []
1873
+ * // }
1874
+ * }
1875
+ *
1876
+ * main().catch(e => {
1877
+ * console.error(e);
1878
+ * throw e;
1879
+ * });
1880
+ *
1881
+ * ```
1882
+ *
1883
+ * @param params - Parameters for request
1884
+ * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
1885
+ * @param callback - Optional callback that handles the response.
1886
+ * @returns A promise if used with async/await, or void if used with a callback.
1887
+ */
1888
+ execute(
1889
+ params: Params$Resource$Projects$Locations$Integrations$Execute,
1890
+ options: StreamMethodOptions
1891
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
1892
+ execute(
1893
+ params?: Params$Resource$Projects$Locations$Integrations$Execute,
1894
+ options?: MethodOptions
1895
+ ): Promise<GaxiosResponseWithHTTP2<Schema$GoogleApiHttpBody>>;
1896
+ execute(
1897
+ params: Params$Resource$Projects$Locations$Integrations$Execute,
1898
+ options: StreamMethodOptions | BodyResponseCallback<Readable>,
1899
+ callback: BodyResponseCallback<Readable>
1900
+ ): void;
1901
+ execute(
1902
+ params: Params$Resource$Projects$Locations$Integrations$Execute,
1903
+ options: MethodOptions | BodyResponseCallback<Schema$GoogleApiHttpBody>,
1904
+ callback: BodyResponseCallback<Schema$GoogleApiHttpBody>
1905
+ ): void;
1906
+ execute(
1907
+ params: Params$Resource$Projects$Locations$Integrations$Execute,
1908
+ callback: BodyResponseCallback<Schema$GoogleApiHttpBody>
1909
+ ): void;
1910
+ execute(callback: BodyResponseCallback<Schema$GoogleApiHttpBody>): void;
1911
+ execute(
1912
+ paramsOrCallback?:
1913
+ | Params$Resource$Projects$Locations$Integrations$Execute
1914
+ | BodyResponseCallback<Schema$GoogleApiHttpBody>
1915
+ | BodyResponseCallback<Readable>,
1916
+ optionsOrCallback?:
1917
+ | MethodOptions
1918
+ | StreamMethodOptions
1919
+ | BodyResponseCallback<Schema$GoogleApiHttpBody>
1920
+ | BodyResponseCallback<Readable>,
1921
+ callback?:
1922
+ | BodyResponseCallback<Schema$GoogleApiHttpBody>
1923
+ | BodyResponseCallback<Readable>
1924
+ ):
1925
+ | void
1926
+ | Promise<GaxiosResponseWithHTTP2<Schema$GoogleApiHttpBody>>
1927
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
1928
+ let params = (paramsOrCallback ||
1929
+ {}) as Params$Resource$Projects$Locations$Integrations$Execute;
1930
+ let options = (optionsOrCallback || {}) as MethodOptions;
1931
+
1932
+ if (typeof paramsOrCallback === 'function') {
1933
+ callback = paramsOrCallback;
1934
+ params = {} as Params$Resource$Projects$Locations$Integrations$Execute;
1935
+ options = {};
1936
+ }
1937
+
1938
+ if (typeof optionsOrCallback === 'function') {
1939
+ callback = optionsOrCallback;
1940
+ options = {};
1941
+ }
1942
+
1943
+ const rootUrl = options.rootUrl || 'https://integrations.googleapis.com/';
1944
+ const parameters = {
1945
+ options: Object.assign(
1946
+ {
1947
+ url: (rootUrl + '/v2/{+parent}:execute').replace(
1948
+ /([^:]\/)\/+/g,
1949
+ '$1'
1950
+ ),
1951
+ method: 'POST',
1952
+ apiVersion: '',
1953
+ },
1954
+ options
1955
+ ),
1956
+ params,
1957
+ requiredParams: ['parent'],
1958
+ pathParams: ['parent'],
1959
+ context: this.context,
1960
+ };
1961
+ if (callback) {
1962
+ createAPIRequest<Schema$GoogleApiHttpBody>(
1963
+ parameters,
1964
+ callback as BodyResponseCallback<unknown>
1965
+ );
1966
+ } else {
1967
+ return createAPIRequest<Schema$GoogleApiHttpBody>(parameters);
1968
+ }
1969
+ }
1970
+
1971
+ /**
1972
+ * Generates an integration branch.
1973
+ * @example
1974
+ * ```js
1975
+ * // Before running the sample:
1976
+ * // - Enable the API at:
1977
+ * // https://console.developers.google.com/apis/api/integrations.googleapis.com
1978
+ * // - Login into gcloud by running:
1979
+ * // ```sh
1980
+ * // $ gcloud auth application-default login
1981
+ * // ```
1982
+ * // - Install the npm module by running:
1983
+ * // ```sh
1984
+ * // $ npm install googleapis
1985
+ * // ```
1986
+ *
1987
+ * const {google} = require('googleapis');
1988
+ * const integrations = google.integrations('v2');
1989
+ *
1990
+ * async function main() {
1991
+ * const auth = new google.auth.GoogleAuth({
1992
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
1993
+ * scopes: ['https://www.googleapis.com/auth/cloud-platform'],
1994
+ * });
1995
+ *
1996
+ * // Acquire an auth client, and bind it to all future calls
1997
+ * const authClient = await auth.getClient();
1998
+ * google.options({auth: authClient});
1999
+ *
2000
+ * // Do the magic
2001
+ * const res =
2002
+ * await integrations.projects.locations.integrations.generateIntegrationBranch(
2003
+ * {
2004
+ * // Required. Format: `projects/{project\}/locations/{location\}/integrations/{integration\}`
2005
+ * parent:
2006
+ * 'projects/my-project/locations/my-location/integrations/my-integration',
2007
+ *
2008
+ * // Request body metadata
2009
+ * requestBody: {
2010
+ * // request body parameters
2011
+ * // {
2012
+ * // "integrationBranchRequest": {},
2013
+ * // "prompt": "my_prompt"
2014
+ * // }
2015
+ * },
2016
+ * },
2017
+ * );
2018
+ * console.log(res.data);
2019
+ *
2020
+ * // Example response
2021
+ * // {
2022
+ * // "integrationBranch": {}
2023
+ * // }
2024
+ * }
2025
+ *
2026
+ * main().catch(e => {
2027
+ * console.error(e);
2028
+ * throw e;
2029
+ * });
2030
+ *
2031
+ * ```
2032
+ *
2033
+ * @param params - Parameters for request
2034
+ * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
2035
+ * @param callback - Optional callback that handles the response.
2036
+ * @returns A promise if used with async/await, or void if used with a callback.
2037
+ */
2038
+ generateIntegrationBranch(
2039
+ params: Params$Resource$Projects$Locations$Integrations$Generateintegrationbranch,
2040
+ options: StreamMethodOptions
2041
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
2042
+ generateIntegrationBranch(
2043
+ params?: Params$Resource$Projects$Locations$Integrations$Generateintegrationbranch,
2044
+ options?: MethodOptions
2045
+ ): Promise<
2046
+ GaxiosResponseWithHTTP2<Schema$GoogleCloudIntegrationsV2DuetGenerateIntegrationBranchResponse>
2047
+ >;
2048
+ generateIntegrationBranch(
2049
+ params: Params$Resource$Projects$Locations$Integrations$Generateintegrationbranch,
2050
+ options: StreamMethodOptions | BodyResponseCallback<Readable>,
2051
+ callback: BodyResponseCallback<Readable>
2052
+ ): void;
2053
+ generateIntegrationBranch(
2054
+ params: Params$Resource$Projects$Locations$Integrations$Generateintegrationbranch,
2055
+ options:
2056
+ | MethodOptions
2057
+ | BodyResponseCallback<Schema$GoogleCloudIntegrationsV2DuetGenerateIntegrationBranchResponse>,
2058
+ callback: BodyResponseCallback<Schema$GoogleCloudIntegrationsV2DuetGenerateIntegrationBranchResponse>
2059
+ ): void;
2060
+ generateIntegrationBranch(
2061
+ params: Params$Resource$Projects$Locations$Integrations$Generateintegrationbranch,
2062
+ callback: BodyResponseCallback<Schema$GoogleCloudIntegrationsV2DuetGenerateIntegrationBranchResponse>
2063
+ ): void;
2064
+ generateIntegrationBranch(
2065
+ callback: BodyResponseCallback<Schema$GoogleCloudIntegrationsV2DuetGenerateIntegrationBranchResponse>
2066
+ ): void;
2067
+ generateIntegrationBranch(
2068
+ paramsOrCallback?:
2069
+ | Params$Resource$Projects$Locations$Integrations$Generateintegrationbranch
2070
+ | BodyResponseCallback<Schema$GoogleCloudIntegrationsV2DuetGenerateIntegrationBranchResponse>
2071
+ | BodyResponseCallback<Readable>,
2072
+ optionsOrCallback?:
2073
+ | MethodOptions
2074
+ | StreamMethodOptions
2075
+ | BodyResponseCallback<Schema$GoogleCloudIntegrationsV2DuetGenerateIntegrationBranchResponse>
2076
+ | BodyResponseCallback<Readable>,
2077
+ callback?:
2078
+ | BodyResponseCallback<Schema$GoogleCloudIntegrationsV2DuetGenerateIntegrationBranchResponse>
2079
+ | BodyResponseCallback<Readable>
2080
+ ):
2081
+ | void
2082
+ | Promise<
2083
+ GaxiosResponseWithHTTP2<Schema$GoogleCloudIntegrationsV2DuetGenerateIntegrationBranchResponse>
2084
+ >
2085
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
2086
+ let params = (paramsOrCallback ||
2087
+ {}) as Params$Resource$Projects$Locations$Integrations$Generateintegrationbranch;
2088
+ let options = (optionsOrCallback || {}) as MethodOptions;
2089
+
2090
+ if (typeof paramsOrCallback === 'function') {
2091
+ callback = paramsOrCallback;
2092
+ params =
2093
+ {} as Params$Resource$Projects$Locations$Integrations$Generateintegrationbranch;
2094
+ options = {};
2095
+ }
2096
+
2097
+ if (typeof optionsOrCallback === 'function') {
2098
+ callback = optionsOrCallback;
2099
+ options = {};
2100
+ }
2101
+
2102
+ const rootUrl = options.rootUrl || 'https://integrations.googleapis.com/';
2103
+ const parameters = {
2104
+ options: Object.assign(
2105
+ {
2106
+ url: (rootUrl + '/v2/{+parent}:generateIntegrationBranch').replace(
2107
+ /([^:]\/)\/+/g,
2108
+ '$1'
2109
+ ),
2110
+ method: 'POST',
2111
+ apiVersion: '',
2112
+ },
2113
+ options
2114
+ ),
2115
+ params,
2116
+ requiredParams: ['parent'],
2117
+ pathParams: ['parent'],
2118
+ context: this.context,
2119
+ };
2120
+ if (callback) {
2121
+ createAPIRequest<Schema$GoogleCloudIntegrationsV2DuetGenerateIntegrationBranchResponse>(
2122
+ parameters,
2123
+ callback as BodyResponseCallback<unknown>
2124
+ );
2125
+ } else {
2126
+ return createAPIRequest<Schema$GoogleCloudIntegrationsV2DuetGenerateIntegrationBranchResponse>(
2127
+ parameters
2128
+ );
2129
+ }
2130
+ }
2131
+
2132
+ /**
2133
+ * Generates documentation for an integration version.
2134
+ * @example
2135
+ * ```js
2136
+ * // Before running the sample:
2137
+ * // - Enable the API at:
2138
+ * // https://console.developers.google.com/apis/api/integrations.googleapis.com
2139
+ * // - Login into gcloud by running:
2140
+ * // ```sh
2141
+ * // $ gcloud auth application-default login
2142
+ * // ```
2143
+ * // - Install the npm module by running:
2144
+ * // ```sh
2145
+ * // $ npm install googleapis
2146
+ * // ```
2147
+ *
2148
+ * const {google} = require('googleapis');
2149
+ * const integrations = google.integrations('v2');
2150
+ *
2151
+ * async function main() {
2152
+ * const auth = new google.auth.GoogleAuth({
2153
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
2154
+ * scopes: ['https://www.googleapis.com/auth/cloud-platform'],
2155
+ * });
2156
+ *
2157
+ * // Acquire an auth client, and bind it to all future calls
2158
+ * const authClient = await auth.getClient();
2159
+ * google.options({auth: authClient});
2160
+ *
2161
+ * // Do the magic
2162
+ * const res =
2163
+ * await integrations.projects.locations.integrations.generateIntegrationDocument(
2164
+ * {
2165
+ * // Required. Format: `projects/{project\}/locations/{location\}/integrations/{integration\}`
2166
+ * parent:
2167
+ * 'projects/my-project/locations/my-location/integrations/my-integration',
2168
+ *
2169
+ * // Request body metadata
2170
+ * requestBody: {
2171
+ * // request body parameters
2172
+ * // {
2173
+ * // "integrationDocumentRequest": {}
2174
+ * // }
2175
+ * },
2176
+ * },
2177
+ * );
2178
+ * console.log(res.data);
2179
+ *
2180
+ * // Example response
2181
+ * // {
2182
+ * // "document": "my_document"
2183
+ * // }
2184
+ * }
2185
+ *
2186
+ * main().catch(e => {
2187
+ * console.error(e);
2188
+ * throw e;
2189
+ * });
2190
+ *
2191
+ * ```
2192
+ *
2193
+ * @param params - Parameters for request
2194
+ * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
2195
+ * @param callback - Optional callback that handles the response.
2196
+ * @returns A promise if used with async/await, or void if used with a callback.
2197
+ */
2198
+ generateIntegrationDocument(
2199
+ params: Params$Resource$Projects$Locations$Integrations$Generateintegrationdocument,
2200
+ options: StreamMethodOptions
2201
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
2202
+ generateIntegrationDocument(
2203
+ params?: Params$Resource$Projects$Locations$Integrations$Generateintegrationdocument,
2204
+ options?: MethodOptions
2205
+ ): Promise<
2206
+ GaxiosResponseWithHTTP2<Schema$GoogleCloudIntegrationsV2DuetGenerateIntegrationDocumentResponse>
2207
+ >;
2208
+ generateIntegrationDocument(
2209
+ params: Params$Resource$Projects$Locations$Integrations$Generateintegrationdocument,
2210
+ options: StreamMethodOptions | BodyResponseCallback<Readable>,
2211
+ callback: BodyResponseCallback<Readable>
2212
+ ): void;
2213
+ generateIntegrationDocument(
2214
+ params: Params$Resource$Projects$Locations$Integrations$Generateintegrationdocument,
2215
+ options:
2216
+ | MethodOptions
2217
+ | BodyResponseCallback<Schema$GoogleCloudIntegrationsV2DuetGenerateIntegrationDocumentResponse>,
2218
+ callback: BodyResponseCallback<Schema$GoogleCloudIntegrationsV2DuetGenerateIntegrationDocumentResponse>
2219
+ ): void;
2220
+ generateIntegrationDocument(
2221
+ params: Params$Resource$Projects$Locations$Integrations$Generateintegrationdocument,
2222
+ callback: BodyResponseCallback<Schema$GoogleCloudIntegrationsV2DuetGenerateIntegrationDocumentResponse>
2223
+ ): void;
2224
+ generateIntegrationDocument(
2225
+ callback: BodyResponseCallback<Schema$GoogleCloudIntegrationsV2DuetGenerateIntegrationDocumentResponse>
2226
+ ): void;
2227
+ generateIntegrationDocument(
2228
+ paramsOrCallback?:
2229
+ | Params$Resource$Projects$Locations$Integrations$Generateintegrationdocument
2230
+ | BodyResponseCallback<Schema$GoogleCloudIntegrationsV2DuetGenerateIntegrationDocumentResponse>
2231
+ | BodyResponseCallback<Readable>,
2232
+ optionsOrCallback?:
2233
+ | MethodOptions
2234
+ | StreamMethodOptions
2235
+ | BodyResponseCallback<Schema$GoogleCloudIntegrationsV2DuetGenerateIntegrationDocumentResponse>
2236
+ | BodyResponseCallback<Readable>,
2237
+ callback?:
2238
+ | BodyResponseCallback<Schema$GoogleCloudIntegrationsV2DuetGenerateIntegrationDocumentResponse>
2239
+ | BodyResponseCallback<Readable>
2240
+ ):
2241
+ | void
2242
+ | Promise<
2243
+ GaxiosResponseWithHTTP2<Schema$GoogleCloudIntegrationsV2DuetGenerateIntegrationDocumentResponse>
2244
+ >
2245
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
2246
+ let params = (paramsOrCallback ||
2247
+ {}) as Params$Resource$Projects$Locations$Integrations$Generateintegrationdocument;
2248
+ let options = (optionsOrCallback || {}) as MethodOptions;
2249
+
2250
+ if (typeof paramsOrCallback === 'function') {
2251
+ callback = paramsOrCallback;
2252
+ params =
2253
+ {} as Params$Resource$Projects$Locations$Integrations$Generateintegrationdocument;
2254
+ options = {};
2255
+ }
2256
+
2257
+ if (typeof optionsOrCallback === 'function') {
2258
+ callback = optionsOrCallback;
2259
+ options = {};
2260
+ }
2261
+
2262
+ const rootUrl = options.rootUrl || 'https://integrations.googleapis.com/';
2263
+ const parameters = {
2264
+ options: Object.assign(
2265
+ {
2266
+ url: (
2267
+ rootUrl + '/v2/{+parent}:generateIntegrationDocument'
2268
+ ).replace(/([^:]\/)\/+/g, '$1'),
2269
+ method: 'POST',
2270
+ apiVersion: '',
2271
+ },
2272
+ options
2273
+ ),
2274
+ params,
2275
+ requiredParams: ['parent'],
2276
+ pathParams: ['parent'],
2277
+ context: this.context,
2278
+ };
2279
+ if (callback) {
2280
+ createAPIRequest<Schema$GoogleCloudIntegrationsV2DuetGenerateIntegrationDocumentResponse>(
2281
+ parameters,
2282
+ callback as BodyResponseCallback<unknown>
2283
+ );
2284
+ } else {
2285
+ return createAPIRequest<Schema$GoogleCloudIntegrationsV2DuetGenerateIntegrationDocumentResponse>(
2286
+ parameters
2287
+ );
2288
+ }
2289
+ }
2290
+
2291
+ /**
2292
+ * Generates Javascript code for data mapping.
2293
+ * @example
2294
+ * ```js
2295
+ * // Before running the sample:
2296
+ * // - Enable the API at:
2297
+ * // https://console.developers.google.com/apis/api/integrations.googleapis.com
2298
+ * // - Login into gcloud by running:
2299
+ * // ```sh
2300
+ * // $ gcloud auth application-default login
2301
+ * // ```
2302
+ * // - Install the npm module by running:
2303
+ * // ```sh
2304
+ * // $ npm install googleapis
2305
+ * // ```
2306
+ *
2307
+ * const {google} = require('googleapis');
2308
+ * const integrations = google.integrations('v2');
2309
+ *
2310
+ * async function main() {
2311
+ * const auth = new google.auth.GoogleAuth({
2312
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
2313
+ * scopes: ['https://www.googleapis.com/auth/cloud-platform'],
2314
+ * });
2315
+ *
2316
+ * // Acquire an auth client, and bind it to all future calls
2317
+ * const authClient = await auth.getClient();
2318
+ * google.options({auth: authClient});
2319
+ *
2320
+ * // Do the magic
2321
+ * const res =
2322
+ * await integrations.projects.locations.integrations.generateJavascript({
2323
+ * // Required. Format: `projects/{project\}/locations/{location\}/integrations/{integration\}`
2324
+ * parent:
2325
+ * 'projects/my-project/locations/my-location/integrations/my-integration',
2326
+ *
2327
+ * // Request body metadata
2328
+ * requestBody: {
2329
+ * // request body parameters
2330
+ * // {
2331
+ * // "javascriptRequest": {},
2332
+ * // "prompt": "my_prompt"
2333
+ * // }
2334
+ * },
2335
+ * });
2336
+ * console.log(res.data);
2337
+ *
2338
+ * // Example response
2339
+ * // {
2340
+ * // "recommendations": []
2341
+ * // }
2342
+ * }
2343
+ *
2344
+ * main().catch(e => {
2345
+ * console.error(e);
2346
+ * throw e;
2347
+ * });
2348
+ *
2349
+ * ```
2350
+ *
2351
+ * @param params - Parameters for request
2352
+ * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
2353
+ * @param callback - Optional callback that handles the response.
2354
+ * @returns A promise if used with async/await, or void if used with a callback.
2355
+ */
2356
+ generateJavascript(
2357
+ params: Params$Resource$Projects$Locations$Integrations$Generatejavascript,
2358
+ options: StreamMethodOptions
2359
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
2360
+ generateJavascript(
2361
+ params?: Params$Resource$Projects$Locations$Integrations$Generatejavascript,
2362
+ options?: MethodOptions
2363
+ ): Promise<
2364
+ GaxiosResponseWithHTTP2<Schema$GoogleCloudIntegrationsV2DuetGenerateJavascriptResponse>
2365
+ >;
2366
+ generateJavascript(
2367
+ params: Params$Resource$Projects$Locations$Integrations$Generatejavascript,
2368
+ options: StreamMethodOptions | BodyResponseCallback<Readable>,
2369
+ callback: BodyResponseCallback<Readable>
2370
+ ): void;
2371
+ generateJavascript(
2372
+ params: Params$Resource$Projects$Locations$Integrations$Generatejavascript,
2373
+ options:
2374
+ | MethodOptions
2375
+ | BodyResponseCallback<Schema$GoogleCloudIntegrationsV2DuetGenerateJavascriptResponse>,
2376
+ callback: BodyResponseCallback<Schema$GoogleCloudIntegrationsV2DuetGenerateJavascriptResponse>
2377
+ ): void;
2378
+ generateJavascript(
2379
+ params: Params$Resource$Projects$Locations$Integrations$Generatejavascript,
2380
+ callback: BodyResponseCallback<Schema$GoogleCloudIntegrationsV2DuetGenerateJavascriptResponse>
2381
+ ): void;
2382
+ generateJavascript(
2383
+ callback: BodyResponseCallback<Schema$GoogleCloudIntegrationsV2DuetGenerateJavascriptResponse>
2384
+ ): void;
2385
+ generateJavascript(
2386
+ paramsOrCallback?:
2387
+ | Params$Resource$Projects$Locations$Integrations$Generatejavascript
2388
+ | BodyResponseCallback<Schema$GoogleCloudIntegrationsV2DuetGenerateJavascriptResponse>
2389
+ | BodyResponseCallback<Readable>,
2390
+ optionsOrCallback?:
2391
+ | MethodOptions
2392
+ | StreamMethodOptions
2393
+ | BodyResponseCallback<Schema$GoogleCloudIntegrationsV2DuetGenerateJavascriptResponse>
2394
+ | BodyResponseCallback<Readable>,
2395
+ callback?:
2396
+ | BodyResponseCallback<Schema$GoogleCloudIntegrationsV2DuetGenerateJavascriptResponse>
2397
+ | BodyResponseCallback<Readable>
2398
+ ):
2399
+ | void
2400
+ | Promise<
2401
+ GaxiosResponseWithHTTP2<Schema$GoogleCloudIntegrationsV2DuetGenerateJavascriptResponse>
2402
+ >
2403
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
2404
+ let params = (paramsOrCallback ||
2405
+ {}) as Params$Resource$Projects$Locations$Integrations$Generatejavascript;
2406
+ let options = (optionsOrCallback || {}) as MethodOptions;
2407
+
2408
+ if (typeof paramsOrCallback === 'function') {
2409
+ callback = paramsOrCallback;
2410
+ params =
2411
+ {} as Params$Resource$Projects$Locations$Integrations$Generatejavascript;
2412
+ options = {};
2413
+ }
2414
+
2415
+ if (typeof optionsOrCallback === 'function') {
2416
+ callback = optionsOrCallback;
2417
+ options = {};
2418
+ }
2419
+
2420
+ const rootUrl = options.rootUrl || 'https://integrations.googleapis.com/';
2421
+ const parameters = {
2422
+ options: Object.assign(
2423
+ {
2424
+ url: (rootUrl + '/v2/{+parent}:generateJavascript').replace(
2425
+ /([^:]\/)\/+/g,
2426
+ '$1'
2427
+ ),
2428
+ method: 'POST',
2429
+ apiVersion: '',
2430
+ },
2431
+ options
2432
+ ),
2433
+ params,
2434
+ requiredParams: ['parent'],
2435
+ pathParams: ['parent'],
2436
+ context: this.context,
2437
+ };
2438
+ if (callback) {
2439
+ createAPIRequest<Schema$GoogleCloudIntegrationsV2DuetGenerateJavascriptResponse>(
2440
+ parameters,
2441
+ callback as BodyResponseCallback<unknown>
2442
+ );
2443
+ } else {
2444
+ return createAPIRequest<Schema$GoogleCloudIntegrationsV2DuetGenerateJavascriptResponse>(
2445
+ parameters
2446
+ );
2447
+ }
2448
+ }
2449
+
2450
+ /**
2451
+ * Recommends tasks to replace a selected task.
2452
+ * @example
2453
+ * ```js
2454
+ * // Before running the sample:
2455
+ * // - Enable the API at:
2456
+ * // https://console.developers.google.com/apis/api/integrations.googleapis.com
2457
+ * // - Login into gcloud by running:
2458
+ * // ```sh
2459
+ * // $ gcloud auth application-default login
2460
+ * // ```
2461
+ * // - Install the npm module by running:
2462
+ * // ```sh
2463
+ * // $ npm install googleapis
2464
+ * // ```
2465
+ *
2466
+ * const {google} = require('googleapis');
2467
+ * const integrations = google.integrations('v2');
2468
+ *
2469
+ * async function main() {
2470
+ * const auth = new google.auth.GoogleAuth({
2471
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
2472
+ * scopes: ['https://www.googleapis.com/auth/cloud-platform'],
2473
+ * });
2474
+ *
2475
+ * // Acquire an auth client, and bind it to all future calls
2476
+ * const authClient = await auth.getClient();
2477
+ * google.options({auth: authClient});
2478
+ *
2479
+ * // Do the magic
2480
+ * const res = await integrations.projects.locations.integrations.recommendTasks(
2481
+ * {
2482
+ * // Required. Format: `projects/{project\}/locations/{location\}/integrations/{integration\}`
2483
+ * parent:
2484
+ * 'projects/my-project/locations/my-location/integrations/my-integration',
2485
+ *
2486
+ * // Request body metadata
2487
+ * requestBody: {
2488
+ * // request body parameters
2489
+ * // {
2490
+ * // "prompt": "my_prompt",
2491
+ * // "replaceTaskRequest": {}
2492
+ * // }
2493
+ * },
2494
+ * },
2495
+ * );
2496
+ * console.log(res.data);
2497
+ *
2498
+ * // Example response
2499
+ * // {
2500
+ * // "taskConfigs": [],
2501
+ * // "taskResponseStatuses": []
2502
+ * // }
2503
+ * }
2504
+ *
2505
+ * main().catch(e => {
2506
+ * console.error(e);
2507
+ * throw e;
2508
+ * });
2509
+ *
2510
+ * ```
2511
+ *
2512
+ * @param params - Parameters for request
2513
+ * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
2514
+ * @param callback - Optional callback that handles the response.
2515
+ * @returns A promise if used with async/await, or void if used with a callback.
2516
+ */
2517
+ recommendTasks(
2518
+ params: Params$Resource$Projects$Locations$Integrations$Recommendtasks,
2519
+ options: StreamMethodOptions
2520
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
2521
+ recommendTasks(
2522
+ params?: Params$Resource$Projects$Locations$Integrations$Recommendtasks,
2523
+ options?: MethodOptions
2524
+ ): Promise<
2525
+ GaxiosResponseWithHTTP2<Schema$GoogleCloudIntegrationsV2DuetRecommendTasksResponse>
2526
+ >;
2527
+ recommendTasks(
2528
+ params: Params$Resource$Projects$Locations$Integrations$Recommendtasks,
2529
+ options: StreamMethodOptions | BodyResponseCallback<Readable>,
2530
+ callback: BodyResponseCallback<Readable>
2531
+ ): void;
2532
+ recommendTasks(
2533
+ params: Params$Resource$Projects$Locations$Integrations$Recommendtasks,
2534
+ options:
2535
+ | MethodOptions
2536
+ | BodyResponseCallback<Schema$GoogleCloudIntegrationsV2DuetRecommendTasksResponse>,
2537
+ callback: BodyResponseCallback<Schema$GoogleCloudIntegrationsV2DuetRecommendTasksResponse>
2538
+ ): void;
2539
+ recommendTasks(
2540
+ params: Params$Resource$Projects$Locations$Integrations$Recommendtasks,
2541
+ callback: BodyResponseCallback<Schema$GoogleCloudIntegrationsV2DuetRecommendTasksResponse>
2542
+ ): void;
2543
+ recommendTasks(
2544
+ callback: BodyResponseCallback<Schema$GoogleCloudIntegrationsV2DuetRecommendTasksResponse>
2545
+ ): void;
2546
+ recommendTasks(
2547
+ paramsOrCallback?:
2548
+ | Params$Resource$Projects$Locations$Integrations$Recommendtasks
2549
+ | BodyResponseCallback<Schema$GoogleCloudIntegrationsV2DuetRecommendTasksResponse>
2550
+ | BodyResponseCallback<Readable>,
2551
+ optionsOrCallback?:
2552
+ | MethodOptions
2553
+ | StreamMethodOptions
2554
+ | BodyResponseCallback<Schema$GoogleCloudIntegrationsV2DuetRecommendTasksResponse>
2555
+ | BodyResponseCallback<Readable>,
2556
+ callback?:
2557
+ | BodyResponseCallback<Schema$GoogleCloudIntegrationsV2DuetRecommendTasksResponse>
2558
+ | BodyResponseCallback<Readable>
2559
+ ):
2560
+ | void
2561
+ | Promise<
2562
+ GaxiosResponseWithHTTP2<Schema$GoogleCloudIntegrationsV2DuetRecommendTasksResponse>
2563
+ >
2564
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
2565
+ let params = (paramsOrCallback ||
2566
+ {}) as Params$Resource$Projects$Locations$Integrations$Recommendtasks;
2567
+ let options = (optionsOrCallback || {}) as MethodOptions;
2568
+
2569
+ if (typeof paramsOrCallback === 'function') {
2570
+ callback = paramsOrCallback;
2571
+ params =
2572
+ {} as Params$Resource$Projects$Locations$Integrations$Recommendtasks;
2573
+ options = {};
2574
+ }
2575
+
2576
+ if (typeof optionsOrCallback === 'function') {
2577
+ callback = optionsOrCallback;
2578
+ options = {};
2579
+ }
2580
+
2581
+ const rootUrl = options.rootUrl || 'https://integrations.googleapis.com/';
2582
+ const parameters = {
2583
+ options: Object.assign(
2584
+ {
2585
+ url: (rootUrl + '/v2/{+parent}:recommendTasks').replace(
2586
+ /([^:]\/)\/+/g,
2587
+ '$1'
2588
+ ),
2589
+ method: 'POST',
2590
+ apiVersion: '',
2591
+ },
2592
+ options
2593
+ ),
2594
+ params,
2595
+ requiredParams: ['parent'],
2596
+ pathParams: ['parent'],
2597
+ context: this.context,
2598
+ };
2599
+ if (callback) {
2600
+ createAPIRequest<Schema$GoogleCloudIntegrationsV2DuetRecommendTasksResponse>(
2601
+ parameters,
2602
+ callback as BodyResponseCallback<unknown>
2603
+ );
2604
+ } else {
2605
+ return createAPIRequest<Schema$GoogleCloudIntegrationsV2DuetRecommendTasksResponse>(
2606
+ parameters
2607
+ );
2608
+ }
2609
+ }
2610
+
2611
+ /**
2612
+ * Schedules an integration for execution.
2613
+ * @example
2614
+ * ```js
2615
+ * // Before running the sample:
2616
+ * // - Enable the API at:
2617
+ * // https://console.developers.google.com/apis/api/integrations.googleapis.com
2618
+ * // - Login into gcloud by running:
2619
+ * // ```sh
2620
+ * // $ gcloud auth application-default login
2621
+ * // ```
2622
+ * // - Install the npm module by running:
2623
+ * // ```sh
2624
+ * // $ npm install googleapis
2625
+ * // ```
2626
+ *
2627
+ * const {google} = require('googleapis');
2628
+ * const integrations = google.integrations('v2');
2629
+ *
2630
+ * async function main() {
2631
+ * const auth = new google.auth.GoogleAuth({
2632
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
2633
+ * scopes: ['https://www.googleapis.com/auth/cloud-platform'],
2634
+ * });
2635
+ *
2636
+ * // Acquire an auth client, and bind it to all future calls
2637
+ * const authClient = await auth.getClient();
2638
+ * google.options({auth: authClient});
2639
+ *
2640
+ * // Do the magic
2641
+ * const res = await integrations.projects.locations.integrations.schedule({
2642
+ * // Required. The integration resource name.
2643
+ * parent:
2644
+ * 'projects/my-project/locations/my-location/integrations/my-integration',
2645
+ * // Optional. This is used to de-dup incoming request: if the duplicate request was detected, the response from the previous execution is returned.
2646
+ * requestId: 'placeholder-value',
2647
+ * // Optional. The time that the integration should be executed. If the time is less or equal to the current time, the integration is executed immediately.
2648
+ * scheduleTime: 'placeholder-value',
2649
+ * // Required. The API trigger id associated with the integration. An integration can have multiple trigger_id. This field is required to disambiguate which trigger should be invoked
2650
+ * triggerId: 'placeholder-value',
2651
+ *
2652
+ * // Request body metadata
2653
+ * requestBody: {
2654
+ * // request body parameters
2655
+ * //
2656
+ * },
2657
+ * });
2658
+ * console.log(res.data);
2659
+ *
2660
+ * // Example response
2661
+ * // {
2662
+ * // "contentType": "my_contentType",
2663
+ * // "data": "my_data",
2664
+ * // "extensions": []
2665
+ * // }
2666
+ * }
2667
+ *
2668
+ * main().catch(e => {
2669
+ * console.error(e);
2670
+ * throw e;
2671
+ * });
2672
+ *
2673
+ * ```
2674
+ *
2675
+ * @param params - Parameters for request
2676
+ * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
2677
+ * @param callback - Optional callback that handles the response.
2678
+ * @returns A promise if used with async/await, or void if used with a callback.
2679
+ */
2680
+ schedule(
2681
+ params: Params$Resource$Projects$Locations$Integrations$Schedule,
2682
+ options: StreamMethodOptions
2683
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
2684
+ schedule(
2685
+ params?: Params$Resource$Projects$Locations$Integrations$Schedule,
2686
+ options?: MethodOptions
2687
+ ): Promise<GaxiosResponseWithHTTP2<Schema$GoogleApiHttpBody>>;
2688
+ schedule(
2689
+ params: Params$Resource$Projects$Locations$Integrations$Schedule,
2690
+ options: StreamMethodOptions | BodyResponseCallback<Readable>,
2691
+ callback: BodyResponseCallback<Readable>
2692
+ ): void;
2693
+ schedule(
2694
+ params: Params$Resource$Projects$Locations$Integrations$Schedule,
2695
+ options: MethodOptions | BodyResponseCallback<Schema$GoogleApiHttpBody>,
2696
+ callback: BodyResponseCallback<Schema$GoogleApiHttpBody>
2697
+ ): void;
2698
+ schedule(
2699
+ params: Params$Resource$Projects$Locations$Integrations$Schedule,
2700
+ callback: BodyResponseCallback<Schema$GoogleApiHttpBody>
2701
+ ): void;
2702
+ schedule(callback: BodyResponseCallback<Schema$GoogleApiHttpBody>): void;
2703
+ schedule(
2704
+ paramsOrCallback?:
2705
+ | Params$Resource$Projects$Locations$Integrations$Schedule
2706
+ | BodyResponseCallback<Schema$GoogleApiHttpBody>
2707
+ | BodyResponseCallback<Readable>,
2708
+ optionsOrCallback?:
2709
+ | MethodOptions
2710
+ | StreamMethodOptions
2711
+ | BodyResponseCallback<Schema$GoogleApiHttpBody>
2712
+ | BodyResponseCallback<Readable>,
2713
+ callback?:
2714
+ | BodyResponseCallback<Schema$GoogleApiHttpBody>
2715
+ | BodyResponseCallback<Readable>
2716
+ ):
2717
+ | void
2718
+ | Promise<GaxiosResponseWithHTTP2<Schema$GoogleApiHttpBody>>
2719
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
2720
+ let params = (paramsOrCallback ||
2721
+ {}) as Params$Resource$Projects$Locations$Integrations$Schedule;
2722
+ let options = (optionsOrCallback || {}) as MethodOptions;
2723
+
2724
+ if (typeof paramsOrCallback === 'function') {
2725
+ callback = paramsOrCallback;
2726
+ params = {} as Params$Resource$Projects$Locations$Integrations$Schedule;
2727
+ options = {};
2728
+ }
2729
+
2730
+ if (typeof optionsOrCallback === 'function') {
2731
+ callback = optionsOrCallback;
2732
+ options = {};
2733
+ }
2734
+
2735
+ const rootUrl = options.rootUrl || 'https://integrations.googleapis.com/';
2736
+ const parameters = {
2737
+ options: Object.assign(
2738
+ {
2739
+ url: (rootUrl + '/v2/{+parent}:schedule').replace(
2740
+ /([^:]\/)\/+/g,
2741
+ '$1'
2742
+ ),
2743
+ method: 'POST',
2744
+ apiVersion: '',
2745
+ },
2746
+ options
2747
+ ),
2748
+ params,
2749
+ requiredParams: ['parent'],
2750
+ pathParams: ['parent'],
2751
+ context: this.context,
2752
+ };
2753
+ if (callback) {
2754
+ createAPIRequest<Schema$GoogleApiHttpBody>(
2755
+ parameters,
2756
+ callback as BodyResponseCallback<unknown>
2757
+ );
2758
+ } else {
2759
+ return createAPIRequest<Schema$GoogleApiHttpBody>(parameters);
2760
+ }
2761
+ }
2762
+ }
2763
+
2764
+ export interface Params$Resource$Projects$Locations$Integrations$Execute extends StandardParameters {
2765
+ /**
2766
+ * Required. The integration resource name.
2767
+ */
2768
+ parent?: string;
2769
+ /**
2770
+ * Optional. This is used to de-dup incoming request: if the duplicate request was detected, the response from the previous execution is returned.
2771
+ */
2772
+ requestId?: string;
2773
+ /**
2774
+ * Required. The API trigger id associated with the integration. An integration can have multiple trigger_id. This field is required to disambiguate which trigger should be invoked.
2775
+ */
2776
+ triggerId?: string;
2777
+
2778
+ /**
2779
+ * Request body metadata
2780
+ */
2781
+ requestBody?: {[key: string]: any};
2782
+ }
2783
+ export interface Params$Resource$Projects$Locations$Integrations$Generateintegrationbranch extends StandardParameters {
2784
+ /**
2785
+ * Required. Format: `projects/{project\}/locations/{location\}/integrations/{integration\}`
2786
+ */
2787
+ parent?: string;
2788
+
2789
+ /**
2790
+ * Request body metadata
2791
+ */
2792
+ requestBody?: Schema$GoogleCloudIntegrationsV2DuetGenerateIntegrationBranchRequest;
2793
+ }
2794
+ export interface Params$Resource$Projects$Locations$Integrations$Generateintegrationdocument extends StandardParameters {
2795
+ /**
2796
+ * Required. Format: `projects/{project\}/locations/{location\}/integrations/{integration\}`
2797
+ */
2798
+ parent?: string;
2799
+
2800
+ /**
2801
+ * Request body metadata
2802
+ */
2803
+ requestBody?: Schema$GoogleCloudIntegrationsV2DuetGenerateIntegrationDocumentRequest;
2804
+ }
2805
+ export interface Params$Resource$Projects$Locations$Integrations$Generatejavascript extends StandardParameters {
2806
+ /**
2807
+ * Required. Format: `projects/{project\}/locations/{location\}/integrations/{integration\}`
2808
+ */
2809
+ parent?: string;
2810
+
2811
+ /**
2812
+ * Request body metadata
2813
+ */
2814
+ requestBody?: Schema$GoogleCloudIntegrationsV2DuetGenerateJavascriptRequest;
2815
+ }
2816
+ export interface Params$Resource$Projects$Locations$Integrations$Recommendtasks extends StandardParameters {
2817
+ /**
2818
+ * Required. Format: `projects/{project\}/locations/{location\}/integrations/{integration\}`
2819
+ */
2820
+ parent?: string;
2821
+
2822
+ /**
2823
+ * Request body metadata
2824
+ */
2825
+ requestBody?: Schema$GoogleCloudIntegrationsV2DuetRecommendTasksRequest;
2826
+ }
2827
+ export interface Params$Resource$Projects$Locations$Integrations$Schedule extends StandardParameters {
2828
+ /**
2829
+ * Required. The integration resource name.
2830
+ */
2831
+ parent?: string;
2832
+ /**
2833
+ * Optional. This is used to de-dup incoming request: if the duplicate request was detected, the response from the previous execution is returned.
2834
+ */
2835
+ requestId?: string;
2836
+ /**
2837
+ * Optional. The time that the integration should be executed. If the time is less or equal to the current time, the integration is executed immediately.
2838
+ */
2839
+ scheduleTime?: string;
2840
+ /**
2841
+ * Required. The API trigger id associated with the integration. An integration can have multiple trigger_id. This field is required to disambiguate which trigger should be invoked
2842
+ */
2843
+ triggerId?: string;
2844
+
2845
+ /**
2846
+ * Request body metadata
2847
+ */
2848
+ requestBody?: {[key: string]: any};
2849
+ }
2850
+
2851
+ export class Resource$Projects$Locations$Integrations$Executions {
2852
+ context: APIRequestContext;
2853
+ taskExecutions: Resource$Projects$Locations$Integrations$Executions$Taskexecutions;
2854
+ constructor(context: APIRequestContext) {
2855
+ this.context = context;
2856
+ this.taskExecutions =
2857
+ new Resource$Projects$Locations$Integrations$Executions$Taskexecutions(
2858
+ this.context
2859
+ );
2860
+ }
2861
+
2862
+ /**
2863
+ * Lists the results of all the integration executions. The response includes the same information as the [execution log](https://cloud.google.com/application-integration/docs/viewing-logs) in the Integration UI.
2864
+ * @example
2865
+ * ```js
2866
+ * // Before running the sample:
2867
+ * // - Enable the API at:
2868
+ * // https://console.developers.google.com/apis/api/integrations.googleapis.com
2869
+ * // - Login into gcloud by running:
2870
+ * // ```sh
2871
+ * // $ gcloud auth application-default login
2872
+ * // ```
2873
+ * // - Install the npm module by running:
2874
+ * // ```sh
2875
+ * // $ npm install googleapis
2876
+ * // ```
2877
+ *
2878
+ * const {google} = require('googleapis');
2879
+ * const integrations = google.integrations('v2');
2880
+ *
2881
+ * async function main() {
2882
+ * const auth = new google.auth.GoogleAuth({
2883
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
2884
+ * scopes: ['https://www.googleapis.com/auth/cloud-platform'],
2885
+ * });
2886
+ *
2887
+ * // Acquire an auth client, and bind it to all future calls
2888
+ * const authClient = await auth.getClient();
2889
+ * google.options({auth: authClient});
2890
+ *
2891
+ * // Do the magic
2892
+ * const res =
2893
+ * await integrations.projects.locations.integrations.executions.list({
2894
+ * // Optional. Standard filter field, we support filtering on following fields: integration_name: the name of the integration. create_time: the execution created time. update_time: the execution last update time. state: the state of the executions. execution_id: the id of the execution. trigger_id: the id of the trigger. All fields support for EQUALS, in additional: create_time and update_time support for LESS_THAN, GREATER_THAN Also supports operators like AND, OR, NOT For example: trigger_id=\"id1\" AND integration_name=\"testIntegration\"
2895
+ * filter: 'placeholder-value',
2896
+ * // Optional. The size of entries in the response.
2897
+ * pageSize: 'placeholder-value',
2898
+ * // Optional. The token returned in the previous response.
2899
+ * pageToken: 'placeholder-value',
2900
+ * // Required. parent resource name of integration execution.
2901
+ * parent:
2902
+ * 'projects/my-project/locations/my-location/integrations/my-integration',
2903
+ * // Optional. View mask for the response data. If set, only the field specified will be returned as part of the result. If not set, all fields in execution info will be filled and returned.
2904
+ * readMask: 'placeholder-value',
2905
+ * });
2906
+ * console.log(res.data);
2907
+ *
2908
+ * // Example response
2909
+ * // {
2910
+ * // "executions": [],
2911
+ * // "nextPageToken": "my_nextPageToken"
2912
+ * // }
2913
+ * }
2914
+ *
2915
+ * main().catch(e => {
2916
+ * console.error(e);
2917
+ * throw e;
2918
+ * });
2919
+ *
2920
+ * ```
2921
+ *
2922
+ * @param params - Parameters for request
2923
+ * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
2924
+ * @param callback - Optional callback that handles the response.
2925
+ * @returns A promise if used with async/await, or void if used with a callback.
2926
+ */
2927
+ list(
2928
+ params: Params$Resource$Projects$Locations$Integrations$Executions$List,
2929
+ options: StreamMethodOptions
2930
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
2931
+ list(
2932
+ params?: Params$Resource$Projects$Locations$Integrations$Executions$List,
2933
+ options?: MethodOptions
2934
+ ): Promise<
2935
+ GaxiosResponseWithHTTP2<Schema$GoogleCloudIntegrationsV2ListExecutionsResponse>
2936
+ >;
2937
+ list(
2938
+ params: Params$Resource$Projects$Locations$Integrations$Executions$List,
2939
+ options: StreamMethodOptions | BodyResponseCallback<Readable>,
2940
+ callback: BodyResponseCallback<Readable>
2941
+ ): void;
2942
+ list(
2943
+ params: Params$Resource$Projects$Locations$Integrations$Executions$List,
2944
+ options:
2945
+ | MethodOptions
2946
+ | BodyResponseCallback<Schema$GoogleCloudIntegrationsV2ListExecutionsResponse>,
2947
+ callback: BodyResponseCallback<Schema$GoogleCloudIntegrationsV2ListExecutionsResponse>
2948
+ ): void;
2949
+ list(
2950
+ params: Params$Resource$Projects$Locations$Integrations$Executions$List,
2951
+ callback: BodyResponseCallback<Schema$GoogleCloudIntegrationsV2ListExecutionsResponse>
2952
+ ): void;
2953
+ list(
2954
+ callback: BodyResponseCallback<Schema$GoogleCloudIntegrationsV2ListExecutionsResponse>
2955
+ ): void;
2956
+ list(
2957
+ paramsOrCallback?:
2958
+ | Params$Resource$Projects$Locations$Integrations$Executions$List
2959
+ | BodyResponseCallback<Schema$GoogleCloudIntegrationsV2ListExecutionsResponse>
2960
+ | BodyResponseCallback<Readable>,
2961
+ optionsOrCallback?:
2962
+ | MethodOptions
2963
+ | StreamMethodOptions
2964
+ | BodyResponseCallback<Schema$GoogleCloudIntegrationsV2ListExecutionsResponse>
2965
+ | BodyResponseCallback<Readable>,
2966
+ callback?:
2967
+ | BodyResponseCallback<Schema$GoogleCloudIntegrationsV2ListExecutionsResponse>
2968
+ | BodyResponseCallback<Readable>
2969
+ ):
2970
+ | void
2971
+ | Promise<
2972
+ GaxiosResponseWithHTTP2<Schema$GoogleCloudIntegrationsV2ListExecutionsResponse>
2973
+ >
2974
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
2975
+ let params = (paramsOrCallback ||
2976
+ {}) as Params$Resource$Projects$Locations$Integrations$Executions$List;
2977
+ let options = (optionsOrCallback || {}) as MethodOptions;
2978
+
2979
+ if (typeof paramsOrCallback === 'function') {
2980
+ callback = paramsOrCallback;
2981
+ params =
2982
+ {} as Params$Resource$Projects$Locations$Integrations$Executions$List;
2983
+ options = {};
2984
+ }
2985
+
2986
+ if (typeof optionsOrCallback === 'function') {
2987
+ callback = optionsOrCallback;
2988
+ options = {};
2989
+ }
2990
+
2991
+ const rootUrl = options.rootUrl || 'https://integrations.googleapis.com/';
2992
+ const parameters = {
2993
+ options: Object.assign(
2994
+ {
2995
+ url: (rootUrl + '/v2/{+parent}/executions').replace(
2996
+ /([^:]\/)\/+/g,
2997
+ '$1'
2998
+ ),
2999
+ method: 'GET',
3000
+ apiVersion: '',
3001
+ },
3002
+ options
3003
+ ),
3004
+ params,
3005
+ requiredParams: ['parent'],
3006
+ pathParams: ['parent'],
3007
+ context: this.context,
3008
+ };
3009
+ if (callback) {
3010
+ createAPIRequest<Schema$GoogleCloudIntegrationsV2ListExecutionsResponse>(
3011
+ parameters,
3012
+ callback as BodyResponseCallback<unknown>
3013
+ );
3014
+ } else {
3015
+ return createAPIRequest<Schema$GoogleCloudIntegrationsV2ListExecutionsResponse>(
3016
+ parameters
3017
+ );
3018
+ }
3019
+ }
3020
+
3021
+ /**
3022
+ * View detailed explanation of why an integration execution failed, using LLM
3023
+ * @example
3024
+ * ```js
3025
+ * // Before running the sample:
3026
+ * // - Enable the API at:
3027
+ * // https://console.developers.google.com/apis/api/integrations.googleapis.com
3028
+ * // - Login into gcloud by running:
3029
+ * // ```sh
3030
+ * // $ gcloud auth application-default login
3031
+ * // ```
3032
+ * // - Install the npm module by running:
3033
+ * // ```sh
3034
+ * // $ npm install googleapis
3035
+ * // ```
3036
+ *
3037
+ * const {google} = require('googleapis');
3038
+ * const integrations = google.integrations('v2');
3039
+ *
3040
+ * async function main() {
3041
+ * const auth = new google.auth.GoogleAuth({
3042
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
3043
+ * scopes: ['https://www.googleapis.com/auth/cloud-platform'],
3044
+ * });
3045
+ *
3046
+ * // Acquire an auth client, and bind it to all future calls
3047
+ * const authClient = await auth.getClient();
3048
+ * google.options({auth: authClient});
3049
+ *
3050
+ * // Do the magic
3051
+ * const res =
3052
+ * await integrations.projects.locations.integrations.executions.troubleshoot({
3053
+ * // Required. Execution resource name. Format: `projects/{project\}/locations/{location\}/integrations/{integration\}/executions/{execution_id\}`
3054
+ * name: 'projects/my-project/locations/my-location/integrations/my-integration/executions/my-execution',
3055
+ * });
3056
+ * console.log(res.data);
3057
+ *
3058
+ * // Example response
3059
+ * // {
3060
+ * // "detailedExplanation": "my_detailedExplanation",
3061
+ * // "displayMessage": "my_displayMessage",
3062
+ * // "errorMessage": "my_errorMessage",
3063
+ * // "executionId": "my_executionId",
3064
+ * // "rootCause": "my_rootCause"
3065
+ * // }
3066
+ * }
3067
+ *
3068
+ * main().catch(e => {
3069
+ * console.error(e);
3070
+ * throw e;
3071
+ * });
3072
+ *
3073
+ * ```
3074
+ *
3075
+ * @param params - Parameters for request
3076
+ * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
3077
+ * @param callback - Optional callback that handles the response.
3078
+ * @returns A promise if used with async/await, or void if used with a callback.
3079
+ */
3080
+ troubleshoot(
3081
+ params: Params$Resource$Projects$Locations$Integrations$Executions$Troubleshoot,
3082
+ options: StreamMethodOptions
3083
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
3084
+ troubleshoot(
3085
+ params?: Params$Resource$Projects$Locations$Integrations$Executions$Troubleshoot,
3086
+ options?: MethodOptions
3087
+ ): Promise<
3088
+ GaxiosResponseWithHTTP2<Schema$GoogleCloudIntegrationsV2DuetTroubleshootExecutionResponse>
3089
+ >;
3090
+ troubleshoot(
3091
+ params: Params$Resource$Projects$Locations$Integrations$Executions$Troubleshoot,
3092
+ options: StreamMethodOptions | BodyResponseCallback<Readable>,
3093
+ callback: BodyResponseCallback<Readable>
3094
+ ): void;
3095
+ troubleshoot(
3096
+ params: Params$Resource$Projects$Locations$Integrations$Executions$Troubleshoot,
3097
+ options:
3098
+ | MethodOptions
3099
+ | BodyResponseCallback<Schema$GoogleCloudIntegrationsV2DuetTroubleshootExecutionResponse>,
3100
+ callback: BodyResponseCallback<Schema$GoogleCloudIntegrationsV2DuetTroubleshootExecutionResponse>
3101
+ ): void;
3102
+ troubleshoot(
3103
+ params: Params$Resource$Projects$Locations$Integrations$Executions$Troubleshoot,
3104
+ callback: BodyResponseCallback<Schema$GoogleCloudIntegrationsV2DuetTroubleshootExecutionResponse>
3105
+ ): void;
3106
+ troubleshoot(
3107
+ callback: BodyResponseCallback<Schema$GoogleCloudIntegrationsV2DuetTroubleshootExecutionResponse>
3108
+ ): void;
3109
+ troubleshoot(
3110
+ paramsOrCallback?:
3111
+ | Params$Resource$Projects$Locations$Integrations$Executions$Troubleshoot
3112
+ | BodyResponseCallback<Schema$GoogleCloudIntegrationsV2DuetTroubleshootExecutionResponse>
3113
+ | BodyResponseCallback<Readable>,
3114
+ optionsOrCallback?:
3115
+ | MethodOptions
3116
+ | StreamMethodOptions
3117
+ | BodyResponseCallback<Schema$GoogleCloudIntegrationsV2DuetTroubleshootExecutionResponse>
3118
+ | BodyResponseCallback<Readable>,
3119
+ callback?:
3120
+ | BodyResponseCallback<Schema$GoogleCloudIntegrationsV2DuetTroubleshootExecutionResponse>
3121
+ | BodyResponseCallback<Readable>
3122
+ ):
3123
+ | void
3124
+ | Promise<
3125
+ GaxiosResponseWithHTTP2<Schema$GoogleCloudIntegrationsV2DuetTroubleshootExecutionResponse>
3126
+ >
3127
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
3128
+ let params = (paramsOrCallback ||
3129
+ {}) as Params$Resource$Projects$Locations$Integrations$Executions$Troubleshoot;
3130
+ let options = (optionsOrCallback || {}) as MethodOptions;
3131
+
3132
+ if (typeof paramsOrCallback === 'function') {
3133
+ callback = paramsOrCallback;
3134
+ params =
3135
+ {} as Params$Resource$Projects$Locations$Integrations$Executions$Troubleshoot;
3136
+ options = {};
3137
+ }
3138
+
3139
+ if (typeof optionsOrCallback === 'function') {
3140
+ callback = optionsOrCallback;
3141
+ options = {};
3142
+ }
3143
+
3144
+ const rootUrl = options.rootUrl || 'https://integrations.googleapis.com/';
3145
+ const parameters = {
3146
+ options: Object.assign(
3147
+ {
3148
+ url: (rootUrl + '/v2/{+name}:troubleshoot').replace(
3149
+ /([^:]\/)\/+/g,
3150
+ '$1'
3151
+ ),
3152
+ method: 'GET',
3153
+ apiVersion: '',
3154
+ },
3155
+ options
3156
+ ),
3157
+ params,
3158
+ requiredParams: ['name'],
3159
+ pathParams: ['name'],
3160
+ context: this.context,
3161
+ };
3162
+ if (callback) {
3163
+ createAPIRequest<Schema$GoogleCloudIntegrationsV2DuetTroubleshootExecutionResponse>(
3164
+ parameters,
3165
+ callback as BodyResponseCallback<unknown>
3166
+ );
3167
+ } else {
3168
+ return createAPIRequest<Schema$GoogleCloudIntegrationsV2DuetTroubleshootExecutionResponse>(
3169
+ parameters
3170
+ );
3171
+ }
3172
+ }
3173
+ }
3174
+
3175
+ export interface Params$Resource$Projects$Locations$Integrations$Executions$List extends StandardParameters {
3176
+ /**
3177
+ * Optional. Standard filter field, we support filtering on following fields: integration_name: the name of the integration. create_time: the execution created time. update_time: the execution last update time. state: the state of the executions. execution_id: the id of the execution. trigger_id: the id of the trigger. All fields support for EQUALS, in additional: create_time and update_time support for LESS_THAN, GREATER_THAN Also supports operators like AND, OR, NOT For example: trigger_id=\"id1\" AND integration_name=\"testIntegration\"
3178
+ */
3179
+ filter?: string;
3180
+ /**
3181
+ * Optional. The size of entries in the response.
3182
+ */
3183
+ pageSize?: number;
3184
+ /**
3185
+ * Optional. The token returned in the previous response.
3186
+ */
3187
+ pageToken?: string;
3188
+ /**
3189
+ * Required. parent resource name of integration execution.
3190
+ */
3191
+ parent?: string;
3192
+ /**
3193
+ * Optional. View mask for the response data. If set, only the field specified will be returned as part of the result. If not set, all fields in execution info will be filled and returned.
3194
+ */
3195
+ readMask?: string;
3196
+ }
3197
+ export interface Params$Resource$Projects$Locations$Integrations$Executions$Troubleshoot extends StandardParameters {
3198
+ /**
3199
+ * Required. Execution resource name. Format: `projects/{project\}/locations/{location\}/integrations/{integration\}/executions/{execution_id\}`
3200
+ */
3201
+ name?: string;
3202
+ }
3203
+
3204
+ export class Resource$Projects$Locations$Integrations$Executions$Taskexecutions {
3205
+ context: APIRequestContext;
3206
+ constructor(context: APIRequestContext) {
3207
+ this.context = context;
3208
+ }
3209
+
3210
+ /**
3211
+ * Get a TaskExecution in the specified project.
3212
+ * @example
3213
+ * ```js
3214
+ * // Before running the sample:
3215
+ * // - Enable the API at:
3216
+ * // https://console.developers.google.com/apis/api/integrations.googleapis.com
3217
+ * // - Login into gcloud by running:
3218
+ * // ```sh
3219
+ * // $ gcloud auth application-default login
3220
+ * // ```
3221
+ * // - Install the npm module by running:
3222
+ * // ```sh
3223
+ * // $ npm install googleapis
3224
+ * // ```
3225
+ *
3226
+ * const {google} = require('googleapis');
3227
+ * const integrations = google.integrations('v2');
3228
+ *
3229
+ * async function main() {
3230
+ * const auth = new google.auth.GoogleAuth({
3231
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
3232
+ * scopes: ['https://www.googleapis.com/auth/cloud-platform'],
3233
+ * });
3234
+ *
3235
+ * // Acquire an auth client, and bind it to all future calls
3236
+ * const authClient = await auth.getClient();
3237
+ * google.options({auth: authClient});
3238
+ *
3239
+ * // Do the magic
3240
+ * const res =
3241
+ * await integrations.projects.locations.integrations.executions.taskExecutions.get(
3242
+ * {
3243
+ * // Required. The TaskExecution to retrieve. Format: projects/{project\}/locations/{location\}/integrations/{integration\}/executions/{execution\}/taskExecutions/{task_execution\}
3244
+ * name: 'projects/my-project/locations/my-location/integrations/my-integration/executions/my-execution/taskExecutions/my-taskExecution',
3245
+ * },
3246
+ * );
3247
+ * console.log(res.data);
3248
+ *
3249
+ * // Example response
3250
+ * // {
3251
+ * // "name": "my_name",
3252
+ * // "taskExecutionDetails": [],
3253
+ * // "taskExecutionMetadata": {},
3254
+ * // "variables": {}
3255
+ * // }
3256
+ * }
3257
+ *
3258
+ * main().catch(e => {
3259
+ * console.error(e);
3260
+ * throw e;
3261
+ * });
3262
+ *
3263
+ * ```
3264
+ *
3265
+ * @param params - Parameters for request
3266
+ * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
3267
+ * @param callback - Optional callback that handles the response.
3268
+ * @returns A promise if used with async/await, or void if used with a callback.
3269
+ */
3270
+ get(
3271
+ params: Params$Resource$Projects$Locations$Integrations$Executions$Taskexecutions$Get,
3272
+ options: StreamMethodOptions
3273
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
3274
+ get(
3275
+ params?: Params$Resource$Projects$Locations$Integrations$Executions$Taskexecutions$Get,
3276
+ options?: MethodOptions
3277
+ ): Promise<
3278
+ GaxiosResponseWithHTTP2<Schema$GoogleCloudIntegrationsV2TaskExecution>
3279
+ >;
3280
+ get(
3281
+ params: Params$Resource$Projects$Locations$Integrations$Executions$Taskexecutions$Get,
3282
+ options: StreamMethodOptions | BodyResponseCallback<Readable>,
3283
+ callback: BodyResponseCallback<Readable>
3284
+ ): void;
3285
+ get(
3286
+ params: Params$Resource$Projects$Locations$Integrations$Executions$Taskexecutions$Get,
3287
+ options:
3288
+ | MethodOptions
3289
+ | BodyResponseCallback<Schema$GoogleCloudIntegrationsV2TaskExecution>,
3290
+ callback: BodyResponseCallback<Schema$GoogleCloudIntegrationsV2TaskExecution>
3291
+ ): void;
3292
+ get(
3293
+ params: Params$Resource$Projects$Locations$Integrations$Executions$Taskexecutions$Get,
3294
+ callback: BodyResponseCallback<Schema$GoogleCloudIntegrationsV2TaskExecution>
3295
+ ): void;
3296
+ get(
3297
+ callback: BodyResponseCallback<Schema$GoogleCloudIntegrationsV2TaskExecution>
3298
+ ): void;
3299
+ get(
3300
+ paramsOrCallback?:
3301
+ | Params$Resource$Projects$Locations$Integrations$Executions$Taskexecutions$Get
3302
+ | BodyResponseCallback<Schema$GoogleCloudIntegrationsV2TaskExecution>
3303
+ | BodyResponseCallback<Readable>,
3304
+ optionsOrCallback?:
3305
+ | MethodOptions
3306
+ | StreamMethodOptions
3307
+ | BodyResponseCallback<Schema$GoogleCloudIntegrationsV2TaskExecution>
3308
+ | BodyResponseCallback<Readable>,
3309
+ callback?:
3310
+ | BodyResponseCallback<Schema$GoogleCloudIntegrationsV2TaskExecution>
3311
+ | BodyResponseCallback<Readable>
3312
+ ):
3313
+ | void
3314
+ | Promise<
3315
+ GaxiosResponseWithHTTP2<Schema$GoogleCloudIntegrationsV2TaskExecution>
3316
+ >
3317
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
3318
+ let params = (paramsOrCallback ||
3319
+ {}) as Params$Resource$Projects$Locations$Integrations$Executions$Taskexecutions$Get;
3320
+ let options = (optionsOrCallback || {}) as MethodOptions;
3321
+
3322
+ if (typeof paramsOrCallback === 'function') {
3323
+ callback = paramsOrCallback;
3324
+ params =
3325
+ {} as Params$Resource$Projects$Locations$Integrations$Executions$Taskexecutions$Get;
3326
+ options = {};
3327
+ }
3328
+
3329
+ if (typeof optionsOrCallback === 'function') {
3330
+ callback = optionsOrCallback;
3331
+ options = {};
3332
+ }
3333
+
3334
+ const rootUrl = options.rootUrl || 'https://integrations.googleapis.com/';
3335
+ const parameters = {
3336
+ options: Object.assign(
3337
+ {
3338
+ url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'),
3339
+ method: 'GET',
3340
+ apiVersion: '',
3341
+ },
3342
+ options
3343
+ ),
3344
+ params,
3345
+ requiredParams: ['name'],
3346
+ pathParams: ['name'],
3347
+ context: this.context,
3348
+ };
3349
+ if (callback) {
3350
+ createAPIRequest<Schema$GoogleCloudIntegrationsV2TaskExecution>(
3351
+ parameters,
3352
+ callback as BodyResponseCallback<unknown>
3353
+ );
3354
+ } else {
3355
+ return createAPIRequest<Schema$GoogleCloudIntegrationsV2TaskExecution>(
3356
+ parameters
3357
+ );
3358
+ }
3359
+ }
3360
+ }
3361
+
3362
+ export interface Params$Resource$Projects$Locations$Integrations$Executions$Taskexecutions$Get extends StandardParameters {
3363
+ /**
3364
+ * Required. The TaskExecution to retrieve. Format: projects/{project\}/locations/{location\}/integrations/{integration\}/executions/{execution\}/taskExecutions/{task_execution\}
3365
+ */
3366
+ name?: string;
3367
+ }
3368
+ }