Skip to content

Commit

Permalink
feat: Generate Google.Apis.WorkloadManager.v1 version 1.68.0.3569
Browse files Browse the repository at this point in the history
  • Loading branch information
amanda-tarafa committed Oct 21, 2024
1 parent fb74cc7 commit d6b7836
Show file tree
Hide file tree
Showing 3 changed files with 83 additions and 2 deletions.
52 changes: 51 additions & 1 deletion DiscoveryJson/workloadmanager.v1.json
Original file line number Diff line number Diff line change
Expand Up @@ -772,7 +772,7 @@
}
}
},
"revision": "20241002",
"revision": "20241009",
"rootUrl": "https://workloadmanager.googleapis.com/",
"schemas": {
"AgentCommand": {
Expand Down Expand Up @@ -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": [
Expand Down Expand Up @@ -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",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2140,6 +2140,10 @@ public virtual System.DateTimeOffset? InventoryTimeDateTimeOffset
[Newtonsoft.Json.JsonPropertyAttribute("name")]
public virtual string Name { get; set; }

/// <summary>Output only. execution result summary per rule</summary>
[Newtonsoft.Json.JsonPropertyAttribute("ruleResults")]
public virtual System.Collections.Generic.IList<RuleExecutionResult> RuleResults { get; set; }

/// <summary>
/// type represent whether the execution executed directly by user or scheduled according evaluation.schedule
/// field.
Expand Down Expand Up @@ -2877,6 +2881,33 @@ public class Rule : Google.Apis.Requests.IDirectResponseSchema
public virtual string ETag { get; set; }
}

/// <summary>Message for execution result summary per rule</summary>
public class RuleExecutionResult : Google.Apis.Requests.IDirectResponseSchema
{
/// <summary>Execution message, if any</summary>
[Newtonsoft.Json.JsonPropertyAttribute("message")]
public virtual string Message { get; set; }

/// <summary>Number of violations</summary>
[Newtonsoft.Json.JsonPropertyAttribute("resultCount")]
public virtual System.Nullable<long> ResultCount { get; set; }

/// <summary>rule name</summary>
[Newtonsoft.Json.JsonPropertyAttribute("rule")]
public virtual string Rule { get; set; }

/// <summary>Number of total scanned resources</summary>
[Newtonsoft.Json.JsonPropertyAttribute("scannedResourceCount")]
public virtual System.Nullable<long> ScannedResourceCount { get; set; }

/// <summary>Output only. The execution status</summary>
[Newtonsoft.Json.JsonPropertyAttribute("state")]
public virtual string State { get; set; }

/// <summary>The ETag of the item.</summary>
public virtual string ETag { get; set; }
}

/// <summary>Message for creating a Execution</summary>
public class RunEvaluationRequest : Google.Apis.Requests.IDirectResponseSchema
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<!-- nupkg information -->
<PropertyGroup>
<Title>Google.Apis.WorkloadManager.v1 Client Library</Title>
<Version>1.68.0.3562</Version>
<Version>1.68.0.3569</Version>
<Authors>Google LLC</Authors>
<Copyright>Copyright 2024 Google LLC</Copyright>
<PackageTags>Google</PackageTags>
Expand Down

0 comments on commit d6b7836

Please sign in to comment.