Skip to content

Commit 996bc76

Browse files
1 parent 1228a0b commit 996bc76

4 files changed

Lines changed: 38 additions & 22 deletions

File tree

clients/google-api-services-androidenterprise/v1/2.0.0/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ Add the following lines to your `pom.xml` file:
2222
<dependency>
2323
<groupId>com.google.apis</groupId>
2424
<artifactId>google-api-services-androidenterprise</artifactId>
25-
<version>v1-rev20250720-2.0.0</version>
25+
<version>v1-rev20260302-2.0.0</version>
2626
</dependency>
2727
</dependencies>
2828
</project>
@@ -35,7 +35,7 @@ repositories {
3535
mavenCentral()
3636
}
3737
dependencies {
38-
implementation 'com.google.apis:google-api-services-androidenterprise:v1-rev20250720-2.0.0'
38+
implementation 'com.google.apis:google-api-services-androidenterprise:v1-rev20260302-2.0.0'
3939
}
4040
```
4141

clients/google-api-services-androidenterprise/v1/2.0.0/com/google/api/services/androidenterprise/AndroidEnterprise.java

Lines changed: 32 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -477,10 +477,15 @@ public Get set(String parameterName, Object value) {
477477
}
478478
}
479479
/**
480-
* Retrieves whether a device's access to Google services is enabled or disabled. The device state
481-
* takes effect only if enforcing EMM policies on Android devices is enabled in the Google Admin
482-
* Console. Otherwise, the device state is ignored and all devices are allowed access to Google
483-
* services. This is only supported for Google-managed users.
480+
* Checks if a device can access Google apps and services for a user. Returns whether access is
481+
* "enabled" or "disabled". A "disabled" state prevents the user's Managed Google Account on the
482+
* device from successfully authenticating with Google. This blocks access to most Google
483+
* applications and services, including Google Play, as the device cannot prove its entitlement to
484+
* access them. New devices default to "disabled". Important: Enforcement of this state depends on
485+
* the following conditions: * The user must be a managed google account. * The enterprise must be a
486+
* managed google domain. * Third-party Android mobile management must be active in the Google Admin
487+
* Console for the user's Organizational Unit. If these conditions aren't met, access may still be
488+
* possible even in a "disabled" state.
484489
*
485490
* Create a request for the method "devices.getState".
486491
*
@@ -503,10 +508,15 @@ public class GetState extends AndroidEnterpriseRequest<com.google.api.services.a
503508
private static final String REST_PATH = "androidenterprise/v1/enterprises/{enterpriseId}/users/{userId}/devices/{deviceId}/state";
504509

505510
/**
506-
* Retrieves whether a device's access to Google services is enabled or disabled. The device state
507-
* takes effect only if enforcing EMM policies on Android devices is enabled in the Google Admin
508-
* Console. Otherwise, the device state is ignored and all devices are allowed access to Google
509-
* services. This is only supported for Google-managed users.
511+
* Checks if a device can access Google apps and services for a user. Returns whether access is
512+
* "enabled" or "disabled". A "disabled" state prevents the user's Managed Google Account on the
513+
* device from successfully authenticating with Google. This blocks access to most Google
514+
* applications and services, including Google Play, as the device cannot prove its entitlement to
515+
* access them. New devices default to "disabled". Important: Enforcement of this state depends on
516+
* the following conditions: * The user must be a managed google account. * The enterprise must be
517+
* a managed google domain. * Third-party Android mobile management must be active in the Google
518+
* Admin Console for the user's Organizational Unit. If these conditions aren't met, access may
519+
* still be possible even in a "disabled" state.
510520
*
511521
* Create a request for the method "devices.getState".
512522
*
@@ -792,10 +802,13 @@ public List set(String parameterName, Object value) {
792802
}
793803
}
794804
/**
795-
* Sets whether a device's access to Google services is enabled or disabled. The device state takes
796-
* effect only if enforcing EMM policies on Android devices is enabled in the Google Admin Console.
797-
* Otherwise, the device state is ignored and all devices are allowed access to Google services.
798-
* This is only supported for Google-managed users.
805+
* Sets whether a device's access to Google services (including Google Play) is enabled or disabled
806+
* for the specified user. Setting the state to "enabled" allows the Google Account to access Google
807+
* services, while "disabled" blocks access by preventing OAuth token issuance. Preconditions for
808+
* Enforcement: 1. This setting is only effective for Google-managed users. 2. The enterprise must
809+
* be linked to a Google Managed Domain. 3. Enforcement requires third-party Android mobile
810+
* management to be enabled within the Google Admin Console for the user's Organizational Unit. If
811+
* these preconditions are not met, changes to this state may be ignored.
799812
*
800813
* Create a request for the method "devices.setState".
801814
*
@@ -819,10 +832,13 @@ public class SetState extends AndroidEnterpriseRequest<com.google.api.services.a
819832
private static final String REST_PATH = "androidenterprise/v1/enterprises/{enterpriseId}/users/{userId}/devices/{deviceId}/state";
820833

821834
/**
822-
* Sets whether a device's access to Google services is enabled or disabled. The device state
823-
* takes effect only if enforcing EMM policies on Android devices is enabled in the Google Admin
824-
* Console. Otherwise, the device state is ignored and all devices are allowed access to Google
825-
* services. This is only supported for Google-managed users.
835+
* Sets whether a device's access to Google services (including Google Play) is enabled or
836+
* disabled for the specified user. Setting the state to "enabled" allows the Google Account to
837+
* access Google services, while "disabled" blocks access by preventing OAuth token issuance.
838+
* Preconditions for Enforcement: 1. This setting is only effective for Google-managed users. 2.
839+
* The enterprise must be linked to a Google Managed Domain. 3. Enforcement requires third-party
840+
* Android mobile management to be enabled within the Google Admin Console for the user's
841+
* Organizational Unit. If these preconditions are not met, changes to this state may be ignored.
826842
*
827843
* Create a request for the method "devices.setState".
828844
*

clients/google-api-services-androidenterprise/v1/2.0.0/pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@
88

99
<groupId>com.google.apis</groupId>
1010
<artifactId>google-api-services-androidenterprise</artifactId>
11-
<version>v1-rev20250720-2.0.0</version>
12-
<name>Google Play EMM API v1-rev20250720-2.0.0</name>
11+
<version>v1-rev20260302-2.0.0</version>
12+
<name>Google Play EMM API v1-rev20260302-2.0.0</name>
1313
<packaging>jar</packaging>
1414

1515
<inceptionYear>2011</inceptionYear>

clients/google-api-services-androidenterprise/v1/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ Add the following lines to your `pom.xml` file:
2222
<dependency>
2323
<groupId>com.google.apis</groupId>
2424
<artifactId>google-api-services-androidenterprise</artifactId>
25-
<version>v1-rev20250720-2.0.0</version>
25+
<version>v1-rev20260302-2.0.0</version>
2626
</dependency>
2727
</dependencies>
2828
</project>
@@ -35,7 +35,7 @@ repositories {
3535
mavenCentral()
3636
}
3737
dependencies {
38-
implementation 'com.google.apis:google-api-services-androidenterprise:v1-rev20250720-2.0.0'
38+
implementation 'com.google.apis:google-api-services-androidenterprise:v1-rev20260302-2.0.0'
3939
}
4040
```
4141

0 commit comments

Comments
 (0)