Skip to content

Commit

Permalink
Regenerate workloadmanager client (#6329)
Browse files Browse the repository at this point in the history
  • Loading branch information
yoshi-code-bot authored Mar 6, 2025
1 parent 535202d commit 4b4e80a
Show file tree
Hide file tree
Showing 2 changed files with 45 additions and 26 deletions.
41 changes: 15 additions & 26 deletions src/WorkloadManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,6 @@ class WorkloadManager extends \Google\Service
public $projects_locations_insights;
public $projects_locations_operations;
public $projects_locations_rules;
public $projects_locations_sapSystems;
public $rootUrlTemplate;

/**
Expand Down Expand Up @@ -404,7 +403,21 @@ public function __construct($clientOrConfig = [], $rootUrl = null)
'insights',
[
'methods' => [
'writeInsight' => [
'delete' => [
'path' => 'v1/{+name}',
'httpMethod' => 'DELETE',
'parameters' => [
'name' => [
'location' => 'path',
'type' => 'string',
'required' => true,
],
'requestId' => [
'location' => 'query',
'type' => 'string',
],
],
],'writeInsight' => [
'path' => 'v1/{+location}/insights:writeInsight',
'httpMethod' => 'POST',
'parameters' => [
Expand Down Expand Up @@ -516,30 +529,6 @@ public function __construct($clientOrConfig = [], $rootUrl = null)
]
]
);
$this->projects_locations_sapSystems = new WorkloadManager\Resource\ProjectsLocationsSapSystems(
$this,
$this->serviceName,
'sapSystems',
[
'methods' => [
'delete' => [
'path' => 'v1/{+name}',
'httpMethod' => 'DELETE',
'parameters' => [
'name' => [
'location' => 'path',
'type' => 'string',
'required' => true,
],
'requestId' => [
'location' => 'query',
'type' => 'string',
],
],
],
]
]
);
}
}

Expand Down
30 changes: 30 additions & 0 deletions src/WorkloadManager/Resource/ProjectsLocationsInsights.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@

namespace Google\Service\WorkloadManager\Resource;

use Google\Service\WorkloadManager\WorkloadmanagerEmpty;
use Google\Service\WorkloadManager\WriteInsightRequest;
use Google\Service\WorkloadManager\WriteInsightResponse;

Expand All @@ -30,6 +31,35 @@
*/
class ProjectsLocationsInsights extends \Google\Service\Resource
{
/**
* Delete the data insights from workload manager data warehouse.
* (insights.delete)
*
* @param string $name Required. The system id of the SAP system resource to
* delete. Formatted as
* projects/{project}/locations/{location}/sapSystems/{sap_system_id}
* @param array $optParams Optional parameters.
*
* @opt_param string requestId 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).
* @return WorkloadmanagerEmpty
* @throws \Google\Service\Exception
*/
public function delete($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('delete', [$params], WorkloadmanagerEmpty::class);
}
/**
* Write the data insights to workload manager data warehouse.
* (insights.writeInsight)
Expand Down

0 comments on commit 4b4e80a

Please sign in to comment.