Skip to content

Commit 10bcb84

Browse files
Regenerate cloudkms client (#6569)
1 parent 60dfd5b commit 10bcb84

10 files changed

Lines changed: 550 additions & 1 deletion

src/CloudKMS.php

Lines changed: 109 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ class CloudKMS extends \Google\Service
4343
"https://www.googleapis.com/auth/cloudkms";
4444

4545
public $folders;
46+
public $organizations;
4647
public $projects;
4748
public $projects_locations;
4849
public $projects_locations_ekmConfig;
@@ -88,6 +89,16 @@ public function __construct($clientOrConfig = [], $rootUrl = null)
8889
'required' => true,
8990
],
9091
],
92+
],'getKajPolicyConfig' => [
93+
'path' => 'v1/{+name}',
94+
'httpMethod' => 'GET',
95+
'parameters' => [
96+
'name' => [
97+
'location' => 'path',
98+
'type' => 'string',
99+
'required' => true,
100+
],
101+
],
91102
],'updateAutokeyConfig' => [
92103
'path' => 'v1/{+name}',
93104
'httpMethod' => 'PATCH',
@@ -102,6 +113,54 @@ public function __construct($clientOrConfig = [], $rootUrl = null)
102113
'type' => 'string',
103114
],
104115
],
116+
],'updateKajPolicyConfig' => [
117+
'path' => 'v1/{+name}',
118+
'httpMethod' => 'PATCH',
119+
'parameters' => [
120+
'name' => [
121+
'location' => 'path',
122+
'type' => 'string',
123+
'required' => true,
124+
],
125+
'updateMask' => [
126+
'location' => 'query',
127+
'type' => 'string',
128+
],
129+
],
130+
],
131+
]
132+
]
133+
);
134+
$this->organizations = new CloudKMS\Resource\Organizations(
135+
$this,
136+
$this->serviceName,
137+
'organizations',
138+
[
139+
'methods' => [
140+
'getKajPolicyConfig' => [
141+
'path' => 'v1/{+name}',
142+
'httpMethod' => 'GET',
143+
'parameters' => [
144+
'name' => [
145+
'location' => 'path',
146+
'type' => 'string',
147+
'required' => true,
148+
],
149+
],
150+
],'updateKajPolicyConfig' => [
151+
'path' => 'v1/{+name}',
152+
'httpMethod' => 'PATCH',
153+
'parameters' => [
154+
'name' => [
155+
'location' => 'path',
156+
'type' => 'string',
157+
'required' => true,
158+
],
159+
'updateMask' => [
160+
'location' => 'query',
161+
'type' => 'string',
162+
],
163+
],
105164
],
106165
]
107166
]
@@ -112,7 +171,17 @@ public function __construct($clientOrConfig = [], $rootUrl = null)
112171
'projects',
113172
[
114173
'methods' => [
115-
'showEffectiveAutokeyConfig' => [
174+
'getKajPolicyConfig' => [
175+
'path' => 'v1/{+name}',
176+
'httpMethod' => 'GET',
177+
'parameters' => [
178+
'name' => [
179+
'location' => 'path',
180+
'type' => 'string',
181+
'required' => true,
182+
],
183+
],
184+
],'showEffectiveAutokeyConfig' => [
116185
'path' => 'v1/{+parent}:showEffectiveAutokeyConfig',
117186
'httpMethod' => 'GET',
118187
'parameters' => [
@@ -122,6 +191,40 @@ public function __construct($clientOrConfig = [], $rootUrl = null)
122191
'required' => true,
123192
],
124193
],
194+
],'showEffectiveKeyAccessJustificationsEnrollmentConfig' => [
195+
'path' => 'v1/{+project}:showEffectiveKeyAccessJustificationsEnrollmentConfig',
196+
'httpMethod' => 'GET',
197+
'parameters' => [
198+
'project' => [
199+
'location' => 'path',
200+
'type' => 'string',
201+
'required' => true,
202+
],
203+
],
204+
],'showEffectiveKeyAccessJustificationsPolicyConfig' => [
205+
'path' => 'v1/{+project}:showEffectiveKeyAccessJustificationsPolicyConfig',
206+
'httpMethod' => 'GET',
207+
'parameters' => [
208+
'project' => [
209+
'location' => 'path',
210+
'type' => 'string',
211+
'required' => true,
212+
],
213+
],
214+
],'updateKajPolicyConfig' => [
215+
'path' => 'v1/{+name}',
216+
'httpMethod' => 'PATCH',
217+
'parameters' => [
218+
'name' => [
219+
'location' => 'path',
220+
'type' => 'string',
221+
'required' => true,
222+
],
223+
'updateMask' => [
224+
'location' => 'query',
225+
'type' => 'string',
226+
],
227+
],
125228
],
126229
]
127230
]
@@ -171,6 +274,11 @@ public function __construct($clientOrConfig = [], $rootUrl = null)
171274
'type' => 'string',
172275
'required' => true,
173276
],
277+
'extraLocationTypes' => [
278+
'location' => 'query',
279+
'type' => 'string',
280+
'repeated' => true,
281+
],
174282
'filter' => [
175283
'location' => 'query',
176284
'type' => 'string',

src/CloudKMS/AutokeyConfig.php

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,10 @@
1919

2020
class AutokeyConfig extends \Google\Model
2121
{
22+
/**
23+
* @var string
24+
*/
25+
public $etag;
2226
/**
2327
* @var string
2428
*/
@@ -32,6 +36,20 @@ class AutokeyConfig extends \Google\Model
3236
*/
3337
public $state;
3438

39+
/**
40+
* @param string
41+
*/
42+
public function setEtag($etag)
43+
{
44+
$this->etag = $etag;
45+
}
46+
/**
47+
* @return string
48+
*/
49+
public function getEtag()
50+
{
51+
return $this->etag;
52+
}
3553
/**
3654
* @param string
3755
*/
Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
<?php
2+
/*
3+
* Copyright 2014 Google Inc.
4+
*
5+
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
6+
* use this file except in compliance with the License. You may obtain a copy of
7+
* the License at
8+
*
9+
* http://www.apache.org/licenses/LICENSE-2.0
10+
*
11+
* Unless required by applicable law or agreed to in writing, software
12+
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
13+
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
14+
* License for the specific language governing permissions and limitations under
15+
* the License.
16+
*/
17+
18+
namespace Google\Service\CloudKMS;
19+
20+
class KeyAccessJustificationsEnrollmentConfig extends \Google\Model
21+
{
22+
/**
23+
* @var bool
24+
*/
25+
public $auditLogging;
26+
/**
27+
* @var bool
28+
*/
29+
public $policyEnforcement;
30+
31+
/**
32+
* @param bool
33+
*/
34+
public function setAuditLogging($auditLogging)
35+
{
36+
$this->auditLogging = $auditLogging;
37+
}
38+
/**
39+
* @return bool
40+
*/
41+
public function getAuditLogging()
42+
{
43+
return $this->auditLogging;
44+
}
45+
/**
46+
* @param bool
47+
*/
48+
public function setPolicyEnforcement($policyEnforcement)
49+
{
50+
$this->policyEnforcement = $policyEnforcement;
51+
}
52+
/**
53+
* @return bool
54+
*/
55+
public function getPolicyEnforcement()
56+
{
57+
return $this->policyEnforcement;
58+
}
59+
}
60+
61+
// Adding a class alias for backwards compatibility with the previous class name.
62+
class_alias(KeyAccessJustificationsEnrollmentConfig::class, 'Google_Service_CloudKMS_KeyAccessJustificationsEnrollmentConfig');
Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
<?php
2+
/*
3+
* Copyright 2014 Google Inc.
4+
*
5+
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
6+
* use this file except in compliance with the License. You may obtain a copy of
7+
* the License at
8+
*
9+
* http://www.apache.org/licenses/LICENSE-2.0
10+
*
11+
* Unless required by applicable law or agreed to in writing, software
12+
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
13+
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
14+
* License for the specific language governing permissions and limitations under
15+
* the License.
16+
*/
17+
18+
namespace Google\Service\CloudKMS;
19+
20+
class KeyAccessJustificationsPolicyConfig extends \Google\Model
21+
{
22+
protected $defaultKeyAccessJustificationPolicyType = KeyAccessJustificationsPolicy::class;
23+
protected $defaultKeyAccessJustificationPolicyDataType = '';
24+
/**
25+
* @var string
26+
*/
27+
public $name;
28+
29+
/**
30+
* @param KeyAccessJustificationsPolicy
31+
*/
32+
public function setDefaultKeyAccessJustificationPolicy(KeyAccessJustificationsPolicy $defaultKeyAccessJustificationPolicy)
33+
{
34+
$this->defaultKeyAccessJustificationPolicy = $defaultKeyAccessJustificationPolicy;
35+
}
36+
/**
37+
* @return KeyAccessJustificationsPolicy
38+
*/
39+
public function getDefaultKeyAccessJustificationPolicy()
40+
{
41+
return $this->defaultKeyAccessJustificationPolicy;
42+
}
43+
/**
44+
* @param string
45+
*/
46+
public function setName($name)
47+
{
48+
$this->name = $name;
49+
}
50+
/**
51+
* @return string
52+
*/
53+
public function getName()
54+
{
55+
return $this->name;
56+
}
57+
}
58+
59+
// Adding a class alias for backwards compatibility with the previous class name.
60+
class_alias(KeyAccessJustificationsPolicyConfig::class, 'Google_Service_CloudKMS_KeyAccessJustificationsPolicyConfig');

src/CloudKMS/Resource/Folders.php

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
namespace Google\Service\CloudKMS\Resource;
1919

2020
use Google\Service\CloudKMS\AutokeyConfig;
21+
use Google\Service\CloudKMS\KeyAccessJustificationsPolicyConfig;
2122

2223
/**
2324
* The "folders" collection of methods.
@@ -44,6 +45,22 @@ public function getAutokeyConfig($name, $optParams = [])
4445
$params = array_merge($params, $optParams);
4546
return $this->call('getAutokeyConfig', [$params], AutokeyConfig::class);
4647
}
48+
/**
49+
* Gets the KeyAccessJustificationsPolicyConfig for a given
50+
* organization/folder/projects. (folders.getKajPolicyConfig)
51+
*
52+
* @param string $name Required. The name of the
53+
* KeyAccessJustificationsPolicyConfig to get.
54+
* @param array $optParams Optional parameters.
55+
* @return KeyAccessJustificationsPolicyConfig
56+
* @throws \Google\Service\Exception
57+
*/
58+
public function getKajPolicyConfig($name, $optParams = [])
59+
{
60+
$params = ['name' => $name];
61+
$params = array_merge($params, $optParams);
62+
return $this->call('getKajPolicyConfig', [$params], KeyAccessJustificationsPolicyConfig::class);
63+
}
4764
/**
4865
* Updates the AutokeyConfig for a folder. The caller must have both
4966
* `cloudkms.autokeyConfigs.update` permission on the parent folder and
@@ -68,6 +85,26 @@ public function updateAutokeyConfig($name, AutokeyConfig $postBody, $optParams =
6885
$params = array_merge($params, $optParams);
6986
return $this->call('updateAutokeyConfig', [$params], AutokeyConfig::class);
7087
}
88+
/**
89+
* Updates the KeyAccessJustificationsPolicyConfig for a given
90+
* organization/folder/projects. (folders.updateKajPolicyConfig)
91+
*
92+
* @param string $name Identifier. The resource name for this
93+
* KeyAccessJustificationsPolicyConfig in the format of
94+
* "{organizations|folders|projects}/kajPolicyConfig".
95+
* @param KeyAccessJustificationsPolicyConfig $postBody
96+
* @param array $optParams Optional parameters.
97+
*
98+
* @opt_param string updateMask Optional. The list of fields to update.
99+
* @return KeyAccessJustificationsPolicyConfig
100+
* @throws \Google\Service\Exception
101+
*/
102+
public function updateKajPolicyConfig($name, KeyAccessJustificationsPolicyConfig $postBody, $optParams = [])
103+
{
104+
$params = ['name' => $name, 'postBody' => $postBody];
105+
$params = array_merge($params, $optParams);
106+
return $this->call('updateKajPolicyConfig', [$params], KeyAccessJustificationsPolicyConfig::class);
107+
}
71108
}
72109

73110
// Adding a class alias for backwards compatibility with the previous class name.

0 commit comments

Comments
 (0)