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,1634 @@
|
|
|
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 tfplugin6_pb2 as tfplugin6__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 tfplugin6_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
|
+
'/tfplugin6.Provider/GetMetadata',
|
|
42
|
+
request_serializer=tfplugin6__pb2.GetMetadata.Request.SerializeToString,
|
|
43
|
+
response_deserializer=tfplugin6__pb2.GetMetadata.Response.FromString,
|
|
44
|
+
_registered_method=True)
|
|
45
|
+
self.GetProviderSchema = channel.unary_unary(
|
|
46
|
+
'/tfplugin6.Provider/GetProviderSchema',
|
|
47
|
+
request_serializer=tfplugin6__pb2.GetProviderSchema.Request.SerializeToString,
|
|
48
|
+
response_deserializer=tfplugin6__pb2.GetProviderSchema.Response.FromString,
|
|
49
|
+
_registered_method=True)
|
|
50
|
+
self.ValidateProviderConfig = channel.unary_unary(
|
|
51
|
+
'/tfplugin6.Provider/ValidateProviderConfig',
|
|
52
|
+
request_serializer=tfplugin6__pb2.ValidateProviderConfig.Request.SerializeToString,
|
|
53
|
+
response_deserializer=tfplugin6__pb2.ValidateProviderConfig.Response.FromString,
|
|
54
|
+
_registered_method=True)
|
|
55
|
+
self.ValidateResourceConfig = channel.unary_unary(
|
|
56
|
+
'/tfplugin6.Provider/ValidateResourceConfig',
|
|
57
|
+
request_serializer=tfplugin6__pb2.ValidateResourceConfig.Request.SerializeToString,
|
|
58
|
+
response_deserializer=tfplugin6__pb2.ValidateResourceConfig.Response.FromString,
|
|
59
|
+
_registered_method=True)
|
|
60
|
+
self.ValidateDataResourceConfig = channel.unary_unary(
|
|
61
|
+
'/tfplugin6.Provider/ValidateDataResourceConfig',
|
|
62
|
+
request_serializer=tfplugin6__pb2.ValidateDataResourceConfig.Request.SerializeToString,
|
|
63
|
+
response_deserializer=tfplugin6__pb2.ValidateDataResourceConfig.Response.FromString,
|
|
64
|
+
_registered_method=True)
|
|
65
|
+
self.UpgradeResourceState = channel.unary_unary(
|
|
66
|
+
'/tfplugin6.Provider/UpgradeResourceState',
|
|
67
|
+
request_serializer=tfplugin6__pb2.UpgradeResourceState.Request.SerializeToString,
|
|
68
|
+
response_deserializer=tfplugin6__pb2.UpgradeResourceState.Response.FromString,
|
|
69
|
+
_registered_method=True)
|
|
70
|
+
self.GetResourceIdentitySchemas = channel.unary_unary(
|
|
71
|
+
'/tfplugin6.Provider/GetResourceIdentitySchemas',
|
|
72
|
+
request_serializer=tfplugin6__pb2.GetResourceIdentitySchemas.Request.SerializeToString,
|
|
73
|
+
response_deserializer=tfplugin6__pb2.GetResourceIdentitySchemas.Response.FromString,
|
|
74
|
+
_registered_method=True)
|
|
75
|
+
self.UpgradeResourceIdentity = channel.unary_unary(
|
|
76
|
+
'/tfplugin6.Provider/UpgradeResourceIdentity',
|
|
77
|
+
request_serializer=tfplugin6__pb2.UpgradeResourceIdentity.Request.SerializeToString,
|
|
78
|
+
response_deserializer=tfplugin6__pb2.UpgradeResourceIdentity.Response.FromString,
|
|
79
|
+
_registered_method=True)
|
|
80
|
+
self.ConfigureProvider = channel.unary_unary(
|
|
81
|
+
'/tfplugin6.Provider/ConfigureProvider',
|
|
82
|
+
request_serializer=tfplugin6__pb2.ConfigureProvider.Request.SerializeToString,
|
|
83
|
+
response_deserializer=tfplugin6__pb2.ConfigureProvider.Response.FromString,
|
|
84
|
+
_registered_method=True)
|
|
85
|
+
self.ReadResource = channel.unary_unary(
|
|
86
|
+
'/tfplugin6.Provider/ReadResource',
|
|
87
|
+
request_serializer=tfplugin6__pb2.ReadResource.Request.SerializeToString,
|
|
88
|
+
response_deserializer=tfplugin6__pb2.ReadResource.Response.FromString,
|
|
89
|
+
_registered_method=True)
|
|
90
|
+
self.PlanResourceChange = channel.unary_unary(
|
|
91
|
+
'/tfplugin6.Provider/PlanResourceChange',
|
|
92
|
+
request_serializer=tfplugin6__pb2.PlanResourceChange.Request.SerializeToString,
|
|
93
|
+
response_deserializer=tfplugin6__pb2.PlanResourceChange.Response.FromString,
|
|
94
|
+
_registered_method=True)
|
|
95
|
+
self.ApplyResourceChange = channel.unary_unary(
|
|
96
|
+
'/tfplugin6.Provider/ApplyResourceChange',
|
|
97
|
+
request_serializer=tfplugin6__pb2.ApplyResourceChange.Request.SerializeToString,
|
|
98
|
+
response_deserializer=tfplugin6__pb2.ApplyResourceChange.Response.FromString,
|
|
99
|
+
_registered_method=True)
|
|
100
|
+
self.ImportResourceState = channel.unary_unary(
|
|
101
|
+
'/tfplugin6.Provider/ImportResourceState',
|
|
102
|
+
request_serializer=tfplugin6__pb2.ImportResourceState.Request.SerializeToString,
|
|
103
|
+
response_deserializer=tfplugin6__pb2.ImportResourceState.Response.FromString,
|
|
104
|
+
_registered_method=True)
|
|
105
|
+
self.MoveResourceState = channel.unary_unary(
|
|
106
|
+
'/tfplugin6.Provider/MoveResourceState',
|
|
107
|
+
request_serializer=tfplugin6__pb2.MoveResourceState.Request.SerializeToString,
|
|
108
|
+
response_deserializer=tfplugin6__pb2.MoveResourceState.Response.FromString,
|
|
109
|
+
_registered_method=True)
|
|
110
|
+
self.ReadDataSource = channel.unary_unary(
|
|
111
|
+
'/tfplugin6.Provider/ReadDataSource',
|
|
112
|
+
request_serializer=tfplugin6__pb2.ReadDataSource.Request.SerializeToString,
|
|
113
|
+
response_deserializer=tfplugin6__pb2.ReadDataSource.Response.FromString,
|
|
114
|
+
_registered_method=True)
|
|
115
|
+
self.GenerateResourceConfig = channel.unary_unary(
|
|
116
|
+
'/tfplugin6.Provider/GenerateResourceConfig',
|
|
117
|
+
request_serializer=tfplugin6__pb2.GenerateResourceConfig.Request.SerializeToString,
|
|
118
|
+
response_deserializer=tfplugin6__pb2.GenerateResourceConfig.Response.FromString,
|
|
119
|
+
_registered_method=True)
|
|
120
|
+
self.ValidateEphemeralResourceConfig = channel.unary_unary(
|
|
121
|
+
'/tfplugin6.Provider/ValidateEphemeralResourceConfig',
|
|
122
|
+
request_serializer=tfplugin6__pb2.ValidateEphemeralResourceConfig.Request.SerializeToString,
|
|
123
|
+
response_deserializer=tfplugin6__pb2.ValidateEphemeralResourceConfig.Response.FromString,
|
|
124
|
+
_registered_method=True)
|
|
125
|
+
self.OpenEphemeralResource = channel.unary_unary(
|
|
126
|
+
'/tfplugin6.Provider/OpenEphemeralResource',
|
|
127
|
+
request_serializer=tfplugin6__pb2.OpenEphemeralResource.Request.SerializeToString,
|
|
128
|
+
response_deserializer=tfplugin6__pb2.OpenEphemeralResource.Response.FromString,
|
|
129
|
+
_registered_method=True)
|
|
130
|
+
self.RenewEphemeralResource = channel.unary_unary(
|
|
131
|
+
'/tfplugin6.Provider/RenewEphemeralResource',
|
|
132
|
+
request_serializer=tfplugin6__pb2.RenewEphemeralResource.Request.SerializeToString,
|
|
133
|
+
response_deserializer=tfplugin6__pb2.RenewEphemeralResource.Response.FromString,
|
|
134
|
+
_registered_method=True)
|
|
135
|
+
self.CloseEphemeralResource = channel.unary_unary(
|
|
136
|
+
'/tfplugin6.Provider/CloseEphemeralResource',
|
|
137
|
+
request_serializer=tfplugin6__pb2.CloseEphemeralResource.Request.SerializeToString,
|
|
138
|
+
response_deserializer=tfplugin6__pb2.CloseEphemeralResource.Response.FromString,
|
|
139
|
+
_registered_method=True)
|
|
140
|
+
self.ListResource = channel.unary_stream(
|
|
141
|
+
'/tfplugin6.Provider/ListResource',
|
|
142
|
+
request_serializer=tfplugin6__pb2.ListResource.Request.SerializeToString,
|
|
143
|
+
response_deserializer=tfplugin6__pb2.ListResource.Event.FromString,
|
|
144
|
+
_registered_method=True)
|
|
145
|
+
self.ValidateListResourceConfig = channel.unary_unary(
|
|
146
|
+
'/tfplugin6.Provider/ValidateListResourceConfig',
|
|
147
|
+
request_serializer=tfplugin6__pb2.ValidateListResourceConfig.Request.SerializeToString,
|
|
148
|
+
response_deserializer=tfplugin6__pb2.ValidateListResourceConfig.Response.FromString,
|
|
149
|
+
_registered_method=True)
|
|
150
|
+
self.GetFunctions = channel.unary_unary(
|
|
151
|
+
'/tfplugin6.Provider/GetFunctions',
|
|
152
|
+
request_serializer=tfplugin6__pb2.GetFunctions.Request.SerializeToString,
|
|
153
|
+
response_deserializer=tfplugin6__pb2.GetFunctions.Response.FromString,
|
|
154
|
+
_registered_method=True)
|
|
155
|
+
self.CallFunction = channel.unary_unary(
|
|
156
|
+
'/tfplugin6.Provider/CallFunction',
|
|
157
|
+
request_serializer=tfplugin6__pb2.CallFunction.Request.SerializeToString,
|
|
158
|
+
response_deserializer=tfplugin6__pb2.CallFunction.Response.FromString,
|
|
159
|
+
_registered_method=True)
|
|
160
|
+
self.ValidateStateStoreConfig = channel.unary_unary(
|
|
161
|
+
'/tfplugin6.Provider/ValidateStateStoreConfig',
|
|
162
|
+
request_serializer=tfplugin6__pb2.ValidateStateStore.Request.SerializeToString,
|
|
163
|
+
response_deserializer=tfplugin6__pb2.ValidateStateStore.Response.FromString,
|
|
164
|
+
_registered_method=True)
|
|
165
|
+
self.ConfigureStateStore = channel.unary_unary(
|
|
166
|
+
'/tfplugin6.Provider/ConfigureStateStore',
|
|
167
|
+
request_serializer=tfplugin6__pb2.ConfigureStateStore.Request.SerializeToString,
|
|
168
|
+
response_deserializer=tfplugin6__pb2.ConfigureStateStore.Response.FromString,
|
|
169
|
+
_registered_method=True)
|
|
170
|
+
self.ReadStateBytes = channel.unary_stream(
|
|
171
|
+
'/tfplugin6.Provider/ReadStateBytes',
|
|
172
|
+
request_serializer=tfplugin6__pb2.ReadStateBytes.Request.SerializeToString,
|
|
173
|
+
response_deserializer=tfplugin6__pb2.ReadStateBytes.Response.FromString,
|
|
174
|
+
_registered_method=True)
|
|
175
|
+
self.WriteStateBytes = channel.stream_unary(
|
|
176
|
+
'/tfplugin6.Provider/WriteStateBytes',
|
|
177
|
+
request_serializer=tfplugin6__pb2.WriteStateBytes.RequestChunk.SerializeToString,
|
|
178
|
+
response_deserializer=tfplugin6__pb2.WriteStateBytes.Response.FromString,
|
|
179
|
+
_registered_method=True)
|
|
180
|
+
self.LockState = channel.unary_unary(
|
|
181
|
+
'/tfplugin6.Provider/LockState',
|
|
182
|
+
request_serializer=tfplugin6__pb2.LockState.Request.SerializeToString,
|
|
183
|
+
response_deserializer=tfplugin6__pb2.LockState.Response.FromString,
|
|
184
|
+
_registered_method=True)
|
|
185
|
+
self.UnlockState = channel.unary_unary(
|
|
186
|
+
'/tfplugin6.Provider/UnlockState',
|
|
187
|
+
request_serializer=tfplugin6__pb2.UnlockState.Request.SerializeToString,
|
|
188
|
+
response_deserializer=tfplugin6__pb2.UnlockState.Response.FromString,
|
|
189
|
+
_registered_method=True)
|
|
190
|
+
self.GetStates = channel.unary_unary(
|
|
191
|
+
'/tfplugin6.Provider/GetStates',
|
|
192
|
+
request_serializer=tfplugin6__pb2.GetStates.Request.SerializeToString,
|
|
193
|
+
response_deserializer=tfplugin6__pb2.GetStates.Response.FromString,
|
|
194
|
+
_registered_method=True)
|
|
195
|
+
self.DeleteState = channel.unary_unary(
|
|
196
|
+
'/tfplugin6.Provider/DeleteState',
|
|
197
|
+
request_serializer=tfplugin6__pb2.DeleteState.Request.SerializeToString,
|
|
198
|
+
response_deserializer=tfplugin6__pb2.DeleteState.Response.FromString,
|
|
199
|
+
_registered_method=True)
|
|
200
|
+
self.PlanAction = channel.unary_unary(
|
|
201
|
+
'/tfplugin6.Provider/PlanAction',
|
|
202
|
+
request_serializer=tfplugin6__pb2.PlanAction.Request.SerializeToString,
|
|
203
|
+
response_deserializer=tfplugin6__pb2.PlanAction.Response.FromString,
|
|
204
|
+
_registered_method=True)
|
|
205
|
+
self.InvokeAction = channel.unary_stream(
|
|
206
|
+
'/tfplugin6.Provider/InvokeAction',
|
|
207
|
+
request_serializer=tfplugin6__pb2.InvokeAction.Request.SerializeToString,
|
|
208
|
+
response_deserializer=tfplugin6__pb2.InvokeAction.Event.FromString,
|
|
209
|
+
_registered_method=True)
|
|
210
|
+
self.ValidateActionConfig = channel.unary_unary(
|
|
211
|
+
'/tfplugin6.Provider/ValidateActionConfig',
|
|
212
|
+
request_serializer=tfplugin6__pb2.ValidateActionConfig.Request.SerializeToString,
|
|
213
|
+
response_deserializer=tfplugin6__pb2.ValidateActionConfig.Response.FromString,
|
|
214
|
+
_registered_method=True)
|
|
215
|
+
self.StopProvider = channel.unary_unary(
|
|
216
|
+
'/tfplugin6.Provider/StopProvider',
|
|
217
|
+
request_serializer=tfplugin6__pb2.StopProvider.Request.SerializeToString,
|
|
218
|
+
response_deserializer=tfplugin6__pb2.StopProvider.Response.FromString,
|
|
219
|
+
_registered_method=True)
|
|
220
|
+
|
|
221
|
+
|
|
222
|
+
class ProviderServicer:
|
|
223
|
+
"""////// Information about what a provider supports/expects
|
|
224
|
+
"""
|
|
225
|
+
|
|
226
|
+
def GetMetadata(self, request, context):
|
|
227
|
+
"""GetMetadata returns upfront information about server capabilities and
|
|
228
|
+
supported resource types without requiring the server to instantiate all
|
|
229
|
+
schema information, which may be memory intensive.
|
|
230
|
+
This method is CURRENTLY UNUSED and it serves mostly for convenience
|
|
231
|
+
of code generation inside of terraform-plugin-mux.
|
|
232
|
+
"""
|
|
233
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
234
|
+
context.set_details('Method not implemented!')
|
|
235
|
+
raise NotImplementedError('Method not implemented!')
|
|
236
|
+
|
|
237
|
+
def GetProviderSchema(self, request, context):
|
|
238
|
+
"""GetSchema returns schema information for the provider, data resources,
|
|
239
|
+
and managed resources.
|
|
240
|
+
"""
|
|
241
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
242
|
+
context.set_details('Method not implemented!')
|
|
243
|
+
raise NotImplementedError('Method not implemented!')
|
|
244
|
+
|
|
245
|
+
def ValidateProviderConfig(self, request, context):
|
|
246
|
+
"""Missing associated documentation comment in .proto file."""
|
|
247
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
248
|
+
context.set_details('Method not implemented!')
|
|
249
|
+
raise NotImplementedError('Method not implemented!')
|
|
250
|
+
|
|
251
|
+
def ValidateResourceConfig(self, request, context):
|
|
252
|
+
"""Missing associated documentation comment in .proto file."""
|
|
253
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
254
|
+
context.set_details('Method not implemented!')
|
|
255
|
+
raise NotImplementedError('Method not implemented!')
|
|
256
|
+
|
|
257
|
+
def ValidateDataResourceConfig(self, request, context):
|
|
258
|
+
"""Missing associated documentation comment in .proto file."""
|
|
259
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
260
|
+
context.set_details('Method not implemented!')
|
|
261
|
+
raise NotImplementedError('Method not implemented!')
|
|
262
|
+
|
|
263
|
+
def UpgradeResourceState(self, request, context):
|
|
264
|
+
"""Missing associated documentation comment in .proto file."""
|
|
265
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
266
|
+
context.set_details('Method not implemented!')
|
|
267
|
+
raise NotImplementedError('Method not implemented!')
|
|
268
|
+
|
|
269
|
+
def GetResourceIdentitySchemas(self, request, context):
|
|
270
|
+
"""GetResourceIdentitySchemas returns the identity schemas for all managed
|
|
271
|
+
resources.
|
|
272
|
+
"""
|
|
273
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
274
|
+
context.set_details('Method not implemented!')
|
|
275
|
+
raise NotImplementedError('Method not implemented!')
|
|
276
|
+
|
|
277
|
+
def UpgradeResourceIdentity(self, request, context):
|
|
278
|
+
"""UpgradeResourceIdentityData should return the upgraded resource identity
|
|
279
|
+
data for a managed resource type.
|
|
280
|
+
"""
|
|
281
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
282
|
+
context.set_details('Method not implemented!')
|
|
283
|
+
raise NotImplementedError('Method not implemented!')
|
|
284
|
+
|
|
285
|
+
def ConfigureProvider(self, request, context):
|
|
286
|
+
"""////// One-time initialization, called before other functions below
|
|
287
|
+
"""
|
|
288
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
289
|
+
context.set_details('Method not implemented!')
|
|
290
|
+
raise NotImplementedError('Method not implemented!')
|
|
291
|
+
|
|
292
|
+
def ReadResource(self, request, context):
|
|
293
|
+
"""////// Managed Resource Lifecycle
|
|
294
|
+
"""
|
|
295
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
296
|
+
context.set_details('Method not implemented!')
|
|
297
|
+
raise NotImplementedError('Method not implemented!')
|
|
298
|
+
|
|
299
|
+
def PlanResourceChange(self, request, context):
|
|
300
|
+
"""Missing associated documentation comment in .proto file."""
|
|
301
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
302
|
+
context.set_details('Method not implemented!')
|
|
303
|
+
raise NotImplementedError('Method not implemented!')
|
|
304
|
+
|
|
305
|
+
def ApplyResourceChange(self, request, context):
|
|
306
|
+
"""Missing associated documentation comment in .proto file."""
|
|
307
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
308
|
+
context.set_details('Method not implemented!')
|
|
309
|
+
raise NotImplementedError('Method not implemented!')
|
|
310
|
+
|
|
311
|
+
def ImportResourceState(self, request, context):
|
|
312
|
+
"""Missing associated documentation comment in .proto file."""
|
|
313
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
314
|
+
context.set_details('Method not implemented!')
|
|
315
|
+
raise NotImplementedError('Method not implemented!')
|
|
316
|
+
|
|
317
|
+
def MoveResourceState(self, request, context):
|
|
318
|
+
"""Missing associated documentation comment in .proto file."""
|
|
319
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
320
|
+
context.set_details('Method not implemented!')
|
|
321
|
+
raise NotImplementedError('Method not implemented!')
|
|
322
|
+
|
|
323
|
+
def ReadDataSource(self, request, context):
|
|
324
|
+
"""Missing associated documentation comment in .proto file."""
|
|
325
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
326
|
+
context.set_details('Method not implemented!')
|
|
327
|
+
raise NotImplementedError('Method not implemented!')
|
|
328
|
+
|
|
329
|
+
def GenerateResourceConfig(self, request, context):
|
|
330
|
+
"""Missing associated documentation comment in .proto file."""
|
|
331
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
332
|
+
context.set_details('Method not implemented!')
|
|
333
|
+
raise NotImplementedError('Method not implemented!')
|
|
334
|
+
|
|
335
|
+
def ValidateEphemeralResourceConfig(self, request, context):
|
|
336
|
+
"""////// Ephemeral Resource Lifecycle
|
|
337
|
+
"""
|
|
338
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
339
|
+
context.set_details('Method not implemented!')
|
|
340
|
+
raise NotImplementedError('Method not implemented!')
|
|
341
|
+
|
|
342
|
+
def OpenEphemeralResource(self, request, context):
|
|
343
|
+
"""Missing associated documentation comment in .proto file."""
|
|
344
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
345
|
+
context.set_details('Method not implemented!')
|
|
346
|
+
raise NotImplementedError('Method not implemented!')
|
|
347
|
+
|
|
348
|
+
def RenewEphemeralResource(self, request, context):
|
|
349
|
+
"""Missing associated documentation comment in .proto file."""
|
|
350
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
351
|
+
context.set_details('Method not implemented!')
|
|
352
|
+
raise NotImplementedError('Method not implemented!')
|
|
353
|
+
|
|
354
|
+
def CloseEphemeralResource(self, request, context):
|
|
355
|
+
"""Missing associated documentation comment in .proto file."""
|
|
356
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
357
|
+
context.set_details('Method not implemented!')
|
|
358
|
+
raise NotImplementedError('Method not implemented!')
|
|
359
|
+
|
|
360
|
+
def ListResource(self, request, context):
|
|
361
|
+
"""///// List
|
|
362
|
+
"""
|
|
363
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
364
|
+
context.set_details('Method not implemented!')
|
|
365
|
+
raise NotImplementedError('Method not implemented!')
|
|
366
|
+
|
|
367
|
+
def ValidateListResourceConfig(self, request, context):
|
|
368
|
+
"""Missing associated documentation comment in .proto file."""
|
|
369
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
370
|
+
context.set_details('Method not implemented!')
|
|
371
|
+
raise NotImplementedError('Method not implemented!')
|
|
372
|
+
|
|
373
|
+
def GetFunctions(self, request, context):
|
|
374
|
+
"""GetFunctions returns the definitions of all functions.
|
|
375
|
+
"""
|
|
376
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
377
|
+
context.set_details('Method not implemented!')
|
|
378
|
+
raise NotImplementedError('Method not implemented!')
|
|
379
|
+
|
|
380
|
+
def CallFunction(self, request, context):
|
|
381
|
+
"""////// Provider-contributed Functions
|
|
382
|
+
"""
|
|
383
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
384
|
+
context.set_details('Method not implemented!')
|
|
385
|
+
raise NotImplementedError('Method not implemented!')
|
|
386
|
+
|
|
387
|
+
def ValidateStateStoreConfig(self, request, context):
|
|
388
|
+
"""ValidateStateStoreConfig performs configuration validation
|
|
389
|
+
"""
|
|
390
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
391
|
+
context.set_details('Method not implemented!')
|
|
392
|
+
raise NotImplementedError('Method not implemented!')
|
|
393
|
+
|
|
394
|
+
def ConfigureStateStore(self, request, context):
|
|
395
|
+
"""ConfigureStateStore configures the state store, such as S3 connection in the context of already configured provider
|
|
396
|
+
"""
|
|
397
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
398
|
+
context.set_details('Method not implemented!')
|
|
399
|
+
raise NotImplementedError('Method not implemented!')
|
|
400
|
+
|
|
401
|
+
def ReadStateBytes(self, request, context):
|
|
402
|
+
"""ReadStateBytes streams byte chunks of a given state file from a state store
|
|
403
|
+
"""
|
|
404
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
405
|
+
context.set_details('Method not implemented!')
|
|
406
|
+
raise NotImplementedError('Method not implemented!')
|
|
407
|
+
|
|
408
|
+
def WriteStateBytes(self, request_iterator, context):
|
|
409
|
+
"""WriteStateBytes streams byte chunks of a given state file into a state store
|
|
410
|
+
"""
|
|
411
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
412
|
+
context.set_details('Method not implemented!')
|
|
413
|
+
raise NotImplementedError('Method not implemented!')
|
|
414
|
+
|
|
415
|
+
def LockState(self, request, context):
|
|
416
|
+
"""LockState locks a given state (i.e. CE workspace)
|
|
417
|
+
"""
|
|
418
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
419
|
+
context.set_details('Method not implemented!')
|
|
420
|
+
raise NotImplementedError('Method not implemented!')
|
|
421
|
+
|
|
422
|
+
def UnlockState(self, request, context):
|
|
423
|
+
"""UnlockState unlocks a given state (i.e. CE workspace)
|
|
424
|
+
"""
|
|
425
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
426
|
+
context.set_details('Method not implemented!')
|
|
427
|
+
raise NotImplementedError('Method not implemented!')
|
|
428
|
+
|
|
429
|
+
def GetStates(self, request, context):
|
|
430
|
+
"""GetStates returns a list of all states (i.e. CE workspaces) managed by a given state store
|
|
431
|
+
"""
|
|
432
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
433
|
+
context.set_details('Method not implemented!')
|
|
434
|
+
raise NotImplementedError('Method not implemented!')
|
|
435
|
+
|
|
436
|
+
def DeleteState(self, request, context):
|
|
437
|
+
"""DeleteState instructs a given state store to delete a specific state (i.e. a CE workspace)
|
|
438
|
+
"""
|
|
439
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
440
|
+
context.set_details('Method not implemented!')
|
|
441
|
+
raise NotImplementedError('Method not implemented!')
|
|
442
|
+
|
|
443
|
+
def PlanAction(self, request, context):
|
|
444
|
+
"""////// Actions
|
|
445
|
+
"""
|
|
446
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
447
|
+
context.set_details('Method not implemented!')
|
|
448
|
+
raise NotImplementedError('Method not implemented!')
|
|
449
|
+
|
|
450
|
+
def InvokeAction(self, request, context):
|
|
451
|
+
"""Missing associated documentation comment in .proto file."""
|
|
452
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
453
|
+
context.set_details('Method not implemented!')
|
|
454
|
+
raise NotImplementedError('Method not implemented!')
|
|
455
|
+
|
|
456
|
+
def ValidateActionConfig(self, request, context):
|
|
457
|
+
"""Missing associated documentation comment in .proto file."""
|
|
458
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
459
|
+
context.set_details('Method not implemented!')
|
|
460
|
+
raise NotImplementedError('Method not implemented!')
|
|
461
|
+
|
|
462
|
+
def StopProvider(self, request, context):
|
|
463
|
+
"""////// Graceful Shutdown
|
|
464
|
+
"""
|
|
465
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
466
|
+
context.set_details('Method not implemented!')
|
|
467
|
+
raise NotImplementedError('Method not implemented!')
|
|
468
|
+
|
|
469
|
+
|
|
470
|
+
def add_ProviderServicer_to_server(servicer, server):
|
|
471
|
+
rpc_method_handlers = {
|
|
472
|
+
'GetMetadata': grpc.unary_unary_rpc_method_handler(
|
|
473
|
+
servicer.GetMetadata,
|
|
474
|
+
request_deserializer=tfplugin6__pb2.GetMetadata.Request.FromString,
|
|
475
|
+
response_serializer=tfplugin6__pb2.GetMetadata.Response.SerializeToString,
|
|
476
|
+
),
|
|
477
|
+
'GetProviderSchema': grpc.unary_unary_rpc_method_handler(
|
|
478
|
+
servicer.GetProviderSchema,
|
|
479
|
+
request_deserializer=tfplugin6__pb2.GetProviderSchema.Request.FromString,
|
|
480
|
+
response_serializer=tfplugin6__pb2.GetProviderSchema.Response.SerializeToString,
|
|
481
|
+
),
|
|
482
|
+
'ValidateProviderConfig': grpc.unary_unary_rpc_method_handler(
|
|
483
|
+
servicer.ValidateProviderConfig,
|
|
484
|
+
request_deserializer=tfplugin6__pb2.ValidateProviderConfig.Request.FromString,
|
|
485
|
+
response_serializer=tfplugin6__pb2.ValidateProviderConfig.Response.SerializeToString,
|
|
486
|
+
),
|
|
487
|
+
'ValidateResourceConfig': grpc.unary_unary_rpc_method_handler(
|
|
488
|
+
servicer.ValidateResourceConfig,
|
|
489
|
+
request_deserializer=tfplugin6__pb2.ValidateResourceConfig.Request.FromString,
|
|
490
|
+
response_serializer=tfplugin6__pb2.ValidateResourceConfig.Response.SerializeToString,
|
|
491
|
+
),
|
|
492
|
+
'ValidateDataResourceConfig': grpc.unary_unary_rpc_method_handler(
|
|
493
|
+
servicer.ValidateDataResourceConfig,
|
|
494
|
+
request_deserializer=tfplugin6__pb2.ValidateDataResourceConfig.Request.FromString,
|
|
495
|
+
response_serializer=tfplugin6__pb2.ValidateDataResourceConfig.Response.SerializeToString,
|
|
496
|
+
),
|
|
497
|
+
'UpgradeResourceState': grpc.unary_unary_rpc_method_handler(
|
|
498
|
+
servicer.UpgradeResourceState,
|
|
499
|
+
request_deserializer=tfplugin6__pb2.UpgradeResourceState.Request.FromString,
|
|
500
|
+
response_serializer=tfplugin6__pb2.UpgradeResourceState.Response.SerializeToString,
|
|
501
|
+
),
|
|
502
|
+
'GetResourceIdentitySchemas': grpc.unary_unary_rpc_method_handler(
|
|
503
|
+
servicer.GetResourceIdentitySchemas,
|
|
504
|
+
request_deserializer=tfplugin6__pb2.GetResourceIdentitySchemas.Request.FromString,
|
|
505
|
+
response_serializer=tfplugin6__pb2.GetResourceIdentitySchemas.Response.SerializeToString,
|
|
506
|
+
),
|
|
507
|
+
'UpgradeResourceIdentity': grpc.unary_unary_rpc_method_handler(
|
|
508
|
+
servicer.UpgradeResourceIdentity,
|
|
509
|
+
request_deserializer=tfplugin6__pb2.UpgradeResourceIdentity.Request.FromString,
|
|
510
|
+
response_serializer=tfplugin6__pb2.UpgradeResourceIdentity.Response.SerializeToString,
|
|
511
|
+
),
|
|
512
|
+
'ConfigureProvider': grpc.unary_unary_rpc_method_handler(
|
|
513
|
+
servicer.ConfigureProvider,
|
|
514
|
+
request_deserializer=tfplugin6__pb2.ConfigureProvider.Request.FromString,
|
|
515
|
+
response_serializer=tfplugin6__pb2.ConfigureProvider.Response.SerializeToString,
|
|
516
|
+
),
|
|
517
|
+
'ReadResource': grpc.unary_unary_rpc_method_handler(
|
|
518
|
+
servicer.ReadResource,
|
|
519
|
+
request_deserializer=tfplugin6__pb2.ReadResource.Request.FromString,
|
|
520
|
+
response_serializer=tfplugin6__pb2.ReadResource.Response.SerializeToString,
|
|
521
|
+
),
|
|
522
|
+
'PlanResourceChange': grpc.unary_unary_rpc_method_handler(
|
|
523
|
+
servicer.PlanResourceChange,
|
|
524
|
+
request_deserializer=tfplugin6__pb2.PlanResourceChange.Request.FromString,
|
|
525
|
+
response_serializer=tfplugin6__pb2.PlanResourceChange.Response.SerializeToString,
|
|
526
|
+
),
|
|
527
|
+
'ApplyResourceChange': grpc.unary_unary_rpc_method_handler(
|
|
528
|
+
servicer.ApplyResourceChange,
|
|
529
|
+
request_deserializer=tfplugin6__pb2.ApplyResourceChange.Request.FromString,
|
|
530
|
+
response_serializer=tfplugin6__pb2.ApplyResourceChange.Response.SerializeToString,
|
|
531
|
+
),
|
|
532
|
+
'ImportResourceState': grpc.unary_unary_rpc_method_handler(
|
|
533
|
+
servicer.ImportResourceState,
|
|
534
|
+
request_deserializer=tfplugin6__pb2.ImportResourceState.Request.FromString,
|
|
535
|
+
response_serializer=tfplugin6__pb2.ImportResourceState.Response.SerializeToString,
|
|
536
|
+
),
|
|
537
|
+
'MoveResourceState': grpc.unary_unary_rpc_method_handler(
|
|
538
|
+
servicer.MoveResourceState,
|
|
539
|
+
request_deserializer=tfplugin6__pb2.MoveResourceState.Request.FromString,
|
|
540
|
+
response_serializer=tfplugin6__pb2.MoveResourceState.Response.SerializeToString,
|
|
541
|
+
),
|
|
542
|
+
'ReadDataSource': grpc.unary_unary_rpc_method_handler(
|
|
543
|
+
servicer.ReadDataSource,
|
|
544
|
+
request_deserializer=tfplugin6__pb2.ReadDataSource.Request.FromString,
|
|
545
|
+
response_serializer=tfplugin6__pb2.ReadDataSource.Response.SerializeToString,
|
|
546
|
+
),
|
|
547
|
+
'GenerateResourceConfig': grpc.unary_unary_rpc_method_handler(
|
|
548
|
+
servicer.GenerateResourceConfig,
|
|
549
|
+
request_deserializer=tfplugin6__pb2.GenerateResourceConfig.Request.FromString,
|
|
550
|
+
response_serializer=tfplugin6__pb2.GenerateResourceConfig.Response.SerializeToString,
|
|
551
|
+
),
|
|
552
|
+
'ValidateEphemeralResourceConfig': grpc.unary_unary_rpc_method_handler(
|
|
553
|
+
servicer.ValidateEphemeralResourceConfig,
|
|
554
|
+
request_deserializer=tfplugin6__pb2.ValidateEphemeralResourceConfig.Request.FromString,
|
|
555
|
+
response_serializer=tfplugin6__pb2.ValidateEphemeralResourceConfig.Response.SerializeToString,
|
|
556
|
+
),
|
|
557
|
+
'OpenEphemeralResource': grpc.unary_unary_rpc_method_handler(
|
|
558
|
+
servicer.OpenEphemeralResource,
|
|
559
|
+
request_deserializer=tfplugin6__pb2.OpenEphemeralResource.Request.FromString,
|
|
560
|
+
response_serializer=tfplugin6__pb2.OpenEphemeralResource.Response.SerializeToString,
|
|
561
|
+
),
|
|
562
|
+
'RenewEphemeralResource': grpc.unary_unary_rpc_method_handler(
|
|
563
|
+
servicer.RenewEphemeralResource,
|
|
564
|
+
request_deserializer=tfplugin6__pb2.RenewEphemeralResource.Request.FromString,
|
|
565
|
+
response_serializer=tfplugin6__pb2.RenewEphemeralResource.Response.SerializeToString,
|
|
566
|
+
),
|
|
567
|
+
'CloseEphemeralResource': grpc.unary_unary_rpc_method_handler(
|
|
568
|
+
servicer.CloseEphemeralResource,
|
|
569
|
+
request_deserializer=tfplugin6__pb2.CloseEphemeralResource.Request.FromString,
|
|
570
|
+
response_serializer=tfplugin6__pb2.CloseEphemeralResource.Response.SerializeToString,
|
|
571
|
+
),
|
|
572
|
+
'ListResource': grpc.unary_stream_rpc_method_handler(
|
|
573
|
+
servicer.ListResource,
|
|
574
|
+
request_deserializer=tfplugin6__pb2.ListResource.Request.FromString,
|
|
575
|
+
response_serializer=tfplugin6__pb2.ListResource.Event.SerializeToString,
|
|
576
|
+
),
|
|
577
|
+
'ValidateListResourceConfig': grpc.unary_unary_rpc_method_handler(
|
|
578
|
+
servicer.ValidateListResourceConfig,
|
|
579
|
+
request_deserializer=tfplugin6__pb2.ValidateListResourceConfig.Request.FromString,
|
|
580
|
+
response_serializer=tfplugin6__pb2.ValidateListResourceConfig.Response.SerializeToString,
|
|
581
|
+
),
|
|
582
|
+
'GetFunctions': grpc.unary_unary_rpc_method_handler(
|
|
583
|
+
servicer.GetFunctions,
|
|
584
|
+
request_deserializer=tfplugin6__pb2.GetFunctions.Request.FromString,
|
|
585
|
+
response_serializer=tfplugin6__pb2.GetFunctions.Response.SerializeToString,
|
|
586
|
+
),
|
|
587
|
+
'CallFunction': grpc.unary_unary_rpc_method_handler(
|
|
588
|
+
servicer.CallFunction,
|
|
589
|
+
request_deserializer=tfplugin6__pb2.CallFunction.Request.FromString,
|
|
590
|
+
response_serializer=tfplugin6__pb2.CallFunction.Response.SerializeToString,
|
|
591
|
+
),
|
|
592
|
+
'ValidateStateStoreConfig': grpc.unary_unary_rpc_method_handler(
|
|
593
|
+
servicer.ValidateStateStoreConfig,
|
|
594
|
+
request_deserializer=tfplugin6__pb2.ValidateStateStore.Request.FromString,
|
|
595
|
+
response_serializer=tfplugin6__pb2.ValidateStateStore.Response.SerializeToString,
|
|
596
|
+
),
|
|
597
|
+
'ConfigureStateStore': grpc.unary_unary_rpc_method_handler(
|
|
598
|
+
servicer.ConfigureStateStore,
|
|
599
|
+
request_deserializer=tfplugin6__pb2.ConfigureStateStore.Request.FromString,
|
|
600
|
+
response_serializer=tfplugin6__pb2.ConfigureStateStore.Response.SerializeToString,
|
|
601
|
+
),
|
|
602
|
+
'ReadStateBytes': grpc.unary_stream_rpc_method_handler(
|
|
603
|
+
servicer.ReadStateBytes,
|
|
604
|
+
request_deserializer=tfplugin6__pb2.ReadStateBytes.Request.FromString,
|
|
605
|
+
response_serializer=tfplugin6__pb2.ReadStateBytes.Response.SerializeToString,
|
|
606
|
+
),
|
|
607
|
+
'WriteStateBytes': grpc.stream_unary_rpc_method_handler(
|
|
608
|
+
servicer.WriteStateBytes,
|
|
609
|
+
request_deserializer=tfplugin6__pb2.WriteStateBytes.RequestChunk.FromString,
|
|
610
|
+
response_serializer=tfplugin6__pb2.WriteStateBytes.Response.SerializeToString,
|
|
611
|
+
),
|
|
612
|
+
'LockState': grpc.unary_unary_rpc_method_handler(
|
|
613
|
+
servicer.LockState,
|
|
614
|
+
request_deserializer=tfplugin6__pb2.LockState.Request.FromString,
|
|
615
|
+
response_serializer=tfplugin6__pb2.LockState.Response.SerializeToString,
|
|
616
|
+
),
|
|
617
|
+
'UnlockState': grpc.unary_unary_rpc_method_handler(
|
|
618
|
+
servicer.UnlockState,
|
|
619
|
+
request_deserializer=tfplugin6__pb2.UnlockState.Request.FromString,
|
|
620
|
+
response_serializer=tfplugin6__pb2.UnlockState.Response.SerializeToString,
|
|
621
|
+
),
|
|
622
|
+
'GetStates': grpc.unary_unary_rpc_method_handler(
|
|
623
|
+
servicer.GetStates,
|
|
624
|
+
request_deserializer=tfplugin6__pb2.GetStates.Request.FromString,
|
|
625
|
+
response_serializer=tfplugin6__pb2.GetStates.Response.SerializeToString,
|
|
626
|
+
),
|
|
627
|
+
'DeleteState': grpc.unary_unary_rpc_method_handler(
|
|
628
|
+
servicer.DeleteState,
|
|
629
|
+
request_deserializer=tfplugin6__pb2.DeleteState.Request.FromString,
|
|
630
|
+
response_serializer=tfplugin6__pb2.DeleteState.Response.SerializeToString,
|
|
631
|
+
),
|
|
632
|
+
'PlanAction': grpc.unary_unary_rpc_method_handler(
|
|
633
|
+
servicer.PlanAction,
|
|
634
|
+
request_deserializer=tfplugin6__pb2.PlanAction.Request.FromString,
|
|
635
|
+
response_serializer=tfplugin6__pb2.PlanAction.Response.SerializeToString,
|
|
636
|
+
),
|
|
637
|
+
'InvokeAction': grpc.unary_stream_rpc_method_handler(
|
|
638
|
+
servicer.InvokeAction,
|
|
639
|
+
request_deserializer=tfplugin6__pb2.InvokeAction.Request.FromString,
|
|
640
|
+
response_serializer=tfplugin6__pb2.InvokeAction.Event.SerializeToString,
|
|
641
|
+
),
|
|
642
|
+
'ValidateActionConfig': grpc.unary_unary_rpc_method_handler(
|
|
643
|
+
servicer.ValidateActionConfig,
|
|
644
|
+
request_deserializer=tfplugin6__pb2.ValidateActionConfig.Request.FromString,
|
|
645
|
+
response_serializer=tfplugin6__pb2.ValidateActionConfig.Response.SerializeToString,
|
|
646
|
+
),
|
|
647
|
+
'StopProvider': grpc.unary_unary_rpc_method_handler(
|
|
648
|
+
servicer.StopProvider,
|
|
649
|
+
request_deserializer=tfplugin6__pb2.StopProvider.Request.FromString,
|
|
650
|
+
response_serializer=tfplugin6__pb2.StopProvider.Response.SerializeToString,
|
|
651
|
+
),
|
|
652
|
+
}
|
|
653
|
+
generic_handler = grpc.method_handlers_generic_handler(
|
|
654
|
+
'tfplugin6.Provider', rpc_method_handlers)
|
|
655
|
+
server.add_generic_rpc_handlers((generic_handler,))
|
|
656
|
+
server.add_registered_method_handlers('tfplugin6.Provider', rpc_method_handlers)
|
|
657
|
+
|
|
658
|
+
|
|
659
|
+
# This class is part of an EXPERIMENTAL API.
|
|
660
|
+
class Provider:
|
|
661
|
+
"""////// Information about what a provider supports/expects
|
|
662
|
+
"""
|
|
663
|
+
|
|
664
|
+
@staticmethod
|
|
665
|
+
def GetMetadata(request,
|
|
666
|
+
target,
|
|
667
|
+
options=(),
|
|
668
|
+
channel_credentials=None,
|
|
669
|
+
call_credentials=None,
|
|
670
|
+
insecure=False,
|
|
671
|
+
compression=None,
|
|
672
|
+
wait_for_ready=None,
|
|
673
|
+
timeout=None,
|
|
674
|
+
metadata=None):
|
|
675
|
+
return grpc.experimental.unary_unary(
|
|
676
|
+
request,
|
|
677
|
+
target,
|
|
678
|
+
'/tfplugin6.Provider/GetMetadata',
|
|
679
|
+
tfplugin6__pb2.GetMetadata.Request.SerializeToString,
|
|
680
|
+
tfplugin6__pb2.GetMetadata.Response.FromString,
|
|
681
|
+
options,
|
|
682
|
+
channel_credentials,
|
|
683
|
+
insecure,
|
|
684
|
+
call_credentials,
|
|
685
|
+
compression,
|
|
686
|
+
wait_for_ready,
|
|
687
|
+
timeout,
|
|
688
|
+
metadata,
|
|
689
|
+
_registered_method=True)
|
|
690
|
+
|
|
691
|
+
@staticmethod
|
|
692
|
+
def GetProviderSchema(request,
|
|
693
|
+
target,
|
|
694
|
+
options=(),
|
|
695
|
+
channel_credentials=None,
|
|
696
|
+
call_credentials=None,
|
|
697
|
+
insecure=False,
|
|
698
|
+
compression=None,
|
|
699
|
+
wait_for_ready=None,
|
|
700
|
+
timeout=None,
|
|
701
|
+
metadata=None):
|
|
702
|
+
return grpc.experimental.unary_unary(
|
|
703
|
+
request,
|
|
704
|
+
target,
|
|
705
|
+
'/tfplugin6.Provider/GetProviderSchema',
|
|
706
|
+
tfplugin6__pb2.GetProviderSchema.Request.SerializeToString,
|
|
707
|
+
tfplugin6__pb2.GetProviderSchema.Response.FromString,
|
|
708
|
+
options,
|
|
709
|
+
channel_credentials,
|
|
710
|
+
insecure,
|
|
711
|
+
call_credentials,
|
|
712
|
+
compression,
|
|
713
|
+
wait_for_ready,
|
|
714
|
+
timeout,
|
|
715
|
+
metadata,
|
|
716
|
+
_registered_method=True)
|
|
717
|
+
|
|
718
|
+
@staticmethod
|
|
719
|
+
def ValidateProviderConfig(request,
|
|
720
|
+
target,
|
|
721
|
+
options=(),
|
|
722
|
+
channel_credentials=None,
|
|
723
|
+
call_credentials=None,
|
|
724
|
+
insecure=False,
|
|
725
|
+
compression=None,
|
|
726
|
+
wait_for_ready=None,
|
|
727
|
+
timeout=None,
|
|
728
|
+
metadata=None):
|
|
729
|
+
return grpc.experimental.unary_unary(
|
|
730
|
+
request,
|
|
731
|
+
target,
|
|
732
|
+
'/tfplugin6.Provider/ValidateProviderConfig',
|
|
733
|
+
tfplugin6__pb2.ValidateProviderConfig.Request.SerializeToString,
|
|
734
|
+
tfplugin6__pb2.ValidateProviderConfig.Response.FromString,
|
|
735
|
+
options,
|
|
736
|
+
channel_credentials,
|
|
737
|
+
insecure,
|
|
738
|
+
call_credentials,
|
|
739
|
+
compression,
|
|
740
|
+
wait_for_ready,
|
|
741
|
+
timeout,
|
|
742
|
+
metadata,
|
|
743
|
+
_registered_method=True)
|
|
744
|
+
|
|
745
|
+
@staticmethod
|
|
746
|
+
def ValidateResourceConfig(request,
|
|
747
|
+
target,
|
|
748
|
+
options=(),
|
|
749
|
+
channel_credentials=None,
|
|
750
|
+
call_credentials=None,
|
|
751
|
+
insecure=False,
|
|
752
|
+
compression=None,
|
|
753
|
+
wait_for_ready=None,
|
|
754
|
+
timeout=None,
|
|
755
|
+
metadata=None):
|
|
756
|
+
return grpc.experimental.unary_unary(
|
|
757
|
+
request,
|
|
758
|
+
target,
|
|
759
|
+
'/tfplugin6.Provider/ValidateResourceConfig',
|
|
760
|
+
tfplugin6__pb2.ValidateResourceConfig.Request.SerializeToString,
|
|
761
|
+
tfplugin6__pb2.ValidateResourceConfig.Response.FromString,
|
|
762
|
+
options,
|
|
763
|
+
channel_credentials,
|
|
764
|
+
insecure,
|
|
765
|
+
call_credentials,
|
|
766
|
+
compression,
|
|
767
|
+
wait_for_ready,
|
|
768
|
+
timeout,
|
|
769
|
+
metadata,
|
|
770
|
+
_registered_method=True)
|
|
771
|
+
|
|
772
|
+
@staticmethod
|
|
773
|
+
def ValidateDataResourceConfig(request,
|
|
774
|
+
target,
|
|
775
|
+
options=(),
|
|
776
|
+
channel_credentials=None,
|
|
777
|
+
call_credentials=None,
|
|
778
|
+
insecure=False,
|
|
779
|
+
compression=None,
|
|
780
|
+
wait_for_ready=None,
|
|
781
|
+
timeout=None,
|
|
782
|
+
metadata=None):
|
|
783
|
+
return grpc.experimental.unary_unary(
|
|
784
|
+
request,
|
|
785
|
+
target,
|
|
786
|
+
'/tfplugin6.Provider/ValidateDataResourceConfig',
|
|
787
|
+
tfplugin6__pb2.ValidateDataResourceConfig.Request.SerializeToString,
|
|
788
|
+
tfplugin6__pb2.ValidateDataResourceConfig.Response.FromString,
|
|
789
|
+
options,
|
|
790
|
+
channel_credentials,
|
|
791
|
+
insecure,
|
|
792
|
+
call_credentials,
|
|
793
|
+
compression,
|
|
794
|
+
wait_for_ready,
|
|
795
|
+
timeout,
|
|
796
|
+
metadata,
|
|
797
|
+
_registered_method=True)
|
|
798
|
+
|
|
799
|
+
@staticmethod
|
|
800
|
+
def UpgradeResourceState(request,
|
|
801
|
+
target,
|
|
802
|
+
options=(),
|
|
803
|
+
channel_credentials=None,
|
|
804
|
+
call_credentials=None,
|
|
805
|
+
insecure=False,
|
|
806
|
+
compression=None,
|
|
807
|
+
wait_for_ready=None,
|
|
808
|
+
timeout=None,
|
|
809
|
+
metadata=None):
|
|
810
|
+
return grpc.experimental.unary_unary(
|
|
811
|
+
request,
|
|
812
|
+
target,
|
|
813
|
+
'/tfplugin6.Provider/UpgradeResourceState',
|
|
814
|
+
tfplugin6__pb2.UpgradeResourceState.Request.SerializeToString,
|
|
815
|
+
tfplugin6__pb2.UpgradeResourceState.Response.FromString,
|
|
816
|
+
options,
|
|
817
|
+
channel_credentials,
|
|
818
|
+
insecure,
|
|
819
|
+
call_credentials,
|
|
820
|
+
compression,
|
|
821
|
+
wait_for_ready,
|
|
822
|
+
timeout,
|
|
823
|
+
metadata,
|
|
824
|
+
_registered_method=True)
|
|
825
|
+
|
|
826
|
+
@staticmethod
|
|
827
|
+
def GetResourceIdentitySchemas(request,
|
|
828
|
+
target,
|
|
829
|
+
options=(),
|
|
830
|
+
channel_credentials=None,
|
|
831
|
+
call_credentials=None,
|
|
832
|
+
insecure=False,
|
|
833
|
+
compression=None,
|
|
834
|
+
wait_for_ready=None,
|
|
835
|
+
timeout=None,
|
|
836
|
+
metadata=None):
|
|
837
|
+
return grpc.experimental.unary_unary(
|
|
838
|
+
request,
|
|
839
|
+
target,
|
|
840
|
+
'/tfplugin6.Provider/GetResourceIdentitySchemas',
|
|
841
|
+
tfplugin6__pb2.GetResourceIdentitySchemas.Request.SerializeToString,
|
|
842
|
+
tfplugin6__pb2.GetResourceIdentitySchemas.Response.FromString,
|
|
843
|
+
options,
|
|
844
|
+
channel_credentials,
|
|
845
|
+
insecure,
|
|
846
|
+
call_credentials,
|
|
847
|
+
compression,
|
|
848
|
+
wait_for_ready,
|
|
849
|
+
timeout,
|
|
850
|
+
metadata,
|
|
851
|
+
_registered_method=True)
|
|
852
|
+
|
|
853
|
+
@staticmethod
|
|
854
|
+
def UpgradeResourceIdentity(request,
|
|
855
|
+
target,
|
|
856
|
+
options=(),
|
|
857
|
+
channel_credentials=None,
|
|
858
|
+
call_credentials=None,
|
|
859
|
+
insecure=False,
|
|
860
|
+
compression=None,
|
|
861
|
+
wait_for_ready=None,
|
|
862
|
+
timeout=None,
|
|
863
|
+
metadata=None):
|
|
864
|
+
return grpc.experimental.unary_unary(
|
|
865
|
+
request,
|
|
866
|
+
target,
|
|
867
|
+
'/tfplugin6.Provider/UpgradeResourceIdentity',
|
|
868
|
+
tfplugin6__pb2.UpgradeResourceIdentity.Request.SerializeToString,
|
|
869
|
+
tfplugin6__pb2.UpgradeResourceIdentity.Response.FromString,
|
|
870
|
+
options,
|
|
871
|
+
channel_credentials,
|
|
872
|
+
insecure,
|
|
873
|
+
call_credentials,
|
|
874
|
+
compression,
|
|
875
|
+
wait_for_ready,
|
|
876
|
+
timeout,
|
|
877
|
+
metadata,
|
|
878
|
+
_registered_method=True)
|
|
879
|
+
|
|
880
|
+
@staticmethod
|
|
881
|
+
def ConfigureProvider(request,
|
|
882
|
+
target,
|
|
883
|
+
options=(),
|
|
884
|
+
channel_credentials=None,
|
|
885
|
+
call_credentials=None,
|
|
886
|
+
insecure=False,
|
|
887
|
+
compression=None,
|
|
888
|
+
wait_for_ready=None,
|
|
889
|
+
timeout=None,
|
|
890
|
+
metadata=None):
|
|
891
|
+
return grpc.experimental.unary_unary(
|
|
892
|
+
request,
|
|
893
|
+
target,
|
|
894
|
+
'/tfplugin6.Provider/ConfigureProvider',
|
|
895
|
+
tfplugin6__pb2.ConfigureProvider.Request.SerializeToString,
|
|
896
|
+
tfplugin6__pb2.ConfigureProvider.Response.FromString,
|
|
897
|
+
options,
|
|
898
|
+
channel_credentials,
|
|
899
|
+
insecure,
|
|
900
|
+
call_credentials,
|
|
901
|
+
compression,
|
|
902
|
+
wait_for_ready,
|
|
903
|
+
timeout,
|
|
904
|
+
metadata,
|
|
905
|
+
_registered_method=True)
|
|
906
|
+
|
|
907
|
+
@staticmethod
|
|
908
|
+
def ReadResource(request,
|
|
909
|
+
target,
|
|
910
|
+
options=(),
|
|
911
|
+
channel_credentials=None,
|
|
912
|
+
call_credentials=None,
|
|
913
|
+
insecure=False,
|
|
914
|
+
compression=None,
|
|
915
|
+
wait_for_ready=None,
|
|
916
|
+
timeout=None,
|
|
917
|
+
metadata=None):
|
|
918
|
+
return grpc.experimental.unary_unary(
|
|
919
|
+
request,
|
|
920
|
+
target,
|
|
921
|
+
'/tfplugin6.Provider/ReadResource',
|
|
922
|
+
tfplugin6__pb2.ReadResource.Request.SerializeToString,
|
|
923
|
+
tfplugin6__pb2.ReadResource.Response.FromString,
|
|
924
|
+
options,
|
|
925
|
+
channel_credentials,
|
|
926
|
+
insecure,
|
|
927
|
+
call_credentials,
|
|
928
|
+
compression,
|
|
929
|
+
wait_for_ready,
|
|
930
|
+
timeout,
|
|
931
|
+
metadata,
|
|
932
|
+
_registered_method=True)
|
|
933
|
+
|
|
934
|
+
@staticmethod
|
|
935
|
+
def PlanResourceChange(request,
|
|
936
|
+
target,
|
|
937
|
+
options=(),
|
|
938
|
+
channel_credentials=None,
|
|
939
|
+
call_credentials=None,
|
|
940
|
+
insecure=False,
|
|
941
|
+
compression=None,
|
|
942
|
+
wait_for_ready=None,
|
|
943
|
+
timeout=None,
|
|
944
|
+
metadata=None):
|
|
945
|
+
return grpc.experimental.unary_unary(
|
|
946
|
+
request,
|
|
947
|
+
target,
|
|
948
|
+
'/tfplugin6.Provider/PlanResourceChange',
|
|
949
|
+
tfplugin6__pb2.PlanResourceChange.Request.SerializeToString,
|
|
950
|
+
tfplugin6__pb2.PlanResourceChange.Response.FromString,
|
|
951
|
+
options,
|
|
952
|
+
channel_credentials,
|
|
953
|
+
insecure,
|
|
954
|
+
call_credentials,
|
|
955
|
+
compression,
|
|
956
|
+
wait_for_ready,
|
|
957
|
+
timeout,
|
|
958
|
+
metadata,
|
|
959
|
+
_registered_method=True)
|
|
960
|
+
|
|
961
|
+
@staticmethod
|
|
962
|
+
def ApplyResourceChange(request,
|
|
963
|
+
target,
|
|
964
|
+
options=(),
|
|
965
|
+
channel_credentials=None,
|
|
966
|
+
call_credentials=None,
|
|
967
|
+
insecure=False,
|
|
968
|
+
compression=None,
|
|
969
|
+
wait_for_ready=None,
|
|
970
|
+
timeout=None,
|
|
971
|
+
metadata=None):
|
|
972
|
+
return grpc.experimental.unary_unary(
|
|
973
|
+
request,
|
|
974
|
+
target,
|
|
975
|
+
'/tfplugin6.Provider/ApplyResourceChange',
|
|
976
|
+
tfplugin6__pb2.ApplyResourceChange.Request.SerializeToString,
|
|
977
|
+
tfplugin6__pb2.ApplyResourceChange.Response.FromString,
|
|
978
|
+
options,
|
|
979
|
+
channel_credentials,
|
|
980
|
+
insecure,
|
|
981
|
+
call_credentials,
|
|
982
|
+
compression,
|
|
983
|
+
wait_for_ready,
|
|
984
|
+
timeout,
|
|
985
|
+
metadata,
|
|
986
|
+
_registered_method=True)
|
|
987
|
+
|
|
988
|
+
@staticmethod
|
|
989
|
+
def ImportResourceState(request,
|
|
990
|
+
target,
|
|
991
|
+
options=(),
|
|
992
|
+
channel_credentials=None,
|
|
993
|
+
call_credentials=None,
|
|
994
|
+
insecure=False,
|
|
995
|
+
compression=None,
|
|
996
|
+
wait_for_ready=None,
|
|
997
|
+
timeout=None,
|
|
998
|
+
metadata=None):
|
|
999
|
+
return grpc.experimental.unary_unary(
|
|
1000
|
+
request,
|
|
1001
|
+
target,
|
|
1002
|
+
'/tfplugin6.Provider/ImportResourceState',
|
|
1003
|
+
tfplugin6__pb2.ImportResourceState.Request.SerializeToString,
|
|
1004
|
+
tfplugin6__pb2.ImportResourceState.Response.FromString,
|
|
1005
|
+
options,
|
|
1006
|
+
channel_credentials,
|
|
1007
|
+
insecure,
|
|
1008
|
+
call_credentials,
|
|
1009
|
+
compression,
|
|
1010
|
+
wait_for_ready,
|
|
1011
|
+
timeout,
|
|
1012
|
+
metadata,
|
|
1013
|
+
_registered_method=True)
|
|
1014
|
+
|
|
1015
|
+
@staticmethod
|
|
1016
|
+
def MoveResourceState(request,
|
|
1017
|
+
target,
|
|
1018
|
+
options=(),
|
|
1019
|
+
channel_credentials=None,
|
|
1020
|
+
call_credentials=None,
|
|
1021
|
+
insecure=False,
|
|
1022
|
+
compression=None,
|
|
1023
|
+
wait_for_ready=None,
|
|
1024
|
+
timeout=None,
|
|
1025
|
+
metadata=None):
|
|
1026
|
+
return grpc.experimental.unary_unary(
|
|
1027
|
+
request,
|
|
1028
|
+
target,
|
|
1029
|
+
'/tfplugin6.Provider/MoveResourceState',
|
|
1030
|
+
tfplugin6__pb2.MoveResourceState.Request.SerializeToString,
|
|
1031
|
+
tfplugin6__pb2.MoveResourceState.Response.FromString,
|
|
1032
|
+
options,
|
|
1033
|
+
channel_credentials,
|
|
1034
|
+
insecure,
|
|
1035
|
+
call_credentials,
|
|
1036
|
+
compression,
|
|
1037
|
+
wait_for_ready,
|
|
1038
|
+
timeout,
|
|
1039
|
+
metadata,
|
|
1040
|
+
_registered_method=True)
|
|
1041
|
+
|
|
1042
|
+
@staticmethod
|
|
1043
|
+
def ReadDataSource(request,
|
|
1044
|
+
target,
|
|
1045
|
+
options=(),
|
|
1046
|
+
channel_credentials=None,
|
|
1047
|
+
call_credentials=None,
|
|
1048
|
+
insecure=False,
|
|
1049
|
+
compression=None,
|
|
1050
|
+
wait_for_ready=None,
|
|
1051
|
+
timeout=None,
|
|
1052
|
+
metadata=None):
|
|
1053
|
+
return grpc.experimental.unary_unary(
|
|
1054
|
+
request,
|
|
1055
|
+
target,
|
|
1056
|
+
'/tfplugin6.Provider/ReadDataSource',
|
|
1057
|
+
tfplugin6__pb2.ReadDataSource.Request.SerializeToString,
|
|
1058
|
+
tfplugin6__pb2.ReadDataSource.Response.FromString,
|
|
1059
|
+
options,
|
|
1060
|
+
channel_credentials,
|
|
1061
|
+
insecure,
|
|
1062
|
+
call_credentials,
|
|
1063
|
+
compression,
|
|
1064
|
+
wait_for_ready,
|
|
1065
|
+
timeout,
|
|
1066
|
+
metadata,
|
|
1067
|
+
_registered_method=True)
|
|
1068
|
+
|
|
1069
|
+
@staticmethod
|
|
1070
|
+
def GenerateResourceConfig(request,
|
|
1071
|
+
target,
|
|
1072
|
+
options=(),
|
|
1073
|
+
channel_credentials=None,
|
|
1074
|
+
call_credentials=None,
|
|
1075
|
+
insecure=False,
|
|
1076
|
+
compression=None,
|
|
1077
|
+
wait_for_ready=None,
|
|
1078
|
+
timeout=None,
|
|
1079
|
+
metadata=None):
|
|
1080
|
+
return grpc.experimental.unary_unary(
|
|
1081
|
+
request,
|
|
1082
|
+
target,
|
|
1083
|
+
'/tfplugin6.Provider/GenerateResourceConfig',
|
|
1084
|
+
tfplugin6__pb2.GenerateResourceConfig.Request.SerializeToString,
|
|
1085
|
+
tfplugin6__pb2.GenerateResourceConfig.Response.FromString,
|
|
1086
|
+
options,
|
|
1087
|
+
channel_credentials,
|
|
1088
|
+
insecure,
|
|
1089
|
+
call_credentials,
|
|
1090
|
+
compression,
|
|
1091
|
+
wait_for_ready,
|
|
1092
|
+
timeout,
|
|
1093
|
+
metadata,
|
|
1094
|
+
_registered_method=True)
|
|
1095
|
+
|
|
1096
|
+
@staticmethod
|
|
1097
|
+
def ValidateEphemeralResourceConfig(request,
|
|
1098
|
+
target,
|
|
1099
|
+
options=(),
|
|
1100
|
+
channel_credentials=None,
|
|
1101
|
+
call_credentials=None,
|
|
1102
|
+
insecure=False,
|
|
1103
|
+
compression=None,
|
|
1104
|
+
wait_for_ready=None,
|
|
1105
|
+
timeout=None,
|
|
1106
|
+
metadata=None):
|
|
1107
|
+
return grpc.experimental.unary_unary(
|
|
1108
|
+
request,
|
|
1109
|
+
target,
|
|
1110
|
+
'/tfplugin6.Provider/ValidateEphemeralResourceConfig',
|
|
1111
|
+
tfplugin6__pb2.ValidateEphemeralResourceConfig.Request.SerializeToString,
|
|
1112
|
+
tfplugin6__pb2.ValidateEphemeralResourceConfig.Response.FromString,
|
|
1113
|
+
options,
|
|
1114
|
+
channel_credentials,
|
|
1115
|
+
insecure,
|
|
1116
|
+
call_credentials,
|
|
1117
|
+
compression,
|
|
1118
|
+
wait_for_ready,
|
|
1119
|
+
timeout,
|
|
1120
|
+
metadata,
|
|
1121
|
+
_registered_method=True)
|
|
1122
|
+
|
|
1123
|
+
@staticmethod
|
|
1124
|
+
def OpenEphemeralResource(request,
|
|
1125
|
+
target,
|
|
1126
|
+
options=(),
|
|
1127
|
+
channel_credentials=None,
|
|
1128
|
+
call_credentials=None,
|
|
1129
|
+
insecure=False,
|
|
1130
|
+
compression=None,
|
|
1131
|
+
wait_for_ready=None,
|
|
1132
|
+
timeout=None,
|
|
1133
|
+
metadata=None):
|
|
1134
|
+
return grpc.experimental.unary_unary(
|
|
1135
|
+
request,
|
|
1136
|
+
target,
|
|
1137
|
+
'/tfplugin6.Provider/OpenEphemeralResource',
|
|
1138
|
+
tfplugin6__pb2.OpenEphemeralResource.Request.SerializeToString,
|
|
1139
|
+
tfplugin6__pb2.OpenEphemeralResource.Response.FromString,
|
|
1140
|
+
options,
|
|
1141
|
+
channel_credentials,
|
|
1142
|
+
insecure,
|
|
1143
|
+
call_credentials,
|
|
1144
|
+
compression,
|
|
1145
|
+
wait_for_ready,
|
|
1146
|
+
timeout,
|
|
1147
|
+
metadata,
|
|
1148
|
+
_registered_method=True)
|
|
1149
|
+
|
|
1150
|
+
@staticmethod
|
|
1151
|
+
def RenewEphemeralResource(request,
|
|
1152
|
+
target,
|
|
1153
|
+
options=(),
|
|
1154
|
+
channel_credentials=None,
|
|
1155
|
+
call_credentials=None,
|
|
1156
|
+
insecure=False,
|
|
1157
|
+
compression=None,
|
|
1158
|
+
wait_for_ready=None,
|
|
1159
|
+
timeout=None,
|
|
1160
|
+
metadata=None):
|
|
1161
|
+
return grpc.experimental.unary_unary(
|
|
1162
|
+
request,
|
|
1163
|
+
target,
|
|
1164
|
+
'/tfplugin6.Provider/RenewEphemeralResource',
|
|
1165
|
+
tfplugin6__pb2.RenewEphemeralResource.Request.SerializeToString,
|
|
1166
|
+
tfplugin6__pb2.RenewEphemeralResource.Response.FromString,
|
|
1167
|
+
options,
|
|
1168
|
+
channel_credentials,
|
|
1169
|
+
insecure,
|
|
1170
|
+
call_credentials,
|
|
1171
|
+
compression,
|
|
1172
|
+
wait_for_ready,
|
|
1173
|
+
timeout,
|
|
1174
|
+
metadata,
|
|
1175
|
+
_registered_method=True)
|
|
1176
|
+
|
|
1177
|
+
@staticmethod
|
|
1178
|
+
def CloseEphemeralResource(request,
|
|
1179
|
+
target,
|
|
1180
|
+
options=(),
|
|
1181
|
+
channel_credentials=None,
|
|
1182
|
+
call_credentials=None,
|
|
1183
|
+
insecure=False,
|
|
1184
|
+
compression=None,
|
|
1185
|
+
wait_for_ready=None,
|
|
1186
|
+
timeout=None,
|
|
1187
|
+
metadata=None):
|
|
1188
|
+
return grpc.experimental.unary_unary(
|
|
1189
|
+
request,
|
|
1190
|
+
target,
|
|
1191
|
+
'/tfplugin6.Provider/CloseEphemeralResource',
|
|
1192
|
+
tfplugin6__pb2.CloseEphemeralResource.Request.SerializeToString,
|
|
1193
|
+
tfplugin6__pb2.CloseEphemeralResource.Response.FromString,
|
|
1194
|
+
options,
|
|
1195
|
+
channel_credentials,
|
|
1196
|
+
insecure,
|
|
1197
|
+
call_credentials,
|
|
1198
|
+
compression,
|
|
1199
|
+
wait_for_ready,
|
|
1200
|
+
timeout,
|
|
1201
|
+
metadata,
|
|
1202
|
+
_registered_method=True)
|
|
1203
|
+
|
|
1204
|
+
@staticmethod
|
|
1205
|
+
def ListResource(request,
|
|
1206
|
+
target,
|
|
1207
|
+
options=(),
|
|
1208
|
+
channel_credentials=None,
|
|
1209
|
+
call_credentials=None,
|
|
1210
|
+
insecure=False,
|
|
1211
|
+
compression=None,
|
|
1212
|
+
wait_for_ready=None,
|
|
1213
|
+
timeout=None,
|
|
1214
|
+
metadata=None):
|
|
1215
|
+
return grpc.experimental.unary_stream(
|
|
1216
|
+
request,
|
|
1217
|
+
target,
|
|
1218
|
+
'/tfplugin6.Provider/ListResource',
|
|
1219
|
+
tfplugin6__pb2.ListResource.Request.SerializeToString,
|
|
1220
|
+
tfplugin6__pb2.ListResource.Event.FromString,
|
|
1221
|
+
options,
|
|
1222
|
+
channel_credentials,
|
|
1223
|
+
insecure,
|
|
1224
|
+
call_credentials,
|
|
1225
|
+
compression,
|
|
1226
|
+
wait_for_ready,
|
|
1227
|
+
timeout,
|
|
1228
|
+
metadata,
|
|
1229
|
+
_registered_method=True)
|
|
1230
|
+
|
|
1231
|
+
@staticmethod
|
|
1232
|
+
def ValidateListResourceConfig(request,
|
|
1233
|
+
target,
|
|
1234
|
+
options=(),
|
|
1235
|
+
channel_credentials=None,
|
|
1236
|
+
call_credentials=None,
|
|
1237
|
+
insecure=False,
|
|
1238
|
+
compression=None,
|
|
1239
|
+
wait_for_ready=None,
|
|
1240
|
+
timeout=None,
|
|
1241
|
+
metadata=None):
|
|
1242
|
+
return grpc.experimental.unary_unary(
|
|
1243
|
+
request,
|
|
1244
|
+
target,
|
|
1245
|
+
'/tfplugin6.Provider/ValidateListResourceConfig',
|
|
1246
|
+
tfplugin6__pb2.ValidateListResourceConfig.Request.SerializeToString,
|
|
1247
|
+
tfplugin6__pb2.ValidateListResourceConfig.Response.FromString,
|
|
1248
|
+
options,
|
|
1249
|
+
channel_credentials,
|
|
1250
|
+
insecure,
|
|
1251
|
+
call_credentials,
|
|
1252
|
+
compression,
|
|
1253
|
+
wait_for_ready,
|
|
1254
|
+
timeout,
|
|
1255
|
+
metadata,
|
|
1256
|
+
_registered_method=True)
|
|
1257
|
+
|
|
1258
|
+
@staticmethod
|
|
1259
|
+
def GetFunctions(request,
|
|
1260
|
+
target,
|
|
1261
|
+
options=(),
|
|
1262
|
+
channel_credentials=None,
|
|
1263
|
+
call_credentials=None,
|
|
1264
|
+
insecure=False,
|
|
1265
|
+
compression=None,
|
|
1266
|
+
wait_for_ready=None,
|
|
1267
|
+
timeout=None,
|
|
1268
|
+
metadata=None):
|
|
1269
|
+
return grpc.experimental.unary_unary(
|
|
1270
|
+
request,
|
|
1271
|
+
target,
|
|
1272
|
+
'/tfplugin6.Provider/GetFunctions',
|
|
1273
|
+
tfplugin6__pb2.GetFunctions.Request.SerializeToString,
|
|
1274
|
+
tfplugin6__pb2.GetFunctions.Response.FromString,
|
|
1275
|
+
options,
|
|
1276
|
+
channel_credentials,
|
|
1277
|
+
insecure,
|
|
1278
|
+
call_credentials,
|
|
1279
|
+
compression,
|
|
1280
|
+
wait_for_ready,
|
|
1281
|
+
timeout,
|
|
1282
|
+
metadata,
|
|
1283
|
+
_registered_method=True)
|
|
1284
|
+
|
|
1285
|
+
@staticmethod
|
|
1286
|
+
def CallFunction(request,
|
|
1287
|
+
target,
|
|
1288
|
+
options=(),
|
|
1289
|
+
channel_credentials=None,
|
|
1290
|
+
call_credentials=None,
|
|
1291
|
+
insecure=False,
|
|
1292
|
+
compression=None,
|
|
1293
|
+
wait_for_ready=None,
|
|
1294
|
+
timeout=None,
|
|
1295
|
+
metadata=None):
|
|
1296
|
+
return grpc.experimental.unary_unary(
|
|
1297
|
+
request,
|
|
1298
|
+
target,
|
|
1299
|
+
'/tfplugin6.Provider/CallFunction',
|
|
1300
|
+
tfplugin6__pb2.CallFunction.Request.SerializeToString,
|
|
1301
|
+
tfplugin6__pb2.CallFunction.Response.FromString,
|
|
1302
|
+
options,
|
|
1303
|
+
channel_credentials,
|
|
1304
|
+
insecure,
|
|
1305
|
+
call_credentials,
|
|
1306
|
+
compression,
|
|
1307
|
+
wait_for_ready,
|
|
1308
|
+
timeout,
|
|
1309
|
+
metadata,
|
|
1310
|
+
_registered_method=True)
|
|
1311
|
+
|
|
1312
|
+
@staticmethod
|
|
1313
|
+
def ValidateStateStoreConfig(request,
|
|
1314
|
+
target,
|
|
1315
|
+
options=(),
|
|
1316
|
+
channel_credentials=None,
|
|
1317
|
+
call_credentials=None,
|
|
1318
|
+
insecure=False,
|
|
1319
|
+
compression=None,
|
|
1320
|
+
wait_for_ready=None,
|
|
1321
|
+
timeout=None,
|
|
1322
|
+
metadata=None):
|
|
1323
|
+
return grpc.experimental.unary_unary(
|
|
1324
|
+
request,
|
|
1325
|
+
target,
|
|
1326
|
+
'/tfplugin6.Provider/ValidateStateStoreConfig',
|
|
1327
|
+
tfplugin6__pb2.ValidateStateStore.Request.SerializeToString,
|
|
1328
|
+
tfplugin6__pb2.ValidateStateStore.Response.FromString,
|
|
1329
|
+
options,
|
|
1330
|
+
channel_credentials,
|
|
1331
|
+
insecure,
|
|
1332
|
+
call_credentials,
|
|
1333
|
+
compression,
|
|
1334
|
+
wait_for_ready,
|
|
1335
|
+
timeout,
|
|
1336
|
+
metadata,
|
|
1337
|
+
_registered_method=True)
|
|
1338
|
+
|
|
1339
|
+
@staticmethod
|
|
1340
|
+
def ConfigureStateStore(request,
|
|
1341
|
+
target,
|
|
1342
|
+
options=(),
|
|
1343
|
+
channel_credentials=None,
|
|
1344
|
+
call_credentials=None,
|
|
1345
|
+
insecure=False,
|
|
1346
|
+
compression=None,
|
|
1347
|
+
wait_for_ready=None,
|
|
1348
|
+
timeout=None,
|
|
1349
|
+
metadata=None):
|
|
1350
|
+
return grpc.experimental.unary_unary(
|
|
1351
|
+
request,
|
|
1352
|
+
target,
|
|
1353
|
+
'/tfplugin6.Provider/ConfigureStateStore',
|
|
1354
|
+
tfplugin6__pb2.ConfigureStateStore.Request.SerializeToString,
|
|
1355
|
+
tfplugin6__pb2.ConfigureStateStore.Response.FromString,
|
|
1356
|
+
options,
|
|
1357
|
+
channel_credentials,
|
|
1358
|
+
insecure,
|
|
1359
|
+
call_credentials,
|
|
1360
|
+
compression,
|
|
1361
|
+
wait_for_ready,
|
|
1362
|
+
timeout,
|
|
1363
|
+
metadata,
|
|
1364
|
+
_registered_method=True)
|
|
1365
|
+
|
|
1366
|
+
@staticmethod
|
|
1367
|
+
def ReadStateBytes(request,
|
|
1368
|
+
target,
|
|
1369
|
+
options=(),
|
|
1370
|
+
channel_credentials=None,
|
|
1371
|
+
call_credentials=None,
|
|
1372
|
+
insecure=False,
|
|
1373
|
+
compression=None,
|
|
1374
|
+
wait_for_ready=None,
|
|
1375
|
+
timeout=None,
|
|
1376
|
+
metadata=None):
|
|
1377
|
+
return grpc.experimental.unary_stream(
|
|
1378
|
+
request,
|
|
1379
|
+
target,
|
|
1380
|
+
'/tfplugin6.Provider/ReadStateBytes',
|
|
1381
|
+
tfplugin6__pb2.ReadStateBytes.Request.SerializeToString,
|
|
1382
|
+
tfplugin6__pb2.ReadStateBytes.Response.FromString,
|
|
1383
|
+
options,
|
|
1384
|
+
channel_credentials,
|
|
1385
|
+
insecure,
|
|
1386
|
+
call_credentials,
|
|
1387
|
+
compression,
|
|
1388
|
+
wait_for_ready,
|
|
1389
|
+
timeout,
|
|
1390
|
+
metadata,
|
|
1391
|
+
_registered_method=True)
|
|
1392
|
+
|
|
1393
|
+
@staticmethod
|
|
1394
|
+
def WriteStateBytes(request_iterator,
|
|
1395
|
+
target,
|
|
1396
|
+
options=(),
|
|
1397
|
+
channel_credentials=None,
|
|
1398
|
+
call_credentials=None,
|
|
1399
|
+
insecure=False,
|
|
1400
|
+
compression=None,
|
|
1401
|
+
wait_for_ready=None,
|
|
1402
|
+
timeout=None,
|
|
1403
|
+
metadata=None):
|
|
1404
|
+
return grpc.experimental.stream_unary(
|
|
1405
|
+
request_iterator,
|
|
1406
|
+
target,
|
|
1407
|
+
'/tfplugin6.Provider/WriteStateBytes',
|
|
1408
|
+
tfplugin6__pb2.WriteStateBytes.RequestChunk.SerializeToString,
|
|
1409
|
+
tfplugin6__pb2.WriteStateBytes.Response.FromString,
|
|
1410
|
+
options,
|
|
1411
|
+
channel_credentials,
|
|
1412
|
+
insecure,
|
|
1413
|
+
call_credentials,
|
|
1414
|
+
compression,
|
|
1415
|
+
wait_for_ready,
|
|
1416
|
+
timeout,
|
|
1417
|
+
metadata,
|
|
1418
|
+
_registered_method=True)
|
|
1419
|
+
|
|
1420
|
+
@staticmethod
|
|
1421
|
+
def LockState(request,
|
|
1422
|
+
target,
|
|
1423
|
+
options=(),
|
|
1424
|
+
channel_credentials=None,
|
|
1425
|
+
call_credentials=None,
|
|
1426
|
+
insecure=False,
|
|
1427
|
+
compression=None,
|
|
1428
|
+
wait_for_ready=None,
|
|
1429
|
+
timeout=None,
|
|
1430
|
+
metadata=None):
|
|
1431
|
+
return grpc.experimental.unary_unary(
|
|
1432
|
+
request,
|
|
1433
|
+
target,
|
|
1434
|
+
'/tfplugin6.Provider/LockState',
|
|
1435
|
+
tfplugin6__pb2.LockState.Request.SerializeToString,
|
|
1436
|
+
tfplugin6__pb2.LockState.Response.FromString,
|
|
1437
|
+
options,
|
|
1438
|
+
channel_credentials,
|
|
1439
|
+
insecure,
|
|
1440
|
+
call_credentials,
|
|
1441
|
+
compression,
|
|
1442
|
+
wait_for_ready,
|
|
1443
|
+
timeout,
|
|
1444
|
+
metadata,
|
|
1445
|
+
_registered_method=True)
|
|
1446
|
+
|
|
1447
|
+
@staticmethod
|
|
1448
|
+
def UnlockState(request,
|
|
1449
|
+
target,
|
|
1450
|
+
options=(),
|
|
1451
|
+
channel_credentials=None,
|
|
1452
|
+
call_credentials=None,
|
|
1453
|
+
insecure=False,
|
|
1454
|
+
compression=None,
|
|
1455
|
+
wait_for_ready=None,
|
|
1456
|
+
timeout=None,
|
|
1457
|
+
metadata=None):
|
|
1458
|
+
return grpc.experimental.unary_unary(
|
|
1459
|
+
request,
|
|
1460
|
+
target,
|
|
1461
|
+
'/tfplugin6.Provider/UnlockState',
|
|
1462
|
+
tfplugin6__pb2.UnlockState.Request.SerializeToString,
|
|
1463
|
+
tfplugin6__pb2.UnlockState.Response.FromString,
|
|
1464
|
+
options,
|
|
1465
|
+
channel_credentials,
|
|
1466
|
+
insecure,
|
|
1467
|
+
call_credentials,
|
|
1468
|
+
compression,
|
|
1469
|
+
wait_for_ready,
|
|
1470
|
+
timeout,
|
|
1471
|
+
metadata,
|
|
1472
|
+
_registered_method=True)
|
|
1473
|
+
|
|
1474
|
+
@staticmethod
|
|
1475
|
+
def GetStates(request,
|
|
1476
|
+
target,
|
|
1477
|
+
options=(),
|
|
1478
|
+
channel_credentials=None,
|
|
1479
|
+
call_credentials=None,
|
|
1480
|
+
insecure=False,
|
|
1481
|
+
compression=None,
|
|
1482
|
+
wait_for_ready=None,
|
|
1483
|
+
timeout=None,
|
|
1484
|
+
metadata=None):
|
|
1485
|
+
return grpc.experimental.unary_unary(
|
|
1486
|
+
request,
|
|
1487
|
+
target,
|
|
1488
|
+
'/tfplugin6.Provider/GetStates',
|
|
1489
|
+
tfplugin6__pb2.GetStates.Request.SerializeToString,
|
|
1490
|
+
tfplugin6__pb2.GetStates.Response.FromString,
|
|
1491
|
+
options,
|
|
1492
|
+
channel_credentials,
|
|
1493
|
+
insecure,
|
|
1494
|
+
call_credentials,
|
|
1495
|
+
compression,
|
|
1496
|
+
wait_for_ready,
|
|
1497
|
+
timeout,
|
|
1498
|
+
metadata,
|
|
1499
|
+
_registered_method=True)
|
|
1500
|
+
|
|
1501
|
+
@staticmethod
|
|
1502
|
+
def DeleteState(request,
|
|
1503
|
+
target,
|
|
1504
|
+
options=(),
|
|
1505
|
+
channel_credentials=None,
|
|
1506
|
+
call_credentials=None,
|
|
1507
|
+
insecure=False,
|
|
1508
|
+
compression=None,
|
|
1509
|
+
wait_for_ready=None,
|
|
1510
|
+
timeout=None,
|
|
1511
|
+
metadata=None):
|
|
1512
|
+
return grpc.experimental.unary_unary(
|
|
1513
|
+
request,
|
|
1514
|
+
target,
|
|
1515
|
+
'/tfplugin6.Provider/DeleteState',
|
|
1516
|
+
tfplugin6__pb2.DeleteState.Request.SerializeToString,
|
|
1517
|
+
tfplugin6__pb2.DeleteState.Response.FromString,
|
|
1518
|
+
options,
|
|
1519
|
+
channel_credentials,
|
|
1520
|
+
insecure,
|
|
1521
|
+
call_credentials,
|
|
1522
|
+
compression,
|
|
1523
|
+
wait_for_ready,
|
|
1524
|
+
timeout,
|
|
1525
|
+
metadata,
|
|
1526
|
+
_registered_method=True)
|
|
1527
|
+
|
|
1528
|
+
@staticmethod
|
|
1529
|
+
def PlanAction(request,
|
|
1530
|
+
target,
|
|
1531
|
+
options=(),
|
|
1532
|
+
channel_credentials=None,
|
|
1533
|
+
call_credentials=None,
|
|
1534
|
+
insecure=False,
|
|
1535
|
+
compression=None,
|
|
1536
|
+
wait_for_ready=None,
|
|
1537
|
+
timeout=None,
|
|
1538
|
+
metadata=None):
|
|
1539
|
+
return grpc.experimental.unary_unary(
|
|
1540
|
+
request,
|
|
1541
|
+
target,
|
|
1542
|
+
'/tfplugin6.Provider/PlanAction',
|
|
1543
|
+
tfplugin6__pb2.PlanAction.Request.SerializeToString,
|
|
1544
|
+
tfplugin6__pb2.PlanAction.Response.FromString,
|
|
1545
|
+
options,
|
|
1546
|
+
channel_credentials,
|
|
1547
|
+
insecure,
|
|
1548
|
+
call_credentials,
|
|
1549
|
+
compression,
|
|
1550
|
+
wait_for_ready,
|
|
1551
|
+
timeout,
|
|
1552
|
+
metadata,
|
|
1553
|
+
_registered_method=True)
|
|
1554
|
+
|
|
1555
|
+
@staticmethod
|
|
1556
|
+
def InvokeAction(request,
|
|
1557
|
+
target,
|
|
1558
|
+
options=(),
|
|
1559
|
+
channel_credentials=None,
|
|
1560
|
+
call_credentials=None,
|
|
1561
|
+
insecure=False,
|
|
1562
|
+
compression=None,
|
|
1563
|
+
wait_for_ready=None,
|
|
1564
|
+
timeout=None,
|
|
1565
|
+
metadata=None):
|
|
1566
|
+
return grpc.experimental.unary_stream(
|
|
1567
|
+
request,
|
|
1568
|
+
target,
|
|
1569
|
+
'/tfplugin6.Provider/InvokeAction',
|
|
1570
|
+
tfplugin6__pb2.InvokeAction.Request.SerializeToString,
|
|
1571
|
+
tfplugin6__pb2.InvokeAction.Event.FromString,
|
|
1572
|
+
options,
|
|
1573
|
+
channel_credentials,
|
|
1574
|
+
insecure,
|
|
1575
|
+
call_credentials,
|
|
1576
|
+
compression,
|
|
1577
|
+
wait_for_ready,
|
|
1578
|
+
timeout,
|
|
1579
|
+
metadata,
|
|
1580
|
+
_registered_method=True)
|
|
1581
|
+
|
|
1582
|
+
@staticmethod
|
|
1583
|
+
def ValidateActionConfig(request,
|
|
1584
|
+
target,
|
|
1585
|
+
options=(),
|
|
1586
|
+
channel_credentials=None,
|
|
1587
|
+
call_credentials=None,
|
|
1588
|
+
insecure=False,
|
|
1589
|
+
compression=None,
|
|
1590
|
+
wait_for_ready=None,
|
|
1591
|
+
timeout=None,
|
|
1592
|
+
metadata=None):
|
|
1593
|
+
return grpc.experimental.unary_unary(
|
|
1594
|
+
request,
|
|
1595
|
+
target,
|
|
1596
|
+
'/tfplugin6.Provider/ValidateActionConfig',
|
|
1597
|
+
tfplugin6__pb2.ValidateActionConfig.Request.SerializeToString,
|
|
1598
|
+
tfplugin6__pb2.ValidateActionConfig.Response.FromString,
|
|
1599
|
+
options,
|
|
1600
|
+
channel_credentials,
|
|
1601
|
+
insecure,
|
|
1602
|
+
call_credentials,
|
|
1603
|
+
compression,
|
|
1604
|
+
wait_for_ready,
|
|
1605
|
+
timeout,
|
|
1606
|
+
metadata,
|
|
1607
|
+
_registered_method=True)
|
|
1608
|
+
|
|
1609
|
+
@staticmethod
|
|
1610
|
+
def StopProvider(request,
|
|
1611
|
+
target,
|
|
1612
|
+
options=(),
|
|
1613
|
+
channel_credentials=None,
|
|
1614
|
+
call_credentials=None,
|
|
1615
|
+
insecure=False,
|
|
1616
|
+
compression=None,
|
|
1617
|
+
wait_for_ready=None,
|
|
1618
|
+
timeout=None,
|
|
1619
|
+
metadata=None):
|
|
1620
|
+
return grpc.experimental.unary_unary(
|
|
1621
|
+
request,
|
|
1622
|
+
target,
|
|
1623
|
+
'/tfplugin6.Provider/StopProvider',
|
|
1624
|
+
tfplugin6__pb2.StopProvider.Request.SerializeToString,
|
|
1625
|
+
tfplugin6__pb2.StopProvider.Response.FromString,
|
|
1626
|
+
options,
|
|
1627
|
+
channel_credentials,
|
|
1628
|
+
insecure,
|
|
1629
|
+
call_credentials,
|
|
1630
|
+
compression,
|
|
1631
|
+
wait_for_ready,
|
|
1632
|
+
timeout,
|
|
1633
|
+
metadata,
|
|
1634
|
+
_registered_method=True)
|