Skip to content
This repository has been archived by the owner on Sep 16, 2023. It is now read-only.

Commit

Permalink
Browse files Browse the repository at this point in the history
fix: restore GAPIC v2 retry configs (#157)
This PR was generated using Autosynth. 🌈

Synth log will be available here:
https://source.cloud.google.com/results/invocations/b94bacd6-05ee-45c2-be4d-b0f667030fab/targets

PiperOrigin-RevId: 312088359
Source-Link: googleapis/googleapis@5a90d46
  • Loading branch information
yoshi-automation committed Jun 3, 2020
1 parent 8d2565f commit c4d419f
Show file tree
Hide file tree
Showing 7 changed files with 414 additions and 414 deletions.
Expand Up @@ -340,190 +340,6 @@ public final UnaryCallable<DeleteSshPublicKeyRequest, Empty> deleteSshPublicKeyC
return stub.deleteSshPublicKeyCallable();
}

// AUTO-GENERATED DOCUMENTATION AND METHOD
/**
* Retrieves the profile information used for logging in to a virtual machine on Google Compute
* Engine.
*
* <p>Sample code:
*
* <pre><code>
* try (OsLoginServiceClient osLoginServiceClient = OsLoginServiceClient.create()) {
* UserName name = UserName.of("[USER]");
* LoginProfile response = osLoginServiceClient.getLoginProfile(name);
* }
* </code></pre>
*
* @param name Required. The unique ID for the user in format `users/{user}`.
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
public final LoginProfile getLoginProfile(UserName name) {
GetLoginProfileRequest request =
GetLoginProfileRequest.newBuilder().setName(name == null ? null : name.toString()).build();
return getLoginProfile(request);
}

// AUTO-GENERATED DOCUMENTATION AND METHOD
/**
* Retrieves the profile information used for logging in to a virtual machine on Google Compute
* Engine.
*
* <p>Sample code:
*
* <pre><code>
* try (OsLoginServiceClient osLoginServiceClient = OsLoginServiceClient.create()) {
* UserName name = UserName.of("[USER]");
* LoginProfile response = osLoginServiceClient.getLoginProfile(name.toString());
* }
* </code></pre>
*
* @param name Required. The unique ID for the user in format `users/{user}`.
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
public final LoginProfile getLoginProfile(String name) {
GetLoginProfileRequest request = GetLoginProfileRequest.newBuilder().setName(name).build();
return getLoginProfile(request);
}

// AUTO-GENERATED DOCUMENTATION AND METHOD
/**
* Retrieves the profile information used for logging in to a virtual machine on Google Compute
* Engine.
*
* <p>Sample code:
*
* <pre><code>
* try (OsLoginServiceClient osLoginServiceClient = OsLoginServiceClient.create()) {
* UserName name = UserName.of("[USER]");
* GetLoginProfileRequest request = GetLoginProfileRequest.newBuilder()
* .setName(name.toString())
* .build();
* LoginProfile response = osLoginServiceClient.getLoginProfile(request);
* }
* </code></pre>
*
* @param request The request object containing all of the parameters for the API call.
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
public final LoginProfile getLoginProfile(GetLoginProfileRequest request) {
return getLoginProfileCallable().call(request);
}

// AUTO-GENERATED DOCUMENTATION AND METHOD
/**
* Retrieves the profile information used for logging in to a virtual machine on Google Compute
* Engine.
*
* <p>Sample code:
*
* <pre><code>
* try (OsLoginServiceClient osLoginServiceClient = OsLoginServiceClient.create()) {
* UserName name = UserName.of("[USER]");
* GetLoginProfileRequest request = GetLoginProfileRequest.newBuilder()
* .setName(name.toString())
* .build();
* ApiFuture&lt;LoginProfile&gt; future = osLoginServiceClient.getLoginProfileCallable().futureCall(request);
* // Do something
* LoginProfile response = future.get();
* }
* </code></pre>
*/
public final UnaryCallable<GetLoginProfileRequest, LoginProfile> getLoginProfileCallable() {
return stub.getLoginProfileCallable();
}

// AUTO-GENERATED DOCUMENTATION AND METHOD
/**
* Retrieves an SSH public key.
*
* <p>Sample code:
*
* <pre><code>
* try (OsLoginServiceClient osLoginServiceClient = OsLoginServiceClient.create()) {
* FingerprintName name = FingerprintName.of("[USER]", "[FINGERPRINT]");
* SshPublicKey response = osLoginServiceClient.getSshPublicKey(name);
* }
* </code></pre>
*
* @param name Required. The fingerprint of the public key to retrieve. Public keys are identified
* by their SHA-256 fingerprint. The fingerprint of the public key is in format
* `users/{user}/sshPublicKeys/{fingerprint}`.
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
public final SshPublicKey getSshPublicKey(FingerprintName name) {
GetSshPublicKeyRequest request =
GetSshPublicKeyRequest.newBuilder().setName(name == null ? null : name.toString()).build();
return getSshPublicKey(request);
}

// AUTO-GENERATED DOCUMENTATION AND METHOD
/**
* Retrieves an SSH public key.
*
* <p>Sample code:
*
* <pre><code>
* try (OsLoginServiceClient osLoginServiceClient = OsLoginServiceClient.create()) {
* FingerprintName name = FingerprintName.of("[USER]", "[FINGERPRINT]");
* SshPublicKey response = osLoginServiceClient.getSshPublicKey(name.toString());
* }
* </code></pre>
*
* @param name Required. The fingerprint of the public key to retrieve. Public keys are identified
* by their SHA-256 fingerprint. The fingerprint of the public key is in format
* `users/{user}/sshPublicKeys/{fingerprint}`.
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
public final SshPublicKey getSshPublicKey(String name) {
GetSshPublicKeyRequest request = GetSshPublicKeyRequest.newBuilder().setName(name).build();
return getSshPublicKey(request);
}

// AUTO-GENERATED DOCUMENTATION AND METHOD
/**
* Retrieves an SSH public key.
*
* <p>Sample code:
*
* <pre><code>
* try (OsLoginServiceClient osLoginServiceClient = OsLoginServiceClient.create()) {
* FingerprintName name = FingerprintName.of("[USER]", "[FINGERPRINT]");
* GetSshPublicKeyRequest request = GetSshPublicKeyRequest.newBuilder()
* .setName(name.toString())
* .build();
* SshPublicKey response = osLoginServiceClient.getSshPublicKey(request);
* }
* </code></pre>
*
* @param request The request object containing all of the parameters for the API call.
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
public final SshPublicKey getSshPublicKey(GetSshPublicKeyRequest request) {
return getSshPublicKeyCallable().call(request);
}

// AUTO-GENERATED DOCUMENTATION AND METHOD
/**
* Retrieves an SSH public key.
*
* <p>Sample code:
*
* <pre><code>
* try (OsLoginServiceClient osLoginServiceClient = OsLoginServiceClient.create()) {
* FingerprintName name = FingerprintName.of("[USER]", "[FINGERPRINT]");
* GetSshPublicKeyRequest request = GetSshPublicKeyRequest.newBuilder()
* .setName(name.toString())
* .build();
* ApiFuture&lt;SshPublicKey&gt; future = osLoginServiceClient.getSshPublicKeyCallable().futureCall(request);
* // Do something
* SshPublicKey response = future.get();
* }
* </code></pre>
*/
public final UnaryCallable<GetSshPublicKeyRequest, SshPublicKey> getSshPublicKeyCallable() {
return stub.getSshPublicKeyCallable();
}

// AUTO-GENERATED DOCUMENTATION AND METHOD
/**
* Adds an SSH public key and returns the profile information. Default POSIX account information
Expand Down Expand Up @@ -870,6 +686,190 @@ public final UnaryCallable<UpdateSshPublicKeyRequest, SshPublicKey> updateSshPub
return stub.updateSshPublicKeyCallable();
}

// AUTO-GENERATED DOCUMENTATION AND METHOD
/**
* Retrieves the profile information used for logging in to a virtual machine on Google Compute
* Engine.
*
* <p>Sample code:
*
* <pre><code>
* try (OsLoginServiceClient osLoginServiceClient = OsLoginServiceClient.create()) {
* UserName name = UserName.of("[USER]");
* LoginProfile response = osLoginServiceClient.getLoginProfile(name);
* }
* </code></pre>
*
* @param name Required. The unique ID for the user in format `users/{user}`.
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
public final LoginProfile getLoginProfile(UserName name) {
GetLoginProfileRequest request =
GetLoginProfileRequest.newBuilder().setName(name == null ? null : name.toString()).build();
return getLoginProfile(request);
}

// AUTO-GENERATED DOCUMENTATION AND METHOD
/**
* Retrieves the profile information used for logging in to a virtual machine on Google Compute
* Engine.
*
* <p>Sample code:
*
* <pre><code>
* try (OsLoginServiceClient osLoginServiceClient = OsLoginServiceClient.create()) {
* UserName name = UserName.of("[USER]");
* LoginProfile response = osLoginServiceClient.getLoginProfile(name.toString());
* }
* </code></pre>
*
* @param name Required. The unique ID for the user in format `users/{user}`.
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
public final LoginProfile getLoginProfile(String name) {
GetLoginProfileRequest request = GetLoginProfileRequest.newBuilder().setName(name).build();
return getLoginProfile(request);
}

// AUTO-GENERATED DOCUMENTATION AND METHOD
/**
* Retrieves the profile information used for logging in to a virtual machine on Google Compute
* Engine.
*
* <p>Sample code:
*
* <pre><code>
* try (OsLoginServiceClient osLoginServiceClient = OsLoginServiceClient.create()) {
* UserName name = UserName.of("[USER]");
* GetLoginProfileRequest request = GetLoginProfileRequest.newBuilder()
* .setName(name.toString())
* .build();
* LoginProfile response = osLoginServiceClient.getLoginProfile(request);
* }
* </code></pre>
*
* @param request The request object containing all of the parameters for the API call.
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
public final LoginProfile getLoginProfile(GetLoginProfileRequest request) {
return getLoginProfileCallable().call(request);
}

// AUTO-GENERATED DOCUMENTATION AND METHOD
/**
* Retrieves the profile information used for logging in to a virtual machine on Google Compute
* Engine.
*
* <p>Sample code:
*
* <pre><code>
* try (OsLoginServiceClient osLoginServiceClient = OsLoginServiceClient.create()) {
* UserName name = UserName.of("[USER]");
* GetLoginProfileRequest request = GetLoginProfileRequest.newBuilder()
* .setName(name.toString())
* .build();
* ApiFuture&lt;LoginProfile&gt; future = osLoginServiceClient.getLoginProfileCallable().futureCall(request);
* // Do something
* LoginProfile response = future.get();
* }
* </code></pre>
*/
public final UnaryCallable<GetLoginProfileRequest, LoginProfile> getLoginProfileCallable() {
return stub.getLoginProfileCallable();
}

// AUTO-GENERATED DOCUMENTATION AND METHOD
/**
* Retrieves an SSH public key.
*
* <p>Sample code:
*
* <pre><code>
* try (OsLoginServiceClient osLoginServiceClient = OsLoginServiceClient.create()) {
* FingerprintName name = FingerprintName.of("[USER]", "[FINGERPRINT]");
* SshPublicKey response = osLoginServiceClient.getSshPublicKey(name);
* }
* </code></pre>
*
* @param name Required. The fingerprint of the public key to retrieve. Public keys are identified
* by their SHA-256 fingerprint. The fingerprint of the public key is in format
* `users/{user}/sshPublicKeys/{fingerprint}`.
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
public final SshPublicKey getSshPublicKey(FingerprintName name) {
GetSshPublicKeyRequest request =
GetSshPublicKeyRequest.newBuilder().setName(name == null ? null : name.toString()).build();
return getSshPublicKey(request);
}

// AUTO-GENERATED DOCUMENTATION AND METHOD
/**
* Retrieves an SSH public key.
*
* <p>Sample code:
*
* <pre><code>
* try (OsLoginServiceClient osLoginServiceClient = OsLoginServiceClient.create()) {
* FingerprintName name = FingerprintName.of("[USER]", "[FINGERPRINT]");
* SshPublicKey response = osLoginServiceClient.getSshPublicKey(name.toString());
* }
* </code></pre>
*
* @param name Required. The fingerprint of the public key to retrieve. Public keys are identified
* by their SHA-256 fingerprint. The fingerprint of the public key is in format
* `users/{user}/sshPublicKeys/{fingerprint}`.
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
public final SshPublicKey getSshPublicKey(String name) {
GetSshPublicKeyRequest request = GetSshPublicKeyRequest.newBuilder().setName(name).build();
return getSshPublicKey(request);
}

// AUTO-GENERATED DOCUMENTATION AND METHOD
/**
* Retrieves an SSH public key.
*
* <p>Sample code:
*
* <pre><code>
* try (OsLoginServiceClient osLoginServiceClient = OsLoginServiceClient.create()) {
* FingerprintName name = FingerprintName.of("[USER]", "[FINGERPRINT]");
* GetSshPublicKeyRequest request = GetSshPublicKeyRequest.newBuilder()
* .setName(name.toString())
* .build();
* SshPublicKey response = osLoginServiceClient.getSshPublicKey(request);
* }
* </code></pre>
*
* @param request The request object containing all of the parameters for the API call.
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
public final SshPublicKey getSshPublicKey(GetSshPublicKeyRequest request) {
return getSshPublicKeyCallable().call(request);
}

// AUTO-GENERATED DOCUMENTATION AND METHOD
/**
* Retrieves an SSH public key.
*
* <p>Sample code:
*
* <pre><code>
* try (OsLoginServiceClient osLoginServiceClient = OsLoginServiceClient.create()) {
* FingerprintName name = FingerprintName.of("[USER]", "[FINGERPRINT]");
* GetSshPublicKeyRequest request = GetSshPublicKeyRequest.newBuilder()
* .setName(name.toString())
* .build();
* ApiFuture&lt;SshPublicKey&gt; future = osLoginServiceClient.getSshPublicKeyCallable().futureCall(request);
* // Do something
* SshPublicKey response = future.get();
* }
* </code></pre>
*/
public final UnaryCallable<GetSshPublicKeyRequest, SshPublicKey> getSshPublicKeyCallable() {
return stub.getSshPublicKeyCallable();
}

@Override
public final void close() {
stub.close();
Expand Down

0 comments on commit c4d419f

Please sign in to comment.