Skip to content

Commit 0aa0992

Browse files
Google APIscopybara-github
authored andcommitted
feat(spanner): adding EXPECTED_FULFILLMENT_PERIOD to the indicate instance 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
1 parent 1406704 commit 0aa0992

File tree

2 files changed

+21
-1
lines changed

2 files changed

+21
-1
lines changed

google/spanner/admin/instance/v1/common.proto

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2022 Google LLC
1+
// Copyright 2023 Google LLC
22
//
33
// Licensed under the Apache License, Version 2.0 (the "License");
44
// you may not use this file except in compliance with the License.
@@ -40,3 +40,17 @@ message OperationProgress {
4040
// successfully.
4141
google.protobuf.Timestamp end_time = 3;
4242
}
43+
44+
// Indicates the expected fulfillment period of an operation.
45+
enum FulfillmentPeriod {
46+
// Not specified.
47+
FULFILLMENT_PERIOD_UNSPECIFIED = 0;
48+
49+
// Normal fulfillment period. The operation is expected to complete within
50+
// minutes.
51+
FULFILLMENT_PERIOD_NORMAL = 1;
52+
53+
// Extended fulfillment period. It can take up to an hour for the operation
54+
// to complete.
55+
FULFILLMENT_PERIOD_EXTENDED = 2;
56+
}

google/spanner/admin/instance/v1/spanner_instance_admin.proto

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1282,6 +1282,9 @@ message CreateInstanceMetadata {
12821282

12831283
// The time at which this operation failed or was completed successfully.
12841284
google.protobuf.Timestamp end_time = 4;
1285+
1286+
// The expected fulfillment period of this create operation.
1287+
FulfillmentPeriod expected_fulfillment_period = 5;
12851288
}
12861289

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

13031306
// The time at which this operation failed or was completed successfully.
13041307
google.protobuf.Timestamp end_time = 4;
1308+
1309+
// The expected fulfillment period of this update operation.
1310+
FulfillmentPeriod expected_fulfillment_period = 5;
13051311
}
13061312

13071313
// Metadata type for the operation returned by

0 commit comments

Comments
 (0)