Skip to content

Commit 6e4890a

Browse files
yoshi-automationleahecole
authored andcommitted
feat(workloadmanager): update the API
#### workloadmanager:v1 The following keys were added: - schemas.AgentStates.properties.hanaMonitoring.$ref - schemas.AgentStates.properties.hanaMonitoring.description - schemas.AgentStates.properties.isFullyEnabled.description - schemas.AgentStates.properties.isFullyEnabled.type - schemas.AgentStates.properties.processMetrics.$ref - schemas.AgentStates.properties.processMetrics.description - schemas.AgentStates.properties.systemDiscovery.$ref - schemas.AgentStates.properties.systemDiscovery.description - schemas.Execution.properties.engine.description - schemas.Execution.properties.engine.enum - schemas.Execution.properties.engine.enumDescriptions - schemas.Execution.properties.engine.type - schemas.IAMPermission.description - schemas.IAMPermission.id - schemas.IAMPermission.properties.granted.description - schemas.IAMPermission.properties.granted.readOnly - schemas.IAMPermission.properties.granted.type - schemas.IAMPermission.properties.name.description - schemas.IAMPermission.properties.name.readOnly - schemas.IAMPermission.properties.name.type - schemas.IAMPermission.type - schemas.ServiceStates.description - schemas.ServiceStates.id - schemas.ServiceStates.properties.iamPermissions.description - schemas.ServiceStates.properties.iamPermissions.items.$ref - schemas.ServiceStates.properties.iamPermissions.readOnly - schemas.ServiceStates.properties.iamPermissions.type - schemas.ServiceStates.properties.state.description - schemas.ServiceStates.properties.state.enum - schemas.ServiceStates.properties.state.enumDescriptions - schemas.ServiceStates.properties.state.readOnly - schemas.ServiceStates.properties.state.type - schemas.ServiceStates.type
1 parent 0e3e062 commit 6e4890a

File tree

2 files changed

+131
-1
lines changed

2 files changed

+131
-1
lines changed

discovery/workloadmanager-v1.json

Lines changed: 84 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -879,7 +879,7 @@
879879
}
880880
}
881881
},
882-
"revision": "20250727",
882+
"revision": "20250806",
883883
"rootUrl": "https://workloadmanager.googleapis.com/",
884884
"schemas": {
885885
"AgentCommand": {
@@ -908,9 +908,25 @@
908908
"description": "Optional. The available version of the agent in artifact registry.",
909909
"type": "string"
910910
},
911+
"hanaMonitoring": {
912+
"$ref": "ServiceStates",
913+
"description": "Optional. HANA monitoring metrics of the agent."
914+
},
911915
"installedVersion": {
912916
"description": "Optional. The installed version of the agent on the host.",
913917
"type": "string"
918+
},
919+
"isFullyEnabled": {
920+
"description": "Optional. Whether the agent is fully enabled. If false, the agent is has some issues.",
921+
"type": "boolean"
922+
},
923+
"processMetrics": {
924+
"$ref": "ServiceStates",
925+
"description": "Optional. The Process metrics of the agent."
926+
},
927+
"systemDiscovery": {
928+
"$ref": "ServiceStates",
929+
"description": "Optional. The System discovery metrics of the agent."
914930
}
915931
},
916932
"type": "object"
@@ -1444,6 +1460,20 @@
14441460
"readOnly": true,
14451461
"type": "string"
14461462
},
1463+
"engine": {
1464+
"description": "Optional. Engine",
1465+
"enum": [
1466+
"ENGINE_UNSPECIFIED",
1467+
"ENGINE_SCANNER",
1468+
"V2"
1469+
],
1470+
"enumDescriptions": [
1471+
"The original CG",
1472+
"SlimCG / Scanner",
1473+
"Evaluation Engine V2"
1474+
],
1475+
"type": "string"
1476+
},
14471477
"evaluationId": {
14481478
"description": "Output only. [Output only] Evaluation ID",
14491479
"readOnly": true,
@@ -1631,6 +1661,23 @@
16311661
},
16321662
"type": "object"
16331663
},
1664+
"IAMPermission": {
1665+
"description": "The IAM permission status.",
1666+
"id": "IAMPermission",
1667+
"properties": {
1668+
"granted": {
1669+
"description": "Output only. Whether the permission is granted.",
1670+
"readOnly": true,
1671+
"type": "boolean"
1672+
},
1673+
"name": {
1674+
"description": "Output only. The name of the permission.",
1675+
"readOnly": true,
1676+
"type": "string"
1677+
}
1678+
},
1679+
"type": "object"
1680+
},
16341681
"Insight": {
16351682
"description": "A presentation of host resource usage where the workload runs.",
16361683
"id": "Insight",
@@ -2975,6 +3022,42 @@
29753022
},
29763023
"type": "object"
29773024
},
3025+
"ServiceStates": {
3026+
"description": "The state of the service.",
3027+
"id": "ServiceStates",
3028+
"properties": {
3029+
"iamPermissions": {
3030+
"description": "Optional. Output only. The IAM permissions for the service.",
3031+
"items": {
3032+
"$ref": "IAMPermission"
3033+
},
3034+
"readOnly": true,
3035+
"type": "array"
3036+
},
3037+
"state": {
3038+
"description": "Output only. The overall state of the service.",
3039+
"enum": [
3040+
"STATE_UNSPECIFIED",
3041+
"CONFIG_FAILURE",
3042+
"IAM_FAILURE",
3043+
"FUNCTIONAILITY_FAILURE",
3044+
"ENABLED",
3045+
"DISABLED"
3046+
],
3047+
"enumDescriptions": [
3048+
"The state is unspecified.",
3049+
"The state means the service has config errors.",
3050+
"The state means the service has IAM permission errors.",
3051+
"The state means the service has functionality errors.",
3052+
"The state means the service has no error.",
3053+
"The state means the service disabled."
3054+
],
3055+
"readOnly": true,
3056+
"type": "string"
3057+
}
3058+
},
3059+
"type": "object"
3060+
},
29783061
"ShellCommand": {
29793062
"description": "* A ShellCommand is invoked via the agent's command line executor",
29803063
"id": "ShellCommand",

src/apis/workloadmanager/v1.ts

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -145,10 +145,26 @@ export namespace workloadmanager_v1 {
145145
* Optional. The available version of the agent in artifact registry.
146146
*/
147147
availableVersion?: string | null;
148+
/**
149+
* Optional. HANA monitoring metrics of the agent.
150+
*/
151+
hanaMonitoring?: Schema$ServiceStates;
148152
/**
149153
* Optional. The installed version of the agent on the host.
150154
*/
151155
installedVersion?: string | null;
156+
/**
157+
* Optional. Whether the agent is fully enabled. If false, the agent is has some issues.
158+
*/
159+
isFullyEnabled?: boolean | null;
160+
/**
161+
* Optional. The Process metrics of the agent.
162+
*/
163+
processMetrics?: Schema$ServiceStates;
164+
/**
165+
* Optional. The System discovery metrics of the agent.
166+
*/
167+
systemDiscovery?: Schema$ServiceStates;
152168
}
153169
/**
154170
* The schema of agent status data.
@@ -429,6 +445,10 @@ export namespace workloadmanager_v1 {
429445
* Output only. [Output only] End time stamp
430446
*/
431447
endTime?: string | null;
448+
/**
449+
* Optional. Engine
450+
*/
451+
engine?: string | null;
432452
/**
433453
* Output only. [Output only] Evaluation ID
434454
*/
@@ -541,6 +561,19 @@ export namespace workloadmanager_v1 {
541561
*/
542562
serviceAccounts?: string[] | null;
543563
}
564+
/**
565+
* The IAM permission status.
566+
*/
567+
export interface Schema$IAMPermission {
568+
/**
569+
* Output only. Whether the permission is granted.
570+
*/
571+
granted?: boolean | null;
572+
/**
573+
* Output only. The name of the permission.
574+
*/
575+
name?: string | null;
576+
}
544577
/**
545578
* A presentation of host resource usage where the workload runs.
546579
*/
@@ -1443,6 +1476,19 @@ export namespace workloadmanager_v1 {
14431476
*/
14441477
type?: string | null;
14451478
}
1479+
/**
1480+
* The state of the service.
1481+
*/
1482+
export interface Schema$ServiceStates {
1483+
/**
1484+
* Optional. Output only. The IAM permissions for the service.
1485+
*/
1486+
iamPermissions?: Schema$IAMPermission[];
1487+
/**
1488+
* Output only. The overall state of the service.
1489+
*/
1490+
state?: string | null;
1491+
}
14461492
/**
14471493
* * A ShellCommand is invoked via the agent's command line executor
14481494
*/
@@ -3065,6 +3111,7 @@ export namespace workloadmanager_v1 {
30653111
* // Example response
30663112
* // {
30673113
* // "endTime": "my_endTime",
3114+
* // "engine": "my_engine",
30683115
* // "evaluationId": "my_evaluationId",
30693116
* // "externalDataSources": [],
30703117
* // "inventoryTime": "my_inventoryTime",

0 commit comments

Comments
 (0)