blob: b0470271640cb3357d7aa14ee088f7db641fbe23 [file] [edit]
<html><body>
<style>
body, h1, h2, h3, div, span, p, pre, a {
margin: 0;
padding: 0;
border: 0;
font-weight: inherit;
font-style: inherit;
font-size: 100%;
font-family: inherit;
vertical-align: baseline;
}
body {
font-size: 13px;
padding: 1em;
}
h1 {
font-size: 26px;
margin-bottom: 1em;
}
h2 {
font-size: 24px;
margin-bottom: 1em;
}
h3 {
font-size: 20px;
margin-bottom: 1em;
margin-top: 1em;
}
pre, code {
line-height: 1.5;
font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace;
}
pre {
margin-top: 0.5em;
}
h1, h2, h3, p {
font-family: Arial, sans serif;
}
h1, h2, h3 {
border-bottom: solid #CCC 1px;
}
.toc_element {
margin-top: 0.5em;
}
.firstline {
margin-left: 2 em;
}
.method {
margin-top: 1em;
border: solid 1px #CCC;
padding: 1em;
background: #EEE;
}
.details {
font-weight: bold;
font-size: 14px;
}
</style>
<h1><a href="devicerun_v1alpha.html">Device Run API</a> . <a href="devicerun_v1alpha.projects.html">projects</a> . <a href="devicerun_v1alpha.projects.locations.html">locations</a> . <a href="devicerun_v1alpha.projects.locations.devices.html">devices</a></h1>
<h2>Instance Methods</h2>
<p class="toc_element">
<code><a href="#close">close()</a></code></p>
<p class="firstline">Close httplib2 connections.</p>
<p class="toc_element">
<code><a href="#get">get(name, x__xgafv=None)</a></code></p>
<p class="firstline">Returns information about a specific device.</p>
<p class="toc_element">
<code><a href="#list">list(parent, filter=None, pageSize=None, pageToken=None, x__xgafv=None)</a></code></p>
<p class="firstline">Lists all devices.</p>
<p class="toc_element">
<code><a href="#list_next">list_next(previous_request, previous_response)</a></code></p>
<p class="firstline">Retrieves the next page of results.</p>
<h3>Method Details</h3>
<div class="method">
<code class="details" id="close">close()</code>
<pre>Close httplib2 connections.</pre>
</div>
<div class="method">
<code class="details" id="get">get(name, x__xgafv=None)</code>
<pre>Returns information about a specific device.
Args:
name: string, Required. The name of the device. Format: `projects/{project}/locations/global/devices/{device}`. (required)
x__xgafv: string, V1 error format.
Allowed values
1 - v1 error format
2 - v2 error format
Returns:
An object of the form:
{ # A single routable device configuration in the catalog.
&quot;accessDeniedReasons&quot;: [ # Output only. Reasons for access denial. This model is accessible/usable if this list is empty, otherwise the model is viewable only.
&quot;A String&quot;,
],
&quot;androidDetails&quot;: { # Android-specific device attributes. # Output only. Contains Android-specific attributes (set when platform == ANDROID).
&quot;buildType&quot;: &quot;A String&quot;, # Output only. Mirrors the AOSP `ro.build.type` property, e.g. &quot;user&quot;, &quot;userdebug&quot;, &quot;eng&quot;. Empty if unknown.
&quot;supportedAbis&quot;: [ # Output only. Lists ABIs supported by the device (android.os.Build.SUPPORTED_ABIS), most preferred first, e.g. &quot;arm64-v8a&quot;.
&quot;A String&quot;,
],
},
&quot;availability&quot;: { # Fleet availability for a device configuration. # Output only. Reports the current fleet availability for this device configuration.
&quot;available&quot;: &quot;A String&quot;, # Output only. Specifies the current availability bucket (idle, immediately allocatable devices) for this device configuration. This is a best-effort snapshot, refreshed periodically. It fluctuates depending on traffic as other requests allocate devices.
&quot;capacity&quot;: &quot;A String&quot;, # Output only. Specifies the current capacity bucket for this device configuration. Represents the total number of online devices (idle or in use).
},
&quot;displayName&quot;: &quot;A String&quot;, # Output only. Provides a human-readable display name, e.g. &quot;Pixel 5&quot;.
&quot;formFactor&quot;: &quot;A String&quot;, # Output only. Specifies the form factor of the device.
&quot;hardwareType&quot;: &quot;A String&quot;, # Output only. Indicates whether the device is physical or virtual.
&quot;iosDetails&quot;: { # iOS-specific device attributes. Reserved for future iOS-only fields. # Output only. Contains iOS-specific attributes (set when platform == IOS).
},
&quot;labInfo&quot;: { # The lab hosting a device. # Output only. The lab hosting this device.
&quot;displayName&quot;: &quot;A String&quot;, # Output only. Display name of the lab where the device is hosted. If empty, the device is hosted in a Google owned lab.
&quot;regionCode&quot;: &quot;A String&quot;, # Output only. The Unicode country/region code (CLDR) of the lab where the device is hosted, e.g. &quot;US&quot; for United States, &quot;KR&quot; for South Korea. Empty when the hosting region is not published.
},
&quot;labels&quot;: { # Output only. Additional information. Informational only. May change over the lifecycle of a device.
&quot;a_key&quot;: &quot;A String&quot;,
},
&quot;lifecycle&quot;: { # Catalog resource lifecycle: maturity state plus key lifecycle dates. # Output only. The device lifecycle (maturity stage and removal date).
&quot;removalDate&quot;: { # Represents a whole or partial calendar date, such as a birthday. The time of day and time zone are either specified elsewhere or are insignificant. The date is relative to the Gregorian Calendar. This can represent one of the following: * A full date, with non-zero year, month, and day values. * A month and day, with a zero year (for example, an anniversary). * A year on its own, with a zero month and a zero day. * A year and month, with a zero day (for example, a credit card expiration date). Related types: * google.type.TimeOfDay * google.type.DateTime * google.protobuf.Timestamp # Output only. Specifies the date the resource is scheduled to be removed from the catalog. Only set when `state == DEPRECATED`.
&quot;day&quot;: 42, # Day of a month. Must be from 1 to 31 and valid for the year and month, or 0 to specify a year by itself or a year and month where the day isn&#x27;t significant.
&quot;month&quot;: 42, # Month of a year. Must be from 1 to 12, or 0 to specify a year without a month and day.
&quot;year&quot;: 42, # Year of the date. Must be from 1 to 9999, or 0 to specify a date without a year.
},
&quot;state&quot;: &quot;A String&quot;, # Output only. Specifies the current maturity state of the resource.
},
&quot;manufacturer&quot;: &quot;A String&quot;, # Output only. Specifies the hardware manufacturer of the device.
&quot;modelCode&quot;: &quot;A String&quot;, # Output only. Provides a human-readable model identifier for this device, independent of OS version. May be empty. Platform-dependent: * Android physical: hardware codename (android.os.Build.DEVICE), e.g. &quot;shiba&quot;. * Android virtual: AVD model identifier, e.g. &quot;MediumPhone.arm&quot;. * iOS: model identifier, e.g. &quot;iphone14pro&quot;.
&quot;name&quot;: &quot;A String&quot;, # Identifier. Identifies the device resource. Format: `projects/{project}/locations/{location}/devices/{device}`. The {device} segment is an opaque, stable string. Clients must not parse it to derive or assume device-specific details.
&quot;osVersion&quot;: &quot;A String&quot;, # Output only. Specifies the OS version, e.g. &quot;30&quot; (Android API level) or &quot;17.4&quot; (iOS).
&quot;platform&quot;: &quot;A String&quot;, # Output only. Specifies the platform of the device.
&quot;primaryScreen&quot;: { # Screen measurements of a device. # Output only. Measurements of the primary device screen. Informational only. Unset for devices without a screen (e.g. some wearables).
&quot;densityDpi&quot;: 42, # Output only. Pixel density in dots per inch (dpi).
&quot;heightPx&quot;: 42, # Output only. Height in pixels.
&quot;widthPx&quot;: 42, # Output only. Width in pixels.
},
&quot;supportedProducts&quot;: [ # Output only. Products/Services supported by this device.
{ # Declares that a device supports a given Device Cloud product, with optional per-product metadata. Discriminated by which product-specific message is set; adding a new product = new oneof arm + new per-product message.
&quot;automation&quot;: { # Per-product metadata for the Automation (DeviceRun) product. # Output only. Represents Automation, which is DeviceRun-backed automated test execution.
},
&quot;deviceStreaming&quot;: { # Per-product metadata for the DeviceStreaming product. # Output only. Represents DeviceStreaming, which is interactive remote device streaming.
&quot;minimumAndroidStudioVersion&quot;: &quot;A String&quot;, # Output only. Specifies the minimum Android Studio version that supports this device. Optional; only set when the device is known to work only at or above a certain Android Studio version. Expected format &quot;major.minor.micro.patch&quot;, e.g. &quot;5921.22.2211.8881706&quot;.
},
},
],
}</pre>
</div>
<div class="method">
<code class="details" id="list">list(parent, filter=None, pageSize=None, pageToken=None, x__xgafv=None)</code>
<pre>Lists all devices.
Args:
parent: string, Required. The parent of the collection of devices. Format: `projects/{project}/locations/global`. (required)
filter: string, Optional. An AIP-160 (https://google.aip.dev/160) filter expression restricting which devices are returned. An empty filter returns all devices. Filtering is supported over the `Device` fields, including nested fields via dot-path. Enum and string values must be double-quoted. Examples: * `platform = &quot;ANDROID&quot;` * `platform = &quot;ANDROID&quot; AND os_version = &quot;34&quot;` * `hardware_type = &quot;PHYSICAL&quot; AND form_factor = &quot;PHONE&quot;` * `android_details.build_type = &quot;userdebug&quot;` * `availability.capacity = &quot;HIGH&quot;`
pageSize: integer, Optional. The maximum number of devices to return. The server may return fewer items than this value.
pageToken: string, Optional. A page token, received from a previous `ListDevices` call. Provide this to receive the subsequent page. When paginating, all other parameters provided to `ListDevices` must match the call that provided the page token.
x__xgafv: string, V1 error format.
Allowed values
1 - v1 error format
2 - v2 error format
Returns:
An object of the form:
{ # Response including listed devices.
&quot;devices&quot;: [ # The list of devices.
{ # A single routable device configuration in the catalog.
&quot;accessDeniedReasons&quot;: [ # Output only. Reasons for access denial. This model is accessible/usable if this list is empty, otherwise the model is viewable only.
&quot;A String&quot;,
],
&quot;androidDetails&quot;: { # Android-specific device attributes. # Output only. Contains Android-specific attributes (set when platform == ANDROID).
&quot;buildType&quot;: &quot;A String&quot;, # Output only. Mirrors the AOSP `ro.build.type` property, e.g. &quot;user&quot;, &quot;userdebug&quot;, &quot;eng&quot;. Empty if unknown.
&quot;supportedAbis&quot;: [ # Output only. Lists ABIs supported by the device (android.os.Build.SUPPORTED_ABIS), most preferred first, e.g. &quot;arm64-v8a&quot;.
&quot;A String&quot;,
],
},
&quot;availability&quot;: { # Fleet availability for a device configuration. # Output only. Reports the current fleet availability for this device configuration.
&quot;available&quot;: &quot;A String&quot;, # Output only. Specifies the current availability bucket (idle, immediately allocatable devices) for this device configuration. This is a best-effort snapshot, refreshed periodically. It fluctuates depending on traffic as other requests allocate devices.
&quot;capacity&quot;: &quot;A String&quot;, # Output only. Specifies the current capacity bucket for this device configuration. Represents the total number of online devices (idle or in use).
},
&quot;displayName&quot;: &quot;A String&quot;, # Output only. Provides a human-readable display name, e.g. &quot;Pixel 5&quot;.
&quot;formFactor&quot;: &quot;A String&quot;, # Output only. Specifies the form factor of the device.
&quot;hardwareType&quot;: &quot;A String&quot;, # Output only. Indicates whether the device is physical or virtual.
&quot;iosDetails&quot;: { # iOS-specific device attributes. Reserved for future iOS-only fields. # Output only. Contains iOS-specific attributes (set when platform == IOS).
},
&quot;labInfo&quot;: { # The lab hosting a device. # Output only. The lab hosting this device.
&quot;displayName&quot;: &quot;A String&quot;, # Output only. Display name of the lab where the device is hosted. If empty, the device is hosted in a Google owned lab.
&quot;regionCode&quot;: &quot;A String&quot;, # Output only. The Unicode country/region code (CLDR) of the lab where the device is hosted, e.g. &quot;US&quot; for United States, &quot;KR&quot; for South Korea. Empty when the hosting region is not published.
},
&quot;labels&quot;: { # Output only. Additional information. Informational only. May change over the lifecycle of a device.
&quot;a_key&quot;: &quot;A String&quot;,
},
&quot;lifecycle&quot;: { # Catalog resource lifecycle: maturity state plus key lifecycle dates. # Output only. The device lifecycle (maturity stage and removal date).
&quot;removalDate&quot;: { # Represents a whole or partial calendar date, such as a birthday. The time of day and time zone are either specified elsewhere or are insignificant. The date is relative to the Gregorian Calendar. This can represent one of the following: * A full date, with non-zero year, month, and day values. * A month and day, with a zero year (for example, an anniversary). * A year on its own, with a zero month and a zero day. * A year and month, with a zero day (for example, a credit card expiration date). Related types: * google.type.TimeOfDay * google.type.DateTime * google.protobuf.Timestamp # Output only. Specifies the date the resource is scheduled to be removed from the catalog. Only set when `state == DEPRECATED`.
&quot;day&quot;: 42, # Day of a month. Must be from 1 to 31 and valid for the year and month, or 0 to specify a year by itself or a year and month where the day isn&#x27;t significant.
&quot;month&quot;: 42, # Month of a year. Must be from 1 to 12, or 0 to specify a year without a month and day.
&quot;year&quot;: 42, # Year of the date. Must be from 1 to 9999, or 0 to specify a date without a year.
},
&quot;state&quot;: &quot;A String&quot;, # Output only. Specifies the current maturity state of the resource.
},
&quot;manufacturer&quot;: &quot;A String&quot;, # Output only. Specifies the hardware manufacturer of the device.
&quot;modelCode&quot;: &quot;A String&quot;, # Output only. Provides a human-readable model identifier for this device, independent of OS version. May be empty. Platform-dependent: * Android physical: hardware codename (android.os.Build.DEVICE), e.g. &quot;shiba&quot;. * Android virtual: AVD model identifier, e.g. &quot;MediumPhone.arm&quot;. * iOS: model identifier, e.g. &quot;iphone14pro&quot;.
&quot;name&quot;: &quot;A String&quot;, # Identifier. Identifies the device resource. Format: `projects/{project}/locations/{location}/devices/{device}`. The {device} segment is an opaque, stable string. Clients must not parse it to derive or assume device-specific details.
&quot;osVersion&quot;: &quot;A String&quot;, # Output only. Specifies the OS version, e.g. &quot;30&quot; (Android API level) or &quot;17.4&quot; (iOS).
&quot;platform&quot;: &quot;A String&quot;, # Output only. Specifies the platform of the device.
&quot;primaryScreen&quot;: { # Screen measurements of a device. # Output only. Measurements of the primary device screen. Informational only. Unset for devices without a screen (e.g. some wearables).
&quot;densityDpi&quot;: 42, # Output only. Pixel density in dots per inch (dpi).
&quot;heightPx&quot;: 42, # Output only. Height in pixels.
&quot;widthPx&quot;: 42, # Output only. Width in pixels.
},
&quot;supportedProducts&quot;: [ # Output only. Products/Services supported by this device.
{ # Declares that a device supports a given Device Cloud product, with optional per-product metadata. Discriminated by which product-specific message is set; adding a new product = new oneof arm + new per-product message.
&quot;automation&quot;: { # Per-product metadata for the Automation (DeviceRun) product. # Output only. Represents Automation, which is DeviceRun-backed automated test execution.
},
&quot;deviceStreaming&quot;: { # Per-product metadata for the DeviceStreaming product. # Output only. Represents DeviceStreaming, which is interactive remote device streaming.
&quot;minimumAndroidStudioVersion&quot;: &quot;A String&quot;, # Output only. Specifies the minimum Android Studio version that supports this device. Optional; only set when the device is known to work only at or above a certain Android Studio version. Expected format &quot;major.minor.micro.patch&quot;, e.g. &quot;5921.22.2211.8881706&quot;.
},
},
],
},
],
&quot;nextPageToken&quot;: &quot;A String&quot;, # Token to receive the next page of devices. This will be absent if the end of the response list has been reached.
}</pre>
</div>
<div class="method">
<code class="details" id="list_next">list_next(previous_request, previous_response)</code>
<pre>Retrieves the next page of results.
Args:
previous_request: The request for the previous page. (required)
previous_response: The response from the request for the previous page. (required)
Returns:
A request object that you can call &#x27;execute()&#x27; on to request the next
page. Returns None if there are no more items in the collection.
</pre>
</div>
</body></html>