class LabelsRevisionsPermissions extends Resource (View source)

The "permissions" collection of methods.

Typical usage is:

 $drivelabelsService = new Google\Service\DriveLabels(...);
 $permissions = $drivelabelsService->labels_revisions_permissions;

Methods

batchDelete(string $parent, GoogleAppsDriveLabelsV2BatchDeleteLabelPermissionsRequest $postBody, array $optParams = [])

Deletes Label permissions. Permissions affect the Label resource as a whole, are not revisioned, and do not require publishing. (permissions.batchDelete)

batchUpdate(string $parent, GoogleAppsDriveLabelsV2BatchUpdateLabelPermissionsRequest $postBody, array $optParams = [])

Updates Label permissions. If a permission for the indicated principal doesn't exist, a new Label Permission is created, otherwise the existing permission is updated. Permissions affect the Label resource as a whole, are not revisioned, and do not require publishing. (permissions.batchUpdate)

create(string $parent, GoogleAppsDriveLabelsV2LabelPermission $postBody, array $optParams = [])

Updates a Label's permissions. If a permission for the indicated principal doesn't exist, a new Label Permission is created, otherwise the existing permission is updated. Permissions affect the Label resource as a whole, are not revisioned, and do not require publishing. (permissions.create)

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

Deletes a Label's permission. Permissions affect the Label resource as a whole, are not revisioned, and do not require publishing.

listLabelsRevisionsPermissions(string $parent, array $optParams = [])

Lists a Label's permissions. (permissions.listLabelsRevisionsPermissions)

Details

GoogleProtobufEmpty batchDelete(string $parent, GoogleAppsDriveLabelsV2BatchDeleteLabelPermissionsRequest $postBody, array $optParams = [])

Deletes Label permissions. Permissions affect the Label resource as a whole, are not revisioned, and do not require publishing. (permissions.batchDelete)

Parameters

string $parent

Required. The parent Label resource name shared by all permissions being deleted. Format: labels/{label} If this is set, the parent field in the UpdateLabelPermissionRequest messages must either be empty or match this field.

GoogleAppsDriveLabelsV2BatchDeleteLabelPermissionsRequest $postBody
array $optParams

Optional parameters.

Return Value

GoogleProtobufEmpty

Exceptions

Exception

GoogleAppsDriveLabelsV2BatchUpdateLabelPermissionsResponse batchUpdate(string $parent, GoogleAppsDriveLabelsV2BatchUpdateLabelPermissionsRequest $postBody, array $optParams = [])

Updates Label permissions. If a permission for the indicated principal doesn't exist, a new Label Permission is created, otherwise the existing permission is updated. Permissions affect the Label resource as a whole, are not revisioned, and do not require publishing. (permissions.batchUpdate)

Parameters

string $parent

Required. The parent Label resource name shared by all permissions being updated. Format: labels/{label} If this is set, the parent field in the UpdateLabelPermissionRequest messages must either be empty or match this field.

GoogleAppsDriveLabelsV2BatchUpdateLabelPermissionsRequest $postBody
array $optParams

Optional parameters.

Return Value

GoogleAppsDriveLabelsV2BatchUpdateLabelPermissionsResponse

Exceptions

Exception

GoogleAppsDriveLabelsV2LabelPermission create(string $parent, GoogleAppsDriveLabelsV2LabelPermission $postBody, array $optParams = [])

Updates a Label's permissions. If a permission for the indicated principal doesn't exist, a new Label Permission is created, otherwise the existing permission is updated. Permissions affect the Label resource as a whole, are not revisioned, and do not require publishing. (permissions.create)

Parameters

string $parent

Required. The parent Label resource name on the Label Permission is created. Format: labels/{label}

GoogleAppsDriveLabelsV2LabelPermission $postBody
array $optParams

Optional parameters.

Return Value

GoogleAppsDriveLabelsV2LabelPermission

Exceptions

Exception

GoogleProtobufEmpty delete(string $name, array $optParams = [])

Deletes a Label's permission. Permissions affect the Label resource as a whole, are not revisioned, and do not require publishing.

(permissions.delete)

Parameters

string $name

Required. Label Permission resource name.

array $optParams

Optional parameters.

Return Value

GoogleProtobufEmpty

Exceptions

Exception

GoogleAppsDriveLabelsV2ListLabelPermissionsResponse listLabelsRevisionsPermissions(string $parent, array $optParams = [])

Lists a Label's permissions. (permissions.listLabelsRevisionsPermissions)

Parameters

string $parent

Required. The parent Label resource name on which Label Permission are listed. Format: labels/{label}

array $optParams

Optional parameters.

Return Value

GoogleAppsDriveLabelsV2ListLabelPermissionsResponse

Exceptions

Exception