weave-python 0.28.1__py3-none-any.whl → 0.30.3__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.
- weave/weaveapi/auth/v1/service_pb2.py +194 -98
- weave/weaveapi/auth/v1/service_pb2.pyi +1288 -1134
- weave/weaveapi/auth/v1/service_pb2_grpc.pyi +248 -335
- weave/weaveapi/auth/v1/session_pb2.py +14 -6
- weave/weaveapi/auth/v1/session_pb2.pyi +109 -89
- weave/weaveapi/auth/v1/session_pb2_grpc.pyi +11 -10
- weave/weaveapi/auth/v1/usage_pb2.py +18 -14
- weave/weaveapi/auth/v1/usage_pb2.pyi +251 -197
- weave/weaveapi/auth/v1/usage_pb2_grpc.pyi +11 -10
- weave/weaveapi/auth/v1/user_pb2.py +60 -18
- weave/weaveapi/auth/v1/user_pb2.pyi +588 -505
- weave/weaveapi/auth/v1/user_pb2_grpc.pyi +11 -10
- weave/weaveapi/generate/v1/configuration_pb2.py +31 -19
- weave/weaveapi/generate/v1/configuration_pb2.pyi +277 -241
- weave/weaveapi/generate/v1/configuration_pb2_grpc.pyi +11 -10
- weave/weaveapi/generate/v1/generate_pb2.py +32 -6
- weave/weaveapi/generate/v1/generate_pb2.pyi +138 -40
- weave/weaveapi/generate/v1/generate_pb2_grpc.pyi +11 -10
- weave/weaveapi/generate/v1/service_pb2.py +52 -22
- weave/weaveapi/generate/v1/service_pb2.pyi +264 -135
- weave/weaveapi/generate/v1/service_pb2_grpc.py +47 -0
- weave/weaveapi/generate/v1/service_pb2_grpc.pyi +89 -78
- weave/weaveapi/llmx/v1/architecture_pb2.py +42 -42
- weave/weaveapi/llmx/v1/architecture_pb2.pyi +664 -555
- weave/weaveapi/llmx/v1/architecture_pb2_grpc.pyi +11 -10
- weave/weaveapi/llmx/v1/capabilities_pb2.py +88 -56
- weave/weaveapi/llmx/v1/capabilities_pb2.pyi +967 -852
- weave/weaveapi/llmx/v1/capabilities_pb2_grpc.pyi +11 -10
- weave/weaveapi/llmx/v1/model_pb2.py +56 -20
- weave/weaveapi/llmx/v1/model_pb2.pyi +533 -455
- weave/weaveapi/llmx/v1/model_pb2_grpc.pyi +11 -10
- weave/weaveapi/llmx/v1/pricing_pb2.py +24 -20
- weave/weaveapi/llmx/v1/pricing_pb2.pyi +194 -172
- weave/weaveapi/llmx/v1/pricing_pb2_grpc.pyi +11 -10
- weave/weaveapi/llmx/v1/provider_pb2.py +6 -6
- weave/weaveapi/llmx/v1/provider_pb2.pyi +84 -59
- weave/weaveapi/llmx/v1/provider_pb2_grpc.pyi +11 -10
- weave/weaveapi/llmx/v1/service_pb2.py +228 -90
- weave/weaveapi/llmx/v1/service_pb2.pyi +1651 -1403
- weave/weaveapi/llmx/v1/service_pb2_grpc.pyi +160 -203
- weave/weaveapi/mcpregistry/v1/server_pb2.py +16 -10
- weave/weaveapi/mcpregistry/v1/server_pb2.pyi +143 -121
- weave/weaveapi/mcpregistry/v1/server_pb2_grpc.pyi +11 -10
- weave/weaveapi/mcpregistry/v1/service_pb2.py +51 -31
- weave/weaveapi/mcpregistry/v1/service_pb2.pyi +132 -122
- weave/weaveapi/mcpregistry/v1/service_pb2_grpc.pyi +87 -112
- weave/weaveapi/payment/v1/invoice_pb2.py +38 -12
- weave/weaveapi/payment/v1/invoice_pb2.pyi +352 -291
- weave/weaveapi/payment/v1/invoice_pb2_grpc.pyi +11 -10
- weave/weaveapi/payment/v1/service_pb2.py +264 -98
- weave/weaveapi/payment/v1/service_pb2.pyi +1381 -1242
- weave/weaveapi/payment/v1/service_pb2_grpc.pyi +229 -319
- weave/weaveapi/payment/v1/subscription_pb2.py +99 -23
- weave/weaveapi/payment/v1/subscription_pb2.pyi +727 -611
- weave/weaveapi/payment/v1/subscription_pb2_grpc.pyi +11 -10
- weave/weaveapi/storage/v1/auth_pb2.py +6 -6
- weave/weaveapi/storage/v1/auth_pb2.pyi +42 -29
- weave/weaveapi/storage/v1/auth_pb2_grpc.pyi +11 -10
- weave/weaveapi/storage/v1/nosql_database_pb2.py +47 -23
- weave/weaveapi/storage/v1/nosql_database_pb2.pyi +438 -372
- weave/weaveapi/storage/v1/nosql_database_pb2_grpc.pyi +11 -10
- weave/weaveapi/storage/v1/object_store_pb2.py +27 -13
- weave/weaveapi/storage/v1/object_store_pb2.pyi +203 -187
- weave/weaveapi/storage/v1/object_store_pb2_grpc.pyi +11 -10
- weave/weaveapi/storage/v1/service_pb2.py +96 -36
- weave/weaveapi/storage/v1/service_pb2.pyi +414 -357
- weave/weaveapi/storage/v1/service_pb2_grpc.pyi +88 -107
- weave/weaveapi/storage/v1/sql_database_pb2.py +39 -23
- weave/weaveapi/storage/v1/sql_database_pb2.pyi +481 -400
- weave/weaveapi/storage/v1/sql_database_pb2_grpc.pyi +11 -10
- weave/weaveapi/storage/v1/storage_pb2.py +20 -6
- weave/weaveapi/storage/v1/storage_pb2.pyi +79 -70
- weave/weaveapi/storage/v1/storage_pb2_grpc.pyi +11 -10
- weave/weaveapi/synthesize/v1/dataset_pb2.py +14 -12
- weave/weaveapi/synthesize/v1/dataset_pb2.pyi +158 -128
- weave/weaveapi/synthesize/v1/dataset_pb2_grpc.pyi +11 -10
- weave/weaveapi/synthesize/v1/inline_data_pb2.py +9 -9
- weave/weaveapi/synthesize/v1/inline_data_pb2.pyi +31 -27
- weave/weaveapi/synthesize/v1/inline_data_pb2_grpc.pyi +11 -10
- weave/weaveapi/synthesize/v1/relationship_pb2.py +19 -11
- weave/weaveapi/synthesize/v1/relationship_pb2.pyi +67 -64
- weave/weaveapi/synthesize/v1/relationship_pb2_grpc.pyi +11 -10
- weave/weaveapi/synthesize/v1/service_pb2.py +42 -24
- weave/weaveapi/synthesize/v1/service_pb2.pyi +202 -168
- weave/weaveapi/synthesize/v1/service_pb2_grpc.pyi +67 -79
- weave/weaveapi/synthesize/v1/training_pb2.py +19 -13
- weave/weaveapi/synthesize/v1/training_pb2.pyi +119 -106
- weave/weaveapi/synthesize/v1/training_pb2_grpc.pyi +11 -10
- weave/weavesql/llmxdb/capabilities.py +487 -0
- weave/weavesql/llmxdb/changes.py +297 -0
- weave/weavesql/llmxdb/models.py +594 -0
- weave/weavesql/llmxdb/providers.py +348 -0
- weave/weavesql/llmxdb/scraper_runs.py +287 -0
- weave/weavesql/llmxdb/search.py +721 -0
- weave/weavesql/weavedb/dataset.py +75 -0
- weave/weavesql/weavedb/models.py +135 -0
- weave/weavesql/weavedb/relationships.py +72 -0
- weave/weavesql/weavedb/storage.py +113 -0
- weave/weavesql/weavedb/synthesizer.py +107 -0
- weave_python-0.30.3.dist-info/METADATA +52 -0
- weave_python-0.30.3.dist-info/RECORD +131 -0
- {weave_python-0.28.1.dist-info → weave_python-0.30.3.dist-info}/WHEEL +1 -1
- weave_python-0.30.3.dist-info/licenses/LICENSE +120 -0
- weave_python-0.28.1.dist-info/METADATA +0 -6
- weave_python-0.28.1.dist-info/RECORD +0 -119
|
@@ -3,524 +3,581 @@
|
|
|
3
3
|
isort:skip_file
|
|
4
4
|
"""
|
|
5
5
|
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
import
|
|
12
|
-
import
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
6
|
+
from collections import abc as _abc
|
|
7
|
+
from google.protobuf import descriptor as _descriptor
|
|
8
|
+
from google.protobuf import message as _message
|
|
9
|
+
from google.protobuf.internal import containers as _containers
|
|
10
|
+
from weaveapi.storage.v1 import storage_pb2 as _storage_pb2
|
|
11
|
+
import builtins as _builtins
|
|
12
|
+
import sys
|
|
13
|
+
import typing as _typing
|
|
14
|
+
|
|
15
|
+
if sys.version_info >= (3, 10):
|
|
16
|
+
from typing import TypeAlias as _TypeAlias
|
|
17
|
+
else:
|
|
18
|
+
from typing_extensions import TypeAlias as _TypeAlias
|
|
19
|
+
|
|
20
|
+
DESCRIPTOR: _descriptor.FileDescriptor
|
|
21
|
+
|
|
22
|
+
@_typing.final
|
|
23
|
+
class StorageDetails(_message.Message):
|
|
18
24
|
"""StorageConfig represents a named storage configuration with metadata"""
|
|
19
25
|
|
|
20
|
-
DESCRIPTOR:
|
|
26
|
+
DESCRIPTOR: _descriptor.Descriptor
|
|
21
27
|
|
|
22
|
-
ID_FIELD_NUMBER:
|
|
23
|
-
NAME_FIELD_NUMBER:
|
|
24
|
-
DESCRIPTION_FIELD_NUMBER:
|
|
25
|
-
STORAGE_CONNECTION_FIELD_NUMBER:
|
|
26
|
-
id:
|
|
28
|
+
ID_FIELD_NUMBER: _builtins.int
|
|
29
|
+
NAME_FIELD_NUMBER: _builtins.int
|
|
30
|
+
DESCRIPTION_FIELD_NUMBER: _builtins.int
|
|
31
|
+
STORAGE_CONNECTION_FIELD_NUMBER: _builtins.int
|
|
32
|
+
id: _builtins.str
|
|
27
33
|
"""Unique identifier for the storage configuration"""
|
|
28
|
-
name:
|
|
34
|
+
name: _builtins.str
|
|
29
35
|
"""User-friendly name for the storage configuration"""
|
|
30
|
-
description:
|
|
36
|
+
description: _builtins.str
|
|
31
37
|
"""Optional description"""
|
|
32
|
-
@property
|
|
33
|
-
def storage_connection(self) ->
|
|
38
|
+
@_builtins.property
|
|
39
|
+
def storage_connection(self) -> _storage_pb2.StorageConnection:
|
|
34
40
|
"""The actual storage configuration"""
|
|
35
41
|
|
|
36
42
|
def __init__(
|
|
37
43
|
self,
|
|
38
44
|
*,
|
|
39
|
-
id:
|
|
40
|
-
name:
|
|
41
|
-
description:
|
|
42
|
-
storage_connection:
|
|
43
|
-
| None = ...,
|
|
45
|
+
id: _builtins.str | None = ...,
|
|
46
|
+
name: _builtins.str | None = ...,
|
|
47
|
+
description: _builtins.str | None = ...,
|
|
48
|
+
storage_connection: _storage_pb2.StorageConnection | None = ...,
|
|
44
49
|
) -> None: ...
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
50
|
+
_HasFieldArgType: _TypeAlias = _typing.Literal[
|
|
51
|
+
"description",
|
|
52
|
+
b"description",
|
|
53
|
+
"id",
|
|
54
|
+
b"id",
|
|
55
|
+
"name",
|
|
56
|
+
b"name",
|
|
57
|
+
"storage_connection",
|
|
58
|
+
b"storage_connection",
|
|
59
|
+
] # noqa: Y015
|
|
60
|
+
def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ...
|
|
61
|
+
_ClearFieldArgType: _TypeAlias = _typing.Literal[
|
|
62
|
+
"description",
|
|
63
|
+
b"description",
|
|
64
|
+
"id",
|
|
65
|
+
b"id",
|
|
66
|
+
"name",
|
|
67
|
+
b"name",
|
|
68
|
+
"storage_connection",
|
|
69
|
+
b"storage_connection",
|
|
70
|
+
] # noqa: Y015
|
|
71
|
+
def ClearField(self, field_name: _ClearFieldArgType) -> None: ...
|
|
72
|
+
|
|
73
|
+
Global___StorageDetails: _TypeAlias = StorageDetails # noqa: Y015
|
|
74
|
+
|
|
75
|
+
@_typing.final
|
|
76
|
+
class CreateStorageRequest(_message.Message):
|
|
66
77
|
"""CreateStorageRequest is used to create a new storage configuration"""
|
|
67
78
|
|
|
68
|
-
DESCRIPTOR:
|
|
79
|
+
DESCRIPTOR: _descriptor.Descriptor
|
|
69
80
|
|
|
70
|
-
NAME_FIELD_NUMBER:
|
|
71
|
-
DESCRIPTION_FIELD_NUMBER:
|
|
72
|
-
STORAGE_CONNECTION_FIELD_NUMBER:
|
|
73
|
-
name:
|
|
81
|
+
NAME_FIELD_NUMBER: _builtins.int
|
|
82
|
+
DESCRIPTION_FIELD_NUMBER: _builtins.int
|
|
83
|
+
STORAGE_CONNECTION_FIELD_NUMBER: _builtins.int
|
|
84
|
+
name: _builtins.str
|
|
74
85
|
"""User-friendly name for the storage configuration"""
|
|
75
|
-
description:
|
|
86
|
+
description: _builtins.str
|
|
76
87
|
"""Optional description"""
|
|
77
|
-
@property
|
|
78
|
-
def storage_connection(self) ->
|
|
88
|
+
@_builtins.property
|
|
89
|
+
def storage_connection(self) -> _storage_pb2.StorageConnection:
|
|
79
90
|
"""The storage configuration to create"""
|
|
80
91
|
|
|
81
92
|
def __init__(
|
|
82
93
|
self,
|
|
83
94
|
*,
|
|
84
|
-
name:
|
|
85
|
-
description:
|
|
86
|
-
storage_connection:
|
|
87
|
-
| None = ...,
|
|
88
|
-
) -> None: ...
|
|
89
|
-
def HasField(
|
|
90
|
-
self, field_name: typing.Literal["storage_connection", b"storage_connection"]
|
|
91
|
-
) -> builtins.bool: ...
|
|
92
|
-
def ClearField(
|
|
93
|
-
self,
|
|
94
|
-
field_name: typing.Literal[
|
|
95
|
-
"description",
|
|
96
|
-
b"description",
|
|
97
|
-
"name",
|
|
98
|
-
b"name",
|
|
99
|
-
"storage_connection",
|
|
100
|
-
b"storage_connection",
|
|
101
|
-
],
|
|
95
|
+
name: _builtins.str | None = ...,
|
|
96
|
+
description: _builtins.str | None = ...,
|
|
97
|
+
storage_connection: _storage_pb2.StorageConnection | None = ...,
|
|
102
98
|
) -> None: ...
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
99
|
+
_HasFieldArgType: _TypeAlias = _typing.Literal[
|
|
100
|
+
"description",
|
|
101
|
+
b"description",
|
|
102
|
+
"name",
|
|
103
|
+
b"name",
|
|
104
|
+
"storage_connection",
|
|
105
|
+
b"storage_connection",
|
|
106
|
+
] # noqa: Y015
|
|
107
|
+
def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ...
|
|
108
|
+
_ClearFieldArgType: _TypeAlias = _typing.Literal[
|
|
109
|
+
"description",
|
|
110
|
+
b"description",
|
|
111
|
+
"name",
|
|
112
|
+
b"name",
|
|
113
|
+
"storage_connection",
|
|
114
|
+
b"storage_connection",
|
|
115
|
+
] # noqa: Y015
|
|
116
|
+
def ClearField(self, field_name: _ClearFieldArgType) -> None: ...
|
|
117
|
+
|
|
118
|
+
Global___CreateStorageRequest: _TypeAlias = CreateStorageRequest # noqa: Y015
|
|
119
|
+
|
|
120
|
+
@_typing.final
|
|
121
|
+
class CreateStorageResponse(_message.Message):
|
|
108
122
|
"""CreateStorageResponse contains the created storage configuration"""
|
|
109
123
|
|
|
110
|
-
DESCRIPTOR:
|
|
124
|
+
DESCRIPTOR: _descriptor.Descriptor
|
|
111
125
|
|
|
112
|
-
STORAGE_DETAILS_FIELD_NUMBER:
|
|
113
|
-
@property
|
|
114
|
-
def storage_details(self) ->
|
|
126
|
+
STORAGE_DETAILS_FIELD_NUMBER: _builtins.int
|
|
127
|
+
@_builtins.property
|
|
128
|
+
def storage_details(self) -> Global___StorageDetails:
|
|
115
129
|
"""The created storage configuration"""
|
|
116
130
|
|
|
117
131
|
def __init__(
|
|
118
132
|
self,
|
|
119
133
|
*,
|
|
120
|
-
storage_details:
|
|
121
|
-
) -> None: ...
|
|
122
|
-
def HasField(
|
|
123
|
-
self, field_name: typing.Literal["storage_details", b"storage_details"]
|
|
124
|
-
) -> builtins.bool: ...
|
|
125
|
-
def ClearField(
|
|
126
|
-
self, field_name: typing.Literal["storage_details", b"storage_details"]
|
|
134
|
+
storage_details: Global___StorageDetails | None = ...,
|
|
127
135
|
) -> None: ...
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
136
|
+
_HasFieldArgType: _TypeAlias = _typing.Literal[
|
|
137
|
+
"storage_details", b"storage_details"
|
|
138
|
+
] # noqa: Y015
|
|
139
|
+
def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ...
|
|
140
|
+
_ClearFieldArgType: _TypeAlias = _typing.Literal[
|
|
141
|
+
"storage_details", b"storage_details"
|
|
142
|
+
] # noqa: Y015
|
|
143
|
+
def ClearField(self, field_name: _ClearFieldArgType) -> None: ...
|
|
144
|
+
|
|
145
|
+
Global___CreateStorageResponse: _TypeAlias = CreateStorageResponse # noqa: Y015
|
|
146
|
+
|
|
147
|
+
@_typing.final
|
|
148
|
+
class GetStorageRequest(_message.Message):
|
|
133
149
|
"""GetStorageRequest is used to retrieve a storage configuration by ID"""
|
|
134
150
|
|
|
135
|
-
DESCRIPTOR:
|
|
151
|
+
DESCRIPTOR: _descriptor.Descriptor
|
|
136
152
|
|
|
137
|
-
ID_FIELD_NUMBER:
|
|
138
|
-
id:
|
|
153
|
+
ID_FIELD_NUMBER: _builtins.int
|
|
154
|
+
id: _builtins.str
|
|
139
155
|
"""ID of the storage configuration to retrieve"""
|
|
140
156
|
def __init__(
|
|
141
157
|
self,
|
|
142
158
|
*,
|
|
143
|
-
id:
|
|
159
|
+
id: _builtins.str | None = ...,
|
|
144
160
|
) -> None: ...
|
|
145
|
-
|
|
161
|
+
_HasFieldArgType: _TypeAlias = _typing.Literal["id", b"id"] # noqa: Y015
|
|
162
|
+
def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ...
|
|
163
|
+
_ClearFieldArgType: _TypeAlias = _typing.Literal["id", b"id"] # noqa: Y015
|
|
164
|
+
def ClearField(self, field_name: _ClearFieldArgType) -> None: ...
|
|
146
165
|
|
|
147
|
-
|
|
166
|
+
Global___GetStorageRequest: _TypeAlias = GetStorageRequest # noqa: Y015
|
|
148
167
|
|
|
149
|
-
@
|
|
150
|
-
class GetStorageResponse(
|
|
168
|
+
@_typing.final
|
|
169
|
+
class GetStorageResponse(_message.Message):
|
|
151
170
|
"""GetStorageResponse contains the requested storage configuration"""
|
|
152
171
|
|
|
153
|
-
DESCRIPTOR:
|
|
172
|
+
DESCRIPTOR: _descriptor.Descriptor
|
|
154
173
|
|
|
155
|
-
STORAGE_DETAILS_FIELD_NUMBER:
|
|
156
|
-
@property
|
|
157
|
-
def storage_details(self) ->
|
|
174
|
+
STORAGE_DETAILS_FIELD_NUMBER: _builtins.int
|
|
175
|
+
@_builtins.property
|
|
176
|
+
def storage_details(self) -> Global___StorageDetails:
|
|
158
177
|
"""The requested storage configuration"""
|
|
159
178
|
|
|
160
179
|
def __init__(
|
|
161
180
|
self,
|
|
162
181
|
*,
|
|
163
|
-
storage_details:
|
|
182
|
+
storage_details: Global___StorageDetails | None = ...,
|
|
164
183
|
) -> None: ...
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
def
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
184
|
+
_HasFieldArgType: _TypeAlias = _typing.Literal[
|
|
185
|
+
"storage_details", b"storage_details"
|
|
186
|
+
] # noqa: Y015
|
|
187
|
+
def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ...
|
|
188
|
+
_ClearFieldArgType: _TypeAlias = _typing.Literal[
|
|
189
|
+
"storage_details", b"storage_details"
|
|
190
|
+
] # noqa: Y015
|
|
191
|
+
def ClearField(self, field_name: _ClearFieldArgType) -> None: ...
|
|
192
|
+
|
|
193
|
+
Global___GetStorageResponse: _TypeAlias = GetStorageResponse # noqa: Y015
|
|
194
|
+
|
|
195
|
+
@_typing.final
|
|
196
|
+
class ListStoragesRequest(_message.Message):
|
|
176
197
|
"""ListStoragesRequest is used to list storage configurations with optional filtering"""
|
|
177
198
|
|
|
178
|
-
DESCRIPTOR:
|
|
199
|
+
DESCRIPTOR: _descriptor.Descriptor
|
|
179
200
|
|
|
180
|
-
PAGE_SIZE_FIELD_NUMBER:
|
|
181
|
-
PAGE_TOKEN_FIELD_NUMBER:
|
|
182
|
-
STORAGE_TYPE_FILTER_FIELD_NUMBER:
|
|
183
|
-
page_size:
|
|
201
|
+
PAGE_SIZE_FIELD_NUMBER: _builtins.int
|
|
202
|
+
PAGE_TOKEN_FIELD_NUMBER: _builtins.int
|
|
203
|
+
STORAGE_TYPE_FILTER_FIELD_NUMBER: _builtins.int
|
|
204
|
+
page_size: _builtins.int
|
|
184
205
|
"""Maximum number of results to return"""
|
|
185
|
-
page_token:
|
|
206
|
+
page_token: _builtins.str
|
|
186
207
|
"""Token for pagination"""
|
|
187
|
-
@property
|
|
188
|
-
def storage_type_filter(self) ->
|
|
208
|
+
@_builtins.property
|
|
209
|
+
def storage_type_filter(self) -> Global___StorageTypeFilter:
|
|
189
210
|
"""Optional filter by storage type"""
|
|
190
211
|
|
|
191
212
|
def __init__(
|
|
192
213
|
self,
|
|
193
214
|
*,
|
|
194
|
-
page_size:
|
|
195
|
-
page_token:
|
|
196
|
-
storage_type_filter:
|
|
197
|
-
) -> None: ...
|
|
198
|
-
def HasField(
|
|
199
|
-
self, field_name: typing.Literal["storage_type_filter", b"storage_type_filter"]
|
|
200
|
-
) -> builtins.bool: ...
|
|
201
|
-
def ClearField(
|
|
202
|
-
self,
|
|
203
|
-
field_name: typing.Literal[
|
|
204
|
-
"page_size",
|
|
205
|
-
b"page_size",
|
|
206
|
-
"page_token",
|
|
207
|
-
b"page_token",
|
|
208
|
-
"storage_type_filter",
|
|
209
|
-
b"storage_type_filter",
|
|
210
|
-
],
|
|
215
|
+
page_size: _builtins.int | None = ...,
|
|
216
|
+
page_token: _builtins.str | None = ...,
|
|
217
|
+
storage_type_filter: Global___StorageTypeFilter | None = ...,
|
|
211
218
|
) -> None: ...
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
219
|
+
_HasFieldArgType: _TypeAlias = _typing.Literal[
|
|
220
|
+
"page_size",
|
|
221
|
+
b"page_size",
|
|
222
|
+
"page_token",
|
|
223
|
+
b"page_token",
|
|
224
|
+
"storage_type_filter",
|
|
225
|
+
b"storage_type_filter",
|
|
226
|
+
] # noqa: Y015
|
|
227
|
+
def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ...
|
|
228
|
+
_ClearFieldArgType: _TypeAlias = _typing.Literal[
|
|
229
|
+
"page_size",
|
|
230
|
+
b"page_size",
|
|
231
|
+
"page_token",
|
|
232
|
+
b"page_token",
|
|
233
|
+
"storage_type_filter",
|
|
234
|
+
b"storage_type_filter",
|
|
235
|
+
] # noqa: Y015
|
|
236
|
+
def ClearField(self, field_name: _ClearFieldArgType) -> None: ...
|
|
237
|
+
|
|
238
|
+
Global___ListStoragesRequest: _TypeAlias = ListStoragesRequest # noqa: Y015
|
|
239
|
+
|
|
240
|
+
@_typing.final
|
|
241
|
+
class StorageTypeFilter(_message.Message):
|
|
217
242
|
"""StorageTypeFilter allows filtering storage configurations by type"""
|
|
218
243
|
|
|
219
|
-
DESCRIPTOR:
|
|
244
|
+
DESCRIPTOR: _descriptor.Descriptor
|
|
220
245
|
|
|
221
|
-
INCLUDE_OBJECT_STORES_FIELD_NUMBER:
|
|
222
|
-
INCLUDE_SQL_DATABASES_FIELD_NUMBER:
|
|
223
|
-
INCLUDE_NOSQL_DATABASES_FIELD_NUMBER:
|
|
224
|
-
include_object_stores:
|
|
246
|
+
INCLUDE_OBJECT_STORES_FIELD_NUMBER: _builtins.int
|
|
247
|
+
INCLUDE_SQL_DATABASES_FIELD_NUMBER: _builtins.int
|
|
248
|
+
INCLUDE_NOSQL_DATABASES_FIELD_NUMBER: _builtins.int
|
|
249
|
+
include_object_stores: _builtins.bool
|
|
225
250
|
"""If true, include object stores"""
|
|
226
|
-
include_sql_databases:
|
|
251
|
+
include_sql_databases: _builtins.bool
|
|
227
252
|
"""If true, include SQL databases"""
|
|
228
|
-
include_nosql_databases:
|
|
253
|
+
include_nosql_databases: _builtins.bool
|
|
229
254
|
"""If true, include NoSQL databases"""
|
|
230
255
|
def __init__(
|
|
231
256
|
self,
|
|
232
257
|
*,
|
|
233
|
-
include_object_stores:
|
|
234
|
-
include_sql_databases:
|
|
235
|
-
include_nosql_databases:
|
|
258
|
+
include_object_stores: _builtins.bool | None = ...,
|
|
259
|
+
include_sql_databases: _builtins.bool | None = ...,
|
|
260
|
+
include_nosql_databases: _builtins.bool | None = ...,
|
|
236
261
|
) -> None: ...
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
262
|
+
_HasFieldArgType: _TypeAlias = _typing.Literal[
|
|
263
|
+
"include_nosql_databases",
|
|
264
|
+
b"include_nosql_databases",
|
|
265
|
+
"include_object_stores",
|
|
266
|
+
b"include_object_stores",
|
|
267
|
+
"include_sql_databases",
|
|
268
|
+
b"include_sql_databases",
|
|
269
|
+
] # noqa: Y015
|
|
270
|
+
def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ...
|
|
271
|
+
_ClearFieldArgType: _TypeAlias = _typing.Literal[
|
|
272
|
+
"include_nosql_databases",
|
|
273
|
+
b"include_nosql_databases",
|
|
274
|
+
"include_object_stores",
|
|
275
|
+
b"include_object_stores",
|
|
276
|
+
"include_sql_databases",
|
|
277
|
+
b"include_sql_databases",
|
|
278
|
+
] # noqa: Y015
|
|
279
|
+
def ClearField(self, field_name: _ClearFieldArgType) -> None: ...
|
|
280
|
+
|
|
281
|
+
Global___StorageTypeFilter: _TypeAlias = StorageTypeFilter # noqa: Y015
|
|
282
|
+
|
|
283
|
+
@_typing.final
|
|
284
|
+
class ListStoragesResponse(_message.Message):
|
|
253
285
|
"""ListStoragesResponse contains the list of storage configurations"""
|
|
254
286
|
|
|
255
|
-
DESCRIPTOR:
|
|
287
|
+
DESCRIPTOR: _descriptor.Descriptor
|
|
256
288
|
|
|
257
|
-
STORAGE_DETAILS_FIELD_NUMBER:
|
|
258
|
-
NEXT_PAGE_TOKEN_FIELD_NUMBER:
|
|
259
|
-
TOTAL_COUNT_FIELD_NUMBER:
|
|
260
|
-
next_page_token:
|
|
289
|
+
STORAGE_DETAILS_FIELD_NUMBER: _builtins.int
|
|
290
|
+
NEXT_PAGE_TOKEN_FIELD_NUMBER: _builtins.int
|
|
291
|
+
TOTAL_COUNT_FIELD_NUMBER: _builtins.int
|
|
292
|
+
next_page_token: _builtins.str
|
|
261
293
|
"""Token for pagination"""
|
|
262
|
-
total_count:
|
|
294
|
+
total_count: _builtins.int
|
|
263
295
|
"""Total count of storage configurations matching the request"""
|
|
264
|
-
@property
|
|
296
|
+
@_builtins.property
|
|
265
297
|
def storage_details(
|
|
266
298
|
self,
|
|
267
|
-
) ->
|
|
268
|
-
global___StorageDetails
|
|
269
|
-
]:
|
|
299
|
+
) -> _containers.RepeatedCompositeFieldContainer[Global___StorageDetails]:
|
|
270
300
|
"""List of storage configurations"""
|
|
271
301
|
|
|
272
302
|
def __init__(
|
|
273
303
|
self,
|
|
274
304
|
*,
|
|
275
|
-
storage_details:
|
|
276
|
-
next_page_token:
|
|
277
|
-
total_count:
|
|
278
|
-
) -> None: ...
|
|
279
|
-
def ClearField(
|
|
280
|
-
self,
|
|
281
|
-
field_name: typing.Literal[
|
|
282
|
-
"next_page_token",
|
|
283
|
-
b"next_page_token",
|
|
284
|
-
"storage_details",
|
|
285
|
-
b"storage_details",
|
|
286
|
-
"total_count",
|
|
287
|
-
b"total_count",
|
|
288
|
-
],
|
|
305
|
+
storage_details: _abc.Iterable[Global___StorageDetails] | None = ...,
|
|
306
|
+
next_page_token: _builtins.str | None = ...,
|
|
307
|
+
total_count: _builtins.int | None = ...,
|
|
289
308
|
) -> None: ...
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
309
|
+
_HasFieldArgType: _TypeAlias = _typing.Literal[
|
|
310
|
+
"next_page_token",
|
|
311
|
+
b"next_page_token",
|
|
312
|
+
"storage_details",
|
|
313
|
+
b"storage_details",
|
|
314
|
+
"total_count",
|
|
315
|
+
b"total_count",
|
|
316
|
+
] # noqa: Y015
|
|
317
|
+
def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ...
|
|
318
|
+
_ClearFieldArgType: _TypeAlias = _typing.Literal[
|
|
319
|
+
"next_page_token",
|
|
320
|
+
b"next_page_token",
|
|
321
|
+
"storage_details",
|
|
322
|
+
b"storage_details",
|
|
323
|
+
"total_count",
|
|
324
|
+
b"total_count",
|
|
325
|
+
] # noqa: Y015
|
|
326
|
+
def ClearField(self, field_name: _ClearFieldArgType) -> None: ...
|
|
327
|
+
|
|
328
|
+
Global___ListStoragesResponse: _TypeAlias = ListStoragesResponse # noqa: Y015
|
|
329
|
+
|
|
330
|
+
@_typing.final
|
|
331
|
+
class UpdateStorageRequest(_message.Message):
|
|
295
332
|
"""UpdateStorageRequest is used to update an existing storage configuration"""
|
|
296
333
|
|
|
297
|
-
DESCRIPTOR:
|
|
334
|
+
DESCRIPTOR: _descriptor.Descriptor
|
|
298
335
|
|
|
299
|
-
ID_FIELD_NUMBER:
|
|
300
|
-
NAME_FIELD_NUMBER:
|
|
301
|
-
DESCRIPTION_FIELD_NUMBER:
|
|
302
|
-
STORAGE_CONNECTION_FIELD_NUMBER:
|
|
303
|
-
id:
|
|
336
|
+
ID_FIELD_NUMBER: _builtins.int
|
|
337
|
+
NAME_FIELD_NUMBER: _builtins.int
|
|
338
|
+
DESCRIPTION_FIELD_NUMBER: _builtins.int
|
|
339
|
+
STORAGE_CONNECTION_FIELD_NUMBER: _builtins.int
|
|
340
|
+
id: _builtins.str
|
|
304
341
|
"""ID of the storage configuration to update"""
|
|
305
|
-
name:
|
|
342
|
+
name: _builtins.str
|
|
306
343
|
"""New name (optional)"""
|
|
307
|
-
description:
|
|
344
|
+
description: _builtins.str
|
|
308
345
|
"""New description (optional)"""
|
|
309
|
-
@property
|
|
310
|
-
def storage_connection(self) ->
|
|
346
|
+
@_builtins.property
|
|
347
|
+
def storage_connection(self) -> _storage_pb2.StorageConnection:
|
|
311
348
|
"""New storage configuration (optional)"""
|
|
312
349
|
|
|
313
350
|
def __init__(
|
|
314
351
|
self,
|
|
315
352
|
*,
|
|
316
|
-
id:
|
|
317
|
-
name:
|
|
318
|
-
description:
|
|
319
|
-
storage_connection:
|
|
320
|
-
| None = ...,
|
|
353
|
+
id: _builtins.str | None = ...,
|
|
354
|
+
name: _builtins.str | None = ...,
|
|
355
|
+
description: _builtins.str | None = ...,
|
|
356
|
+
storage_connection: _storage_pb2.StorageConnection | None = ...,
|
|
321
357
|
) -> None: ...
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
358
|
+
_HasFieldArgType: _TypeAlias = _typing.Literal[
|
|
359
|
+
"description",
|
|
360
|
+
b"description",
|
|
361
|
+
"id",
|
|
362
|
+
b"id",
|
|
363
|
+
"name",
|
|
364
|
+
b"name",
|
|
365
|
+
"storage_connection",
|
|
366
|
+
b"storage_connection",
|
|
367
|
+
] # noqa: Y015
|
|
368
|
+
def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ...
|
|
369
|
+
_ClearFieldArgType: _TypeAlias = _typing.Literal[
|
|
370
|
+
"description",
|
|
371
|
+
b"description",
|
|
372
|
+
"id",
|
|
373
|
+
b"id",
|
|
374
|
+
"name",
|
|
375
|
+
b"name",
|
|
376
|
+
"storage_connection",
|
|
377
|
+
b"storage_connection",
|
|
378
|
+
] # noqa: Y015
|
|
379
|
+
def ClearField(self, field_name: _ClearFieldArgType) -> None: ...
|
|
380
|
+
|
|
381
|
+
Global___UpdateStorageRequest: _TypeAlias = UpdateStorageRequest # noqa: Y015
|
|
382
|
+
|
|
383
|
+
@_typing.final
|
|
384
|
+
class UpdateStorageResponse(_message.Message):
|
|
343
385
|
"""UpdateStorageResponse contains the updated storage configuration"""
|
|
344
386
|
|
|
345
|
-
DESCRIPTOR:
|
|
387
|
+
DESCRIPTOR: _descriptor.Descriptor
|
|
346
388
|
|
|
347
|
-
STORAGE_CONFIG_FIELD_NUMBER:
|
|
348
|
-
@property
|
|
349
|
-
def storage_config(self) ->
|
|
389
|
+
STORAGE_CONFIG_FIELD_NUMBER: _builtins.int
|
|
390
|
+
@_builtins.property
|
|
391
|
+
def storage_config(self) -> Global___StorageDetails:
|
|
350
392
|
"""The updated storage configuration"""
|
|
351
393
|
|
|
352
394
|
def __init__(
|
|
353
395
|
self,
|
|
354
396
|
*,
|
|
355
|
-
storage_config:
|
|
356
|
-
) -> None: ...
|
|
357
|
-
def HasField(
|
|
358
|
-
self, field_name: typing.Literal["storage_config", b"storage_config"]
|
|
359
|
-
) -> builtins.bool: ...
|
|
360
|
-
def ClearField(
|
|
361
|
-
self, field_name: typing.Literal["storage_config", b"storage_config"]
|
|
397
|
+
storage_config: Global___StorageDetails | None = ...,
|
|
362
398
|
) -> None: ...
|
|
399
|
+
_HasFieldArgType: _TypeAlias = _typing.Literal["storage_config", b"storage_config"] # noqa: Y015
|
|
400
|
+
def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ...
|
|
401
|
+
_ClearFieldArgType: _TypeAlias = _typing.Literal[
|
|
402
|
+
"storage_config", b"storage_config"
|
|
403
|
+
] # noqa: Y015
|
|
404
|
+
def ClearField(self, field_name: _ClearFieldArgType) -> None: ...
|
|
363
405
|
|
|
364
|
-
|
|
406
|
+
Global___UpdateStorageResponse: _TypeAlias = UpdateStorageResponse # noqa: Y015
|
|
365
407
|
|
|
366
|
-
@
|
|
367
|
-
class DeleteStorageRequest(
|
|
408
|
+
@_typing.final
|
|
409
|
+
class DeleteStorageRequest(_message.Message):
|
|
368
410
|
"""DeleteStorageRequest is used to delete a storage configuration"""
|
|
369
411
|
|
|
370
|
-
DESCRIPTOR:
|
|
412
|
+
DESCRIPTOR: _descriptor.Descriptor
|
|
371
413
|
|
|
372
|
-
ID_FIELD_NUMBER:
|
|
373
|
-
id:
|
|
414
|
+
ID_FIELD_NUMBER: _builtins.int
|
|
415
|
+
id: _builtins.str
|
|
374
416
|
"""ID of the storage configuration to delete"""
|
|
375
417
|
def __init__(
|
|
376
418
|
self,
|
|
377
419
|
*,
|
|
378
|
-
id:
|
|
420
|
+
id: _builtins.str | None = ...,
|
|
379
421
|
) -> None: ...
|
|
380
|
-
|
|
422
|
+
_HasFieldArgType: _TypeAlias = _typing.Literal["id", b"id"] # noqa: Y015
|
|
423
|
+
def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ...
|
|
424
|
+
_ClearFieldArgType: _TypeAlias = _typing.Literal["id", b"id"] # noqa: Y015
|
|
425
|
+
def ClearField(self, field_name: _ClearFieldArgType) -> None: ...
|
|
381
426
|
|
|
382
|
-
|
|
427
|
+
Global___DeleteStorageRequest: _TypeAlias = DeleteStorageRequest # noqa: Y015
|
|
383
428
|
|
|
384
|
-
@
|
|
385
|
-
class DeleteStorageResponse(
|
|
386
|
-
DESCRIPTOR:
|
|
429
|
+
@_typing.final
|
|
430
|
+
class DeleteStorageResponse(_message.Message):
|
|
431
|
+
DESCRIPTOR: _descriptor.Descriptor
|
|
387
432
|
|
|
388
433
|
def __init__(
|
|
389
434
|
self,
|
|
390
435
|
) -> None: ...
|
|
391
436
|
|
|
392
|
-
|
|
437
|
+
Global___DeleteStorageResponse: _TypeAlias = DeleteStorageResponse # noqa: Y015
|
|
393
438
|
|
|
394
|
-
@
|
|
395
|
-
class TestStorageConnectionRequest(
|
|
439
|
+
@_typing.final
|
|
440
|
+
class TestStorageConnectionRequest(_message.Message):
|
|
396
441
|
"""TestStorageConnectionRequest is used to test a storage connection"""
|
|
397
442
|
|
|
398
|
-
DESCRIPTOR:
|
|
443
|
+
DESCRIPTOR: _descriptor.Descriptor
|
|
399
444
|
|
|
400
|
-
ID_FIELD_NUMBER:
|
|
401
|
-
STORAGE_CONNECTION_FIELD_NUMBER:
|
|
402
|
-
id:
|
|
445
|
+
ID_FIELD_NUMBER: _builtins.int
|
|
446
|
+
STORAGE_CONNECTION_FIELD_NUMBER: _builtins.int
|
|
447
|
+
id: _builtins.str
|
|
403
448
|
"""ID of an existing storage configuration"""
|
|
404
|
-
@property
|
|
405
|
-
def storage_connection(self) ->
|
|
449
|
+
@_builtins.property
|
|
450
|
+
def storage_connection(self) -> _storage_pb2.StorageConnection:
|
|
406
451
|
"""A new storage configuration to test"""
|
|
407
452
|
|
|
408
453
|
def __init__(
|
|
409
454
|
self,
|
|
410
455
|
*,
|
|
411
|
-
id:
|
|
412
|
-
storage_connection:
|
|
413
|
-
| None = ...,
|
|
414
|
-
) -> None: ...
|
|
415
|
-
def HasField(
|
|
416
|
-
self,
|
|
417
|
-
field_name: typing.Literal[
|
|
418
|
-
"id",
|
|
419
|
-
b"id",
|
|
420
|
-
"storage_connection",
|
|
421
|
-
b"storage_connection",
|
|
422
|
-
"storage_spec",
|
|
423
|
-
b"storage_spec",
|
|
424
|
-
],
|
|
425
|
-
) -> builtins.bool: ...
|
|
426
|
-
def ClearField(
|
|
427
|
-
self,
|
|
428
|
-
field_name: typing.Literal[
|
|
429
|
-
"id",
|
|
430
|
-
b"id",
|
|
431
|
-
"storage_connection",
|
|
432
|
-
b"storage_connection",
|
|
433
|
-
"storage_spec",
|
|
434
|
-
b"storage_spec",
|
|
435
|
-
],
|
|
456
|
+
id: _builtins.str | None = ...,
|
|
457
|
+
storage_connection: _storage_pb2.StorageConnection | None = ...,
|
|
436
458
|
) -> None: ...
|
|
459
|
+
_HasFieldArgType: _TypeAlias = _typing.Literal[
|
|
460
|
+
"id",
|
|
461
|
+
b"id",
|
|
462
|
+
"storage_connection",
|
|
463
|
+
b"storage_connection",
|
|
464
|
+
"storage_spec",
|
|
465
|
+
b"storage_spec",
|
|
466
|
+
] # noqa: Y015
|
|
467
|
+
def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ...
|
|
468
|
+
_ClearFieldArgType: _TypeAlias = _typing.Literal[
|
|
469
|
+
"id",
|
|
470
|
+
b"id",
|
|
471
|
+
"storage_connection",
|
|
472
|
+
b"storage_connection",
|
|
473
|
+
"storage_spec",
|
|
474
|
+
b"storage_spec",
|
|
475
|
+
] # noqa: Y015
|
|
476
|
+
def ClearField(self, field_name: _ClearFieldArgType) -> None: ...
|
|
477
|
+
_WhichOneofReturnType_storage_spec: _TypeAlias = _typing.Literal[
|
|
478
|
+
"id", "storage_connection"
|
|
479
|
+
] # noqa: Y015
|
|
480
|
+
_WhichOneofArgType_storage_spec: _TypeAlias = _typing.Literal[
|
|
481
|
+
"storage_spec", b"storage_spec"
|
|
482
|
+
] # noqa: Y015
|
|
437
483
|
def WhichOneof(
|
|
438
|
-
self, oneof_group:
|
|
439
|
-
) ->
|
|
484
|
+
self, oneof_group: _WhichOneofArgType_storage_spec
|
|
485
|
+
) -> _WhichOneofReturnType_storage_spec | None: ...
|
|
440
486
|
|
|
441
|
-
|
|
487
|
+
Global___TestStorageConnectionRequest: _TypeAlias = TestStorageConnectionRequest # noqa: Y015
|
|
442
488
|
|
|
443
|
-
@
|
|
444
|
-
class TestStorageConnectionResponse(
|
|
489
|
+
@_typing.final
|
|
490
|
+
class TestStorageConnectionResponse(_message.Message):
|
|
445
491
|
"""TestStorageConnectionResponse contains the result of a connection test"""
|
|
446
492
|
|
|
447
|
-
DESCRIPTOR:
|
|
493
|
+
DESCRIPTOR: _descriptor.Descriptor
|
|
448
494
|
|
|
449
|
-
SUCCESS_FIELD_NUMBER:
|
|
450
|
-
ERROR_MESSAGE_FIELD_NUMBER:
|
|
451
|
-
CONNECTION_DETAILS_FIELD_NUMBER:
|
|
452
|
-
success:
|
|
495
|
+
SUCCESS_FIELD_NUMBER: _builtins.int
|
|
496
|
+
ERROR_MESSAGE_FIELD_NUMBER: _builtins.int
|
|
497
|
+
CONNECTION_DETAILS_FIELD_NUMBER: _builtins.int
|
|
498
|
+
success: _builtins.bool
|
|
453
499
|
"""Whether the connection was successful"""
|
|
454
|
-
error_message:
|
|
500
|
+
error_message: _builtins.str
|
|
455
501
|
"""Error message if the connection failed"""
|
|
456
|
-
@property
|
|
457
|
-
def connection_details(self) ->
|
|
502
|
+
@_builtins.property
|
|
503
|
+
def connection_details(self) -> Global___ConnectionDetails:
|
|
458
504
|
"""Additional details about the connection test"""
|
|
459
505
|
|
|
460
506
|
def __init__(
|
|
461
507
|
self,
|
|
462
508
|
*,
|
|
463
|
-
success:
|
|
464
|
-
error_message:
|
|
465
|
-
connection_details:
|
|
466
|
-
) -> None: ...
|
|
467
|
-
def HasField(
|
|
468
|
-
self, field_name: typing.Literal["connection_details", b"connection_details"]
|
|
469
|
-
) -> builtins.bool: ...
|
|
470
|
-
def ClearField(
|
|
471
|
-
self,
|
|
472
|
-
field_name: typing.Literal[
|
|
473
|
-
"connection_details",
|
|
474
|
-
b"connection_details",
|
|
475
|
-
"error_message",
|
|
476
|
-
b"error_message",
|
|
477
|
-
"success",
|
|
478
|
-
b"success",
|
|
479
|
-
],
|
|
509
|
+
success: _builtins.bool | None = ...,
|
|
510
|
+
error_message: _builtins.str | None = ...,
|
|
511
|
+
connection_details: Global___ConnectionDetails | None = ...,
|
|
480
512
|
) -> None: ...
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
513
|
+
_HasFieldArgType: _TypeAlias = _typing.Literal[
|
|
514
|
+
"connection_details",
|
|
515
|
+
b"connection_details",
|
|
516
|
+
"error_message",
|
|
517
|
+
b"error_message",
|
|
518
|
+
"success",
|
|
519
|
+
b"success",
|
|
520
|
+
] # noqa: Y015
|
|
521
|
+
def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ...
|
|
522
|
+
_ClearFieldArgType: _TypeAlias = _typing.Literal[
|
|
523
|
+
"connection_details",
|
|
524
|
+
b"connection_details",
|
|
525
|
+
"error_message",
|
|
526
|
+
b"error_message",
|
|
527
|
+
"success",
|
|
528
|
+
b"success",
|
|
529
|
+
] # noqa: Y015
|
|
530
|
+
def ClearField(self, field_name: _ClearFieldArgType) -> None: ...
|
|
531
|
+
|
|
532
|
+
Global___TestStorageConnectionResponse: _TypeAlias = TestStorageConnectionResponse # noqa: Y015
|
|
533
|
+
|
|
534
|
+
@_typing.final
|
|
535
|
+
class ConnectionDetails(_message.Message):
|
|
486
536
|
"""ConnectionDetails provides additional information about a storage connection"""
|
|
487
537
|
|
|
488
|
-
DESCRIPTOR:
|
|
538
|
+
DESCRIPTOR: _descriptor.Descriptor
|
|
489
539
|
|
|
490
|
-
LATENCY_MS_FIELD_NUMBER:
|
|
491
|
-
AVAILABLE_RESOURCES_FIELD_NUMBER:
|
|
492
|
-
AVAILABLE_CONTAINERS_FIELD_NUMBER:
|
|
493
|
-
latency_ms:
|
|
540
|
+
LATENCY_MS_FIELD_NUMBER: _builtins.int
|
|
541
|
+
AVAILABLE_RESOURCES_FIELD_NUMBER: _builtins.int
|
|
542
|
+
AVAILABLE_CONTAINERS_FIELD_NUMBER: _builtins.int
|
|
543
|
+
latency_ms: _builtins.int
|
|
494
544
|
"""Connection latency in milliseconds"""
|
|
495
|
-
@property
|
|
545
|
+
@_builtins.property
|
|
496
546
|
def available_resources(
|
|
497
547
|
self,
|
|
498
|
-
) ->
|
|
548
|
+
) -> _containers.RepeatedScalarFieldContainer[_builtins.str]:
|
|
499
549
|
"""For SQL/NoSQL databases: available tables/collections"""
|
|
500
550
|
|
|
501
|
-
@property
|
|
551
|
+
@_builtins.property
|
|
502
552
|
def available_containers(
|
|
503
553
|
self,
|
|
504
|
-
) ->
|
|
554
|
+
) -> _containers.RepeatedScalarFieldContainer[_builtins.str]:
|
|
505
555
|
"""For object stores: available buckets/containers"""
|
|
506
556
|
|
|
507
557
|
def __init__(
|
|
508
558
|
self,
|
|
509
559
|
*,
|
|
510
|
-
latency_ms:
|
|
511
|
-
available_resources:
|
|
512
|
-
available_containers:
|
|
560
|
+
latency_ms: _builtins.int | None = ...,
|
|
561
|
+
available_resources: _abc.Iterable[_builtins.str] | None = ...,
|
|
562
|
+
available_containers: _abc.Iterable[_builtins.str] | None = ...,
|
|
513
563
|
) -> None: ...
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
564
|
+
_HasFieldArgType: _TypeAlias = _typing.Literal[
|
|
565
|
+
"available_containers",
|
|
566
|
+
b"available_containers",
|
|
567
|
+
"available_resources",
|
|
568
|
+
b"available_resources",
|
|
569
|
+
"latency_ms",
|
|
570
|
+
b"latency_ms",
|
|
571
|
+
] # noqa: Y015
|
|
572
|
+
def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ...
|
|
573
|
+
_ClearFieldArgType: _TypeAlias = _typing.Literal[
|
|
574
|
+
"available_containers",
|
|
575
|
+
b"available_containers",
|
|
576
|
+
"available_resources",
|
|
577
|
+
b"available_resources",
|
|
578
|
+
"latency_ms",
|
|
579
|
+
b"latency_ms",
|
|
580
|
+
] # noqa: Y015
|
|
581
|
+
def ClearField(self, field_name: _ClearFieldArgType) -> None: ...
|
|
582
|
+
|
|
583
|
+
Global___ConnectionDetails: _TypeAlias = ConnectionDetails # noqa: Y015
|