From 082438ad94cbd2afd94b33249f665f9fdcfcab90 Mon Sep 17 00:00:00 2001 From: Amanda Tarafa Mas Date: Mon, 16 Dec 2024 01:20:27 -0800 Subject: [PATCH] feat: Generate Google.Apis.WorkloadManager.v1 version 1.68.0.3630 --- DiscoveryJson/workloadmanager.v1.json | 98 ++++++++++++++++++- .../Google.Apis.WorkloadManager.v1.cs | 66 ++++++++++++- .../Google.Apis.WorkloadManager.v1.csproj | 2 +- 3 files changed, 161 insertions(+), 5 deletions(-) diff --git a/DiscoveryJson/workloadmanager.v1.json b/DiscoveryJson/workloadmanager.v1.json index 9cdf61eb6fa..32631b04d70 100644 --- a/DiscoveryJson/workloadmanager.v1.json +++ b/DiscoveryJson/workloadmanager.v1.json @@ -597,7 +597,7 @@ "operations": { "methods": { "cancel": { - "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`.", + "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`.", "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/operations/{operationsId}:cancel", "httpMethod": "POST", "id": "workloadmanager.projects.locations.operations.cancel", @@ -772,7 +772,7 @@ } } }, - "revision": "20241016", + "revision": "20241209", "rootUrl": "https://workloadmanager.googleapis.com/", "schemas": { "AgentCommand": { @@ -857,6 +857,24 @@ "description": "Description of the Evaluation", "type": "string" }, + "evaluationType": { + "description": "Evaluation type", + "enum": [ + "EVALUATION_TYPE_UNSPECIFIED", + "SAP", + "SQL_SERVER", + "OTHER", + "SCC_IAC" + ], + "enumDescriptions": [ + "Not specified", + "SAP best practices", + "SQL best practices", + "Customized best practices", + "SCC IaC (Infra as Code) best practices" + ], + "type": "string" + }, "labels": { "additionalProperties": { "type": "string" @@ -952,6 +970,11 @@ "readOnly": true, "type": "array" }, + "resultSummary": { + "$ref": "Summary", + "description": "Output only. [Output only] Result summary", + "readOnly": true + }, "ruleResults": { "description": "Output only. execution result summary per rule", "items": { @@ -1122,6 +1145,10 @@ "sqlserverValidation": { "$ref": "SqlserverValidation", "description": "The insights data for the sqlserver workload validation." + }, + "torsoValidation": { + "$ref": "TorsoValidation", + "description": "The insights data for workload validation of torso workloads." } }, "type": "object" @@ -2240,6 +2267,73 @@ }, "type": "object" }, + "Summary": { + "description": "Message for execution summary", + "id": "Summary", + "properties": { + "failures": { + "description": "Output only. Number of failures", + "format": "int64", + "readOnly": true, + "type": "string" + }, + "newFailures": { + "description": "Output only. Number of new failures compared to the previous execution", + "format": "int64", + "readOnly": true, + "type": "string" + }, + "newFixes": { + "description": "Output only. Number of new fixes compared to the previous execution", + "format": "int64", + "readOnly": true, + "type": "string" + } + }, + "type": "object" + }, + "TorsoValidation": { + "description": "The schema of torso workload validation data.", + "id": "TorsoValidation", + "properties": { + "agentVersion": { + "description": "Required. agent_version lists the version of the agent that collected this data.", + "type": "string" + }, + "instanceName": { + "description": "Required. instance_name lists the human readable name of the instance that the data comes from.", + "type": "string" + }, + "projectId": { + "description": "Required. project_id lists the human readable cloud project that the data comes from.", + "type": "string" + }, + "validationDetails": { + "additionalProperties": { + "type": "string" + }, + "description": "Required. validation_details contains the pairs of validation data: field name & field value.", + "type": "object" + }, + "workloadType": { + "description": "Required. workload_type specifies the type of torso workload.", + "enum": [ + "WORKLOAD_TYPE_UNSPECIFIED", + "MYSQL", + "ORACLE", + "REDIS" + ], + "enumDescriptions": [ + "Unspecified workload type.", + "MySQL workload.", + "Oracle workload.", + "Redis workload." + ], + "type": "string" + } + }, + "type": "object" + }, "ViolationDetails": { "description": "Message describing the violation in an evaluation result.", "id": "ViolationDetails", 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 ce6a6c006f8..a22ea164ade 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 @@ -1257,7 +1257,7 @@ public OperationsResource(Google.Apis.Services.IClientService service) /// 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`. + /// Operation.error value with a google.rpc.Status.code of `1`, corresponding to `Code.CANCELLED`. /// /// The body of the request. /// The name of the operation resource to be cancelled. @@ -1272,7 +1272,7 @@ public virtual CancelRequest Cancel(Google.Apis.WorkloadManager.v1.Data.CancelOp /// 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`. + /// Operation.error value with a google.rpc.Status.code of `1`, corresponding to `Code.CANCELLED`. /// public class CancelRequest : WorkloadManagerBaseServiceRequest { @@ -1887,6 +1887,10 @@ public virtual System.DateTimeOffset? CreateTimeDateTimeOffset [Newtonsoft.Json.JsonPropertyAttribute("description")] public virtual string Description { get; set; } + /// Evaluation type + [Newtonsoft.Json.JsonPropertyAttribute("evaluationType")] + public virtual string EvaluationType { get; set; } + /// Labels as key value pairs [Newtonsoft.Json.JsonPropertyAttribute("labels")] public virtual System.Collections.Generic.IDictionary Labels { get; set; } @@ -2062,6 +2066,10 @@ public virtual System.DateTimeOffset? InventoryTimeDateTimeOffset [Newtonsoft.Json.JsonPropertyAttribute("notices")] public virtual System.Collections.Generic.IList Notices { get; set; } + /// Output only. [Output only] Result summary + [Newtonsoft.Json.JsonPropertyAttribute("resultSummary")] + public virtual Summary ResultSummary { get; set; } + /// Output only. execution result summary per rule [Newtonsoft.Json.JsonPropertyAttribute("ruleResults")] public virtual System.Collections.Generic.IList RuleResults { get; set; } @@ -2258,6 +2266,10 @@ public virtual System.DateTimeOffset? SentTimeDateTimeOffset [Newtonsoft.Json.JsonPropertyAttribute("sqlserverValidation")] public virtual SqlserverValidation SqlserverValidation { get; set; } + /// The insights data for workload validation of torso workloads. + [Newtonsoft.Json.JsonPropertyAttribute("torsoValidation")] + public virtual TorsoValidation TorsoValidation { get; set; } + /// The ETag of the item. public virtual string ETag { get; set; } } @@ -3270,6 +3282,56 @@ public class Status : Google.Apis.Requests.IDirectResponseSchema public virtual string ETag { get; set; } } + /// Message for execution summary + public class Summary : Google.Apis.Requests.IDirectResponseSchema + { + /// Output only. Number of failures + [Newtonsoft.Json.JsonPropertyAttribute("failures")] + public virtual System.Nullable Failures { get; set; } + + /// Output only. Number of new failures compared to the previous execution + [Newtonsoft.Json.JsonPropertyAttribute("newFailures")] + public virtual System.Nullable NewFailures { get; set; } + + /// Output only. Number of new fixes compared to the previous execution + [Newtonsoft.Json.JsonPropertyAttribute("newFixes")] + public virtual System.Nullable NewFixes { get; set; } + + /// The ETag of the item. + public virtual string ETag { get; set; } + } + + /// The schema of torso workload validation data. + public class TorsoValidation : Google.Apis.Requests.IDirectResponseSchema + { + /// Required. agent_version lists the version of the agent that collected this data. + [Newtonsoft.Json.JsonPropertyAttribute("agentVersion")] + public virtual string AgentVersion { get; set; } + + /// + /// Required. instance_name lists the human readable name of the instance that the data comes from. + /// + [Newtonsoft.Json.JsonPropertyAttribute("instanceName")] + public virtual string InstanceName { get; set; } + + /// Required. project_id lists the human readable cloud project that the data comes from. + [Newtonsoft.Json.JsonPropertyAttribute("projectId")] + public virtual string ProjectId { get; set; } + + /// + /// Required. validation_details contains the pairs of validation data: field name & field value. + /// + [Newtonsoft.Json.JsonPropertyAttribute("validationDetails")] + public virtual System.Collections.Generic.IDictionary ValidationDetails { get; set; } + + /// Required. workload_type specifies the type of torso workload. + [Newtonsoft.Json.JsonPropertyAttribute("workloadType")] + public virtual string WorkloadType { get; set; } + + /// The ETag of the item. + public virtual string ETag { get; set; } + } + /// Message describing the violation in an evaluation result. public class ViolationDetails : 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 aea5f2ab0c7..586ef5442a6 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.3576 + 1.68.0.3630 Google LLC Copyright 2024 Google LLC Google