Skip to content

Commit 6685330

Browse files
feat(workloadmanager): update the API
#### workloadmanager:v1 The following keys were added: - schemas.ExecutionResult.properties.type.description - schemas.ExecutionResult.properties.type.enum - schemas.ExecutionResult.properties.type.enumDescriptions - schemas.ExecutionResult.properties.type.type - schemas.SapDiscoveryResourceInstanceProperties.properties.isDrSite.description - schemas.SapDiscoveryResourceInstanceProperties.properties.isDrSite.type
1 parent d7c44ad commit 6685330

File tree

2 files changed

+27
-1
lines changed

2 files changed

+27
-1
lines changed

discovery/workloadmanager-v1.json

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -772,7 +772,7 @@
772772
}
773773
}
774774
},
775-
"revision": "20240821",
775+
"revision": "20241002",
776776
"rootUrl": "https://workloadmanager.googleapis.com/",
777777
"schemas": {
778778
"AgentCommand": {
@@ -1096,6 +1096,20 @@
10961096
"description": "The severity of violation.",
10971097
"type": "string"
10981098
},
1099+
"type": {
1100+
"description": "Execution result type of the scanned resource",
1101+
"enum": [
1102+
"TYPE_UNSPECIFIED",
1103+
"TYPE_PASSED",
1104+
"TYPE_VIOLATED"
1105+
],
1106+
"enumDescriptions": [
1107+
"Unknown state",
1108+
"resource successfully passed the rule",
1109+
"resource violated the rule"
1110+
],
1111+
"type": "string"
1112+
},
10991113
"violationDetails": {
11001114
"$ref": "ViolationDetails",
11011115
"description": "The details of violation in an evaluation result."
@@ -2204,6 +2218,10 @@
22042218
],
22052219
"type": "string"
22062220
},
2221+
"isDrSite": {
2222+
"description": "Optional. Instance is part of a DR site.",
2223+
"type": "boolean"
2224+
},
22072225
"virtualHostname": {
22082226
"description": "Optional. A virtual hostname of the instance if it has one.",
22092227
"type": "string"

src/apis/workloadmanager/v1.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -330,6 +330,10 @@ export namespace workloadmanager_v1 {
330330
* The severity of violation.
331331
*/
332332
severity?: string | null;
333+
/**
334+
* Execution result type of the scanned resource
335+
*/
336+
type?: string | null;
333337
/**
334338
* The details of violation in an evaluation result.
335339
*/
@@ -965,6 +969,10 @@ export namespace workloadmanager_v1 {
965969
* Optional. Bitmask of instance role, a resource may have multiple roles at once.
966970
*/
967971
instanceRole?: string | null;
972+
/**
973+
* Optional. Instance is part of a DR site.
974+
*/
975+
isDrSite?: boolean | null;
968976
/**
969977
* Optional. A virtual hostname of the instance if it has one.
970978
*/

0 commit comments

Comments
 (0)