google-apis-homegraph_v1 0.2.0 → 0.3.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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f53f255afb4199463547b41fd05fcc01135c3b13b87bb2feed51134a116ddee0
|
4
|
+
data.tar.gz: 7626b55166017514f7bad0e858baa79a96ebcfc8c18bdfc7ade14c25e0ecfd3a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4dd93cad6edaf0017ba0bd1842a1899971c06b873d5ed1aa584cab58622274d0da45bba8cd1294cafe669d95588a2013f5a9730749f2a4713e48b98e0804818e
|
7
|
+
data.tar.gz: 23460d631d13c4862edf697868936c62d71b6eb48c2eaa307fe2db6acdb6e37ed671af533e4e77cc14252c2fae47a15604b2fb3a1b32be851386fec72f0d824a
|
data/CHANGELOG.md
CHANGED
@@ -506,6 +506,58 @@ module Google
|
|
506
506
|
end
|
507
507
|
end
|
508
508
|
|
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
|
+
|
509
561
|
# Request type for the [`RequestSyncDevices`](#google.home.graph.v1.
|
510
562
|
# HomeGraphApiService.RequestSyncDevices) call.
|
511
563
|
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.
|
19
|
+
GEM_VERSION = "0.3.0"
|
20
20
|
|
21
21
|
# Version of the code generator used to generate this client
|
22
22
|
GENERATOR_VERSION = "0.1.2"
|
23
23
|
|
24
24
|
# Revision of the discovery document this client was generated from
|
25
|
-
REVISION = "
|
25
|
+
REVISION = "20210226"
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|
@@ -112,6 +112,18 @@ module Google
|
|
112
112
|
include Google::Apis::Core::JsonObjectSupport
|
113
113
|
end
|
114
114
|
|
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
|
+
|
115
127
|
class RequestSyncDevicesRequest
|
116
128
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
117
129
|
|
@@ -287,6 +299,23 @@ module Google
|
|
287
299
|
end
|
288
300
|
end
|
289
301
|
|
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
|
+
|
290
319
|
class RequestSyncDevicesRequest
|
291
320
|
# @private
|
292
321
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -161,6 +161,38 @@ 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
|
+
|
164
196
|
# Requests Google to send an `action.devices.SYNC` [intent](https://developers.
|
165
197
|
# google.com/assistant/smarthome/reference/intent/sync) to your smart home
|
166
198
|
# Action to update device metadata for the given user. The third-party user's
|
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.
|
4
|
+
version: 0.3.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-
|
11
|
+
date: 2021-03-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.
|
55
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-homegraph_v1/v0.3.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: []
|
@@ -62,14 +62,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
62
62
|
requirements:
|
63
63
|
- - ">="
|
64
64
|
- !ruby/object:Gem::Version
|
65
|
-
version: '2.
|
65
|
+
version: '2.5'
|
66
66
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
67
67
|
requirements:
|
68
68
|
- - ">="
|
69
69
|
- !ruby/object:Gem::Version
|
70
70
|
version: '0'
|
71
71
|
requirements: []
|
72
|
-
rubygems_version: 3.2.
|
72
|
+
rubygems_version: 3.2.13
|
73
73
|
signing_key:
|
74
74
|
specification_version: 4
|
75
75
|
summary: Simple REST client for HomeGraph API V1
|