diff --git a/DiscoveryJson/workloadmanager.v1.json b/DiscoveryJson/workloadmanager.v1.json index 54acd339bd8..d4f00ee078f 100644 --- a/DiscoveryJson/workloadmanager.v1.json +++ b/DiscoveryJson/workloadmanager.v1.json @@ -772,7 +772,7 @@ } } }, - "revision": "20241002", + "revision": "20241009", "rootUrl": "https://workloadmanager.googleapis.com/", "schemas": { "AgentCommand": { @@ -1029,6 +1029,14 @@ "description": "The name of execution resource. The format is projects/{project}/locations/{location}/evaluations/{evaluation}/executions/{execution}", "type": "string" }, + "ruleResults": { + "description": "Output only. execution result summary per rule", + "items": { + "$ref": "RuleExecutionResult" + }, + "readOnly": true, + "type": "array" + }, "runType": { "description": "type represent whether the execution executed directly by user or scheduled according evaluation.schedule field.", "enum": [ @@ -1847,6 +1855,48 @@ }, "type": "object" }, + "RuleExecutionResult": { + "description": "Message for execution result summary per rule", + "id": "RuleExecutionResult", + "properties": { + "message": { + "description": "Execution message, if any", + "type": "string" + }, + "resultCount": { + "description": "Number of violations", + "format": "int64", + "type": "string" + }, + "rule": { + "description": "rule name", + "type": "string" + }, + "scannedResourceCount": { + "description": "Number of total scanned resources", + "format": "int64", + "type": "string" + }, + "state": { + "description": "Output only. The execution status", + "enum": [ + "STATE_UNSPECIFIED", + "STATE_SUCCESS", + "STATE_FAILURE", + "STATE_SKIPPED" + ], + "enumDescriptions": [ + "Unknown state", + "execution completed successfully", + "execution completed with failures", + "execution was not executed" + ], + "readOnly": true, + "type": "string" + } + }, + "type": "object" + }, "RunEvaluationRequest": { "description": "Message for creating a Execution", "id": "RunEvaluationRequest", diff --git a/Src/Generated/Google.Apis.WorkloadManager.v1/Google.Apis.WorkloadManager.v1.cs b/Src/Generated/Google.Apis.WorkloadManager.v1/Google.Apis.WorkloadManager.v1.cs index c20d6e5f53c..d2aef01da18 100644 --- a/Src/Generated/Google.Apis.WorkloadManager.v1/Google.Apis.WorkloadManager.v1.cs +++ b/Src/Generated/Google.Apis.WorkloadManager.v1/Google.Apis.WorkloadManager.v1.cs @@ -2140,6 +2140,10 @@ public virtual System.DateTimeOffset? InventoryTimeDateTimeOffset [Newtonsoft.Json.JsonPropertyAttribute("name")] public virtual string Name { get; set; } + /// Output only. execution result summary per rule + [Newtonsoft.Json.JsonPropertyAttribute("ruleResults")] + public virtual System.Collections.Generic.IList RuleResults { get; set; } + /// /// type represent whether the execution executed directly by user or scheduled according evaluation.schedule /// field. @@ -2877,6 +2881,33 @@ public class Rule : Google.Apis.Requests.IDirectResponseSchema public virtual string ETag { get; set; } } + /// Message for execution result summary per rule + public class RuleExecutionResult : Google.Apis.Requests.IDirectResponseSchema + { + /// Execution message, if any + [Newtonsoft.Json.JsonPropertyAttribute("message")] + public virtual string Message { get; set; } + + /// Number of violations + [Newtonsoft.Json.JsonPropertyAttribute("resultCount")] + public virtual System.Nullable ResultCount { get; set; } + + /// rule name + [Newtonsoft.Json.JsonPropertyAttribute("rule")] + public virtual string Rule { get; set; } + + /// Number of total scanned resources + [Newtonsoft.Json.JsonPropertyAttribute("scannedResourceCount")] + public virtual System.Nullable ScannedResourceCount { get; set; } + + /// Output only. The execution status + [Newtonsoft.Json.JsonPropertyAttribute("state")] + public virtual string State { get; set; } + + /// The ETag of the item. + public virtual string ETag { get; set; } + } + /// Message for creating a Execution public class RunEvaluationRequest : Google.Apis.Requests.IDirectResponseSchema { diff --git a/Src/Generated/Google.Apis.WorkloadManager.v1/Google.Apis.WorkloadManager.v1.csproj b/Src/Generated/Google.Apis.WorkloadManager.v1/Google.Apis.WorkloadManager.v1.csproj index c01eb2e7187..d3f172f5646 100644 --- a/Src/Generated/Google.Apis.WorkloadManager.v1/Google.Apis.WorkloadManager.v1.csproj +++ b/Src/Generated/Google.Apis.WorkloadManager.v1/Google.Apis.WorkloadManager.v1.csproj @@ -3,7 +3,7 @@ Google.Apis.WorkloadManager.v1 Client Library - 1.68.0.3562 + 1.68.0.3569 Google LLC Copyright 2024 Google LLC Google