Coverage for /Users/ajo/work/jumpstarter/jumpstarter/packages/jumpstarter-protocol/jumpstarter_protocol/jumpstarter/client/v1/client_pb2_grpc.py: 43%

68 statements  

« prev     ^ index     » next       coverage.py v7.8.0, created at 2025-05-06 10:20 +0200

1# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! 

2"""Client and server classes corresponding to protobuf-defined services.""" 

3import grpc 

4 

5from google.protobuf import empty_pb2 as google_dot_protobuf_dot_empty__pb2 

6from . import client_pb2 as jumpstarter_dot_client_dot_v1_dot_client__pb2 

7 

8 

9class ClientServiceStub(object): 

10 """Missing associated documentation comment in .proto file.""" 

11 

12 def __init__(self, channel): 

13 """Constructor. 

14 

15 Args: 

16 channel: A grpc.Channel. 

17 """ 

18 self.GetExporter = channel.unary_unary( 

19 '/jumpstarter.client.v1.ClientService/GetExporter', 

20 request_serializer=jumpstarter_dot_client_dot_v1_dot_client__pb2.GetExporterRequest.SerializeToString, 

21 response_deserializer=jumpstarter_dot_client_dot_v1_dot_client__pb2.Exporter.FromString, 

22 _registered_method=True) 

23 self.ListExporters = channel.unary_unary( 

24 '/jumpstarter.client.v1.ClientService/ListExporters', 

25 request_serializer=jumpstarter_dot_client_dot_v1_dot_client__pb2.ListExportersRequest.SerializeToString, 

26 response_deserializer=jumpstarter_dot_client_dot_v1_dot_client__pb2.ListExportersResponse.FromString, 

27 _registered_method=True) 

28 self.GetLease = channel.unary_unary( 

29 '/jumpstarter.client.v1.ClientService/GetLease', 

30 request_serializer=jumpstarter_dot_client_dot_v1_dot_client__pb2.GetLeaseRequest.SerializeToString, 

31 response_deserializer=jumpstarter_dot_client_dot_v1_dot_client__pb2.Lease.FromString, 

32 _registered_method=True) 

33 self.ListLeases = channel.unary_unary( 

34 '/jumpstarter.client.v1.ClientService/ListLeases', 

35 request_serializer=jumpstarter_dot_client_dot_v1_dot_client__pb2.ListLeasesRequest.SerializeToString, 

36 response_deserializer=jumpstarter_dot_client_dot_v1_dot_client__pb2.ListLeasesResponse.FromString, 

37 _registered_method=True) 

38 self.CreateLease = channel.unary_unary( 

39 '/jumpstarter.client.v1.ClientService/CreateLease', 

40 request_serializer=jumpstarter_dot_client_dot_v1_dot_client__pb2.CreateLeaseRequest.SerializeToString, 

41 response_deserializer=jumpstarter_dot_client_dot_v1_dot_client__pb2.Lease.FromString, 

42 _registered_method=True) 

43 self.UpdateLease = channel.unary_unary( 

44 '/jumpstarter.client.v1.ClientService/UpdateLease', 

45 request_serializer=jumpstarter_dot_client_dot_v1_dot_client__pb2.UpdateLeaseRequest.SerializeToString, 

46 response_deserializer=jumpstarter_dot_client_dot_v1_dot_client__pb2.Lease.FromString, 

47 _registered_method=True) 

48 self.DeleteLease = channel.unary_unary( 

49 '/jumpstarter.client.v1.ClientService/DeleteLease', 

50 request_serializer=jumpstarter_dot_client_dot_v1_dot_client__pb2.DeleteLeaseRequest.SerializeToString, 

51 response_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString, 

52 _registered_method=True) 

53 

54 

55class ClientServiceServicer(object): 

56 """Missing associated documentation comment in .proto file.""" 

57 

58 def GetExporter(self, request, context): 

59 """Missing associated documentation comment in .proto file.""" 

60 context.set_code(grpc.StatusCode.UNIMPLEMENTED) 

61 context.set_details('Method not implemented!') 

62 raise NotImplementedError('Method not implemented!') 

63 

64 def ListExporters(self, request, context): 

65 """Missing associated documentation comment in .proto file.""" 

66 context.set_code(grpc.StatusCode.UNIMPLEMENTED) 

67 context.set_details('Method not implemented!') 

68 raise NotImplementedError('Method not implemented!') 

69 

70 def GetLease(self, request, context): 

71 """Missing associated documentation comment in .proto file.""" 

72 context.set_code(grpc.StatusCode.UNIMPLEMENTED) 

73 context.set_details('Method not implemented!') 

74 raise NotImplementedError('Method not implemented!') 

75 

76 def ListLeases(self, request, context): 

77 """Missing associated documentation comment in .proto file.""" 

78 context.set_code(grpc.StatusCode.UNIMPLEMENTED) 

79 context.set_details('Method not implemented!') 

80 raise NotImplementedError('Method not implemented!') 

81 

82 def CreateLease(self, request, context): 

83 """Missing associated documentation comment in .proto file.""" 

84 context.set_code(grpc.StatusCode.UNIMPLEMENTED) 

85 context.set_details('Method not implemented!') 

86 raise NotImplementedError('Method not implemented!') 

87 

88 def UpdateLease(self, request, context): 

89 """Missing associated documentation comment in .proto file.""" 

90 context.set_code(grpc.StatusCode.UNIMPLEMENTED) 

91 context.set_details('Method not implemented!') 

92 raise NotImplementedError('Method not implemented!') 

93 

94 def DeleteLease(self, request, context): 

95 """Missing associated documentation comment in .proto file.""" 

96 context.set_code(grpc.StatusCode.UNIMPLEMENTED) 

97 context.set_details('Method not implemented!') 

98 raise NotImplementedError('Method not implemented!') 

99 

100 

101def add_ClientServiceServicer_to_server(servicer, server): 

102 rpc_method_handlers = { 

103 'GetExporter': grpc.unary_unary_rpc_method_handler( 

104 servicer.GetExporter, 

105 request_deserializer=jumpstarter_dot_client_dot_v1_dot_client__pb2.GetExporterRequest.FromString, 

106 response_serializer=jumpstarter_dot_client_dot_v1_dot_client__pb2.Exporter.SerializeToString, 

107 ), 

108 'ListExporters': grpc.unary_unary_rpc_method_handler( 

109 servicer.ListExporters, 

110 request_deserializer=jumpstarter_dot_client_dot_v1_dot_client__pb2.ListExportersRequest.FromString, 

111 response_serializer=jumpstarter_dot_client_dot_v1_dot_client__pb2.ListExportersResponse.SerializeToString, 

112 ), 

113 'GetLease': grpc.unary_unary_rpc_method_handler( 

114 servicer.GetLease, 

115 request_deserializer=jumpstarter_dot_client_dot_v1_dot_client__pb2.GetLeaseRequest.FromString, 

116 response_serializer=jumpstarter_dot_client_dot_v1_dot_client__pb2.Lease.SerializeToString, 

117 ), 

118 'ListLeases': grpc.unary_unary_rpc_method_handler( 

119 servicer.ListLeases, 

120 request_deserializer=jumpstarter_dot_client_dot_v1_dot_client__pb2.ListLeasesRequest.FromString, 

121 response_serializer=jumpstarter_dot_client_dot_v1_dot_client__pb2.ListLeasesResponse.SerializeToString, 

122 ), 

123 'CreateLease': grpc.unary_unary_rpc_method_handler( 

124 servicer.CreateLease, 

125 request_deserializer=jumpstarter_dot_client_dot_v1_dot_client__pb2.CreateLeaseRequest.FromString, 

126 response_serializer=jumpstarter_dot_client_dot_v1_dot_client__pb2.Lease.SerializeToString, 

127 ), 

128 'UpdateLease': grpc.unary_unary_rpc_method_handler( 

129 servicer.UpdateLease, 

130 request_deserializer=jumpstarter_dot_client_dot_v1_dot_client__pb2.UpdateLeaseRequest.FromString, 

131 response_serializer=jumpstarter_dot_client_dot_v1_dot_client__pb2.Lease.SerializeToString, 

132 ), 

133 'DeleteLease': grpc.unary_unary_rpc_method_handler( 

134 servicer.DeleteLease, 

135 request_deserializer=jumpstarter_dot_client_dot_v1_dot_client__pb2.DeleteLeaseRequest.FromString, 

136 response_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString, 

137 ), 

138 } 

139 generic_handler = grpc.method_handlers_generic_handler( 

140 'jumpstarter.client.v1.ClientService', rpc_method_handlers) 

141 server.add_generic_rpc_handlers((generic_handler,)) 

142 server.add_registered_method_handlers('jumpstarter.client.v1.ClientService', rpc_method_handlers) 

143 

144 

145 # This class is part of an EXPERIMENTAL API. 

146class ClientService(object): 

147 """Missing associated documentation comment in .proto file.""" 

148 

149 @staticmethod 

150 def GetExporter(request, 

151 target, 

152 options=(), 

153 channel_credentials=None, 

154 call_credentials=None, 

155 insecure=False, 

156 compression=None, 

157 wait_for_ready=None, 

158 timeout=None, 

159 metadata=None): 

160 return grpc.experimental.unary_unary( 

161 request, 

162 target, 

163 '/jumpstarter.client.v1.ClientService/GetExporter', 

164 jumpstarter_dot_client_dot_v1_dot_client__pb2.GetExporterRequest.SerializeToString, 

165 jumpstarter_dot_client_dot_v1_dot_client__pb2.Exporter.FromString, 

166 options, 

167 channel_credentials, 

168 insecure, 

169 call_credentials, 

170 compression, 

171 wait_for_ready, 

172 timeout, 

173 metadata, 

174 _registered_method=True) 

175 

176 @staticmethod 

177 def ListExporters(request, 

178 target, 

179 options=(), 

180 channel_credentials=None, 

181 call_credentials=None, 

182 insecure=False, 

183 compression=None, 

184 wait_for_ready=None, 

185 timeout=None, 

186 metadata=None): 

187 return grpc.experimental.unary_unary( 

188 request, 

189 target, 

190 '/jumpstarter.client.v1.ClientService/ListExporters', 

191 jumpstarter_dot_client_dot_v1_dot_client__pb2.ListExportersRequest.SerializeToString, 

192 jumpstarter_dot_client_dot_v1_dot_client__pb2.ListExportersResponse.FromString, 

193 options, 

194 channel_credentials, 

195 insecure, 

196 call_credentials, 

197 compression, 

198 wait_for_ready, 

199 timeout, 

200 metadata, 

201 _registered_method=True) 

202 

203 @staticmethod 

204 def GetLease(request, 

205 target, 

206 options=(), 

207 channel_credentials=None, 

208 call_credentials=None, 

209 insecure=False, 

210 compression=None, 

211 wait_for_ready=None, 

212 timeout=None, 

213 metadata=None): 

214 return grpc.experimental.unary_unary( 

215 request, 

216 target, 

217 '/jumpstarter.client.v1.ClientService/GetLease', 

218 jumpstarter_dot_client_dot_v1_dot_client__pb2.GetLeaseRequest.SerializeToString, 

219 jumpstarter_dot_client_dot_v1_dot_client__pb2.Lease.FromString, 

220 options, 

221 channel_credentials, 

222 insecure, 

223 call_credentials, 

224 compression, 

225 wait_for_ready, 

226 timeout, 

227 metadata, 

228 _registered_method=True) 

229 

230 @staticmethod 

231 def ListLeases(request, 

232 target, 

233 options=(), 

234 channel_credentials=None, 

235 call_credentials=None, 

236 insecure=False, 

237 compression=None, 

238 wait_for_ready=None, 

239 timeout=None, 

240 metadata=None): 

241 return grpc.experimental.unary_unary( 

242 request, 

243 target, 

244 '/jumpstarter.client.v1.ClientService/ListLeases', 

245 jumpstarter_dot_client_dot_v1_dot_client__pb2.ListLeasesRequest.SerializeToString, 

246 jumpstarter_dot_client_dot_v1_dot_client__pb2.ListLeasesResponse.FromString, 

247 options, 

248 channel_credentials, 

249 insecure, 

250 call_credentials, 

251 compression, 

252 wait_for_ready, 

253 timeout, 

254 metadata, 

255 _registered_method=True) 

256 

257 @staticmethod 

258 def CreateLease(request, 

259 target, 

260 options=(), 

261 channel_credentials=None, 

262 call_credentials=None, 

263 insecure=False, 

264 compression=None, 

265 wait_for_ready=None, 

266 timeout=None, 

267 metadata=None): 

268 return grpc.experimental.unary_unary( 

269 request, 

270 target, 

271 '/jumpstarter.client.v1.ClientService/CreateLease', 

272 jumpstarter_dot_client_dot_v1_dot_client__pb2.CreateLeaseRequest.SerializeToString, 

273 jumpstarter_dot_client_dot_v1_dot_client__pb2.Lease.FromString, 

274 options, 

275 channel_credentials, 

276 insecure, 

277 call_credentials, 

278 compression, 

279 wait_for_ready, 

280 timeout, 

281 metadata, 

282 _registered_method=True) 

283 

284 @staticmethod 

285 def UpdateLease(request, 

286 target, 

287 options=(), 

288 channel_credentials=None, 

289 call_credentials=None, 

290 insecure=False, 

291 compression=None, 

292 wait_for_ready=None, 

293 timeout=None, 

294 metadata=None): 

295 return grpc.experimental.unary_unary( 

296 request, 

297 target, 

298 '/jumpstarter.client.v1.ClientService/UpdateLease', 

299 jumpstarter_dot_client_dot_v1_dot_client__pb2.UpdateLeaseRequest.SerializeToString, 

300 jumpstarter_dot_client_dot_v1_dot_client__pb2.Lease.FromString, 

301 options, 

302 channel_credentials, 

303 insecure, 

304 call_credentials, 

305 compression, 

306 wait_for_ready, 

307 timeout, 

308 metadata, 

309 _registered_method=True) 

310 

311 @staticmethod 

312 def DeleteLease(request, 

313 target, 

314 options=(), 

315 channel_credentials=None, 

316 call_credentials=None, 

317 insecure=False, 

318 compression=None, 

319 wait_for_ready=None, 

320 timeout=None, 

321 metadata=None): 

322 return grpc.experimental.unary_unary( 

323 request, 

324 target, 

325 '/jumpstarter.client.v1.ClientService/DeleteLease', 

326 jumpstarter_dot_client_dot_v1_dot_client__pb2.DeleteLeaseRequest.SerializeToString, 

327 google_dot_protobuf_dot_empty__pb2.Empty.FromString, 

328 options, 

329 channel_credentials, 

330 insecure, 

331 call_credentials, 

332 compression, 

333 wait_for_ready, 

334 timeout, 

335 metadata, 

336 _registered_method=True)