Skip to content

Commit de3fc03

Browse files
feat: Add create_time to Instance (#953)
- [ ] Regenerate this pull request now. Committer: @gdcolella PiperOrigin-RevId: 404267819 Source-Link: googleapis/googleapis@324f036 Source-Link: googleapis/googleapis-gen@2fada43 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiMmZhZGE0M2IyNzVlYWFhZGQyNzk4MzhiYWYxMTIwYmRkY2ZmYzc2MiJ9
1 parent 0111143 commit de3fc03

File tree

6 files changed

+59
-1
lines changed

6 files changed

+59
-1
lines changed

protos/google/bigtable/admin/v2/instance.proto

+7
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@ package google.bigtable.admin.v2;
1919
import "google/api/field_behavior.proto";
2020
import "google/api/resource.proto";
2121
import "google/bigtable/admin/v2/common.proto";
22+
import "google/protobuf/timestamp.proto";
23+
import "google/api/annotations.proto";
2224

2325
option csharp_namespace = "Google.Cloud.Bigtable.Admin.V2";
2426
option go_package = "google.golang.org/genproto/googleapis/bigtable/admin/v2;admin";
@@ -105,6 +107,11 @@ message Instance {
105107
// * No more than 64 labels can be associated with a given resource.
106108
// * Keys and values must both be under 128 bytes.
107109
map<string, string> labels = 5;
110+
111+
// Output only. A server-assigned timestamp representing when this Instance was created.
112+
// For instances created before this field was added (August 2021), this value
113+
// is `seconds: 0, nanos: 1`.
114+
google.protobuf.Timestamp create_time = 7 [(google.api.field_behavior) = OUTPUT_ONLY];
108115
}
109116

110117
// A resizable group of nodes in a particular cloud location, capable

protos/protos.d.ts

+6
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

protos/protos.js

+27
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

protos/protos.json

+7
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

samples/generated/v2/bigtable_instance_admin.update_instance.js

+8-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414

1515
'use strict';
1616

17-
function main(name, displayName) {
17+
function main(name, displayName, createTime) {
1818
// [START bigtableadmin_v2_generated_BigtableInstanceAdmin_UpdateInstance_async]
1919
/**
2020
* TODO(developer): Uncomment these variables before running the sample.
@@ -52,6 +52,12 @@ function main(name, displayName) {
5252
* * Keys and values must both be under 128 bytes.
5353
*/
5454
// const labels = 1234
55+
/**
56+
* Output only. A server-assigned timestamp representing when this Instance was created.
57+
* For instances created before this field was added (August 2021), this value
58+
* is `seconds: 0, nanos: 1`.
59+
*/
60+
// const createTime = ''
5561

5662
// Imports the Admin library
5763
const {BigtableInstanceAdminClient} = require('@google-cloud/bigtable').v2;
@@ -64,6 +70,7 @@ function main(name, displayName) {
6470
const request = {
6571
name,
6672
displayName,
73+
createTime,
6774
};
6875

6976
// Run request

src/v2/bigtable_instance_admin_client.ts

+4
Original file line numberDiff line numberDiff line change
@@ -670,6 +670,10 @@ export class BigtableInstanceAdminClient {
670670
* the regular expression: `[\p{Ll}\p{Lo}\p{N}_-]{0,63}`.
671671
* * No more than 64 labels can be associated with a given resource.
672672
* * Keys and values must both be under 128 bytes.
673+
* @param {google.protobuf.Timestamp} request.createTime
674+
* Output only. A server-assigned timestamp representing when this Instance was created.
675+
* For instances created before this field was added (August 2021), this value
676+
* is `seconds: 0, nanos: 1`.
673677
* @param {object} [options]
674678
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
675679
* @returns {Promise} - The promise which resolves to an array.

0 commit comments

Comments
 (0)