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

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 +355 -1
  2. package/package.json +1 -1
  3. package/tests.ts +58 -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: 20230406
13
13
 
14
14
  /// <reference types="gapi.client" />
15
15
 
@@ -45,9 +45,43 @@ declare namespace gapi.client {
45
45
  ruleNames?: string[];
46
46
  /** Output only. [Output only] The updated rule ids if exist. */
47
47
  ruleVersions?: string[];
48
+ /** crontab format schedule for scheduled evaluation, example: 0 *‍/3 * * * */
49
+ schedule?: string;
48
50
  /** Output only. [Output only] Update time stamp */
49
51
  updateTime?: string;
50
52
  }
53
+ interface Execution {
54
+ /** Output only. [Output only] End time stamp */
55
+ endTime?: string;
56
+ /** Output only. [Output only] Evaluation ID */
57
+ evaluationId?: string;
58
+ /** Output only. [Output only] Inventory time stamp */
59
+ inventoryTime?: string;
60
+ /** Labels as key value pairs */
61
+ labels?: { [P in string]: string };
62
+ /** The name of execution resource. The format is projects/{project}/locations/{location}/evaluations/{evaluation}/executions/{execution} */
63
+ name?: string;
64
+ /** type represent whether the execution executed directly by user or scheduled according evaluation.schedule field. */
65
+ runType?: string;
66
+ /** Output only. [Output only] Start time stamp */
67
+ startTime?: string;
68
+ /** Output only. [Output only] State */
69
+ state?: string;
70
+ }
71
+ interface ExecutionResult {
72
+ /** the document url of the rule */
73
+ documentationUrl?: string;
74
+ /** the violate resource */
75
+ resource?: Resource;
76
+ /** the rule which violate in execution */
77
+ rule?: string;
78
+ /** severity of violation */
79
+ severity?: string;
80
+ /** the details of violation in result */
81
+ violationDetails?: ViolationDetails;
82
+ /** the violation message of an execution */
83
+ violationMessage?: string;
84
+ }
51
85
  interface GceInstanceFilter {
52
86
  /** Service account of compute engine */
53
87
  serviceAccounts?: string[];
@@ -68,6 +102,20 @@ declare namespace gapi.client {
68
102
  /** Locations that could not be reached. */
69
103
  unreachable?: string[];
70
104
  }
105
+ interface ListExecutionResultsResponse {
106
+ /** The versions from the specified publisher. */
107
+ executionResults?: ExecutionResult[];
108
+ /** A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages. */
109
+ nextPageToken?: string;
110
+ }
111
+ interface ListExecutionsResponse {
112
+ /** The list of Execution */
113
+ executions?: Execution[];
114
+ /** A token identifying a page of results the server should return. */
115
+ nextPageToken?: string;
116
+ /** Locations that could not be reached. */
117
+ unreachable?: string[];
118
+ }
71
119
  interface ListLocationsResponse {
72
120
  /** A list of locations that matches the specified filter in the request. */
73
121
  locations?: Location[];
@@ -80,6 +128,18 @@ declare namespace gapi.client {
80
128
  /** A list of operations that matches the specified filter in the request. */
81
129
  operations?: Operation[];
82
130
  }
131
+ interface ListRulesResponse {
132
+ /** A token identifying a page of results the server should return. */
133
+ nextPageToken?: string;
134
+ /** all rules in response */
135
+ rules?: Rule[];
136
+ }
137
+ interface ListScannedResourcesResponse {
138
+ /** A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages. */
139
+ nextPageToken?: string;
140
+ /** All scanned resources in response */
141
+ scannedResources?: ScannedResource[];
142
+ }
83
143
  interface Location {
84
144
  /** The friendly name for this location, typically a nearby city name. For example, "Tokyo". */
85
145
  displayName?: string;
@@ -133,6 +193,14 @@ declare namespace gapi.client {
133
193
  /** Output only. Name of the verb executed by the operation. */
134
194
  verb?: string;
135
195
  }
196
+ interface Resource {
197
+ /** the name of the resource */
198
+ name?: string;
199
+ /** the service account accosiate with resource */
200
+ serviceAccount?: string;
201
+ /** the type of reresource */
202
+ type?: string;
203
+ }
136
204
  interface ResourceFilter {
137
205
  /** Filter compute engine resource */
138
206
  gceInstanceFilter?: GceInstanceFilter;
@@ -149,6 +217,42 @@ declare namespace gapi.client {
149
217
  /** State of the resource */
150
218
  state?: string;
151
219
  }
220
+ interface Rule {
221
+ /** descrite rule in plain language */
222
+ description?: string;
223
+ /** the name display in UI */
224
+ displayName?: string;
225
+ /** the message template for rule */
226
+ errorMessage?: string;
227
+ /** rule name */
228
+ name?: string;
229
+ /** the primary category */
230
+ primaryCategory?: string;
231
+ /** the remediation for the rule */
232
+ remediation?: string;
233
+ /** Output only. the version of the rule */
234
+ revisionId?: string;
235
+ /** the secondary category */
236
+ secondaryCategory?: string;
237
+ /** the severity of the rule */
238
+ severity?: string;
239
+ /** the docuement url for the rule */
240
+ uri?: string;
241
+ }
242
+ interface RunEvaluationRequest {
243
+ /** Required. The resource being created */
244
+ execution?: Execution;
245
+ /** 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 */
246
+ executionId?: string;
247
+ /**
248
+ * 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
249
+ * 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
250
+ * 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
251
+ * 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
252
+ * (00000000-0000-0000-0000-000000000000).
253
+ */
254
+ requestId?: string;
255
+ }
152
256
  interface SapDiscovery {
153
257
  /** An SAP system may run without an application layer. */
154
258
  applicationLayer?: SapDiscoveryComponent;
@@ -188,6 +292,8 @@ declare namespace gapi.client {
188
292
  relatedResources?: string[];
189
293
  /** ComputeInstance, ComputeDisk, VPC, Bare Metal server, etc. */
190
294
  resourceKind?: string;
295
+ /** Indicates whether this is a new, updated, or missing resource. */
296
+ resourceState?: string;
191
297
  /** The type of this resource. */
192
298
  resourceType?: string;
193
299
  /** URI of the resource, includes project, location, and name. */
@@ -205,6 +311,10 @@ declare namespace gapi.client {
205
311
  /** The SAP system that the validation data is from. */
206
312
  sapValidationType?: string;
207
313
  }
314
+ interface ScannedResource {
315
+ /** resource name */
316
+ resource?: string;
317
+ }
208
318
  interface Status {
209
319
  /** The status code, which should be an enum value of google.rpc.Code. */
210
320
  code?: number;
@@ -216,6 +326,14 @@ declare namespace gapi.client {
216
326
  */
217
327
  message?: string;
218
328
  }
329
+ interface ViolationDetails {
330
+ /** the name of asset */
331
+ asset?: string;
332
+ /** observed */
333
+ observed?: { [P in string]: string };
334
+ /** the service account associate with resource */
335
+ serviceAccount?: string;
336
+ }
219
337
  interface WriteInsightRequest {
220
338
  /** Required. The metrics data details. */
221
339
  insight?: Insight;
@@ -231,6 +349,202 @@ declare namespace gapi.client {
231
349
  // tslint:disable-next-line:no-empty-interface
232
350
  interface WriteInsightResponse {
233
351
  }
352
+ interface ResultsResource {
353
+ /** List the running result of a single Execution. */
354
+ list(request?: {
355
+ /** V1 error format. */
356
+ "$.xgafv"?: string;
357
+ /** OAuth access token. */
358
+ access_token?: string;
359
+ /** Data format for response. */
360
+ alt?: string;
361
+ /** JSONP */
362
+ callback?: string;
363
+ /** Selector specifying which fields to include in a partial response. */
364
+ fields?: string;
365
+ /** Filtering results */
366
+ filter?: string;
367
+ /** 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. */
368
+ key?: string;
369
+ /** OAuth 2.0 token for the current user. */
370
+ oauth_token?: string;
371
+ /** Requested page size. Server may return fewer items than requested. If unspecified, server will pick an appropriate default. */
372
+ pageSize?: number;
373
+ /** A token identifying a page of results the server should return. */
374
+ pageToken?: string;
375
+ /** Required. The execution results. Format: {parent}/evaluations/*‍/executions/*‍/results */
376
+ parent: string;
377
+ /** Returns response with indentations and line breaks. */
378
+ prettyPrint?: boolean;
379
+ /** 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. */
380
+ quotaUser?: string;
381
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
382
+ upload_protocol?: string;
383
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
384
+ uploadType?: string;
385
+ }): Request<ListExecutionResultsResponse>;
386
+ }
387
+ interface ScannedResourcesResource {
388
+ /** List all scanned resources for a single Execution. */
389
+ list(request?: {
390
+ /** V1 error format. */
391
+ "$.xgafv"?: string;
392
+ /** OAuth access token. */
393
+ access_token?: string;
394
+ /** Data format for response. */
395
+ alt?: string;
396
+ /** JSONP */
397
+ callback?: string;
398
+ /** Selector specifying which fields to include in a partial response. */
399
+ fields?: string;
400
+ /** Filtering results */
401
+ filter?: string;
402
+ /** 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. */
403
+ key?: string;
404
+ /** OAuth 2.0 token for the current user. */
405
+ oauth_token?: string;
406
+ /** Field to sort by. See https://google.aip.dev/132#ordering for more details. */
407
+ orderBy?: string;
408
+ /** Requested page size. Server may return fewer items than requested. If unspecified, server will pick an appropriate default. */
409
+ pageSize?: number;
410
+ /** A token identifying a page of results the server should return. */
411
+ pageToken?: string;
412
+ /** Required. parent for ListScannedResourcesRequest */
413
+ parent: string;
414
+ /** Returns response with indentations and line breaks. */
415
+ prettyPrint?: boolean;
416
+ /** 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. */
417
+ quotaUser?: string;
418
+ /** rule name */
419
+ rule?: string;
420
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
421
+ upload_protocol?: string;
422
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
423
+ uploadType?: string;
424
+ }): Request<ListScannedResourcesResponse>;
425
+ }
426
+ interface ExecutionsResource {
427
+ /** Gets details of a single Execution. */
428
+ get(request?: {
429
+ /** V1 error format. */
430
+ "$.xgafv"?: string;
431
+ /** OAuth access token. */
432
+ access_token?: string;
433
+ /** Data format for response. */
434
+ alt?: string;
435
+ /** JSONP */
436
+ callback?: string;
437
+ /** Selector specifying which fields to include in a partial response. */
438
+ fields?: string;
439
+ /** 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. */
440
+ key?: string;
441
+ /** Required. Name of the resource */
442
+ name: string;
443
+ /** OAuth 2.0 token for the current user. */
444
+ oauth_token?: string;
445
+ /** Returns response with indentations and line breaks. */
446
+ prettyPrint?: boolean;
447
+ /** 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. */
448
+ quotaUser?: string;
449
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
450
+ upload_protocol?: string;
451
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
452
+ uploadType?: string;
453
+ }): Request<Execution>;
454
+ /** Lists Executions in a given project and location. */
455
+ list(request?: {
456
+ /** V1 error format. */
457
+ "$.xgafv"?: string;
458
+ /** OAuth access token. */
459
+ access_token?: string;
460
+ /** Data format for response. */
461
+ alt?: string;
462
+ /** JSONP */
463
+ callback?: string;
464
+ /** Selector specifying which fields to include in a partial response. */
465
+ fields?: string;
466
+ /** Filtering results */
467
+ filter?: string;
468
+ /** 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. */
469
+ key?: string;
470
+ /** OAuth 2.0 token for the current user. */
471
+ oauth_token?: string;
472
+ /** Field to sort by. See https://google.aip.dev/132#ordering for more details. */
473
+ orderBy?: string;
474
+ /** Requested page size. Server may return fewer items than requested. If unspecified, server will pick an appropriate default. */
475
+ pageSize?: number;
476
+ /** A token identifying a page of results the server should return. */
477
+ pageToken?: string;
478
+ /** Required. The resource prefix of the Execution using the form: 'projects/{project}/locations/{location}/evaluations/{evaluation}' */
479
+ parent: string;
480
+ /** Returns response with indentations and line breaks. */
481
+ prettyPrint?: boolean;
482
+ /** 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. */
483
+ quotaUser?: string;
484
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
485
+ upload_protocol?: string;
486
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
487
+ uploadType?: string;
488
+ }): Request<ListExecutionsResponse>;
489
+ /** Creates a new Execution in a given project and location. */
490
+ run(request: {
491
+ /** V1 error format. */
492
+ "$.xgafv"?: string;
493
+ /** OAuth access token. */
494
+ access_token?: string;
495
+ /** Data format for response. */
496
+ alt?: string;
497
+ /** JSONP */
498
+ callback?: string;
499
+ /** Selector specifying which fields to include in a partial response. */
500
+ fields?: string;
501
+ /** 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. */
502
+ key?: string;
503
+ /** Required. The resource name of the Execution using the form: 'projects/{project}/locations/{location}/evaluations/{evaluation}/executions/{execution}' */
504
+ name: string;
505
+ /** OAuth 2.0 token for the current user. */
506
+ oauth_token?: string;
507
+ /** Returns response with indentations and line breaks. */
508
+ prettyPrint?: boolean;
509
+ /** 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. */
510
+ quotaUser?: string;
511
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
512
+ upload_protocol?: string;
513
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
514
+ uploadType?: string;
515
+ /** Request body */
516
+ resource: RunEvaluationRequest;
517
+ }): Request<Operation>;
518
+ run(request: {
519
+ /** V1 error format. */
520
+ "$.xgafv"?: string;
521
+ /** OAuth access token. */
522
+ access_token?: string;
523
+ /** Data format for response. */
524
+ alt?: string;
525
+ /** JSONP */
526
+ callback?: string;
527
+ /** Selector specifying which fields to include in a partial response. */
528
+ fields?: string;
529
+ /** 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. */
530
+ key?: string;
531
+ /** Required. The resource name of the Execution using the form: 'projects/{project}/locations/{location}/evaluations/{evaluation}/executions/{execution}' */
532
+ name: string;
533
+ /** OAuth 2.0 token for the current user. */
534
+ oauth_token?: string;
535
+ /** Returns response with indentations and line breaks. */
536
+ prettyPrint?: boolean;
537
+ /** 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. */
538
+ quotaUser?: string;
539
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
540
+ upload_protocol?: string;
541
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
542
+ uploadType?: string;
543
+ },
544
+ body: RunEvaluationRequest): Request<Operation>;
545
+ results: ResultsResource;
546
+ scannedResources: ScannedResourcesResource;
547
+ }
234
548
  interface EvaluationsResource {
235
549
  /** Creates a new Evaluation in a given project and location. */
236
550
  create(request: {
@@ -370,6 +684,7 @@ declare namespace gapi.client {
370
684
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
371
685
  uploadType?: string;
372
686
  }): Request<ListEvaluationsResponse>;
687
+ executions: ExecutionsResource;
373
688
  }
374
689
  interface InsightsResource {
375
690
  /** Write the data insights to workload manager data warehouse. */
@@ -582,6 +897,44 @@ declare namespace gapi.client {
582
897
  uploadType?: string;
583
898
  }): Request<ListOperationsResponse>;
584
899
  }
900
+ interface RulesResource {
901
+ /** Lists rules in a given project. */
902
+ list(request?: {
903
+ /** V1 error format. */
904
+ "$.xgafv"?: string;
905
+ /** OAuth access token. */
906
+ access_token?: string;
907
+ /** Data format for response. */
908
+ alt?: string;
909
+ /** JSONP */
910
+ callback?: string;
911
+ /** Selector specifying which fields to include in a partial response. */
912
+ fields?: string;
913
+ /** Filter based on primary_category, secondary_category */
914
+ filter?: string;
915
+ /** 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. */
916
+ key?: string;
917
+ /** OAuth 2.0 token for the current user. */
918
+ oauth_token?: string;
919
+ /** Requested page size. Server may return fewer items than requested. If unspecified, server will pick an appropriate default. */
920
+ pageSize?: number;
921
+ /** A token identifying a page of results the server should return. */
922
+ pageToken?: string;
923
+ /**
924
+ * 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
925
+ * projects and all regions
926
+ */
927
+ parent: string;
928
+ /** Returns response with indentations and line breaks. */
929
+ prettyPrint?: boolean;
930
+ /** 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. */
931
+ quotaUser?: string;
932
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
933
+ upload_protocol?: string;
934
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
935
+ uploadType?: string;
936
+ }): Request<ListRulesResponse>;
937
+ }
585
938
  interface LocationsResource {
586
939
  /** Gets information about a location. */
587
940
  get(request?: {
@@ -649,6 +1002,7 @@ declare namespace gapi.client {
649
1002
  evaluations: EvaluationsResource;
650
1003
  insights: InsightsResource;
651
1004
  operations: OperationsResource;
1005
+ rules: RulesResource;
652
1006
  }
653
1007
  interface ProjectsResource {
654
1008
  locations: LocationsResource;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maxim_mazurok/gapi.client.workloadmanager-v1",
3
- "version": "0.0.20230308",
3
+ "version": "0.0.20230406",
4
4
  "description": "TypeScript typings for Workload Manager API v1",
5
5
  "license": "MIT",
6
6
  "author": {
package/tests.ts CHANGED
@@ -3,7 +3,7 @@
3
3
  // This file was generated by https://github.com/Maxim-Mazurok/google-api-typings-generator. Please do not edit it manually.
4
4
  // In case of any problems please post issue to https://github.com/Maxim-Mazurok/google-api-typings-generator
5
5
 
6
- // Revision: 20230308
6
+ // Revision: 20230406
7
7
 
8
8
  gapi.load('client', async () => {
9
9
  /** now we can use gapi.client */
@@ -80,6 +80,7 @@ gapi.load('client', async () => {
80
80
  ruleVersions: [
81
81
  "Test string"
82
82
  ],
83
+ schedule: "Test string",
83
84
  updateTime: "Test string",
84
85
  });
85
86
  /** Gets details of a single Evaluation. */
@@ -94,6 +95,53 @@ gapi.load('client', async () => {
94
95
  pageToken: "Test string",
95
96
  parent: "Test string",
96
97
  });
98
+ /** Gets details of a single Execution. */
99
+ await gapi.client.workloadmanager.projects.locations.evaluations.executions.get({
100
+ name: "Test string",
101
+ });
102
+ /** Lists Executions in a given project and location. */
103
+ await gapi.client.workloadmanager.projects.locations.evaluations.executions.list({
104
+ filter: "Test string",
105
+ orderBy: "Test string",
106
+ pageSize: 42,
107
+ pageToken: "Test string",
108
+ parent: "Test string",
109
+ });
110
+ /** Creates a new Execution in a given project and location. */
111
+ await gapi.client.workloadmanager.projects.locations.evaluations.executions.run({
112
+ name: "Test string",
113
+ }, {
114
+ execution: {
115
+ endTime: "Test string",
116
+ evaluationId: "Test string",
117
+ inventoryTime: "Test string",
118
+ labels: {
119
+ A: "Test string"
120
+ },
121
+ name: "Test string",
122
+ runType: "Test string",
123
+ startTime: "Test string",
124
+ state: "Test string",
125
+ },
126
+ executionId: "Test string",
127
+ requestId: "Test string",
128
+ });
129
+ /** List the running result of a single Execution. */
130
+ await gapi.client.workloadmanager.projects.locations.evaluations.executions.results.list({
131
+ filter: "Test string",
132
+ pageSize: 42,
133
+ pageToken: "Test string",
134
+ parent: "Test string",
135
+ });
136
+ /** List all scanned resources for a single Execution. */
137
+ await gapi.client.workloadmanager.projects.locations.evaluations.executions.scannedResources.list({
138
+ filter: "Test string",
139
+ orderBy: "Test string",
140
+ pageSize: 42,
141
+ pageToken: "Test string",
142
+ parent: "Test string",
143
+ rule: "Test string",
144
+ });
97
145
  /** Write the data insights to workload manager data warehouse. */
98
146
  await gapi.client.workloadmanager.projects.locations.insights.writeInsight({
99
147
  location: "Test string",
@@ -110,6 +158,7 @@ gapi.load('client', async () => {
110
158
  "Test string"
111
159
  ],
112
160
  resourceKind: "Test string",
161
+ resourceState: "Test string",
113
162
  resourceType: "Test string",
114
163
  resourceUri: "Test string",
115
164
  updateTime: "Test string",
@@ -127,6 +176,7 @@ gapi.load('client', async () => {
127
176
  "Test string"
128
177
  ],
129
178
  resourceKind: "Test string",
179
+ resourceState: "Test string",
130
180
  resourceType: "Test string",
131
181
  resourceUri: "Test string",
132
182
  updateTime: "Test string",
@@ -185,5 +235,12 @@ gapi.load('client', async () => {
185
235
  pageSize: 42,
186
236
  pageToken: "Test string",
187
237
  });
238
+ /** Lists rules in a given project. */
239
+ await gapi.client.workloadmanager.projects.locations.rules.list({
240
+ filter: "Test string",
241
+ pageSize: 42,
242
+ pageToken: "Test string",
243
+ parent: "Test string",
244
+ });
188
245
  }
189
246
  });