Skip to content

Commit af3772f

Browse files
1 parent c3d24b3 commit af3772f

File tree

11 files changed

+298
-15
lines changed

11 files changed

+298
-15
lines changed

clients/google-api-services-admin/directory_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-admin-directory</artifactId>
25-
<version>directory_v1-rev20251107-2.0.0</version>
25+
<version>directory_v1-rev20251124-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-admin-directory:directory_v1-rev20251107-2.0.0'
38+
implementation 'com.google.apis:google-api-services-admin-directory:directory_v1-rev20251124-2.0.0'
3939
}
4040
```
4141

clients/google-api-services-admin/directory_v1/2.0.0/com/google/api/services/directory/Directory.java

Lines changed: 103 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17194,6 +17194,109 @@ public Users users() {
1719417194
*/
1719517195
public class Users {
1719617196

17197+
/**
17198+
* Create a guest user with access to a [subset of Workspace
17199+
* capabilities](https://support.google.com/a/answer/16558545?hl=en). This feature is currently in
17200+
* Alpha. Please reach out to support if you are interested in trying this feature.
17201+
*
17202+
* Create a request for the method "users.createGuest".
17203+
*
17204+
* This request holds the parameters needed by the admin server. After setting any optional
17205+
* parameters, call the {@link CreateGuest#execute()} method to invoke the remote operation.
17206+
*
17207+
* @param content the {@link com.google.api.services.directory.model.DirectoryUsersCreateGuestRequest}
17208+
* @return the request
17209+
*/
17210+
public CreateGuest createGuest(com.google.api.services.directory.model.DirectoryUsersCreateGuestRequest content) throws java.io.IOException {
17211+
CreateGuest result = new CreateGuest(content);
17212+
initialize(result);
17213+
return result;
17214+
}
17215+
17216+
public class CreateGuest extends DirectoryRequest<com.google.api.services.directory.model.User> {
17217+
17218+
private static final String REST_PATH = "admin/directory/v1/users:createGuest";
17219+
17220+
/**
17221+
* Create a guest user with access to a [subset of Workspace
17222+
* capabilities](https://support.google.com/a/answer/16558545?hl=en). This feature is currently in
17223+
* Alpha. Please reach out to support if you are interested in trying this feature.
17224+
*
17225+
* Create a request for the method "users.createGuest".
17226+
*
17227+
* This request holds the parameters needed by the the admin server. After setting any optional
17228+
* parameters, call the {@link CreateGuest#execute()} method to invoke the remote operation. <p>
17229+
* {@link
17230+
* CreateGuest#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)}
17231+
* must be called to initialize this instance immediately after invoking the constructor. </p>
17232+
*
17233+
* @param content the {@link com.google.api.services.directory.model.DirectoryUsersCreateGuestRequest}
17234+
* @since 1.13
17235+
*/
17236+
protected CreateGuest(com.google.api.services.directory.model.DirectoryUsersCreateGuestRequest content) {
17237+
super(Directory.this, "POST", REST_PATH, content, com.google.api.services.directory.model.User.class);
17238+
}
17239+
17240+
@Override
17241+
public CreateGuest set$Xgafv(java.lang.String $Xgafv) {
17242+
return (CreateGuest) super.set$Xgafv($Xgafv);
17243+
}
17244+
17245+
@Override
17246+
public CreateGuest setAccessToken(java.lang.String accessToken) {
17247+
return (CreateGuest) super.setAccessToken(accessToken);
17248+
}
17249+
17250+
@Override
17251+
public CreateGuest setAlt(java.lang.String alt) {
17252+
return (CreateGuest) super.setAlt(alt);
17253+
}
17254+
17255+
@Override
17256+
public CreateGuest setCallback(java.lang.String callback) {
17257+
return (CreateGuest) super.setCallback(callback);
17258+
}
17259+
17260+
@Override
17261+
public CreateGuest setFields(java.lang.String fields) {
17262+
return (CreateGuest) super.setFields(fields);
17263+
}
17264+
17265+
@Override
17266+
public CreateGuest setKey(java.lang.String key) {
17267+
return (CreateGuest) super.setKey(key);
17268+
}
17269+
17270+
@Override
17271+
public CreateGuest setOauthToken(java.lang.String oauthToken) {
17272+
return (CreateGuest) super.setOauthToken(oauthToken);
17273+
}
17274+
17275+
@Override
17276+
public CreateGuest setPrettyPrint(java.lang.Boolean prettyPrint) {
17277+
return (CreateGuest) super.setPrettyPrint(prettyPrint);
17278+
}
17279+
17280+
@Override
17281+
public CreateGuest setQuotaUser(java.lang.String quotaUser) {
17282+
return (CreateGuest) super.setQuotaUser(quotaUser);
17283+
}
17284+
17285+
@Override
17286+
public CreateGuest setUploadType(java.lang.String uploadType) {
17287+
return (CreateGuest) super.setUploadType(uploadType);
17288+
}
17289+
17290+
@Override
17291+
public CreateGuest setUploadProtocol(java.lang.String uploadProtocol) {
17292+
return (CreateGuest) super.setUploadProtocol(uploadProtocol);
17293+
}
17294+
17295+
@Override
17296+
public CreateGuest set(String parameterName, Object value) {
17297+
return (CreateGuest) super.set(parameterName, value);
17298+
}
17299+
}
1719717300
/**
1719817301
* Deletes a user.
1719917302
*
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
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.directory.model;
18+
19+
/**
20+
* Directory users guest creation request message.
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 Admin SDK API. For a detailed explanation see:
24+
* <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>
25+
* </p>
26+
*
27+
* @author Google, Inc.
28+
*/
29+
@SuppressWarnings("javadoc")
30+
public final class DirectoryUsersCreateGuestRequest extends com.google.api.client.json.GenericJson {
31+
32+
/**
33+
* Immutable. External email of the guest user being created.
34+
* The value may be {@code null}.
35+
*/
36+
@com.google.api.client.util.Key
37+
private java.lang.String primaryGuestEmail;
38+
39+
/**
40+
* Immutable. External email of the guest user being created.
41+
* @return value or {@code null} for none
42+
*/
43+
public java.lang.String getPrimaryGuestEmail() {
44+
return primaryGuestEmail;
45+
}
46+
47+
/**
48+
* Immutable. External email of the guest user being created.
49+
* @param primaryGuestEmail primaryGuestEmail or {@code null} for none
50+
*/
51+
public DirectoryUsersCreateGuestRequest setPrimaryGuestEmail(java.lang.String primaryGuestEmail) {
52+
this.primaryGuestEmail = primaryGuestEmail;
53+
return this;
54+
}
55+
56+
@Override
57+
public DirectoryUsersCreateGuestRequest set(String fieldName, Object value) {
58+
return (DirectoryUsersCreateGuestRequest) super.set(fieldName, value);
59+
}
60+
61+
@Override
62+
public DirectoryUsersCreateGuestRequest clone() {
63+
return (DirectoryUsersCreateGuestRequest) super.clone();
64+
}
65+
66+
}
Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
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.directory.model;
18+
19+
/**
20+
* Account info specific to Guest users.
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 Admin SDK API. For a detailed explanation see:
24+
* <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>
25+
* </p>
26+
*
27+
* @author Google, Inc.
28+
*/
29+
@SuppressWarnings("javadoc")
30+
public final class GuestAccountInfo extends com.google.api.client.json.GenericJson {
31+
32+
/**
33+
* Immutable. The guest's external email.
34+
* The value may be {@code null}.
35+
*/
36+
@com.google.api.client.util.Key
37+
private java.lang.String primaryGuestEmail;
38+
39+
/**
40+
* Immutable. The guest's external email.
41+
* @return value or {@code null} for none
42+
*/
43+
public java.lang.String getPrimaryGuestEmail() {
44+
return primaryGuestEmail;
45+
}
46+
47+
/**
48+
* Immutable. The guest's external email.
49+
* @param primaryGuestEmail primaryGuestEmail or {@code null} for none
50+
*/
51+
public GuestAccountInfo setPrimaryGuestEmail(java.lang.String primaryGuestEmail) {
52+
this.primaryGuestEmail = primaryGuestEmail;
53+
return this;
54+
}
55+
56+
@Override
57+
public GuestAccountInfo set(String fieldName, Object value) {
58+
return (GuestAccountInfo) super.set(fieldName, value);
59+
}
60+
61+
@Override
62+
public GuestAccountInfo clone() {
63+
return (GuestAccountInfo) super.clone();
64+
}
65+
66+
}

clients/google-api-services-admin/directory_v1/2.0.0/com/google/api/services/directory/model/User.java

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,13 @@ public final class User extends com.google.api.client.json.GenericJson {
137137
@com.google.api.client.util.Key
138138
private java.lang.Object gender;
139139

140+
/**
141+
* Immutable. Additional guest-related metadata fields
142+
* The value may be {@code null}.
143+
*/
144+
@com.google.api.client.util.Key
145+
private GuestAccountInfo guestAccountInfo;
146+
140147
/**
141148
* Stores the hash format of the `password` property. The following `hashFunction` values are
142149
* allowed: * `MD5` - Accepts simple hex-encoded values. * `SHA-1` - Accepts simple hex-encoded
@@ -220,6 +227,13 @@ public final class User extends com.google.api.client.json.GenericJson {
220227
@com.google.api.client.util.Key
221228
private java.lang.Boolean isEnrolledIn2Sv;
222229

230+
/**
231+
* Immutable. Indicates if the inserted user is a guest.
232+
* The value may be {@code null}.
233+
*/
234+
@com.google.api.client.util.Key
235+
private java.lang.Boolean isGuestUser;
236+
223237
/**
224238
* Output only. Indicates if the user's Google mailbox is created. This property is only
225239
* applicable if the user has been assigned a Gmail license.
@@ -649,6 +663,23 @@ public User setGender(java.lang.Object gender) {
649663
return this;
650664
}
651665

666+
/**
667+
* Immutable. Additional guest-related metadata fields
668+
* @return value or {@code null} for none
669+
*/
670+
public GuestAccountInfo getGuestAccountInfo() {
671+
return guestAccountInfo;
672+
}
673+
674+
/**
675+
* Immutable. Additional guest-related metadata fields
676+
* @param guestAccountInfo guestAccountInfo or {@code null} for none
677+
*/
678+
public User setGuestAccountInfo(GuestAccountInfo guestAccountInfo) {
679+
this.guestAccountInfo = guestAccountInfo;
680+
return this;
681+
}
682+
652683
/**
653684
* Stores the hash format of the `password` property. The following `hashFunction` values are
654685
* allowed: * `MD5` - Accepts simple hex-encoded values. * `SHA-1` - Accepts simple hex-encoded
@@ -842,6 +873,23 @@ public User setIsEnrolledIn2Sv(java.lang.Boolean isEnrolledIn2Sv) {
842873
return this;
843874
}
844875

876+
/**
877+
* Immutable. Indicates if the inserted user is a guest.
878+
* @return value or {@code null} for none
879+
*/
880+
public java.lang.Boolean getIsGuestUser() {
881+
return isGuestUser;
882+
}
883+
884+
/**
885+
* Immutable. Indicates if the inserted user is a guest.
886+
* @param isGuestUser isGuestUser or {@code null} for none
887+
*/
888+
public User setIsGuestUser(java.lang.Boolean isGuestUser) {
889+
this.isGuestUser = isGuestUser;
890+
return this;
891+
}
892+
845893
/**
846894
* Output only. Indicates if the user's Google mailbox is created. This property is only
847895
* applicable if the user has been assigned a Gmail license.

clients/google-api-services-admin/directory_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-admin-directory</artifactId>
11-
<version>directory_v1-rev20251107-2.0.0</version>
12-
<name>Admin SDK API directory_v1-rev20251107-2.0.0</name>
11+
<version>directory_v1-rev20251124-2.0.0</version>
12+
<name>Admin SDK API directory_v1-rev20251124-2.0.0</name>
1313
<packaging>jar</packaging>
1414

1515
<inceptionYear>2011</inceptionYear>

clients/google-api-services-admin/directory_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-admin-directory</artifactId>
25-
<version>directory_v1-rev20251107-2.0.0</version>
25+
<version>directory_v1-rev20251124-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-admin-directory:directory_v1-rev20251107-2.0.0'
38+
implementation 'com.google.apis:google-api-services-admin-directory:directory_v1-rev20251124-2.0.0'
3939
}
4040
```
4141

clients/google-api-services-admin/reports_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-admin-reports</artifactId>
25-
<version>reports_v1-rev20251120-2.0.0</version>
25+
<version>reports_v1-rev20251202-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-admin-reports:reports_v1-rev20251120-2.0.0'
38+
implementation 'com.google.apis:google-api-services-admin-reports:reports_v1-rev20251202-2.0.0'
3939
}
4040
```
4141

0 commit comments

Comments
 (0)