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

Commit

Permalink
fix: restore retry config for deleteCluster, deleteNode (#166)
Browse files Browse the repository at this point in the history
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 6a0218e commit 697949e
Show file tree
Hide file tree
Showing 8 changed files with 694 additions and 692 deletions.

Large diffs are not rendered by default.

Expand Up @@ -88,16 +88,16 @@
* <p>The builder of this class is recursive, so contained classes are themselves builders. When
* build() is called, the tree of builders is called to create the complete settings object.
*
* <p>For example, to set the total timeout of listClusters to 30 seconds:
* <p>For example, to set the total timeout of deleteCluster to 30 seconds:
*
* <pre>
* <code>
* ClusterManagerSettings.Builder clusterManagerSettingsBuilder =
* ClusterManagerSettings.newBuilder();
* clusterManagerSettingsBuilder
* .listClustersSettings()
* .deleteClusterSettings()
* .setRetrySettings(
* clusterManagerSettingsBuilder.listClustersSettings().getRetrySettings().toBuilder()
* clusterManagerSettingsBuilder.deleteClusterSettings().getRetrySettings().toBuilder()
* .setTotalTimeout(Duration.ofSeconds(30))
* .build());
* ClusterManagerSettings clusterManagerSettings = clusterManagerSettingsBuilder.build();
Expand All @@ -107,6 +107,16 @@
@Generated("by gapic-generator")
@BetaApi
public class ClusterManagerSettings extends ClientSettings<ClusterManagerSettings> {
/** Returns the object with the settings used for calls to deleteCluster. */
public UnaryCallSettings<DeleteClusterRequest, Operation> deleteClusterSettings() {
return ((ClusterManagerStubSettings) getStubSettings()).deleteClusterSettings();
}

/** Returns the object with the settings used for calls to deleteNodePool. */
public UnaryCallSettings<DeleteNodePoolRequest, Operation> deleteNodePoolSettings() {
return ((ClusterManagerStubSettings) getStubSettings()).deleteNodePoolSettings();
}

/** Returns the object with the settings used for calls to listClusters. */
public UnaryCallSettings<ListClustersRequest, ListClustersResponse> listClustersSettings() {
return ((ClusterManagerStubSettings) getStubSettings()).listClustersSettings();
Expand Down Expand Up @@ -168,11 +178,6 @@ public UnaryCallSettings<SetMasterAuthRequest, Operation> setMasterAuthSettings(
return ((ClusterManagerStubSettings) getStubSettings()).setMasterAuthSettings();
}

/** Returns the object with the settings used for calls to deleteCluster. */
public UnaryCallSettings<DeleteClusterRequest, Operation> deleteClusterSettings() {
return ((ClusterManagerStubSettings) getStubSettings()).deleteClusterSettings();
}

/** Returns the object with the settings used for calls to listOperations. */
public UnaryCallSettings<ListOperationsRequest, ListOperationsResponse> listOperationsSettings() {
return ((ClusterManagerStubSettings) getStubSettings()).listOperationsSettings();
Expand Down Expand Up @@ -208,11 +213,6 @@ public UnaryCallSettings<CreateNodePoolRequest, Operation> createNodePoolSetting
return ((ClusterManagerStubSettings) getStubSettings()).createNodePoolSettings();
}

/** Returns the object with the settings used for calls to deleteNodePool. */
public UnaryCallSettings<DeleteNodePoolRequest, Operation> deleteNodePoolSettings() {
return ((ClusterManagerStubSettings) getStubSettings()).deleteNodePoolSettings();
}

/** Returns the object with the settings used for calls to rollbackNodePoolUpgrade. */
public UnaryCallSettings<RollbackNodePoolUpgradeRequest, Operation>
rollbackNodePoolUpgradeSettings() {
Expand Down Expand Up @@ -366,6 +366,16 @@ public Builder applyToAllUnaryMethods(
return this;
}

/** Returns the builder for the settings used for calls to deleteCluster. */
public UnaryCallSettings.Builder<DeleteClusterRequest, Operation> deleteClusterSettings() {
return getStubSettingsBuilder().deleteClusterSettings();
}

/** Returns the builder for the settings used for calls to deleteNodePool. */
public UnaryCallSettings.Builder<DeleteNodePoolRequest, Operation> deleteNodePoolSettings() {
return getStubSettingsBuilder().deleteNodePoolSettings();
}

/** Returns the builder for the settings used for calls to listClusters. */
public UnaryCallSettings.Builder<ListClustersRequest, ListClustersResponse>
listClustersSettings() {
Expand Down Expand Up @@ -430,11 +440,6 @@ public UnaryCallSettings.Builder<SetMasterAuthRequest, Operation> setMasterAuthS
return getStubSettingsBuilder().setMasterAuthSettings();
}

/** Returns the builder for the settings used for calls to deleteCluster. */
public UnaryCallSettings.Builder<DeleteClusterRequest, Operation> deleteClusterSettings() {
return getStubSettingsBuilder().deleteClusterSettings();
}

/** Returns the builder for the settings used for calls to listOperations. */
public UnaryCallSettings.Builder<ListOperationsRequest, ListOperationsResponse>
listOperationsSettings() {
Expand Down Expand Up @@ -473,11 +478,6 @@ public UnaryCallSettings.Builder<CreateNodePoolRequest, Operation> createNodePoo
return getStubSettingsBuilder().createNodePoolSettings();
}

/** Returns the builder for the settings used for calls to deleteNodePool. */
public UnaryCallSettings.Builder<DeleteNodePoolRequest, Operation> deleteNodePoolSettings() {
return getStubSettingsBuilder().deleteNodePoolSettings();
}

/** Returns the builder for the settings used for calls to rollbackNodePoolUpgrade. */
public UnaryCallSettings.Builder<RollbackNodePoolUpgradeRequest, Operation>
rollbackNodePoolUpgradeSettings() {
Expand Down
Expand Up @@ -30,7 +30,8 @@
* try (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) {
* String projectId = "";
* String zone = "";
* ListClustersResponse response = clusterManagerClient.listClusters(projectId, zone);
* String clusterId = "";
* Operation response = clusterManagerClient.deleteCluster(projectId, zone, clusterId);
* }
* </code>
* </pre>
Expand Down
Expand Up @@ -72,6 +72,14 @@
@BetaApi("A restructuring of stub classes is planned, so this may break in the future")
public abstract class ClusterManagerStub implements BackgroundResource {

public UnaryCallable<DeleteClusterRequest, Operation> deleteClusterCallable() {
throw new UnsupportedOperationException("Not implemented: deleteClusterCallable()");
}

public UnaryCallable<DeleteNodePoolRequest, Operation> deleteNodePoolCallable() {
throw new UnsupportedOperationException("Not implemented: deleteNodePoolCallable()");
}

public UnaryCallable<ListClustersRequest, ListClustersResponse> listClustersCallable() {
throw new UnsupportedOperationException("Not implemented: listClustersCallable()");
}
Expand Down Expand Up @@ -120,10 +128,6 @@ public UnaryCallable<SetMasterAuthRequest, Operation> setMasterAuthCallable() {
throw new UnsupportedOperationException("Not implemented: setMasterAuthCallable()");
}

public UnaryCallable<DeleteClusterRequest, Operation> deleteClusterCallable() {
throw new UnsupportedOperationException("Not implemented: deleteClusterCallable()");
}

public UnaryCallable<ListOperationsRequest, ListOperationsResponse> listOperationsCallable() {
throw new UnsupportedOperationException("Not implemented: listOperationsCallable()");
}
Expand Down Expand Up @@ -152,10 +156,6 @@ public UnaryCallable<CreateNodePoolRequest, Operation> createNodePoolCallable()
throw new UnsupportedOperationException("Not implemented: createNodePoolCallable()");
}

public UnaryCallable<DeleteNodePoolRequest, Operation> deleteNodePoolCallable() {
throw new UnsupportedOperationException("Not implemented: deleteNodePoolCallable()");
}

public UnaryCallable<RollbackNodePoolUpgradeRequest, Operation>
rollbackNodePoolUpgradeCallable() {
throw new UnsupportedOperationException("Not implemented: rollbackNodePoolUpgradeCallable()");
Expand Down

0 comments on commit 697949e

Please sign in to comment.