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

Commit

Permalink
feat: add ListUsableSubnetworks rpc, k8s taint support, many Cluster …
Browse files Browse the repository at this point in the history
…configuration options (#30)

* [CHANGE ME] Re-generated  to pick up changes in the API or client library generator.

* chore: allow proto interface changes

* chore: fix generated license headers

Co-authored-by: Jeff Ching <chingor@google.com>
  • Loading branch information
yoshi-automation and chingor13 committed Dec 23, 2019
1 parent 734a0c8 commit 1a5918d
Show file tree
Hide file tree
Showing 176 changed files with 45,756 additions and 4,741 deletions.
1 change: 1 addition & 0 deletions .github/release-please.yml
@@ -1 +1,2 @@
releaseType: java-yoshi
bumpMinorPreMajor: true
14 changes: 10 additions & 4 deletions .kokoro/build.sh
Expand Up @@ -27,6 +27,7 @@ echo ${JOB_TYPE}
mvn install -B -V \
-DskipTests=true \
-Dclirr.skip=true \
-Denforcer.skip=true \
-Dmaven.javadoc.skip=true \
-Dgcloud.download.skip=true \
-T 1C
Expand All @@ -38,7 +39,7 @@ fi

case ${JOB_TYPE} in
test)
mvn test -B -Dclirr.skip=true
mvn test -B -Dclirr.skip=true -Denforcer.skip=true
bash ${KOKORO_GFILE_DIR}/codecov.sh
bash .kokoro/coerce_logs.sh
;;
Expand All @@ -49,12 +50,17 @@ javadoc)
mvn javadoc:javadoc javadoc:test-javadoc
;;
integration)
mvn -B ${INTEGRATION_TEST_ARGS} -DtrimStackTrace=false -Dclirr.skip=true -fae verify
mvn -B ${INTEGRATION_TEST_ARGS} \
-DtrimStackTrace=false \
-Dclirr.skip=true \
-Denforcer.skip=true \
-fae \
verify
bash .kokoro/coerce_logs.sh
;;
clirr)
mvn -B clirr:check
mvn -B -Denforcer.skip=true clirr:check
;;
*)
;;
esac
esac
6 changes: 5 additions & 1 deletion .kokoro/dependencies.sh
Expand Up @@ -23,5 +23,9 @@ echo $JOB_TYPE

export MAVEN_OPTS="-Xmx1024m -XX:MaxPermSize=128m"

mvn install -DskipTests=true -B -V
# this should run maven enforcer
mvn install -B -V \
-DskipTests=true \
-Dclirr.skip=true

mvn -B dependency:analyze -DfailOnWarning=true
3 changes: 0 additions & 3 deletions .kokoro/release/drop.cfg
Expand Up @@ -4,6 +4,3 @@ env_vars: {
key: "TRAMPOLINE_BUILD_FILE"
value: "github/java-container/.kokoro/release/drop.sh"
}

# Download staging properties file.
gfile_resources: "/bigstore/cloud-devrel-kokoro-resources/java/releases/java-container"
4 changes: 0 additions & 4 deletions .kokoro/release/promote.cfg
Expand Up @@ -4,7 +4,3 @@ env_vars: {
key: "TRAMPOLINE_BUILD_FILE"
value: "github/java-container/.kokoro/release/promote.sh"
}

# Download staging properties file.
gfile_resources: "/bigstore/cloud-devrel-kokoro-resources/java/releases/java-container"

2 changes: 1 addition & 1 deletion .kokoro/release/publish_javadoc.sh
Expand Up @@ -33,7 +33,7 @@ python3 -m pip install gcp-docuploader
# compile all packages
mvn clean install -B -DskipTests=true

NAME=container
NAME=google-cloud-container
VERSION=$(grep ${NAME}: versions.txt | cut -d: -f3)

# build the docs
Expand Down

Large diffs are not rendered by default.

Expand Up @@ -15,6 +15,8 @@
*/
package com.google.cloud.container.v1;

import static com.google.cloud.container.v1.ClusterManagerClient.ListUsableSubnetworksPagedResponse;

import com.google.api.core.ApiFunction;
import com.google.api.core.BetaApi;
import com.google.api.gax.core.GoogleCredentialsProvider;
Expand All @@ -23,6 +25,7 @@
import com.google.api.gax.rpc.ApiClientHeaderProvider;
import com.google.api.gax.rpc.ClientContext;
import com.google.api.gax.rpc.ClientSettings;
import com.google.api.gax.rpc.PagedCallSettings;
import com.google.api.gax.rpc.TransportChannelProvider;
import com.google.api.gax.rpc.UnaryCallSettings;
import com.google.cloud.container.v1.stub.ClusterManagerStubSettings;
Expand All @@ -43,6 +46,8 @@
import com.google.container.v1.ListNodePoolsResponse;
import com.google.container.v1.ListOperationsRequest;
import com.google.container.v1.ListOperationsResponse;
import com.google.container.v1.ListUsableSubnetworksRequest;
import com.google.container.v1.ListUsableSubnetworksResponse;
import com.google.container.v1.NodePool;
import com.google.container.v1.Operation;
import com.google.container.v1.RollbackNodePoolUpgradeRequest;
Expand Down Expand Up @@ -251,6 +256,15 @@ public UnaryCallSettings<SetMaintenancePolicyRequest, Operation> setMaintenanceP
return ((ClusterManagerStubSettings) getStubSettings()).setMaintenancePolicySettings();
}

/** Returns the object with the settings used for calls to listUsableSubnetworks. */
public PagedCallSettings<
ListUsableSubnetworksRequest,
ListUsableSubnetworksResponse,
ListUsableSubnetworksPagedResponse>
listUsableSubnetworksSettings() {
return ((ClusterManagerStubSettings) getStubSettings()).listUsableSubnetworksSettings();
}

public static final ClusterManagerSettings create(ClusterManagerStubSettings stub)
throws IOException {
return new ClusterManagerSettings.Builder(stub.toBuilder()).build();
Expand Down Expand Up @@ -510,6 +524,15 @@ public UnaryCallSettings.Builder<SetNodePoolSizeRequest, Operation> setNodePoolS
return getStubSettingsBuilder().setMaintenancePolicySettings();
}

/** Returns the builder for the settings used for calls to listUsableSubnetworks. */
public PagedCallSettings.Builder<
ListUsableSubnetworksRequest,
ListUsableSubnetworksResponse,
ListUsableSubnetworksPagedResponse>
listUsableSubnetworksSettings() {
return getStubSettingsBuilder().listUsableSubnetworksSettings();
}

@Override
public ClusterManagerSettings build() throws IOException {
return new ClusterManagerSettings(this);
Expand Down
Expand Up @@ -15,6 +15,8 @@
*/
package com.google.cloud.container.v1.stub;

import static com.google.cloud.container.v1.ClusterManagerClient.ListUsableSubnetworksPagedResponse;

import com.google.api.core.BetaApi;
import com.google.api.gax.core.BackgroundResource;
import com.google.api.gax.rpc.UnaryCallable;
Expand All @@ -35,6 +37,8 @@
import com.google.container.v1.ListNodePoolsResponse;
import com.google.container.v1.ListOperationsRequest;
import com.google.container.v1.ListOperationsResponse;
import com.google.container.v1.ListUsableSubnetworksRequest;
import com.google.container.v1.ListUsableSubnetworksResponse;
import com.google.container.v1.NodePool;
import com.google.container.v1.Operation;
import com.google.container.v1.RollbackNodePoolUpgradeRequest;
Expand Down Expand Up @@ -189,6 +193,17 @@ public UnaryCallable<SetMaintenancePolicyRequest, Operation> setMaintenancePolic
throw new UnsupportedOperationException("Not implemented: setMaintenancePolicyCallable()");
}

public UnaryCallable<ListUsableSubnetworksRequest, ListUsableSubnetworksPagedResponse>
listUsableSubnetworksPagedCallable() {
throw new UnsupportedOperationException(
"Not implemented: listUsableSubnetworksPagedCallable()");
}

public UnaryCallable<ListUsableSubnetworksRequest, ListUsableSubnetworksResponse>
listUsableSubnetworksCallable() {
throw new UnsupportedOperationException("Not implemented: listUsableSubnetworksCallable()");
}

@Override
public abstract void close();
}

0 comments on commit 1a5918d

Please sign in to comment.