Class: Google::Apis::CalendarV3::AclRule

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
generated/google/apis/calendar_v3/classes.rb,
generated/google/apis/calendar_v3/representations.rb,
generated/google/apis/calendar_v3/representations.rb

Defined Under Namespace

Classes: Scope

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Google::Apis::Core::JsonObjectSupport

#to_json

Methods included from Google::Apis::Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ AclRule

Returns a new instance of AclRule



109
110
111
# File 'generated/google/apis/calendar_v3/classes.rb', line 109

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#etagString

ETag of the resource. Corresponds to the JSON property etag

Returns:

  • (String)


78
79
80
# File 'generated/google/apis/calendar_v3/classes.rb', line 78

def etag
  @etag
end

#idString

Identifier of the ACL rule. Corresponds to the JSON property id

Returns:

  • (String)


83
84
85
# File 'generated/google/apis/calendar_v3/classes.rb', line 83

def id
  @id
end

#kindString

Type of the resource ("calendar#aclRule"). Corresponds to the JSON property kind

Returns:

  • (String)


88
89
90
# File 'generated/google/apis/calendar_v3/classes.rb', line 88

def kind
  @kind
end

#roleString

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

Returns:

  • (String)


102
103
104
# File 'generated/google/apis/calendar_v3/classes.rb', line 102

def role
  @role
end

#scopeGoogle::Apis::CalendarV3::AclRule::Scope

The scope of the rule. Corresponds to the JSON property scope



107
108
109
# File 'generated/google/apis/calendar_v3/classes.rb', line 107

def scope
  @scope
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



114
115
116
117
118
119
120
# File 'generated/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