NAME
Google::RestApi::CalendarApi3::Acl - ACL (Access Control) object for Google Calendar.
SYNOPSIS
# Get an ACL rule
my $acl = $calendar->acl(id => 'rule_id');
my $details = $acl->get();
# Create a new ACL rule
my $new_acl = $calendar->acl()->create(
role => 'reader',
scope_type => 'user',
scope_value => 'user@example.com',
);
# Update ACL rule
$acl->update(role => 'writer');
# Delete ACL rule
$acl->delete();
DESCRIPTION
Represents an access control rule on a Google Calendar. Supports creating, reading, updating, and deleting ACL rules.
METHODS
create(role => $role, scope_type => $type, scope_value => $value)
Creates a new ACL rule. Required parameters:
role: 'none', 'freeBusyReader', 'reader', 'writer', 'owner'
scope_type: 'default', 'user', 'group', 'domain'
scope_value: Email address or domain (optional for 'default' type)
get(fields => $fields)
Gets ACL rule details. Requires ACL ID.
update(role => $role)
Updates the ACL rule role. Requires ACL ID.
delete()
Deletes the ACL rule. Requires ACL ID.
acl_id()
Returns the ACL rule ID.
calendar()
Returns the parent Calendar object.
AUTHORS
Robin Murray mvsjes@cpan.org
COPYRIGHT
Copyright (c) 2019-2026 Robin Murray. All rights reserved.
This program is free software; you may redistribute it and/or modify it under the same terms as Perl itself.