netherframe.protocol.tfplugin 0.3.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.
- netherframe/protocol/tfplugin/__init__.py +1 -0
- netherframe/protocol/tfplugin/_sources/MPL-2.0.txt +353 -0
- netherframe/protocol/tfplugin/_sources/NOTICE.md +19 -0
- netherframe/protocol/tfplugin/_sources/SOURCES.json +34 -0
- netherframe/protocol/tfplugin/_sources/grpc_controller.proto +11 -0
- netherframe/protocol/tfplugin/_sources/grpc_stdio.proto +30 -0
- netherframe/protocol/tfplugin/_sources/tfplugin5.proto +1013 -0
- netherframe/protocol/tfplugin/_sources/tfplugin6.proto +1092 -0
- netherframe/protocol/tfplugin/grpc_controller_pb2.py +41 -0
- netherframe/protocol/tfplugin/grpc_controller_pb2.pyi +11 -0
- netherframe/protocol/tfplugin/grpc_controller_pb2_grpc.py +102 -0
- netherframe/protocol/tfplugin/grpc_stdio_pb2.py +44 -0
- netherframe/protocol/tfplugin/grpc_stdio_pb2.pyi +25 -0
- netherframe/protocol/tfplugin/grpc_stdio_pb2_grpc.py +114 -0
- netherframe/protocol/tfplugin/py.typed +0 -0
- netherframe/protocol/tfplugin/tfplugin5_pb2.py +344 -0
- netherframe/protocol/tfplugin/tfplugin5_pb2.pyi +1096 -0
- netherframe/protocol/tfplugin/tfplugin5_pb2_grpc.py +1440 -0
- netherframe/protocol/tfplugin/tfplugin6_pb2.py +380 -0
- netherframe/protocol/tfplugin/tfplugin6_pb2.pyi +1207 -0
- netherframe/protocol/tfplugin/tfplugin6_pb2_grpc.py +1634 -0
- netherframe_protocol_tfplugin-0.3.0.dist-info/METADATA +29 -0
- netherframe_protocol_tfplugin-0.3.0.dist-info/RECORD +37 -0
- netherframe_protocol_tfplugin-0.3.0.dist-info/WHEEL +4 -0
- netherframe_protocol_tfplugin-0.3.0.dist-info/licenses/LICENSE +21 -0
- netherframe_protocol_tfplugin-0.3.0.dist-info/licenses/LICENSES/MPL-2.0.txt +353 -0
- netherframe_protocol_tfplugin-0.3.0.dist-info/licenses/NOTICE.md +19 -0
- nf/protocol/tfplugin/__init__.py +4 -0
- nf/protocol/tfplugin/grpc_controller_pb2.py +4 -0
- nf/protocol/tfplugin/grpc_controller_pb2_grpc.py +4 -0
- nf/protocol/tfplugin/grpc_stdio_pb2.py +4 -0
- nf/protocol/tfplugin/grpc_stdio_pb2_grpc.py +4 -0
- nf/protocol/tfplugin/py.typed +0 -0
- nf/protocol/tfplugin/tfplugin5_pb2.py +4 -0
- nf/protocol/tfplugin/tfplugin5_pb2_grpc.py +4 -0
- nf/protocol/tfplugin/tfplugin6_pb2.py +4 -0
- nf/protocol/tfplugin/tfplugin6_pb2_grpc.py +4 -0
|
@@ -0,0 +1,1440 @@
|
|
|
1
|
+
# SPDX-License-Identifier: MPL-2.0
|
|
2
|
+
# Generated from the corresponding MPL-2.0 source in _sources/.
|
|
3
|
+
# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT!
|
|
4
|
+
"""Client and server classes corresponding to protobuf-defined services."""
|
|
5
|
+
import grpc
|
|
6
|
+
import warnings
|
|
7
|
+
|
|
8
|
+
from . import tfplugin5_pb2 as tfplugin5__pb2
|
|
9
|
+
|
|
10
|
+
GRPC_GENERATED_VERSION = '1.85.1'
|
|
11
|
+
GRPC_VERSION = grpc.__version__
|
|
12
|
+
_version_not_supported = False
|
|
13
|
+
|
|
14
|
+
try:
|
|
15
|
+
from grpc._utilities import first_version_is_lower
|
|
16
|
+
_version_not_supported = first_version_is_lower(GRPC_VERSION, GRPC_GENERATED_VERSION)
|
|
17
|
+
except ImportError:
|
|
18
|
+
_version_not_supported = True
|
|
19
|
+
|
|
20
|
+
if _version_not_supported:
|
|
21
|
+
raise RuntimeError(
|
|
22
|
+
f'The grpc package installed is at version {GRPC_VERSION},'
|
|
23
|
+
+ ' but the generated code in tfplugin5_pb2_grpc.py depends on'
|
|
24
|
+
+ f' grpcio>={GRPC_GENERATED_VERSION}.'
|
|
25
|
+
+ f' Please upgrade your grpc module to grpcio>={GRPC_GENERATED_VERSION}'
|
|
26
|
+
+ f' or downgrade your generated code using grpcio-tools<={GRPC_VERSION}.'
|
|
27
|
+
)
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
class ProviderStub:
|
|
31
|
+
"""////// Information about what a provider supports/expects
|
|
32
|
+
"""
|
|
33
|
+
|
|
34
|
+
def __init__(self, channel):
|
|
35
|
+
"""Constructor.
|
|
36
|
+
|
|
37
|
+
Args:
|
|
38
|
+
channel: A grpc.Channel.
|
|
39
|
+
"""
|
|
40
|
+
self.GetMetadata = channel.unary_unary(
|
|
41
|
+
'/tfplugin5.Provider/GetMetadata',
|
|
42
|
+
request_serializer=tfplugin5__pb2.GetMetadata.Request.SerializeToString,
|
|
43
|
+
response_deserializer=tfplugin5__pb2.GetMetadata.Response.FromString,
|
|
44
|
+
_registered_method=True)
|
|
45
|
+
self.GetSchema = channel.unary_unary(
|
|
46
|
+
'/tfplugin5.Provider/GetSchema',
|
|
47
|
+
request_serializer=tfplugin5__pb2.GetProviderSchema.Request.SerializeToString,
|
|
48
|
+
response_deserializer=tfplugin5__pb2.GetProviderSchema.Response.FromString,
|
|
49
|
+
_registered_method=True)
|
|
50
|
+
self.PrepareProviderConfig = channel.unary_unary(
|
|
51
|
+
'/tfplugin5.Provider/PrepareProviderConfig',
|
|
52
|
+
request_serializer=tfplugin5__pb2.PrepareProviderConfig.Request.SerializeToString,
|
|
53
|
+
response_deserializer=tfplugin5__pb2.PrepareProviderConfig.Response.FromString,
|
|
54
|
+
_registered_method=True)
|
|
55
|
+
self.ValidateResourceTypeConfig = channel.unary_unary(
|
|
56
|
+
'/tfplugin5.Provider/ValidateResourceTypeConfig',
|
|
57
|
+
request_serializer=tfplugin5__pb2.ValidateResourceTypeConfig.Request.SerializeToString,
|
|
58
|
+
response_deserializer=tfplugin5__pb2.ValidateResourceTypeConfig.Response.FromString,
|
|
59
|
+
_registered_method=True)
|
|
60
|
+
self.ValidateDataSourceConfig = channel.unary_unary(
|
|
61
|
+
'/tfplugin5.Provider/ValidateDataSourceConfig',
|
|
62
|
+
request_serializer=tfplugin5__pb2.ValidateDataSourceConfig.Request.SerializeToString,
|
|
63
|
+
response_deserializer=tfplugin5__pb2.ValidateDataSourceConfig.Response.FromString,
|
|
64
|
+
_registered_method=True)
|
|
65
|
+
self.UpgradeResourceState = channel.unary_unary(
|
|
66
|
+
'/tfplugin5.Provider/UpgradeResourceState',
|
|
67
|
+
request_serializer=tfplugin5__pb2.UpgradeResourceState.Request.SerializeToString,
|
|
68
|
+
response_deserializer=tfplugin5__pb2.UpgradeResourceState.Response.FromString,
|
|
69
|
+
_registered_method=True)
|
|
70
|
+
self.GetResourceIdentitySchemas = channel.unary_unary(
|
|
71
|
+
'/tfplugin5.Provider/GetResourceIdentitySchemas',
|
|
72
|
+
request_serializer=tfplugin5__pb2.GetResourceIdentitySchemas.Request.SerializeToString,
|
|
73
|
+
response_deserializer=tfplugin5__pb2.GetResourceIdentitySchemas.Response.FromString,
|
|
74
|
+
_registered_method=True)
|
|
75
|
+
self.UpgradeResourceIdentity = channel.unary_unary(
|
|
76
|
+
'/tfplugin5.Provider/UpgradeResourceIdentity',
|
|
77
|
+
request_serializer=tfplugin5__pb2.UpgradeResourceIdentity.Request.SerializeToString,
|
|
78
|
+
response_deserializer=tfplugin5__pb2.UpgradeResourceIdentity.Response.FromString,
|
|
79
|
+
_registered_method=True)
|
|
80
|
+
self.Configure = channel.unary_unary(
|
|
81
|
+
'/tfplugin5.Provider/Configure',
|
|
82
|
+
request_serializer=tfplugin5__pb2.Configure.Request.SerializeToString,
|
|
83
|
+
response_deserializer=tfplugin5__pb2.Configure.Response.FromString,
|
|
84
|
+
_registered_method=True)
|
|
85
|
+
self.ReadResource = channel.unary_unary(
|
|
86
|
+
'/tfplugin5.Provider/ReadResource',
|
|
87
|
+
request_serializer=tfplugin5__pb2.ReadResource.Request.SerializeToString,
|
|
88
|
+
response_deserializer=tfplugin5__pb2.ReadResource.Response.FromString,
|
|
89
|
+
_registered_method=True)
|
|
90
|
+
self.PlanResourceChange = channel.unary_unary(
|
|
91
|
+
'/tfplugin5.Provider/PlanResourceChange',
|
|
92
|
+
request_serializer=tfplugin5__pb2.PlanResourceChange.Request.SerializeToString,
|
|
93
|
+
response_deserializer=tfplugin5__pb2.PlanResourceChange.Response.FromString,
|
|
94
|
+
_registered_method=True)
|
|
95
|
+
self.ApplyResourceChange = channel.unary_unary(
|
|
96
|
+
'/tfplugin5.Provider/ApplyResourceChange',
|
|
97
|
+
request_serializer=tfplugin5__pb2.ApplyResourceChange.Request.SerializeToString,
|
|
98
|
+
response_deserializer=tfplugin5__pb2.ApplyResourceChange.Response.FromString,
|
|
99
|
+
_registered_method=True)
|
|
100
|
+
self.ImportResourceState = channel.unary_unary(
|
|
101
|
+
'/tfplugin5.Provider/ImportResourceState',
|
|
102
|
+
request_serializer=tfplugin5__pb2.ImportResourceState.Request.SerializeToString,
|
|
103
|
+
response_deserializer=tfplugin5__pb2.ImportResourceState.Response.FromString,
|
|
104
|
+
_registered_method=True)
|
|
105
|
+
self.MoveResourceState = channel.unary_unary(
|
|
106
|
+
'/tfplugin5.Provider/MoveResourceState',
|
|
107
|
+
request_serializer=tfplugin5__pb2.MoveResourceState.Request.SerializeToString,
|
|
108
|
+
response_deserializer=tfplugin5__pb2.MoveResourceState.Response.FromString,
|
|
109
|
+
_registered_method=True)
|
|
110
|
+
self.ReadDataSource = channel.unary_unary(
|
|
111
|
+
'/tfplugin5.Provider/ReadDataSource',
|
|
112
|
+
request_serializer=tfplugin5__pb2.ReadDataSource.Request.SerializeToString,
|
|
113
|
+
response_deserializer=tfplugin5__pb2.ReadDataSource.Response.FromString,
|
|
114
|
+
_registered_method=True)
|
|
115
|
+
self.ValidateEphemeralResourceConfig = channel.unary_unary(
|
|
116
|
+
'/tfplugin5.Provider/ValidateEphemeralResourceConfig',
|
|
117
|
+
request_serializer=tfplugin5__pb2.ValidateEphemeralResourceConfig.Request.SerializeToString,
|
|
118
|
+
response_deserializer=tfplugin5__pb2.ValidateEphemeralResourceConfig.Response.FromString,
|
|
119
|
+
_registered_method=True)
|
|
120
|
+
self.OpenEphemeralResource = channel.unary_unary(
|
|
121
|
+
'/tfplugin5.Provider/OpenEphemeralResource',
|
|
122
|
+
request_serializer=tfplugin5__pb2.OpenEphemeralResource.Request.SerializeToString,
|
|
123
|
+
response_deserializer=tfplugin5__pb2.OpenEphemeralResource.Response.FromString,
|
|
124
|
+
_registered_method=True)
|
|
125
|
+
self.RenewEphemeralResource = channel.unary_unary(
|
|
126
|
+
'/tfplugin5.Provider/RenewEphemeralResource',
|
|
127
|
+
request_serializer=tfplugin5__pb2.RenewEphemeralResource.Request.SerializeToString,
|
|
128
|
+
response_deserializer=tfplugin5__pb2.RenewEphemeralResource.Response.FromString,
|
|
129
|
+
_registered_method=True)
|
|
130
|
+
self.CloseEphemeralResource = channel.unary_unary(
|
|
131
|
+
'/tfplugin5.Provider/CloseEphemeralResource',
|
|
132
|
+
request_serializer=tfplugin5__pb2.CloseEphemeralResource.Request.SerializeToString,
|
|
133
|
+
response_deserializer=tfplugin5__pb2.CloseEphemeralResource.Response.FromString,
|
|
134
|
+
_registered_method=True)
|
|
135
|
+
self.ListResource = channel.unary_stream(
|
|
136
|
+
'/tfplugin5.Provider/ListResource',
|
|
137
|
+
request_serializer=tfplugin5__pb2.ListResource.Request.SerializeToString,
|
|
138
|
+
response_deserializer=tfplugin5__pb2.ListResource.Event.FromString,
|
|
139
|
+
_registered_method=True)
|
|
140
|
+
self.ValidateListResourceConfig = channel.unary_unary(
|
|
141
|
+
'/tfplugin5.Provider/ValidateListResourceConfig',
|
|
142
|
+
request_serializer=tfplugin5__pb2.ValidateListResourceConfig.Request.SerializeToString,
|
|
143
|
+
response_deserializer=tfplugin5__pb2.ValidateListResourceConfig.Response.FromString,
|
|
144
|
+
_registered_method=True)
|
|
145
|
+
self.GetFunctions = channel.unary_unary(
|
|
146
|
+
'/tfplugin5.Provider/GetFunctions',
|
|
147
|
+
request_serializer=tfplugin5__pb2.GetFunctions.Request.SerializeToString,
|
|
148
|
+
response_deserializer=tfplugin5__pb2.GetFunctions.Response.FromString,
|
|
149
|
+
_registered_method=True)
|
|
150
|
+
self.CallFunction = channel.unary_unary(
|
|
151
|
+
'/tfplugin5.Provider/CallFunction',
|
|
152
|
+
request_serializer=tfplugin5__pb2.CallFunction.Request.SerializeToString,
|
|
153
|
+
response_deserializer=tfplugin5__pb2.CallFunction.Response.FromString,
|
|
154
|
+
_registered_method=True)
|
|
155
|
+
self.PlanAction = channel.unary_unary(
|
|
156
|
+
'/tfplugin5.Provider/PlanAction',
|
|
157
|
+
request_serializer=tfplugin5__pb2.PlanAction.Request.SerializeToString,
|
|
158
|
+
response_deserializer=tfplugin5__pb2.PlanAction.Response.FromString,
|
|
159
|
+
_registered_method=True)
|
|
160
|
+
self.InvokeAction = channel.unary_stream(
|
|
161
|
+
'/tfplugin5.Provider/InvokeAction',
|
|
162
|
+
request_serializer=tfplugin5__pb2.InvokeAction.Request.SerializeToString,
|
|
163
|
+
response_deserializer=tfplugin5__pb2.InvokeAction.Event.FromString,
|
|
164
|
+
_registered_method=True)
|
|
165
|
+
self.ValidateActionConfig = channel.unary_unary(
|
|
166
|
+
'/tfplugin5.Provider/ValidateActionConfig',
|
|
167
|
+
request_serializer=tfplugin5__pb2.ValidateActionConfig.Request.SerializeToString,
|
|
168
|
+
response_deserializer=tfplugin5__pb2.ValidateActionConfig.Response.FromString,
|
|
169
|
+
_registered_method=True)
|
|
170
|
+
self.Stop = channel.unary_unary(
|
|
171
|
+
'/tfplugin5.Provider/Stop',
|
|
172
|
+
request_serializer=tfplugin5__pb2.Stop.Request.SerializeToString,
|
|
173
|
+
response_deserializer=tfplugin5__pb2.Stop.Response.FromString,
|
|
174
|
+
_registered_method=True)
|
|
175
|
+
|
|
176
|
+
|
|
177
|
+
class ProviderServicer:
|
|
178
|
+
"""////// Information about what a provider supports/expects
|
|
179
|
+
"""
|
|
180
|
+
|
|
181
|
+
def GetMetadata(self, request, context):
|
|
182
|
+
"""GetMetadata returns upfront information about server capabilities and
|
|
183
|
+
supported resource types without requiring the server to instantiate all
|
|
184
|
+
schema information, which may be memory intensive.
|
|
185
|
+
This method is CURRENTLY UNUSED and it serves mostly for convenience
|
|
186
|
+
of code generation inside of terraform-plugin-mux.
|
|
187
|
+
"""
|
|
188
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
189
|
+
context.set_details('Method not implemented!')
|
|
190
|
+
raise NotImplementedError('Method not implemented!')
|
|
191
|
+
|
|
192
|
+
def GetSchema(self, request, context):
|
|
193
|
+
"""GetSchema returns schema information for the provider, data resources,
|
|
194
|
+
and managed resources.
|
|
195
|
+
"""
|
|
196
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
197
|
+
context.set_details('Method not implemented!')
|
|
198
|
+
raise NotImplementedError('Method not implemented!')
|
|
199
|
+
|
|
200
|
+
def PrepareProviderConfig(self, request, context):
|
|
201
|
+
"""Missing associated documentation comment in .proto file."""
|
|
202
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
203
|
+
context.set_details('Method not implemented!')
|
|
204
|
+
raise NotImplementedError('Method not implemented!')
|
|
205
|
+
|
|
206
|
+
def ValidateResourceTypeConfig(self, request, context):
|
|
207
|
+
"""Missing associated documentation comment in .proto file."""
|
|
208
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
209
|
+
context.set_details('Method not implemented!')
|
|
210
|
+
raise NotImplementedError('Method not implemented!')
|
|
211
|
+
|
|
212
|
+
def ValidateDataSourceConfig(self, request, context):
|
|
213
|
+
"""Missing associated documentation comment in .proto file."""
|
|
214
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
215
|
+
context.set_details('Method not implemented!')
|
|
216
|
+
raise NotImplementedError('Method not implemented!')
|
|
217
|
+
|
|
218
|
+
def UpgradeResourceState(self, request, context):
|
|
219
|
+
"""Missing associated documentation comment in .proto file."""
|
|
220
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
221
|
+
context.set_details('Method not implemented!')
|
|
222
|
+
raise NotImplementedError('Method not implemented!')
|
|
223
|
+
|
|
224
|
+
def GetResourceIdentitySchemas(self, request, context):
|
|
225
|
+
"""GetResourceIdentitySchemas returns the identity schemas for all managed
|
|
226
|
+
resources.
|
|
227
|
+
"""
|
|
228
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
229
|
+
context.set_details('Method not implemented!')
|
|
230
|
+
raise NotImplementedError('Method not implemented!')
|
|
231
|
+
|
|
232
|
+
def UpgradeResourceIdentity(self, request, context):
|
|
233
|
+
"""UpgradeResourceIdentityData should return the upgraded resource identity
|
|
234
|
+
data for a managed resource type.
|
|
235
|
+
"""
|
|
236
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
237
|
+
context.set_details('Method not implemented!')
|
|
238
|
+
raise NotImplementedError('Method not implemented!')
|
|
239
|
+
|
|
240
|
+
def Configure(self, request, context):
|
|
241
|
+
"""////// One-time initialization, called before other functions below
|
|
242
|
+
"""
|
|
243
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
244
|
+
context.set_details('Method not implemented!')
|
|
245
|
+
raise NotImplementedError('Method not implemented!')
|
|
246
|
+
|
|
247
|
+
def ReadResource(self, request, context):
|
|
248
|
+
"""////// Managed Resource Lifecycle
|
|
249
|
+
"""
|
|
250
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
251
|
+
context.set_details('Method not implemented!')
|
|
252
|
+
raise NotImplementedError('Method not implemented!')
|
|
253
|
+
|
|
254
|
+
def PlanResourceChange(self, request, context):
|
|
255
|
+
"""Missing associated documentation comment in .proto file."""
|
|
256
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
257
|
+
context.set_details('Method not implemented!')
|
|
258
|
+
raise NotImplementedError('Method not implemented!')
|
|
259
|
+
|
|
260
|
+
def ApplyResourceChange(self, request, context):
|
|
261
|
+
"""Missing associated documentation comment in .proto file."""
|
|
262
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
263
|
+
context.set_details('Method not implemented!')
|
|
264
|
+
raise NotImplementedError('Method not implemented!')
|
|
265
|
+
|
|
266
|
+
def ImportResourceState(self, request, context):
|
|
267
|
+
"""Missing associated documentation comment in .proto file."""
|
|
268
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
269
|
+
context.set_details('Method not implemented!')
|
|
270
|
+
raise NotImplementedError('Method not implemented!')
|
|
271
|
+
|
|
272
|
+
def MoveResourceState(self, request, context):
|
|
273
|
+
"""Missing associated documentation comment in .proto file."""
|
|
274
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
275
|
+
context.set_details('Method not implemented!')
|
|
276
|
+
raise NotImplementedError('Method not implemented!')
|
|
277
|
+
|
|
278
|
+
def ReadDataSource(self, request, context):
|
|
279
|
+
"""Missing associated documentation comment in .proto file."""
|
|
280
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
281
|
+
context.set_details('Method not implemented!')
|
|
282
|
+
raise NotImplementedError('Method not implemented!')
|
|
283
|
+
|
|
284
|
+
def ValidateEphemeralResourceConfig(self, request, context):
|
|
285
|
+
"""////// Ephemeral Resource Lifecycle
|
|
286
|
+
"""
|
|
287
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
288
|
+
context.set_details('Method not implemented!')
|
|
289
|
+
raise NotImplementedError('Method not implemented!')
|
|
290
|
+
|
|
291
|
+
def OpenEphemeralResource(self, request, context):
|
|
292
|
+
"""Missing associated documentation comment in .proto file."""
|
|
293
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
294
|
+
context.set_details('Method not implemented!')
|
|
295
|
+
raise NotImplementedError('Method not implemented!')
|
|
296
|
+
|
|
297
|
+
def RenewEphemeralResource(self, request, context):
|
|
298
|
+
"""Missing associated documentation comment in .proto file."""
|
|
299
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
300
|
+
context.set_details('Method not implemented!')
|
|
301
|
+
raise NotImplementedError('Method not implemented!')
|
|
302
|
+
|
|
303
|
+
def CloseEphemeralResource(self, request, context):
|
|
304
|
+
"""Missing associated documentation comment in .proto file."""
|
|
305
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
306
|
+
context.set_details('Method not implemented!')
|
|
307
|
+
raise NotImplementedError('Method not implemented!')
|
|
308
|
+
|
|
309
|
+
def ListResource(self, request, context):
|
|
310
|
+
"""///// List
|
|
311
|
+
"""
|
|
312
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
313
|
+
context.set_details('Method not implemented!')
|
|
314
|
+
raise NotImplementedError('Method not implemented!')
|
|
315
|
+
|
|
316
|
+
def ValidateListResourceConfig(self, request, context):
|
|
317
|
+
"""Missing associated documentation comment in .proto file."""
|
|
318
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
319
|
+
context.set_details('Method not implemented!')
|
|
320
|
+
raise NotImplementedError('Method not implemented!')
|
|
321
|
+
|
|
322
|
+
def GetFunctions(self, request, context):
|
|
323
|
+
"""GetFunctions returns the definitions of all functions.
|
|
324
|
+
"""
|
|
325
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
326
|
+
context.set_details('Method not implemented!')
|
|
327
|
+
raise NotImplementedError('Method not implemented!')
|
|
328
|
+
|
|
329
|
+
def CallFunction(self, request, context):
|
|
330
|
+
"""////// Provider-contributed Functions
|
|
331
|
+
"""
|
|
332
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
333
|
+
context.set_details('Method not implemented!')
|
|
334
|
+
raise NotImplementedError('Method not implemented!')
|
|
335
|
+
|
|
336
|
+
def PlanAction(self, request, context):
|
|
337
|
+
"""////// Actions
|
|
338
|
+
"""
|
|
339
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
340
|
+
context.set_details('Method not implemented!')
|
|
341
|
+
raise NotImplementedError('Method not implemented!')
|
|
342
|
+
|
|
343
|
+
def InvokeAction(self, request, context):
|
|
344
|
+
"""Missing associated documentation comment in .proto file."""
|
|
345
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
346
|
+
context.set_details('Method not implemented!')
|
|
347
|
+
raise NotImplementedError('Method not implemented!')
|
|
348
|
+
|
|
349
|
+
def ValidateActionConfig(self, request, context):
|
|
350
|
+
"""Missing associated documentation comment in .proto file."""
|
|
351
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
352
|
+
context.set_details('Method not implemented!')
|
|
353
|
+
raise NotImplementedError('Method not implemented!')
|
|
354
|
+
|
|
355
|
+
def Stop(self, request, context):
|
|
356
|
+
"""////// Graceful Shutdown
|
|
357
|
+
"""
|
|
358
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
359
|
+
context.set_details('Method not implemented!')
|
|
360
|
+
raise NotImplementedError('Method not implemented!')
|
|
361
|
+
|
|
362
|
+
|
|
363
|
+
def add_ProviderServicer_to_server(servicer, server):
|
|
364
|
+
rpc_method_handlers = {
|
|
365
|
+
'GetMetadata': grpc.unary_unary_rpc_method_handler(
|
|
366
|
+
servicer.GetMetadata,
|
|
367
|
+
request_deserializer=tfplugin5__pb2.GetMetadata.Request.FromString,
|
|
368
|
+
response_serializer=tfplugin5__pb2.GetMetadata.Response.SerializeToString,
|
|
369
|
+
),
|
|
370
|
+
'GetSchema': grpc.unary_unary_rpc_method_handler(
|
|
371
|
+
servicer.GetSchema,
|
|
372
|
+
request_deserializer=tfplugin5__pb2.GetProviderSchema.Request.FromString,
|
|
373
|
+
response_serializer=tfplugin5__pb2.GetProviderSchema.Response.SerializeToString,
|
|
374
|
+
),
|
|
375
|
+
'PrepareProviderConfig': grpc.unary_unary_rpc_method_handler(
|
|
376
|
+
servicer.PrepareProviderConfig,
|
|
377
|
+
request_deserializer=tfplugin5__pb2.PrepareProviderConfig.Request.FromString,
|
|
378
|
+
response_serializer=tfplugin5__pb2.PrepareProviderConfig.Response.SerializeToString,
|
|
379
|
+
),
|
|
380
|
+
'ValidateResourceTypeConfig': grpc.unary_unary_rpc_method_handler(
|
|
381
|
+
servicer.ValidateResourceTypeConfig,
|
|
382
|
+
request_deserializer=tfplugin5__pb2.ValidateResourceTypeConfig.Request.FromString,
|
|
383
|
+
response_serializer=tfplugin5__pb2.ValidateResourceTypeConfig.Response.SerializeToString,
|
|
384
|
+
),
|
|
385
|
+
'ValidateDataSourceConfig': grpc.unary_unary_rpc_method_handler(
|
|
386
|
+
servicer.ValidateDataSourceConfig,
|
|
387
|
+
request_deserializer=tfplugin5__pb2.ValidateDataSourceConfig.Request.FromString,
|
|
388
|
+
response_serializer=tfplugin5__pb2.ValidateDataSourceConfig.Response.SerializeToString,
|
|
389
|
+
),
|
|
390
|
+
'UpgradeResourceState': grpc.unary_unary_rpc_method_handler(
|
|
391
|
+
servicer.UpgradeResourceState,
|
|
392
|
+
request_deserializer=tfplugin5__pb2.UpgradeResourceState.Request.FromString,
|
|
393
|
+
response_serializer=tfplugin5__pb2.UpgradeResourceState.Response.SerializeToString,
|
|
394
|
+
),
|
|
395
|
+
'GetResourceIdentitySchemas': grpc.unary_unary_rpc_method_handler(
|
|
396
|
+
servicer.GetResourceIdentitySchemas,
|
|
397
|
+
request_deserializer=tfplugin5__pb2.GetResourceIdentitySchemas.Request.FromString,
|
|
398
|
+
response_serializer=tfplugin5__pb2.GetResourceIdentitySchemas.Response.SerializeToString,
|
|
399
|
+
),
|
|
400
|
+
'UpgradeResourceIdentity': grpc.unary_unary_rpc_method_handler(
|
|
401
|
+
servicer.UpgradeResourceIdentity,
|
|
402
|
+
request_deserializer=tfplugin5__pb2.UpgradeResourceIdentity.Request.FromString,
|
|
403
|
+
response_serializer=tfplugin5__pb2.UpgradeResourceIdentity.Response.SerializeToString,
|
|
404
|
+
),
|
|
405
|
+
'Configure': grpc.unary_unary_rpc_method_handler(
|
|
406
|
+
servicer.Configure,
|
|
407
|
+
request_deserializer=tfplugin5__pb2.Configure.Request.FromString,
|
|
408
|
+
response_serializer=tfplugin5__pb2.Configure.Response.SerializeToString,
|
|
409
|
+
),
|
|
410
|
+
'ReadResource': grpc.unary_unary_rpc_method_handler(
|
|
411
|
+
servicer.ReadResource,
|
|
412
|
+
request_deserializer=tfplugin5__pb2.ReadResource.Request.FromString,
|
|
413
|
+
response_serializer=tfplugin5__pb2.ReadResource.Response.SerializeToString,
|
|
414
|
+
),
|
|
415
|
+
'PlanResourceChange': grpc.unary_unary_rpc_method_handler(
|
|
416
|
+
servicer.PlanResourceChange,
|
|
417
|
+
request_deserializer=tfplugin5__pb2.PlanResourceChange.Request.FromString,
|
|
418
|
+
response_serializer=tfplugin5__pb2.PlanResourceChange.Response.SerializeToString,
|
|
419
|
+
),
|
|
420
|
+
'ApplyResourceChange': grpc.unary_unary_rpc_method_handler(
|
|
421
|
+
servicer.ApplyResourceChange,
|
|
422
|
+
request_deserializer=tfplugin5__pb2.ApplyResourceChange.Request.FromString,
|
|
423
|
+
response_serializer=tfplugin5__pb2.ApplyResourceChange.Response.SerializeToString,
|
|
424
|
+
),
|
|
425
|
+
'ImportResourceState': grpc.unary_unary_rpc_method_handler(
|
|
426
|
+
servicer.ImportResourceState,
|
|
427
|
+
request_deserializer=tfplugin5__pb2.ImportResourceState.Request.FromString,
|
|
428
|
+
response_serializer=tfplugin5__pb2.ImportResourceState.Response.SerializeToString,
|
|
429
|
+
),
|
|
430
|
+
'MoveResourceState': grpc.unary_unary_rpc_method_handler(
|
|
431
|
+
servicer.MoveResourceState,
|
|
432
|
+
request_deserializer=tfplugin5__pb2.MoveResourceState.Request.FromString,
|
|
433
|
+
response_serializer=tfplugin5__pb2.MoveResourceState.Response.SerializeToString,
|
|
434
|
+
),
|
|
435
|
+
'ReadDataSource': grpc.unary_unary_rpc_method_handler(
|
|
436
|
+
servicer.ReadDataSource,
|
|
437
|
+
request_deserializer=tfplugin5__pb2.ReadDataSource.Request.FromString,
|
|
438
|
+
response_serializer=tfplugin5__pb2.ReadDataSource.Response.SerializeToString,
|
|
439
|
+
),
|
|
440
|
+
'ValidateEphemeralResourceConfig': grpc.unary_unary_rpc_method_handler(
|
|
441
|
+
servicer.ValidateEphemeralResourceConfig,
|
|
442
|
+
request_deserializer=tfplugin5__pb2.ValidateEphemeralResourceConfig.Request.FromString,
|
|
443
|
+
response_serializer=tfplugin5__pb2.ValidateEphemeralResourceConfig.Response.SerializeToString,
|
|
444
|
+
),
|
|
445
|
+
'OpenEphemeralResource': grpc.unary_unary_rpc_method_handler(
|
|
446
|
+
servicer.OpenEphemeralResource,
|
|
447
|
+
request_deserializer=tfplugin5__pb2.OpenEphemeralResource.Request.FromString,
|
|
448
|
+
response_serializer=tfplugin5__pb2.OpenEphemeralResource.Response.SerializeToString,
|
|
449
|
+
),
|
|
450
|
+
'RenewEphemeralResource': grpc.unary_unary_rpc_method_handler(
|
|
451
|
+
servicer.RenewEphemeralResource,
|
|
452
|
+
request_deserializer=tfplugin5__pb2.RenewEphemeralResource.Request.FromString,
|
|
453
|
+
response_serializer=tfplugin5__pb2.RenewEphemeralResource.Response.SerializeToString,
|
|
454
|
+
),
|
|
455
|
+
'CloseEphemeralResource': grpc.unary_unary_rpc_method_handler(
|
|
456
|
+
servicer.CloseEphemeralResource,
|
|
457
|
+
request_deserializer=tfplugin5__pb2.CloseEphemeralResource.Request.FromString,
|
|
458
|
+
response_serializer=tfplugin5__pb2.CloseEphemeralResource.Response.SerializeToString,
|
|
459
|
+
),
|
|
460
|
+
'ListResource': grpc.unary_stream_rpc_method_handler(
|
|
461
|
+
servicer.ListResource,
|
|
462
|
+
request_deserializer=tfplugin5__pb2.ListResource.Request.FromString,
|
|
463
|
+
response_serializer=tfplugin5__pb2.ListResource.Event.SerializeToString,
|
|
464
|
+
),
|
|
465
|
+
'ValidateListResourceConfig': grpc.unary_unary_rpc_method_handler(
|
|
466
|
+
servicer.ValidateListResourceConfig,
|
|
467
|
+
request_deserializer=tfplugin5__pb2.ValidateListResourceConfig.Request.FromString,
|
|
468
|
+
response_serializer=tfplugin5__pb2.ValidateListResourceConfig.Response.SerializeToString,
|
|
469
|
+
),
|
|
470
|
+
'GetFunctions': grpc.unary_unary_rpc_method_handler(
|
|
471
|
+
servicer.GetFunctions,
|
|
472
|
+
request_deserializer=tfplugin5__pb2.GetFunctions.Request.FromString,
|
|
473
|
+
response_serializer=tfplugin5__pb2.GetFunctions.Response.SerializeToString,
|
|
474
|
+
),
|
|
475
|
+
'CallFunction': grpc.unary_unary_rpc_method_handler(
|
|
476
|
+
servicer.CallFunction,
|
|
477
|
+
request_deserializer=tfplugin5__pb2.CallFunction.Request.FromString,
|
|
478
|
+
response_serializer=tfplugin5__pb2.CallFunction.Response.SerializeToString,
|
|
479
|
+
),
|
|
480
|
+
'PlanAction': grpc.unary_unary_rpc_method_handler(
|
|
481
|
+
servicer.PlanAction,
|
|
482
|
+
request_deserializer=tfplugin5__pb2.PlanAction.Request.FromString,
|
|
483
|
+
response_serializer=tfplugin5__pb2.PlanAction.Response.SerializeToString,
|
|
484
|
+
),
|
|
485
|
+
'InvokeAction': grpc.unary_stream_rpc_method_handler(
|
|
486
|
+
servicer.InvokeAction,
|
|
487
|
+
request_deserializer=tfplugin5__pb2.InvokeAction.Request.FromString,
|
|
488
|
+
response_serializer=tfplugin5__pb2.InvokeAction.Event.SerializeToString,
|
|
489
|
+
),
|
|
490
|
+
'ValidateActionConfig': grpc.unary_unary_rpc_method_handler(
|
|
491
|
+
servicer.ValidateActionConfig,
|
|
492
|
+
request_deserializer=tfplugin5__pb2.ValidateActionConfig.Request.FromString,
|
|
493
|
+
response_serializer=tfplugin5__pb2.ValidateActionConfig.Response.SerializeToString,
|
|
494
|
+
),
|
|
495
|
+
'Stop': grpc.unary_unary_rpc_method_handler(
|
|
496
|
+
servicer.Stop,
|
|
497
|
+
request_deserializer=tfplugin5__pb2.Stop.Request.FromString,
|
|
498
|
+
response_serializer=tfplugin5__pb2.Stop.Response.SerializeToString,
|
|
499
|
+
),
|
|
500
|
+
}
|
|
501
|
+
generic_handler = grpc.method_handlers_generic_handler(
|
|
502
|
+
'tfplugin5.Provider', rpc_method_handlers)
|
|
503
|
+
server.add_generic_rpc_handlers((generic_handler,))
|
|
504
|
+
server.add_registered_method_handlers('tfplugin5.Provider', rpc_method_handlers)
|
|
505
|
+
|
|
506
|
+
|
|
507
|
+
# This class is part of an EXPERIMENTAL API.
|
|
508
|
+
class Provider:
|
|
509
|
+
"""////// Information about what a provider supports/expects
|
|
510
|
+
"""
|
|
511
|
+
|
|
512
|
+
@staticmethod
|
|
513
|
+
def GetMetadata(request,
|
|
514
|
+
target,
|
|
515
|
+
options=(),
|
|
516
|
+
channel_credentials=None,
|
|
517
|
+
call_credentials=None,
|
|
518
|
+
insecure=False,
|
|
519
|
+
compression=None,
|
|
520
|
+
wait_for_ready=None,
|
|
521
|
+
timeout=None,
|
|
522
|
+
metadata=None):
|
|
523
|
+
return grpc.experimental.unary_unary(
|
|
524
|
+
request,
|
|
525
|
+
target,
|
|
526
|
+
'/tfplugin5.Provider/GetMetadata',
|
|
527
|
+
tfplugin5__pb2.GetMetadata.Request.SerializeToString,
|
|
528
|
+
tfplugin5__pb2.GetMetadata.Response.FromString,
|
|
529
|
+
options,
|
|
530
|
+
channel_credentials,
|
|
531
|
+
insecure,
|
|
532
|
+
call_credentials,
|
|
533
|
+
compression,
|
|
534
|
+
wait_for_ready,
|
|
535
|
+
timeout,
|
|
536
|
+
metadata,
|
|
537
|
+
_registered_method=True)
|
|
538
|
+
|
|
539
|
+
@staticmethod
|
|
540
|
+
def GetSchema(request,
|
|
541
|
+
target,
|
|
542
|
+
options=(),
|
|
543
|
+
channel_credentials=None,
|
|
544
|
+
call_credentials=None,
|
|
545
|
+
insecure=False,
|
|
546
|
+
compression=None,
|
|
547
|
+
wait_for_ready=None,
|
|
548
|
+
timeout=None,
|
|
549
|
+
metadata=None):
|
|
550
|
+
return grpc.experimental.unary_unary(
|
|
551
|
+
request,
|
|
552
|
+
target,
|
|
553
|
+
'/tfplugin5.Provider/GetSchema',
|
|
554
|
+
tfplugin5__pb2.GetProviderSchema.Request.SerializeToString,
|
|
555
|
+
tfplugin5__pb2.GetProviderSchema.Response.FromString,
|
|
556
|
+
options,
|
|
557
|
+
channel_credentials,
|
|
558
|
+
insecure,
|
|
559
|
+
call_credentials,
|
|
560
|
+
compression,
|
|
561
|
+
wait_for_ready,
|
|
562
|
+
timeout,
|
|
563
|
+
metadata,
|
|
564
|
+
_registered_method=True)
|
|
565
|
+
|
|
566
|
+
@staticmethod
|
|
567
|
+
def PrepareProviderConfig(request,
|
|
568
|
+
target,
|
|
569
|
+
options=(),
|
|
570
|
+
channel_credentials=None,
|
|
571
|
+
call_credentials=None,
|
|
572
|
+
insecure=False,
|
|
573
|
+
compression=None,
|
|
574
|
+
wait_for_ready=None,
|
|
575
|
+
timeout=None,
|
|
576
|
+
metadata=None):
|
|
577
|
+
return grpc.experimental.unary_unary(
|
|
578
|
+
request,
|
|
579
|
+
target,
|
|
580
|
+
'/tfplugin5.Provider/PrepareProviderConfig',
|
|
581
|
+
tfplugin5__pb2.PrepareProviderConfig.Request.SerializeToString,
|
|
582
|
+
tfplugin5__pb2.PrepareProviderConfig.Response.FromString,
|
|
583
|
+
options,
|
|
584
|
+
channel_credentials,
|
|
585
|
+
insecure,
|
|
586
|
+
call_credentials,
|
|
587
|
+
compression,
|
|
588
|
+
wait_for_ready,
|
|
589
|
+
timeout,
|
|
590
|
+
metadata,
|
|
591
|
+
_registered_method=True)
|
|
592
|
+
|
|
593
|
+
@staticmethod
|
|
594
|
+
def ValidateResourceTypeConfig(request,
|
|
595
|
+
target,
|
|
596
|
+
options=(),
|
|
597
|
+
channel_credentials=None,
|
|
598
|
+
call_credentials=None,
|
|
599
|
+
insecure=False,
|
|
600
|
+
compression=None,
|
|
601
|
+
wait_for_ready=None,
|
|
602
|
+
timeout=None,
|
|
603
|
+
metadata=None):
|
|
604
|
+
return grpc.experimental.unary_unary(
|
|
605
|
+
request,
|
|
606
|
+
target,
|
|
607
|
+
'/tfplugin5.Provider/ValidateResourceTypeConfig',
|
|
608
|
+
tfplugin5__pb2.ValidateResourceTypeConfig.Request.SerializeToString,
|
|
609
|
+
tfplugin5__pb2.ValidateResourceTypeConfig.Response.FromString,
|
|
610
|
+
options,
|
|
611
|
+
channel_credentials,
|
|
612
|
+
insecure,
|
|
613
|
+
call_credentials,
|
|
614
|
+
compression,
|
|
615
|
+
wait_for_ready,
|
|
616
|
+
timeout,
|
|
617
|
+
metadata,
|
|
618
|
+
_registered_method=True)
|
|
619
|
+
|
|
620
|
+
@staticmethod
|
|
621
|
+
def ValidateDataSourceConfig(request,
|
|
622
|
+
target,
|
|
623
|
+
options=(),
|
|
624
|
+
channel_credentials=None,
|
|
625
|
+
call_credentials=None,
|
|
626
|
+
insecure=False,
|
|
627
|
+
compression=None,
|
|
628
|
+
wait_for_ready=None,
|
|
629
|
+
timeout=None,
|
|
630
|
+
metadata=None):
|
|
631
|
+
return grpc.experimental.unary_unary(
|
|
632
|
+
request,
|
|
633
|
+
target,
|
|
634
|
+
'/tfplugin5.Provider/ValidateDataSourceConfig',
|
|
635
|
+
tfplugin5__pb2.ValidateDataSourceConfig.Request.SerializeToString,
|
|
636
|
+
tfplugin5__pb2.ValidateDataSourceConfig.Response.FromString,
|
|
637
|
+
options,
|
|
638
|
+
channel_credentials,
|
|
639
|
+
insecure,
|
|
640
|
+
call_credentials,
|
|
641
|
+
compression,
|
|
642
|
+
wait_for_ready,
|
|
643
|
+
timeout,
|
|
644
|
+
metadata,
|
|
645
|
+
_registered_method=True)
|
|
646
|
+
|
|
647
|
+
@staticmethod
|
|
648
|
+
def UpgradeResourceState(request,
|
|
649
|
+
target,
|
|
650
|
+
options=(),
|
|
651
|
+
channel_credentials=None,
|
|
652
|
+
call_credentials=None,
|
|
653
|
+
insecure=False,
|
|
654
|
+
compression=None,
|
|
655
|
+
wait_for_ready=None,
|
|
656
|
+
timeout=None,
|
|
657
|
+
metadata=None):
|
|
658
|
+
return grpc.experimental.unary_unary(
|
|
659
|
+
request,
|
|
660
|
+
target,
|
|
661
|
+
'/tfplugin5.Provider/UpgradeResourceState',
|
|
662
|
+
tfplugin5__pb2.UpgradeResourceState.Request.SerializeToString,
|
|
663
|
+
tfplugin5__pb2.UpgradeResourceState.Response.FromString,
|
|
664
|
+
options,
|
|
665
|
+
channel_credentials,
|
|
666
|
+
insecure,
|
|
667
|
+
call_credentials,
|
|
668
|
+
compression,
|
|
669
|
+
wait_for_ready,
|
|
670
|
+
timeout,
|
|
671
|
+
metadata,
|
|
672
|
+
_registered_method=True)
|
|
673
|
+
|
|
674
|
+
@staticmethod
|
|
675
|
+
def GetResourceIdentitySchemas(request,
|
|
676
|
+
target,
|
|
677
|
+
options=(),
|
|
678
|
+
channel_credentials=None,
|
|
679
|
+
call_credentials=None,
|
|
680
|
+
insecure=False,
|
|
681
|
+
compression=None,
|
|
682
|
+
wait_for_ready=None,
|
|
683
|
+
timeout=None,
|
|
684
|
+
metadata=None):
|
|
685
|
+
return grpc.experimental.unary_unary(
|
|
686
|
+
request,
|
|
687
|
+
target,
|
|
688
|
+
'/tfplugin5.Provider/GetResourceIdentitySchemas',
|
|
689
|
+
tfplugin5__pb2.GetResourceIdentitySchemas.Request.SerializeToString,
|
|
690
|
+
tfplugin5__pb2.GetResourceIdentitySchemas.Response.FromString,
|
|
691
|
+
options,
|
|
692
|
+
channel_credentials,
|
|
693
|
+
insecure,
|
|
694
|
+
call_credentials,
|
|
695
|
+
compression,
|
|
696
|
+
wait_for_ready,
|
|
697
|
+
timeout,
|
|
698
|
+
metadata,
|
|
699
|
+
_registered_method=True)
|
|
700
|
+
|
|
701
|
+
@staticmethod
|
|
702
|
+
def UpgradeResourceIdentity(request,
|
|
703
|
+
target,
|
|
704
|
+
options=(),
|
|
705
|
+
channel_credentials=None,
|
|
706
|
+
call_credentials=None,
|
|
707
|
+
insecure=False,
|
|
708
|
+
compression=None,
|
|
709
|
+
wait_for_ready=None,
|
|
710
|
+
timeout=None,
|
|
711
|
+
metadata=None):
|
|
712
|
+
return grpc.experimental.unary_unary(
|
|
713
|
+
request,
|
|
714
|
+
target,
|
|
715
|
+
'/tfplugin5.Provider/UpgradeResourceIdentity',
|
|
716
|
+
tfplugin5__pb2.UpgradeResourceIdentity.Request.SerializeToString,
|
|
717
|
+
tfplugin5__pb2.UpgradeResourceIdentity.Response.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
|
+
@staticmethod
|
|
729
|
+
def Configure(request,
|
|
730
|
+
target,
|
|
731
|
+
options=(),
|
|
732
|
+
channel_credentials=None,
|
|
733
|
+
call_credentials=None,
|
|
734
|
+
insecure=False,
|
|
735
|
+
compression=None,
|
|
736
|
+
wait_for_ready=None,
|
|
737
|
+
timeout=None,
|
|
738
|
+
metadata=None):
|
|
739
|
+
return grpc.experimental.unary_unary(
|
|
740
|
+
request,
|
|
741
|
+
target,
|
|
742
|
+
'/tfplugin5.Provider/Configure',
|
|
743
|
+
tfplugin5__pb2.Configure.Request.SerializeToString,
|
|
744
|
+
tfplugin5__pb2.Configure.Response.FromString,
|
|
745
|
+
options,
|
|
746
|
+
channel_credentials,
|
|
747
|
+
insecure,
|
|
748
|
+
call_credentials,
|
|
749
|
+
compression,
|
|
750
|
+
wait_for_ready,
|
|
751
|
+
timeout,
|
|
752
|
+
metadata,
|
|
753
|
+
_registered_method=True)
|
|
754
|
+
|
|
755
|
+
@staticmethod
|
|
756
|
+
def ReadResource(request,
|
|
757
|
+
target,
|
|
758
|
+
options=(),
|
|
759
|
+
channel_credentials=None,
|
|
760
|
+
call_credentials=None,
|
|
761
|
+
insecure=False,
|
|
762
|
+
compression=None,
|
|
763
|
+
wait_for_ready=None,
|
|
764
|
+
timeout=None,
|
|
765
|
+
metadata=None):
|
|
766
|
+
return grpc.experimental.unary_unary(
|
|
767
|
+
request,
|
|
768
|
+
target,
|
|
769
|
+
'/tfplugin5.Provider/ReadResource',
|
|
770
|
+
tfplugin5__pb2.ReadResource.Request.SerializeToString,
|
|
771
|
+
tfplugin5__pb2.ReadResource.Response.FromString,
|
|
772
|
+
options,
|
|
773
|
+
channel_credentials,
|
|
774
|
+
insecure,
|
|
775
|
+
call_credentials,
|
|
776
|
+
compression,
|
|
777
|
+
wait_for_ready,
|
|
778
|
+
timeout,
|
|
779
|
+
metadata,
|
|
780
|
+
_registered_method=True)
|
|
781
|
+
|
|
782
|
+
@staticmethod
|
|
783
|
+
def PlanResourceChange(request,
|
|
784
|
+
target,
|
|
785
|
+
options=(),
|
|
786
|
+
channel_credentials=None,
|
|
787
|
+
call_credentials=None,
|
|
788
|
+
insecure=False,
|
|
789
|
+
compression=None,
|
|
790
|
+
wait_for_ready=None,
|
|
791
|
+
timeout=None,
|
|
792
|
+
metadata=None):
|
|
793
|
+
return grpc.experimental.unary_unary(
|
|
794
|
+
request,
|
|
795
|
+
target,
|
|
796
|
+
'/tfplugin5.Provider/PlanResourceChange',
|
|
797
|
+
tfplugin5__pb2.PlanResourceChange.Request.SerializeToString,
|
|
798
|
+
tfplugin5__pb2.PlanResourceChange.Response.FromString,
|
|
799
|
+
options,
|
|
800
|
+
channel_credentials,
|
|
801
|
+
insecure,
|
|
802
|
+
call_credentials,
|
|
803
|
+
compression,
|
|
804
|
+
wait_for_ready,
|
|
805
|
+
timeout,
|
|
806
|
+
metadata,
|
|
807
|
+
_registered_method=True)
|
|
808
|
+
|
|
809
|
+
@staticmethod
|
|
810
|
+
def ApplyResourceChange(request,
|
|
811
|
+
target,
|
|
812
|
+
options=(),
|
|
813
|
+
channel_credentials=None,
|
|
814
|
+
call_credentials=None,
|
|
815
|
+
insecure=False,
|
|
816
|
+
compression=None,
|
|
817
|
+
wait_for_ready=None,
|
|
818
|
+
timeout=None,
|
|
819
|
+
metadata=None):
|
|
820
|
+
return grpc.experimental.unary_unary(
|
|
821
|
+
request,
|
|
822
|
+
target,
|
|
823
|
+
'/tfplugin5.Provider/ApplyResourceChange',
|
|
824
|
+
tfplugin5__pb2.ApplyResourceChange.Request.SerializeToString,
|
|
825
|
+
tfplugin5__pb2.ApplyResourceChange.Response.FromString,
|
|
826
|
+
options,
|
|
827
|
+
channel_credentials,
|
|
828
|
+
insecure,
|
|
829
|
+
call_credentials,
|
|
830
|
+
compression,
|
|
831
|
+
wait_for_ready,
|
|
832
|
+
timeout,
|
|
833
|
+
metadata,
|
|
834
|
+
_registered_method=True)
|
|
835
|
+
|
|
836
|
+
@staticmethod
|
|
837
|
+
def ImportResourceState(request,
|
|
838
|
+
target,
|
|
839
|
+
options=(),
|
|
840
|
+
channel_credentials=None,
|
|
841
|
+
call_credentials=None,
|
|
842
|
+
insecure=False,
|
|
843
|
+
compression=None,
|
|
844
|
+
wait_for_ready=None,
|
|
845
|
+
timeout=None,
|
|
846
|
+
metadata=None):
|
|
847
|
+
return grpc.experimental.unary_unary(
|
|
848
|
+
request,
|
|
849
|
+
target,
|
|
850
|
+
'/tfplugin5.Provider/ImportResourceState',
|
|
851
|
+
tfplugin5__pb2.ImportResourceState.Request.SerializeToString,
|
|
852
|
+
tfplugin5__pb2.ImportResourceState.Response.FromString,
|
|
853
|
+
options,
|
|
854
|
+
channel_credentials,
|
|
855
|
+
insecure,
|
|
856
|
+
call_credentials,
|
|
857
|
+
compression,
|
|
858
|
+
wait_for_ready,
|
|
859
|
+
timeout,
|
|
860
|
+
metadata,
|
|
861
|
+
_registered_method=True)
|
|
862
|
+
|
|
863
|
+
@staticmethod
|
|
864
|
+
def MoveResourceState(request,
|
|
865
|
+
target,
|
|
866
|
+
options=(),
|
|
867
|
+
channel_credentials=None,
|
|
868
|
+
call_credentials=None,
|
|
869
|
+
insecure=False,
|
|
870
|
+
compression=None,
|
|
871
|
+
wait_for_ready=None,
|
|
872
|
+
timeout=None,
|
|
873
|
+
metadata=None):
|
|
874
|
+
return grpc.experimental.unary_unary(
|
|
875
|
+
request,
|
|
876
|
+
target,
|
|
877
|
+
'/tfplugin5.Provider/MoveResourceState',
|
|
878
|
+
tfplugin5__pb2.MoveResourceState.Request.SerializeToString,
|
|
879
|
+
tfplugin5__pb2.MoveResourceState.Response.FromString,
|
|
880
|
+
options,
|
|
881
|
+
channel_credentials,
|
|
882
|
+
insecure,
|
|
883
|
+
call_credentials,
|
|
884
|
+
compression,
|
|
885
|
+
wait_for_ready,
|
|
886
|
+
timeout,
|
|
887
|
+
metadata,
|
|
888
|
+
_registered_method=True)
|
|
889
|
+
|
|
890
|
+
@staticmethod
|
|
891
|
+
def ReadDataSource(request,
|
|
892
|
+
target,
|
|
893
|
+
options=(),
|
|
894
|
+
channel_credentials=None,
|
|
895
|
+
call_credentials=None,
|
|
896
|
+
insecure=False,
|
|
897
|
+
compression=None,
|
|
898
|
+
wait_for_ready=None,
|
|
899
|
+
timeout=None,
|
|
900
|
+
metadata=None):
|
|
901
|
+
return grpc.experimental.unary_unary(
|
|
902
|
+
request,
|
|
903
|
+
target,
|
|
904
|
+
'/tfplugin5.Provider/ReadDataSource',
|
|
905
|
+
tfplugin5__pb2.ReadDataSource.Request.SerializeToString,
|
|
906
|
+
tfplugin5__pb2.ReadDataSource.Response.FromString,
|
|
907
|
+
options,
|
|
908
|
+
channel_credentials,
|
|
909
|
+
insecure,
|
|
910
|
+
call_credentials,
|
|
911
|
+
compression,
|
|
912
|
+
wait_for_ready,
|
|
913
|
+
timeout,
|
|
914
|
+
metadata,
|
|
915
|
+
_registered_method=True)
|
|
916
|
+
|
|
917
|
+
@staticmethod
|
|
918
|
+
def ValidateEphemeralResourceConfig(request,
|
|
919
|
+
target,
|
|
920
|
+
options=(),
|
|
921
|
+
channel_credentials=None,
|
|
922
|
+
call_credentials=None,
|
|
923
|
+
insecure=False,
|
|
924
|
+
compression=None,
|
|
925
|
+
wait_for_ready=None,
|
|
926
|
+
timeout=None,
|
|
927
|
+
metadata=None):
|
|
928
|
+
return grpc.experimental.unary_unary(
|
|
929
|
+
request,
|
|
930
|
+
target,
|
|
931
|
+
'/tfplugin5.Provider/ValidateEphemeralResourceConfig',
|
|
932
|
+
tfplugin5__pb2.ValidateEphemeralResourceConfig.Request.SerializeToString,
|
|
933
|
+
tfplugin5__pb2.ValidateEphemeralResourceConfig.Response.FromString,
|
|
934
|
+
options,
|
|
935
|
+
channel_credentials,
|
|
936
|
+
insecure,
|
|
937
|
+
call_credentials,
|
|
938
|
+
compression,
|
|
939
|
+
wait_for_ready,
|
|
940
|
+
timeout,
|
|
941
|
+
metadata,
|
|
942
|
+
_registered_method=True)
|
|
943
|
+
|
|
944
|
+
@staticmethod
|
|
945
|
+
def OpenEphemeralResource(request,
|
|
946
|
+
target,
|
|
947
|
+
options=(),
|
|
948
|
+
channel_credentials=None,
|
|
949
|
+
call_credentials=None,
|
|
950
|
+
insecure=False,
|
|
951
|
+
compression=None,
|
|
952
|
+
wait_for_ready=None,
|
|
953
|
+
timeout=None,
|
|
954
|
+
metadata=None):
|
|
955
|
+
return grpc.experimental.unary_unary(
|
|
956
|
+
request,
|
|
957
|
+
target,
|
|
958
|
+
'/tfplugin5.Provider/OpenEphemeralResource',
|
|
959
|
+
tfplugin5__pb2.OpenEphemeralResource.Request.SerializeToString,
|
|
960
|
+
tfplugin5__pb2.OpenEphemeralResource.Response.FromString,
|
|
961
|
+
options,
|
|
962
|
+
channel_credentials,
|
|
963
|
+
insecure,
|
|
964
|
+
call_credentials,
|
|
965
|
+
compression,
|
|
966
|
+
wait_for_ready,
|
|
967
|
+
timeout,
|
|
968
|
+
metadata,
|
|
969
|
+
_registered_method=True)
|
|
970
|
+
|
|
971
|
+
@staticmethod
|
|
972
|
+
def RenewEphemeralResource(request,
|
|
973
|
+
target,
|
|
974
|
+
options=(),
|
|
975
|
+
channel_credentials=None,
|
|
976
|
+
call_credentials=None,
|
|
977
|
+
insecure=False,
|
|
978
|
+
compression=None,
|
|
979
|
+
wait_for_ready=None,
|
|
980
|
+
timeout=None,
|
|
981
|
+
metadata=None):
|
|
982
|
+
return grpc.experimental.unary_unary(
|
|
983
|
+
request,
|
|
984
|
+
target,
|
|
985
|
+
'/tfplugin5.Provider/RenewEphemeralResource',
|
|
986
|
+
tfplugin5__pb2.RenewEphemeralResource.Request.SerializeToString,
|
|
987
|
+
tfplugin5__pb2.RenewEphemeralResource.Response.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
|
+
@staticmethod
|
|
999
|
+
def CloseEphemeralResource(request,
|
|
1000
|
+
target,
|
|
1001
|
+
options=(),
|
|
1002
|
+
channel_credentials=None,
|
|
1003
|
+
call_credentials=None,
|
|
1004
|
+
insecure=False,
|
|
1005
|
+
compression=None,
|
|
1006
|
+
wait_for_ready=None,
|
|
1007
|
+
timeout=None,
|
|
1008
|
+
metadata=None):
|
|
1009
|
+
return grpc.experimental.unary_unary(
|
|
1010
|
+
request,
|
|
1011
|
+
target,
|
|
1012
|
+
'/tfplugin5.Provider/CloseEphemeralResource',
|
|
1013
|
+
tfplugin5__pb2.CloseEphemeralResource.Request.SerializeToString,
|
|
1014
|
+
tfplugin5__pb2.CloseEphemeralResource.Response.FromString,
|
|
1015
|
+
options,
|
|
1016
|
+
channel_credentials,
|
|
1017
|
+
insecure,
|
|
1018
|
+
call_credentials,
|
|
1019
|
+
compression,
|
|
1020
|
+
wait_for_ready,
|
|
1021
|
+
timeout,
|
|
1022
|
+
metadata,
|
|
1023
|
+
_registered_method=True)
|
|
1024
|
+
|
|
1025
|
+
@staticmethod
|
|
1026
|
+
def ListResource(request,
|
|
1027
|
+
target,
|
|
1028
|
+
options=(),
|
|
1029
|
+
channel_credentials=None,
|
|
1030
|
+
call_credentials=None,
|
|
1031
|
+
insecure=False,
|
|
1032
|
+
compression=None,
|
|
1033
|
+
wait_for_ready=None,
|
|
1034
|
+
timeout=None,
|
|
1035
|
+
metadata=None):
|
|
1036
|
+
return grpc.experimental.unary_stream(
|
|
1037
|
+
request,
|
|
1038
|
+
target,
|
|
1039
|
+
'/tfplugin5.Provider/ListResource',
|
|
1040
|
+
tfplugin5__pb2.ListResource.Request.SerializeToString,
|
|
1041
|
+
tfplugin5__pb2.ListResource.Event.FromString,
|
|
1042
|
+
options,
|
|
1043
|
+
channel_credentials,
|
|
1044
|
+
insecure,
|
|
1045
|
+
call_credentials,
|
|
1046
|
+
compression,
|
|
1047
|
+
wait_for_ready,
|
|
1048
|
+
timeout,
|
|
1049
|
+
metadata,
|
|
1050
|
+
_registered_method=True)
|
|
1051
|
+
|
|
1052
|
+
@staticmethod
|
|
1053
|
+
def ValidateListResourceConfig(request,
|
|
1054
|
+
target,
|
|
1055
|
+
options=(),
|
|
1056
|
+
channel_credentials=None,
|
|
1057
|
+
call_credentials=None,
|
|
1058
|
+
insecure=False,
|
|
1059
|
+
compression=None,
|
|
1060
|
+
wait_for_ready=None,
|
|
1061
|
+
timeout=None,
|
|
1062
|
+
metadata=None):
|
|
1063
|
+
return grpc.experimental.unary_unary(
|
|
1064
|
+
request,
|
|
1065
|
+
target,
|
|
1066
|
+
'/tfplugin5.Provider/ValidateListResourceConfig',
|
|
1067
|
+
tfplugin5__pb2.ValidateListResourceConfig.Request.SerializeToString,
|
|
1068
|
+
tfplugin5__pb2.ValidateListResourceConfig.Response.FromString,
|
|
1069
|
+
options,
|
|
1070
|
+
channel_credentials,
|
|
1071
|
+
insecure,
|
|
1072
|
+
call_credentials,
|
|
1073
|
+
compression,
|
|
1074
|
+
wait_for_ready,
|
|
1075
|
+
timeout,
|
|
1076
|
+
metadata,
|
|
1077
|
+
_registered_method=True)
|
|
1078
|
+
|
|
1079
|
+
@staticmethod
|
|
1080
|
+
def GetFunctions(request,
|
|
1081
|
+
target,
|
|
1082
|
+
options=(),
|
|
1083
|
+
channel_credentials=None,
|
|
1084
|
+
call_credentials=None,
|
|
1085
|
+
insecure=False,
|
|
1086
|
+
compression=None,
|
|
1087
|
+
wait_for_ready=None,
|
|
1088
|
+
timeout=None,
|
|
1089
|
+
metadata=None):
|
|
1090
|
+
return grpc.experimental.unary_unary(
|
|
1091
|
+
request,
|
|
1092
|
+
target,
|
|
1093
|
+
'/tfplugin5.Provider/GetFunctions',
|
|
1094
|
+
tfplugin5__pb2.GetFunctions.Request.SerializeToString,
|
|
1095
|
+
tfplugin5__pb2.GetFunctions.Response.FromString,
|
|
1096
|
+
options,
|
|
1097
|
+
channel_credentials,
|
|
1098
|
+
insecure,
|
|
1099
|
+
call_credentials,
|
|
1100
|
+
compression,
|
|
1101
|
+
wait_for_ready,
|
|
1102
|
+
timeout,
|
|
1103
|
+
metadata,
|
|
1104
|
+
_registered_method=True)
|
|
1105
|
+
|
|
1106
|
+
@staticmethod
|
|
1107
|
+
def CallFunction(request,
|
|
1108
|
+
target,
|
|
1109
|
+
options=(),
|
|
1110
|
+
channel_credentials=None,
|
|
1111
|
+
call_credentials=None,
|
|
1112
|
+
insecure=False,
|
|
1113
|
+
compression=None,
|
|
1114
|
+
wait_for_ready=None,
|
|
1115
|
+
timeout=None,
|
|
1116
|
+
metadata=None):
|
|
1117
|
+
return grpc.experimental.unary_unary(
|
|
1118
|
+
request,
|
|
1119
|
+
target,
|
|
1120
|
+
'/tfplugin5.Provider/CallFunction',
|
|
1121
|
+
tfplugin5__pb2.CallFunction.Request.SerializeToString,
|
|
1122
|
+
tfplugin5__pb2.CallFunction.Response.FromString,
|
|
1123
|
+
options,
|
|
1124
|
+
channel_credentials,
|
|
1125
|
+
insecure,
|
|
1126
|
+
call_credentials,
|
|
1127
|
+
compression,
|
|
1128
|
+
wait_for_ready,
|
|
1129
|
+
timeout,
|
|
1130
|
+
metadata,
|
|
1131
|
+
_registered_method=True)
|
|
1132
|
+
|
|
1133
|
+
@staticmethod
|
|
1134
|
+
def PlanAction(request,
|
|
1135
|
+
target,
|
|
1136
|
+
options=(),
|
|
1137
|
+
channel_credentials=None,
|
|
1138
|
+
call_credentials=None,
|
|
1139
|
+
insecure=False,
|
|
1140
|
+
compression=None,
|
|
1141
|
+
wait_for_ready=None,
|
|
1142
|
+
timeout=None,
|
|
1143
|
+
metadata=None):
|
|
1144
|
+
return grpc.experimental.unary_unary(
|
|
1145
|
+
request,
|
|
1146
|
+
target,
|
|
1147
|
+
'/tfplugin5.Provider/PlanAction',
|
|
1148
|
+
tfplugin5__pb2.PlanAction.Request.SerializeToString,
|
|
1149
|
+
tfplugin5__pb2.PlanAction.Response.FromString,
|
|
1150
|
+
options,
|
|
1151
|
+
channel_credentials,
|
|
1152
|
+
insecure,
|
|
1153
|
+
call_credentials,
|
|
1154
|
+
compression,
|
|
1155
|
+
wait_for_ready,
|
|
1156
|
+
timeout,
|
|
1157
|
+
metadata,
|
|
1158
|
+
_registered_method=True)
|
|
1159
|
+
|
|
1160
|
+
@staticmethod
|
|
1161
|
+
def InvokeAction(request,
|
|
1162
|
+
target,
|
|
1163
|
+
options=(),
|
|
1164
|
+
channel_credentials=None,
|
|
1165
|
+
call_credentials=None,
|
|
1166
|
+
insecure=False,
|
|
1167
|
+
compression=None,
|
|
1168
|
+
wait_for_ready=None,
|
|
1169
|
+
timeout=None,
|
|
1170
|
+
metadata=None):
|
|
1171
|
+
return grpc.experimental.unary_stream(
|
|
1172
|
+
request,
|
|
1173
|
+
target,
|
|
1174
|
+
'/tfplugin5.Provider/InvokeAction',
|
|
1175
|
+
tfplugin5__pb2.InvokeAction.Request.SerializeToString,
|
|
1176
|
+
tfplugin5__pb2.InvokeAction.Event.FromString,
|
|
1177
|
+
options,
|
|
1178
|
+
channel_credentials,
|
|
1179
|
+
insecure,
|
|
1180
|
+
call_credentials,
|
|
1181
|
+
compression,
|
|
1182
|
+
wait_for_ready,
|
|
1183
|
+
timeout,
|
|
1184
|
+
metadata,
|
|
1185
|
+
_registered_method=True)
|
|
1186
|
+
|
|
1187
|
+
@staticmethod
|
|
1188
|
+
def ValidateActionConfig(request,
|
|
1189
|
+
target,
|
|
1190
|
+
options=(),
|
|
1191
|
+
channel_credentials=None,
|
|
1192
|
+
call_credentials=None,
|
|
1193
|
+
insecure=False,
|
|
1194
|
+
compression=None,
|
|
1195
|
+
wait_for_ready=None,
|
|
1196
|
+
timeout=None,
|
|
1197
|
+
metadata=None):
|
|
1198
|
+
return grpc.experimental.unary_unary(
|
|
1199
|
+
request,
|
|
1200
|
+
target,
|
|
1201
|
+
'/tfplugin5.Provider/ValidateActionConfig',
|
|
1202
|
+
tfplugin5__pb2.ValidateActionConfig.Request.SerializeToString,
|
|
1203
|
+
tfplugin5__pb2.ValidateActionConfig.Response.FromString,
|
|
1204
|
+
options,
|
|
1205
|
+
channel_credentials,
|
|
1206
|
+
insecure,
|
|
1207
|
+
call_credentials,
|
|
1208
|
+
compression,
|
|
1209
|
+
wait_for_ready,
|
|
1210
|
+
timeout,
|
|
1211
|
+
metadata,
|
|
1212
|
+
_registered_method=True)
|
|
1213
|
+
|
|
1214
|
+
@staticmethod
|
|
1215
|
+
def Stop(request,
|
|
1216
|
+
target,
|
|
1217
|
+
options=(),
|
|
1218
|
+
channel_credentials=None,
|
|
1219
|
+
call_credentials=None,
|
|
1220
|
+
insecure=False,
|
|
1221
|
+
compression=None,
|
|
1222
|
+
wait_for_ready=None,
|
|
1223
|
+
timeout=None,
|
|
1224
|
+
metadata=None):
|
|
1225
|
+
return grpc.experimental.unary_unary(
|
|
1226
|
+
request,
|
|
1227
|
+
target,
|
|
1228
|
+
'/tfplugin5.Provider/Stop',
|
|
1229
|
+
tfplugin5__pb2.Stop.Request.SerializeToString,
|
|
1230
|
+
tfplugin5__pb2.Stop.Response.FromString,
|
|
1231
|
+
options,
|
|
1232
|
+
channel_credentials,
|
|
1233
|
+
insecure,
|
|
1234
|
+
call_credentials,
|
|
1235
|
+
compression,
|
|
1236
|
+
wait_for_ready,
|
|
1237
|
+
timeout,
|
|
1238
|
+
metadata,
|
|
1239
|
+
_registered_method=True)
|
|
1240
|
+
|
|
1241
|
+
|
|
1242
|
+
class ProvisionerStub:
|
|
1243
|
+
"""Missing associated documentation comment in .proto file."""
|
|
1244
|
+
|
|
1245
|
+
def __init__(self, channel):
|
|
1246
|
+
"""Constructor.
|
|
1247
|
+
|
|
1248
|
+
Args:
|
|
1249
|
+
channel: A grpc.Channel.
|
|
1250
|
+
"""
|
|
1251
|
+
self.GetSchema = channel.unary_unary(
|
|
1252
|
+
'/tfplugin5.Provisioner/GetSchema',
|
|
1253
|
+
request_serializer=tfplugin5__pb2.GetProvisionerSchema.Request.SerializeToString,
|
|
1254
|
+
response_deserializer=tfplugin5__pb2.GetProvisionerSchema.Response.FromString,
|
|
1255
|
+
_registered_method=True)
|
|
1256
|
+
self.ValidateProvisionerConfig = channel.unary_unary(
|
|
1257
|
+
'/tfplugin5.Provisioner/ValidateProvisionerConfig',
|
|
1258
|
+
request_serializer=tfplugin5__pb2.ValidateProvisionerConfig.Request.SerializeToString,
|
|
1259
|
+
response_deserializer=tfplugin5__pb2.ValidateProvisionerConfig.Response.FromString,
|
|
1260
|
+
_registered_method=True)
|
|
1261
|
+
self.ProvisionResource = channel.unary_stream(
|
|
1262
|
+
'/tfplugin5.Provisioner/ProvisionResource',
|
|
1263
|
+
request_serializer=tfplugin5__pb2.ProvisionResource.Request.SerializeToString,
|
|
1264
|
+
response_deserializer=tfplugin5__pb2.ProvisionResource.Response.FromString,
|
|
1265
|
+
_registered_method=True)
|
|
1266
|
+
self.Stop = channel.unary_unary(
|
|
1267
|
+
'/tfplugin5.Provisioner/Stop',
|
|
1268
|
+
request_serializer=tfplugin5__pb2.Stop.Request.SerializeToString,
|
|
1269
|
+
response_deserializer=tfplugin5__pb2.Stop.Response.FromString,
|
|
1270
|
+
_registered_method=True)
|
|
1271
|
+
|
|
1272
|
+
|
|
1273
|
+
class ProvisionerServicer:
|
|
1274
|
+
"""Missing associated documentation comment in .proto file."""
|
|
1275
|
+
|
|
1276
|
+
def GetSchema(self, request, context):
|
|
1277
|
+
"""Missing associated documentation comment in .proto file."""
|
|
1278
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
1279
|
+
context.set_details('Method not implemented!')
|
|
1280
|
+
raise NotImplementedError('Method not implemented!')
|
|
1281
|
+
|
|
1282
|
+
def ValidateProvisionerConfig(self, request, context):
|
|
1283
|
+
"""Missing associated documentation comment in .proto file."""
|
|
1284
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
1285
|
+
context.set_details('Method not implemented!')
|
|
1286
|
+
raise NotImplementedError('Method not implemented!')
|
|
1287
|
+
|
|
1288
|
+
def ProvisionResource(self, request, context):
|
|
1289
|
+
"""Missing associated documentation comment in .proto file."""
|
|
1290
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
1291
|
+
context.set_details('Method not implemented!')
|
|
1292
|
+
raise NotImplementedError('Method not implemented!')
|
|
1293
|
+
|
|
1294
|
+
def Stop(self, request, context):
|
|
1295
|
+
"""Missing associated documentation comment in .proto file."""
|
|
1296
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
1297
|
+
context.set_details('Method not implemented!')
|
|
1298
|
+
raise NotImplementedError('Method not implemented!')
|
|
1299
|
+
|
|
1300
|
+
|
|
1301
|
+
def add_ProvisionerServicer_to_server(servicer, server):
|
|
1302
|
+
rpc_method_handlers = {
|
|
1303
|
+
'GetSchema': grpc.unary_unary_rpc_method_handler(
|
|
1304
|
+
servicer.GetSchema,
|
|
1305
|
+
request_deserializer=tfplugin5__pb2.GetProvisionerSchema.Request.FromString,
|
|
1306
|
+
response_serializer=tfplugin5__pb2.GetProvisionerSchema.Response.SerializeToString,
|
|
1307
|
+
),
|
|
1308
|
+
'ValidateProvisionerConfig': grpc.unary_unary_rpc_method_handler(
|
|
1309
|
+
servicer.ValidateProvisionerConfig,
|
|
1310
|
+
request_deserializer=tfplugin5__pb2.ValidateProvisionerConfig.Request.FromString,
|
|
1311
|
+
response_serializer=tfplugin5__pb2.ValidateProvisionerConfig.Response.SerializeToString,
|
|
1312
|
+
),
|
|
1313
|
+
'ProvisionResource': grpc.unary_stream_rpc_method_handler(
|
|
1314
|
+
servicer.ProvisionResource,
|
|
1315
|
+
request_deserializer=tfplugin5__pb2.ProvisionResource.Request.FromString,
|
|
1316
|
+
response_serializer=tfplugin5__pb2.ProvisionResource.Response.SerializeToString,
|
|
1317
|
+
),
|
|
1318
|
+
'Stop': grpc.unary_unary_rpc_method_handler(
|
|
1319
|
+
servicer.Stop,
|
|
1320
|
+
request_deserializer=tfplugin5__pb2.Stop.Request.FromString,
|
|
1321
|
+
response_serializer=tfplugin5__pb2.Stop.Response.SerializeToString,
|
|
1322
|
+
),
|
|
1323
|
+
}
|
|
1324
|
+
generic_handler = grpc.method_handlers_generic_handler(
|
|
1325
|
+
'tfplugin5.Provisioner', rpc_method_handlers)
|
|
1326
|
+
server.add_generic_rpc_handlers((generic_handler,))
|
|
1327
|
+
server.add_registered_method_handlers('tfplugin5.Provisioner', rpc_method_handlers)
|
|
1328
|
+
|
|
1329
|
+
|
|
1330
|
+
# This class is part of an EXPERIMENTAL API.
|
|
1331
|
+
class Provisioner:
|
|
1332
|
+
"""Missing associated documentation comment in .proto file."""
|
|
1333
|
+
|
|
1334
|
+
@staticmethod
|
|
1335
|
+
def GetSchema(request,
|
|
1336
|
+
target,
|
|
1337
|
+
options=(),
|
|
1338
|
+
channel_credentials=None,
|
|
1339
|
+
call_credentials=None,
|
|
1340
|
+
insecure=False,
|
|
1341
|
+
compression=None,
|
|
1342
|
+
wait_for_ready=None,
|
|
1343
|
+
timeout=None,
|
|
1344
|
+
metadata=None):
|
|
1345
|
+
return grpc.experimental.unary_unary(
|
|
1346
|
+
request,
|
|
1347
|
+
target,
|
|
1348
|
+
'/tfplugin5.Provisioner/GetSchema',
|
|
1349
|
+
tfplugin5__pb2.GetProvisionerSchema.Request.SerializeToString,
|
|
1350
|
+
tfplugin5__pb2.GetProvisionerSchema.Response.FromString,
|
|
1351
|
+
options,
|
|
1352
|
+
channel_credentials,
|
|
1353
|
+
insecure,
|
|
1354
|
+
call_credentials,
|
|
1355
|
+
compression,
|
|
1356
|
+
wait_for_ready,
|
|
1357
|
+
timeout,
|
|
1358
|
+
metadata,
|
|
1359
|
+
_registered_method=True)
|
|
1360
|
+
|
|
1361
|
+
@staticmethod
|
|
1362
|
+
def ValidateProvisionerConfig(request,
|
|
1363
|
+
target,
|
|
1364
|
+
options=(),
|
|
1365
|
+
channel_credentials=None,
|
|
1366
|
+
call_credentials=None,
|
|
1367
|
+
insecure=False,
|
|
1368
|
+
compression=None,
|
|
1369
|
+
wait_for_ready=None,
|
|
1370
|
+
timeout=None,
|
|
1371
|
+
metadata=None):
|
|
1372
|
+
return grpc.experimental.unary_unary(
|
|
1373
|
+
request,
|
|
1374
|
+
target,
|
|
1375
|
+
'/tfplugin5.Provisioner/ValidateProvisionerConfig',
|
|
1376
|
+
tfplugin5__pb2.ValidateProvisionerConfig.Request.SerializeToString,
|
|
1377
|
+
tfplugin5__pb2.ValidateProvisionerConfig.Response.FromString,
|
|
1378
|
+
options,
|
|
1379
|
+
channel_credentials,
|
|
1380
|
+
insecure,
|
|
1381
|
+
call_credentials,
|
|
1382
|
+
compression,
|
|
1383
|
+
wait_for_ready,
|
|
1384
|
+
timeout,
|
|
1385
|
+
metadata,
|
|
1386
|
+
_registered_method=True)
|
|
1387
|
+
|
|
1388
|
+
@staticmethod
|
|
1389
|
+
def ProvisionResource(request,
|
|
1390
|
+
target,
|
|
1391
|
+
options=(),
|
|
1392
|
+
channel_credentials=None,
|
|
1393
|
+
call_credentials=None,
|
|
1394
|
+
insecure=False,
|
|
1395
|
+
compression=None,
|
|
1396
|
+
wait_for_ready=None,
|
|
1397
|
+
timeout=None,
|
|
1398
|
+
metadata=None):
|
|
1399
|
+
return grpc.experimental.unary_stream(
|
|
1400
|
+
request,
|
|
1401
|
+
target,
|
|
1402
|
+
'/tfplugin5.Provisioner/ProvisionResource',
|
|
1403
|
+
tfplugin5__pb2.ProvisionResource.Request.SerializeToString,
|
|
1404
|
+
tfplugin5__pb2.ProvisionResource.Response.FromString,
|
|
1405
|
+
options,
|
|
1406
|
+
channel_credentials,
|
|
1407
|
+
insecure,
|
|
1408
|
+
call_credentials,
|
|
1409
|
+
compression,
|
|
1410
|
+
wait_for_ready,
|
|
1411
|
+
timeout,
|
|
1412
|
+
metadata,
|
|
1413
|
+
_registered_method=True)
|
|
1414
|
+
|
|
1415
|
+
@staticmethod
|
|
1416
|
+
def Stop(request,
|
|
1417
|
+
target,
|
|
1418
|
+
options=(),
|
|
1419
|
+
channel_credentials=None,
|
|
1420
|
+
call_credentials=None,
|
|
1421
|
+
insecure=False,
|
|
1422
|
+
compression=None,
|
|
1423
|
+
wait_for_ready=None,
|
|
1424
|
+
timeout=None,
|
|
1425
|
+
metadata=None):
|
|
1426
|
+
return grpc.experimental.unary_unary(
|
|
1427
|
+
request,
|
|
1428
|
+
target,
|
|
1429
|
+
'/tfplugin5.Provisioner/Stop',
|
|
1430
|
+
tfplugin5__pb2.Stop.Request.SerializeToString,
|
|
1431
|
+
tfplugin5__pb2.Stop.Response.FromString,
|
|
1432
|
+
options,
|
|
1433
|
+
channel_credentials,
|
|
1434
|
+
insecure,
|
|
1435
|
+
call_credentials,
|
|
1436
|
+
compression,
|
|
1437
|
+
wait_for_ready,
|
|
1438
|
+
timeout,
|
|
1439
|
+
metadata,
|
|
1440
|
+
_registered_method=True)
|