Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ Add the following lines to your `pom.xml` file:
<dependency>
<groupId>com.google.apis</groupId>
<artifactId>google-api-services-androidmanagement</artifactId>
<version>v1-rev20260521-2.0.0</version>
<version>v1-rev20260615-2.0.0</version>
</dependency>
</dependencies>
</project>
Expand All @@ -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'
}
```

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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}.
Expand Down Expand Up @@ -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}.
Expand Down
Original file line number Diff line number Diff line change
@@ -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.
*
* <p> 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:
* <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>
* </p>
*
* @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();
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
@@ -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.
*
* <p> 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:
* <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>
* </p>
*
* @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();
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@

<groupId>com.google.apis</groupId>
<artifactId>google-api-services-androidmanagement</artifactId>
<version>v1-rev20260521-2.0.0</version>
<name>Android Management API v1-rev20260521-2.0.0</name>
<version>v1-rev20260615-2.0.0</version>
<name>Android Management API v1-rev20260615-2.0.0</name>
<packaging>jar</packaging>

<inceptionYear>2011</inceptionYear>
Expand Down
4 changes: 2 additions & 2 deletions clients/google-api-services-androidmanagement/v1/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ Add the following lines to your `pom.xml` file:
<dependency>
<groupId>com.google.apis</groupId>
<artifactId>google-api-services-androidmanagement</artifactId>
<version>v1-rev20260521-2.0.0</version>
<version>v1-rev20260615-2.0.0</version>
</dependency>
</dependencies>
</project>
Expand All @@ -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'
}
```

Expand Down
Loading