Skip to content

Commit a867202

Browse files
chore(homegraph): update the api
#### homegraph:v1 The following keys were added: - resources.devices.methods.requestLink (Total Keys: 9) - schemas.RequestLinkRequest (Total Keys: 16) The following keys were changed: - revision (Total Keys: 1)
1 parent bbbcfde commit a867202

File tree

2 files changed

+86
-1
lines changed

2 files changed

+86
-1
lines changed

docs/dyn/homegraph_v1.devices.html

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,9 @@ <h2>Instance Methods</h2>
8383
<p class="toc_element">
8484
<code><a href="#reportStateAndNotification">reportStateAndNotification(body=None, x__xgafv=None)</a></code></p>
8585
<p class="firstline">Reports device state and optionally sends device notifications. Called by your smart home Action when the state of a third-party device changes or you need to send a notification about the device. See [Implement Report State](https://developers.google.com/assistant/smarthome/develop/report-state) for more information. This method updates the device state according to its declared [traits](https://developers.google.com/assistant/smarthome/concepts/devices-traits). Publishing a new state value outside of these traits will result in an `INVALID_ARGUMENT` error response. The third-party user's identity is passed in via the `agent_user_id` (see ReportStateAndNotificationRequest). This request must be authorized using service account credentials from your Actions console project.</p>
86+
<p class="toc_element">
87+
<code><a href="#requestLink">requestLink(body=None, x__xgafv=None)</a></code></p>
88+
<p class="firstline">Sends an account linking suggestion to users associated with any potential Cast devices detected by third-party devices. This request must be authorized using service account credentials from your Actions console project.</p>
8689
<p class="toc_element">
8790
<code><a href="#requestSync">requestSync(body=None, x__xgafv=None)</a></code></p>
8891
<p class="firstline">Requests Google to send an `action.devices.SYNC` [intent](https://developers.google.com/assistant/smarthome/reference/intent/sync) to your smart home Action to update device metadata for the given user. The third-party user's identity is passed via the `agent_user_id` (see RequestSyncDevicesRequest). This request must be authorized using service account credentials from your Actions console project.</p>
@@ -177,6 +180,36 @@ <h3>Method Details</h3>
177180
}</pre>
178181
</div>
179182

183+
<div class="method">
184+
<code class="details" id="requestLink">requestLink(body=None, x__xgafv=None)</code>
185+
<pre>Sends an account linking suggestion to users associated with any potential Cast devices detected by third-party devices. This request must be authorized using service account credentials from your Actions console project.
186+
187+
Args:
188+
body: object, The request body.
189+
The object takes the form of:
190+
191+
{ # Request type for the [`RequestLink`](#google.home.graph.v1.HomeGraphApiService.RequestLink) call.
192+
&quot;payload&quot;: { # Payload containing potential devices detected and when they were detected. # Required. ID(s) and detection time of potential Cast devices.
193+
&quot;detectionTime&quot;: &quot;A String&quot;, # Required. Time at which devices represented in `potential_cast_device_ids` were detected.
194+
&quot;potentialCastDeviceIds&quot;: [ # Required. List of device IDs detected that may potentially be for Cast devices.
195+
&quot;A String&quot;,
196+
],
197+
},
198+
&quot;requestId&quot;: &quot;A String&quot;, # Required. Request ID used for debugging.
199+
}
200+
201+
x__xgafv: string, V1 error format.
202+
Allowed values
203+
1 - v1 error format
204+
2 - v2 error format
205+
206+
Returns:
207+
An object of the form:
208+
209+
{ # A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); } The JSON representation for `Empty` is empty JSON object `{}`.
210+
}</pre>
211+
</div>
212+
180213
<div class="method">
181214
<code class="details" id="requestSync">requestSync(body=None, x__xgafv=None)</code>
182215
<pre>Requests Google to send an `action.devices.SYNC` [intent](https://developers.google.com/assistant/smarthome/reference/intent/sync) to your smart home Action to update device metadata for the given user. The third-party user&#x27;s identity is passed via the `agent_user_id` (see RequestSyncDevicesRequest). This request must be authorized using service account credentials from your Actions console project.

googleapiclient/discovery_cache/documents/homegraph.v1.json

Lines changed: 53 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,6 +177,24 @@
177177
"https://www.googleapis.com/auth/homegraph"
178178
]
179179
},
180+
"requestLink": {
181+
"description": "Sends an account linking suggestion to users associated with any potential Cast devices detected by third-party devices. This request must be authorized using service account credentials from your Actions console project.",
182+
"flatPath": "v1/devices:requestLink",
183+
"httpMethod": "POST",
184+
"id": "homegraph.devices.requestLink",
185+
"parameterOrder": [],
186+
"parameters": {},
187+
"path": "v1/devices:requestLink",
188+
"request": {
189+
"$ref": "RequestLinkRequest"
190+
},
191+
"response": {
192+
"$ref": "Empty"
193+
},
194+
"scopes": [
195+
"https://www.googleapis.com/auth/homegraph"
196+
]
197+
},
180198
"requestSync": {
181199
"description": "Requests Google to send an `action.devices.SYNC` [intent](https://developers.google.com/assistant/smarthome/reference/intent/sync) to your smart home Action to update device metadata for the given user. The third-party user's identity is passed via the `agent_user_id` (see RequestSyncDevicesRequest). This request must be authorized using service account credentials from your Actions console project.",
182200
"flatPath": "v1/devices:requestSync",
@@ -216,7 +234,7 @@
216234
}
217235
}
218236
},
219-
"revision": "20210122",
237+
"revision": "20210226",
220238
"rootUrl": "https://homegraph.googleapis.com/",
221239
"schemas": {
222240
"AgentDeviceId": {
@@ -527,6 +545,40 @@
527545
},
528546
"type": "object"
529547
},
548+
"RequestLinkRequest": {
549+
"description": "Request type for the [`RequestLink`](#google.home.graph.v1.HomeGraphApiService.RequestLink) call.",
550+
"id": "RequestLinkRequest",
551+
"properties": {
552+
"payload": {
553+
"$ref": "RequestLinkRequestPayload",
554+
"description": "Required. ID(s) and detection time of potential Cast devices."
555+
},
556+
"requestId": {
557+
"description": "Required. Request ID used for debugging.",
558+
"type": "string"
559+
}
560+
},
561+
"type": "object"
562+
},
563+
"RequestLinkRequestPayload": {
564+
"description": "Payload containing potential devices detected and when they were detected.",
565+
"id": "RequestLinkRequestPayload",
566+
"properties": {
567+
"detectionTime": {
568+
"description": "Required. Time at which devices represented in `potential_cast_device_ids` were detected.",
569+
"format": "google-datetime",
570+
"type": "string"
571+
},
572+
"potentialCastDeviceIds": {
573+
"description": "Required. List of device IDs detected that may potentially be for Cast devices.",
574+
"items": {
575+
"type": "string"
576+
},
577+
"type": "array"
578+
}
579+
},
580+
"type": "object"
581+
},
530582
"RequestSyncDevicesRequest": {
531583
"description": "Request type for the [`RequestSyncDevices`](#google.home.graph.v1.HomeGraphApiService.RequestSyncDevices) call.",
532584
"id": "RequestSyncDevicesRequest",

0 commit comments

Comments
 (0)