Skip to content

Commit cad90d2

Browse files
Google APIscopybara-github
Google APIs
authored andcommitted
feat: make reservation_name parameter generally visible in QueuedResource message
--- feat: add DeleteQueuedResource experiment --- docs(v2alpha1): minor formatting to the description for `queued_resource_id` PiperOrigin-RevId: 524336094
1 parent 46ae6df commit cad90d2

File tree

1 file changed

+31
-1
lines changed

1 file changed

+31
-1
lines changed

google/cloud/tpu/v2alpha1/cloud_tpu.proto

Lines changed: 31 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,6 +164,20 @@ service Tpu {
164164
};
165165
}
166166

167+
// Resets a QueuedResource TPU instance
168+
rpc ResetQueuedResource(ResetQueuedResourceRequest)
169+
returns (google.longrunning.Operation) {
170+
option (google.api.http) = {
171+
post: "/v2alpha1/{name=projects/*/locations/*/queuedResources/*}:reset"
172+
body: "*"
173+
};
174+
option (google.api.method_signature) = "name";
175+
option (google.longrunning.operation_info) = {
176+
response_type: "QueuedResource"
177+
metadata_type: "OperationMetadata"
178+
};
179+
}
180+
167181
// Generates the Cloud TPU service identity for the project.
168182
rpc GenerateServiceIdentity(GenerateServiceIdentityRequest)
169183
returns (GenerateServiceIdentityResponse) {
@@ -629,6 +643,10 @@ message QueuedResource {
629643

630644
// Output only. State of the QueuedResource request.
631645
QueuedResourceState state = 6 [(google.api.field_behavior) = OUTPUT_ONLY];
646+
647+
// Name of the reservation in which the resource should be provisioned.
648+
// Format: projects/{project}/locations/{zone}/reservations/{reservation}
649+
string reservation_name = 8;
632650
}
633651

634652
// QueuedResourceState defines the details of the QueuedResource request.
@@ -884,7 +902,7 @@ message CreateQueuedResourceRequest {
884902
}
885903
];
886904

887-
// The unqualified resource name. Should follow the ^[A-Za-z0-9_.~+%-]+$
905+
// The unqualified resource name. Should follow the `^[A-Za-z0-9_.~+%-]+$`
888906
// regex format.
889907
string queued_resource_id = 2;
890908

@@ -910,6 +928,18 @@ message DeleteQueuedResourceRequest {
910928
string request_id = 2;
911929
}
912930

931+
// Request for
932+
// [ResetQueuedResource][google.cloud.tpu.v2alpha1.Tpu.ResetQueuedResource].
933+
message ResetQueuedResourceRequest {
934+
// Required. The name of the queued resource.
935+
string name = 1 [
936+
(google.api.field_behavior) = REQUIRED,
937+
(google.api.resource_reference) = {
938+
type: "tpu.googleapis.com/QueuedResource"
939+
}
940+
];
941+
}
942+
913943
// The per-product per-project service identity for Cloud TPU service.
914944
message ServiceIdentity {
915945
// The email address of the service identity.

0 commit comments

Comments
 (0)