google-apis-homegraph_v1 0.26.0 → 0.27.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:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 10733b0a67af9b232c9bb806d09f217463864446fc74457f0a7789f07414a301
|
|
4
|
+
data.tar.gz: 2efa270f900f222514b29af749c25410962cf7756de6006a4864585206ac555b
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: ba7224d6e253c69f26b07d7738b2bd3cadb90dfbdb7189e407880c57a9e27e0de49064f4aa3690943b3cd03a676565aa030605a575387a6961e4a048ed96193a
|
|
7
|
+
data.tar.gz: 55bec2a857fa47b821b8c2d979c6555a62dade2136f4ca751330b60f0e74f5a04ea6cbaea360f171d223b32a22b85b5c3cbd85c14201175dc5f06254951d12b8
|
data/CHANGELOG.md
CHANGED
|
@@ -66,6 +66,31 @@ module Google
|
|
|
66
66
|
end
|
|
67
67
|
end
|
|
68
68
|
|
|
69
|
+
# Contains the set of updates for a component.
|
|
70
|
+
class ComponentTraitUpdates
|
|
71
|
+
include Google::Apis::Core::Hashable
|
|
72
|
+
|
|
73
|
+
# Required. ID of the component from the device provider.
|
|
74
|
+
# Corresponds to the JSON property `componentId`
|
|
75
|
+
# @return [String]
|
|
76
|
+
attr_accessor :component_id
|
|
77
|
+
|
|
78
|
+
# Required. The updated trait data for the component.
|
|
79
|
+
# Corresponds to the JSON property `traitData`
|
|
80
|
+
# @return [Array<Google::Apis::HomegraphV1::TraitData>]
|
|
81
|
+
attr_accessor :trait_data
|
|
82
|
+
|
|
83
|
+
def initialize(**args)
|
|
84
|
+
update!(**args)
|
|
85
|
+
end
|
|
86
|
+
|
|
87
|
+
# Update properties of this object
|
|
88
|
+
def update!(**args)
|
|
89
|
+
@component_id = args[:component_id] if args.key?(:component_id)
|
|
90
|
+
@trait_data = args[:trait_data] if args.key?(:trait_data)
|
|
91
|
+
end
|
|
92
|
+
end
|
|
93
|
+
|
|
69
94
|
# Third-party device definition.
|
|
70
95
|
class Device
|
|
71
96
|
include Google::Apis::Core::Hashable
|
|
@@ -255,6 +280,113 @@ module Google
|
|
|
255
280
|
end
|
|
256
281
|
end
|
|
257
282
|
|
|
283
|
+
# Contains the details for a single event.
|
|
284
|
+
class EventData
|
|
285
|
+
include Google::Apis::Core::Hashable
|
|
286
|
+
|
|
287
|
+
# Required. The actual event payload.
|
|
288
|
+
# Corresponds to the JSON property `event`
|
|
289
|
+
# @return [Hash<String,Object>]
|
|
290
|
+
attr_accessor :event
|
|
291
|
+
|
|
292
|
+
# Required. The unique event ID from the device provider.
|
|
293
|
+
# Corresponds to the JSON property `eventId`
|
|
294
|
+
# @return [String]
|
|
295
|
+
attr_accessor :event_id
|
|
296
|
+
|
|
297
|
+
# Required. The timestamp of the event.
|
|
298
|
+
# Corresponds to the JSON property `eventTime`
|
|
299
|
+
# @return [String]
|
|
300
|
+
attr_accessor :event_time
|
|
301
|
+
|
|
302
|
+
def initialize(**args)
|
|
303
|
+
update!(**args)
|
|
304
|
+
end
|
|
305
|
+
|
|
306
|
+
# Update properties of this object
|
|
307
|
+
def update!(**args)
|
|
308
|
+
@event = args[:event] if args.key?(:event)
|
|
309
|
+
@event_id = args[:event_id] if args.key?(:event_id)
|
|
310
|
+
@event_time = args[:event_time] if args.key?(:event_time)
|
|
311
|
+
end
|
|
312
|
+
end
|
|
313
|
+
|
|
314
|
+
# Contains a set of events for a specific component.
|
|
315
|
+
class Events
|
|
316
|
+
include Google::Apis::Core::Hashable
|
|
317
|
+
|
|
318
|
+
# Optional. The ID of the provider component if the events are associated with a
|
|
319
|
+
# specific component. Optional for WHDM events, required for UDDM events.
|
|
320
|
+
# Corresponds to the JSON property `componentId`
|
|
321
|
+
# @return [String]
|
|
322
|
+
attr_accessor :component_id
|
|
323
|
+
|
|
324
|
+
# Required. List of events associated with the component.
|
|
325
|
+
# Corresponds to the JSON property `events`
|
|
326
|
+
# @return [Array<Google::Apis::HomegraphV1::EventData>]
|
|
327
|
+
attr_accessor :events
|
|
328
|
+
|
|
329
|
+
def initialize(**args)
|
|
330
|
+
update!(**args)
|
|
331
|
+
end
|
|
332
|
+
|
|
333
|
+
# Update properties of this object
|
|
334
|
+
def update!(**args)
|
|
335
|
+
@component_id = args[:component_id] if args.key?(:component_id)
|
|
336
|
+
@events = args[:events] if args.key?(:events)
|
|
337
|
+
end
|
|
338
|
+
end
|
|
339
|
+
|
|
340
|
+
# Contains the set of events for an item.
|
|
341
|
+
class HomeEvents
|
|
342
|
+
include Google::Apis::Core::Hashable
|
|
343
|
+
|
|
344
|
+
# Required. / Unique identifier for the device.
|
|
345
|
+
# Corresponds to the JSON property `deviceId`
|
|
346
|
+
# @return [String]
|
|
347
|
+
attr_accessor :device_id
|
|
348
|
+
|
|
349
|
+
# Required. List of events for the item.
|
|
350
|
+
# Corresponds to the JSON property `events`
|
|
351
|
+
# @return [Array<Google::Apis::HomegraphV1::Events>]
|
|
352
|
+
attr_accessor :events
|
|
353
|
+
|
|
354
|
+
def initialize(**args)
|
|
355
|
+
update!(**args)
|
|
356
|
+
end
|
|
357
|
+
|
|
358
|
+
# Update properties of this object
|
|
359
|
+
def update!(**args)
|
|
360
|
+
@device_id = args[:device_id] if args.key?(:device_id)
|
|
361
|
+
@events = args[:events] if args.key?(:events)
|
|
362
|
+
end
|
|
363
|
+
end
|
|
364
|
+
|
|
365
|
+
# Contains the set of updates for a device.
|
|
366
|
+
class HomeTraitUpdates
|
|
367
|
+
include Google::Apis::Core::Hashable
|
|
368
|
+
|
|
369
|
+
# Required. Trait updates for each component.
|
|
370
|
+
# Corresponds to the JSON property `components`
|
|
371
|
+
# @return [Array<Google::Apis::HomegraphV1::ComponentTraitUpdates>]
|
|
372
|
+
attr_accessor :components
|
|
373
|
+
|
|
374
|
+
# Required. Unique identifier for the device.
|
|
375
|
+
# Corresponds to the JSON property `deviceId`
|
|
376
|
+
# @return [String]
|
|
377
|
+
attr_accessor :device_id
|
|
378
|
+
|
|
379
|
+
def initialize(**args)
|
|
380
|
+
update!(**args)
|
|
381
|
+
end
|
|
382
|
+
|
|
383
|
+
# Update properties of this object
|
|
384
|
+
def update!(**args)
|
|
385
|
+
@components = args[:components] if args.key?(:components)
|
|
386
|
+
@device_id = args[:device_id] if args.key?(:device_id)
|
|
387
|
+
end
|
|
388
|
+
end
|
|
389
|
+
|
|
258
390
|
# Request type for the [`Query`](#google.home.graph.v1.HomeGraphApiService.Query)
|
|
259
391
|
# call.
|
|
260
392
|
class QueryRequest
|
|
@@ -380,6 +512,16 @@ module Google
|
|
|
380
512
|
class ReportStateAndNotificationDevice
|
|
381
513
|
include Google::Apis::Core::Hashable
|
|
382
514
|
|
|
515
|
+
# Optional. UDDM/WHDM trait events
|
|
516
|
+
# Corresponds to the JSON property `homeEvents`
|
|
517
|
+
# @return [Array<Google::Apis::HomegraphV1::HomeEvents>]
|
|
518
|
+
attr_accessor :home_events
|
|
519
|
+
|
|
520
|
+
# Optional. UDDM/WHDM trait updates.
|
|
521
|
+
# Corresponds to the JSON property `homeTraits`
|
|
522
|
+
# @return [Array<Google::Apis::HomegraphV1::HomeTraitUpdates>]
|
|
523
|
+
attr_accessor :home_traits
|
|
524
|
+
|
|
383
525
|
# Notifications metadata for devices. See the **Device NOTIFICATIONS** section
|
|
384
526
|
# of the individual trait [reference guides](https://developers.home.google.com/
|
|
385
527
|
# cloud-to-cloud/traits).
|
|
@@ -400,6 +542,8 @@ module Google
|
|
|
400
542
|
|
|
401
543
|
# Update properties of this object
|
|
402
544
|
def update!(**args)
|
|
545
|
+
@home_events = args[:home_events] if args.key?(:home_events)
|
|
546
|
+
@home_traits = args[:home_traits] if args.key?(:home_traits)
|
|
403
547
|
@notifications = args[:notifications] if args.key?(:notifications)
|
|
404
548
|
@states = args[:states] if args.key?(:states)
|
|
405
549
|
end
|
|
@@ -622,6 +766,25 @@ module Google
|
|
|
622
766
|
@devices = args[:devices] if args.key?(:devices)
|
|
623
767
|
end
|
|
624
768
|
end
|
|
769
|
+
|
|
770
|
+
# Contains the trait payload for a single trait.
|
|
771
|
+
class TraitData
|
|
772
|
+
include Google::Apis::Core::Hashable
|
|
773
|
+
|
|
774
|
+
# Optional. The Home API trait payload.
|
|
775
|
+
# Corresponds to the JSON property `trait`
|
|
776
|
+
# @return [Hash<String,Object>]
|
|
777
|
+
attr_accessor :trait
|
|
778
|
+
|
|
779
|
+
def initialize(**args)
|
|
780
|
+
update!(**args)
|
|
781
|
+
end
|
|
782
|
+
|
|
783
|
+
# Update properties of this object
|
|
784
|
+
def update!(**args)
|
|
785
|
+
@trait = args[:trait] if args.key?(:trait)
|
|
786
|
+
end
|
|
787
|
+
end
|
|
625
788
|
end
|
|
626
789
|
end
|
|
627
790
|
end
|
|
@@ -16,13 +16,13 @@ module Google
|
|
|
16
16
|
module Apis
|
|
17
17
|
module HomegraphV1
|
|
18
18
|
# Version of the google-apis-homegraph_v1 gem
|
|
19
|
-
GEM_VERSION = "0.
|
|
19
|
+
GEM_VERSION = "0.27.0"
|
|
20
20
|
|
|
21
21
|
# Version of the code generator used to generate this client
|
|
22
22
|
GENERATOR_VERSION = "0.18.0"
|
|
23
23
|
|
|
24
24
|
# Revision of the discovery document this client was generated from
|
|
25
|
-
REVISION = "
|
|
25
|
+
REVISION = "20260414"
|
|
26
26
|
end
|
|
27
27
|
end
|
|
28
28
|
end
|
|
@@ -34,6 +34,12 @@ module Google
|
|
|
34
34
|
include Google::Apis::Core::JsonObjectSupport
|
|
35
35
|
end
|
|
36
36
|
|
|
37
|
+
class ComponentTraitUpdates
|
|
38
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
39
|
+
|
|
40
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
41
|
+
end
|
|
42
|
+
|
|
37
43
|
class Device
|
|
38
44
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
39
45
|
|
|
@@ -58,6 +64,30 @@ module Google
|
|
|
58
64
|
include Google::Apis::Core::JsonObjectSupport
|
|
59
65
|
end
|
|
60
66
|
|
|
67
|
+
class EventData
|
|
68
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
69
|
+
|
|
70
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
71
|
+
end
|
|
72
|
+
|
|
73
|
+
class Events
|
|
74
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
75
|
+
|
|
76
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
77
|
+
end
|
|
78
|
+
|
|
79
|
+
class HomeEvents
|
|
80
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
81
|
+
|
|
82
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
83
|
+
end
|
|
84
|
+
|
|
85
|
+
class HomeTraitUpdates
|
|
86
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
87
|
+
|
|
88
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
89
|
+
end
|
|
90
|
+
|
|
61
91
|
class QueryRequest
|
|
62
92
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
63
93
|
|
|
@@ -142,6 +172,12 @@ module Google
|
|
|
142
172
|
include Google::Apis::Core::JsonObjectSupport
|
|
143
173
|
end
|
|
144
174
|
|
|
175
|
+
class TraitData
|
|
176
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
177
|
+
|
|
178
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
179
|
+
end
|
|
180
|
+
|
|
145
181
|
class AgentDeviceId
|
|
146
182
|
# @private
|
|
147
183
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
@@ -157,6 +193,15 @@ module Google
|
|
|
157
193
|
end
|
|
158
194
|
end
|
|
159
195
|
|
|
196
|
+
class ComponentTraitUpdates
|
|
197
|
+
# @private
|
|
198
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
199
|
+
property :component_id, as: 'componentId'
|
|
200
|
+
collection :trait_data, as: 'traitData', class: Google::Apis::HomegraphV1::TraitData, decorator: Google::Apis::HomegraphV1::TraitData::Representation
|
|
201
|
+
|
|
202
|
+
end
|
|
203
|
+
end
|
|
204
|
+
|
|
160
205
|
class Device
|
|
161
206
|
# @private
|
|
162
207
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
@@ -203,6 +248,42 @@ module Google
|
|
|
203
248
|
end
|
|
204
249
|
end
|
|
205
250
|
|
|
251
|
+
class EventData
|
|
252
|
+
# @private
|
|
253
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
254
|
+
hash :event, as: 'event'
|
|
255
|
+
property :event_id, as: 'eventId'
|
|
256
|
+
property :event_time, as: 'eventTime'
|
|
257
|
+
end
|
|
258
|
+
end
|
|
259
|
+
|
|
260
|
+
class Events
|
|
261
|
+
# @private
|
|
262
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
263
|
+
property :component_id, as: 'componentId'
|
|
264
|
+
collection :events, as: 'events', class: Google::Apis::HomegraphV1::EventData, decorator: Google::Apis::HomegraphV1::EventData::Representation
|
|
265
|
+
|
|
266
|
+
end
|
|
267
|
+
end
|
|
268
|
+
|
|
269
|
+
class HomeEvents
|
|
270
|
+
# @private
|
|
271
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
272
|
+
property :device_id, as: 'deviceId'
|
|
273
|
+
collection :events, as: 'events', class: Google::Apis::HomegraphV1::Events, decorator: Google::Apis::HomegraphV1::Events::Representation
|
|
274
|
+
|
|
275
|
+
end
|
|
276
|
+
end
|
|
277
|
+
|
|
278
|
+
class HomeTraitUpdates
|
|
279
|
+
# @private
|
|
280
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
281
|
+
collection :components, as: 'components', class: Google::Apis::HomegraphV1::ComponentTraitUpdates, decorator: Google::Apis::HomegraphV1::ComponentTraitUpdates::Representation
|
|
282
|
+
|
|
283
|
+
property :device_id, as: 'deviceId'
|
|
284
|
+
end
|
|
285
|
+
end
|
|
286
|
+
|
|
206
287
|
class QueryRequest
|
|
207
288
|
# @private
|
|
208
289
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
@@ -248,6 +329,10 @@ module Google
|
|
|
248
329
|
class ReportStateAndNotificationDevice
|
|
249
330
|
# @private
|
|
250
331
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
332
|
+
collection :home_events, as: 'homeEvents', class: Google::Apis::HomegraphV1::HomeEvents, decorator: Google::Apis::HomegraphV1::HomeEvents::Representation
|
|
333
|
+
|
|
334
|
+
collection :home_traits, as: 'homeTraits', class: Google::Apis::HomegraphV1::HomeTraitUpdates, decorator: Google::Apis::HomegraphV1::HomeTraitUpdates::Representation
|
|
335
|
+
|
|
251
336
|
hash :notifications, as: 'notifications'
|
|
252
337
|
hash :states, as: 'states'
|
|
253
338
|
end
|
|
@@ -319,6 +404,13 @@ module Google
|
|
|
319
404
|
|
|
320
405
|
end
|
|
321
406
|
end
|
|
407
|
+
|
|
408
|
+
class TraitData
|
|
409
|
+
# @private
|
|
410
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
411
|
+
hash :trait, as: 'trait'
|
|
412
|
+
end
|
|
413
|
+
end
|
|
322
414
|
end
|
|
323
415
|
end
|
|
324
416
|
end
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: google-apis-homegraph_v1
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.27.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Google LLC
|
|
@@ -57,7 +57,7 @@ licenses:
|
|
|
57
57
|
metadata:
|
|
58
58
|
bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
|
|
59
59
|
changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-homegraph_v1/CHANGELOG.md
|
|
60
|
-
documentation_uri: https://googleapis.dev/ruby/google-apis-homegraph_v1/v0.
|
|
60
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-homegraph_v1/v0.27.0
|
|
61
61
|
source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-homegraph_v1
|
|
62
62
|
rdoc_options: []
|
|
63
63
|
require_paths:
|