From fab4a1a76d1432fcb303b2c1db6375a0cd91ca1a Mon Sep 17 00:00:00 2001 From: Amanda Tarafa Mas Date: Mon, 17 Feb 2025 01:14:05 -0800 Subject: [PATCH] feat: Generate Google.Apis.WorkloadManager.v1 version 1.69.0.3688 --- DiscoveryJson/workloadmanager.v1.json | 58 ++++++++- .../Google.Apis.WorkloadManager.v1.cs | 110 ++++++++++++++++++ .../Google.Apis.WorkloadManager.v1.csproj | 2 +- 3 files changed, 168 insertions(+), 2 deletions(-) diff --git a/DiscoveryJson/workloadmanager.v1.json b/DiscoveryJson/workloadmanager.v1.json index ad028b6d2d..9b568edcfd 100644 --- a/DiscoveryJson/workloadmanager.v1.json +++ b/DiscoveryJson/workloadmanager.v1.json @@ -766,13 +766,47 @@ ] } } + }, + "sapSystems": { + "methods": { + "delete": { + "description": "Delete the data insights from workload manager data warehouse.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/sapSystems/{sapSystemsId}", + "httpMethod": "DELETE", + "id": "workloadmanager.projects.locations.sapSystems.delete", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. The system id of the SAP system resource to delete. Formatted as projects/{project}/locations/{location}/sapSystems/{sap_system_id}", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/sapSystems/[^/]+$", + "required": true, + "type": "string" + }, + "requestId": { + "description": "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).", + "location": "query", + "type": "string" + } + }, + "path": "v1/{+name}", + "response": { + "$ref": "Empty" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + } + } } } } } } }, - "revision": "20250120", + "revision": "20250205", "rootUrl": "https://workloadmanager.googleapis.com/", "schemas": { "AgentCommand": { @@ -1955,6 +1989,13 @@ }, "type": "array" }, + "diskMounts": { + "description": "Optional. Disk mounts on the instance.", + "items": { + "$ref": "SapDiscoveryResourceInstancePropertiesDiskMount" + }, + "type": "array" + }, "instanceNumber": { "deprecated": true, "description": "Optional. The VM's instance number.", @@ -2027,6 +2068,21 @@ }, "type": "object" }, + "SapDiscoveryResourceInstancePropertiesDiskMount": { + "description": "Disk mount on the instance.", + "id": "SapDiscoveryResourceInstancePropertiesDiskMount", + "properties": { + "mountPoint": { + "description": "Optional. Filesystem mount point.", + "type": "string" + }, + "name": { + "description": "Optional. Name of the disk.", + "type": "string" + } + }, + "type": "object" + }, "SapDiscoveryWorkloadProperties": { "description": "A set of properties describing an SAP workload.", "id": "SapDiscoveryWorkloadProperties", 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 f5cbd36c29..6818cafacc 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 @@ -296,6 +296,7 @@ public LocationsResource(Google.Apis.Services.IClientService service) Insights = new InsightsResource(service); Operations = new OperationsResource(service); Rules = new RulesResource(service); + SapSystems = new SapSystemsResource(service); } /// Gets the Evaluations resource. @@ -1632,6 +1633,96 @@ protected override void InitParameters() } } + /// Gets the SapSystems resource. + public virtual SapSystemsResource SapSystems { get; } + + /// The "sapSystems" collection of methods. + public class SapSystemsResource + { + private const string Resource = "sapSystems"; + + /// The service which this resource belongs to. + private readonly Google.Apis.Services.IClientService service; + + /// Constructs a new resource. + public SapSystemsResource(Google.Apis.Services.IClientService service) + { + this.service = service; + } + + /// Delete the data insights from workload manager data warehouse. + /// + /// Required. The system id of the SAP system resource to delete. Formatted as + /// projects/{project}/locations/{location}/sapSystems/{sap_system_id} + /// + public virtual DeleteRequest Delete(string name) + { + return new DeleteRequest(this.service, name); + } + + /// Delete the data insights from workload manager data warehouse. + public class DeleteRequest : WorkloadManagerBaseServiceRequest + { + /// Constructs a new Delete request. + public DeleteRequest(Google.Apis.Services.IClientService service, string name) : base(service) + { + Name = name; + InitParameters(); + } + + /// + /// Required. The system id of the SAP system resource to delete. Formatted as + /// projects/{project}/locations/{location}/sapSystems/{sap_system_id} + /// + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } + + /// + /// 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). + /// + [Google.Apis.Util.RequestParameterAttribute("requestId", Google.Apis.Util.RequestParameterType.Query)] + public virtual string RequestId { get; set; } + + /// Gets the method name. + public override string MethodName => "delete"; + + /// Gets the HTTP method. + public override string HttpMethod => "DELETE"; + + /// Gets the REST path. + public override string RestPath => "v1/{+name}"; + + /// Initializes Delete parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter + { + Name = "name", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^projects/[^/]+/locations/[^/]+/sapSystems/[^/]+$", + }); + RequestParameters.Add("requestId", new Google.Apis.Discovery.Parameter + { + Name = "requestId", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + } + } + } + /// Gets information about a location. /// Resource name for the location. public virtual GetRequest Get(string name) @@ -3065,6 +3156,10 @@ public class SapDiscoveryResourceInstanceProperties : Google.Apis.Requests.IDire [Newtonsoft.Json.JsonPropertyAttribute("clusterInstances")] public virtual System.Collections.Generic.IList ClusterInstances { get; set; } + /// Optional. Disk mounts on the instance. + [Newtonsoft.Json.JsonPropertyAttribute("diskMounts")] + public virtual System.Collections.Generic.IList DiskMounts { get; set; } + /// Optional. The VM's instance number. [Newtonsoft.Json.JsonPropertyAttribute("instanceNumber")] public virtual System.Nullable InstanceNumber { get; set; } @@ -3100,6 +3195,21 @@ public class SapDiscoveryResourceInstancePropertiesAppInstance : Google.Apis.Req public virtual string ETag { get; set; } } + /// Disk mount on the instance. + public class SapDiscoveryResourceInstancePropertiesDiskMount : Google.Apis.Requests.IDirectResponseSchema + { + /// Optional. Filesystem mount point. + [Newtonsoft.Json.JsonPropertyAttribute("mountPoint")] + public virtual string MountPoint { get; set; } + + /// Optional. Name of the disk. + [Newtonsoft.Json.JsonPropertyAttribute("name")] + public virtual string Name { get; set; } + + /// The ETag of the item. + public virtual string ETag { get; set; } + } + /// A set of properties describing an SAP workload. public class SapDiscoveryWorkloadProperties : 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 d7690473bb..edc8ee6379 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.69.0.3672 + 1.69.0.3688 Google LLC Copyright 2025 Google LLC Google