Class: Google::Apis::CalendarV3::Calendar

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Calendar

Returns a new instance of Calendar.



217
218
219
# File 'lib/google/apis/calendar_v3/classes.rb', line 217

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

Instance Attribute Details

#auto_accept_invitationsBoolean Also known as: auto_accept_invitations?

Whether this calendar automatically accepts invitations. Only valid for resource calendars. Corresponds to the JSON property autoAcceptInvitations

Returns:

  • (Boolean)


165
166
167
# File 'lib/google/apis/calendar_v3/classes.rb', line 165

def auto_accept_invitations
  @auto_accept_invitations
end

#conference_propertiesGoogle::Apis::CalendarV3::ConferenceProperties

Conferencing properties for this calendar, for example what types of conferences are allowed. Corresponds to the JSON property conferenceProperties



172
173
174
# File 'lib/google/apis/calendar_v3/classes.rb', line 172

def conference_properties
  @conference_properties
end

#data_ownerString

The email of the owner of the calendar. Set only for secondary calendars. Read- only. Corresponds to the JSON property dataOwner

Returns:

  • (String)


178
179
180
# File 'lib/google/apis/calendar_v3/classes.rb', line 178

def data_owner
  @data_owner
end

#descriptionString

Description of the calendar. Optional. Corresponds to the JSON property description

Returns:

  • (String)


183
184
185
# File 'lib/google/apis/calendar_v3/classes.rb', line 183

def description
  @description
end

#etagString

ETag of the resource. Corresponds to the JSON property etag

Returns:

  • (String)


188
189
190
# File 'lib/google/apis/calendar_v3/classes.rb', line 188

def etag
  @etag
end

#idString

Identifier of the calendar. To retrieve IDs call the calendarList.list() method. Corresponds to the JSON property id

Returns:

  • (String)


194
195
196
# File 'lib/google/apis/calendar_v3/classes.rb', line 194

def id
  @id
end

#kindString

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

Returns:

  • (String)


199
200
201
# File 'lib/google/apis/calendar_v3/classes.rb', line 199

def kind
  @kind
end

#locationString

Geographic location of the calendar as free-form text. Optional. Corresponds to the JSON property location

Returns:

  • (String)


204
205
206
# File 'lib/google/apis/calendar_v3/classes.rb', line 204

def location
  @location
end

#summaryString

Title of the calendar. Corresponds to the JSON property summary

Returns:

  • (String)


209
210
211
# File 'lib/google/apis/calendar_v3/classes.rb', line 209

def summary
  @summary
end

#time_zoneString

The time zone of the calendar. (Formatted as an IANA Time Zone Database name, e.g. "Europe/Zurich".) Optional. Corresponds to the JSON property timeZone

Returns:

  • (String)


215
216
217
# File 'lib/google/apis/calendar_v3/classes.rb', line 215

def time_zone
  @time_zone
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



222
223
224
225
226
227
228
229
230
231
232
233
# File 'lib/google/apis/calendar_v3/classes.rb', line 222

def update!(**args)
  @auto_accept_invitations = args[:auto_accept_invitations] if args.key?(:auto_accept_invitations)
  @conference_properties = args[:conference_properties] if args.key?(:conference_properties)
  @data_owner = args[:data_owner] if args.key?(:data_owner)
  @description = args[:description] if args.key?(:description)
  @etag = args[:etag] if args.key?(:etag)
  @id = args[:id] if args.key?(:id)
  @kind = args[:kind] if args.key?(:kind)
  @location = args[:location] if args.key?(:location)
  @summary = args[:summary] if args.key?(:summary)
  @time_zone = args[:time_zone] if args.key?(:time_zone)
end