Skip to content

Commit 84dcfe1

Browse files
yoshi-automationsofisl
authored andcommitted
feat(workloadmanager)!: update the API
BREAKING CHANGE: This release has breaking changes. #### workloadmanager:v1 The following keys were deleted: - resources.projects.resources.locations.resources.discoveredprofiles.methods.get.description - resources.projects.resources.locations.resources.discoveredprofiles.methods.get.flatPath - resources.projects.resources.locations.resources.discoveredprofiles.methods.get.httpMethod - resources.projects.resources.locations.resources.discoveredprofiles.methods.get.id - resources.projects.resources.locations.resources.discoveredprofiles.methods.get.parameterOrder - resources.projects.resources.locations.resources.discoveredprofiles.methods.get.parameters.name.description - resources.projects.resources.locations.resources.discoveredprofiles.methods.get.parameters.name.location - resources.projects.resources.locations.resources.discoveredprofiles.methods.get.parameters.name.pattern - resources.projects.resources.locations.resources.discoveredprofiles.methods.get.parameters.name.required - resources.projects.resources.locations.resources.discoveredprofiles.methods.get.parameters.name.type - resources.projects.resources.locations.resources.discoveredprofiles.methods.get.path - resources.projects.resources.locations.resources.discoveredprofiles.methods.get.response.$ref - resources.projects.resources.locations.resources.discoveredprofiles.methods.get.scopes - resources.projects.resources.locations.resources.discoveredprofiles.resources.healthes.methods.get.description - resources.projects.resources.locations.resources.discoveredprofiles.resources.healthes.methods.get.flatPath - resources.projects.resources.locations.resources.discoveredprofiles.resources.healthes.methods.get.httpMethod - resources.projects.resources.locations.resources.discoveredprofiles.resources.healthes.methods.get.id - resources.projects.resources.locations.resources.discoveredprofiles.resources.healthes.methods.get.parameterOrder - resources.projects.resources.locations.resources.discoveredprofiles.resources.healthes.methods.get.parameters.name.description - resources.projects.resources.locations.resources.discoveredprofiles.resources.healthes.methods.get.parameters.name.location - resources.projects.resources.locations.resources.discoveredprofiles.resources.healthes.methods.get.parameters.name.pattern - resources.projects.resources.locations.resources.discoveredprofiles.resources.healthes.methods.get.parameters.name.required - resources.projects.resources.locations.resources.discoveredprofiles.resources.healthes.methods.get.parameters.name.type - resources.projects.resources.locations.resources.discoveredprofiles.resources.healthes.methods.get.path - resources.projects.resources.locations.resources.discoveredprofiles.resources.healthes.methods.get.response.$ref - resources.projects.resources.locations.resources.discoveredprofiles.resources.healthes.methods.get.scopes - schemas.ComponentHealth.description - schemas.ComponentHealth.id - schemas.ComponentHealth.properties.component.description - schemas.ComponentHealth.properties.component.type - schemas.ComponentHealth.properties.componentHealthChecks.description - schemas.ComponentHealth.properties.componentHealthChecks.items.$ref - schemas.ComponentHealth.properties.componentHealthChecks.type - schemas.ComponentHealth.properties.componentHealthType.description - schemas.ComponentHealth.properties.componentHealthType.enum - schemas.ComponentHealth.properties.componentHealthType.enumDescriptions - schemas.ComponentHealth.properties.componentHealthType.readOnly - schemas.ComponentHealth.properties.componentHealthType.type - schemas.ComponentHealth.properties.isRequired.description - schemas.ComponentHealth.properties.isRequired.readOnly - schemas.ComponentHealth.properties.isRequired.type - schemas.ComponentHealth.properties.state.description - schemas.ComponentHealth.properties.state.enum - schemas.ComponentHealth.properties.state.enumDescriptions - schemas.ComponentHealth.properties.state.readOnly - schemas.ComponentHealth.properties.state.type - schemas.ComponentHealth.properties.subComponentHealthes.deprecated - schemas.ComponentHealth.properties.subComponentHealthes.items.$ref - schemas.ComponentHealth.properties.subComponentHealthes.type - schemas.ComponentHealth.properties.subComponentsHealth.description - schemas.ComponentHealth.properties.subComponentsHealth.items.$ref - schemas.ComponentHealth.properties.subComponentsHealth.type - schemas.ComponentHealth.type - schemas.HealthCheck.description - schemas.HealthCheck.id - schemas.HealthCheck.properties.message.description - schemas.HealthCheck.properties.message.readOnly - schemas.HealthCheck.properties.message.type - schemas.HealthCheck.properties.metric.description - schemas.HealthCheck.properties.metric.readOnly - schemas.HealthCheck.properties.metric.type - schemas.HealthCheck.properties.resource.$ref - schemas.HealthCheck.properties.resource.description - schemas.HealthCheck.properties.resource.readOnly - schemas.HealthCheck.properties.source.description - schemas.HealthCheck.properties.source.readOnly - schemas.HealthCheck.properties.source.type - schemas.HealthCheck.properties.state.description - schemas.HealthCheck.properties.state.enum - schemas.HealthCheck.properties.state.enumDescriptions - schemas.HealthCheck.properties.state.readOnly - schemas.HealthCheck.properties.state.type - schemas.HealthCheck.type - schemas.WorkloadProfileHealth.description - schemas.WorkloadProfileHealth.id - schemas.WorkloadProfileHealth.properties.checkTime.description - schemas.WorkloadProfileHealth.properties.checkTime.format - schemas.WorkloadProfileHealth.properties.checkTime.type - schemas.WorkloadProfileHealth.properties.componentHealthes.deprecated - schemas.WorkloadProfileHealth.properties.componentHealthes.items.$ref - schemas.WorkloadProfileHealth.properties.componentHealthes.type - schemas.WorkloadProfileHealth.properties.componentsHealth.description - schemas.WorkloadProfileHealth.properties.componentsHealth.items.$ref - schemas.WorkloadProfileHealth.properties.componentsHealth.type - schemas.WorkloadProfileHealth.properties.state.description - schemas.WorkloadProfileHealth.properties.state.enum - schemas.WorkloadProfileHealth.properties.state.enumDescriptions - schemas.WorkloadProfileHealth.properties.state.readOnly - schemas.WorkloadProfileHealth.properties.state.type - schemas.WorkloadProfileHealth.type The following keys were added: - resources.projects.resources.locations.resources.rules.methods.list.parameters.evaluationType.enumDeprecated - schemas.Evaluation.properties.evaluationType.enumDeprecated The following keys were changed: - resources.projects.resources.locations.resources.rules.methods.list.parameters.evaluationType.enumDescriptions - schemas.Evaluation.properties.evaluationType.enumDescriptions
1 parent 79271a9 commit 84dcfe1

File tree

2 files changed

+17
-607
lines changed

2 files changed

+17
-607
lines changed

discovery/workloadmanager-v1.json

Lines changed: 17 additions & 225 deletions
Original file line numberDiff line numberDiff line change
@@ -185,31 +185,6 @@
185185
"resources": {
186186
"discoveredprofiles": {
187187
"methods": {
188-
"get": {
189-
"description": "Gets details of a discovered workload profile.",
190-
"flatPath": "v1/projects/{projectsId}/locations/{locationsId}/discoveredprofiles/{discoveredprofilesId}",
191-
"httpMethod": "GET",
192-
"id": "workloadmanager.projects.locations.discoveredprofiles.get",
193-
"parameterOrder": [
194-
"name"
195-
],
196-
"parameters": {
197-
"name": {
198-
"description": "Required. Name of the resource",
199-
"location": "path",
200-
"pattern": "^projects/[^/]+/locations/[^/]+/discoveredprofiles/[^/]+$",
201-
"required": true,
202-
"type": "string"
203-
}
204-
},
205-
"path": "v1/{+name}",
206-
"response": {
207-
"$ref": "WorkloadProfile"
208-
},
209-
"scopes": [
210-
"https://www.googleapis.com/auth/cloud-platform"
211-
]
212-
},
213188
"list": {
214189
"description": "List discovered workload profiles",
215190
"flatPath": "v1/projects/{projectsId}/locations/{locationsId}/discoveredprofiles",
@@ -251,37 +226,6 @@
251226
"https://www.googleapis.com/auth/cloud-platform"
252227
]
253228
}
254-
},
255-
"resources": {
256-
"healthes": {
257-
"methods": {
258-
"get": {
259-
"description": "Get the health of a discovered workload profile.",
260-
"flatPath": "v1/projects/{projectsId}/locations/{locationsId}/discoveredprofiles/{discoveredprofilesId}/healthes/{healthesId}",
261-
"httpMethod": "GET",
262-
"id": "workloadmanager.projects.locations.discoveredprofiles.healthes.get",
263-
"parameterOrder": [
264-
"name"
265-
],
266-
"parameters": {
267-
"name": {
268-
"description": "Required. The resource name",
269-
"location": "path",
270-
"pattern": "^projects/[^/]+/locations/[^/]+/discoveredprofiles/[^/]+/healthes/[^/]+$",
271-
"required": true,
272-
"type": "string"
273-
}
274-
},
275-
"path": "v1/{+name}",
276-
"response": {
277-
"$ref": "WorkloadProfileHealth"
278-
},
279-
"scopes": [
280-
"https://www.googleapis.com/auth/cloud-platform"
281-
]
282-
}
283-
}
284-
}
285229
}
286230
},
287231
"evaluations": {
@@ -879,12 +823,19 @@
879823
"OTHER",
880824
"SCC_IAC"
881825
],
826+
"enumDeprecated": [
827+
false,
828+
false,
829+
false,
830+
false,
831+
true
832+
],
882833
"enumDescriptions": [
883834
"Not specified",
884835
"SAP best practices",
885836
"SQL best practices",
886837
"Customized best practices",
887-
"SCC IaC (Infra as Code) best practices"
838+
"SCC IaC (Infra as Code) best practices."
888839
],
889840
"location": "query",
890841
"type": "string"
@@ -928,7 +879,7 @@
928879
}
929880
}
930881
},
931-
"revision": "20250609",
882+
"revision": "20250630",
932883
"rootUrl": "https://workloadmanager.googleapis.com/",
933884
"schemas": {
934885
"AgentCommand": {
@@ -1323,79 +1274,6 @@
13231274
},
13241275
"type": "object"
13251276
},
1326-
"ComponentHealth": {
1327-
"description": "HealthCondition contains the detailed health check of each component.",
1328-
"id": "ComponentHealth",
1329-
"properties": {
1330-
"component": {
1331-
"description": "The component of a workload.",
1332-
"type": "string"
1333-
},
1334-
"componentHealthChecks": {
1335-
"description": "The detailed health checks of the component.",
1336-
"items": {
1337-
"$ref": "HealthCheck"
1338-
},
1339-
"type": "array"
1340-
},
1341-
"componentHealthType": {
1342-
"description": "Output only. The type of the component health.",
1343-
"enum": [
1344-
"TYPE_UNSPECIFIED",
1345-
"TYPE_REQUIRED",
1346-
"TYPE_OPTIONAL",
1347-
"TYPE_SPECIAL"
1348-
],
1349-
"enumDescriptions": [
1350-
"Unspecified",
1351-
"required",
1352-
"optional",
1353-
"special"
1354-
],
1355-
"readOnly": true,
1356-
"type": "string"
1357-
},
1358-
"isRequired": {
1359-
"description": "Output only. The requirement of the component.",
1360-
"readOnly": true,
1361-
"type": "boolean"
1362-
},
1363-
"state": {
1364-
"description": "Output only. The health state of the component.",
1365-
"enum": [
1366-
"HEALTH_STATE_UNSPECIFIED",
1367-
"HEALTHY",
1368-
"UNHEALTHY",
1369-
"CRITICAL",
1370-
"UNSUPPORTED"
1371-
],
1372-
"enumDescriptions": [
1373-
"Unspecified",
1374-
"healthy workload",
1375-
"unhealthy workload",
1376-
"has critical issues",
1377-
"unsupported"
1378-
],
1379-
"readOnly": true,
1380-
"type": "string"
1381-
},
1382-
"subComponentHealthes": {
1383-
"deprecated": true,
1384-
"items": {
1385-
"$ref": "ComponentHealth"
1386-
},
1387-
"type": "array"
1388-
},
1389-
"subComponentsHealth": {
1390-
"description": "Sub component health.",
1391-
"items": {
1392-
"$ref": "ComponentHealth"
1393-
},
1394-
"type": "array"
1395-
}
1396-
},
1397-
"type": "object"
1398-
},
13991277
"DatabaseProperties": {
14001278
"description": "Database Properties.",
14011279
"id": "DatabaseProperties",
@@ -1468,12 +1346,19 @@
14681346
"OTHER",
14691347
"SCC_IAC"
14701348
],
1349+
"enumDeprecated": [
1350+
false,
1351+
false,
1352+
false,
1353+
false,
1354+
true
1355+
],
14711356
"enumDescriptions": [
14721357
"Not specified",
14731358
"SAP best practices",
14741359
"SQL best practices",
14751360
"Customized best practices",
1476-
"SCC IaC (Infra as Code) best practices"
1361+
"SCC IaC (Infra as Code) best practices."
14771362
],
14781363
"type": "string"
14791364
},
@@ -1722,54 +1607,6 @@
17221607
},
17231608
"type": "object"
17241609
},
1725-
"HealthCheck": {
1726-
"description": "HealthCheck contains the detailed health check of a component based on asource.",
1727-
"id": "HealthCheck",
1728-
"properties": {
1729-
"message": {
1730-
"description": "Output only. The message of the health check.",
1731-
"readOnly": true,
1732-
"type": "string"
1733-
},
1734-
"metric": {
1735-
"description": "Output only. The health check source metric name.",
1736-
"readOnly": true,
1737-
"type": "string"
1738-
},
1739-
"resource": {
1740-
"$ref": "CloudResource",
1741-
"description": "Output only. The resource the check performs on.",
1742-
"readOnly": true
1743-
},
1744-
"source": {
1745-
"description": "Output only. The source of the health check.",
1746-
"readOnly": true,
1747-
"type": "string"
1748-
},
1749-
"state": {
1750-
"description": "Output only. The state of the health check.",
1751-
"enum": [
1752-
"STATE_UNSPECIFIED",
1753-
"PASSED",
1754-
"FAILED",
1755-
"DEGRADED",
1756-
"SKIPPED",
1757-
"UNSUPPORTED"
1758-
],
1759-
"enumDescriptions": [
1760-
"Unspecified",
1761-
"passed",
1762-
"failed",
1763-
"degraded",
1764-
"skipped",
1765-
"unsupported"
1766-
],
1767-
"readOnly": true,
1768-
"type": "string"
1769-
}
1770-
},
1771-
"type": "object"
1772-
},
17731610
"Insight": {
17741611
"description": "A presentation of host resource usage where the workload runs.",
17751612
"id": "Insight",
@@ -3402,51 +3239,6 @@
34023239
},
34033240
"type": "object"
34043241
},
3405-
"WorkloadProfileHealth": {
3406-
"description": "WorkloadProfileHealth contains the detailed health check of workload.",
3407-
"id": "WorkloadProfileHealth",
3408-
"properties": {
3409-
"checkTime": {
3410-
"description": "The time when the health check was performed.",
3411-
"format": "google-datetime",
3412-
"type": "string"
3413-
},
3414-
"componentHealthes": {
3415-
"deprecated": true,
3416-
"items": {
3417-
"$ref": "ComponentHealth"
3418-
},
3419-
"type": "array"
3420-
},
3421-
"componentsHealth": {
3422-
"description": "The detailed condition reports of each component.",
3423-
"items": {
3424-
"$ref": "ComponentHealth"
3425-
},
3426-
"type": "array"
3427-
},
3428-
"state": {
3429-
"description": "Output only. The health state of the workload.",
3430-
"enum": [
3431-
"HEALTH_STATE_UNSPECIFIED",
3432-
"HEALTHY",
3433-
"UNHEALTHY",
3434-
"CRITICAL",
3435-
"UNSUPPORTED"
3436-
],
3437-
"enumDescriptions": [
3438-
"Unspecified",
3439-
"healthy workload",
3440-
"unhealthy workload",
3441-
"has critical issues",
3442-
"unsupported"
3443-
],
3444-
"readOnly": true,
3445-
"type": "string"
3446-
}
3447-
},
3448-
"type": "object"
3449-
},
34503242
"WriteInsightRequest": {
34513243
"description": "Request for sending the data insights.",
34523244
"id": "WriteInsightRequest",

0 commit comments

Comments
 (0)