Skip to content

Commit abbce18

Browse files
1 parent 00fc547 commit abbce18

File tree

5 files changed

+187
-45
lines changed

5 files changed

+187
-45
lines changed

clients/google-api-services-androidmanagement/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-androidmanagement</artifactId>
25-
<version>v1-rev20250909-2.0.0</version>
25+
<version>v1-rev20250916-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-androidmanagement:v1-rev20250909-2.0.0'
38+
implementation 'com.google.apis:google-api-services-androidmanagement:v1-rev20250916-2.0.0'
3939
}
4040
```
4141

clients/google-api-services-androidmanagement/v1/2.0.0/com/google/api/services/androidmanagement/v1/model/ApplicationPolicy.java

Lines changed: 114 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -113,13 +113,14 @@ public final class ApplicationPolicy extends com.google.api.client.json.GenericJ
113113

114114
/**
115115
* Configuration to enable this app as an extension app, with the capability of interacting with
116-
* Android Device Policy offline.This field can be set for at most one app.The signing key
117-
* certificate fingerprint of the app on the device must match one of the entries in
118-
* ApplicationPolicy.signingKeyCerts or ExtensionConfig.signingKeyFingerprintsSha256 (deprecated)
119-
* or the signing key certificate fingerprints obtained from Play Store for the app to be able to
120-
* communicate with Android Device Policy. If the app is not on Play Store and if
121-
* ApplicationPolicy.signingKeyCerts and ExtensionConfig.signingKeyFingerprintsSha256 (deprecated)
122-
* are not set, a NonComplianceDetail with INVALID_VALUE is reported.
116+
* Android Device Policy offline.This field can be set for at most one app. If there is any app
117+
* with COMPANION_APP role, this field cannot be set.The signing key certificate fingerprint of
118+
* the app on the device must match one of the entries in ApplicationPolicy.signingKeyCerts or
119+
* ExtensionConfig.signingKeyFingerprintsSha256 (deprecated) or the signing key certificate
120+
* fingerprints obtained from Play Store for the app to be able to communicate with Android Device
121+
* Policy. If the app is not on Play Store and if ApplicationPolicy.signingKeyCerts and
122+
* ExtensionConfig.signingKeyFingerprintsSha256 (deprecated) are not set, a NonComplianceDetail
123+
* with INVALID_VALUE is reported.
123124
* The value may be {@code null}.
124125
*/
125126
@com.google.api.client.util.Key
@@ -215,16 +216,39 @@ public final class ApplicationPolicy extends com.google.api.client.json.GenericJ
215216
@com.google.api.client.util.Key
216217
private java.lang.String preferentialNetworkId;
217218

219+
/**
220+
* Optional. Roles the app has.Apps having certain roles can be exempted from power and background
221+
* execution restrictions, suspension and hibernation on Android 14 and above. The user control
222+
* can also be disallowed for apps with certain roles on Android 11 and above. Refer to the
223+
* documentation of each RoleType for more details.The app is notified about the roles that are
224+
* set for it if the app has a notification receiver service with . The app is notified whenever
225+
* its roles are updated or after the app is installed when it has nonempty list of roles. The app
226+
* can use this notification to bootstrap itself after the installation. See Integrate with the
227+
* AMAPI SDK (https://developers.google.com/android/management/sdk-integration) and Manage app
228+
* roles (https://developers.google.com/android/management/app-roles) guides for more details on
229+
* the requirements for the service.For the exemptions to be applied and the app to be notified
230+
* about the roles, the signing key certificate fingerprint of the app on the device must match
231+
* one of the signing key certificate fingerprints obtained from Play Store or one of the entries
232+
* in ApplicationPolicy.signingKeyCerts. Otherwise, a NonComplianceDetail with
233+
* APP_SIGNING_CERT_MISMATCH is reported.There must not be duplicate roles with the same roleType.
234+
* Multiple apps cannot hold a role with the same roleType. A role with type ROLE_TYPE_UNSPECIFIED
235+
* is not allowed.
236+
* The value may be {@code null}.
237+
*/
238+
@com.google.api.client.util.Key
239+
private java.util.List<Role> roles;
240+
218241
/**
219242
* Optional. Signing key certificates of the app.This field is required in the following cases:
220-
* The app has installType set to CUSTOM (i.e. a custom app). The app has extensionConfig set
221-
* (i.e. an extension app) but ExtensionConfig.signingKeyFingerprintsSha256 (deprecated) is not
222-
* set and the app does not exist on the Play Store.If this field is not set for a custom app, the
223-
* policy is rejected. If it is not set when required for a non-custom app, a NonComplianceDetail
224-
* with INVALID_VALUE is reported.For other cases, this field is optional and the signing key
243+
* The app has installType set to CUSTOM (i.e. a custom app). The app has roles set to a nonempty
244+
* list and the app does not exist on the Play Store. The app has extensionConfig set (i.e. an
245+
* extension app) but ExtensionConfig.signingKeyFingerprintsSha256 (deprecated) is not set and the
246+
* app does not exist on the Play Store.If this field is not set for a custom app, the policy is
247+
* rejected. If it is not set when required for a non-custom app, a NonComplianceDetail with
248+
* INVALID_VALUE is reported.For other cases, this field is optional and the signing key
225249
* certificates obtained from Play Store are used.See following policy settings to see how this
226250
* field is used: choosePrivateKeyRules ApplicationPolicy.InstallType.CUSTOM
227-
* ApplicationPolicy.extensionConfig
251+
* ApplicationPolicy.extensionConfig ApplicationPolicy.roles
228252
* The value may be {@code null}.
229253
*/
230254
@com.google.api.client.util.Key
@@ -434,13 +458,14 @@ public ApplicationPolicy setDisabled(java.lang.Boolean disabled) {
434458

435459
/**
436460
* Configuration to enable this app as an extension app, with the capability of interacting with
437-
* Android Device Policy offline.This field can be set for at most one app.The signing key
438-
* certificate fingerprint of the app on the device must match one of the entries in
439-
* ApplicationPolicy.signingKeyCerts or ExtensionConfig.signingKeyFingerprintsSha256 (deprecated)
440-
* or the signing key certificate fingerprints obtained from Play Store for the app to be able to
441-
* communicate with Android Device Policy. If the app is not on Play Store and if
442-
* ApplicationPolicy.signingKeyCerts and ExtensionConfig.signingKeyFingerprintsSha256 (deprecated)
443-
* are not set, a NonComplianceDetail with INVALID_VALUE is reported.
461+
* Android Device Policy offline.This field can be set for at most one app. If there is any app
462+
* with COMPANION_APP role, this field cannot be set.The signing key certificate fingerprint of
463+
* the app on the device must match one of the entries in ApplicationPolicy.signingKeyCerts or
464+
* ExtensionConfig.signingKeyFingerprintsSha256 (deprecated) or the signing key certificate
465+
* fingerprints obtained from Play Store for the app to be able to communicate with Android Device
466+
* Policy. If the app is not on Play Store and if ApplicationPolicy.signingKeyCerts and
467+
* ExtensionConfig.signingKeyFingerprintsSha256 (deprecated) are not set, a NonComplianceDetail
468+
* with INVALID_VALUE is reported.
444469
* @return value or {@code null} for none
445470
*/
446471
public ExtensionConfig getExtensionConfig() {
@@ -449,13 +474,14 @@ public ExtensionConfig getExtensionConfig() {
449474

450475
/**
451476
* Configuration to enable this app as an extension app, with the capability of interacting with
452-
* Android Device Policy offline.This field can be set for at most one app.The signing key
453-
* certificate fingerprint of the app on the device must match one of the entries in
454-
* ApplicationPolicy.signingKeyCerts or ExtensionConfig.signingKeyFingerprintsSha256 (deprecated)
455-
* or the signing key certificate fingerprints obtained from Play Store for the app to be able to
456-
* communicate with Android Device Policy. If the app is not on Play Store and if
457-
* ApplicationPolicy.signingKeyCerts and ExtensionConfig.signingKeyFingerprintsSha256 (deprecated)
458-
* are not set, a NonComplianceDetail with INVALID_VALUE is reported.
477+
* Android Device Policy offline.This field can be set for at most one app. If there is any app
478+
* with COMPANION_APP role, this field cannot be set.The signing key certificate fingerprint of
479+
* the app on the device must match one of the entries in ApplicationPolicy.signingKeyCerts or
480+
* ExtensionConfig.signingKeyFingerprintsSha256 (deprecated) or the signing key certificate
481+
* fingerprints obtained from Play Store for the app to be able to communicate with Android Device
482+
* Policy. If the app is not on Play Store and if ApplicationPolicy.signingKeyCerts and
483+
* ExtensionConfig.signingKeyFingerprintsSha256 (deprecated) are not set, a NonComplianceDetail
484+
* with INVALID_VALUE is reported.
459485
* @param extensionConfig extensionConfig or {@code null} for none
460486
*/
461487
public ApplicationPolicy setExtensionConfig(ExtensionConfig extensionConfig) {
@@ -673,16 +699,64 @@ public ApplicationPolicy setPreferentialNetworkId(java.lang.String preferentialN
673699
return this;
674700
}
675701

702+
/**
703+
* Optional. Roles the app has.Apps having certain roles can be exempted from power and background
704+
* execution restrictions, suspension and hibernation on Android 14 and above. The user control
705+
* can also be disallowed for apps with certain roles on Android 11 and above. Refer to the
706+
* documentation of each RoleType for more details.The app is notified about the roles that are
707+
* set for it if the app has a notification receiver service with . The app is notified whenever
708+
* its roles are updated or after the app is installed when it has nonempty list of roles. The app
709+
* can use this notification to bootstrap itself after the installation. See Integrate with the
710+
* AMAPI SDK (https://developers.google.com/android/management/sdk-integration) and Manage app
711+
* roles (https://developers.google.com/android/management/app-roles) guides for more details on
712+
* the requirements for the service.For the exemptions to be applied and the app to be notified
713+
* about the roles, the signing key certificate fingerprint of the app on the device must match
714+
* one of the signing key certificate fingerprints obtained from Play Store or one of the entries
715+
* in ApplicationPolicy.signingKeyCerts. Otherwise, a NonComplianceDetail with
716+
* APP_SIGNING_CERT_MISMATCH is reported.There must not be duplicate roles with the same roleType.
717+
* Multiple apps cannot hold a role with the same roleType. A role with type ROLE_TYPE_UNSPECIFIED
718+
* is not allowed.
719+
* @return value or {@code null} for none
720+
*/
721+
public java.util.List<Role> getRoles() {
722+
return roles;
723+
}
724+
725+
/**
726+
* Optional. Roles the app has.Apps having certain roles can be exempted from power and background
727+
* execution restrictions, suspension and hibernation on Android 14 and above. The user control
728+
* can also be disallowed for apps with certain roles on Android 11 and above. Refer to the
729+
* documentation of each RoleType for more details.The app is notified about the roles that are
730+
* set for it if the app has a notification receiver service with . The app is notified whenever
731+
* its roles are updated or after the app is installed when it has nonempty list of roles. The app
732+
* can use this notification to bootstrap itself after the installation. See Integrate with the
733+
* AMAPI SDK (https://developers.google.com/android/management/sdk-integration) and Manage app
734+
* roles (https://developers.google.com/android/management/app-roles) guides for more details on
735+
* the requirements for the service.For the exemptions to be applied and the app to be notified
736+
* about the roles, the signing key certificate fingerprint of the app on the device must match
737+
* one of the signing key certificate fingerprints obtained from Play Store or one of the entries
738+
* in ApplicationPolicy.signingKeyCerts. Otherwise, a NonComplianceDetail with
739+
* APP_SIGNING_CERT_MISMATCH is reported.There must not be duplicate roles with the same roleType.
740+
* Multiple apps cannot hold a role with the same roleType. A role with type ROLE_TYPE_UNSPECIFIED
741+
* is not allowed.
742+
* @param roles roles or {@code null} for none
743+
*/
744+
public ApplicationPolicy setRoles(java.util.List<Role> roles) {
745+
this.roles = roles;
746+
return this;
747+
}
748+
676749
/**
677750
* Optional. Signing key certificates of the app.This field is required in the following cases:
678-
* The app has installType set to CUSTOM (i.e. a custom app). The app has extensionConfig set
679-
* (i.e. an extension app) but ExtensionConfig.signingKeyFingerprintsSha256 (deprecated) is not
680-
* set and the app does not exist on the Play Store.If this field is not set for a custom app, the
681-
* policy is rejected. If it is not set when required for a non-custom app, a NonComplianceDetail
682-
* with INVALID_VALUE is reported.For other cases, this field is optional and the signing key
751+
* The app has installType set to CUSTOM (i.e. a custom app). The app has roles set to a nonempty
752+
* list and the app does not exist on the Play Store. The app has extensionConfig set (i.e. an
753+
* extension app) but ExtensionConfig.signingKeyFingerprintsSha256 (deprecated) is not set and the
754+
* app does not exist on the Play Store.If this field is not set for a custom app, the policy is
755+
* rejected. If it is not set when required for a non-custom app, a NonComplianceDetail with
756+
* INVALID_VALUE is reported.For other cases, this field is optional and the signing key
683757
* certificates obtained from Play Store are used.See following policy settings to see how this
684758
* field is used: choosePrivateKeyRules ApplicationPolicy.InstallType.CUSTOM
685-
* ApplicationPolicy.extensionConfig
759+
* ApplicationPolicy.extensionConfig ApplicationPolicy.roles
686760
* @return value or {@code null} for none
687761
*/
688762
public java.util.List<ApplicationSigningKeyCert> getSigningKeyCerts() {
@@ -691,14 +765,15 @@ public java.util.List<ApplicationSigningKeyCert> getSigningKeyCerts() {
691765

692766
/**
693767
* Optional. Signing key certificates of the app.This field is required in the following cases:
694-
* The app has installType set to CUSTOM (i.e. a custom app). The app has extensionConfig set
695-
* (i.e. an extension app) but ExtensionConfig.signingKeyFingerprintsSha256 (deprecated) is not
696-
* set and the app does not exist on the Play Store.If this field is not set for a custom app, the
697-
* policy is rejected. If it is not set when required for a non-custom app, a NonComplianceDetail
698-
* with INVALID_VALUE is reported.For other cases, this field is optional and the signing key
768+
* The app has installType set to CUSTOM (i.e. a custom app). The app has roles set to a nonempty
769+
* list and the app does not exist on the Play Store. The app has extensionConfig set (i.e. an
770+
* extension app) but ExtensionConfig.signingKeyFingerprintsSha256 (deprecated) is not set and the
771+
* app does not exist on the Play Store.If this field is not set for a custom app, the policy is
772+
* rejected. If it is not set when required for a non-custom app, a NonComplianceDetail with
773+
* INVALID_VALUE is reported.For other cases, this field is optional and the signing key
699774
* certificates obtained from Play Store are used.See following policy settings to see how this
700775
* field is used: choosePrivateKeyRules ApplicationPolicy.InstallType.CUSTOM
701-
* ApplicationPolicy.extensionConfig
776+
* ApplicationPolicy.extensionConfig ApplicationPolicy.roles
702777
* @param signingKeyCerts signingKeyCerts or {@code null} for none
703778
*/
704779
public ApplicationPolicy setSigningKeyCerts(java.util.List<ApplicationSigningKeyCert> signingKeyCerts) {
Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
/*
2+
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
3+
* in compliance with the License. You may obtain a copy of the License at
4+
*
5+
* http://www.apache.org/licenses/LICENSE-2.0
6+
*
7+
* Unless required by applicable law or agreed to in writing, software distributed under the License
8+
* is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
9+
* or implied. See the License for the specific language governing permissions and limitations under
10+
* the License.
11+
*/
12+
/*
13+
* This code was generated by https://github.com/googleapis/google-api-java-client-services/
14+
* Modify at your own risk.
15+
*/
16+
17+
package com.google.api.services.androidmanagement.v1.model;
18+
19+
/**
20+
* Role an app can have.
21+
*
22+
* <p> This is the Java data model class that specifies how to parse/serialize into the JSON that is
23+
* transmitted over HTTP when working with the Android Management API. For a detailed explanation
24+
* see:
25+
* <a href="https://developers.google.com/api-client-library/java/google-http-java-client/json">https://developers.google.com/api-client-library/java/google-http-java-client/json</a>
26+
* </p>
27+
*
28+
* @author Google, Inc.
29+
*/
30+
@SuppressWarnings("javadoc")
31+
public final class Role extends com.google.api.client.json.GenericJson {
32+
33+
/**
34+
* Required. The type of the role an app can have.
35+
* The value may be {@code null}.
36+
*/
37+
@com.google.api.client.util.Key
38+
private java.lang.String roleType;
39+
40+
/**
41+
* Required. The type of the role an app can have.
42+
* @return value or {@code null} for none
43+
*/
44+
public java.lang.String getRoleType() {
45+
return roleType;
46+
}
47+
48+
/**
49+
* Required. The type of the role an app can have.
50+
* @param roleType roleType or {@code null} for none
51+
*/
52+
public Role setRoleType(java.lang.String roleType) {
53+
this.roleType = roleType;
54+
return this;
55+
}
56+
57+
@Override
58+
public Role set(String fieldName, Object value) {
59+
return (Role) super.set(fieldName, value);
60+
}
61+
62+
@Override
63+
public Role clone() {
64+
return (Role) super.clone();
65+
}
66+
67+
}

clients/google-api-services-androidmanagement/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-androidmanagement</artifactId>
11-
<version>v1-rev20250909-2.0.0</version>
12-
<name>Android Management API v1-rev20250909-2.0.0</name>
11+
<version>v1-rev20250916-2.0.0</version>
12+
<name>Android Management API v1-rev20250916-2.0.0</name>
1313
<packaging>jar</packaging>
1414

1515
<inceptionYear>2011</inceptionYear>

clients/google-api-services-androidmanagement/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-androidmanagement</artifactId>
25-
<version>v1-rev20250909-2.0.0</version>
25+
<version>v1-rev20250916-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-androidmanagement:v1-rev20250909-2.0.0'
38+
implementation 'com.google.apis:google-api-services-androidmanagement:v1-rev20250916-2.0.0'
3939
}
4040
```
4141

0 commit comments

Comments
 (0)