v1.d.ts
9.58 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
/**
* Copyright 2019 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
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
* const {google} = require('googleapis');
* const bigtableadmin = google.bigtableadmin('v1');
*
* @namespace bigtableadmin
* @type {Function}
* @version v1
* @variation v1
* @param {object=} options Options for Bigtableadmin
*/
class Bigtableadmin {
context: APIRequestContext;
constructor(options: GlobalOptions, google?: GoogleConfigurable);
}
/**
* A resizable group of nodes in a particular cloud location, capable of serving all Tables in the parent Instance.
*/
interface Schema$Cluster {
/**
* (`CreationOnly`) The type of storage used by this cluster to serve its parent instance's tables, unless explicitly overridden.
*/
defaultStorageType?: string | null;
/**
* (`CreationOnly`) 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;
/**
* (`OutputOnly`) The unique name of the cluster. Values are of the form `projects/<project>/instances/<instance>/clusters/a-z*`.
*/
name?: string | null;
/**
* The number of nodes allocated to this cluster. More nodes enable higher throughput and more consistent performance.
*/
serveNodes?: number | null;
/**
* (`OutputOnly`) The current state of the cluster.
*/
state?: 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/<project>/instances/<instance>/tables/<table>`. 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 {
/**
* The cluster to be created. Fields marked `OutputOnly` must be left blank.
*/
cluster?: Schema$Cluster;
/**
* 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;
/**
* 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 {
/**
* 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;
/**
* The instance to create. Fields marked `OutputOnly` must be left blank.
*/
instance?: Schema$Instance;
/**
* 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;
/**
* The unique name of the project in which to create the new instance. Values are of the form `projects/<project>`.
*/
parent?: 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 {
/**
* 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;
/**
* 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;
/**
* (`OutputOnly`) The unique name of the instance. Values are of the form `projects/<project>/instances/a-z+[a-z0-9]`.
*/
name?: string | null;
/**
* (`OutputOnly`) The current state of the instance.
*/
state?: string | null;
/**
* The type of the instance. Defaults to `PRODUCTION`.
*/
type?: string | null;
}
/**
* Request message for BigtableInstanceAdmin.PartialUpdateInstance.
*/
interface Schema$PartialUpdateInstanceRequest {
/**
* The Instance which will (partially) replace the current value.
*/
instance?: Schema$Instance;
/**
* The subset of Instance fields which should be replaced. Must be explicitly set.
*/
updateMask?: 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;
}
}