blob: 296afe10e267032c97e07740e90c79ba1fb64472 [file] [log] [blame]
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +00001<html><body>
2<style>
3
4body, 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
15body {
16 font-size: 13px;
17 padding: 1em;
18}
19
20h1 {
21 font-size: 26px;
22 margin-bottom: 1em;
23}
24
25h2 {
26 font-size: 24px;
27 margin-bottom: 1em;
28}
29
30h3 {
31 font-size: 20px;
32 margin-bottom: 1em;
33 margin-top: 1em;
34}
35
36pre, code {
37 line-height: 1.5;
38 font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace;
39}
40
41pre {
42 margin-top: 0.5em;
43}
44
45h1, h2, h3, p {
46 font-family: Arial, sans serif;
47}
48
49h1, 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
Nathaniel Manista4f877e52015-06-15 16:44:50 +000075<h1><a href="androidenterprise_v1.html">Google Play EMM API</a> . <a href="androidenterprise_v1.devices.html">devices</a></h1>
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +000076<h2>Instance Methods</h2>
77<p class="toc_element">
Dmitry Frenkel3e17f892020-10-06 16:46:05 -070078 <code><a href="#close">close()</a></code></p>
79<p class="firstline">Close httplib2 connections.</p>
80<p class="toc_element">
Bu Sun Kimd059ad82020-07-22 17:02:09 -070081 <code><a href="#forceReportUpload">forceReportUpload(enterpriseId, userId, deviceId, x__xgafv=None)</a></code></p>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -070082<p class="firstline">Uploads a report containing any changes in app states on the device since the last report was generated. You can call this method up to 3 times every 24 hours for a given device. If you exceed the quota, then the Google Play EMM API returns HTTP 429 Too Many Requests.</p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070083<p class="toc_element">
Bu Sun Kimd059ad82020-07-22 17:02:09 -070084 <code><a href="#get">get(enterpriseId, userId, deviceId, x__xgafv=None)</a></code></p>
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +000085<p class="firstline">Retrieves the details of a device.</p>
86<p class="toc_element">
Bu Sun Kimd059ad82020-07-22 17:02:09 -070087 <code><a href="#getState">getState(enterpriseId, userId, deviceId, x__xgafv=None)</a></code></p>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -070088<p class="firstline">Retrieves whether a device's access to Google services is enabled or disabled. The device state takes effect only if enforcing EMM policies on Android devices is enabled in the Google Admin Console. Otherwise, the device state is ignored and all devices are allowed access to Google services. This is only supported for Google-managed users.</p>
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +000089<p class="toc_element">
Bu Sun Kimd059ad82020-07-22 17:02:09 -070090 <code><a href="#list">list(enterpriseId, userId, x__xgafv=None)</a></code></p>
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +000091<p class="firstline">Retrieves the IDs of all of a user's devices.</p>
92<p class="toc_element">
Bu Sun Kimd059ad82020-07-22 17:02:09 -070093 <code><a href="#setState">setState(enterpriseId, userId, deviceId, body=None, x__xgafv=None)</a></code></p>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -070094<p class="firstline">Sets whether a device's access to Google services is enabled or disabled. The device state takes effect only if enforcing EMM policies on Android devices is enabled in the Google Admin Console. Otherwise, the device state is ignored and all devices are allowed access to Google services. This is only supported for Google-managed users.</p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070095<p class="toc_element">
Bu Sun Kimd059ad82020-07-22 17:02:09 -070096 <code><a href="#update">update(enterpriseId, userId, deviceId, body=None, updateMask=None, x__xgafv=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070097<p class="firstline">Updates the device policy</p>
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +000098<h3>Method Details</h3>
99<div class="method">
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700100 <code class="details" id="close">close()</code>
101 <pre>Close httplib2 connections.</pre>
102</div>
103
104<div class="method">
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700105 <code class="details" id="forceReportUpload">forceReportUpload(enterpriseId, userId, deviceId, x__xgafv=None)</code>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700106 <pre>Uploads a report containing any changes in app states on the device since the last report was generated. You can call this method up to 3 times every 24 hours for a given device. If you exceed the quota, then the Google Play EMM API returns HTTP 429 Too Many Requests.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700107
108Args:
109 enterpriseId: string, The ID of the enterprise. (required)
110 userId: string, The ID of the user. (required)
111 deviceId: string, The ID of the device. (required)
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700112 x__xgafv: string, V1 error format.
113 Allowed values
114 1 - v1 error format
115 2 - v2 error format
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700116</pre>
117</div>
118
119<div class="method">
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700120 <code class="details" id="get">get(enterpriseId, userId, deviceId, x__xgafv=None)</code>
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000121 <pre>Retrieves the details of a device.
122
123Args:
124 enterpriseId: string, The ID of the enterprise. (required)
125 userId: string, The ID of the user. (required)
126 deviceId: string, The ID of the device. (required)
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700127 x__xgafv: string, V1 error format.
128 Allowed values
129 1 - v1 error format
130 2 - v2 error format
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000131
132Returns:
133 An object of the form:
134
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700135 { # A Devices resource represents a mobile device managed by the EMM and belonging to a specific enterprise user.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700136 &quot;report&quot;: { # Device report updated with the latest app states for managed apps on the device. # The device report updated with the latest app states.
137 &quot;lastUpdatedTimestampMillis&quot;: &quot;A String&quot;, # The timestamp of the last report update in milliseconds since epoch. This field will always be present.
138 &quot;appState&quot;: [ # List of app states set by managed apps on the device. App states are defined by the app&#x27;s developers. This field will always be present.
139 { # List of states set by the app.
140 &quot;keyedAppState&quot;: [ # List of keyed app states. This field will always be present.
141 { # Represents a keyed app state containing a key, timestamp, severity level, optional description, and optional data.
142 &quot;stateTimestampMillis&quot;: &quot;A String&quot;, # Timestamp of when the app set the state in milliseconds since epoch. This field will always be present.
143 &quot;message&quot;: &quot;A String&quot;, # Free-form, human-readable message describing the app state. For example, an error message. To prevent XSS, we recommend removing any HTML from the message before displaying it.
144 &quot;severity&quot;: &quot;A String&quot;, # Severity of the app state. This field will always be present.
145 &quot;data&quot;: &quot;A String&quot;, # Additional field intended for machine-readable data. For example, a number or JSON object. To prevent XSS, we recommend removing any HTML from the data before displaying it.
146 &quot;key&quot;: &quot;A String&quot;, # Key indicating what the app is providing a state for. The content of the key is set by the app&#x27;s developer. To prevent XSS, we recommend removing any HTML from the key before displaying it. This field will always be present.
147 },
148 ],
149 &quot;packageName&quot;: &quot;A String&quot;, # The package name of the app. This field will always be present.
150 },
151 ],
152 },
153 &quot;managementType&quot;: &quot;A String&quot;, # Identifies the extent to which the device is controlled by a managed Google Play EMM in various deployment configurations. Possible values include: - &quot;managedDevice&quot;, a device that has the EMM&#x27;s device policy controller (DPC) as the device owner. - &quot;managedProfile&quot;, a device that has a profile managed by the DPC (DPC is profile owner) in addition to a separate, personal profile that is unavailable to the DPC. - &quot;containerApp&quot;, no longer used (deprecated). - &quot;unmanagedProfile&quot;, a device that has been allowed (by the domain&#x27;s admin, using the Admin Console to enable the privilege) to use managed Google Play, but the profile is itself not owned by a DPC.
154 &quot;androidId&quot;: &quot;A String&quot;, # The Google Play Services Android ID for the device encoded as a lowercase hex string. For example, &quot;123456789abcdef0&quot;.
155 &quot;policy&quot;: { # The device policy for a given managed device. # The policy enforced on the device.
156 &quot;maintenanceWindow&quot;: { # Maintenance window for managed Google Play Accounts. This allows Play store to update the apps on the foreground in the designated window. # The maintenance window defining when apps running in the foreground should be updated.
157 &quot;startTimeAfterMidnightMs&quot;: &quot;A String&quot;, # Start time of the maintenance window, in milliseconds after midnight on the device. Windows can span midnight.
158 &quot;durationMs&quot;: &quot;A String&quot;, # Duration of the maintenance window, in milliseconds. The duration must be between 30 minutes and 24 hours (inclusive).
159 },
160 &quot;deviceReportPolicy&quot;: &quot;A String&quot;, # Whether the device reports app states to the EMM. The default value is &quot;deviceReportDisabled&quot;.
161 &quot;autoUpdatePolicy&quot;: &quot;A String&quot;, # The auto-update policy for apps installed on the device. &quot;choiceToTheUser&quot; allows the device&#x27;s user to configure the app update policy. &quot;always&quot; enables auto updates. &quot;never&quot; disables auto updates. &quot;wifiOnly&quot; enables auto updates only when the device is connected to wifi.
162 &quot;productPolicy&quot;: [ # The list of product policies. The productAvailabilityPolicy needs to be set to WHITELIST or ALL for the product policies to be applied.
163 { # The policy for a product.
164 &quot;productId&quot;: &quot;A String&quot;, # The ID of the product. For example, &quot;app:com.google.android.gm&quot;.
165 &quot;autoInstallPolicy&quot;: { # The auto-install policy for the product.
166 &quot;autoInstallConstraint&quot;: [ # The constraints for auto-installing the app. You can specify a maximum of one constraint.
167 { # The auto-install constraint. Defines a set of restrictions for installation. At least one of the fields must be set.
168 &quot;chargingStateConstraint&quot;: &quot;A String&quot;, # Charging state constraint.
169 &quot;networkTypeConstraint&quot;: &quot;A String&quot;, # Network type constraint.
170 &quot;deviceIdleStateConstraint&quot;: &quot;A String&quot;, # Device idle state constraint.
171 },
172 ],
173 &quot;autoInstallMode&quot;: &quot;A String&quot;, # The auto-install mode. If unset defaults to &quot;doNotAutoInstall&quot;.
174 &quot;autoInstallPriority&quot;: 42, # The priority of the install, as an unsigned integer. A lower number means higher priority.
175 &quot;minimumVersionCode&quot;: 42, # The minimum version of the app. If a lower version of the app is installed, then the app will be auto-updated according to the auto-install constraints, instead of waiting for the regular auto-update. You can set a minimum version code for at most 20 apps per device.
176 },
177 &quot;tracks&quot;: [ # Deprecated. Use trackIds instead.
178 &quot;A String&quot;,
179 ],
180 &quot;trackIds&quot;: [ # Grants the device visibility to the specified product release track(s), identified by trackIds. The list of release tracks of a product can be obtained by calling Products.Get.
181 &quot;A String&quot;,
182 ],
183 &quot;managedConfiguration&quot;: { # A managed configuration resource contains the set of managed properties defined by the app developer in the app&#x27;s managed configurations schema, as well as any configuration variables defined for the user. # The managed configuration for the product.
184 &quot;configurationVariables&quot;: { # A configuration variables resource contains the managed configuration settings ID to be applied to a single user, as well as the variable set that is attributed to the user. The variable set will be used to replace placeholders in the managed configuration settings. # Contains the ID of the managed configuration profile and the set of configuration variables (if any) defined for the user.
185 &quot;variableSet&quot;: [ # The variable set that is attributed to the user.
186 { # A variable set is a key-value pair of EMM-provided placeholders and its corresponding value, which is attributed to a user. For example, $FIRSTNAME could be a placeholder, and its value could be Alice. Placeholders should start with a &#x27;$&#x27; sign and should be alphanumeric only.
187 &quot;placeholder&quot;: &quot;A String&quot;, # The placeholder string; defined by EMM.
188 &quot;userValue&quot;: &quot;A String&quot;, # The value of the placeholder, specific to the user.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700189 },
190 ],
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700191 &quot;mcmId&quot;: &quot;A String&quot;, # The ID of the managed configurations settings.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700192 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700193 &quot;productId&quot;: &quot;A String&quot;, # The ID of the product that the managed configuration is for, e.g. &quot;app:com.google.android.gm&quot;.
194 &quot;kind&quot;: &quot;A String&quot;, # Deprecated.
195 &quot;managedProperty&quot;: [ # The set of managed properties for this configuration.
196 { # A managed property of a managed configuration. The property must match one of the properties in the app restrictions schema of the product. Exactly one of the value fields must be populated, and it must match the property&#x27;s type in the app restrictions schema.
197 &quot;valueBool&quot;: True or False, # The boolean value - this will only be present if type of the property is bool.
198 &quot;valueInteger&quot;: 42, # The integer value - this will only be present if type of the property is integer.
199 &quot;valueBundle&quot;: { # A bundle of managed properties. # The bundle of managed properties - this will only be present if type of the property is bundle.
200 &quot;managedProperty&quot;: [ # The list of managed properties.
201 # Object with schema name: ManagedProperty
Bu Sun Kim65020912020-05-20 12:08:20 -0700202 ],
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700203 },
204 &quot;valueStringArray&quot;: [ # The list of string values - this will only be present if type of the property is multiselect.
205 &quot;A String&quot;,
206 ],
207 &quot;valueString&quot;: &quot;A String&quot;, # The string value - this will only be present if type of the property is string, choice or hidden.
208 &quot;key&quot;: &quot;A String&quot;, # The unique key that identifies the property.
209 &quot;valueBundleArray&quot;: [ # The list of bundles of properties - this will only be present if type of the property is bundle_array.
210 { # A bundle of managed properties.
Bu Sun Kim65020912020-05-20 12:08:20 -0700211 &quot;managedProperty&quot;: [ # The list of managed properties.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700212 # Object with schema name: ManagedProperty
213 ],
214 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700215 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700216 },
217 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700218 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700219 &quot;autoUpdateMode&quot;: &quot;A String&quot;, # The auto-update mode for the product.
220 },
221 ],
222 &quot;productAvailabilityPolicy&quot;: &quot;A String&quot;, # The availability granted to the device for the specified products. &quot;all&quot; gives the device access to all products, regardless of approval status. &quot;all&quot; does not enable automatic visibility of &quot;alpha&quot; or &quot;beta&quot; tracks. &quot;whitelist&quot; grants the device access the products specified in productPolicy[]. Only products that are approved or products that were previously approved (products with revoked approval) by the enterprise can be whitelisted. If no value is provided, the availability set at the user level is applied by default.
223 },
224 }</pre>
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000225</div>
226
227<div class="method">
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700228 <code class="details" id="getState">getState(enterpriseId, userId, deviceId, x__xgafv=None)</code>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700229 <pre>Retrieves whether a device&#x27;s access to Google services is enabled or disabled. The device state takes effect only if enforcing EMM policies on Android devices is enabled in the Google Admin Console. Otherwise, the device state is ignored and all devices are allowed access to Google services. This is only supported for Google-managed users.
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000230
231Args:
232 enterpriseId: string, The ID of the enterprise. (required)
233 userId: string, The ID of the user. (required)
234 deviceId: string, The ID of the device. (required)
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700235 x__xgafv: string, V1 error format.
236 Allowed values
237 1 - v1 error format
238 2 - v2 error format
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000239
240Returns:
241 An object of the form:
242
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700243 { # The state of a user&#x27;s device, as accessed by the getState and setState methods on device resources.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700244 &quot;accountState&quot;: &quot;A String&quot;, # The state of the Google account on the device. &quot;enabled&quot; indicates that the Google account on the device can be used to access Google services (including Google Play), while &quot;disabled&quot; means that it cannot. A new device is initially in the &quot;disabled&quot; state.
245 }</pre>
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000246</div>
247
248<div class="method">
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700249 <code class="details" id="list">list(enterpriseId, userId, x__xgafv=None)</code>
Bu Sun Kim65020912020-05-20 12:08:20 -0700250 <pre>Retrieves the IDs of all of a user&#x27;s devices.
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000251
252Args:
253 enterpriseId: string, The ID of the enterprise. (required)
254 userId: string, The ID of the user. (required)
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700255 x__xgafv: string, V1 error format.
256 Allowed values
257 1 - v1 error format
258 2 - v2 error format
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000259
260Returns:
261 An object of the form:
262
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700263 {
Bu Sun Kim65020912020-05-20 12:08:20 -0700264 &quot;device&quot;: [ # A managed device.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700265 { # A Devices resource represents a mobile device managed by the EMM and belonging to a specific enterprise user.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700266 &quot;report&quot;: { # Device report updated with the latest app states for managed apps on the device. # The device report updated with the latest app states.
267 &quot;lastUpdatedTimestampMillis&quot;: &quot;A String&quot;, # The timestamp of the last report update in milliseconds since epoch. This field will always be present.
268 &quot;appState&quot;: [ # List of app states set by managed apps on the device. App states are defined by the app&#x27;s developers. This field will always be present.
269 { # List of states set by the app.
270 &quot;keyedAppState&quot;: [ # List of keyed app states. This field will always be present.
271 { # Represents a keyed app state containing a key, timestamp, severity level, optional description, and optional data.
272 &quot;stateTimestampMillis&quot;: &quot;A String&quot;, # Timestamp of when the app set the state in milliseconds since epoch. This field will always be present.
273 &quot;message&quot;: &quot;A String&quot;, # Free-form, human-readable message describing the app state. For example, an error message. To prevent XSS, we recommend removing any HTML from the message before displaying it.
274 &quot;severity&quot;: &quot;A String&quot;, # Severity of the app state. This field will always be present.
275 &quot;data&quot;: &quot;A String&quot;, # Additional field intended for machine-readable data. For example, a number or JSON object. To prevent XSS, we recommend removing any HTML from the data before displaying it.
276 &quot;key&quot;: &quot;A String&quot;, # Key indicating what the app is providing a state for. The content of the key is set by the app&#x27;s developer. To prevent XSS, we recommend removing any HTML from the key before displaying it. This field will always be present.
277 },
278 ],
279 &quot;packageName&quot;: &quot;A String&quot;, # The package name of the app. This field will always be present.
280 },
281 ],
282 },
283 &quot;managementType&quot;: &quot;A String&quot;, # Identifies the extent to which the device is controlled by a managed Google Play EMM in various deployment configurations. Possible values include: - &quot;managedDevice&quot;, a device that has the EMM&#x27;s device policy controller (DPC) as the device owner. - &quot;managedProfile&quot;, a device that has a profile managed by the DPC (DPC is profile owner) in addition to a separate, personal profile that is unavailable to the DPC. - &quot;containerApp&quot;, no longer used (deprecated). - &quot;unmanagedProfile&quot;, a device that has been allowed (by the domain&#x27;s admin, using the Admin Console to enable the privilege) to use managed Google Play, but the profile is itself not owned by a DPC.
284 &quot;androidId&quot;: &quot;A String&quot;, # The Google Play Services Android ID for the device encoded as a lowercase hex string. For example, &quot;123456789abcdef0&quot;.
285 &quot;policy&quot;: { # The device policy for a given managed device. # The policy enforced on the device.
286 &quot;maintenanceWindow&quot;: { # Maintenance window for managed Google Play Accounts. This allows Play store to update the apps on the foreground in the designated window. # The maintenance window defining when apps running in the foreground should be updated.
287 &quot;startTimeAfterMidnightMs&quot;: &quot;A String&quot;, # Start time of the maintenance window, in milliseconds after midnight on the device. Windows can span midnight.
288 &quot;durationMs&quot;: &quot;A String&quot;, # Duration of the maintenance window, in milliseconds. The duration must be between 30 minutes and 24 hours (inclusive).
289 },
290 &quot;deviceReportPolicy&quot;: &quot;A String&quot;, # Whether the device reports app states to the EMM. The default value is &quot;deviceReportDisabled&quot;.
291 &quot;autoUpdatePolicy&quot;: &quot;A String&quot;, # The auto-update policy for apps installed on the device. &quot;choiceToTheUser&quot; allows the device&#x27;s user to configure the app update policy. &quot;always&quot; enables auto updates. &quot;never&quot; disables auto updates. &quot;wifiOnly&quot; enables auto updates only when the device is connected to wifi.
292 &quot;productPolicy&quot;: [ # The list of product policies. The productAvailabilityPolicy needs to be set to WHITELIST or ALL for the product policies to be applied.
293 { # The policy for a product.
294 &quot;productId&quot;: &quot;A String&quot;, # The ID of the product. For example, &quot;app:com.google.android.gm&quot;.
295 &quot;autoInstallPolicy&quot;: { # The auto-install policy for the product.
296 &quot;autoInstallConstraint&quot;: [ # The constraints for auto-installing the app. You can specify a maximum of one constraint.
297 { # The auto-install constraint. Defines a set of restrictions for installation. At least one of the fields must be set.
298 &quot;chargingStateConstraint&quot;: &quot;A String&quot;, # Charging state constraint.
299 &quot;networkTypeConstraint&quot;: &quot;A String&quot;, # Network type constraint.
300 &quot;deviceIdleStateConstraint&quot;: &quot;A String&quot;, # Device idle state constraint.
301 },
302 ],
303 &quot;autoInstallMode&quot;: &quot;A String&quot;, # The auto-install mode. If unset defaults to &quot;doNotAutoInstall&quot;.
304 &quot;autoInstallPriority&quot;: 42, # The priority of the install, as an unsigned integer. A lower number means higher priority.
305 &quot;minimumVersionCode&quot;: 42, # The minimum version of the app. If a lower version of the app is installed, then the app will be auto-updated according to the auto-install constraints, instead of waiting for the regular auto-update. You can set a minimum version code for at most 20 apps per device.
306 },
307 &quot;tracks&quot;: [ # Deprecated. Use trackIds instead.
308 &quot;A String&quot;,
309 ],
310 &quot;trackIds&quot;: [ # Grants the device visibility to the specified product release track(s), identified by trackIds. The list of release tracks of a product can be obtained by calling Products.Get.
311 &quot;A String&quot;,
312 ],
313 &quot;managedConfiguration&quot;: { # A managed configuration resource contains the set of managed properties defined by the app developer in the app&#x27;s managed configurations schema, as well as any configuration variables defined for the user. # The managed configuration for the product.
314 &quot;configurationVariables&quot;: { # A configuration variables resource contains the managed configuration settings ID to be applied to a single user, as well as the variable set that is attributed to the user. The variable set will be used to replace placeholders in the managed configuration settings. # Contains the ID of the managed configuration profile and the set of configuration variables (if any) defined for the user.
315 &quot;variableSet&quot;: [ # The variable set that is attributed to the user.
316 { # A variable set is a key-value pair of EMM-provided placeholders and its corresponding value, which is attributed to a user. For example, $FIRSTNAME could be a placeholder, and its value could be Alice. Placeholders should start with a &#x27;$&#x27; sign and should be alphanumeric only.
317 &quot;placeholder&quot;: &quot;A String&quot;, # The placeholder string; defined by EMM.
318 &quot;userValue&quot;: &quot;A String&quot;, # The value of the placeholder, specific to the user.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700319 },
320 ],
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700321 &quot;mcmId&quot;: &quot;A String&quot;, # The ID of the managed configurations settings.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700322 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700323 &quot;productId&quot;: &quot;A String&quot;, # The ID of the product that the managed configuration is for, e.g. &quot;app:com.google.android.gm&quot;.
324 &quot;kind&quot;: &quot;A String&quot;, # Deprecated.
325 &quot;managedProperty&quot;: [ # The set of managed properties for this configuration.
326 { # A managed property of a managed configuration. The property must match one of the properties in the app restrictions schema of the product. Exactly one of the value fields must be populated, and it must match the property&#x27;s type in the app restrictions schema.
327 &quot;valueBool&quot;: True or False, # The boolean value - this will only be present if type of the property is bool.
328 &quot;valueInteger&quot;: 42, # The integer value - this will only be present if type of the property is integer.
329 &quot;valueBundle&quot;: { # A bundle of managed properties. # The bundle of managed properties - this will only be present if type of the property is bundle.
330 &quot;managedProperty&quot;: [ # The list of managed properties.
331 # Object with schema name: ManagedProperty
Bu Sun Kim65020912020-05-20 12:08:20 -0700332 ],
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700333 },
334 &quot;valueStringArray&quot;: [ # The list of string values - this will only be present if type of the property is multiselect.
335 &quot;A String&quot;,
336 ],
337 &quot;valueString&quot;: &quot;A String&quot;, # The string value - this will only be present if type of the property is string, choice or hidden.
338 &quot;key&quot;: &quot;A String&quot;, # The unique key that identifies the property.
339 &quot;valueBundleArray&quot;: [ # The list of bundles of properties - this will only be present if type of the property is bundle_array.
340 { # A bundle of managed properties.
Bu Sun Kim65020912020-05-20 12:08:20 -0700341 &quot;managedProperty&quot;: [ # The list of managed properties.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700342 # Object with schema name: ManagedProperty
343 ],
344 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700345 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700346 },
347 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700348 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700349 &quot;autoUpdateMode&quot;: &quot;A String&quot;, # The auto-update mode for the product.
350 },
351 ],
352 &quot;productAvailabilityPolicy&quot;: &quot;A String&quot;, # The availability granted to the device for the specified products. &quot;all&quot; gives the device access to all products, regardless of approval status. &quot;all&quot; does not enable automatic visibility of &quot;alpha&quot; or &quot;beta&quot; tracks. &quot;whitelist&quot; grants the device access the products specified in productPolicy[]. Only products that are approved or products that were previously approved (products with revoked approval) by the enterprise can be whitelisted. If no value is provided, the availability set at the user level is applied by default.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700353 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700354 },
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000355 ],
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000356 }</pre>
357</div>
358
359<div class="method">
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700360 <code class="details" id="setState">setState(enterpriseId, userId, deviceId, body=None, x__xgafv=None)</code>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700361 <pre>Sets whether a device&#x27;s access to Google services is enabled or disabled. The device state takes effect only if enforcing EMM policies on Android devices is enabled in the Google Admin Console. Otherwise, the device state is ignored and all devices are allowed access to Google services. This is only supported for Google-managed users.
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000362
363Args:
364 enterpriseId: string, The ID of the enterprise. (required)
365 userId: string, The ID of the user. (required)
366 deviceId: string, The ID of the device. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -0700367 body: object, The request body.
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000368 The object takes the form of:
369
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700370{ # The state of a user&#x27;s device, as accessed by the getState and setState methods on device resources.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700371 &quot;accountState&quot;: &quot;A String&quot;, # The state of the Google account on the device. &quot;enabled&quot; indicates that the Google account on the device can be used to access Google services (including Google Play), while &quot;disabled&quot; means that it cannot. A new device is initially in the &quot;disabled&quot; state.
372 }
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000373
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700374 x__xgafv: string, V1 error format.
375 Allowed values
376 1 - v1 error format
377 2 - v2 error format
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000378
379Returns:
380 An object of the form:
381
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700382 { # The state of a user&#x27;s device, as accessed by the getState and setState methods on device resources.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700383 &quot;accountState&quot;: &quot;A String&quot;, # The state of the Google account on the device. &quot;enabled&quot; indicates that the Google account on the device can be used to access Google services (including Google Play), while &quot;disabled&quot; means that it cannot. A new device is initially in the &quot;disabled&quot; state.
384 }</pre>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700385</div>
386
387<div class="method">
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700388 <code class="details" id="update">update(enterpriseId, userId, deviceId, body=None, updateMask=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700389 <pre>Updates the device policy
390
391Args:
392 enterpriseId: string, The ID of the enterprise. (required)
393 userId: string, The ID of the user. (required)
394 deviceId: string, The ID of the device. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -0700395 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700396 The object takes the form of:
397
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700398{ # A Devices resource represents a mobile device managed by the EMM and belonging to a specific enterprise user.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700399 &quot;report&quot;: { # Device report updated with the latest app states for managed apps on the device. # The device report updated with the latest app states.
400 &quot;lastUpdatedTimestampMillis&quot;: &quot;A String&quot;, # The timestamp of the last report update in milliseconds since epoch. This field will always be present.
401 &quot;appState&quot;: [ # List of app states set by managed apps on the device. App states are defined by the app&#x27;s developers. This field will always be present.
402 { # List of states set by the app.
403 &quot;keyedAppState&quot;: [ # List of keyed app states. This field will always be present.
404 { # Represents a keyed app state containing a key, timestamp, severity level, optional description, and optional data.
405 &quot;stateTimestampMillis&quot;: &quot;A String&quot;, # Timestamp of when the app set the state in milliseconds since epoch. This field will always be present.
406 &quot;message&quot;: &quot;A String&quot;, # Free-form, human-readable message describing the app state. For example, an error message. To prevent XSS, we recommend removing any HTML from the message before displaying it.
407 &quot;severity&quot;: &quot;A String&quot;, # Severity of the app state. This field will always be present.
408 &quot;data&quot;: &quot;A String&quot;, # Additional field intended for machine-readable data. For example, a number or JSON object. To prevent XSS, we recommend removing any HTML from the data before displaying it.
409 &quot;key&quot;: &quot;A String&quot;, # Key indicating what the app is providing a state for. The content of the key is set by the app&#x27;s developer. To prevent XSS, we recommend removing any HTML from the key before displaying it. This field will always be present.
410 },
411 ],
412 &quot;packageName&quot;: &quot;A String&quot;, # The package name of the app. This field will always be present.
413 },
414 ],
415 },
416 &quot;managementType&quot;: &quot;A String&quot;, # Identifies the extent to which the device is controlled by a managed Google Play EMM in various deployment configurations. Possible values include: - &quot;managedDevice&quot;, a device that has the EMM&#x27;s device policy controller (DPC) as the device owner. - &quot;managedProfile&quot;, a device that has a profile managed by the DPC (DPC is profile owner) in addition to a separate, personal profile that is unavailable to the DPC. - &quot;containerApp&quot;, no longer used (deprecated). - &quot;unmanagedProfile&quot;, a device that has been allowed (by the domain&#x27;s admin, using the Admin Console to enable the privilege) to use managed Google Play, but the profile is itself not owned by a DPC.
417 &quot;androidId&quot;: &quot;A String&quot;, # The Google Play Services Android ID for the device encoded as a lowercase hex string. For example, &quot;123456789abcdef0&quot;.
418 &quot;policy&quot;: { # The device policy for a given managed device. # The policy enforced on the device.
419 &quot;maintenanceWindow&quot;: { # Maintenance window for managed Google Play Accounts. This allows Play store to update the apps on the foreground in the designated window. # The maintenance window defining when apps running in the foreground should be updated.
420 &quot;startTimeAfterMidnightMs&quot;: &quot;A String&quot;, # Start time of the maintenance window, in milliseconds after midnight on the device. Windows can span midnight.
421 &quot;durationMs&quot;: &quot;A String&quot;, # Duration of the maintenance window, in milliseconds. The duration must be between 30 minutes and 24 hours (inclusive).
422 },
423 &quot;deviceReportPolicy&quot;: &quot;A String&quot;, # Whether the device reports app states to the EMM. The default value is &quot;deviceReportDisabled&quot;.
424 &quot;autoUpdatePolicy&quot;: &quot;A String&quot;, # The auto-update policy for apps installed on the device. &quot;choiceToTheUser&quot; allows the device&#x27;s user to configure the app update policy. &quot;always&quot; enables auto updates. &quot;never&quot; disables auto updates. &quot;wifiOnly&quot; enables auto updates only when the device is connected to wifi.
425 &quot;productPolicy&quot;: [ # The list of product policies. The productAvailabilityPolicy needs to be set to WHITELIST or ALL for the product policies to be applied.
426 { # The policy for a product.
427 &quot;productId&quot;: &quot;A String&quot;, # The ID of the product. For example, &quot;app:com.google.android.gm&quot;.
428 &quot;autoInstallPolicy&quot;: { # The auto-install policy for the product.
429 &quot;autoInstallConstraint&quot;: [ # The constraints for auto-installing the app. You can specify a maximum of one constraint.
430 { # The auto-install constraint. Defines a set of restrictions for installation. At least one of the fields must be set.
431 &quot;chargingStateConstraint&quot;: &quot;A String&quot;, # Charging state constraint.
432 &quot;networkTypeConstraint&quot;: &quot;A String&quot;, # Network type constraint.
433 &quot;deviceIdleStateConstraint&quot;: &quot;A String&quot;, # Device idle state constraint.
434 },
435 ],
436 &quot;autoInstallMode&quot;: &quot;A String&quot;, # The auto-install mode. If unset defaults to &quot;doNotAutoInstall&quot;.
437 &quot;autoInstallPriority&quot;: 42, # The priority of the install, as an unsigned integer. A lower number means higher priority.
438 &quot;minimumVersionCode&quot;: 42, # The minimum version of the app. If a lower version of the app is installed, then the app will be auto-updated according to the auto-install constraints, instead of waiting for the regular auto-update. You can set a minimum version code for at most 20 apps per device.
439 },
440 &quot;tracks&quot;: [ # Deprecated. Use trackIds instead.
441 &quot;A String&quot;,
442 ],
443 &quot;trackIds&quot;: [ # Grants the device visibility to the specified product release track(s), identified by trackIds. The list of release tracks of a product can be obtained by calling Products.Get.
444 &quot;A String&quot;,
445 ],
446 &quot;managedConfiguration&quot;: { # A managed configuration resource contains the set of managed properties defined by the app developer in the app&#x27;s managed configurations schema, as well as any configuration variables defined for the user. # The managed configuration for the product.
447 &quot;configurationVariables&quot;: { # A configuration variables resource contains the managed configuration settings ID to be applied to a single user, as well as the variable set that is attributed to the user. The variable set will be used to replace placeholders in the managed configuration settings. # Contains the ID of the managed configuration profile and the set of configuration variables (if any) defined for the user.
448 &quot;variableSet&quot;: [ # The variable set that is attributed to the user.
449 { # A variable set is a key-value pair of EMM-provided placeholders and its corresponding value, which is attributed to a user. For example, $FIRSTNAME could be a placeholder, and its value could be Alice. Placeholders should start with a &#x27;$&#x27; sign and should be alphanumeric only.
450 &quot;placeholder&quot;: &quot;A String&quot;, # The placeholder string; defined by EMM.
451 &quot;userValue&quot;: &quot;A String&quot;, # The value of the placeholder, specific to the user.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700452 },
453 ],
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700454 &quot;mcmId&quot;: &quot;A String&quot;, # The ID of the managed configurations settings.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700455 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700456 &quot;productId&quot;: &quot;A String&quot;, # The ID of the product that the managed configuration is for, e.g. &quot;app:com.google.android.gm&quot;.
457 &quot;kind&quot;: &quot;A String&quot;, # Deprecated.
458 &quot;managedProperty&quot;: [ # The set of managed properties for this configuration.
459 { # A managed property of a managed configuration. The property must match one of the properties in the app restrictions schema of the product. Exactly one of the value fields must be populated, and it must match the property&#x27;s type in the app restrictions schema.
460 &quot;valueBool&quot;: True or False, # The boolean value - this will only be present if type of the property is bool.
461 &quot;valueInteger&quot;: 42, # The integer value - this will only be present if type of the property is integer.
462 &quot;valueBundle&quot;: { # A bundle of managed properties. # The bundle of managed properties - this will only be present if type of the property is bundle.
463 &quot;managedProperty&quot;: [ # The list of managed properties.
464 # Object with schema name: ManagedProperty
Bu Sun Kim65020912020-05-20 12:08:20 -0700465 ],
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700466 },
467 &quot;valueStringArray&quot;: [ # The list of string values - this will only be present if type of the property is multiselect.
468 &quot;A String&quot;,
469 ],
470 &quot;valueString&quot;: &quot;A String&quot;, # The string value - this will only be present if type of the property is string, choice or hidden.
471 &quot;key&quot;: &quot;A String&quot;, # The unique key that identifies the property.
472 &quot;valueBundleArray&quot;: [ # The list of bundles of properties - this will only be present if type of the property is bundle_array.
473 { # A bundle of managed properties.
Bu Sun Kim65020912020-05-20 12:08:20 -0700474 &quot;managedProperty&quot;: [ # The list of managed properties.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700475 # Object with schema name: ManagedProperty
476 ],
477 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700478 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700479 },
480 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700481 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700482 &quot;autoUpdateMode&quot;: &quot;A String&quot;, # The auto-update mode for the product.
483 },
484 ],
485 &quot;productAvailabilityPolicy&quot;: &quot;A String&quot;, # The availability granted to the device for the specified products. &quot;all&quot; gives the device access to all products, regardless of approval status. &quot;all&quot; does not enable automatic visibility of &quot;alpha&quot; or &quot;beta&quot; tracks. &quot;whitelist&quot; grants the device access the products specified in productPolicy[]. Only products that are approved or products that were previously approved (products with revoked approval) by the enterprise can be whitelisted. If no value is provided, the availability set at the user level is applied by default.
486 },
487}
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700488
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700489 updateMask: string, Mask that identifies which fields to update. If not set, all modifiable fields will be modified. When set in a query parameter, this field should be specified as updateMask=&lt;field1&gt;,&lt;field2&gt;,...
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700490 x__xgafv: string, V1 error format.
491 Allowed values
492 1 - v1 error format
493 2 - v2 error format
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700494
495Returns:
496 An object of the form:
497
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700498 { # A Devices resource represents a mobile device managed by the EMM and belonging to a specific enterprise user.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700499 &quot;report&quot;: { # Device report updated with the latest app states for managed apps on the device. # The device report updated with the latest app states.
500 &quot;lastUpdatedTimestampMillis&quot;: &quot;A String&quot;, # The timestamp of the last report update in milliseconds since epoch. This field will always be present.
501 &quot;appState&quot;: [ # List of app states set by managed apps on the device. App states are defined by the app&#x27;s developers. This field will always be present.
502 { # List of states set by the app.
503 &quot;keyedAppState&quot;: [ # List of keyed app states. This field will always be present.
504 { # Represents a keyed app state containing a key, timestamp, severity level, optional description, and optional data.
505 &quot;stateTimestampMillis&quot;: &quot;A String&quot;, # Timestamp of when the app set the state in milliseconds since epoch. This field will always be present.
506 &quot;message&quot;: &quot;A String&quot;, # Free-form, human-readable message describing the app state. For example, an error message. To prevent XSS, we recommend removing any HTML from the message before displaying it.
507 &quot;severity&quot;: &quot;A String&quot;, # Severity of the app state. This field will always be present.
508 &quot;data&quot;: &quot;A String&quot;, # Additional field intended for machine-readable data. For example, a number or JSON object. To prevent XSS, we recommend removing any HTML from the data before displaying it.
509 &quot;key&quot;: &quot;A String&quot;, # Key indicating what the app is providing a state for. The content of the key is set by the app&#x27;s developer. To prevent XSS, we recommend removing any HTML from the key before displaying it. This field will always be present.
510 },
511 ],
512 &quot;packageName&quot;: &quot;A String&quot;, # The package name of the app. This field will always be present.
513 },
514 ],
515 },
516 &quot;managementType&quot;: &quot;A String&quot;, # Identifies the extent to which the device is controlled by a managed Google Play EMM in various deployment configurations. Possible values include: - &quot;managedDevice&quot;, a device that has the EMM&#x27;s device policy controller (DPC) as the device owner. - &quot;managedProfile&quot;, a device that has a profile managed by the DPC (DPC is profile owner) in addition to a separate, personal profile that is unavailable to the DPC. - &quot;containerApp&quot;, no longer used (deprecated). - &quot;unmanagedProfile&quot;, a device that has been allowed (by the domain&#x27;s admin, using the Admin Console to enable the privilege) to use managed Google Play, but the profile is itself not owned by a DPC.
517 &quot;androidId&quot;: &quot;A String&quot;, # The Google Play Services Android ID for the device encoded as a lowercase hex string. For example, &quot;123456789abcdef0&quot;.
518 &quot;policy&quot;: { # The device policy for a given managed device. # The policy enforced on the device.
519 &quot;maintenanceWindow&quot;: { # Maintenance window for managed Google Play Accounts. This allows Play store to update the apps on the foreground in the designated window. # The maintenance window defining when apps running in the foreground should be updated.
520 &quot;startTimeAfterMidnightMs&quot;: &quot;A String&quot;, # Start time of the maintenance window, in milliseconds after midnight on the device. Windows can span midnight.
521 &quot;durationMs&quot;: &quot;A String&quot;, # Duration of the maintenance window, in milliseconds. The duration must be between 30 minutes and 24 hours (inclusive).
522 },
523 &quot;deviceReportPolicy&quot;: &quot;A String&quot;, # Whether the device reports app states to the EMM. The default value is &quot;deviceReportDisabled&quot;.
524 &quot;autoUpdatePolicy&quot;: &quot;A String&quot;, # The auto-update policy for apps installed on the device. &quot;choiceToTheUser&quot; allows the device&#x27;s user to configure the app update policy. &quot;always&quot; enables auto updates. &quot;never&quot; disables auto updates. &quot;wifiOnly&quot; enables auto updates only when the device is connected to wifi.
525 &quot;productPolicy&quot;: [ # The list of product policies. The productAvailabilityPolicy needs to be set to WHITELIST or ALL for the product policies to be applied.
526 { # The policy for a product.
527 &quot;productId&quot;: &quot;A String&quot;, # The ID of the product. For example, &quot;app:com.google.android.gm&quot;.
528 &quot;autoInstallPolicy&quot;: { # The auto-install policy for the product.
529 &quot;autoInstallConstraint&quot;: [ # The constraints for auto-installing the app. You can specify a maximum of one constraint.
530 { # The auto-install constraint. Defines a set of restrictions for installation. At least one of the fields must be set.
531 &quot;chargingStateConstraint&quot;: &quot;A String&quot;, # Charging state constraint.
532 &quot;networkTypeConstraint&quot;: &quot;A String&quot;, # Network type constraint.
533 &quot;deviceIdleStateConstraint&quot;: &quot;A String&quot;, # Device idle state constraint.
534 },
535 ],
536 &quot;autoInstallMode&quot;: &quot;A String&quot;, # The auto-install mode. If unset defaults to &quot;doNotAutoInstall&quot;.
537 &quot;autoInstallPriority&quot;: 42, # The priority of the install, as an unsigned integer. A lower number means higher priority.
538 &quot;minimumVersionCode&quot;: 42, # The minimum version of the app. If a lower version of the app is installed, then the app will be auto-updated according to the auto-install constraints, instead of waiting for the regular auto-update. You can set a minimum version code for at most 20 apps per device.
539 },
540 &quot;tracks&quot;: [ # Deprecated. Use trackIds instead.
541 &quot;A String&quot;,
542 ],
543 &quot;trackIds&quot;: [ # Grants the device visibility to the specified product release track(s), identified by trackIds. The list of release tracks of a product can be obtained by calling Products.Get.
544 &quot;A String&quot;,
545 ],
546 &quot;managedConfiguration&quot;: { # A managed configuration resource contains the set of managed properties defined by the app developer in the app&#x27;s managed configurations schema, as well as any configuration variables defined for the user. # The managed configuration for the product.
547 &quot;configurationVariables&quot;: { # A configuration variables resource contains the managed configuration settings ID to be applied to a single user, as well as the variable set that is attributed to the user. The variable set will be used to replace placeholders in the managed configuration settings. # Contains the ID of the managed configuration profile and the set of configuration variables (if any) defined for the user.
548 &quot;variableSet&quot;: [ # The variable set that is attributed to the user.
549 { # A variable set is a key-value pair of EMM-provided placeholders and its corresponding value, which is attributed to a user. For example, $FIRSTNAME could be a placeholder, and its value could be Alice. Placeholders should start with a &#x27;$&#x27; sign and should be alphanumeric only.
550 &quot;placeholder&quot;: &quot;A String&quot;, # The placeholder string; defined by EMM.
551 &quot;userValue&quot;: &quot;A String&quot;, # The value of the placeholder, specific to the user.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700552 },
553 ],
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700554 &quot;mcmId&quot;: &quot;A String&quot;, # The ID of the managed configurations settings.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700555 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700556 &quot;productId&quot;: &quot;A String&quot;, # The ID of the product that the managed configuration is for, e.g. &quot;app:com.google.android.gm&quot;.
557 &quot;kind&quot;: &quot;A String&quot;, # Deprecated.
558 &quot;managedProperty&quot;: [ # The set of managed properties for this configuration.
559 { # A managed property of a managed configuration. The property must match one of the properties in the app restrictions schema of the product. Exactly one of the value fields must be populated, and it must match the property&#x27;s type in the app restrictions schema.
560 &quot;valueBool&quot;: True or False, # The boolean value - this will only be present if type of the property is bool.
561 &quot;valueInteger&quot;: 42, # The integer value - this will only be present if type of the property is integer.
562 &quot;valueBundle&quot;: { # A bundle of managed properties. # The bundle of managed properties - this will only be present if type of the property is bundle.
563 &quot;managedProperty&quot;: [ # The list of managed properties.
564 # Object with schema name: ManagedProperty
Bu Sun Kim65020912020-05-20 12:08:20 -0700565 ],
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700566 },
567 &quot;valueStringArray&quot;: [ # The list of string values - this will only be present if type of the property is multiselect.
568 &quot;A String&quot;,
569 ],
570 &quot;valueString&quot;: &quot;A String&quot;, # The string value - this will only be present if type of the property is string, choice or hidden.
571 &quot;key&quot;: &quot;A String&quot;, # The unique key that identifies the property.
572 &quot;valueBundleArray&quot;: [ # The list of bundles of properties - this will only be present if type of the property is bundle_array.
573 { # A bundle of managed properties.
Bu Sun Kim65020912020-05-20 12:08:20 -0700574 &quot;managedProperty&quot;: [ # The list of managed properties.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700575 # Object with schema name: ManagedProperty
576 ],
577 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700578 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700579 },
580 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700581 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700582 &quot;autoUpdateMode&quot;: &quot;A String&quot;, # The auto-update mode for the product.
583 },
584 ],
585 &quot;productAvailabilityPolicy&quot;: &quot;A String&quot;, # The availability granted to the device for the specified products. &quot;all&quot; gives the device access to all products, regardless of approval status. &quot;all&quot; does not enable automatic visibility of &quot;alpha&quot; or &quot;beta&quot; tracks. &quot;whitelist&quot; grants the device access the products specified in productPolicy[]. Only products that are approved or products that were previously approved (products with revoked approval) by the enterprise can be whitelisted. If no value is provided, the availability set at the user level is applied by default.
586 },
587 }</pre>
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000588</div>
589
590</body></html>