v1.d.ts
17.4 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
import { GoogleConfigurable, GlobalOptions, APIRequestContext } from 'googleapis-common';
export declare namespace bigtableadmin_v1 {
interface Options extends GlobalOptions {
version: 'v1';
}
/**
* Cloud Bigtable Admin API
*
* Administer your Cloud Bigtable tables and instances.
*
* @example
* ```js
* const {google} = require('googleapis');
* const bigtableadmin = google.bigtableadmin('v1');
* ```
*/
class Bigtableadmin {
context: APIRequestContext;
constructor(options: GlobalOptions, google?: GoogleConfigurable);
}
/**
* A backup of a Cloud Bigtable table.
*/
interface Schema$Backup {
/**
* Output only. The encryption information for the backup.
*/
encryptionInfo?: Schema$EncryptionInfo;
/**
* Output only. `end_time` is the time that the backup was finished. The row data in the backup will be no newer than this timestamp.
*/
endTime?: string | null;
/**
* Required. The expiration time of the backup, with microseconds granularity that must be at least 6 hours and at most 30 days from the time the request is received. Once the `expire_time` has passed, Cloud Bigtable will delete the backup and free the resources used by the backup.
*/
expireTime?: string | null;
/**
* A globally unique identifier for the backup which cannot be changed. Values are of the form `projects/{project\}/instances/{instance\}/clusters/{cluster\}/ backups/_a-zA-Z0-9*` The final segment of the name must be between 1 and 50 characters in length. The backup is stored in the cluster identified by the prefix of the backup name of the form `projects/{project\}/instances/{instance\}/clusters/{cluster\}`.
*/
name?: string | null;
/**
* Output only. Size of the backup in bytes.
*/
sizeBytes?: string | null;
/**
* Required. Immutable. Name of the table from which this backup was created. This needs to be in the same instance as the backup. Values are of the form `projects/{project\}/instances/{instance\}/tables/{source_table\}`.
*/
sourceTable?: string | null;
/**
* Output only. `start_time` is the time that the backup was started (i.e. approximately the time the CreateBackup request is received). The row data in this backup will be no older than this timestamp.
*/
startTime?: string | null;
/**
* Output only. The current state of the backup.
*/
state?: string | null;
}
/**
* Information about a backup.
*/
interface Schema$BackupInfo {
/**
* Output only. Name of the backup.
*/
backup?: string | null;
/**
* Output only. This time that the backup was finished. Row data in the backup will be no newer than this timestamp.
*/
endTime?: string | null;
/**
* Output only. Name of the table the backup was created from.
*/
sourceTable?: string | null;
/**
* Output only. The time that the backup was started. Row data in the backup will be no older than this timestamp.
*/
startTime?: string | null;
}
/**
* A resizable group of nodes in a particular cloud location, capable of serving all Tables in the parent Instance.
*/
interface Schema$Cluster {
/**
* Immutable. The type of storage used by this cluster to serve its parent instance's tables, unless explicitly overridden.
*/
defaultStorageType?: string | null;
/**
* Immutable. The encryption configuration for CMEK-protected clusters.
*/
encryptionConfig?: Schema$EncryptionConfig;
/**
* Immutable. The location where this cluster's nodes and storage reside. For best performance, clients should be located as close as possible to this cluster. Currently only zones are supported, so values should be of the form `projects/{project\}/locations/{zone\}`.
*/
location?: string | null;
/**
* The unique name of the cluster. Values are of the form `projects/{project\}/instances/{instance\}/clusters/a-z*`.
*/
name?: string | null;
/**
* Required. The number of nodes allocated to this cluster. More nodes enable higher throughput and more consistent performance.
*/
serveNodes?: number | null;
/**
* Output only. The current state of the cluster.
*/
state?: string | null;
}
/**
* Metadata type for the operation returned by CreateBackup.
*/
interface Schema$CreateBackupMetadata {
/**
* If set, the time at which this operation finished or was cancelled.
*/
endTime?: string | null;
/**
* The name of the backup being created.
*/
name?: string | null;
/**
* The name of the table the backup is created from.
*/
sourceTable?: string | null;
/**
* The time at which this operation started.
*/
startTime?: string | null;
}
/**
* The metadata for the Operation returned by CreateCluster.
*/
interface Schema$CreateClusterMetadata {
/**
* The time at which the operation failed or was completed successfully.
*/
finishTime?: string | null;
/**
* The request that prompted the initiation of this CreateCluster operation.
*/
originalRequest?: Schema$CreateClusterRequest;
/**
* The time at which the original request was received.
*/
requestTime?: string | null;
/**
* Keys: the full `name` of each table that existed in the instance when CreateCluster was first called, i.e. `projects//instances//tables/`. Any table added to the instance by a later API call will be created in the new cluster by that API call, not this one. Values: information on how much of a table's data has been copied to the newly-created cluster so far.
*/
tables?: {
[key: string]: Schema$TableProgress;
} | null;
}
/**
* Request message for BigtableInstanceAdmin.CreateCluster.
*/
interface Schema$CreateClusterRequest {
/**
* Required. The cluster to be created. Fields marked `OutputOnly` must be left blank.
*/
cluster?: Schema$Cluster;
/**
* Required. The ID to be used when referring to the new cluster within its instance, e.g., just `mycluster` rather than `projects/myproject/instances/myinstance/clusters/mycluster`.
*/
clusterId?: string | null;
/**
* Required. The unique name of the instance in which to create the new cluster. Values are of the form `projects/{project\}/instances/{instance\}`.
*/
parent?: string | null;
}
/**
* The metadata for the Operation returned by CreateInstance.
*/
interface Schema$CreateInstanceMetadata {
/**
* The time at which the operation failed or was completed successfully.
*/
finishTime?: string | null;
/**
* The request that prompted the initiation of this CreateInstance operation.
*/
originalRequest?: Schema$CreateInstanceRequest;
/**
* The time at which the original request was received.
*/
requestTime?: string | null;
}
/**
* Request message for BigtableInstanceAdmin.CreateInstance.
*/
interface Schema$CreateInstanceRequest {
/**
* Required. The clusters to be created within the instance, mapped by desired cluster ID, e.g., just `mycluster` rather than `projects/myproject/instances/myinstance/clusters/mycluster`. Fields marked `OutputOnly` must be left blank. Currently, at most four clusters can be specified.
*/
clusters?: {
[key: string]: Schema$Cluster;
} | null;
/**
* Required. The instance to create. Fields marked `OutputOnly` must be left blank.
*/
instance?: Schema$Instance;
/**
* Required. The ID to be used when referring to the new instance within its project, e.g., just `myinstance` rather than `projects/myproject/instances/myinstance`.
*/
instanceId?: string | null;
/**
* Required. The unique name of the project in which to create the new instance. Values are of the form `projects/{project\}`.
*/
parent?: string | null;
}
/**
* Cloud Key Management Service (Cloud KMS) settings for a CMEK-protected cluster.
*/
interface Schema$EncryptionConfig {
/**
* Describes the Cloud KMS encryption key that will be used to protect the destination Bigtable cluster. The requirements for this key are: 1) The Cloud Bigtable service account associated with the project that contains this cluster must be granted the `cloudkms.cryptoKeyEncrypterDecrypter` role on the CMEK key. 2) Only regional keys can be used and the region of the CMEK key must match the region of the cluster. 3) All clusters within an instance must use the same CMEK key. Values are of the form `projects/{project\}/locations/{location\}/keyRings/{keyring\}/cryptoKeys/{key\}`
*/
kmsKeyName?: string | null;
}
/**
* Encryption information for a given resource. If this resource is protected with customer managed encryption, the in-use Cloud Key Management Service (Cloud KMS) key version is specified along with its status.
*/
interface Schema$EncryptionInfo {
/**
* Output only. The status of encrypt/decrypt calls on underlying data for this resource. Regardless of status, the existing data is always encrypted at rest.
*/
encryptionStatus?: Schema$Status;
/**
* Output only. The type of encryption used to protect this resource.
*/
encryptionType?: string | null;
/**
* Output only. The version of the Cloud KMS key specified in the parent cluster that is in use for the data underlying this table.
*/
kmsKeyVersion?: string | null;
}
/**
* Added to the error payload.
*/
interface Schema$FailureTrace {
frames?: Schema$Frame[];
}
interface Schema$Frame {
targetName?: string | null;
workflowGuid?: string | null;
zoneId?: string | null;
}
/**
* A collection of Bigtable Tables and the resources that serve them. All tables in an instance are served from all Clusters in the instance.
*/
interface Schema$Instance {
/**
* Required. The descriptive name for this instance as it appears in UIs. Can be changed at any time, but should be kept globally unique to avoid confusion.
*/
displayName?: string | null;
/**
* Required. Labels are a flexible and lightweight mechanism for organizing cloud resources into groups that reflect a customer's organizational needs and deployment strategies. They can be used to filter resources and aggregate metrics. * Label keys must be between 1 and 63 characters long and must conform to the regular expression: `\p{Ll\}\p{Lo\}{0,62\}`. * Label values must be between 0 and 63 characters long and must conform to the regular expression: `[\p{Ll\}\p{Lo\}\p{N\}_-]{0,63\}`. * No more than 64 labels can be associated with a given resource. * Keys and values must both be under 128 bytes.
*/
labels?: {
[key: string]: string;
} | null;
/**
* The unique name of the instance. Values are of the form `projects/{project\}/instances/a-z+[a-z0-9]`.
*/
name?: string | null;
/**
* Output only. The current state of the instance.
*/
state?: string | null;
/**
* Required. The type of the instance. Defaults to `PRODUCTION`.
*/
type?: string | null;
}
/**
* Encapsulates progress related information for a Cloud Bigtable long running operation.
*/
interface Schema$OperationProgress {
/**
* If set, the time at which this operation failed or was completed successfully.
*/
endTime?: string | null;
/**
* Percent completion of the operation. Values are between 0 and 100 inclusive.
*/
progressPercent?: number | null;
/**
* Time the request was received.
*/
startTime?: string | null;
}
/**
* Metadata type for the long-running operation used to track the progress of optimizations performed on a newly restored table. This long-running operation is automatically created by the system after the successful completion of a table restore, and cannot be cancelled.
*/
interface Schema$OptimizeRestoredTableMetadata {
/**
* Name of the restored table being optimized.
*/
name?: string | null;
/**
* The progress of the post-restore optimizations.
*/
progress?: Schema$OperationProgress;
}
/**
* Request message for BigtableInstanceAdmin.PartialUpdateInstance.
*/
interface Schema$PartialUpdateInstanceRequest {
/**
* Required. The Instance which will (partially) replace the current value.
*/
instance?: Schema$Instance;
/**
* Required. The subset of Instance fields which should be replaced. Must be explicitly set.
*/
updateMask?: string | null;
}
/**
* Metadata type for the long-running operation returned by RestoreTable.
*/
interface Schema$RestoreTableMetadata {
backupInfo?: Schema$BackupInfo;
/**
* Name of the table being created and restored to.
*/
name?: string | null;
/**
* If exists, the name of the long-running operation that will be used to track the post-restore optimization process to optimize the performance of the restored table. The metadata type of the long-running operation is OptimizeRestoreTableMetadata. The response type is Empty. This long-running operation may be automatically created by the system if applicable after the RestoreTable long-running operation completes successfully. This operation may not be created if the table is already optimized or the restore was not successful.
*/
optimizeTableOperationName?: string | null;
/**
* The progress of the RestoreTable operation.
*/
progress?: Schema$OperationProgress;
/**
* The type of the restore source.
*/
sourceType?: string | null;
}
/**
* The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors).
*/
interface Schema$Status {
/**
* The status code, which should be an enum value of google.rpc.Code.
*/
code?: number | null;
/**
* A list of messages that carry the error details. There is a common set of message types for APIs to use.
*/
details?: Array<{
[key: string]: any;
}> | null;
/**
* A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client.
*/
message?: string | null;
}
/**
* Progress info for copying a table's data to the new cluster.
*/
interface Schema$TableProgress {
/**
* Estimate of the number of bytes copied so far for this table. This will eventually reach 'estimated_size_bytes' unless the table copy is CANCELLED.
*/
estimatedCopiedBytes?: string | null;
/**
* Estimate of the size of the table to be copied.
*/
estimatedSizeBytes?: string | null;
state?: string | null;
}
/**
* The metadata for the Operation returned by UpdateAppProfile.
*/
interface Schema$UpdateAppProfileMetadata {
}
/**
* The metadata for the Operation returned by UpdateCluster.
*/
interface Schema$UpdateClusterMetadata {
/**
* The time at which the operation failed or was completed successfully.
*/
finishTime?: string | null;
/**
* The request that prompted the initiation of this UpdateCluster operation.
*/
originalRequest?: Schema$Cluster;
/**
* The time at which the original request was received.
*/
requestTime?: string | null;
}
/**
* The metadata for the Operation returned by UpdateInstance.
*/
interface Schema$UpdateInstanceMetadata {
/**
* The time at which the operation failed or was completed successfully.
*/
finishTime?: string | null;
/**
* The request that prompted the initiation of this UpdateInstance operation.
*/
originalRequest?: Schema$PartialUpdateInstanceRequest;
/**
* The time at which the original request was received.
*/
requestTime?: string | null;
}
}