Skip to content

Commit ad97f76

Browse files
feat(homegraph): update the api
#### homegraph:v1 The following keys were deleted: - resources.devices.methods.requestLink (Total Keys: 8) - schemas.RequestLinkRequest (Total Keys: 10)
1 parent 7e7bef9 commit ad97f76

File tree

2 files changed

+4
-89
lines changed

2 files changed

+4
-89
lines changed

docs/dyn/homegraph_v1.devices.html

Lines changed: 1 addition & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -83,9 +83,6 @@ <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>
8986
<p class="toc_element">
9087
<code><a href="#requestSync">requestSync(body=None, x__xgafv=None)</a></code></p>
9188
<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>
@@ -153,7 +150,7 @@ <h3>Method Details</h3>
153150
{ # Request type for the [`ReportStateAndNotification`](#google.home.graph.v1.HomeGraphApiService.ReportStateAndNotification) call. It may include states, notifications, or both. States and notifications are defined per `device_id` (for example, &quot;123&quot; and &quot;456&quot; in the following example). # Example ```json { &quot;requestId&quot;: &quot;ff36a3cc-ec34-11e6-b1a0-64510650abcf&quot;, &quot;agentUserId&quot;: &quot;1234&quot;, &quot;payload&quot;: { &quot;devices&quot;: { &quot;states&quot;: { &quot;123&quot;: { &quot;on&quot;: true }, &quot;456&quot;: { &quot;on&quot;: true, &quot;brightness&quot;: 10 } }, } } } ```
154151
&quot;agentUserId&quot;: &quot;A String&quot;, # Required. Third-party user ID.
155152
&quot;eventId&quot;: &quot;A String&quot;, # Unique identifier per event (for example, a doorbell press).
156-
&quot;followUpToken&quot;: &quot;A String&quot;, # Token to maintain state in the follow up notification response. Deprecated. See the [notifications guide](https://developers.google.com/assistant/smarthome/develop/notifications) for details on implementing follow up notifications.
153+
&quot;followUpToken&quot;: &quot;A String&quot;, # Deprecated.
157154
&quot;payload&quot;: { # Payload containing the state and notification information for devices. # Required. State of devices to update and notification metadata for devices.
158155
&quot;devices&quot;: { # The states and notifications specific to a device. # The devices for updating state and sending notifications.
159156
&quot;notifications&quot;: { # Notifications metadata for devices. See the **Device NOTIFICATIONS** section of the individual trait [reference guides](https://developers.google.com/assistant/smarthome/traits).
@@ -180,36 +177,6 @@ <h3>Method Details</h3>
180177
}</pre>
181178
</div>
182179

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-
213180
<div class="method">
214181
<code class="details" id="requestSync">requestSync(body=None, x__xgafv=None)</code>
215182
<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: 3 additions & 55 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"oauth2": {
44
"scopes": {
55
"https://www.googleapis.com/auth/homegraph": {
6-
"description": "New Service: https://www.googleapis.com/auth/homegraph"
6+
"description": "Private Service: https://www.googleapis.com/auth/homegraph"
77
}
88
}
99
}
@@ -177,24 +177,6 @@
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-
},
198180
"requestSync": {
199181
"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.",
200182
"flatPath": "v1/devices:requestSync",
@@ -234,7 +216,7 @@
234216
}
235217
}
236218
},
237-
"revision": "20210226",
219+
"revision": "20210318",
238220
"rootUrl": "https://homegraph.googleapis.com/",
239221
"schemas": {
240222
"AgentDeviceId": {
@@ -520,7 +502,7 @@
520502
"type": "string"
521503
},
522504
"followUpToken": {
523-
"description": "Token to maintain state in the follow up notification response. Deprecated. See the [notifications guide](https://developers.google.com/assistant/smarthome/develop/notifications) for details on implementing follow up notifications.",
505+
"description": "Deprecated.",
524506
"type": "string"
525507
},
526508
"payload": {
@@ -545,40 +527,6 @@
545527
},
546528
"type": "object"
547529
},
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-
},
582530
"RequestSyncDevicesRequest": {
583531
"description": "Request type for the [`RequestSyncDevices`](#google.home.graph.v1.HomeGraphApiService.RequestSyncDevices) call.",
584532
"id": "RequestSyncDevicesRequest",

0 commit comments

Comments
 (0)