Skip to content

Commit 0d92384

Browse files
fix: proper http bindings for v2 API (#3884)
* chore: reformat protos PiperOrigin-RevId: 504359717 Source-Link: googleapis/googleapis@1266905 Source-Link: googleapis/googleapis-gen@881ee78 Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLXRwdS8uT3dsQm90LnlhbWwiLCJoIjoiODgxZWU3ODAzODljYTU3MjM1NDAzZTMwODA2NTY5MGI4NDc4ZmUyNCJ9 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * docs: update comment fix: update http bindings for alpha API PiperOrigin-RevId: 504360226 Source-Link: googleapis/googleapis@44f176c Source-Link: googleapis/googleapis-gen@c2c886b Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLXRwdS8uT3dsQm90LnlhbWwiLCJoIjoiYzJjODg2YjQ5ODliMzVhYjdhNTA4MjRjMmM2NzM1M2E5NWVkODlhNyJ9 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * fix: proper http bindings for v2 API chore: reformat protos PiperOrigin-RevId: 504361887 Source-Link: googleapis/googleapis@1230a6b Source-Link: googleapis/googleapis-gen@51e8944 Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLXRwdS8uT3dsQm90LnlhbWwiLCJoIjoiNTFlODk0NGZmNjUyNWI3ZGM1NjczMjM2MTdhOTEzMWM3ZGNiYzU0NCJ9 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com> Co-authored-by: sofisl <[email protected]>
1 parent e6a07e1 commit 0d92384

6 files changed

Lines changed: 85 additions & 143 deletions

File tree

packages/google-cloud-tpu/protos/google/cloud/tpu/v1/cloud_tpu.proto

Lines changed: 32 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,8 @@ option java_package = "com.google.cloud.tpu.v1";
3333
// TPU API v1
3434
service Tpu {
3535
option (google.api.default_host) = "tpu.googleapis.com";
36-
option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/cloud-platform";
36+
option (google.api.oauth_scopes) =
37+
"https://www.googleapis.com/auth/cloud-platform";
3738

3839
// Lists nodes.
3940
rpc ListNodes(ListNodesRequest) returns (ListNodesResponse) {
@@ -113,23 +114,26 @@ service Tpu {
113114
}
114115

115116
// List TensorFlow versions supported by this API.
116-
rpc ListTensorFlowVersions(ListTensorFlowVersionsRequest) returns (ListTensorFlowVersionsResponse) {
117+
rpc ListTensorFlowVersions(ListTensorFlowVersionsRequest)
118+
returns (ListTensorFlowVersionsResponse) {
117119
option (google.api.http) = {
118120
get: "/v1/{parent=projects/*/locations/*}/tensorflowVersions"
119121
};
120122
option (google.api.method_signature) = "parent";
121123
}
122124

123125
// Gets TensorFlow Version.
124-
rpc GetTensorFlowVersion(GetTensorFlowVersionRequest) returns (TensorFlowVersion) {
126+
rpc GetTensorFlowVersion(GetTensorFlowVersionRequest)
127+
returns (TensorFlowVersion) {
125128
option (google.api.http) = {
126129
get: "/v1/{name=projects/*/locations/*/tensorflowVersions/*}"
127130
};
128131
option (google.api.method_signature) = "name";
129132
}
130133

131134
// Lists accelerator types supported by this API.
132-
rpc ListAcceleratorTypes(ListAcceleratorTypesRequest) returns (ListAcceleratorTypesResponse) {
135+
rpc ListAcceleratorTypes(ListAcceleratorTypesRequest)
136+
returns (ListAcceleratorTypesResponse) {
133137
option (google.api.http) = {
134138
get: "/v1/{parent=projects/*/locations/*}/acceleratorTypes"
135139
};
@@ -282,8 +286,8 @@ message Node {
282286
// Output only. The current state for the TPU Node.
283287
State state = 9 [(google.api.field_behavior) = OUTPUT_ONLY];
284288

285-
// Output only. If this field is populated, it contains a description of why the TPU Node
286-
// is unhealthy.
289+
// Output only. If this field is populated, it contains a description of why
290+
// the TPU Node is unhealthy.
287291
string health_description = 10 [(google.api.field_behavior) = OUTPUT_ONLY];
288292

289293
// Required. The version of Tensorflow running in the Node.
@@ -304,22 +308,24 @@ message Node {
304308
// block.
305309
string cidr_block = 13;
306310

307-
// Output only. The service account used to run the tensor flow services within the node.
308-
// To share resources, including Google Cloud Storage data, with the
309-
// Tensorflow job running in the Node, this account must have permissions to
310-
// that data.
311+
// Output only. The service account used to run the tensor flow services
312+
// within the node. To share resources, including Google Cloud Storage data,
313+
// with the Tensorflow job running in the Node, this account must have
314+
// permissions to that data.
311315
string service_account = 15 [(google.api.field_behavior) = OUTPUT_ONLY];
312316

313317
// Output only. The time when the node was created.
314-
google.protobuf.Timestamp create_time = 16 [(google.api.field_behavior) = OUTPUT_ONLY];
318+
google.protobuf.Timestamp create_time = 16
319+
[(google.api.field_behavior) = OUTPUT_ONLY];
315320

316321
// The scheduling options for this node.
317322
SchedulingConfig scheduling_config = 17;
318323

319324
// Output only. The network endpoints where TPU workers can be accessed and
320325
// sent work. It is recommended that Tensorflow clients of the node reach out
321326
// to the 0th entry in this map first.
322-
repeated NetworkEndpoint network_endpoints = 21 [(google.api.field_behavior) = OUTPUT_ONLY];
327+
repeated NetworkEndpoint network_endpoints = 21
328+
[(google.api.field_behavior) = OUTPUT_ONLY];
323329

324330
// The health status of the TPU node.
325331
Health health = 22;
@@ -346,9 +352,7 @@ message ListNodesRequest {
346352
// Required. The parent resource name.
347353
string parent = 1 [
348354
(google.api.field_behavior) = REQUIRED,
349-
(google.api.resource_reference) = {
350-
child_type: "tpu.googleapis.com/Node"
351-
}
355+
(google.api.resource_reference) = { child_type: "tpu.googleapis.com/Node" }
352356
];
353357

354358
// The maximum number of items to return.
@@ -375,9 +379,7 @@ message GetNodeRequest {
375379
// Required. The resource name.
376380
string name = 1 [
377381
(google.api.field_behavior) = REQUIRED,
378-
(google.api.resource_reference) = {
379-
type: "tpu.googleapis.com/Node"
380-
}
382+
(google.api.resource_reference) = { type: "tpu.googleapis.com/Node" }
381383
];
382384
}
383385

@@ -386,9 +388,7 @@ message CreateNodeRequest {
386388
// Required. The parent resource name.
387389
string parent = 1 [
388390
(google.api.field_behavior) = REQUIRED,
389-
(google.api.resource_reference) = {
390-
child_type: "tpu.googleapis.com/Node"
391-
}
391+
(google.api.resource_reference) = { child_type: "tpu.googleapis.com/Node" }
392392
];
393393

394394
// The unqualified resource name.
@@ -403,9 +403,7 @@ message DeleteNodeRequest {
403403
// Required. The resource name.
404404
string name = 1 [
405405
(google.api.field_behavior) = REQUIRED,
406-
(google.api.resource_reference) = {
407-
type: "tpu.googleapis.com/Node"
408-
}
406+
(google.api.resource_reference) = { type: "tpu.googleapis.com/Node" }
409407
];
410408
}
411409

@@ -444,7 +442,8 @@ message TensorFlowVersion {
444442
string version = 2;
445443
}
446444

447-
// Request for [GetTensorFlowVersion][google.cloud.tpu.v1.Tpu.GetTensorFlowVersion].
445+
// Request for
446+
// [GetTensorFlowVersion][google.cloud.tpu.v1.Tpu.GetTensorFlowVersion].
448447
message GetTensorFlowVersionRequest {
449448
// Required. The resource name.
450449
string name = 1 [
@@ -455,7 +454,8 @@ message GetTensorFlowVersionRequest {
455454
];
456455
}
457456

458-
// Request for [ListTensorFlowVersions][google.cloud.tpu.v1.Tpu.ListTensorFlowVersions].
457+
// Request for
458+
// [ListTensorFlowVersions][google.cloud.tpu.v1.Tpu.ListTensorFlowVersions].
459459
message ListTensorFlowVersionsRequest {
460460
// Required. The parent resource name.
461461
string parent = 1 [
@@ -478,7 +478,8 @@ message ListTensorFlowVersionsRequest {
478478
string order_by = 6;
479479
}
480480

481-
// Response for [ListTensorFlowVersions][google.cloud.tpu.v1.Tpu.ListTensorFlowVersions].
481+
// Response for
482+
// [ListTensorFlowVersions][google.cloud.tpu.v1.Tpu.ListTensorFlowVersions].
482483
message ListTensorFlowVersionsResponse {
483484
// The listed nodes.
484485
repeated TensorFlowVersion tensorflow_versions = 1;
@@ -515,7 +516,8 @@ message GetAcceleratorTypeRequest {
515516
];
516517
}
517518

518-
// Request for [ListAcceleratorTypes][google.cloud.tpu.v1.Tpu.ListAcceleratorTypes].
519+
// Request for
520+
// [ListAcceleratorTypes][google.cloud.tpu.v1.Tpu.ListAcceleratorTypes].
519521
message ListAcceleratorTypesRequest {
520522
// Required. The parent resource name.
521523
string parent = 1 [
@@ -538,7 +540,8 @@ message ListAcceleratorTypesRequest {
538540
string order_by = 6;
539541
}
540542

541-
// Response for [ListAcceleratorTypes][google.cloud.tpu.v1.Tpu.ListAcceleratorTypes].
543+
// Response for
544+
// [ListAcceleratorTypes][google.cloud.tpu.v1.Tpu.ListAcceleratorTypes].
542545
message ListAcceleratorTypesResponse {
543546
// The listed nodes.
544547
repeated AcceleratorType accelerator_types = 1;

0 commit comments

Comments
 (0)