@google-cloud/spanner 6.9.0 → 6.10.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 +13 -0
- package/README.md +1 -0
- package/build/protos/google/spanner/admin/database/v1/spanner_database_admin.proto +90 -1
- package/build/protos/protos.d.ts +245 -0
- package/build/protos/protos.js +581 -0
- package/build/protos/protos.json +73 -0
- package/build/src/common-grpc/service.js +4 -0
- package/build/src/database.d.ts +66 -0
- package/build/src/database.js +21 -0
- package/build/src/index.d.ts +2 -2
- package/build/src/session-pool.d.ts +3 -3
- package/build/src/v1/database_admin_client.d.ts +79 -0
- package/build/src/v1/database_admin_client.js +43 -0
- package/build/src/v1/database_admin_client_config.json +5 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -4,6 +4,19 @@
|
|
|
4
4
|
|
|
5
5
|
[1]: https://www.npmjs.com/package/nodejs-spanner?activeTab=versions
|
|
6
6
|
|
|
7
|
+
## [6.10.0](https://github.com/googleapis/nodejs-spanner/compare/v6.9.0...v6.10.0) (2023-05-17)
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
### Features
|
|
11
|
+
|
|
12
|
+
* Add support for UpdateDatabase ([#1802](https://github.com/googleapis/nodejs-spanner/issues/1802)) ([f4fbe71](https://github.com/googleapis/nodejs-spanner/commit/f4fbe71d819fde9a237f25b03af228b27cf58689))
|
|
13
|
+
* Add support for UpdateDatabase in Cloud Spanner ([#1848](https://github.com/googleapis/nodejs-spanner/issues/1848)) ([dd9d505](https://github.com/googleapis/nodejs-spanner/commit/dd9d505e1480b9f45f0f4a09b0abca8282d5fceb))
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
### Bug Fixes
|
|
17
|
+
|
|
18
|
+
* Set grpc useragent ([#1847](https://github.com/googleapis/nodejs-spanner/issues/1847)) ([021e54e](https://github.com/googleapis/nodejs-spanner/commit/021e54ef469d7d95bae64c687b65489cbfc56cfa))
|
|
19
|
+
|
|
7
20
|
## [6.9.0](https://github.com/googleapis/nodejs-spanner/compare/v6.8.0...v6.9.0) (2023-04-26)
|
|
8
21
|
|
|
9
22
|
|
package/README.md
CHANGED
|
@@ -110,6 +110,7 @@ Samples are in the [`samples/`](https://github.com/googleapis/nodejs-spanner/tre
|
|
|
110
110
|
| Gets the schema definition of an existing database | [source code](https://github.com/googleapis/nodejs-spanner/blob/main/samples/database-get-ddl.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-spanner&page=editor&open_in_editor=samples/database-get-ddl.js,samples/README.md) |
|
|
111
111
|
| Gets the default leader option of an existing database | [source code](https://github.com/googleapis/nodejs-spanner/blob/main/samples/database-get-default-leader.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-spanner&page=editor&open_in_editor=samples/database-get-default-leader.js,samples/README.md) |
|
|
112
112
|
| Updates the default leader of an existing database | [source code](https://github.com/googleapis/nodejs-spanner/blob/main/samples/database-update-default-leader.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-spanner&page=editor&open_in_editor=samples/database-update-default-leader.js,samples/README.md) |
|
|
113
|
+
| Updates a Cloud Spanner Database. | [source code](https://github.com/googleapis/nodejs-spanner/blob/main/samples/database-update.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-spanner&page=editor&open_in_editor=samples/database-update.js,samples/README.md) |
|
|
113
114
|
| Datatypes | [source code](https://github.com/googleapis/nodejs-spanner/blob/main/samples/datatypes.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-spanner&page=editor&open_in_editor=samples/datatypes.js,samples/README.md) |
|
|
114
115
|
| Delete using DML returning. | [source code](https://github.com/googleapis/nodejs-spanner/blob/main/samples/dml-returning-delete.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-spanner&page=editor&open_in_editor=samples/dml-returning-delete.js,samples/README.md) |
|
|
115
116
|
| Insert using DML returning. | [source code](https://github.com/googleapis/nodejs-spanner/blob/main/samples/dml-returning-insert.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-spanner&page=editor&open_in_editor=samples/dml-returning-insert.js,samples/README.md) |
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Copyright
|
|
1
|
+
// Copyright 2023 Google LLC
|
|
2
2
|
//
|
|
3
3
|
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
4
4
|
// you may not use this file except in compliance with the License.
|
|
@@ -24,6 +24,7 @@ import "google/iam/v1/iam_policy.proto";
|
|
|
24
24
|
import "google/iam/v1/policy.proto";
|
|
25
25
|
import "google/longrunning/operations.proto";
|
|
26
26
|
import "google/protobuf/empty.proto";
|
|
27
|
+
import "google/protobuf/field_mask.proto";
|
|
27
28
|
import "google/protobuf/timestamp.proto";
|
|
28
29
|
import "google/spanner/admin/database/v1/backup.proto";
|
|
29
30
|
import "google/spanner/admin/database/v1/common.proto";
|
|
@@ -89,6 +90,55 @@ service DatabaseAdmin {
|
|
|
89
90
|
option (google.api.method_signature) = "name";
|
|
90
91
|
}
|
|
91
92
|
|
|
93
|
+
// Updates a Cloud Spanner database. The returned
|
|
94
|
+
// [long-running operation][google.longrunning.Operation] can be used to track
|
|
95
|
+
// the progress of updating the database. If the named database does not
|
|
96
|
+
// exist, returns `NOT_FOUND`.
|
|
97
|
+
//
|
|
98
|
+
// While the operation is pending:
|
|
99
|
+
//
|
|
100
|
+
// * The database's
|
|
101
|
+
// [reconciling][google.spanner.admin.database.v1.Database.reconciling]
|
|
102
|
+
// field is set to true.
|
|
103
|
+
// * Cancelling the operation is best-effort. If the cancellation succeeds,
|
|
104
|
+
// the operation metadata's
|
|
105
|
+
// [cancel_time][google.spanner.admin.database.v1.UpdateDatabaseMetadata.cancel_time]
|
|
106
|
+
// is set, the updates are reverted, and the operation terminates with a
|
|
107
|
+
// `CANCELLED` status.
|
|
108
|
+
// * New UpdateDatabase requests will return a `FAILED_PRECONDITION` error
|
|
109
|
+
// until the pending operation is done (returns successfully or with
|
|
110
|
+
// error).
|
|
111
|
+
// * Reading the database via the API continues to give the pre-request
|
|
112
|
+
// values.
|
|
113
|
+
//
|
|
114
|
+
// Upon completion of the returned operation:
|
|
115
|
+
//
|
|
116
|
+
// * The new values are in effect and readable via the API.
|
|
117
|
+
// * The database's
|
|
118
|
+
// [reconciling][google.spanner.admin.database.v1.Database.reconciling]
|
|
119
|
+
// field becomes false.
|
|
120
|
+
//
|
|
121
|
+
// The returned [long-running operation][google.longrunning.Operation] will
|
|
122
|
+
// have a name of the format
|
|
123
|
+
// `projects/<project>/instances/<instance>/databases/<database>/operations/<operation_id>`
|
|
124
|
+
// and can be used to track the database modification. The
|
|
125
|
+
// [metadata][google.longrunning.Operation.metadata] field type is
|
|
126
|
+
// [UpdateDatabaseMetadata][google.spanner.admin.database.v1.UpdateDatabaseMetadata].
|
|
127
|
+
// The [response][google.longrunning.Operation.response] field type is
|
|
128
|
+
// [Database][google.spanner.admin.database.v1.Database], if successful.
|
|
129
|
+
rpc UpdateDatabase(UpdateDatabaseRequest)
|
|
130
|
+
returns (google.longrunning.Operation) {
|
|
131
|
+
option (google.api.http) = {
|
|
132
|
+
patch: "/v1/{database.name=projects/*/instances/*/databases/*}"
|
|
133
|
+
body: "database"
|
|
134
|
+
};
|
|
135
|
+
option (google.api.method_signature) = "database,update_mask";
|
|
136
|
+
option (google.longrunning.operation_info) = {
|
|
137
|
+
response_type: "Database"
|
|
138
|
+
metadata_type: "UpdateDatabaseMetadata"
|
|
139
|
+
};
|
|
140
|
+
}
|
|
141
|
+
|
|
92
142
|
// Updates the schema of a Cloud Spanner database by
|
|
93
143
|
// creating/altering/dropping tables, columns, indexes, etc. The returned
|
|
94
144
|
// [long-running operation][google.longrunning.Operation] will have a name of
|
|
@@ -449,6 +499,14 @@ message Database {
|
|
|
449
499
|
|
|
450
500
|
// Output only. The dialect of the Cloud Spanner Database.
|
|
451
501
|
DatabaseDialect database_dialect = 10 [(google.api.field_behavior) = OUTPUT_ONLY];
|
|
502
|
+
|
|
503
|
+
// Whether drop protection is enabled for this database. Defaults to false,
|
|
504
|
+
// if not set.
|
|
505
|
+
bool enable_drop_protection = 11;
|
|
506
|
+
|
|
507
|
+
// Output only. If true, the database is being updated. If false, there are no
|
|
508
|
+
// ongoing update operations for the database.
|
|
509
|
+
bool reconciling = 12 [(google.api.field_behavior) = OUTPUT_ONLY];
|
|
452
510
|
}
|
|
453
511
|
|
|
454
512
|
// The request for [ListDatabases][google.spanner.admin.database.v1.DatabaseAdmin.ListDatabases].
|
|
@@ -537,6 +595,37 @@ message GetDatabaseRequest {
|
|
|
537
595
|
];
|
|
538
596
|
}
|
|
539
597
|
|
|
598
|
+
// The request for
|
|
599
|
+
// [UpdateDatabase][google.spanner.admin.database.v1.DatabaseAdmin.UpdateDatabase].
|
|
600
|
+
message UpdateDatabaseRequest {
|
|
601
|
+
// Required. The database to update.
|
|
602
|
+
// The `name` field of the database is of the form
|
|
603
|
+
// `projects/<project>/instances/<instance>/databases/<database>`.
|
|
604
|
+
Database database = 1 [(google.api.field_behavior) = REQUIRED];
|
|
605
|
+
|
|
606
|
+
// Required. The list of fields to update. Currently, only
|
|
607
|
+
// `enable_drop_protection` field can be updated.
|
|
608
|
+
google.protobuf.FieldMask update_mask = 2
|
|
609
|
+
[(google.api.field_behavior) = REQUIRED];
|
|
610
|
+
}
|
|
611
|
+
|
|
612
|
+
// Metadata type for the operation returned by
|
|
613
|
+
// [UpdateDatabase][google.spanner.admin.database.v1.DatabaseAdmin.UpdateDatabase].
|
|
614
|
+
message UpdateDatabaseMetadata {
|
|
615
|
+
// The request for
|
|
616
|
+
// [UpdateDatabase][google.spanner.admin.database.v1.DatabaseAdmin.UpdateDatabase].
|
|
617
|
+
UpdateDatabaseRequest request = 1;
|
|
618
|
+
|
|
619
|
+
// The progress of the
|
|
620
|
+
// [UpdateDatabase][google.spanner.admin.database.v1.DatabaseAdmin.UpdateDatabase]
|
|
621
|
+
// operation.
|
|
622
|
+
OperationProgress progress = 2;
|
|
623
|
+
|
|
624
|
+
// The time at which this operation was cancelled. If set, this operation is
|
|
625
|
+
// in the process of undoing itself (which is best-effort).
|
|
626
|
+
google.protobuf.Timestamp cancel_time = 3;
|
|
627
|
+
}
|
|
628
|
+
|
|
540
629
|
// Enqueues the given DDL statements to be applied, in order but not
|
|
541
630
|
// necessarily all at once, to the database schema at some point (or
|
|
542
631
|
// points) in the future. The server checks that the statements
|
package/build/protos/protos.d.ts
CHANGED
|
@@ -7926,6 +7926,20 @@ export namespace google {
|
|
|
7926
7926
|
*/
|
|
7927
7927
|
public getDatabase(request: google.spanner.admin.database.v1.IGetDatabaseRequest): Promise<google.spanner.admin.database.v1.Database>;
|
|
7928
7928
|
|
|
7929
|
+
/**
|
|
7930
|
+
* Calls UpdateDatabase.
|
|
7931
|
+
* @param request UpdateDatabaseRequest message or plain object
|
|
7932
|
+
* @param callback Node-style callback called with the error, if any, and Operation
|
|
7933
|
+
*/
|
|
7934
|
+
public updateDatabase(request: google.spanner.admin.database.v1.IUpdateDatabaseRequest, callback: google.spanner.admin.database.v1.DatabaseAdmin.UpdateDatabaseCallback): void;
|
|
7935
|
+
|
|
7936
|
+
/**
|
|
7937
|
+
* Calls UpdateDatabase.
|
|
7938
|
+
* @param request UpdateDatabaseRequest message or plain object
|
|
7939
|
+
* @returns Promise
|
|
7940
|
+
*/
|
|
7941
|
+
public updateDatabase(request: google.spanner.admin.database.v1.IUpdateDatabaseRequest): Promise<google.longrunning.Operation>;
|
|
7942
|
+
|
|
7929
7943
|
/**
|
|
7930
7944
|
* Calls UpdateDatabaseDdl.
|
|
7931
7945
|
* @param request UpdateDatabaseDdlRequest message or plain object
|
|
@@ -8174,6 +8188,13 @@ export namespace google {
|
|
|
8174
8188
|
*/
|
|
8175
8189
|
type GetDatabaseCallback = (error: (Error|null), response?: google.spanner.admin.database.v1.Database) => void;
|
|
8176
8190
|
|
|
8191
|
+
/**
|
|
8192
|
+
* Callback as used by {@link google.spanner.admin.database.v1.DatabaseAdmin|updateDatabase}.
|
|
8193
|
+
* @param error Error, if any
|
|
8194
|
+
* @param [response] Operation
|
|
8195
|
+
*/
|
|
8196
|
+
type UpdateDatabaseCallback = (error: (Error|null), response?: google.longrunning.Operation) => void;
|
|
8197
|
+
|
|
8177
8198
|
/**
|
|
8178
8199
|
* Callback as used by {@link google.spanner.admin.database.v1.DatabaseAdmin|updateDatabaseDdl}.
|
|
8179
8200
|
* @param error Error, if any
|
|
@@ -8425,6 +8446,12 @@ export namespace google {
|
|
|
8425
8446
|
|
|
8426
8447
|
/** Database databaseDialect */
|
|
8427
8448
|
databaseDialect?: (google.spanner.admin.database.v1.DatabaseDialect|keyof typeof google.spanner.admin.database.v1.DatabaseDialect|null);
|
|
8449
|
+
|
|
8450
|
+
/** Database enableDropProtection */
|
|
8451
|
+
enableDropProtection?: (boolean|null);
|
|
8452
|
+
|
|
8453
|
+
/** Database reconciling */
|
|
8454
|
+
reconciling?: (boolean|null);
|
|
8428
8455
|
}
|
|
8429
8456
|
|
|
8430
8457
|
/** Represents a Database. */
|
|
@@ -8466,6 +8493,12 @@ export namespace google {
|
|
|
8466
8493
|
/** Database databaseDialect. */
|
|
8467
8494
|
public databaseDialect: (google.spanner.admin.database.v1.DatabaseDialect|keyof typeof google.spanner.admin.database.v1.DatabaseDialect);
|
|
8468
8495
|
|
|
8496
|
+
/** Database enableDropProtection. */
|
|
8497
|
+
public enableDropProtection: boolean;
|
|
8498
|
+
|
|
8499
|
+
/** Database reconciling. */
|
|
8500
|
+
public reconciling: boolean;
|
|
8501
|
+
|
|
8469
8502
|
/**
|
|
8470
8503
|
* Creates a new Database instance using the specified properties.
|
|
8471
8504
|
* @param [properties] Properties to set
|
|
@@ -9082,6 +9115,218 @@ export namespace google {
|
|
|
9082
9115
|
public static getTypeUrl(typeUrlPrefix?: string): string;
|
|
9083
9116
|
}
|
|
9084
9117
|
|
|
9118
|
+
/** Properties of an UpdateDatabaseRequest. */
|
|
9119
|
+
interface IUpdateDatabaseRequest {
|
|
9120
|
+
|
|
9121
|
+
/** UpdateDatabaseRequest database */
|
|
9122
|
+
database?: (google.spanner.admin.database.v1.IDatabase|null);
|
|
9123
|
+
|
|
9124
|
+
/** UpdateDatabaseRequest updateMask */
|
|
9125
|
+
updateMask?: (google.protobuf.IFieldMask|null);
|
|
9126
|
+
}
|
|
9127
|
+
|
|
9128
|
+
/** Represents an UpdateDatabaseRequest. */
|
|
9129
|
+
class UpdateDatabaseRequest implements IUpdateDatabaseRequest {
|
|
9130
|
+
|
|
9131
|
+
/**
|
|
9132
|
+
* Constructs a new UpdateDatabaseRequest.
|
|
9133
|
+
* @param [properties] Properties to set
|
|
9134
|
+
*/
|
|
9135
|
+
constructor(properties?: google.spanner.admin.database.v1.IUpdateDatabaseRequest);
|
|
9136
|
+
|
|
9137
|
+
/** UpdateDatabaseRequest database. */
|
|
9138
|
+
public database?: (google.spanner.admin.database.v1.IDatabase|null);
|
|
9139
|
+
|
|
9140
|
+
/** UpdateDatabaseRequest updateMask. */
|
|
9141
|
+
public updateMask?: (google.protobuf.IFieldMask|null);
|
|
9142
|
+
|
|
9143
|
+
/**
|
|
9144
|
+
* Creates a new UpdateDatabaseRequest instance using the specified properties.
|
|
9145
|
+
* @param [properties] Properties to set
|
|
9146
|
+
* @returns UpdateDatabaseRequest instance
|
|
9147
|
+
*/
|
|
9148
|
+
public static create(properties?: google.spanner.admin.database.v1.IUpdateDatabaseRequest): google.spanner.admin.database.v1.UpdateDatabaseRequest;
|
|
9149
|
+
|
|
9150
|
+
/**
|
|
9151
|
+
* Encodes the specified UpdateDatabaseRequest message. Does not implicitly {@link google.spanner.admin.database.v1.UpdateDatabaseRequest.verify|verify} messages.
|
|
9152
|
+
* @param message UpdateDatabaseRequest message or plain object to encode
|
|
9153
|
+
* @param [writer] Writer to encode to
|
|
9154
|
+
* @returns Writer
|
|
9155
|
+
*/
|
|
9156
|
+
public static encode(message: google.spanner.admin.database.v1.IUpdateDatabaseRequest, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
9157
|
+
|
|
9158
|
+
/**
|
|
9159
|
+
* Encodes the specified UpdateDatabaseRequest message, length delimited. Does not implicitly {@link google.spanner.admin.database.v1.UpdateDatabaseRequest.verify|verify} messages.
|
|
9160
|
+
* @param message UpdateDatabaseRequest message or plain object to encode
|
|
9161
|
+
* @param [writer] Writer to encode to
|
|
9162
|
+
* @returns Writer
|
|
9163
|
+
*/
|
|
9164
|
+
public static encodeDelimited(message: google.spanner.admin.database.v1.IUpdateDatabaseRequest, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
9165
|
+
|
|
9166
|
+
/**
|
|
9167
|
+
* Decodes an UpdateDatabaseRequest message from the specified reader or buffer.
|
|
9168
|
+
* @param reader Reader or buffer to decode from
|
|
9169
|
+
* @param [length] Message length if known beforehand
|
|
9170
|
+
* @returns UpdateDatabaseRequest
|
|
9171
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
9172
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
9173
|
+
*/
|
|
9174
|
+
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.spanner.admin.database.v1.UpdateDatabaseRequest;
|
|
9175
|
+
|
|
9176
|
+
/**
|
|
9177
|
+
* Decodes an UpdateDatabaseRequest message from the specified reader or buffer, length delimited.
|
|
9178
|
+
* @param reader Reader or buffer to decode from
|
|
9179
|
+
* @returns UpdateDatabaseRequest
|
|
9180
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
9181
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
9182
|
+
*/
|
|
9183
|
+
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.spanner.admin.database.v1.UpdateDatabaseRequest;
|
|
9184
|
+
|
|
9185
|
+
/**
|
|
9186
|
+
* Verifies an UpdateDatabaseRequest message.
|
|
9187
|
+
* @param message Plain object to verify
|
|
9188
|
+
* @returns `null` if valid, otherwise the reason why it is not
|
|
9189
|
+
*/
|
|
9190
|
+
public static verify(message: { [k: string]: any }): (string|null);
|
|
9191
|
+
|
|
9192
|
+
/**
|
|
9193
|
+
* Creates an UpdateDatabaseRequest message from a plain object. Also converts values to their respective internal types.
|
|
9194
|
+
* @param object Plain object
|
|
9195
|
+
* @returns UpdateDatabaseRequest
|
|
9196
|
+
*/
|
|
9197
|
+
public static fromObject(object: { [k: string]: any }): google.spanner.admin.database.v1.UpdateDatabaseRequest;
|
|
9198
|
+
|
|
9199
|
+
/**
|
|
9200
|
+
* Creates a plain object from an UpdateDatabaseRequest message. Also converts values to other types if specified.
|
|
9201
|
+
* @param message UpdateDatabaseRequest
|
|
9202
|
+
* @param [options] Conversion options
|
|
9203
|
+
* @returns Plain object
|
|
9204
|
+
*/
|
|
9205
|
+
public static toObject(message: google.spanner.admin.database.v1.UpdateDatabaseRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
9206
|
+
|
|
9207
|
+
/**
|
|
9208
|
+
* Converts this UpdateDatabaseRequest to JSON.
|
|
9209
|
+
* @returns JSON object
|
|
9210
|
+
*/
|
|
9211
|
+
public toJSON(): { [k: string]: any };
|
|
9212
|
+
|
|
9213
|
+
/**
|
|
9214
|
+
* Gets the default type url for UpdateDatabaseRequest
|
|
9215
|
+
* @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
9216
|
+
* @returns The default type url
|
|
9217
|
+
*/
|
|
9218
|
+
public static getTypeUrl(typeUrlPrefix?: string): string;
|
|
9219
|
+
}
|
|
9220
|
+
|
|
9221
|
+
/** Properties of an UpdateDatabaseMetadata. */
|
|
9222
|
+
interface IUpdateDatabaseMetadata {
|
|
9223
|
+
|
|
9224
|
+
/** UpdateDatabaseMetadata request */
|
|
9225
|
+
request?: (google.spanner.admin.database.v1.IUpdateDatabaseRequest|null);
|
|
9226
|
+
|
|
9227
|
+
/** UpdateDatabaseMetadata progress */
|
|
9228
|
+
progress?: (google.spanner.admin.database.v1.IOperationProgress|null);
|
|
9229
|
+
|
|
9230
|
+
/** UpdateDatabaseMetadata cancelTime */
|
|
9231
|
+
cancelTime?: (google.protobuf.ITimestamp|null);
|
|
9232
|
+
}
|
|
9233
|
+
|
|
9234
|
+
/** Represents an UpdateDatabaseMetadata. */
|
|
9235
|
+
class UpdateDatabaseMetadata implements IUpdateDatabaseMetadata {
|
|
9236
|
+
|
|
9237
|
+
/**
|
|
9238
|
+
* Constructs a new UpdateDatabaseMetadata.
|
|
9239
|
+
* @param [properties] Properties to set
|
|
9240
|
+
*/
|
|
9241
|
+
constructor(properties?: google.spanner.admin.database.v1.IUpdateDatabaseMetadata);
|
|
9242
|
+
|
|
9243
|
+
/** UpdateDatabaseMetadata request. */
|
|
9244
|
+
public request?: (google.spanner.admin.database.v1.IUpdateDatabaseRequest|null);
|
|
9245
|
+
|
|
9246
|
+
/** UpdateDatabaseMetadata progress. */
|
|
9247
|
+
public progress?: (google.spanner.admin.database.v1.IOperationProgress|null);
|
|
9248
|
+
|
|
9249
|
+
/** UpdateDatabaseMetadata cancelTime. */
|
|
9250
|
+
public cancelTime?: (google.protobuf.ITimestamp|null);
|
|
9251
|
+
|
|
9252
|
+
/**
|
|
9253
|
+
* Creates a new UpdateDatabaseMetadata instance using the specified properties.
|
|
9254
|
+
* @param [properties] Properties to set
|
|
9255
|
+
* @returns UpdateDatabaseMetadata instance
|
|
9256
|
+
*/
|
|
9257
|
+
public static create(properties?: google.spanner.admin.database.v1.IUpdateDatabaseMetadata): google.spanner.admin.database.v1.UpdateDatabaseMetadata;
|
|
9258
|
+
|
|
9259
|
+
/**
|
|
9260
|
+
* Encodes the specified UpdateDatabaseMetadata message. Does not implicitly {@link google.spanner.admin.database.v1.UpdateDatabaseMetadata.verify|verify} messages.
|
|
9261
|
+
* @param message UpdateDatabaseMetadata message or plain object to encode
|
|
9262
|
+
* @param [writer] Writer to encode to
|
|
9263
|
+
* @returns Writer
|
|
9264
|
+
*/
|
|
9265
|
+
public static encode(message: google.spanner.admin.database.v1.IUpdateDatabaseMetadata, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
9266
|
+
|
|
9267
|
+
/**
|
|
9268
|
+
* Encodes the specified UpdateDatabaseMetadata message, length delimited. Does not implicitly {@link google.spanner.admin.database.v1.UpdateDatabaseMetadata.verify|verify} messages.
|
|
9269
|
+
* @param message UpdateDatabaseMetadata message or plain object to encode
|
|
9270
|
+
* @param [writer] Writer to encode to
|
|
9271
|
+
* @returns Writer
|
|
9272
|
+
*/
|
|
9273
|
+
public static encodeDelimited(message: google.spanner.admin.database.v1.IUpdateDatabaseMetadata, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
9274
|
+
|
|
9275
|
+
/**
|
|
9276
|
+
* Decodes an UpdateDatabaseMetadata message from the specified reader or buffer.
|
|
9277
|
+
* @param reader Reader or buffer to decode from
|
|
9278
|
+
* @param [length] Message length if known beforehand
|
|
9279
|
+
* @returns UpdateDatabaseMetadata
|
|
9280
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
9281
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
9282
|
+
*/
|
|
9283
|
+
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.spanner.admin.database.v1.UpdateDatabaseMetadata;
|
|
9284
|
+
|
|
9285
|
+
/**
|
|
9286
|
+
* Decodes an UpdateDatabaseMetadata message from the specified reader or buffer, length delimited.
|
|
9287
|
+
* @param reader Reader or buffer to decode from
|
|
9288
|
+
* @returns UpdateDatabaseMetadata
|
|
9289
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
9290
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
9291
|
+
*/
|
|
9292
|
+
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.spanner.admin.database.v1.UpdateDatabaseMetadata;
|
|
9293
|
+
|
|
9294
|
+
/**
|
|
9295
|
+
* Verifies an UpdateDatabaseMetadata message.
|
|
9296
|
+
* @param message Plain object to verify
|
|
9297
|
+
* @returns `null` if valid, otherwise the reason why it is not
|
|
9298
|
+
*/
|
|
9299
|
+
public static verify(message: { [k: string]: any }): (string|null);
|
|
9300
|
+
|
|
9301
|
+
/**
|
|
9302
|
+
* Creates an UpdateDatabaseMetadata message from a plain object. Also converts values to their respective internal types.
|
|
9303
|
+
* @param object Plain object
|
|
9304
|
+
* @returns UpdateDatabaseMetadata
|
|
9305
|
+
*/
|
|
9306
|
+
public static fromObject(object: { [k: string]: any }): google.spanner.admin.database.v1.UpdateDatabaseMetadata;
|
|
9307
|
+
|
|
9308
|
+
/**
|
|
9309
|
+
* Creates a plain object from an UpdateDatabaseMetadata message. Also converts values to other types if specified.
|
|
9310
|
+
* @param message UpdateDatabaseMetadata
|
|
9311
|
+
* @param [options] Conversion options
|
|
9312
|
+
* @returns Plain object
|
|
9313
|
+
*/
|
|
9314
|
+
public static toObject(message: google.spanner.admin.database.v1.UpdateDatabaseMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
9315
|
+
|
|
9316
|
+
/**
|
|
9317
|
+
* Converts this UpdateDatabaseMetadata to JSON.
|
|
9318
|
+
* @returns JSON object
|
|
9319
|
+
*/
|
|
9320
|
+
public toJSON(): { [k: string]: any };
|
|
9321
|
+
|
|
9322
|
+
/**
|
|
9323
|
+
* Gets the default type url for UpdateDatabaseMetadata
|
|
9324
|
+
* @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
9325
|
+
* @returns The default type url
|
|
9326
|
+
*/
|
|
9327
|
+
public static getTypeUrl(typeUrlPrefix?: string): string;
|
|
9328
|
+
}
|
|
9329
|
+
|
|
9085
9330
|
/** Properties of an UpdateDatabaseDdlRequest. */
|
|
9086
9331
|
interface IUpdateDatabaseDdlRequest {
|
|
9087
9332
|
|