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
2 changes: 2 additions & 0 deletions .github/CODEOWNERS
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@
# For syntax help see:
# https://help.github.com/en/github/creating-cloning-and-archiving-repositories/about-code-owners#codeowners-syntax

# The @googleapis/cicd is the default owner for changes in this repo
* @googleapis/yoshi-java @googleapis/cicd
**/*.java @googleapis/cicd

# The java-samples-reviewers team is the default owner for samples changes
samples/**/*.java @googleapis/java-samples-reviewers

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,15 @@
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

package com.google.cloud.container.v1;

import static com.google.cloud.container.v1.ClusterManagerClient.ListUsableSubnetworksPagedResponse;
Expand Down Expand Up @@ -75,7 +76,7 @@
import java.util.List;
import javax.annotation.Generated;

// AUTO-GENERATED DOCUMENTATION AND CLASS
// AUTO-GENERATED DOCUMENTATION AND CLASS.
/**
* Settings class to configure an instance of {@link ClusterManagerClient}.
*
Expand All @@ -92,23 +93,24 @@
*
* <p>For example, to set the total timeout of listClusters to 30 seconds:
*
* <pre>
* <code>
* <pre>{@code
* ClusterManagerSettings.Builder clusterManagerSettingsBuilder =
* ClusterManagerSettings.newBuilder();
* clusterManagerSettingsBuilder
* .listClustersSettings()
* .setRetrySettings(
* clusterManagerSettingsBuilder.listClustersSettings().getRetrySettings().toBuilder()
* clusterManagerSettingsBuilder
* .listClustersSettings()
* .getRetrySettings()
* .toBuilder()
* .setTotalTimeout(Duration.ofSeconds(30))
* .build());
* ClusterManagerSettings clusterManagerSettings = clusterManagerSettingsBuilder.build();
* </code>
* </pre>
* }</pre>
*/
@Generated("by gapic-generator")
@BetaApi
@Generated("by gapic-generator-java")
public class ClusterManagerSettings extends ClientSettings<ClusterManagerSettings> {

/** Returns the object with the settings used for calls to listClusters. */
public UnaryCallSettings<ListClustersRequest, ListClustersResponse> listClustersSettings() {
return ((ClusterManagerStubSettings) getStubSettings()).listClustersSettings();
Expand Down Expand Up @@ -180,12 +182,12 @@ public UnaryCallSettings<ListOperationsRequest, ListOperationsResponse> listOper
return ((ClusterManagerStubSettings) getStubSettings()).listOperationsSettings();
}

/** Returns the object with the settings used for calls to getOperation. */
/** Returns the object with the settings used for calls to get. */
public UnaryCallSettings<GetOperationRequest, Operation> getOperationSettings() {
return ((ClusterManagerStubSettings) getStubSettings()).getOperationSettings();
}

/** Returns the object with the settings used for calls to cancelOperation. */
/** Returns the object with the settings used for calls to cancel. */
public UnaryCallSettings<CancelOperationRequest, Empty> cancelOperationSettings() {
return ((ClusterManagerStubSettings) getStubSettings()).cancelOperationSettings();
}
Expand Down Expand Up @@ -336,18 +338,15 @@ protected ClusterManagerSettings(Builder settingsBuilder) throws IOException {

/** Builder for ClusterManagerSettings. */
public static class Builder extends ClientSettings.Builder<ClusterManagerSettings, Builder> {

protected Builder() throws IOException {
this((ClientContext) null);
this(((ClientContext) null));
}

protected Builder(ClientContext clientContext) {
super(ClusterManagerStubSettings.newBuilder(clientContext));
}

private static Builder createDefault() {
return new Builder(ClusterManagerStubSettings.newBuilder());
}

protected Builder(ClusterManagerSettings settings) {
super(settings.getStubSettings().toBuilder());
}
Expand All @@ -356,11 +355,15 @@ protected Builder(ClusterManagerStubSettings.Builder stubSettings) {
super(stubSettings);
}

private static Builder createDefault() {
return new Builder(ClusterManagerStubSettings.newBuilder());
}

public ClusterManagerStubSettings.Builder getStubSettingsBuilder() {
return ((ClusterManagerStubSettings.Builder) getStubSettings());
}

// NEXT_MAJOR_VER: remove 'throws Exception'
// NEXT_MAJOR_VER: remove 'throws Exception'.
/**
* Applies the given settings updater function to all of the unary API methods in this service.
*
Expand Down Expand Up @@ -448,12 +451,12 @@ public UnaryCallSettings.Builder<DeleteClusterRequest, Operation> deleteClusterS
return getStubSettingsBuilder().listOperationsSettings();
}

/** Returns the builder for the settings used for calls to getOperation. */
/** Returns the builder for the settings used for calls to get. */
public UnaryCallSettings.Builder<GetOperationRequest, Operation> getOperationSettings() {
return getStubSettingsBuilder().getOperationSettings();
}

/** Returns the builder for the settings used for calls to cancelOperation. */
/** Returns the builder for the settings used for calls to cancel. */
public UnaryCallSettings.Builder<CancelOperationRequest, Empty> cancelOperationSettings() {
return getStubSettingsBuilder().cancelOperationSettings();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
Expand All @@ -15,27 +15,15 @@
*/

/**
* A client to Kubernetes Engine API.
* The interfaces provided are listed below, along with usage samples.
*
* <p>The interfaces provided are listed below, along with usage samples.
*
* <p>==================== ClusterManagerClient ====================
* <p>======================= ClusterManagerClient =======================
*
* <p>Service Description: Google Kubernetes Engine Cluster Manager v1
*
* <p>Sample for ClusterManagerClient:
*
* <pre>
* <code>
* try (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) {
* String projectId = "";
* String zone = "";
* ListClustersResponse response = clusterManagerClient.listClusters(projectId, zone);
* }
* </code>
* </pre>
*/
@Generated("by gapic-generator")
@Generated("by gapic-generator-java")
package com.google.cloud.container.v1;

import javax.annotation.Generated;
Original file line number Diff line number Diff line change
Expand Up @@ -5,19 +5,19 @@
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

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;
import com.google.container.v1.CancelOperationRequest;
Expand Down Expand Up @@ -64,14 +64,13 @@
import com.google.protobuf.Empty;
import javax.annotation.Generated;

// AUTO-GENERATED DOCUMENTATION AND CLASS
// AUTO-GENERATED DOCUMENTATION AND CLASS.
/**
* Base stub class for Kubernetes Engine API.
* Base stub class for the ClusterManager service API.
*
* <p>This class is for advanced usage and reflects the underlying API directly.
*/
@Generated("by gapic-generator")
@BetaApi("A restructuring of stub classes is planned, so this may break in the future")
public abstract class ClusterManagerStub implements BackgroundResource {

public UnaryCallable<ListClustersRequest, ListClustersResponse> listClustersCallable() {
Expand Down
Loading