Skip to content

Commit 1de1750

Browse files
yoshi-automationsofisl
authored andcommitted
feat(websecurityscanner): update the API
#### websecurityscanner:v1 The following keys were added: - schemas.ScanConfig.properties.latestRun.$ref - schemas.ScanConfig.properties.targetPlatforms.description - schemas.ScanConfig.properties.targetPlatforms.items.enum - schemas.ScanConfig.properties.targetPlatforms.items.enumDescriptions - schemas.ScanConfig.properties.targetPlatforms.items.type - schemas.ScanConfig.properties.targetPlatforms.type The following keys were changed: - resources.projects.resources.scanConfigs.methods.patch.parameters.name.description - schemas.ScanConfig.properties.name.description
1 parent aa96c66 commit 1de1750

File tree

2 files changed

+34
-5
lines changed

2 files changed

+34
-5
lines changed

‎discovery/websecurityscanner-v1.json

Lines changed: 27 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,7 @@
233233
],
234234
"parameters": {
235235
"name": {
236-
"description": "The resource name of the ScanConfig. The name follows the format of 'projects/{projectId}/scanConfigs/{scanConfigId}'. The ScanConfig IDs are generated by the system.",
236+
"description": "Identifier. The resource name of the ScanConfig. The name follows the format of 'projects/{projectId}/scanConfigs/{scanConfigId}'. The ScanConfig IDs are generated by the system.",
237237
"location": "path",
238238
"pattern": "^projects/[^/]+/scanConfigs/[^/]+$",
239239
"required": true,
@@ -526,7 +526,7 @@
526526
}
527527
}
528528
},
529-
"revision": "20231112",
529+
"revision": "20250105",
530530
"rootUrl": "https://websecurityscanner.googleapis.com/",
531531
"schemas": {
532532
"Authentication": {
@@ -920,6 +920,9 @@
920920
"description": "Whether to keep scanning even if most requests return HTTP error codes.",
921921
"type": "boolean"
922922
},
923+
"latestRun": {
924+
"$ref": "ScanRun"
925+
},
923926
"managedScan": {
924927
"description": "Whether the scan config is managed by Web Security Scanner, output only.",
925928
"type": "boolean"
@@ -930,7 +933,7 @@
930933
"type": "integer"
931934
},
932935
"name": {
933-
"description": "The resource name of the ScanConfig. The name follows the format of 'projects/{projectId}/scanConfigs/{scanConfigId}'. The ScanConfig IDs are generated by the system.",
936+
"description": "Identifier. The resource name of the ScanConfig. The name follows the format of 'projects/{projectId}/scanConfigs/{scanConfigId}'. The ScanConfig IDs are generated by the system.",
934937
"type": "string"
935938
},
936939
"riskLevel": {
@@ -962,6 +965,27 @@
962965
"description": "Whether the scan configuration has enabled static IP address scan feature. If enabled, the scanner will access applications from static IP addresses.",
963966
"type": "boolean"
964967
},
968+
"targetPlatforms": {
969+
"description": "Set of Google Cloud platforms targeted by the scan. If empty, APP_ENGINE will be used as a default.",
970+
"items": {
971+
"enum": [
972+
"TARGET_PLATFORM_UNSPECIFIED",
973+
"APP_ENGINE",
974+
"COMPUTE",
975+
"CLOUD_RUN",
976+
"CLOUD_FUNCTIONS"
977+
],
978+
"enumDescriptions": [
979+
"The target platform is unknown. Requests with this enum value will be rejected with INVALID_ARGUMENT error.",
980+
"Google App Engine service.",
981+
"Google Compute Engine service.",
982+
"Google Cloud Run service.",
983+
"Google Cloud Function service."
984+
],
985+
"type": "string"
986+
},
987+
"type": "array"
988+
},
965989
"userAgent": {
966990
"description": "The user agent used during scanning.",
967991
"enum": [

‎src/apis/websecurityscanner/v1.ts

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -428,6 +428,7 @@ export namespace websecurityscanner_v1 {
428428
* Whether to keep scanning even if most requests return HTTP error codes.
429429
*/
430430
ignoreHttpStatusErrors?: boolean | null;
431+
latestRun?: Schema$ScanRun;
431432
/**
432433
* Whether the scan config is managed by Web Security Scanner, output only.
433434
*/
@@ -437,7 +438,7 @@ export namespace websecurityscanner_v1 {
437438
*/
438439
maxQps?: number | null;
439440
/**
440-
* The resource name of the ScanConfig. The name follows the format of 'projects/{projectId\}/scanConfigs/{scanConfigId\}'. The ScanConfig IDs are generated by the system.
441+
* Identifier. The resource name of the ScanConfig. The name follows the format of 'projects/{projectId\}/scanConfigs/{scanConfigId\}'. The ScanConfig IDs are generated by the system.
441442
*/
442443
name?: string | null;
443444
/**
@@ -456,6 +457,10 @@ export namespace websecurityscanner_v1 {
456457
* Whether the scan configuration has enabled static IP address scan feature. If enabled, the scanner will access applications from static IP addresses.
457458
*/
458459
staticIpScan?: boolean | null;
460+
/**
461+
* Set of Google Cloud platforms targeted by the scan. If empty, APP_ENGINE will be used as a default.
462+
*/
463+
targetPlatforms?: string[] | null;
459464
/**
460465
* The user agent used during scanning.
461466
*/
@@ -1229,7 +1234,7 @@ export namespace websecurityscanner_v1 {
12291234
export interface Params$Resource$Projects$Scanconfigs$Patch
12301235
extends StandardParameters {
12311236
/**
1232-
* The resource name of the ScanConfig. The name follows the format of 'projects/{projectId\}/scanConfigs/{scanConfigId\}'. The ScanConfig IDs are generated by the system.
1237+
* Identifier. The resource name of the ScanConfig. The name follows the format of 'projects/{projectId\}/scanConfigs/{scanConfigId\}'. The ScanConfig IDs are generated by the system.
12331238
*/
12341239
name?: string;
12351240
/**

0 commit comments

Comments
 (0)