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

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

Overview

The scope of the rule.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Scope

Returns a new instance of Scope.



142
143
144
# File 'generated/google/apis/calendar_v3/classes.rb', line 142

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

Instance Attribute Details

#typeString

The type of the scope. Possible values are:

  • "default" - The public scope. This is the default value.
  • "user" - Limits the scope to a single user.
  • "group" - Limits the scope to a group.
  • "domain" - Limits the scope to a domain. Note: The permissions granted to the "default", or public, scope apply to any user, authenticated or not. Corresponds to the JSON property type

Returns:

  • (String)


134
135
136
# File 'generated/google/apis/calendar_v3/classes.rb', line 134

def type
  @type
end

#valueString

The email address of a user or group, or the name of a domain, depending on the scope type. Omitted for type "default". Corresponds to the JSON property value

Returns:

  • (String)


140
141
142
# File 'generated/google/apis/calendar_v3/classes.rb', line 140

def value
  @value
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



147
148
149
150
# File 'generated/google/apis/calendar_v3/classes.rb', line 147

def update!(**args)
  @type = args[:type] if args.key?(:type)
  @value = args[:value] if args.key?(:value)
end