Skip to content

Commit 5dfbc38

Browse files
1 parent 0fa827c commit 5dfbc38

3 files changed

Lines changed: 104 additions & 0 deletions

File tree

src/BackupforGKE.php

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -313,6 +313,16 @@ public function __construct($clientOrConfig = [], $rootUrl = null)
313313
'type' => 'integer',
314314
],
315315
],
316+
],'getTags' => [
317+
'path' => 'v1/{+name}:getTags',
318+
'httpMethod' => 'GET',
319+
'parameters' => [
320+
'name' => [
321+
'location' => 'path',
322+
'type' => 'string',
323+
'required' => true,
324+
],
325+
],
316326
],'list' => [
317327
'path' => 'v1/{+parent}/backupPlans',
318328
'httpMethod' => 'GET',
@@ -363,6 +373,16 @@ public function __construct($clientOrConfig = [], $rootUrl = null)
363373
'required' => true,
364374
],
365375
],
376+
],'setTags' => [
377+
'path' => 'v1/{+name}:setTags',
378+
'httpMethod' => 'POST',
379+
'parameters' => [
380+
'name' => [
381+
'location' => 'path',
382+
'type' => 'string',
383+
'required' => true,
384+
],
385+
],
366386
],'testIamPermissions' => [
367387
'path' => 'v1/{+resource}:testIamPermissions',
368388
'httpMethod' => 'POST',
@@ -859,6 +879,16 @@ public function __construct($clientOrConfig = [], $rootUrl = null)
859879
'type' => 'integer',
860880
],
861881
],
882+
],'getTags' => [
883+
'path' => 'v1/{+name}:getTags',
884+
'httpMethod' => 'GET',
885+
'parameters' => [
886+
'name' => [
887+
'location' => 'path',
888+
'type' => 'string',
889+
'required' => true,
890+
],
891+
],
862892
],'list' => [
863893
'path' => 'v1/{+parent}/restorePlans',
864894
'httpMethod' => 'GET',
@@ -909,6 +939,16 @@ public function __construct($clientOrConfig = [], $rootUrl = null)
909939
'required' => true,
910940
],
911941
],
942+
],'setTags' => [
943+
'path' => 'v1/{+name}:setTags',
944+
'httpMethod' => 'POST',
945+
'parameters' => [
946+
'name' => [
947+
'location' => 'path',
948+
'type' => 'string',
949+
'required' => true,
950+
],
951+
],
912952
],'testIamPermissions' => [
913953
'path' => 'v1/{+resource}:testIamPermissions',
914954
'httpMethod' => 'POST',

src/BackupforGKE/Resource/ProjectsLocationsBackupPlans.php

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,13 @@
1818
namespace Google\Service\BackupforGKE\Resource;
1919

2020
use Google\Service\BackupforGKE\BackupPlan;
21+
use Google\Service\BackupforGKE\GetTagsResponse;
2122
use Google\Service\BackupforGKE\GoogleLongrunningOperation;
2223
use Google\Service\BackupforGKE\ListBackupPlansResponse;
2324
use Google\Service\BackupforGKE\Policy;
2425
use Google\Service\BackupforGKE\SetIamPolicyRequest;
26+
use Google\Service\BackupforGKE\SetTagsRequest;
27+
use Google\Service\BackupforGKE\SetTagsResponse;
2528
use Google\Service\BackupforGKE\TestIamPermissionsRequest;
2629
use Google\Service\BackupforGKE\TestIamPermissionsResponse;
2730

@@ -122,6 +125,20 @@ public function getIamPolicy($resource, $optParams = [])
122125
$params = array_merge($params, $optParams);
123126
return $this->call('getIamPolicy', [$params], Policy::class);
124127
}
128+
/**
129+
* Returns tags directly bound to a GCP resource. (backupPlans.getTags)
130+
*
131+
* @param string $name Required. The full resource name of the service resource.
132+
* @param array $optParams Optional parameters.
133+
* @return GetTagsResponse
134+
* @throws \Google\Service\Exception
135+
*/
136+
public function getTags($name, $optParams = [])
137+
{
138+
$params = ['name' => $name];
139+
$params = array_merge($params, $optParams);
140+
return $this->call('getTags', [$params], GetTagsResponse::class);
141+
}
125142
/**
126143
* Lists BackupPlans in a given location.
127144
* (backupPlans.listProjectsLocationsBackupPlans)
@@ -197,6 +214,21 @@ public function setIamPolicy($resource, SetIamPolicyRequest $postBody, $optParam
197214
$params = array_merge($params, $optParams);
198215
return $this->call('setIamPolicy', [$params], Policy::class);
199216
}
217+
/**
218+
* Updates tags directly bound to a GCP resource. (backupPlans.setTags)
219+
*
220+
* @param string $name Required. The full resource name of the service resource.
221+
* @param SetTagsRequest $postBody
222+
* @param array $optParams Optional parameters.
223+
* @return SetTagsResponse
224+
* @throws \Google\Service\Exception
225+
*/
226+
public function setTags($name, SetTagsRequest $postBody, $optParams = [])
227+
{
228+
$params = ['name' => $name, 'postBody' => $postBody];
229+
$params = array_merge($params, $optParams);
230+
return $this->call('setTags', [$params], SetTagsResponse::class);
231+
}
200232
/**
201233
* Returns permissions that a caller has on the specified resource. If the
202234
* resource does not exist, this will return an empty set of permissions, not a

src/BackupforGKE/Resource/ProjectsLocationsRestorePlans.php

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,14 @@
1717

1818
namespace Google\Service\BackupforGKE\Resource;
1919

20+
use Google\Service\BackupforGKE\GetTagsResponse;
2021
use Google\Service\BackupforGKE\GoogleLongrunningOperation;
2122
use Google\Service\BackupforGKE\ListRestorePlansResponse;
2223
use Google\Service\BackupforGKE\Policy;
2324
use Google\Service\BackupforGKE\RestorePlan;
2425
use Google\Service\BackupforGKE\SetIamPolicyRequest;
26+
use Google\Service\BackupforGKE\SetTagsRequest;
27+
use Google\Service\BackupforGKE\SetTagsResponse;
2528
use Google\Service\BackupforGKE\TestIamPermissionsRequest;
2629
use Google\Service\BackupforGKE\TestIamPermissionsResponse;
2730

@@ -125,6 +128,20 @@ public function getIamPolicy($resource, $optParams = [])
125128
$params = array_merge($params, $optParams);
126129
return $this->call('getIamPolicy', [$params], Policy::class);
127130
}
131+
/**
132+
* Returns tags directly bound to a GCP resource. (restorePlans.getTags)
133+
*
134+
* @param string $name Required. The full resource name of the service resource.
135+
* @param array $optParams Optional parameters.
136+
* @return GetTagsResponse
137+
* @throws \Google\Service\Exception
138+
*/
139+
public function getTags($name, $optParams = [])
140+
{
141+
$params = ['name' => $name];
142+
$params = array_merge($params, $optParams);
143+
return $this->call('getTags', [$params], GetTagsResponse::class);
144+
}
128145
/**
129146
* Lists RestorePlans in a given location.
130147
* (restorePlans.listProjectsLocationsRestorePlans)
@@ -200,6 +217,21 @@ public function setIamPolicy($resource, SetIamPolicyRequest $postBody, $optParam
200217
$params = array_merge($params, $optParams);
201218
return $this->call('setIamPolicy', [$params], Policy::class);
202219
}
220+
/**
221+
* Updates tags directly bound to a GCP resource. (restorePlans.setTags)
222+
*
223+
* @param string $name Required. The full resource name of the service resource.
224+
* @param SetTagsRequest $postBody
225+
* @param array $optParams Optional parameters.
226+
* @return SetTagsResponse
227+
* @throws \Google\Service\Exception
228+
*/
229+
public function setTags($name, SetTagsRequest $postBody, $optParams = [])
230+
{
231+
$params = ['name' => $name, 'postBody' => $postBody];
232+
$params = array_merge($params, $optParams);
233+
return $this->call('setTags', [$params], SetTagsResponse::class);
234+
}
203235
/**
204236
* Returns permissions that a caller has on the specified resource. If the
205237
* resource does not exist, this will return an empty set of permissions, not a

0 commit comments

Comments
 (0)