Debian Codegraph @

docs/dyn/testing_v1.projects.deviceSessions.html

raw
1 <html><body>
2 <style>
3
4 body, h1, h2, h3, div, span, p, pre, a {
5 margin: 0;
6 padding: 0;
7 border: 0;
8 font-weight: inherit;
9 font-style: inherit;
10 font-size: 100%;
11 font-family: inherit;
12 vertical-align: baseline;
13 }
14
15 body {
16 font-size: 13px;
17 padding: 1em;
18 }
19
20 h1 {
21 font-size: 26px;
22 margin-bottom: 1em;
23 }
24
25 h2 {
26 font-size: 24px;
27 margin-bottom: 1em;
28 }
29
30 h3 {
31 font-size: 20px;
32 margin-bottom: 1em;
33 margin-top: 1em;
34 }
35
36 pre, code {
37 line-height: 1.5;
38 font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace;
39 }
40
41 pre {
42 margin-top: 0.5em;
43 }
44
45 h1, h2, h3, p {
46 font-family: Arial, sans serif;
47 }
48
49 h1, h2, h3 {
50 border-bottom: solid #CCC 1px;
51 }
52
53 .toc_element {
54 margin-top: 0.5em;
55 }
56
57 .firstline {
58 margin-left: 2 em;
59 }
60
61 .method {
62 margin-top: 1em;
63 border: solid 1px #CCC;
64 padding: 1em;
65 background: #EEE;
66 }
67
68 .details {
69 font-weight: bold;
70 font-size: 14px;
71 }
72
73 </style>
74
75 <h1><a href="testing_v1.html">Cloud Testing API</a> . <a href="testing_v1.projects.html">projects</a> . <a href="testing_v1.projects.deviceSessions.html">deviceSessions</a></h1>
76 <h2>Instance Methods</h2>
77 <p class="toc_element">
78 <code><a href="#cancel">cancel(name, body=None, x__xgafv=None)</a></code></p>
79 <p class="firstline">POST /v1/projects/{project_id}/deviceSessions/{device_session_id}:cancel Changes the DeviceSession to state FINISHED and terminates all connections. Canceled sessions are not deleted and can be retrieved or listed by the user until they expire based on the 28 day deletion policy.</p>
80 <p class="toc_element">
81 <code><a href="#close">close()</a></code></p>
82 <p class="firstline">Close httplib2 connections.</p>
83 <p class="toc_element">
84 <code><a href="#create">create(parent, body=None, x__xgafv=None)</a></code></p>
85 <p class="firstline">POST /v1/projects/{project_id}/deviceSessions</p>
86 <p class="toc_element">
87 <code><a href="#get">get(name, x__xgafv=None)</a></code></p>
88 <p class="firstline">GET /v1/projects/{project_id}/deviceSessions/{device_session_id} Return a DeviceSession, which documents the allocation status and whether the device is allocated. Clients making requests from this API must poll GetDeviceSession.</p>
89 <p class="toc_element">
90 <code><a href="#list">list(parent, filter=None, pageSize=None, pageToken=None, x__xgafv=None)</a></code></p>
91 <p class="firstline">GET /v1/projects/{project_id}/deviceSessions Lists device Sessions owned by the project user.</p>
92 <p class="toc_element">
93 <code><a href="#list_next">list_next()</a></code></p>
94 <p class="firstline">Retrieves the next page of results.</p>
95 <p class="toc_element">
96 <code><a href="#patch">patch(name, body=None, updateMask=None, x__xgafv=None)</a></code></p>
97 <p class="firstline">PATCH /v1/projects/{projectId}/deviceSessions/deviceSessionId}:updateDeviceSession Updates the current device session to the fields described by the update_mask.</p>
98 <h3>Method Details</h3>
99 <div class="method">
100 <code class="details" id="cancel">cancel(name, body=None, x__xgafv=None)</code>
101 <pre>POST /v1/projects/{project_id}/deviceSessions/{device_session_id}:cancel Changes the DeviceSession to state FINISHED and terminates all connections. Canceled sessions are not deleted and can be retrieved or listed by the user until they expire based on the 28 day deletion policy.
102
103 Args:
104 name: string, Required. Name of the DeviceSession, e.g. &quot;projects/{project_id}/deviceSessions/{session_id}&quot; (required)
105 body: object, The request body.
106 The object takes the form of:
107
108 { # The request object for cancelling a Device Session.
109 }
110
111 x__xgafv: string, V1 error format.
112 Allowed values
113 1 - v1 error format
114 2 - v2 error format
115
116 Returns:
117 An object of the form:
118
119 { # 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); }
120 }</pre>
121 </div>
122
123 <div class="method">
124 <code class="details" id="close">close()</code>
125 <pre>Close httplib2 connections.</pre>
126 </div>
127
128 <div class="method">
129 <code class="details" id="create">create(parent, body=None, x__xgafv=None)</code>
130 <pre>POST /v1/projects/{project_id}/deviceSessions
131
132 Args:
133 parent: string, Required. The Compute Engine project under which this device will be allocated. &quot;projects/{project_id}&quot; (required)
134 body: object, The request body.
135 The object takes the form of:
136
137 { # Protobuf message describing the device message, used from several RPCs.
138 &quot;activeStartTime&quot;: &quot;A String&quot;, # Output only. The timestamp that the session first became ACTIVE.
139 &quot;androidDevice&quot;: { # A single Android device. # Required. The requested device
140 &quot;androidModelId&quot;: &quot;A String&quot;, # Required. The id of the Android device to be used. Use the TestEnvironmentDiscoveryService to get supported options.
141 &quot;androidVersionId&quot;: &quot;A String&quot;, # Required. The id of the Android OS version to be used. Use the TestEnvironmentDiscoveryService to get supported options.
142 &quot;locale&quot;: &quot;A String&quot;, # Required. The locale the test device used for testing. Use the TestEnvironmentDiscoveryService to get supported options.
143 &quot;orientation&quot;: &quot;A String&quot;, # Required. How the device is oriented during the test. Use the TestEnvironmentDiscoveryService to get supported options.
144 },
145 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The time that the Session was created.
146 &quot;displayName&quot;: &quot;A String&quot;, # Output only. The title of the DeviceSession to be presented in the UI.
147 &quot;expireTime&quot;: &quot;A String&quot;, # Optional. If the device is still in use at this time, any connections will be ended and the SessionState will transition from ACTIVE to FINISHED.
148 &quot;inactivityTimeout&quot;: &quot;A String&quot;, # Output only. The interval of time that this device must be interacted with before it transitions from ACTIVE to TIMEOUT_INACTIVITY.
149 &quot;name&quot;: &quot;A String&quot;, # Optional. Name of the DeviceSession, e.g. &quot;projects/{project_id}/deviceSessions/{session_id}&quot;
150 &quot;state&quot;: &quot;A String&quot;, # Output only. Current state of the DeviceSession.
151 &quot;stateHistories&quot;: [ # Output only. The historical state transitions of the session_state message including the current session state.
152 { # A message encapsulating a series of Session states and the time that the DeviceSession first entered those states.
153 &quot;eventTime&quot;: &quot;A String&quot;, # Output only. The time that the session_state first encountered that state.
154 &quot;sessionState&quot;: &quot;A String&quot;, # Output only. The session_state tracked by this event
155 &quot;stateMessage&quot;: &quot;A String&quot;, # Output only. A human-readable message to explain the state.
156 },
157 ],
158 &quot;ttl&quot;: &quot;A String&quot;, # Optional. The amount of time that a device will be initially allocated for. This can eventually be extended with the UpdateDeviceSession RPC. Default: 15 minutes.
159 }
160
161 x__xgafv: string, V1 error format.
162 Allowed values
163 1 - v1 error format
164 2 - v2 error format
165
166 Returns:
167 An object of the form:
168
169 { # Protobuf message describing the device message, used from several RPCs.
170 &quot;activeStartTime&quot;: &quot;A String&quot;, # Output only. The timestamp that the session first became ACTIVE.
171 &quot;androidDevice&quot;: { # A single Android device. # Required. The requested device
172 &quot;androidModelId&quot;: &quot;A String&quot;, # Required. The id of the Android device to be used. Use the TestEnvironmentDiscoveryService to get supported options.
173 &quot;androidVersionId&quot;: &quot;A String&quot;, # Required. The id of the Android OS version to be used. Use the TestEnvironmentDiscoveryService to get supported options.
174 &quot;locale&quot;: &quot;A String&quot;, # Required. The locale the test device used for testing. Use the TestEnvironmentDiscoveryService to get supported options.
175 &quot;orientation&quot;: &quot;A String&quot;, # Required. How the device is oriented during the test. Use the TestEnvironmentDiscoveryService to get supported options.
176 },
177 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The time that the Session was created.
178 &quot;displayName&quot;: &quot;A String&quot;, # Output only. The title of the DeviceSession to be presented in the UI.
179 &quot;expireTime&quot;: &quot;A String&quot;, # Optional. If the device is still in use at this time, any connections will be ended and the SessionState will transition from ACTIVE to FINISHED.
180 &quot;inactivityTimeout&quot;: &quot;A String&quot;, # Output only. The interval of time that this device must be interacted with before it transitions from ACTIVE to TIMEOUT_INACTIVITY.
181 &quot;name&quot;: &quot;A String&quot;, # Optional. Name of the DeviceSession, e.g. &quot;projects/{project_id}/deviceSessions/{session_id}&quot;
182 &quot;state&quot;: &quot;A String&quot;, # Output only. Current state of the DeviceSession.
183 &quot;stateHistories&quot;: [ # Output only. The historical state transitions of the session_state message including the current session state.
184 { # A message encapsulating a series of Session states and the time that the DeviceSession first entered those states.
185 &quot;eventTime&quot;: &quot;A String&quot;, # Output only. The time that the session_state first encountered that state.
186 &quot;sessionState&quot;: &quot;A String&quot;, # Output only. The session_state tracked by this event
187 &quot;stateMessage&quot;: &quot;A String&quot;, # Output only. A human-readable message to explain the state.
188 },
189 ],
190 &quot;ttl&quot;: &quot;A String&quot;, # Optional. The amount of time that a device will be initially allocated for. This can eventually be extended with the UpdateDeviceSession RPC. Default: 15 minutes.
191 }</pre>
192 </div>
193
194 <div class="method">
195 <code class="details" id="get">get(name, x__xgafv=None)</code>
196 <pre>GET /v1/projects/{project_id}/deviceSessions/{device_session_id} Return a DeviceSession, which documents the allocation status and whether the device is allocated. Clients making requests from this API must poll GetDeviceSession.
197
198 Args:
199 name: string, Required. Name of the DeviceSession, e.g. &quot;projects/{project_id}/deviceSessions/{session_id}&quot; (required)
200 x__xgafv: string, V1 error format.
201 Allowed values
202 1 - v1 error format
203 2 - v2 error format
204
205 Returns:
206 An object of the form:
207
208 { # Protobuf message describing the device message, used from several RPCs.
209 &quot;activeStartTime&quot;: &quot;A String&quot;, # Output only. The timestamp that the session first became ACTIVE.
210 &quot;androidDevice&quot;: { # A single Android device. # Required. The requested device
211 &quot;androidModelId&quot;: &quot;A String&quot;, # Required. The id of the Android device to be used. Use the TestEnvironmentDiscoveryService to get supported options.
212 &quot;androidVersionId&quot;: &quot;A String&quot;, # Required. The id of the Android OS version to be used. Use the TestEnvironmentDiscoveryService to get supported options.
213 &quot;locale&quot;: &quot;A String&quot;, # Required. The locale the test device used for testing. Use the TestEnvironmentDiscoveryService to get supported options.
214 &quot;orientation&quot;: &quot;A String&quot;, # Required. How the device is oriented during the test. Use the TestEnvironmentDiscoveryService to get supported options.
215 },
216 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The time that the Session was created.
217 &quot;displayName&quot;: &quot;A String&quot;, # Output only. The title of the DeviceSession to be presented in the UI.
218 &quot;expireTime&quot;: &quot;A String&quot;, # Optional. If the device is still in use at this time, any connections will be ended and the SessionState will transition from ACTIVE to FINISHED.
219 &quot;inactivityTimeout&quot;: &quot;A String&quot;, # Output only. The interval of time that this device must be interacted with before it transitions from ACTIVE to TIMEOUT_INACTIVITY.
220 &quot;name&quot;: &quot;A String&quot;, # Optional. Name of the DeviceSession, e.g. &quot;projects/{project_id}/deviceSessions/{session_id}&quot;
221 &quot;state&quot;: &quot;A String&quot;, # Output only. Current state of the DeviceSession.
222 &quot;stateHistories&quot;: [ # Output only. The historical state transitions of the session_state message including the current session state.
223 { # A message encapsulating a series of Session states and the time that the DeviceSession first entered those states.
224 &quot;eventTime&quot;: &quot;A String&quot;, # Output only. The time that the session_state first encountered that state.
225 &quot;sessionState&quot;: &quot;A String&quot;, # Output only. The session_state tracked by this event
226 &quot;stateMessage&quot;: &quot;A String&quot;, # Output only. A human-readable message to explain the state.
227 },
228 ],
229 &quot;ttl&quot;: &quot;A String&quot;, # Optional. The amount of time that a device will be initially allocated for. This can eventually be extended with the UpdateDeviceSession RPC. Default: 15 minutes.
230 }</pre>
231 </div>
232
233 <div class="method">
234 <code class="details" id="list">list(parent, filter=None, pageSize=None, pageToken=None, x__xgafv=None)</code>
235 <pre>GET /v1/projects/{project_id}/deviceSessions Lists device Sessions owned by the project user.
236
237 Args:
238 parent: string, Required. The name of the parent to request, e.g. &quot;projects/{project_id}&quot; (required)
239 filter: string, Optional. If specified, responses will be filtered by the given filter. Allowed fields are: session_state.
240 pageSize: integer, Optional. The maximum number of DeviceSessions to return.
241 pageToken: string, Optional. A continuation token for paging.
242 x__xgafv: string, V1 error format.
243 Allowed values
244 1 - v1 error format
245 2 - v2 error format
246
247 Returns:
248 An object of the form:
249
250 { # A list of device sessions.
251 &quot;deviceSessions&quot;: [ # The sessions matching the specified filter in the given cloud project.
252 { # Protobuf message describing the device message, used from several RPCs.
253 &quot;activeStartTime&quot;: &quot;A String&quot;, # Output only. The timestamp that the session first became ACTIVE.
254 &quot;androidDevice&quot;: { # A single Android device. # Required. The requested device
255 &quot;androidModelId&quot;: &quot;A String&quot;, # Required. The id of the Android device to be used. Use the TestEnvironmentDiscoveryService to get supported options.
256 &quot;androidVersionId&quot;: &quot;A String&quot;, # Required. The id of the Android OS version to be used. Use the TestEnvironmentDiscoveryService to get supported options.
257 &quot;locale&quot;: &quot;A String&quot;, # Required. The locale the test device used for testing. Use the TestEnvironmentDiscoveryService to get supported options.
258 &quot;orientation&quot;: &quot;A String&quot;, # Required. How the device is oriented during the test. Use the TestEnvironmentDiscoveryService to get supported options.
259 },
260 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The time that the Session was created.
261 &quot;displayName&quot;: &quot;A String&quot;, # Output only. The title of the DeviceSession to be presented in the UI.
262 &quot;expireTime&quot;: &quot;A String&quot;, # Optional. If the device is still in use at this time, any connections will be ended and the SessionState will transition from ACTIVE to FINISHED.
263 &quot;inactivityTimeout&quot;: &quot;A String&quot;, # Output only. The interval of time that this device must be interacted with before it transitions from ACTIVE to TIMEOUT_INACTIVITY.
264 &quot;name&quot;: &quot;A String&quot;, # Optional. Name of the DeviceSession, e.g. &quot;projects/{project_id}/deviceSessions/{session_id}&quot;
265 &quot;state&quot;: &quot;A String&quot;, # Output only. Current state of the DeviceSession.
266 &quot;stateHistories&quot;: [ # Output only. The historical state transitions of the session_state message including the current session state.
267 { # A message encapsulating a series of Session states and the time that the DeviceSession first entered those states.
268 &quot;eventTime&quot;: &quot;A String&quot;, # Output only. The time that the session_state first encountered that state.
269 &quot;sessionState&quot;: &quot;A String&quot;, # Output only. The session_state tracked by this event
270 &quot;stateMessage&quot;: &quot;A String&quot;, # Output only. A human-readable message to explain the state.
271 },
272 ],
273 &quot;ttl&quot;: &quot;A String&quot;, # Optional. The amount of time that a device will be initially allocated for. This can eventually be extended with the UpdateDeviceSession RPC. Default: 15 minutes.
274 },
275 ],
276 &quot;nextPageToken&quot;: &quot;A String&quot;, # A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages.
277 }</pre>
278 </div>
279
280 <div class="method">
281 <code class="details" id="list_next">list_next()</code>
282 <pre>Retrieves the next page of results.
283
284 Args:
285 previous_request: The request for the previous page. (required)
286 previous_response: The response from the request for the previous page. (required)
287
288 Returns:
289 A request object that you can call &#x27;execute()&#x27; on to request the next
290 page. Returns None if there are no more items in the collection.
291 </pre>
292 </div>
293
294 <div class="method">
295 <code class="details" id="patch">patch(name, body=None, updateMask=None, x__xgafv=None)</code>
296 <pre>PATCH /v1/projects/{projectId}/deviceSessions/deviceSessionId}:updateDeviceSession Updates the current device session to the fields described by the update_mask.
297
298 Args:
299 name: string, Optional. Name of the DeviceSession, e.g. &quot;projects/{project_id}/deviceSessions/{session_id}&quot; (required)
300 body: object, The request body.
301 The object takes the form of:
302
303 { # Protobuf message describing the device message, used from several RPCs.
304 &quot;activeStartTime&quot;: &quot;A String&quot;, # Output only. The timestamp that the session first became ACTIVE.
305 &quot;androidDevice&quot;: { # A single Android device. # Required. The requested device
306 &quot;androidModelId&quot;: &quot;A String&quot;, # Required. The id of the Android device to be used. Use the TestEnvironmentDiscoveryService to get supported options.
307 &quot;androidVersionId&quot;: &quot;A String&quot;, # Required. The id of the Android OS version to be used. Use the TestEnvironmentDiscoveryService to get supported options.
308 &quot;locale&quot;: &quot;A String&quot;, # Required. The locale the test device used for testing. Use the TestEnvironmentDiscoveryService to get supported options.
309 &quot;orientation&quot;: &quot;A String&quot;, # Required. How the device is oriented during the test. Use the TestEnvironmentDiscoveryService to get supported options.
310 },
311 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The time that the Session was created.
312 &quot;displayName&quot;: &quot;A String&quot;, # Output only. The title of the DeviceSession to be presented in the UI.
313 &quot;expireTime&quot;: &quot;A String&quot;, # Optional. If the device is still in use at this time, any connections will be ended and the SessionState will transition from ACTIVE to FINISHED.
314 &quot;inactivityTimeout&quot;: &quot;A String&quot;, # Output only. The interval of time that this device must be interacted with before it transitions from ACTIVE to TIMEOUT_INACTIVITY.
315 &quot;name&quot;: &quot;A String&quot;, # Optional. Name of the DeviceSession, e.g. &quot;projects/{project_id}/deviceSessions/{session_id}&quot;
316 &quot;state&quot;: &quot;A String&quot;, # Output only. Current state of the DeviceSession.
317 &quot;stateHistories&quot;: [ # Output only. The historical state transitions of the session_state message including the current session state.
318 { # A message encapsulating a series of Session states and the time that the DeviceSession first entered those states.
319 &quot;eventTime&quot;: &quot;A String&quot;, # Output only. The time that the session_state first encountered that state.
320 &quot;sessionState&quot;: &quot;A String&quot;, # Output only. The session_state tracked by this event
321 &quot;stateMessage&quot;: &quot;A String&quot;, # Output only. A human-readable message to explain the state.
322 },
323 ],
324 &quot;ttl&quot;: &quot;A String&quot;, # Optional. The amount of time that a device will be initially allocated for. This can eventually be extended with the UpdateDeviceSession RPC. Default: 15 minutes.
325 }
326
327 updateMask: string, Required. The list of fields to update.
328 x__xgafv: string, V1 error format.
329 Allowed values
330 1 - v1 error format
331 2 - v2 error format
332
333 Returns:
334 An object of the form:
335
336 { # Protobuf message describing the device message, used from several RPCs.
337 &quot;activeStartTime&quot;: &quot;A String&quot;, # Output only. The timestamp that the session first became ACTIVE.
338 &quot;androidDevice&quot;: { # A single Android device. # Required. The requested device
339 &quot;androidModelId&quot;: &quot;A String&quot;, # Required. The id of the Android device to be used. Use the TestEnvironmentDiscoveryService to get supported options.
340 &quot;androidVersionId&quot;: &quot;A String&quot;, # Required. The id of the Android OS version to be used. Use the TestEnvironmentDiscoveryService to get supported options.
341 &quot;locale&quot;: &quot;A String&quot;, # Required. The locale the test device used for testing. Use the TestEnvironmentDiscoveryService to get supported options.
342 &quot;orientation&quot;: &quot;A String&quot;, # Required. How the device is oriented during the test. Use the TestEnvironmentDiscoveryService to get supported options.
343 },
344 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The time that the Session was created.
345 &quot;displayName&quot;: &quot;A String&quot;, # Output only. The title of the DeviceSession to be presented in the UI.
346 &quot;expireTime&quot;: &quot;A String&quot;, # Optional. If the device is still in use at this time, any connections will be ended and the SessionState will transition from ACTIVE to FINISHED.
347 &quot;inactivityTimeout&quot;: &quot;A String&quot;, # Output only. The interval of time that this device must be interacted with before it transitions from ACTIVE to TIMEOUT_INACTIVITY.
348 &quot;name&quot;: &quot;A String&quot;, # Optional. Name of the DeviceSession, e.g. &quot;projects/{project_id}/deviceSessions/{session_id}&quot;
349 &quot;state&quot;: &quot;A String&quot;, # Output only. Current state of the DeviceSession.
350 &quot;stateHistories&quot;: [ # Output only. The historical state transitions of the session_state message including the current session state.
351 { # A message encapsulating a series of Session states and the time that the DeviceSession first entered those states.
352 &quot;eventTime&quot;: &quot;A String&quot;, # Output only. The time that the session_state first encountered that state.
353 &quot;sessionState&quot;: &quot;A String&quot;, # Output only. The session_state tracked by this event
354 &quot;stateMessage&quot;: &quot;A String&quot;, # Output only. A human-readable message to explain the state.
355 },
356 ],
357 &quot;ttl&quot;: &quot;A String&quot;, # Optional. The amount of time that a device will be initially allocated for. This can eventually be extended with the UpdateDeviceSession RPC. Default: 15 minutes.
358 }</pre>
359 </div>
360
361 </body></html>