class Folders extends Resource (View source)

The "folders" collection of methods.

Typical usage is:

 $cloudkmsService = new Google\Service\CloudKMS(...);
 $folders = $cloudkmsService->folders;

Methods

getAutokeyConfig(string $name, array $optParams = [])

Returns the AutokeyConfig for a folder. (folders.getAutokeyConfig)

updateAutokeyConfig(string $name, AutokeyConfig $postBody, array $optParams = [])

Updates the AutokeyConfig for a folder. The caller must have both cloudkms.autokeyConfigs.update permission on the parent folder and cloudkms.cryptoKeys.setIamPolicy permission on the provided key project. A KeyHandle creation in the folder's descendant projects will use this configuration to determine where to create the resulting CryptoKey.

Details

AutokeyConfig getAutokeyConfig(string $name, array $optParams = [])

Returns the AutokeyConfig for a folder. (folders.getAutokeyConfig)

Parameters

string $name

Required. Name of the AutokeyConfig resource, e.g. folders/{FOLDER_NUMBER}/autokeyConfig.

array $optParams

Optional parameters.

Return Value

AutokeyConfig

Exceptions

Exception

AutokeyConfig updateAutokeyConfig(string $name, AutokeyConfig $postBody, array $optParams = [])

Updates the AutokeyConfig for a folder. The caller must have both cloudkms.autokeyConfigs.update permission on the parent folder and cloudkms.cryptoKeys.setIamPolicy permission on the provided key project. A KeyHandle creation in the folder's descendant projects will use this configuration to determine where to create the resulting CryptoKey.

(folders.updateAutokeyConfig)

Parameters

string $name

Identifier. Name of the AutokeyConfig resource, e.g. folders/{FOLDER_NUMBER}/autokeyConfig.

AutokeyConfig $postBody
array $optParams

Optional parameters.

Return Value

AutokeyConfig

Exceptions

Exception