google-apis-calendar_v3 0.24.0 → 0.26.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 416bab9c2fcea7328872a96b95c3217e517626e2e1c05db5292bd1b1e19ae730
4
- data.tar.gz: 5339c93c55e1b9ba7326fd1fbe1e853e6b296af10d165133d79c3d9d31c97210
3
+ metadata.gz: 497915bc57cc5f3ee20ff0c59ed02e3c815f6feef6b823aa53a01e1979ddb5fb
4
+ data.tar.gz: 9a5efdf457a54cfd03804ec377dc6f9d8b7a9e55ea4cb1f3124223a6f3cfe7e4
5
5
  SHA512:
6
- metadata.gz: 3a85aa9808f50d699e8a27068158197bc16cc6d318655305fbf43ff25b1a1d4adaf511dc66cf6a440b5694206cb8a56c27b39dab9fa83c6b59f3df11e44e3a11
7
- data.tar.gz: 65e9046073dd84a67e7be43949f5e01a56e7b13e1b823da5cdb031d264a405d879e1a5acfc62c6ed264884284cf8ebe20274919dcde56cbba9d240047cbdb409
6
+ metadata.gz: f0f7e5467661309dfb8eb40210370a42690a1386e2fae98504237c1b3ee3672d5459d6cacebc3568631c5c0c2bad6fe0eee3aa40afffecb78e739a80150aded7
7
+ data.tar.gz: 4423f2cb574e723b1f88cc0da09708a6b300958529898efab2125af5c15e0adb25dccb35b09c4bf4ae30714ebe20a910bd053613fb38bc73a6a5d64a1406b908
data/CHANGELOG.md CHANGED
@@ -1,5 +1,14 @@
1
1
  # Release history for google-apis-calendar_v3
2
2
 
3
+ ### v0.26.0 (2023-03-19)
4
+
5
+ * Regenerated from discovery document revision 20230313
6
+
7
+ ### v0.25.0 (2023-02-26)
8
+
9
+ * Regenerated from discovery document revision 20230217
10
+ * Regenerated using generator version 0.12.0
11
+
3
12
  ### v0.24.0 (2022-10-28)
4
13
 
5
14
  * Regenerated using generator version 0.11.0
@@ -1114,6 +1114,7 @@ module Google
1114
1114
  # - "default" - A regular event or not further specified.
1115
1115
  # - "outOfOffice" - An out-of-office event.
1116
1116
  # - "focusTime" - A focus-time event.
1117
+ # - "workingLocation" - A working location event.
1117
1118
  # Corresponds to the JSON property `eventType`
1118
1119
  # @return [String]
1119
1120
  attr_accessor :event_type
@@ -1333,6 +1334,11 @@ module Google
1333
1334
  # @return [String]
1334
1335
  attr_accessor :visibility
1335
1336
 
1337
+ # Working Location event data. Read-only.
1338
+ # Corresponds to the JSON property `workingLocationProperties`
1339
+ # @return [Google::Apis::CalendarV3::EventWorkingLocationProperties]
1340
+ attr_accessor :working_location_properties
1341
+
1336
1342
  def initialize(**args)
1337
1343
  update!(**args)
1338
1344
  end
@@ -1378,6 +1384,7 @@ module Google
1378
1384
  @transparency = args[:transparency] if args.key?(:transparency)
1379
1385
  @updated = args[:updated] if args.key?(:updated)
1380
1386
  @visibility = args[:visibility] if args.key?(:visibility)
1387
+ @working_location_properties = args[:working_location_properties] if args.key?(:working_location_properties)
1381
1388
  end
1382
1389
 
1383
1390
  # The creator of the event. Read-only.
@@ -1819,6 +1826,100 @@ module Google
1819
1826
  end
1820
1827
  end
1821
1828
 
1829
+ #
1830
+ class EventWorkingLocationProperties
1831
+ include Google::Apis::Core::Hashable
1832
+
1833
+ # If present, specifies that the user is working from a custom location.
1834
+ # Corresponds to the JSON property `customLocation`
1835
+ # @return [Google::Apis::CalendarV3::EventWorkingLocationProperties::CustomLocation]
1836
+ attr_accessor :custom_location
1837
+
1838
+ # If present, specifies that the user is working at home.
1839
+ # Corresponds to the JSON property `homeOffice`
1840
+ # @return [Object]
1841
+ attr_accessor :home_office
1842
+
1843
+ # If present, specifies that the user is working from an office.
1844
+ # Corresponds to the JSON property `officeLocation`
1845
+ # @return [Google::Apis::CalendarV3::EventWorkingLocationProperties::OfficeLocation]
1846
+ attr_accessor :office_location
1847
+
1848
+ def initialize(**args)
1849
+ update!(**args)
1850
+ end
1851
+
1852
+ # Update properties of this object
1853
+ def update!(**args)
1854
+ @custom_location = args[:custom_location] if args.key?(:custom_location)
1855
+ @home_office = args[:home_office] if args.key?(:home_office)
1856
+ @office_location = args[:office_location] if args.key?(:office_location)
1857
+ end
1858
+
1859
+ # If present, specifies that the user is working from a custom location.
1860
+ class CustomLocation
1861
+ include Google::Apis::Core::Hashable
1862
+
1863
+ # An optional extra label for additional information.
1864
+ # Corresponds to the JSON property `label`
1865
+ # @return [String]
1866
+ attr_accessor :label
1867
+
1868
+ def initialize(**args)
1869
+ update!(**args)
1870
+ end
1871
+
1872
+ # Update properties of this object
1873
+ def update!(**args)
1874
+ @label = args[:label] if args.key?(:label)
1875
+ end
1876
+ end
1877
+
1878
+ # If present, specifies that the user is working from an office.
1879
+ class OfficeLocation
1880
+ include Google::Apis::Core::Hashable
1881
+
1882
+ # An optional building identifier. This should reference a building ID in the
1883
+ # organization's Resources database.
1884
+ # Corresponds to the JSON property `buildingId`
1885
+ # @return [String]
1886
+ attr_accessor :building_id
1887
+
1888
+ # An optional arbitrary desk identifier.
1889
+ # Corresponds to the JSON property `deskId`
1890
+ # @return [String]
1891
+ attr_accessor :desk_id
1892
+
1893
+ # An optional arbitrary floor identifier.
1894
+ # Corresponds to the JSON property `floorId`
1895
+ # @return [String]
1896
+ attr_accessor :floor_id
1897
+
1898
+ # An optional arbitrary floor section identifier.
1899
+ # Corresponds to the JSON property `floorSectionId`
1900
+ # @return [String]
1901
+ attr_accessor :floor_section_id
1902
+
1903
+ # An optional extra label for additional information.
1904
+ # Corresponds to the JSON property `label`
1905
+ # @return [String]
1906
+ attr_accessor :label
1907
+
1908
+ def initialize(**args)
1909
+ update!(**args)
1910
+ end
1911
+
1912
+ # Update properties of this object
1913
+ def update!(**args)
1914
+ @building_id = args[:building_id] if args.key?(:building_id)
1915
+ @desk_id = args[:desk_id] if args.key?(:desk_id)
1916
+ @floor_id = args[:floor_id] if args.key?(:floor_id)
1917
+ @floor_section_id = args[:floor_section_id] if args.key?(:floor_section_id)
1918
+ @label = args[:label] if args.key?(:label)
1919
+ end
1920
+ end
1921
+ end
1922
+
1822
1923
  #
1823
1924
  class Events
1824
1925
  include Google::Apis::Core::Hashable
@@ -16,13 +16,13 @@ module Google
16
16
  module Apis
17
17
  module CalendarV3
18
18
  # Version of the google-apis-calendar_v3 gem
19
- GEM_VERSION = "0.24.0"
19
+ GEM_VERSION = "0.26.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
- GENERATOR_VERSION = "0.11.0"
22
+ GENERATOR_VERSION = "0.12.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20220715"
25
+ REVISION = "20230313"
26
26
  end
27
27
  end
28
28
  end
@@ -214,6 +214,24 @@ module Google
214
214
  include Google::Apis::Core::JsonObjectSupport
215
215
  end
216
216
 
217
+ class EventWorkingLocationProperties
218
+ class Representation < Google::Apis::Core::JsonRepresentation; end
219
+
220
+ class CustomLocation
221
+ class Representation < Google::Apis::Core::JsonRepresentation; end
222
+
223
+ include Google::Apis::Core::JsonObjectSupport
224
+ end
225
+
226
+ class OfficeLocation
227
+ class Representation < Google::Apis::Core::JsonRepresentation; end
228
+
229
+ include Google::Apis::Core::JsonObjectSupport
230
+ end
231
+
232
+ include Google::Apis::Core::JsonObjectSupport
233
+ end
234
+
217
235
  class Events
218
236
  class Representation < Google::Apis::Core::JsonRepresentation; end
219
237
 
@@ -562,6 +580,8 @@ module Google
562
580
  property :updated, as: 'updated', type: DateTime
563
581
 
564
582
  property :visibility, as: 'visibility'
583
+ property :working_location_properties, as: 'workingLocationProperties', class: Google::Apis::CalendarV3::EventWorkingLocationProperties, decorator: Google::Apis::CalendarV3::EventWorkingLocationProperties::Representation
584
+
565
585
  end
566
586
 
567
587
  class Creator
@@ -670,6 +690,35 @@ module Google
670
690
  end
671
691
  end
672
692
 
693
+ class EventWorkingLocationProperties
694
+ # @private
695
+ class Representation < Google::Apis::Core::JsonRepresentation
696
+ property :custom_location, as: 'customLocation', class: Google::Apis::CalendarV3::EventWorkingLocationProperties::CustomLocation, decorator: Google::Apis::CalendarV3::EventWorkingLocationProperties::CustomLocation::Representation
697
+
698
+ property :home_office, as: 'homeOffice'
699
+ property :office_location, as: 'officeLocation', class: Google::Apis::CalendarV3::EventWorkingLocationProperties::OfficeLocation, decorator: Google::Apis::CalendarV3::EventWorkingLocationProperties::OfficeLocation::Representation
700
+
701
+ end
702
+
703
+ class CustomLocation
704
+ # @private
705
+ class Representation < Google::Apis::Core::JsonRepresentation
706
+ property :label, as: 'label'
707
+ end
708
+ end
709
+
710
+ class OfficeLocation
711
+ # @private
712
+ class Representation < Google::Apis::Core::JsonRepresentation
713
+ property :building_id, as: 'buildingId'
714
+ property :desk_id, as: 'deskId'
715
+ property :floor_id, as: 'floorId'
716
+ property :floor_section_id, as: 'floorSectionId'
717
+ property :label, as: 'label'
718
+ end
719
+ end
720
+ end
721
+
673
722
  class Events
674
723
  # @private
675
724
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -1278,6 +1278,10 @@ module Google
1278
1278
  # Deprecated and ignored. A value will always be returned in the email field for
1279
1279
  # the organizer, creator and attendees, even if no real email address is
1280
1280
  # available (i.e. a generated, non-working value will be provided).
1281
+ # @param [Array<String>, String] event_types
1282
+ # Event types to return. Optional. The default is ["default", "outOfOffice", "
1283
+ # focusTime"]. This is used by the Working Location developer preview and only
1284
+ # the default value is allowed for non-opted-in users.
1281
1285
  # @param [String] i_cal_uid
1282
1286
  # Specifies an event ID in the iCalendar format to be provided in the response.
1283
1287
  # Optional. Use this if you want to search for an event by its iCalendar ID.
@@ -1382,12 +1386,13 @@ module Google
1382
1386
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1383
1387
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1384
1388
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1385
- def list_events(calendar_id, always_include_email: nil, i_cal_uid: nil, max_attendees: nil, max_results: nil, order_by: nil, page_token: nil, private_extended_property: nil, q: nil, shared_extended_property: nil, show_deleted: nil, show_hidden_invitations: nil, single_events: nil, sync_token: nil, time_max: nil, time_min: nil, time_zone: nil, updated_min: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1389
+ def list_events(calendar_id, always_include_email: nil, event_types: nil, i_cal_uid: nil, max_attendees: nil, max_results: nil, order_by: nil, page_token: nil, private_extended_property: nil, q: nil, shared_extended_property: nil, show_deleted: nil, show_hidden_invitations: nil, single_events: nil, sync_token: nil, time_max: nil, time_min: nil, time_zone: nil, updated_min: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1386
1390
  command = make_simple_command(:get, 'calendars/{calendarId}/events', options)
1387
1391
  command.response_representation = Google::Apis::CalendarV3::Events::Representation
1388
1392
  command.response_class = Google::Apis::CalendarV3::Events
1389
1393
  command.params['calendarId'] = calendar_id unless calendar_id.nil?
1390
1394
  command.query['alwaysIncludeEmail'] = always_include_email unless always_include_email.nil?
1395
+ command.query['eventTypes'] = event_types unless event_types.nil?
1391
1396
  command.query['iCalUID'] = i_cal_uid unless i_cal_uid.nil?
1392
1397
  command.query['maxAttendees'] = max_attendees unless max_attendees.nil?
1393
1398
  command.query['maxResults'] = max_results unless max_results.nil?
@@ -1660,6 +1665,10 @@ module Google
1660
1665
  # Deprecated and ignored. A value will always be returned in the email field for
1661
1666
  # the organizer, creator and attendees, even if no real email address is
1662
1667
  # available (i.e. a generated, non-working value will be provided).
1668
+ # @param [Array<String>, String] event_types
1669
+ # Event types to return. Optional. The default is ["default", "outOfOffice", "
1670
+ # focusTime"]. This is used by the Working Location developer preview and only
1671
+ # the default value is allowed for non-opted-in users.
1663
1672
  # @param [String] i_cal_uid
1664
1673
  # Specifies an event ID in the iCalendar format to be provided in the response.
1665
1674
  # Optional. Use this if you want to search for an event by its iCalendar ID.
@@ -1764,7 +1773,7 @@ module Google
1764
1773
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1765
1774
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1766
1775
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1767
- def watch_event(calendar_id, channel_object = nil, always_include_email: nil, i_cal_uid: nil, max_attendees: nil, max_results: nil, order_by: nil, page_token: nil, private_extended_property: nil, q: nil, shared_extended_property: nil, show_deleted: nil, show_hidden_invitations: nil, single_events: nil, sync_token: nil, time_max: nil, time_min: nil, time_zone: nil, updated_min: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1776
+ def watch_event(calendar_id, channel_object = nil, always_include_email: nil, event_types: nil, i_cal_uid: nil, max_attendees: nil, max_results: nil, order_by: nil, page_token: nil, private_extended_property: nil, q: nil, shared_extended_property: nil, show_deleted: nil, show_hidden_invitations: nil, single_events: nil, sync_token: nil, time_max: nil, time_min: nil, time_zone: nil, updated_min: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1768
1777
  command = make_simple_command(:post, 'calendars/{calendarId}/events/watch', options)
1769
1778
  command.request_representation = Google::Apis::CalendarV3::Channel::Representation
1770
1779
  command.request_object = channel_object
@@ -1772,6 +1781,7 @@ module Google
1772
1781
  command.response_class = Google::Apis::CalendarV3::Channel
1773
1782
  command.params['calendarId'] = calendar_id unless calendar_id.nil?
1774
1783
  command.query['alwaysIncludeEmail'] = always_include_email unless always_include_email.nil?
1784
+ command.query['eventTypes'] = event_types unless event_types.nil?
1775
1785
  command.query['iCalUID'] = i_cal_uid unless i_cal_uid.nil?
1776
1786
  command.query['maxAttendees'] = max_attendees unless max_attendees.nil?
1777
1787
  command.query['maxResults'] = max_results unless max_results.nil?
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-calendar_v3
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.24.0
4
+ version: 0.26.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-10-31 00:00:00.000000000 Z
11
+ date: 2023-03-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-apis-core
@@ -16,7 +16,7 @@ dependencies:
16
16
  requirements:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: 0.9.1
19
+ version: 0.11.0
20
20
  - - "<"
21
21
  - !ruby/object:Gem::Version
22
22
  version: 2.a
@@ -26,7 +26,7 @@ dependencies:
26
26
  requirements:
27
27
  - - ">="
28
28
  - !ruby/object:Gem::Version
29
- version: 0.9.1
29
+ version: 0.11.0
30
30
  - - "<"
31
31
  - !ruby/object:Gem::Version
32
32
  version: 2.a
@@ -58,7 +58,7 @@ licenses:
58
58
  metadata:
59
59
  bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
60
60
  changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-calendar_v3/CHANGELOG.md
61
- documentation_uri: https://googleapis.dev/ruby/google-apis-calendar_v3/v0.24.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-calendar_v3/v0.26.0
62
62
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-calendar_v3
63
63
  post_install_message:
64
64
  rdoc_options: []
@@ -75,7 +75,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
75
75
  - !ruby/object:Gem::Version
76
76
  version: '0'
77
77
  requirements: []
78
- rubygems_version: 3.3.14
78
+ rubygems_version: 3.4.2
79
79
  signing_key:
80
80
  specification_version: 4
81
81
  summary: Simple REST client for Calendar API V3