From 21a66dc807dc7e302bc854eabe9246ecfc6f7f86 Mon Sep 17 00:00:00 2001 From: yoshi-code-bot <70984784+yoshi-code-bot@users.noreply.github.com> Date: Tue, 16 Jun 2026 18:36:30 -0700 Subject: [PATCH] chore: regenerate androidmanagement client --- .../v1/2.0.0/README.md | 4 +- .../v1/model/EnrollmentToken.java | 24 ++++ .../v1/model/GoogleAuthenticationOptions.java | 108 ++++++++++++++++++ .../v1/model/SigninDetail.java | 24 ++++ ...gninDetailGoogleAuthenticationOptions.java | 76 ++++++++++++ .../v1/2.0.0/pom.xml | 4 +- .../v1/README.md | 4 +- 7 files changed, 238 insertions(+), 6 deletions(-) create mode 100644 clients/google-api-services-androidmanagement/v1/2.0.0/com/google/api/services/androidmanagement/v1/model/GoogleAuthenticationOptions.java create mode 100644 clients/google-api-services-androidmanagement/v1/2.0.0/com/google/api/services/androidmanagement/v1/model/SigninDetailGoogleAuthenticationOptions.java diff --git a/clients/google-api-services-androidmanagement/v1/2.0.0/README.md b/clients/google-api-services-androidmanagement/v1/2.0.0/README.md index ec7e3085493..0a48910738b 100644 --- a/clients/google-api-services-androidmanagement/v1/2.0.0/README.md +++ b/clients/google-api-services-androidmanagement/v1/2.0.0/README.md @@ -22,7 +22,7 @@ Add the following lines to your `pom.xml` file: com.google.apis google-api-services-androidmanagement - v1-rev20260521-2.0.0 + v1-rev20260615-2.0.0 @@ -35,7 +35,7 @@ repositories { mavenCentral() } dependencies { - implementation 'com.google.apis:google-api-services-androidmanagement:v1-rev20260521-2.0.0' + implementation 'com.google.apis:google-api-services-androidmanagement:v1-rev20260615-2.0.0' } ``` diff --git a/clients/google-api-services-androidmanagement/v1/2.0.0/com/google/api/services/androidmanagement/v1/model/EnrollmentToken.java b/clients/google-api-services-androidmanagement/v1/2.0.0/com/google/api/services/androidmanagement/v1/model/EnrollmentToken.java index 270c3c5e561..984161aa2f0 100644 --- a/clients/google-api-services-androidmanagement/v1/2.0.0/com/google/api/services/androidmanagement/v1/model/EnrollmentToken.java +++ b/clients/google-api-services-androidmanagement/v1/2.0.0/com/google/api/services/androidmanagement/v1/model/EnrollmentToken.java @@ -73,6 +73,13 @@ public final class EnrollmentToken extends com.google.api.client.json.GenericJso @com.google.api.client.util.Key private String expirationTimestamp; + /** + * Optional. Options related to Google authentication during the enrollment. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GoogleAuthenticationOptions googleAuthenticationOptions; + /** * The name of the enrollment token, which is generated by the server during creation, in the form * enterprises/{enterpriseId}/enrollmentTokens/{enrollmentTokenId}. @@ -223,6 +230,23 @@ public EnrollmentToken setExpirationTimestamp(String expirationTimestamp) { return this; } + /** + * Optional. Options related to Google authentication during the enrollment. + * @return value or {@code null} for none + */ + public GoogleAuthenticationOptions getGoogleAuthenticationOptions() { + return googleAuthenticationOptions; + } + + /** + * Optional. Options related to Google authentication during the enrollment. + * @param googleAuthenticationOptions googleAuthenticationOptions or {@code null} for none + */ + public EnrollmentToken setGoogleAuthenticationOptions(GoogleAuthenticationOptions googleAuthenticationOptions) { + this.googleAuthenticationOptions = googleAuthenticationOptions; + return this; + } + /** * The name of the enrollment token, which is generated by the server during creation, in the form * enterprises/{enterpriseId}/enrollmentTokens/{enrollmentTokenId}. diff --git a/clients/google-api-services-androidmanagement/v1/2.0.0/com/google/api/services/androidmanagement/v1/model/GoogleAuthenticationOptions.java b/clients/google-api-services-androidmanagement/v1/2.0.0/com/google/api/services/androidmanagement/v1/model/GoogleAuthenticationOptions.java new file mode 100644 index 00000000000..e02296e42a5 --- /dev/null +++ b/clients/google-api-services-androidmanagement/v1/2.0.0/com/google/api/services/androidmanagement/v1/model/GoogleAuthenticationOptions.java @@ -0,0 +1,108 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.androidmanagement.v1.model; + +/** + * Options for Google authentication during the enrollment.When triggering the enrollment with a + * SigninDetail, these options are enforced after the user completes third-party sign-in and an + * EnrollmentToken is created. If this token's authentication_requirement is set to REQUIRED, these + * options interact with the SigninDetail.googleAuthenticationOptions that initiated the flow in the + * following ways: - If the user skipped Google sign-in earlier (permitted by + * SigninDetail.googleAuthenticationOptions), an error will occur and the user will be prompted to + * sign in again. - If required_account_email is set on this token and the user signed in with a + * different email earlier, an error will occur and the user will be asked to sign in again with the + * correct account. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Android Management API. For a detailed explanation + * see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class GoogleAuthenticationOptions extends com.google.api.client.json.GenericJson { + + /** + * Optional. Specifies whether user should authenticate with Google during enrollment. If this is + * set to any value other than AUTHENTICATION_REQUIREMENT_UNSPECIFIED, the enterprise-level + * setting googleAuthenticationSettings is ignored for devices enrolled with this token. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String authenticationRequirement; + + /** + * Optional. Specifies the managed Google account that the user must use during enrollment. This + * field can only be set if AuthenticationRequirement is set to REQUIRED. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String requiredAccountEmail; + + /** + * Optional. Specifies whether user should authenticate with Google during enrollment. If this is + * set to any value other than AUTHENTICATION_REQUIREMENT_UNSPECIFIED, the enterprise-level + * setting googleAuthenticationSettings is ignored for devices enrolled with this token. + * @return value or {@code null} for none + */ + public java.lang.String getAuthenticationRequirement() { + return authenticationRequirement; + } + + /** + * Optional. Specifies whether user should authenticate with Google during enrollment. If this is + * set to any value other than AUTHENTICATION_REQUIREMENT_UNSPECIFIED, the enterprise-level + * setting googleAuthenticationSettings is ignored for devices enrolled with this token. + * @param authenticationRequirement authenticationRequirement or {@code null} for none + */ + public GoogleAuthenticationOptions setAuthenticationRequirement(java.lang.String authenticationRequirement) { + this.authenticationRequirement = authenticationRequirement; + return this; + } + + /** + * Optional. Specifies the managed Google account that the user must use during enrollment. This + * field can only be set if AuthenticationRequirement is set to REQUIRED. + * @return value or {@code null} for none + */ + public java.lang.String getRequiredAccountEmail() { + return requiredAccountEmail; + } + + /** + * Optional. Specifies the managed Google account that the user must use during enrollment. This + * field can only be set if AuthenticationRequirement is set to REQUIRED. + * @param requiredAccountEmail requiredAccountEmail or {@code null} for none + */ + public GoogleAuthenticationOptions setRequiredAccountEmail(java.lang.String requiredAccountEmail) { + this.requiredAccountEmail = requiredAccountEmail; + return this; + } + + @Override + public GoogleAuthenticationOptions set(String fieldName, Object value) { + return (GoogleAuthenticationOptions) super.set(fieldName, value); + } + + @Override + public GoogleAuthenticationOptions clone() { + return (GoogleAuthenticationOptions) super.clone(); + } + +} diff --git a/clients/google-api-services-androidmanagement/v1/2.0.0/com/google/api/services/androidmanagement/v1/model/SigninDetail.java b/clients/google-api-services-androidmanagement/v1/2.0.0/com/google/api/services/androidmanagement/v1/model/SigninDetail.java index e9dc7709dde..4ff5b6bc789 100644 --- a/clients/google-api-services-androidmanagement/v1/2.0.0/com/google/api/services/androidmanagement/v1/model/SigninDetail.java +++ b/clients/google-api-services-androidmanagement/v1/2.0.0/com/google/api/services/androidmanagement/v1/model/SigninDetail.java @@ -67,6 +67,13 @@ public final class SigninDetail extends com.google.api.client.json.GenericJson { @com.google.api.client.util.Key private java.lang.String defaultStatus; + /** + * Optional. Options related to Google authentication during the enrollment. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private SigninDetailGoogleAuthenticationOptions googleAuthenticationOptions; + /** * A JSON string whose UTF-8 representation can be used to generate a QR code to enroll a device * with this enrollment token. To enroll a device using NFC, the NFC record must contain a @@ -158,6 +165,23 @@ public SigninDetail setDefaultStatus(java.lang.String defaultStatus) { return this; } + /** + * Optional. Options related to Google authentication during the enrollment. + * @return value or {@code null} for none + */ + public SigninDetailGoogleAuthenticationOptions getGoogleAuthenticationOptions() { + return googleAuthenticationOptions; + } + + /** + * Optional. Options related to Google authentication during the enrollment. + * @param googleAuthenticationOptions googleAuthenticationOptions or {@code null} for none + */ + public SigninDetail setGoogleAuthenticationOptions(SigninDetailGoogleAuthenticationOptions googleAuthenticationOptions) { + this.googleAuthenticationOptions = googleAuthenticationOptions; + return this; + } + /** * A JSON string whose UTF-8 representation can be used to generate a QR code to enroll a device * with this enrollment token. To enroll a device using NFC, the NFC record must contain a diff --git a/clients/google-api-services-androidmanagement/v1/2.0.0/com/google/api/services/androidmanagement/v1/model/SigninDetailGoogleAuthenticationOptions.java b/clients/google-api-services-androidmanagement/v1/2.0.0/com/google/api/services/androidmanagement/v1/model/SigninDetailGoogleAuthenticationOptions.java new file mode 100644 index 00000000000..30c3faa986d --- /dev/null +++ b/clients/google-api-services-androidmanagement/v1/2.0.0/com/google/api/services/androidmanagement/v1/model/SigninDetailGoogleAuthenticationOptions.java @@ -0,0 +1,76 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.androidmanagement.v1.model; + +/** + * Options for Google authentication during the enrollment.These options control whether the Google + * authentication screen is shown, and whether it can be skipped, at the start of the sign-in flow. + * More requirements can be enforced by EnrollmentToken.googleAuthenticationOptions on the + * EnrollmentToken that is created later. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Android Management API. For a detailed explanation + * see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class SigninDetailGoogleAuthenticationOptions extends com.google.api.client.json.GenericJson { + + /** + * Optional. Specifies whether user should authenticate with Google during enrollment. If this is + * set to any value other than AUTHENTICATION_REQUIREMENT_UNSPECIFIED, the enterprise-level + * setting googleAuthenticationSettings is ignored for devices enrolled with this sign-in detail. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String authenticationRequirement; + + /** + * Optional. Specifies whether user should authenticate with Google during enrollment. If this is + * set to any value other than AUTHENTICATION_REQUIREMENT_UNSPECIFIED, the enterprise-level + * setting googleAuthenticationSettings is ignored for devices enrolled with this sign-in detail. + * @return value or {@code null} for none + */ + public java.lang.String getAuthenticationRequirement() { + return authenticationRequirement; + } + + /** + * Optional. Specifies whether user should authenticate with Google during enrollment. If this is + * set to any value other than AUTHENTICATION_REQUIREMENT_UNSPECIFIED, the enterprise-level + * setting googleAuthenticationSettings is ignored for devices enrolled with this sign-in detail. + * @param authenticationRequirement authenticationRequirement or {@code null} for none + */ + public SigninDetailGoogleAuthenticationOptions setAuthenticationRequirement(java.lang.String authenticationRequirement) { + this.authenticationRequirement = authenticationRequirement; + return this; + } + + @Override + public SigninDetailGoogleAuthenticationOptions set(String fieldName, Object value) { + return (SigninDetailGoogleAuthenticationOptions) super.set(fieldName, value); + } + + @Override + public SigninDetailGoogleAuthenticationOptions clone() { + return (SigninDetailGoogleAuthenticationOptions) super.clone(); + } + +} diff --git a/clients/google-api-services-androidmanagement/v1/2.0.0/pom.xml b/clients/google-api-services-androidmanagement/v1/2.0.0/pom.xml index 27f1379ad9a..81021537bfd 100644 --- a/clients/google-api-services-androidmanagement/v1/2.0.0/pom.xml +++ b/clients/google-api-services-androidmanagement/v1/2.0.0/pom.xml @@ -8,8 +8,8 @@ com.google.apis google-api-services-androidmanagement - v1-rev20260521-2.0.0 - Android Management API v1-rev20260521-2.0.0 + v1-rev20260615-2.0.0 + Android Management API v1-rev20260615-2.0.0 jar 2011 diff --git a/clients/google-api-services-androidmanagement/v1/README.md b/clients/google-api-services-androidmanagement/v1/README.md index ec7e3085493..0a48910738b 100644 --- a/clients/google-api-services-androidmanagement/v1/README.md +++ b/clients/google-api-services-androidmanagement/v1/README.md @@ -22,7 +22,7 @@ Add the following lines to your `pom.xml` file: com.google.apis google-api-services-androidmanagement - v1-rev20260521-2.0.0 + v1-rev20260615-2.0.0 @@ -35,7 +35,7 @@ repositories { mavenCentral() } dependencies { - implementation 'com.google.apis:google-api-services-androidmanagement:v1-rev20260521-2.0.0' + implementation 'com.google.apis:google-api-services-androidmanagement:v1-rev20260615-2.0.0' } ```