Skip to content

Commit 1f62a66

Browse files
Google APIscopybara-github
authored andcommitted
feat: Add support for viewing the subnet IPv6 CIDR and services IPv6 CIDR assigned to dual stack clusters
PiperOrigin-RevId: 502669678
1 parent 5367905 commit 1f62a66

1 file changed

Lines changed: 54 additions & 29 deletions

File tree

google/container/v1/cluster_service.proto

Lines changed: 54 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,8 @@ option (google.api.resource_definition) = {
4242
// Google Kubernetes Engine Cluster Manager v1
4343
service ClusterManager {
4444
option (google.api.default_host) = "container.googleapis.com";
45-
option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/cloud-platform";
45+
option (google.api.oauth_scopes) =
46+
"https://www.googleapis.com/auth/cloud-platform";
4647

4748
// Lists all clusters owned by a project in either the specified zone or all
4849
// zones.
@@ -123,7 +124,8 @@ service ClusterManager {
123124
}
124125

125126
// Sets the autoscaling settings for the specified node pool.
126-
rpc SetNodePoolAutoscaling(SetNodePoolAutoscalingRequest) returns (Operation) {
127+
rpc SetNodePoolAutoscaling(SetNodePoolAutoscalingRequest)
128+
returns (Operation) {
127129
option (google.api.http) = {
128130
post: "/v1/{name=projects/*/locations/*/clusters/*/nodePools/*}:setAutoscaling"
129131
body: "*"
@@ -144,7 +146,8 @@ service ClusterManager {
144146
body: "*"
145147
}
146148
};
147-
option (google.api.method_signature) = "project_id,zone,cluster_id,logging_service";
149+
option (google.api.method_signature) =
150+
"project_id,zone,cluster_id,logging_service";
148151
option (google.api.method_signature) = "name,logging_service";
149152
}
150153

@@ -158,7 +161,8 @@ service ClusterManager {
158161
body: "*"
159162
}
160163
};
161-
option (google.api.method_signature) = "project_id,zone,cluster_id,monitoring_service";
164+
option (google.api.method_signature) =
165+
"project_id,zone,cluster_id,monitoring_service";
162166
option (google.api.method_signature) = "name,monitoring_service";
163167
}
164168

@@ -172,7 +176,8 @@ service ClusterManager {
172176
body: "*"
173177
}
174178
};
175-
option (google.api.method_signature) = "project_id,zone,cluster_id,addons_config";
179+
option (google.api.method_signature) =
180+
"project_id,zone,cluster_id,addons_config";
176181
option (google.api.method_signature) = "name,addons_config";
177182
}
178183

@@ -190,7 +195,8 @@ service ClusterManager {
190195
body: "*"
191196
}
192197
};
193-
option (google.api.method_signature) = "project_id,zone,cluster_id,locations";
198+
option (google.api.method_signature) =
199+
"project_id,zone,cluster_id,locations";
194200
option (google.api.method_signature) = "name,locations";
195201
}
196202

@@ -204,7 +210,8 @@ service ClusterManager {
204210
body: "*"
205211
}
206212
};
207-
option (google.api.method_signature) = "project_id,zone,cluster_id,master_version";
213+
option (google.api.method_signature) =
214+
"project_id,zone,cluster_id,master_version";
208215
option (google.api.method_signature) = "name,master_version";
209216
}
210217

@@ -321,7 +328,8 @@ service ClusterManager {
321328
get: "/v1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}/nodePools/{node_pool_id}"
322329
}
323330
};
324-
option (google.api.method_signature) = "project_id,zone,cluster_id,node_pool_id";
331+
option (google.api.method_signature) =
332+
"project_id,zone,cluster_id,node_pool_id";
325333
option (google.api.method_signature) = "name";
326334
}
327335

@@ -335,7 +343,8 @@ service ClusterManager {
335343
body: "*"
336344
}
337345
};
338-
option (google.api.method_signature) = "project_id,zone,cluster_id,node_pool";
346+
option (google.api.method_signature) =
347+
"project_id,zone,cluster_id,node_pool";
339348
option (google.api.method_signature) = "parent,node_pool";
340349
}
341350

@@ -347,13 +356,15 @@ service ClusterManager {
347356
delete: "/v1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}/nodePools/{node_pool_id}"
348357
}
349358
};
350-
option (google.api.method_signature) = "project_id,zone,cluster_id,node_pool_id";
359+
option (google.api.method_signature) =
360+
"project_id,zone,cluster_id,node_pool_id";
351361
option (google.api.method_signature) = "name";
352362
}
353363

354364
// CompleteNodePoolUpgrade will signal an on-going node pool upgrade to
355365
// complete.
356-
rpc CompleteNodePoolUpgrade(CompleteNodePoolUpgradeRequest) returns (google.protobuf.Empty) {
366+
rpc CompleteNodePoolUpgrade(CompleteNodePoolUpgradeRequest)
367+
returns (google.protobuf.Empty) {
357368
option (google.api.http) = {
358369
post: "/v1/{name=projects/*/locations/*/clusters/*/nodePools/*}:completeUpgrade"
359370
body: "*"
@@ -362,7 +373,8 @@ service ClusterManager {
362373

363374
// Rolls back a previously Aborted or Failed NodePool upgrade.
364375
// This makes no changes if the last upgrade successfully completed.
365-
rpc RollbackNodePoolUpgrade(RollbackNodePoolUpgradeRequest) returns (Operation) {
376+
rpc RollbackNodePoolUpgrade(RollbackNodePoolUpgradeRequest)
377+
returns (Operation) {
366378
option (google.api.http) = {
367379
post: "/v1/{name=projects/*/locations/*/clusters/*/nodePools/*}:rollback"
368380
body: "*"
@@ -371,7 +383,8 @@ service ClusterManager {
371383
body: "*"
372384
}
373385
};
374-
option (google.api.method_signature) = "project_id,zone,cluster_id,node_pool_id";
386+
option (google.api.method_signature) =
387+
"project_id,zone,cluster_id,node_pool_id";
375388
option (google.api.method_signature) = "name";
376389
}
377390

@@ -465,7 +478,8 @@ service ClusterManager {
465478
body: "*"
466479
}
467480
};
468-
option (google.api.method_signature) = "project_id,zone,cluster_id,network_policy";
481+
option (google.api.method_signature) =
482+
"project_id,zone,cluster_id,network_policy";
469483
option (google.api.method_signature) = "name,network_policy";
470484
}
471485

@@ -479,12 +493,14 @@ service ClusterManager {
479493
body: "*"
480494
}
481495
};
482-
option (google.api.method_signature) = "project_id,zone,cluster_id,maintenance_policy";
496+
option (google.api.method_signature) =
497+
"project_id,zone,cluster_id,maintenance_policy";
483498
option (google.api.method_signature) = "name,maintenance_policy";
484499
}
485500

486501
// Lists subnetworks that are usable for creating clusters in a project.
487-
rpc ListUsableSubnetworks(ListUsableSubnetworksRequest) returns (ListUsableSubnetworksResponse) {
502+
rpc ListUsableSubnetworks(ListUsableSubnetworksRequest)
503+
returns (ListUsableSubnetworksResponse) {
488504
option (google.api.http) = {
489505
get: "/v1/{parent=projects/*}/aggregated/usableSubnetworks"
490506
};
@@ -1439,6 +1455,15 @@ message IPAllocationPolicy {
14391455

14401456
// The ipv6 access type (internal or external) when create_subnetwork is true
14411457
IPv6AccessType ipv6_access_type = 17;
1458+
1459+
// Output only. [Output only] The subnet's IPv6 CIDR block used by nodes and
1460+
// pods.
1461+
string subnet_ipv6_cidr_block = 22
1462+
[(google.api.field_behavior) = OUTPUT_ONLY];
1463+
1464+
// Output only. [Output only] The services IPv6 CIDR block for the cluster.
1465+
string services_ipv6_cidr_block = 23
1466+
[(google.api.field_behavior) = OUTPUT_ONLY];
14421467
}
14431468

14441469
// A Google Kubernetes Engine cluster.
@@ -2092,10 +2117,8 @@ message Operation {
20922117

20932118
// Output only. If an error has occurred, a textual description of the error.
20942119
// Deprecated. Use the field error instead.
2095-
string status_message = 5 [
2096-
deprecated = true,
2097-
(google.api.field_behavior) = OUTPUT_ONLY
2098-
];
2120+
string status_message = 5
2121+
[deprecated = true, (google.api.field_behavior) = OUTPUT_ONLY];
20992122

21002123
// Server-defined URL for the resource.
21012124
string self_link = 6;
@@ -2467,8 +2490,8 @@ message SetAddonsConfigRequest {
24672490
// This field has been deprecated and replaced by the name field.
24682491
string cluster_id = 3 [deprecated = true];
24692492

2470-
// Required. The desired configurations for the various addons available to run in the
2471-
// cluster.
2493+
// Required. The desired configurations for the various addons available to
2494+
// run in the cluster.
24722495
AddonsConfig addons_config = 4 [(google.api.field_behavior) = REQUIRED];
24732496

24742497
// The name (project, location, cluster) of the cluster to set addons.
@@ -3141,8 +3164,8 @@ message NodePool {
31413164
// Specifies the node placement policy.
31423165
PlacementPolicy placement_policy = 108;
31433166

3144-
// Output only. [Output only] Update info contains relevant information during a node
3145-
// pool update.
3167+
// Output only. [Output only] Update info contains relevant information during
3168+
// a node pool update.
31463169
UpdateInfo update_info = 109 [(google.api.field_behavior) = OUTPUT_ONLY];
31473170

31483171
// This checksum is computed by the server based on the value of node pool
@@ -3588,7 +3611,8 @@ message SetLabelsRequest {
35883611
string cluster_id = 3 [deprecated = true];
35893612

35903613
// Required. The labels to set for that cluster.
3591-
map<string, string> resource_labels = 4 [(google.api.field_behavior) = REQUIRED];
3614+
map<string, string> resource_labels = 4
3615+
[(google.api.field_behavior) = REQUIRED];
35923616

35933617
// Required. The fingerprint of the previous set of labels for this resource,
35943618
// used to detect conflicts. The fingerprint is initially generated by
@@ -3780,7 +3804,8 @@ message SetMaintenancePolicyRequest {
37803804

37813805
// Required. The maintenance policy to be set for the cluster. An empty field
37823806
// clears the existing maintenance policy.
3783-
MaintenancePolicy maintenance_policy = 4 [(google.api.field_behavior) = REQUIRED];
3807+
MaintenancePolicy maintenance_policy = 4
3808+
[(google.api.field_behavior) = REQUIRED];
37843809

37853810
// The name (project, location, cluster name) of the cluster to set
37863811
// maintenance policy.
@@ -4329,9 +4354,9 @@ message NotificationConfig {
43294354

43304355
// The desired Pub/Sub topic to which notifications will be
43314356
// sent by GKE. Format is `projects/{project}/topics/{topic}`.
4332-
string topic = 2 [(google.api.resource_reference) = {
4333-
type: "pubsub.googleapis.com/Topic"
4334-
}];
4357+
string topic = 2 [
4358+
(google.api.resource_reference) = { type: "pubsub.googleapis.com/Topic" }
4359+
];
43354360

43364361
// Allows filtering to one or more specific event types. If no filter is
43374362
// specified, or if a filter is specified with no event types, all event

0 commit comments

Comments
 (0)