Skip to content

Commit f095453

Browse files
1 parent fafb596 commit f095453

File tree

5 files changed

+212
-6
lines changed

5 files changed

+212
-6
lines changed

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

clients/google-api-services-oslogin/v1/2.0.0/com/google/api/services/oslogin/v1/CloudOSLogin.java

Lines changed: 134 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -843,6 +843,140 @@ public Delete set(String parameterName, Object value) {
843843
return (Delete) super.set(parameterName, value);
844844
}
845845
}
846+
/**
847+
* Adds a POSIX account and returns the profile information. Default POSIX account information is
848+
* set when no username and UID exist as part of the login profile.
849+
*
850+
* Create a request for the method "projects.provisionPosixAccount".
851+
*
852+
* This request holds the parameters needed by the oslogin server. After setting any optional
853+
* parameters, call the {@link ProvisionPosixAccount#execute()} method to invoke the remote
854+
* operation.
855+
*
856+
* @param name Required. The unique ID for the user in format `users/{user}/projects/{project}`.
857+
* @param content the {@link com.google.api.services.oslogin.v1.model.ProvisionPosixAccountRequest}
858+
* @return the request
859+
*/
860+
public ProvisionPosixAccount provisionPosixAccount(java.lang.String name, com.google.api.services.oslogin.v1.model.ProvisionPosixAccountRequest content) throws java.io.IOException {
861+
ProvisionPosixAccount result = new ProvisionPosixAccount(name, content);
862+
initialize(result);
863+
return result;
864+
}
865+
866+
public class ProvisionPosixAccount extends CloudOSLoginRequest<com.google.api.services.oslogin.v1.model.PosixAccount> {
867+
868+
private static final String REST_PATH = "v1/{+name}";
869+
870+
private final java.util.regex.Pattern NAME_PATTERN =
871+
java.util.regex.Pattern.compile("^users/[^/]+/projects/[^/]+$");
872+
873+
/**
874+
* Adds a POSIX account and returns the profile information. Default POSIX account information is
875+
* set when no username and UID exist as part of the login profile.
876+
*
877+
* Create a request for the method "projects.provisionPosixAccount".
878+
*
879+
* This request holds the parameters needed by the the oslogin server. After setting any optional
880+
* parameters, call the {@link ProvisionPosixAccount#execute()} method to invoke the remote
881+
* operation. <p> {@link ProvisionPosixAccount#initialize(com.google.api.client.googleapis.service
882+
* s.AbstractGoogleClientRequest)} must be called to initialize this instance immediately after
883+
* invoking the constructor. </p>
884+
*
885+
* @param name Required. The unique ID for the user in format `users/{user}/projects/{project}`.
886+
* @param content the {@link com.google.api.services.oslogin.v1.model.ProvisionPosixAccountRequest}
887+
* @since 1.13
888+
*/
889+
protected ProvisionPosixAccount(java.lang.String name, com.google.api.services.oslogin.v1.model.ProvisionPosixAccountRequest content) {
890+
super(CloudOSLogin.this, "POST", REST_PATH, content, com.google.api.services.oslogin.v1.model.PosixAccount.class);
891+
this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified.");
892+
if (!getSuppressPatternChecks()) {
893+
com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(),
894+
"Parameter name must conform to the pattern " +
895+
"^users/[^/]+/projects/[^/]+$");
896+
}
897+
}
898+
899+
@Override
900+
public ProvisionPosixAccount set$Xgafv(java.lang.String $Xgafv) {
901+
return (ProvisionPosixAccount) super.set$Xgafv($Xgafv);
902+
}
903+
904+
@Override
905+
public ProvisionPosixAccount setAccessToken(java.lang.String accessToken) {
906+
return (ProvisionPosixAccount) super.setAccessToken(accessToken);
907+
}
908+
909+
@Override
910+
public ProvisionPosixAccount setAlt(java.lang.String alt) {
911+
return (ProvisionPosixAccount) super.setAlt(alt);
912+
}
913+
914+
@Override
915+
public ProvisionPosixAccount setCallback(java.lang.String callback) {
916+
return (ProvisionPosixAccount) super.setCallback(callback);
917+
}
918+
919+
@Override
920+
public ProvisionPosixAccount setFields(java.lang.String fields) {
921+
return (ProvisionPosixAccount) super.setFields(fields);
922+
}
923+
924+
@Override
925+
public ProvisionPosixAccount setKey(java.lang.String key) {
926+
return (ProvisionPosixAccount) super.setKey(key);
927+
}
928+
929+
@Override
930+
public ProvisionPosixAccount setOauthToken(java.lang.String oauthToken) {
931+
return (ProvisionPosixAccount) super.setOauthToken(oauthToken);
932+
}
933+
934+
@Override
935+
public ProvisionPosixAccount setPrettyPrint(java.lang.Boolean prettyPrint) {
936+
return (ProvisionPosixAccount) super.setPrettyPrint(prettyPrint);
937+
}
938+
939+
@Override
940+
public ProvisionPosixAccount setQuotaUser(java.lang.String quotaUser) {
941+
return (ProvisionPosixAccount) super.setQuotaUser(quotaUser);
942+
}
943+
944+
@Override
945+
public ProvisionPosixAccount setUploadType(java.lang.String uploadType) {
946+
return (ProvisionPosixAccount) super.setUploadType(uploadType);
947+
}
948+
949+
@Override
950+
public ProvisionPosixAccount setUploadProtocol(java.lang.String uploadProtocol) {
951+
return (ProvisionPosixAccount) super.setUploadProtocol(uploadProtocol);
952+
}
953+
954+
/** Required. The unique ID for the user in format `users/{user}/projects/{project}`. */
955+
@com.google.api.client.util.Key
956+
private java.lang.String name;
957+
958+
/** Required. The unique ID for the user in format `users/{user}/projects/{project}`.
959+
*/
960+
public java.lang.String getName() {
961+
return name;
962+
}
963+
964+
/** Required. The unique ID for the user in format `users/{user}/projects/{project}`. */
965+
public ProvisionPosixAccount setName(java.lang.String name) {
966+
if (!getSuppressPatternChecks()) {
967+
com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(),
968+
"Parameter name must conform to the pattern " +
969+
"^users/[^/]+/projects/[^/]+$");
970+
}
971+
this.name = name;
972+
return this;
973+
}
974+
975+
@Override
976+
public ProvisionPosixAccount set(String parameterName, Object value) {
977+
return (ProvisionPosixAccount) super.set(parameterName, value);
978+
}
979+
}
846980

847981
}
848982
/**
Lines changed: 72 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,72 @@
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.oslogin.v1.model;
18+
19+
/**
20+
* A request message for creating a POSIX account entry.
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 Cloud OS Login 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 ProvisionPosixAccountRequest extends com.google.api.client.json.GenericJson {
31+
32+
/**
33+
* Optional. The regions to wait for a POSIX account to be written to before returning a response.
34+
* If unspecified, defaults to all regions. Regions are listed at
35+
* https://cloud.google.com/about/locations#region.
36+
* The value may be {@code null}.
37+
*/
38+
@com.google.api.client.util.Key
39+
private java.util.List<java.lang.String> regions;
40+
41+
/**
42+
* Optional. The regions to wait for a POSIX account to be written to before returning a response.
43+
* If unspecified, defaults to all regions. Regions are listed at
44+
* https://cloud.google.com/about/locations#region.
45+
* @return value or {@code null} for none
46+
*/
47+
public java.util.List<java.lang.String> getRegions() {
48+
return regions;
49+
}
50+
51+
/**
52+
* Optional. The regions to wait for a POSIX account to be written to before returning a response.
53+
* If unspecified, defaults to all regions. Regions are listed at
54+
* https://cloud.google.com/about/locations#region.
55+
* @param regions regions or {@code null} for none
56+
*/
57+
public ProvisionPosixAccountRequest setRegions(java.util.List<java.lang.String> regions) {
58+
this.regions = regions;
59+
return this;
60+
}
61+
62+
@Override
63+
public ProvisionPosixAccountRequest set(String fieldName, Object value) {
64+
return (ProvisionPosixAccountRequest) super.set(fieldName, value);
65+
}
66+
67+
@Override
68+
public ProvisionPosixAccountRequest clone() {
69+
return (ProvisionPosixAccountRequest) super.clone();
70+
}
71+
72+
}

clients/google-api-services-oslogin/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-oslogin</artifactId>
11-
<version>v1-rev20250921-2.0.0</version>
12-
<name>Cloud OS Login API v1-rev20250921-2.0.0</name>
11+
<version>v1-rev20251202-2.0.0</version>
12+
<name>Cloud OS Login API v1-rev20251202-2.0.0</name>
1313
<packaging>jar</packaging>
1414

1515
<inceptionYear>2011</inceptionYear>

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

0 commit comments

Comments
 (0)