google-apis-homegraph_v1 0.1.0 → 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b1ad42d685bc7e2ef3fc07635d65c8e96a477d0282839f9223ad5d95fdcb049e
4
- data.tar.gz: ac42238797bed94ed1c5e9bf7864a6d74a92d6c99685d07d314a219baf4375c7
3
+ metadata.gz: e424ee6ee3db1b3ff7d191846187af0445aa344131a299998b41e7eb965adf8b
4
+ data.tar.gz: 4ed1129fbdb141ea387f47628fbe4ef2f44b6f0ba409c99db07226e81d26e2c0
5
5
  SHA512:
6
- metadata.gz: abcbc04ac027356bbedef6da18d6a1a06d66f1c7acc761cae16613c6aa6b2a4fcd3b4f4dac95599f1a2b4cf09efd9de0d089bd44395c1c11904e84eb496b64fa
7
- data.tar.gz: fc5b80382580ba81c045a6c05d6d3f8d783a57ba400ac80401aa724008132660a52a57aa326376de2c4a697e898f968e44e619506904674c4f0fe435e3737478
6
+ metadata.gz: d985d4c2f812f785fce181fb37814f0ad70e4b21eded048fbc688843f769145c25d98e005fb83044cefa0850981f4c0a22011dbb68b43b41f8c9a60511924e5b
7
+ data.tar.gz: 2759dd666698ac688524b7d1358e1d414c17de65bbfdcfd3797562283ddf2c65e75f332c96e509da9ada88cc6c013dcc9d21905b17a6431b18bd02966cdb5963
data/CHANGELOG.md CHANGED
@@ -1,5 +1,10 @@
1
1
  # Release history for google-apis-homegraph_v1
2
2
 
3
+ ### v0.2.0 (2021-01-28)
4
+
5
+ * Regenerated from discovery document revision 20210122
6
+ * Regenerated using generator version 0.1.2
7
+
3
8
  ### v0.1.0 (2021-01-07)
4
9
 
5
10
  * Regenerated using generator version 0.1.1
@@ -66,7 +66,7 @@ module Google
66
66
  end
67
67
  end
68
68
 
69
- # Third-party device definition.
69
+ # Third-party device definition. Next ID = 14
70
70
  class Device
71
71
  include Google::Apis::Core::Hashable
72
72
 
@@ -78,7 +78,9 @@ module Google
78
78
  # Custom device attributes stored in Home Graph and provided to your smart home
79
79
  # Action in each [QUERY](https://developers.google.com/assistant/smarthome/
80
80
  # reference/intent/query) and [EXECUTE](https://developers.google.com/assistant/
81
- # smarthome/reference/intent/execute) intent.
81
+ # smarthome/reference/intent/execute) intent. Data in this object has a few
82
+ # constraints: No sensitive information, including but not limited to Personally
83
+ # Identifiable Information.
82
84
  # Corresponds to the JSON property `customData`
83
85
  # @return [Hash<String,Object>]
84
86
  attr_accessor :custom_data
@@ -98,6 +100,14 @@ module Google
98
100
  # @return [Google::Apis::HomegraphV1::DeviceNames]
99
101
  attr_accessor :name
100
102
 
103
+ # See description for "traits". For Smart Home Entertainment Devices (SHED)
104
+ # devices, some traits can only be executed on 3P cloud, e.g. "non_local_traits":
105
+ # [ ` "trait": "action.devices.traits.MediaInitiation" `, ` "trait": "action.
106
+ # devices.traits.Channel" ` ] go/shed-per-trait-routing.
107
+ # Corresponds to the JSON property `nonLocalTraits`
108
+ # @return [Array<Google::Apis::HomegraphV1::NonLocalTrait>]
109
+ attr_accessor :non_local_traits
110
+
101
111
  # Indicates whether your smart home Action will report notifications to Google
102
112
  # for this device via ReportStateAndNotification. If your smart home Action
103
113
  # enables users to control device notifications, you should update this field
@@ -156,6 +166,7 @@ module Google
156
166
  @device_info = args[:device_info] if args.key?(:device_info)
157
167
  @id = args[:id] if args.key?(:id)
158
168
  @name = args[:name] if args.key?(:name)
169
+ @non_local_traits = args[:non_local_traits] if args.key?(:non_local_traits)
159
170
  @notification_supported_by_agent = args[:notification_supported_by_agent] if args.key?(:notification_supported_by_agent)
160
171
  @other_device_ids = args[:other_device_ids] if args.key?(:other_device_ids)
161
172
  @room_hint = args[:room_hint] if args.key?(:room_hint)
@@ -252,6 +263,27 @@ module Google
252
263
  end
253
264
  end
254
265
 
266
+ # LINT.IfChange go/shed-per-trait-routing. Making it object to allow for
267
+ # extendible design, where we can add attributes in future.
268
+ class NonLocalTrait
269
+ include Google::Apis::Core::Hashable
270
+
271
+ # Trait name, e.g., "action.devices.traits.MediaInitiation". See [device traits](
272
+ # https://developers.google.com/assistant/smarthome/traits).
273
+ # Corresponds to the JSON property `trait`
274
+ # @return [String]
275
+ attr_accessor :trait
276
+
277
+ def initialize(**args)
278
+ update!(**args)
279
+ end
280
+
281
+ # Update properties of this object
282
+ def update!(**args)
283
+ @trait = args[:trait] if args.key?(:trait)
284
+ end
285
+ end
286
+
255
287
  # Request type for the [`Query`](#google.home.graph.v1.HomeGraphApiService.Query)
256
288
  # call.
257
289
  class QueryRequest
@@ -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.1.0"
19
+ GEM_VERSION = "0.2.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
- GENERATOR_VERSION = "0.1.1"
22
+ GENERATOR_VERSION = "0.1.2"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20200827"
25
+ REVISION = "20210122"
26
26
  end
27
27
  end
28
28
  end
@@ -58,6 +58,12 @@ module Google
58
58
  include Google::Apis::Core::JsonObjectSupport
59
59
  end
60
60
 
61
+ class NonLocalTrait
62
+ class Representation < Google::Apis::Core::JsonRepresentation; end
63
+
64
+ include Google::Apis::Core::JsonObjectSupport
65
+ end
66
+
61
67
  class QueryRequest
62
68
  class Representation < Google::Apis::Core::JsonRepresentation; end
63
69
 
@@ -167,6 +173,8 @@ module Google
167
173
  property :id, as: 'id'
168
174
  property :name, as: 'name', class: Google::Apis::HomegraphV1::DeviceNames, decorator: Google::Apis::HomegraphV1::DeviceNames::Representation
169
175
 
176
+ collection :non_local_traits, as: 'nonLocalTraits', class: Google::Apis::HomegraphV1::NonLocalTrait, decorator: Google::Apis::HomegraphV1::NonLocalTrait::Representation
177
+
170
178
  property :notification_supported_by_agent, as: 'notificationSupportedByAgent'
171
179
  collection :other_device_ids, as: 'otherDeviceIds', class: Google::Apis::HomegraphV1::AgentOtherDeviceId, decorator: Google::Apis::HomegraphV1::AgentOtherDeviceId::Representation
172
180
 
@@ -203,6 +211,13 @@ module Google
203
211
  end
204
212
  end
205
213
 
214
+ class NonLocalTrait
215
+ # @private
216
+ class Representation < Google::Apis::Core::JsonRepresentation
217
+ property :trait, as: 'trait'
218
+ end
219
+ end
220
+
206
221
  class QueryRequest
207
222
  # @private
208
223
  class Representation < Google::Apis::Core::JsonRepresentation
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-homegraph_v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.2.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: 2021-01-08 00:00:00.000000000 Z
11
+ date: 2021-02-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-apis-core
@@ -52,7 +52,7 @@ licenses:
52
52
  metadata:
53
53
  bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
54
54
  changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/master/generated/google-apis-homegraph_v1/CHANGELOG.md
55
- documentation_uri: https://googleapis.dev/ruby/google-apis-homegraph_v1/v0.1.0
55
+ documentation_uri: https://googleapis.dev/ruby/google-apis-homegraph_v1/v0.2.0
56
56
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/master/generated/google-apis-homegraph_v1
57
57
  post_install_message:
58
58
  rdoc_options: []
@@ -69,7 +69,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
69
69
  - !ruby/object:Gem::Version
70
70
  version: '0'
71
71
  requirements: []
72
- rubygems_version: 3.1.4
72
+ rubygems_version: 3.2.6
73
73
  signing_key:
74
74
  specification_version: 4
75
75
  summary: Simple REST client for HomeGraph API V1