Skip to content

Commit ebd9396

Browse files
1 parent 512670d commit ebd9396

25 files changed

Lines changed: 2285 additions & 0 deletions

src/CloudKMS.php

Lines changed: 160 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,8 @@ class CloudKMS extends \Google\Service
5454
public $projects_locations_keyRings_cryptoKeys_cryptoKeyVersions;
5555
public $projects_locations_keyRings_importJobs;
5656
public $projects_locations_operations;
57+
public $projects_locations_singleTenantHsmInstances;
58+
public $projects_locations_singleTenantHsmInstances_proposals;
5759
public $rootUrlTemplate;
5860

5961
/**
@@ -1070,6 +1072,164 @@ public function __construct($clientOrConfig = [], $rootUrl = null)
10701072
]
10711073
]
10721074
);
1075+
$this->projects_locations_singleTenantHsmInstances = new CloudKMS\Resource\ProjectsLocationsSingleTenantHsmInstances(
1076+
$this,
1077+
$this->serviceName,
1078+
'singleTenantHsmInstances',
1079+
[
1080+
'methods' => [
1081+
'create' => [
1082+
'path' => 'v1/{+parent}/singleTenantHsmInstances',
1083+
'httpMethod' => 'POST',
1084+
'parameters' => [
1085+
'parent' => [
1086+
'location' => 'path',
1087+
'type' => 'string',
1088+
'required' => true,
1089+
],
1090+
'singleTenantHsmInstanceId' => [
1091+
'location' => 'query',
1092+
'type' => 'string',
1093+
],
1094+
],
1095+
],'get' => [
1096+
'path' => 'v1/{+name}',
1097+
'httpMethod' => 'GET',
1098+
'parameters' => [
1099+
'name' => [
1100+
'location' => 'path',
1101+
'type' => 'string',
1102+
'required' => true,
1103+
],
1104+
],
1105+
],'list' => [
1106+
'path' => 'v1/{+parent}/singleTenantHsmInstances',
1107+
'httpMethod' => 'GET',
1108+
'parameters' => [
1109+
'parent' => [
1110+
'location' => 'path',
1111+
'type' => 'string',
1112+
'required' => true,
1113+
],
1114+
'filter' => [
1115+
'location' => 'query',
1116+
'type' => 'string',
1117+
],
1118+
'orderBy' => [
1119+
'location' => 'query',
1120+
'type' => 'string',
1121+
],
1122+
'pageSize' => [
1123+
'location' => 'query',
1124+
'type' => 'integer',
1125+
],
1126+
'pageToken' => [
1127+
'location' => 'query',
1128+
'type' => 'string',
1129+
],
1130+
'showDeleted' => [
1131+
'location' => 'query',
1132+
'type' => 'boolean',
1133+
],
1134+
],
1135+
],
1136+
]
1137+
]
1138+
);
1139+
$this->projects_locations_singleTenantHsmInstances_proposals = new CloudKMS\Resource\ProjectsLocationsSingleTenantHsmInstancesProposals(
1140+
$this,
1141+
$this->serviceName,
1142+
'proposals',
1143+
[
1144+
'methods' => [
1145+
'approve' => [
1146+
'path' => 'v1/{+name}:approve',
1147+
'httpMethod' => 'POST',
1148+
'parameters' => [
1149+
'name' => [
1150+
'location' => 'path',
1151+
'type' => 'string',
1152+
'required' => true,
1153+
],
1154+
],
1155+
],'create' => [
1156+
'path' => 'v1/{+parent}/proposals',
1157+
'httpMethod' => 'POST',
1158+
'parameters' => [
1159+
'parent' => [
1160+
'location' => 'path',
1161+
'type' => 'string',
1162+
'required' => true,
1163+
],
1164+
'singleTenantHsmInstanceProposalId' => [
1165+
'location' => 'query',
1166+
'type' => 'string',
1167+
],
1168+
],
1169+
],'delete' => [
1170+
'path' => 'v1/{+name}',
1171+
'httpMethod' => 'DELETE',
1172+
'parameters' => [
1173+
'name' => [
1174+
'location' => 'path',
1175+
'type' => 'string',
1176+
'required' => true,
1177+
],
1178+
],
1179+
],'execute' => [
1180+
'path' => 'v1/{+name}:execute',
1181+
'httpMethod' => 'POST',
1182+
'parameters' => [
1183+
'name' => [
1184+
'location' => 'path',
1185+
'type' => 'string',
1186+
'required' => true,
1187+
],
1188+
],
1189+
],'get' => [
1190+
'path' => 'v1/{+name}',
1191+
'httpMethod' => 'GET',
1192+
'parameters' => [
1193+
'name' => [
1194+
'location' => 'path',
1195+
'type' => 'string',
1196+
'required' => true,
1197+
],
1198+
],
1199+
],'list' => [
1200+
'path' => 'v1/{+parent}/proposals',
1201+
'httpMethod' => 'GET',
1202+
'parameters' => [
1203+
'parent' => [
1204+
'location' => 'path',
1205+
'type' => 'string',
1206+
'required' => true,
1207+
],
1208+
'filter' => [
1209+
'location' => 'query',
1210+
'type' => 'string',
1211+
],
1212+
'orderBy' => [
1213+
'location' => 'query',
1214+
'type' => 'string',
1215+
],
1216+
'pageSize' => [
1217+
'location' => 'query',
1218+
'type' => 'integer',
1219+
],
1220+
'pageToken' => [
1221+
'location' => 'query',
1222+
'type' => 'string',
1223+
],
1224+
'showDeleted' => [
1225+
'location' => 'query',
1226+
'type' => 'boolean',
1227+
],
1228+
],
1229+
],
1230+
]
1231+
]
1232+
);
10731233
}
10741234
}
10751235

src/CloudKMS/AddQuorumMember.php

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
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 AddQuorumMember extends \Google\Model
21+
{
22+
/**
23+
* Required. The public key associated with the 2FA key for the new quorum
24+
* member to add. Public keys must be associated with RSA 2048 keys.
25+
*
26+
* @var string
27+
*/
28+
public $twoFactorPublicKeyPem;
29+
30+
/**
31+
* Required. The public key associated with the 2FA key for the new quorum
32+
* member to add. Public keys must be associated with RSA 2048 keys.
33+
*
34+
* @param string $twoFactorPublicKeyPem
35+
*/
36+
public function setTwoFactorPublicKeyPem($twoFactorPublicKeyPem)
37+
{
38+
$this->twoFactorPublicKeyPem = $twoFactorPublicKeyPem;
39+
}
40+
/**
41+
* @return string
42+
*/
43+
public function getTwoFactorPublicKeyPem()
44+
{
45+
return $this->twoFactorPublicKeyPem;
46+
}
47+
}
48+
49+
// Adding a class alias for backwards compatibility with the previous class name.
50+
class_alias(AddQuorumMember::class, 'Google_Service_CloudKMS_AddQuorumMember');
Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
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 ApproveSingleTenantHsmInstanceProposalRequest extends \Google\Model
21+
{
22+
protected $quorumReplyType = QuorumReply::class;
23+
protected $quorumReplyDataType = '';
24+
protected $requiredActionQuorumReplyType = RequiredActionQuorumReply::class;
25+
protected $requiredActionQuorumReplyDataType = '';
26+
27+
/**
28+
* Required. The reply to QuorumParameters for approving the proposal.
29+
*
30+
* @param QuorumReply $quorumReply
31+
*/
32+
public function setQuorumReply(QuorumReply $quorumReply)
33+
{
34+
$this->quorumReply = $quorumReply;
35+
}
36+
/**
37+
* @return QuorumReply
38+
*/
39+
public function getQuorumReply()
40+
{
41+
return $this->quorumReply;
42+
}
43+
/**
44+
* Required. The reply to RequiredActionQuorumParameters for approving the
45+
* proposal.
46+
*
47+
* @param RequiredActionQuorumReply $requiredActionQuorumReply
48+
*/
49+
public function setRequiredActionQuorumReply(RequiredActionQuorumReply $requiredActionQuorumReply)
50+
{
51+
$this->requiredActionQuorumReply = $requiredActionQuorumReply;
52+
}
53+
/**
54+
* @return RequiredActionQuorumReply
55+
*/
56+
public function getRequiredActionQuorumReply()
57+
{
58+
return $this->requiredActionQuorumReply;
59+
}
60+
}
61+
62+
// Adding a class alias for backwards compatibility with the previous class name.
63+
class_alias(ApproveSingleTenantHsmInstanceProposalRequest::class, 'Google_Service_CloudKMS_ApproveSingleTenantHsmInstanceProposalRequest');
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
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 ApproveSingleTenantHsmInstanceProposalResponse extends \Google\Model
21+
{
22+
}
23+
24+
// Adding a class alias for backwards compatibility with the previous class name.
25+
class_alias(ApproveSingleTenantHsmInstanceProposalResponse::class, 'Google_Service_CloudKMS_ApproveSingleTenantHsmInstanceProposalResponse');

src/CloudKMS/Challenge.php

Lines changed: 74 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,74 @@
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 Challenge extends \Google\Model
21+
{
22+
/**
23+
* Output only. The challenge to be signed by the 2FA key indicated by the
24+
* public key.
25+
*
26+
* @var string
27+
*/
28+
public $challenge;
29+
/**
30+
* Output only. The public key associated with the 2FA key that should sign
31+
* the challenge.
32+
*
33+
* @var string
34+
*/
35+
public $publicKeyPem;
36+
37+
/**
38+
* Output only. The challenge to be signed by the 2FA key indicated by the
39+
* public key.
40+
*
41+
* @param string $challenge
42+
*/
43+
public function setChallenge($challenge)
44+
{
45+
$this->challenge = $challenge;
46+
}
47+
/**
48+
* @return string
49+
*/
50+
public function getChallenge()
51+
{
52+
return $this->challenge;
53+
}
54+
/**
55+
* Output only. The public key associated with the 2FA key that should sign
56+
* the challenge.
57+
*
58+
* @param string $publicKeyPem
59+
*/
60+
public function setPublicKeyPem($publicKeyPem)
61+
{
62+
$this->publicKeyPem = $publicKeyPem;
63+
}
64+
/**
65+
* @return string
66+
*/
67+
public function getPublicKeyPem()
68+
{
69+
return $this->publicKeyPem;
70+
}
71+
}
72+
73+
// Adding a class alias for backwards compatibility with the previous class name.
74+
class_alias(Challenge::class, 'Google_Service_CloudKMS_Challenge');

0 commit comments

Comments
 (0)