| 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="androiddeviceprovisioning_v1.html">Android Device Provisioning Partner API</a> . <a href="androiddeviceprovisioning_v1.partners.html">partners</a> . <a href="androiddeviceprovisioning_v1.partners.devices.html">devices</a></h1> |
| 76 |
<h2>Instance Methods</h2> |
| 77 |
<p class="toc_element"> |
| 78 |
<code><a href="#claim">claim(partnerId, body=None, x__xgafv=None)</a></code></p> |
| 79 |
<p class="firstline">Claims a device for a customer and adds it to zero-touch enrollment. If the device is already claimed by another customer, the call returns an error.</p> |
| 80 |
<p class="toc_element"> |
| 81 |
<code><a href="#claimAsync">claimAsync(partnerId, body=None, x__xgafv=None)</a></code></p> |
| 82 |
<p class="firstline">Claims a batch of devices for a customer asynchronously. Adds the devices to zero-touch enrollment. To learn more, read [Long‑running batch operations](/zero-touch/guides/how-it-works#operations).</p> |
| 83 |
<p class="toc_element"> |
| 84 |
<code><a href="#close">close()</a></code></p> |
| 85 |
<p class="firstline">Close httplib2 connections.</p> |
| 86 |
<p class="toc_element"> |
| 87 |
<code><a href="#findByIdentifier">findByIdentifier(partnerId, body=None, x__xgafv=None)</a></code></p> |
| 88 |
<p class="firstline">Finds devices by hardware identifiers, such as IMEI.</p> |
| 89 |
<p class="toc_element"> |
| 90 |
<code><a href="#findByIdentifier_next">findByIdentifier_next()</a></code></p> |
| 91 |
<p class="firstline">Retrieves the next page of results.</p> |
| 92 |
<p class="toc_element"> |
| 93 |
<code><a href="#findByOwner">findByOwner(partnerId, body=None, x__xgafv=None)</a></code></p> |
| 94 |
<p class="firstline">Finds devices claimed for customers. The results only contain devices registered to the reseller that's identified by the `partnerId` argument. The customer's devices purchased from other resellers don't appear in the results.</p> |
| 95 |
<p class="toc_element"> |
| 96 |
<code><a href="#findByOwner_next">findByOwner_next()</a></code></p> |
| 97 |
<p class="firstline">Retrieves the next page of results.</p> |
| 98 |
<p class="toc_element"> |
| 99 |
<code><a href="#get">get(name, x__xgafv=None)</a></code></p> |
| 100 |
<p class="firstline">Gets a device.</p> |
| 101 |
<p class="toc_element"> |
| 102 |
<code><a href="#getSimLockState">getSimLockState(partnerId, body=None, x__xgafv=None)</a></code></p> |
| 103 |
<p class="firstline">Gets a device's SIM lock state.</p> |
| 104 |
<p class="toc_element"> |
| 105 |
<code><a href="#metadata">metadata(metadataOwnerId, deviceId, body=None, x__xgafv=None)</a></code></p> |
| 106 |
<p class="firstline">Updates reseller metadata associated with the device. Android devices only.</p> |
| 107 |
<p class="toc_element"> |
| 108 |
<code><a href="#unclaim">unclaim(partnerId, body=None, x__xgafv=None)</a></code></p> |
| 109 |
<p class="firstline">Unclaims a device from a customer and removes it from zero-touch enrollment.</p> |
| 110 |
<p class="toc_element"> |
| 111 |
<code><a href="#unclaimAsync">unclaimAsync(partnerId, body=None, x__xgafv=None)</a></code></p> |
| 112 |
<p class="firstline">Unclaims a batch of devices for a customer asynchronously. Removes the devices from zero-touch enrollment. To learn more, read [Long‑running batch operations](/zero-touch/guides/how-it-works#operations).</p> |
| 113 |
<p class="toc_element"> |
| 114 |
<code><a href="#updateMetadataAsync">updateMetadataAsync(partnerId, body=None, x__xgafv=None)</a></code></p> |
| 115 |
<p class="firstline">Updates the reseller metadata attached to a batch of devices. This method updates devices asynchronously and returns an `Operation` that can be used to track progress. Read [Long‑running batch operations](/zero-touch/guides/how-it-works#operations). Android Devices only.</p> |
| 116 |
<h3>Method Details</h3> |
| 117 |
<div class="method"> |
| 118 |
<code class="details" id="claim">claim(partnerId, body=None, x__xgafv=None)</code> |
| 119 |
<pre>Claims a device for a customer and adds it to zero-touch enrollment. If the device is already claimed by another customer, the call returns an error. |
| 120 |
|
| 121 |
Args: |
| 122 |
partnerId: string, Required. The ID of the reseller partner. (required) |
| 123 |
body: object, The request body. |
| 124 |
The object takes the form of: |
| 125 |
|
| 126 |
{ # Request message to claim a device on behalf of a customer. |
| 127 |
"configurationId": "A String", # Optional. The ID of the configuration applied to the device section. |
| 128 |
"customerId": "A String", # The ID of the customer for whom the device is being claimed. |
| 129 |
"deviceIdentifier": { # Encapsulates hardware and product IDs to identify a manufactured device. To understand requirements on identifier sets, read [Identifiers](https://developers.google.com/zero-touch/guides/identifiers). # Required. Required. The device identifier of the device to claim. |
| 130 |
"chromeOsAttestedDeviceId": "A String", # An identifier provided by OEMs, carried through the production and sales process. Only applicable to Chrome OS devices. |
| 131 |
"deviceType": "A String", # The type of the device |
| 132 |
"imei": "A String", # The device’s IMEI number. Validated on input. |
| 133 |
"imei2": "A String", # The device’s second IMEI number. |
| 134 |
"manufacturer": "A String", # The device manufacturer’s name. Matches the device's built-in value returned from `android.os.Build.MANUFACTURER`. Allowed values are listed in [Android manufacturers](/zero-touch/resources/manufacturer-names#manufacturers-names). |
| 135 |
"meid": "A String", # The device’s MEID number. |
| 136 |
"meid2": "A String", # The device’s second MEID number. |
| 137 |
"model": "A String", # The device model's name. Allowed values are listed in [Android models](/zero-touch/resources/manufacturer-names#model-names) and [Chrome OS models](https://support.google.com/chrome/a/answer/10130175#identify_compatible). |
| 138 |
"serialNumber": "A String", # The manufacturer's serial number for the device. This value might not be unique across different device models. |
| 139 |
}, |
| 140 |
"deviceMetadata": { # Metadata entries that can be attached to a `Device`. To learn more, read [Device metadata](https://developers.google.com/zero-touch/guides/metadata). # Optional. The metadata to attach to the device. |
| 141 |
"entries": { # Metadata entries recorded as key-value pairs. |
| 142 |
"a_key": "A String", |
| 143 |
}, |
| 144 |
}, |
| 145 |
"googleWorkspaceCustomerId": "A String", # The Google Workspace customer ID. |
| 146 |
"preProvisioningToken": "A String", # Optional. Must and can only be set for Chrome OS devices. |
| 147 |
"sectionType": "A String", # Required. The section type of the device's provisioning record. |
| 148 |
"simlockProfileId": "A String", # Optional. Must and can only be set when DeviceProvisioningSectionType is SECTION_TYPE_SIM_LOCK. The unique identifier of the SimLock profile. |
| 149 |
} |
| 150 |
|
| 151 |
x__xgafv: string, V1 error format. |
| 152 |
Allowed values |
| 153 |
1 - v1 error format |
| 154 |
2 - v2 error format |
| 155 |
|
| 156 |
Returns: |
| 157 |
An object of the form: |
| 158 |
|
| 159 |
{ # Response message containing device id of the claim. |
| 160 |
"deviceId": "A String", # The device ID of the claimed device. |
| 161 |
"deviceName": "A String", # The resource name of the device in the format `partners/[PARTNER_ID]/devices/[DEVICE_ID]`. |
| 162 |
}</pre> |
| 163 |
</div> |
| 164 |
|
| 165 |
<div class="method"> |
| 166 |
<code class="details" id="claimAsync">claimAsync(partnerId, body=None, x__xgafv=None)</code> |
| 167 |
<pre>Claims a batch of devices for a customer asynchronously. Adds the devices to zero-touch enrollment. To learn more, read [Long‑running batch operations](/zero-touch/guides/how-it-works#operations). |
| 168 |
|
| 169 |
Args: |
| 170 |
partnerId: string, Required. The ID of the reseller partner. (required) |
| 171 |
body: object, The request body. |
| 172 |
The object takes the form of: |
| 173 |
|
| 174 |
{ # Request to claim devices asynchronously in batch. Claiming a device adds the device to zero-touch enrollment and shows the device in the customer's view of the portal. |
| 175 |
"claims": [ # Required. A list of device claims. |
| 176 |
{ # Identifies one claim request. |
| 177 |
"configurationId": "A String", # Optional. The ID of the configuration applied to the device section. |
| 178 |
"customerId": "A String", # The ID of the customer for whom the device is being claimed. |
| 179 |
"deviceIdentifier": { # Encapsulates hardware and product IDs to identify a manufactured device. To understand requirements on identifier sets, read [Identifiers](https://developers.google.com/zero-touch/guides/identifiers). # Required. Required. Device identifier of the device. |
| 180 |
"chromeOsAttestedDeviceId": "A String", # An identifier provided by OEMs, carried through the production and sales process. Only applicable to Chrome OS devices. |
| 181 |
"deviceType": "A String", # The type of the device |
| 182 |
"imei": "A String", # The device’s IMEI number. Validated on input. |
| 183 |
"imei2": "A String", # The device’s second IMEI number. |
| 184 |
"manufacturer": "A String", # The device manufacturer’s name. Matches the device's built-in value returned from `android.os.Build.MANUFACTURER`. Allowed values are listed in [Android manufacturers](/zero-touch/resources/manufacturer-names#manufacturers-names). |
| 185 |
"meid": "A String", # The device’s MEID number. |
| 186 |
"meid2": "A String", # The device’s second MEID number. |
| 187 |
"model": "A String", # The device model's name. Allowed values are listed in [Android models](/zero-touch/resources/manufacturer-names#model-names) and [Chrome OS models](https://support.google.com/chrome/a/answer/10130175#identify_compatible). |
| 188 |
"serialNumber": "A String", # The manufacturer's serial number for the device. This value might not be unique across different device models. |
| 189 |
}, |
| 190 |
"deviceMetadata": { # Metadata entries that can be attached to a `Device`. To learn more, read [Device metadata](https://developers.google.com/zero-touch/guides/metadata). # Required. The metadata to attach to the device at claim. |
| 191 |
"entries": { # Metadata entries recorded as key-value pairs. |
| 192 |
"a_key": "A String", |
| 193 |
}, |
| 194 |
}, |
| 195 |
"googleWorkspaceCustomerId": "A String", # The Google Workspace customer ID. |
| 196 |
"preProvisioningToken": "A String", # Optional. Must and can only be set for Chrome OS devices. |
| 197 |
"sectionType": "A String", # Required. The section type of the device's provisioning record. |
| 198 |
"simlockProfileId": "A String", # Optional. Must and can only be set when DeviceProvisioningSectionType is SECTION_TYPE_SIM_LOCK. The unique identifier of the SimLock profile. |
| 199 |
}, |
| 200 |
], |
| 201 |
} |
| 202 |
|
| 203 |
x__xgafv: string, V1 error format. |
| 204 |
Allowed values |
| 205 |
1 - v1 error format |
| 206 |
2 - v2 error format |
| 207 |
|
| 208 |
Returns: |
| 209 |
An object of the form: |
| 210 |
|
| 211 |
{ # This resource represents a long-running operation that is the result of a network API call. |
| 212 |
"done": True or False, # If the value is `false`, it means the operation is still in progress. If `true`, the operation is completed, and either `error` or `response` is available. |
| 213 |
"error": { # The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors). # This field will always be not set if the operation is created by `claimAsync`, `unclaimAsync`, or `updateMetadataAsync`. In this case, error information for each device is set in `response.perDeviceStatus.result.status`. |
| 214 |
"code": 42, # The status code, which should be an enum value of google.rpc.Code. |
| 215 |
"details": [ # A list of messages that carry the error details. There is a common set of message types for APIs to use. |
| 216 |
{ |
| 217 |
"a_key": "", # Properties of the object. Contains field @type with type URL. |
| 218 |
}, |
| 219 |
], |
| 220 |
"message": "A String", # A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client. |
| 221 |
}, |
| 222 |
"metadata": { # This field will contain a `DevicesLongRunningOperationMetadata` object if the operation is created by `claimAsync`, `unclaimAsync`, or `updateMetadataAsync`. |
| 223 |
"a_key": "", # Properties of the object. Contains field @type with type URL. |
| 224 |
}, |
| 225 |
"name": "A String", # The server-assigned name, which is only unique within the same service that originally returns it. If you use the default HTTP mapping, the `name` should be a resource name ending with `operations/{unique_id}`. |
| 226 |
"response": { # This field will contain a `DevicesLongRunningOperationResponse` object if the operation is created by `claimAsync`, `unclaimAsync`, or `updateMetadataAsync`. |
| 227 |
"a_key": "", # Properties of the object. Contains field @type with type URL. |
| 228 |
}, |
| 229 |
}</pre> |
| 230 |
</div> |
| 231 |
|
| 232 |
<div class="method"> |
| 233 |
<code class="details" id="close">close()</code> |
| 234 |
<pre>Close httplib2 connections.</pre> |
| 235 |
</div> |
| 236 |
|
| 237 |
<div class="method"> |
| 238 |
<code class="details" id="findByIdentifier">findByIdentifier(partnerId, body=None, x__xgafv=None)</code> |
| 239 |
<pre>Finds devices by hardware identifiers, such as IMEI. |
| 240 |
|
| 241 |
Args: |
| 242 |
partnerId: string, Required. The ID of the reseller partner. (required) |
| 243 |
body: object, The request body. |
| 244 |
The object takes the form of: |
| 245 |
|
| 246 |
{ # Request to find devices. |
| 247 |
"deviceIdentifier": { # Encapsulates hardware and product IDs to identify a manufactured device. To understand requirements on identifier sets, read [Identifiers](https://developers.google.com/zero-touch/guides/identifiers). # Required. Required. The device identifier to search for. If serial number is provided then case insensitive serial number matches are allowed. |
| 248 |
"chromeOsAttestedDeviceId": "A String", # An identifier provided by OEMs, carried through the production and sales process. Only applicable to Chrome OS devices. |
| 249 |
"deviceType": "A String", # The type of the device |
| 250 |
"imei": "A String", # The device’s IMEI number. Validated on input. |
| 251 |
"imei2": "A String", # The device’s second IMEI number. |
| 252 |
"manufacturer": "A String", # The device manufacturer’s name. Matches the device's built-in value returned from `android.os.Build.MANUFACTURER`. Allowed values are listed in [Android manufacturers](/zero-touch/resources/manufacturer-names#manufacturers-names). |
| 253 |
"meid": "A String", # The device’s MEID number. |
| 254 |
"meid2": "A String", # The device’s second MEID number. |
| 255 |
"model": "A String", # The device model's name. Allowed values are listed in [Android models](/zero-touch/resources/manufacturer-names#model-names) and [Chrome OS models](https://support.google.com/chrome/a/answer/10130175#identify_compatible). |
| 256 |
"serialNumber": "A String", # The manufacturer's serial number for the device. This value might not be unique across different device models. |
| 257 |
}, |
| 258 |
"limit": "A String", # Required. The maximum number of devices to show in a page of results. Must be between 1 and 100 inclusive. |
| 259 |
"pageToken": "A String", # A token specifying which result page to return. |
| 260 |
} |
| 261 |
|
| 262 |
x__xgafv: string, V1 error format. |
| 263 |
Allowed values |
| 264 |
1 - v1 error format |
| 265 |
2 - v2 error format |
| 266 |
|
| 267 |
Returns: |
| 268 |
An object of the form: |
| 269 |
|
| 270 |
{ # Response containing found devices. |
| 271 |
"devices": [ # Found devices. |
| 272 |
{ # An Android or Chrome OS device registered for zero-touch enrollment. |
| 273 |
"claims": [ # Output only. The provisioning claims for a device. Devices claimed for zero-touch enrollment have a claim with the type `SECTION_TYPE_ZERO_TOUCH`. Call `partners.devices.unclaim` or `partners.devices.unclaimAsync` to remove the device from zero-touch enrollment. |
| 274 |
{ # A record of a device claimed by a reseller for a customer. Devices claimed for zero-touch enrollment have a claim with the type `SECTION_TYPE_ZERO_TOUCH`. To learn more, read [Claim devices for customers](/zero-touch/guides/how-it-works#claim). |
| 275 |
"additionalService": "A String", # The Additional service registered for the device. |
| 276 |
"googleWorkspaceCustomerId": "A String", # The ID of the Google Workspace account that owns the Chrome OS device. |
| 277 |
"ownerCompanyId": "A String", # The ID of the Customer that purchased the device. |
| 278 |
"resellerId": "A String", # The ID of the reseller that claimed the device. |
| 279 |
"sectionType": "A String", # Output only. The type of claim made on the device. |
| 280 |
"vacationModeExpireTime": "A String", # The timestamp when the device will exit ‘vacation mode’. This value is present iff the device is in 'vacation mode'. |
| 281 |
"vacationModeStartTime": "A String", # The timestamp when the device was put into ‘vacation mode’. This value is present iff the device is in 'vacation mode'. |
| 282 |
}, |
| 283 |
], |
| 284 |
"configuration": "A String", # Not available to resellers. |
| 285 |
"deviceId": "A String", # Output only. The ID of the device. Assigned by the server. |
| 286 |
"deviceIdentifier": { # Encapsulates hardware and product IDs to identify a manufactured device. To understand requirements on identifier sets, read [Identifiers](https://developers.google.com/zero-touch/guides/identifiers). # The hardware IDs that identify a manufactured device. To learn more, read [Identifiers](https://developers.google.com/zero-touch/guides/identifiers). |
| 287 |
"chromeOsAttestedDeviceId": "A String", # An identifier provided by OEMs, carried through the production and sales process. Only applicable to Chrome OS devices. |
| 288 |
"deviceType": "A String", # The type of the device |
| 289 |
"imei": "A String", # The device’s IMEI number. Validated on input. |
| 290 |
"imei2": "A String", # The device’s second IMEI number. |
| 291 |
"manufacturer": "A String", # The device manufacturer’s name. Matches the device's built-in value returned from `android.os.Build.MANUFACTURER`. Allowed values are listed in [Android manufacturers](/zero-touch/resources/manufacturer-names#manufacturers-names). |
| 292 |
"meid": "A String", # The device’s MEID number. |
| 293 |
"meid2": "A String", # The device’s second MEID number. |
| 294 |
"model": "A String", # The device model's name. Allowed values are listed in [Android models](/zero-touch/resources/manufacturer-names#model-names) and [Chrome OS models](https://support.google.com/chrome/a/answer/10130175#identify_compatible). |
| 295 |
"serialNumber": "A String", # The manufacturer's serial number for the device. This value might not be unique across different device models. |
| 296 |
}, |
| 297 |
"deviceMetadata": { # Metadata entries that can be attached to a `Device`. To learn more, read [Device metadata](https://developers.google.com/zero-touch/guides/metadata). # The metadata attached to the device. Structured as key-value pairs. To learn more, read [Device metadata](https://developers.google.com/zero-touch/guides/metadata). |
| 298 |
"entries": { # Metadata entries recorded as key-value pairs. |
| 299 |
"a_key": "A String", |
| 300 |
}, |
| 301 |
}, |
| 302 |
"name": "A String", # Output only. The API resource name in the format `partners/[PARTNER_ID]/devices/[DEVICE_ID]`. Assigned by the server. |
| 303 |
}, |
| 304 |
], |
| 305 |
"nextPageToken": "A String", # A token used to access the next page of results. Omitted if no further results are available. |
| 306 |
"totalSize": 42, # The total count of items in the list irrespective of pagination. |
| 307 |
}</pre> |
| 308 |
</div> |
| 309 |
|
| 310 |
<div class="method"> |
| 311 |
<code class="details" id="findByIdentifier_next">findByIdentifier_next()</code> |
| 312 |
<pre>Retrieves the next page of results. |
| 313 |
|
| 314 |
Args: |
| 315 |
previous_request: The request for the previous page. (required) |
| 316 |
previous_response: The response from the request for the previous page. (required) |
| 317 |
|
| 318 |
Returns: |
| 319 |
A request object that you can call 'execute()' on to request the next |
| 320 |
page. Returns None if there are no more items in the collection. |
| 321 |
</pre> |
| 322 |
</div> |
| 323 |
|
| 324 |
<div class="method"> |
| 325 |
<code class="details" id="findByOwner">findByOwner(partnerId, body=None, x__xgafv=None)</code> |
| 326 |
<pre>Finds devices claimed for customers. The results only contain devices registered to the reseller that's identified by the `partnerId` argument. The customer's devices purchased from other resellers don't appear in the results. |
| 327 |
|
| 328 |
Args: |
| 329 |
partnerId: string, Required. The ID of the reseller partner. (required) |
| 330 |
body: object, The request body. |
| 331 |
The object takes the form of: |
| 332 |
|
| 333 |
{ # Request to find devices by customers. |
| 334 |
"customerId": [ # The list of customer IDs to search for. |
| 335 |
"A String", |
| 336 |
], |
| 337 |
"googleWorkspaceCustomerId": [ # The list of IDs of Google Workspace accounts to search for. |
| 338 |
"A String", |
| 339 |
], |
| 340 |
"limit": "A String", # Required. The maximum number of devices to show in a page of results. Must be between 1 and 100 inclusive. |
| 341 |
"pageToken": "A String", # A token specifying which result page to return. |
| 342 |
"sectionType": "A String", # Required. The section type of the device's provisioning record. |
| 343 |
} |
| 344 |
|
| 345 |
x__xgafv: string, V1 error format. |
| 346 |
Allowed values |
| 347 |
1 - v1 error format |
| 348 |
2 - v2 error format |
| 349 |
|
| 350 |
Returns: |
| 351 |
An object of the form: |
| 352 |
|
| 353 |
{ # Response containing found devices. |
| 354 |
"devices": [ # The customer's devices. |
| 355 |
{ # An Android or Chrome OS device registered for zero-touch enrollment. |
| 356 |
"claims": [ # Output only. The provisioning claims for a device. Devices claimed for zero-touch enrollment have a claim with the type `SECTION_TYPE_ZERO_TOUCH`. Call `partners.devices.unclaim` or `partners.devices.unclaimAsync` to remove the device from zero-touch enrollment. |
| 357 |
{ # A record of a device claimed by a reseller for a customer. Devices claimed for zero-touch enrollment have a claim with the type `SECTION_TYPE_ZERO_TOUCH`. To learn more, read [Claim devices for customers](/zero-touch/guides/how-it-works#claim). |
| 358 |
"additionalService": "A String", # The Additional service registered for the device. |
| 359 |
"googleWorkspaceCustomerId": "A String", # The ID of the Google Workspace account that owns the Chrome OS device. |
| 360 |
"ownerCompanyId": "A String", # The ID of the Customer that purchased the device. |
| 361 |
"resellerId": "A String", # The ID of the reseller that claimed the device. |
| 362 |
"sectionType": "A String", # Output only. The type of claim made on the device. |
| 363 |
"vacationModeExpireTime": "A String", # The timestamp when the device will exit ‘vacation mode’. This value is present iff the device is in 'vacation mode'. |
| 364 |
"vacationModeStartTime": "A String", # The timestamp when the device was put into ‘vacation mode’. This value is present iff the device is in 'vacation mode'. |
| 365 |
}, |
| 366 |
], |
| 367 |
"configuration": "A String", # Not available to resellers. |
| 368 |
"deviceId": "A String", # Output only. The ID of the device. Assigned by the server. |
| 369 |
"deviceIdentifier": { # Encapsulates hardware and product IDs to identify a manufactured device. To understand requirements on identifier sets, read [Identifiers](https://developers.google.com/zero-touch/guides/identifiers). # The hardware IDs that identify a manufactured device. To learn more, read [Identifiers](https://developers.google.com/zero-touch/guides/identifiers). |
| 370 |
"chromeOsAttestedDeviceId": "A String", # An identifier provided by OEMs, carried through the production and sales process. Only applicable to Chrome OS devices. |
| 371 |
"deviceType": "A String", # The type of the device |
| 372 |
"imei": "A String", # The device’s IMEI number. Validated on input. |
| 373 |
"imei2": "A String", # The device’s second IMEI number. |
| 374 |
"manufacturer": "A String", # The device manufacturer’s name. Matches the device's built-in value returned from `android.os.Build.MANUFACTURER`. Allowed values are listed in [Android manufacturers](/zero-touch/resources/manufacturer-names#manufacturers-names). |
| 375 |
"meid": "A String", # The device’s MEID number. |
| 376 |
"meid2": "A String", # The device’s second MEID number. |
| 377 |
"model": "A String", # The device model's name. Allowed values are listed in [Android models](/zero-touch/resources/manufacturer-names#model-names) and [Chrome OS models](https://support.google.com/chrome/a/answer/10130175#identify_compatible). |
| 378 |
"serialNumber": "A String", # The manufacturer's serial number for the device. This value might not be unique across different device models. |
| 379 |
}, |
| 380 |
"deviceMetadata": { # Metadata entries that can be attached to a `Device`. To learn more, read [Device metadata](https://developers.google.com/zero-touch/guides/metadata). # The metadata attached to the device. Structured as key-value pairs. To learn more, read [Device metadata](https://developers.google.com/zero-touch/guides/metadata). |
| 381 |
"entries": { # Metadata entries recorded as key-value pairs. |
| 382 |
"a_key": "A String", |
| 383 |
}, |
| 384 |
}, |
| 385 |
"name": "A String", # Output only. The API resource name in the format `partners/[PARTNER_ID]/devices/[DEVICE_ID]`. Assigned by the server. |
| 386 |
}, |
| 387 |
], |
| 388 |
"nextPageToken": "A String", # A token used to access the next page of results. Omitted if no further results are available. |
| 389 |
"totalSize": 42, # The total count of items in the list irrespective of pagination. |
| 390 |
}</pre> |
| 391 |
</div> |
| 392 |
|
| 393 |
<div class="method"> |
| 394 |
<code class="details" id="findByOwner_next">findByOwner_next()</code> |
| 395 |
<pre>Retrieves the next page of results. |
| 396 |
|
| 397 |
Args: |
| 398 |
previous_request: The request for the previous page. (required) |
| 399 |
previous_response: The response from the request for the previous page. (required) |
| 400 |
|
| 401 |
Returns: |
| 402 |
A request object that you can call 'execute()' on to request the next |
| 403 |
page. Returns None if there are no more items in the collection. |
| 404 |
</pre> |
| 405 |
</div> |
| 406 |
|
| 407 |
<div class="method"> |
| 408 |
<code class="details" id="get">get(name, x__xgafv=None)</code> |
| 409 |
<pre>Gets a device. |
| 410 |
|
| 411 |
Args: |
| 412 |
name: string, Required. The device API resource name in the format `partners/[PARTNER_ID]/devices/[DEVICE_ID]`. (required) |
| 413 |
x__xgafv: string, V1 error format. |
| 414 |
Allowed values |
| 415 |
1 - v1 error format |
| 416 |
2 - v2 error format |
| 417 |
|
| 418 |
Returns: |
| 419 |
An object of the form: |
| 420 |
|
| 421 |
{ # An Android or Chrome OS device registered for zero-touch enrollment. |
| 422 |
"claims": [ # Output only. The provisioning claims for a device. Devices claimed for zero-touch enrollment have a claim with the type `SECTION_TYPE_ZERO_TOUCH`. Call `partners.devices.unclaim` or `partners.devices.unclaimAsync` to remove the device from zero-touch enrollment. |
| 423 |
{ # A record of a device claimed by a reseller for a customer. Devices claimed for zero-touch enrollment have a claim with the type `SECTION_TYPE_ZERO_TOUCH`. To learn more, read [Claim devices for customers](/zero-touch/guides/how-it-works#claim). |
| 424 |
"additionalService": "A String", # The Additional service registered for the device. |
| 425 |
"googleWorkspaceCustomerId": "A String", # The ID of the Google Workspace account that owns the Chrome OS device. |
| 426 |
"ownerCompanyId": "A String", # The ID of the Customer that purchased the device. |
| 427 |
"resellerId": "A String", # The ID of the reseller that claimed the device. |
| 428 |
"sectionType": "A String", # Output only. The type of claim made on the device. |
| 429 |
"vacationModeExpireTime": "A String", # The timestamp when the device will exit ‘vacation mode’. This value is present iff the device is in 'vacation mode'. |
| 430 |
"vacationModeStartTime": "A String", # The timestamp when the device was put into ‘vacation mode’. This value is present iff the device is in 'vacation mode'. |
| 431 |
}, |
| 432 |
], |
| 433 |
"configuration": "A String", # Not available to resellers. |
| 434 |
"deviceId": "A String", # Output only. The ID of the device. Assigned by the server. |
| 435 |
"deviceIdentifier": { # Encapsulates hardware and product IDs to identify a manufactured device. To understand requirements on identifier sets, read [Identifiers](https://developers.google.com/zero-touch/guides/identifiers). # The hardware IDs that identify a manufactured device. To learn more, read [Identifiers](https://developers.google.com/zero-touch/guides/identifiers). |
| 436 |
"chromeOsAttestedDeviceId": "A String", # An identifier provided by OEMs, carried through the production and sales process. Only applicable to Chrome OS devices. |
| 437 |
"deviceType": "A String", # The type of the device |
| 438 |
"imei": "A String", # The device’s IMEI number. Validated on input. |
| 439 |
"imei2": "A String", # The device’s second IMEI number. |
| 440 |
"manufacturer": "A String", # The device manufacturer’s name. Matches the device's built-in value returned from `android.os.Build.MANUFACTURER`. Allowed values are listed in [Android manufacturers](/zero-touch/resources/manufacturer-names#manufacturers-names). |
| 441 |
"meid": "A String", # The device’s MEID number. |
| 442 |
"meid2": "A String", # The device’s second MEID number. |
| 443 |
"model": "A String", # The device model's name. Allowed values are listed in [Android models](/zero-touch/resources/manufacturer-names#model-names) and [Chrome OS models](https://support.google.com/chrome/a/answer/10130175#identify_compatible). |
| 444 |
"serialNumber": "A String", # The manufacturer's serial number for the device. This value might not be unique across different device models. |
| 445 |
}, |
| 446 |
"deviceMetadata": { # Metadata entries that can be attached to a `Device`. To learn more, read [Device metadata](https://developers.google.com/zero-touch/guides/metadata). # The metadata attached to the device. Structured as key-value pairs. To learn more, read [Device metadata](https://developers.google.com/zero-touch/guides/metadata). |
| 447 |
"entries": { # Metadata entries recorded as key-value pairs. |
| 448 |
"a_key": "A String", |
| 449 |
}, |
| 450 |
}, |
| 451 |
"name": "A String", # Output only. The API resource name in the format `partners/[PARTNER_ID]/devices/[DEVICE_ID]`. Assigned by the server. |
| 452 |
}</pre> |
| 453 |
</div> |
| 454 |
|
| 455 |
<div class="method"> |
| 456 |
<code class="details" id="getSimLockState">getSimLockState(partnerId, body=None, x__xgafv=None)</code> |
| 457 |
<pre>Gets a device's SIM lock state. |
| 458 |
|
| 459 |
Args: |
| 460 |
partnerId: string, Required. The ID of the partner. (required) |
| 461 |
body: object, The request body. |
| 462 |
The object takes the form of: |
| 463 |
|
| 464 |
{ # Request to get a device's SIM lock status. |
| 465 |
"deviceIdentifier": { # Encapsulates hardware and product IDs to identify a manufactured device. To understand requirements on identifier sets, read [Identifiers](https://developers.google.com/zero-touch/guides/identifiers). # Required. Required. The device identifier to search for. |
| 466 |
"chromeOsAttestedDeviceId": "A String", # An identifier provided by OEMs, carried through the production and sales process. Only applicable to Chrome OS devices. |
| 467 |
"deviceType": "A String", # The type of the device |
| 468 |
"imei": "A String", # The device’s IMEI number. Validated on input. |
| 469 |
"imei2": "A String", # The device’s second IMEI number. |
| 470 |
"manufacturer": "A String", # The device manufacturer’s name. Matches the device's built-in value returned from `android.os.Build.MANUFACTURER`. Allowed values are listed in [Android manufacturers](/zero-touch/resources/manufacturer-names#manufacturers-names). |
| 471 |
"meid": "A String", # The device’s MEID number. |
| 472 |
"meid2": "A String", # The device’s second MEID number. |
| 473 |
"model": "A String", # The device model's name. Allowed values are listed in [Android models](/zero-touch/resources/manufacturer-names#model-names) and [Chrome OS models](https://support.google.com/chrome/a/answer/10130175#identify_compatible). |
| 474 |
"serialNumber": "A String", # The manufacturer's serial number for the device. This value might not be unique across different device models. |
| 475 |
}, |
| 476 |
} |
| 477 |
|
| 478 |
x__xgafv: string, V1 error format. |
| 479 |
Allowed values |
| 480 |
1 - v1 error format |
| 481 |
2 - v2 error format |
| 482 |
|
| 483 |
Returns: |
| 484 |
An object of the form: |
| 485 |
|
| 486 |
{ # Response containing a device's SimLock state. |
| 487 |
"simLockState": "A String", |
| 488 |
}</pre> |
| 489 |
</div> |
| 490 |
|
| 491 |
<div class="method"> |
| 492 |
<code class="details" id="metadata">metadata(metadataOwnerId, deviceId, body=None, x__xgafv=None)</code> |
| 493 |
<pre>Updates reseller metadata associated with the device. Android devices only. |
| 494 |
|
| 495 |
Args: |
| 496 |
metadataOwnerId: string, Required. The owner of the newly set metadata. Set this to the partner ID. (required) |
| 497 |
deviceId: string, Required. The ID of the device. (required) |
| 498 |
body: object, The request body. |
| 499 |
The object takes the form of: |
| 500 |
|
| 501 |
{ # Request to set metadata for a device. |
| 502 |
"deviceMetadata": { # Metadata entries that can be attached to a `Device`. To learn more, read [Device metadata](https://developers.google.com/zero-touch/guides/metadata). # Required. The metadata to attach to the device. |
| 503 |
"entries": { # Metadata entries recorded as key-value pairs. |
| 504 |
"a_key": "A String", |
| 505 |
}, |
| 506 |
}, |
| 507 |
} |
| 508 |
|
| 509 |
x__xgafv: string, V1 error format. |
| 510 |
Allowed values |
| 511 |
1 - v1 error format |
| 512 |
2 - v2 error format |
| 513 |
|
| 514 |
Returns: |
| 515 |
An object of the form: |
| 516 |
|
| 517 |
{ # Metadata entries that can be attached to a `Device`. To learn more, read [Device metadata](https://developers.google.com/zero-touch/guides/metadata). |
| 518 |
"entries": { # Metadata entries recorded as key-value pairs. |
| 519 |
"a_key": "A String", |
| 520 |
}, |
| 521 |
}</pre> |
| 522 |
</div> |
| 523 |
|
| 524 |
<div class="method"> |
| 525 |
<code class="details" id="unclaim">unclaim(partnerId, body=None, x__xgafv=None)</code> |
| 526 |
<pre>Unclaims a device from a customer and removes it from zero-touch enrollment. |
| 527 |
|
| 528 |
Args: |
| 529 |
partnerId: string, Required. The ID of the reseller partner. (required) |
| 530 |
body: object, The request body. |
| 531 |
The object takes the form of: |
| 532 |
|
| 533 |
{ # Request message to unclaim a device. |
| 534 |
"deviceId": "A String", # Required. The device ID returned by `ClaimDevice`. |
| 535 |
"deviceIdentifier": { # Encapsulates hardware and product IDs to identify a manufactured device. To understand requirements on identifier sets, read [Identifiers](https://developers.google.com/zero-touch/guides/identifiers). # Required. The device identifier you used when you claimed this device. |
| 536 |
"chromeOsAttestedDeviceId": "A String", # An identifier provided by OEMs, carried through the production and sales process. Only applicable to Chrome OS devices. |
| 537 |
"deviceType": "A String", # The type of the device |
| 538 |
"imei": "A String", # The device’s IMEI number. Validated on input. |
| 539 |
"imei2": "A String", # The device’s second IMEI number. |
| 540 |
"manufacturer": "A String", # The device manufacturer’s name. Matches the device's built-in value returned from `android.os.Build.MANUFACTURER`. Allowed values are listed in [Android manufacturers](/zero-touch/resources/manufacturer-names#manufacturers-names). |
| 541 |
"meid": "A String", # The device’s MEID number. |
| 542 |
"meid2": "A String", # The device’s second MEID number. |
| 543 |
"model": "A String", # The device model's name. Allowed values are listed in [Android models](/zero-touch/resources/manufacturer-names#model-names) and [Chrome OS models](https://support.google.com/chrome/a/answer/10130175#identify_compatible). |
| 544 |
"serialNumber": "A String", # The manufacturer's serial number for the device. This value might not be unique across different device models. |
| 545 |
}, |
| 546 |
"sectionType": "A String", # Required. The section type of the device's provisioning record. |
| 547 |
"vacationModeDays": 42, # The duration of the vacation unlock starting from when the request is processed. (1 day is treated as 24 hours) |
| 548 |
"vacationModeExpireTime": "A String", # The expiration time of the vacation unlock. |
| 549 |
} |
| 550 |
|
| 551 |
x__xgafv: string, V1 error format. |
| 552 |
Allowed values |
| 553 |
1 - v1 error format |
| 554 |
2 - v2 error format |
| 555 |
|
| 556 |
Returns: |
| 557 |
An object of the form: |
| 558 |
|
| 559 |
{ # 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); } |
| 560 |
}</pre> |
| 561 |
</div> |
| 562 |
|
| 563 |
<div class="method"> |
| 564 |
<code class="details" id="unclaimAsync">unclaimAsync(partnerId, body=None, x__xgafv=None)</code> |
| 565 |
<pre>Unclaims a batch of devices for a customer asynchronously. Removes the devices from zero-touch enrollment. To learn more, read [Long‑running batch operations](/zero-touch/guides/how-it-works#operations). |
| 566 |
|
| 567 |
Args: |
| 568 |
partnerId: string, Required. The reseller partner ID. (required) |
| 569 |
body: object, The request body. |
| 570 |
The object takes the form of: |
| 571 |
|
| 572 |
{ # Request to unclaim devices asynchronously in batch. |
| 573 |
"unclaims": [ # Required. The list of devices to unclaim. |
| 574 |
{ # Identifies one unclaim request. |
| 575 |
"deviceId": "A String", # Required. Device ID of the device. |
| 576 |
"deviceIdentifier": { # Encapsulates hardware and product IDs to identify a manufactured device. To understand requirements on identifier sets, read [Identifiers](https://developers.google.com/zero-touch/guides/identifiers). # Required. Device identifier of the device. |
| 577 |
"chromeOsAttestedDeviceId": "A String", # An identifier provided by OEMs, carried through the production and sales process. Only applicable to Chrome OS devices. |
| 578 |
"deviceType": "A String", # The type of the device |
| 579 |
"imei": "A String", # The device’s IMEI number. Validated on input. |
| 580 |
"imei2": "A String", # The device’s second IMEI number. |
| 581 |
"manufacturer": "A String", # The device manufacturer’s name. Matches the device's built-in value returned from `android.os.Build.MANUFACTURER`. Allowed values are listed in [Android manufacturers](/zero-touch/resources/manufacturer-names#manufacturers-names). |
| 582 |
"meid": "A String", # The device’s MEID number. |
| 583 |
"meid2": "A String", # The device’s second MEID number. |
| 584 |
"model": "A String", # The device model's name. Allowed values are listed in [Android models](/zero-touch/resources/manufacturer-names#model-names) and [Chrome OS models](https://support.google.com/chrome/a/answer/10130175#identify_compatible). |
| 585 |
"serialNumber": "A String", # The manufacturer's serial number for the device. This value might not be unique across different device models. |
| 586 |
}, |
| 587 |
"sectionType": "A String", # Required. The section type of the device's provisioning record. |
| 588 |
"vacationModeDays": 42, # Optional. The duration of the vacation unlock starting from when the request is processed. (1 day is treated as 24 hours) |
| 589 |
"vacationModeExpireTime": "A String", # Optional. The expiration time of the vacation unlock. |
| 590 |
}, |
| 591 |
], |
| 592 |
} |
| 593 |
|
| 594 |
x__xgafv: string, V1 error format. |
| 595 |
Allowed values |
| 596 |
1 - v1 error format |
| 597 |
2 - v2 error format |
| 598 |
|
| 599 |
Returns: |
| 600 |
An object of the form: |
| 601 |
|
| 602 |
{ # This resource represents a long-running operation that is the result of a network API call. |
| 603 |
"done": True or False, # If the value is `false`, it means the operation is still in progress. If `true`, the operation is completed, and either `error` or `response` is available. |
| 604 |
"error": { # The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors). # This field will always be not set if the operation is created by `claimAsync`, `unclaimAsync`, or `updateMetadataAsync`. In this case, error information for each device is set in `response.perDeviceStatus.result.status`. |
| 605 |
"code": 42, # The status code, which should be an enum value of google.rpc.Code. |
| 606 |
"details": [ # A list of messages that carry the error details. There is a common set of message types for APIs to use. |
| 607 |
{ |
| 608 |
"a_key": "", # Properties of the object. Contains field @type with type URL. |
| 609 |
}, |
| 610 |
], |
| 611 |
"message": "A String", # A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client. |
| 612 |
}, |
| 613 |
"metadata": { # This field will contain a `DevicesLongRunningOperationMetadata` object if the operation is created by `claimAsync`, `unclaimAsync`, or `updateMetadataAsync`. |
| 614 |
"a_key": "", # Properties of the object. Contains field @type with type URL. |
| 615 |
}, |
| 616 |
"name": "A String", # The server-assigned name, which is only unique within the same service that originally returns it. If you use the default HTTP mapping, the `name` should be a resource name ending with `operations/{unique_id}`. |
| 617 |
"response": { # This field will contain a `DevicesLongRunningOperationResponse` object if the operation is created by `claimAsync`, `unclaimAsync`, or `updateMetadataAsync`. |
| 618 |
"a_key": "", # Properties of the object. Contains field @type with type URL. |
| 619 |
}, |
| 620 |
}</pre> |
| 621 |
</div> |
| 622 |
|
| 623 |
<div class="method"> |
| 624 |
<code class="details" id="updateMetadataAsync">updateMetadataAsync(partnerId, body=None, x__xgafv=None)</code> |
| 625 |
<pre>Updates the reseller metadata attached to a batch of devices. This method updates devices asynchronously and returns an `Operation` that can be used to track progress. Read [Long‑running batch operations](/zero-touch/guides/how-it-works#operations). Android Devices only. |
| 626 |
|
| 627 |
Args: |
| 628 |
partnerId: string, Required. The reseller partner ID. (required) |
| 629 |
body: object, The request body. |
| 630 |
The object takes the form of: |
| 631 |
|
| 632 |
{ # Request to update device metadata in batch. |
| 633 |
"updates": [ # Required. The list of metadata updates. |
| 634 |
{ # Identifies metadata updates to one device. |
| 635 |
"deviceId": "A String", # Required. Device ID of the device. |
| 636 |
"deviceIdentifier": { # Encapsulates hardware and product IDs to identify a manufactured device. To understand requirements on identifier sets, read [Identifiers](https://developers.google.com/zero-touch/guides/identifiers). # Required. Device identifier. |
| 637 |
"chromeOsAttestedDeviceId": "A String", # An identifier provided by OEMs, carried through the production and sales process. Only applicable to Chrome OS devices. |
| 638 |
"deviceType": "A String", # The type of the device |
| 639 |
"imei": "A String", # The device’s IMEI number. Validated on input. |
| 640 |
"imei2": "A String", # The device’s second IMEI number. |
| 641 |
"manufacturer": "A String", # The device manufacturer’s name. Matches the device's built-in value returned from `android.os.Build.MANUFACTURER`. Allowed values are listed in [Android manufacturers](/zero-touch/resources/manufacturer-names#manufacturers-names). |
| 642 |
"meid": "A String", # The device’s MEID number. |
| 643 |
"meid2": "A String", # The device’s second MEID number. |
| 644 |
"model": "A String", # The device model's name. Allowed values are listed in [Android models](/zero-touch/resources/manufacturer-names#model-names) and [Chrome OS models](https://support.google.com/chrome/a/answer/10130175#identify_compatible). |
| 645 |
"serialNumber": "A String", # The manufacturer's serial number for the device. This value might not be unique across different device models. |
| 646 |
}, |
| 647 |
"deviceMetadata": { # Metadata entries that can be attached to a `Device`. To learn more, read [Device metadata](https://developers.google.com/zero-touch/guides/metadata). # Required. The metadata to update. |
| 648 |
"entries": { # Metadata entries recorded as key-value pairs. |
| 649 |
"a_key": "A String", |
| 650 |
}, |
| 651 |
}, |
| 652 |
}, |
| 653 |
], |
| 654 |
} |
| 655 |
|
| 656 |
x__xgafv: string, V1 error format. |
| 657 |
Allowed values |
| 658 |
1 - v1 error format |
| 659 |
2 - v2 error format |
| 660 |
|
| 661 |
Returns: |
| 662 |
An object of the form: |
| 663 |
|
| 664 |
{ # This resource represents a long-running operation that is the result of a network API call. |
| 665 |
"done": True or False, # If the value is `false`, it means the operation is still in progress. If `true`, the operation is completed, and either `error` or `response` is available. |
| 666 |
"error": { # The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors). # This field will always be not set if the operation is created by `claimAsync`, `unclaimAsync`, or `updateMetadataAsync`. In this case, error information for each device is set in `response.perDeviceStatus.result.status`. |
| 667 |
"code": 42, # The status code, which should be an enum value of google.rpc.Code. |
| 668 |
"details": [ # A list of messages that carry the error details. There is a common set of message types for APIs to use. |
| 669 |
{ |
| 670 |
"a_key": "", # Properties of the object. Contains field @type with type URL. |
| 671 |
}, |
| 672 |
], |
| 673 |
"message": "A String", # A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client. |
| 674 |
}, |
| 675 |
"metadata": { # This field will contain a `DevicesLongRunningOperationMetadata` object if the operation is created by `claimAsync`, `unclaimAsync`, or `updateMetadataAsync`. |
| 676 |
"a_key": "", # Properties of the object. Contains field @type with type URL. |
| 677 |
}, |
| 678 |
"name": "A String", # The server-assigned name, which is only unique within the same service that originally returns it. If you use the default HTTP mapping, the `name` should be a resource name ending with `operations/{unique_id}`. |
| 679 |
"response": { # This field will contain a `DevicesLongRunningOperationResponse` object if the operation is created by `claimAsync`, `unclaimAsync`, or `updateMetadataAsync`. |
| 680 |
"a_key": "", # Properties of the object. Contains field @type with type URL. |
| 681 |
}, |
| 682 |
}</pre> |
| 683 |
</div> |
| 684 |
|
| 685 |
</body></html> |