Skip to content
Closed
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
Original file line number Diff line number Diff line change
Expand Up @@ -895,10 +895,10 @@ public com.google.cloud.bigquery.reservation.v1.SchedulingPolicy getSchedulingPo
*
* <pre>
* Optional. Represents the principal for this assignment. If not empty, jobs
* run by this principal will utilize the associated reservation. Otherwise,
* jobs will fall back to using the reservation assigned to the project,
* folder, or organization (in that order). If no reservation is assigned at
* any of these levels, on-demand capacity will be used.
* run by this principal utilize the associated reservation. Otherwise, jobs
* fall back to using the reservation assigned to the project, folder,
* or organization, in that order. If no reservation is assigned at any of
* these levels, on-demand capacity is used.
*
* The supported formats are:
*
Expand All @@ -908,7 +908,7 @@ public com.google.cloud.bigquery.reservation.v1.SchedulingPolicy getSchedulingPo
* * `principal://iam.googleapis.com/projects/PROJECT_NUMBER/locations/global/workloadIdentityPools/POOL_ID/subject/SUBJECT_ID`
* for workload identity pool identities.
* * The special value `unknown_or_deleted_user` represents principals which
* cannot be read from the user info service, for example deleted users.
* cannot be read from the user info service, for example, deleted users.
* </pre>
*
* <code>string principal = 12 [(.google.api.field_behavior) = OPTIONAL];</code>
Expand All @@ -933,10 +933,10 @@ public java.lang.String getPrincipal() {
*
* <pre>
* Optional. Represents the principal for this assignment. If not empty, jobs
* run by this principal will utilize the associated reservation. Otherwise,
* jobs will fall back to using the reservation assigned to the project,
* folder, or organization (in that order). If no reservation is assigned at
* any of these levels, on-demand capacity will be used.
* run by this principal utilize the associated reservation. Otherwise, jobs
* fall back to using the reservation assigned to the project, folder,
* or organization, in that order. If no reservation is assigned at any of
* these levels, on-demand capacity is used.
*
* The supported formats are:
*
Expand All @@ -946,7 +946,7 @@ public java.lang.String getPrincipal() {
* * `principal://iam.googleapis.com/projects/PROJECT_NUMBER/locations/global/workloadIdentityPools/POOL_ID/subject/SUBJECT_ID`
* for workload identity pool identities.
* * The special value `unknown_or_deleted_user` represents principals which
* cannot be read from the user info service, for example deleted users.
* cannot be read from the user info service, for example, deleted users.
* </pre>
*
* <code>string principal = 12 [(.google.api.field_behavior) = OPTIONAL];</code>
Expand Down Expand Up @@ -2391,10 +2391,10 @@ public Builder clearSchedulingPolicy() {
*
* <pre>
* Optional. Represents the principal for this assignment. If not empty, jobs
* run by this principal will utilize the associated reservation. Otherwise,
* jobs will fall back to using the reservation assigned to the project,
* folder, or organization (in that order). If no reservation is assigned at
* any of these levels, on-demand capacity will be used.
* run by this principal utilize the associated reservation. Otherwise, jobs
* fall back to using the reservation assigned to the project, folder,
* or organization, in that order. If no reservation is assigned at any of
* these levels, on-demand capacity is used.
*
* The supported formats are:
*
Expand All @@ -2404,7 +2404,7 @@ public Builder clearSchedulingPolicy() {
* * `principal://iam.googleapis.com/projects/PROJECT_NUMBER/locations/global/workloadIdentityPools/POOL_ID/subject/SUBJECT_ID`
* for workload identity pool identities.
* * The special value `unknown_or_deleted_user` represents principals which
* cannot be read from the user info service, for example deleted users.
* cannot be read from the user info service, for example, deleted users.
* </pre>
*
* <code>string principal = 12 [(.google.api.field_behavior) = OPTIONAL];</code>
Expand All @@ -2428,10 +2428,10 @@ public java.lang.String getPrincipal() {
*
* <pre>
* Optional. Represents the principal for this assignment. If not empty, jobs
* run by this principal will utilize the associated reservation. Otherwise,
* jobs will fall back to using the reservation assigned to the project,
* folder, or organization (in that order). If no reservation is assigned at
* any of these levels, on-demand capacity will be used.
* run by this principal utilize the associated reservation. Otherwise, jobs
* fall back to using the reservation assigned to the project, folder,
* or organization, in that order. If no reservation is assigned at any of
* these levels, on-demand capacity is used.
*
* The supported formats are:
*
Expand All @@ -2441,7 +2441,7 @@ public java.lang.String getPrincipal() {
* * `principal://iam.googleapis.com/projects/PROJECT_NUMBER/locations/global/workloadIdentityPools/POOL_ID/subject/SUBJECT_ID`
* for workload identity pool identities.
* * The special value `unknown_or_deleted_user` represents principals which
* cannot be read from the user info service, for example deleted users.
* cannot be read from the user info service, for example, deleted users.
* </pre>
*
* <code>string principal = 12 [(.google.api.field_behavior) = OPTIONAL];</code>
Expand All @@ -2465,10 +2465,10 @@ public com.google.protobuf.ByteString getPrincipalBytes() {
*
* <pre>
* Optional. Represents the principal for this assignment. If not empty, jobs
* run by this principal will utilize the associated reservation. Otherwise,
* jobs will fall back to using the reservation assigned to the project,
* folder, or organization (in that order). If no reservation is assigned at
* any of these levels, on-demand capacity will be used.
* run by this principal utilize the associated reservation. Otherwise, jobs
* fall back to using the reservation assigned to the project, folder,
* or organization, in that order. If no reservation is assigned at any of
* these levels, on-demand capacity is used.
*
* The supported formats are:
*
Expand All @@ -2478,7 +2478,7 @@ public com.google.protobuf.ByteString getPrincipalBytes() {
* * `principal://iam.googleapis.com/projects/PROJECT_NUMBER/locations/global/workloadIdentityPools/POOL_ID/subject/SUBJECT_ID`
* for workload identity pool identities.
* * The special value `unknown_or_deleted_user` represents principals which
* cannot be read from the user info service, for example deleted users.
* cannot be read from the user info service, for example, deleted users.
* </pre>
*
* <code>string principal = 12 [(.google.api.field_behavior) = OPTIONAL];</code>
Expand All @@ -2501,10 +2501,10 @@ public Builder setPrincipal(java.lang.String value) {
*
* <pre>
* Optional. Represents the principal for this assignment. If not empty, jobs
* run by this principal will utilize the associated reservation. Otherwise,
* jobs will fall back to using the reservation assigned to the project,
* folder, or organization (in that order). If no reservation is assigned at
* any of these levels, on-demand capacity will be used.
* run by this principal utilize the associated reservation. Otherwise, jobs
* fall back to using the reservation assigned to the project, folder,
* or organization, in that order. If no reservation is assigned at any of
* these levels, on-demand capacity is used.
*
* The supported formats are:
*
Expand All @@ -2514,7 +2514,7 @@ public Builder setPrincipal(java.lang.String value) {
* * `principal://iam.googleapis.com/projects/PROJECT_NUMBER/locations/global/workloadIdentityPools/POOL_ID/subject/SUBJECT_ID`
* for workload identity pool identities.
* * The special value `unknown_or_deleted_user` represents principals which
* cannot be read from the user info service, for example deleted users.
* cannot be read from the user info service, for example, deleted users.
* </pre>
*
* <code>string principal = 12 [(.google.api.field_behavior) = OPTIONAL];</code>
Expand All @@ -2533,10 +2533,10 @@ public Builder clearPrincipal() {
*
* <pre>
* Optional. Represents the principal for this assignment. If not empty, jobs
* run by this principal will utilize the associated reservation. Otherwise,
* jobs will fall back to using the reservation assigned to the project,
* folder, or organization (in that order). If no reservation is assigned at
* any of these levels, on-demand capacity will be used.
* run by this principal utilize the associated reservation. Otherwise, jobs
* fall back to using the reservation assigned to the project, folder,
* or organization, in that order. If no reservation is assigned at any of
* these levels, on-demand capacity is used.
*
* The supported formats are:
*
Expand All @@ -2546,7 +2546,7 @@ public Builder clearPrincipal() {
* * `principal://iam.googleapis.com/projects/PROJECT_NUMBER/locations/global/workloadIdentityPools/POOL_ID/subject/SUBJECT_ID`
* for workload identity pool identities.
* * The special value `unknown_or_deleted_user` represents principals which
* cannot be read from the user info service, for example deleted users.
* cannot be read from the user info service, for example, deleted users.
* </pre>
*
* <code>string principal = 12 [(.google.api.field_behavior) = OPTIONAL];</code>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -231,10 +231,10 @@ public interface AssignmentOrBuilder
*
* <pre>
* Optional. Represents the principal for this assignment. If not empty, jobs
* run by this principal will utilize the associated reservation. Otherwise,
* jobs will fall back to using the reservation assigned to the project,
* folder, or organization (in that order). If no reservation is assigned at
* any of these levels, on-demand capacity will be used.
* run by this principal utilize the associated reservation. Otherwise, jobs
* fall back to using the reservation assigned to the project, folder,
* or organization, in that order. If no reservation is assigned at any of
* these levels, on-demand capacity is used.
*
* The supported formats are:
*
Expand All @@ -244,7 +244,7 @@ public interface AssignmentOrBuilder
* * `principal://iam.googleapis.com/projects/PROJECT_NUMBER/locations/global/workloadIdentityPools/POOL_ID/subject/SUBJECT_ID`
* for workload identity pool identities.
* * The special value `unknown_or_deleted_user` represents principals which
* cannot be read from the user info service, for example deleted users.
* cannot be read from the user info service, for example, deleted users.
* </pre>
*
* <code>string principal = 12 [(.google.api.field_behavior) = OPTIONAL];</code>
Expand All @@ -258,10 +258,10 @@ public interface AssignmentOrBuilder
*
* <pre>
* Optional. Represents the principal for this assignment. If not empty, jobs
* run by this principal will utilize the associated reservation. Otherwise,
* jobs will fall back to using the reservation assigned to the project,
* folder, or organization (in that order). If no reservation is assigned at
* any of these levels, on-demand capacity will be used.
* run by this principal utilize the associated reservation. Otherwise, jobs
* fall back to using the reservation assigned to the project, folder,
* or organization, in that order. If no reservation is assigned at any of
* these levels, on-demand capacity is used.
*
* The supported formats are:
*
Expand All @@ -271,7 +271,7 @@ public interface AssignmentOrBuilder
* * `principal://iam.googleapis.com/projects/PROJECT_NUMBER/locations/global/workloadIdentityPools/POOL_ID/subject/SUBJECT_ID`
* for workload identity pool identities.
* * The special value `unknown_or_deleted_user` represents principals which
* cannot be read from the user info service, for example deleted users.
* cannot be read from the user info service, for example, deleted users.
* </pre>
*
* <code>string principal = 12 [(.google.api.field_behavior) = OPTIONAL];</code>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1409,10 +1409,10 @@ message Assignment {
[(google.api.field_behavior) = OPTIONAL];

// Optional. Represents the principal for this assignment. If not empty, jobs
// run by this principal will utilize the associated reservation. Otherwise,
// jobs will fall back to using the reservation assigned to the project,
// folder, or organization (in that order). If no reservation is assigned at
// any of these levels, on-demand capacity will be used.
// run by this principal utilize the associated reservation. Otherwise, jobs
// fall back to using the reservation assigned to the project, folder,
// or organization, in that order. If no reservation is assigned at any of
// these levels, on-demand capacity is used.
//
// The supported formats are:
//
Expand All @@ -1422,7 +1422,7 @@ message Assignment {
// * `principal://iam.googleapis.com/projects/PROJECT_NUMBER/locations/global/workloadIdentityPools/POOL_ID/subject/SUBJECT_ID`
// for workload identity pool identities.
// * The special value `unknown_or_deleted_user` represents principals which
// cannot be read from the user info service, for example deleted users.
// cannot be read from the user info service, for example, deleted users.
string principal = 12 [(google.api.field_behavior) = OPTIONAL];

// Optional. Specifies the priority precedence for this assignment. Used to
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@
import com.google.container.v1.Cluster;
import com.google.container.v1.ClusterUpdate;
import com.google.container.v1.ClusterUpgradeInfo;
import com.google.container.v1.CompleteControlPlaneUpgradeRequest;
import com.google.container.v1.CompleteIPRotationRequest;
import com.google.container.v1.CompleteNodePoolUpgradeRequest;
import com.google.container.v1.CreateClusterRequest;
Expand Down Expand Up @@ -755,6 +756,20 @@
* </ul>
* </td>
* </tr>
* <tr>
* <td><p> CompleteControlPlaneUpgrade</td>
* <td><p> CompleteControlPlaneUpgrade completes the rollback-safe upgrade by performing the step two upgrade for a specific cluster.</td>
* <td>
* <p>Request object method variants only take one parameter, a request object, which must be constructed before the call.</p>
* <ul>
* <li><p> completeControlPlaneUpgrade(CompleteControlPlaneUpgradeRequest request)
* </ul>
* <p>Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.</p>
* <ul>
* <li><p> completeControlPlaneUpgradeCallable()
* </ul>
* </td>
* </tr>
* </table>
*
* <p>See the individual methods for example code.
Expand Down Expand Up @@ -1480,6 +1495,7 @@ public final UnaryCallable<UpdateClusterRequest, Operation> updateClusterCallabl
* .setNodeDrainConfig(NodePool.NodeDrainConfig.newBuilder().build())
* .setConsolidationDelay(Duration.newBuilder().build())
* .setTaintConfig(TaintConfig.newBuilder().build())
* .setMaintenancePolicy(NodePool.NodePoolMaintenancePolicy.newBuilder().build())
* .build();
* Operation response = clusterManagerClient.updateNodePool(request);
* }
Expand Down Expand Up @@ -1547,6 +1563,7 @@ public final Operation updateNodePool(UpdateNodePoolRequest request) {
* .setNodeDrainConfig(NodePool.NodeDrainConfig.newBuilder().build())
* .setConsolidationDelay(Duration.newBuilder().build())
* .setTaintConfig(TaintConfig.newBuilder().build())
* .setMaintenancePolicy(NodePool.NodePoolMaintenancePolicy.newBuilder().build())
* .build();
* ApiFuture<Operation> future =
* clusterManagerClient.updateNodePoolCallable().futureCall(request);
Expand Down Expand Up @@ -5144,6 +5161,67 @@ public final NodePoolUpgradeInfo fetchNodePoolUpgradeInfo(
return stub.fetchNodePoolUpgradeInfoCallable();
}

// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
* CompleteControlPlaneUpgrade completes the rollback-safe upgrade by performing the step two
* upgrade for a specific cluster.
*
* <p>Sample code:
*
* <pre>{@code
* // This snippet has been automatically generated and should be regarded as a code template only.
* // It will require modifications to work:
* // - It may require correct/in-range values for request initialization.
* // - It may require specifying regional endpoints when creating the service client as shown in
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) {
* CompleteControlPlaneUpgradeRequest request =
* CompleteControlPlaneUpgradeRequest.newBuilder()
* .setName("name3373707")
* .setVersion("version351608024")
* .build();
* Operation response = clusterManagerClient.completeControlPlaneUpgrade(request);
* }
* }</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 Operation completeControlPlaneUpgrade(CompleteControlPlaneUpgradeRequest request) {
return completeControlPlaneUpgradeCallable().call(request);
}

// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
* CompleteControlPlaneUpgrade completes the rollback-safe upgrade by performing the step two
* upgrade for a specific cluster.
*
* <p>Sample code:
*
* <pre>{@code
* // This snippet has been automatically generated and should be regarded as a code template only.
* // It will require modifications to work:
* // - It may require correct/in-range values for request initialization.
* // - It may require specifying regional endpoints when creating the service client as shown in
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) {
* CompleteControlPlaneUpgradeRequest request =
* CompleteControlPlaneUpgradeRequest.newBuilder()
* .setName("name3373707")
* .setVersion("version351608024")
* .build();
* ApiFuture<Operation> future =
* clusterManagerClient.completeControlPlaneUpgradeCallable().futureCall(request);
* // Do something.
* Operation response = future.get();
* }
* }</pre>
*/
public final UnaryCallable<CompleteControlPlaneUpgradeRequest, Operation>
completeControlPlaneUpgradeCallable() {
return stub.completeControlPlaneUpgradeCallable();
}

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