class ManagedFolders extends Resource (View source)

The "managedFolders" collection of methods.

Typical usage is:

 $storageService = new Google\Service\Storage(...);
 $managedFolders = $storageService->managedFolders;

Methods

delete(string $bucket, string $managedFolder, array $optParams = [])

Permanently deletes a managed folder. (managedFolders.delete)

get(string $bucket, string $managedFolder, array $optParams = [])

Returns metadata of the specified managed folder. (managedFolders.get)

getIamPolicy(string $bucket, string $managedFolder, array $optParams = [])

Returns an IAM policy for the specified managed folder.

insert(string $bucket, ManagedFolder $postBody, array $optParams = [])

Creates a new managed folder. (managedFolders.insert)

listManagedFolders(string $bucket, array $optParams = [])

Lists managed folders in the given bucket.

setIamPolicy(string $bucket, string $managedFolder, Policy $postBody, array $optParams = [])

Updates an IAM policy for the specified managed folder.

testIamPermissions(string $bucket, string $managedFolder, string|array $permissions, array $optParams = [])

Tests a set of permissions on the given managed folder to see which, if any, are held by the caller. (managedFolders.testIamPermissions)

Details

delete(string $bucket, string $managedFolder, array $optParams = [])

Permanently deletes a managed folder. (managedFolders.delete)

Parameters

string $bucket

Name of the bucket containing the managed folder.

string $managedFolder

The managed folder name/path.

array $optParams

Optional parameters.

Exceptions

Exception

ManagedFolder get(string $bucket, string $managedFolder, array $optParams = [])

Returns metadata of the specified managed folder. (managedFolders.get)

Parameters

string $bucket

Name of the bucket containing the managed folder.

string $managedFolder

The managed folder name/path.

array $optParams

Optional parameters.

Return Value

ManagedFolder

Exceptions

Exception

Policy getIamPolicy(string $bucket, string $managedFolder, array $optParams = [])

Returns an IAM policy for the specified managed folder.

(managedFolders.getIamPolicy)

Parameters

string $bucket

Name of the bucket containing the managed folder.

string $managedFolder

The managed folder name/path.

array $optParams

Optional parameters.

Return Value

Policy

Exceptions

Exception

ManagedFolder insert(string $bucket, ManagedFolder $postBody, array $optParams = [])

Creates a new managed folder. (managedFolders.insert)

Parameters

string $bucket

Name of the bucket containing the managed folder.

ManagedFolder $postBody
array $optParams

Optional parameters.

Return Value

ManagedFolder

Exceptions

Exception

ManagedFolders listManagedFolders(string $bucket, array $optParams = [])

Lists managed folders in the given bucket.

(managedFolders.listManagedFolders)

Parameters

string $bucket

Name of the bucket containing the managed folder.

array $optParams

Optional parameters.

Return Value

ManagedFolders

Exceptions

Exception

Policy setIamPolicy(string $bucket, string $managedFolder, Policy $postBody, array $optParams = [])

Updates an IAM policy for the specified managed folder.

(managedFolders.setIamPolicy)

Parameters

string $bucket

Name of the bucket containing the managed folder.

string $managedFolder

The managed folder name/path.

Policy $postBody
array $optParams

Optional parameters.

Return Value

Policy

Exceptions

Exception

TestIamPermissionsResponse testIamPermissions(string $bucket, string $managedFolder, string|array $permissions, array $optParams = [])

Tests a set of permissions on the given managed folder to see which, if any, are held by the caller. (managedFolders.testIamPermissions)

Parameters

string $bucket

Name of the bucket containing the managed folder.

string $managedFolder

The managed folder name/path.

string|array $permissions

Permissions to test.

array $optParams

Optional parameters.

Return Value

TestIamPermissionsResponse

Exceptions

Exception