Skip to content

Commit

Permalink
feat(spanner): adding EXPECTED_FULFILLMENT_PERIOD to the indicate i…
Browse files Browse the repository at this point in the history
…nstance creation times (with `FULFILLMENT_PERIOD_NORMAL` or `FULFILLMENT_PERIOD_EXTENDED` ENUM) with the extended instance creation time triggered by On-Demand Capacity Feature

PiperOrigin-RevId: 621488048
  • Loading branch information
Google APIs authored and Copybara-Service committed Apr 3, 2024
1 parent 1406704 commit 0aa0992
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 1 deletion.
16 changes: 15 additions & 1 deletion google/spanner/admin/instance/v1/common.proto
@@ -1,4 +1,4 @@
// Copyright 2022 Google LLC
// Copyright 2023 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -40,3 +40,17 @@ message OperationProgress {
// successfully.
google.protobuf.Timestamp end_time = 3;
}

// Indicates the expected fulfillment period of an operation.
enum FulfillmentPeriod {
// Not specified.
FULFILLMENT_PERIOD_UNSPECIFIED = 0;

// Normal fulfillment period. The operation is expected to complete within
// minutes.
FULFILLMENT_PERIOD_NORMAL = 1;

// Extended fulfillment period. It can take up to an hour for the operation
// to complete.
FULFILLMENT_PERIOD_EXTENDED = 2;
}
6 changes: 6 additions & 0 deletions google/spanner/admin/instance/v1/spanner_instance_admin.proto
Expand Up @@ -1282,6 +1282,9 @@ message CreateInstanceMetadata {

// The time at which this operation failed or was completed successfully.
google.protobuf.Timestamp end_time = 4;

// The expected fulfillment period of this create operation.
FulfillmentPeriod expected_fulfillment_period = 5;
}

// Metadata type for the operation returned by
Expand All @@ -1302,6 +1305,9 @@ message UpdateInstanceMetadata {

// The time at which this operation failed or was completed successfully.
google.protobuf.Timestamp end_time = 4;

// The expected fulfillment period of this update operation.
FulfillmentPeriod expected_fulfillment_period = 5;
}

// Metadata type for the operation returned by
Expand Down

0 comments on commit 0aa0992

Please sign in to comment.