@googleapis/policyanalyzer 2.0.1 → 4.0.0

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.
@@ -1,4 +1,3 @@
1
- /// <reference types="node" />
2
1
  import { OAuth2Client, JWT, Compute, UserRefreshClient, BaseExternalAccountClient, GaxiosResponseWithHTTP2, GoogleConfigurable, MethodOptions, StreamMethodOptions, GlobalOptions, GoogleAuth, BodyResponseCallback, APIRequestContext } from 'googleapis-common';
3
2
  import { Readable } from 'stream';
4
3
  export declare namespace policyanalyzer_v1beta1 {
@@ -142,6 +141,61 @@ export declare namespace policyanalyzer_v1beta1 {
142
141
  constructor(context: APIRequestContext);
143
142
  /**
144
143
  * Queries policy activities on GCP resources.
144
+ * @example
145
+ * ```js
146
+ * // Before running the sample:
147
+ * // - Enable the API at:
148
+ * // https://console.developers.google.com/apis/api/policyanalyzer.googleapis.com
149
+ * // - Login into gcloud by running:
150
+ * // ```sh
151
+ * // $ gcloud auth application-default login
152
+ * // ```
153
+ * // - Install the npm module by running:
154
+ * // ```sh
155
+ * // $ npm install googleapis
156
+ * // ```
157
+ *
158
+ * const {google} = require('googleapis');
159
+ * const policyanalyzer = google.policyanalyzer('v1beta1');
160
+ *
161
+ * async function main() {
162
+ * const auth = new google.auth.GoogleAuth({
163
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
164
+ * scopes: ['https://www.googleapis.com/auth/cloud-platform'],
165
+ * });
166
+ *
167
+ * // Acquire an auth client, and bind it to all future calls
168
+ * const authClient = await auth.getClient();
169
+ * google.options({auth: authClient});
170
+ *
171
+ * // Do the magic
172
+ * const res =
173
+ * await policyanalyzer.folders.locations.activityTypes.activities.query({
174
+ * // Optional. Optional filter expression to restrict the activities returned. Supported filters are: - service_account_last_authn.full_resource_name {=\} - service_account_key_last_authn.full_resource_name {=\}
175
+ * filter: 'placeholder-value',
176
+ * // Optional. The maximum number of results to return from this request. Max limit is 1000. Non-positive values are ignored. The presence of `nextPageToken` in the response indicates that more results might be available.
177
+ * pageSize: 'placeholder-value',
178
+ * // Optional. If present, then retrieve the next batch of results from the preceding call to this method. `pageToken` must be the value of `nextPageToken` from the previous response. The values of other method parameters should be identical to those in the previous call.
179
+ * pageToken: 'placeholder-value',
180
+ * // Required. The container resource on which to execute the request. Acceptable formats: `projects/[PROJECT_ID|PROJECT_NUMBER]/locations/[LOCATION]/activityTypes/[ACTIVITY_TYPE]` LOCATION here refers to GCP Locations: https://cloud.google.com/about/locations/
181
+ * parent:
182
+ * 'folders/my-folder/locations/my-location/activityTypes/my-activityType',
183
+ * });
184
+ * console.log(res.data);
185
+ *
186
+ * // Example response
187
+ * // {
188
+ * // "activities": [],
189
+ * // "nextPageToken": "my_nextPageToken"
190
+ * // }
191
+ * }
192
+ *
193
+ * main().catch(e => {
194
+ * console.error(e);
195
+ * throw e;
196
+ * });
197
+ *
198
+ * ```
145
199
  *
146
200
  * @param params - Parameters for request
147
201
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -193,6 +247,63 @@ export declare namespace policyanalyzer_v1beta1 {
193
247
  constructor(context: APIRequestContext);
194
248
  /**
195
249
  * Queries policy activities on GCP resources.
250
+ * @example
251
+ * ```js
252
+ * // Before running the sample:
253
+ * // - Enable the API at:
254
+ * // https://console.developers.google.com/apis/api/policyanalyzer.googleapis.com
255
+ * // - Login into gcloud by running:
256
+ * // ```sh
257
+ * // $ gcloud auth application-default login
258
+ * // ```
259
+ * // - Install the npm module by running:
260
+ * // ```sh
261
+ * // $ npm install googleapis
262
+ * // ```
263
+ *
264
+ * const {google} = require('googleapis');
265
+ * const policyanalyzer = google.policyanalyzer('v1beta1');
266
+ *
267
+ * async function main() {
268
+ * const auth = new google.auth.GoogleAuth({
269
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
270
+ * scopes: ['https://www.googleapis.com/auth/cloud-platform'],
271
+ * });
272
+ *
273
+ * // Acquire an auth client, and bind it to all future calls
274
+ * const authClient = await auth.getClient();
275
+ * google.options({auth: authClient});
276
+ *
277
+ * // Do the magic
278
+ * const res =
279
+ * await policyanalyzer.organizations.locations.activityTypes.activities.query(
280
+ * {
281
+ * // Optional. Optional filter expression to restrict the activities returned. Supported filters are: - service_account_last_authn.full_resource_name {=\} - service_account_key_last_authn.full_resource_name {=\}
282
+ * filter: 'placeholder-value',
283
+ * // Optional. The maximum number of results to return from this request. Max limit is 1000. Non-positive values are ignored. The presence of `nextPageToken` in the response indicates that more results might be available.
284
+ * pageSize: 'placeholder-value',
285
+ * // Optional. If present, then retrieve the next batch of results from the preceding call to this method. `pageToken` must be the value of `nextPageToken` from the previous response. The values of other method parameters should be identical to those in the previous call.
286
+ * pageToken: 'placeholder-value',
287
+ * // Required. The container resource on which to execute the request. Acceptable formats: `projects/[PROJECT_ID|PROJECT_NUMBER]/locations/[LOCATION]/activityTypes/[ACTIVITY_TYPE]` LOCATION here refers to GCP Locations: https://cloud.google.com/about/locations/
288
+ * parent:
289
+ * 'organizations/my-organization/locations/my-location/activityTypes/my-activityType',
290
+ * },
291
+ * );
292
+ * console.log(res.data);
293
+ *
294
+ * // Example response
295
+ * // {
296
+ * // "activities": [],
297
+ * // "nextPageToken": "my_nextPageToken"
298
+ * // }
299
+ * }
300
+ *
301
+ * main().catch(e => {
302
+ * console.error(e);
303
+ * throw e;
304
+ * });
305
+ *
306
+ * ```
196
307
  *
197
308
  * @param params - Parameters for request
198
309
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -244,6 +355,61 @@ export declare namespace policyanalyzer_v1beta1 {
244
355
  constructor(context: APIRequestContext);
245
356
  /**
246
357
  * Queries policy activities on GCP resources.
358
+ * @example
359
+ * ```js
360
+ * // Before running the sample:
361
+ * // - Enable the API at:
362
+ * // https://console.developers.google.com/apis/api/policyanalyzer.googleapis.com
363
+ * // - Login into gcloud by running:
364
+ * // ```sh
365
+ * // $ gcloud auth application-default login
366
+ * // ```
367
+ * // - Install the npm module by running:
368
+ * // ```sh
369
+ * // $ npm install googleapis
370
+ * // ```
371
+ *
372
+ * const {google} = require('googleapis');
373
+ * const policyanalyzer = google.policyanalyzer('v1beta1');
374
+ *
375
+ * async function main() {
376
+ * const auth = new google.auth.GoogleAuth({
377
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
378
+ * scopes: ['https://www.googleapis.com/auth/cloud-platform'],
379
+ * });
380
+ *
381
+ * // Acquire an auth client, and bind it to all future calls
382
+ * const authClient = await auth.getClient();
383
+ * google.options({auth: authClient});
384
+ *
385
+ * // Do the magic
386
+ * const res =
387
+ * await policyanalyzer.projects.locations.activityTypes.activities.query({
388
+ * // Optional. Optional filter expression to restrict the activities returned. Supported filters are: - service_account_last_authn.full_resource_name {=\} - service_account_key_last_authn.full_resource_name {=\}
389
+ * filter: 'placeholder-value',
390
+ * // Optional. The maximum number of results to return from this request. Max limit is 1000. Non-positive values are ignored. The presence of `nextPageToken` in the response indicates that more results might be available.
391
+ * pageSize: 'placeholder-value',
392
+ * // Optional. If present, then retrieve the next batch of results from the preceding call to this method. `pageToken` must be the value of `nextPageToken` from the previous response. The values of other method parameters should be identical to those in the previous call.
393
+ * pageToken: 'placeholder-value',
394
+ * // Required. The container resource on which to execute the request. Acceptable formats: `projects/[PROJECT_ID|PROJECT_NUMBER]/locations/[LOCATION]/activityTypes/[ACTIVITY_TYPE]` LOCATION here refers to GCP Locations: https://cloud.google.com/about/locations/
395
+ * parent:
396
+ * 'projects/my-project/locations/my-location/activityTypes/my-activityType',
397
+ * });
398
+ * console.log(res.data);
399
+ *
400
+ * // Example response
401
+ * // {
402
+ * // "activities": [],
403
+ * // "nextPageToken": "my_nextPageToken"
404
+ * // }
405
+ * }
406
+ *
407
+ * main().catch(e => {
408
+ * console.error(e);
409
+ * throw e;
410
+ * });
411
+ *
412
+ * ```
247
413
  *
248
414
  * @param params - Parameters for request
249
415
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
package/build/v1beta1.js CHANGED
@@ -33,6 +33,10 @@ var policyanalyzer_v1beta1;
33
33
  * ```
34
34
  */
35
35
  class Policyanalyzer {
36
+ context;
37
+ folders;
38
+ organizations;
39
+ projects;
36
40
  constructor(options, google) {
37
41
  this.context = {
38
42
  _options: options || {},
@@ -45,6 +49,8 @@ var policyanalyzer_v1beta1;
45
49
  }
46
50
  policyanalyzer_v1beta1.Policyanalyzer = Policyanalyzer;
47
51
  class Resource$Folders {
52
+ context;
53
+ locations;
48
54
  constructor(context) {
49
55
  this.context = context;
50
56
  this.locations = new Resource$Folders$Locations(this.context);
@@ -52,6 +58,8 @@ var policyanalyzer_v1beta1;
52
58
  }
53
59
  policyanalyzer_v1beta1.Resource$Folders = Resource$Folders;
54
60
  class Resource$Folders$Locations {
61
+ context;
62
+ activityTypes;
55
63
  constructor(context) {
56
64
  this.context = context;
57
65
  this.activityTypes = new Resource$Folders$Locations$Activitytypes(this.context);
@@ -59,6 +67,8 @@ var policyanalyzer_v1beta1;
59
67
  }
60
68
  policyanalyzer_v1beta1.Resource$Folders$Locations = Resource$Folders$Locations;
61
69
  class Resource$Folders$Locations$Activitytypes {
70
+ context;
71
+ activities;
62
72
  constructor(context) {
63
73
  this.context = context;
64
74
  this.activities = new Resource$Folders$Locations$Activitytypes$Activities(this.context);
@@ -66,6 +76,7 @@ var policyanalyzer_v1beta1;
66
76
  }
67
77
  policyanalyzer_v1beta1.Resource$Folders$Locations$Activitytypes = Resource$Folders$Locations$Activitytypes;
68
78
  class Resource$Folders$Locations$Activitytypes$Activities {
79
+ context;
69
80
  constructor(context) {
70
81
  this.context = context;
71
82
  }
@@ -105,6 +116,8 @@ var policyanalyzer_v1beta1;
105
116
  }
106
117
  policyanalyzer_v1beta1.Resource$Folders$Locations$Activitytypes$Activities = Resource$Folders$Locations$Activitytypes$Activities;
107
118
  class Resource$Organizations {
119
+ context;
120
+ locations;
108
121
  constructor(context) {
109
122
  this.context = context;
110
123
  this.locations = new Resource$Organizations$Locations(this.context);
@@ -112,6 +125,8 @@ var policyanalyzer_v1beta1;
112
125
  }
113
126
  policyanalyzer_v1beta1.Resource$Organizations = Resource$Organizations;
114
127
  class Resource$Organizations$Locations {
128
+ context;
129
+ activityTypes;
115
130
  constructor(context) {
116
131
  this.context = context;
117
132
  this.activityTypes = new Resource$Organizations$Locations$Activitytypes(this.context);
@@ -119,6 +134,8 @@ var policyanalyzer_v1beta1;
119
134
  }
120
135
  policyanalyzer_v1beta1.Resource$Organizations$Locations = Resource$Organizations$Locations;
121
136
  class Resource$Organizations$Locations$Activitytypes {
137
+ context;
138
+ activities;
122
139
  constructor(context) {
123
140
  this.context = context;
124
141
  this.activities =
@@ -127,6 +144,7 @@ var policyanalyzer_v1beta1;
127
144
  }
128
145
  policyanalyzer_v1beta1.Resource$Organizations$Locations$Activitytypes = Resource$Organizations$Locations$Activitytypes;
129
146
  class Resource$Organizations$Locations$Activitytypes$Activities {
147
+ context;
130
148
  constructor(context) {
131
149
  this.context = context;
132
150
  }
@@ -166,6 +184,8 @@ var policyanalyzer_v1beta1;
166
184
  }
167
185
  policyanalyzer_v1beta1.Resource$Organizations$Locations$Activitytypes$Activities = Resource$Organizations$Locations$Activitytypes$Activities;
168
186
  class Resource$Projects {
187
+ context;
188
+ locations;
169
189
  constructor(context) {
170
190
  this.context = context;
171
191
  this.locations = new Resource$Projects$Locations(this.context);
@@ -173,6 +193,8 @@ var policyanalyzer_v1beta1;
173
193
  }
174
194
  policyanalyzer_v1beta1.Resource$Projects = Resource$Projects;
175
195
  class Resource$Projects$Locations {
196
+ context;
197
+ activityTypes;
176
198
  constructor(context) {
177
199
  this.context = context;
178
200
  this.activityTypes = new Resource$Projects$Locations$Activitytypes(this.context);
@@ -180,6 +202,8 @@ var policyanalyzer_v1beta1;
180
202
  }
181
203
  policyanalyzer_v1beta1.Resource$Projects$Locations = Resource$Projects$Locations;
182
204
  class Resource$Projects$Locations$Activitytypes {
205
+ context;
206
+ activities;
183
207
  constructor(context) {
184
208
  this.context = context;
185
209
  this.activities =
@@ -188,6 +212,7 @@ var policyanalyzer_v1beta1;
188
212
  }
189
213
  policyanalyzer_v1beta1.Resource$Projects$Locations$Activitytypes = Resource$Projects$Locations$Activitytypes;
190
214
  class Resource$Projects$Locations$Activitytypes$Activities {
215
+ context;
191
216
  constructor(context) {
192
217
  this.context = context;
193
218
  }
@@ -226,5 +251,5 @@ var policyanalyzer_v1beta1;
226
251
  }
227
252
  }
228
253
  policyanalyzer_v1beta1.Resource$Projects$Locations$Activitytypes$Activities = Resource$Projects$Locations$Activitytypes$Activities;
229
- })(policyanalyzer_v1beta1 = exports.policyanalyzer_v1beta1 || (exports.policyanalyzer_v1beta1 = {}));
254
+ })(policyanalyzer_v1beta1 || (exports.policyanalyzer_v1beta1 = policyanalyzer_v1beta1 = {}));
230
255
  //# sourceMappingURL=v1beta1.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"v1beta1.js","sourceRoot":"","sources":["../v1beta1.ts"],"names":[],"mappings":";AAAA,4BAA4B;AAC5B,kEAAkE;AAClE,mEAAmE;AACnE,0CAA0C;AAC1C,EAAE;AACF,gDAAgD;AAChD,EAAE;AACF,sEAAsE;AACtE,oEAAoE;AACpE,2EAA2E;AAC3E,sEAAsE;AACtE,iCAAiC;;;AAEjC,uDAAuD;AACvD,sDAAsD;AACtD,0DAA0D;AAC1D,oDAAoD;AACpD,4CAA4C;AAE5C,yDAe2B;AAG3B,IAAiB,sBAAsB,CA+mBtC;AA/mBD,WAAiB,sBAAsB;IAgErC;;;;;;;;;;OAUG;IACH,MAAa,cAAc;QAMzB,YAAY,OAAsB,EAAE,MAA2B;YAC7D,IAAI,CAAC,OAAO,GAAG;gBACb,QAAQ,EAAE,OAAO,IAAI,EAAE;gBACvB,MAAM;aACP,CAAC;YAEF,IAAI,CAAC,OAAO,GAAG,IAAI,gBAAgB,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;YAClD,IAAI,CAAC,aAAa,GAAG,IAAI,sBAAsB,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;YAC9D,IAAI,CAAC,QAAQ,G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AM,CAAC;gBACN,OAAO,IAAA,oCAAgB,EACrB,UAAU,CACX,CAAC;YACJ,CAAC;QACH,CAAC;KACF;IAnKY,2EAAoD,uDAmKhE,CAAA;AAqBH,CAAC,EAtxBgB,sBAAsB,sCAAtB,sBAAsB,QAsxBtC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@googleapis/policyanalyzer",
3
- "version": "2.0.1",
3
+ "version": "4.0.0",
4
4
  "description": "policyanalyzer",
5
5
  "main": "build/index.js",
6
6
  "types": "build/index.d.ts",
@@ -28,15 +28,15 @@
28
28
  "webpack": "webpack"
29
29
  },
30
30
  "dependencies": {
31
- "googleapis-common": "^8.0.2-rc.0"
31
+ "googleapis-common": "^8.0.0"
32
32
  },
33
33
  "devDependencies": {
34
34
  "@microsoft/api-documenter": "^7.8.10",
35
35
  "@microsoft/api-extractor": "^7.8.10",
36
- "gts": "^5.0.0",
36
+ "gts": "^6.0.0",
37
37
  "null-loader": "^4.0.0",
38
38
  "ts-loader": "^9.0.0",
39
- "typescript": "~4.8.4",
39
+ "typescript": "5.7.3",
40
40
  "webpack": "^5.0.0",
41
41
  "webpack-cli": "^5.0.0"
42
42
  }
package/v1.ts CHANGED
@@ -215,6 +215,61 @@ export namespace policyanalyzer_v1 {
215
215
 
216
216
  /**
217
217
  * Queries policy activities on Google Cloud resources.
218
+ * @example
219
+ * ```js
220
+ * // Before running the sample:
221
+ * // - Enable the API at:
222
+ * // https://console.developers.google.com/apis/api/policyanalyzer.googleapis.com
223
+ * // - Login into gcloud by running:
224
+ * // ```sh
225
+ * // $ gcloud auth application-default login
226
+ * // ```
227
+ * // - Install the npm module by running:
228
+ * // ```sh
229
+ * // $ npm install googleapis
230
+ * // ```
231
+ *
232
+ * const {google} = require('googleapis');
233
+ * const policyanalyzer = google.policyanalyzer('v1');
234
+ *
235
+ * async function main() {
236
+ * const auth = new google.auth.GoogleAuth({
237
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
238
+ * scopes: ['https://www.googleapis.com/auth/cloud-platform'],
239
+ * });
240
+ *
241
+ * // Acquire an auth client, and bind it to all future calls
242
+ * const authClient = await auth.getClient();
243
+ * google.options({auth: authClient});
244
+ *
245
+ * // Do the magic
246
+ * const res =
247
+ * await policyanalyzer.folders.locations.activityTypes.activities.query({
248
+ * // Optional. Filter expression to restrict the activities returned. For serviceAccountLastAuthentication activities, supported filters are: - `activities.full_resource_name {=\} [STRING]` - `activities.fullResourceName {=\} [STRING]` where `[STRING]` is the full resource name of the service account. For serviceAccountKeyLastAuthentication activities, supported filters are: - `activities.full_resource_name {=\} [STRING]` - `activities.fullResourceName {=\} [STRING]` where `[STRING]` is the full resource name of the service account key.
249
+ * filter: 'placeholder-value',
250
+ * // Optional. The maximum number of results to return from this request. Max limit is 1000. Non-positive values are ignored. The presence of `nextPageToken` in the response indicates that more results might be available.
251
+ * pageSize: 'placeholder-value',
252
+ * // Optional. If present, then retrieve the next batch of results from the preceding call to this method. `pageToken` must be the value of `nextPageToken` from the previous response. The values of other method parameters should be identical to those in the previous call.
253
+ * pageToken: 'placeholder-value',
254
+ * // Required. The container resource on which to execute the request. Acceptable formats: `projects/[PROJECT_ID|PROJECT_NUMBER]/locations/[LOCATION]/activityTypes/[ACTIVITY_TYPE]` LOCATION here refers to Google Cloud Locations: https://cloud.google.com/about/locations/
255
+ * parent:
256
+ * 'folders/my-folder/locations/my-location/activityTypes/my-activityType',
257
+ * });
258
+ * console.log(res.data);
259
+ *
260
+ * // Example response
261
+ * // {
262
+ * // "activities": [],
263
+ * // "nextPageToken": "my_nextPageToken"
264
+ * // }
265
+ * }
266
+ *
267
+ * main().catch(e => {
268
+ * console.error(e);
269
+ * throw e;
270
+ * });
271
+ *
272
+ * ```
218
273
  *
219
274
  * @param params - Parameters for request
220
275
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -377,6 +432,63 @@ export namespace policyanalyzer_v1 {
377
432
 
378
433
  /**
379
434
  * Queries policy activities on Google Cloud resources.
435
+ * @example
436
+ * ```js
437
+ * // Before running the sample:
438
+ * // - Enable the API at:
439
+ * // https://console.developers.google.com/apis/api/policyanalyzer.googleapis.com
440
+ * // - Login into gcloud by running:
441
+ * // ```sh
442
+ * // $ gcloud auth application-default login
443
+ * // ```
444
+ * // - Install the npm module by running:
445
+ * // ```sh
446
+ * // $ npm install googleapis
447
+ * // ```
448
+ *
449
+ * const {google} = require('googleapis');
450
+ * const policyanalyzer = google.policyanalyzer('v1');
451
+ *
452
+ * async function main() {
453
+ * const auth = new google.auth.GoogleAuth({
454
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
455
+ * scopes: ['https://www.googleapis.com/auth/cloud-platform'],
456
+ * });
457
+ *
458
+ * // Acquire an auth client, and bind it to all future calls
459
+ * const authClient = await auth.getClient();
460
+ * google.options({auth: authClient});
461
+ *
462
+ * // Do the magic
463
+ * const res =
464
+ * await policyanalyzer.organizations.locations.activityTypes.activities.query(
465
+ * {
466
+ * // Optional. Filter expression to restrict the activities returned. For serviceAccountLastAuthentication activities, supported filters are: - `activities.full_resource_name {=\} [STRING]` - `activities.fullResourceName {=\} [STRING]` where `[STRING]` is the full resource name of the service account. For serviceAccountKeyLastAuthentication activities, supported filters are: - `activities.full_resource_name {=\} [STRING]` - `activities.fullResourceName {=\} [STRING]` where `[STRING]` is the full resource name of the service account key.
467
+ * filter: 'placeholder-value',
468
+ * // Optional. The maximum number of results to return from this request. Max limit is 1000. Non-positive values are ignored. The presence of `nextPageToken` in the response indicates that more results might be available.
469
+ * pageSize: 'placeholder-value',
470
+ * // Optional. If present, then retrieve the next batch of results from the preceding call to this method. `pageToken` must be the value of `nextPageToken` from the previous response. The values of other method parameters should be identical to those in the previous call.
471
+ * pageToken: 'placeholder-value',
472
+ * // Required. The container resource on which to execute the request. Acceptable formats: `projects/[PROJECT_ID|PROJECT_NUMBER]/locations/[LOCATION]/activityTypes/[ACTIVITY_TYPE]` LOCATION here refers to Google Cloud Locations: https://cloud.google.com/about/locations/
473
+ * parent:
474
+ * 'organizations/my-organization/locations/my-location/activityTypes/my-activityType',
475
+ * },
476
+ * );
477
+ * console.log(res.data);
478
+ *
479
+ * // Example response
480
+ * // {
481
+ * // "activities": [],
482
+ * // "nextPageToken": "my_nextPageToken"
483
+ * // }
484
+ * }
485
+ *
486
+ * main().catch(e => {
487
+ * console.error(e);
488
+ * throw e;
489
+ * });
490
+ *
491
+ * ```
380
492
  *
381
493
  * @param params - Parameters for request
382
494
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -537,6 +649,61 @@ export namespace policyanalyzer_v1 {
537
649
 
538
650
  /**
539
651
  * Queries policy activities on Google Cloud resources.
652
+ * @example
653
+ * ```js
654
+ * // Before running the sample:
655
+ * // - Enable the API at:
656
+ * // https://console.developers.google.com/apis/api/policyanalyzer.googleapis.com
657
+ * // - Login into gcloud by running:
658
+ * // ```sh
659
+ * // $ gcloud auth application-default login
660
+ * // ```
661
+ * // - Install the npm module by running:
662
+ * // ```sh
663
+ * // $ npm install googleapis
664
+ * // ```
665
+ *
666
+ * const {google} = require('googleapis');
667
+ * const policyanalyzer = google.policyanalyzer('v1');
668
+ *
669
+ * async function main() {
670
+ * const auth = new google.auth.GoogleAuth({
671
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
672
+ * scopes: ['https://www.googleapis.com/auth/cloud-platform'],
673
+ * });
674
+ *
675
+ * // Acquire an auth client, and bind it to all future calls
676
+ * const authClient = await auth.getClient();
677
+ * google.options({auth: authClient});
678
+ *
679
+ * // Do the magic
680
+ * const res =
681
+ * await policyanalyzer.projects.locations.activityTypes.activities.query({
682
+ * // Optional. Filter expression to restrict the activities returned. For serviceAccountLastAuthentication activities, supported filters are: - `activities.full_resource_name {=\} [STRING]` - `activities.fullResourceName {=\} [STRING]` where `[STRING]` is the full resource name of the service account. For serviceAccountKeyLastAuthentication activities, supported filters are: - `activities.full_resource_name {=\} [STRING]` - `activities.fullResourceName {=\} [STRING]` where `[STRING]` is the full resource name of the service account key.
683
+ * filter: 'placeholder-value',
684
+ * // Optional. The maximum number of results to return from this request. Max limit is 1000. Non-positive values are ignored. The presence of `nextPageToken` in the response indicates that more results might be available.
685
+ * pageSize: 'placeholder-value',
686
+ * // Optional. If present, then retrieve the next batch of results from the preceding call to this method. `pageToken` must be the value of `nextPageToken` from the previous response. The values of other method parameters should be identical to those in the previous call.
687
+ * pageToken: 'placeholder-value',
688
+ * // Required. The container resource on which to execute the request. Acceptable formats: `projects/[PROJECT_ID|PROJECT_NUMBER]/locations/[LOCATION]/activityTypes/[ACTIVITY_TYPE]` LOCATION here refers to Google Cloud Locations: https://cloud.google.com/about/locations/
689
+ * parent:
690
+ * 'projects/my-project/locations/my-location/activityTypes/my-activityType',
691
+ * });
692
+ * console.log(res.data);
693
+ *
694
+ * // Example response
695
+ * // {
696
+ * // "activities": [],
697
+ * // "nextPageToken": "my_nextPageToken"
698
+ * // }
699
+ * }
700
+ *
701
+ * main().catch(e => {
702
+ * console.error(e);
703
+ * throw e;
704
+ * });
705
+ *
706
+ * ```
540
707
  *
541
708
  * @param params - Parameters for request
542
709
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.