@googleapis/securityposture 7.0.0 → 8.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.
package/v1.ts CHANGED
@@ -113,7 +113,6 @@ export namespace securityposture_v1 {
113
113
  export class Securityposture {
114
114
  context: APIRequestContext;
115
115
  organizations: Resource$Organizations;
116
- projects: Resource$Projects;
117
116
 
118
117
  constructor(options: GlobalOptions, google?: GoogleConfigurable) {
119
118
  this.context = {
@@ -122,7 +121,6 @@ export namespace securityposture_v1 {
122
121
  };
123
122
 
124
123
  this.organizations = new Resource$Organizations(this.context);
125
- this.projects = new Resource$Projects(this.context);
126
124
  }
127
125
  }
128
126
 
@@ -981,16 +979,9 @@ export namespace securityposture_v1 {
981
979
  new Resource$Organizations$Locations$Posturetemplates(this.context);
982
980
  this.reports = new Resource$Organizations$Locations$Reports(this.context);
983
981
  }
984
- }
985
-
986
- export class Resource$Organizations$Locations$Operations {
987
- context: APIRequestContext;
988
- constructor(context: APIRequestContext) {
989
- this.context = context;
990
- }
991
982
 
992
983
  /**
993
- * Starts asynchronous cancellation on a long-running operation. The server makes a best effort to cancel the operation, but success is not guaranteed. If the server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation or other methods to check whether the cancellation succeeded or whether the operation completed despite cancellation. On successful cancellation, the operation is not deleted; instead, it becomes an operation with an Operation.error value with a google.rpc.Status.code of `1`, corresponding to `Code.CANCELLED`.
984
+ * Gets information about a location.
994
985
  * @example
995
986
  * ```js
996
987
  * // Before running the sample:
@@ -1019,20 +1010,20 @@ export namespace securityposture_v1 {
1019
1010
  * google.options({auth: authClient});
1020
1011
  *
1021
1012
  * // Do the magic
1022
- * const res = await securityposture.organizations.locations.operations.cancel({
1023
- * // The name of the operation resource to be cancelled.
1024
- * name: 'organizations/my-organization/locations/my-location/operations/my-operation',
1025
- *
1026
- * // Request body metadata
1027
- * requestBody: {
1028
- * // request body parameters
1029
- * // {}
1030
- * },
1013
+ * const res = await securityposture.organizations.locations.get({
1014
+ * // Resource name for the location.
1015
+ * name: 'organizations/my-organization/locations/my-location',
1031
1016
  * });
1032
1017
  * console.log(res.data);
1033
1018
  *
1034
1019
  * // Example response
1035
- * // {}
1020
+ * // {
1021
+ * // "displayName": "my_displayName",
1022
+ * // "labels": {},
1023
+ * // "locationId": "my_locationId",
1024
+ * // "metadata": {},
1025
+ * // "name": "my_name"
1026
+ * // }
1036
1027
  * }
1037
1028
  *
1038
1029
  * main().catch(e => {
@@ -1047,53 +1038,52 @@ export namespace securityposture_v1 {
1047
1038
  * @param callback - Optional callback that handles the response.
1048
1039
  * @returns A promise if used with async/await, or void if used with a callback.
1049
1040
  */
1050
- cancel(
1051
- params: Params$Resource$Organizations$Locations$Operations$Cancel,
1041
+ get(
1042
+ params: Params$Resource$Organizations$Locations$Get,
1052
1043
  options: StreamMethodOptions
1053
1044
  ): Promise<GaxiosResponseWithHTTP2<Readable>>;
1054
- cancel(
1055
- params?: Params$Resource$Organizations$Locations$Operations$Cancel,
1045
+ get(
1046
+ params?: Params$Resource$Organizations$Locations$Get,
1056
1047
  options?: MethodOptions
1057
- ): Promise<GaxiosResponseWithHTTP2<Schema$Empty>>;
1058
- cancel(
1059
- params: Params$Resource$Organizations$Locations$Operations$Cancel,
1048
+ ): Promise<GaxiosResponseWithHTTP2<Schema$Location>>;
1049
+ get(
1050
+ params: Params$Resource$Organizations$Locations$Get,
1060
1051
  options: StreamMethodOptions | BodyResponseCallback<Readable>,
1061
1052
  callback: BodyResponseCallback<Readable>
1062
1053
  ): void;
1063
- cancel(
1064
- params: Params$Resource$Organizations$Locations$Operations$Cancel,
1065
- options: MethodOptions | BodyResponseCallback<Schema$Empty>,
1066
- callback: BodyResponseCallback<Schema$Empty>
1054
+ get(
1055
+ params: Params$Resource$Organizations$Locations$Get,
1056
+ options: MethodOptions | BodyResponseCallback<Schema$Location>,
1057
+ callback: BodyResponseCallback<Schema$Location>
1067
1058
  ): void;
1068
- cancel(
1069
- params: Params$Resource$Organizations$Locations$Operations$Cancel,
1070
- callback: BodyResponseCallback<Schema$Empty>
1059
+ get(
1060
+ params: Params$Resource$Organizations$Locations$Get,
1061
+ callback: BodyResponseCallback<Schema$Location>
1071
1062
  ): void;
1072
- cancel(callback: BodyResponseCallback<Schema$Empty>): void;
1073
- cancel(
1063
+ get(callback: BodyResponseCallback<Schema$Location>): void;
1064
+ get(
1074
1065
  paramsOrCallback?:
1075
- | Params$Resource$Organizations$Locations$Operations$Cancel
1076
- | BodyResponseCallback<Schema$Empty>
1066
+ | Params$Resource$Organizations$Locations$Get
1067
+ | BodyResponseCallback<Schema$Location>
1077
1068
  | BodyResponseCallback<Readable>,
1078
1069
  optionsOrCallback?:
1079
1070
  | MethodOptions
1080
1071
  | StreamMethodOptions
1081
- | BodyResponseCallback<Schema$Empty>
1072
+ | BodyResponseCallback<Schema$Location>
1082
1073
  | BodyResponseCallback<Readable>,
1083
1074
  callback?:
1084
- BodyResponseCallback<Schema$Empty> | BodyResponseCallback<Readable>
1075
+ BodyResponseCallback<Schema$Location> | BodyResponseCallback<Readable>
1085
1076
  ):
1086
1077
  | void
1087
- | Promise<GaxiosResponseWithHTTP2<Schema$Empty>>
1078
+ | Promise<GaxiosResponseWithHTTP2<Schema$Location>>
1088
1079
  | Promise<GaxiosResponseWithHTTP2<Readable>> {
1089
1080
  let params = (paramsOrCallback ||
1090
- {}) as Params$Resource$Organizations$Locations$Operations$Cancel;
1081
+ {}) as Params$Resource$Organizations$Locations$Get;
1091
1082
  let options = (optionsOrCallback || {}) as MethodOptions;
1092
1083
 
1093
1084
  if (typeof paramsOrCallback === 'function') {
1094
1085
  callback = paramsOrCallback;
1095
- params =
1096
- {} as Params$Resource$Organizations$Locations$Operations$Cancel;
1086
+ params = {} as Params$Resource$Organizations$Locations$Get;
1097
1087
  options = {};
1098
1088
  }
1099
1089
 
@@ -1107,8 +1097,8 @@ export namespace securityposture_v1 {
1107
1097
  const parameters = {
1108
1098
  options: Object.assign(
1109
1099
  {
1110
- url: (rootUrl + '/v1/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'),
1111
- method: 'POST',
1100
+ url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'),
1101
+ method: 'GET',
1112
1102
  apiVersion: '',
1113
1103
  },
1114
1104
  options
@@ -1119,17 +1109,17 @@ export namespace securityposture_v1 {
1119
1109
  context: this.context,
1120
1110
  };
1121
1111
  if (callback) {
1122
- createAPIRequest<Schema$Empty>(
1112
+ createAPIRequest<Schema$Location>(
1123
1113
  parameters,
1124
1114
  callback as BodyResponseCallback<unknown>
1125
1115
  );
1126
1116
  } else {
1127
- return createAPIRequest<Schema$Empty>(parameters);
1117
+ return createAPIRequest<Schema$Location>(parameters);
1128
1118
  }
1129
1119
  }
1130
1120
 
1131
1121
  /**
1132
- * Deletes a long-running operation. This method indicates that the client is no longer interested in the operation result. It does not cancel the operation. If the server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`.
1122
+ * Lists information about the supported locations for this service. This method lists locations based on the resource scope provided in the ListLocationsRequest.name field: * **Global locations**: If `name` is empty, the method lists the public locations available to all projects. * **Project-specific locations**: If `name` follows the format `projects/{project\}`, the method lists locations visible to that specific project. This includes public, private, or other project-specific locations enabled for the project. For gRPC and client library implementations, the resource name is passed as the `name` field. For direct service calls, the resource name is incorporated into the request path based on the specific service implementation and version.
1133
1123
  * @example
1134
1124
  * ```js
1135
1125
  * // Before running the sample:
@@ -1158,14 +1148,25 @@ export namespace securityposture_v1 {
1158
1148
  * google.options({auth: authClient});
1159
1149
  *
1160
1150
  * // Do the magic
1161
- * const res = await securityposture.organizations.locations.operations.delete({
1162
- * // The name of the operation resource to be deleted.
1163
- * name: 'organizations/my-organization/locations/my-location/operations/my-operation',
1151
+ * const res = await securityposture.organizations.locations.list({
1152
+ * // Optional. Do not use this field unless explicitly documented otherwise. This is primarily for internal usage.
1153
+ * extraLocationTypes: 'placeholder-value',
1154
+ * // 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 [AIP-160](https://google.aip.dev/160).
1155
+ * filter: 'placeholder-value',
1156
+ * // The resource that owns the locations collection, if applicable.
1157
+ * name: 'organizations/my-organization',
1158
+ * // The maximum number of results to return. If not set, the service selects a default.
1159
+ * pageSize: 'placeholder-value',
1160
+ * // A page token received from the `next_page_token` field in the response. Send that page token to receive the subsequent page.
1161
+ * pageToken: 'placeholder-value',
1164
1162
  * });
1165
1163
  * console.log(res.data);
1166
1164
  *
1167
1165
  * // Example response
1168
- * // {}
1166
+ * // {
1167
+ * // "locations": [],
1168
+ * // "nextPageToken": "my_nextPageToken"
1169
+ * // }
1169
1170
  * }
1170
1171
  *
1171
1172
  * main().catch(e => {
@@ -1180,53 +1181,54 @@ export namespace securityposture_v1 {
1180
1181
  * @param callback - Optional callback that handles the response.
1181
1182
  * @returns A promise if used with async/await, or void if used with a callback.
1182
1183
  */
1183
- delete(
1184
- params: Params$Resource$Organizations$Locations$Operations$Delete,
1184
+ list(
1185
+ params: Params$Resource$Organizations$Locations$List,
1185
1186
  options: StreamMethodOptions
1186
1187
  ): Promise<GaxiosResponseWithHTTP2<Readable>>;
1187
- delete(
1188
- params?: Params$Resource$Organizations$Locations$Operations$Delete,
1188
+ list(
1189
+ params?: Params$Resource$Organizations$Locations$List,
1189
1190
  options?: MethodOptions
1190
- ): Promise<GaxiosResponseWithHTTP2<Schema$Empty>>;
1191
- delete(
1192
- params: Params$Resource$Organizations$Locations$Operations$Delete,
1191
+ ): Promise<GaxiosResponseWithHTTP2<Schema$ListLocationsResponse>>;
1192
+ list(
1193
+ params: Params$Resource$Organizations$Locations$List,
1193
1194
  options: StreamMethodOptions | BodyResponseCallback<Readable>,
1194
1195
  callback: BodyResponseCallback<Readable>
1195
1196
  ): void;
1196
- delete(
1197
- params: Params$Resource$Organizations$Locations$Operations$Delete,
1198
- options: MethodOptions | BodyResponseCallback<Schema$Empty>,
1199
- callback: BodyResponseCallback<Schema$Empty>
1197
+ list(
1198
+ params: Params$Resource$Organizations$Locations$List,
1199
+ options:
1200
+ MethodOptions | BodyResponseCallback<Schema$ListLocationsResponse>,
1201
+ callback: BodyResponseCallback<Schema$ListLocationsResponse>
1200
1202
  ): void;
1201
- delete(
1202
- params: Params$Resource$Organizations$Locations$Operations$Delete,
1203
- callback: BodyResponseCallback<Schema$Empty>
1203
+ list(
1204
+ params: Params$Resource$Organizations$Locations$List,
1205
+ callback: BodyResponseCallback<Schema$ListLocationsResponse>
1204
1206
  ): void;
1205
- delete(callback: BodyResponseCallback<Schema$Empty>): void;
1206
- delete(
1207
+ list(callback: BodyResponseCallback<Schema$ListLocationsResponse>): void;
1208
+ list(
1207
1209
  paramsOrCallback?:
1208
- | Params$Resource$Organizations$Locations$Operations$Delete
1209
- | BodyResponseCallback<Schema$Empty>
1210
+ | Params$Resource$Organizations$Locations$List
1211
+ | BodyResponseCallback<Schema$ListLocationsResponse>
1210
1212
  | BodyResponseCallback<Readable>,
1211
1213
  optionsOrCallback?:
1212
1214
  | MethodOptions
1213
1215
  | StreamMethodOptions
1214
- | BodyResponseCallback<Schema$Empty>
1216
+ | BodyResponseCallback<Schema$ListLocationsResponse>
1215
1217
  | BodyResponseCallback<Readable>,
1216
1218
  callback?:
1217
- BodyResponseCallback<Schema$Empty> | BodyResponseCallback<Readable>
1219
+ | BodyResponseCallback<Schema$ListLocationsResponse>
1220
+ | BodyResponseCallback<Readable>
1218
1221
  ):
1219
1222
  | void
1220
- | Promise<GaxiosResponseWithHTTP2<Schema$Empty>>
1223
+ | Promise<GaxiosResponseWithHTTP2<Schema$ListLocationsResponse>>
1221
1224
  | Promise<GaxiosResponseWithHTTP2<Readable>> {
1222
1225
  let params = (paramsOrCallback ||
1223
- {}) as Params$Resource$Organizations$Locations$Operations$Delete;
1226
+ {}) as Params$Resource$Organizations$Locations$List;
1224
1227
  let options = (optionsOrCallback || {}) as MethodOptions;
1225
1228
 
1226
1229
  if (typeof paramsOrCallback === 'function') {
1227
1230
  callback = paramsOrCallback;
1228
- params =
1229
- {} as Params$Resource$Organizations$Locations$Operations$Delete;
1231
+ params = {} as Params$Resource$Organizations$Locations$List;
1230
1232
  options = {};
1231
1233
  }
1232
1234
 
@@ -1240,8 +1242,11 @@ export namespace securityposture_v1 {
1240
1242
  const parameters = {
1241
1243
  options: Object.assign(
1242
1244
  {
1243
- url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'),
1244
- method: 'DELETE',
1245
+ url: (rootUrl + '/v1/{+name}/locations').replace(
1246
+ /([^:]\/)\/+/g,
1247
+ '$1'
1248
+ ),
1249
+ method: 'GET',
1245
1250
  apiVersion: '',
1246
1251
  },
1247
1252
  options
@@ -1252,17 +1257,53 @@ export namespace securityposture_v1 {
1252
1257
  context: this.context,
1253
1258
  };
1254
1259
  if (callback) {
1255
- createAPIRequest<Schema$Empty>(
1260
+ createAPIRequest<Schema$ListLocationsResponse>(
1256
1261
  parameters,
1257
1262
  callback as BodyResponseCallback<unknown>
1258
1263
  );
1259
1264
  } else {
1260
- return createAPIRequest<Schema$Empty>(parameters);
1265
+ return createAPIRequest<Schema$ListLocationsResponse>(parameters);
1261
1266
  }
1262
1267
  }
1268
+ }
1263
1269
 
1270
+ export interface Params$Resource$Organizations$Locations$Get extends StandardParameters {
1264
1271
  /**
1265
- * 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.
1272
+ * Resource name for the location.
1273
+ */
1274
+ name?: string;
1275
+ }
1276
+ export interface Params$Resource$Organizations$Locations$List extends StandardParameters {
1277
+ /**
1278
+ * Optional. Do not use this field unless explicitly documented otherwise. This is primarily for internal usage.
1279
+ */
1280
+ extraLocationTypes?: string[];
1281
+ /**
1282
+ * 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 [AIP-160](https://google.aip.dev/160).
1283
+ */
1284
+ filter?: string;
1285
+ /**
1286
+ * The resource that owns the locations collection, if applicable.
1287
+ */
1288
+ name?: string;
1289
+ /**
1290
+ * The maximum number of results to return. If not set, the service selects a default.
1291
+ */
1292
+ pageSize?: number;
1293
+ /**
1294
+ * A page token received from the `next_page_token` field in the response. Send that page token to receive the subsequent page.
1295
+ */
1296
+ pageToken?: string;
1297
+ }
1298
+
1299
+ export class Resource$Organizations$Locations$Operations {
1300
+ context: APIRequestContext;
1301
+ constructor(context: APIRequestContext) {
1302
+ this.context = context;
1303
+ }
1304
+
1305
+ /**
1306
+ * Starts asynchronous cancellation on a long-running operation. The server makes a best effort to cancel the operation, but success is not guaranteed. If the server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation or other methods to check whether the cancellation succeeded or whether the operation completed despite cancellation. On successful cancellation, the operation is not deleted; instead, it becomes an operation with an Operation.error value with a google.rpc.Status.code of `1`, corresponding to `Code.CANCELLED`.
1266
1307
  * @example
1267
1308
  * ```js
1268
1309
  * // Before running the sample:
@@ -1291,20 +1332,20 @@ export namespace securityposture_v1 {
1291
1332
  * google.options({auth: authClient});
1292
1333
  *
1293
1334
  * // Do the magic
1294
- * const res = await securityposture.organizations.locations.operations.get({
1295
- * // The name of the operation resource.
1335
+ * const res = await securityposture.organizations.locations.operations.cancel({
1336
+ * // The name of the operation resource to be cancelled.
1296
1337
  * name: 'organizations/my-organization/locations/my-location/operations/my-operation',
1338
+ *
1339
+ * // Request body metadata
1340
+ * requestBody: {
1341
+ * // request body parameters
1342
+ * // {}
1343
+ * },
1297
1344
  * });
1298
1345
  * console.log(res.data);
1299
1346
  *
1300
1347
  * // Example response
1301
- * // {
1302
- * // "done": false,
1303
- * // "error": {},
1304
- * // "metadata": {},
1305
- * // "name": "my_name",
1306
- * // "response": {}
1307
- * // }
1348
+ * // {}
1308
1349
  * }
1309
1350
  *
1310
1351
  * main().catch(e => {
@@ -1319,52 +1360,53 @@ export namespace securityposture_v1 {
1319
1360
  * @param callback - Optional callback that handles the response.
1320
1361
  * @returns A promise if used with async/await, or void if used with a callback.
1321
1362
  */
1322
- get(
1323
- params: Params$Resource$Organizations$Locations$Operations$Get,
1363
+ cancel(
1364
+ params: Params$Resource$Organizations$Locations$Operations$Cancel,
1324
1365
  options: StreamMethodOptions
1325
1366
  ): Promise<GaxiosResponseWithHTTP2<Readable>>;
1326
- get(
1327
- params?: Params$Resource$Organizations$Locations$Operations$Get,
1367
+ cancel(
1368
+ params?: Params$Resource$Organizations$Locations$Operations$Cancel,
1328
1369
  options?: MethodOptions
1329
- ): Promise<GaxiosResponseWithHTTP2<Schema$Operation>>;
1330
- get(
1331
- params: Params$Resource$Organizations$Locations$Operations$Get,
1370
+ ): Promise<GaxiosResponseWithHTTP2<Schema$Empty>>;
1371
+ cancel(
1372
+ params: Params$Resource$Organizations$Locations$Operations$Cancel,
1332
1373
  options: StreamMethodOptions | BodyResponseCallback<Readable>,
1333
1374
  callback: BodyResponseCallback<Readable>
1334
1375
  ): void;
1335
- get(
1336
- params: Params$Resource$Organizations$Locations$Operations$Get,
1337
- options: MethodOptions | BodyResponseCallback<Schema$Operation>,
1338
- callback: BodyResponseCallback<Schema$Operation>
1376
+ cancel(
1377
+ params: Params$Resource$Organizations$Locations$Operations$Cancel,
1378
+ options: MethodOptions | BodyResponseCallback<Schema$Empty>,
1379
+ callback: BodyResponseCallback<Schema$Empty>
1339
1380
  ): void;
1340
- get(
1341
- params: Params$Resource$Organizations$Locations$Operations$Get,
1342
- callback: BodyResponseCallback<Schema$Operation>
1381
+ cancel(
1382
+ params: Params$Resource$Organizations$Locations$Operations$Cancel,
1383
+ callback: BodyResponseCallback<Schema$Empty>
1343
1384
  ): void;
1344
- get(callback: BodyResponseCallback<Schema$Operation>): void;
1345
- get(
1385
+ cancel(callback: BodyResponseCallback<Schema$Empty>): void;
1386
+ cancel(
1346
1387
  paramsOrCallback?:
1347
- | Params$Resource$Organizations$Locations$Operations$Get
1348
- | BodyResponseCallback<Schema$Operation>
1388
+ | Params$Resource$Organizations$Locations$Operations$Cancel
1389
+ | BodyResponseCallback<Schema$Empty>
1349
1390
  | BodyResponseCallback<Readable>,
1350
1391
  optionsOrCallback?:
1351
1392
  | MethodOptions
1352
1393
  | StreamMethodOptions
1353
- | BodyResponseCallback<Schema$Operation>
1394
+ | BodyResponseCallback<Schema$Empty>
1354
1395
  | BodyResponseCallback<Readable>,
1355
1396
  callback?:
1356
- BodyResponseCallback<Schema$Operation> | BodyResponseCallback<Readable>
1397
+ BodyResponseCallback<Schema$Empty> | BodyResponseCallback<Readable>
1357
1398
  ):
1358
1399
  | void
1359
- | Promise<GaxiosResponseWithHTTP2<Schema$Operation>>
1400
+ | Promise<GaxiosResponseWithHTTP2<Schema$Empty>>
1360
1401
  | Promise<GaxiosResponseWithHTTP2<Readable>> {
1361
1402
  let params = (paramsOrCallback ||
1362
- {}) as Params$Resource$Organizations$Locations$Operations$Get;
1403
+ {}) as Params$Resource$Organizations$Locations$Operations$Cancel;
1363
1404
  let options = (optionsOrCallback || {}) as MethodOptions;
1364
1405
 
1365
1406
  if (typeof paramsOrCallback === 'function') {
1366
1407
  callback = paramsOrCallback;
1367
- params = {} as Params$Resource$Organizations$Locations$Operations$Get;
1408
+ params =
1409
+ {} as Params$Resource$Organizations$Locations$Operations$Cancel;
1368
1410
  options = {};
1369
1411
  }
1370
1412
 
@@ -1378,8 +1420,8 @@ export namespace securityposture_v1 {
1378
1420
  const parameters = {
1379
1421
  options: Object.assign(
1380
1422
  {
1381
- url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'),
1382
- method: 'GET',
1423
+ url: (rootUrl + '/v1/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'),
1424
+ method: 'POST',
1383
1425
  apiVersion: '',
1384
1426
  },
1385
1427
  options
@@ -1390,17 +1432,17 @@ export namespace securityposture_v1 {
1390
1432
  context: this.context,
1391
1433
  };
1392
1434
  if (callback) {
1393
- createAPIRequest<Schema$Operation>(
1435
+ createAPIRequest<Schema$Empty>(
1394
1436
  parameters,
1395
1437
  callback as BodyResponseCallback<unknown>
1396
1438
  );
1397
1439
  } else {
1398
- return createAPIRequest<Schema$Operation>(parameters);
1440
+ return createAPIRequest<Schema$Empty>(parameters);
1399
1441
  }
1400
1442
  }
1401
1443
 
1402
1444
  /**
1403
- * Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`.
1445
+ * Deletes a long-running operation. This method indicates that the client is no longer interested in the operation result. It does not cancel the operation. If the server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`.
1404
1446
  * @example
1405
1447
  * ```js
1406
1448
  * // Before running the sample:
@@ -1429,26 +1471,14 @@ export namespace securityposture_v1 {
1429
1471
  * google.options({auth: authClient});
1430
1472
  *
1431
1473
  * // Do the magic
1432
- * const res = await securityposture.organizations.locations.operations.list({
1433
- * // The standard list filter.
1434
- * filter: 'placeholder-value',
1435
- * // The name of the operation's parent resource.
1436
- * name: 'organizations/my-organization/locations/my-location',
1437
- * // The standard list page size.
1438
- * pageSize: 'placeholder-value',
1439
- * // The standard list page token.
1440
- * pageToken: 'placeholder-value',
1441
- * // When set to `true`, operations that are reachable are returned as normal, and those that are unreachable are returned in the ListOperationsResponse.unreachable field. This can only be `true` when reading across collections. For example, when `parent` is set to `"projects/example/locations/-"`. This field is not supported by default and will result in an `UNIMPLEMENTED` error if set unless explicitly documented otherwise in service or product specific documentation.
1442
- * returnPartialSuccess: 'placeholder-value',
1474
+ * const res = await securityposture.organizations.locations.operations.delete({
1475
+ * // The name of the operation resource to be deleted.
1476
+ * name: 'organizations/my-organization/locations/my-location/operations/my-operation',
1443
1477
  * });
1444
1478
  * console.log(res.data);
1445
1479
  *
1446
1480
  * // Example response
1447
- * // {
1448
- * // "nextPageToken": "my_nextPageToken",
1449
- * // "operations": [],
1450
- * // "unreachable": []
1451
- * // }
1481
+ * // {}
1452
1482
  * }
1453
1483
  *
1454
1484
  * main().catch(e => {
@@ -1463,54 +1493,53 @@ export namespace securityposture_v1 {
1463
1493
  * @param callback - Optional callback that handles the response.
1464
1494
  * @returns A promise if used with async/await, or void if used with a callback.
1465
1495
  */
1466
- list(
1467
- params: Params$Resource$Organizations$Locations$Operations$List,
1496
+ delete(
1497
+ params: Params$Resource$Organizations$Locations$Operations$Delete,
1468
1498
  options: StreamMethodOptions
1469
1499
  ): Promise<GaxiosResponseWithHTTP2<Readable>>;
1470
- list(
1471
- params?: Params$Resource$Organizations$Locations$Operations$List,
1500
+ delete(
1501
+ params?: Params$Resource$Organizations$Locations$Operations$Delete,
1472
1502
  options?: MethodOptions
1473
- ): Promise<GaxiosResponseWithHTTP2<Schema$ListOperationsResponse>>;
1474
- list(
1475
- params: Params$Resource$Organizations$Locations$Operations$List,
1503
+ ): Promise<GaxiosResponseWithHTTP2<Schema$Empty>>;
1504
+ delete(
1505
+ params: Params$Resource$Organizations$Locations$Operations$Delete,
1476
1506
  options: StreamMethodOptions | BodyResponseCallback<Readable>,
1477
1507
  callback: BodyResponseCallback<Readable>
1478
1508
  ): void;
1479
- list(
1480
- params: Params$Resource$Organizations$Locations$Operations$List,
1481
- options:
1482
- MethodOptions | BodyResponseCallback<Schema$ListOperationsResponse>,
1483
- callback: BodyResponseCallback<Schema$ListOperationsResponse>
1509
+ delete(
1510
+ params: Params$Resource$Organizations$Locations$Operations$Delete,
1511
+ options: MethodOptions | BodyResponseCallback<Schema$Empty>,
1512
+ callback: BodyResponseCallback<Schema$Empty>
1484
1513
  ): void;
1485
- list(
1486
- params: Params$Resource$Organizations$Locations$Operations$List,
1487
- callback: BodyResponseCallback<Schema$ListOperationsResponse>
1514
+ delete(
1515
+ params: Params$Resource$Organizations$Locations$Operations$Delete,
1516
+ callback: BodyResponseCallback<Schema$Empty>
1488
1517
  ): void;
1489
- list(callback: BodyResponseCallback<Schema$ListOperationsResponse>): void;
1490
- list(
1518
+ delete(callback: BodyResponseCallback<Schema$Empty>): void;
1519
+ delete(
1491
1520
  paramsOrCallback?:
1492
- | Params$Resource$Organizations$Locations$Operations$List
1493
- | BodyResponseCallback<Schema$ListOperationsResponse>
1521
+ | Params$Resource$Organizations$Locations$Operations$Delete
1522
+ | BodyResponseCallback<Schema$Empty>
1494
1523
  | BodyResponseCallback<Readable>,
1495
1524
  optionsOrCallback?:
1496
1525
  | MethodOptions
1497
1526
  | StreamMethodOptions
1498
- | BodyResponseCallback<Schema$ListOperationsResponse>
1527
+ | BodyResponseCallback<Schema$Empty>
1499
1528
  | BodyResponseCallback<Readable>,
1500
1529
  callback?:
1501
- | BodyResponseCallback<Schema$ListOperationsResponse>
1502
- | BodyResponseCallback<Readable>
1530
+ BodyResponseCallback<Schema$Empty> | BodyResponseCallback<Readable>
1503
1531
  ):
1504
1532
  | void
1505
- | Promise<GaxiosResponseWithHTTP2<Schema$ListOperationsResponse>>
1533
+ | Promise<GaxiosResponseWithHTTP2<Schema$Empty>>
1506
1534
  | Promise<GaxiosResponseWithHTTP2<Readable>> {
1507
1535
  let params = (paramsOrCallback ||
1508
- {}) as Params$Resource$Organizations$Locations$Operations$List;
1536
+ {}) as Params$Resource$Organizations$Locations$Operations$Delete;
1509
1537
  let options = (optionsOrCallback || {}) as MethodOptions;
1510
1538
 
1511
1539
  if (typeof paramsOrCallback === 'function') {
1512
1540
  callback = paramsOrCallback;
1513
- params = {} as Params$Resource$Organizations$Locations$Operations$List;
1541
+ params =
1542
+ {} as Params$Resource$Organizations$Locations$Operations$Delete;
1514
1543
  options = {};
1515
1544
  }
1516
1545
 
@@ -1524,11 +1553,8 @@ export namespace securityposture_v1 {
1524
1553
  const parameters = {
1525
1554
  options: Object.assign(
1526
1555
  {
1527
- url: (rootUrl + '/v1/{+name}/operations').replace(
1528
- /([^:]\/)\/+/g,
1529
- '$1'
1530
- ),
1531
- method: 'GET',
1556
+ url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'),
1557
+ method: 'DELETE',
1532
1558
  apiVersion: '',
1533
1559
  },
1534
1560
  options
@@ -1539,70 +1565,17 @@ export namespace securityposture_v1 {
1539
1565
  context: this.context,
1540
1566
  };
1541
1567
  if (callback) {
1542
- createAPIRequest<Schema$ListOperationsResponse>(
1568
+ createAPIRequest<Schema$Empty>(
1543
1569
  parameters,
1544
1570
  callback as BodyResponseCallback<unknown>
1545
1571
  );
1546
1572
  } else {
1547
- return createAPIRequest<Schema$ListOperationsResponse>(parameters);
1573
+ return createAPIRequest<Schema$Empty>(parameters);
1548
1574
  }
1549
1575
  }
1550
- }
1551
-
1552
- export interface Params$Resource$Organizations$Locations$Operations$Cancel extends StandardParameters {
1553
- /**
1554
- * The name of the operation resource to be cancelled.
1555
- */
1556
- name?: string;
1557
-
1558
- /**
1559
- * Request body metadata
1560
- */
1561
- requestBody?: Schema$CancelOperationRequest;
1562
- }
1563
- export interface Params$Resource$Organizations$Locations$Operations$Delete extends StandardParameters {
1564
- /**
1565
- * The name of the operation resource to be deleted.
1566
- */
1567
- name?: string;
1568
- }
1569
- export interface Params$Resource$Organizations$Locations$Operations$Get extends StandardParameters {
1570
- /**
1571
- * The name of the operation resource.
1572
- */
1573
- name?: string;
1574
- }
1575
- export interface Params$Resource$Organizations$Locations$Operations$List extends StandardParameters {
1576
- /**
1577
- * The standard list filter.
1578
- */
1579
- filter?: string;
1580
- /**
1581
- * The name of the operation's parent resource.
1582
- */
1583
- name?: string;
1584
- /**
1585
- * The standard list page size.
1586
- */
1587
- pageSize?: number;
1588
- /**
1589
- * The standard list page token.
1590
- */
1591
- pageToken?: string;
1592
- /**
1593
- * When set to `true`, operations that are reachable are returned as normal, and those that are unreachable are returned in the ListOperationsResponse.unreachable field. This can only be `true` when reading across collections. For example, when `parent` is set to `"projects/example/locations/-"`. This field is not supported by default and will result in an `UNIMPLEMENTED` error if set unless explicitly documented otherwise in service or product specific documentation.
1594
- */
1595
- returnPartialSuccess?: boolean;
1596
- }
1597
-
1598
- export class Resource$Organizations$Locations$Posturedeployments {
1599
- context: APIRequestContext;
1600
- constructor(context: APIRequestContext) {
1601
- this.context = context;
1602
- }
1603
1576
 
1604
1577
  /**
1605
- * Creates a new PostureDeployment in a given project and location.
1578
+ * 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.
1606
1579
  * @example
1607
1580
  * ```js
1608
1581
  * // Before running the sample:
@@ -1631,35 +1604,10 @@ export namespace securityposture_v1 {
1631
1604
  * google.options({auth: authClient});
1632
1605
  *
1633
1606
  * // Do the magic
1634
- * const res =
1635
- * await securityposture.organizations.locations.postureDeployments.create({
1636
- * // Required. The parent resource name, in the format `organizations/{organization\}/locations/global`.
1637
- * parent: 'organizations/my-organization/locations/my-location',
1638
- * // Required. An identifier for the posture deployment.
1639
- * postureDeploymentId: 'placeholder-value',
1640
- *
1641
- * // Request body metadata
1642
- * requestBody: {
1643
- * // request body parameters
1644
- * // {
1645
- * // "annotations": {},
1646
- * // "categories": [],
1647
- * // "createTime": "my_createTime",
1648
- * // "description": "my_description",
1649
- * // "desiredPostureId": "my_desiredPostureId",
1650
- * // "desiredPostureRevisionId": "my_desiredPostureRevisionId",
1651
- * // "etag": "my_etag",
1652
- * // "failureMessage": "my_failureMessage",
1653
- * // "name": "my_name",
1654
- * // "postureId": "my_postureId",
1655
- * // "postureRevisionId": "my_postureRevisionId",
1656
- * // "reconciling": false,
1657
- * // "state": "my_state",
1658
- * // "targetResource": "my_targetResource",
1659
- * // "updateTime": "my_updateTime"
1660
- * // }
1661
- * },
1662
- * });
1607
+ * const res = await securityposture.organizations.locations.operations.get({
1608
+ * // The name of the operation resource.
1609
+ * name: 'organizations/my-organization/locations/my-location/operations/my-operation',
1610
+ * });
1663
1611
  * console.log(res.data);
1664
1612
  *
1665
1613
  * // Example response
@@ -1684,32 +1632,32 @@ export namespace securityposture_v1 {
1684
1632
  * @param callback - Optional callback that handles the response.
1685
1633
  * @returns A promise if used with async/await, or void if used with a callback.
1686
1634
  */
1687
- create(
1688
- params: Params$Resource$Organizations$Locations$Posturedeployments$Create,
1635
+ get(
1636
+ params: Params$Resource$Organizations$Locations$Operations$Get,
1689
1637
  options: StreamMethodOptions
1690
1638
  ): Promise<GaxiosResponseWithHTTP2<Readable>>;
1691
- create(
1692
- params?: Params$Resource$Organizations$Locations$Posturedeployments$Create,
1639
+ get(
1640
+ params?: Params$Resource$Organizations$Locations$Operations$Get,
1693
1641
  options?: MethodOptions
1694
1642
  ): Promise<GaxiosResponseWithHTTP2<Schema$Operation>>;
1695
- create(
1696
- params: Params$Resource$Organizations$Locations$Posturedeployments$Create,
1643
+ get(
1644
+ params: Params$Resource$Organizations$Locations$Operations$Get,
1697
1645
  options: StreamMethodOptions | BodyResponseCallback<Readable>,
1698
1646
  callback: BodyResponseCallback<Readable>
1699
1647
  ): void;
1700
- create(
1701
- params: Params$Resource$Organizations$Locations$Posturedeployments$Create,
1648
+ get(
1649
+ params: Params$Resource$Organizations$Locations$Operations$Get,
1702
1650
  options: MethodOptions | BodyResponseCallback<Schema$Operation>,
1703
1651
  callback: BodyResponseCallback<Schema$Operation>
1704
1652
  ): void;
1705
- create(
1706
- params: Params$Resource$Organizations$Locations$Posturedeployments$Create,
1653
+ get(
1654
+ params: Params$Resource$Organizations$Locations$Operations$Get,
1707
1655
  callback: BodyResponseCallback<Schema$Operation>
1708
1656
  ): void;
1709
- create(callback: BodyResponseCallback<Schema$Operation>): void;
1710
- create(
1657
+ get(callback: BodyResponseCallback<Schema$Operation>): void;
1658
+ get(
1711
1659
  paramsOrCallback?:
1712
- | Params$Resource$Organizations$Locations$Posturedeployments$Create
1660
+ | Params$Resource$Organizations$Locations$Operations$Get
1713
1661
  | BodyResponseCallback<Schema$Operation>
1714
1662
  | BodyResponseCallback<Readable>,
1715
1663
  optionsOrCallback?:
@@ -1724,13 +1672,12 @@ export namespace securityposture_v1 {
1724
1672
  | Promise<GaxiosResponseWithHTTP2<Schema$Operation>>
1725
1673
  | Promise<GaxiosResponseWithHTTP2<Readable>> {
1726
1674
  let params = (paramsOrCallback ||
1727
- {}) as Params$Resource$Organizations$Locations$Posturedeployments$Create;
1675
+ {}) as Params$Resource$Organizations$Locations$Operations$Get;
1728
1676
  let options = (optionsOrCallback || {}) as MethodOptions;
1729
1677
 
1730
1678
  if (typeof paramsOrCallback === 'function') {
1731
1679
  callback = paramsOrCallback;
1732
- params =
1733
- {} as Params$Resource$Organizations$Locations$Posturedeployments$Create;
1680
+ params = {} as Params$Resource$Organizations$Locations$Operations$Get;
1734
1681
  options = {};
1735
1682
  }
1736
1683
 
@@ -1744,18 +1691,15 @@ export namespace securityposture_v1 {
1744
1691
  const parameters = {
1745
1692
  options: Object.assign(
1746
1693
  {
1747
- url: (rootUrl + '/v1/{+parent}/postureDeployments').replace(
1748
- /([^:]\/)\/+/g,
1749
- '$1'
1750
- ),
1751
- method: 'POST',
1694
+ url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'),
1695
+ method: 'GET',
1752
1696
  apiVersion: '',
1753
1697
  },
1754
1698
  options
1755
1699
  ),
1756
1700
  params,
1757
- requiredParams: ['parent'],
1758
- pathParams: ['parent'],
1701
+ requiredParams: ['name'],
1702
+ pathParams: ['name'],
1759
1703
  context: this.context,
1760
1704
  };
1761
1705
  if (callback) {
@@ -1769,7 +1713,7 @@ export namespace securityposture_v1 {
1769
1713
  }
1770
1714
 
1771
1715
  /**
1772
- * Deletes a PostureDeployment.
1716
+ * Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`.
1773
1717
  * @example
1774
1718
  * ```js
1775
1719
  * // Before running the sample:
@@ -1798,22 +1742,25 @@ export namespace securityposture_v1 {
1798
1742
  * google.options({auth: authClient});
1799
1743
  *
1800
1744
  * // Do the magic
1801
- * const res =
1802
- * await securityposture.organizations.locations.postureDeployments.delete({
1803
- * // Optional. An opaque identifier for the current version of the posture deployment. If you provide this value, then it must match the existing value. If the values don't match, then the request fails with an ABORTED error. If you omit this value, then the posture deployment is deleted regardless of its current `etag` value.
1804
- * etag: 'placeholder-value',
1805
- * // Required. The name of the posture deployment, in the format `organizations/{organization\}/locations/global/postureDeployments/{posture_id\}`.
1806
- * name: 'organizations/my-organization/locations/my-location/postureDeployments/my-postureDeployment',
1807
- * });
1745
+ * const res = await securityposture.organizations.locations.operations.list({
1746
+ * // The standard list filter.
1747
+ * filter: 'placeholder-value',
1748
+ * // The name of the operation's parent resource.
1749
+ * name: 'organizations/my-organization/locations/my-location',
1750
+ * // The standard list page size.
1751
+ * pageSize: 'placeholder-value',
1752
+ * // The standard list page token.
1753
+ * pageToken: 'placeholder-value',
1754
+ * // When set to `true`, operations that are reachable are returned as normal, and those that are unreachable are returned in the ListOperationsResponse.unreachable field. This can only be `true` when reading across collections. For example, when `parent` is set to `"projects/example/locations/-"`. This field is not supported by default and will result in an `UNIMPLEMENTED` error if set unless explicitly documented otherwise in service or product specific documentation.
1755
+ * returnPartialSuccess: 'placeholder-value',
1756
+ * });
1808
1757
  * console.log(res.data);
1809
1758
  *
1810
1759
  * // Example response
1811
1760
  * // {
1812
- * // "done": false,
1813
- * // "error": {},
1814
- * // "metadata": {},
1815
- * // "name": "my_name",
1816
- * // "response": {}
1761
+ * // "nextPageToken": "my_nextPageToken",
1762
+ * // "operations": [],
1763
+ * // "unreachable": []
1817
1764
  * // }
1818
1765
  * }
1819
1766
  *
@@ -1829,53 +1776,54 @@ export namespace securityposture_v1 {
1829
1776
  * @param callback - Optional callback that handles the response.
1830
1777
  * @returns A promise if used with async/await, or void if used with a callback.
1831
1778
  */
1832
- delete(
1833
- params: Params$Resource$Organizations$Locations$Posturedeployments$Delete,
1779
+ list(
1780
+ params: Params$Resource$Organizations$Locations$Operations$List,
1834
1781
  options: StreamMethodOptions
1835
1782
  ): Promise<GaxiosResponseWithHTTP2<Readable>>;
1836
- delete(
1837
- params?: Params$Resource$Organizations$Locations$Posturedeployments$Delete,
1783
+ list(
1784
+ params?: Params$Resource$Organizations$Locations$Operations$List,
1838
1785
  options?: MethodOptions
1839
- ): Promise<GaxiosResponseWithHTTP2<Schema$Operation>>;
1840
- delete(
1841
- params: Params$Resource$Organizations$Locations$Posturedeployments$Delete,
1786
+ ): Promise<GaxiosResponseWithHTTP2<Schema$ListOperationsResponse>>;
1787
+ list(
1788
+ params: Params$Resource$Organizations$Locations$Operations$List,
1842
1789
  options: StreamMethodOptions | BodyResponseCallback<Readable>,
1843
1790
  callback: BodyResponseCallback<Readable>
1844
1791
  ): void;
1845
- delete(
1846
- params: Params$Resource$Organizations$Locations$Posturedeployments$Delete,
1847
- options: MethodOptions | BodyResponseCallback<Schema$Operation>,
1848
- callback: BodyResponseCallback<Schema$Operation>
1792
+ list(
1793
+ params: Params$Resource$Organizations$Locations$Operations$List,
1794
+ options:
1795
+ MethodOptions | BodyResponseCallback<Schema$ListOperationsResponse>,
1796
+ callback: BodyResponseCallback<Schema$ListOperationsResponse>
1849
1797
  ): void;
1850
- delete(
1851
- params: Params$Resource$Organizations$Locations$Posturedeployments$Delete,
1852
- callback: BodyResponseCallback<Schema$Operation>
1798
+ list(
1799
+ params: Params$Resource$Organizations$Locations$Operations$List,
1800
+ callback: BodyResponseCallback<Schema$ListOperationsResponse>
1853
1801
  ): void;
1854
- delete(callback: BodyResponseCallback<Schema$Operation>): void;
1855
- delete(
1802
+ list(callback: BodyResponseCallback<Schema$ListOperationsResponse>): void;
1803
+ list(
1856
1804
  paramsOrCallback?:
1857
- | Params$Resource$Organizations$Locations$Posturedeployments$Delete
1858
- | BodyResponseCallback<Schema$Operation>
1805
+ | Params$Resource$Organizations$Locations$Operations$List
1806
+ | BodyResponseCallback<Schema$ListOperationsResponse>
1859
1807
  | BodyResponseCallback<Readable>,
1860
1808
  optionsOrCallback?:
1861
1809
  | MethodOptions
1862
1810
  | StreamMethodOptions
1863
- | BodyResponseCallback<Schema$Operation>
1811
+ | BodyResponseCallback<Schema$ListOperationsResponse>
1864
1812
  | BodyResponseCallback<Readable>,
1865
1813
  callback?:
1866
- BodyResponseCallback<Schema$Operation> | BodyResponseCallback<Readable>
1814
+ | BodyResponseCallback<Schema$ListOperationsResponse>
1815
+ | BodyResponseCallback<Readable>
1867
1816
  ):
1868
1817
  | void
1869
- | Promise<GaxiosResponseWithHTTP2<Schema$Operation>>
1818
+ | Promise<GaxiosResponseWithHTTP2<Schema$ListOperationsResponse>>
1870
1819
  | Promise<GaxiosResponseWithHTTP2<Readable>> {
1871
1820
  let params = (paramsOrCallback ||
1872
- {}) as Params$Resource$Organizations$Locations$Posturedeployments$Delete;
1821
+ {}) as Params$Resource$Organizations$Locations$Operations$List;
1873
1822
  let options = (optionsOrCallback || {}) as MethodOptions;
1874
1823
 
1875
1824
  if (typeof paramsOrCallback === 'function') {
1876
1825
  callback = paramsOrCallback;
1877
- params =
1878
- {} as Params$Resource$Organizations$Locations$Posturedeployments$Delete;
1826
+ params = {} as Params$Resource$Organizations$Locations$Operations$List;
1879
1827
  options = {};
1880
1828
  }
1881
1829
 
@@ -1889,8 +1837,11 @@ export namespace securityposture_v1 {
1889
1837
  const parameters = {
1890
1838
  options: Object.assign(
1891
1839
  {
1892
- url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'),
1893
- method: 'DELETE',
1840
+ url: (rootUrl + '/v1/{+name}/operations').replace(
1841
+ /([^:]\/)\/+/g,
1842
+ '$1'
1843
+ ),
1844
+ method: 'GET',
1894
1845
  apiVersion: '',
1895
1846
  },
1896
1847
  options
@@ -1901,17 +1852,70 @@ export namespace securityposture_v1 {
1901
1852
  context: this.context,
1902
1853
  };
1903
1854
  if (callback) {
1904
- createAPIRequest<Schema$Operation>(
1855
+ createAPIRequest<Schema$ListOperationsResponse>(
1905
1856
  parameters,
1906
1857
  callback as BodyResponseCallback<unknown>
1907
1858
  );
1908
1859
  } else {
1909
- return createAPIRequest<Schema$Operation>(parameters);
1860
+ return createAPIRequest<Schema$ListOperationsResponse>(parameters);
1910
1861
  }
1911
1862
  }
1863
+ }
1912
1864
 
1865
+ export interface Params$Resource$Organizations$Locations$Operations$Cancel extends StandardParameters {
1913
1866
  /**
1914
- * Gets details for a PostureDeployment.
1867
+ * The name of the operation resource to be cancelled.
1868
+ */
1869
+ name?: string;
1870
+
1871
+ /**
1872
+ * Request body metadata
1873
+ */
1874
+ requestBody?: Schema$CancelOperationRequest;
1875
+ }
1876
+ export interface Params$Resource$Organizations$Locations$Operations$Delete extends StandardParameters {
1877
+ /**
1878
+ * The name of the operation resource to be deleted.
1879
+ */
1880
+ name?: string;
1881
+ }
1882
+ export interface Params$Resource$Organizations$Locations$Operations$Get extends StandardParameters {
1883
+ /**
1884
+ * The name of the operation resource.
1885
+ */
1886
+ name?: string;
1887
+ }
1888
+ export interface Params$Resource$Organizations$Locations$Operations$List extends StandardParameters {
1889
+ /**
1890
+ * The standard list filter.
1891
+ */
1892
+ filter?: string;
1893
+ /**
1894
+ * The name of the operation's parent resource.
1895
+ */
1896
+ name?: string;
1897
+ /**
1898
+ * The standard list page size.
1899
+ */
1900
+ pageSize?: number;
1901
+ /**
1902
+ * The standard list page token.
1903
+ */
1904
+ pageToken?: string;
1905
+ /**
1906
+ * When set to `true`, operations that are reachable are returned as normal, and those that are unreachable are returned in the ListOperationsResponse.unreachable field. This can only be `true` when reading across collections. For example, when `parent` is set to `"projects/example/locations/-"`. This field is not supported by default and will result in an `UNIMPLEMENTED` error if set unless explicitly documented otherwise in service or product specific documentation.
1907
+ */
1908
+ returnPartialSuccess?: boolean;
1909
+ }
1910
+
1911
+ export class Resource$Organizations$Locations$Posturedeployments {
1912
+ context: APIRequestContext;
1913
+ constructor(context: APIRequestContext) {
1914
+ this.context = context;
1915
+ }
1916
+
1917
+ /**
1918
+ * Creates a new PostureDeployment in a given project and location.
1915
1919
  * @example
1916
1920
  * ```js
1917
1921
  * // Before running the sample:
@@ -1941,29 +1945,43 @@ export namespace securityposture_v1 {
1941
1945
  *
1942
1946
  * // Do the magic
1943
1947
  * const res =
1944
- * await securityposture.organizations.locations.postureDeployments.get({
1945
- * // Required. The name of the PostureDeployment, in the format `organizations/{organization\}/locations/global/postureDeployments/{posture_deployment_id\}`.
1946
- * name: 'organizations/my-organization/locations/my-location/postureDeployments/my-postureDeployment',
1948
+ * await securityposture.organizations.locations.postureDeployments.create({
1949
+ * // Required. The parent resource name, in the format `organizations/{organization\}/locations/global`.
1950
+ * parent: 'organizations/my-organization/locations/my-location',
1951
+ * // Required. An identifier for the posture deployment.
1952
+ * postureDeploymentId: 'placeholder-value',
1953
+ *
1954
+ * // Request body metadata
1955
+ * requestBody: {
1956
+ * // request body parameters
1957
+ * // {
1958
+ * // "annotations": {},
1959
+ * // "categories": [],
1960
+ * // "createTime": "my_createTime",
1961
+ * // "description": "my_description",
1962
+ * // "desiredPostureId": "my_desiredPostureId",
1963
+ * // "desiredPostureRevisionId": "my_desiredPostureRevisionId",
1964
+ * // "etag": "my_etag",
1965
+ * // "failureMessage": "my_failureMessage",
1966
+ * // "name": "my_name",
1967
+ * // "postureId": "my_postureId",
1968
+ * // "postureRevisionId": "my_postureRevisionId",
1969
+ * // "reconciling": false,
1970
+ * // "state": "my_state",
1971
+ * // "targetResource": "my_targetResource",
1972
+ * // "updateTime": "my_updateTime"
1973
+ * // }
1974
+ * },
1947
1975
  * });
1948
1976
  * console.log(res.data);
1949
1977
  *
1950
1978
  * // Example response
1951
1979
  * // {
1952
- * // "annotations": {},
1953
- * // "categories": [],
1954
- * // "createTime": "my_createTime",
1955
- * // "description": "my_description",
1956
- * // "desiredPostureId": "my_desiredPostureId",
1957
- * // "desiredPostureRevisionId": "my_desiredPostureRevisionId",
1958
- * // "etag": "my_etag",
1959
- * // "failureMessage": "my_failureMessage",
1980
+ * // "done": false,
1981
+ * // "error": {},
1982
+ * // "metadata": {},
1960
1983
  * // "name": "my_name",
1961
- * // "postureId": "my_postureId",
1962
- * // "postureRevisionId": "my_postureRevisionId",
1963
- * // "reconciling": false,
1964
- * // "state": "my_state",
1965
- * // "targetResource": "my_targetResource",
1966
- * // "updateTime": "my_updateTime"
1984
+ * // "response": {}
1967
1985
  * // }
1968
1986
  * }
1969
1987
  *
@@ -1979,54 +1997,53 @@ export namespace securityposture_v1 {
1979
1997
  * @param callback - Optional callback that handles the response.
1980
1998
  * @returns A promise if used with async/await, or void if used with a callback.
1981
1999
  */
1982
- get(
1983
- params: Params$Resource$Organizations$Locations$Posturedeployments$Get,
2000
+ create(
2001
+ params: Params$Resource$Organizations$Locations$Posturedeployments$Create,
1984
2002
  options: StreamMethodOptions
1985
2003
  ): Promise<GaxiosResponseWithHTTP2<Readable>>;
1986
- get(
1987
- params?: Params$Resource$Organizations$Locations$Posturedeployments$Get,
2004
+ create(
2005
+ params?: Params$Resource$Organizations$Locations$Posturedeployments$Create,
1988
2006
  options?: MethodOptions
1989
- ): Promise<GaxiosResponseWithHTTP2<Schema$PostureDeployment>>;
1990
- get(
1991
- params: Params$Resource$Organizations$Locations$Posturedeployments$Get,
2007
+ ): Promise<GaxiosResponseWithHTTP2<Schema$Operation>>;
2008
+ create(
2009
+ params: Params$Resource$Organizations$Locations$Posturedeployments$Create,
1992
2010
  options: StreamMethodOptions | BodyResponseCallback<Readable>,
1993
2011
  callback: BodyResponseCallback<Readable>
1994
2012
  ): void;
1995
- get(
1996
- params: Params$Resource$Organizations$Locations$Posturedeployments$Get,
1997
- options: MethodOptions | BodyResponseCallback<Schema$PostureDeployment>,
1998
- callback: BodyResponseCallback<Schema$PostureDeployment>
2013
+ create(
2014
+ params: Params$Resource$Organizations$Locations$Posturedeployments$Create,
2015
+ options: MethodOptions | BodyResponseCallback<Schema$Operation>,
2016
+ callback: BodyResponseCallback<Schema$Operation>
1999
2017
  ): void;
2000
- get(
2001
- params: Params$Resource$Organizations$Locations$Posturedeployments$Get,
2002
- callback: BodyResponseCallback<Schema$PostureDeployment>
2018
+ create(
2019
+ params: Params$Resource$Organizations$Locations$Posturedeployments$Create,
2020
+ callback: BodyResponseCallback<Schema$Operation>
2003
2021
  ): void;
2004
- get(callback: BodyResponseCallback<Schema$PostureDeployment>): void;
2005
- get(
2022
+ create(callback: BodyResponseCallback<Schema$Operation>): void;
2023
+ create(
2006
2024
  paramsOrCallback?:
2007
- | Params$Resource$Organizations$Locations$Posturedeployments$Get
2008
- | BodyResponseCallback<Schema$PostureDeployment>
2025
+ | Params$Resource$Organizations$Locations$Posturedeployments$Create
2026
+ | BodyResponseCallback<Schema$Operation>
2009
2027
  | BodyResponseCallback<Readable>,
2010
2028
  optionsOrCallback?:
2011
2029
  | MethodOptions
2012
2030
  | StreamMethodOptions
2013
- | BodyResponseCallback<Schema$PostureDeployment>
2031
+ | BodyResponseCallback<Schema$Operation>
2014
2032
  | BodyResponseCallback<Readable>,
2015
2033
  callback?:
2016
- | BodyResponseCallback<Schema$PostureDeployment>
2017
- | BodyResponseCallback<Readable>
2034
+ BodyResponseCallback<Schema$Operation> | BodyResponseCallback<Readable>
2018
2035
  ):
2019
2036
  | void
2020
- | Promise<GaxiosResponseWithHTTP2<Schema$PostureDeployment>>
2037
+ | Promise<GaxiosResponseWithHTTP2<Schema$Operation>>
2021
2038
  | Promise<GaxiosResponseWithHTTP2<Readable>> {
2022
2039
  let params = (paramsOrCallback ||
2023
- {}) as Params$Resource$Organizations$Locations$Posturedeployments$Get;
2040
+ {}) as Params$Resource$Organizations$Locations$Posturedeployments$Create;
2024
2041
  let options = (optionsOrCallback || {}) as MethodOptions;
2025
2042
 
2026
2043
  if (typeof paramsOrCallback === 'function') {
2027
2044
  callback = paramsOrCallback;
2028
2045
  params =
2029
- {} as Params$Resource$Organizations$Locations$Posturedeployments$Get;
2046
+ {} as Params$Resource$Organizations$Locations$Posturedeployments$Create;
2030
2047
  options = {};
2031
2048
  }
2032
2049
 
@@ -2040,29 +2057,32 @@ export namespace securityposture_v1 {
2040
2057
  const parameters = {
2041
2058
  options: Object.assign(
2042
2059
  {
2043
- url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'),
2044
- method: 'GET',
2060
+ url: (rootUrl + '/v1/{+parent}/postureDeployments').replace(
2061
+ /([^:]\/)\/+/g,
2062
+ '$1'
2063
+ ),
2064
+ method: 'POST',
2045
2065
  apiVersion: '',
2046
2066
  },
2047
2067
  options
2048
2068
  ),
2049
2069
  params,
2050
- requiredParams: ['name'],
2051
- pathParams: ['name'],
2070
+ requiredParams: ['parent'],
2071
+ pathParams: ['parent'],
2052
2072
  context: this.context,
2053
2073
  };
2054
2074
  if (callback) {
2055
- createAPIRequest<Schema$PostureDeployment>(
2075
+ createAPIRequest<Schema$Operation>(
2056
2076
  parameters,
2057
2077
  callback as BodyResponseCallback<unknown>
2058
2078
  );
2059
2079
  } else {
2060
- return createAPIRequest<Schema$PostureDeployment>(parameters);
2080
+ return createAPIRequest<Schema$Operation>(parameters);
2061
2081
  }
2062
2082
  }
2063
2083
 
2064
2084
  /**
2065
- * Lists every PostureDeployment in a project and location.
2085
+ * Deletes a PostureDeployment.
2066
2086
  * @example
2067
2087
  * ```js
2068
2088
  * // Before running the sample:
@@ -2092,23 +2112,21 @@ export namespace securityposture_v1 {
2092
2112
  *
2093
2113
  * // Do the magic
2094
2114
  * const res =
2095
- * await securityposture.organizations.locations.postureDeployments.list({
2096
- * // Optional. A filter to apply to the list of postures, in the format defined in [AIP-160: Filtering](https://google.aip.dev/160).
2097
- * filter: 'placeholder-value',
2098
- * // Optional. The maximum number of posture deployments to return. The default value is `500`. If you exceed the maximum value of `1000`, then the service uses the maximum value.
2099
- * pageSize: 'placeholder-value',
2100
- * // Optional. A pagination token returned from a previous request to list posture deployments. Provide this token to retrieve the next page of results.
2101
- * pageToken: 'placeholder-value',
2102
- * // Required. The parent resource name, in the format `organizations/{organization\}/locations/global`.
2103
- * parent: 'organizations/my-organization/locations/my-location',
2115
+ * await securityposture.organizations.locations.postureDeployments.delete({
2116
+ * // Optional. An opaque identifier for the current version of the posture deployment. If you provide this value, then it must match the existing value. If the values don't match, then the request fails with an ABORTED error. If you omit this value, then the posture deployment is deleted regardless of its current `etag` value.
2117
+ * etag: 'placeholder-value',
2118
+ * // Required. The name of the posture deployment, in the format `organizations/{organization\}/locations/global/postureDeployments/{posture_id\}`.
2119
+ * name: 'organizations/my-organization/locations/my-location/postureDeployments/my-postureDeployment',
2104
2120
  * });
2105
2121
  * console.log(res.data);
2106
2122
  *
2107
2123
  * // Example response
2108
2124
  * // {
2109
- * // "nextPageToken": "my_nextPageToken",
2110
- * // "postureDeployments": [],
2111
- * // "unreachable": []
2125
+ * // "done": false,
2126
+ * // "error": {},
2127
+ * // "metadata": {},
2128
+ * // "name": "my_name",
2129
+ * // "response": {}
2112
2130
  * // }
2113
2131
  * }
2114
2132
  *
@@ -2124,58 +2142,53 @@ export namespace securityposture_v1 {
2124
2142
  * @param callback - Optional callback that handles the response.
2125
2143
  * @returns A promise if used with async/await, or void if used with a callback.
2126
2144
  */
2127
- list(
2128
- params: Params$Resource$Organizations$Locations$Posturedeployments$List,
2145
+ delete(
2146
+ params: Params$Resource$Organizations$Locations$Posturedeployments$Delete,
2129
2147
  options: StreamMethodOptions
2130
2148
  ): Promise<GaxiosResponseWithHTTP2<Readable>>;
2131
- list(
2132
- params?: Params$Resource$Organizations$Locations$Posturedeployments$List,
2149
+ delete(
2150
+ params?: Params$Resource$Organizations$Locations$Posturedeployments$Delete,
2133
2151
  options?: MethodOptions
2134
- ): Promise<GaxiosResponseWithHTTP2<Schema$ListPostureDeploymentsResponse>>;
2135
- list(
2136
- params: Params$Resource$Organizations$Locations$Posturedeployments$List,
2152
+ ): Promise<GaxiosResponseWithHTTP2<Schema$Operation>>;
2153
+ delete(
2154
+ params: Params$Resource$Organizations$Locations$Posturedeployments$Delete,
2137
2155
  options: StreamMethodOptions | BodyResponseCallback<Readable>,
2138
2156
  callback: BodyResponseCallback<Readable>
2139
2157
  ): void;
2140
- list(
2141
- params: Params$Resource$Organizations$Locations$Posturedeployments$List,
2142
- options:
2143
- | MethodOptions
2144
- | BodyResponseCallback<Schema$ListPostureDeploymentsResponse>,
2145
- callback: BodyResponseCallback<Schema$ListPostureDeploymentsResponse>
2146
- ): void;
2147
- list(
2148
- params: Params$Resource$Organizations$Locations$Posturedeployments$List,
2149
- callback: BodyResponseCallback<Schema$ListPostureDeploymentsResponse>
2158
+ delete(
2159
+ params: Params$Resource$Organizations$Locations$Posturedeployments$Delete,
2160
+ options: MethodOptions | BodyResponseCallback<Schema$Operation>,
2161
+ callback: BodyResponseCallback<Schema$Operation>
2150
2162
  ): void;
2151
- list(
2152
- callback: BodyResponseCallback<Schema$ListPostureDeploymentsResponse>
2163
+ delete(
2164
+ params: Params$Resource$Organizations$Locations$Posturedeployments$Delete,
2165
+ callback: BodyResponseCallback<Schema$Operation>
2153
2166
  ): void;
2154
- list(
2167
+ delete(callback: BodyResponseCallback<Schema$Operation>): void;
2168
+ delete(
2155
2169
  paramsOrCallback?:
2156
- | Params$Resource$Organizations$Locations$Posturedeployments$List
2157
- | BodyResponseCallback<Schema$ListPostureDeploymentsResponse>
2170
+ | Params$Resource$Organizations$Locations$Posturedeployments$Delete
2171
+ | BodyResponseCallback<Schema$Operation>
2158
2172
  | BodyResponseCallback<Readable>,
2159
2173
  optionsOrCallback?:
2160
2174
  | MethodOptions
2161
2175
  | StreamMethodOptions
2162
- | BodyResponseCallback<Schema$ListPostureDeploymentsResponse>
2176
+ | BodyResponseCallback<Schema$Operation>
2163
2177
  | BodyResponseCallback<Readable>,
2164
2178
  callback?:
2165
- | BodyResponseCallback<Schema$ListPostureDeploymentsResponse>
2166
- | BodyResponseCallback<Readable>
2179
+ BodyResponseCallback<Schema$Operation> | BodyResponseCallback<Readable>
2167
2180
  ):
2168
2181
  | void
2169
- | Promise<GaxiosResponseWithHTTP2<Schema$ListPostureDeploymentsResponse>>
2182
+ | Promise<GaxiosResponseWithHTTP2<Schema$Operation>>
2170
2183
  | Promise<GaxiosResponseWithHTTP2<Readable>> {
2171
2184
  let params = (paramsOrCallback ||
2172
- {}) as Params$Resource$Organizations$Locations$Posturedeployments$List;
2185
+ {}) as Params$Resource$Organizations$Locations$Posturedeployments$Delete;
2173
2186
  let options = (optionsOrCallback || {}) as MethodOptions;
2174
2187
 
2175
2188
  if (typeof paramsOrCallback === 'function') {
2176
2189
  callback = paramsOrCallback;
2177
2190
  params =
2178
- {} as Params$Resource$Organizations$Locations$Posturedeployments$List;
2191
+ {} as Params$Resource$Organizations$Locations$Posturedeployments$Delete;
2179
2192
  options = {};
2180
2193
  }
2181
2194
 
@@ -2189,34 +2202,29 @@ export namespace securityposture_v1 {
2189
2202
  const parameters = {
2190
2203
  options: Object.assign(
2191
2204
  {
2192
- url: (rootUrl + '/v1/{+parent}/postureDeployments').replace(
2193
- /([^:]\/)\/+/g,
2194
- '$1'
2195
- ),
2196
- method: 'GET',
2205
+ url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'),
2206
+ method: 'DELETE',
2197
2207
  apiVersion: '',
2198
2208
  },
2199
2209
  options
2200
2210
  ),
2201
2211
  params,
2202
- requiredParams: ['parent'],
2203
- pathParams: ['parent'],
2212
+ requiredParams: ['name'],
2213
+ pathParams: ['name'],
2204
2214
  context: this.context,
2205
2215
  };
2206
2216
  if (callback) {
2207
- createAPIRequest<Schema$ListPostureDeploymentsResponse>(
2217
+ createAPIRequest<Schema$Operation>(
2208
2218
  parameters,
2209
2219
  callback as BodyResponseCallback<unknown>
2210
2220
  );
2211
2221
  } else {
2212
- return createAPIRequest<Schema$ListPostureDeploymentsResponse>(
2213
- parameters
2214
- );
2222
+ return createAPIRequest<Schema$Operation>(parameters);
2215
2223
  }
2216
2224
  }
2217
2225
 
2218
2226
  /**
2219
- * Updates an existing PostureDeployment. To prevent concurrent updates from overwriting each other, always follow the read-modify-write pattern when you update a posture deployment: 1. Call GetPostureDeployment to get the current version of the deployment. 2. Update the fields in the deployment as needed. 3. Call UpdatePostureDeployment to update the deployment. Ensure that your request includes the `etag` value from the GetPostureDeployment response. **Important:** If you omit the `etag` when you call UpdatePostureDeployment, then the updated deployment unconditionally overwrites the existing deployment.
2227
+ * Gets details for a PostureDeployment.
2220
2228
  * @example
2221
2229
  * ```js
2222
2230
  * // Before running the sample:
@@ -2246,43 +2254,29 @@ export namespace securityposture_v1 {
2246
2254
  *
2247
2255
  * // Do the magic
2248
2256
  * const res =
2249
- * await securityposture.organizations.locations.postureDeployments.patch({
2250
- * // Required. Identifier. The name of the posture deployment, in the format `organizations/{organization\}/locations/global/postureDeployments/{deployment_id\}`.
2257
+ * await securityposture.organizations.locations.postureDeployments.get({
2258
+ * // Required. The name of the PostureDeployment, in the format `organizations/{organization\}/locations/global/postureDeployments/{posture_deployment_id\}`.
2251
2259
  * name: 'organizations/my-organization/locations/my-location/postureDeployments/my-postureDeployment',
2252
- * // Required. The fields in the PostureDeployment to update. You can update only the following fields: * PostureDeployment.posture_id * PostureDeployment.posture_revision_id
2253
- * updateMask: 'placeholder-value',
2254
- *
2255
- * // Request body metadata
2256
- * requestBody: {
2257
- * // request body parameters
2258
- * // {
2259
- * // "annotations": {},
2260
- * // "categories": [],
2261
- * // "createTime": "my_createTime",
2262
- * // "description": "my_description",
2263
- * // "desiredPostureId": "my_desiredPostureId",
2264
- * // "desiredPostureRevisionId": "my_desiredPostureRevisionId",
2265
- * // "etag": "my_etag",
2266
- * // "failureMessage": "my_failureMessage",
2267
- * // "name": "my_name",
2268
- * // "postureId": "my_postureId",
2269
- * // "postureRevisionId": "my_postureRevisionId",
2270
- * // "reconciling": false,
2271
- * // "state": "my_state",
2272
- * // "targetResource": "my_targetResource",
2273
- * // "updateTime": "my_updateTime"
2274
- * // }
2275
- * },
2276
2260
  * });
2277
2261
  * console.log(res.data);
2278
2262
  *
2279
2263
  * // Example response
2280
2264
  * // {
2281
- * // "done": false,
2282
- * // "error": {},
2283
- * // "metadata": {},
2265
+ * // "annotations": {},
2266
+ * // "categories": [],
2267
+ * // "createTime": "my_createTime",
2268
+ * // "description": "my_description",
2269
+ * // "desiredPostureId": "my_desiredPostureId",
2270
+ * // "desiredPostureRevisionId": "my_desiredPostureRevisionId",
2271
+ * // "etag": "my_etag",
2272
+ * // "failureMessage": "my_failureMessage",
2284
2273
  * // "name": "my_name",
2285
- * // "response": {}
2274
+ * // "postureId": "my_postureId",
2275
+ * // "postureRevisionId": "my_postureRevisionId",
2276
+ * // "reconciling": false,
2277
+ * // "state": "my_state",
2278
+ * // "targetResource": "my_targetResource",
2279
+ * // "updateTime": "my_updateTime"
2286
2280
  * // }
2287
2281
  * }
2288
2282
  *
@@ -2298,53 +2292,54 @@ export namespace securityposture_v1 {
2298
2292
  * @param callback - Optional callback that handles the response.
2299
2293
  * @returns A promise if used with async/await, or void if used with a callback.
2300
2294
  */
2301
- patch(
2302
- params: Params$Resource$Organizations$Locations$Posturedeployments$Patch,
2295
+ get(
2296
+ params: Params$Resource$Organizations$Locations$Posturedeployments$Get,
2303
2297
  options: StreamMethodOptions
2304
2298
  ): Promise<GaxiosResponseWithHTTP2<Readable>>;
2305
- patch(
2306
- params?: Params$Resource$Organizations$Locations$Posturedeployments$Patch,
2299
+ get(
2300
+ params?: Params$Resource$Organizations$Locations$Posturedeployments$Get,
2307
2301
  options?: MethodOptions
2308
- ): Promise<GaxiosResponseWithHTTP2<Schema$Operation>>;
2309
- patch(
2310
- params: Params$Resource$Organizations$Locations$Posturedeployments$Patch,
2302
+ ): Promise<GaxiosResponseWithHTTP2<Schema$PostureDeployment>>;
2303
+ get(
2304
+ params: Params$Resource$Organizations$Locations$Posturedeployments$Get,
2311
2305
  options: StreamMethodOptions | BodyResponseCallback<Readable>,
2312
2306
  callback: BodyResponseCallback<Readable>
2313
2307
  ): void;
2314
- patch(
2315
- params: Params$Resource$Organizations$Locations$Posturedeployments$Patch,
2316
- options: MethodOptions | BodyResponseCallback<Schema$Operation>,
2317
- callback: BodyResponseCallback<Schema$Operation>
2308
+ get(
2309
+ params: Params$Resource$Organizations$Locations$Posturedeployments$Get,
2310
+ options: MethodOptions | BodyResponseCallback<Schema$PostureDeployment>,
2311
+ callback: BodyResponseCallback<Schema$PostureDeployment>
2318
2312
  ): void;
2319
- patch(
2320
- params: Params$Resource$Organizations$Locations$Posturedeployments$Patch,
2321
- callback: BodyResponseCallback<Schema$Operation>
2313
+ get(
2314
+ params: Params$Resource$Organizations$Locations$Posturedeployments$Get,
2315
+ callback: BodyResponseCallback<Schema$PostureDeployment>
2322
2316
  ): void;
2323
- patch(callback: BodyResponseCallback<Schema$Operation>): void;
2324
- patch(
2317
+ get(callback: BodyResponseCallback<Schema$PostureDeployment>): void;
2318
+ get(
2325
2319
  paramsOrCallback?:
2326
- | Params$Resource$Organizations$Locations$Posturedeployments$Patch
2327
- | BodyResponseCallback<Schema$Operation>
2320
+ | Params$Resource$Organizations$Locations$Posturedeployments$Get
2321
+ | BodyResponseCallback<Schema$PostureDeployment>
2328
2322
  | BodyResponseCallback<Readable>,
2329
2323
  optionsOrCallback?:
2330
2324
  | MethodOptions
2331
2325
  | StreamMethodOptions
2332
- | BodyResponseCallback<Schema$Operation>
2326
+ | BodyResponseCallback<Schema$PostureDeployment>
2333
2327
  | BodyResponseCallback<Readable>,
2334
2328
  callback?:
2335
- BodyResponseCallback<Schema$Operation> | BodyResponseCallback<Readable>
2329
+ | BodyResponseCallback<Schema$PostureDeployment>
2330
+ | BodyResponseCallback<Readable>
2336
2331
  ):
2337
2332
  | void
2338
- | Promise<GaxiosResponseWithHTTP2<Schema$Operation>>
2333
+ | Promise<GaxiosResponseWithHTTP2<Schema$PostureDeployment>>
2339
2334
  | Promise<GaxiosResponseWithHTTP2<Readable>> {
2340
2335
  let params = (paramsOrCallback ||
2341
- {}) as Params$Resource$Organizations$Locations$Posturedeployments$Patch;
2336
+ {}) as Params$Resource$Organizations$Locations$Posturedeployments$Get;
2342
2337
  let options = (optionsOrCallback || {}) as MethodOptions;
2343
2338
 
2344
2339
  if (typeof paramsOrCallback === 'function') {
2345
2340
  callback = paramsOrCallback;
2346
2341
  params =
2347
- {} as Params$Resource$Organizations$Locations$Posturedeployments$Patch;
2342
+ {} as Params$Resource$Organizations$Locations$Posturedeployments$Get;
2348
2343
  options = {};
2349
2344
  }
2350
2345
 
@@ -2359,7 +2354,7 @@ export namespace securityposture_v1 {
2359
2354
  options: Object.assign(
2360
2355
  {
2361
2356
  url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'),
2362
- method: 'PATCH',
2357
+ method: 'GET',
2363
2358
  apiVersion: '',
2364
2359
  },
2365
2360
  options
@@ -2370,89 +2365,17 @@ export namespace securityposture_v1 {
2370
2365
  context: this.context,
2371
2366
  };
2372
2367
  if (callback) {
2373
- createAPIRequest<Schema$Operation>(
2368
+ createAPIRequest<Schema$PostureDeployment>(
2374
2369
  parameters,
2375
2370
  callback as BodyResponseCallback<unknown>
2376
2371
  );
2377
2372
  } else {
2378
- return createAPIRequest<Schema$Operation>(parameters);
2373
+ return createAPIRequest<Schema$PostureDeployment>(parameters);
2379
2374
  }
2380
2375
  }
2381
- }
2382
-
2383
- export interface Params$Resource$Organizations$Locations$Posturedeployments$Create extends StandardParameters {
2384
- /**
2385
- * Required. The parent resource name, in the format `organizations/{organization\}/locations/global`.
2386
- */
2387
- parent?: string;
2388
- /**
2389
- * Required. An identifier for the posture deployment.
2390
- */
2391
- postureDeploymentId?: string;
2392
-
2393
- /**
2394
- * Request body metadata
2395
- */
2396
- requestBody?: Schema$PostureDeployment;
2397
- }
2398
- export interface Params$Resource$Organizations$Locations$Posturedeployments$Delete extends StandardParameters {
2399
- /**
2400
- * Optional. An opaque identifier for the current version of the posture deployment. If you provide this value, then it must match the existing value. If the values don't match, then the request fails with an ABORTED error. If you omit this value, then the posture deployment is deleted regardless of its current `etag` value.
2401
- */
2402
- etag?: string;
2403
- /**
2404
- * Required. The name of the posture deployment, in the format `organizations/{organization\}/locations/global/postureDeployments/{posture_id\}`.
2405
- */
2406
- name?: string;
2407
- }
2408
- export interface Params$Resource$Organizations$Locations$Posturedeployments$Get extends StandardParameters {
2409
- /**
2410
- * Required. The name of the PostureDeployment, in the format `organizations/{organization\}/locations/global/postureDeployments/{posture_deployment_id\}`.
2411
- */
2412
- name?: string;
2413
- }
2414
- export interface Params$Resource$Organizations$Locations$Posturedeployments$List extends StandardParameters {
2415
- /**
2416
- * Optional. A filter to apply to the list of postures, in the format defined in [AIP-160: Filtering](https://google.aip.dev/160).
2417
- */
2418
- filter?: string;
2419
- /**
2420
- * Optional. The maximum number of posture deployments to return. The default value is `500`. If you exceed the maximum value of `1000`, then the service uses the maximum value.
2421
- */
2422
- pageSize?: number;
2423
- /**
2424
- * Optional. A pagination token returned from a previous request to list posture deployments. Provide this token to retrieve the next page of results.
2425
- */
2426
- pageToken?: string;
2427
- /**
2428
- * Required. The parent resource name, in the format `organizations/{organization\}/locations/global`.
2429
- */
2430
- parent?: string;
2431
- }
2432
- export interface Params$Resource$Organizations$Locations$Posturedeployments$Patch extends StandardParameters {
2433
- /**
2434
- * Required. Identifier. The name of the posture deployment, in the format `organizations/{organization\}/locations/global/postureDeployments/{deployment_id\}`.
2435
- */
2436
- name?: string;
2437
- /**
2438
- * Required. The fields in the PostureDeployment to update. You can update only the following fields: * PostureDeployment.posture_id * PostureDeployment.posture_revision_id
2439
- */
2440
- updateMask?: string;
2441
-
2442
- /**
2443
- * Request body metadata
2444
- */
2445
- requestBody?: Schema$PostureDeployment;
2446
- }
2447
-
2448
- export class Resource$Organizations$Locations$Postures {
2449
- context: APIRequestContext;
2450
- constructor(context: APIRequestContext) {
2451
- this.context = context;
2452
- }
2453
2376
 
2454
2377
  /**
2455
- * Creates a new Posture.
2378
+ * Lists every PostureDeployment in a project and location.
2456
2379
  * @example
2457
2380
  * ```js
2458
2381
  * // Before running the sample:
@@ -2481,39 +2404,24 @@ export namespace securityposture_v1 {
2481
2404
  * google.options({auth: authClient});
2482
2405
  *
2483
2406
  * // Do the magic
2484
- * const res = await securityposture.organizations.locations.postures.create({
2485
- * // Required. The parent resource name, in the format `organizations/{organization\}/locations/global`.
2486
- * parent: 'organizations/my-organization/locations/my-location',
2487
- * // Required. An identifier for the posture.
2488
- * postureId: 'placeholder-value',
2489
- *
2490
- * // Request body metadata
2491
- * requestBody: {
2492
- * // request body parameters
2493
- * // {
2494
- * // "annotations": {},
2495
- * // "categories": [],
2496
- * // "createTime": "my_createTime",
2497
- * // "description": "my_description",
2498
- * // "etag": "my_etag",
2499
- * // "name": "my_name",
2500
- * // "policySets": [],
2501
- * // "reconciling": false,
2502
- * // "revisionId": "my_revisionId",
2503
- * // "state": "my_state",
2504
- * // "updateTime": "my_updateTime"
2505
- * // }
2506
- * },
2507
- * });
2407
+ * const res =
2408
+ * await securityposture.organizations.locations.postureDeployments.list({
2409
+ * // Optional. A filter to apply to the list of postures, in the format defined in [AIP-160: Filtering](https://google.aip.dev/160).
2410
+ * filter: 'placeholder-value',
2411
+ * // Optional. The maximum number of posture deployments to return. The default value is `500`. If you exceed the maximum value of `1000`, then the service uses the maximum value.
2412
+ * pageSize: 'placeholder-value',
2413
+ * // Optional. A pagination token returned from a previous request to list posture deployments. Provide this token to retrieve the next page of results.
2414
+ * pageToken: 'placeholder-value',
2415
+ * // Required. The parent resource name, in the format `organizations/{organization\}/locations/global`.
2416
+ * parent: 'organizations/my-organization/locations/my-location',
2417
+ * });
2508
2418
  * console.log(res.data);
2509
2419
  *
2510
2420
  * // Example response
2511
2421
  * // {
2512
- * // "done": false,
2513
- * // "error": {},
2514
- * // "metadata": {},
2515
- * // "name": "my_name",
2516
- * // "response": {}
2422
+ * // "nextPageToken": "my_nextPageToken",
2423
+ * // "postureDeployments": [],
2424
+ * // "unreachable": []
2517
2425
  * // }
2518
2426
  * }
2519
2427
  *
@@ -2529,52 +2437,58 @@ export namespace securityposture_v1 {
2529
2437
  * @param callback - Optional callback that handles the response.
2530
2438
  * @returns A promise if used with async/await, or void if used with a callback.
2531
2439
  */
2532
- create(
2533
- params: Params$Resource$Organizations$Locations$Postures$Create,
2440
+ list(
2441
+ params: Params$Resource$Organizations$Locations$Posturedeployments$List,
2534
2442
  options: StreamMethodOptions
2535
2443
  ): Promise<GaxiosResponseWithHTTP2<Readable>>;
2536
- create(
2537
- params?: Params$Resource$Organizations$Locations$Postures$Create,
2444
+ list(
2445
+ params?: Params$Resource$Organizations$Locations$Posturedeployments$List,
2538
2446
  options?: MethodOptions
2539
- ): Promise<GaxiosResponseWithHTTP2<Schema$Operation>>;
2540
- create(
2541
- params: Params$Resource$Organizations$Locations$Postures$Create,
2447
+ ): Promise<GaxiosResponseWithHTTP2<Schema$ListPostureDeploymentsResponse>>;
2448
+ list(
2449
+ params: Params$Resource$Organizations$Locations$Posturedeployments$List,
2542
2450
  options: StreamMethodOptions | BodyResponseCallback<Readable>,
2543
2451
  callback: BodyResponseCallback<Readable>
2544
2452
  ): void;
2545
- create(
2546
- params: Params$Resource$Organizations$Locations$Postures$Create,
2547
- options: MethodOptions | BodyResponseCallback<Schema$Operation>,
2548
- callback: BodyResponseCallback<Schema$Operation>
2453
+ list(
2454
+ params: Params$Resource$Organizations$Locations$Posturedeployments$List,
2455
+ options:
2456
+ | MethodOptions
2457
+ | BodyResponseCallback<Schema$ListPostureDeploymentsResponse>,
2458
+ callback: BodyResponseCallback<Schema$ListPostureDeploymentsResponse>
2549
2459
  ): void;
2550
- create(
2551
- params: Params$Resource$Organizations$Locations$Postures$Create,
2552
- callback: BodyResponseCallback<Schema$Operation>
2460
+ list(
2461
+ params: Params$Resource$Organizations$Locations$Posturedeployments$List,
2462
+ callback: BodyResponseCallback<Schema$ListPostureDeploymentsResponse>
2553
2463
  ): void;
2554
- create(callback: BodyResponseCallback<Schema$Operation>): void;
2555
- create(
2464
+ list(
2465
+ callback: BodyResponseCallback<Schema$ListPostureDeploymentsResponse>
2466
+ ): void;
2467
+ list(
2556
2468
  paramsOrCallback?:
2557
- | Params$Resource$Organizations$Locations$Postures$Create
2558
- | BodyResponseCallback<Schema$Operation>
2469
+ | Params$Resource$Organizations$Locations$Posturedeployments$List
2470
+ | BodyResponseCallback<Schema$ListPostureDeploymentsResponse>
2559
2471
  | BodyResponseCallback<Readable>,
2560
2472
  optionsOrCallback?:
2561
2473
  | MethodOptions
2562
2474
  | StreamMethodOptions
2563
- | BodyResponseCallback<Schema$Operation>
2475
+ | BodyResponseCallback<Schema$ListPostureDeploymentsResponse>
2564
2476
  | BodyResponseCallback<Readable>,
2565
2477
  callback?:
2566
- BodyResponseCallback<Schema$Operation> | BodyResponseCallback<Readable>
2478
+ | BodyResponseCallback<Schema$ListPostureDeploymentsResponse>
2479
+ | BodyResponseCallback<Readable>
2567
2480
  ):
2568
2481
  | void
2569
- | Promise<GaxiosResponseWithHTTP2<Schema$Operation>>
2482
+ | Promise<GaxiosResponseWithHTTP2<Schema$ListPostureDeploymentsResponse>>
2570
2483
  | Promise<GaxiosResponseWithHTTP2<Readable>> {
2571
2484
  let params = (paramsOrCallback ||
2572
- {}) as Params$Resource$Organizations$Locations$Postures$Create;
2485
+ {}) as Params$Resource$Organizations$Locations$Posturedeployments$List;
2573
2486
  let options = (optionsOrCallback || {}) as MethodOptions;
2574
2487
 
2575
2488
  if (typeof paramsOrCallback === 'function') {
2576
2489
  callback = paramsOrCallback;
2577
- params = {} as Params$Resource$Organizations$Locations$Postures$Create;
2490
+ params =
2491
+ {} as Params$Resource$Organizations$Locations$Posturedeployments$List;
2578
2492
  options = {};
2579
2493
  }
2580
2494
 
@@ -2588,11 +2502,11 @@ export namespace securityposture_v1 {
2588
2502
  const parameters = {
2589
2503
  options: Object.assign(
2590
2504
  {
2591
- url: (rootUrl + '/v1/{+parent}/postures').replace(
2505
+ url: (rootUrl + '/v1/{+parent}/postureDeployments').replace(
2592
2506
  /([^:]\/)\/+/g,
2593
2507
  '$1'
2594
2508
  ),
2595
- method: 'POST',
2509
+ method: 'GET',
2596
2510
  apiVersion: '',
2597
2511
  },
2598
2512
  options
@@ -2603,17 +2517,19 @@ export namespace securityposture_v1 {
2603
2517
  context: this.context,
2604
2518
  };
2605
2519
  if (callback) {
2606
- createAPIRequest<Schema$Operation>(
2520
+ createAPIRequest<Schema$ListPostureDeploymentsResponse>(
2607
2521
  parameters,
2608
2522
  callback as BodyResponseCallback<unknown>
2609
2523
  );
2610
2524
  } else {
2611
- return createAPIRequest<Schema$Operation>(parameters);
2525
+ return createAPIRequest<Schema$ListPostureDeploymentsResponse>(
2526
+ parameters
2527
+ );
2612
2528
  }
2613
2529
  }
2614
2530
 
2615
2531
  /**
2616
- * Deletes all revisions of a Posture. You can only delete a posture if none of its revisions are deployed.
2532
+ * Updates an existing PostureDeployment. To prevent concurrent updates from overwriting each other, always follow the read-modify-write pattern when you update a posture deployment: 1. Call GetPostureDeployment to get the current version of the deployment. 2. Update the fields in the deployment as needed. 3. Call UpdatePostureDeployment to update the deployment. Ensure that your request includes the `etag` value from the GetPostureDeployment response. **Important:** If you omit the `etag` when you call UpdatePostureDeployment, then the updated deployment unconditionally overwrites the existing deployment.
2617
2533
  * @example
2618
2534
  * ```js
2619
2535
  * // Before running the sample:
@@ -2642,12 +2558,35 @@ export namespace securityposture_v1 {
2642
2558
  * google.options({auth: authClient});
2643
2559
  *
2644
2560
  * // Do the magic
2645
- * const res = await securityposture.organizations.locations.postures.delete({
2646
- * // Optional. An opaque identifier for the current version of the posture. If you provide this value, then it must match the existing value. If the values don't match, then the request fails with an ABORTED error. If you omit this value, then the posture is deleted regardless of its current `etag` value.
2647
- * etag: 'placeholder-value',
2648
- * // Required. The name of the Posture, in the format `organizations/{organization\}/locations/global/postures/{posture_id\}`.
2649
- * name: 'organizations/my-organization/locations/my-location/postures/my-posture',
2650
- * });
2561
+ * const res =
2562
+ * await securityposture.organizations.locations.postureDeployments.patch({
2563
+ * // Required. Identifier. The name of the posture deployment, in the format `organizations/{organization\}/locations/global/postureDeployments/{deployment_id\}`.
2564
+ * name: 'organizations/my-organization/locations/my-location/postureDeployments/my-postureDeployment',
2565
+ * // Required. The fields in the PostureDeployment to update. You can update only the following fields: * PostureDeployment.posture_id * PostureDeployment.posture_revision_id
2566
+ * updateMask: 'placeholder-value',
2567
+ *
2568
+ * // Request body metadata
2569
+ * requestBody: {
2570
+ * // request body parameters
2571
+ * // {
2572
+ * // "annotations": {},
2573
+ * // "categories": [],
2574
+ * // "createTime": "my_createTime",
2575
+ * // "description": "my_description",
2576
+ * // "desiredPostureId": "my_desiredPostureId",
2577
+ * // "desiredPostureRevisionId": "my_desiredPostureRevisionId",
2578
+ * // "etag": "my_etag",
2579
+ * // "failureMessage": "my_failureMessage",
2580
+ * // "name": "my_name",
2581
+ * // "postureId": "my_postureId",
2582
+ * // "postureRevisionId": "my_postureRevisionId",
2583
+ * // "reconciling": false,
2584
+ * // "state": "my_state",
2585
+ * // "targetResource": "my_targetResource",
2586
+ * // "updateTime": "my_updateTime"
2587
+ * // }
2588
+ * },
2589
+ * });
2651
2590
  * console.log(res.data);
2652
2591
  *
2653
2592
  * // Example response
@@ -2672,32 +2611,32 @@ export namespace securityposture_v1 {
2672
2611
  * @param callback - Optional callback that handles the response.
2673
2612
  * @returns A promise if used with async/await, or void if used with a callback.
2674
2613
  */
2675
- delete(
2676
- params: Params$Resource$Organizations$Locations$Postures$Delete,
2614
+ patch(
2615
+ params: Params$Resource$Organizations$Locations$Posturedeployments$Patch,
2677
2616
  options: StreamMethodOptions
2678
2617
  ): Promise<GaxiosResponseWithHTTP2<Readable>>;
2679
- delete(
2680
- params?: Params$Resource$Organizations$Locations$Postures$Delete,
2618
+ patch(
2619
+ params?: Params$Resource$Organizations$Locations$Posturedeployments$Patch,
2681
2620
  options?: MethodOptions
2682
2621
  ): Promise<GaxiosResponseWithHTTP2<Schema$Operation>>;
2683
- delete(
2684
- params: Params$Resource$Organizations$Locations$Postures$Delete,
2622
+ patch(
2623
+ params: Params$Resource$Organizations$Locations$Posturedeployments$Patch,
2685
2624
  options: StreamMethodOptions | BodyResponseCallback<Readable>,
2686
2625
  callback: BodyResponseCallback<Readable>
2687
2626
  ): void;
2688
- delete(
2689
- params: Params$Resource$Organizations$Locations$Postures$Delete,
2627
+ patch(
2628
+ params: Params$Resource$Organizations$Locations$Posturedeployments$Patch,
2690
2629
  options: MethodOptions | BodyResponseCallback<Schema$Operation>,
2691
2630
  callback: BodyResponseCallback<Schema$Operation>
2692
2631
  ): void;
2693
- delete(
2694
- params: Params$Resource$Organizations$Locations$Postures$Delete,
2632
+ patch(
2633
+ params: Params$Resource$Organizations$Locations$Posturedeployments$Patch,
2695
2634
  callback: BodyResponseCallback<Schema$Operation>
2696
2635
  ): void;
2697
- delete(callback: BodyResponseCallback<Schema$Operation>): void;
2698
- delete(
2636
+ patch(callback: BodyResponseCallback<Schema$Operation>): void;
2637
+ patch(
2699
2638
  paramsOrCallback?:
2700
- | Params$Resource$Organizations$Locations$Postures$Delete
2639
+ | Params$Resource$Organizations$Locations$Posturedeployments$Patch
2701
2640
  | BodyResponseCallback<Schema$Operation>
2702
2641
  | BodyResponseCallback<Readable>,
2703
2642
  optionsOrCallback?:
@@ -2712,12 +2651,13 @@ export namespace securityposture_v1 {
2712
2651
  | Promise<GaxiosResponseWithHTTP2<Schema$Operation>>
2713
2652
  | Promise<GaxiosResponseWithHTTP2<Readable>> {
2714
2653
  let params = (paramsOrCallback ||
2715
- {}) as Params$Resource$Organizations$Locations$Postures$Delete;
2654
+ {}) as Params$Resource$Organizations$Locations$Posturedeployments$Patch;
2716
2655
  let options = (optionsOrCallback || {}) as MethodOptions;
2717
2656
 
2718
2657
  if (typeof paramsOrCallback === 'function') {
2719
2658
  callback = paramsOrCallback;
2720
- params = {} as Params$Resource$Organizations$Locations$Postures$Delete;
2659
+ params =
2660
+ {} as Params$Resource$Organizations$Locations$Posturedeployments$Patch;
2721
2661
  options = {};
2722
2662
  }
2723
2663
 
@@ -2732,7 +2672,7 @@ export namespace securityposture_v1 {
2732
2672
  options: Object.assign(
2733
2673
  {
2734
2674
  url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'),
2735
- method: 'DELETE',
2675
+ method: 'PATCH',
2736
2676
  apiVersion: '',
2737
2677
  },
2738
2678
  options
@@ -2751,9 +2691,81 @@ export namespace securityposture_v1 {
2751
2691
  return createAPIRequest<Schema$Operation>(parameters);
2752
2692
  }
2753
2693
  }
2694
+ }
2754
2695
 
2696
+ export interface Params$Resource$Organizations$Locations$Posturedeployments$Create extends StandardParameters {
2755
2697
  /**
2756
- * Extracts existing policies from an organization, folder, or project, and applies them to another organization, folder, or project as a Posture. If the other organization, folder, or project already has a posture, then the result of the long-running operation is an ALREADY_EXISTS error.
2698
+ * Required. The parent resource name, in the format `organizations/{organization\}/locations/global`.
2699
+ */
2700
+ parent?: string;
2701
+ /**
2702
+ * Required. An identifier for the posture deployment.
2703
+ */
2704
+ postureDeploymentId?: string;
2705
+
2706
+ /**
2707
+ * Request body metadata
2708
+ */
2709
+ requestBody?: Schema$PostureDeployment;
2710
+ }
2711
+ export interface Params$Resource$Organizations$Locations$Posturedeployments$Delete extends StandardParameters {
2712
+ /**
2713
+ * Optional. An opaque identifier for the current version of the posture deployment. If you provide this value, then it must match the existing value. If the values don't match, then the request fails with an ABORTED error. If you omit this value, then the posture deployment is deleted regardless of its current `etag` value.
2714
+ */
2715
+ etag?: string;
2716
+ /**
2717
+ * Required. The name of the posture deployment, in the format `organizations/{organization\}/locations/global/postureDeployments/{posture_id\}`.
2718
+ */
2719
+ name?: string;
2720
+ }
2721
+ export interface Params$Resource$Organizations$Locations$Posturedeployments$Get extends StandardParameters {
2722
+ /**
2723
+ * Required. The name of the PostureDeployment, in the format `organizations/{organization\}/locations/global/postureDeployments/{posture_deployment_id\}`.
2724
+ */
2725
+ name?: string;
2726
+ }
2727
+ export interface Params$Resource$Organizations$Locations$Posturedeployments$List extends StandardParameters {
2728
+ /**
2729
+ * Optional. A filter to apply to the list of postures, in the format defined in [AIP-160: Filtering](https://google.aip.dev/160).
2730
+ */
2731
+ filter?: string;
2732
+ /**
2733
+ * Optional. The maximum number of posture deployments to return. The default value is `500`. If you exceed the maximum value of `1000`, then the service uses the maximum value.
2734
+ */
2735
+ pageSize?: number;
2736
+ /**
2737
+ * Optional. A pagination token returned from a previous request to list posture deployments. Provide this token to retrieve the next page of results.
2738
+ */
2739
+ pageToken?: string;
2740
+ /**
2741
+ * Required. The parent resource name, in the format `organizations/{organization\}/locations/global`.
2742
+ */
2743
+ parent?: string;
2744
+ }
2745
+ export interface Params$Resource$Organizations$Locations$Posturedeployments$Patch extends StandardParameters {
2746
+ /**
2747
+ * Required. Identifier. The name of the posture deployment, in the format `organizations/{organization\}/locations/global/postureDeployments/{deployment_id\}`.
2748
+ */
2749
+ name?: string;
2750
+ /**
2751
+ * Required. The fields in the PostureDeployment to update. You can update only the following fields: * PostureDeployment.posture_id * PostureDeployment.posture_revision_id
2752
+ */
2753
+ updateMask?: string;
2754
+
2755
+ /**
2756
+ * Request body metadata
2757
+ */
2758
+ requestBody?: Schema$PostureDeployment;
2759
+ }
2760
+
2761
+ export class Resource$Organizations$Locations$Postures {
2762
+ context: APIRequestContext;
2763
+ constructor(context: APIRequestContext) {
2764
+ this.context = context;
2765
+ }
2766
+
2767
+ /**
2768
+ * Creates a new Posture.
2757
2769
  * @example
2758
2770
  * ```js
2759
2771
  * // Before running the sample:
@@ -2782,16 +2794,27 @@ export namespace securityposture_v1 {
2782
2794
  * google.options({auth: authClient});
2783
2795
  *
2784
2796
  * // Do the magic
2785
- * const res = await securityposture.organizations.locations.postures.extract({
2797
+ * const res = await securityposture.organizations.locations.postures.create({
2786
2798
  * // Required. The parent resource name, in the format `organizations/{organization\}/locations/global`.
2787
2799
  * parent: 'organizations/my-organization/locations/my-location',
2800
+ * // Required. An identifier for the posture.
2801
+ * postureId: 'placeholder-value',
2788
2802
  *
2789
2803
  * // Request body metadata
2790
2804
  * requestBody: {
2791
2805
  * // request body parameters
2792
2806
  * // {
2793
- * // "postureId": "my_postureId",
2794
- * // "workload": "my_workload"
2807
+ * // "annotations": {},
2808
+ * // "categories": [],
2809
+ * // "createTime": "my_createTime",
2810
+ * // "description": "my_description",
2811
+ * // "etag": "my_etag",
2812
+ * // "name": "my_name",
2813
+ * // "policySets": [],
2814
+ * // "reconciling": false,
2815
+ * // "revisionId": "my_revisionId",
2816
+ * // "state": "my_state",
2817
+ * // "updateTime": "my_updateTime"
2795
2818
  * // }
2796
2819
  * },
2797
2820
  * });
@@ -2819,32 +2842,32 @@ export namespace securityposture_v1 {
2819
2842
  * @param callback - Optional callback that handles the response.
2820
2843
  * @returns A promise if used with async/await, or void if used with a callback.
2821
2844
  */
2822
- extract(
2823
- params: Params$Resource$Organizations$Locations$Postures$Extract,
2845
+ create(
2846
+ params: Params$Resource$Organizations$Locations$Postures$Create,
2824
2847
  options: StreamMethodOptions
2825
2848
  ): Promise<GaxiosResponseWithHTTP2<Readable>>;
2826
- extract(
2827
- params?: Params$Resource$Organizations$Locations$Postures$Extract,
2849
+ create(
2850
+ params?: Params$Resource$Organizations$Locations$Postures$Create,
2828
2851
  options?: MethodOptions
2829
2852
  ): Promise<GaxiosResponseWithHTTP2<Schema$Operation>>;
2830
- extract(
2831
- params: Params$Resource$Organizations$Locations$Postures$Extract,
2853
+ create(
2854
+ params: Params$Resource$Organizations$Locations$Postures$Create,
2832
2855
  options: StreamMethodOptions | BodyResponseCallback<Readable>,
2833
2856
  callback: BodyResponseCallback<Readable>
2834
2857
  ): void;
2835
- extract(
2836
- params: Params$Resource$Organizations$Locations$Postures$Extract,
2858
+ create(
2859
+ params: Params$Resource$Organizations$Locations$Postures$Create,
2837
2860
  options: MethodOptions | BodyResponseCallback<Schema$Operation>,
2838
2861
  callback: BodyResponseCallback<Schema$Operation>
2839
2862
  ): void;
2840
- extract(
2841
- params: Params$Resource$Organizations$Locations$Postures$Extract,
2863
+ create(
2864
+ params: Params$Resource$Organizations$Locations$Postures$Create,
2842
2865
  callback: BodyResponseCallback<Schema$Operation>
2843
2866
  ): void;
2844
- extract(callback: BodyResponseCallback<Schema$Operation>): void;
2845
- extract(
2867
+ create(callback: BodyResponseCallback<Schema$Operation>): void;
2868
+ create(
2846
2869
  paramsOrCallback?:
2847
- | Params$Resource$Organizations$Locations$Postures$Extract
2870
+ | Params$Resource$Organizations$Locations$Postures$Create
2848
2871
  | BodyResponseCallback<Schema$Operation>
2849
2872
  | BodyResponseCallback<Readable>,
2850
2873
  optionsOrCallback?:
@@ -2859,12 +2882,12 @@ export namespace securityposture_v1 {
2859
2882
  | Promise<GaxiosResponseWithHTTP2<Schema$Operation>>
2860
2883
  | Promise<GaxiosResponseWithHTTP2<Readable>> {
2861
2884
  let params = (paramsOrCallback ||
2862
- {}) as Params$Resource$Organizations$Locations$Postures$Extract;
2885
+ {}) as Params$Resource$Organizations$Locations$Postures$Create;
2863
2886
  let options = (optionsOrCallback || {}) as MethodOptions;
2864
2887
 
2865
2888
  if (typeof paramsOrCallback === 'function') {
2866
2889
  callback = paramsOrCallback;
2867
- params = {} as Params$Resource$Organizations$Locations$Postures$Extract;
2890
+ params = {} as Params$Resource$Organizations$Locations$Postures$Create;
2868
2891
  options = {};
2869
2892
  }
2870
2893
 
@@ -2878,7 +2901,7 @@ export namespace securityposture_v1 {
2878
2901
  const parameters = {
2879
2902
  options: Object.assign(
2880
2903
  {
2881
- url: (rootUrl + '/v1/{+parent}/postures:extract').replace(
2904
+ url: (rootUrl + '/v1/{+parent}/postures').replace(
2882
2905
  /([^:]\/)\/+/g,
2883
2906
  '$1'
2884
2907
  ),
@@ -2903,7 +2926,7 @@ export namespace securityposture_v1 {
2903
2926
  }
2904
2927
 
2905
2928
  /**
2906
- * Gets a single revision of a Posture.
2929
+ * Deletes all revisions of a Posture. You can only delete a posture if none of its revisions are deployed.
2907
2930
  * @example
2908
2931
  * ```js
2909
2932
  * // Before running the sample:
@@ -2932,27 +2955,21 @@ export namespace securityposture_v1 {
2932
2955
  * google.options({auth: authClient});
2933
2956
  *
2934
2957
  * // Do the magic
2935
- * const res = await securityposture.organizations.locations.postures.get({
2958
+ * const res = await securityposture.organizations.locations.postures.delete({
2959
+ * // Optional. An opaque identifier for the current version of the posture. If you provide this value, then it must match the existing value. If the values don't match, then the request fails with an ABORTED error. If you omit this value, then the posture is deleted regardless of its current `etag` value.
2960
+ * etag: 'placeholder-value',
2936
2961
  * // Required. The name of the Posture, in the format `organizations/{organization\}/locations/global/postures/{posture_id\}`.
2937
2962
  * name: 'organizations/my-organization/locations/my-location/postures/my-posture',
2938
- * // Optional. The posture revision to retrieve. If not specified, the most recently updated revision is retrieved.
2939
- * revisionId: 'placeholder-value',
2940
2963
  * });
2941
2964
  * console.log(res.data);
2942
2965
  *
2943
2966
  * // Example response
2944
2967
  * // {
2945
- * // "annotations": {},
2946
- * // "categories": [],
2947
- * // "createTime": "my_createTime",
2948
- * // "description": "my_description",
2949
- * // "etag": "my_etag",
2968
+ * // "done": false,
2969
+ * // "error": {},
2970
+ * // "metadata": {},
2950
2971
  * // "name": "my_name",
2951
- * // "policySets": [],
2952
- * // "reconciling": false,
2953
- * // "revisionId": "my_revisionId",
2954
- * // "state": "my_state",
2955
- * // "updateTime": "my_updateTime"
2972
+ * // "response": {}
2956
2973
  * // }
2957
2974
  * }
2958
2975
  *
@@ -2968,52 +2985,52 @@ export namespace securityposture_v1 {
2968
2985
  * @param callback - Optional callback that handles the response.
2969
2986
  * @returns A promise if used with async/await, or void if used with a callback.
2970
2987
  */
2971
- get(
2972
- params: Params$Resource$Organizations$Locations$Postures$Get,
2988
+ delete(
2989
+ params: Params$Resource$Organizations$Locations$Postures$Delete,
2973
2990
  options: StreamMethodOptions
2974
2991
  ): Promise<GaxiosResponseWithHTTP2<Readable>>;
2975
- get(
2976
- params?: Params$Resource$Organizations$Locations$Postures$Get,
2992
+ delete(
2993
+ params?: Params$Resource$Organizations$Locations$Postures$Delete,
2977
2994
  options?: MethodOptions
2978
- ): Promise<GaxiosResponseWithHTTP2<Schema$Posture>>;
2979
- get(
2980
- params: Params$Resource$Organizations$Locations$Postures$Get,
2995
+ ): Promise<GaxiosResponseWithHTTP2<Schema$Operation>>;
2996
+ delete(
2997
+ params: Params$Resource$Organizations$Locations$Postures$Delete,
2981
2998
  options: StreamMethodOptions | BodyResponseCallback<Readable>,
2982
2999
  callback: BodyResponseCallback<Readable>
2983
3000
  ): void;
2984
- get(
2985
- params: Params$Resource$Organizations$Locations$Postures$Get,
2986
- options: MethodOptions | BodyResponseCallback<Schema$Posture>,
2987
- callback: BodyResponseCallback<Schema$Posture>
3001
+ delete(
3002
+ params: Params$Resource$Organizations$Locations$Postures$Delete,
3003
+ options: MethodOptions | BodyResponseCallback<Schema$Operation>,
3004
+ callback: BodyResponseCallback<Schema$Operation>
2988
3005
  ): void;
2989
- get(
2990
- params: Params$Resource$Organizations$Locations$Postures$Get,
2991
- callback: BodyResponseCallback<Schema$Posture>
3006
+ delete(
3007
+ params: Params$Resource$Organizations$Locations$Postures$Delete,
3008
+ callback: BodyResponseCallback<Schema$Operation>
2992
3009
  ): void;
2993
- get(callback: BodyResponseCallback<Schema$Posture>): void;
2994
- get(
3010
+ delete(callback: BodyResponseCallback<Schema$Operation>): void;
3011
+ delete(
2995
3012
  paramsOrCallback?:
2996
- | Params$Resource$Organizations$Locations$Postures$Get
2997
- | BodyResponseCallback<Schema$Posture>
3013
+ | Params$Resource$Organizations$Locations$Postures$Delete
3014
+ | BodyResponseCallback<Schema$Operation>
2998
3015
  | BodyResponseCallback<Readable>,
2999
3016
  optionsOrCallback?:
3000
3017
  | MethodOptions
3001
3018
  | StreamMethodOptions
3002
- | BodyResponseCallback<Schema$Posture>
3019
+ | BodyResponseCallback<Schema$Operation>
3003
3020
  | BodyResponseCallback<Readable>,
3004
3021
  callback?:
3005
- BodyResponseCallback<Schema$Posture> | BodyResponseCallback<Readable>
3022
+ BodyResponseCallback<Schema$Operation> | BodyResponseCallback<Readable>
3006
3023
  ):
3007
3024
  | void
3008
- | Promise<GaxiosResponseWithHTTP2<Schema$Posture>>
3025
+ | Promise<GaxiosResponseWithHTTP2<Schema$Operation>>
3009
3026
  | Promise<GaxiosResponseWithHTTP2<Readable>> {
3010
3027
  let params = (paramsOrCallback ||
3011
- {}) as Params$Resource$Organizations$Locations$Postures$Get;
3028
+ {}) as Params$Resource$Organizations$Locations$Postures$Delete;
3012
3029
  let options = (optionsOrCallback || {}) as MethodOptions;
3013
3030
 
3014
3031
  if (typeof paramsOrCallback === 'function') {
3015
3032
  callback = paramsOrCallback;
3016
- params = {} as Params$Resource$Organizations$Locations$Postures$Get;
3033
+ params = {} as Params$Resource$Organizations$Locations$Postures$Delete;
3017
3034
  options = {};
3018
3035
  }
3019
3036
 
@@ -3028,7 +3045,7 @@ export namespace securityposture_v1 {
3028
3045
  options: Object.assign(
3029
3046
  {
3030
3047
  url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'),
3031
- method: 'GET',
3048
+ method: 'DELETE',
3032
3049
  apiVersion: '',
3033
3050
  },
3034
3051
  options
@@ -3039,17 +3056,17 @@ export namespace securityposture_v1 {
3039
3056
  context: this.context,
3040
3057
  };
3041
3058
  if (callback) {
3042
- createAPIRequest<Schema$Posture>(
3059
+ createAPIRequest<Schema$Operation>(
3043
3060
  parameters,
3044
3061
  callback as BodyResponseCallback<unknown>
3045
3062
  );
3046
3063
  } else {
3047
- return createAPIRequest<Schema$Posture>(parameters);
3064
+ return createAPIRequest<Schema$Operation>(parameters);
3048
3065
  }
3049
3066
  }
3050
3067
 
3051
3068
  /**
3052
- * Lists the most recent revisions of all Posture resources in a specified organization and location.
3069
+ * Extracts existing policies from an organization, folder, or project, and applies them to another organization, folder, or project as a Posture. If the other organization, folder, or project already has a posture, then the result of the long-running operation is an ALREADY_EXISTS error.
3053
3070
  * @example
3054
3071
  * ```js
3055
3072
  * // Before running the sample:
@@ -3078,23 +3095,28 @@ export namespace securityposture_v1 {
3078
3095
  * google.options({auth: authClient});
3079
3096
  *
3080
3097
  * // Do the magic
3081
- * const res = await securityposture.organizations.locations.postures.list({
3082
- * // Optional. A filter to apply to the list of postures, in the format defined in [AIP-160: Filtering](https://google.aip.dev/160).
3083
- * filter: 'placeholder-value',
3084
- * // The maximum number of postures to return. The default value is `500`. If you exceed the maximum value of `1000`, then the service uses the maximum value.
3085
- * pageSize: 'placeholder-value',
3086
- * // A pagination token returned from a previous request to list postures. Provide this token to retrieve the next page of results.
3087
- * pageToken: 'placeholder-value',
3098
+ * const res = await securityposture.organizations.locations.postures.extract({
3088
3099
  * // Required. The parent resource name, in the format `organizations/{organization\}/locations/global`.
3089
3100
  * parent: 'organizations/my-organization/locations/my-location',
3101
+ *
3102
+ * // Request body metadata
3103
+ * requestBody: {
3104
+ * // request body parameters
3105
+ * // {
3106
+ * // "postureId": "my_postureId",
3107
+ * // "workload": "my_workload"
3108
+ * // }
3109
+ * },
3090
3110
  * });
3091
3111
  * console.log(res.data);
3092
3112
  *
3093
3113
  * // Example response
3094
3114
  * // {
3095
- * // "nextPageToken": "my_nextPageToken",
3096
- * // "postures": [],
3097
- * // "unreachable": []
3115
+ * // "done": false,
3116
+ * // "error": {},
3117
+ * // "metadata": {},
3118
+ * // "name": "my_name",
3119
+ * // "response": {}
3098
3120
  * // }
3099
3121
  * }
3100
3122
  *
@@ -3110,54 +3132,52 @@ export namespace securityposture_v1 {
3110
3132
  * @param callback - Optional callback that handles the response.
3111
3133
  * @returns A promise if used with async/await, or void if used with a callback.
3112
3134
  */
3113
- list(
3114
- params: Params$Resource$Organizations$Locations$Postures$List,
3135
+ extract(
3136
+ params: Params$Resource$Organizations$Locations$Postures$Extract,
3115
3137
  options: StreamMethodOptions
3116
3138
  ): Promise<GaxiosResponseWithHTTP2<Readable>>;
3117
- list(
3118
- params?: Params$Resource$Organizations$Locations$Postures$List,
3139
+ extract(
3140
+ params?: Params$Resource$Organizations$Locations$Postures$Extract,
3119
3141
  options?: MethodOptions
3120
- ): Promise<GaxiosResponseWithHTTP2<Schema$ListPosturesResponse>>;
3121
- list(
3122
- params: Params$Resource$Organizations$Locations$Postures$List,
3142
+ ): Promise<GaxiosResponseWithHTTP2<Schema$Operation>>;
3143
+ extract(
3144
+ params: Params$Resource$Organizations$Locations$Postures$Extract,
3123
3145
  options: StreamMethodOptions | BodyResponseCallback<Readable>,
3124
3146
  callback: BodyResponseCallback<Readable>
3125
3147
  ): void;
3126
- list(
3127
- params: Params$Resource$Organizations$Locations$Postures$List,
3128
- options:
3129
- MethodOptions | BodyResponseCallback<Schema$ListPosturesResponse>,
3130
- callback: BodyResponseCallback<Schema$ListPosturesResponse>
3148
+ extract(
3149
+ params: Params$Resource$Organizations$Locations$Postures$Extract,
3150
+ options: MethodOptions | BodyResponseCallback<Schema$Operation>,
3151
+ callback: BodyResponseCallback<Schema$Operation>
3131
3152
  ): void;
3132
- list(
3133
- params: Params$Resource$Organizations$Locations$Postures$List,
3134
- callback: BodyResponseCallback<Schema$ListPosturesResponse>
3153
+ extract(
3154
+ params: Params$Resource$Organizations$Locations$Postures$Extract,
3155
+ callback: BodyResponseCallback<Schema$Operation>
3135
3156
  ): void;
3136
- list(callback: BodyResponseCallback<Schema$ListPosturesResponse>): void;
3137
- list(
3157
+ extract(callback: BodyResponseCallback<Schema$Operation>): void;
3158
+ extract(
3138
3159
  paramsOrCallback?:
3139
- | Params$Resource$Organizations$Locations$Postures$List
3140
- | BodyResponseCallback<Schema$ListPosturesResponse>
3160
+ | Params$Resource$Organizations$Locations$Postures$Extract
3161
+ | BodyResponseCallback<Schema$Operation>
3141
3162
  | BodyResponseCallback<Readable>,
3142
3163
  optionsOrCallback?:
3143
3164
  | MethodOptions
3144
3165
  | StreamMethodOptions
3145
- | BodyResponseCallback<Schema$ListPosturesResponse>
3166
+ | BodyResponseCallback<Schema$Operation>
3146
3167
  | BodyResponseCallback<Readable>,
3147
3168
  callback?:
3148
- | BodyResponseCallback<Schema$ListPosturesResponse>
3149
- | BodyResponseCallback<Readable>
3169
+ BodyResponseCallback<Schema$Operation> | BodyResponseCallback<Readable>
3150
3170
  ):
3151
3171
  | void
3152
- | Promise<GaxiosResponseWithHTTP2<Schema$ListPosturesResponse>>
3172
+ | Promise<GaxiosResponseWithHTTP2<Schema$Operation>>
3153
3173
  | Promise<GaxiosResponseWithHTTP2<Readable>> {
3154
3174
  let params = (paramsOrCallback ||
3155
- {}) as Params$Resource$Organizations$Locations$Postures$List;
3175
+ {}) as Params$Resource$Organizations$Locations$Postures$Extract;
3156
3176
  let options = (optionsOrCallback || {}) as MethodOptions;
3157
3177
 
3158
3178
  if (typeof paramsOrCallback === 'function') {
3159
3179
  callback = paramsOrCallback;
3160
- params = {} as Params$Resource$Organizations$Locations$Postures$List;
3180
+ params = {} as Params$Resource$Organizations$Locations$Postures$Extract;
3161
3181
  options = {};
3162
3182
  }
3163
3183
 
@@ -3171,11 +3191,11 @@ export namespace securityposture_v1 {
3171
3191
  const parameters = {
3172
3192
  options: Object.assign(
3173
3193
  {
3174
- url: (rootUrl + '/v1/{+parent}/postures').replace(
3194
+ url: (rootUrl + '/v1/{+parent}/postures:extract').replace(
3175
3195
  /([^:]\/)\/+/g,
3176
3196
  '$1'
3177
3197
  ),
3178
- method: 'GET',
3198
+ method: 'POST',
3179
3199
  apiVersion: '',
3180
3200
  },
3181
3201
  options
@@ -3186,17 +3206,17 @@ export namespace securityposture_v1 {
3186
3206
  context: this.context,
3187
3207
  };
3188
3208
  if (callback) {
3189
- createAPIRequest<Schema$ListPosturesResponse>(
3209
+ createAPIRequest<Schema$Operation>(
3190
3210
  parameters,
3191
3211
  callback as BodyResponseCallback<unknown>
3192
3212
  );
3193
3213
  } else {
3194
- return createAPIRequest<Schema$ListPosturesResponse>(parameters);
3214
+ return createAPIRequest<Schema$Operation>(parameters);
3195
3215
  }
3196
3216
  }
3197
3217
 
3198
3218
  /**
3199
- * Lists all revisions of a single Posture.
3219
+ * Gets a single revision of a Posture.
3200
3220
  * @example
3201
3221
  * ```js
3202
3222
  * // Before running the sample:
@@ -3225,21 +3245,27 @@ export namespace securityposture_v1 {
3225
3245
  * google.options({auth: authClient});
3226
3246
  *
3227
3247
  * // Do the magic
3228
- * const res =
3229
- * await securityposture.organizations.locations.postures.listRevisions({
3230
- * // Required. The name of the Posture, in the format `organizations/{organization\}/locations/global/postures/{posture_id\}`.
3231
- * name: 'organizations/my-organization/locations/my-location/postures/my-posture',
3232
- * // Optional. The maximum number of posture revisions to return. The default value is `500`. If you exceed the maximum value of `1000`, then the service uses the maximum value.
3233
- * pageSize: 'placeholder-value',
3234
- * // Optional. A pagination token from a previous request to list posture revisions. Provide this token to retrieve the next page of results.
3235
- * pageToken: 'placeholder-value',
3236
- * });
3248
+ * const res = await securityposture.organizations.locations.postures.get({
3249
+ * // Required. The name of the Posture, in the format `organizations/{organization\}/locations/global/postures/{posture_id\}`.
3250
+ * name: 'organizations/my-organization/locations/my-location/postures/my-posture',
3251
+ * // Optional. The posture revision to retrieve. If not specified, the most recently updated revision is retrieved.
3252
+ * revisionId: 'placeholder-value',
3253
+ * });
3237
3254
  * console.log(res.data);
3238
3255
  *
3239
3256
  * // Example response
3240
3257
  * // {
3241
- * // "nextPageToken": "my_nextPageToken",
3242
- * // "revisions": []
3258
+ * // "annotations": {},
3259
+ * // "categories": [],
3260
+ * // "createTime": "my_createTime",
3261
+ * // "description": "my_description",
3262
+ * // "etag": "my_etag",
3263
+ * // "name": "my_name",
3264
+ * // "policySets": [],
3265
+ * // "reconciling": false,
3266
+ * // "revisionId": "my_revisionId",
3267
+ * // "state": "my_state",
3268
+ * // "updateTime": "my_updateTime"
3243
3269
  * // }
3244
3270
  * }
3245
3271
  *
@@ -3255,58 +3281,52 @@ export namespace securityposture_v1 {
3255
3281
  * @param callback - Optional callback that handles the response.
3256
3282
  * @returns A promise if used with async/await, or void if used with a callback.
3257
3283
  */
3258
- listRevisions(
3259
- params: Params$Resource$Organizations$Locations$Postures$Listrevisions,
3284
+ get(
3285
+ params: Params$Resource$Organizations$Locations$Postures$Get,
3260
3286
  options: StreamMethodOptions
3261
3287
  ): Promise<GaxiosResponseWithHTTP2<Readable>>;
3262
- listRevisions(
3263
- params?: Params$Resource$Organizations$Locations$Postures$Listrevisions,
3288
+ get(
3289
+ params?: Params$Resource$Organizations$Locations$Postures$Get,
3264
3290
  options?: MethodOptions
3265
- ): Promise<GaxiosResponseWithHTTP2<Schema$ListPostureRevisionsResponse>>;
3266
- listRevisions(
3267
- params: Params$Resource$Organizations$Locations$Postures$Listrevisions,
3291
+ ): Promise<GaxiosResponseWithHTTP2<Schema$Posture>>;
3292
+ get(
3293
+ params: Params$Resource$Organizations$Locations$Postures$Get,
3268
3294
  options: StreamMethodOptions | BodyResponseCallback<Readable>,
3269
3295
  callback: BodyResponseCallback<Readable>
3270
3296
  ): void;
3271
- listRevisions(
3272
- params: Params$Resource$Organizations$Locations$Postures$Listrevisions,
3273
- options:
3274
- | MethodOptions
3275
- | BodyResponseCallback<Schema$ListPostureRevisionsResponse>,
3276
- callback: BodyResponseCallback<Schema$ListPostureRevisionsResponse>
3277
- ): void;
3278
- listRevisions(
3279
- params: Params$Resource$Organizations$Locations$Postures$Listrevisions,
3280
- callback: BodyResponseCallback<Schema$ListPostureRevisionsResponse>
3297
+ get(
3298
+ params: Params$Resource$Organizations$Locations$Postures$Get,
3299
+ options: MethodOptions | BodyResponseCallback<Schema$Posture>,
3300
+ callback: BodyResponseCallback<Schema$Posture>
3281
3301
  ): void;
3282
- listRevisions(
3283
- callback: BodyResponseCallback<Schema$ListPostureRevisionsResponse>
3302
+ get(
3303
+ params: Params$Resource$Organizations$Locations$Postures$Get,
3304
+ callback: BodyResponseCallback<Schema$Posture>
3284
3305
  ): void;
3285
- listRevisions(
3306
+ get(callback: BodyResponseCallback<Schema$Posture>): void;
3307
+ get(
3286
3308
  paramsOrCallback?:
3287
- | Params$Resource$Organizations$Locations$Postures$Listrevisions
3288
- | BodyResponseCallback<Schema$ListPostureRevisionsResponse>
3309
+ | Params$Resource$Organizations$Locations$Postures$Get
3310
+ | BodyResponseCallback<Schema$Posture>
3289
3311
  | BodyResponseCallback<Readable>,
3290
3312
  optionsOrCallback?:
3291
3313
  | MethodOptions
3292
3314
  | StreamMethodOptions
3293
- | BodyResponseCallback<Schema$ListPostureRevisionsResponse>
3315
+ | BodyResponseCallback<Schema$Posture>
3294
3316
  | BodyResponseCallback<Readable>,
3295
3317
  callback?:
3296
- | BodyResponseCallback<Schema$ListPostureRevisionsResponse>
3297
- | BodyResponseCallback<Readable>
3318
+ BodyResponseCallback<Schema$Posture> | BodyResponseCallback<Readable>
3298
3319
  ):
3299
3320
  | void
3300
- | Promise<GaxiosResponseWithHTTP2<Schema$ListPostureRevisionsResponse>>
3321
+ | Promise<GaxiosResponseWithHTTP2<Schema$Posture>>
3301
3322
  | Promise<GaxiosResponseWithHTTP2<Readable>> {
3302
3323
  let params = (paramsOrCallback ||
3303
- {}) as Params$Resource$Organizations$Locations$Postures$Listrevisions;
3324
+ {}) as Params$Resource$Organizations$Locations$Postures$Get;
3304
3325
  let options = (optionsOrCallback || {}) as MethodOptions;
3305
3326
 
3306
3327
  if (typeof paramsOrCallback === 'function') {
3307
3328
  callback = paramsOrCallback;
3308
- params =
3309
- {} as Params$Resource$Organizations$Locations$Postures$Listrevisions;
3329
+ params = {} as Params$Resource$Organizations$Locations$Postures$Get;
3310
3330
  options = {};
3311
3331
  }
3312
3332
 
@@ -3320,10 +3340,7 @@ export namespace securityposture_v1 {
3320
3340
  const parameters = {
3321
3341
  options: Object.assign(
3322
3342
  {
3323
- url: (rootUrl + '/v1/{+name}:listRevisions').replace(
3324
- /([^:]\/)\/+/g,
3325
- '$1'
3326
- ),
3343
+ url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'),
3327
3344
  method: 'GET',
3328
3345
  apiVersion: '',
3329
3346
  },
@@ -3335,19 +3352,17 @@ export namespace securityposture_v1 {
3335
3352
  context: this.context,
3336
3353
  };
3337
3354
  if (callback) {
3338
- createAPIRequest<Schema$ListPostureRevisionsResponse>(
3355
+ createAPIRequest<Schema$Posture>(
3339
3356
  parameters,
3340
3357
  callback as BodyResponseCallback<unknown>
3341
3358
  );
3342
3359
  } else {
3343
- return createAPIRequest<Schema$ListPostureRevisionsResponse>(
3344
- parameters
3345
- );
3360
+ return createAPIRequest<Schema$Posture>(parameters);
3346
3361
  }
3347
3362
  }
3348
3363
 
3349
3364
  /**
3350
- * Updates a revision of an existing Posture. If the posture revision that you update is currently deployed, then a new revision of the posture is created. To prevent concurrent updates from overwriting each other, always follow the read-modify-write pattern when you update a posture: 1. Call GetPosture to get the current version of the posture. 2. Update the fields in the posture as needed. 3. Call UpdatePosture to update the posture. Ensure that your request includes the `etag` value from the GetPosture response. **Important:** If you omit the `etag` when you call UpdatePosture, then the updated posture unconditionally overwrites the existing posture.
3365
+ * Lists the most recent revisions of all Posture resources in a specified organization and location.
3351
3366
  * @example
3352
3367
  * ```js
3353
3368
  * // Before running the sample:
@@ -3376,41 +3391,23 @@ export namespace securityposture_v1 {
3376
3391
  * google.options({auth: authClient});
3377
3392
  *
3378
3393
  * // Do the magic
3379
- * const res = await securityposture.organizations.locations.postures.patch({
3380
- * // Required. Identifier. The name of the posture, in the format `organizations/{organization\}/locations/global/postures/{posture_id\}`.
3381
- * name: 'organizations/my-organization/locations/my-location/postures/my-posture',
3382
- * // Required. The revision ID of the posture to update. If the posture revision that you update is currently deployed, then a new revision of the posture is created.
3383
- * revisionId: 'placeholder-value',
3384
- * // Required. The fields in the Posture to update. You can update only the following fields: * Posture.description * Posture.policy_sets * Posture.state
3385
- * updateMask: 'placeholder-value',
3386
- *
3387
- * // Request body metadata
3388
- * requestBody: {
3389
- * // request body parameters
3390
- * // {
3391
- * // "annotations": {},
3392
- * // "categories": [],
3393
- * // "createTime": "my_createTime",
3394
- * // "description": "my_description",
3395
- * // "etag": "my_etag",
3396
- * // "name": "my_name",
3397
- * // "policySets": [],
3398
- * // "reconciling": false,
3399
- * // "revisionId": "my_revisionId",
3400
- * // "state": "my_state",
3401
- * // "updateTime": "my_updateTime"
3402
- * // }
3403
- * },
3394
+ * const res = await securityposture.organizations.locations.postures.list({
3395
+ * // Optional. A filter to apply to the list of postures, in the format defined in [AIP-160: Filtering](https://google.aip.dev/160).
3396
+ * filter: 'placeholder-value',
3397
+ * // The maximum number of postures to return. The default value is `500`. If you exceed the maximum value of `1000`, then the service uses the maximum value.
3398
+ * pageSize: 'placeholder-value',
3399
+ * // A pagination token returned from a previous request to list postures. Provide this token to retrieve the next page of results.
3400
+ * pageToken: 'placeholder-value',
3401
+ * // Required. The parent resource name, in the format `organizations/{organization\}/locations/global`.
3402
+ * parent: 'organizations/my-organization/locations/my-location',
3404
3403
  * });
3405
3404
  * console.log(res.data);
3406
3405
  *
3407
3406
  * // Example response
3408
3407
  * // {
3409
- * // "done": false,
3410
- * // "error": {},
3411
- * // "metadata": {},
3412
- * // "name": "my_name",
3413
- * // "response": {}
3408
+ * // "nextPageToken": "my_nextPageToken",
3409
+ * // "postures": [],
3410
+ * // "unreachable": []
3414
3411
  * // }
3415
3412
  * }
3416
3413
  *
@@ -3426,52 +3423,54 @@ export namespace securityposture_v1 {
3426
3423
  * @param callback - Optional callback that handles the response.
3427
3424
  * @returns A promise if used with async/await, or void if used with a callback.
3428
3425
  */
3429
- patch(
3430
- params: Params$Resource$Organizations$Locations$Postures$Patch,
3426
+ list(
3427
+ params: Params$Resource$Organizations$Locations$Postures$List,
3431
3428
  options: StreamMethodOptions
3432
3429
  ): Promise<GaxiosResponseWithHTTP2<Readable>>;
3433
- patch(
3434
- params?: Params$Resource$Organizations$Locations$Postures$Patch,
3430
+ list(
3431
+ params?: Params$Resource$Organizations$Locations$Postures$List,
3435
3432
  options?: MethodOptions
3436
- ): Promise<GaxiosResponseWithHTTP2<Schema$Operation>>;
3437
- patch(
3438
- params: Params$Resource$Organizations$Locations$Postures$Patch,
3433
+ ): Promise<GaxiosResponseWithHTTP2<Schema$ListPosturesResponse>>;
3434
+ list(
3435
+ params: Params$Resource$Organizations$Locations$Postures$List,
3439
3436
  options: StreamMethodOptions | BodyResponseCallback<Readable>,
3440
3437
  callback: BodyResponseCallback<Readable>
3441
3438
  ): void;
3442
- patch(
3443
- params: Params$Resource$Organizations$Locations$Postures$Patch,
3444
- options: MethodOptions | BodyResponseCallback<Schema$Operation>,
3445
- callback: BodyResponseCallback<Schema$Operation>
3439
+ list(
3440
+ params: Params$Resource$Organizations$Locations$Postures$List,
3441
+ options:
3442
+ MethodOptions | BodyResponseCallback<Schema$ListPosturesResponse>,
3443
+ callback: BodyResponseCallback<Schema$ListPosturesResponse>
3446
3444
  ): void;
3447
- patch(
3448
- params: Params$Resource$Organizations$Locations$Postures$Patch,
3449
- callback: BodyResponseCallback<Schema$Operation>
3445
+ list(
3446
+ params: Params$Resource$Organizations$Locations$Postures$List,
3447
+ callback: BodyResponseCallback<Schema$ListPosturesResponse>
3450
3448
  ): void;
3451
- patch(callback: BodyResponseCallback<Schema$Operation>): void;
3452
- patch(
3449
+ list(callback: BodyResponseCallback<Schema$ListPosturesResponse>): void;
3450
+ list(
3453
3451
  paramsOrCallback?:
3454
- | Params$Resource$Organizations$Locations$Postures$Patch
3455
- | BodyResponseCallback<Schema$Operation>
3452
+ | Params$Resource$Organizations$Locations$Postures$List
3453
+ | BodyResponseCallback<Schema$ListPosturesResponse>
3456
3454
  | BodyResponseCallback<Readable>,
3457
3455
  optionsOrCallback?:
3458
3456
  | MethodOptions
3459
3457
  | StreamMethodOptions
3460
- | BodyResponseCallback<Schema$Operation>
3458
+ | BodyResponseCallback<Schema$ListPosturesResponse>
3461
3459
  | BodyResponseCallback<Readable>,
3462
3460
  callback?:
3463
- BodyResponseCallback<Schema$Operation> | BodyResponseCallback<Readable>
3461
+ | BodyResponseCallback<Schema$ListPosturesResponse>
3462
+ | BodyResponseCallback<Readable>
3464
3463
  ):
3465
3464
  | void
3466
- | Promise<GaxiosResponseWithHTTP2<Schema$Operation>>
3465
+ | Promise<GaxiosResponseWithHTTP2<Schema$ListPosturesResponse>>
3467
3466
  | Promise<GaxiosResponseWithHTTP2<Readable>> {
3468
3467
  let params = (paramsOrCallback ||
3469
- {}) as Params$Resource$Organizations$Locations$Postures$Patch;
3468
+ {}) as Params$Resource$Organizations$Locations$Postures$List;
3470
3469
  let options = (optionsOrCallback || {}) as MethodOptions;
3471
3470
 
3472
3471
  if (typeof paramsOrCallback === 'function') {
3473
3472
  callback = paramsOrCallback;
3474
- params = {} as Params$Resource$Organizations$Locations$Postures$Patch;
3473
+ params = {} as Params$Resource$Organizations$Locations$Postures$List;
3475
3474
  options = {};
3476
3475
  }
3477
3476
 
@@ -3485,134 +3484,32 @@ export namespace securityposture_v1 {
3485
3484
  const parameters = {
3486
3485
  options: Object.assign(
3487
3486
  {
3488
- url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'),
3489
- method: 'PATCH',
3487
+ url: (rootUrl + '/v1/{+parent}/postures').replace(
3488
+ /([^:]\/)\/+/g,
3489
+ '$1'
3490
+ ),
3491
+ method: 'GET',
3490
3492
  apiVersion: '',
3491
3493
  },
3492
3494
  options
3493
3495
  ),
3494
3496
  params,
3495
- requiredParams: ['name'],
3496
- pathParams: ['name'],
3497
+ requiredParams: ['parent'],
3498
+ pathParams: ['parent'],
3497
3499
  context: this.context,
3498
3500
  };
3499
3501
  if (callback) {
3500
- createAPIRequest<Schema$Operation>(
3502
+ createAPIRequest<Schema$ListPosturesResponse>(
3501
3503
  parameters,
3502
3504
  callback as BodyResponseCallback<unknown>
3503
3505
  );
3504
3506
  } else {
3505
- return createAPIRequest<Schema$Operation>(parameters);
3507
+ return createAPIRequest<Schema$ListPosturesResponse>(parameters);
3506
3508
  }
3507
3509
  }
3508
- }
3509
-
3510
- export interface Params$Resource$Organizations$Locations$Postures$Create extends StandardParameters {
3511
- /**
3512
- * Required. The parent resource name, in the format `organizations/{organization\}/locations/global`.
3513
- */
3514
- parent?: string;
3515
- /**
3516
- * Required. An identifier for the posture.
3517
- */
3518
- postureId?: string;
3519
-
3520
- /**
3521
- * Request body metadata
3522
- */
3523
- requestBody?: Schema$Posture;
3524
- }
3525
- export interface Params$Resource$Organizations$Locations$Postures$Delete extends StandardParameters {
3526
- /**
3527
- * Optional. An opaque identifier for the current version of the posture. If you provide this value, then it must match the existing value. If the values don't match, then the request fails with an ABORTED error. If you omit this value, then the posture is deleted regardless of its current `etag` value.
3528
- */
3529
- etag?: string;
3530
- /**
3531
- * Required. The name of the Posture, in the format `organizations/{organization\}/locations/global/postures/{posture_id\}`.
3532
- */
3533
- name?: string;
3534
- }
3535
- export interface Params$Resource$Organizations$Locations$Postures$Extract extends StandardParameters {
3536
- /**
3537
- * Required. The parent resource name, in the format `organizations/{organization\}/locations/global`.
3538
- */
3539
- parent?: string;
3540
-
3541
- /**
3542
- * Request body metadata
3543
- */
3544
- requestBody?: Schema$ExtractPostureRequest;
3545
- }
3546
- export interface Params$Resource$Organizations$Locations$Postures$Get extends StandardParameters {
3547
- /**
3548
- * Required. The name of the Posture, in the format `organizations/{organization\}/locations/global/postures/{posture_id\}`.
3549
- */
3550
- name?: string;
3551
- /**
3552
- * Optional. The posture revision to retrieve. If not specified, the most recently updated revision is retrieved.
3553
- */
3554
- revisionId?: string;
3555
- }
3556
- export interface Params$Resource$Organizations$Locations$Postures$List extends StandardParameters {
3557
- /**
3558
- * Optional. A filter to apply to the list of postures, in the format defined in [AIP-160: Filtering](https://google.aip.dev/160).
3559
- */
3560
- filter?: string;
3561
- /**
3562
- * The maximum number of postures to return. The default value is `500`. If you exceed the maximum value of `1000`, then the service uses the maximum value.
3563
- */
3564
- pageSize?: number;
3565
- /**
3566
- * A pagination token returned from a previous request to list postures. Provide this token to retrieve the next page of results.
3567
- */
3568
- pageToken?: string;
3569
- /**
3570
- * Required. The parent resource name, in the format `organizations/{organization\}/locations/global`.
3571
- */
3572
- parent?: string;
3573
- }
3574
- export interface Params$Resource$Organizations$Locations$Postures$Listrevisions extends StandardParameters {
3575
- /**
3576
- * Required. The name of the Posture, in the format `organizations/{organization\}/locations/global/postures/{posture_id\}`.
3577
- */
3578
- name?: string;
3579
- /**
3580
- * Optional. The maximum number of posture revisions to return. The default value is `500`. If you exceed the maximum value of `1000`, then the service uses the maximum value.
3581
- */
3582
- pageSize?: number;
3583
- /**
3584
- * Optional. A pagination token from a previous request to list posture revisions. Provide this token to retrieve the next page of results.
3585
- */
3586
- pageToken?: string;
3587
- }
3588
- export interface Params$Resource$Organizations$Locations$Postures$Patch extends StandardParameters {
3589
- /**
3590
- * Required. Identifier. The name of the posture, in the format `organizations/{organization\}/locations/global/postures/{posture_id\}`.
3591
- */
3592
- name?: string;
3593
- /**
3594
- * Required. The revision ID of the posture to update. If the posture revision that you update is currently deployed, then a new revision of the posture is created.
3595
- */
3596
- revisionId?: string;
3597
- /**
3598
- * Required. The fields in the Posture to update. You can update only the following fields: * Posture.description * Posture.policy_sets * Posture.state
3599
- */
3600
- updateMask?: string;
3601
-
3602
- /**
3603
- * Request body metadata
3604
- */
3605
- requestBody?: Schema$Posture;
3606
- }
3607
-
3608
- export class Resource$Organizations$Locations$Posturetemplates {
3609
- context: APIRequestContext;
3610
- constructor(context: APIRequestContext) {
3611
- this.context = context;
3612
- }
3613
3510
 
3614
3511
  /**
3615
- * Gets a single revision of a PostureTemplate.
3512
+ * Lists all revisions of a single Posture.
3616
3513
  * @example
3617
3514
  * ```js
3618
3515
  * // Before running the sample:
@@ -3642,22 +3539,20 @@ export namespace securityposture_v1 {
3642
3539
  *
3643
3540
  * // Do the magic
3644
3541
  * const res =
3645
- * await securityposture.organizations.locations.postureTemplates.get({
3646
- * // Required. The name of the PostureTemplate, in the format `organizations/{organization\}/locations/global/postureTemplates/{posture_template\}`.
3647
- * name: 'organizations/my-organization/locations/my-location/postureTemplates/my-postureTemplate',
3648
- * // Optional. The posture template revision to retrieve. If not specified, the most recently updated revision is retrieved.
3649
- * revisionId: 'placeholder-value',
3542
+ * await securityposture.organizations.locations.postures.listRevisions({
3543
+ * // Required. The name of the Posture, in the format `organizations/{organization\}/locations/global/postures/{posture_id\}`.
3544
+ * name: 'organizations/my-organization/locations/my-location/postures/my-posture',
3545
+ * // Optional. The maximum number of posture revisions to return. The default value is `500`. If you exceed the maximum value of `1000`, then the service uses the maximum value.
3546
+ * pageSize: 'placeholder-value',
3547
+ * // Optional. A pagination token from a previous request to list posture revisions. Provide this token to retrieve the next page of results.
3548
+ * pageToken: 'placeholder-value',
3650
3549
  * });
3651
3550
  * console.log(res.data);
3652
3551
  *
3653
3552
  * // Example response
3654
3553
  * // {
3655
- * // "categories": [],
3656
- * // "description": "my_description",
3657
- * // "name": "my_name",
3658
- * // "policySets": [],
3659
- * // "revisionId": "my_revisionId",
3660
- * // "state": "my_state"
3554
+ * // "nextPageToken": "my_nextPageToken",
3555
+ * // "revisions": []
3661
3556
  * // }
3662
3557
  * }
3663
3558
  *
@@ -3673,54 +3568,58 @@ export namespace securityposture_v1 {
3673
3568
  * @param callback - Optional callback that handles the response.
3674
3569
  * @returns A promise if used with async/await, or void if used with a callback.
3675
3570
  */
3676
- get(
3677
- params: Params$Resource$Organizations$Locations$Posturetemplates$Get,
3571
+ listRevisions(
3572
+ params: Params$Resource$Organizations$Locations$Postures$Listrevisions,
3678
3573
  options: StreamMethodOptions
3679
3574
  ): Promise<GaxiosResponseWithHTTP2<Readable>>;
3680
- get(
3681
- params?: Params$Resource$Organizations$Locations$Posturetemplates$Get,
3575
+ listRevisions(
3576
+ params?: Params$Resource$Organizations$Locations$Postures$Listrevisions,
3682
3577
  options?: MethodOptions
3683
- ): Promise<GaxiosResponseWithHTTP2<Schema$PostureTemplate>>;
3684
- get(
3685
- params: Params$Resource$Organizations$Locations$Posturetemplates$Get,
3578
+ ): Promise<GaxiosResponseWithHTTP2<Schema$ListPostureRevisionsResponse>>;
3579
+ listRevisions(
3580
+ params: Params$Resource$Organizations$Locations$Postures$Listrevisions,
3686
3581
  options: StreamMethodOptions | BodyResponseCallback<Readable>,
3687
3582
  callback: BodyResponseCallback<Readable>
3688
3583
  ): void;
3689
- get(
3690
- params: Params$Resource$Organizations$Locations$Posturetemplates$Get,
3691
- options: MethodOptions | BodyResponseCallback<Schema$PostureTemplate>,
3692
- callback: BodyResponseCallback<Schema$PostureTemplate>
3584
+ listRevisions(
3585
+ params: Params$Resource$Organizations$Locations$Postures$Listrevisions,
3586
+ options:
3587
+ | MethodOptions
3588
+ | BodyResponseCallback<Schema$ListPostureRevisionsResponse>,
3589
+ callback: BodyResponseCallback<Schema$ListPostureRevisionsResponse>
3693
3590
  ): void;
3694
- get(
3695
- params: Params$Resource$Organizations$Locations$Posturetemplates$Get,
3696
- callback: BodyResponseCallback<Schema$PostureTemplate>
3591
+ listRevisions(
3592
+ params: Params$Resource$Organizations$Locations$Postures$Listrevisions,
3593
+ callback: BodyResponseCallback<Schema$ListPostureRevisionsResponse>
3697
3594
  ): void;
3698
- get(callback: BodyResponseCallback<Schema$PostureTemplate>): void;
3699
- get(
3595
+ listRevisions(
3596
+ callback: BodyResponseCallback<Schema$ListPostureRevisionsResponse>
3597
+ ): void;
3598
+ listRevisions(
3700
3599
  paramsOrCallback?:
3701
- | Params$Resource$Organizations$Locations$Posturetemplates$Get
3702
- | BodyResponseCallback<Schema$PostureTemplate>
3600
+ | Params$Resource$Organizations$Locations$Postures$Listrevisions
3601
+ | BodyResponseCallback<Schema$ListPostureRevisionsResponse>
3703
3602
  | BodyResponseCallback<Readable>,
3704
3603
  optionsOrCallback?:
3705
3604
  | MethodOptions
3706
3605
  | StreamMethodOptions
3707
- | BodyResponseCallback<Schema$PostureTemplate>
3606
+ | BodyResponseCallback<Schema$ListPostureRevisionsResponse>
3708
3607
  | BodyResponseCallback<Readable>,
3709
3608
  callback?:
3710
- | BodyResponseCallback<Schema$PostureTemplate>
3609
+ | BodyResponseCallback<Schema$ListPostureRevisionsResponse>
3711
3610
  | BodyResponseCallback<Readable>
3712
3611
  ):
3713
3612
  | void
3714
- | Promise<GaxiosResponseWithHTTP2<Schema$PostureTemplate>>
3613
+ | Promise<GaxiosResponseWithHTTP2<Schema$ListPostureRevisionsResponse>>
3715
3614
  | Promise<GaxiosResponseWithHTTP2<Readable>> {
3716
3615
  let params = (paramsOrCallback ||
3717
- {}) as Params$Resource$Organizations$Locations$Posturetemplates$Get;
3616
+ {}) as Params$Resource$Organizations$Locations$Postures$Listrevisions;
3718
3617
  let options = (optionsOrCallback || {}) as MethodOptions;
3719
3618
 
3720
3619
  if (typeof paramsOrCallback === 'function') {
3721
3620
  callback = paramsOrCallback;
3722
3621
  params =
3723
- {} as Params$Resource$Organizations$Locations$Posturetemplates$Get;
3622
+ {} as Params$Resource$Organizations$Locations$Postures$Listrevisions;
3724
3623
  options = {};
3725
3624
  }
3726
3625
 
@@ -3734,7 +3633,10 @@ export namespace securityposture_v1 {
3734
3633
  const parameters = {
3735
3634
  options: Object.assign(
3736
3635
  {
3737
- url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'),
3636
+ url: (rootUrl + '/v1/{+name}:listRevisions').replace(
3637
+ /([^:]\/)\/+/g,
3638
+ '$1'
3639
+ ),
3738
3640
  method: 'GET',
3739
3641
  apiVersion: '',
3740
3642
  },
@@ -3746,17 +3648,19 @@ export namespace securityposture_v1 {
3746
3648
  context: this.context,
3747
3649
  };
3748
3650
  if (callback) {
3749
- createAPIRequest<Schema$PostureTemplate>(
3651
+ createAPIRequest<Schema$ListPostureRevisionsResponse>(
3750
3652
  parameters,
3751
3653
  callback as BodyResponseCallback<unknown>
3752
3654
  );
3753
3655
  } else {
3754
- return createAPIRequest<Schema$PostureTemplate>(parameters);
3656
+ return createAPIRequest<Schema$ListPostureRevisionsResponse>(
3657
+ parameters
3658
+ );
3755
3659
  }
3756
3660
  }
3757
3661
 
3758
3662
  /**
3759
- * Lists every PostureTemplate in a given organization and location.
3663
+ * Updates a revision of an existing Posture. If the posture revision that you update is currently deployed, then a new revision of the posture is created. To prevent concurrent updates from overwriting each other, always follow the read-modify-write pattern when you update a posture: 1. Call GetPosture to get the current version of the posture. 2. Update the fields in the posture as needed. 3. Call UpdatePosture to update the posture. Ensure that your request includes the `etag` value from the GetPosture response. **Important:** If you omit the `etag` when you call UpdatePosture, then the updated posture unconditionally overwrites the existing posture.
3760
3664
  * @example
3761
3665
  * ```js
3762
3666
  * // Before running the sample:
@@ -3785,23 +3689,41 @@ export namespace securityposture_v1 {
3785
3689
  * google.options({auth: authClient});
3786
3690
  *
3787
3691
  * // Do the magic
3788
- * const res =
3789
- * await securityposture.organizations.locations.postureTemplates.list({
3790
- * // Optional. A filter to apply to the list of postures, in the format defined in [AIP-160: Filtering](https://google.aip.dev/160).
3791
- * filter: 'placeholder-value',
3792
- * // Optional. The maximum number of posture templates to return. The default value is `500`. If you exceed the maximum value of `1000`, then the service uses the maximum value.
3793
- * pageSize: 'placeholder-value',
3794
- * // Optional. A pagination token returned from a previous request to list posture templates. Provide this token to retrieve the next page of results.
3795
- * pageToken: 'placeholder-value',
3796
- * // Required. The parent resource name, in the format `organizations/{organization\}/locations/global`.
3797
- * parent: 'organizations/my-organization/locations/my-location',
3798
- * });
3692
+ * const res = await securityposture.organizations.locations.postures.patch({
3693
+ * // Required. Identifier. The name of the posture, in the format `organizations/{organization\}/locations/global/postures/{posture_id\}`.
3694
+ * name: 'organizations/my-organization/locations/my-location/postures/my-posture',
3695
+ * // Required. The revision ID of the posture to update. If the posture revision that you update is currently deployed, then a new revision of the posture is created.
3696
+ * revisionId: 'placeholder-value',
3697
+ * // Required. The fields in the Posture to update. You can update only the following fields: * Posture.description * Posture.policy_sets * Posture.state
3698
+ * updateMask: 'placeholder-value',
3699
+ *
3700
+ * // Request body metadata
3701
+ * requestBody: {
3702
+ * // request body parameters
3703
+ * // {
3704
+ * // "annotations": {},
3705
+ * // "categories": [],
3706
+ * // "createTime": "my_createTime",
3707
+ * // "description": "my_description",
3708
+ * // "etag": "my_etag",
3709
+ * // "name": "my_name",
3710
+ * // "policySets": [],
3711
+ * // "reconciling": false,
3712
+ * // "revisionId": "my_revisionId",
3713
+ * // "state": "my_state",
3714
+ * // "updateTime": "my_updateTime"
3715
+ * // }
3716
+ * },
3717
+ * });
3799
3718
  * console.log(res.data);
3800
3719
  *
3801
3720
  * // Example response
3802
3721
  * // {
3803
- * // "nextPageToken": "my_nextPageToken",
3804
- * // "postureTemplates": []
3722
+ * // "done": false,
3723
+ * // "error": {},
3724
+ * // "metadata": {},
3725
+ * // "name": "my_name",
3726
+ * // "response": {}
3805
3727
  * // }
3806
3728
  * }
3807
3729
  *
@@ -3817,58 +3739,52 @@ export namespace securityposture_v1 {
3817
3739
  * @param callback - Optional callback that handles the response.
3818
3740
  * @returns A promise if used with async/await, or void if used with a callback.
3819
3741
  */
3820
- list(
3821
- params: Params$Resource$Organizations$Locations$Posturetemplates$List,
3742
+ patch(
3743
+ params: Params$Resource$Organizations$Locations$Postures$Patch,
3822
3744
  options: StreamMethodOptions
3823
3745
  ): Promise<GaxiosResponseWithHTTP2<Readable>>;
3824
- list(
3825
- params?: Params$Resource$Organizations$Locations$Posturetemplates$List,
3746
+ patch(
3747
+ params?: Params$Resource$Organizations$Locations$Postures$Patch,
3826
3748
  options?: MethodOptions
3827
- ): Promise<GaxiosResponseWithHTTP2<Schema$ListPostureTemplatesResponse>>;
3828
- list(
3829
- params: Params$Resource$Organizations$Locations$Posturetemplates$List,
3749
+ ): Promise<GaxiosResponseWithHTTP2<Schema$Operation>>;
3750
+ patch(
3751
+ params: Params$Resource$Organizations$Locations$Postures$Patch,
3830
3752
  options: StreamMethodOptions | BodyResponseCallback<Readable>,
3831
3753
  callback: BodyResponseCallback<Readable>
3832
3754
  ): void;
3833
- list(
3834
- params: Params$Resource$Organizations$Locations$Posturetemplates$List,
3835
- options:
3836
- | MethodOptions
3837
- | BodyResponseCallback<Schema$ListPostureTemplatesResponse>,
3838
- callback: BodyResponseCallback<Schema$ListPostureTemplatesResponse>
3839
- ): void;
3840
- list(
3841
- params: Params$Resource$Organizations$Locations$Posturetemplates$List,
3842
- callback: BodyResponseCallback<Schema$ListPostureTemplatesResponse>
3755
+ patch(
3756
+ params: Params$Resource$Organizations$Locations$Postures$Patch,
3757
+ options: MethodOptions | BodyResponseCallback<Schema$Operation>,
3758
+ callback: BodyResponseCallback<Schema$Operation>
3843
3759
  ): void;
3844
- list(
3845
- callback: BodyResponseCallback<Schema$ListPostureTemplatesResponse>
3760
+ patch(
3761
+ params: Params$Resource$Organizations$Locations$Postures$Patch,
3762
+ callback: BodyResponseCallback<Schema$Operation>
3846
3763
  ): void;
3847
- list(
3764
+ patch(callback: BodyResponseCallback<Schema$Operation>): void;
3765
+ patch(
3848
3766
  paramsOrCallback?:
3849
- | Params$Resource$Organizations$Locations$Posturetemplates$List
3850
- | BodyResponseCallback<Schema$ListPostureTemplatesResponse>
3767
+ | Params$Resource$Organizations$Locations$Postures$Patch
3768
+ | BodyResponseCallback<Schema$Operation>
3851
3769
  | BodyResponseCallback<Readable>,
3852
3770
  optionsOrCallback?:
3853
3771
  | MethodOptions
3854
3772
  | StreamMethodOptions
3855
- | BodyResponseCallback<Schema$ListPostureTemplatesResponse>
3773
+ | BodyResponseCallback<Schema$Operation>
3856
3774
  | BodyResponseCallback<Readable>,
3857
3775
  callback?:
3858
- | BodyResponseCallback<Schema$ListPostureTemplatesResponse>
3859
- | BodyResponseCallback<Readable>
3776
+ BodyResponseCallback<Schema$Operation> | BodyResponseCallback<Readable>
3860
3777
  ):
3861
3778
  | void
3862
- | Promise<GaxiosResponseWithHTTP2<Schema$ListPostureTemplatesResponse>>
3779
+ | Promise<GaxiosResponseWithHTTP2<Schema$Operation>>
3863
3780
  | Promise<GaxiosResponseWithHTTP2<Readable>> {
3864
3781
  let params = (paramsOrCallback ||
3865
- {}) as Params$Resource$Organizations$Locations$Posturetemplates$List;
3782
+ {}) as Params$Resource$Organizations$Locations$Postures$Patch;
3866
3783
  let options = (optionsOrCallback || {}) as MethodOptions;
3867
3784
 
3868
3785
  if (typeof paramsOrCallback === 'function') {
3869
3786
  callback = paramsOrCallback;
3870
- params =
3871
- {} as Params$Resource$Organizations$Locations$Posturetemplates$List;
3787
+ params = {} as Params$Resource$Organizations$Locations$Postures$Patch;
3872
3788
  options = {};
3873
3789
  }
3874
3790
 
@@ -3882,70 +3798,134 @@ export namespace securityposture_v1 {
3882
3798
  const parameters = {
3883
3799
  options: Object.assign(
3884
3800
  {
3885
- url: (rootUrl + '/v1/{+parent}/postureTemplates').replace(
3886
- /([^:]\/)\/+/g,
3887
- '$1'
3888
- ),
3889
- method: 'GET',
3801
+ url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'),
3802
+ method: 'PATCH',
3890
3803
  apiVersion: '',
3891
3804
  },
3892
3805
  options
3893
3806
  ),
3894
3807
  params,
3895
- requiredParams: ['parent'],
3896
- pathParams: ['parent'],
3808
+ requiredParams: ['name'],
3809
+ pathParams: ['name'],
3897
3810
  context: this.context,
3898
3811
  };
3899
3812
  if (callback) {
3900
- createAPIRequest<Schema$ListPostureTemplatesResponse>(
3813
+ createAPIRequest<Schema$Operation>(
3901
3814
  parameters,
3902
3815
  callback as BodyResponseCallback<unknown>
3903
3816
  );
3904
3817
  } else {
3905
- return createAPIRequest<Schema$ListPostureTemplatesResponse>(
3906
- parameters
3907
- );
3818
+ return createAPIRequest<Schema$Operation>(parameters);
3908
3819
  }
3909
3820
  }
3910
3821
  }
3911
3822
 
3912
- export interface Params$Resource$Organizations$Locations$Posturetemplates$Get extends StandardParameters {
3823
+ export interface Params$Resource$Organizations$Locations$Postures$Create extends StandardParameters {
3913
3824
  /**
3914
- * Required. The name of the PostureTemplate, in the format `organizations/{organization\}/locations/global/postureTemplates/{posture_template\}`.
3825
+ * Required. The parent resource name, in the format `organizations/{organization\}/locations/global`.
3826
+ */
3827
+ parent?: string;
3828
+ /**
3829
+ * Required. An identifier for the posture.
3830
+ */
3831
+ postureId?: string;
3832
+
3833
+ /**
3834
+ * Request body metadata
3835
+ */
3836
+ requestBody?: Schema$Posture;
3837
+ }
3838
+ export interface Params$Resource$Organizations$Locations$Postures$Delete extends StandardParameters {
3839
+ /**
3840
+ * Optional. An opaque identifier for the current version of the posture. If you provide this value, then it must match the existing value. If the values don't match, then the request fails with an ABORTED error. If you omit this value, then the posture is deleted regardless of its current `etag` value.
3841
+ */
3842
+ etag?: string;
3843
+ /**
3844
+ * Required. The name of the Posture, in the format `organizations/{organization\}/locations/global/postures/{posture_id\}`.
3915
3845
  */
3916
3846
  name?: string;
3847
+ }
3848
+ export interface Params$Resource$Organizations$Locations$Postures$Extract extends StandardParameters {
3917
3849
  /**
3918
- * Optional. The posture template revision to retrieve. If not specified, the most recently updated revision is retrieved.
3850
+ * Required. The parent resource name, in the format `organizations/{organization\}/locations/global`.
3851
+ */
3852
+ parent?: string;
3853
+
3854
+ /**
3855
+ * Request body metadata
3856
+ */
3857
+ requestBody?: Schema$ExtractPostureRequest;
3858
+ }
3859
+ export interface Params$Resource$Organizations$Locations$Postures$Get extends StandardParameters {
3860
+ /**
3861
+ * Required. The name of the Posture, in the format `organizations/{organization\}/locations/global/postures/{posture_id\}`.
3862
+ */
3863
+ name?: string;
3864
+ /**
3865
+ * Optional. The posture revision to retrieve. If not specified, the most recently updated revision is retrieved.
3919
3866
  */
3920
3867
  revisionId?: string;
3921
3868
  }
3922
- export interface Params$Resource$Organizations$Locations$Posturetemplates$List extends StandardParameters {
3869
+ export interface Params$Resource$Organizations$Locations$Postures$List extends StandardParameters {
3923
3870
  /**
3924
3871
  * Optional. A filter to apply to the list of postures, in the format defined in [AIP-160: Filtering](https://google.aip.dev/160).
3925
3872
  */
3926
3873
  filter?: string;
3927
3874
  /**
3928
- * Optional. The maximum number of posture templates to return. The default value is `500`. If you exceed the maximum value of `1000`, then the service uses the maximum value.
3875
+ * The maximum number of postures to return. The default value is `500`. If you exceed the maximum value of `1000`, then the service uses the maximum value.
3876
+ */
3877
+ pageSize?: number;
3878
+ /**
3879
+ * A pagination token returned from a previous request to list postures. Provide this token to retrieve the next page of results.
3880
+ */
3881
+ pageToken?: string;
3882
+ /**
3883
+ * Required. The parent resource name, in the format `organizations/{organization\}/locations/global`.
3884
+ */
3885
+ parent?: string;
3886
+ }
3887
+ export interface Params$Resource$Organizations$Locations$Postures$Listrevisions extends StandardParameters {
3888
+ /**
3889
+ * Required. The name of the Posture, in the format `organizations/{organization\}/locations/global/postures/{posture_id\}`.
3890
+ */
3891
+ name?: string;
3892
+ /**
3893
+ * Optional. The maximum number of posture revisions to return. The default value is `500`. If you exceed the maximum value of `1000`, then the service uses the maximum value.
3894
+ */
3895
+ pageSize?: number;
3896
+ /**
3897
+ * Optional. A pagination token from a previous request to list posture revisions. Provide this token to retrieve the next page of results.
3898
+ */
3899
+ pageToken?: string;
3900
+ }
3901
+ export interface Params$Resource$Organizations$Locations$Postures$Patch extends StandardParameters {
3902
+ /**
3903
+ * Required. Identifier. The name of the posture, in the format `organizations/{organization\}/locations/global/postures/{posture_id\}`.
3904
+ */
3905
+ name?: string;
3906
+ /**
3907
+ * Required. The revision ID of the posture to update. If the posture revision that you update is currently deployed, then a new revision of the posture is created.
3929
3908
  */
3930
- pageSize?: number;
3909
+ revisionId?: string;
3931
3910
  /**
3932
- * Optional. A pagination token returned from a previous request to list posture templates. Provide this token to retrieve the next page of results.
3911
+ * Required. The fields in the Posture to update. You can update only the following fields: * Posture.description * Posture.policy_sets * Posture.state
3933
3912
  */
3934
- pageToken?: string;
3913
+ updateMask?: string;
3914
+
3935
3915
  /**
3936
- * Required. The parent resource name, in the format `organizations/{organization\}/locations/global`.
3916
+ * Request body metadata
3937
3917
  */
3938
- parent?: string;
3918
+ requestBody?: Schema$Posture;
3939
3919
  }
3940
3920
 
3941
- export class Resource$Organizations$Locations$Reports {
3921
+ export class Resource$Organizations$Locations$Posturetemplates {
3942
3922
  context: APIRequestContext;
3943
3923
  constructor(context: APIRequestContext) {
3944
3924
  this.context = context;
3945
3925
  }
3946
3926
 
3947
3927
  /**
3948
- * Validates a specified infrastructure-as-code (IaC) configuration, and creates a Report with the validation results. Only Terraform configurations are supported. Only modified assets are validated.
3928
+ * Gets a single revision of a PostureTemplate.
3949
3929
  * @example
3950
3930
  * ```js
3951
3931
  * // Before running the sample:
@@ -3975,29 +3955,22 @@ export namespace securityposture_v1 {
3975
3955
  *
3976
3956
  * // Do the magic
3977
3957
  * const res =
3978
- * await securityposture.organizations.locations.reports.createIaCValidationReport(
3979
- * {
3980
- * // Required. The parent resource name, in the format `organizations/{organization\}/locations/global`.
3981
- * parent: 'organizations/my-organization/locations/my-location',
3982
- *
3983
- * // Request body metadata
3984
- * requestBody: {
3985
- * // request body parameters
3986
- * // {
3987
- * // "iac": {}
3988
- * // }
3989
- * },
3990
- * },
3991
- * );
3958
+ * await securityposture.organizations.locations.postureTemplates.get({
3959
+ * // Required. The name of the PostureTemplate, in the format `organizations/{organization\}/locations/global/postureTemplates/{posture_template\}`.
3960
+ * name: 'organizations/my-organization/locations/my-location/postureTemplates/my-postureTemplate',
3961
+ * // Optional. The posture template revision to retrieve. If not specified, the most recently updated revision is retrieved.
3962
+ * revisionId: 'placeholder-value',
3963
+ * });
3992
3964
  * console.log(res.data);
3993
3965
  *
3994
3966
  * // Example response
3995
3967
  * // {
3996
- * // "done": false,
3997
- * // "error": {},
3998
- * // "metadata": {},
3968
+ * // "categories": [],
3969
+ * // "description": "my_description",
3999
3970
  * // "name": "my_name",
4000
- * // "response": {}
3971
+ * // "policySets": [],
3972
+ * // "revisionId": "my_revisionId",
3973
+ * // "state": "my_state"
4001
3974
  * // }
4002
3975
  * }
4003
3976
  *
@@ -4013,55 +3986,54 @@ export namespace securityposture_v1 {
4013
3986
  * @param callback - Optional callback that handles the response.
4014
3987
  * @returns A promise if used with async/await, or void if used with a callback.
4015
3988
  */
4016
- createIaCValidationReport(
4017
- params: Params$Resource$Organizations$Locations$Reports$Createiacvalidationreport,
3989
+ get(
3990
+ params: Params$Resource$Organizations$Locations$Posturetemplates$Get,
4018
3991
  options: StreamMethodOptions
4019
3992
  ): Promise<GaxiosResponseWithHTTP2<Readable>>;
4020
- createIaCValidationReport(
4021
- params?: Params$Resource$Organizations$Locations$Reports$Createiacvalidationreport,
3993
+ get(
3994
+ params?: Params$Resource$Organizations$Locations$Posturetemplates$Get,
4022
3995
  options?: MethodOptions
4023
- ): Promise<GaxiosResponseWithHTTP2<Schema$Operation>>;
4024
- createIaCValidationReport(
4025
- params: Params$Resource$Organizations$Locations$Reports$Createiacvalidationreport,
3996
+ ): Promise<GaxiosResponseWithHTTP2<Schema$PostureTemplate>>;
3997
+ get(
3998
+ params: Params$Resource$Organizations$Locations$Posturetemplates$Get,
4026
3999
  options: StreamMethodOptions | BodyResponseCallback<Readable>,
4027
4000
  callback: BodyResponseCallback<Readable>
4028
4001
  ): void;
4029
- createIaCValidationReport(
4030
- params: Params$Resource$Organizations$Locations$Reports$Createiacvalidationreport,
4031
- options: MethodOptions | BodyResponseCallback<Schema$Operation>,
4032
- callback: BodyResponseCallback<Schema$Operation>
4033
- ): void;
4034
- createIaCValidationReport(
4035
- params: Params$Resource$Organizations$Locations$Reports$Createiacvalidationreport,
4036
- callback: BodyResponseCallback<Schema$Operation>
4002
+ get(
4003
+ params: Params$Resource$Organizations$Locations$Posturetemplates$Get,
4004
+ options: MethodOptions | BodyResponseCallback<Schema$PostureTemplate>,
4005
+ callback: BodyResponseCallback<Schema$PostureTemplate>
4037
4006
  ): void;
4038
- createIaCValidationReport(
4039
- callback: BodyResponseCallback<Schema$Operation>
4007
+ get(
4008
+ params: Params$Resource$Organizations$Locations$Posturetemplates$Get,
4009
+ callback: BodyResponseCallback<Schema$PostureTemplate>
4040
4010
  ): void;
4041
- createIaCValidationReport(
4011
+ get(callback: BodyResponseCallback<Schema$PostureTemplate>): void;
4012
+ get(
4042
4013
  paramsOrCallback?:
4043
- | Params$Resource$Organizations$Locations$Reports$Createiacvalidationreport
4044
- | BodyResponseCallback<Schema$Operation>
4014
+ | Params$Resource$Organizations$Locations$Posturetemplates$Get
4015
+ | BodyResponseCallback<Schema$PostureTemplate>
4045
4016
  | BodyResponseCallback<Readable>,
4046
4017
  optionsOrCallback?:
4047
4018
  | MethodOptions
4048
4019
  | StreamMethodOptions
4049
- | BodyResponseCallback<Schema$Operation>
4020
+ | BodyResponseCallback<Schema$PostureTemplate>
4050
4021
  | BodyResponseCallback<Readable>,
4051
4022
  callback?:
4052
- BodyResponseCallback<Schema$Operation> | BodyResponseCallback<Readable>
4023
+ | BodyResponseCallback<Schema$PostureTemplate>
4024
+ | BodyResponseCallback<Readable>
4053
4025
  ):
4054
4026
  | void
4055
- | Promise<GaxiosResponseWithHTTP2<Schema$Operation>>
4027
+ | Promise<GaxiosResponseWithHTTP2<Schema$PostureTemplate>>
4056
4028
  | Promise<GaxiosResponseWithHTTP2<Readable>> {
4057
4029
  let params = (paramsOrCallback ||
4058
- {}) as Params$Resource$Organizations$Locations$Reports$Createiacvalidationreport;
4030
+ {}) as Params$Resource$Organizations$Locations$Posturetemplates$Get;
4059
4031
  let options = (optionsOrCallback || {}) as MethodOptions;
4060
4032
 
4061
4033
  if (typeof paramsOrCallback === 'function') {
4062
4034
  callback = paramsOrCallback;
4063
4035
  params =
4064
- {} as Params$Resource$Organizations$Locations$Reports$Createiacvalidationreport;
4036
+ {} as Params$Resource$Organizations$Locations$Posturetemplates$Get;
4065
4037
  options = {};
4066
4038
  }
4067
4039
 
@@ -4075,31 +4047,29 @@ export namespace securityposture_v1 {
4075
4047
  const parameters = {
4076
4048
  options: Object.assign(
4077
4049
  {
4078
- url: (
4079
- rootUrl + '/v1/{+parent}/reports:createIaCValidationReport'
4080
- ).replace(/([^:]\/)\/+/g, '$1'),
4081
- method: 'POST',
4050
+ url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'),
4051
+ method: 'GET',
4082
4052
  apiVersion: '',
4083
4053
  },
4084
4054
  options
4085
4055
  ),
4086
4056
  params,
4087
- requiredParams: ['parent'],
4088
- pathParams: ['parent'],
4057
+ requiredParams: ['name'],
4058
+ pathParams: ['name'],
4089
4059
  context: this.context,
4090
4060
  };
4091
4061
  if (callback) {
4092
- createAPIRequest<Schema$Operation>(
4062
+ createAPIRequest<Schema$PostureTemplate>(
4093
4063
  parameters,
4094
4064
  callback as BodyResponseCallback<unknown>
4095
4065
  );
4096
4066
  } else {
4097
- return createAPIRequest<Schema$Operation>(parameters);
4067
+ return createAPIRequest<Schema$PostureTemplate>(parameters);
4098
4068
  }
4099
4069
  }
4100
4070
 
4101
4071
  /**
4102
- * Gets details for a Report.
4072
+ * Lists every PostureTemplate in a given organization and location.
4103
4073
  * @example
4104
4074
  * ```js
4105
4075
  * // Before running the sample:
@@ -4128,18 +4098,23 @@ export namespace securityposture_v1 {
4128
4098
  * google.options({auth: authClient});
4129
4099
  *
4130
4100
  * // Do the magic
4131
- * const res = await securityposture.organizations.locations.reports.get({
4132
- * // Required. The name of the report, in the format `organizations/{organization\}/locations/global/reports/{report_id\}`.
4133
- * name: 'organizations/my-organization/locations/my-location/reports/my-report',
4134
- * });
4101
+ * const res =
4102
+ * await securityposture.organizations.locations.postureTemplates.list({
4103
+ * // Optional. A filter to apply to the list of postures, in the format defined in [AIP-160: Filtering](https://google.aip.dev/160).
4104
+ * filter: 'placeholder-value',
4105
+ * // Optional. The maximum number of posture templates to return. The default value is `500`. If you exceed the maximum value of `1000`, then the service uses the maximum value.
4106
+ * pageSize: 'placeholder-value',
4107
+ * // Optional. A pagination token returned from a previous request to list posture templates. Provide this token to retrieve the next page of results.
4108
+ * pageToken: 'placeholder-value',
4109
+ * // Required. The parent resource name, in the format `organizations/{organization\}/locations/global`.
4110
+ * parent: 'organizations/my-organization/locations/my-location',
4111
+ * });
4135
4112
  * console.log(res.data);
4136
4113
  *
4137
4114
  * // Example response
4138
4115
  * // {
4139
- * // "createTime": "my_createTime",
4140
- * // "iacValidationReport": {},
4141
- * // "name": "my_name",
4142
- * // "updateTime": "my_updateTime"
4116
+ * // "nextPageToken": "my_nextPageToken",
4117
+ * // "postureTemplates": []
4143
4118
  * // }
4144
4119
  * }
4145
4120
  *
@@ -4155,52 +4130,58 @@ export namespace securityposture_v1 {
4155
4130
  * @param callback - Optional callback that handles the response.
4156
4131
  * @returns A promise if used with async/await, or void if used with a callback.
4157
4132
  */
4158
- get(
4159
- params: Params$Resource$Organizations$Locations$Reports$Get,
4133
+ list(
4134
+ params: Params$Resource$Organizations$Locations$Posturetemplates$List,
4160
4135
  options: StreamMethodOptions
4161
4136
  ): Promise<GaxiosResponseWithHTTP2<Readable>>;
4162
- get(
4163
- params?: Params$Resource$Organizations$Locations$Reports$Get,
4137
+ list(
4138
+ params?: Params$Resource$Organizations$Locations$Posturetemplates$List,
4164
4139
  options?: MethodOptions
4165
- ): Promise<GaxiosResponseWithHTTP2<Schema$Report>>;
4166
- get(
4167
- params: Params$Resource$Organizations$Locations$Reports$Get,
4140
+ ): Promise<GaxiosResponseWithHTTP2<Schema$ListPostureTemplatesResponse>>;
4141
+ list(
4142
+ params: Params$Resource$Organizations$Locations$Posturetemplates$List,
4168
4143
  options: StreamMethodOptions | BodyResponseCallback<Readable>,
4169
4144
  callback: BodyResponseCallback<Readable>
4170
4145
  ): void;
4171
- get(
4172
- params: Params$Resource$Organizations$Locations$Reports$Get,
4173
- options: MethodOptions | BodyResponseCallback<Schema$Report>,
4174
- callback: BodyResponseCallback<Schema$Report>
4146
+ list(
4147
+ params: Params$Resource$Organizations$Locations$Posturetemplates$List,
4148
+ options:
4149
+ | MethodOptions
4150
+ | BodyResponseCallback<Schema$ListPostureTemplatesResponse>,
4151
+ callback: BodyResponseCallback<Schema$ListPostureTemplatesResponse>
4175
4152
  ): void;
4176
- get(
4177
- params: Params$Resource$Organizations$Locations$Reports$Get,
4178
- callback: BodyResponseCallback<Schema$Report>
4153
+ list(
4154
+ params: Params$Resource$Organizations$Locations$Posturetemplates$List,
4155
+ callback: BodyResponseCallback<Schema$ListPostureTemplatesResponse>
4179
4156
  ): void;
4180
- get(callback: BodyResponseCallback<Schema$Report>): void;
4181
- get(
4157
+ list(
4158
+ callback: BodyResponseCallback<Schema$ListPostureTemplatesResponse>
4159
+ ): void;
4160
+ list(
4182
4161
  paramsOrCallback?:
4183
- | Params$Resource$Organizations$Locations$Reports$Get
4184
- | BodyResponseCallback<Schema$Report>
4162
+ | Params$Resource$Organizations$Locations$Posturetemplates$List
4163
+ | BodyResponseCallback<Schema$ListPostureTemplatesResponse>
4185
4164
  | BodyResponseCallback<Readable>,
4186
4165
  optionsOrCallback?:
4187
4166
  | MethodOptions
4188
4167
  | StreamMethodOptions
4189
- | BodyResponseCallback<Schema$Report>
4168
+ | BodyResponseCallback<Schema$ListPostureTemplatesResponse>
4190
4169
  | BodyResponseCallback<Readable>,
4191
4170
  callback?:
4192
- BodyResponseCallback<Schema$Report> | BodyResponseCallback<Readable>
4171
+ | BodyResponseCallback<Schema$ListPostureTemplatesResponse>
4172
+ | BodyResponseCallback<Readable>
4193
4173
  ):
4194
4174
  | void
4195
- | Promise<GaxiosResponseWithHTTP2<Schema$Report>>
4175
+ | Promise<GaxiosResponseWithHTTP2<Schema$ListPostureTemplatesResponse>>
4196
4176
  | Promise<GaxiosResponseWithHTTP2<Readable>> {
4197
4177
  let params = (paramsOrCallback ||
4198
- {}) as Params$Resource$Organizations$Locations$Reports$Get;
4178
+ {}) as Params$Resource$Organizations$Locations$Posturetemplates$List;
4199
4179
  let options = (optionsOrCallback || {}) as MethodOptions;
4200
4180
 
4201
4181
  if (typeof paramsOrCallback === 'function') {
4202
4182
  callback = paramsOrCallback;
4203
- params = {} as Params$Resource$Organizations$Locations$Reports$Get;
4183
+ params =
4184
+ {} as Params$Resource$Organizations$Locations$Posturetemplates$List;
4204
4185
  options = {};
4205
4186
  }
4206
4187
 
@@ -4214,29 +4195,70 @@ export namespace securityposture_v1 {
4214
4195
  const parameters = {
4215
4196
  options: Object.assign(
4216
4197
  {
4217
- url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'),
4198
+ url: (rootUrl + '/v1/{+parent}/postureTemplates').replace(
4199
+ /([^:]\/)\/+/g,
4200
+ '$1'
4201
+ ),
4218
4202
  method: 'GET',
4219
4203
  apiVersion: '',
4220
4204
  },
4221
4205
  options
4222
4206
  ),
4223
4207
  params,
4224
- requiredParams: ['name'],
4225
- pathParams: ['name'],
4208
+ requiredParams: ['parent'],
4209
+ pathParams: ['parent'],
4226
4210
  context: this.context,
4227
4211
  };
4228
4212
  if (callback) {
4229
- createAPIRequest<Schema$Report>(
4213
+ createAPIRequest<Schema$ListPostureTemplatesResponse>(
4230
4214
  parameters,
4231
4215
  callback as BodyResponseCallback<unknown>
4232
4216
  );
4233
4217
  } else {
4234
- return createAPIRequest<Schema$Report>(parameters);
4218
+ return createAPIRequest<Schema$ListPostureTemplatesResponse>(
4219
+ parameters
4220
+ );
4235
4221
  }
4236
4222
  }
4223
+ }
4237
4224
 
4225
+ export interface Params$Resource$Organizations$Locations$Posturetemplates$Get extends StandardParameters {
4238
4226
  /**
4239
- * Lists every Report in a given organization and location.
4227
+ * Required. The name of the PostureTemplate, in the format `organizations/{organization\}/locations/global/postureTemplates/{posture_template\}`.
4228
+ */
4229
+ name?: string;
4230
+ /**
4231
+ * Optional. The posture template revision to retrieve. If not specified, the most recently updated revision is retrieved.
4232
+ */
4233
+ revisionId?: string;
4234
+ }
4235
+ export interface Params$Resource$Organizations$Locations$Posturetemplates$List extends StandardParameters {
4236
+ /**
4237
+ * Optional. A filter to apply to the list of postures, in the format defined in [AIP-160: Filtering](https://google.aip.dev/160).
4238
+ */
4239
+ filter?: string;
4240
+ /**
4241
+ * Optional. The maximum number of posture templates to return. The default value is `500`. If you exceed the maximum value of `1000`, then the service uses the maximum value.
4242
+ */
4243
+ pageSize?: number;
4244
+ /**
4245
+ * Optional. A pagination token returned from a previous request to list posture templates. Provide this token to retrieve the next page of results.
4246
+ */
4247
+ pageToken?: string;
4248
+ /**
4249
+ * Required. The parent resource name, in the format `organizations/{organization\}/locations/global`.
4250
+ */
4251
+ parent?: string;
4252
+ }
4253
+
4254
+ export class Resource$Organizations$Locations$Reports {
4255
+ context: APIRequestContext;
4256
+ constructor(context: APIRequestContext) {
4257
+ this.context = context;
4258
+ }
4259
+
4260
+ /**
4261
+ * Validates a specified infrastructure-as-code (IaC) configuration, and creates a Report with the validation results. Only Terraform configurations are supported. Only modified assets are validated.
4240
4262
  * @example
4241
4263
  * ```js
4242
4264
  * // Before running the sample:
@@ -4265,23 +4287,30 @@ export namespace securityposture_v1 {
4265
4287
  * google.options({auth: authClient});
4266
4288
  *
4267
4289
  * // Do the magic
4268
- * const res = await securityposture.organizations.locations.reports.list({
4269
- * // Optional. A filter to apply to the list of reports, in the format defined in [AIP-160: Filtering](https://google.aip.dev/160).
4270
- * filter: 'placeholder-value',
4271
- * // Optional. The maximum number of reports to return. The default value is `500`. If you exceed the maximum value of `1000`, then the service uses the maximum value.
4272
- * pageSize: 'placeholder-value',
4273
- * // Optional. A pagination token returned from a previous request to list reports. Provide this token to retrieve the next page of results.
4274
- * pageToken: 'placeholder-value',
4275
- * // Required. The parent resource name, in the format `organizations/{organization\}/locations/global`.
4276
- * parent: 'organizations/my-organization/locations/my-location',
4277
- * });
4290
+ * const res =
4291
+ * await securityposture.organizations.locations.reports.createIaCValidationReport(
4292
+ * {
4293
+ * // Required. The parent resource name, in the format `organizations/{organization\}/locations/global`.
4294
+ * parent: 'organizations/my-organization/locations/my-location',
4295
+ *
4296
+ * // Request body metadata
4297
+ * requestBody: {
4298
+ * // request body parameters
4299
+ * // {
4300
+ * // "iac": {}
4301
+ * // }
4302
+ * },
4303
+ * },
4304
+ * );
4278
4305
  * console.log(res.data);
4279
4306
  *
4280
4307
  * // Example response
4281
4308
  * // {
4282
- * // "nextPageToken": "my_nextPageToken",
4283
- * // "reports": [],
4284
- * // "unreachable": []
4309
+ * // "done": false,
4310
+ * // "error": {},
4311
+ * // "metadata": {},
4312
+ * // "name": "my_name",
4313
+ * // "response": {}
4285
4314
  * // }
4286
4315
  * }
4287
4316
  *
@@ -4297,53 +4326,55 @@ export namespace securityposture_v1 {
4297
4326
  * @param callback - Optional callback that handles the response.
4298
4327
  * @returns A promise if used with async/await, or void if used with a callback.
4299
4328
  */
4300
- list(
4301
- params: Params$Resource$Organizations$Locations$Reports$List,
4329
+ createIaCValidationReport(
4330
+ params: Params$Resource$Organizations$Locations$Reports$Createiacvalidationreport,
4302
4331
  options: StreamMethodOptions
4303
4332
  ): Promise<GaxiosResponseWithHTTP2<Readable>>;
4304
- list(
4305
- params?: Params$Resource$Organizations$Locations$Reports$List,
4333
+ createIaCValidationReport(
4334
+ params?: Params$Resource$Organizations$Locations$Reports$Createiacvalidationreport,
4306
4335
  options?: MethodOptions
4307
- ): Promise<GaxiosResponseWithHTTP2<Schema$ListReportsResponse>>;
4308
- list(
4309
- params: Params$Resource$Organizations$Locations$Reports$List,
4336
+ ): Promise<GaxiosResponseWithHTTP2<Schema$Operation>>;
4337
+ createIaCValidationReport(
4338
+ params: Params$Resource$Organizations$Locations$Reports$Createiacvalidationreport,
4310
4339
  options: StreamMethodOptions | BodyResponseCallback<Readable>,
4311
4340
  callback: BodyResponseCallback<Readable>
4312
4341
  ): void;
4313
- list(
4314
- params: Params$Resource$Organizations$Locations$Reports$List,
4315
- options: MethodOptions | BodyResponseCallback<Schema$ListReportsResponse>,
4316
- callback: BodyResponseCallback<Schema$ListReportsResponse>
4342
+ createIaCValidationReport(
4343
+ params: Params$Resource$Organizations$Locations$Reports$Createiacvalidationreport,
4344
+ options: MethodOptions | BodyResponseCallback<Schema$Operation>,
4345
+ callback: BodyResponseCallback<Schema$Operation>
4317
4346
  ): void;
4318
- list(
4319
- params: Params$Resource$Organizations$Locations$Reports$List,
4320
- callback: BodyResponseCallback<Schema$ListReportsResponse>
4347
+ createIaCValidationReport(
4348
+ params: Params$Resource$Organizations$Locations$Reports$Createiacvalidationreport,
4349
+ callback: BodyResponseCallback<Schema$Operation>
4321
4350
  ): void;
4322
- list(callback: BodyResponseCallback<Schema$ListReportsResponse>): void;
4323
- list(
4351
+ createIaCValidationReport(
4352
+ callback: BodyResponseCallback<Schema$Operation>
4353
+ ): void;
4354
+ createIaCValidationReport(
4324
4355
  paramsOrCallback?:
4325
- | Params$Resource$Organizations$Locations$Reports$List
4326
- | BodyResponseCallback<Schema$ListReportsResponse>
4356
+ | Params$Resource$Organizations$Locations$Reports$Createiacvalidationreport
4357
+ | BodyResponseCallback<Schema$Operation>
4327
4358
  | BodyResponseCallback<Readable>,
4328
4359
  optionsOrCallback?:
4329
4360
  | MethodOptions
4330
4361
  | StreamMethodOptions
4331
- | BodyResponseCallback<Schema$ListReportsResponse>
4362
+ | BodyResponseCallback<Schema$Operation>
4332
4363
  | BodyResponseCallback<Readable>,
4333
4364
  callback?:
4334
- | BodyResponseCallback<Schema$ListReportsResponse>
4335
- | BodyResponseCallback<Readable>
4365
+ BodyResponseCallback<Schema$Operation> | BodyResponseCallback<Readable>
4336
4366
  ):
4337
4367
  | void
4338
- | Promise<GaxiosResponseWithHTTP2<Schema$ListReportsResponse>>
4368
+ | Promise<GaxiosResponseWithHTTP2<Schema$Operation>>
4339
4369
  | Promise<GaxiosResponseWithHTTP2<Readable>> {
4340
4370
  let params = (paramsOrCallback ||
4341
- {}) as Params$Resource$Organizations$Locations$Reports$List;
4371
+ {}) as Params$Resource$Organizations$Locations$Reports$Createiacvalidationreport;
4342
4372
  let options = (optionsOrCallback || {}) as MethodOptions;
4343
4373
 
4344
4374
  if (typeof paramsOrCallback === 'function') {
4345
4375
  callback = paramsOrCallback;
4346
- params = {} as Params$Resource$Organizations$Locations$Reports$List;
4376
+ params =
4377
+ {} as Params$Resource$Organizations$Locations$Reports$Createiacvalidationreport;
4347
4378
  options = {};
4348
4379
  }
4349
4380
 
@@ -4357,11 +4388,10 @@ export namespace securityposture_v1 {
4357
4388
  const parameters = {
4358
4389
  options: Object.assign(
4359
4390
  {
4360
- url: (rootUrl + '/v1/{+parent}/reports').replace(
4361
- /([^:]\/)\/+/g,
4362
- '$1'
4363
- ),
4364
- method: 'GET',
4391
+ url: (
4392
+ rootUrl + '/v1/{+parent}/reports:createIaCValidationReport'
4393
+ ).replace(/([^:]\/)\/+/g, '$1'),
4394
+ method: 'POST',
4365
4395
  apiVersion: '',
4366
4396
  },
4367
4397
  options
@@ -4372,69 +4402,17 @@ export namespace securityposture_v1 {
4372
4402
  context: this.context,
4373
4403
  };
4374
4404
  if (callback) {
4375
- createAPIRequest<Schema$ListReportsResponse>(
4405
+ createAPIRequest<Schema$Operation>(
4376
4406
  parameters,
4377
4407
  callback as BodyResponseCallback<unknown>
4378
4408
  );
4379
4409
  } else {
4380
- return createAPIRequest<Schema$ListReportsResponse>(parameters);
4410
+ return createAPIRequest<Schema$Operation>(parameters);
4381
4411
  }
4382
4412
  }
4383
- }
4384
-
4385
- export interface Params$Resource$Organizations$Locations$Reports$Createiacvalidationreport extends StandardParameters {
4386
- /**
4387
- * Required. The parent resource name, in the format `organizations/{organization\}/locations/global`.
4388
- */
4389
- parent?: string;
4390
-
4391
- /**
4392
- * Request body metadata
4393
- */
4394
- requestBody?: Schema$CreateIaCValidationReportRequest;
4395
- }
4396
- export interface Params$Resource$Organizations$Locations$Reports$Get extends StandardParameters {
4397
- /**
4398
- * Required. The name of the report, in the format `organizations/{organization\}/locations/global/reports/{report_id\}`.
4399
- */
4400
- name?: string;
4401
- }
4402
- export interface Params$Resource$Organizations$Locations$Reports$List extends StandardParameters {
4403
- /**
4404
- * Optional. A filter to apply to the list of reports, in the format defined in [AIP-160: Filtering](https://google.aip.dev/160).
4405
- */
4406
- filter?: string;
4407
- /**
4408
- * Optional. The maximum number of reports to return. The default value is `500`. If you exceed the maximum value of `1000`, then the service uses the maximum value.
4409
- */
4410
- pageSize?: number;
4411
- /**
4412
- * Optional. A pagination token returned from a previous request to list reports. Provide this token to retrieve the next page of results.
4413
- */
4414
- pageToken?: string;
4415
- /**
4416
- * Required. The parent resource name, in the format `organizations/{organization\}/locations/global`.
4417
- */
4418
- parent?: string;
4419
- }
4420
-
4421
- export class Resource$Projects {
4422
- context: APIRequestContext;
4423
- locations: Resource$Projects$Locations;
4424
- constructor(context: APIRequestContext) {
4425
- this.context = context;
4426
- this.locations = new Resource$Projects$Locations(this.context);
4427
- }
4428
- }
4429
-
4430
- export class Resource$Projects$Locations {
4431
- context: APIRequestContext;
4432
- constructor(context: APIRequestContext) {
4433
- this.context = context;
4434
- }
4435
4413
 
4436
4414
  /**
4437
- * Gets information about a location.
4415
+ * Gets details for a Report.
4438
4416
  * @example
4439
4417
  * ```js
4440
4418
  * // Before running the sample:
@@ -4463,19 +4441,18 @@ export namespace securityposture_v1 {
4463
4441
  * google.options({auth: authClient});
4464
4442
  *
4465
4443
  * // Do the magic
4466
- * const res = await securityposture.projects.locations.get({
4467
- * // Resource name for the location.
4468
- * name: 'projects/my-project/locations/my-location',
4444
+ * const res = await securityposture.organizations.locations.reports.get({
4445
+ * // Required. The name of the report, in the format `organizations/{organization\}/locations/global/reports/{report_id\}`.
4446
+ * name: 'organizations/my-organization/locations/my-location/reports/my-report',
4469
4447
  * });
4470
4448
  * console.log(res.data);
4471
4449
  *
4472
4450
  * // Example response
4473
4451
  * // {
4474
- * // "displayName": "my_displayName",
4475
- * // "labels": {},
4476
- * // "locationId": "my_locationId",
4477
- * // "metadata": {},
4478
- * // "name": "my_name"
4452
+ * // "createTime": "my_createTime",
4453
+ * // "iacValidationReport": {},
4454
+ * // "name": "my_name",
4455
+ * // "updateTime": "my_updateTime"
4479
4456
  * // }
4480
4457
  * }
4481
4458
  *
@@ -4492,51 +4469,51 @@ export namespace securityposture_v1 {
4492
4469
  * @returns A promise if used with async/await, or void if used with a callback.
4493
4470
  */
4494
4471
  get(
4495
- params: Params$Resource$Projects$Locations$Get,
4472
+ params: Params$Resource$Organizations$Locations$Reports$Get,
4496
4473
  options: StreamMethodOptions
4497
4474
  ): Promise<GaxiosResponseWithHTTP2<Readable>>;
4498
4475
  get(
4499
- params?: Params$Resource$Projects$Locations$Get,
4476
+ params?: Params$Resource$Organizations$Locations$Reports$Get,
4500
4477
  options?: MethodOptions
4501
- ): Promise<GaxiosResponseWithHTTP2<Schema$Location>>;
4478
+ ): Promise<GaxiosResponseWithHTTP2<Schema$Report>>;
4502
4479
  get(
4503
- params: Params$Resource$Projects$Locations$Get,
4480
+ params: Params$Resource$Organizations$Locations$Reports$Get,
4504
4481
  options: StreamMethodOptions | BodyResponseCallback<Readable>,
4505
4482
  callback: BodyResponseCallback<Readable>
4506
4483
  ): void;
4507
4484
  get(
4508
- params: Params$Resource$Projects$Locations$Get,
4509
- options: MethodOptions | BodyResponseCallback<Schema$Location>,
4510
- callback: BodyResponseCallback<Schema$Location>
4485
+ params: Params$Resource$Organizations$Locations$Reports$Get,
4486
+ options: MethodOptions | BodyResponseCallback<Schema$Report>,
4487
+ callback: BodyResponseCallback<Schema$Report>
4511
4488
  ): void;
4512
4489
  get(
4513
- params: Params$Resource$Projects$Locations$Get,
4514
- callback: BodyResponseCallback<Schema$Location>
4490
+ params: Params$Resource$Organizations$Locations$Reports$Get,
4491
+ callback: BodyResponseCallback<Schema$Report>
4515
4492
  ): void;
4516
- get(callback: BodyResponseCallback<Schema$Location>): void;
4493
+ get(callback: BodyResponseCallback<Schema$Report>): void;
4517
4494
  get(
4518
4495
  paramsOrCallback?:
4519
- | Params$Resource$Projects$Locations$Get
4520
- | BodyResponseCallback<Schema$Location>
4496
+ | Params$Resource$Organizations$Locations$Reports$Get
4497
+ | BodyResponseCallback<Schema$Report>
4521
4498
  | BodyResponseCallback<Readable>,
4522
4499
  optionsOrCallback?:
4523
4500
  | MethodOptions
4524
4501
  | StreamMethodOptions
4525
- | BodyResponseCallback<Schema$Location>
4502
+ | BodyResponseCallback<Schema$Report>
4526
4503
  | BodyResponseCallback<Readable>,
4527
4504
  callback?:
4528
- BodyResponseCallback<Schema$Location> | BodyResponseCallback<Readable>
4505
+ BodyResponseCallback<Schema$Report> | BodyResponseCallback<Readable>
4529
4506
  ):
4530
4507
  | void
4531
- | Promise<GaxiosResponseWithHTTP2<Schema$Location>>
4508
+ | Promise<GaxiosResponseWithHTTP2<Schema$Report>>
4532
4509
  | Promise<GaxiosResponseWithHTTP2<Readable>> {
4533
4510
  let params = (paramsOrCallback ||
4534
- {}) as Params$Resource$Projects$Locations$Get;
4511
+ {}) as Params$Resource$Organizations$Locations$Reports$Get;
4535
4512
  let options = (optionsOrCallback || {}) as MethodOptions;
4536
4513
 
4537
4514
  if (typeof paramsOrCallback === 'function') {
4538
4515
  callback = paramsOrCallback;
4539
- params = {} as Params$Resource$Projects$Locations$Get;
4516
+ params = {} as Params$Resource$Organizations$Locations$Reports$Get;
4540
4517
  options = {};
4541
4518
  }
4542
4519
 
@@ -4562,17 +4539,17 @@ export namespace securityposture_v1 {
4562
4539
  context: this.context,
4563
4540
  };
4564
4541
  if (callback) {
4565
- createAPIRequest<Schema$Location>(
4542
+ createAPIRequest<Schema$Report>(
4566
4543
  parameters,
4567
4544
  callback as BodyResponseCallback<unknown>
4568
4545
  );
4569
4546
  } else {
4570
- return createAPIRequest<Schema$Location>(parameters);
4547
+ return createAPIRequest<Schema$Report>(parameters);
4571
4548
  }
4572
4549
  }
4573
4550
 
4574
4551
  /**
4575
- * Lists information about the supported locations for this service. This method lists locations based on the resource scope provided in the ListLocationsRequest.name field: * **Global locations**: If `name` is empty, the method lists the public locations available to all projects. * **Project-specific locations**: If `name` follows the format `projects/{project\}`, the method lists locations visible to that specific project. This includes public, private, or other project-specific locations enabled for the project. For gRPC and client library implementations, the resource name is passed as the `name` field. For direct service calls, the resource name is incorporated into the request path based on the specific service implementation and version.
4552
+ * Lists every Report in a given organization and location.
4576
4553
  * @example
4577
4554
  * ```js
4578
4555
  * // Before running the sample:
@@ -4601,24 +4578,23 @@ export namespace securityposture_v1 {
4601
4578
  * google.options({auth: authClient});
4602
4579
  *
4603
4580
  * // Do the magic
4604
- * const res = await securityposture.projects.locations.list({
4605
- * // Optional. Do not use this field unless explicitly documented otherwise. This is primarily for internal usage.
4606
- * extraLocationTypes: 'placeholder-value',
4607
- * // 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 [AIP-160](https://google.aip.dev/160).
4581
+ * const res = await securityposture.organizations.locations.reports.list({
4582
+ * // Optional. A filter to apply to the list of reports, in the format defined in [AIP-160: Filtering](https://google.aip.dev/160).
4608
4583
  * filter: 'placeholder-value',
4609
- * // The resource that owns the locations collection, if applicable.
4610
- * name: 'projects/my-project',
4611
- * // The maximum number of results to return. If not set, the service selects a default.
4584
+ * // Optional. The maximum number of reports to return. The default value is `500`. If you exceed the maximum value of `1000`, then the service uses the maximum value.
4612
4585
  * pageSize: 'placeholder-value',
4613
- * // A page token received from the `next_page_token` field in the response. Send that page token to receive the subsequent page.
4586
+ * // Optional. A pagination token returned from a previous request to list reports. Provide this token to retrieve the next page of results.
4614
4587
  * pageToken: 'placeholder-value',
4588
+ * // Required. The parent resource name, in the format `organizations/{organization\}/locations/global`.
4589
+ * parent: 'organizations/my-organization/locations/my-location',
4615
4590
  * });
4616
4591
  * console.log(res.data);
4617
4592
  *
4618
4593
  * // Example response
4619
4594
  * // {
4620
- * // "locations": [],
4621
- * // "nextPageToken": "my_nextPageToken"
4595
+ * // "nextPageToken": "my_nextPageToken",
4596
+ * // "reports": [],
4597
+ * // "unreachable": []
4622
4598
  * // }
4623
4599
  * }
4624
4600
  *
@@ -4635,53 +4611,52 @@ export namespace securityposture_v1 {
4635
4611
  * @returns A promise if used with async/await, or void if used with a callback.
4636
4612
  */
4637
4613
  list(
4638
- params: Params$Resource$Projects$Locations$List,
4614
+ params: Params$Resource$Organizations$Locations$Reports$List,
4639
4615
  options: StreamMethodOptions
4640
4616
  ): Promise<GaxiosResponseWithHTTP2<Readable>>;
4641
4617
  list(
4642
- params?: Params$Resource$Projects$Locations$List,
4618
+ params?: Params$Resource$Organizations$Locations$Reports$List,
4643
4619
  options?: MethodOptions
4644
- ): Promise<GaxiosResponseWithHTTP2<Schema$ListLocationsResponse>>;
4620
+ ): Promise<GaxiosResponseWithHTTP2<Schema$ListReportsResponse>>;
4645
4621
  list(
4646
- params: Params$Resource$Projects$Locations$List,
4622
+ params: Params$Resource$Organizations$Locations$Reports$List,
4647
4623
  options: StreamMethodOptions | BodyResponseCallback<Readable>,
4648
4624
  callback: BodyResponseCallback<Readable>
4649
4625
  ): void;
4650
4626
  list(
4651
- params: Params$Resource$Projects$Locations$List,
4652
- options:
4653
- MethodOptions | BodyResponseCallback<Schema$ListLocationsResponse>,
4654
- callback: BodyResponseCallback<Schema$ListLocationsResponse>
4627
+ params: Params$Resource$Organizations$Locations$Reports$List,
4628
+ options: MethodOptions | BodyResponseCallback<Schema$ListReportsResponse>,
4629
+ callback: BodyResponseCallback<Schema$ListReportsResponse>
4655
4630
  ): void;
4656
4631
  list(
4657
- params: Params$Resource$Projects$Locations$List,
4658
- callback: BodyResponseCallback<Schema$ListLocationsResponse>
4632
+ params: Params$Resource$Organizations$Locations$Reports$List,
4633
+ callback: BodyResponseCallback<Schema$ListReportsResponse>
4659
4634
  ): void;
4660
- list(callback: BodyResponseCallback<Schema$ListLocationsResponse>): void;
4635
+ list(callback: BodyResponseCallback<Schema$ListReportsResponse>): void;
4661
4636
  list(
4662
4637
  paramsOrCallback?:
4663
- | Params$Resource$Projects$Locations$List
4664
- | BodyResponseCallback<Schema$ListLocationsResponse>
4638
+ | Params$Resource$Organizations$Locations$Reports$List
4639
+ | BodyResponseCallback<Schema$ListReportsResponse>
4665
4640
  | BodyResponseCallback<Readable>,
4666
4641
  optionsOrCallback?:
4667
4642
  | MethodOptions
4668
4643
  | StreamMethodOptions
4669
- | BodyResponseCallback<Schema$ListLocationsResponse>
4644
+ | BodyResponseCallback<Schema$ListReportsResponse>
4670
4645
  | BodyResponseCallback<Readable>,
4671
4646
  callback?:
4672
- | BodyResponseCallback<Schema$ListLocationsResponse>
4647
+ | BodyResponseCallback<Schema$ListReportsResponse>
4673
4648
  | BodyResponseCallback<Readable>
4674
4649
  ):
4675
4650
  | void
4676
- | Promise<GaxiosResponseWithHTTP2<Schema$ListLocationsResponse>>
4651
+ | Promise<GaxiosResponseWithHTTP2<Schema$ListReportsResponse>>
4677
4652
  | Promise<GaxiosResponseWithHTTP2<Readable>> {
4678
4653
  let params = (paramsOrCallback ||
4679
- {}) as Params$Resource$Projects$Locations$List;
4654
+ {}) as Params$Resource$Organizations$Locations$Reports$List;
4680
4655
  let options = (optionsOrCallback || {}) as MethodOptions;
4681
4656
 
4682
4657
  if (typeof paramsOrCallback === 'function') {
4683
4658
  callback = paramsOrCallback;
4684
- params = {} as Params$Resource$Projects$Locations$List;
4659
+ params = {} as Params$Resource$Organizations$Locations$Reports$List;
4685
4660
  options = {};
4686
4661
  }
4687
4662
 
@@ -4695,7 +4670,7 @@ export namespace securityposture_v1 {
4695
4670
  const parameters = {
4696
4671
  options: Object.assign(
4697
4672
  {
4698
- url: (rootUrl + '/v1/{+name}/locations').replace(
4673
+ url: (rootUrl + '/v1/{+parent}/reports').replace(
4699
4674
  /([^:]\/)\/+/g,
4700
4675
  '$1'
4701
4676
  ),
@@ -4705,47 +4680,54 @@ export namespace securityposture_v1 {
4705
4680
  options
4706
4681
  ),
4707
4682
  params,
4708
- requiredParams: ['name'],
4709
- pathParams: ['name'],
4683
+ requiredParams: ['parent'],
4684
+ pathParams: ['parent'],
4710
4685
  context: this.context,
4711
4686
  };
4712
4687
  if (callback) {
4713
- createAPIRequest<Schema$ListLocationsResponse>(
4688
+ createAPIRequest<Schema$ListReportsResponse>(
4714
4689
  parameters,
4715
4690
  callback as BodyResponseCallback<unknown>
4716
4691
  );
4717
4692
  } else {
4718
- return createAPIRequest<Schema$ListLocationsResponse>(parameters);
4693
+ return createAPIRequest<Schema$ListReportsResponse>(parameters);
4719
4694
  }
4720
4695
  }
4721
4696
  }
4722
4697
 
4723
- export interface Params$Resource$Projects$Locations$Get extends StandardParameters {
4698
+ export interface Params$Resource$Organizations$Locations$Reports$Createiacvalidationreport extends StandardParameters {
4724
4699
  /**
4725
- * Resource name for the location.
4700
+ * Required. The parent resource name, in the format `organizations/{organization\}/locations/global`.
4726
4701
  */
4727
- name?: string;
4728
- }
4729
- export interface Params$Resource$Projects$Locations$List extends StandardParameters {
4702
+ parent?: string;
4703
+
4730
4704
  /**
4731
- * Optional. Do not use this field unless explicitly documented otherwise. This is primarily for internal usage.
4705
+ * Request body metadata
4732
4706
  */
4733
- extraLocationTypes?: string[];
4707
+ requestBody?: Schema$CreateIaCValidationReportRequest;
4708
+ }
4709
+ export interface Params$Resource$Organizations$Locations$Reports$Get extends StandardParameters {
4734
4710
  /**
4735
- * 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 [AIP-160](https://google.aip.dev/160).
4711
+ * Required. The name of the report, in the format `organizations/{organization\}/locations/global/reports/{report_id\}`.
4736
4712
  */
4737
- filter?: string;
4713
+ name?: string;
4714
+ }
4715
+ export interface Params$Resource$Organizations$Locations$Reports$List extends StandardParameters {
4738
4716
  /**
4739
- * The resource that owns the locations collection, if applicable.
4717
+ * Optional. A filter to apply to the list of reports, in the format defined in [AIP-160: Filtering](https://google.aip.dev/160).
4740
4718
  */
4741
- name?: string;
4719
+ filter?: string;
4742
4720
  /**
4743
- * The maximum number of results to return. If not set, the service selects a default.
4721
+ * Optional. The maximum number of reports to return. The default value is `500`. If you exceed the maximum value of `1000`, then the service uses the maximum value.
4744
4722
  */
4745
4723
  pageSize?: number;
4746
4724
  /**
4747
- * A page token received from the `next_page_token` field in the response. Send that page token to receive the subsequent page.
4725
+ * Optional. A pagination token returned from a previous request to list reports. Provide this token to retrieve the next page of results.
4748
4726
  */
4749
4727
  pageToken?: string;
4728
+ /**
4729
+ * Required. The parent resource name, in the format `organizations/{organization\}/locations/global`.
4730
+ */
4731
+ parent?: string;
4750
4732
  }
4751
4733
  }