google-apis-homegraph_v1 0.29.0 → 0.30.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: 0f3b5f7e4a58144e94c4ccd3fa2454ffac519b22b86117158354c0f3f143ef00
4
- data.tar.gz: 9e09b5d19ceaf70e4fc4b260da3283739850fb361ac683474140ae3885d36331
3
+ metadata.gz: 4c0fbc9665b83da4f3877f0f7cd33d4ecf3c5902a97c8a33b638d10533d38e69
4
+ data.tar.gz: 147b33bed132b9b6eb7154aea6339fd77d8b5912c0ade8e600a1310280474563
5
5
  SHA512:
6
- metadata.gz: 2f4c6156603ae0ca94a3ad0edce481b12d9dc5601f05d5cb3c06ec88a2ee1f557861c97191f18998ea07cd17871f28b537ee91b5afccd4e700e0262cb5b07911
7
- data.tar.gz: 8880f5c34ab6cd348839f07ca830f0e4c99f0e2840cce751cbfd27bf147df98d0e65e9651e1ad47defb1bd41109e23b11fe70e77b07072793942fd50405e87b9
6
+ metadata.gz: e94fda14e058c6c56ac92e9fbe35f13da97eda2bc0390ad6b061a018953f4eafbe0827f3afa6b7e18fcdcd6a8aa66329a9d315ad1b4cc968751dab1b0773eeb8
7
+ data.tar.gz: 51c669dd5db8b854e0223c7005ca98c01a45e435c106485862cdc8bd1d52dcaf5a85799be5cd252f20c37f2707a631c2d53bb90fd148a40afa5e326e3f4d8141
data/CHANGELOG.md CHANGED
@@ -1,5 +1,10 @@
1
1
  # Release history for google-apis-homegraph_v1
2
2
 
3
+ ### v0.30.0 (2026-06-14)
4
+
5
+ * Regenerated from discovery document revision 20260604
6
+ * Regenerated using generator version 0.19.0
7
+
3
8
  ### v0.29.0 (2026-05-31)
4
9
 
5
10
  * Regenerated from discovery document revision 20260523
data/OVERVIEW.md CHANGED
@@ -83,7 +83,7 @@ The [product documentation](https://developers.home.google.com/cloud-to-cloud/ge
83
83
 
84
84
  ## Supported Ruby versions
85
85
 
86
- This library is supported on Ruby 3.1+.
86
+ This library is supported on Ruby 3.2+.
87
87
 
88
88
  Google provides official support for Ruby versions that are actively supported by Ruby Core -- that is, Ruby versions that are either in normal maintenance or in security maintenance, and not end of life. Older versions of Ruby _may_ still work, but are unsupported and not recommended. See https://www.ruby-lang.org/en/downloads/branches/ for details about the Ruby support schedule.
89
89
 
@@ -66,6 +66,46 @@ module Google
66
66
  end
67
67
  end
68
68
 
69
+ # Component of a provider device.
70
+ class Component
71
+ include Google::Apis::Core::Hashable
72
+
73
+ # Optional. Child components.
74
+ # Corresponds to the JSON property `childComponents`
75
+ # @return [Array<Google::Apis::HomegraphV1::Component>]
76
+ attr_accessor :child_components
77
+
78
+ # Required. List of Device types associated with this component. Supported
79
+ # device types are defined in cs//depot/google3/home/homeservicelayer/uddm/types/
80
+ # uddm_device_types.proto and the type string is the enum name, for example:
81
+ # ON_OFF_LIGHT => "ON_OFF_LIGHT".
82
+ # Corresponds to the JSON property `deviceTypes`
83
+ # @return [Array<String>]
84
+ attr_accessor :device_types
85
+
86
+ # Required. ID of the component from the device provider.
87
+ # Corresponds to the JSON property `id`
88
+ # @return [String]
89
+ attr_accessor :id
90
+
91
+ # Required. List of trait data associated with the component.
92
+ # Corresponds to the JSON property `traitData`
93
+ # @return [Array<Google::Apis::HomegraphV1::TraitData>]
94
+ attr_accessor :trait_data
95
+
96
+ def initialize(**args)
97
+ update!(**args)
98
+ end
99
+
100
+ # Update properties of this object
101
+ def update!(**args)
102
+ @child_components = args[:child_components] if args.key?(:child_components)
103
+ @device_types = args[:device_types] if args.key?(:device_types)
104
+ @id = args[:id] if args.key?(:id)
105
+ @trait_data = args[:trait_data] if args.key?(:trait_data)
106
+ end
107
+ end
108
+
69
109
  # Contains the set of updates for a component.
70
110
  class ComponentTraitUpdates
71
111
  include Google::Apis::Core::Hashable
@@ -382,6 +422,25 @@ module Google
382
422
  end
383
423
  end
384
424
 
425
+ # Container for UDDM trait data associated with a device.
426
+ class HomeTraitPayload
427
+ include Google::Apis::Core::Hashable
428
+
429
+ # Component of a provider device.
430
+ # Corresponds to the JSON property `rootComponent`
431
+ # @return [Google::Apis::HomegraphV1::Component]
432
+ attr_accessor :root_component
433
+
434
+ def initialize(**args)
435
+ update!(**args)
436
+ end
437
+
438
+ # Update properties of this object
439
+ def update!(**args)
440
+ @root_component = args[:root_component] if args.key?(:root_component)
441
+ end
442
+ end
443
+
385
444
  # Contains the set of updates for a device.
386
445
  class HomeTraitUpdates
387
446
  include Google::Apis::Core::Hashable
@@ -417,6 +476,14 @@ module Google
417
476
  # @return [String]
418
477
  attr_accessor :agent_user_id
419
478
 
479
+ # Optional. Specifies the type of device data to be returned in the response.
480
+ # This allows callers to request traditional Smart Home traits, Unified Device
481
+ # Data Model (UDDM) traits, or both. If unspecified, defaults to
482
+ # SMART_HOME_TRAIT_ONLY.
483
+ # Corresponds to the JSON property `deviceView`
484
+ # @return [String]
485
+ attr_accessor :device_view
486
+
420
487
  # Optional. If true, the response will include device metadata in the
421
488
  # device_metadata field.
422
489
  # Corresponds to the JSON property `includeDeviceMetadata`
@@ -442,6 +509,7 @@ module Google
442
509
  # Update properties of this object
443
510
  def update!(**args)
444
511
  @agent_user_id = args[:agent_user_id] if args.key?(:agent_user_id)
512
+ @device_view = args[:device_view] if args.key?(:device_view)
445
513
  @include_device_metadata = args[:include_device_metadata] if args.key?(:include_device_metadata)
446
514
  @inputs = args[:inputs] if args.key?(:inputs)
447
515
  @request_id = args[:request_id] if args.key?(:request_id)
@@ -533,6 +601,13 @@ module Google
533
601
  # @return [Hash<String,Hash<String,Object>>]
534
602
  attr_accessor :devices
535
603
 
604
+ # Map of device IDs to their Unified Device Data Model (UDDM) trait payloads.
605
+ # This field is populated when `device_view` is set to HOME_TRAIT_ONLY or
606
+ # HOME_TRAIT_AND_SMART_HOME_TRAIT.
607
+ # Corresponds to the JSON property `homeTraitPayload`
608
+ # @return [Hash<String,Google::Apis::HomegraphV1::HomeTraitPayload>]
609
+ attr_accessor :home_trait_payload
610
+
536
611
  def initialize(**args)
537
612
  update!(**args)
538
613
  end
@@ -541,6 +616,7 @@ module Google
541
616
  def update!(**args)
542
617
  @device_metadata = args[:device_metadata] if args.key?(:device_metadata)
543
618
  @devices = args[:devices] if args.key?(:devices)
619
+ @home_trait_payload = args[:home_trait_payload] if args.key?(:home_trait_payload)
544
620
  end
545
621
  end
546
622
 
@@ -587,11 +663,20 @@ module Google
587
663
 
588
664
  # Request type for the [`ReportStateAndNotification`](#google.home.graph.v1.
589
665
  # HomeGraphApiService.ReportStateAndNotification) call. It may include states,
590
- # notifications, or both. States and notifications are defined per `device_id` (
591
- # for example, "123" and "456" in the following example). Example: ```json ` "
592
- # requestId": "ff36a3cc-ec34-11e6-b1a0-64510650abcf", "agentUserId": "1234", "
593
- # payload": ` "devices": ` "states": ` "123": ` "on": true `, "456": ` "on":
594
- # true, "brightness": 10 `, `, ` ` ` ```
666
+ # notifications, home_traits, home_events, or any combination thereof. Smart
667
+ # Home Device Traits (SHDT) `states` and `notifications` are defined per `
668
+ # device_id` (for example, "123" and "456" in the following example). Google
669
+ # Home Traits `home_traits` and `home_events` are lists of updates or events,
670
+ # each associated with a `device_id` (for example, "789" in the following
671
+ # example). Example: ```json ` "requestId": "ff36a3cc-ec34-11e6-b1a0-
672
+ # 64510650abcf", "agentUserId": "1234", "payload": ` "devices": ` "states": ` "
673
+ # 123": ` "on": true `, "456": ` "on": true, "brightness": 10 `, `, "homeTraits":
674
+ # [ ` "deviceId": "789", "components": [ ` "componentId": "main", "traitData": [
675
+ # ` "trait": ` "@type": "type.googleapis.com/home.graph.v1.OnOffTrait", "onOff":
676
+ # true ` ` ] ` ] ` ], "homeEvents": [ ` "deviceId": "789", "events": [ ` "
677
+ # componentId": "main", "events": [ ` "eventId": "event-123", "eventTime": "2026-
678
+ # 01-01T00:00:00Z", "event": ` "@type": "type.googleapis.com/home.graph.v1.
679
+ # DoorbellPressTrait.DoorbellPressedEvent" ` ` ] ` ] ` ] ` ` ` ```
595
680
  class ReportStateAndNotificationRequest
596
681
  include Google::Apis::Core::Hashable
597
682
 
@@ -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.29.0"
19
+ GEM_VERSION = "0.30.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
- GENERATOR_VERSION = "0.18.0"
22
+ GENERATOR_VERSION = "0.19.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20260523"
25
+ REVISION = "20260604"
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 Component
38
+ class Representation < Google::Apis::Core::JsonRepresentation; end
39
+
40
+ include Google::Apis::Core::JsonObjectSupport
41
+ end
42
+
37
43
  class ComponentTraitUpdates
38
44
  class Representation < Google::Apis::Core::JsonRepresentation; end
39
45
 
@@ -88,6 +94,12 @@ module Google
88
94
  include Google::Apis::Core::JsonObjectSupport
89
95
  end
90
96
 
97
+ class HomeTraitPayload
98
+ class Representation < Google::Apis::Core::JsonRepresentation; end
99
+
100
+ include Google::Apis::Core::JsonObjectSupport
101
+ end
102
+
91
103
  class HomeTraitUpdates
92
104
  class Representation < Google::Apis::Core::JsonRepresentation; end
93
105
 
@@ -199,6 +211,18 @@ module Google
199
211
  end
200
212
  end
201
213
 
214
+ class Component
215
+ # @private
216
+ class Representation < Google::Apis::Core::JsonRepresentation
217
+ collection :child_components, as: 'childComponents', class: Google::Apis::HomegraphV1::Component, decorator: Google::Apis::HomegraphV1::Component::Representation
218
+
219
+ collection :device_types, as: 'deviceTypes'
220
+ property :id, as: 'id'
221
+ collection :trait_data, as: 'traitData', class: Google::Apis::HomegraphV1::TraitData, decorator: Google::Apis::HomegraphV1::TraitData::Representation
222
+
223
+ end
224
+ end
225
+
202
226
  class ComponentTraitUpdates
203
227
  # @private
204
228
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -288,6 +312,14 @@ module Google
288
312
  end
289
313
  end
290
314
 
315
+ class HomeTraitPayload
316
+ # @private
317
+ class Representation < Google::Apis::Core::JsonRepresentation
318
+ property :root_component, as: 'rootComponent', class: Google::Apis::HomegraphV1::Component, decorator: Google::Apis::HomegraphV1::Component::Representation
319
+
320
+ end
321
+ end
322
+
291
323
  class HomeTraitUpdates
292
324
  # @private
293
325
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -301,6 +333,7 @@ module Google
301
333
  # @private
302
334
  class Representation < Google::Apis::Core::JsonRepresentation
303
335
  property :agent_user_id, as: 'agentUserId'
336
+ property :device_view, as: 'deviceView'
304
337
  property :include_device_metadata, as: 'includeDeviceMetadata'
305
338
  collection :inputs, as: 'inputs', class: Google::Apis::HomegraphV1::QueryRequestInput, decorator: Google::Apis::HomegraphV1::QueryRequestInput::Representation
306
339
 
@@ -339,6 +372,8 @@ module Google
339
372
  hash :device_metadata, as: 'deviceMetadata', class: Google::Apis::HomegraphV1::DeviceMetadata, decorator: Google::Apis::HomegraphV1::DeviceMetadata::Representation
340
373
 
341
374
  hash :devices, as: 'devices'
375
+ hash :home_trait_payload, as: 'homeTraitPayload', class: Google::Apis::HomegraphV1::HomeTraitPayload, decorator: Google::Apis::HomegraphV1::HomeTraitPayload::Representation
376
+
342
377
  end
343
378
  end
344
379
 
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.29.0
4
+ version: 0.30.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.29.0
60
+ documentation_uri: https://googleapis.dev/ruby/google-apis-homegraph_v1/v0.30.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:
@@ -66,7 +66,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
66
66
  requirements:
67
67
  - - ">="
68
68
  - !ruby/object:Gem::Version
69
- version: '3.1'
69
+ version: '3.2'
70
70
  required_rubygems_version: !ruby/object:Gem::Requirement
71
71
  requirements:
72
72
  - - ">="