google-cloud-spanner 3.55.0__py3-none-any.whl
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.
- google/cloud/spanner.py +47 -0
- google/cloud/spanner_admin_database_v1/__init__.py +146 -0
- google/cloud/spanner_admin_database_v1/gapic_metadata.json +418 -0
- google/cloud/spanner_admin_database_v1/gapic_version.py +16 -0
- google/cloud/spanner_admin_database_v1/py.typed +2 -0
- google/cloud/spanner_admin_database_v1/services/__init__.py +15 -0
- google/cloud/spanner_admin_database_v1/services/database_admin/__init__.py +22 -0
- google/cloud/spanner_admin_database_v1/services/database_admin/async_client.py +4097 -0
- google/cloud/spanner_admin_database_v1/services/database_admin/client.py +4602 -0
- google/cloud/spanner_admin_database_v1/services/database_admin/pagers.py +989 -0
- google/cloud/spanner_admin_database_v1/services/database_admin/transports/__init__.py +38 -0
- google/cloud/spanner_admin_database_v1/services/database_admin/transports/base.py +820 -0
- google/cloud/spanner_admin_database_v1/services/database_admin/transports/grpc.py +1303 -0
- google/cloud/spanner_admin_database_v1/services/database_admin/transports/grpc_asyncio.py +1688 -0
- google/cloud/spanner_admin_database_v1/services/database_admin/transports/rest.py +6512 -0
- google/cloud/spanner_admin_database_v1/services/database_admin/transports/rest_base.py +1650 -0
- google/cloud/spanner_admin_database_v1/types/__init__.py +144 -0
- google/cloud/spanner_admin_database_v1/types/backup.py +1106 -0
- google/cloud/spanner_admin_database_v1/types/backup_schedule.py +369 -0
- google/cloud/spanner_admin_database_v1/types/common.py +180 -0
- google/cloud/spanner_admin_database_v1/types/spanner_database_admin.py +1303 -0
- google/cloud/spanner_admin_instance_v1/__init__.py +110 -0
- google/cloud/spanner_admin_instance_v1/gapic_metadata.json +343 -0
- google/cloud/spanner_admin_instance_v1/gapic_version.py +16 -0
- google/cloud/spanner_admin_instance_v1/py.typed +2 -0
- google/cloud/spanner_admin_instance_v1/services/__init__.py +15 -0
- google/cloud/spanner_admin_instance_v1/services/instance_admin/__init__.py +22 -0
- google/cloud/spanner_admin_instance_v1/services/instance_admin/async_client.py +3466 -0
- google/cloud/spanner_admin_instance_v1/services/instance_admin/client.py +3881 -0
- google/cloud/spanner_admin_instance_v1/services/instance_admin/pagers.py +856 -0
- google/cloud/spanner_admin_instance_v1/services/instance_admin/transports/__init__.py +38 -0
- google/cloud/spanner_admin_instance_v1/services/instance_admin/transports/base.py +545 -0
- google/cloud/spanner_admin_instance_v1/services/instance_admin/transports/grpc.py +1347 -0
- google/cloud/spanner_admin_instance_v1/services/instance_admin/transports/grpc_asyncio.py +1539 -0
- google/cloud/spanner_admin_instance_v1/services/instance_admin/transports/rest.py +4834 -0
- google/cloud/spanner_admin_instance_v1/services/instance_admin/transports/rest_base.py +1198 -0
- google/cloud/spanner_admin_instance_v1/types/__init__.py +104 -0
- google/cloud/spanner_admin_instance_v1/types/common.py +99 -0
- google/cloud/spanner_admin_instance_v1/types/spanner_instance_admin.py +2375 -0
- google/cloud/spanner_dbapi/__init__.py +93 -0
- google/cloud/spanner_dbapi/_helpers.py +113 -0
- google/cloud/spanner_dbapi/batch_dml_executor.py +135 -0
- google/cloud/spanner_dbapi/checksum.py +80 -0
- google/cloud/spanner_dbapi/client_side_statement_executor.py +140 -0
- google/cloud/spanner_dbapi/client_side_statement_parser.py +106 -0
- google/cloud/spanner_dbapi/connection.py +818 -0
- google/cloud/spanner_dbapi/cursor.py +609 -0
- google/cloud/spanner_dbapi/exceptions.py +172 -0
- google/cloud/spanner_dbapi/parse_utils.py +392 -0
- google/cloud/spanner_dbapi/parsed_statement.py +63 -0
- google/cloud/spanner_dbapi/parser.py +258 -0
- google/cloud/spanner_dbapi/partition_helper.py +41 -0
- google/cloud/spanner_dbapi/transaction_helper.py +294 -0
- google/cloud/spanner_dbapi/types.py +106 -0
- google/cloud/spanner_dbapi/utils.py +147 -0
- google/cloud/spanner_dbapi/version.py +20 -0
- google/cloud/spanner_v1/__init__.py +154 -0
- google/cloud/spanner_v1/_helpers.py +751 -0
- google/cloud/spanner_v1/_opentelemetry_tracing.py +165 -0
- google/cloud/spanner_v1/backup.py +397 -0
- google/cloud/spanner_v1/batch.py +433 -0
- google/cloud/spanner_v1/client.py +538 -0
- google/cloud/spanner_v1/data_types.py +350 -0
- google/cloud/spanner_v1/database.py +1968 -0
- google/cloud/spanner_v1/database_sessions_manager.py +249 -0
- google/cloud/spanner_v1/gapic_metadata.json +268 -0
- google/cloud/spanner_v1/gapic_version.py +16 -0
- google/cloud/spanner_v1/instance.py +735 -0
- google/cloud/spanner_v1/keyset.py +193 -0
- google/cloud/spanner_v1/merged_result_set.py +146 -0
- google/cloud/spanner_v1/metrics/constants.py +71 -0
- google/cloud/spanner_v1/metrics/metrics_capture.py +75 -0
- google/cloud/spanner_v1/metrics/metrics_exporter.py +384 -0
- google/cloud/spanner_v1/metrics/metrics_interceptor.py +156 -0
- google/cloud/spanner_v1/metrics/metrics_tracer.py +588 -0
- google/cloud/spanner_v1/metrics/metrics_tracer_factory.py +328 -0
- google/cloud/spanner_v1/metrics/spanner_metrics_tracer_factory.py +172 -0
- google/cloud/spanner_v1/param_types.py +110 -0
- google/cloud/spanner_v1/pool.py +813 -0
- google/cloud/spanner_v1/py.typed +2 -0
- google/cloud/spanner_v1/request_id_header.py +64 -0
- google/cloud/spanner_v1/services/__init__.py +15 -0
- google/cloud/spanner_v1/services/spanner/__init__.py +22 -0
- google/cloud/spanner_v1/services/spanner/async_client.py +2205 -0
- google/cloud/spanner_v1/services/spanner/client.py +2624 -0
- google/cloud/spanner_v1/services/spanner/pagers.py +196 -0
- google/cloud/spanner_v1/services/spanner/transports/__init__.py +38 -0
- google/cloud/spanner_v1/services/spanner/transports/base.py +520 -0
- google/cloud/spanner_v1/services/spanner/transports/grpc.py +911 -0
- google/cloud/spanner_v1/services/spanner/transports/grpc_asyncio.py +1144 -0
- google/cloud/spanner_v1/services/spanner/transports/rest.py +3468 -0
- google/cloud/spanner_v1/services/spanner/transports/rest_base.py +981 -0
- google/cloud/spanner_v1/session.py +631 -0
- google/cloud/spanner_v1/session_options.py +133 -0
- google/cloud/spanner_v1/snapshot.py +1057 -0
- google/cloud/spanner_v1/streamed.py +402 -0
- google/cloud/spanner_v1/table.py +181 -0
- google/cloud/spanner_v1/testing/__init__.py +0 -0
- google/cloud/spanner_v1/testing/database_test.py +121 -0
- google/cloud/spanner_v1/testing/interceptors.py +118 -0
- google/cloud/spanner_v1/testing/mock_database_admin.py +38 -0
- google/cloud/spanner_v1/testing/mock_spanner.py +261 -0
- google/cloud/spanner_v1/testing/spanner_database_admin_pb2_grpc.py +1267 -0
- google/cloud/spanner_v1/testing/spanner_pb2_grpc.py +882 -0
- google/cloud/spanner_v1/transaction.py +747 -0
- google/cloud/spanner_v1/types/__init__.py +118 -0
- google/cloud/spanner_v1/types/commit_response.py +94 -0
- google/cloud/spanner_v1/types/keys.py +248 -0
- google/cloud/spanner_v1/types/mutation.py +201 -0
- google/cloud/spanner_v1/types/query_plan.py +220 -0
- google/cloud/spanner_v1/types/result_set.py +379 -0
- google/cloud/spanner_v1/types/spanner.py +1815 -0
- google/cloud/spanner_v1/types/transaction.py +818 -0
- google/cloud/spanner_v1/types/type.py +288 -0
- google_cloud_spanner-3.55.0.dist-info/LICENSE +202 -0
- google_cloud_spanner-3.55.0.dist-info/METADATA +318 -0
- google_cloud_spanner-3.55.0.dist-info/RECORD +119 -0
- google_cloud_spanner-3.55.0.dist-info/WHEEL +5 -0
- google_cloud_spanner-3.55.0.dist-info/top_level.txt +1 -0
|
@@ -0,0 +1,1267 @@
|
|
|
1
|
+
# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT!
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
# Generated with the following commands:
|
|
5
|
+
#
|
|
6
|
+
# pip install grpcio-tools
|
|
7
|
+
# git clone git@github.com:googleapis/googleapis.git
|
|
8
|
+
# cd googleapis
|
|
9
|
+
# python -m grpc_tools.protoc \
|
|
10
|
+
# -I . \
|
|
11
|
+
# --python_out=. --pyi_out=. --grpc_python_out=. \
|
|
12
|
+
# ./google/spanner/admin/database/v1/*.proto
|
|
13
|
+
|
|
14
|
+
"""Client and server classes corresponding to protobuf-defined services."""
|
|
15
|
+
|
|
16
|
+
import grpc
|
|
17
|
+
from google.iam.v1 import iam_policy_pb2 as google_dot_iam_dot_v1_dot_iam__policy__pb2
|
|
18
|
+
from google.iam.v1 import policy_pb2 as google_dot_iam_dot_v1_dot_policy__pb2
|
|
19
|
+
from google.longrunning import (
|
|
20
|
+
operations_pb2 as google_dot_longrunning_dot_operations__pb2,
|
|
21
|
+
)
|
|
22
|
+
from google.protobuf import empty_pb2 as google_dot_protobuf_dot_empty__pb2
|
|
23
|
+
from google.cloud.spanner_admin_database_v1.types import (
|
|
24
|
+
backup as google_dot_spanner_dot_admin_dot_database_dot_v1_dot_backup__pb2,
|
|
25
|
+
)
|
|
26
|
+
from google.cloud.spanner_admin_database_v1.types import (
|
|
27
|
+
backup_schedule as google_dot_spanner_dot_admin_dot_database_dot_v1_dot_backup__schedule__pb2,
|
|
28
|
+
)
|
|
29
|
+
from google.cloud.spanner_admin_database_v1.types import (
|
|
30
|
+
spanner_database_admin as google_dot_spanner_dot_admin_dot_database_dot_v1_dot_spanner__database__admin__pb2,
|
|
31
|
+
)
|
|
32
|
+
|
|
33
|
+
GRPC_GENERATED_VERSION = "1.67.0"
|
|
34
|
+
GRPC_VERSION = grpc.__version__
|
|
35
|
+
_version_not_supported = False
|
|
36
|
+
|
|
37
|
+
try:
|
|
38
|
+
from grpc._utilities import first_version_is_lower
|
|
39
|
+
|
|
40
|
+
_version_not_supported = first_version_is_lower(
|
|
41
|
+
GRPC_VERSION, GRPC_GENERATED_VERSION
|
|
42
|
+
)
|
|
43
|
+
except ImportError:
|
|
44
|
+
_version_not_supported = True
|
|
45
|
+
|
|
46
|
+
if _version_not_supported:
|
|
47
|
+
raise RuntimeError(
|
|
48
|
+
f"The grpc package installed is at version {GRPC_VERSION},"
|
|
49
|
+
+ " but the generated code in google/spanner/admin/database/v1/spanner_database_admin_pb2_grpc.py depends on"
|
|
50
|
+
+ f" grpcio>={GRPC_GENERATED_VERSION}."
|
|
51
|
+
+ f" Please upgrade your grpc module to grpcio>={GRPC_GENERATED_VERSION}"
|
|
52
|
+
+ f" or downgrade your generated code using grpcio-tools<={GRPC_VERSION}."
|
|
53
|
+
)
|
|
54
|
+
|
|
55
|
+
|
|
56
|
+
class DatabaseAdminServicer(object):
|
|
57
|
+
"""Cloud Spanner Database Admin API
|
|
58
|
+
|
|
59
|
+
The Cloud Spanner Database Admin API can be used to:
|
|
60
|
+
* create, drop, and list databases
|
|
61
|
+
* update the schema of pre-existing databases
|
|
62
|
+
* create, delete, copy and list backups for a database
|
|
63
|
+
* restore a database from an existing backup
|
|
64
|
+
"""
|
|
65
|
+
|
|
66
|
+
def ListDatabases(self, request, context):
|
|
67
|
+
"""Lists Cloud Spanner databases."""
|
|
68
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
69
|
+
context.set_details("Method not implemented!")
|
|
70
|
+
raise NotImplementedError("Method not implemented!")
|
|
71
|
+
|
|
72
|
+
def CreateDatabase(self, request, context):
|
|
73
|
+
"""Creates a new Cloud Spanner database and starts to prepare it for serving.
|
|
74
|
+
The returned [long-running operation][google.longrunning.Operation] will
|
|
75
|
+
have a name of the format `<database_name>/operations/<operation_id>` and
|
|
76
|
+
can be used to track preparation of the database. The
|
|
77
|
+
[metadata][google.longrunning.Operation.metadata] field type is
|
|
78
|
+
[CreateDatabaseMetadata][google.spanner.admin.database.v1.CreateDatabaseMetadata].
|
|
79
|
+
The [response][google.longrunning.Operation.response] field type is
|
|
80
|
+
[Database][google.spanner.admin.database.v1.Database], if successful.
|
|
81
|
+
"""
|
|
82
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
83
|
+
context.set_details("Method not implemented!")
|
|
84
|
+
raise NotImplementedError("Method not implemented!")
|
|
85
|
+
|
|
86
|
+
def GetDatabase(self, request, context):
|
|
87
|
+
"""Gets the state of a Cloud Spanner database."""
|
|
88
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
89
|
+
context.set_details("Method not implemented!")
|
|
90
|
+
raise NotImplementedError("Method not implemented!")
|
|
91
|
+
|
|
92
|
+
def UpdateDatabase(self, request, context):
|
|
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
|
+
"""
|
|
130
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
131
|
+
context.set_details("Method not implemented!")
|
|
132
|
+
raise NotImplementedError("Method not implemented!")
|
|
133
|
+
|
|
134
|
+
def UpdateDatabaseDdl(self, request, context):
|
|
135
|
+
"""Updates the schema of a Cloud Spanner database by
|
|
136
|
+
creating/altering/dropping tables, columns, indexes, etc. The returned
|
|
137
|
+
[long-running operation][google.longrunning.Operation] will have a name of
|
|
138
|
+
the format `<database_name>/operations/<operation_id>` and can be used to
|
|
139
|
+
track execution of the schema change(s). The
|
|
140
|
+
[metadata][google.longrunning.Operation.metadata] field type is
|
|
141
|
+
[UpdateDatabaseDdlMetadata][google.spanner.admin.database.v1.UpdateDatabaseDdlMetadata].
|
|
142
|
+
The operation has no response.
|
|
143
|
+
"""
|
|
144
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
145
|
+
context.set_details("Method not implemented!")
|
|
146
|
+
raise NotImplementedError("Method not implemented!")
|
|
147
|
+
|
|
148
|
+
def DropDatabase(self, request, context):
|
|
149
|
+
"""Drops (aka deletes) a Cloud Spanner database.
|
|
150
|
+
Completed backups for the database will be retained according to their
|
|
151
|
+
`expire_time`.
|
|
152
|
+
Note: Cloud Spanner might continue to accept requests for a few seconds
|
|
153
|
+
after the database has been deleted.
|
|
154
|
+
"""
|
|
155
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
156
|
+
context.set_details("Method not implemented!")
|
|
157
|
+
raise NotImplementedError("Method not implemented!")
|
|
158
|
+
|
|
159
|
+
def GetDatabaseDdl(self, request, context):
|
|
160
|
+
"""Returns the schema of a Cloud Spanner database as a list of formatted
|
|
161
|
+
DDL statements. This method does not show pending schema updates, those may
|
|
162
|
+
be queried using the [Operations][google.longrunning.Operations] API.
|
|
163
|
+
"""
|
|
164
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
165
|
+
context.set_details("Method not implemented!")
|
|
166
|
+
raise NotImplementedError("Method not implemented!")
|
|
167
|
+
|
|
168
|
+
def SetIamPolicy(self, request, context):
|
|
169
|
+
"""Sets the access control policy on a database or backup resource.
|
|
170
|
+
Replaces any existing policy.
|
|
171
|
+
|
|
172
|
+
Authorization requires `spanner.databases.setIamPolicy`
|
|
173
|
+
permission on [resource][google.iam.v1.SetIamPolicyRequest.resource].
|
|
174
|
+
For backups, authorization requires `spanner.backups.setIamPolicy`
|
|
175
|
+
permission on [resource][google.iam.v1.SetIamPolicyRequest.resource].
|
|
176
|
+
"""
|
|
177
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
178
|
+
context.set_details("Method not implemented!")
|
|
179
|
+
raise NotImplementedError("Method not implemented!")
|
|
180
|
+
|
|
181
|
+
def GetIamPolicy(self, request, context):
|
|
182
|
+
"""Gets the access control policy for a database or backup resource.
|
|
183
|
+
Returns an empty policy if a database or backup exists but does not have a
|
|
184
|
+
policy set.
|
|
185
|
+
|
|
186
|
+
Authorization requires `spanner.databases.getIamPolicy` permission on
|
|
187
|
+
[resource][google.iam.v1.GetIamPolicyRequest.resource].
|
|
188
|
+
For backups, authorization requires `spanner.backups.getIamPolicy`
|
|
189
|
+
permission on [resource][google.iam.v1.GetIamPolicyRequest.resource].
|
|
190
|
+
"""
|
|
191
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
192
|
+
context.set_details("Method not implemented!")
|
|
193
|
+
raise NotImplementedError("Method not implemented!")
|
|
194
|
+
|
|
195
|
+
def TestIamPermissions(self, request, context):
|
|
196
|
+
"""Returns permissions that the caller has on the specified database or backup
|
|
197
|
+
resource.
|
|
198
|
+
|
|
199
|
+
Attempting this RPC on a non-existent Cloud Spanner database will
|
|
200
|
+
result in a NOT_FOUND error if the user has
|
|
201
|
+
`spanner.databases.list` permission on the containing Cloud
|
|
202
|
+
Spanner instance. Otherwise returns an empty set of permissions.
|
|
203
|
+
Calling this method on a backup that does not exist will
|
|
204
|
+
result in a NOT_FOUND error if the user has
|
|
205
|
+
`spanner.backups.list` permission on the containing instance.
|
|
206
|
+
"""
|
|
207
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
208
|
+
context.set_details("Method not implemented!")
|
|
209
|
+
raise NotImplementedError("Method not implemented!")
|
|
210
|
+
|
|
211
|
+
def CreateBackup(self, request, context):
|
|
212
|
+
"""Starts creating a new Cloud Spanner Backup.
|
|
213
|
+
The returned backup [long-running operation][google.longrunning.Operation]
|
|
214
|
+
will have a name of the format
|
|
215
|
+
`projects/<project>/instances/<instance>/backups/<backup>/operations/<operation_id>`
|
|
216
|
+
and can be used to track creation of the backup. The
|
|
217
|
+
[metadata][google.longrunning.Operation.metadata] field type is
|
|
218
|
+
[CreateBackupMetadata][google.spanner.admin.database.v1.CreateBackupMetadata].
|
|
219
|
+
The [response][google.longrunning.Operation.response] field type is
|
|
220
|
+
[Backup][google.spanner.admin.database.v1.Backup], if successful.
|
|
221
|
+
Cancelling the returned operation will stop the creation and delete the
|
|
222
|
+
backup. There can be only one pending backup creation per database. Backup
|
|
223
|
+
creation of different databases can run concurrently.
|
|
224
|
+
"""
|
|
225
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
226
|
+
context.set_details("Method not implemented!")
|
|
227
|
+
raise NotImplementedError("Method not implemented!")
|
|
228
|
+
|
|
229
|
+
def CopyBackup(self, request, context):
|
|
230
|
+
"""Starts copying a Cloud Spanner Backup.
|
|
231
|
+
The returned backup [long-running operation][google.longrunning.Operation]
|
|
232
|
+
will have a name of the format
|
|
233
|
+
`projects/<project>/instances/<instance>/backups/<backup>/operations/<operation_id>`
|
|
234
|
+
and can be used to track copying of the backup. The operation is associated
|
|
235
|
+
with the destination backup.
|
|
236
|
+
The [metadata][google.longrunning.Operation.metadata] field type is
|
|
237
|
+
[CopyBackupMetadata][google.spanner.admin.database.v1.CopyBackupMetadata].
|
|
238
|
+
The [response][google.longrunning.Operation.response] field type is
|
|
239
|
+
[Backup][google.spanner.admin.database.v1.Backup], if successful.
|
|
240
|
+
Cancelling the returned operation will stop the copying and delete the
|
|
241
|
+
destination backup. Concurrent CopyBackup requests can run on the same
|
|
242
|
+
source backup.
|
|
243
|
+
"""
|
|
244
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
245
|
+
context.set_details("Method not implemented!")
|
|
246
|
+
raise NotImplementedError("Method not implemented!")
|
|
247
|
+
|
|
248
|
+
def GetBackup(self, request, context):
|
|
249
|
+
"""Gets metadata on a pending or completed
|
|
250
|
+
[Backup][google.spanner.admin.database.v1.Backup].
|
|
251
|
+
"""
|
|
252
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
253
|
+
context.set_details("Method not implemented!")
|
|
254
|
+
raise NotImplementedError("Method not implemented!")
|
|
255
|
+
|
|
256
|
+
def UpdateBackup(self, request, context):
|
|
257
|
+
"""Updates a pending or completed
|
|
258
|
+
[Backup][google.spanner.admin.database.v1.Backup].
|
|
259
|
+
"""
|
|
260
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
261
|
+
context.set_details("Method not implemented!")
|
|
262
|
+
raise NotImplementedError("Method not implemented!")
|
|
263
|
+
|
|
264
|
+
def DeleteBackup(self, request, context):
|
|
265
|
+
"""Deletes a pending or completed
|
|
266
|
+
[Backup][google.spanner.admin.database.v1.Backup].
|
|
267
|
+
"""
|
|
268
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
269
|
+
context.set_details("Method not implemented!")
|
|
270
|
+
raise NotImplementedError("Method not implemented!")
|
|
271
|
+
|
|
272
|
+
def ListBackups(self, request, context):
|
|
273
|
+
"""Lists completed and pending backups.
|
|
274
|
+
Backups returned are ordered by `create_time` in descending order,
|
|
275
|
+
starting from the most recent `create_time`.
|
|
276
|
+
"""
|
|
277
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
278
|
+
context.set_details("Method not implemented!")
|
|
279
|
+
raise NotImplementedError("Method not implemented!")
|
|
280
|
+
|
|
281
|
+
def RestoreDatabase(self, request, context):
|
|
282
|
+
"""Create a new database by restoring from a completed backup. The new
|
|
283
|
+
database must be in the same project and in an instance with the same
|
|
284
|
+
instance configuration as the instance containing
|
|
285
|
+
the backup. The returned database [long-running
|
|
286
|
+
operation][google.longrunning.Operation] has a name of the format
|
|
287
|
+
`projects/<project>/instances/<instance>/databases/<database>/operations/<operation_id>`,
|
|
288
|
+
and can be used to track the progress of the operation, and to cancel it.
|
|
289
|
+
The [metadata][google.longrunning.Operation.metadata] field type is
|
|
290
|
+
[RestoreDatabaseMetadata][google.spanner.admin.database.v1.RestoreDatabaseMetadata].
|
|
291
|
+
The [response][google.longrunning.Operation.response] type
|
|
292
|
+
is [Database][google.spanner.admin.database.v1.Database], if
|
|
293
|
+
successful. Cancelling the returned operation will stop the restore and
|
|
294
|
+
delete the database.
|
|
295
|
+
There can be only one database being restored into an instance at a time.
|
|
296
|
+
Once the restore operation completes, a new restore operation can be
|
|
297
|
+
initiated, without waiting for the optimize operation associated with the
|
|
298
|
+
first restore to complete.
|
|
299
|
+
"""
|
|
300
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
301
|
+
context.set_details("Method not implemented!")
|
|
302
|
+
raise NotImplementedError("Method not implemented!")
|
|
303
|
+
|
|
304
|
+
def ListDatabaseOperations(self, request, context):
|
|
305
|
+
"""Lists database [longrunning-operations][google.longrunning.Operation].
|
|
306
|
+
A database operation has a name of the form
|
|
307
|
+
`projects/<project>/instances/<instance>/databases/<database>/operations/<operation>`.
|
|
308
|
+
The long-running operation
|
|
309
|
+
[metadata][google.longrunning.Operation.metadata] field type
|
|
310
|
+
`metadata.type_url` describes the type of the metadata. Operations returned
|
|
311
|
+
include those that have completed/failed/canceled within the last 7 days,
|
|
312
|
+
and pending operations.
|
|
313
|
+
"""
|
|
314
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
315
|
+
context.set_details("Method not implemented!")
|
|
316
|
+
raise NotImplementedError("Method not implemented!")
|
|
317
|
+
|
|
318
|
+
def ListBackupOperations(self, request, context):
|
|
319
|
+
"""Lists the backup [long-running operations][google.longrunning.Operation] in
|
|
320
|
+
the given instance. A backup operation has a name of the form
|
|
321
|
+
`projects/<project>/instances/<instance>/backups/<backup>/operations/<operation>`.
|
|
322
|
+
The long-running operation
|
|
323
|
+
[metadata][google.longrunning.Operation.metadata] field type
|
|
324
|
+
`metadata.type_url` describes the type of the metadata. Operations returned
|
|
325
|
+
include those that have completed/failed/canceled within the last 7 days,
|
|
326
|
+
and pending operations. Operations returned are ordered by
|
|
327
|
+
`operation.metadata.value.progress.start_time` in descending order starting
|
|
328
|
+
from the most recently started operation.
|
|
329
|
+
"""
|
|
330
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
331
|
+
context.set_details("Method not implemented!")
|
|
332
|
+
raise NotImplementedError("Method not implemented!")
|
|
333
|
+
|
|
334
|
+
def ListDatabaseRoles(self, request, context):
|
|
335
|
+
"""Lists Cloud Spanner database roles."""
|
|
336
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
337
|
+
context.set_details("Method not implemented!")
|
|
338
|
+
raise NotImplementedError("Method not implemented!")
|
|
339
|
+
|
|
340
|
+
def CreateBackupSchedule(self, request, context):
|
|
341
|
+
"""Creates a new backup schedule."""
|
|
342
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
343
|
+
context.set_details("Method not implemented!")
|
|
344
|
+
raise NotImplementedError("Method not implemented!")
|
|
345
|
+
|
|
346
|
+
def GetBackupSchedule(self, request, context):
|
|
347
|
+
"""Gets backup schedule for the input schedule name."""
|
|
348
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
349
|
+
context.set_details("Method not implemented!")
|
|
350
|
+
raise NotImplementedError("Method not implemented!")
|
|
351
|
+
|
|
352
|
+
def UpdateBackupSchedule(self, request, context):
|
|
353
|
+
"""Updates a backup schedule."""
|
|
354
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
355
|
+
context.set_details("Method not implemented!")
|
|
356
|
+
raise NotImplementedError("Method not implemented!")
|
|
357
|
+
|
|
358
|
+
def DeleteBackupSchedule(self, request, context):
|
|
359
|
+
"""Deletes a backup schedule."""
|
|
360
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
361
|
+
context.set_details("Method not implemented!")
|
|
362
|
+
raise NotImplementedError("Method not implemented!")
|
|
363
|
+
|
|
364
|
+
def ListBackupSchedules(self, request, context):
|
|
365
|
+
"""Lists all the backup schedules for the database."""
|
|
366
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
367
|
+
context.set_details("Method not implemented!")
|
|
368
|
+
raise NotImplementedError("Method not implemented!")
|
|
369
|
+
|
|
370
|
+
|
|
371
|
+
def add_DatabaseAdminServicer_to_server(servicer, server):
|
|
372
|
+
rpc_method_handlers = {
|
|
373
|
+
"ListDatabases": grpc.unary_unary_rpc_method_handler(
|
|
374
|
+
servicer.ListDatabases,
|
|
375
|
+
request_deserializer=google_dot_spanner_dot_admin_dot_database_dot_v1_dot_spanner__database__admin__pb2.ListDatabasesRequest.deserialize,
|
|
376
|
+
response_serializer=google_dot_spanner_dot_admin_dot_database_dot_v1_dot_spanner__database__admin__pb2.ListDatabasesResponse.serialize,
|
|
377
|
+
),
|
|
378
|
+
"CreateDatabase": grpc.unary_unary_rpc_method_handler(
|
|
379
|
+
servicer.CreateDatabase,
|
|
380
|
+
request_deserializer=google_dot_spanner_dot_admin_dot_database_dot_v1_dot_spanner__database__admin__pb2.CreateDatabaseRequest.deserialize,
|
|
381
|
+
response_serializer=google_dot_longrunning_dot_operations__pb2.Operation.SerializeToString,
|
|
382
|
+
),
|
|
383
|
+
"GetDatabase": grpc.unary_unary_rpc_method_handler(
|
|
384
|
+
servicer.GetDatabase,
|
|
385
|
+
request_deserializer=google_dot_spanner_dot_admin_dot_database_dot_v1_dot_spanner__database__admin__pb2.GetDatabaseRequest.deserialize,
|
|
386
|
+
response_serializer=google_dot_spanner_dot_admin_dot_database_dot_v1_dot_spanner__database__admin__pb2.Database.serialize,
|
|
387
|
+
),
|
|
388
|
+
"UpdateDatabase": grpc.unary_unary_rpc_method_handler(
|
|
389
|
+
servicer.UpdateDatabase,
|
|
390
|
+
request_deserializer=google_dot_spanner_dot_admin_dot_database_dot_v1_dot_spanner__database__admin__pb2.UpdateDatabaseRequest.deserialize,
|
|
391
|
+
response_serializer=google_dot_longrunning_dot_operations__pb2.Operation.SerializeToString,
|
|
392
|
+
),
|
|
393
|
+
"UpdateDatabaseDdl": grpc.unary_unary_rpc_method_handler(
|
|
394
|
+
servicer.UpdateDatabaseDdl,
|
|
395
|
+
request_deserializer=google_dot_spanner_dot_admin_dot_database_dot_v1_dot_spanner__database__admin__pb2.UpdateDatabaseDdlRequest.deserialize,
|
|
396
|
+
response_serializer=google_dot_longrunning_dot_operations__pb2.Operation.SerializeToString,
|
|
397
|
+
),
|
|
398
|
+
"DropDatabase": grpc.unary_unary_rpc_method_handler(
|
|
399
|
+
servicer.DropDatabase,
|
|
400
|
+
request_deserializer=google_dot_spanner_dot_admin_dot_database_dot_v1_dot_spanner__database__admin__pb2.DropDatabaseRequest.deserialize,
|
|
401
|
+
response_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString,
|
|
402
|
+
),
|
|
403
|
+
"GetDatabaseDdl": grpc.unary_unary_rpc_method_handler(
|
|
404
|
+
servicer.GetDatabaseDdl,
|
|
405
|
+
request_deserializer=google_dot_spanner_dot_admin_dot_database_dot_v1_dot_spanner__database__admin__pb2.GetDatabaseDdlRequest.deserialize,
|
|
406
|
+
response_serializer=google_dot_spanner_dot_admin_dot_database_dot_v1_dot_spanner__database__admin__pb2.GetDatabaseDdlResponse.serialize,
|
|
407
|
+
),
|
|
408
|
+
"SetIamPolicy": grpc.unary_unary_rpc_method_handler(
|
|
409
|
+
servicer.SetIamPolicy,
|
|
410
|
+
request_deserializer=google_dot_iam_dot_v1_dot_iam__policy__pb2.SetIamPolicyRequest.FromString,
|
|
411
|
+
response_serializer=google_dot_iam_dot_v1_dot_policy__pb2.Policy.SerializeToString,
|
|
412
|
+
),
|
|
413
|
+
"GetIamPolicy": grpc.unary_unary_rpc_method_handler(
|
|
414
|
+
servicer.GetIamPolicy,
|
|
415
|
+
request_deserializer=google_dot_iam_dot_v1_dot_iam__policy__pb2.GetIamPolicyRequest.FromString,
|
|
416
|
+
response_serializer=google_dot_iam_dot_v1_dot_policy__pb2.Policy.SerializeToString,
|
|
417
|
+
),
|
|
418
|
+
"TestIamPermissions": grpc.unary_unary_rpc_method_handler(
|
|
419
|
+
servicer.TestIamPermissions,
|
|
420
|
+
request_deserializer=google_dot_iam_dot_v1_dot_iam__policy__pb2.TestIamPermissionsRequest.FromString,
|
|
421
|
+
response_serializer=google_dot_iam_dot_v1_dot_iam__policy__pb2.TestIamPermissionsResponse.SerializeToString,
|
|
422
|
+
),
|
|
423
|
+
"CreateBackup": grpc.unary_unary_rpc_method_handler(
|
|
424
|
+
servicer.CreateBackup,
|
|
425
|
+
request_deserializer=google_dot_spanner_dot_admin_dot_database_dot_v1_dot_backup__pb2.CreateBackupRequest.deserialize,
|
|
426
|
+
response_serializer=google_dot_longrunning_dot_operations__pb2.Operation.SerializeToString,
|
|
427
|
+
),
|
|
428
|
+
"CopyBackup": grpc.unary_unary_rpc_method_handler(
|
|
429
|
+
servicer.CopyBackup,
|
|
430
|
+
request_deserializer=google_dot_spanner_dot_admin_dot_database_dot_v1_dot_backup__pb2.CopyBackupRequest.deserialize,
|
|
431
|
+
response_serializer=google_dot_longrunning_dot_operations__pb2.Operation.SerializeToString,
|
|
432
|
+
),
|
|
433
|
+
"GetBackup": grpc.unary_unary_rpc_method_handler(
|
|
434
|
+
servicer.GetBackup,
|
|
435
|
+
request_deserializer=google_dot_spanner_dot_admin_dot_database_dot_v1_dot_backup__pb2.GetBackupRequest.deserialize,
|
|
436
|
+
response_serializer=google_dot_spanner_dot_admin_dot_database_dot_v1_dot_backup__pb2.Backup.serialize,
|
|
437
|
+
),
|
|
438
|
+
"UpdateBackup": grpc.unary_unary_rpc_method_handler(
|
|
439
|
+
servicer.UpdateBackup,
|
|
440
|
+
request_deserializer=google_dot_spanner_dot_admin_dot_database_dot_v1_dot_backup__pb2.UpdateBackupRequest.deserialize,
|
|
441
|
+
response_serializer=google_dot_spanner_dot_admin_dot_database_dot_v1_dot_backup__pb2.Backup.serialize,
|
|
442
|
+
),
|
|
443
|
+
"DeleteBackup": grpc.unary_unary_rpc_method_handler(
|
|
444
|
+
servicer.DeleteBackup,
|
|
445
|
+
request_deserializer=google_dot_spanner_dot_admin_dot_database_dot_v1_dot_backup__pb2.DeleteBackupRequest.deserialize,
|
|
446
|
+
response_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString,
|
|
447
|
+
),
|
|
448
|
+
"ListBackups": grpc.unary_unary_rpc_method_handler(
|
|
449
|
+
servicer.ListBackups,
|
|
450
|
+
request_deserializer=google_dot_spanner_dot_admin_dot_database_dot_v1_dot_backup__pb2.ListBackupsRequest.deserialize,
|
|
451
|
+
response_serializer=google_dot_spanner_dot_admin_dot_database_dot_v1_dot_backup__pb2.ListBackupsResponse.serialize,
|
|
452
|
+
),
|
|
453
|
+
"RestoreDatabase": grpc.unary_unary_rpc_method_handler(
|
|
454
|
+
servicer.RestoreDatabase,
|
|
455
|
+
request_deserializer=google_dot_spanner_dot_admin_dot_database_dot_v1_dot_spanner__database__admin__pb2.RestoreDatabaseRequest.deserialize,
|
|
456
|
+
response_serializer=google_dot_longrunning_dot_operations__pb2.Operation.SerializeToString,
|
|
457
|
+
),
|
|
458
|
+
"ListDatabaseOperations": grpc.unary_unary_rpc_method_handler(
|
|
459
|
+
servicer.ListDatabaseOperations,
|
|
460
|
+
request_deserializer=google_dot_spanner_dot_admin_dot_database_dot_v1_dot_spanner__database__admin__pb2.ListDatabaseOperationsRequest.deserialize,
|
|
461
|
+
response_serializer=google_dot_spanner_dot_admin_dot_database_dot_v1_dot_spanner__database__admin__pb2.ListDatabaseOperationsResponse.serialize,
|
|
462
|
+
),
|
|
463
|
+
"ListBackupOperations": grpc.unary_unary_rpc_method_handler(
|
|
464
|
+
servicer.ListBackupOperations,
|
|
465
|
+
request_deserializer=google_dot_spanner_dot_admin_dot_database_dot_v1_dot_backup__pb2.ListBackupOperationsRequest.deserialize,
|
|
466
|
+
response_serializer=google_dot_spanner_dot_admin_dot_database_dot_v1_dot_backup__pb2.ListBackupOperationsResponse.serialize,
|
|
467
|
+
),
|
|
468
|
+
"ListDatabaseRoles": grpc.unary_unary_rpc_method_handler(
|
|
469
|
+
servicer.ListDatabaseRoles,
|
|
470
|
+
request_deserializer=google_dot_spanner_dot_admin_dot_database_dot_v1_dot_spanner__database__admin__pb2.ListDatabaseRolesRequest.deserialize,
|
|
471
|
+
response_serializer=google_dot_spanner_dot_admin_dot_database_dot_v1_dot_spanner__database__admin__pb2.ListDatabaseRolesResponse.serialize,
|
|
472
|
+
),
|
|
473
|
+
"CreateBackupSchedule": grpc.unary_unary_rpc_method_handler(
|
|
474
|
+
servicer.CreateBackupSchedule,
|
|
475
|
+
request_deserializer=google_dot_spanner_dot_admin_dot_database_dot_v1_dot_backup__schedule__pb2.CreateBackupScheduleRequest.deserialize,
|
|
476
|
+
response_serializer=google_dot_spanner_dot_admin_dot_database_dot_v1_dot_backup__schedule__pb2.BackupSchedule.serialize,
|
|
477
|
+
),
|
|
478
|
+
"GetBackupSchedule": grpc.unary_unary_rpc_method_handler(
|
|
479
|
+
servicer.GetBackupSchedule,
|
|
480
|
+
request_deserializer=google_dot_spanner_dot_admin_dot_database_dot_v1_dot_backup__schedule__pb2.GetBackupScheduleRequest.deserialize,
|
|
481
|
+
response_serializer=google_dot_spanner_dot_admin_dot_database_dot_v1_dot_backup__schedule__pb2.BackupSchedule.serialize,
|
|
482
|
+
),
|
|
483
|
+
"UpdateBackupSchedule": grpc.unary_unary_rpc_method_handler(
|
|
484
|
+
servicer.UpdateBackupSchedule,
|
|
485
|
+
request_deserializer=google_dot_spanner_dot_admin_dot_database_dot_v1_dot_backup__schedule__pb2.UpdateBackupScheduleRequest.deserialize,
|
|
486
|
+
response_serializer=google_dot_spanner_dot_admin_dot_database_dot_v1_dot_backup__schedule__pb2.BackupSchedule.serialize,
|
|
487
|
+
),
|
|
488
|
+
"DeleteBackupSchedule": grpc.unary_unary_rpc_method_handler(
|
|
489
|
+
servicer.DeleteBackupSchedule,
|
|
490
|
+
request_deserializer=google_dot_spanner_dot_admin_dot_database_dot_v1_dot_backup__schedule__pb2.DeleteBackupScheduleRequest.deserialize,
|
|
491
|
+
response_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString,
|
|
492
|
+
),
|
|
493
|
+
"ListBackupSchedules": grpc.unary_unary_rpc_method_handler(
|
|
494
|
+
servicer.ListBackupSchedules,
|
|
495
|
+
request_deserializer=google_dot_spanner_dot_admin_dot_database_dot_v1_dot_backup__schedule__pb2.ListBackupSchedulesRequest.deserialize,
|
|
496
|
+
response_serializer=google_dot_spanner_dot_admin_dot_database_dot_v1_dot_backup__schedule__pb2.ListBackupSchedulesResponse.serialize,
|
|
497
|
+
),
|
|
498
|
+
}
|
|
499
|
+
generic_handler = grpc.method_handlers_generic_handler(
|
|
500
|
+
"google.spanner.admin.database.v1.DatabaseAdmin", rpc_method_handlers
|
|
501
|
+
)
|
|
502
|
+
server.add_generic_rpc_handlers((generic_handler,))
|
|
503
|
+
server.add_registered_method_handlers(
|
|
504
|
+
"google.spanner.admin.database.v1.DatabaseAdmin", rpc_method_handlers
|
|
505
|
+
)
|
|
506
|
+
|
|
507
|
+
|
|
508
|
+
# This class is part of an EXPERIMENTAL API.
|
|
509
|
+
class DatabaseAdmin(object):
|
|
510
|
+
"""Cloud Spanner Database Admin API
|
|
511
|
+
|
|
512
|
+
The Cloud Spanner Database Admin API can be used to:
|
|
513
|
+
* create, drop, and list databases
|
|
514
|
+
* update the schema of pre-existing databases
|
|
515
|
+
* create, delete, copy and list backups for a database
|
|
516
|
+
* restore a database from an existing backup
|
|
517
|
+
"""
|
|
518
|
+
|
|
519
|
+
@staticmethod
|
|
520
|
+
def ListDatabases(
|
|
521
|
+
request,
|
|
522
|
+
target,
|
|
523
|
+
options=(),
|
|
524
|
+
channel_credentials=None,
|
|
525
|
+
call_credentials=None,
|
|
526
|
+
insecure=False,
|
|
527
|
+
compression=None,
|
|
528
|
+
wait_for_ready=None,
|
|
529
|
+
timeout=None,
|
|
530
|
+
metadata=None,
|
|
531
|
+
):
|
|
532
|
+
return grpc.experimental.unary_unary(
|
|
533
|
+
request,
|
|
534
|
+
target,
|
|
535
|
+
"/google.spanner.admin.database.v1.DatabaseAdmin/ListDatabases",
|
|
536
|
+
google_dot_spanner_dot_admin_dot_database_dot_v1_dot_spanner__database__admin__pb2.ListDatabasesRequest.SerializeToString,
|
|
537
|
+
google_dot_spanner_dot_admin_dot_database_dot_v1_dot_spanner__database__admin__pb2.ListDatabasesResponse.FromString,
|
|
538
|
+
options,
|
|
539
|
+
channel_credentials,
|
|
540
|
+
insecure,
|
|
541
|
+
call_credentials,
|
|
542
|
+
compression,
|
|
543
|
+
wait_for_ready,
|
|
544
|
+
timeout,
|
|
545
|
+
metadata,
|
|
546
|
+
_registered_method=True,
|
|
547
|
+
)
|
|
548
|
+
|
|
549
|
+
@staticmethod
|
|
550
|
+
def CreateDatabase(
|
|
551
|
+
request,
|
|
552
|
+
target,
|
|
553
|
+
options=(),
|
|
554
|
+
channel_credentials=None,
|
|
555
|
+
call_credentials=None,
|
|
556
|
+
insecure=False,
|
|
557
|
+
compression=None,
|
|
558
|
+
wait_for_ready=None,
|
|
559
|
+
timeout=None,
|
|
560
|
+
metadata=None,
|
|
561
|
+
):
|
|
562
|
+
return grpc.experimental.unary_unary(
|
|
563
|
+
request,
|
|
564
|
+
target,
|
|
565
|
+
"/google.spanner.admin.database.v1.DatabaseAdmin/CreateDatabase",
|
|
566
|
+
google_dot_spanner_dot_admin_dot_database_dot_v1_dot_spanner__database__admin__pb2.CreateDatabaseRequest.SerializeToString,
|
|
567
|
+
google_dot_longrunning_dot_operations__pb2.Operation.FromString,
|
|
568
|
+
options,
|
|
569
|
+
channel_credentials,
|
|
570
|
+
insecure,
|
|
571
|
+
call_credentials,
|
|
572
|
+
compression,
|
|
573
|
+
wait_for_ready,
|
|
574
|
+
timeout,
|
|
575
|
+
metadata,
|
|
576
|
+
_registered_method=True,
|
|
577
|
+
)
|
|
578
|
+
|
|
579
|
+
@staticmethod
|
|
580
|
+
def GetDatabase(
|
|
581
|
+
request,
|
|
582
|
+
target,
|
|
583
|
+
options=(),
|
|
584
|
+
channel_credentials=None,
|
|
585
|
+
call_credentials=None,
|
|
586
|
+
insecure=False,
|
|
587
|
+
compression=None,
|
|
588
|
+
wait_for_ready=None,
|
|
589
|
+
timeout=None,
|
|
590
|
+
metadata=None,
|
|
591
|
+
):
|
|
592
|
+
return grpc.experimental.unary_unary(
|
|
593
|
+
request,
|
|
594
|
+
target,
|
|
595
|
+
"/google.spanner.admin.database.v1.DatabaseAdmin/GetDatabase",
|
|
596
|
+
google_dot_spanner_dot_admin_dot_database_dot_v1_dot_spanner__database__admin__pb2.GetDatabaseRequest.SerializeToString,
|
|
597
|
+
google_dot_spanner_dot_admin_dot_database_dot_v1_dot_spanner__database__admin__pb2.Database.FromString,
|
|
598
|
+
options,
|
|
599
|
+
channel_credentials,
|
|
600
|
+
insecure,
|
|
601
|
+
call_credentials,
|
|
602
|
+
compression,
|
|
603
|
+
wait_for_ready,
|
|
604
|
+
timeout,
|
|
605
|
+
metadata,
|
|
606
|
+
_registered_method=True,
|
|
607
|
+
)
|
|
608
|
+
|
|
609
|
+
@staticmethod
|
|
610
|
+
def UpdateDatabase(
|
|
611
|
+
request,
|
|
612
|
+
target,
|
|
613
|
+
options=(),
|
|
614
|
+
channel_credentials=None,
|
|
615
|
+
call_credentials=None,
|
|
616
|
+
insecure=False,
|
|
617
|
+
compression=None,
|
|
618
|
+
wait_for_ready=None,
|
|
619
|
+
timeout=None,
|
|
620
|
+
metadata=None,
|
|
621
|
+
):
|
|
622
|
+
return grpc.experimental.unary_unary(
|
|
623
|
+
request,
|
|
624
|
+
target,
|
|
625
|
+
"/google.spanner.admin.database.v1.DatabaseAdmin/UpdateDatabase",
|
|
626
|
+
google_dot_spanner_dot_admin_dot_database_dot_v1_dot_spanner__database__admin__pb2.UpdateDatabaseRequest.SerializeToString,
|
|
627
|
+
google_dot_longrunning_dot_operations__pb2.Operation.FromString,
|
|
628
|
+
options,
|
|
629
|
+
channel_credentials,
|
|
630
|
+
insecure,
|
|
631
|
+
call_credentials,
|
|
632
|
+
compression,
|
|
633
|
+
wait_for_ready,
|
|
634
|
+
timeout,
|
|
635
|
+
metadata,
|
|
636
|
+
_registered_method=True,
|
|
637
|
+
)
|
|
638
|
+
|
|
639
|
+
@staticmethod
|
|
640
|
+
def UpdateDatabaseDdl(
|
|
641
|
+
request,
|
|
642
|
+
target,
|
|
643
|
+
options=(),
|
|
644
|
+
channel_credentials=None,
|
|
645
|
+
call_credentials=None,
|
|
646
|
+
insecure=False,
|
|
647
|
+
compression=None,
|
|
648
|
+
wait_for_ready=None,
|
|
649
|
+
timeout=None,
|
|
650
|
+
metadata=None,
|
|
651
|
+
):
|
|
652
|
+
return grpc.experimental.unary_unary(
|
|
653
|
+
request,
|
|
654
|
+
target,
|
|
655
|
+
"/google.spanner.admin.database.v1.DatabaseAdmin/UpdateDatabaseDdl",
|
|
656
|
+
google_dot_spanner_dot_admin_dot_database_dot_v1_dot_spanner__database__admin__pb2.UpdateDatabaseDdlRequest.SerializeToString,
|
|
657
|
+
google_dot_longrunning_dot_operations__pb2.Operation.FromString,
|
|
658
|
+
options,
|
|
659
|
+
channel_credentials,
|
|
660
|
+
insecure,
|
|
661
|
+
call_credentials,
|
|
662
|
+
compression,
|
|
663
|
+
wait_for_ready,
|
|
664
|
+
timeout,
|
|
665
|
+
metadata,
|
|
666
|
+
_registered_method=True,
|
|
667
|
+
)
|
|
668
|
+
|
|
669
|
+
@staticmethod
|
|
670
|
+
def DropDatabase(
|
|
671
|
+
request,
|
|
672
|
+
target,
|
|
673
|
+
options=(),
|
|
674
|
+
channel_credentials=None,
|
|
675
|
+
call_credentials=None,
|
|
676
|
+
insecure=False,
|
|
677
|
+
compression=None,
|
|
678
|
+
wait_for_ready=None,
|
|
679
|
+
timeout=None,
|
|
680
|
+
metadata=None,
|
|
681
|
+
):
|
|
682
|
+
return grpc.experimental.unary_unary(
|
|
683
|
+
request,
|
|
684
|
+
target,
|
|
685
|
+
"/google.spanner.admin.database.v1.DatabaseAdmin/DropDatabase",
|
|
686
|
+
google_dot_spanner_dot_admin_dot_database_dot_v1_dot_spanner__database__admin__pb2.DropDatabaseRequest.SerializeToString,
|
|
687
|
+
google_dot_protobuf_dot_empty__pb2.Empty.FromString,
|
|
688
|
+
options,
|
|
689
|
+
channel_credentials,
|
|
690
|
+
insecure,
|
|
691
|
+
call_credentials,
|
|
692
|
+
compression,
|
|
693
|
+
wait_for_ready,
|
|
694
|
+
timeout,
|
|
695
|
+
metadata,
|
|
696
|
+
_registered_method=True,
|
|
697
|
+
)
|
|
698
|
+
|
|
699
|
+
@staticmethod
|
|
700
|
+
def GetDatabaseDdl(
|
|
701
|
+
request,
|
|
702
|
+
target,
|
|
703
|
+
options=(),
|
|
704
|
+
channel_credentials=None,
|
|
705
|
+
call_credentials=None,
|
|
706
|
+
insecure=False,
|
|
707
|
+
compression=None,
|
|
708
|
+
wait_for_ready=None,
|
|
709
|
+
timeout=None,
|
|
710
|
+
metadata=None,
|
|
711
|
+
):
|
|
712
|
+
return grpc.experimental.unary_unary(
|
|
713
|
+
request,
|
|
714
|
+
target,
|
|
715
|
+
"/google.spanner.admin.database.v1.DatabaseAdmin/GetDatabaseDdl",
|
|
716
|
+
google_dot_spanner_dot_admin_dot_database_dot_v1_dot_spanner__database__admin__pb2.GetDatabaseDdlRequest.SerializeToString,
|
|
717
|
+
google_dot_spanner_dot_admin_dot_database_dot_v1_dot_spanner__database__admin__pb2.GetDatabaseDdlResponse.FromString,
|
|
718
|
+
options,
|
|
719
|
+
channel_credentials,
|
|
720
|
+
insecure,
|
|
721
|
+
call_credentials,
|
|
722
|
+
compression,
|
|
723
|
+
wait_for_ready,
|
|
724
|
+
timeout,
|
|
725
|
+
metadata,
|
|
726
|
+
_registered_method=True,
|
|
727
|
+
)
|
|
728
|
+
|
|
729
|
+
@staticmethod
|
|
730
|
+
def SetIamPolicy(
|
|
731
|
+
request,
|
|
732
|
+
target,
|
|
733
|
+
options=(),
|
|
734
|
+
channel_credentials=None,
|
|
735
|
+
call_credentials=None,
|
|
736
|
+
insecure=False,
|
|
737
|
+
compression=None,
|
|
738
|
+
wait_for_ready=None,
|
|
739
|
+
timeout=None,
|
|
740
|
+
metadata=None,
|
|
741
|
+
):
|
|
742
|
+
return grpc.experimental.unary_unary(
|
|
743
|
+
request,
|
|
744
|
+
target,
|
|
745
|
+
"/google.spanner.admin.database.v1.DatabaseAdmin/SetIamPolicy",
|
|
746
|
+
google_dot_iam_dot_v1_dot_iam__policy__pb2.SetIamPolicyRequest.SerializeToString,
|
|
747
|
+
google_dot_iam_dot_v1_dot_policy__pb2.Policy.FromString,
|
|
748
|
+
options,
|
|
749
|
+
channel_credentials,
|
|
750
|
+
insecure,
|
|
751
|
+
call_credentials,
|
|
752
|
+
compression,
|
|
753
|
+
wait_for_ready,
|
|
754
|
+
timeout,
|
|
755
|
+
metadata,
|
|
756
|
+
_registered_method=True,
|
|
757
|
+
)
|
|
758
|
+
|
|
759
|
+
@staticmethod
|
|
760
|
+
def GetIamPolicy(
|
|
761
|
+
request,
|
|
762
|
+
target,
|
|
763
|
+
options=(),
|
|
764
|
+
channel_credentials=None,
|
|
765
|
+
call_credentials=None,
|
|
766
|
+
insecure=False,
|
|
767
|
+
compression=None,
|
|
768
|
+
wait_for_ready=None,
|
|
769
|
+
timeout=None,
|
|
770
|
+
metadata=None,
|
|
771
|
+
):
|
|
772
|
+
return grpc.experimental.unary_unary(
|
|
773
|
+
request,
|
|
774
|
+
target,
|
|
775
|
+
"/google.spanner.admin.database.v1.DatabaseAdmin/GetIamPolicy",
|
|
776
|
+
google_dot_iam_dot_v1_dot_iam__policy__pb2.GetIamPolicyRequest.SerializeToString,
|
|
777
|
+
google_dot_iam_dot_v1_dot_policy__pb2.Policy.FromString,
|
|
778
|
+
options,
|
|
779
|
+
channel_credentials,
|
|
780
|
+
insecure,
|
|
781
|
+
call_credentials,
|
|
782
|
+
compression,
|
|
783
|
+
wait_for_ready,
|
|
784
|
+
timeout,
|
|
785
|
+
metadata,
|
|
786
|
+
_registered_method=True,
|
|
787
|
+
)
|
|
788
|
+
|
|
789
|
+
@staticmethod
|
|
790
|
+
def TestIamPermissions(
|
|
791
|
+
request,
|
|
792
|
+
target,
|
|
793
|
+
options=(),
|
|
794
|
+
channel_credentials=None,
|
|
795
|
+
call_credentials=None,
|
|
796
|
+
insecure=False,
|
|
797
|
+
compression=None,
|
|
798
|
+
wait_for_ready=None,
|
|
799
|
+
timeout=None,
|
|
800
|
+
metadata=None,
|
|
801
|
+
):
|
|
802
|
+
return grpc.experimental.unary_unary(
|
|
803
|
+
request,
|
|
804
|
+
target,
|
|
805
|
+
"/google.spanner.admin.database.v1.DatabaseAdmin/TestIamPermissions",
|
|
806
|
+
google_dot_iam_dot_v1_dot_iam__policy__pb2.TestIamPermissionsRequest.SerializeToString,
|
|
807
|
+
google_dot_iam_dot_v1_dot_iam__policy__pb2.TestIamPermissionsResponse.FromString,
|
|
808
|
+
options,
|
|
809
|
+
channel_credentials,
|
|
810
|
+
insecure,
|
|
811
|
+
call_credentials,
|
|
812
|
+
compression,
|
|
813
|
+
wait_for_ready,
|
|
814
|
+
timeout,
|
|
815
|
+
metadata,
|
|
816
|
+
_registered_method=True,
|
|
817
|
+
)
|
|
818
|
+
|
|
819
|
+
@staticmethod
|
|
820
|
+
def CreateBackup(
|
|
821
|
+
request,
|
|
822
|
+
target,
|
|
823
|
+
options=(),
|
|
824
|
+
channel_credentials=None,
|
|
825
|
+
call_credentials=None,
|
|
826
|
+
insecure=False,
|
|
827
|
+
compression=None,
|
|
828
|
+
wait_for_ready=None,
|
|
829
|
+
timeout=None,
|
|
830
|
+
metadata=None,
|
|
831
|
+
):
|
|
832
|
+
return grpc.experimental.unary_unary(
|
|
833
|
+
request,
|
|
834
|
+
target,
|
|
835
|
+
"/google.spanner.admin.database.v1.DatabaseAdmin/CreateBackup",
|
|
836
|
+
google_dot_spanner_dot_admin_dot_database_dot_v1_dot_backup__pb2.CreateBackupRequest.SerializeToString,
|
|
837
|
+
google_dot_longrunning_dot_operations__pb2.Operation.FromString,
|
|
838
|
+
options,
|
|
839
|
+
channel_credentials,
|
|
840
|
+
insecure,
|
|
841
|
+
call_credentials,
|
|
842
|
+
compression,
|
|
843
|
+
wait_for_ready,
|
|
844
|
+
timeout,
|
|
845
|
+
metadata,
|
|
846
|
+
_registered_method=True,
|
|
847
|
+
)
|
|
848
|
+
|
|
849
|
+
@staticmethod
|
|
850
|
+
def CopyBackup(
|
|
851
|
+
request,
|
|
852
|
+
target,
|
|
853
|
+
options=(),
|
|
854
|
+
channel_credentials=None,
|
|
855
|
+
call_credentials=None,
|
|
856
|
+
insecure=False,
|
|
857
|
+
compression=None,
|
|
858
|
+
wait_for_ready=None,
|
|
859
|
+
timeout=None,
|
|
860
|
+
metadata=None,
|
|
861
|
+
):
|
|
862
|
+
return grpc.experimental.unary_unary(
|
|
863
|
+
request,
|
|
864
|
+
target,
|
|
865
|
+
"/google.spanner.admin.database.v1.DatabaseAdmin/CopyBackup",
|
|
866
|
+
google_dot_spanner_dot_admin_dot_database_dot_v1_dot_backup__pb2.CopyBackupRequest.SerializeToString,
|
|
867
|
+
google_dot_longrunning_dot_operations__pb2.Operation.FromString,
|
|
868
|
+
options,
|
|
869
|
+
channel_credentials,
|
|
870
|
+
insecure,
|
|
871
|
+
call_credentials,
|
|
872
|
+
compression,
|
|
873
|
+
wait_for_ready,
|
|
874
|
+
timeout,
|
|
875
|
+
metadata,
|
|
876
|
+
_registered_method=True,
|
|
877
|
+
)
|
|
878
|
+
|
|
879
|
+
@staticmethod
|
|
880
|
+
def GetBackup(
|
|
881
|
+
request,
|
|
882
|
+
target,
|
|
883
|
+
options=(),
|
|
884
|
+
channel_credentials=None,
|
|
885
|
+
call_credentials=None,
|
|
886
|
+
insecure=False,
|
|
887
|
+
compression=None,
|
|
888
|
+
wait_for_ready=None,
|
|
889
|
+
timeout=None,
|
|
890
|
+
metadata=None,
|
|
891
|
+
):
|
|
892
|
+
return grpc.experimental.unary_unary(
|
|
893
|
+
request,
|
|
894
|
+
target,
|
|
895
|
+
"/google.spanner.admin.database.v1.DatabaseAdmin/GetBackup",
|
|
896
|
+
google_dot_spanner_dot_admin_dot_database_dot_v1_dot_backup__pb2.GetBackupRequest.SerializeToString,
|
|
897
|
+
google_dot_spanner_dot_admin_dot_database_dot_v1_dot_backup__pb2.Backup.FromString,
|
|
898
|
+
options,
|
|
899
|
+
channel_credentials,
|
|
900
|
+
insecure,
|
|
901
|
+
call_credentials,
|
|
902
|
+
compression,
|
|
903
|
+
wait_for_ready,
|
|
904
|
+
timeout,
|
|
905
|
+
metadata,
|
|
906
|
+
_registered_method=True,
|
|
907
|
+
)
|
|
908
|
+
|
|
909
|
+
@staticmethod
|
|
910
|
+
def UpdateBackup(
|
|
911
|
+
request,
|
|
912
|
+
target,
|
|
913
|
+
options=(),
|
|
914
|
+
channel_credentials=None,
|
|
915
|
+
call_credentials=None,
|
|
916
|
+
insecure=False,
|
|
917
|
+
compression=None,
|
|
918
|
+
wait_for_ready=None,
|
|
919
|
+
timeout=None,
|
|
920
|
+
metadata=None,
|
|
921
|
+
):
|
|
922
|
+
return grpc.experimental.unary_unary(
|
|
923
|
+
request,
|
|
924
|
+
target,
|
|
925
|
+
"/google.spanner.admin.database.v1.DatabaseAdmin/UpdateBackup",
|
|
926
|
+
google_dot_spanner_dot_admin_dot_database_dot_v1_dot_backup__pb2.UpdateBackupRequest.SerializeToString,
|
|
927
|
+
google_dot_spanner_dot_admin_dot_database_dot_v1_dot_backup__pb2.Backup.FromString,
|
|
928
|
+
options,
|
|
929
|
+
channel_credentials,
|
|
930
|
+
insecure,
|
|
931
|
+
call_credentials,
|
|
932
|
+
compression,
|
|
933
|
+
wait_for_ready,
|
|
934
|
+
timeout,
|
|
935
|
+
metadata,
|
|
936
|
+
_registered_method=True,
|
|
937
|
+
)
|
|
938
|
+
|
|
939
|
+
@staticmethod
|
|
940
|
+
def DeleteBackup(
|
|
941
|
+
request,
|
|
942
|
+
target,
|
|
943
|
+
options=(),
|
|
944
|
+
channel_credentials=None,
|
|
945
|
+
call_credentials=None,
|
|
946
|
+
insecure=False,
|
|
947
|
+
compression=None,
|
|
948
|
+
wait_for_ready=None,
|
|
949
|
+
timeout=None,
|
|
950
|
+
metadata=None,
|
|
951
|
+
):
|
|
952
|
+
return grpc.experimental.unary_unary(
|
|
953
|
+
request,
|
|
954
|
+
target,
|
|
955
|
+
"/google.spanner.admin.database.v1.DatabaseAdmin/DeleteBackup",
|
|
956
|
+
google_dot_spanner_dot_admin_dot_database_dot_v1_dot_backup__pb2.DeleteBackupRequest.SerializeToString,
|
|
957
|
+
google_dot_protobuf_dot_empty__pb2.Empty.FromString,
|
|
958
|
+
options,
|
|
959
|
+
channel_credentials,
|
|
960
|
+
insecure,
|
|
961
|
+
call_credentials,
|
|
962
|
+
compression,
|
|
963
|
+
wait_for_ready,
|
|
964
|
+
timeout,
|
|
965
|
+
metadata,
|
|
966
|
+
_registered_method=True,
|
|
967
|
+
)
|
|
968
|
+
|
|
969
|
+
@staticmethod
|
|
970
|
+
def ListBackups(
|
|
971
|
+
request,
|
|
972
|
+
target,
|
|
973
|
+
options=(),
|
|
974
|
+
channel_credentials=None,
|
|
975
|
+
call_credentials=None,
|
|
976
|
+
insecure=False,
|
|
977
|
+
compression=None,
|
|
978
|
+
wait_for_ready=None,
|
|
979
|
+
timeout=None,
|
|
980
|
+
metadata=None,
|
|
981
|
+
):
|
|
982
|
+
return grpc.experimental.unary_unary(
|
|
983
|
+
request,
|
|
984
|
+
target,
|
|
985
|
+
"/google.spanner.admin.database.v1.DatabaseAdmin/ListBackups",
|
|
986
|
+
google_dot_spanner_dot_admin_dot_database_dot_v1_dot_backup__pb2.ListBackupsRequest.SerializeToString,
|
|
987
|
+
google_dot_spanner_dot_admin_dot_database_dot_v1_dot_backup__pb2.ListBackupsResponse.FromString,
|
|
988
|
+
options,
|
|
989
|
+
channel_credentials,
|
|
990
|
+
insecure,
|
|
991
|
+
call_credentials,
|
|
992
|
+
compression,
|
|
993
|
+
wait_for_ready,
|
|
994
|
+
timeout,
|
|
995
|
+
metadata,
|
|
996
|
+
_registered_method=True,
|
|
997
|
+
)
|
|
998
|
+
|
|
999
|
+
@staticmethod
|
|
1000
|
+
def RestoreDatabase(
|
|
1001
|
+
request,
|
|
1002
|
+
target,
|
|
1003
|
+
options=(),
|
|
1004
|
+
channel_credentials=None,
|
|
1005
|
+
call_credentials=None,
|
|
1006
|
+
insecure=False,
|
|
1007
|
+
compression=None,
|
|
1008
|
+
wait_for_ready=None,
|
|
1009
|
+
timeout=None,
|
|
1010
|
+
metadata=None,
|
|
1011
|
+
):
|
|
1012
|
+
return grpc.experimental.unary_unary(
|
|
1013
|
+
request,
|
|
1014
|
+
target,
|
|
1015
|
+
"/google.spanner.admin.database.v1.DatabaseAdmin/RestoreDatabase",
|
|
1016
|
+
google_dot_spanner_dot_admin_dot_database_dot_v1_dot_spanner__database__admin__pb2.RestoreDatabaseRequest.SerializeToString,
|
|
1017
|
+
google_dot_longrunning_dot_operations__pb2.Operation.FromString,
|
|
1018
|
+
options,
|
|
1019
|
+
channel_credentials,
|
|
1020
|
+
insecure,
|
|
1021
|
+
call_credentials,
|
|
1022
|
+
compression,
|
|
1023
|
+
wait_for_ready,
|
|
1024
|
+
timeout,
|
|
1025
|
+
metadata,
|
|
1026
|
+
_registered_method=True,
|
|
1027
|
+
)
|
|
1028
|
+
|
|
1029
|
+
@staticmethod
|
|
1030
|
+
def ListDatabaseOperations(
|
|
1031
|
+
request,
|
|
1032
|
+
target,
|
|
1033
|
+
options=(),
|
|
1034
|
+
channel_credentials=None,
|
|
1035
|
+
call_credentials=None,
|
|
1036
|
+
insecure=False,
|
|
1037
|
+
compression=None,
|
|
1038
|
+
wait_for_ready=None,
|
|
1039
|
+
timeout=None,
|
|
1040
|
+
metadata=None,
|
|
1041
|
+
):
|
|
1042
|
+
return grpc.experimental.unary_unary(
|
|
1043
|
+
request,
|
|
1044
|
+
target,
|
|
1045
|
+
"/google.spanner.admin.database.v1.DatabaseAdmin/ListDatabaseOperations",
|
|
1046
|
+
google_dot_spanner_dot_admin_dot_database_dot_v1_dot_spanner__database__admin__pb2.ListDatabaseOperationsRequest.SerializeToString,
|
|
1047
|
+
google_dot_spanner_dot_admin_dot_database_dot_v1_dot_spanner__database__admin__pb2.ListDatabaseOperationsResponse.FromString,
|
|
1048
|
+
options,
|
|
1049
|
+
channel_credentials,
|
|
1050
|
+
insecure,
|
|
1051
|
+
call_credentials,
|
|
1052
|
+
compression,
|
|
1053
|
+
wait_for_ready,
|
|
1054
|
+
timeout,
|
|
1055
|
+
metadata,
|
|
1056
|
+
_registered_method=True,
|
|
1057
|
+
)
|
|
1058
|
+
|
|
1059
|
+
@staticmethod
|
|
1060
|
+
def ListBackupOperations(
|
|
1061
|
+
request,
|
|
1062
|
+
target,
|
|
1063
|
+
options=(),
|
|
1064
|
+
channel_credentials=None,
|
|
1065
|
+
call_credentials=None,
|
|
1066
|
+
insecure=False,
|
|
1067
|
+
compression=None,
|
|
1068
|
+
wait_for_ready=None,
|
|
1069
|
+
timeout=None,
|
|
1070
|
+
metadata=None,
|
|
1071
|
+
):
|
|
1072
|
+
return grpc.experimental.unary_unary(
|
|
1073
|
+
request,
|
|
1074
|
+
target,
|
|
1075
|
+
"/google.spanner.admin.database.v1.DatabaseAdmin/ListBackupOperations",
|
|
1076
|
+
google_dot_spanner_dot_admin_dot_database_dot_v1_dot_backup__pb2.ListBackupOperationsRequest.SerializeToString,
|
|
1077
|
+
google_dot_spanner_dot_admin_dot_database_dot_v1_dot_backup__pb2.ListBackupOperationsResponse.FromString,
|
|
1078
|
+
options,
|
|
1079
|
+
channel_credentials,
|
|
1080
|
+
insecure,
|
|
1081
|
+
call_credentials,
|
|
1082
|
+
compression,
|
|
1083
|
+
wait_for_ready,
|
|
1084
|
+
timeout,
|
|
1085
|
+
metadata,
|
|
1086
|
+
_registered_method=True,
|
|
1087
|
+
)
|
|
1088
|
+
|
|
1089
|
+
@staticmethod
|
|
1090
|
+
def ListDatabaseRoles(
|
|
1091
|
+
request,
|
|
1092
|
+
target,
|
|
1093
|
+
options=(),
|
|
1094
|
+
channel_credentials=None,
|
|
1095
|
+
call_credentials=None,
|
|
1096
|
+
insecure=False,
|
|
1097
|
+
compression=None,
|
|
1098
|
+
wait_for_ready=None,
|
|
1099
|
+
timeout=None,
|
|
1100
|
+
metadata=None,
|
|
1101
|
+
):
|
|
1102
|
+
return grpc.experimental.unary_unary(
|
|
1103
|
+
request,
|
|
1104
|
+
target,
|
|
1105
|
+
"/google.spanner.admin.database.v1.DatabaseAdmin/ListDatabaseRoles",
|
|
1106
|
+
google_dot_spanner_dot_admin_dot_database_dot_v1_dot_spanner__database__admin__pb2.ListDatabaseRolesRequest.SerializeToString,
|
|
1107
|
+
google_dot_spanner_dot_admin_dot_database_dot_v1_dot_spanner__database__admin__pb2.ListDatabaseRolesResponse.FromString,
|
|
1108
|
+
options,
|
|
1109
|
+
channel_credentials,
|
|
1110
|
+
insecure,
|
|
1111
|
+
call_credentials,
|
|
1112
|
+
compression,
|
|
1113
|
+
wait_for_ready,
|
|
1114
|
+
timeout,
|
|
1115
|
+
metadata,
|
|
1116
|
+
_registered_method=True,
|
|
1117
|
+
)
|
|
1118
|
+
|
|
1119
|
+
@staticmethod
|
|
1120
|
+
def CreateBackupSchedule(
|
|
1121
|
+
request,
|
|
1122
|
+
target,
|
|
1123
|
+
options=(),
|
|
1124
|
+
channel_credentials=None,
|
|
1125
|
+
call_credentials=None,
|
|
1126
|
+
insecure=False,
|
|
1127
|
+
compression=None,
|
|
1128
|
+
wait_for_ready=None,
|
|
1129
|
+
timeout=None,
|
|
1130
|
+
metadata=None,
|
|
1131
|
+
):
|
|
1132
|
+
return grpc.experimental.unary_unary(
|
|
1133
|
+
request,
|
|
1134
|
+
target,
|
|
1135
|
+
"/google.spanner.admin.database.v1.DatabaseAdmin/CreateBackupSchedule",
|
|
1136
|
+
google_dot_spanner_dot_admin_dot_database_dot_v1_dot_backup__schedule__pb2.CreateBackupScheduleRequest.SerializeToString,
|
|
1137
|
+
google_dot_spanner_dot_admin_dot_database_dot_v1_dot_backup__schedule__pb2.BackupSchedule.FromString,
|
|
1138
|
+
options,
|
|
1139
|
+
channel_credentials,
|
|
1140
|
+
insecure,
|
|
1141
|
+
call_credentials,
|
|
1142
|
+
compression,
|
|
1143
|
+
wait_for_ready,
|
|
1144
|
+
timeout,
|
|
1145
|
+
metadata,
|
|
1146
|
+
_registered_method=True,
|
|
1147
|
+
)
|
|
1148
|
+
|
|
1149
|
+
@staticmethod
|
|
1150
|
+
def GetBackupSchedule(
|
|
1151
|
+
request,
|
|
1152
|
+
target,
|
|
1153
|
+
options=(),
|
|
1154
|
+
channel_credentials=None,
|
|
1155
|
+
call_credentials=None,
|
|
1156
|
+
insecure=False,
|
|
1157
|
+
compression=None,
|
|
1158
|
+
wait_for_ready=None,
|
|
1159
|
+
timeout=None,
|
|
1160
|
+
metadata=None,
|
|
1161
|
+
):
|
|
1162
|
+
return grpc.experimental.unary_unary(
|
|
1163
|
+
request,
|
|
1164
|
+
target,
|
|
1165
|
+
"/google.spanner.admin.database.v1.DatabaseAdmin/GetBackupSchedule",
|
|
1166
|
+
google_dot_spanner_dot_admin_dot_database_dot_v1_dot_backup__schedule__pb2.GetBackupScheduleRequest.SerializeToString,
|
|
1167
|
+
google_dot_spanner_dot_admin_dot_database_dot_v1_dot_backup__schedule__pb2.BackupSchedule.FromString,
|
|
1168
|
+
options,
|
|
1169
|
+
channel_credentials,
|
|
1170
|
+
insecure,
|
|
1171
|
+
call_credentials,
|
|
1172
|
+
compression,
|
|
1173
|
+
wait_for_ready,
|
|
1174
|
+
timeout,
|
|
1175
|
+
metadata,
|
|
1176
|
+
_registered_method=True,
|
|
1177
|
+
)
|
|
1178
|
+
|
|
1179
|
+
@staticmethod
|
|
1180
|
+
def UpdateBackupSchedule(
|
|
1181
|
+
request,
|
|
1182
|
+
target,
|
|
1183
|
+
options=(),
|
|
1184
|
+
channel_credentials=None,
|
|
1185
|
+
call_credentials=None,
|
|
1186
|
+
insecure=False,
|
|
1187
|
+
compression=None,
|
|
1188
|
+
wait_for_ready=None,
|
|
1189
|
+
timeout=None,
|
|
1190
|
+
metadata=None,
|
|
1191
|
+
):
|
|
1192
|
+
return grpc.experimental.unary_unary(
|
|
1193
|
+
request,
|
|
1194
|
+
target,
|
|
1195
|
+
"/google.spanner.admin.database.v1.DatabaseAdmin/UpdateBackupSchedule",
|
|
1196
|
+
google_dot_spanner_dot_admin_dot_database_dot_v1_dot_backup__schedule__pb2.UpdateBackupScheduleRequest.SerializeToString,
|
|
1197
|
+
google_dot_spanner_dot_admin_dot_database_dot_v1_dot_backup__schedule__pb2.BackupSchedule.FromString,
|
|
1198
|
+
options,
|
|
1199
|
+
channel_credentials,
|
|
1200
|
+
insecure,
|
|
1201
|
+
call_credentials,
|
|
1202
|
+
compression,
|
|
1203
|
+
wait_for_ready,
|
|
1204
|
+
timeout,
|
|
1205
|
+
metadata,
|
|
1206
|
+
_registered_method=True,
|
|
1207
|
+
)
|
|
1208
|
+
|
|
1209
|
+
@staticmethod
|
|
1210
|
+
def DeleteBackupSchedule(
|
|
1211
|
+
request,
|
|
1212
|
+
target,
|
|
1213
|
+
options=(),
|
|
1214
|
+
channel_credentials=None,
|
|
1215
|
+
call_credentials=None,
|
|
1216
|
+
insecure=False,
|
|
1217
|
+
compression=None,
|
|
1218
|
+
wait_for_ready=None,
|
|
1219
|
+
timeout=None,
|
|
1220
|
+
metadata=None,
|
|
1221
|
+
):
|
|
1222
|
+
return grpc.experimental.unary_unary(
|
|
1223
|
+
request,
|
|
1224
|
+
target,
|
|
1225
|
+
"/google.spanner.admin.database.v1.DatabaseAdmin/DeleteBackupSchedule",
|
|
1226
|
+
google_dot_spanner_dot_admin_dot_database_dot_v1_dot_backup__schedule__pb2.DeleteBackupScheduleRequest.SerializeToString,
|
|
1227
|
+
google_dot_protobuf_dot_empty__pb2.Empty.FromString,
|
|
1228
|
+
options,
|
|
1229
|
+
channel_credentials,
|
|
1230
|
+
insecure,
|
|
1231
|
+
call_credentials,
|
|
1232
|
+
compression,
|
|
1233
|
+
wait_for_ready,
|
|
1234
|
+
timeout,
|
|
1235
|
+
metadata,
|
|
1236
|
+
_registered_method=True,
|
|
1237
|
+
)
|
|
1238
|
+
|
|
1239
|
+
@staticmethod
|
|
1240
|
+
def ListBackupSchedules(
|
|
1241
|
+
request,
|
|
1242
|
+
target,
|
|
1243
|
+
options=(),
|
|
1244
|
+
channel_credentials=None,
|
|
1245
|
+
call_credentials=None,
|
|
1246
|
+
insecure=False,
|
|
1247
|
+
compression=None,
|
|
1248
|
+
wait_for_ready=None,
|
|
1249
|
+
timeout=None,
|
|
1250
|
+
metadata=None,
|
|
1251
|
+
):
|
|
1252
|
+
return grpc.experimental.unary_unary(
|
|
1253
|
+
request,
|
|
1254
|
+
target,
|
|
1255
|
+
"/google.spanner.admin.database.v1.DatabaseAdmin/ListBackupSchedules",
|
|
1256
|
+
google_dot_spanner_dot_admin_dot_database_dot_v1_dot_backup__schedule__pb2.ListBackupSchedulesRequest.SerializeToString,
|
|
1257
|
+
google_dot_spanner_dot_admin_dot_database_dot_v1_dot_backup__schedule__pb2.ListBackupSchedulesResponse.FromString,
|
|
1258
|
+
options,
|
|
1259
|
+
channel_credentials,
|
|
1260
|
+
insecure,
|
|
1261
|
+
call_credentials,
|
|
1262
|
+
compression,
|
|
1263
|
+
wait_for_ready,
|
|
1264
|
+
timeout,
|
|
1265
|
+
metadata,
|
|
1266
|
+
_registered_method=True,
|
|
1267
|
+
)
|