class Google::Apis::CalendarV3::AclRule

Attributes

etag[RW]

ETag of the resource. Corresponds to the JSON property `etag` @return [String]

id[RW]

Identifier of the Access Control List (ACL) rule. See Sharing calendars. Corresponds to the JSON property `id` @return [String]

kind[RW]

Type of the resource (“calendar#aclRule”). Corresponds to the JSON property `kind` @return [String]

role[RW]

The role assigned to the scope. Possible values are:

  • “none” - Provides no access.

  • “freeBusyReader” - Provides read access to free/busy information.

  • “reader” - Provides read access to the calendar. Private events will appear

to users with reader access, but event details will be hidden.

  • “writer” - Provides read and write access to the calendar. Private events

will appear to users with writer access, and event details will be visible.

  • “owner” - Provides ownership of the calendar. This role has all of the

permissions of the writer role with the additional ability to see and manipulate ACLs. Corresponds to the JSON property `role` @return [String]

scope[RW]

The extent to which calendar access is granted by this ACL rule. Corresponds to the JSON property `scope` @return [Google::Apis::CalendarV3::AclRule::Scope]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/calendar_v3/classes.rb, line 109
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/calendar_v3/classes.rb, line 114
def update!(**args)
  @etag = args[:etag] if args.key?(:etag)
  @id = args[:id] if args.key?(:id)
  @kind = args[:kind] if args.key?(:kind)
  @role = args[:role] if args.key?(:role)
  @scope = args[:scope] if args.key?(:scope)
end