Skip to content

Commit 166c8cd

Browse files
1 parent c3813ef commit 166c8cd

File tree

10 files changed

+420
-12
lines changed

10 files changed

+420
-12
lines changed

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

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

Lines changed: 132 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -728,6 +728,138 @@ public Delete set(String parameterName, Object value) {
728728
return (Delete) super.set(parameterName, value);
729729
}
730730
}
731+
/**
732+
* Create a POSIX account if it doesn't exist.
733+
*
734+
* Create a request for the method "projects.provisionPosixAccount".
735+
*
736+
* This request holds the parameters needed by the oslogin server. After setting any optional
737+
* parameters, call the {@link ProvisionPosixAccount#execute()} method to invoke the remote
738+
* operation.
739+
*
740+
* @param name Required. The unique ID for the user in format `users/{user}/projects/{project}`.
741+
* @param content the {@link com.google.api.services.oslogin.v1alpha.model.ProvisionPosixAccountRequest}
742+
* @return the request
743+
*/
744+
public ProvisionPosixAccount provisionPosixAccount(java.lang.String name, com.google.api.services.oslogin.v1alpha.model.ProvisionPosixAccountRequest content) throws java.io.IOException {
745+
ProvisionPosixAccount result = new ProvisionPosixAccount(name, content);
746+
initialize(result);
747+
return result;
748+
}
749+
750+
public class ProvisionPosixAccount extends CloudOSLoginRequest<com.google.api.services.oslogin.v1alpha.model.PosixAccount> {
751+
752+
private static final String REST_PATH = "v1alpha/{+name}";
753+
754+
private final java.util.regex.Pattern NAME_PATTERN =
755+
java.util.regex.Pattern.compile("^users/[^/]+/projects/[^/]+$");
756+
757+
/**
758+
* Create a POSIX account if it doesn't exist.
759+
*
760+
* Create a request for the method "projects.provisionPosixAccount".
761+
*
762+
* This request holds the parameters needed by the the oslogin server. After setting any optional
763+
* parameters, call the {@link ProvisionPosixAccount#execute()} method to invoke the remote
764+
* operation. <p> {@link ProvisionPosixAccount#initialize(com.google.api.client.googleapis.service
765+
* s.AbstractGoogleClientRequest)} must be called to initialize this instance immediately after
766+
* invoking the constructor. </p>
767+
*
768+
* @param name Required. The unique ID for the user in format `users/{user}/projects/{project}`.
769+
* @param content the {@link com.google.api.services.oslogin.v1alpha.model.ProvisionPosixAccountRequest}
770+
* @since 1.13
771+
*/
772+
protected ProvisionPosixAccount(java.lang.String name, com.google.api.services.oslogin.v1alpha.model.ProvisionPosixAccountRequest content) {
773+
super(CloudOSLogin.this, "POST", REST_PATH, content, com.google.api.services.oslogin.v1alpha.model.PosixAccount.class);
774+
this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified.");
775+
if (!getSuppressPatternChecks()) {
776+
com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(),
777+
"Parameter name must conform to the pattern " +
778+
"^users/[^/]+/projects/[^/]+$");
779+
}
780+
}
781+
782+
@Override
783+
public ProvisionPosixAccount set$Xgafv(java.lang.String $Xgafv) {
784+
return (ProvisionPosixAccount) super.set$Xgafv($Xgafv);
785+
}
786+
787+
@Override
788+
public ProvisionPosixAccount setAccessToken(java.lang.String accessToken) {
789+
return (ProvisionPosixAccount) super.setAccessToken(accessToken);
790+
}
791+
792+
@Override
793+
public ProvisionPosixAccount setAlt(java.lang.String alt) {
794+
return (ProvisionPosixAccount) super.setAlt(alt);
795+
}
796+
797+
@Override
798+
public ProvisionPosixAccount setCallback(java.lang.String callback) {
799+
return (ProvisionPosixAccount) super.setCallback(callback);
800+
}
801+
802+
@Override
803+
public ProvisionPosixAccount setFields(java.lang.String fields) {
804+
return (ProvisionPosixAccount) super.setFields(fields);
805+
}
806+
807+
@Override
808+
public ProvisionPosixAccount setKey(java.lang.String key) {
809+
return (ProvisionPosixAccount) super.setKey(key);
810+
}
811+
812+
@Override
813+
public ProvisionPosixAccount setOauthToken(java.lang.String oauthToken) {
814+
return (ProvisionPosixAccount) super.setOauthToken(oauthToken);
815+
}
816+
817+
@Override
818+
public ProvisionPosixAccount setPrettyPrint(java.lang.Boolean prettyPrint) {
819+
return (ProvisionPosixAccount) super.setPrettyPrint(prettyPrint);
820+
}
821+
822+
@Override
823+
public ProvisionPosixAccount setQuotaUser(java.lang.String quotaUser) {
824+
return (ProvisionPosixAccount) super.setQuotaUser(quotaUser);
825+
}
826+
827+
@Override
828+
public ProvisionPosixAccount setUploadType(java.lang.String uploadType) {
829+
return (ProvisionPosixAccount) super.setUploadType(uploadType);
830+
}
831+
832+
@Override
833+
public ProvisionPosixAccount setUploadProtocol(java.lang.String uploadProtocol) {
834+
return (ProvisionPosixAccount) super.setUploadProtocol(uploadProtocol);
835+
}
836+
837+
/** Required. The unique ID for the user in format `users/{user}/projects/{project}`. */
838+
@com.google.api.client.util.Key
839+
private java.lang.String name;
840+
841+
/** Required. The unique ID for the user in format `users/{user}/projects/{project}`.
842+
*/
843+
public java.lang.String getName() {
844+
return name;
845+
}
846+
847+
/** Required. The unique ID for the user in format `users/{user}/projects/{project}`. */
848+
public ProvisionPosixAccount setName(java.lang.String name) {
849+
if (!getSuppressPatternChecks()) {
850+
com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(),
851+
"Parameter name must conform to the pattern " +
852+
"^users/[^/]+/projects/[^/]+$");
853+
}
854+
this.name = name;
855+
return this;
856+
}
857+
858+
@Override
859+
public ProvisionPosixAccount set(String parameterName, Object value) {
860+
return (ProvisionPosixAccount) super.set(parameterName, value);
861+
}
862+
}
731863

732864
/**
733865
* An accessor for creating requests from the Locations collection.
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.v1alpha.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/v1alpha/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>v1alpha-rev20241208-2.0.0</version>
12-
<name>Cloud OS Login API v1alpha-rev20241208-2.0.0</name>
11+
<version>v1alpha-rev20250209-2.0.0</version>
12+
<name>Cloud OS Login API v1alpha-rev20250209-2.0.0</name>
1313
<packaging>jar</packaging>
1414

1515
<inceptionYear>2011</inceptionYear>

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

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

0 commit comments

Comments
 (0)