google-apis-homegraph_v1 0.27.0 → 0.28.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: 10733b0a67af9b232c9bb806d09f217463864446fc74457f0a7789f07414a301
4
- data.tar.gz: 2efa270f900f222514b29af749c25410962cf7756de6006a4864585206ac555b
3
+ metadata.gz: f74f3b8554e74f75e28cd59b9c5ecd98a8f3dc49fb3abe9aa7208e6064b3bea2
4
+ data.tar.gz: 73f518a280b74bf840e211551a9cd47d1bd82155cd46078b4ca7d7513b0285be
5
5
  SHA512:
6
- metadata.gz: ba7224d6e253c69f26b07d7738b2bd3cadb90dfbdb7189e407880c57a9e27e0de49064f4aa3690943b3cd03a676565aa030605a575387a6961e4a048ed96193a
7
- data.tar.gz: 55bec2a857fa47b821b8c2d979c6555a62dade2136f4ca751330b60f0e74f5a04ea6cbaea360f171d223b32a22b85b5c3cbd85c14201175dc5f06254951d12b8
6
+ metadata.gz: ab1df82df1ee5c8ad70a74c5c4128c59ce4b6afb8ee51572d31225ed81c76b3906166de37f5fa18efa0ec77511ec27cc39942cb2514f2746bd909db623a9db18
7
+ data.tar.gz: 560c72a9a3229e9820cb9739c03d84e840a2df192d99111ffaaa240d0e2ee6aeb99b394f5b9cd28735ac76eef0351bae7d3214eb2566b37bca65f7145caa6964
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Release history for google-apis-homegraph_v1
2
2
 
3
+ ### v0.28.0 (2026-05-17)
4
+
5
+ * Regenerated from discovery document revision 20260508
6
+
3
7
  ### v0.27.0 (2026-04-19)
4
8
 
5
9
  * Regenerated from discovery document revision 20260414
@@ -230,6 +230,26 @@ module Google
230
230
  end
231
231
  end
232
232
 
233
+ # Metadata for traits of a single device.
234
+ class DeviceMetadata
235
+ include Google::Apis::Core::Hashable
236
+
237
+ # Map from the Trait ID (e.g., "action.devices.traits.OnOff") to its last
238
+ # Spanner commit timestamp.
239
+ # Corresponds to the JSON property `traitCommitTimestamps`
240
+ # @return [Hash<String,String>]
241
+ attr_accessor :trait_commit_timestamps
242
+
243
+ def initialize(**args)
244
+ update!(**args)
245
+ end
246
+
247
+ # Update properties of this object
248
+ def update!(**args)
249
+ @trait_commit_timestamps = args[:trait_commit_timestamps] if args.key?(:trait_commit_timestamps)
250
+ end
251
+ end
252
+
233
253
  # Identifiers used to describe the device.
234
254
  class DeviceNames
235
255
  include Google::Apis::Core::Hashable
@@ -397,6 +417,13 @@ module Google
397
417
  # @return [String]
398
418
  attr_accessor :agent_user_id
399
419
 
420
+ # Optional. If true, the response will include device metadata in the
421
+ # device_metadata field.
422
+ # Corresponds to the JSON property `includeDeviceMetadata`
423
+ # @return [Boolean]
424
+ attr_accessor :include_device_metadata
425
+ alias_method :include_device_metadata?, :include_device_metadata
426
+
400
427
  # Required. Inputs containing third-party device IDs for which to get the device
401
428
  # states.
402
429
  # Corresponds to the JSON property `inputs`
@@ -415,6 +442,7 @@ module Google
415
442
  # Update properties of this object
416
443
  def update!(**args)
417
444
  @agent_user_id = args[:agent_user_id] if args.key?(:agent_user_id)
445
+ @include_device_metadata = args[:include_device_metadata] if args.key?(:include_device_metadata)
418
446
  @inputs = args[:inputs] if args.key?(:inputs)
419
447
  @request_id = args[:request_id] if args.key?(:request_id)
420
448
  end
@@ -493,6 +521,13 @@ module Google
493
521
  class QueryResponsePayload
494
522
  include Google::Apis::Core::Hashable
495
523
 
524
+ # Map from the Trait ID (e.g., "action.devices.traits.OnOff") to its last
525
+ # Spanner commit timestamp. If a trait has no recorded timestamp, it will be
526
+ # omitted from this map.
527
+ # Corresponds to the JSON property `deviceMetadata`
528
+ # @return [Hash<String,Google::Apis::HomegraphV1::DeviceMetadata>]
529
+ attr_accessor :device_metadata
530
+
496
531
  # States of the devices. Map of third-party device ID to struct of device states.
497
532
  # Corresponds to the JSON property `devices`
498
533
  # @return [Hash<String,Hash<String,Object>>]
@@ -504,6 +539,7 @@ module Google
504
539
 
505
540
  # Update properties of this object
506
541
  def update!(**args)
542
+ @device_metadata = args[:device_metadata] if args.key?(:device_metadata)
507
543
  @devices = args[:devices] if args.key?(:devices)
508
544
  end
509
545
  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.27.0"
19
+ GEM_VERSION = "0.28.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 = "20260414"
25
+ REVISION = "20260508"
26
26
  end
27
27
  end
28
28
  end
@@ -52,6 +52,12 @@ module Google
52
52
  include Google::Apis::Core::JsonObjectSupport
53
53
  end
54
54
 
55
+ class DeviceMetadata
56
+ class Representation < Google::Apis::Core::JsonRepresentation; end
57
+
58
+ include Google::Apis::Core::JsonObjectSupport
59
+ end
60
+
55
61
  class DeviceNames
56
62
  class Representation < Google::Apis::Core::JsonRepresentation; end
57
63
 
@@ -233,6 +239,13 @@ module Google
233
239
  end
234
240
  end
235
241
 
242
+ class DeviceMetadata
243
+ # @private
244
+ class Representation < Google::Apis::Core::JsonRepresentation
245
+ hash :trait_commit_timestamps, as: 'traitCommitTimestamps'
246
+ end
247
+ end
248
+
236
249
  class DeviceNames
237
250
  # @private
238
251
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -288,6 +301,7 @@ module Google
288
301
  # @private
289
302
  class Representation < Google::Apis::Core::JsonRepresentation
290
303
  property :agent_user_id, as: 'agentUserId'
304
+ property :include_device_metadata, as: 'includeDeviceMetadata'
291
305
  collection :inputs, as: 'inputs', class: Google::Apis::HomegraphV1::QueryRequestInput, decorator: Google::Apis::HomegraphV1::QueryRequestInput::Representation
292
306
 
293
307
  property :request_id, as: 'requestId'
@@ -322,6 +336,8 @@ module Google
322
336
  class QueryResponsePayload
323
337
  # @private
324
338
  class Representation < Google::Apis::Core::JsonRepresentation
339
+ hash :device_metadata, as: 'deviceMetadata', class: Google::Apis::HomegraphV1::DeviceMetadata, decorator: Google::Apis::HomegraphV1::DeviceMetadata::Representation
340
+
325
341
  hash :devices, as: 'devices'
326
342
  end
327
343
  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.27.0
4
+ version: 0.28.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.27.0
60
+ documentation_uri: https://googleapis.dev/ruby/google-apis-homegraph_v1/v0.28.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: