Skip to content
This repository was archived by the owner on Sep 16, 2023. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
import com.google.container.v1.CancelOperationRequest;
import com.google.container.v1.Cluster;
import com.google.container.v1.CompleteIPRotationRequest;
import com.google.container.v1.CompleteNodePoolUpgradeRequest;
import com.google.container.v1.CreateClusterRequest;
import com.google.container.v1.CreateNodePoolRequest;
import com.google.container.v1.DeleteClusterRequest;
Expand Down Expand Up @@ -229,6 +230,12 @@ public UnaryCallSettings<DeleteNodePoolRequest, Operation> deleteNodePoolSetting
return ((ClusterManagerStubSettings) getStubSettings()).deleteNodePoolSettings();
}

/** Returns the object with the settings used for calls to completeNodePoolUpgrade. */
public UnaryCallSettings<CompleteNodePoolUpgradeRequest, Empty>
completeNodePoolUpgradeSettings() {
return ((ClusterManagerStubSettings) getStubSettings()).completeNodePoolUpgradeSettings();
}

/** Returns the object with the settings used for calls to rollbackNodePoolUpgrade. */
public UnaryCallSettings<RollbackNodePoolUpgradeRequest, Operation>
rollbackNodePoolUpgradeSettings() {
Expand Down Expand Up @@ -505,6 +512,12 @@ public UnaryCallSettings.Builder<DeleteNodePoolRequest, Operation> deleteNodePoo
return getStubSettingsBuilder().deleteNodePoolSettings();
}

/** Returns the builder for the settings used for calls to completeNodePoolUpgrade. */
public UnaryCallSettings.Builder<CompleteNodePoolUpgradeRequest, Empty>
completeNodePoolUpgradeSettings() {
return getStubSettingsBuilder().completeNodePoolUpgradeSettings();
}

/** Returns the builder for the settings used for calls to rollbackNodePoolUpgrade. */
public UnaryCallSettings.Builder<RollbackNodePoolUpgradeRequest, Operation>
rollbackNodePoolUpgradeSettings() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@
"CompleteIPRotation": {
"methods": ["completeIPRotation", "completeIPRotation", "completeIPRotation", "completeIPRotationCallable"]
},
"CompleteNodePoolUpgrade": {
"methods": ["completeNodePoolUpgrade", "completeNodePoolUpgradeCallable"]
},
"CreateCluster": {
"methods": ["createCluster", "createCluster", "createCluster", "createClusterCallable"]
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
import com.google.container.v1.CancelOperationRequest;
import com.google.container.v1.Cluster;
import com.google.container.v1.CompleteIPRotationRequest;
import com.google.container.v1.CompleteNodePoolUpgradeRequest;
import com.google.container.v1.CreateClusterRequest;
import com.google.container.v1.CreateNodePoolRequest;
import com.google.container.v1.DeleteClusterRequest;
Expand Down Expand Up @@ -162,6 +163,10 @@ public UnaryCallable<DeleteNodePoolRequest, Operation> deleteNodePoolCallable()
throw new UnsupportedOperationException("Not implemented: deleteNodePoolCallable()");
}

public UnaryCallable<CompleteNodePoolUpgradeRequest, Empty> completeNodePoolUpgradeCallable() {
throw new UnsupportedOperationException("Not implemented: completeNodePoolUpgradeCallable()");
}

public UnaryCallable<RollbackNodePoolUpgradeRequest, Operation>
rollbackNodePoolUpgradeCallable() {
throw new UnsupportedOperationException("Not implemented: rollbackNodePoolUpgradeCallable()");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@
import com.google.container.v1.CancelOperationRequest;
import com.google.container.v1.Cluster;
import com.google.container.v1.CompleteIPRotationRequest;
import com.google.container.v1.CompleteNodePoolUpgradeRequest;
import com.google.container.v1.CreateClusterRequest;
import com.google.container.v1.CreateNodePoolRequest;
import com.google.container.v1.DeleteClusterRequest;
Expand Down Expand Up @@ -159,6 +160,8 @@ public class ClusterManagerStubSettings extends StubSettings<ClusterManagerStubS
private final UnaryCallSettings<GetNodePoolRequest, NodePool> getNodePoolSettings;
private final UnaryCallSettings<CreateNodePoolRequest, Operation> createNodePoolSettings;
private final UnaryCallSettings<DeleteNodePoolRequest, Operation> deleteNodePoolSettings;
private final UnaryCallSettings<CompleteNodePoolUpgradeRequest, Empty>
completeNodePoolUpgradeSettings;
private final UnaryCallSettings<RollbackNodePoolUpgradeRequest, Operation>
rollbackNodePoolUpgradeSettings;
private final UnaryCallSettings<SetNodePoolManagementRequest, Operation>
Expand Down Expand Up @@ -358,6 +361,12 @@ public UnaryCallSettings<DeleteNodePoolRequest, Operation> deleteNodePoolSetting
return deleteNodePoolSettings;
}

/** Returns the object with the settings used for calls to completeNodePoolUpgrade. */
public UnaryCallSettings<CompleteNodePoolUpgradeRequest, Empty>
completeNodePoolUpgradeSettings() {
return completeNodePoolUpgradeSettings;
}

/** Returns the object with the settings used for calls to rollbackNodePoolUpgrade. */
public UnaryCallSettings<RollbackNodePoolUpgradeRequest, Operation>
rollbackNodePoolUpgradeSettings() {
Expand Down Expand Up @@ -511,6 +520,7 @@ protected ClusterManagerStubSettings(Builder settingsBuilder) throws IOException
getNodePoolSettings = settingsBuilder.getNodePoolSettings().build();
createNodePoolSettings = settingsBuilder.createNodePoolSettings().build();
deleteNodePoolSettings = settingsBuilder.deleteNodePoolSettings().build();
completeNodePoolUpgradeSettings = settingsBuilder.completeNodePoolUpgradeSettings().build();
rollbackNodePoolUpgradeSettings = settingsBuilder.rollbackNodePoolUpgradeSettings().build();
setNodePoolManagementSettings = settingsBuilder.setNodePoolManagementSettings().build();
setLabelsSettings = settingsBuilder.setLabelsSettings().build();
Expand Down Expand Up @@ -560,6 +570,8 @@ public static class Builder extends StubSettings.Builder<ClusterManagerStubSetti
createNodePoolSettings;
private final UnaryCallSettings.Builder<DeleteNodePoolRequest, Operation>
deleteNodePoolSettings;
private final UnaryCallSettings.Builder<CompleteNodePoolUpgradeRequest, Empty>
completeNodePoolUpgradeSettings;
private final UnaryCallSettings.Builder<RollbackNodePoolUpgradeRequest, Operation>
rollbackNodePoolUpgradeSettings;
private final UnaryCallSettings.Builder<SetNodePoolManagementRequest, Operation>
Expand Down Expand Up @@ -656,6 +668,7 @@ protected Builder(ClientContext clientContext) {
getNodePoolSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
createNodePoolSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
deleteNodePoolSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
completeNodePoolUpgradeSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
rollbackNodePoolUpgradeSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
setNodePoolManagementSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
setLabelsSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
Expand Down Expand Up @@ -692,6 +705,7 @@ protected Builder(ClientContext clientContext) {
getNodePoolSettings,
createNodePoolSettings,
deleteNodePoolSettings,
completeNodePoolUpgradeSettings,
rollbackNodePoolUpgradeSettings,
setNodePoolManagementSettings,
setLabelsSettings,
Expand Down Expand Up @@ -730,6 +744,7 @@ protected Builder(ClusterManagerStubSettings settings) {
getNodePoolSettings = settings.getNodePoolSettings.toBuilder();
createNodePoolSettings = settings.createNodePoolSettings.toBuilder();
deleteNodePoolSettings = settings.deleteNodePoolSettings.toBuilder();
completeNodePoolUpgradeSettings = settings.completeNodePoolUpgradeSettings.toBuilder();
rollbackNodePoolUpgradeSettings = settings.rollbackNodePoolUpgradeSettings.toBuilder();
setNodePoolManagementSettings = settings.setNodePoolManagementSettings.toBuilder();
setLabelsSettings = settings.setLabelsSettings.toBuilder();
Expand Down Expand Up @@ -765,6 +780,7 @@ protected Builder(ClusterManagerStubSettings settings) {
getNodePoolSettings,
createNodePoolSettings,
deleteNodePoolSettings,
completeNodePoolUpgradeSettings,
rollbackNodePoolUpgradeSettings,
setNodePoolManagementSettings,
setLabelsSettings,
Expand Down Expand Up @@ -901,6 +917,11 @@ private static Builder initDefaults(Builder builder) {
.setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes"))
.setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params"));

builder
.completeNodePoolUpgradeSettings()
.setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes"))
.setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params"));

builder
.rollbackNodePoolUpgradeSettings()
.setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes"))
Expand Down Expand Up @@ -1092,6 +1113,12 @@ public UnaryCallSettings.Builder<DeleteNodePoolRequest, Operation> deleteNodePoo
return deleteNodePoolSettings;
}

/** Returns the builder for the settings used for calls to completeNodePoolUpgrade. */
public UnaryCallSettings.Builder<CompleteNodePoolUpgradeRequest, Empty>
completeNodePoolUpgradeSettings() {
return completeNodePoolUpgradeSettings;
}

/** Returns the builder for the settings used for calls to rollbackNodePoolUpgrade. */
public UnaryCallSettings.Builder<RollbackNodePoolUpgradeRequest, Operation>
rollbackNodePoolUpgradeSettings() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
import com.google.container.v1.CancelOperationRequest;
import com.google.container.v1.Cluster;
import com.google.container.v1.CompleteIPRotationRequest;
import com.google.container.v1.CompleteNodePoolUpgradeRequest;
import com.google.container.v1.CreateClusterRequest;
import com.google.container.v1.CreateNodePoolRequest;
import com.google.container.v1.DeleteClusterRequest;
Expand Down Expand Up @@ -298,6 +299,16 @@ public class GrpcClusterManagerStub extends ClusterManagerStub {
.setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance()))
.build();

private static final MethodDescriptor<CompleteNodePoolUpgradeRequest, Empty>
completeNodePoolUpgradeMethodDescriptor =
MethodDescriptor.<CompleteNodePoolUpgradeRequest, Empty>newBuilder()
.setType(MethodDescriptor.MethodType.UNARY)
.setFullMethodName("google.container.v1.ClusterManager/CompleteNodePoolUpgrade")
.setRequestMarshaller(
ProtoUtils.marshaller(CompleteNodePoolUpgradeRequest.getDefaultInstance()))
.setResponseMarshaller(ProtoUtils.marshaller(Empty.getDefaultInstance()))
.build();

private static final MethodDescriptor<RollbackNodePoolUpgradeRequest, Operation>
rollbackNodePoolUpgradeMethodDescriptor =
MethodDescriptor.<RollbackNodePoolUpgradeRequest, Operation>newBuilder()
Expand Down Expand Up @@ -420,6 +431,8 @@ public class GrpcClusterManagerStub extends ClusterManagerStub {
private final UnaryCallable<GetNodePoolRequest, NodePool> getNodePoolCallable;
private final UnaryCallable<CreateNodePoolRequest, Operation> createNodePoolCallable;
private final UnaryCallable<DeleteNodePoolRequest, Operation> deleteNodePoolCallable;
private final UnaryCallable<CompleteNodePoolUpgradeRequest, Empty>
completeNodePoolUpgradeCallable;
private final UnaryCallable<RollbackNodePoolUpgradeRequest, Operation>
rollbackNodePoolUpgradeCallable;
private final UnaryCallable<SetNodePoolManagementRequest, Operation>
Expand Down Expand Up @@ -766,6 +779,17 @@ protected GrpcClusterManagerStub(
return params.build();
})
.build();
GrpcCallSettings<CompleteNodePoolUpgradeRequest, Empty>
completeNodePoolUpgradeTransportSettings =
GrpcCallSettings.<CompleteNodePoolUpgradeRequest, Empty>newBuilder()
.setMethodDescriptor(completeNodePoolUpgradeMethodDescriptor)
.setParamsExtractor(
request -> {
ImmutableMap.Builder<String, String> params = ImmutableMap.builder();
params.put("name", String.valueOf(request.getName()));
return params.build();
})
.build();
GrpcCallSettings<RollbackNodePoolUpgradeRequest, Operation>
rollbackNodePoolUpgradeTransportSettings =
GrpcCallSettings.<RollbackNodePoolUpgradeRequest, Operation>newBuilder()
Expand Down Expand Up @@ -973,6 +997,11 @@ protected GrpcClusterManagerStub(
this.deleteNodePoolCallable =
callableFactory.createUnaryCallable(
deleteNodePoolTransportSettings, settings.deleteNodePoolSettings(), clientContext);
this.completeNodePoolUpgradeCallable =
callableFactory.createUnaryCallable(
completeNodePoolUpgradeTransportSettings,
settings.completeNodePoolUpgradeSettings(),
clientContext);
this.rollbackNodePoolUpgradeCallable =
callableFactory.createUnaryCallable(
rollbackNodePoolUpgradeTransportSettings,
Expand Down Expand Up @@ -1137,6 +1166,11 @@ public UnaryCallable<DeleteNodePoolRequest, Operation> deleteNodePoolCallable()
return deleteNodePoolCallable;
}

@Override
public UnaryCallable<CompleteNodePoolUpgradeRequest, Empty> completeNodePoolUpgradeCallable() {
return completeNodePoolUpgradeCallable;
}

@Override
public UnaryCallable<RollbackNodePoolUpgradeRequest, Operation>
rollbackNodePoolUpgradeCallable() {
Expand Down
Loading