Skip to content

Commit 2b6e6ea

Browse files
feat(workloadmanager): update the api
#### workloadmanager:v1 The following keys were added: - schemas.Evaluation.properties.evaluationType.type (Total Keys: 1) - schemas.Execution.properties.resultSummary (Total Keys: 2) - schemas.Insight.properties.torsoValidation.$ref (Total Keys: 1) - schemas.Summary (Total Keys: 11) - schemas.TorsoValidation (Total Keys: 8)
1 parent a2188e9 commit 2b6e6ea

5 files changed

+125
-4
lines changed

docs/dyn/workloadmanager_v1.projects.locations.evaluations.executions.html

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -179,6 +179,11 @@ <h3>Method Details</h3>
179179
&quot;message&quot;: &quot;A String&quot;, # Output only. Message of the notice
180180
},
181181
],
182+
&quot;resultSummary&quot;: { # Message for execution summary # Output only. [Output only] Result summary
183+
&quot;failures&quot;: &quot;A String&quot;, # Output only. Number of failures
184+
&quot;newFailures&quot;: &quot;A String&quot;, # Output only. Number of new failures compared to the previous execution
185+
&quot;newFixes&quot;: &quot;A String&quot;, # Output only. Number of new fixes compared to the previous execution
186+
},
182187
&quot;ruleResults&quot;: [ # Output only. execution result summary per rule
183188
{ # Message for execution result summary per rule
184189
&quot;message&quot;: &quot;A String&quot;, # Execution message, if any
@@ -235,6 +240,11 @@ <h3>Method Details</h3>
235240
&quot;message&quot;: &quot;A String&quot;, # Output only. Message of the notice
236241
},
237242
],
243+
&quot;resultSummary&quot;: { # Message for execution summary # Output only. [Output only] Result summary
244+
&quot;failures&quot;: &quot;A String&quot;, # Output only. Number of failures
245+
&quot;newFailures&quot;: &quot;A String&quot;, # Output only. Number of new failures compared to the previous execution
246+
&quot;newFixes&quot;: &quot;A String&quot;, # Output only. Number of new fixes compared to the previous execution
247+
},
238248
&quot;ruleResults&quot;: [ # Output only. execution result summary per rule
239249
{ # Message for execution result summary per rule
240250
&quot;message&quot;: &quot;A String&quot;, # Execution message, if any
@@ -301,6 +311,11 @@ <h3>Method Details</h3>
301311
&quot;message&quot;: &quot;A String&quot;, # Output only. Message of the notice
302312
},
303313
],
314+
&quot;resultSummary&quot;: { # Message for execution summary # Output only. [Output only] Result summary
315+
&quot;failures&quot;: &quot;A String&quot;, # Output only. Number of failures
316+
&quot;newFailures&quot;: &quot;A String&quot;, # Output only. Number of new failures compared to the previous execution
317+
&quot;newFixes&quot;: &quot;A String&quot;, # Output only. Number of new fixes compared to the previous execution
318+
},
304319
&quot;ruleResults&quot;: [ # Output only. execution result summary per rule
305320
{ # Message for execution result summary per rule
306321
&quot;message&quot;: &quot;A String&quot;, # Execution message, if any

docs/dyn/workloadmanager_v1.projects.locations.evaluations.html

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,7 @@ <h3>Method Details</h3>
120120
&quot;createTime&quot;: &quot;A String&quot;, # Output only. [Output only] Create time stamp
121121
&quot;customRulesBucket&quot;: &quot;A String&quot;, # The Cloud Storage bucket name for custom rules.
122122
&quot;description&quot;: &quot;A String&quot;, # Description of the Evaluation
123+
&quot;evaluationType&quot;: &quot;A String&quot;, # Evaluation type
123124
&quot;labels&quot;: { # Labels as key value pairs
124125
&quot;a_key&quot;: &quot;A String&quot;,
125126
},
@@ -246,6 +247,7 @@ <h3>Method Details</h3>
246247
&quot;createTime&quot;: &quot;A String&quot;, # Output only. [Output only] Create time stamp
247248
&quot;customRulesBucket&quot;: &quot;A String&quot;, # The Cloud Storage bucket name for custom rules.
248249
&quot;description&quot;: &quot;A String&quot;, # Description of the Evaluation
250+
&quot;evaluationType&quot;: &quot;A String&quot;, # Evaluation type
249251
&quot;labels&quot;: { # Labels as key value pairs
250252
&quot;a_key&quot;: &quot;A String&quot;,
251253
},
@@ -311,6 +313,7 @@ <h3>Method Details</h3>
311313
&quot;createTime&quot;: &quot;A String&quot;, # Output only. [Output only] Create time stamp
312314
&quot;customRulesBucket&quot;: &quot;A String&quot;, # The Cloud Storage bucket name for custom rules.
313315
&quot;description&quot;: &quot;A String&quot;, # Description of the Evaluation
316+
&quot;evaluationType&quot;: &quot;A String&quot;, # Evaluation type
314317
&quot;labels&quot;: { # Labels as key value pairs
315318
&quot;a_key&quot;: &quot;A String&quot;,
316319
},

docs/dyn/workloadmanager_v1.projects.locations.insights.html

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -267,6 +267,15 @@ <h3>Method Details</h3>
267267
},
268268
],
269269
},
270+
&quot;torsoValidation&quot;: { # The schema of torso workload validation data. # The insights data for workload validation of torso workloads.
271+
&quot;agentVersion&quot;: &quot;A String&quot;, # Required. agent_version lists the version of the agent that collected this data.
272+
&quot;instanceName&quot;: &quot;A String&quot;, # Required. instance_name lists the human readable name of the instance that the data comes from.
273+
&quot;projectId&quot;: &quot;A String&quot;, # Required. project_id lists the human readable cloud project that the data comes from.
274+
&quot;validationDetails&quot;: { # Required. validation_details contains the pairs of validation data: field name &amp; field value.
275+
&quot;a_key&quot;: &quot;A String&quot;,
276+
},
277+
&quot;workloadType&quot;: &quot;A String&quot;, # Required. workload_type specifies the type of torso workload.
278+
},
270279
},
271280
&quot;requestId&quot;: &quot;A String&quot;, # Optional. An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes since the first request. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
272281
}

docs/dyn/workloadmanager_v1.projects.locations.operations.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ <h1><a href="workloadmanager_v1.html">Workload Manager API</a> . <a href="worklo
7676
<h2>Instance Methods</h2>
7777
<p class="toc_element">
7878
<code><a href="#cancel">cancel(name, body=None, x__xgafv=None)</a></code></p>
79-
<p class="firstline">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`.</p>
79+
<p class="firstline">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`.</p>
8080
<p class="toc_element">
8181
<code><a href="#close">close()</a></code></p>
8282
<p class="firstline">Close httplib2 connections.</p>
@@ -95,7 +95,7 @@ <h2>Instance Methods</h2>
9595
<h3>Method Details</h3>
9696
<div class="method">
9797
<code class="details" id="cancel">cancel(name, body=None, x__xgafv=None)</code>
98-
<pre>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&#x27;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`.
98+
<pre>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&#x27;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`.
9999

100100
Args:
101101
name: string, The name of the operation resource to be cancelled. (required)

googleapiclient/discovery_cache/documents/workloadmanager.v1.json

Lines changed: 96 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -597,7 +597,7 @@
597597
"operations": {
598598
"methods": {
599599
"cancel": {
600-
"description": "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`.",
600+
"description": "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`.",
601601
"flatPath": "v1/projects/{projectsId}/locations/{locationsId}/operations/{operationsId}:cancel",
602602
"httpMethod": "POST",
603603
"id": "workloadmanager.projects.locations.operations.cancel",
@@ -772,7 +772,7 @@
772772
}
773773
}
774774
},
775-
"revision": "20241016",
775+
"revision": "20241209",
776776
"rootUrl": "https://workloadmanager.googleapis.com/",
777777
"schemas": {
778778
"AgentCommand": {
@@ -857,6 +857,24 @@
857857
"description": "Description of the Evaluation",
858858
"type": "string"
859859
},
860+
"evaluationType": {
861+
"description": "Evaluation type",
862+
"enum": [
863+
"EVALUATION_TYPE_UNSPECIFIED",
864+
"SAP",
865+
"SQL_SERVER",
866+
"OTHER",
867+
"SCC_IAC"
868+
],
869+
"enumDescriptions": [
870+
"Not specified",
871+
"SAP best practices",
872+
"SQL best practices",
873+
"Customized best practices",
874+
"SCC IaC (Infra as Code) best practices"
875+
],
876+
"type": "string"
877+
},
860878
"labels": {
861879
"additionalProperties": {
862880
"type": "string"
@@ -952,6 +970,11 @@
952970
"readOnly": true,
953971
"type": "array"
954972
},
973+
"resultSummary": {
974+
"$ref": "Summary",
975+
"description": "Output only. [Output only] Result summary",
976+
"readOnly": true
977+
},
955978
"ruleResults": {
956979
"description": "Output only. execution result summary per rule",
957980
"items": {
@@ -1122,6 +1145,10 @@
11221145
"sqlserverValidation": {
11231146
"$ref": "SqlserverValidation",
11241147
"description": "The insights data for the sqlserver workload validation."
1148+
},
1149+
"torsoValidation": {
1150+
"$ref": "TorsoValidation",
1151+
"description": "The insights data for workload validation of torso workloads."
11251152
}
11261153
},
11271154
"type": "object"
@@ -2240,6 +2267,73 @@
22402267
},
22412268
"type": "object"
22422269
},
2270+
"Summary": {
2271+
"description": "Message for execution summary",
2272+
"id": "Summary",
2273+
"properties": {
2274+
"failures": {
2275+
"description": "Output only. Number of failures",
2276+
"format": "int64",
2277+
"readOnly": true,
2278+
"type": "string"
2279+
},
2280+
"newFailures": {
2281+
"description": "Output only. Number of new failures compared to the previous execution",
2282+
"format": "int64",
2283+
"readOnly": true,
2284+
"type": "string"
2285+
},
2286+
"newFixes": {
2287+
"description": "Output only. Number of new fixes compared to the previous execution",
2288+
"format": "int64",
2289+
"readOnly": true,
2290+
"type": "string"
2291+
}
2292+
},
2293+
"type": "object"
2294+
},
2295+
"TorsoValidation": {
2296+
"description": "The schema of torso workload validation data.",
2297+
"id": "TorsoValidation",
2298+
"properties": {
2299+
"agentVersion": {
2300+
"description": "Required. agent_version lists the version of the agent that collected this data.",
2301+
"type": "string"
2302+
},
2303+
"instanceName": {
2304+
"description": "Required. instance_name lists the human readable name of the instance that the data comes from.",
2305+
"type": "string"
2306+
},
2307+
"projectId": {
2308+
"description": "Required. project_id lists the human readable cloud project that the data comes from.",
2309+
"type": "string"
2310+
},
2311+
"validationDetails": {
2312+
"additionalProperties": {
2313+
"type": "string"
2314+
},
2315+
"description": "Required. validation_details contains the pairs of validation data: field name & field value.",
2316+
"type": "object"
2317+
},
2318+
"workloadType": {
2319+
"description": "Required. workload_type specifies the type of torso workload.",
2320+
"enum": [
2321+
"WORKLOAD_TYPE_UNSPECIFIED",
2322+
"MYSQL",
2323+
"ORACLE",
2324+
"REDIS"
2325+
],
2326+
"enumDescriptions": [
2327+
"Unspecified workload type.",
2328+
"MySQL workload.",
2329+
"Oracle workload.",
2330+
"Redis workload."
2331+
],
2332+
"type": "string"
2333+
}
2334+
},
2335+
"type": "object"
2336+
},
22432337
"ViolationDetails": {
22442338
"description": "Message describing the violation in an evaluation result.",
22452339
"id": "ViolationDetails",

0 commit comments

Comments
 (0)