Skip to content

Commit 5d8f339

Browse files
1 parent 2fd6c43 commit 5d8f339

File tree

8 files changed

+287
-39
lines changed

8 files changed

+287
-39
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-rev20250827-2.0.0</version>
25+
<version>v1-rev20250829-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-rev20250827-2.0.0'
38+
implementation 'com.google.apis:google-api-services-androidmanagement:v1-rev20250829-2.0.0'
3939
}
4040
```
4141

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ public final class AdvancedSecurityOverrides extends com.google.api.client.json.
5656
* Controls access to developer settings: developer options and safe boot. Replaces
5757
* safeBootDisabled (deprecated) and debuggingFeaturesAllowed (deprecated). On personally-owned
5858
* devices with a work profile, setting this policy will not disable safe boot. In this case, a
59-
* NonComplianceDetail with ADMIN_TYPE is reported.
59+
* NonComplianceDetail with MANAGEMENT_MODE is reported.
6060
* The value may be {@code null}.
6161
*/
6262
@com.google.api.client.util.Key
@@ -151,7 +151,7 @@ public AdvancedSecurityOverrides setContentProtectionPolicy(java.lang.String con
151151
* Controls access to developer settings: developer options and safe boot. Replaces
152152
* safeBootDisabled (deprecated) and debuggingFeaturesAllowed (deprecated). On personally-owned
153153
* devices with a work profile, setting this policy will not disable safe boot. In this case, a
154-
* NonComplianceDetail with ADMIN_TYPE is reported.
154+
* NonComplianceDetail with MANAGEMENT_MODE is reported.
155155
* @return value or {@code null} for none
156156
*/
157157
public java.lang.String getDeveloperSettings() {
@@ -162,7 +162,7 @@ public java.lang.String getDeveloperSettings() {
162162
* Controls access to developer settings: developer options and safe boot. Replaces
163163
* safeBootDisabled (deprecated) and debuggingFeaturesAllowed (deprecated). On personally-owned
164164
* devices with a work profile, setting this policy will not disable safe boot. In this case, a
165-
* NonComplianceDetail with ADMIN_TYPE is reported.
165+
* NonComplianceDetail with MANAGEMENT_MODE is reported.
166166
* @param developerSettings developerSettings or {@code null} for none
167167
*/
168168
public AdvancedSecurityOverrides setDeveloperSettings(java.lang.String developerSettings) {

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

Lines changed: 90 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,14 @@ public final class ApplicationPolicy extends com.google.api.client.json.GenericJ
7979
@com.google.api.client.util.Key
8080
private java.lang.String credentialProviderPolicy;
8181

82+
/**
83+
* Optional. Configuration for this custom app.install_type must be set to CUSTOM for this to be
84+
* set.
85+
* The value may be {@code null}.
86+
*/
87+
@com.google.api.client.util.Key
88+
private CustomAppConfig customAppConfig;
89+
8290
/**
8391
* The default policy for all permissions requested by the app. If specified, this overrides the
8492
* policy-level default_permission_policy which applies to all apps. It does not override the
@@ -107,10 +115,11 @@ public final class ApplicationPolicy extends com.google.api.client.json.GenericJ
107115
* Configuration to enable this app as an extension app, with the capability of interacting with
108116
* Android Device Policy offline.This field can be set for at most one app.The signing key
109117
* certificate fingerprint of the app on the device must match one of the entries in
110-
* signingKeyFingerprintsSha256 or the signing key certificate fingerprints obtained from Play
111-
* Store for the app to be able to communicate with Android Device Policy. If the app is not on
112-
* Play Store and signingKeyFingerprintsSha256 is not set, a NonComplianceDetail with
113-
* INVALID_VALUE is reported.
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.
114123
* The value may be {@code null}.
115124
*/
116125
@com.google.api.client.util.Key
@@ -206,6 +215,21 @@ public final class ApplicationPolicy extends com.google.api.client.json.GenericJ
206215
@com.google.api.client.util.Key
207216
private java.lang.String preferentialNetworkId;
208217

218+
/**
219+
* 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
225+
* certificates obtained from Play Store are used.See following policy settings to see how this
226+
* field is used: choosePrivateKeyRules ApplicationPolicy.InstallType.CUSTOM
227+
* ApplicationPolicy.extensionConfig
228+
* The value may be {@code null}.
229+
*/
230+
@com.google.api.client.util.Key
231+
private java.util.List<ApplicationSigningKeyCert> signingKeyCerts;
232+
209233
/**
210234
* Optional. Specifies whether user control is permitted for the app. User control includes user
211235
* actions like force-stopping and clearing app data. Certain types of apps have special
@@ -332,6 +356,25 @@ public ApplicationPolicy setCredentialProviderPolicy(java.lang.String credential
332356
return this;
333357
}
334358

359+
/**
360+
* Optional. Configuration for this custom app.install_type must be set to CUSTOM for this to be
361+
* set.
362+
* @return value or {@code null} for none
363+
*/
364+
public CustomAppConfig getCustomAppConfig() {
365+
return customAppConfig;
366+
}
367+
368+
/**
369+
* Optional. Configuration for this custom app.install_type must be set to CUSTOM for this to be
370+
* set.
371+
* @param customAppConfig customAppConfig or {@code null} for none
372+
*/
373+
public ApplicationPolicy setCustomAppConfig(CustomAppConfig customAppConfig) {
374+
this.customAppConfig = customAppConfig;
375+
return this;
376+
}
377+
335378
/**
336379
* The default policy for all permissions requested by the app. If specified, this overrides the
337380
* policy-level default_permission_policy which applies to all apps. It does not override the
@@ -393,10 +436,11 @@ public ApplicationPolicy setDisabled(java.lang.Boolean disabled) {
393436
* Configuration to enable this app as an extension app, with the capability of interacting with
394437
* Android Device Policy offline.This field can be set for at most one app.The signing key
395438
* certificate fingerprint of the app on the device must match one of the entries in
396-
* signingKeyFingerprintsSha256 or the signing key certificate fingerprints obtained from Play
397-
* Store for the app to be able to communicate with Android Device Policy. If the app is not on
398-
* Play Store and signingKeyFingerprintsSha256 is not set, a NonComplianceDetail with
399-
* INVALID_VALUE is reported.
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.
400444
* @return value or {@code null} for none
401445
*/
402446
public ExtensionConfig getExtensionConfig() {
@@ -407,10 +451,11 @@ public ExtensionConfig getExtensionConfig() {
407451
* Configuration to enable this app as an extension app, with the capability of interacting with
408452
* Android Device Policy offline.This field can be set for at most one app.The signing key
409453
* certificate fingerprint of the app on the device must match one of the entries in
410-
* signingKeyFingerprintsSha256 or the signing key certificate fingerprints obtained from Play
411-
* Store for the app to be able to communicate with Android Device Policy. If the app is not on
412-
* Play Store and signingKeyFingerprintsSha256 is not set, a NonComplianceDetail with
413-
* INVALID_VALUE is reported.
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.
414459
* @param extensionConfig extensionConfig or {@code null} for none
415460
*/
416461
public ApplicationPolicy setExtensionConfig(ExtensionConfig extensionConfig) {
@@ -628,6 +673,39 @@ public ApplicationPolicy setPreferentialNetworkId(java.lang.String preferentialN
628673
return this;
629674
}
630675

676+
/**
677+
* 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
683+
* certificates obtained from Play Store are used.See following policy settings to see how this
684+
* field is used: choosePrivateKeyRules ApplicationPolicy.InstallType.CUSTOM
685+
* ApplicationPolicy.extensionConfig
686+
* @return value or {@code null} for none
687+
*/
688+
public java.util.List<ApplicationSigningKeyCert> getSigningKeyCerts() {
689+
return signingKeyCerts;
690+
}
691+
692+
/**
693+
* 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
699+
* certificates obtained from Play Store are used.See following policy settings to see how this
700+
* field is used: choosePrivateKeyRules ApplicationPolicy.InstallType.CUSTOM
701+
* ApplicationPolicy.extensionConfig
702+
* @param signingKeyCerts signingKeyCerts or {@code null} for none
703+
*/
704+
public ApplicationPolicy setSigningKeyCerts(java.util.List<ApplicationSigningKeyCert> signingKeyCerts) {
705+
this.signingKeyCerts = signingKeyCerts;
706+
return this;
707+
}
708+
631709
/**
632710
* Optional. Specifies whether user control is permitted for the app. User control includes user
633711
* actions like force-stopping and clearing app data. Certain types of apps have special
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,100 @@
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+
* The application signing key certificate.
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 ApplicationSigningKeyCert extends com.google.api.client.json.GenericJson {
32+
33+
/**
34+
* Required. The SHA-256 hash value of the signing key certificate of the app. This must be a
35+
* valid SHA-256 hash value, i.e. 32 bytes. Otherwise, the policy is rejected.
36+
* The value may be {@code null}.
37+
*/
38+
@com.google.api.client.util.Key
39+
private java.lang.String signingKeyCertFingerprintSha256;
40+
41+
/**
42+
* Required. The SHA-256 hash value of the signing key certificate of the app. This must be a
43+
* valid SHA-256 hash value, i.e. 32 bytes. Otherwise, the policy is rejected.
44+
* @see #decodeSigningKeyCertFingerprintSha256()
45+
* @return value or {@code null} for none
46+
*/
47+
public java.lang.String getSigningKeyCertFingerprintSha256() {
48+
return signingKeyCertFingerprintSha256;
49+
}
50+
51+
/**
52+
* Required. The SHA-256 hash value of the signing key certificate of the app. This must be a
53+
* valid SHA-256 hash value, i.e. 32 bytes. Otherwise, the policy is rejected.
54+
* @see #getSigningKeyCertFingerprintSha256()
55+
* @return Base64 decoded value or {@code null} for none
56+
*
57+
* @since 1.14
58+
*/
59+
public byte[] decodeSigningKeyCertFingerprintSha256() {
60+
return com.google.api.client.util.Base64.decodeBase64(signingKeyCertFingerprintSha256);
61+
}
62+
63+
/**
64+
* Required. The SHA-256 hash value of the signing key certificate of the app. This must be a
65+
* valid SHA-256 hash value, i.e. 32 bytes. Otherwise, the policy is rejected.
66+
* @see #encodeSigningKeyCertFingerprintSha256()
67+
* @param signingKeyCertFingerprintSha256 signingKeyCertFingerprintSha256 or {@code null} for none
68+
*/
69+
public ApplicationSigningKeyCert setSigningKeyCertFingerprintSha256(java.lang.String signingKeyCertFingerprintSha256) {
70+
this.signingKeyCertFingerprintSha256 = signingKeyCertFingerprintSha256;
71+
return this;
72+
}
73+
74+
/**
75+
* Required. The SHA-256 hash value of the signing key certificate of the app. This must be a
76+
* valid SHA-256 hash value, i.e. 32 bytes. Otherwise, the policy is rejected.
77+
* @see #setSigningKeyCertFingerprintSha256()
78+
*
79+
* <p>
80+
* The value is encoded Base64 or {@code null} for none.
81+
* </p>
82+
*
83+
* @since 1.14
84+
*/
85+
public ApplicationSigningKeyCert encodeSigningKeyCertFingerprintSha256(byte[] signingKeyCertFingerprintSha256) {
86+
this.signingKeyCertFingerprintSha256 = com.google.api.client.util.Base64.encodeBase64URLSafeString(signingKeyCertFingerprintSha256);
87+
return this;
88+
}
89+
90+
@Override
91+
public ApplicationSigningKeyCert set(String fieldName, Object value) {
92+
return (ApplicationSigningKeyCert) super.set(fieldName, value);
93+
}
94+
95+
@Override
96+
public ApplicationSigningKeyCert clone() {
97+
return (ApplicationSigningKeyCert) super.clone();
98+
}
99+
100+
}

0 commit comments

Comments
 (0)