Class: Google::Apis::CalendarV3::FreeBusyRequest

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

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) ⇒ FreeBusyRequest

Returns a new instance of FreeBusyRequest



1892
1893
1894
# File 'generated/google/apis/calendar_v3/classes.rb', line 1892

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

Instance Attribute Details

#calendar_expansion_maxFixnum

Maximal number of calendars for which FreeBusy information is to be provided. Optional. Corresponds to the JSON property calendarExpansionMax

Returns:

  • (Fixnum)


1863
1864
1865
# File 'generated/google/apis/calendar_v3/classes.rb', line 1863

def calendar_expansion_max
  @calendar_expansion_max
end

#group_expansion_maxFixnum

Maximal number of calendar identifiers to be provided for a single group. Optional. An error will be returned for a group with more members than this value. Corresponds to the JSON property groupExpansionMax

Returns:

  • (Fixnum)


1870
1871
1872
# File 'generated/google/apis/calendar_v3/classes.rb', line 1870

def group_expansion_max
  @group_expansion_max
end

#itemsArray<Google::Apis::CalendarV3::FreeBusyRequestItem>

List of calendars and/or groups to query. Corresponds to the JSON property items



1875
1876
1877
# File 'generated/google/apis/calendar_v3/classes.rb', line 1875

def items
  @items
end

#time_maxDateTime

The end of the interval for the query. Corresponds to the JSON property timeMax

Returns:

  • (DateTime)


1880
1881
1882
# File 'generated/google/apis/calendar_v3/classes.rb', line 1880

def time_max
  @time_max
end

#time_minDateTime

The start of the interval for the query. Corresponds to the JSON property timeMin

Returns:

  • (DateTime)


1885
1886
1887
# File 'generated/google/apis/calendar_v3/classes.rb', line 1885

def time_min
  @time_min
end

#time_zoneString

Time zone used in the response. Optional. The default is UTC. Corresponds to the JSON property timeZone

Returns:

  • (String)


1890
1891
1892
# File 'generated/google/apis/calendar_v3/classes.rb', line 1890

def time_zone
  @time_zone
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1897
1898
1899
1900
1901
1902
1903
1904
# File 'generated/google/apis/calendar_v3/classes.rb', line 1897

def update!(**args)
  @calendar_expansion_max = args[:calendar_expansion_max] if args.key?(:calendar_expansion_max)
  @group_expansion_max = args[:group_expansion_max] if args.key?(:group_expansion_max)
  @items = args[:items] if args.key?(:items)
  @time_max = args[:time_max] if args.key?(:time_max)
  @time_min = args[:time_min] if args.key?(:time_min)
  @time_zone = args[:time_zone] if args.key?(:time_zone)
end