Skip to content

Commit

Permalink
chore: regenerate oslogin client (#18300)
Browse files Browse the repository at this point in the history
  • Loading branch information
yoshi-code-bot authored Oct 5, 2023
1 parent 9e74660 commit 2181b70
Show file tree
Hide file tree
Showing 3 changed files with 171 additions and 4 deletions.
4 changes: 2 additions & 2 deletions clients/google-api-services-oslogin/v1beta/2.0.0/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-oslogin</artifactId>
<version>v1beta-rev20230903-2.0.0</version>
<version>v1beta-rev20231001-2.0.0</version>
</dependency>
</dependencies>
</project>
Expand All @@ -35,7 +35,7 @@ repositories {
mavenCentral()
}
dependencies {
implementation 'com.google.apis:google-api-services-oslogin:v1beta-rev20230903-2.0.0'
implementation 'com.google.apis:google-api-services-oslogin:v1beta-rev20231001-2.0.0'
}
```

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -671,6 +671,173 @@ public Delete set(String parameterName, Object value) {
}
}

/**
* An accessor for creating requests from the Locations collection.
*
* <p>The typical use is:</p>
* <pre>
* {@code CloudOSLogin oslogin = new CloudOSLogin(...);}
* {@code CloudOSLogin.Locations.List request = oslogin.locations().list(parameters ...)}
* </pre>
*
* @return the resource collection
*/
public Locations locations() {
return new Locations();
}

/**
* The "locations" collection of methods.
*/
public class Locations {

/**
* Signs an SSH public key for a user to authenticate to an instance.
*
* Create a request for the method "locations.signSshPublicKey".
*
* This request holds the parameters needed by the oslogin server. After setting any optional
* parameters, call the {@link SignSshPublicKey#execute()} method to invoke the remote operation.
*
* @param parent The parent project and zone for the signing request. This is needed to properly ensure per-
* organization ISS processing and potentially to provide for the possibility of zone-
* specific certificates used in the signing process.
* @param content the {@link com.google.api.services.oslogin.v1beta.model.SignSshPublicKeyRequest}
* @return the request
*/
public SignSshPublicKey signSshPublicKey(java.lang.String parent, com.google.api.services.oslogin.v1beta.model.SignSshPublicKeyRequest content) throws java.io.IOException {
SignSshPublicKey result = new SignSshPublicKey(parent, content);
initialize(result);
return result;
}

public class SignSshPublicKey extends CloudOSLoginRequest<com.google.api.services.oslogin.v1beta.model.SignSshPublicKeyResponse> {

private static final String REST_PATH = "v1beta/{+parent}:signSshPublicKey";

private final java.util.regex.Pattern PARENT_PATTERN =
java.util.regex.Pattern.compile("^users/[^/]+/projects/[^/]+/locations/[^/]+$");

/**
* Signs an SSH public key for a user to authenticate to an instance.
*
* Create a request for the method "locations.signSshPublicKey".
*
* This request holds the parameters needed by the the oslogin server. After setting any optional
* parameters, call the {@link SignSshPublicKey#execute()} method to invoke the remote operation.
* <p> {@link SignSshPublicKey#initialize(com.google.api.client.googleapis.services.AbstractGoogle
* ClientRequest)} must be called to initialize this instance immediately after invoking the
* constructor. </p>
*
* @param parent The parent project and zone for the signing request. This is needed to properly ensure per-
* organization ISS processing and potentially to provide for the possibility of zone-
* specific certificates used in the signing process.
* @param content the {@link com.google.api.services.oslogin.v1beta.model.SignSshPublicKeyRequest}
* @since 1.13
*/
protected SignSshPublicKey(java.lang.String parent, com.google.api.services.oslogin.v1beta.model.SignSshPublicKeyRequest content) {
super(CloudOSLogin.this, "POST", REST_PATH, content, com.google.api.services.oslogin.v1beta.model.SignSshPublicKeyResponse.class);
this.parent = com.google.api.client.util.Preconditions.checkNotNull(parent, "Required parameter parent must be specified.");
if (!getSuppressPatternChecks()) {
com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(),
"Parameter parent must conform to the pattern " +
"^users/[^/]+/projects/[^/]+/locations/[^/]+$");
}
}

@Override
public SignSshPublicKey set$Xgafv(java.lang.String $Xgafv) {
return (SignSshPublicKey) super.set$Xgafv($Xgafv);
}

@Override
public SignSshPublicKey setAccessToken(java.lang.String accessToken) {
return (SignSshPublicKey) super.setAccessToken(accessToken);
}

@Override
public SignSshPublicKey setAlt(java.lang.String alt) {
return (SignSshPublicKey) super.setAlt(alt);
}

@Override
public SignSshPublicKey setCallback(java.lang.String callback) {
return (SignSshPublicKey) super.setCallback(callback);
}

@Override
public SignSshPublicKey setFields(java.lang.String fields) {
return (SignSshPublicKey) super.setFields(fields);
}

@Override
public SignSshPublicKey setKey(java.lang.String key) {
return (SignSshPublicKey) super.setKey(key);
}

@Override
public SignSshPublicKey setOauthToken(java.lang.String oauthToken) {
return (SignSshPublicKey) super.setOauthToken(oauthToken);
}

@Override
public SignSshPublicKey setPrettyPrint(java.lang.Boolean prettyPrint) {
return (SignSshPublicKey) super.setPrettyPrint(prettyPrint);
}

@Override
public SignSshPublicKey setQuotaUser(java.lang.String quotaUser) {
return (SignSshPublicKey) super.setQuotaUser(quotaUser);
}

@Override
public SignSshPublicKey setUploadType(java.lang.String uploadType) {
return (SignSshPublicKey) super.setUploadType(uploadType);
}

@Override
public SignSshPublicKey setUploadProtocol(java.lang.String uploadProtocol) {
return (SignSshPublicKey) super.setUploadProtocol(uploadProtocol);
}

/**
* The parent project and zone for the signing request. This is needed to properly ensure
* per-organization ISS processing and potentially to provide for the possibility of zone-
* specific certificates used in the signing process.
*/
@com.google.api.client.util.Key
private java.lang.String parent;

/** The parent project and zone for the signing request. This is needed to properly ensure per-
organization ISS processing and potentially to provide for the possibility of zone-specific
certificates used in the signing process.
*/
public java.lang.String getParent() {
return parent;
}

/**
* The parent project and zone for the signing request. This is needed to properly ensure
* per-organization ISS processing and potentially to provide for the possibility of zone-
* specific certificates used in the signing process.
*/
public SignSshPublicKey setParent(java.lang.String parent) {
if (!getSuppressPatternChecks()) {
com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(),
"Parameter parent must conform to the pattern " +
"^users/[^/]+/projects/[^/]+/locations/[^/]+$");
}
this.parent = parent;
return this;
}

@Override
public SignSshPublicKey set(String parameterName, Object value) {
return (SignSshPublicKey) super.set(parameterName, value);
}
}

}
/**
* An accessor for creating requests from the Zones collection.
*
Expand Down
4 changes: 2 additions & 2 deletions clients/google-api-services-oslogin/v1beta/2.0.0/pom.xml
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-oslogin</artifactId>
<version>v1beta-rev20230903-2.0.0</version>
<name>Cloud OS Login API v1beta-rev20230903-2.0.0</name>
<version>v1beta-rev20231001-2.0.0</version>
<name>Cloud OS Login API v1beta-rev20231001-2.0.0</name>
<packaging>jar</packaging>

<inceptionYear>2011</inceptionYear>
Expand Down

0 comments on commit 2181b70

Please sign in to comment.