Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 9221253

Browse files
committedSep 6, 2023
feat(androiddeviceprovisioning): update the api
#### androiddeviceprovisioning:v1 The following keys were added: - resources.partners.resources.devices.methods.getSimLockState (Total Keys: 12) - schemas.GetDeviceSimLockStateRequest (Total Keys: 3) - schemas.GetDeviceSimLockStateResponse (Total Keys: 3)
1 parent a3d9a66 commit 9221253

File tree

2 files changed

+97
-1
lines changed

2 files changed

+97
-1
lines changed
 

‎docs/dyn/androiddeviceprovisioning_v1.partners.devices.html

+37
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,9 @@ <h2>Instance Methods</h2>
9898
<p class="toc_element">
9999
<code><a href="#get">get(name, x__xgafv=None)</a></code></p>
100100
<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>
101104
<p class="toc_element">
102105
<code><a href="#metadata">metadata(metadataOwnerId, deviceId, body=None, x__xgafv=None)</a></code></p>
103106
<p class="firstline">Updates reseller metadata associated with the device. Android devices only.</p>
@@ -435,6 +438,40 @@ <h3>Method Details</h3>
435438
}</pre>
436439
</div>
437440

441+
<div class="method">
442+
<code class="details" id="getSimLockState">getSimLockState(partnerId, body=None, x__xgafv=None)</code>
443+
<pre>Gets a device&#x27;s SIM lock state.
444+
445+
Args:
446+
partnerId: string, Required. The ID of the partner. (required)
447+
body: object, The request body.
448+
The object takes the form of:
449+
450+
{ # Request to get a device&#x27;s SIM lock status.
451+
&quot;deviceIdentifier&quot;: { # 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.
452+
&quot;chromeOsAttestedDeviceId&quot;: &quot;A String&quot;, # An identifier provided by OEMs, carried through the production and sales process. Only applicable to Chrome OS devices.
453+
&quot;deviceType&quot;: &quot;A String&quot;, # The type of the device
454+
&quot;imei&quot;: &quot;A String&quot;, # The device’s IMEI number. Validated on input.
455+
&quot;manufacturer&quot;: &quot;A String&quot;, # The device manufacturer’s name. Matches the device&#x27;s built-in value returned from `android.os.Build.MANUFACTURER`. Allowed values are listed in [Android manufacturers](/zero-touch/resources/manufacturer-names#manufacturers-names).
456+
&quot;meid&quot;: &quot;A String&quot;, # The device’s MEID number.
457+
&quot;model&quot;: &quot;A String&quot;, # The device model&#x27;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).
458+
&quot;serialNumber&quot;: &quot;A String&quot;, # The manufacturer&#x27;s serial number for the device. This value might not be unique across different device models.
459+
},
460+
}
461+
462+
x__xgafv: string, V1 error format.
463+
Allowed values
464+
1 - v1 error format
465+
2 - v2 error format
466+
467+
Returns:
468+
An object of the form:
469+
470+
{ # Response containing a device&#x27;s SimLock state.
471+
&quot;simLockState&quot;: &quot;A String&quot;,
472+
}</pre>
473+
</div>
474+
438475
<div class="method">
439476
<code class="details" id="metadata">metadata(metadataOwnerId, deviceId, body=None, x__xgafv=None)</code>
440477
<pre>Updates reseller metadata associated with the device. Android devices only.

‎googleapiclient/discovery_cache/documents/androiddeviceprovisioning.v1.json

+60-1
Original file line numberDiff line numberDiff line change
@@ -631,6 +631,32 @@
631631
"$ref": "Device"
632632
}
633633
},
634+
"getSimLockState": {
635+
"description": "Gets a device's SIM lock state.",
636+
"flatPath": "v1/partners/{partnersId}/devices:getSimLockState",
637+
"httpMethod": "POST",
638+
"id": "androiddeviceprovisioning.partners.devices.getSimLockState",
639+
"parameterOrder": [
640+
"partnerId"
641+
],
642+
"parameters": {
643+
"partnerId": {
644+
"description": "Required. The ID of the partner.",
645+
"format": "int64",
646+
"location": "path",
647+
"pattern": "^[^/]+$",
648+
"required": true,
649+
"type": "string"
650+
}
651+
},
652+
"path": "v1/partners/{+partnerId}/devices:getSimLockState",
653+
"request": {
654+
"$ref": "GetDeviceSimLockStateRequest"
655+
},
656+
"response": {
657+
"$ref": "GetDeviceSimLockStateResponse"
658+
}
659+
},
634660
"metadata": {
635661
"description": "Updates reseller metadata associated with the device. Android devices only.",
636662
"flatPath": "v1/partners/{partnersId}/devices/{devicesId}/metadata",
@@ -825,7 +851,7 @@
825851
}
826852
}
827853
},
828-
"revision": "20230823",
854+
"revision": "20230905",
829855
"rootUrl": "https://androiddeviceprovisioning.googleapis.com/",
830856
"schemas": {
831857
"ClaimDeviceRequest": {
@@ -1500,6 +1526,39 @@
15001526
},
15011527
"type": "object"
15021528
},
1529+
"GetDeviceSimLockStateRequest": {
1530+
"description": "Request to get a device's SIM lock status.",
1531+
"id": "GetDeviceSimLockStateRequest",
1532+
"properties": {
1533+
"deviceIdentifier": {
1534+
"$ref": "DeviceIdentifier",
1535+
"description": "Required. Required. The device identifier to search for."
1536+
}
1537+
},
1538+
"type": "object"
1539+
},
1540+
"GetDeviceSimLockStateResponse": {
1541+
"description": "Response containing a device's SimLock state.",
1542+
"id": "GetDeviceSimLockStateResponse",
1543+
"properties": {
1544+
"simLockState": {
1545+
"enum": [
1546+
"SIM_LOCK_STATE_UNSPECIFIED",
1547+
"UNLOCKED",
1548+
"LOCKED_TO_PARTNER",
1549+
"LOCKED_TO_OTHER_PARTNER"
1550+
],
1551+
"enumDescriptions": [
1552+
"Invalid code. Shouldn't be used.",
1553+
"Device is not SIM locked.",
1554+
"Device is SIM locked to the partner querying SIM lock state.",
1555+
"Device is SIM locked to a different partner."
1556+
],
1557+
"type": "string"
1558+
}
1559+
},
1560+
"type": "object"
1561+
},
15031562
"GoogleWorkspaceAccount": {
15041563
"description": "A Google Workspace customer.",
15051564
"id": "GoogleWorkspaceAccount",

0 commit comments

Comments
 (0)
Please sign in to comment.