@@ -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.
914944message ServiceIdentity {
915945 // The email address of the service identity.
0 commit comments