@maxim_mazurok/gapi.client.workloadmanager-v1 0.0.20230308 → 0.0.20230503

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.
Files changed (3) hide show
  1. package/index.d.ts +1017 -248
  2. package/package.json +1 -1
  3. package/tests.ts +68 -1
package/index.d.ts CHANGED
@@ -9,7 +9,7 @@
9
9
  // This file was generated by https://github.com/Maxim-Mazurok/google-api-typings-generator. Please do not edit it manually.
10
10
  // In case of any problems please post issue to https://github.com/Maxim-Mazurok/google-api-typings-generator
11
11
  // Generated from: https://workloadmanager.googleapis.com/$discovery/rest?version=v1
12
- // Revision: 20230308
12
+ // Revision: 20230503
13
13
 
14
14
  /// <reference types="gapi.client" />
15
15
 
@@ -30,195 +30,446 @@ declare namespace gapi.client {
30
30
  }
31
31
  interface Evaluation {
32
32
  /** Output only. [Output only] Create time stamp */
33
- createTime?: string;
33
+ createTime?:
34
+ string;
34
35
  /** Description of the Evaluation */
35
- description?: string;
36
+ description?:
37
+ string;
36
38
  /** Labels as key value pairs */
37
- labels?: { [P in string]: string };
39
+ labels?:
40
+ { [P in string]: string };
38
41
  /** name of resource names have the form 'projects/{project_id}/locations/{location_id}/evaluations/{evaluation_id}' */
39
- name?: string;
42
+ name?:
43
+ string;
40
44
  /** annotations as key value pairs */
41
- resourceFilter?: ResourceFilter;
45
+ resourceFilter?:
46
+ ResourceFilter;
42
47
  /** Output only. [Output only] The updated rule ids if exist. */
43
- resourceStatus?: ResourceStatus;
48
+ resourceStatus?:
49
+ ResourceStatus;
44
50
  /** the name of the rule */
45
- ruleNames?: string[];
51
+ ruleNames?:
52
+ string[];
46
53
  /** Output only. [Output only] The updated rule ids if exist. */
47
- ruleVersions?: string[];
54
+ ruleVersions?:
55
+ string[];
56
+ /** crontab format schedule for scheduled evaluation, example: 0 *‍/3 * * * */
57
+ schedule?:
58
+ string;
48
59
  /** Output only. [Output only] Update time stamp */
49
- updateTime?: string;
60
+ updateTime?:
61
+ string;
62
+ }
63
+ interface Execution {
64
+ /** Output only. [Output only] End time stamp */
65
+ endTime?:
66
+ string;
67
+ /** Output only. [Output only] Evaluation ID */
68
+ evaluationId?:
69
+ string;
70
+ /** Output only. [Output only] Inventory time stamp */
71
+ inventoryTime?:
72
+ string;
73
+ /** Labels as key value pairs */
74
+ labels?:
75
+ { [P in string]: string };
76
+ /** The name of execution resource. The format is projects/{project}/locations/{location}/evaluations/{evaluation}/executions/{execution} */
77
+ name?:
78
+ string;
79
+ /** type represent whether the execution executed directly by user or scheduled according evaluation.schedule field. */
80
+ runType?:
81
+ string;
82
+ /** Output only. [Output only] Start time stamp */
83
+ startTime?:
84
+ string;
85
+ /** Output only. [Output only] State */
86
+ state?:
87
+ string;
88
+ }
89
+ interface ExecutionResult {
90
+ /** the document url of the rule */
91
+ documentationUrl?:
92
+ string;
93
+ /** the violate resource */
94
+ resource?:
95
+ Resource;
96
+ /** the rule which violate in execution */
97
+ rule?:
98
+ string;
99
+ /** severity of violation */
100
+ severity?:
101
+ string;
102
+ /** the details of violation in result */
103
+ violationDetails?:
104
+ ViolationDetails;
105
+ /** the violation message of an execution */
106
+ violationMessage?:
107
+ string;
50
108
  }
51
109
  interface GceInstanceFilter {
52
110
  /** Service account of compute engine */
53
- serviceAccounts?: string[];
111
+ serviceAccounts?:
112
+ string[];
54
113
  }
55
114
  interface Insight {
56
115
  /** The insights data for sap system discovery. This is a copy of SAP System proto and should get updated whenever that one changes. */
57
- sapDiscovery?: SapDiscovery;
116
+ sapDiscovery?:
117
+ SapDiscovery;
58
118
  /** The insights data for the sap workload validation. */
59
- sapValidation?: SapValidation;
119
+ sapValidation?:
120
+ SapValidation;
60
121
  /** Output only. [Output only] Create time stamp */
61
- sentTime?: string;
122
+ sentTime?:
123
+ string;
124
+ /** The insights data for the sqlserver workload validation. */
125
+ sqlserverValidation?:
126
+ SqlserverValidation;
62
127
  }
63
128
  interface ListEvaluationsResponse {
64
129
  /** The list of Evaluation */
65
- evaluations?: Evaluation[];
130
+ evaluations?:
131
+ Evaluation[];
132
+ /** A token identifying a page of results the server should return. */
133
+ nextPageToken?:
134
+ string;
135
+ /** Locations that could not be reached. */
136
+ unreachable?:
137
+ string[];
138
+ }
139
+ interface ListExecutionResultsResponse {
140
+ /** The versions from the specified publisher. */
141
+ executionResults?:
142
+ ExecutionResult[];
143
+ /** A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages. */
144
+ nextPageToken?:
145
+ string;
146
+ }
147
+ interface ListExecutionsResponse {
148
+ /** The list of Execution */
149
+ executions?:
150
+ Execution[];
66
151
  /** A token identifying a page of results the server should return. */
67
- nextPageToken?: string;
152
+ nextPageToken?:
153
+ string;
68
154
  /** Locations that could not be reached. */
69
- unreachable?: string[];
155
+ unreachable?:
156
+ string[];
70
157
  }
71
158
  interface ListLocationsResponse {
72
159
  /** A list of locations that matches the specified filter in the request. */
73
- locations?: Location[];
160
+ locations?:
161
+ Location[];
74
162
  /** The standard List next-page token. */
75
- nextPageToken?: string;
163
+ nextPageToken?:
164
+ string;
76
165
  }
77
166
  interface ListOperationsResponse {
78
167
  /** The standard List next-page token. */
79
- nextPageToken?: string;
168
+ nextPageToken?:
169
+ string;
80
170
  /** A list of operations that matches the specified filter in the request. */
81
- operations?: Operation[];
171
+ operations?:
172
+ Operation[];
173
+ }
174
+ interface ListRulesResponse {
175
+ /** A token identifying a page of results the server should return. */
176
+ nextPageToken?:
177
+ string;
178
+ /** all rules in response */
179
+ rules?:
180
+ Rule[];
181
+ }
182
+ interface ListScannedResourcesResponse {
183
+ /** A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages. */
184
+ nextPageToken?:
185
+ string;
186
+ /** All scanned resources in response */
187
+ scannedResources?:
188
+ ScannedResource[];
82
189
  }
83
190
  interface Location {
84
191
  /** The friendly name for this location, typically a nearby city name. For example, "Tokyo". */
85
- displayName?: string;
192
+ displayName?:
193
+ string;
86
194
  /** Cross-service attributes for the location. For example {"cloud.googleapis.com/region": "us-east1"} */
87
- labels?: { [P in string]: string };
195
+ labels?:
196
+ { [P in string]: string };
88
197
  /** The canonical id for this location. For example: `"us-east1"`. */
89
- locationId?: string;
198
+ locationId?:
199
+ string;
90
200
  /** Service-specific metadata. For example the available capacity at the given location. */
91
- metadata?: { [P in string]: any };
201
+ metadata?:
202
+ { [P in string]: any };
92
203
  /** Resource name for the location, which may vary between implementations. For example: `"projects/example-project/locations/us-east1"` */
93
- name?: string;
204
+ name?:
205
+ string;
94
206
  }
95
207
  interface Operation {
96
208
  /** If the value is `false`, it means the operation is still in progress. If `true`, the operation is completed, and either `error` or `response` is available. */
97
- done?: boolean;
209
+ done?:
210
+ boolean;
98
211
  /** The error result of the operation in case of failure or cancellation. */
99
- error?: Status;
212
+ error?:
213
+ Status;
100
214
  /**
101
215
  * Service-specific metadata associated with the operation. It typically contains progress information and common metadata such as create time. Some services might not provide such
102
216
  * metadata. Any method that returns a long-running operation should document the metadata type, if any.
103
217
  */
104
- metadata?: { [P in string]: any };
218
+ metadata?:
219
+ { [P in string]: any };
105
220
  /**
106
221
  * The server-assigned name, which is only unique within the same service that originally returns it. If you use the default HTTP mapping, the `name` should be a resource name ending
107
222
  * with `operations/{unique_id}`.
108
223
  */
109
- name?: string;
224
+ name?:
225
+ string;
110
226
  /**
111
227
  * The normal response of the operation in case of success. If the original method returns no data on success, such as `Delete`, the response is `google.protobuf.Empty`. If the
112
228
  * original method is standard `Get`/`Create`/`Update`, the response should be the resource. For other methods, the response should have the type `XxxResponse`, where `Xxx` is the
113
229
  * original method name. For example, if the original method name is `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`.
114
230
  */
115
- response?: { [P in string]: any };
231
+ response?:
232
+ { [P in string]: any };
116
233
  }
117
234
  interface OperationMetadata {
118
235
  /** Output only. API version used to start the operation. */
119
- apiVersion?: string;
236
+ apiVersion?:
237
+ string;
120
238
  /** Output only. The time the operation was created. */
121
- createTime?: string;
239
+ createTime?:
240
+ string;
122
241
  /** Output only. The time the operation finished running. */
123
- endTime?: string;
242
+ endTime?:
243
+ string;
124
244
  /**
125
245
  * Output only. Identifies whether the user has requested cancellation of the operation. Operations that have been cancelled successfully have Operation.error value with a
126
246
  * google.rpc.Status.code of 1, corresponding to `Code.CANCELLED`.
127
247
  */
128
- requestedCancellation?: boolean;
248
+ requestedCancellation?:
249
+ boolean;
129
250
  /** Output only. Human-readable status of the operation, if any. */
130
- statusMessage?: string;
251
+ statusMessage?:
252
+ string;
131
253
  /** Output only. Server-defined resource path for the target of the operation. */
132
- target?: string;
254
+ target?:
255
+ string;
133
256
  /** Output only. Name of the verb executed by the operation. */
134
- verb?: string;
257
+ verb?:
258
+ string;
259
+ }
260
+ interface Resource {
261
+ /** the name of the resource */
262
+ name?:
263
+ string;
264
+ /** the service account accosiate with resource */
265
+ serviceAccount?:
266
+ string;
267
+ /** the type of reresource */
268
+ type?:
269
+ string;
135
270
  }
136
271
  interface ResourceFilter {
137
272
  /** Filter compute engine resource */
138
- gceInstanceFilter?: GceInstanceFilter;
273
+ gceInstanceFilter?:
274
+ GceInstanceFilter;
139
275
  /** The label used for filter resource */
140
- inclusionLabels?: { [P in string]: string };
276
+ inclusionLabels?:
277
+ { [P in string]: string };
141
278
  /** The id pattern for filter resource */
142
- resourceIdPatterns?: string[];
279
+ resourceIdPatterns?:
280
+ string[];
143
281
  /** The scopes of evaluation resource */
144
- scopes?: string[];
282
+ scopes?:
283
+ string[];
145
284
  }
146
285
  interface ResourceStatus {
147
286
  /** the new version of rule id if exists */
148
- rulesNewerVersions?: string[];
287
+ rulesNewerVersions?:
288
+ string[];
149
289
  /** State of the resource */
150
- state?: string;
290
+ state?:
291
+ string;
292
+ }
293
+ interface Rule {
294
+ /** descrite rule in plain language */
295
+ description?:
296
+ string;
297
+ /** the name display in UI */
298
+ displayName?:
299
+ string;
300
+ /** the message template for rule */
301
+ errorMessage?:
302
+ string;
303
+ /** rule name */
304
+ name?:
305
+ string;
306
+ /** the primary category */
307
+ primaryCategory?:
308
+ string;
309
+ /** the remediation for the rule */
310
+ remediation?:
311
+ string;
312
+ /** Output only. the version of the rule */
313
+ revisionId?:
314
+ string;
315
+ /** the secondary category */
316
+ secondaryCategory?:
317
+ string;
318
+ /** the severity of the rule */
319
+ severity?:
320
+ string;
321
+ /** the docuement url for the rule */
322
+ uri?:
323
+ string;
324
+ }
325
+ interface RunEvaluationRequest {
326
+ /** Required. The resource being created */
327
+ execution?:
328
+ Execution;
329
+ /** Required. Id of the requesting object If auto-generating Id server-side, remove this field and execution_id from the method_signature of Create RPC */
330
+ executionId?:
331
+ string;
332
+ /**
333
+ * Optional. An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has
334
+ * already been completed. The server will guarantee that for at least 60 minutes since the first request. For example, consider a situation where you make an initial request and the
335
+ * request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore
336
+ * the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported
337
+ * (00000000-0000-0000-0000-000000000000).
338
+ */
339
+ requestId?:
340
+ string;
151
341
  }
152
342
  interface SapDiscovery {
153
343
  /** An SAP system may run without an application layer. */
154
- applicationLayer?: SapDiscoveryComponent;
344
+ applicationLayer?:
345
+ SapDiscoveryComponent;
155
346
  /** An SAP System must have a database. */
156
- databaseLayer?: SapDiscoveryComponent;
347
+ databaseLayer?:
348
+ SapDiscoveryComponent;
157
349
  /** The metadata for SAP system discovery data. */
158
- metadata?: SapDiscoveryMetadata;
350
+ metadata?:
351
+ SapDiscoveryMetadata;
159
352
  /** A combination of database SID, database instance URI and tenant DB name to make a unique identifier per-system. */
160
- systemId?: string;
353
+ systemId?:
354
+ string;
161
355
  /** Unix timestamp this system has been updated last. */
162
- updateTime?: string;
356
+ updateTime?:
357
+ string;
163
358
  }
164
359
  interface SapDiscoveryComponent {
165
360
  /** The component is a SAP application. */
166
- applicationType?: string;
361
+ applicationType?:
362
+ string;
167
363
  /** The component is a SAP database. */
168
- databaseType?: string;
364
+ databaseType?:
365
+ string;
169
366
  /** Pantheon Project in which the resources reside. */
170
- hostProject?: string;
367
+ hostProject?:
368
+ string;
171
369
  /** The resources in a component. */
172
- resources?: SapDiscoveryResource[];
370
+ resources?:
371
+ SapDiscoveryResource[];
173
372
  /** The sap identifier, used by the SAP software and helps differentiate systems for customers. */
174
- sid?: string;
373
+ sid?:
374
+ string;
175
375
  }
176
376
  interface SapDiscoveryMetadata {
177
377
  /** Customer region string for customer's use. Does not represent GCP region. */
178
- customerRegion?: string;
378
+ customerRegion?:
379
+ string;
179
380
  /** Customer defined, something like "E-commerce pre prod" */
180
- definedSystem?: string;
381
+ definedSystem?:
382
+ string;
181
383
  /** Should be "prod", "QA", "dev", "staging", etc. */
182
- environmentType?: string;
384
+ environmentType?:
385
+ string;
183
386
  /** This sap product name */
184
- sapProduct?: string;
387
+ sapProduct?:
388
+ string;
185
389
  }
186
390
  interface SapDiscoveryResource {
187
391
  /** A list of resource URIs related to this resource. */
188
- relatedResources?: string[];
392
+ relatedResources?:
393
+ string[];
189
394
  /** ComputeInstance, ComputeDisk, VPC, Bare Metal server, etc. */
190
- resourceKind?: string;
395
+ resourceKind?:
396
+ string;
191
397
  /** The type of this resource. */
192
- resourceType?: string;
398
+ resourceType?:
399
+ string;
193
400
  /** URI of the resource, includes project, location, and name. */
194
- resourceUri?: string;
401
+ resourceUri?:
402
+ string;
195
403
  /** Unix timestamp of when this resource last had its discovery data updated. */
196
- updateTime?: string;
404
+ updateTime?:
405
+ string;
197
406
  }
198
407
  interface SapValidation {
199
408
  /** A list of SAP validation metrics data. */
200
- validationDetails?: SapValidationValidationDetail[];
409
+ validationDetails?:
410
+ SapValidationValidationDetail[];
201
411
  }
202
412
  interface SapValidationValidationDetail {
203
413
  /** The pairs of metrics data: field name & field value. */
204
- details?: { [P in string]: string };
414
+ details?:
415
+ { [P in string]: string };
205
416
  /** The SAP system that the validation data is from. */
206
- sapValidationType?: string;
417
+ sapValidationType?:
418
+ string;
419
+ }
420
+ interface ScannedResource {
421
+ /** resource name */
422
+ resource?:
423
+ string;
424
+ }
425
+ interface SqlserverValidation {
426
+ /** The agent version collected this data point */
427
+ agentVersion?:
428
+ string;
429
+ /** A list of SqlServer validation metrics data. */
430
+ validationDetails?:
431
+ SqlserverValidationValidationDetail[];
432
+ }
433
+ interface SqlserverValidationValidationDetail {
434
+ /** The pairs of metrics data: field name & field value. */
435
+ details?:
436
+ { [P in string]: string };
437
+ /** The instance id where the ValidationDetail is generated from */
438
+ instanceId?:
439
+ string;
440
+ /** The Sqlserver system that the validation data is from. */
441
+ type?:
442
+ string;
207
443
  }
208
444
  interface Status {
209
445
  /** The status code, which should be an enum value of google.rpc.Code. */
210
- code?: number;
446
+ code?:
447
+ number;
211
448
  /** A list of messages that carry the error details. There is a common set of message types for APIs to use. */
212
- details?: Array<{ [P in string]: any }>;
449
+ details?:
450
+ Array<{ [P in string]: any }>;
213
451
  /**
214
452
  * A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the
215
453
  * client.
216
454
  */
217
- message?: string;
455
+ message?:
456
+ string;
457
+ }
458
+ interface ViolationDetails {
459
+ /** the name of asset */
460
+ asset?:
461
+ string;
462
+ /** observed */
463
+ observed?:
464
+ { [P in string]: string };
465
+ /** the service account associate with resource */
466
+ serviceAccount?:
467
+ string;
218
468
  }
219
469
  interface WriteInsightRequest {
220
470
  /** Required. The metrics data details. */
221
- insight?: Insight;
471
+ insight?:
472
+ Insight;
222
473
  /**
223
474
  * Optional. An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has
224
475
  * already been completed. The server will guarantee that for at least 60 minutes since the first request. For example, consider a situation where you make an initial request and the
@@ -226,36 +477,331 @@ declare namespace gapi.client {
226
477
  * the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported
227
478
  * (00000000-0000-0000-0000-000000000000).
228
479
  */
229
- requestId?: string;
480
+ requestId?:
481
+ string;
230
482
  }
231
483
  // tslint:disable-next-line:no-empty-interface
232
484
  interface WriteInsightResponse {
233
485
  }
486
+ interface ResultsResource {
487
+ /** List the running result of a single Execution. */
488
+ list(request?: {
489
+ /** V1 error format. */
490
+ "$.xgafv"?:
491
+ string;
492
+ /** OAuth access token. */
493
+ access_token?:
494
+ string;
495
+ /** Data format for response. */
496
+ alt?:
497
+ string;
498
+ /** JSONP */
499
+ callback?:
500
+ string;
501
+ /** Selector specifying which fields to include in a partial response. */
502
+ fields?:
503
+ string;
504
+ /** Filtering results */
505
+ filter?:
506
+ string;
507
+ /** 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. */
508
+ key?:
509
+ string;
510
+ /** OAuth 2.0 token for the current user. */
511
+ oauth_token?:
512
+ string;
513
+ /** Requested page size. Server may return fewer items than requested. If unspecified, server will pick an appropriate default. */
514
+ pageSize?:
515
+ number;
516
+ /** A token identifying a page of results the server should return. */
517
+ pageToken?:
518
+ string;
519
+ /** Required. The execution results. Format: {parent}/evaluations/*‍/executions/*‍/results */
520
+ parent:
521
+ string;
522
+ /** Returns response with indentations and line breaks. */
523
+ prettyPrint?:
524
+ boolean;
525
+ /** 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. */
526
+ quotaUser?:
527
+ string;
528
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
529
+ upload_protocol?:
530
+ string;
531
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
532
+ uploadType?:
533
+ string;
534
+ }): Request<ListExecutionResultsResponse>;
535
+ }
536
+ interface ScannedResourcesResource {
537
+ /** List all scanned resources for a single Execution. */
538
+ list(request?: {
539
+ /** V1 error format. */
540
+ "$.xgafv"?:
541
+ string;
542
+ /** OAuth access token. */
543
+ access_token?:
544
+ string;
545
+ /** Data format for response. */
546
+ alt?:
547
+ string;
548
+ /** JSONP */
549
+ callback?:
550
+ string;
551
+ /** Selector specifying which fields to include in a partial response. */
552
+ fields?:
553
+ string;
554
+ /** Filtering results */
555
+ filter?:
556
+ string;
557
+ /** 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. */
558
+ key?:
559
+ string;
560
+ /** OAuth 2.0 token for the current user. */
561
+ oauth_token?:
562
+ string;
563
+ /** Field to sort by. See https://google.aip.dev/132#ordering for more details. */
564
+ orderBy?:
565
+ string;
566
+ /** Requested page size. Server may return fewer items than requested. If unspecified, server will pick an appropriate default. */
567
+ pageSize?:
568
+ number;
569
+ /** A token identifying a page of results the server should return. */
570
+ pageToken?:
571
+ string;
572
+ /** Required. parent for ListScannedResourcesRequest */
573
+ parent:
574
+ string;
575
+ /** Returns response with indentations and line breaks. */
576
+ prettyPrint?:
577
+ boolean;
578
+ /** 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. */
579
+ quotaUser?:
580
+ string;
581
+ /** rule name */
582
+ rule?:
583
+ string;
584
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
585
+ upload_protocol?:
586
+ string;
587
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
588
+ uploadType?:
589
+ string;
590
+ }): Request<ListScannedResourcesResponse>;
591
+ }
592
+ interface ExecutionsResource {
593
+ /** Gets details of a single Execution. */
594
+ get(request?: {
595
+ /** V1 error format. */
596
+ "$.xgafv"?:
597
+ string;
598
+ /** OAuth access token. */
599
+ access_token?:
600
+ string;
601
+ /** Data format for response. */
602
+ alt?:
603
+ string;
604
+ /** JSONP */
605
+ callback?:
606
+ string;
607
+ /** Selector specifying which fields to include in a partial response. */
608
+ fields?:
609
+ string;
610
+ /** 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. */
611
+ key?:
612
+ string;
613
+ /** Required. Name of the resource */
614
+ name:
615
+ string;
616
+ /** OAuth 2.0 token for the current user. */
617
+ oauth_token?:
618
+ string;
619
+ /** Returns response with indentations and line breaks. */
620
+ prettyPrint?:
621
+ boolean;
622
+ /** 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. */
623
+ quotaUser?:
624
+ string;
625
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
626
+ upload_protocol?:
627
+ string;
628
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
629
+ uploadType?:
630
+ string;
631
+ }): Request<Execution>;
632
+ /** Lists Executions in a given project and location. */
633
+ list(request?: {
634
+ /** V1 error format. */
635
+ "$.xgafv"?:
636
+ string;
637
+ /** OAuth access token. */
638
+ access_token?:
639
+ string;
640
+ /** Data format for response. */
641
+ alt?:
642
+ string;
643
+ /** JSONP */
644
+ callback?:
645
+ string;
646
+ /** Selector specifying which fields to include in a partial response. */
647
+ fields?:
648
+ string;
649
+ /** Filtering results */
650
+ filter?:
651
+ string;
652
+ /** 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. */
653
+ key?:
654
+ string;
655
+ /** OAuth 2.0 token for the current user. */
656
+ oauth_token?:
657
+ string;
658
+ /** Field to sort by. See https://google.aip.dev/132#ordering for more details. */
659
+ orderBy?:
660
+ string;
661
+ /** Requested page size. Server may return fewer items than requested. If unspecified, server will pick an appropriate default. */
662
+ pageSize?:
663
+ number;
664
+ /** A token identifying a page of results the server should return. */
665
+ pageToken?:
666
+ string;
667
+ /** Required. The resource prefix of the Execution using the form: 'projects/{project}/locations/{location}/evaluations/{evaluation}' */
668
+ parent:
669
+ string;
670
+ /** Returns response with indentations and line breaks. */
671
+ prettyPrint?:
672
+ boolean;
673
+ /** 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. */
674
+ quotaUser?:
675
+ string;
676
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
677
+ upload_protocol?:
678
+ string;
679
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
680
+ uploadType?:
681
+ string;
682
+ }): Request<ListExecutionsResponse>;
683
+ /** Creates a new Execution in a given project and location. */
684
+ run(request: {
685
+ /** V1 error format. */
686
+ "$.xgafv"?:
687
+ string;
688
+ /** OAuth access token. */
689
+ access_token?:
690
+ string;
691
+ /** Data format for response. */
692
+ alt?:
693
+ string;
694
+ /** JSONP */
695
+ callback?:
696
+ string;
697
+ /** Selector specifying which fields to include in a partial response. */
698
+ fields?:
699
+ string;
700
+ /** 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. */
701
+ key?:
702
+ string;
703
+ /** Required. The resource name of the Execution using the form: 'projects/{project}/locations/{location}/evaluations/{evaluation}/executions/{execution}' */
704
+ name:
705
+ string;
706
+ /** OAuth 2.0 token for the current user. */
707
+ oauth_token?:
708
+ string;
709
+ /** Returns response with indentations and line breaks. */
710
+ prettyPrint?:
711
+ boolean;
712
+ /** 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. */
713
+ quotaUser?:
714
+ string;
715
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
716
+ upload_protocol?:
717
+ string;
718
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
719
+ uploadType?:
720
+ string;
721
+ /** Request body */
722
+ resource:
723
+ RunEvaluationRequest;
724
+ }): Request<Operation>;
725
+ run(request: {
726
+ /** V1 error format. */
727
+ "$.xgafv"?:
728
+ string;
729
+ /** OAuth access token. */
730
+ access_token?:
731
+ string;
732
+ /** Data format for response. */
733
+ alt?:
734
+ string;
735
+ /** JSONP */
736
+ callback?:
737
+ string;
738
+ /** Selector specifying which fields to include in a partial response. */
739
+ fields?:
740
+ string;
741
+ /** 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. */
742
+ key?:
743
+ string;
744
+ /** Required. The resource name of the Execution using the form: 'projects/{project}/locations/{location}/evaluations/{evaluation}/executions/{execution}' */
745
+ name:
746
+ string;
747
+ /** OAuth 2.0 token for the current user. */
748
+ oauth_token?:
749
+ string;
750
+ /** Returns response with indentations and line breaks. */
751
+ prettyPrint?:
752
+ boolean;
753
+ /** 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. */
754
+ quotaUser?:
755
+ string;
756
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
757
+ upload_protocol?:
758
+ string;
759
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
760
+ uploadType?:
761
+ string;
762
+ },
763
+ body: RunEvaluationRequest): Request<Operation>;
764
+ results:
765
+ ResultsResource;
766
+ scannedResources:
767
+ ScannedResourcesResource;
768
+ }
234
769
  interface EvaluationsResource {
235
770
  /** Creates a new Evaluation in a given project and location. */
236
771
  create(request: {
237
772
  /** V1 error format. */
238
- "$.xgafv"?: string;
773
+ "$.xgafv"?:
774
+ string;
239
775
  /** OAuth access token. */
240
- access_token?: string;
776
+ access_token?:
777
+ string;
241
778
  /** Data format for response. */
242
- alt?: string;
779
+ alt?:
780
+ string;
243
781
  /** JSONP */
244
- callback?: string;
782
+ callback?:
783
+ string;
245
784
  /** Required. Id of the requesting object */
246
- evaluationId?: string;
785
+ evaluationId?:
786
+ string;
247
787
  /** Selector specifying which fields to include in a partial response. */
248
- fields?: string;
788
+ fields?:
789
+ string;
249
790
  /** 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. */
250
- key?: string;
791
+ key?:
792
+ string;
251
793
  /** OAuth 2.0 token for the current user. */
252
- oauth_token?: string;
794
+ oauth_token?:
795
+ string;
253
796
  /** Required. The resource prefix of the evaluation location using the form: `projects/{project_id}/locations/{location_id}` */
254
- parent: string;
797
+ parent:
798
+ string;
255
799
  /** Returns response with indentations and line breaks. */
256
- prettyPrint?: boolean;
800
+ prettyPrint?:
801
+ boolean;
257
802
  /** 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. */
258
- quotaUser?: string;
803
+ quotaUser?:
804
+ string;
259
805
  /**
260
806
  * Optional. An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has
261
807
  * already been completed. The server will guarantee that for at least 60 minutes since the first request. For example, consider a situation where you make an initial request and
@@ -263,37 +809,52 @@ declare namespace gapi.client {
263
809
  * ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not
264
810
  * supported (00000000-0000-0000-0000-000000000000).
265
811
  */
266
- requestId?: string;
812
+ requestId?:
813
+ string;
267
814
  /** Upload protocol for media (e.g. "raw", "multipart"). */
268
- upload_protocol?: string;
815
+ upload_protocol?:
816
+ string;
269
817
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
270
- uploadType?: string;
818
+ uploadType?:
819
+ string;
271
820
  /** Request body */
272
- resource: Evaluation;
821
+ resource:
822
+ Evaluation;
273
823
  }): Request<Operation>;
274
824
  create(request: {
275
825
  /** V1 error format. */
276
- "$.xgafv"?: string;
826
+ "$.xgafv"?:
827
+ string;
277
828
  /** OAuth access token. */
278
- access_token?: string;
829
+ access_token?:
830
+ string;
279
831
  /** Data format for response. */
280
- alt?: string;
832
+ alt?:
833
+ string;
281
834
  /** JSONP */
282
- callback?: string;
835
+ callback?:
836
+ string;
283
837
  /** Required. Id of the requesting object */
284
- evaluationId?: string;
838
+ evaluationId?:
839
+ string;
285
840
  /** Selector specifying which fields to include in a partial response. */
286
- fields?: string;
841
+ fields?:
842
+ string;
287
843
  /** 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. */
288
- key?: string;
844
+ key?:
845
+ string;
289
846
  /** OAuth 2.0 token for the current user. */
290
- oauth_token?: string;
847
+ oauth_token?:
848
+ string;
291
849
  /** Required. The resource prefix of the evaluation location using the form: `projects/{project_id}/locations/{location_id}` */
292
- parent: string;
850
+ parent:
851
+ string;
293
852
  /** Returns response with indentations and line breaks. */
294
- prettyPrint?: boolean;
853
+ prettyPrint?:
854
+ boolean;
295
855
  /** 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. */
296
- quotaUser?: string;
856
+ quotaUser?:
857
+ string;
297
858
  /**
298
859
  * Optional. An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has
299
860
  * already been completed. The server will guarantee that for at least 60 minutes since the first request. For example, consider a situation where you make an initial request and
@@ -301,131 +862,189 @@ declare namespace gapi.client {
301
862
  * ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not
302
863
  * supported (00000000-0000-0000-0000-000000000000).
303
864
  */
304
- requestId?: string;
865
+ requestId?:
866
+ string;
305
867
  /** Upload protocol for media (e.g. "raw", "multipart"). */
306
- upload_protocol?: string;
868
+ upload_protocol?:
869
+ string;
307
870
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
308
- uploadType?: string;
871
+ uploadType?:
872
+ string;
309
873
  },
310
874
  body: Evaluation): Request<Operation>;
311
875
  /** Gets details of a single Evaluation. */
312
876
  get(request?: {
313
877
  /** V1 error format. */
314
- "$.xgafv"?: string;
878
+ "$.xgafv"?:
879
+ string;
315
880
  /** OAuth access token. */
316
- access_token?: string;
881
+ access_token?:
882
+ string;
317
883
  /** Data format for response. */
318
- alt?: string;
884
+ alt?:
885
+ string;
319
886
  /** JSONP */
320
- callback?: string;
887
+ callback?:
888
+ string;
321
889
  /** Selector specifying which fields to include in a partial response. */
322
- fields?: string;
890
+ fields?:
891
+ string;
323
892
  /** 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. */
324
- key?: string;
893
+ key?:
894
+ string;
325
895
  /** Required. Name of the resource */
326
- name: string;
896
+ name:
897
+ string;
327
898
  /** OAuth 2.0 token for the current user. */
328
- oauth_token?: string;
899
+ oauth_token?:
900
+ string;
329
901
  /** Returns response with indentations and line breaks. */
330
- prettyPrint?: boolean;
902
+ prettyPrint?:
903
+ boolean;
331
904
  /** 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. */
332
- quotaUser?: string;
905
+ quotaUser?:
906
+ string;
333
907
  /** Upload protocol for media (e.g. "raw", "multipart"). */
334
- upload_protocol?: string;
908
+ upload_protocol?:
909
+ string;
335
910
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
336
- uploadType?: string;
911
+ uploadType?:
912
+ string;
337
913
  }): Request<Evaluation>;
338
914
  /** Lists Evaluations in a given project and location. */
339
915
  list(request?: {
340
916
  /** V1 error format. */
341
- "$.xgafv"?: string;
917
+ "$.xgafv"?:
918
+ string;
342
919
  /** OAuth access token. */
343
- access_token?: string;
920
+ access_token?:
921
+ string;
344
922
  /** Data format for response. */
345
- alt?: string;
923
+ alt?:
924
+ string;
346
925
  /** JSONP */
347
- callback?: string;
926
+ callback?:
927
+ string;
348
928
  /** Selector specifying which fields to include in a partial response. */
349
- fields?: string;
929
+ fields?:
930
+ string;
350
931
  /** Filtering results */
351
- filter?: string;
932
+ filter?:
933
+ string;
352
934
  /** 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. */
353
- key?: string;
935
+ key?:
936
+ string;
354
937
  /** OAuth 2.0 token for the current user. */
355
- oauth_token?: string;
938
+ oauth_token?:
939
+ string;
356
940
  /** Hint for how to order the results */
357
- orderBy?: string;
941
+ orderBy?:
942
+ string;
358
943
  /** Requested page size. Server may return fewer items than requested. If unspecified, server will pick an appropriate default. */
359
- pageSize?: number;
944
+ pageSize?:
945
+ number;
360
946
  /** A token identifying a page of results the server should return. */
361
- pageToken?: string;
947
+ pageToken?:
948
+ string;
362
949
  /** Required. Parent value for ListEvaluationsRequest */
363
- parent: string;
950
+ parent:
951
+ string;
364
952
  /** Returns response with indentations and line breaks. */
365
- prettyPrint?: boolean;
953
+ prettyPrint?:
954
+ boolean;
366
955
  /** 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. */
367
- quotaUser?: string;
956
+ quotaUser?:
957
+ string;
368
958
  /** Upload protocol for media (e.g. "raw", "multipart"). */
369
- upload_protocol?: string;
959
+ upload_protocol?:
960
+ string;
370
961
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
371
- uploadType?: string;
962
+ uploadType?:
963
+ string;
372
964
  }): Request<ListEvaluationsResponse>;
965
+ executions:
966
+ ExecutionsResource;
373
967
  }
374
968
  interface InsightsResource {
375
969
  /** Write the data insights to workload manager data warehouse. */
376
970
  writeInsight(request: {
377
971
  /** V1 error format. */
378
- "$.xgafv"?: string;
972
+ "$.xgafv"?:
973
+ string;
379
974
  /** OAuth access token. */
380
- access_token?: string;
975
+ access_token?:
976
+ string;
381
977
  /** Data format for response. */
382
- alt?: string;
978
+ alt?:
979
+ string;
383
980
  /** JSONP */
384
- callback?: string;
981
+ callback?:
982
+ string;
385
983
  /** Selector specifying which fields to include in a partial response. */
386
- fields?: string;
984
+ fields?:
985
+ string;
387
986
  /** 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. */
388
- key?: string;
987
+ key?:
988
+ string;
389
989
  /** Required. The GCP location. The format is: projects/{project}/locations/{location}. */
390
- location: string;
990
+ location:
991
+ string;
391
992
  /** OAuth 2.0 token for the current user. */
392
- oauth_token?: string;
993
+ oauth_token?:
994
+ string;
393
995
  /** Returns response with indentations and line breaks. */
394
- prettyPrint?: boolean;
996
+ prettyPrint?:
997
+ boolean;
395
998
  /** 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. */
396
- quotaUser?: string;
999
+ quotaUser?:
1000
+ string;
397
1001
  /** Upload protocol for media (e.g. "raw", "multipart"). */
398
- upload_protocol?: string;
1002
+ upload_protocol?:
1003
+ string;
399
1004
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
400
- uploadType?: string;
1005
+ uploadType?:
1006
+ string;
401
1007
  /** Request body */
402
- resource: WriteInsightRequest;
1008
+ resource:
1009
+ WriteInsightRequest;
403
1010
  }): Request<{}>;
404
1011
  writeInsight(request: {
405
1012
  /** V1 error format. */
406
- "$.xgafv"?: string;
1013
+ "$.xgafv"?:
1014
+ string;
407
1015
  /** OAuth access token. */
408
- access_token?: string;
1016
+ access_token?:
1017
+ string;
409
1018
  /** Data format for response. */
410
- alt?: string;
1019
+ alt?:
1020
+ string;
411
1021
  /** JSONP */
412
- callback?: string;
1022
+ callback?:
1023
+ string;
413
1024
  /** Selector specifying which fields to include in a partial response. */
414
- fields?: string;
1025
+ fields?:
1026
+ string;
415
1027
  /** 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. */
416
- key?: string;
1028
+ key?:
1029
+ string;
417
1030
  /** Required. The GCP location. The format is: projects/{project}/locations/{location}. */
418
- location: string;
1031
+ location:
1032
+ string;
419
1033
  /** OAuth 2.0 token for the current user. */
420
- oauth_token?: string;
1034
+ oauth_token?:
1035
+ string;
421
1036
  /** Returns response with indentations and line breaks. */
422
- prettyPrint?: boolean;
1037
+ prettyPrint?:
1038
+ boolean;
423
1039
  /** 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. */
424
- quotaUser?: string;
1040
+ quotaUser?:
1041
+ string;
425
1042
  /** Upload protocol for media (e.g. "raw", "multipart"). */
426
- upload_protocol?: string;
1043
+ upload_protocol?:
1044
+ string;
427
1045
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
428
- uploadType?: string;
1046
+ uploadType?:
1047
+ string;
429
1048
  },
430
1049
  body: WriteInsightRequest): Request<{}>;
431
1050
  }
@@ -438,57 +1057,82 @@ declare namespace gapi.client {
438
1057
  */
439
1058
  cancel(request: {
440
1059
  /** V1 error format. */
441
- "$.xgafv"?: string;
1060
+ "$.xgafv"?:
1061
+ string;
442
1062
  /** OAuth access token. */
443
- access_token?: string;
1063
+ access_token?:
1064
+ string;
444
1065
  /** Data format for response. */
445
- alt?: string;
1066
+ alt?:
1067
+ string;
446
1068
  /** JSONP */
447
- callback?: string;
1069
+ callback?:
1070
+ string;
448
1071
  /** Selector specifying which fields to include in a partial response. */
449
- fields?: string;
1072
+ fields?:
1073
+ string;
450
1074
  /** 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. */
451
- key?: string;
1075
+ key?:
1076
+ string;
452
1077
  /** The name of the operation resource to be cancelled. */
453
- name: string;
1078
+ name:
1079
+ string;
454
1080
  /** OAuth 2.0 token for the current user. */
455
- oauth_token?: string;
1081
+ oauth_token?:
1082
+ string;
456
1083
  /** Returns response with indentations and line breaks. */
457
- prettyPrint?: boolean;
1084
+ prettyPrint?:
1085
+ boolean;
458
1086
  /** 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. */
459
- quotaUser?: string;
1087
+ quotaUser?:
1088
+ string;
460
1089
  /** Upload protocol for media (e.g. "raw", "multipart"). */
461
- upload_protocol?: string;
1090
+ upload_protocol?:
1091
+ string;
462
1092
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
463
- uploadType?: string;
1093
+ uploadType?:
1094
+ string;
464
1095
  /** Request body */
465
- resource: CancelOperationRequest;
1096
+ resource:
1097
+ CancelOperationRequest;
466
1098
  }): Request<{}>;
467
1099
  cancel(request: {
468
1100
  /** V1 error format. */
469
- "$.xgafv"?: string;
1101
+ "$.xgafv"?:
1102
+ string;
470
1103
  /** OAuth access token. */
471
- access_token?: string;
1104
+ access_token?:
1105
+ string;
472
1106
  /** Data format for response. */
473
- alt?: string;
1107
+ alt?:
1108
+ string;
474
1109
  /** JSONP */
475
- callback?: string;
1110
+ callback?:
1111
+ string;
476
1112
  /** Selector specifying which fields to include in a partial response. */
477
- fields?: string;
1113
+ fields?:
1114
+ string;
478
1115
  /** 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. */
479
- key?: string;
1116
+ key?:
1117
+ string;
480
1118
  /** The name of the operation resource to be cancelled. */
481
- name: string;
1119
+ name:
1120
+ string;
482
1121
  /** OAuth 2.0 token for the current user. */
483
- oauth_token?: string;
1122
+ oauth_token?:
1123
+ string;
484
1124
  /** Returns response with indentations and line breaks. */
485
- prettyPrint?: boolean;
1125
+ prettyPrint?:
1126
+ boolean;
486
1127
  /** 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. */
487
- quotaUser?: string;
1128
+ quotaUser?:
1129
+ string;
488
1130
  /** Upload protocol for media (e.g. "raw", "multipart"). */
489
- upload_protocol?: string;
1131
+ upload_protocol?:
1132
+ string;
490
1133
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
491
- uploadType?: string;
1134
+ uploadType?:
1135
+ string;
492
1136
  },
493
1137
  body: CancelOperationRequest): Request<{}>;
494
1138
  /**
@@ -497,161 +1141,286 @@ declare namespace gapi.client {
497
1141
  */
498
1142
  delete(request?: {
499
1143
  /** V1 error format. */
500
- "$.xgafv"?: string;
1144
+ "$.xgafv"?:
1145
+ string;
501
1146
  /** OAuth access token. */
502
- access_token?: string;
1147
+ access_token?:
1148
+ string;
503
1149
  /** Data format for response. */
504
- alt?: string;
1150
+ alt?:
1151
+ string;
505
1152
  /** JSONP */
506
- callback?: string;
1153
+ callback?:
1154
+ string;
507
1155
  /** Selector specifying which fields to include in a partial response. */
508
- fields?: string;
1156
+ fields?:
1157
+ string;
509
1158
  /** 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. */
510
- key?: string;
1159
+ key?:
1160
+ string;
511
1161
  /** The name of the operation resource to be deleted. */
512
- name: string;
1162
+ name:
1163
+ string;
513
1164
  /** OAuth 2.0 token for the current user. */
514
- oauth_token?: string;
1165
+ oauth_token?:
1166
+ string;
515
1167
  /** Returns response with indentations and line breaks. */
516
- prettyPrint?: boolean;
1168
+ prettyPrint?:
1169
+ boolean;
517
1170
  /** 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. */
518
- quotaUser?: string;
1171
+ quotaUser?:
1172
+ string;
519
1173
  /** Upload protocol for media (e.g. "raw", "multipart"). */
520
- upload_protocol?: string;
1174
+ upload_protocol?:
1175
+ string;
521
1176
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
522
- uploadType?: string;
1177
+ uploadType?:
1178
+ string;
523
1179
  }): Request<{}>;
524
1180
  /** Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service. */
525
1181
  get(request?: {
526
1182
  /** V1 error format. */
527
- "$.xgafv"?: string;
1183
+ "$.xgafv"?:
1184
+ string;
528
1185
  /** OAuth access token. */
529
- access_token?: string;
1186
+ access_token?:
1187
+ string;
530
1188
  /** Data format for response. */
531
- alt?: string;
1189
+ alt?:
1190
+ string;
532
1191
  /** JSONP */
533
- callback?: string;
1192
+ callback?:
1193
+ string;
534
1194
  /** Selector specifying which fields to include in a partial response. */
535
- fields?: string;
1195
+ fields?:
1196
+ string;
536
1197
  /** 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. */
537
- key?: string;
1198
+ key?:
1199
+ string;
538
1200
  /** The name of the operation resource. */
539
- name: string;
1201
+ name:
1202
+ string;
540
1203
  /** OAuth 2.0 token for the current user. */
541
- oauth_token?: string;
1204
+ oauth_token?:
1205
+ string;
542
1206
  /** Returns response with indentations and line breaks. */
543
- prettyPrint?: boolean;
1207
+ prettyPrint?:
1208
+ boolean;
544
1209
  /** 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. */
545
- quotaUser?: string;
1210
+ quotaUser?:
1211
+ string;
546
1212
  /** Upload protocol for media (e.g. "raw", "multipart"). */
547
- upload_protocol?: string;
1213
+ upload_protocol?:
1214
+ string;
548
1215
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
549
- uploadType?: string;
1216
+ uploadType?:
1217
+ string;
550
1218
  }): Request<Operation>;
551
1219
  /** Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`. */
552
1220
  list(request?: {
553
1221
  /** V1 error format. */
554
- "$.xgafv"?: string;
1222
+ "$.xgafv"?:
1223
+ string;
555
1224
  /** OAuth access token. */
556
- access_token?: string;
1225
+ access_token?:
1226
+ string;
557
1227
  /** Data format for response. */
558
- alt?: string;
1228
+ alt?:
1229
+ string;
559
1230
  /** JSONP */
560
- callback?: string;
1231
+ callback?:
1232
+ string;
561
1233
  /** Selector specifying which fields to include in a partial response. */
562
- fields?: string;
1234
+ fields?:
1235
+ string;
563
1236
  /** The standard list filter. */
564
- filter?: string;
1237
+ filter?:
1238
+ string;
565
1239
  /** 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. */
566
- key?: string;
1240
+ key?:
1241
+ string;
567
1242
  /** The name of the operation's parent resource. */
568
- name: string;
1243
+ name:
1244
+ string;
569
1245
  /** OAuth 2.0 token for the current user. */
570
- oauth_token?: string;
1246
+ oauth_token?:
1247
+ string;
571
1248
  /** The standard list page size. */
572
- pageSize?: number;
1249
+ pageSize?:
1250
+ number;
573
1251
  /** The standard list page token. */
574
- pageToken?: string;
1252
+ pageToken?:
1253
+ string;
575
1254
  /** Returns response with indentations and line breaks. */
576
- prettyPrint?: boolean;
1255
+ prettyPrint?:
1256
+ boolean;
577
1257
  /** 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. */
578
- quotaUser?: string;
1258
+ quotaUser?:
1259
+ string;
579
1260
  /** Upload protocol for media (e.g. "raw", "multipart"). */
580
- upload_protocol?: string;
1261
+ upload_protocol?:
1262
+ string;
581
1263
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
582
- uploadType?: string;
1264
+ uploadType?:
1265
+ string;
583
1266
  }): Request<ListOperationsResponse>;
584
1267
  }
1268
+ interface RulesResource {
1269
+ /** Lists rules in a given project. */
1270
+ list(request?: {
1271
+ /** V1 error format. */
1272
+ "$.xgafv"?:
1273
+ string;
1274
+ /** OAuth access token. */
1275
+ access_token?:
1276
+ string;
1277
+ /** Data format for response. */
1278
+ alt?:
1279
+ string;
1280
+ /** JSONP */
1281
+ callback?:
1282
+ string;
1283
+ /** Selector specifying which fields to include in a partial response. */
1284
+ fields?:
1285
+ string;
1286
+ /** Filter based on primary_category, secondary_category */
1287
+ filter?:
1288
+ string;
1289
+ /** 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. */
1290
+ key?:
1291
+ string;
1292
+ /** OAuth 2.0 token for the current user. */
1293
+ oauth_token?:
1294
+ string;
1295
+ /** Requested page size. Server may return fewer items than requested. If unspecified, server will pick an appropriate default. */
1296
+ pageSize?:
1297
+ number;
1298
+ /** A token identifying a page of results the server should return. */
1299
+ pageToken?:
1300
+ string;
1301
+ /**
1302
+ * Required. The [project] on which to execute the request. The format is: projects/{project_id}/locations/{location} Currently, the pre-defined rules are global available to all
1303
+ * projects and all regions
1304
+ */
1305
+ parent:
1306
+ string;
1307
+ /** Returns response with indentations and line breaks. */
1308
+ prettyPrint?:
1309
+ boolean;
1310
+ /** 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. */
1311
+ quotaUser?:
1312
+ string;
1313
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1314
+ upload_protocol?:
1315
+ string;
1316
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1317
+ uploadType?:
1318
+ string;
1319
+ }): Request<ListRulesResponse>;
1320
+ }
585
1321
  interface LocationsResource {
586
1322
  /** Gets information about a location. */
587
1323
  get(request?: {
588
1324
  /** V1 error format. */
589
- "$.xgafv"?: string;
1325
+ "$.xgafv"?:
1326
+ string;
590
1327
  /** OAuth access token. */
591
- access_token?: string;
1328
+ access_token?:
1329
+ string;
592
1330
  /** Data format for response. */
593
- alt?: string;
1331
+ alt?:
1332
+ string;
594
1333
  /** JSONP */
595
- callback?: string;
1334
+ callback?:
1335
+ string;
596
1336
  /** Selector specifying which fields to include in a partial response. */
597
- fields?: string;
1337
+ fields?:
1338
+ string;
598
1339
  /** 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. */
599
- key?: string;
1340
+ key?:
1341
+ string;
600
1342
  /** Resource name for the location. */
601
- name: string;
1343
+ name:
1344
+ string;
602
1345
  /** OAuth 2.0 token for the current user. */
603
- oauth_token?: string;
1346
+ oauth_token?:
1347
+ string;
604
1348
  /** Returns response with indentations and line breaks. */
605
- prettyPrint?: boolean;
1349
+ prettyPrint?:
1350
+ boolean;
606
1351
  /** 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. */
607
- quotaUser?: string;
1352
+ quotaUser?:
1353
+ string;
608
1354
  /** Upload protocol for media (e.g. "raw", "multipart"). */
609
- upload_protocol?: string;
1355
+ upload_protocol?:
1356
+ string;
610
1357
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
611
- uploadType?: string;
1358
+ uploadType?:
1359
+ string;
612
1360
  }): Request<Location>;
613
1361
  /** Lists information about the supported locations for this service. */
614
1362
  list(request?: {
615
1363
  /** V1 error format. */
616
- "$.xgafv"?: string;
1364
+ "$.xgafv"?:
1365
+ string;
617
1366
  /** OAuth access token. */
618
- access_token?: string;
1367
+ access_token?:
1368
+ string;
619
1369
  /** Data format for response. */
620
- alt?: string;
1370
+ alt?:
1371
+ string;
621
1372
  /** JSONP */
622
- callback?: string;
1373
+ callback?:
1374
+ string;
623
1375
  /** Selector specifying which fields to include in a partial response. */
624
- fields?: string;
1376
+ fields?:
1377
+ string;
625
1378
  /**
626
1379
  * A filter to narrow down results to a preferred subset. The filtering language accepts strings like `"displayName=tokyo"`, and is documented in more detail in
627
1380
  * [AIP-160](https://google.aip.dev/160).
628
1381
  */
629
- filter?: string;
1382
+ filter?:
1383
+ string;
630
1384
  /** 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. */
631
- key?: string;
1385
+ key?:
1386
+ string;
632
1387
  /** The resource that owns the locations collection, if applicable. */
633
- name: string;
1388
+ name:
1389
+ string;
634
1390
  /** OAuth 2.0 token for the current user. */
635
- oauth_token?: string;
1391
+ oauth_token?:
1392
+ string;
636
1393
  /** The maximum number of results to return. If not set, the service selects a default. */
637
- pageSize?: number;
1394
+ pageSize?:
1395
+ number;
638
1396
  /** A page token received from the `next_page_token` field in the response. Send that page token to receive the subsequent page. */
639
- pageToken?: string;
1397
+ pageToken?:
1398
+ string;
640
1399
  /** Returns response with indentations and line breaks. */
641
- prettyPrint?: boolean;
1400
+ prettyPrint?:
1401
+ boolean;
642
1402
  /** 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. */
643
- quotaUser?: string;
1403
+ quotaUser?:
1404
+ string;
644
1405
  /** Upload protocol for media (e.g. "raw", "multipart"). */
645
- upload_protocol?: string;
1406
+ upload_protocol?:
1407
+ string;
646
1408
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
647
- uploadType?: string;
1409
+ uploadType?:
1410
+ string;
648
1411
  }): Request<ListLocationsResponse>;
649
- evaluations: EvaluationsResource;
650
- insights: InsightsResource;
651
- operations: OperationsResource;
1412
+ evaluations:
1413
+ EvaluationsResource;
1414
+ insights:
1415
+ InsightsResource;
1416
+ operations:
1417
+ OperationsResource;
1418
+ rules:
1419
+ RulesResource;
652
1420
  }
653
1421
  interface ProjectsResource {
654
- locations: LocationsResource;
1422
+ locations:
1423
+ LocationsResource;
655
1424
  }
656
1425
 
657
1426
  const projects: ProjectsResource;