google-apis-homegraph_v1 0.3.0 → 0.8.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: f53f255afb4199463547b41fd05fcc01135c3b13b87bb2feed51134a116ddee0
4
- data.tar.gz: 7626b55166017514f7bad0e858baa79a96ebcfc8c18bdfc7ade14c25e0ecfd3a
3
+ metadata.gz: f712c4879adf559d303c302290f90ef1a3037623bab01ecc330062e5b7b0edb4
4
+ data.tar.gz: 768d3be6411d1d0c8ba0c4f95cbf3bd543b9ce3141b349645fa3297f43510e84
5
5
  SHA512:
6
- metadata.gz: 4dd93cad6edaf0017ba0bd1842a1899971c06b873d5ed1aa584cab58622274d0da45bba8cd1294cafe669d95588a2013f5a9730749f2a4713e48b98e0804818e
7
- data.tar.gz: 23460d631d13c4862edf697868936c62d71b6eb48c2eaa307fe2db6acdb6e37ed671af533e4e77cc14252c2fae47a15604b2fb3a1b32be851386fec72f0d824a
6
+ metadata.gz: '0102823b0032603b10528ab35adbc43e6405c992495c98686b496aaa3abba20395eccb13f39b6cee941278ecd04ef0442fefda5a00000c8f73af38d413d32bc7'
7
+ data.tar.gz: fb5212273ad54a5980a994b57f6a6e7b36ec1685550b9e2356a5fbdf368bf94f32d607aec21f2a5e6f2d705343f14efb958a83f7bbc1764f481d366c9a378fd6
data/CHANGELOG.md CHANGED
@@ -1,5 +1,26 @@
1
1
  # Release history for google-apis-homegraph_v1
2
2
 
3
+ ### v0.8.0 (2021-06-24)
4
+
5
+ * Regenerated using generator version 0.3.0
6
+
7
+ ### v0.7.0 (2021-05-19)
8
+
9
+ * Unspecified changes
10
+
11
+ ### v0.6.0 (2021-04-08)
12
+
13
+ * Regenerated from discovery document revision 20210402
14
+
15
+ ### v0.5.0 (2021-03-25)
16
+
17
+ * Regenerated from discovery document revision 20210318
18
+
19
+ ### v0.4.0 (2021-03-10)
20
+
21
+ * Regenerated from discovery document revision 20210303
22
+ * Regenerated using generator version 0.2.0
23
+
3
24
  ### v0.3.0 (2021-03-04)
4
25
 
5
26
  * Regenerated from discovery document revision 20210226
@@ -29,7 +29,7 @@ module Google
29
29
  # This is NOT the gem version.
30
30
  VERSION = 'V1'
31
31
 
32
- # New Service: https://www.googleapis.com/auth/homegraph
32
+ # Private Service: https://www.googleapis.com/auth/homegraph
33
33
  AUTH_HOMEGRAPH = 'https://www.googleapis.com/auth/homegraph'
34
34
  end
35
35
  end
@@ -100,14 +100,6 @@ module Google
100
100
  # @return [Google::Apis::HomegraphV1::DeviceNames]
101
101
  attr_accessor :name
102
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
-
111
103
  # Indicates whether your smart home Action will report notifications to Google
112
104
  # for this device via ReportStateAndNotification. If your smart home Action
113
105
  # enables users to control device notifications, you should update this field
@@ -166,7 +158,6 @@ module Google
166
158
  @device_info = args[:device_info] if args.key?(:device_info)
167
159
  @id = args[:id] if args.key?(:id)
168
160
  @name = args[:name] if args.key?(:name)
169
- @non_local_traits = args[:non_local_traits] if args.key?(:non_local_traits)
170
161
  @notification_supported_by_agent = args[:notification_supported_by_agent] if args.key?(:notification_supported_by_agent)
171
162
  @other_device_ids = args[:other_device_ids] if args.key?(:other_device_ids)
172
163
  @room_hint = args[:room_hint] if args.key?(:room_hint)
@@ -263,27 +254,6 @@ module Google
263
254
  end
264
255
  end
265
256
 
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
-
287
257
  # Request type for the [`Query`](#google.home.graph.v1.HomeGraphApiService.Query)
288
258
  # call.
289
259
  class QueryRequest
@@ -454,10 +424,7 @@ module Google
454
424
  # @return [String]
455
425
  attr_accessor :event_id
456
426
 
457
- # Token to maintain state in the follow up notification response. Deprecated.
458
- # See the [notifications guide](https://developers.google.com/assistant/
459
- # smarthome/develop/notifications) for details on implementing follow up
460
- # notifications.
427
+ # Deprecated.
461
428
  # Corresponds to the JSON property `followUpToken`
462
429
  # @return [String]
463
430
  attr_accessor :follow_up_token
@@ -506,58 +473,6 @@ module Google
506
473
  end
507
474
  end
508
475
 
509
- # Request type for the [`RequestLink`](#google.home.graph.v1.HomeGraphApiService.
510
- # RequestLink) call.
511
- class RequestLinkRequest
512
- include Google::Apis::Core::Hashable
513
-
514
- # Payload containing potential devices detected and when they were detected.
515
- # Corresponds to the JSON property `payload`
516
- # @return [Google::Apis::HomegraphV1::RequestLinkRequestPayload]
517
- attr_accessor :payload
518
-
519
- # Required. Request ID used for debugging.
520
- # Corresponds to the JSON property `requestId`
521
- # @return [String]
522
- attr_accessor :request_id
523
-
524
- def initialize(**args)
525
- update!(**args)
526
- end
527
-
528
- # Update properties of this object
529
- def update!(**args)
530
- @payload = args[:payload] if args.key?(:payload)
531
- @request_id = args[:request_id] if args.key?(:request_id)
532
- end
533
- end
534
-
535
- # Payload containing potential devices detected and when they were detected.
536
- class RequestLinkRequestPayload
537
- include Google::Apis::Core::Hashable
538
-
539
- # Required. Time at which devices represented in `potential_cast_device_ids`
540
- # were detected.
541
- # Corresponds to the JSON property `detectionTime`
542
- # @return [String]
543
- attr_accessor :detection_time
544
-
545
- # Required. List of device IDs detected that may potentially be for Cast devices.
546
- # Corresponds to the JSON property `potentialCastDeviceIds`
547
- # @return [Array<String>]
548
- attr_accessor :potential_cast_device_ids
549
-
550
- def initialize(**args)
551
- update!(**args)
552
- end
553
-
554
- # Update properties of this object
555
- def update!(**args)
556
- @detection_time = args[:detection_time] if args.key?(:detection_time)
557
- @potential_cast_device_ids = args[:potential_cast_device_ids] if args.key?(:potential_cast_device_ids)
558
- end
559
- end
560
-
561
476
  # Request type for the [`RequestSyncDevices`](#google.home.graph.v1.
562
477
  # HomeGraphApiService.RequestSyncDevices) call.
563
478
  class RequestSyncDevicesRequest
@@ -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.3.0"
19
+ GEM_VERSION = "0.8.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
- GENERATOR_VERSION = "0.1.2"
22
+ GENERATOR_VERSION = "0.3.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20210226"
25
+ REVISION = "20210402"
26
26
  end
27
27
  end
28
28
  end
@@ -58,12 +58,6 @@ 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
-
67
61
  class QueryRequest
68
62
  class Representation < Google::Apis::Core::JsonRepresentation; end
69
63
 
@@ -112,18 +106,6 @@ module Google
112
106
  include Google::Apis::Core::JsonObjectSupport
113
107
  end
114
108
 
115
- class RequestLinkRequest
116
- class Representation < Google::Apis::Core::JsonRepresentation; end
117
-
118
- include Google::Apis::Core::JsonObjectSupport
119
- end
120
-
121
- class RequestLinkRequestPayload
122
- class Representation < Google::Apis::Core::JsonRepresentation; end
123
-
124
- include Google::Apis::Core::JsonObjectSupport
125
- end
126
-
127
109
  class RequestSyncDevicesRequest
128
110
  class Representation < Google::Apis::Core::JsonRepresentation; end
129
111
 
@@ -185,8 +167,6 @@ module Google
185
167
  property :id, as: 'id'
186
168
  property :name, as: 'name', class: Google::Apis::HomegraphV1::DeviceNames, decorator: Google::Apis::HomegraphV1::DeviceNames::Representation
187
169
 
188
- collection :non_local_traits, as: 'nonLocalTraits', class: Google::Apis::HomegraphV1::NonLocalTrait, decorator: Google::Apis::HomegraphV1::NonLocalTrait::Representation
189
-
190
170
  property :notification_supported_by_agent, as: 'notificationSupportedByAgent'
191
171
  collection :other_device_ids, as: 'otherDeviceIds', class: Google::Apis::HomegraphV1::AgentOtherDeviceId, decorator: Google::Apis::HomegraphV1::AgentOtherDeviceId::Representation
192
172
 
@@ -223,13 +203,6 @@ module Google
223
203
  end
224
204
  end
225
205
 
226
- class NonLocalTrait
227
- # @private
228
- class Representation < Google::Apis::Core::JsonRepresentation
229
- property :trait, as: 'trait'
230
- end
231
- end
232
-
233
206
  class QueryRequest
234
207
  # @private
235
208
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -299,23 +272,6 @@ module Google
299
272
  end
300
273
  end
301
274
 
302
- class RequestLinkRequest
303
- # @private
304
- class Representation < Google::Apis::Core::JsonRepresentation
305
- property :payload, as: 'payload', class: Google::Apis::HomegraphV1::RequestLinkRequestPayload, decorator: Google::Apis::HomegraphV1::RequestLinkRequestPayload::Representation
306
-
307
- property :request_id, as: 'requestId'
308
- end
309
- end
310
-
311
- class RequestLinkRequestPayload
312
- # @private
313
- class Representation < Google::Apis::Core::JsonRepresentation
314
- property :detection_time, as: 'detectionTime'
315
- collection :potential_cast_device_ids, as: 'potentialCastDeviceIds'
316
- end
317
- end
318
-
319
275
  class RequestSyncDevicesRequest
320
276
  # @private
321
277
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -161,38 +161,6 @@ module Google
161
161
  execute_or_queue_command(command, &block)
162
162
  end
163
163
 
164
- # Sends an account linking suggestion to users associated with any potential
165
- # Cast devices detected by third-party devices. This request must be authorized
166
- # using service account credentials from your Actions console project.
167
- # @param [Google::Apis::HomegraphV1::RequestLinkRequest] request_link_request_object
168
- # @param [String] fields
169
- # Selector specifying which fields to include in a partial response.
170
- # @param [String] quota_user
171
- # Available to use for quota purposes for server-side applications. Can be any
172
- # arbitrary string assigned to a user, but should not exceed 40 characters.
173
- # @param [Google::Apis::RequestOptions] options
174
- # Request-specific options
175
- #
176
- # @yield [result, err] Result & error if block supplied
177
- # @yieldparam result [Google::Apis::HomegraphV1::Empty] parsed result object
178
- # @yieldparam err [StandardError] error object if request failed
179
- #
180
- # @return [Google::Apis::HomegraphV1::Empty]
181
- #
182
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
183
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
184
- # @raise [Google::Apis::AuthorizationError] Authorization is required
185
- def request_device_link(request_link_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
186
- command = make_simple_command(:post, 'v1/devices:requestLink', options)
187
- command.request_representation = Google::Apis::HomegraphV1::RequestLinkRequest::Representation
188
- command.request_object = request_link_request_object
189
- command.response_representation = Google::Apis::HomegraphV1::Empty::Representation
190
- command.response_class = Google::Apis::HomegraphV1::Empty
191
- command.query['fields'] = fields unless fields.nil?
192
- command.query['quotaUser'] = quota_user unless quota_user.nil?
193
- execute_or_queue_command(command, &block)
194
- end
195
-
196
164
  # Requests Google to send an `action.devices.SYNC` [intent](https://developers.
197
165
  # google.com/assistant/smarthome/reference/intent/sync) to your smart home
198
166
  # Action to update device metadata for the given user. The third-party user's
metadata CHANGED
@@ -1,29 +1,35 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-homegraph_v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.8.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-03-08 00:00:00.000000000 Z
11
+ date: 2021-06-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-apis-core
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - "~>"
17
+ - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: '0.1'
19
+ version: '0.3'
20
+ - - "<"
21
+ - !ruby/object:Gem::Version
22
+ version: 2.a
20
23
  type: :runtime
21
24
  prerelease: false
22
25
  version_requirements: !ruby/object:Gem::Requirement
23
26
  requirements:
24
- - - "~>"
27
+ - - ">="
28
+ - !ruby/object:Gem::Version
29
+ version: '0.3'
30
+ - - "<"
25
31
  - !ruby/object:Gem::Version
26
- version: '0.1'
32
+ version: 2.a
27
33
  description: This is the simple REST client for HomeGraph API V1. Simple REST clients
28
34
  are Ruby client libraries that provide access to Google services via their HTTP
29
35
  REST API endpoints. These libraries are generated and updated automatically based
@@ -52,7 +58,7 @@ licenses:
52
58
  metadata:
53
59
  bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
54
60
  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.3.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-homegraph_v1/v0.8.0
56
62
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/master/generated/google-apis-homegraph_v1
57
63
  post_install_message:
58
64
  rdoc_options: []
@@ -69,7 +75,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
69
75
  - !ruby/object:Gem::Version
70
76
  version: '0'
71
77
  requirements: []
72
- rubygems_version: 3.2.13
78
+ rubygems_version: 3.2.17
73
79
  signing_key:
74
80
  specification_version: 4
75
81
  summary: Simple REST client for HomeGraph API V1