1818namespace Google \Service \CloudKMS \Resource ;
1919
2020use 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