class Acl extends Resource (View source)

The "acl" collection of methods.

Typical usage is:

 $calendarService = new Google\Service\Calendar(...);
 $acl = $calendarService->acl;

Methods

delete(string $calendarId, string $ruleId, array $optParams = [])

Deletes an access control rule. (acl.delete)

get(string $calendarId, string $ruleId, array $optParams = [])

Returns an access control rule. (acl.get)

insert(string $calendarId, AclRule $postBody, array $optParams = [])

Creates an access control rule. (acl.insert)

Acl
listAcl(string $calendarId, array $optParams = [])

Returns the rules in the access control list for the calendar. (acl.listAcl)

patch(string $calendarId, string $ruleId, AclRule $postBody, array $optParams = [])

Updates an access control rule. This method supports patch semantics.

update(string $calendarId, string $ruleId, AclRule $postBody, array $optParams = [])

Updates an access control rule. (acl.update)

watch(string $calendarId, Channel $postBody, array $optParams = [])

Watch for changes to ACL resources. (acl.watch)

Details

delete(string $calendarId, string $ruleId, array $optParams = [])

Deletes an access control rule. (acl.delete)

Parameters

string $calendarId

Calendar identifier. To retrieve calendar IDs call the calendarList.list method. If you want to access the primary calendar of the currently logged in user, use the "primary" keyword.

string $ruleId

ACL rule identifier.

array $optParams

Optional parameters.

Exceptions

Exception

AclRule get(string $calendarId, string $ruleId, array $optParams = [])

Returns an access control rule. (acl.get)

Parameters

string $calendarId

Calendar identifier. To retrieve calendar IDs call the calendarList.list method. If you want to access the primary calendar of the currently logged in user, use the "primary" keyword.

string $ruleId

ACL rule identifier.

array $optParams

Optional parameters.

Return Value

AclRule

Exceptions

Exception

AclRule insert(string $calendarId, AclRule $postBody, array $optParams = [])

Creates an access control rule. (acl.insert)

Parameters

string $calendarId

Calendar identifier. To retrieve calendar IDs call the calendarList.list method. If you want to access the primary calendar of the currently logged in user, use the "primary" keyword.

AclRule $postBody
array $optParams

Optional parameters.

Return Value

AclRule

Exceptions

Exception

Acl listAcl(string $calendarId, array $optParams = [])

Returns the rules in the access control list for the calendar. (acl.listAcl)

Parameters

string $calendarId

Calendar identifier. To retrieve calendar IDs call the calendarList.list method. If you want to access the primary calendar of the currently logged in user, use the "primary" keyword.

array $optParams

Optional parameters.

Return Value

Acl

Exceptions

Exception

AclRule patch(string $calendarId, string $ruleId, AclRule $postBody, array $optParams = [])

Updates an access control rule. This method supports patch semantics.

(acl.patch)

Parameters

string $calendarId

Calendar identifier. To retrieve calendar IDs call the calendarList.list method. If you want to access the primary calendar of the currently logged in user, use the "primary" keyword.

string $ruleId

ACL rule identifier.

AclRule $postBody
array $optParams

Optional parameters.

Return Value

AclRule

Exceptions

Exception

AclRule update(string $calendarId, string $ruleId, AclRule $postBody, array $optParams = [])

Updates an access control rule. (acl.update)

Parameters

string $calendarId

Calendar identifier. To retrieve calendar IDs call the calendarList.list method. If you want to access the primary calendar of the currently logged in user, use the "primary" keyword.

string $ruleId

ACL rule identifier.

AclRule $postBody
array $optParams

Optional parameters.

Return Value

AclRule

Exceptions

Exception

Channel watch(string $calendarId, Channel $postBody, array $optParams = [])

Watch for changes to ACL resources. (acl.watch)

Parameters

string $calendarId

Calendar identifier. To retrieve calendar IDs call the calendarList.list method. If you want to access the primary calendar of the currently logged in user, use the "primary" keyword.

Channel $postBody
array $optParams

Optional parameters.

Return Value

Channel

Exceptions

Exception