@google-cloud/spanner 7.17.1 → 7.18.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +7 -0
- package/package.json +1 -1
- package/build/protos/google/spanner/admin/database/v1/backup.proto +0 -757
- package/build/protos/google/spanner/admin/database/v1/backup_schedule.proto +0 -230
- package/build/protos/google/spanner/admin/database/v1/common.proto +0 -132
- package/build/protos/google/spanner/admin/database/v1/spanner_database_admin.proto +0 -1209
- package/build/protos/google/spanner/admin/instance/v1/common.proto +0 -63
- package/build/protos/google/spanner/admin/instance/v1/spanner_instance_admin.proto +0 -1983
- package/build/protos/google/spanner/executor/v1/cloud_executor.proto +0 -1520
- package/build/protos/google/spanner/v1/commit_response.proto +0 -59
- package/build/protos/google/spanner/v1/keys.proto +0 -163
- package/build/protos/google/spanner/v1/mutation.proto +0 -107
- package/build/protos/google/spanner/v1/query_plan.proto +0 -128
- package/build/protos/google/spanner/v1/result_set.proto +0 -237
- package/build/protos/google/spanner/v1/spanner.proto +0 -1389
- package/build/protos/google/spanner/v1/transaction.proto +0 -575
- package/build/protos/google/spanner/v1/type.proto +0 -210
- package/build/protos/protos.d.ts +0 -38999
- package/build/protos/protos.js +0 -99538
- package/build/protos/protos.json +0 -10182
- package/build/src/backup.d.ts +0 -349
- package/build/src/backup.js +0 -246
- package/build/src/batch-transaction.d.ts +0 -247
- package/build/src/batch-transaction.js +0 -384
- package/build/src/codec.d.ts +0 -362
- package/build/src/codec.js +0 -791
- package/build/src/common-grpc/service-object.d.ts +0 -80
- package/build/src/common-grpc/service-object.js +0 -101
- package/build/src/common-grpc/service.d.ts +0 -445
- package/build/src/common-grpc/service.js +0 -826
- package/build/src/common.d.ts +0 -66
- package/build/src/common.js +0 -54
- package/build/src/database.d.ts +0 -2104
- package/build/src/database.js +0 -1655
- package/build/src/extra_proto_list.json +0 -1
- package/build/src/helper.d.ts +0 -45
- package/build/src/helper.js +0 -71
- package/build/src/index.d.ts +0 -1195
- package/build/src/index.js +0 -1059
- package/build/src/instance-config.d.ts +0 -295
- package/build/src/instance-config.js +0 -216
- package/build/src/instance.d.ts +0 -833
- package/build/src/instance.js +0 -781
- package/build/src/instrument.d.ts +0 -85
- package/build/src/instrument.js +0 -212
- package/build/src/multiplexed-session.d.ts +0 -136
- package/build/src/multiplexed-session.js +0 -197
- package/build/src/partial-result-stream.d.ts +0 -253
- package/build/src/partial-result-stream.js +0 -400
- package/build/src/session-factory.d.ts +0 -101
- package/build/src/session-factory.js +0 -93
- package/build/src/session-pool.d.ts +0 -471
- package/build/src/session-pool.js +0 -754
- package/build/src/session.d.ts +0 -259
- package/build/src/session.js +0 -348
- package/build/src/spanner_grpc_config.json +0 -92
- package/build/src/table.d.ts +0 -831
- package/build/src/table.js +0 -277
- package/build/src/transaction-runner.d.ts +0 -185
- package/build/src/transaction-runner.js +0 -282
- package/build/src/transaction.d.ts +0 -1691
- package/build/src/transaction.js +0 -2004
- package/build/src/v1/database_admin_client.d.ts +0 -2301
- package/build/src/v1/database_admin_client.js +0 -2286
- package/build/src/v1/database_admin_client_config.json +0 -160
- package/build/src/v1/database_admin_proto_list.json +0 -6
- package/build/src/v1/gapic_metadata.json +0 -27
- package/build/src/v1/index.d.ts +0 -4
- package/build/src/v1/index.js +0 -29
- package/build/src/v1/instance_admin_client.d.ts +0 -1982
- package/build/src/v1/instance_admin_client.js +0 -1766
- package/build/src/v1/instance_admin_client_config.json +0 -129
- package/build/src/v1/instance_admin_proto_list.json +0 -4
- package/build/src/v1/spanner_client.d.ts +0 -1250
- package/build/src/v1/spanner_client.js +0 -1086
- package/build/src/v1/spanner_client_config.json +0 -119
- package/build/src/v1/spanner_executor_proxy_client.d.ts +0 -418
- package/build/src/v1/spanner_executor_proxy_client.js +0 -706
- package/build/src/v1/spanner_executor_proxy_client_config.json +0 -30
- package/build/src/v1/spanner_executor_proxy_proto_list.json +0 -14
- package/build/src/v1/spanner_proto_list.json +0 -10
|
@@ -1,1983 +0,0 @@
|
|
|
1
|
-
// Copyright 2024 Google LLC
|
|
2
|
-
//
|
|
3
|
-
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
4
|
-
// you may not use this file except in compliance with the License.
|
|
5
|
-
// You may obtain a copy of the License at
|
|
6
|
-
//
|
|
7
|
-
// http://www.apache.org/licenses/LICENSE-2.0
|
|
8
|
-
//
|
|
9
|
-
// Unless required by applicable law or agreed to in writing, software
|
|
10
|
-
// distributed under the License is distributed on an "AS IS" BASIS,
|
|
11
|
-
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
12
|
-
// See the License for the specific language governing permissions and
|
|
13
|
-
// limitations under the License.
|
|
14
|
-
|
|
15
|
-
syntax = "proto3";
|
|
16
|
-
|
|
17
|
-
package google.spanner.admin.instance.v1;
|
|
18
|
-
|
|
19
|
-
import "google/api/annotations.proto";
|
|
20
|
-
import "google/api/client.proto";
|
|
21
|
-
import "google/api/field_behavior.proto";
|
|
22
|
-
import "google/api/resource.proto";
|
|
23
|
-
import "google/iam/v1/iam_policy.proto";
|
|
24
|
-
import "google/iam/v1/policy.proto";
|
|
25
|
-
import "google/longrunning/operations.proto";
|
|
26
|
-
import "google/protobuf/empty.proto";
|
|
27
|
-
import "google/protobuf/field_mask.proto";
|
|
28
|
-
import "google/protobuf/timestamp.proto";
|
|
29
|
-
import "google/spanner/admin/instance/v1/common.proto";
|
|
30
|
-
|
|
31
|
-
option csharp_namespace = "Google.Cloud.Spanner.Admin.Instance.V1";
|
|
32
|
-
option go_package = "cloud.google.com/go/spanner/admin/instance/apiv1/instancepb;instancepb";
|
|
33
|
-
option java_multiple_files = true;
|
|
34
|
-
option java_outer_classname = "SpannerInstanceAdminProto";
|
|
35
|
-
option java_package = "com.google.spanner.admin.instance.v1";
|
|
36
|
-
option php_namespace = "Google\\Cloud\\Spanner\\Admin\\Instance\\V1";
|
|
37
|
-
option ruby_package = "Google::Cloud::Spanner::Admin::Instance::V1";
|
|
38
|
-
|
|
39
|
-
// Cloud Spanner Instance Admin API
|
|
40
|
-
//
|
|
41
|
-
// The Cloud Spanner Instance Admin API can be used to create, delete,
|
|
42
|
-
// modify and list instances. Instances are dedicated Cloud Spanner serving
|
|
43
|
-
// and storage resources to be used by Cloud Spanner databases.
|
|
44
|
-
//
|
|
45
|
-
// Each instance has a "configuration", which dictates where the
|
|
46
|
-
// serving resources for the Cloud Spanner instance are located (e.g.,
|
|
47
|
-
// US-central, Europe). Configurations are created by Google based on
|
|
48
|
-
// resource availability.
|
|
49
|
-
//
|
|
50
|
-
// Cloud Spanner billing is based on the instances that exist and their
|
|
51
|
-
// sizes. After an instance exists, there are no additional
|
|
52
|
-
// per-database or per-operation charges for use of the instance
|
|
53
|
-
// (though there may be additional network bandwidth charges).
|
|
54
|
-
// Instances offer isolation: problems with databases in one instance
|
|
55
|
-
// will not affect other instances. However, within an instance
|
|
56
|
-
// databases can affect each other. For example, if one database in an
|
|
57
|
-
// instance receives a lot of requests and consumes most of the
|
|
58
|
-
// instance resources, fewer resources are available for other
|
|
59
|
-
// databases in that instance, and their performance may suffer.
|
|
60
|
-
service InstanceAdmin {
|
|
61
|
-
option (google.api.default_host) = "spanner.googleapis.com";
|
|
62
|
-
option (google.api.oauth_scopes) =
|
|
63
|
-
"https://www.googleapis.com/auth/cloud-platform,"
|
|
64
|
-
"https://www.googleapis.com/auth/spanner.admin";
|
|
65
|
-
|
|
66
|
-
// Lists the supported instance configurations for a given project.
|
|
67
|
-
rpc ListInstanceConfigs(ListInstanceConfigsRequest)
|
|
68
|
-
returns (ListInstanceConfigsResponse) {
|
|
69
|
-
option (google.api.http) = {
|
|
70
|
-
get: "/v1/{parent=projects/*}/instanceConfigs"
|
|
71
|
-
};
|
|
72
|
-
option (google.api.method_signature) = "parent";
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
// Gets information about a particular instance configuration.
|
|
76
|
-
rpc GetInstanceConfig(GetInstanceConfigRequest) returns (InstanceConfig) {
|
|
77
|
-
option (google.api.http) = {
|
|
78
|
-
get: "/v1/{name=projects/*/instanceConfigs/*}"
|
|
79
|
-
};
|
|
80
|
-
option (google.api.method_signature) = "name";
|
|
81
|
-
}
|
|
82
|
-
|
|
83
|
-
// Creates an instance configuration and begins preparing it to be used. The
|
|
84
|
-
// returned [long-running operation][google.longrunning.Operation]
|
|
85
|
-
// can be used to track the progress of preparing the new
|
|
86
|
-
// instance configuration. The instance configuration name is assigned by the
|
|
87
|
-
// caller. If the named instance configuration already exists,
|
|
88
|
-
// `CreateInstanceConfig` returns `ALREADY_EXISTS`.
|
|
89
|
-
//
|
|
90
|
-
// Immediately after the request returns:
|
|
91
|
-
//
|
|
92
|
-
// * The instance configuration is readable via the API, with all requested
|
|
93
|
-
// attributes. The instance configuration's
|
|
94
|
-
// [reconciling][google.spanner.admin.instance.v1.InstanceConfig.reconciling]
|
|
95
|
-
// field is set to true. Its state is `CREATING`.
|
|
96
|
-
//
|
|
97
|
-
// While the operation is pending:
|
|
98
|
-
//
|
|
99
|
-
// * Cancelling the operation renders the instance configuration immediately
|
|
100
|
-
// unreadable via the API.
|
|
101
|
-
// * Except for deleting the creating resource, all other attempts to modify
|
|
102
|
-
// the instance configuration are rejected.
|
|
103
|
-
//
|
|
104
|
-
// Upon completion of the returned operation:
|
|
105
|
-
//
|
|
106
|
-
// * Instances can be created using the instance configuration.
|
|
107
|
-
// * The instance configuration's
|
|
108
|
-
// [reconciling][google.spanner.admin.instance.v1.InstanceConfig.reconciling]
|
|
109
|
-
// field becomes false. Its state becomes `READY`.
|
|
110
|
-
//
|
|
111
|
-
// The returned [long-running operation][google.longrunning.Operation] will
|
|
112
|
-
// have a name of the format
|
|
113
|
-
// `<instance_config_name>/operations/<operation_id>` and can be used to track
|
|
114
|
-
// creation of the instance configuration. The
|
|
115
|
-
// [metadata][google.longrunning.Operation.metadata] field type is
|
|
116
|
-
// [CreateInstanceConfigMetadata][google.spanner.admin.instance.v1.CreateInstanceConfigMetadata].
|
|
117
|
-
// The [response][google.longrunning.Operation.response] field type is
|
|
118
|
-
// [InstanceConfig][google.spanner.admin.instance.v1.InstanceConfig], if
|
|
119
|
-
// successful.
|
|
120
|
-
//
|
|
121
|
-
// Authorization requires `spanner.instanceConfigs.create` permission on
|
|
122
|
-
// the resource
|
|
123
|
-
// [parent][google.spanner.admin.instance.v1.CreateInstanceConfigRequest.parent].
|
|
124
|
-
rpc CreateInstanceConfig(CreateInstanceConfigRequest)
|
|
125
|
-
returns (google.longrunning.Operation) {
|
|
126
|
-
option (google.api.http) = {
|
|
127
|
-
post: "/v1/{parent=projects/*}/instanceConfigs"
|
|
128
|
-
body: "*"
|
|
129
|
-
};
|
|
130
|
-
option (google.api.method_signature) =
|
|
131
|
-
"parent,instance_config,instance_config_id";
|
|
132
|
-
option (google.longrunning.operation_info) = {
|
|
133
|
-
response_type: "google.spanner.admin.instance.v1.InstanceConfig"
|
|
134
|
-
metadata_type: "google.spanner.admin.instance.v1.CreateInstanceConfigMetadata"
|
|
135
|
-
};
|
|
136
|
-
}
|
|
137
|
-
|
|
138
|
-
// Updates an instance configuration. The returned
|
|
139
|
-
// [long-running operation][google.longrunning.Operation] can be used to track
|
|
140
|
-
// the progress of updating the instance. If the named instance configuration
|
|
141
|
-
// does not exist, returns `NOT_FOUND`.
|
|
142
|
-
//
|
|
143
|
-
// Only user-managed configurations can be updated.
|
|
144
|
-
//
|
|
145
|
-
// Immediately after the request returns:
|
|
146
|
-
//
|
|
147
|
-
// * The instance configuration's
|
|
148
|
-
// [reconciling][google.spanner.admin.instance.v1.InstanceConfig.reconciling]
|
|
149
|
-
// field is set to true.
|
|
150
|
-
//
|
|
151
|
-
// While the operation is pending:
|
|
152
|
-
//
|
|
153
|
-
// * Cancelling the operation sets its metadata's
|
|
154
|
-
// [cancel_time][google.spanner.admin.instance.v1.UpdateInstanceConfigMetadata.cancel_time].
|
|
155
|
-
// The operation is guaranteed to succeed at undoing all changes, after
|
|
156
|
-
// which point it terminates with a `CANCELLED` status.
|
|
157
|
-
// * All other attempts to modify the instance configuration are rejected.
|
|
158
|
-
// * Reading the instance configuration via the API continues to give the
|
|
159
|
-
// pre-request values.
|
|
160
|
-
//
|
|
161
|
-
// Upon completion of the returned operation:
|
|
162
|
-
//
|
|
163
|
-
// * Creating instances using the instance configuration uses the new
|
|
164
|
-
// values.
|
|
165
|
-
// * The new values of the instance configuration are readable via the API.
|
|
166
|
-
// * The instance configuration's
|
|
167
|
-
// [reconciling][google.spanner.admin.instance.v1.InstanceConfig.reconciling]
|
|
168
|
-
// field becomes false.
|
|
169
|
-
//
|
|
170
|
-
// The returned [long-running operation][google.longrunning.Operation] will
|
|
171
|
-
// have a name of the format
|
|
172
|
-
// `<instance_config_name>/operations/<operation_id>` and can be used to track
|
|
173
|
-
// the instance configuration modification. The
|
|
174
|
-
// [metadata][google.longrunning.Operation.metadata] field type is
|
|
175
|
-
// [UpdateInstanceConfigMetadata][google.spanner.admin.instance.v1.UpdateInstanceConfigMetadata].
|
|
176
|
-
// The [response][google.longrunning.Operation.response] field type is
|
|
177
|
-
// [InstanceConfig][google.spanner.admin.instance.v1.InstanceConfig], if
|
|
178
|
-
// successful.
|
|
179
|
-
//
|
|
180
|
-
// Authorization requires `spanner.instanceConfigs.update` permission on
|
|
181
|
-
// the resource [name][google.spanner.admin.instance.v1.InstanceConfig.name].
|
|
182
|
-
rpc UpdateInstanceConfig(UpdateInstanceConfigRequest)
|
|
183
|
-
returns (google.longrunning.Operation) {
|
|
184
|
-
option (google.api.http) = {
|
|
185
|
-
patch: "/v1/{instance_config.name=projects/*/instanceConfigs/*}"
|
|
186
|
-
body: "*"
|
|
187
|
-
};
|
|
188
|
-
option (google.api.method_signature) = "instance_config,update_mask";
|
|
189
|
-
option (google.longrunning.operation_info) = {
|
|
190
|
-
response_type: "google.spanner.admin.instance.v1.InstanceConfig"
|
|
191
|
-
metadata_type: "google.spanner.admin.instance.v1.UpdateInstanceConfigMetadata"
|
|
192
|
-
};
|
|
193
|
-
}
|
|
194
|
-
|
|
195
|
-
// Deletes the instance configuration. Deletion is only allowed when no
|
|
196
|
-
// instances are using the configuration. If any instances are using
|
|
197
|
-
// the configuration, returns `FAILED_PRECONDITION`.
|
|
198
|
-
//
|
|
199
|
-
// Only user-managed configurations can be deleted.
|
|
200
|
-
//
|
|
201
|
-
// Authorization requires `spanner.instanceConfigs.delete` permission on
|
|
202
|
-
// the resource [name][google.spanner.admin.instance.v1.InstanceConfig.name].
|
|
203
|
-
rpc DeleteInstanceConfig(DeleteInstanceConfigRequest)
|
|
204
|
-
returns (google.protobuf.Empty) {
|
|
205
|
-
option (google.api.http) = {
|
|
206
|
-
delete: "/v1/{name=projects/*/instanceConfigs/*}"
|
|
207
|
-
};
|
|
208
|
-
option (google.api.method_signature) = "name";
|
|
209
|
-
}
|
|
210
|
-
|
|
211
|
-
// Lists the user-managed instance configuration [long-running
|
|
212
|
-
// operations][google.longrunning.Operation] in the given project. An instance
|
|
213
|
-
// configuration operation has a name of the form
|
|
214
|
-
// `projects/<project>/instanceConfigs/<instance_config>/operations/<operation>`.
|
|
215
|
-
// The long-running operation
|
|
216
|
-
// [metadata][google.longrunning.Operation.metadata] field type
|
|
217
|
-
// `metadata.type_url` describes the type of the metadata. Operations returned
|
|
218
|
-
// include those that have completed/failed/canceled within the last 7 days,
|
|
219
|
-
// and pending operations. Operations returned are ordered by
|
|
220
|
-
// `operation.metadata.value.start_time` in descending order starting
|
|
221
|
-
// from the most recently started operation.
|
|
222
|
-
rpc ListInstanceConfigOperations(ListInstanceConfigOperationsRequest)
|
|
223
|
-
returns (ListInstanceConfigOperationsResponse) {
|
|
224
|
-
option (google.api.http) = {
|
|
225
|
-
get: "/v1/{parent=projects/*}/instanceConfigOperations"
|
|
226
|
-
};
|
|
227
|
-
option (google.api.method_signature) = "parent";
|
|
228
|
-
}
|
|
229
|
-
|
|
230
|
-
// Lists all instances in the given project.
|
|
231
|
-
rpc ListInstances(ListInstancesRequest) returns (ListInstancesResponse) {
|
|
232
|
-
option (google.api.http) = {
|
|
233
|
-
get: "/v1/{parent=projects/*}/instances"
|
|
234
|
-
};
|
|
235
|
-
option (google.api.method_signature) = "parent";
|
|
236
|
-
}
|
|
237
|
-
|
|
238
|
-
// Lists all instance partitions for the given instance.
|
|
239
|
-
rpc ListInstancePartitions(ListInstancePartitionsRequest)
|
|
240
|
-
returns (ListInstancePartitionsResponse) {
|
|
241
|
-
option (google.api.http) = {
|
|
242
|
-
get: "/v1/{parent=projects/*/instances/*}/instancePartitions"
|
|
243
|
-
};
|
|
244
|
-
option (google.api.method_signature) = "parent";
|
|
245
|
-
}
|
|
246
|
-
|
|
247
|
-
// Gets information about a particular instance.
|
|
248
|
-
rpc GetInstance(GetInstanceRequest) returns (Instance) {
|
|
249
|
-
option (google.api.http) = {
|
|
250
|
-
get: "/v1/{name=projects/*/instances/*}"
|
|
251
|
-
};
|
|
252
|
-
option (google.api.method_signature) = "name";
|
|
253
|
-
}
|
|
254
|
-
|
|
255
|
-
// Creates an instance and begins preparing it to begin serving. The
|
|
256
|
-
// returned [long-running operation][google.longrunning.Operation]
|
|
257
|
-
// can be used to track the progress of preparing the new
|
|
258
|
-
// instance. The instance name is assigned by the caller. If the
|
|
259
|
-
// named instance already exists, `CreateInstance` returns
|
|
260
|
-
// `ALREADY_EXISTS`.
|
|
261
|
-
//
|
|
262
|
-
// Immediately upon completion of this request:
|
|
263
|
-
//
|
|
264
|
-
// * The instance is readable via the API, with all requested attributes
|
|
265
|
-
// but no allocated resources. Its state is `CREATING`.
|
|
266
|
-
//
|
|
267
|
-
// Until completion of the returned operation:
|
|
268
|
-
//
|
|
269
|
-
// * Cancelling the operation renders the instance immediately unreadable
|
|
270
|
-
// via the API.
|
|
271
|
-
// * The instance can be deleted.
|
|
272
|
-
// * All other attempts to modify the instance are rejected.
|
|
273
|
-
//
|
|
274
|
-
// Upon completion of the returned operation:
|
|
275
|
-
//
|
|
276
|
-
// * Billing for all successfully-allocated resources begins (some types
|
|
277
|
-
// may have lower than the requested levels).
|
|
278
|
-
// * Databases can be created in the instance.
|
|
279
|
-
// * The instance's allocated resource levels are readable via the API.
|
|
280
|
-
// * The instance's state becomes `READY`.
|
|
281
|
-
//
|
|
282
|
-
// The returned [long-running operation][google.longrunning.Operation] will
|
|
283
|
-
// have a name of the format `<instance_name>/operations/<operation_id>` and
|
|
284
|
-
// can be used to track creation of the instance. The
|
|
285
|
-
// [metadata][google.longrunning.Operation.metadata] field type is
|
|
286
|
-
// [CreateInstanceMetadata][google.spanner.admin.instance.v1.CreateInstanceMetadata].
|
|
287
|
-
// The [response][google.longrunning.Operation.response] field type is
|
|
288
|
-
// [Instance][google.spanner.admin.instance.v1.Instance], if successful.
|
|
289
|
-
rpc CreateInstance(CreateInstanceRequest)
|
|
290
|
-
returns (google.longrunning.Operation) {
|
|
291
|
-
option (google.api.http) = {
|
|
292
|
-
post: "/v1/{parent=projects/*}/instances"
|
|
293
|
-
body: "*"
|
|
294
|
-
};
|
|
295
|
-
option (google.api.method_signature) = "parent,instance_id,instance";
|
|
296
|
-
option (google.longrunning.operation_info) = {
|
|
297
|
-
response_type: "google.spanner.admin.instance.v1.Instance"
|
|
298
|
-
metadata_type: "google.spanner.admin.instance.v1.CreateInstanceMetadata"
|
|
299
|
-
};
|
|
300
|
-
}
|
|
301
|
-
|
|
302
|
-
// Updates an instance, and begins allocating or releasing resources
|
|
303
|
-
// as requested. The returned [long-running
|
|
304
|
-
// operation][google.longrunning.Operation] can be used to track the
|
|
305
|
-
// progress of updating the instance. If the named instance does not
|
|
306
|
-
// exist, returns `NOT_FOUND`.
|
|
307
|
-
//
|
|
308
|
-
// Immediately upon completion of this request:
|
|
309
|
-
//
|
|
310
|
-
// * For resource types for which a decrease in the instance's allocation
|
|
311
|
-
// has been requested, billing is based on the newly-requested level.
|
|
312
|
-
//
|
|
313
|
-
// Until completion of the returned operation:
|
|
314
|
-
//
|
|
315
|
-
// * Cancelling the operation sets its metadata's
|
|
316
|
-
// [cancel_time][google.spanner.admin.instance.v1.UpdateInstanceMetadata.cancel_time],
|
|
317
|
-
// and begins restoring resources to their pre-request values. The
|
|
318
|
-
// operation is guaranteed to succeed at undoing all resource changes,
|
|
319
|
-
// after which point it terminates with a `CANCELLED` status.
|
|
320
|
-
// * All other attempts to modify the instance are rejected.
|
|
321
|
-
// * Reading the instance via the API continues to give the pre-request
|
|
322
|
-
// resource levels.
|
|
323
|
-
//
|
|
324
|
-
// Upon completion of the returned operation:
|
|
325
|
-
//
|
|
326
|
-
// * Billing begins for all successfully-allocated resources (some types
|
|
327
|
-
// may have lower than the requested levels).
|
|
328
|
-
// * All newly-reserved resources are available for serving the instance's
|
|
329
|
-
// tables.
|
|
330
|
-
// * The instance's new resource levels are readable via the API.
|
|
331
|
-
//
|
|
332
|
-
// The returned [long-running operation][google.longrunning.Operation] will
|
|
333
|
-
// have a name of the format `<instance_name>/operations/<operation_id>` and
|
|
334
|
-
// can be used to track the instance modification. The
|
|
335
|
-
// [metadata][google.longrunning.Operation.metadata] field type is
|
|
336
|
-
// [UpdateInstanceMetadata][google.spanner.admin.instance.v1.UpdateInstanceMetadata].
|
|
337
|
-
// The [response][google.longrunning.Operation.response] field type is
|
|
338
|
-
// [Instance][google.spanner.admin.instance.v1.Instance], if successful.
|
|
339
|
-
//
|
|
340
|
-
// Authorization requires `spanner.instances.update` permission on
|
|
341
|
-
// the resource [name][google.spanner.admin.instance.v1.Instance.name].
|
|
342
|
-
rpc UpdateInstance(UpdateInstanceRequest)
|
|
343
|
-
returns (google.longrunning.Operation) {
|
|
344
|
-
option (google.api.http) = {
|
|
345
|
-
patch: "/v1/{instance.name=projects/*/instances/*}"
|
|
346
|
-
body: "*"
|
|
347
|
-
};
|
|
348
|
-
option (google.api.method_signature) = "instance,field_mask";
|
|
349
|
-
option (google.longrunning.operation_info) = {
|
|
350
|
-
response_type: "google.spanner.admin.instance.v1.Instance"
|
|
351
|
-
metadata_type: "google.spanner.admin.instance.v1.UpdateInstanceMetadata"
|
|
352
|
-
};
|
|
353
|
-
}
|
|
354
|
-
|
|
355
|
-
// Deletes an instance.
|
|
356
|
-
//
|
|
357
|
-
// Immediately upon completion of the request:
|
|
358
|
-
//
|
|
359
|
-
// * Billing ceases for all of the instance's reserved resources.
|
|
360
|
-
//
|
|
361
|
-
// Soon afterward:
|
|
362
|
-
//
|
|
363
|
-
// * The instance and *all of its databases* immediately and
|
|
364
|
-
// irrevocably disappear from the API. All data in the databases
|
|
365
|
-
// is permanently deleted.
|
|
366
|
-
rpc DeleteInstance(DeleteInstanceRequest) returns (google.protobuf.Empty) {
|
|
367
|
-
option (google.api.http) = {
|
|
368
|
-
delete: "/v1/{name=projects/*/instances/*}"
|
|
369
|
-
};
|
|
370
|
-
option (google.api.method_signature) = "name";
|
|
371
|
-
}
|
|
372
|
-
|
|
373
|
-
// Sets the access control policy on an instance resource. Replaces any
|
|
374
|
-
// existing policy.
|
|
375
|
-
//
|
|
376
|
-
// Authorization requires `spanner.instances.setIamPolicy` on
|
|
377
|
-
// [resource][google.iam.v1.SetIamPolicyRequest.resource].
|
|
378
|
-
rpc SetIamPolicy(google.iam.v1.SetIamPolicyRequest)
|
|
379
|
-
returns (google.iam.v1.Policy) {
|
|
380
|
-
option (google.api.http) = {
|
|
381
|
-
post: "/v1/{resource=projects/*/instances/*}:setIamPolicy"
|
|
382
|
-
body: "*"
|
|
383
|
-
};
|
|
384
|
-
option (google.api.method_signature) = "resource,policy";
|
|
385
|
-
}
|
|
386
|
-
|
|
387
|
-
// Gets the access control policy for an instance resource. Returns an empty
|
|
388
|
-
// policy if an instance exists but does not have a policy set.
|
|
389
|
-
//
|
|
390
|
-
// Authorization requires `spanner.instances.getIamPolicy` on
|
|
391
|
-
// [resource][google.iam.v1.GetIamPolicyRequest.resource].
|
|
392
|
-
rpc GetIamPolicy(google.iam.v1.GetIamPolicyRequest)
|
|
393
|
-
returns (google.iam.v1.Policy) {
|
|
394
|
-
option (google.api.http) = {
|
|
395
|
-
post: "/v1/{resource=projects/*/instances/*}:getIamPolicy"
|
|
396
|
-
body: "*"
|
|
397
|
-
};
|
|
398
|
-
option (google.api.method_signature) = "resource";
|
|
399
|
-
}
|
|
400
|
-
|
|
401
|
-
// Returns permissions that the caller has on the specified instance resource.
|
|
402
|
-
//
|
|
403
|
-
// Attempting this RPC on a non-existent Cloud Spanner instance resource will
|
|
404
|
-
// result in a NOT_FOUND error if the user has `spanner.instances.list`
|
|
405
|
-
// permission on the containing Google Cloud Project. Otherwise returns an
|
|
406
|
-
// empty set of permissions.
|
|
407
|
-
rpc TestIamPermissions(google.iam.v1.TestIamPermissionsRequest)
|
|
408
|
-
returns (google.iam.v1.TestIamPermissionsResponse) {
|
|
409
|
-
option (google.api.http) = {
|
|
410
|
-
post: "/v1/{resource=projects/*/instances/*}:testIamPermissions"
|
|
411
|
-
body: "*"
|
|
412
|
-
};
|
|
413
|
-
option (google.api.method_signature) = "resource,permissions";
|
|
414
|
-
}
|
|
415
|
-
|
|
416
|
-
// Gets information about a particular instance partition.
|
|
417
|
-
rpc GetInstancePartition(GetInstancePartitionRequest)
|
|
418
|
-
returns (InstancePartition) {
|
|
419
|
-
option (google.api.http) = {
|
|
420
|
-
get: "/v1/{name=projects/*/instances/*/instancePartitions/*}"
|
|
421
|
-
};
|
|
422
|
-
option (google.api.method_signature) = "name";
|
|
423
|
-
}
|
|
424
|
-
|
|
425
|
-
// Creates an instance partition and begins preparing it to be used. The
|
|
426
|
-
// returned [long-running operation][google.longrunning.Operation]
|
|
427
|
-
// can be used to track the progress of preparing the new instance partition.
|
|
428
|
-
// The instance partition name is assigned by the caller. If the named
|
|
429
|
-
// instance partition already exists, `CreateInstancePartition` returns
|
|
430
|
-
// `ALREADY_EXISTS`.
|
|
431
|
-
//
|
|
432
|
-
// Immediately upon completion of this request:
|
|
433
|
-
//
|
|
434
|
-
// * The instance partition is readable via the API, with all requested
|
|
435
|
-
// attributes but no allocated resources. Its state is `CREATING`.
|
|
436
|
-
//
|
|
437
|
-
// Until completion of the returned operation:
|
|
438
|
-
//
|
|
439
|
-
// * Cancelling the operation renders the instance partition immediately
|
|
440
|
-
// unreadable via the API.
|
|
441
|
-
// * The instance partition can be deleted.
|
|
442
|
-
// * All other attempts to modify the instance partition are rejected.
|
|
443
|
-
//
|
|
444
|
-
// Upon completion of the returned operation:
|
|
445
|
-
//
|
|
446
|
-
// * Billing for all successfully-allocated resources begins (some types
|
|
447
|
-
// may have lower than the requested levels).
|
|
448
|
-
// * Databases can start using this instance partition.
|
|
449
|
-
// * The instance partition's allocated resource levels are readable via the
|
|
450
|
-
// API.
|
|
451
|
-
// * The instance partition's state becomes `READY`.
|
|
452
|
-
//
|
|
453
|
-
// The returned [long-running operation][google.longrunning.Operation] will
|
|
454
|
-
// have a name of the format
|
|
455
|
-
// `<instance_partition_name>/operations/<operation_id>` and can be used to
|
|
456
|
-
// track creation of the instance partition. The
|
|
457
|
-
// [metadata][google.longrunning.Operation.metadata] field type is
|
|
458
|
-
// [CreateInstancePartitionMetadata][google.spanner.admin.instance.v1.CreateInstancePartitionMetadata].
|
|
459
|
-
// The [response][google.longrunning.Operation.response] field type is
|
|
460
|
-
// [InstancePartition][google.spanner.admin.instance.v1.InstancePartition], if
|
|
461
|
-
// successful.
|
|
462
|
-
rpc CreateInstancePartition(CreateInstancePartitionRequest)
|
|
463
|
-
returns (google.longrunning.Operation) {
|
|
464
|
-
option (google.api.http) = {
|
|
465
|
-
post: "/v1/{parent=projects/*/instances/*}/instancePartitions"
|
|
466
|
-
body: "*"
|
|
467
|
-
};
|
|
468
|
-
option (google.api.method_signature) =
|
|
469
|
-
"parent,instance_partition,instance_partition_id";
|
|
470
|
-
option (google.longrunning.operation_info) = {
|
|
471
|
-
response_type: "google.spanner.admin.instance.v1.InstancePartition"
|
|
472
|
-
metadata_type: "google.spanner.admin.instance.v1.CreateInstancePartitionMetadata"
|
|
473
|
-
};
|
|
474
|
-
}
|
|
475
|
-
|
|
476
|
-
// Deletes an existing instance partition. Requires that the
|
|
477
|
-
// instance partition is not used by any database or backup and is not the
|
|
478
|
-
// default instance partition of an instance.
|
|
479
|
-
//
|
|
480
|
-
// Authorization requires `spanner.instancePartitions.delete` permission on
|
|
481
|
-
// the resource
|
|
482
|
-
// [name][google.spanner.admin.instance.v1.InstancePartition.name].
|
|
483
|
-
rpc DeleteInstancePartition(DeleteInstancePartitionRequest)
|
|
484
|
-
returns (google.protobuf.Empty) {
|
|
485
|
-
option (google.api.http) = {
|
|
486
|
-
delete: "/v1/{name=projects/*/instances/*/instancePartitions/*}"
|
|
487
|
-
};
|
|
488
|
-
option (google.api.method_signature) = "name";
|
|
489
|
-
}
|
|
490
|
-
|
|
491
|
-
// Updates an instance partition, and begins allocating or releasing resources
|
|
492
|
-
// as requested. The returned [long-running
|
|
493
|
-
// operation][google.longrunning.Operation] can be used to track the
|
|
494
|
-
// progress of updating the instance partition. If the named instance
|
|
495
|
-
// partition does not exist, returns `NOT_FOUND`.
|
|
496
|
-
//
|
|
497
|
-
// Immediately upon completion of this request:
|
|
498
|
-
//
|
|
499
|
-
// * For resource types for which a decrease in the instance partition's
|
|
500
|
-
// allocation has been requested, billing is based on the newly-requested
|
|
501
|
-
// level.
|
|
502
|
-
//
|
|
503
|
-
// Until completion of the returned operation:
|
|
504
|
-
//
|
|
505
|
-
// * Cancelling the operation sets its metadata's
|
|
506
|
-
// [cancel_time][google.spanner.admin.instance.v1.UpdateInstancePartitionMetadata.cancel_time],
|
|
507
|
-
// and begins restoring resources to their pre-request values. The
|
|
508
|
-
// operation is guaranteed to succeed at undoing all resource changes,
|
|
509
|
-
// after which point it terminates with a `CANCELLED` status.
|
|
510
|
-
// * All other attempts to modify the instance partition are rejected.
|
|
511
|
-
// * Reading the instance partition via the API continues to give the
|
|
512
|
-
// pre-request resource levels.
|
|
513
|
-
//
|
|
514
|
-
// Upon completion of the returned operation:
|
|
515
|
-
//
|
|
516
|
-
// * Billing begins for all successfully-allocated resources (some types
|
|
517
|
-
// may have lower than the requested levels).
|
|
518
|
-
// * All newly-reserved resources are available for serving the instance
|
|
519
|
-
// partition's tables.
|
|
520
|
-
// * The instance partition's new resource levels are readable via the API.
|
|
521
|
-
//
|
|
522
|
-
// The returned [long-running operation][google.longrunning.Operation] will
|
|
523
|
-
// have a name of the format
|
|
524
|
-
// `<instance_partition_name>/operations/<operation_id>` and can be used to
|
|
525
|
-
// track the instance partition modification. The
|
|
526
|
-
// [metadata][google.longrunning.Operation.metadata] field type is
|
|
527
|
-
// [UpdateInstancePartitionMetadata][google.spanner.admin.instance.v1.UpdateInstancePartitionMetadata].
|
|
528
|
-
// The [response][google.longrunning.Operation.response] field type is
|
|
529
|
-
// [InstancePartition][google.spanner.admin.instance.v1.InstancePartition], if
|
|
530
|
-
// successful.
|
|
531
|
-
//
|
|
532
|
-
// Authorization requires `spanner.instancePartitions.update` permission on
|
|
533
|
-
// the resource
|
|
534
|
-
// [name][google.spanner.admin.instance.v1.InstancePartition.name].
|
|
535
|
-
rpc UpdateInstancePartition(UpdateInstancePartitionRequest)
|
|
536
|
-
returns (google.longrunning.Operation) {
|
|
537
|
-
option (google.api.http) = {
|
|
538
|
-
patch: "/v1/{instance_partition.name=projects/*/instances/*/instancePartitions/*}"
|
|
539
|
-
body: "*"
|
|
540
|
-
};
|
|
541
|
-
option (google.api.method_signature) = "instance_partition,field_mask";
|
|
542
|
-
option (google.longrunning.operation_info) = {
|
|
543
|
-
response_type: "google.spanner.admin.instance.v1.InstancePartition"
|
|
544
|
-
metadata_type: "google.spanner.admin.instance.v1.UpdateInstancePartitionMetadata"
|
|
545
|
-
};
|
|
546
|
-
}
|
|
547
|
-
|
|
548
|
-
// Lists instance partition [long-running
|
|
549
|
-
// operations][google.longrunning.Operation] in the given instance.
|
|
550
|
-
// An instance partition operation has a name of the form
|
|
551
|
-
// `projects/<project>/instances/<instance>/instancePartitions/<instance_partition>/operations/<operation>`.
|
|
552
|
-
// The long-running operation
|
|
553
|
-
// [metadata][google.longrunning.Operation.metadata] field type
|
|
554
|
-
// `metadata.type_url` describes the type of the metadata. Operations returned
|
|
555
|
-
// include those that have completed/failed/canceled within the last 7 days,
|
|
556
|
-
// and pending operations. Operations returned are ordered by
|
|
557
|
-
// `operation.metadata.value.start_time` in descending order starting from the
|
|
558
|
-
// most recently started operation.
|
|
559
|
-
//
|
|
560
|
-
// Authorization requires `spanner.instancePartitionOperations.list`
|
|
561
|
-
// permission on the resource
|
|
562
|
-
// [parent][google.spanner.admin.instance.v1.ListInstancePartitionOperationsRequest.parent].
|
|
563
|
-
rpc ListInstancePartitionOperations(ListInstancePartitionOperationsRequest)
|
|
564
|
-
returns (ListInstancePartitionOperationsResponse) {
|
|
565
|
-
option (google.api.http) = {
|
|
566
|
-
get: "/v1/{parent=projects/*/instances/*}/instancePartitionOperations"
|
|
567
|
-
};
|
|
568
|
-
option (google.api.method_signature) = "parent";
|
|
569
|
-
}
|
|
570
|
-
|
|
571
|
-
// Moves an instance to the target instance configuration. You can use the
|
|
572
|
-
// returned [long-running operation][google.longrunning.Operation] to track
|
|
573
|
-
// the progress of moving the instance.
|
|
574
|
-
//
|
|
575
|
-
// `MoveInstance` returns `FAILED_PRECONDITION` if the instance meets any of
|
|
576
|
-
// the following criteria:
|
|
577
|
-
//
|
|
578
|
-
// * Is undergoing a move to a different instance configuration
|
|
579
|
-
// * Has backups
|
|
580
|
-
// * Has an ongoing update
|
|
581
|
-
// * Contains any CMEK-enabled databases
|
|
582
|
-
// * Is a free trial instance
|
|
583
|
-
//
|
|
584
|
-
// While the operation is pending:
|
|
585
|
-
//
|
|
586
|
-
// * All other attempts to modify the instance, including changes to its
|
|
587
|
-
// compute capacity, are rejected.
|
|
588
|
-
// * The following database and backup admin operations are rejected:
|
|
589
|
-
//
|
|
590
|
-
// * `DatabaseAdmin.CreateDatabase`
|
|
591
|
-
// * `DatabaseAdmin.UpdateDatabaseDdl` (disabled if default_leader is
|
|
592
|
-
// specified in the request.)
|
|
593
|
-
// * `DatabaseAdmin.RestoreDatabase`
|
|
594
|
-
// * `DatabaseAdmin.CreateBackup`
|
|
595
|
-
// * `DatabaseAdmin.CopyBackup`
|
|
596
|
-
//
|
|
597
|
-
// * Both the source and target instance configurations are subject to
|
|
598
|
-
// hourly compute and storage charges.
|
|
599
|
-
// * The instance might experience higher read-write latencies and a higher
|
|
600
|
-
// transaction abort rate. However, moving an instance doesn't cause any
|
|
601
|
-
// downtime.
|
|
602
|
-
//
|
|
603
|
-
// The returned [long-running operation][google.longrunning.Operation] has
|
|
604
|
-
// a name of the format
|
|
605
|
-
// `<instance_name>/operations/<operation_id>` and can be used to track
|
|
606
|
-
// the move instance operation. The
|
|
607
|
-
// [metadata][google.longrunning.Operation.metadata] field type is
|
|
608
|
-
// [MoveInstanceMetadata][google.spanner.admin.instance.v1.MoveInstanceMetadata].
|
|
609
|
-
// The [response][google.longrunning.Operation.response] field type is
|
|
610
|
-
// [Instance][google.spanner.admin.instance.v1.Instance],
|
|
611
|
-
// if successful.
|
|
612
|
-
// Cancelling the operation sets its metadata's
|
|
613
|
-
// [cancel_time][google.spanner.admin.instance.v1.MoveInstanceMetadata.cancel_time].
|
|
614
|
-
// Cancellation is not immediate because it involves moving any data
|
|
615
|
-
// previously moved to the target instance configuration back to the original
|
|
616
|
-
// instance configuration. You can use this operation to track the progress of
|
|
617
|
-
// the cancellation. Upon successful completion of the cancellation, the
|
|
618
|
-
// operation terminates with `CANCELLED` status.
|
|
619
|
-
//
|
|
620
|
-
// If not cancelled, upon completion of the returned operation:
|
|
621
|
-
//
|
|
622
|
-
// * The instance successfully moves to the target instance
|
|
623
|
-
// configuration.
|
|
624
|
-
// * You are billed for compute and storage in target instance
|
|
625
|
-
// configuration.
|
|
626
|
-
//
|
|
627
|
-
// Authorization requires the `spanner.instances.update` permission on
|
|
628
|
-
// the resource [instance][google.spanner.admin.instance.v1.Instance].
|
|
629
|
-
//
|
|
630
|
-
// For more details, see
|
|
631
|
-
// [Move an instance](https://cloud.google.com/spanner/docs/move-instance).
|
|
632
|
-
rpc MoveInstance(MoveInstanceRequest) returns (google.longrunning.Operation) {
|
|
633
|
-
option (google.api.http) = {
|
|
634
|
-
post: "/v1/{name=projects/*/instances/*}:move"
|
|
635
|
-
body: "*"
|
|
636
|
-
};
|
|
637
|
-
option (google.longrunning.operation_info) = {
|
|
638
|
-
response_type: "google.spanner.admin.instance.v1.MoveInstanceResponse"
|
|
639
|
-
metadata_type: "google.spanner.admin.instance.v1.MoveInstanceMetadata"
|
|
640
|
-
};
|
|
641
|
-
}
|
|
642
|
-
}
|
|
643
|
-
|
|
644
|
-
message ReplicaInfo {
|
|
645
|
-
// Indicates the type of replica. See the [replica types
|
|
646
|
-
// documentation](https://cloud.google.com/spanner/docs/replication#replica_types)
|
|
647
|
-
// for more details.
|
|
648
|
-
enum ReplicaType {
|
|
649
|
-
// Not specified.
|
|
650
|
-
TYPE_UNSPECIFIED = 0;
|
|
651
|
-
|
|
652
|
-
// Read-write replicas support both reads and writes. These replicas:
|
|
653
|
-
//
|
|
654
|
-
// * Maintain a full copy of your data.
|
|
655
|
-
// * Serve reads.
|
|
656
|
-
// * Can vote whether to commit a write.
|
|
657
|
-
// * Participate in leadership election.
|
|
658
|
-
// * Are eligible to become a leader.
|
|
659
|
-
READ_WRITE = 1;
|
|
660
|
-
|
|
661
|
-
// Read-only replicas only support reads (not writes). Read-only replicas:
|
|
662
|
-
//
|
|
663
|
-
// * Maintain a full copy of your data.
|
|
664
|
-
// * Serve reads.
|
|
665
|
-
// * Do not participate in voting to commit writes.
|
|
666
|
-
// * Are not eligible to become a leader.
|
|
667
|
-
READ_ONLY = 2;
|
|
668
|
-
|
|
669
|
-
// Witness replicas don't support reads but do participate in voting to
|
|
670
|
-
// commit writes. Witness replicas:
|
|
671
|
-
//
|
|
672
|
-
// * Do not maintain a full copy of data.
|
|
673
|
-
// * Do not serve reads.
|
|
674
|
-
// * Vote whether to commit writes.
|
|
675
|
-
// * Participate in leader election but are not eligible to become leader.
|
|
676
|
-
WITNESS = 3;
|
|
677
|
-
}
|
|
678
|
-
|
|
679
|
-
// The location of the serving resources, e.g. "us-central1".
|
|
680
|
-
string location = 1;
|
|
681
|
-
|
|
682
|
-
// The type of replica.
|
|
683
|
-
ReplicaType type = 2;
|
|
684
|
-
|
|
685
|
-
// If true, this location is designated as the default leader location where
|
|
686
|
-
// leader replicas are placed. See the [region types
|
|
687
|
-
// documentation](https://cloud.google.com/spanner/docs/instances#region_types)
|
|
688
|
-
// for more details.
|
|
689
|
-
bool default_leader_location = 3;
|
|
690
|
-
}
|
|
691
|
-
|
|
692
|
-
// A possible configuration for a Cloud Spanner instance. Configurations
|
|
693
|
-
// define the geographic placement of nodes and their replication.
|
|
694
|
-
message InstanceConfig {
|
|
695
|
-
option (google.api.resource) = {
|
|
696
|
-
type: "spanner.googleapis.com/InstanceConfig"
|
|
697
|
-
pattern: "projects/{project}/instanceConfigs/{instance_config}"
|
|
698
|
-
};
|
|
699
|
-
|
|
700
|
-
// The type of this configuration.
|
|
701
|
-
enum Type {
|
|
702
|
-
// Unspecified.
|
|
703
|
-
TYPE_UNSPECIFIED = 0;
|
|
704
|
-
|
|
705
|
-
// Google managed configuration.
|
|
706
|
-
GOOGLE_MANAGED = 1;
|
|
707
|
-
|
|
708
|
-
// User managed configuration.
|
|
709
|
-
USER_MANAGED = 2;
|
|
710
|
-
}
|
|
711
|
-
|
|
712
|
-
// Indicates the current state of the instance configuration.
|
|
713
|
-
enum State {
|
|
714
|
-
// Not specified.
|
|
715
|
-
STATE_UNSPECIFIED = 0;
|
|
716
|
-
|
|
717
|
-
// The instance configuration is still being created.
|
|
718
|
-
CREATING = 1;
|
|
719
|
-
|
|
720
|
-
// The instance configuration is fully created and ready to be used to
|
|
721
|
-
// create instances.
|
|
722
|
-
READY = 2;
|
|
723
|
-
}
|
|
724
|
-
|
|
725
|
-
// A unique identifier for the instance configuration. Values
|
|
726
|
-
// are of the form
|
|
727
|
-
// `projects/<project>/instanceConfigs/[a-z][-a-z0-9]*`.
|
|
728
|
-
//
|
|
729
|
-
// User instance configuration must start with `custom-`.
|
|
730
|
-
string name = 1;
|
|
731
|
-
|
|
732
|
-
// The name of this instance configuration as it appears in UIs.
|
|
733
|
-
string display_name = 2;
|
|
734
|
-
|
|
735
|
-
// Output only. Whether this instance configuration is a Google-managed or
|
|
736
|
-
// user-managed configuration.
|
|
737
|
-
Type config_type = 5 [(google.api.field_behavior) = OUTPUT_ONLY];
|
|
738
|
-
|
|
739
|
-
// The geographic placement of nodes in this instance configuration and their
|
|
740
|
-
// replication properties.
|
|
741
|
-
repeated ReplicaInfo replicas = 3;
|
|
742
|
-
|
|
743
|
-
// Output only. The available optional replicas to choose from for user
|
|
744
|
-
// managed configurations. Populated for Google managed configurations.
|
|
745
|
-
repeated ReplicaInfo optional_replicas = 6
|
|
746
|
-
[(google.api.field_behavior) = OUTPUT_ONLY];
|
|
747
|
-
|
|
748
|
-
// Base configuration name, e.g. projects/<project_name>/instanceConfigs/nam3,
|
|
749
|
-
// based on which this configuration is created. Only set for user managed
|
|
750
|
-
// configurations. `base_config` must refer to a configuration of type
|
|
751
|
-
// GOOGLE_MANAGED in the same project as this configuration.
|
|
752
|
-
string base_config = 7 [(google.api.resource_reference) = {
|
|
753
|
-
type: "spanner.googleapis.com/InstanceConfig"
|
|
754
|
-
}];
|
|
755
|
-
|
|
756
|
-
// Cloud Labels are a flexible and lightweight mechanism for organizing cloud
|
|
757
|
-
// resources into groups that reflect a customer's organizational needs and
|
|
758
|
-
// deployment strategies. Cloud Labels can be used to filter collections of
|
|
759
|
-
// resources. They can be used to control how resource metrics are aggregated.
|
|
760
|
-
// And they can be used as arguments to policy management rules (e.g. route,
|
|
761
|
-
// firewall, load balancing, etc.).
|
|
762
|
-
//
|
|
763
|
-
// * Label keys must be between 1 and 63 characters long and must conform to
|
|
764
|
-
// the following regular expression: `[a-z][a-z0-9_-]{0,62}`.
|
|
765
|
-
// * Label values must be between 0 and 63 characters long and must conform
|
|
766
|
-
// to the regular expression `[a-z0-9_-]{0,63}`.
|
|
767
|
-
// * No more than 64 labels can be associated with a given resource.
|
|
768
|
-
//
|
|
769
|
-
// See https://goo.gl/xmQnxf for more information on and examples of labels.
|
|
770
|
-
//
|
|
771
|
-
// If you plan to use labels in your own code, please note that additional
|
|
772
|
-
// characters may be allowed in the future. Therefore, you are advised to use
|
|
773
|
-
// an internal label representation, such as JSON, which doesn't rely upon
|
|
774
|
-
// specific characters being disallowed. For example, representing labels
|
|
775
|
-
// as the string: name + "_" + value would prove problematic if we were to
|
|
776
|
-
// allow "_" in a future release.
|
|
777
|
-
map<string, string> labels = 8;
|
|
778
|
-
|
|
779
|
-
// etag is used for optimistic concurrency control as a way
|
|
780
|
-
// to help prevent simultaneous updates of a instance configuration from
|
|
781
|
-
// overwriting each other. It is strongly suggested that systems make use of
|
|
782
|
-
// the etag in the read-modify-write cycle to perform instance configuration
|
|
783
|
-
// updates in order to avoid race conditions: An etag is returned in the
|
|
784
|
-
// response which contains instance configurations, and systems are expected
|
|
785
|
-
// to put that etag in the request to update instance configuration to ensure
|
|
786
|
-
// that their change is applied to the same version of the instance
|
|
787
|
-
// configuration. If no etag is provided in the call to update the instance
|
|
788
|
-
// configuration, then the existing instance configuration is overwritten
|
|
789
|
-
// blindly.
|
|
790
|
-
string etag = 9;
|
|
791
|
-
|
|
792
|
-
// Allowed values of the "default_leader" schema option for databases in
|
|
793
|
-
// instances that use this instance configuration.
|
|
794
|
-
repeated string leader_options = 4;
|
|
795
|
-
|
|
796
|
-
// Output only. If true, the instance configuration is being created or
|
|
797
|
-
// updated. If false, there are no ongoing operations for the instance
|
|
798
|
-
// configuration.
|
|
799
|
-
bool reconciling = 10 [(google.api.field_behavior) = OUTPUT_ONLY];
|
|
800
|
-
|
|
801
|
-
// Output only. The current instance configuration state. Applicable only for
|
|
802
|
-
// `USER_MANAGED` configurations.
|
|
803
|
-
State state = 11 [(google.api.field_behavior) = OUTPUT_ONLY];
|
|
804
|
-
}
|
|
805
|
-
|
|
806
|
-
// ReplicaComputeCapacity describes the amount of server resources that are
|
|
807
|
-
// allocated to each replica identified by the replica selection.
|
|
808
|
-
message ReplicaComputeCapacity {
|
|
809
|
-
// Required. Identifies replicas by specified properties.
|
|
810
|
-
// All replicas in the selection have the same amount of compute capacity.
|
|
811
|
-
ReplicaSelection replica_selection = 1
|
|
812
|
-
[(google.api.field_behavior) = REQUIRED];
|
|
813
|
-
|
|
814
|
-
// Compute capacity allocated to each replica identified by the specified
|
|
815
|
-
// selection.
|
|
816
|
-
// The unit is selected based on the unit used to specify the instance size
|
|
817
|
-
// for non-autoscaling instances, or the unit used in autoscaling limit for
|
|
818
|
-
// autoscaling instances.
|
|
819
|
-
oneof compute_capacity {
|
|
820
|
-
// The number of nodes allocated to each replica.
|
|
821
|
-
//
|
|
822
|
-
// This may be zero in API responses for instances that are not yet in
|
|
823
|
-
// state `READY`.
|
|
824
|
-
int32 node_count = 2;
|
|
825
|
-
|
|
826
|
-
// The number of processing units allocated to each replica.
|
|
827
|
-
//
|
|
828
|
-
// This may be zero in API responses for instances that are not yet in
|
|
829
|
-
// state `READY`.
|
|
830
|
-
int32 processing_units = 3;
|
|
831
|
-
}
|
|
832
|
-
}
|
|
833
|
-
|
|
834
|
-
// Autoscaling configuration for an instance.
|
|
835
|
-
message AutoscalingConfig {
|
|
836
|
-
// The autoscaling limits for the instance. Users can define the minimum and
|
|
837
|
-
// maximum compute capacity allocated to the instance, and the autoscaler will
|
|
838
|
-
// only scale within that range. Users can either use nodes or processing
|
|
839
|
-
// units to specify the limits, but should use the same unit to set both the
|
|
840
|
-
// min_limit and max_limit.
|
|
841
|
-
message AutoscalingLimits {
|
|
842
|
-
// The minimum compute capacity for the instance.
|
|
843
|
-
oneof min_limit {
|
|
844
|
-
// Minimum number of nodes allocated to the instance. If set, this number
|
|
845
|
-
// should be greater than or equal to 1.
|
|
846
|
-
int32 min_nodes = 1;
|
|
847
|
-
|
|
848
|
-
// Minimum number of processing units allocated to the instance. If set,
|
|
849
|
-
// this number should be multiples of 1000.
|
|
850
|
-
int32 min_processing_units = 2;
|
|
851
|
-
}
|
|
852
|
-
|
|
853
|
-
// The maximum compute capacity for the instance. The maximum compute
|
|
854
|
-
// capacity should be less than or equal to 10X the minimum compute
|
|
855
|
-
// capacity.
|
|
856
|
-
oneof max_limit {
|
|
857
|
-
// Maximum number of nodes allocated to the instance. If set, this number
|
|
858
|
-
// should be greater than or equal to min_nodes.
|
|
859
|
-
int32 max_nodes = 3;
|
|
860
|
-
|
|
861
|
-
// Maximum number of processing units allocated to the instance. If set,
|
|
862
|
-
// this number should be multiples of 1000 and be greater than or equal to
|
|
863
|
-
// min_processing_units.
|
|
864
|
-
int32 max_processing_units = 4;
|
|
865
|
-
}
|
|
866
|
-
}
|
|
867
|
-
|
|
868
|
-
// The autoscaling targets for an instance.
|
|
869
|
-
message AutoscalingTargets {
|
|
870
|
-
// Required. The target high priority cpu utilization percentage that the
|
|
871
|
-
// autoscaler should be trying to achieve for the instance. This number is
|
|
872
|
-
// on a scale from 0 (no utilization) to 100 (full utilization). The valid
|
|
873
|
-
// range is [10, 90] inclusive.
|
|
874
|
-
int32 high_priority_cpu_utilization_percent = 1
|
|
875
|
-
[(google.api.field_behavior) = REQUIRED];
|
|
876
|
-
|
|
877
|
-
// Required. The target storage utilization percentage that the autoscaler
|
|
878
|
-
// should be trying to achieve for the instance. This number is on a scale
|
|
879
|
-
// from 0 (no utilization) to 100 (full utilization). The valid range is
|
|
880
|
-
// [10, 100] inclusive.
|
|
881
|
-
int32 storage_utilization_percent = 2
|
|
882
|
-
[(google.api.field_behavior) = REQUIRED];
|
|
883
|
-
}
|
|
884
|
-
|
|
885
|
-
// AsymmetricAutoscalingOption specifies the scaling of replicas identified by
|
|
886
|
-
// the given selection.
|
|
887
|
-
message AsymmetricAutoscalingOption {
|
|
888
|
-
// Overrides the top-level autoscaling configuration for the replicas
|
|
889
|
-
// identified by `replica_selection`. All fields in this message are
|
|
890
|
-
// optional. Any unspecified fields will use the corresponding values from
|
|
891
|
-
// the top-level autoscaling configuration.
|
|
892
|
-
message AutoscalingConfigOverrides {
|
|
893
|
-
// Optional. If specified, overrides the min/max limit in the top-level
|
|
894
|
-
// autoscaling configuration for the selected replicas.
|
|
895
|
-
AutoscalingLimits autoscaling_limits = 1
|
|
896
|
-
[(google.api.field_behavior) = OPTIONAL];
|
|
897
|
-
|
|
898
|
-
// Optional. If specified, overrides the autoscaling target
|
|
899
|
-
// high_priority_cpu_utilization_percent in the top-level autoscaling
|
|
900
|
-
// configuration for the selected replicas.
|
|
901
|
-
int32 autoscaling_target_high_priority_cpu_utilization_percent = 2
|
|
902
|
-
[(google.api.field_behavior) = OPTIONAL];
|
|
903
|
-
}
|
|
904
|
-
|
|
905
|
-
// Required. Selects the replicas to which this AsymmetricAutoscalingOption
|
|
906
|
-
// applies. Only read-only replicas are supported.
|
|
907
|
-
ReplicaSelection replica_selection = 1
|
|
908
|
-
[(google.api.field_behavior) = REQUIRED];
|
|
909
|
-
|
|
910
|
-
// Optional. Overrides applied to the top-level autoscaling configuration
|
|
911
|
-
// for the selected replicas.
|
|
912
|
-
AutoscalingConfigOverrides overrides = 2
|
|
913
|
-
[(google.api.field_behavior) = OPTIONAL];
|
|
914
|
-
}
|
|
915
|
-
|
|
916
|
-
// Required. Autoscaling limits for an instance.
|
|
917
|
-
AutoscalingLimits autoscaling_limits = 1
|
|
918
|
-
[(google.api.field_behavior) = REQUIRED];
|
|
919
|
-
|
|
920
|
-
// Required. The autoscaling targets for an instance.
|
|
921
|
-
AutoscalingTargets autoscaling_targets = 2
|
|
922
|
-
[(google.api.field_behavior) = REQUIRED];
|
|
923
|
-
|
|
924
|
-
// Optional. Optional asymmetric autoscaling options.
|
|
925
|
-
// Replicas matching the replica selection criteria will be autoscaled
|
|
926
|
-
// independently from other replicas. The autoscaler will scale the replicas
|
|
927
|
-
// based on the utilization of replicas identified by the replica selection.
|
|
928
|
-
// Replica selections should not overlap with each other.
|
|
929
|
-
//
|
|
930
|
-
// Other replicas (those do not match any replica selection) will be
|
|
931
|
-
// autoscaled together and will have the same compute capacity allocated to
|
|
932
|
-
// them.
|
|
933
|
-
repeated AsymmetricAutoscalingOption asymmetric_autoscaling_options = 3
|
|
934
|
-
[(google.api.field_behavior) = OPTIONAL];
|
|
935
|
-
}
|
|
936
|
-
|
|
937
|
-
// An isolated set of Cloud Spanner resources on which databases can be hosted.
|
|
938
|
-
message Instance {
|
|
939
|
-
option (google.api.resource) = {
|
|
940
|
-
type: "spanner.googleapis.com/Instance"
|
|
941
|
-
pattern: "projects/{project}/instances/{instance}"
|
|
942
|
-
};
|
|
943
|
-
|
|
944
|
-
// Indicates the current state of the instance.
|
|
945
|
-
enum State {
|
|
946
|
-
// Not specified.
|
|
947
|
-
STATE_UNSPECIFIED = 0;
|
|
948
|
-
|
|
949
|
-
// The instance is still being created. Resources may not be
|
|
950
|
-
// available yet, and operations such as database creation may not
|
|
951
|
-
// work.
|
|
952
|
-
CREATING = 1;
|
|
953
|
-
|
|
954
|
-
// The instance is fully created and ready to do work such as
|
|
955
|
-
// creating databases.
|
|
956
|
-
READY = 2;
|
|
957
|
-
}
|
|
958
|
-
|
|
959
|
-
// The edition selected for this instance. Different editions provide
|
|
960
|
-
// different capabilities at different price points.
|
|
961
|
-
enum Edition {
|
|
962
|
-
// Edition not specified.
|
|
963
|
-
EDITION_UNSPECIFIED = 0;
|
|
964
|
-
|
|
965
|
-
// Standard edition.
|
|
966
|
-
STANDARD = 1;
|
|
967
|
-
|
|
968
|
-
// Enterprise edition.
|
|
969
|
-
ENTERPRISE = 2;
|
|
970
|
-
|
|
971
|
-
// Enterprise Plus edition.
|
|
972
|
-
ENTERPRISE_PLUS = 3;
|
|
973
|
-
}
|
|
974
|
-
|
|
975
|
-
// Indicates the default backup behavior for new databases within the
|
|
976
|
-
// instance.
|
|
977
|
-
enum DefaultBackupScheduleType {
|
|
978
|
-
// Not specified.
|
|
979
|
-
DEFAULT_BACKUP_SCHEDULE_TYPE_UNSPECIFIED = 0;
|
|
980
|
-
|
|
981
|
-
// No default backup schedule will be created automatically on creation of a
|
|
982
|
-
// database within the instance.
|
|
983
|
-
NONE = 1;
|
|
984
|
-
|
|
985
|
-
// A default backup schedule will be created automatically on creation of a
|
|
986
|
-
// database within the instance. The default backup schedule creates a full
|
|
987
|
-
// backup every 24 hours and retains the backup for a period of 7 days. Once
|
|
988
|
-
// created, the default backup schedule can be edited/deleted similar to any
|
|
989
|
-
// other backup schedule.
|
|
990
|
-
AUTOMATIC = 2;
|
|
991
|
-
}
|
|
992
|
-
|
|
993
|
-
// Required. A unique identifier for the instance, which cannot be changed
|
|
994
|
-
// after the instance is created. Values are of the form
|
|
995
|
-
// `projects/<project>/instances/[a-z][-a-z0-9]*[a-z0-9]`. The final
|
|
996
|
-
// segment of the name must be between 2 and 64 characters in length.
|
|
997
|
-
string name = 1 [(google.api.field_behavior) = REQUIRED];
|
|
998
|
-
|
|
999
|
-
// Required. The name of the instance's configuration. Values are of the form
|
|
1000
|
-
// `projects/<project>/instanceConfigs/<configuration>`. See
|
|
1001
|
-
// also [InstanceConfig][google.spanner.admin.instance.v1.InstanceConfig] and
|
|
1002
|
-
// [ListInstanceConfigs][google.spanner.admin.instance.v1.InstanceAdmin.ListInstanceConfigs].
|
|
1003
|
-
string config = 2 [
|
|
1004
|
-
(google.api.field_behavior) = REQUIRED,
|
|
1005
|
-
(google.api.resource_reference) = {
|
|
1006
|
-
type: "spanner.googleapis.com/InstanceConfig"
|
|
1007
|
-
}
|
|
1008
|
-
];
|
|
1009
|
-
|
|
1010
|
-
// Required. The descriptive name for this instance as it appears in UIs.
|
|
1011
|
-
// Must be unique per project and between 4 and 30 characters in length.
|
|
1012
|
-
string display_name = 3 [(google.api.field_behavior) = REQUIRED];
|
|
1013
|
-
|
|
1014
|
-
// The number of nodes allocated to this instance. At most, one of either
|
|
1015
|
-
// `node_count` or `processing_units` should be present in the message.
|
|
1016
|
-
//
|
|
1017
|
-
// Users can set the `node_count` field to specify the target number of nodes
|
|
1018
|
-
// allocated to the instance.
|
|
1019
|
-
//
|
|
1020
|
-
// If autoscaling is enabled, `node_count` is treated as an `OUTPUT_ONLY`
|
|
1021
|
-
// field and reflects the current number of nodes allocated to the instance.
|
|
1022
|
-
//
|
|
1023
|
-
// This might be zero in API responses for instances that are not yet in the
|
|
1024
|
-
// `READY` state.
|
|
1025
|
-
//
|
|
1026
|
-
// If the instance has varying node count across replicas (achieved by
|
|
1027
|
-
// setting asymmetric_autoscaling_options in autoscaling config), the
|
|
1028
|
-
// node_count here is the maximum node count across all replicas.
|
|
1029
|
-
//
|
|
1030
|
-
// For more information, see
|
|
1031
|
-
// [Compute capacity, nodes, and processing
|
|
1032
|
-
// units](https://cloud.google.com/spanner/docs/compute-capacity).
|
|
1033
|
-
int32 node_count = 5;
|
|
1034
|
-
|
|
1035
|
-
// The number of processing units allocated to this instance. At most, one of
|
|
1036
|
-
// either `processing_units` or `node_count` should be present in the message.
|
|
1037
|
-
//
|
|
1038
|
-
// Users can set the `processing_units` field to specify the target number of
|
|
1039
|
-
// processing units allocated to the instance.
|
|
1040
|
-
//
|
|
1041
|
-
// If autoscaling is enabled, `processing_units` is treated as an
|
|
1042
|
-
// `OUTPUT_ONLY` field and reflects the current number of processing units
|
|
1043
|
-
// allocated to the instance.
|
|
1044
|
-
//
|
|
1045
|
-
// This might be zero in API responses for instances that are not yet in the
|
|
1046
|
-
// `READY` state.
|
|
1047
|
-
//
|
|
1048
|
-
// If the instance has varying processing units per replica
|
|
1049
|
-
// (achieved by setting asymmetric_autoscaling_options in autoscaling config),
|
|
1050
|
-
// the processing_units here is the maximum processing units across all
|
|
1051
|
-
// replicas.
|
|
1052
|
-
//
|
|
1053
|
-
// For more information, see
|
|
1054
|
-
// [Compute capacity, nodes and processing
|
|
1055
|
-
// units](https://cloud.google.com/spanner/docs/compute-capacity).
|
|
1056
|
-
int32 processing_units = 9;
|
|
1057
|
-
|
|
1058
|
-
// Output only. Lists the compute capacity per ReplicaSelection. A replica
|
|
1059
|
-
// selection identifies a set of replicas with common properties. Replicas
|
|
1060
|
-
// identified by a ReplicaSelection are scaled with the same compute capacity.
|
|
1061
|
-
repeated ReplicaComputeCapacity replica_compute_capacity = 19
|
|
1062
|
-
[(google.api.field_behavior) = OUTPUT_ONLY];
|
|
1063
|
-
|
|
1064
|
-
// Optional. The autoscaling configuration. Autoscaling is enabled if this
|
|
1065
|
-
// field is set. When autoscaling is enabled, node_count and processing_units
|
|
1066
|
-
// are treated as OUTPUT_ONLY fields and reflect the current compute capacity
|
|
1067
|
-
// allocated to the instance.
|
|
1068
|
-
AutoscalingConfig autoscaling_config = 17
|
|
1069
|
-
[(google.api.field_behavior) = OPTIONAL];
|
|
1070
|
-
|
|
1071
|
-
// Output only. The current instance state. For
|
|
1072
|
-
// [CreateInstance][google.spanner.admin.instance.v1.InstanceAdmin.CreateInstance],
|
|
1073
|
-
// the state must be either omitted or set to `CREATING`. For
|
|
1074
|
-
// [UpdateInstance][google.spanner.admin.instance.v1.InstanceAdmin.UpdateInstance],
|
|
1075
|
-
// the state must be either omitted or set to `READY`.
|
|
1076
|
-
State state = 6 [(google.api.field_behavior) = OUTPUT_ONLY];
|
|
1077
|
-
|
|
1078
|
-
// Cloud Labels are a flexible and lightweight mechanism for organizing cloud
|
|
1079
|
-
// resources into groups that reflect a customer's organizational needs and
|
|
1080
|
-
// deployment strategies. Cloud Labels can be used to filter collections of
|
|
1081
|
-
// resources. They can be used to control how resource metrics are aggregated.
|
|
1082
|
-
// And they can be used as arguments to policy management rules (e.g. route,
|
|
1083
|
-
// firewall, load balancing, etc.).
|
|
1084
|
-
//
|
|
1085
|
-
// * Label keys must be between 1 and 63 characters long and must conform to
|
|
1086
|
-
// the following regular expression: `[a-z][a-z0-9_-]{0,62}`.
|
|
1087
|
-
// * Label values must be between 0 and 63 characters long and must conform
|
|
1088
|
-
// to the regular expression `[a-z0-9_-]{0,63}`.
|
|
1089
|
-
// * No more than 64 labels can be associated with a given resource.
|
|
1090
|
-
//
|
|
1091
|
-
// See https://goo.gl/xmQnxf for more information on and examples of labels.
|
|
1092
|
-
//
|
|
1093
|
-
// If you plan to use labels in your own code, please note that additional
|
|
1094
|
-
// characters may be allowed in the future. And so you are advised to use an
|
|
1095
|
-
// internal label representation, such as JSON, which doesn't rely upon
|
|
1096
|
-
// specific characters being disallowed. For example, representing labels
|
|
1097
|
-
// as the string: name + "_" + value would prove problematic if we were to
|
|
1098
|
-
// allow "_" in a future release.
|
|
1099
|
-
map<string, string> labels = 7;
|
|
1100
|
-
|
|
1101
|
-
// Deprecated. This field is not populated.
|
|
1102
|
-
repeated string endpoint_uris = 8;
|
|
1103
|
-
|
|
1104
|
-
// Output only. The time at which the instance was created.
|
|
1105
|
-
google.protobuf.Timestamp create_time = 11
|
|
1106
|
-
[(google.api.field_behavior) = OUTPUT_ONLY];
|
|
1107
|
-
|
|
1108
|
-
// Output only. The time at which the instance was most recently updated.
|
|
1109
|
-
google.protobuf.Timestamp update_time = 12
|
|
1110
|
-
[(google.api.field_behavior) = OUTPUT_ONLY];
|
|
1111
|
-
|
|
1112
|
-
// Optional. The `Edition` of the current instance.
|
|
1113
|
-
Edition edition = 20 [(google.api.field_behavior) = OPTIONAL];
|
|
1114
|
-
|
|
1115
|
-
// Optional. Controls the default backup behavior for new databases within the
|
|
1116
|
-
// instance.
|
|
1117
|
-
//
|
|
1118
|
-
// Note that `AUTOMATIC` is not permitted for free instances, as backups and
|
|
1119
|
-
// backup schedules are not allowed for free instances.
|
|
1120
|
-
//
|
|
1121
|
-
// In the `GetInstance` or `ListInstances` response, if the value of
|
|
1122
|
-
// default_backup_schedule_type is unset or NONE, no default backup
|
|
1123
|
-
// schedule will be created for new databases within the instance.
|
|
1124
|
-
DefaultBackupScheduleType default_backup_schedule_type = 23
|
|
1125
|
-
[(google.api.field_behavior) = OPTIONAL];
|
|
1126
|
-
}
|
|
1127
|
-
|
|
1128
|
-
// The request for
|
|
1129
|
-
// [ListInstanceConfigs][google.spanner.admin.instance.v1.InstanceAdmin.ListInstanceConfigs].
|
|
1130
|
-
message ListInstanceConfigsRequest {
|
|
1131
|
-
// Required. The name of the project for which a list of supported instance
|
|
1132
|
-
// configurations is requested. Values are of the form
|
|
1133
|
-
// `projects/<project>`.
|
|
1134
|
-
string parent = 1 [
|
|
1135
|
-
(google.api.field_behavior) = REQUIRED,
|
|
1136
|
-
(google.api.resource_reference) = {
|
|
1137
|
-
type: "cloudresourcemanager.googleapis.com/Project"
|
|
1138
|
-
}
|
|
1139
|
-
];
|
|
1140
|
-
|
|
1141
|
-
// Number of instance configurations to be returned in the response. If 0 or
|
|
1142
|
-
// less, defaults to the server's maximum allowed page size.
|
|
1143
|
-
int32 page_size = 2;
|
|
1144
|
-
|
|
1145
|
-
// If non-empty, `page_token` should contain a
|
|
1146
|
-
// [next_page_token][google.spanner.admin.instance.v1.ListInstanceConfigsResponse.next_page_token]
|
|
1147
|
-
// from a previous
|
|
1148
|
-
// [ListInstanceConfigsResponse][google.spanner.admin.instance.v1.ListInstanceConfigsResponse].
|
|
1149
|
-
string page_token = 3;
|
|
1150
|
-
}
|
|
1151
|
-
|
|
1152
|
-
// The response for
|
|
1153
|
-
// [ListInstanceConfigs][google.spanner.admin.instance.v1.InstanceAdmin.ListInstanceConfigs].
|
|
1154
|
-
message ListInstanceConfigsResponse {
|
|
1155
|
-
// The list of requested instance configurations.
|
|
1156
|
-
repeated InstanceConfig instance_configs = 1;
|
|
1157
|
-
|
|
1158
|
-
// `next_page_token` can be sent in a subsequent
|
|
1159
|
-
// [ListInstanceConfigs][google.spanner.admin.instance.v1.InstanceAdmin.ListInstanceConfigs]
|
|
1160
|
-
// call to fetch more of the matching instance configurations.
|
|
1161
|
-
string next_page_token = 2;
|
|
1162
|
-
}
|
|
1163
|
-
|
|
1164
|
-
// The request for
|
|
1165
|
-
// [GetInstanceConfigRequest][google.spanner.admin.instance.v1.InstanceAdmin.GetInstanceConfig].
|
|
1166
|
-
message GetInstanceConfigRequest {
|
|
1167
|
-
// Required. The name of the requested instance configuration. Values are of
|
|
1168
|
-
// the form `projects/<project>/instanceConfigs/<config>`.
|
|
1169
|
-
string name = 1 [
|
|
1170
|
-
(google.api.field_behavior) = REQUIRED,
|
|
1171
|
-
(google.api.resource_reference) = {
|
|
1172
|
-
type: "spanner.googleapis.com/InstanceConfig"
|
|
1173
|
-
}
|
|
1174
|
-
];
|
|
1175
|
-
}
|
|
1176
|
-
|
|
1177
|
-
// The request for
|
|
1178
|
-
// [CreateInstanceConfigRequest][InstanceAdmin.CreateInstanceConfigRequest].
|
|
1179
|
-
message CreateInstanceConfigRequest {
|
|
1180
|
-
// Required. The name of the project in which to create the instance
|
|
1181
|
-
// configuration. Values are of the form `projects/<project>`.
|
|
1182
|
-
string parent = 1 [
|
|
1183
|
-
(google.api.field_behavior) = REQUIRED,
|
|
1184
|
-
(google.api.resource_reference) = {
|
|
1185
|
-
type: "cloudresourcemanager.googleapis.com/Project"
|
|
1186
|
-
}
|
|
1187
|
-
];
|
|
1188
|
-
|
|
1189
|
-
// Required. The ID of the instance configuration to create. Valid identifiers
|
|
1190
|
-
// are of the form `custom-[-a-z0-9]*[a-z0-9]` and must be between 2 and 64
|
|
1191
|
-
// characters in length. The `custom-` prefix is required to avoid name
|
|
1192
|
-
// conflicts with Google-managed configurations.
|
|
1193
|
-
string instance_config_id = 2 [(google.api.field_behavior) = REQUIRED];
|
|
1194
|
-
|
|
1195
|
-
// Required. The InstanceConfig proto of the configuration to create.
|
|
1196
|
-
// instance_config.name must be
|
|
1197
|
-
// `<parent>/instanceConfigs/<instance_config_id>`.
|
|
1198
|
-
// instance_config.base_config must be a Google managed configuration name,
|
|
1199
|
-
// e.g. <parent>/instanceConfigs/us-east1, <parent>/instanceConfigs/nam3.
|
|
1200
|
-
InstanceConfig instance_config = 3 [(google.api.field_behavior) = REQUIRED];
|
|
1201
|
-
|
|
1202
|
-
// An option to validate, but not actually execute, a request,
|
|
1203
|
-
// and provide the same response.
|
|
1204
|
-
bool validate_only = 4;
|
|
1205
|
-
}
|
|
1206
|
-
|
|
1207
|
-
// The request for
|
|
1208
|
-
// [UpdateInstanceConfigRequest][InstanceAdmin.UpdateInstanceConfigRequest].
|
|
1209
|
-
message UpdateInstanceConfigRequest {
|
|
1210
|
-
// Required. The user instance configuration to update, which must always
|
|
1211
|
-
// include the instance configuration name. Otherwise, only fields mentioned
|
|
1212
|
-
// in
|
|
1213
|
-
// [update_mask][google.spanner.admin.instance.v1.UpdateInstanceConfigRequest.update_mask]
|
|
1214
|
-
// need be included. To prevent conflicts of concurrent updates,
|
|
1215
|
-
// [etag][google.spanner.admin.instance.v1.InstanceConfig.reconciling] can
|
|
1216
|
-
// be used.
|
|
1217
|
-
InstanceConfig instance_config = 1 [(google.api.field_behavior) = REQUIRED];
|
|
1218
|
-
|
|
1219
|
-
// Required. A mask specifying which fields in
|
|
1220
|
-
// [InstanceConfig][google.spanner.admin.instance.v1.InstanceConfig] should be
|
|
1221
|
-
// updated. The field mask must always be specified; this prevents any future
|
|
1222
|
-
// fields in [InstanceConfig][google.spanner.admin.instance.v1.InstanceConfig]
|
|
1223
|
-
// from being erased accidentally by clients that do not know about them. Only
|
|
1224
|
-
// display_name and labels can be updated.
|
|
1225
|
-
google.protobuf.FieldMask update_mask = 2
|
|
1226
|
-
[(google.api.field_behavior) = REQUIRED];
|
|
1227
|
-
|
|
1228
|
-
// An option to validate, but not actually execute, a request,
|
|
1229
|
-
// and provide the same response.
|
|
1230
|
-
bool validate_only = 3;
|
|
1231
|
-
}
|
|
1232
|
-
|
|
1233
|
-
// The request for
|
|
1234
|
-
// [DeleteInstanceConfigRequest][InstanceAdmin.DeleteInstanceConfigRequest].
|
|
1235
|
-
message DeleteInstanceConfigRequest {
|
|
1236
|
-
// Required. The name of the instance configuration to be deleted.
|
|
1237
|
-
// Values are of the form
|
|
1238
|
-
// `projects/<project>/instanceConfigs/<instance_config>`
|
|
1239
|
-
string name = 1 [
|
|
1240
|
-
(google.api.field_behavior) = REQUIRED,
|
|
1241
|
-
(google.api.resource_reference) = {
|
|
1242
|
-
type: "spanner.googleapis.com/InstanceConfig"
|
|
1243
|
-
}
|
|
1244
|
-
];
|
|
1245
|
-
|
|
1246
|
-
// Used for optimistic concurrency control as a way to help prevent
|
|
1247
|
-
// simultaneous deletes of an instance configuration from overwriting each
|
|
1248
|
-
// other. If not empty, the API
|
|
1249
|
-
// only deletes the instance configuration when the etag provided matches the
|
|
1250
|
-
// current status of the requested instance configuration. Otherwise, deletes
|
|
1251
|
-
// the instance configuration without checking the current status of the
|
|
1252
|
-
// requested instance configuration.
|
|
1253
|
-
string etag = 2;
|
|
1254
|
-
|
|
1255
|
-
// An option to validate, but not actually execute, a request,
|
|
1256
|
-
// and provide the same response.
|
|
1257
|
-
bool validate_only = 3;
|
|
1258
|
-
}
|
|
1259
|
-
|
|
1260
|
-
// The request for
|
|
1261
|
-
// [ListInstanceConfigOperations][google.spanner.admin.instance.v1.InstanceAdmin.ListInstanceConfigOperations].
|
|
1262
|
-
message ListInstanceConfigOperationsRequest {
|
|
1263
|
-
// Required. The project of the instance configuration operations.
|
|
1264
|
-
// Values are of the form `projects/<project>`.
|
|
1265
|
-
string parent = 1 [
|
|
1266
|
-
(google.api.field_behavior) = REQUIRED,
|
|
1267
|
-
(google.api.resource_reference) = {
|
|
1268
|
-
type: "cloudresourcemanager.googleapis.com/Project"
|
|
1269
|
-
}
|
|
1270
|
-
];
|
|
1271
|
-
|
|
1272
|
-
// An expression that filters the list of returned operations.
|
|
1273
|
-
//
|
|
1274
|
-
// A filter expression consists of a field name, a
|
|
1275
|
-
// comparison operator, and a value for filtering.
|
|
1276
|
-
// The value must be a string, a number, or a boolean. The comparison operator
|
|
1277
|
-
// must be one of: `<`, `>`, `<=`, `>=`, `!=`, `=`, or `:`.
|
|
1278
|
-
// Colon `:` is the contains operator. Filter rules are not case sensitive.
|
|
1279
|
-
//
|
|
1280
|
-
// The following fields in the [Operation][google.longrunning.Operation]
|
|
1281
|
-
// are eligible for filtering:
|
|
1282
|
-
//
|
|
1283
|
-
// * `name` - The name of the long-running operation
|
|
1284
|
-
// * `done` - False if the operation is in progress, else true.
|
|
1285
|
-
// * `metadata.@type` - the type of metadata. For example, the type string
|
|
1286
|
-
// for
|
|
1287
|
-
// [CreateInstanceConfigMetadata][google.spanner.admin.instance.v1.CreateInstanceConfigMetadata]
|
|
1288
|
-
// is
|
|
1289
|
-
// `type.googleapis.com/google.spanner.admin.instance.v1.CreateInstanceConfigMetadata`.
|
|
1290
|
-
// * `metadata.<field_name>` - any field in metadata.value.
|
|
1291
|
-
// `metadata.@type` must be specified first, if filtering on metadata
|
|
1292
|
-
// fields.
|
|
1293
|
-
// * `error` - Error associated with the long-running operation.
|
|
1294
|
-
// * `response.@type` - the type of response.
|
|
1295
|
-
// * `response.<field_name>` - any field in response.value.
|
|
1296
|
-
//
|
|
1297
|
-
// You can combine multiple expressions by enclosing each expression in
|
|
1298
|
-
// parentheses. By default, expressions are combined with AND logic. However,
|
|
1299
|
-
// you can specify AND, OR, and NOT logic explicitly.
|
|
1300
|
-
//
|
|
1301
|
-
// Here are a few examples:
|
|
1302
|
-
//
|
|
1303
|
-
// * `done:true` - The operation is complete.
|
|
1304
|
-
// * `(metadata.@type=` \
|
|
1305
|
-
// `type.googleapis.com/google.spanner.admin.instance.v1.CreateInstanceConfigMetadata)
|
|
1306
|
-
// AND` \
|
|
1307
|
-
// `(metadata.instance_config.name:custom-config) AND` \
|
|
1308
|
-
// `(metadata.progress.start_time < \"2021-03-28T14:50:00Z\") AND` \
|
|
1309
|
-
// `(error:*)` - Return operations where:
|
|
1310
|
-
// * The operation's metadata type is
|
|
1311
|
-
// [CreateInstanceConfigMetadata][google.spanner.admin.instance.v1.CreateInstanceConfigMetadata].
|
|
1312
|
-
// * The instance configuration name contains "custom-config".
|
|
1313
|
-
// * The operation started before 2021-03-28T14:50:00Z.
|
|
1314
|
-
// * The operation resulted in an error.
|
|
1315
|
-
string filter = 2;
|
|
1316
|
-
|
|
1317
|
-
// Number of operations to be returned in the response. If 0 or
|
|
1318
|
-
// less, defaults to the server's maximum allowed page size.
|
|
1319
|
-
int32 page_size = 3;
|
|
1320
|
-
|
|
1321
|
-
// If non-empty, `page_token` should contain a
|
|
1322
|
-
// [next_page_token][google.spanner.admin.instance.v1.ListInstanceConfigOperationsResponse.next_page_token]
|
|
1323
|
-
// from a previous
|
|
1324
|
-
// [ListInstanceConfigOperationsResponse][google.spanner.admin.instance.v1.ListInstanceConfigOperationsResponse]
|
|
1325
|
-
// to the same `parent` and with the same `filter`.
|
|
1326
|
-
string page_token = 4;
|
|
1327
|
-
}
|
|
1328
|
-
|
|
1329
|
-
// The response for
|
|
1330
|
-
// [ListInstanceConfigOperations][google.spanner.admin.instance.v1.InstanceAdmin.ListInstanceConfigOperations].
|
|
1331
|
-
message ListInstanceConfigOperationsResponse {
|
|
1332
|
-
// The list of matching instance configuration [long-running
|
|
1333
|
-
// operations][google.longrunning.Operation]. Each operation's name will be
|
|
1334
|
-
// prefixed by the name of the instance configuration. The operation's
|
|
1335
|
-
// [metadata][google.longrunning.Operation.metadata] field type
|
|
1336
|
-
// `metadata.type_url` describes the type of the metadata.
|
|
1337
|
-
repeated google.longrunning.Operation operations = 1;
|
|
1338
|
-
|
|
1339
|
-
// `next_page_token` can be sent in a subsequent
|
|
1340
|
-
// [ListInstanceConfigOperations][google.spanner.admin.instance.v1.InstanceAdmin.ListInstanceConfigOperations]
|
|
1341
|
-
// call to fetch more of the matching metadata.
|
|
1342
|
-
string next_page_token = 2;
|
|
1343
|
-
}
|
|
1344
|
-
|
|
1345
|
-
// The request for
|
|
1346
|
-
// [GetInstance][google.spanner.admin.instance.v1.InstanceAdmin.GetInstance].
|
|
1347
|
-
message GetInstanceRequest {
|
|
1348
|
-
// Required. The name of the requested instance. Values are of the form
|
|
1349
|
-
// `projects/<project>/instances/<instance>`.
|
|
1350
|
-
string name = 1 [
|
|
1351
|
-
(google.api.field_behavior) = REQUIRED,
|
|
1352
|
-
(google.api.resource_reference) = {
|
|
1353
|
-
type: "spanner.googleapis.com/Instance"
|
|
1354
|
-
}
|
|
1355
|
-
];
|
|
1356
|
-
|
|
1357
|
-
// If field_mask is present, specifies the subset of
|
|
1358
|
-
// [Instance][google.spanner.admin.instance.v1.Instance] fields that should be
|
|
1359
|
-
// returned. If absent, all
|
|
1360
|
-
// [Instance][google.spanner.admin.instance.v1.Instance] fields are returned.
|
|
1361
|
-
google.protobuf.FieldMask field_mask = 2;
|
|
1362
|
-
}
|
|
1363
|
-
|
|
1364
|
-
// The request for
|
|
1365
|
-
// [CreateInstance][google.spanner.admin.instance.v1.InstanceAdmin.CreateInstance].
|
|
1366
|
-
message CreateInstanceRequest {
|
|
1367
|
-
// Required. The name of the project in which to create the instance. Values
|
|
1368
|
-
// are of the form `projects/<project>`.
|
|
1369
|
-
string parent = 1 [
|
|
1370
|
-
(google.api.field_behavior) = REQUIRED,
|
|
1371
|
-
(google.api.resource_reference) = {
|
|
1372
|
-
type: "cloudresourcemanager.googleapis.com/Project"
|
|
1373
|
-
}
|
|
1374
|
-
];
|
|
1375
|
-
|
|
1376
|
-
// Required. The ID of the instance to create. Valid identifiers are of the
|
|
1377
|
-
// form `[a-z][-a-z0-9]*[a-z0-9]` and must be between 2 and 64 characters in
|
|
1378
|
-
// length.
|
|
1379
|
-
string instance_id = 2 [(google.api.field_behavior) = REQUIRED];
|
|
1380
|
-
|
|
1381
|
-
// Required. The instance to create. The name may be omitted, but if
|
|
1382
|
-
// specified must be `<parent>/instances/<instance_id>`.
|
|
1383
|
-
Instance instance = 3 [(google.api.field_behavior) = REQUIRED];
|
|
1384
|
-
}
|
|
1385
|
-
|
|
1386
|
-
// The request for
|
|
1387
|
-
// [ListInstances][google.spanner.admin.instance.v1.InstanceAdmin.ListInstances].
|
|
1388
|
-
message ListInstancesRequest {
|
|
1389
|
-
// Required. The name of the project for which a list of instances is
|
|
1390
|
-
// requested. Values are of the form `projects/<project>`.
|
|
1391
|
-
string parent = 1 [
|
|
1392
|
-
(google.api.field_behavior) = REQUIRED,
|
|
1393
|
-
(google.api.resource_reference) = {
|
|
1394
|
-
type: "cloudresourcemanager.googleapis.com/Project"
|
|
1395
|
-
}
|
|
1396
|
-
];
|
|
1397
|
-
|
|
1398
|
-
// Number of instances to be returned in the response. If 0 or less, defaults
|
|
1399
|
-
// to the server's maximum allowed page size.
|
|
1400
|
-
int32 page_size = 2;
|
|
1401
|
-
|
|
1402
|
-
// If non-empty, `page_token` should contain a
|
|
1403
|
-
// [next_page_token][google.spanner.admin.instance.v1.ListInstancesResponse.next_page_token]
|
|
1404
|
-
// from a previous
|
|
1405
|
-
// [ListInstancesResponse][google.spanner.admin.instance.v1.ListInstancesResponse].
|
|
1406
|
-
string page_token = 3;
|
|
1407
|
-
|
|
1408
|
-
// An expression for filtering the results of the request. Filter rules are
|
|
1409
|
-
// case insensitive. The fields eligible for filtering are:
|
|
1410
|
-
//
|
|
1411
|
-
// * `name`
|
|
1412
|
-
// * `display_name`
|
|
1413
|
-
// * `labels.key` where key is the name of a label
|
|
1414
|
-
//
|
|
1415
|
-
// Some examples of using filters are:
|
|
1416
|
-
//
|
|
1417
|
-
// * `name:*` --> The instance has a name.
|
|
1418
|
-
// * `name:Howl` --> The instance's name contains the string "howl".
|
|
1419
|
-
// * `name:HOWL` --> Equivalent to above.
|
|
1420
|
-
// * `NAME:howl` --> Equivalent to above.
|
|
1421
|
-
// * `labels.env:*` --> The instance has the label "env".
|
|
1422
|
-
// * `labels.env:dev` --> The instance has the label "env" and the value of
|
|
1423
|
-
// the label contains the string "dev".
|
|
1424
|
-
// * `name:howl labels.env:dev` --> The instance's name contains "howl" and
|
|
1425
|
-
// it has the label "env" with its value
|
|
1426
|
-
// containing "dev".
|
|
1427
|
-
string filter = 4;
|
|
1428
|
-
|
|
1429
|
-
// Deadline used while retrieving metadata for instances.
|
|
1430
|
-
// Instances whose metadata cannot be retrieved within this deadline will be
|
|
1431
|
-
// added to
|
|
1432
|
-
// [unreachable][google.spanner.admin.instance.v1.ListInstancesResponse.unreachable]
|
|
1433
|
-
// in
|
|
1434
|
-
// [ListInstancesResponse][google.spanner.admin.instance.v1.ListInstancesResponse].
|
|
1435
|
-
google.protobuf.Timestamp instance_deadline = 5;
|
|
1436
|
-
}
|
|
1437
|
-
|
|
1438
|
-
// The response for
|
|
1439
|
-
// [ListInstances][google.spanner.admin.instance.v1.InstanceAdmin.ListInstances].
|
|
1440
|
-
message ListInstancesResponse {
|
|
1441
|
-
// The list of requested instances.
|
|
1442
|
-
repeated Instance instances = 1;
|
|
1443
|
-
|
|
1444
|
-
// `next_page_token` can be sent in a subsequent
|
|
1445
|
-
// [ListInstances][google.spanner.admin.instance.v1.InstanceAdmin.ListInstances]
|
|
1446
|
-
// call to fetch more of the matching instances.
|
|
1447
|
-
string next_page_token = 2;
|
|
1448
|
-
|
|
1449
|
-
// The list of unreachable instances.
|
|
1450
|
-
// It includes the names of instances whose metadata could not be retrieved
|
|
1451
|
-
// within
|
|
1452
|
-
// [instance_deadline][google.spanner.admin.instance.v1.ListInstancesRequest.instance_deadline].
|
|
1453
|
-
repeated string unreachable = 3;
|
|
1454
|
-
}
|
|
1455
|
-
|
|
1456
|
-
// The request for
|
|
1457
|
-
// [UpdateInstance][google.spanner.admin.instance.v1.InstanceAdmin.UpdateInstance].
|
|
1458
|
-
message UpdateInstanceRequest {
|
|
1459
|
-
// Required. The instance to update, which must always include the instance
|
|
1460
|
-
// name. Otherwise, only fields mentioned in
|
|
1461
|
-
// [field_mask][google.spanner.admin.instance.v1.UpdateInstanceRequest.field_mask]
|
|
1462
|
-
// need be included.
|
|
1463
|
-
Instance instance = 1 [(google.api.field_behavior) = REQUIRED];
|
|
1464
|
-
|
|
1465
|
-
// Required. A mask specifying which fields in
|
|
1466
|
-
// [Instance][google.spanner.admin.instance.v1.Instance] should be updated.
|
|
1467
|
-
// The field mask must always be specified; this prevents any future fields in
|
|
1468
|
-
// [Instance][google.spanner.admin.instance.v1.Instance] from being erased
|
|
1469
|
-
// accidentally by clients that do not know about them.
|
|
1470
|
-
google.protobuf.FieldMask field_mask = 2
|
|
1471
|
-
[(google.api.field_behavior) = REQUIRED];
|
|
1472
|
-
}
|
|
1473
|
-
|
|
1474
|
-
// The request for
|
|
1475
|
-
// [DeleteInstance][google.spanner.admin.instance.v1.InstanceAdmin.DeleteInstance].
|
|
1476
|
-
message DeleteInstanceRequest {
|
|
1477
|
-
// Required. The name of the instance to be deleted. Values are of the form
|
|
1478
|
-
// `projects/<project>/instances/<instance>`
|
|
1479
|
-
string name = 1 [
|
|
1480
|
-
(google.api.field_behavior) = REQUIRED,
|
|
1481
|
-
(google.api.resource_reference) = {
|
|
1482
|
-
type: "spanner.googleapis.com/Instance"
|
|
1483
|
-
}
|
|
1484
|
-
];
|
|
1485
|
-
}
|
|
1486
|
-
|
|
1487
|
-
// Metadata type for the operation returned by
|
|
1488
|
-
// [CreateInstance][google.spanner.admin.instance.v1.InstanceAdmin.CreateInstance].
|
|
1489
|
-
message CreateInstanceMetadata {
|
|
1490
|
-
// The instance being created.
|
|
1491
|
-
Instance instance = 1;
|
|
1492
|
-
|
|
1493
|
-
// The time at which the
|
|
1494
|
-
// [CreateInstance][google.spanner.admin.instance.v1.InstanceAdmin.CreateInstance]
|
|
1495
|
-
// request was received.
|
|
1496
|
-
google.protobuf.Timestamp start_time = 2;
|
|
1497
|
-
|
|
1498
|
-
// The time at which this operation was cancelled. If set, this operation is
|
|
1499
|
-
// in the process of undoing itself (which is guaranteed to succeed) and
|
|
1500
|
-
// cannot be cancelled again.
|
|
1501
|
-
google.protobuf.Timestamp cancel_time = 3;
|
|
1502
|
-
|
|
1503
|
-
// The time at which this operation failed or was completed successfully.
|
|
1504
|
-
google.protobuf.Timestamp end_time = 4;
|
|
1505
|
-
|
|
1506
|
-
// The expected fulfillment period of this create operation.
|
|
1507
|
-
FulfillmentPeriod expected_fulfillment_period = 5;
|
|
1508
|
-
}
|
|
1509
|
-
|
|
1510
|
-
// Metadata type for the operation returned by
|
|
1511
|
-
// [UpdateInstance][google.spanner.admin.instance.v1.InstanceAdmin.UpdateInstance].
|
|
1512
|
-
message UpdateInstanceMetadata {
|
|
1513
|
-
// The desired end state of the update.
|
|
1514
|
-
Instance instance = 1;
|
|
1515
|
-
|
|
1516
|
-
// The time at which
|
|
1517
|
-
// [UpdateInstance][google.spanner.admin.instance.v1.InstanceAdmin.UpdateInstance]
|
|
1518
|
-
// request was received.
|
|
1519
|
-
google.protobuf.Timestamp start_time = 2;
|
|
1520
|
-
|
|
1521
|
-
// The time at which this operation was cancelled. If set, this operation is
|
|
1522
|
-
// in the process of undoing itself (which is guaranteed to succeed) and
|
|
1523
|
-
// cannot be cancelled again.
|
|
1524
|
-
google.protobuf.Timestamp cancel_time = 3;
|
|
1525
|
-
|
|
1526
|
-
// The time at which this operation failed or was completed successfully.
|
|
1527
|
-
google.protobuf.Timestamp end_time = 4;
|
|
1528
|
-
|
|
1529
|
-
// The expected fulfillment period of this update operation.
|
|
1530
|
-
FulfillmentPeriod expected_fulfillment_period = 5;
|
|
1531
|
-
}
|
|
1532
|
-
|
|
1533
|
-
// Metadata type for the operation returned by
|
|
1534
|
-
// [CreateInstanceConfig][google.spanner.admin.instance.v1.InstanceAdmin.CreateInstanceConfig].
|
|
1535
|
-
message CreateInstanceConfigMetadata {
|
|
1536
|
-
// The target instance configuration end state.
|
|
1537
|
-
InstanceConfig instance_config = 1;
|
|
1538
|
-
|
|
1539
|
-
// The progress of the
|
|
1540
|
-
// [CreateInstanceConfig][google.spanner.admin.instance.v1.InstanceAdmin.CreateInstanceConfig]
|
|
1541
|
-
// operation.
|
|
1542
|
-
OperationProgress progress = 2;
|
|
1543
|
-
|
|
1544
|
-
// The time at which this operation was cancelled.
|
|
1545
|
-
google.protobuf.Timestamp cancel_time = 3;
|
|
1546
|
-
}
|
|
1547
|
-
|
|
1548
|
-
// Metadata type for the operation returned by
|
|
1549
|
-
// [UpdateInstanceConfig][google.spanner.admin.instance.v1.InstanceAdmin.UpdateInstanceConfig].
|
|
1550
|
-
message UpdateInstanceConfigMetadata {
|
|
1551
|
-
// The desired instance configuration after updating.
|
|
1552
|
-
InstanceConfig instance_config = 1;
|
|
1553
|
-
|
|
1554
|
-
// The progress of the
|
|
1555
|
-
// [UpdateInstanceConfig][google.spanner.admin.instance.v1.InstanceAdmin.UpdateInstanceConfig]
|
|
1556
|
-
// operation.
|
|
1557
|
-
OperationProgress progress = 2;
|
|
1558
|
-
|
|
1559
|
-
// The time at which this operation was cancelled.
|
|
1560
|
-
google.protobuf.Timestamp cancel_time = 3;
|
|
1561
|
-
}
|
|
1562
|
-
|
|
1563
|
-
// An isolated set of Cloud Spanner resources that databases can define
|
|
1564
|
-
// placements on.
|
|
1565
|
-
message InstancePartition {
|
|
1566
|
-
option (google.api.resource) = {
|
|
1567
|
-
type: "spanner.googleapis.com/InstancePartition"
|
|
1568
|
-
pattern: "projects/{project}/instances/{instance}/instancePartitions/{instance_partition}"
|
|
1569
|
-
};
|
|
1570
|
-
|
|
1571
|
-
// Indicates the current state of the instance partition.
|
|
1572
|
-
enum State {
|
|
1573
|
-
// Not specified.
|
|
1574
|
-
STATE_UNSPECIFIED = 0;
|
|
1575
|
-
|
|
1576
|
-
// The instance partition is still being created. Resources may not be
|
|
1577
|
-
// available yet, and operations such as creating placements using this
|
|
1578
|
-
// instance partition may not work.
|
|
1579
|
-
CREATING = 1;
|
|
1580
|
-
|
|
1581
|
-
// The instance partition is fully created and ready to do work such as
|
|
1582
|
-
// creating placements and using in databases.
|
|
1583
|
-
READY = 2;
|
|
1584
|
-
}
|
|
1585
|
-
|
|
1586
|
-
// Required. A unique identifier for the instance partition. Values are of the
|
|
1587
|
-
// form
|
|
1588
|
-
// `projects/<project>/instances/<instance>/instancePartitions/[a-z][-a-z0-9]*[a-z0-9]`.
|
|
1589
|
-
// The final segment of the name must be between 2 and 64 characters in
|
|
1590
|
-
// length. An instance partition's name cannot be changed after the instance
|
|
1591
|
-
// partition is created.
|
|
1592
|
-
string name = 1 [(google.api.field_behavior) = REQUIRED];
|
|
1593
|
-
|
|
1594
|
-
// Required. The name of the instance partition's configuration. Values are of
|
|
1595
|
-
// the form `projects/<project>/instanceConfigs/<configuration>`. See also
|
|
1596
|
-
// [InstanceConfig][google.spanner.admin.instance.v1.InstanceConfig] and
|
|
1597
|
-
// [ListInstanceConfigs][google.spanner.admin.instance.v1.InstanceAdmin.ListInstanceConfigs].
|
|
1598
|
-
string config = 2 [
|
|
1599
|
-
(google.api.field_behavior) = REQUIRED,
|
|
1600
|
-
(google.api.resource_reference) = {
|
|
1601
|
-
type: "spanner.googleapis.com/InstanceConfig"
|
|
1602
|
-
}
|
|
1603
|
-
];
|
|
1604
|
-
|
|
1605
|
-
// Required. The descriptive name for this instance partition as it appears in
|
|
1606
|
-
// UIs. Must be unique per project and between 4 and 30 characters in length.
|
|
1607
|
-
string display_name = 3 [(google.api.field_behavior) = REQUIRED];
|
|
1608
|
-
|
|
1609
|
-
// Compute capacity defines amount of server and storage resources that are
|
|
1610
|
-
// available to the databases in an instance partition. At most one of either
|
|
1611
|
-
// node_count or processing_units should be present in the message. See [the
|
|
1612
|
-
// documentation](https://cloud.google.com/spanner/docs/compute-capacity)
|
|
1613
|
-
// for more information about nodes and processing units.
|
|
1614
|
-
oneof compute_capacity {
|
|
1615
|
-
// The number of nodes allocated to this instance partition.
|
|
1616
|
-
//
|
|
1617
|
-
// Users can set the node_count field to specify the target number of nodes
|
|
1618
|
-
// allocated to the instance partition.
|
|
1619
|
-
//
|
|
1620
|
-
// This may be zero in API responses for instance partitions that are not
|
|
1621
|
-
// yet in state `READY`.
|
|
1622
|
-
int32 node_count = 5;
|
|
1623
|
-
|
|
1624
|
-
// The number of processing units allocated to this instance partition.
|
|
1625
|
-
//
|
|
1626
|
-
// Users can set the processing_units field to specify the target number of
|
|
1627
|
-
// processing units allocated to the instance partition.
|
|
1628
|
-
//
|
|
1629
|
-
// This may be zero in API responses for instance partitions that are not
|
|
1630
|
-
// yet in state `READY`.
|
|
1631
|
-
int32 processing_units = 6;
|
|
1632
|
-
}
|
|
1633
|
-
|
|
1634
|
-
// Output only. The current instance partition state.
|
|
1635
|
-
State state = 7 [(google.api.field_behavior) = OUTPUT_ONLY];
|
|
1636
|
-
|
|
1637
|
-
// Output only. The time at which the instance partition was created.
|
|
1638
|
-
google.protobuf.Timestamp create_time = 8
|
|
1639
|
-
[(google.api.field_behavior) = OUTPUT_ONLY];
|
|
1640
|
-
|
|
1641
|
-
// Output only. The time at which the instance partition was most recently
|
|
1642
|
-
// updated.
|
|
1643
|
-
google.protobuf.Timestamp update_time = 9
|
|
1644
|
-
[(google.api.field_behavior) = OUTPUT_ONLY];
|
|
1645
|
-
|
|
1646
|
-
// Output only. The names of the databases that reference this
|
|
1647
|
-
// instance partition. Referencing databases should share the parent instance.
|
|
1648
|
-
// The existence of any referencing database prevents the instance partition
|
|
1649
|
-
// from being deleted.
|
|
1650
|
-
repeated string referencing_databases = 10
|
|
1651
|
-
[(google.api.field_behavior) = OUTPUT_ONLY];
|
|
1652
|
-
|
|
1653
|
-
// Output only. The names of the backups that reference this instance
|
|
1654
|
-
// partition. Referencing backups should share the parent instance. The
|
|
1655
|
-
// existence of any referencing backup prevents the instance partition from
|
|
1656
|
-
// being deleted.
|
|
1657
|
-
repeated string referencing_backups = 11
|
|
1658
|
-
[(google.api.field_behavior) = OUTPUT_ONLY];
|
|
1659
|
-
|
|
1660
|
-
// Used for optimistic concurrency control as a way
|
|
1661
|
-
// to help prevent simultaneous updates of a instance partition from
|
|
1662
|
-
// overwriting each other. It is strongly suggested that systems make use of
|
|
1663
|
-
// the etag in the read-modify-write cycle to perform instance partition
|
|
1664
|
-
// updates in order to avoid race conditions: An etag is returned in the
|
|
1665
|
-
// response which contains instance partitions, and systems are expected to
|
|
1666
|
-
// put that etag in the request to update instance partitions to ensure that
|
|
1667
|
-
// their change will be applied to the same version of the instance partition.
|
|
1668
|
-
// If no etag is provided in the call to update instance partition, then the
|
|
1669
|
-
// existing instance partition is overwritten blindly.
|
|
1670
|
-
string etag = 12;
|
|
1671
|
-
}
|
|
1672
|
-
|
|
1673
|
-
// Metadata type for the operation returned by
|
|
1674
|
-
// [CreateInstancePartition][google.spanner.admin.instance.v1.InstanceAdmin.CreateInstancePartition].
|
|
1675
|
-
message CreateInstancePartitionMetadata {
|
|
1676
|
-
// The instance partition being created.
|
|
1677
|
-
InstancePartition instance_partition = 1;
|
|
1678
|
-
|
|
1679
|
-
// The time at which the
|
|
1680
|
-
// [CreateInstancePartition][google.spanner.admin.instance.v1.InstanceAdmin.CreateInstancePartition]
|
|
1681
|
-
// request was received.
|
|
1682
|
-
google.protobuf.Timestamp start_time = 2;
|
|
1683
|
-
|
|
1684
|
-
// The time at which this operation was cancelled. If set, this operation is
|
|
1685
|
-
// in the process of undoing itself (which is guaranteed to succeed) and
|
|
1686
|
-
// cannot be cancelled again.
|
|
1687
|
-
google.protobuf.Timestamp cancel_time = 3;
|
|
1688
|
-
|
|
1689
|
-
// The time at which this operation failed or was completed successfully.
|
|
1690
|
-
google.protobuf.Timestamp end_time = 4;
|
|
1691
|
-
}
|
|
1692
|
-
|
|
1693
|
-
// The request for
|
|
1694
|
-
// [CreateInstancePartition][google.spanner.admin.instance.v1.InstanceAdmin.CreateInstancePartition].
|
|
1695
|
-
message CreateInstancePartitionRequest {
|
|
1696
|
-
// Required. The name of the instance in which to create the instance
|
|
1697
|
-
// partition. Values are of the form
|
|
1698
|
-
// `projects/<project>/instances/<instance>`.
|
|
1699
|
-
string parent = 1 [
|
|
1700
|
-
(google.api.field_behavior) = REQUIRED,
|
|
1701
|
-
(google.api.resource_reference) = {
|
|
1702
|
-
type: "spanner.googleapis.com/Instance"
|
|
1703
|
-
}
|
|
1704
|
-
];
|
|
1705
|
-
|
|
1706
|
-
// Required. The ID of the instance partition to create. Valid identifiers are
|
|
1707
|
-
// of the form `[a-z][-a-z0-9]*[a-z0-9]` and must be between 2 and 64
|
|
1708
|
-
// characters in length.
|
|
1709
|
-
string instance_partition_id = 2 [(google.api.field_behavior) = REQUIRED];
|
|
1710
|
-
|
|
1711
|
-
// Required. The instance partition to create. The instance_partition.name may
|
|
1712
|
-
// be omitted, but if specified must be
|
|
1713
|
-
// `<parent>/instancePartitions/<instance_partition_id>`.
|
|
1714
|
-
InstancePartition instance_partition = 3
|
|
1715
|
-
[(google.api.field_behavior) = REQUIRED];
|
|
1716
|
-
}
|
|
1717
|
-
|
|
1718
|
-
// The request for
|
|
1719
|
-
// [DeleteInstancePartition][google.spanner.admin.instance.v1.InstanceAdmin.DeleteInstancePartition].
|
|
1720
|
-
message DeleteInstancePartitionRequest {
|
|
1721
|
-
// Required. The name of the instance partition to be deleted.
|
|
1722
|
-
// Values are of the form
|
|
1723
|
-
// `projects/{project}/instances/{instance}/instancePartitions/{instance_partition}`
|
|
1724
|
-
string name = 1 [
|
|
1725
|
-
(google.api.field_behavior) = REQUIRED,
|
|
1726
|
-
(google.api.resource_reference) = {
|
|
1727
|
-
type: "spanner.googleapis.com/InstancePartition"
|
|
1728
|
-
}
|
|
1729
|
-
];
|
|
1730
|
-
|
|
1731
|
-
// Optional. If not empty, the API only deletes the instance partition when
|
|
1732
|
-
// the etag provided matches the current status of the requested instance
|
|
1733
|
-
// partition. Otherwise, deletes the instance partition without checking the
|
|
1734
|
-
// current status of the requested instance partition.
|
|
1735
|
-
string etag = 2;
|
|
1736
|
-
}
|
|
1737
|
-
|
|
1738
|
-
// The request for
|
|
1739
|
-
// [GetInstancePartition][google.spanner.admin.instance.v1.InstanceAdmin.GetInstancePartition].
|
|
1740
|
-
message GetInstancePartitionRequest {
|
|
1741
|
-
// Required. The name of the requested instance partition. Values are of
|
|
1742
|
-
// the form
|
|
1743
|
-
// `projects/{project}/instances/{instance}/instancePartitions/{instance_partition}`.
|
|
1744
|
-
string name = 1 [
|
|
1745
|
-
(google.api.field_behavior) = REQUIRED,
|
|
1746
|
-
(google.api.resource_reference) = {
|
|
1747
|
-
type: "spanner.googleapis.com/InstancePartition"
|
|
1748
|
-
}
|
|
1749
|
-
];
|
|
1750
|
-
}
|
|
1751
|
-
|
|
1752
|
-
// The request for
|
|
1753
|
-
// [UpdateInstancePartition][google.spanner.admin.instance.v1.InstanceAdmin.UpdateInstancePartition].
|
|
1754
|
-
message UpdateInstancePartitionRequest {
|
|
1755
|
-
// Required. The instance partition to update, which must always include the
|
|
1756
|
-
// instance partition name. Otherwise, only fields mentioned in
|
|
1757
|
-
// [field_mask][google.spanner.admin.instance.v1.UpdateInstancePartitionRequest.field_mask]
|
|
1758
|
-
// need be included.
|
|
1759
|
-
InstancePartition instance_partition = 1
|
|
1760
|
-
[(google.api.field_behavior) = REQUIRED];
|
|
1761
|
-
|
|
1762
|
-
// Required. A mask specifying which fields in
|
|
1763
|
-
// [InstancePartition][google.spanner.admin.instance.v1.InstancePartition]
|
|
1764
|
-
// should be updated. The field mask must always be specified; this prevents
|
|
1765
|
-
// any future fields in
|
|
1766
|
-
// [InstancePartition][google.spanner.admin.instance.v1.InstancePartition]
|
|
1767
|
-
// from being erased accidentally by clients that do not know about them.
|
|
1768
|
-
google.protobuf.FieldMask field_mask = 2
|
|
1769
|
-
[(google.api.field_behavior) = REQUIRED];
|
|
1770
|
-
}
|
|
1771
|
-
|
|
1772
|
-
// Metadata type for the operation returned by
|
|
1773
|
-
// [UpdateInstancePartition][google.spanner.admin.instance.v1.InstanceAdmin.UpdateInstancePartition].
|
|
1774
|
-
message UpdateInstancePartitionMetadata {
|
|
1775
|
-
// The desired end state of the update.
|
|
1776
|
-
InstancePartition instance_partition = 1;
|
|
1777
|
-
|
|
1778
|
-
// The time at which
|
|
1779
|
-
// [UpdateInstancePartition][google.spanner.admin.instance.v1.InstanceAdmin.UpdateInstancePartition]
|
|
1780
|
-
// request was received.
|
|
1781
|
-
google.protobuf.Timestamp start_time = 2;
|
|
1782
|
-
|
|
1783
|
-
// The time at which this operation was cancelled. If set, this operation is
|
|
1784
|
-
// in the process of undoing itself (which is guaranteed to succeed) and
|
|
1785
|
-
// cannot be cancelled again.
|
|
1786
|
-
google.protobuf.Timestamp cancel_time = 3;
|
|
1787
|
-
|
|
1788
|
-
// The time at which this operation failed or was completed successfully.
|
|
1789
|
-
google.protobuf.Timestamp end_time = 4;
|
|
1790
|
-
}
|
|
1791
|
-
|
|
1792
|
-
// The request for
|
|
1793
|
-
// [ListInstancePartitions][google.spanner.admin.instance.v1.InstanceAdmin.ListInstancePartitions].
|
|
1794
|
-
message ListInstancePartitionsRequest {
|
|
1795
|
-
// Required. The instance whose instance partitions should be listed. Values
|
|
1796
|
-
// are of the form `projects/<project>/instances/<instance>`.
|
|
1797
|
-
string parent = 1 [
|
|
1798
|
-
(google.api.field_behavior) = REQUIRED,
|
|
1799
|
-
(google.api.resource_reference) = {
|
|
1800
|
-
type: "spanner.googleapis.com/Instance"
|
|
1801
|
-
}
|
|
1802
|
-
];
|
|
1803
|
-
|
|
1804
|
-
// Number of instance partitions to be returned in the response. If 0 or less,
|
|
1805
|
-
// defaults to the server's maximum allowed page size.
|
|
1806
|
-
int32 page_size = 2;
|
|
1807
|
-
|
|
1808
|
-
// If non-empty, `page_token` should contain a
|
|
1809
|
-
// [next_page_token][google.spanner.admin.instance.v1.ListInstancePartitionsResponse.next_page_token]
|
|
1810
|
-
// from a previous
|
|
1811
|
-
// [ListInstancePartitionsResponse][google.spanner.admin.instance.v1.ListInstancePartitionsResponse].
|
|
1812
|
-
string page_token = 3;
|
|
1813
|
-
|
|
1814
|
-
// Optional. Deadline used while retrieving metadata for instance partitions.
|
|
1815
|
-
// Instance partitions whose metadata cannot be retrieved within this deadline
|
|
1816
|
-
// will be added to
|
|
1817
|
-
// [unreachable][google.spanner.admin.instance.v1.ListInstancePartitionsResponse.unreachable]
|
|
1818
|
-
// in
|
|
1819
|
-
// [ListInstancePartitionsResponse][google.spanner.admin.instance.v1.ListInstancePartitionsResponse].
|
|
1820
|
-
google.protobuf.Timestamp instance_partition_deadline = 4
|
|
1821
|
-
[(google.api.field_behavior) = OPTIONAL];
|
|
1822
|
-
}
|
|
1823
|
-
|
|
1824
|
-
// The response for
|
|
1825
|
-
// [ListInstancePartitions][google.spanner.admin.instance.v1.InstanceAdmin.ListInstancePartitions].
|
|
1826
|
-
message ListInstancePartitionsResponse {
|
|
1827
|
-
// The list of requested instancePartitions.
|
|
1828
|
-
repeated InstancePartition instance_partitions = 1;
|
|
1829
|
-
|
|
1830
|
-
// `next_page_token` can be sent in a subsequent
|
|
1831
|
-
// [ListInstancePartitions][google.spanner.admin.instance.v1.InstanceAdmin.ListInstancePartitions]
|
|
1832
|
-
// call to fetch more of the matching instance partitions.
|
|
1833
|
-
string next_page_token = 2;
|
|
1834
|
-
|
|
1835
|
-
// The list of unreachable instance partitions.
|
|
1836
|
-
// It includes the names of instance partitions whose metadata could
|
|
1837
|
-
// not be retrieved within
|
|
1838
|
-
// [instance_partition_deadline][google.spanner.admin.instance.v1.ListInstancePartitionsRequest.instance_partition_deadline].
|
|
1839
|
-
repeated string unreachable = 3;
|
|
1840
|
-
}
|
|
1841
|
-
|
|
1842
|
-
// The request for
|
|
1843
|
-
// [ListInstancePartitionOperations][google.spanner.admin.instance.v1.InstanceAdmin.ListInstancePartitionOperations].
|
|
1844
|
-
message ListInstancePartitionOperationsRequest {
|
|
1845
|
-
// Required. The parent instance of the instance partition operations.
|
|
1846
|
-
// Values are of the form `projects/<project>/instances/<instance>`.
|
|
1847
|
-
string parent = 1 [
|
|
1848
|
-
(google.api.field_behavior) = REQUIRED,
|
|
1849
|
-
(google.api.resource_reference) = {
|
|
1850
|
-
type: "spanner.googleapis.com/Instance"
|
|
1851
|
-
}
|
|
1852
|
-
];
|
|
1853
|
-
|
|
1854
|
-
// Optional. An expression that filters the list of returned operations.
|
|
1855
|
-
//
|
|
1856
|
-
// A filter expression consists of a field name, a
|
|
1857
|
-
// comparison operator, and a value for filtering.
|
|
1858
|
-
// The value must be a string, a number, or a boolean. The comparison operator
|
|
1859
|
-
// must be one of: `<`, `>`, `<=`, `>=`, `!=`, `=`, or `:`.
|
|
1860
|
-
// Colon `:` is the contains operator. Filter rules are not case sensitive.
|
|
1861
|
-
//
|
|
1862
|
-
// The following fields in the [Operation][google.longrunning.Operation]
|
|
1863
|
-
// are eligible for filtering:
|
|
1864
|
-
//
|
|
1865
|
-
// * `name` - The name of the long-running operation
|
|
1866
|
-
// * `done` - False if the operation is in progress, else true.
|
|
1867
|
-
// * `metadata.@type` - the type of metadata. For example, the type string
|
|
1868
|
-
// for
|
|
1869
|
-
// [CreateInstancePartitionMetadata][google.spanner.admin.instance.v1.CreateInstancePartitionMetadata]
|
|
1870
|
-
// is
|
|
1871
|
-
// `type.googleapis.com/google.spanner.admin.instance.v1.CreateInstancePartitionMetadata`.
|
|
1872
|
-
// * `metadata.<field_name>` - any field in metadata.value.
|
|
1873
|
-
// `metadata.@type` must be specified first, if filtering on metadata
|
|
1874
|
-
// fields.
|
|
1875
|
-
// * `error` - Error associated with the long-running operation.
|
|
1876
|
-
// * `response.@type` - the type of response.
|
|
1877
|
-
// * `response.<field_name>` - any field in response.value.
|
|
1878
|
-
//
|
|
1879
|
-
// You can combine multiple expressions by enclosing each expression in
|
|
1880
|
-
// parentheses. By default, expressions are combined with AND logic. However,
|
|
1881
|
-
// you can specify AND, OR, and NOT logic explicitly.
|
|
1882
|
-
//
|
|
1883
|
-
// Here are a few examples:
|
|
1884
|
-
//
|
|
1885
|
-
// * `done:true` - The operation is complete.
|
|
1886
|
-
// * `(metadata.@type=` \
|
|
1887
|
-
// `type.googleapis.com/google.spanner.admin.instance.v1.CreateInstancePartitionMetadata)
|
|
1888
|
-
// AND` \
|
|
1889
|
-
// `(metadata.instance_partition.name:custom-instance-partition) AND` \
|
|
1890
|
-
// `(metadata.start_time < \"2021-03-28T14:50:00Z\") AND` \
|
|
1891
|
-
// `(error:*)` - Return operations where:
|
|
1892
|
-
// * The operation's metadata type is
|
|
1893
|
-
// [CreateInstancePartitionMetadata][google.spanner.admin.instance.v1.CreateInstancePartitionMetadata].
|
|
1894
|
-
// * The instance partition name contains "custom-instance-partition".
|
|
1895
|
-
// * The operation started before 2021-03-28T14:50:00Z.
|
|
1896
|
-
// * The operation resulted in an error.
|
|
1897
|
-
string filter = 2 [(google.api.field_behavior) = OPTIONAL];
|
|
1898
|
-
|
|
1899
|
-
// Optional. Number of operations to be returned in the response. If 0 or
|
|
1900
|
-
// less, defaults to the server's maximum allowed page size.
|
|
1901
|
-
int32 page_size = 3 [(google.api.field_behavior) = OPTIONAL];
|
|
1902
|
-
|
|
1903
|
-
// Optional. If non-empty, `page_token` should contain a
|
|
1904
|
-
// [next_page_token][google.spanner.admin.instance.v1.ListInstancePartitionOperationsResponse.next_page_token]
|
|
1905
|
-
// from a previous
|
|
1906
|
-
// [ListInstancePartitionOperationsResponse][google.spanner.admin.instance.v1.ListInstancePartitionOperationsResponse]
|
|
1907
|
-
// to the same `parent` and with the same `filter`.
|
|
1908
|
-
string page_token = 4 [(google.api.field_behavior) = OPTIONAL];
|
|
1909
|
-
|
|
1910
|
-
// Optional. Deadline used while retrieving metadata for instance partition
|
|
1911
|
-
// operations. Instance partitions whose operation metadata cannot be
|
|
1912
|
-
// retrieved within this deadline will be added to
|
|
1913
|
-
// [unreachable][ListInstancePartitionOperationsResponse.unreachable] in
|
|
1914
|
-
// [ListInstancePartitionOperationsResponse][google.spanner.admin.instance.v1.ListInstancePartitionOperationsResponse].
|
|
1915
|
-
google.protobuf.Timestamp instance_partition_deadline = 5
|
|
1916
|
-
[(google.api.field_behavior) = OPTIONAL];
|
|
1917
|
-
}
|
|
1918
|
-
|
|
1919
|
-
// The response for
|
|
1920
|
-
// [ListInstancePartitionOperations][google.spanner.admin.instance.v1.InstanceAdmin.ListInstancePartitionOperations].
|
|
1921
|
-
message ListInstancePartitionOperationsResponse {
|
|
1922
|
-
// The list of matching instance partition [long-running
|
|
1923
|
-
// operations][google.longrunning.Operation]. Each operation's name will be
|
|
1924
|
-
// prefixed by the instance partition's name. The operation's
|
|
1925
|
-
// [metadata][google.longrunning.Operation.metadata] field type
|
|
1926
|
-
// `metadata.type_url` describes the type of the metadata.
|
|
1927
|
-
repeated google.longrunning.Operation operations = 1;
|
|
1928
|
-
|
|
1929
|
-
// `next_page_token` can be sent in a subsequent
|
|
1930
|
-
// [ListInstancePartitionOperations][google.spanner.admin.instance.v1.InstanceAdmin.ListInstancePartitionOperations]
|
|
1931
|
-
// call to fetch more of the matching metadata.
|
|
1932
|
-
string next_page_token = 2;
|
|
1933
|
-
|
|
1934
|
-
// The list of unreachable instance partitions.
|
|
1935
|
-
// It includes the names of instance partitions whose operation metadata could
|
|
1936
|
-
// not be retrieved within
|
|
1937
|
-
// [instance_partition_deadline][google.spanner.admin.instance.v1.ListInstancePartitionOperationsRequest.instance_partition_deadline].
|
|
1938
|
-
repeated string unreachable_instance_partitions = 3;
|
|
1939
|
-
}
|
|
1940
|
-
|
|
1941
|
-
// The request for
|
|
1942
|
-
// [MoveInstance][google.spanner.admin.instance.v1.InstanceAdmin.MoveInstance].
|
|
1943
|
-
message MoveInstanceRequest {
|
|
1944
|
-
// Required. The instance to move.
|
|
1945
|
-
// Values are of the form `projects/<project>/instances/<instance>`.
|
|
1946
|
-
string name = 1 [
|
|
1947
|
-
(google.api.field_behavior) = REQUIRED,
|
|
1948
|
-
(google.api.resource_reference) = {
|
|
1949
|
-
type: "spanner.googleapis.com/Instance"
|
|
1950
|
-
}
|
|
1951
|
-
];
|
|
1952
|
-
|
|
1953
|
-
// Required. The target instance configuration where to move the instance.
|
|
1954
|
-
// Values are of the form `projects/<project>/instanceConfigs/<config>`.
|
|
1955
|
-
string target_config = 2 [
|
|
1956
|
-
(google.api.field_behavior) = REQUIRED,
|
|
1957
|
-
(google.api.resource_reference) = {
|
|
1958
|
-
type: "spanner.googleapis.com/InstanceConfig"
|
|
1959
|
-
}
|
|
1960
|
-
];
|
|
1961
|
-
}
|
|
1962
|
-
|
|
1963
|
-
// The response for
|
|
1964
|
-
// [MoveInstance][google.spanner.admin.instance.v1.InstanceAdmin.MoveInstance].
|
|
1965
|
-
message MoveInstanceResponse {}
|
|
1966
|
-
|
|
1967
|
-
// Metadata type for the operation returned by
|
|
1968
|
-
// [MoveInstance][google.spanner.admin.instance.v1.InstanceAdmin.MoveInstance].
|
|
1969
|
-
message MoveInstanceMetadata {
|
|
1970
|
-
// The target instance configuration where to move the instance.
|
|
1971
|
-
// Values are of the form `projects/<project>/instanceConfigs/<config>`.
|
|
1972
|
-
string target_config = 1;
|
|
1973
|
-
|
|
1974
|
-
// The progress of the
|
|
1975
|
-
// [MoveInstance][google.spanner.admin.instance.v1.InstanceAdmin.MoveInstance]
|
|
1976
|
-
// operation.
|
|
1977
|
-
// [progress_percent][google.spanner.admin.instance.v1.OperationProgress.progress_percent]
|
|
1978
|
-
// is reset when cancellation is requested.
|
|
1979
|
-
OperationProgress progress = 2;
|
|
1980
|
-
|
|
1981
|
-
// The time at which this operation was cancelled.
|
|
1982
|
-
google.protobuf.Timestamp cancel_time = 3;
|
|
1983
|
-
}
|