Skip to content

Commit

Permalink
feat: Generate Google.Apis.WorkloadManager.v1 version 1.68.0.3630
Browse files Browse the repository at this point in the history
  • Loading branch information
amanda-tarafa authored and jskeet committed Dec 16, 2024
1 parent 1e0fc4a commit 3121d42
Show file tree
Hide file tree
Showing 3 changed files with 161 additions and 5 deletions.
98 changes: 96 additions & 2 deletions DiscoveryJson/workloadmanager.v1.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -772,7 +772,7 @@
}
}
},
"revision": "20241016",
"revision": "20241209",
"rootUrl": "https://workloadmanager.googleapis.com/",
"schemas": {
"AgentCommand": {
Expand Down Expand Up @@ -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"
Expand Down Expand Up @@ -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": {
Expand Down Expand Up @@ -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"
Expand Down Expand Up @@ -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",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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`.
/// </summary>
/// <param name="body">The body of the request.</param>
/// <param name="name">The name of the operation resource to be cancelled.</param>
Expand All @@ -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`.
/// </summary>
public class CancelRequest : WorkloadManagerBaseServiceRequest<Google.Apis.WorkloadManager.v1.Data.Empty>
{
Expand Down Expand Up @@ -1887,6 +1887,10 @@ public virtual System.DateTimeOffset? CreateTimeDateTimeOffset
[Newtonsoft.Json.JsonPropertyAttribute("description")]
public virtual string Description { get; set; }

/// <summary>Evaluation type</summary>
[Newtonsoft.Json.JsonPropertyAttribute("evaluationType")]
public virtual string EvaluationType { get; set; }

/// <summary>Labels as key value pairs</summary>
[Newtonsoft.Json.JsonPropertyAttribute("labels")]
public virtual System.Collections.Generic.IDictionary<string, string> Labels { get; set; }
Expand Down Expand Up @@ -2062,6 +2066,10 @@ public virtual System.DateTimeOffset? InventoryTimeDateTimeOffset
[Newtonsoft.Json.JsonPropertyAttribute("notices")]
public virtual System.Collections.Generic.IList<Notice> Notices { get; set; }

/// <summary>Output only. [Output only] Result summary</summary>
[Newtonsoft.Json.JsonPropertyAttribute("resultSummary")]
public virtual Summary ResultSummary { 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; }
Expand Down Expand Up @@ -2258,6 +2266,10 @@ public virtual System.DateTimeOffset? SentTimeDateTimeOffset
[Newtonsoft.Json.JsonPropertyAttribute("sqlserverValidation")]
public virtual SqlserverValidation SqlserverValidation { get; set; }

/// <summary>The insights data for workload validation of torso workloads.</summary>
[Newtonsoft.Json.JsonPropertyAttribute("torsoValidation")]
public virtual TorsoValidation TorsoValidation { get; set; }

/// <summary>The ETag of the item.</summary>
public virtual string ETag { get; set; }
}
Expand Down Expand Up @@ -3270,6 +3282,56 @@ public class Status : Google.Apis.Requests.IDirectResponseSchema
public virtual string ETag { get; set; }
}

/// <summary>Message for execution summary</summary>
public class Summary : Google.Apis.Requests.IDirectResponseSchema
{
/// <summary>Output only. Number of failures</summary>
[Newtonsoft.Json.JsonPropertyAttribute("failures")]
public virtual System.Nullable<long> Failures { get; set; }

/// <summary>Output only. Number of new failures compared to the previous execution</summary>
[Newtonsoft.Json.JsonPropertyAttribute("newFailures")]
public virtual System.Nullable<long> NewFailures { get; set; }

/// <summary>Output only. Number of new fixes compared to the previous execution</summary>
[Newtonsoft.Json.JsonPropertyAttribute("newFixes")]
public virtual System.Nullable<long> NewFixes { get; set; }

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

/// <summary>The schema of torso workload validation data.</summary>
public class TorsoValidation : Google.Apis.Requests.IDirectResponseSchema
{
/// <summary>Required. agent_version lists the version of the agent that collected this data.</summary>
[Newtonsoft.Json.JsonPropertyAttribute("agentVersion")]
public virtual string AgentVersion { get; set; }

/// <summary>
/// Required. instance_name lists the human readable name of the instance that the data comes from.
/// </summary>
[Newtonsoft.Json.JsonPropertyAttribute("instanceName")]
public virtual string InstanceName { get; set; }

/// <summary>Required. project_id lists the human readable cloud project that the data comes from.</summary>
[Newtonsoft.Json.JsonPropertyAttribute("projectId")]
public virtual string ProjectId { get; set; }

/// <summary>
/// Required. validation_details contains the pairs of validation data: field name &amp;amp; field value.
/// </summary>
[Newtonsoft.Json.JsonPropertyAttribute("validationDetails")]
public virtual System.Collections.Generic.IDictionary<string, string> ValidationDetails { get; set; }

/// <summary>Required. workload_type specifies the type of torso workload.</summary>
[Newtonsoft.Json.JsonPropertyAttribute("workloadType")]
public virtual string WorkloadType { get; set; }

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

/// <summary>Message describing the violation in an evaluation result.</summary>
public class ViolationDetails : 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.3576</Version>
<Version>1.68.0.3630</Version>
<Authors>Google LLC</Authors>
<Copyright>Copyright 2024 Google LLC</Copyright>
<PackageTags>Google</PackageTags>
Expand Down

0 comments on commit 3121d42

Please sign in to comment.