Skip to content

Commit

Permalink
feat: make reservation_name parameter generally visible in QueuedReso…
Browse files Browse the repository at this point in the history
…urce message

---
feat: add DeleteQueuedResource experiment

---
docs(v2alpha1): minor formatting to the description for `queued_resource_id`

PiperOrigin-RevId: 524336094
  • Loading branch information
Google APIs authored and copybara-github committed Apr 14, 2023
1 parent 46ae6df commit cad90d2
Showing 1 changed file with 31 additions and 1 deletion.
32 changes: 31 additions & 1 deletion google/cloud/tpu/v2alpha1/cloud_tpu.proto
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,20 @@ service Tpu {
};
}

// Resets a QueuedResource TPU instance
rpc ResetQueuedResource(ResetQueuedResourceRequest)
returns (google.longrunning.Operation) {
option (google.api.http) = {
post: "/v2alpha1/{name=projects/*/locations/*/queuedResources/*}:reset"
body: "*"
};
option (google.api.method_signature) = "name";
option (google.longrunning.operation_info) = {
response_type: "QueuedResource"
metadata_type: "OperationMetadata"
};
}

// Generates the Cloud TPU service identity for the project.
rpc GenerateServiceIdentity(GenerateServiceIdentityRequest)
returns (GenerateServiceIdentityResponse) {
Expand Down Expand Up @@ -629,6 +643,10 @@ message QueuedResource {

// Output only. State of the QueuedResource request.
QueuedResourceState state = 6 [(google.api.field_behavior) = OUTPUT_ONLY];

// Name of the reservation in which the resource should be provisioned.
// Format: projects/{project}/locations/{zone}/reservations/{reservation}
string reservation_name = 8;
}

// QueuedResourceState defines the details of the QueuedResource request.
Expand Down Expand Up @@ -884,7 +902,7 @@ message CreateQueuedResourceRequest {
}
];

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

Expand All @@ -910,6 +928,18 @@ message DeleteQueuedResourceRequest {
string request_id = 2;
}

// Request for
// [ResetQueuedResource][google.cloud.tpu.v2alpha1.Tpu.ResetQueuedResource].
message ResetQueuedResourceRequest {
// Required. The name of the queued resource.
string name = 1 [
(google.api.field_behavior) = REQUIRED,
(google.api.resource_reference) = {
type: "tpu.googleapis.com/QueuedResource"
}
];
}

// The per-product per-project service identity for Cloud TPU service.
message ServiceIdentity {
// The email address of the service identity.
Expand Down

0 comments on commit cad90d2

Please sign in to comment.