Class AclResource
The "acl" collection of methods.
public class AclResource
- Inheritance
-
AclResource
- Inherited Members
Constructors
AclResource(IClientService)
Constructs a new resource.
public AclResource(IClientService service)
Parameters
service
IClientService
Methods
Delete(string, string)
Deletes an access control rule.
public virtual AclResource.DeleteRequest Delete(string calendarId, string ruleId)
Parameters
calendarId
stringCalendar 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.
ruleId
stringACL rule identifier.
Returns
Get(string, string)
Returns an access control rule.
public virtual AclResource.GetRequest Get(string calendarId, string ruleId)
Parameters
calendarId
stringCalendar 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.
ruleId
stringACL rule identifier.
Returns
Insert(AclRule, string)
Creates an access control rule.
public virtual AclResource.InsertRequest Insert(AclRule body, string calendarId)
Parameters
body
AclRuleThe body of the request.
calendarId
stringCalendar 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.
Returns
List(string)
Returns the rules in the access control list for the calendar.
public virtual AclResource.ListRequest List(string calendarId)
Parameters
calendarId
stringCalendar 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.
Returns
Patch(AclRule, string, string)
Updates an access control rule. This method supports patch semantics.
public virtual AclResource.PatchRequest Patch(AclRule body, string calendarId, string ruleId)
Parameters
body
AclRuleThe body of the request.
calendarId
stringCalendar 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.
ruleId
stringACL rule identifier.
Returns
Update(AclRule, string, string)
Updates an access control rule.
public virtual AclResource.UpdateRequest Update(AclRule body, string calendarId, string ruleId)
Parameters
body
AclRuleThe body of the request.
calendarId
stringCalendar 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.
ruleId
stringACL rule identifier.
Returns
Watch(Channel, string)
Watch for changes to ACL resources.
public virtual AclResource.WatchRequest Watch(Channel body, string calendarId)
Parameters
body
ChannelThe body of the request.
calendarId
stringCalendar 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.