Skip to content

Commit

Permalink
Regenerate workloadmanager client (#6227)
Browse files Browse the repository at this point in the history
  • Loading branch information
yoshi-code-bot authored Feb 16, 2025
1 parent eaf72a9 commit 8c34319
Show file tree
Hide file tree
Showing 4 changed files with 168 additions and 1 deletion.
25 changes: 25 additions & 0 deletions src/WorkloadManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ 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 @@ -451,6 +452,30 @@ 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
64 changes: 64 additions & 0 deletions src/WorkloadManager/Resource/ProjectsLocationsSapSystems.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/

namespace Google\Service\WorkloadManager\Resource;

use Google\Service\WorkloadManager\WorkloadmanagerEmpty;

/**
* The "sapSystems" collection of methods.
* Typical usage is:
* <code>
* $workloadmanagerService = new Google\Service\WorkloadManager(...);
* $sapSystems = $workloadmanagerService->projects_locations_sapSystems;
* </code>
*/
class ProjectsLocationsSapSystems extends \Google\Service\Resource
{
/**
* Delete the data insights from workload manager data warehouse.
* (sapSystems.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);
}
}

// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsLocationsSapSystems::class, 'Google_Service_WorkloadManager_Resource_ProjectsLocationsSapSystems');
18 changes: 17 additions & 1 deletion src/WorkloadManager/SapDiscoveryResourceInstanceProperties.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,15 @@

class SapDiscoveryResourceInstanceProperties extends \Google\Collection
{
protected $collection_key = 'clusterInstances';
protected $collection_key = 'diskMounts';
protected $appInstancesType = SapDiscoveryResourceInstancePropertiesAppInstance::class;
protected $appInstancesDataType = 'array';
/**
* @var string[]
*/
public $clusterInstances;
protected $diskMountsType = SapDiscoveryResourceInstancePropertiesDiskMount::class;
protected $diskMountsDataType = 'array';
/**
* @var string
*/
Expand Down Expand Up @@ -71,6 +73,20 @@ public function getClusterInstances()
{
return $this->clusterInstances;
}
/**
* @param SapDiscoveryResourceInstancePropertiesDiskMount[]
*/
public function setDiskMounts($diskMounts)
{
$this->diskMounts = $diskMounts;
}
/**
* @return SapDiscoveryResourceInstancePropertiesDiskMount[]
*/
public function getDiskMounts()
{
return $this->diskMounts;
}
/**
* @param string
*/
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/

namespace Google\Service\WorkloadManager;

class SapDiscoveryResourceInstancePropertiesDiskMount extends \Google\Model
{
/**
* @var string
*/
public $mountPoint;
/**
* @var string
*/
public $name;

/**
* @param string
*/
public function setMountPoint($mountPoint)
{
$this->mountPoint = $mountPoint;
}
/**
* @return string
*/
public function getMountPoint()
{
return $this->mountPoint;
}
/**
* @param string
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
}

// Adding a class alias for backwards compatibility with the previous class name.
class_alias(SapDiscoveryResourceInstancePropertiesDiskMount::class, 'Google_Service_WorkloadManager_SapDiscoveryResourceInstancePropertiesDiskMount');

0 comments on commit 8c34319

Please sign in to comment.