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