Skip to content

Commit

Permalink
feat: Generate Google.Apis.WorkloadManager.v1 version 1.69.0.3688
Browse files Browse the repository at this point in the history
  • Loading branch information
amanda-tarafa authored and jskeet committed Feb 17, 2025
1 parent 3ad705d commit fab4a1a
Show file tree
Hide file tree
Showing 3 changed files with 168 additions and 2 deletions.
58 changes: 57 additions & 1 deletion DiscoveryJson/workloadmanager.v1.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand Down Expand Up @@ -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.",
Expand Down Expand Up @@ -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",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

/// <summary>Gets the Evaluations resource.</summary>
Expand Down Expand Up @@ -1632,6 +1633,96 @@ protected override void InitParameters()
}
}

/// <summary>Gets the SapSystems resource.</summary>
public virtual SapSystemsResource SapSystems { get; }

/// <summary>The "sapSystems" collection of methods.</summary>
public class SapSystemsResource
{
private const string Resource = "sapSystems";

/// <summary>The service which this resource belongs to.</summary>
private readonly Google.Apis.Services.IClientService service;

/// <summary>Constructs a new resource.</summary>
public SapSystemsResource(Google.Apis.Services.IClientService service)
{
this.service = service;
}

/// <summary>Delete the data insights from workload manager data warehouse.</summary>
/// <param name="name">
/// Required. The system id of the SAP system resource to delete. Formatted as
/// projects/{project}/locations/{location}/sapSystems/{sap_system_id}
/// </param>
public virtual DeleteRequest Delete(string name)
{
return new DeleteRequest(this.service, name);
}

/// <summary>Delete the data insights from workload manager data warehouse.</summary>
public class DeleteRequest : WorkloadManagerBaseServiceRequest<Google.Apis.WorkloadManager.v1.Data.Empty>
{
/// <summary>Constructs a new Delete request.</summary>
public DeleteRequest(Google.Apis.Services.IClientService service, string name) : base(service)
{
Name = name;
InitParameters();
}

/// <summary>
/// Required. The system id of the SAP system resource to delete. Formatted as
/// projects/{project}/locations/{location}/sapSystems/{sap_system_id}
/// </summary>
[Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)]
public virtual string Name { get; private set; }

/// <summary>
/// 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).
/// </summary>
[Google.Apis.Util.RequestParameterAttribute("requestId", Google.Apis.Util.RequestParameterType.Query)]
public virtual string RequestId { get; set; }

/// <summary>Gets the method name.</summary>
public override string MethodName => "delete";

/// <summary>Gets the HTTP method.</summary>
public override string HttpMethod => "DELETE";

/// <summary>Gets the REST path.</summary>
public override string RestPath => "v1/{+name}";

/// <summary>Initializes Delete parameter list.</summary>
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,
});
}
}
}

/// <summary>Gets information about a location.</summary>
/// <param name="name">Resource name for the location.</param>
public virtual GetRequest Get(string name)
Expand Down Expand Up @@ -3065,6 +3156,10 @@ public class SapDiscoveryResourceInstanceProperties : Google.Apis.Requests.IDire
[Newtonsoft.Json.JsonPropertyAttribute("clusterInstances")]
public virtual System.Collections.Generic.IList<string> ClusterInstances { get; set; }

/// <summary>Optional. Disk mounts on the instance.</summary>
[Newtonsoft.Json.JsonPropertyAttribute("diskMounts")]
public virtual System.Collections.Generic.IList<SapDiscoveryResourceInstancePropertiesDiskMount> DiskMounts { get; set; }

/// <summary>Optional. The VM's instance number.</summary>
[Newtonsoft.Json.JsonPropertyAttribute("instanceNumber")]
public virtual System.Nullable<long> InstanceNumber { get; set; }
Expand Down Expand Up @@ -3100,6 +3195,21 @@ public class SapDiscoveryResourceInstancePropertiesAppInstance : Google.Apis.Req
public virtual string ETag { get; set; }
}

/// <summary>Disk mount on the instance.</summary>
public class SapDiscoveryResourceInstancePropertiesDiskMount : Google.Apis.Requests.IDirectResponseSchema
{
/// <summary>Optional. Filesystem mount point.</summary>
[Newtonsoft.Json.JsonPropertyAttribute("mountPoint")]
public virtual string MountPoint { get; set; }

/// <summary>Optional. Name of the disk.</summary>
[Newtonsoft.Json.JsonPropertyAttribute("name")]
public virtual string Name { get; set; }

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

/// <summary>A set of properties describing an SAP workload.</summary>
public class SapDiscoveryWorkloadProperties : 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.69.0.3672</Version>
<Version>1.69.0.3688</Version>
<Authors>Google LLC</Authors>
<Copyright>Copyright 2025 Google LLC</Copyright>
<PackageTags>Google</PackageTags>
Expand Down

0 comments on commit fab4a1a

Please sign in to comment.