metal-stack-api 0.0.22__py3-none-any.whl → 0.0.23__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.
Files changed (115) hide show
  1. {metal_stack_api-0.0.22.dist-info → metal_stack_api-0.0.23.dist-info}/METADATA +3 -2
  2. metal_stack_api-0.0.23.dist-info/RECORD +97 -0
  3. {metal_stack_api-0.0.22.dist-info → metal_stack_api-0.0.23.dist-info}/top_level.txt +0 -1
  4. metalstack/admin/v2/{filesystem_connecpy.py → filesystem_connect.py} +22 -22
  5. metalstack/admin/v2/filesystem_pb2.py +20 -19
  6. metalstack/admin/v2/filesystem_pb2.pyi +1 -0
  7. metalstack/admin/v2/{image_connecpy.py → image_connect.py} +24 -24
  8. metalstack/admin/v2/image_pb2.py +24 -23
  9. metalstack/admin/v2/image_pb2.pyi +1 -0
  10. metalstack/admin/v2/{ip_connecpy.py → ip_connect.py} +20 -20
  11. metalstack/admin/v2/ip_pb2.py +2 -2
  12. metalstack/admin/v2/{machine_connecpy.py → machine_connect.py} +20 -20
  13. metalstack/admin/v2/machine_pb2.py +15 -14
  14. metalstack/admin/v2/machine_pb2.pyi +1 -0
  15. metalstack/admin/v2/{network_connecpy.py → network_connect.py} +26 -26
  16. metalstack/admin/v2/network_pb2.py +45 -36
  17. metalstack/admin/v2/network_pb2.pyi +1 -0
  18. metalstack/admin/v2/{partition_connecpy.py → partition_connect.py} +24 -24
  19. metalstack/admin/v2/partition_pb2.py +23 -22
  20. metalstack/admin/v2/partition_pb2.pyi +1 -0
  21. metalstack/admin/v2/{size_connecpy.py → size_connect.py} +22 -22
  22. metalstack/admin/v2/size_pb2.py +20 -19
  23. metalstack/admin/v2/size_pb2.pyi +1 -0
  24. metalstack/admin/v2/switch_connect.py +444 -0
  25. metalstack/admin/v2/switch_pb2.py +108 -0
  26. metalstack/admin/v2/switch_pb2.pyi +114 -0
  27. metalstack/admin/v2/{tenant_connecpy.py → tenant_connect.py} +20 -20
  28. metalstack/admin/v2/tenant_pb2.py +18 -15
  29. metalstack/admin/v2/tenant_pb2.pyi +1 -0
  30. metalstack/admin/v2/{token_connecpy.py → token_connect.py} +20 -20
  31. metalstack/admin/v2/token_pb2.py +2 -2
  32. metalstack/api/v2/common_pb2.py +2 -2
  33. metalstack/api/v2/{filesystem_connecpy.py → filesystem_connect.py} +22 -22
  34. metalstack/api/v2/filesystem_pb2.py +54 -53
  35. metalstack/api/v2/filesystem_pb2.pyi +1 -0
  36. metalstack/api/v2/{health_connecpy.py → health_connect.py} +18 -18
  37. metalstack/api/v2/health_pb2.py +2 -2
  38. metalstack/api/v2/{image_connecpy.py → image_connect.py} +22 -22
  39. metalstack/api/v2/image_pb2.py +32 -31
  40. metalstack/api/v2/image_pb2.pyi +1 -0
  41. metalstack/api/v2/{ip_connecpy.py → ip_connect.py} +26 -26
  42. metalstack/api/v2/ip_pb2.py +41 -40
  43. metalstack/api/v2/ip_pb2.pyi +1 -0
  44. metalstack/api/v2/{machine_connecpy.py → machine_connect.py} +26 -26
  45. metalstack/api/v2/machine_pb2.py +122 -121
  46. metalstack/api/v2/machine_pb2.pyi +1 -0
  47. metalstack/api/v2/{method_connecpy.py → method_connect.py} +20 -20
  48. metalstack/api/v2/method_pb2.py +2 -2
  49. metalstack/api/v2/{network_connecpy.py → network_connect.py} +28 -28
  50. metalstack/api/v2/network_pb2.py +73 -66
  51. metalstack/api/v2/network_pb2.pyi +1 -0
  52. metalstack/api/v2/{partition_connecpy.py → partition_connect.py} +20 -20
  53. metalstack/api/v2/partition_pb2.py +25 -24
  54. metalstack/api/v2/partition_pb2.pyi +1 -0
  55. metalstack/api/v2/predefined_rules_pb2.py +50 -0
  56. metalstack/api/v2/predefined_rules_pb2.pyi +19 -0
  57. metalstack/api/v2/{project_connecpy.py → project_connect.py} +40 -40
  58. metalstack/api/v2/project_pb2.py +69 -64
  59. metalstack/api/v2/project_pb2.pyi +1 -0
  60. metalstack/api/v2/{size_connecpy.py → size_connect.py} +20 -20
  61. metalstack/api/v2/size_pb2.py +26 -25
  62. metalstack/api/v2/size_pb2.pyi +1 -0
  63. metalstack/api/v2/switch_pb2.py +62 -41
  64. metalstack/api/v2/switch_pb2.pyi +54 -11
  65. metalstack/api/v2/{tenant_connecpy.py → tenant_connect.py} +40 -40
  66. metalstack/api/v2/tenant_pb2.py +69 -64
  67. metalstack/api/v2/tenant_pb2.pyi +1 -0
  68. metalstack/api/v2/{token_connecpy.py → token_connect.py} +28 -28
  69. metalstack/api/v2/token_pb2.py +51 -50
  70. metalstack/api/v2/token_pb2.pyi +1 -0
  71. metalstack/api/v2/{user_connecpy.py → user_connect.py} +18 -18
  72. metalstack/api/v2/user_pb2.py +15 -11
  73. metalstack/api/v2/user_pb2.pyi +2 -0
  74. metalstack/api/v2/{version_connecpy.py → version_connect.py} +18 -18
  75. metalstack/api/v2/version_pb2.py +2 -2
  76. metalstack/client/client.py +56 -52
  77. metalstack/infra/v2/{bmc_connecpy.py → bmc_connect.py} +18 -18
  78. metalstack/infra/v2/bmc_pb2.py +2 -2
  79. metalstack/infra/v2/{switch_connecpy.py → switch_connect.py} +83 -18
  80. metalstack/infra/v2/switch_pb2.py +28 -10
  81. metalstack/infra/v2/switch_pb2.pyi +51 -0
  82. buf/__init__.py +0 -0
  83. buf/validate/__init__.py +0 -0
  84. buf/validate/validate_pb2.py +0 -450
  85. buf/validate/validate_pb2.pyi +0 -627
  86. buf/validate/validate_pb2_grpc.py +0 -4
  87. metal_stack_api-0.0.22.dist-info/RECORD +0 -124
  88. metalstack/admin/v2/filesystem_pb2_grpc.py +0 -169
  89. metalstack/admin/v2/image_pb2_grpc.py +0 -213
  90. metalstack/admin/v2/ip_pb2_grpc.py +0 -125
  91. metalstack/admin/v2/machine_pb2_grpc.py +0 -125
  92. metalstack/admin/v2/network_pb2_grpc.py +0 -257
  93. metalstack/admin/v2/partition_pb2_grpc.py +0 -213
  94. metalstack/admin/v2/size_pb2_grpc.py +0 -169
  95. metalstack/admin/v2/tenant_pb2_grpc.py +0 -125
  96. metalstack/admin/v2/token_pb2_grpc.py +0 -125
  97. metalstack/api/v2/common_pb2_grpc.py +0 -4
  98. metalstack/api/v2/filesystem_pb2_grpc.py +0 -169
  99. metalstack/api/v2/health_pb2_grpc.py +0 -81
  100. metalstack/api/v2/image_pb2_grpc.py +0 -169
  101. metalstack/api/v2/ip_pb2_grpc.py +0 -257
  102. metalstack/api/v2/machine_pb2_grpc.py +0 -257
  103. metalstack/api/v2/method_pb2_grpc.py +0 -128
  104. metalstack/api/v2/network_pb2_grpc.py +0 -301
  105. metalstack/api/v2/partition_pb2_grpc.py +0 -125
  106. metalstack/api/v2/project_pb2_grpc.py +0 -565
  107. metalstack/api/v2/size_pb2_grpc.py +0 -125
  108. metalstack/api/v2/switch_pb2_grpc.py +0 -4
  109. metalstack/api/v2/tenant_pb2_grpc.py +0 -565
  110. metalstack/api/v2/token_pb2_grpc.py +0 -301
  111. metalstack/api/v2/user_pb2_grpc.py +0 -81
  112. metalstack/api/v2/version_pb2_grpc.py +0 -81
  113. metalstack/infra/v2/bmc_pb2_grpc.py +0 -81
  114. metalstack/infra/v2/switch_pb2_grpc.py +0 -81
  115. {metal_stack_api-0.0.22.dist-info → metal_stack_api-0.0.23.dist-info}/WHEEL +0 -0
@@ -0,0 +1,444 @@
1
+ # -*- coding: utf-8 -*-
2
+ # Generated by https://github.com/connectrpc/connect-python. DO NOT EDIT!
3
+ # source: metalstack/admin/v2/switch.proto
4
+
5
+ from collections.abc import AsyncIterator, Iterable, Iterator, Mapping
6
+ from typing import Protocol
7
+
8
+ from connectrpc.client import ConnectClient, ConnectClientSync
9
+ from connectrpc.code import Code
10
+ from connectrpc.errors import ConnectError
11
+ from connectrpc.interceptor import Interceptor, InterceptorSync
12
+ from connectrpc.method import IdempotencyLevel, MethodInfo
13
+ from connectrpc.request import Headers, RequestContext
14
+ from connectrpc.server import ConnectASGIApplication, ConnectWSGIApplication, Endpoint, EndpointSync
15
+ import metalstack.admin.v2.switch_pb2 as metalstack_dot_admin_dot_v2_dot_switch__pb2
16
+
17
+
18
+ class SwitchService(Protocol):
19
+ async def get(self, request: metalstack_dot_admin_dot_v2_dot_switch__pb2.SwitchServiceGetRequest, ctx: RequestContext) -> metalstack_dot_admin_dot_v2_dot_switch__pb2.SwitchServiceGetResponse:
20
+ raise ConnectError(Code.UNIMPLEMENTED, "Not implemented")
21
+
22
+ async def list(self, request: metalstack_dot_admin_dot_v2_dot_switch__pb2.SwitchServiceListRequest, ctx: RequestContext) -> metalstack_dot_admin_dot_v2_dot_switch__pb2.SwitchServiceListResponse:
23
+ raise ConnectError(Code.UNIMPLEMENTED, "Not implemented")
24
+
25
+ async def update(self, request: metalstack_dot_admin_dot_v2_dot_switch__pb2.SwitchServiceUpdateRequest, ctx: RequestContext) -> metalstack_dot_admin_dot_v2_dot_switch__pb2.SwitchServiceUpdateResponse:
26
+ raise ConnectError(Code.UNIMPLEMENTED, "Not implemented")
27
+
28
+ async def delete(self, request: metalstack_dot_admin_dot_v2_dot_switch__pb2.SwitchServiceDeleteRequest, ctx: RequestContext) -> metalstack_dot_admin_dot_v2_dot_switch__pb2.SwitchServiceDeleteResponse:
29
+ raise ConnectError(Code.UNIMPLEMENTED, "Not implemented")
30
+
31
+ async def migrate(self, request: metalstack_dot_admin_dot_v2_dot_switch__pb2.SwitchServiceMigrateRequest, ctx: RequestContext) -> metalstack_dot_admin_dot_v2_dot_switch__pb2.SwitchServiceMigrateResponse:
32
+ raise ConnectError(Code.UNIMPLEMENTED, "Not implemented")
33
+
34
+ async def port(self, request: metalstack_dot_admin_dot_v2_dot_switch__pb2.SwitchServicePortRequest, ctx: RequestContext) -> metalstack_dot_admin_dot_v2_dot_switch__pb2.SwitchServicePortResponse:
35
+ raise ConnectError(Code.UNIMPLEMENTED, "Not implemented")
36
+
37
+
38
+ class SwitchServiceASGIApplication(ConnectASGIApplication):
39
+ def __init__(self, service: SwitchService, *, interceptors: Iterable[Interceptor]=(), read_max_bytes: int | None = None) -> None:
40
+ super().__init__(
41
+ endpoints={
42
+ "/metalstack.admin.v2.SwitchService/Get": Endpoint.unary(
43
+ method=MethodInfo(
44
+ name="Get",
45
+ service_name="metalstack.admin.v2.SwitchService",
46
+ input=metalstack_dot_admin_dot_v2_dot_switch__pb2.SwitchServiceGetRequest,
47
+ output=metalstack_dot_admin_dot_v2_dot_switch__pb2.SwitchServiceGetResponse,
48
+ idempotency_level=IdempotencyLevel.UNKNOWN,
49
+ ),
50
+ function=service.get,
51
+ ),
52
+ "/metalstack.admin.v2.SwitchService/List": Endpoint.unary(
53
+ method=MethodInfo(
54
+ name="List",
55
+ service_name="metalstack.admin.v2.SwitchService",
56
+ input=metalstack_dot_admin_dot_v2_dot_switch__pb2.SwitchServiceListRequest,
57
+ output=metalstack_dot_admin_dot_v2_dot_switch__pb2.SwitchServiceListResponse,
58
+ idempotency_level=IdempotencyLevel.UNKNOWN,
59
+ ),
60
+ function=service.list,
61
+ ),
62
+ "/metalstack.admin.v2.SwitchService/Update": Endpoint.unary(
63
+ method=MethodInfo(
64
+ name="Update",
65
+ service_name="metalstack.admin.v2.SwitchService",
66
+ input=metalstack_dot_admin_dot_v2_dot_switch__pb2.SwitchServiceUpdateRequest,
67
+ output=metalstack_dot_admin_dot_v2_dot_switch__pb2.SwitchServiceUpdateResponse,
68
+ idempotency_level=IdempotencyLevel.UNKNOWN,
69
+ ),
70
+ function=service.update,
71
+ ),
72
+ "/metalstack.admin.v2.SwitchService/Delete": Endpoint.unary(
73
+ method=MethodInfo(
74
+ name="Delete",
75
+ service_name="metalstack.admin.v2.SwitchService",
76
+ input=metalstack_dot_admin_dot_v2_dot_switch__pb2.SwitchServiceDeleteRequest,
77
+ output=metalstack_dot_admin_dot_v2_dot_switch__pb2.SwitchServiceDeleteResponse,
78
+ idempotency_level=IdempotencyLevel.UNKNOWN,
79
+ ),
80
+ function=service.delete,
81
+ ),
82
+ "/metalstack.admin.v2.SwitchService/Migrate": Endpoint.unary(
83
+ method=MethodInfo(
84
+ name="Migrate",
85
+ service_name="metalstack.admin.v2.SwitchService",
86
+ input=metalstack_dot_admin_dot_v2_dot_switch__pb2.SwitchServiceMigrateRequest,
87
+ output=metalstack_dot_admin_dot_v2_dot_switch__pb2.SwitchServiceMigrateResponse,
88
+ idempotency_level=IdempotencyLevel.UNKNOWN,
89
+ ),
90
+ function=service.migrate,
91
+ ),
92
+ "/metalstack.admin.v2.SwitchService/Port": Endpoint.unary(
93
+ method=MethodInfo(
94
+ name="Port",
95
+ service_name="metalstack.admin.v2.SwitchService",
96
+ input=metalstack_dot_admin_dot_v2_dot_switch__pb2.SwitchServicePortRequest,
97
+ output=metalstack_dot_admin_dot_v2_dot_switch__pb2.SwitchServicePortResponse,
98
+ idempotency_level=IdempotencyLevel.UNKNOWN,
99
+ ),
100
+ function=service.port,
101
+ ),
102
+ },
103
+ interceptors=interceptors,
104
+ read_max_bytes=read_max_bytes,
105
+ )
106
+
107
+ @property
108
+ def path(self) -> str:
109
+ """Returns the URL path to mount the application to when serving multiple applications."""
110
+ return "/metalstack.admin.v2.SwitchService"
111
+
112
+
113
+ class SwitchServiceClient(ConnectClient):
114
+ async def get(
115
+ self,
116
+ request: metalstack_dot_admin_dot_v2_dot_switch__pb2.SwitchServiceGetRequest,
117
+ *,
118
+ headers: Headers | Mapping[str, str] | None = None,
119
+ timeout_ms: int | None = None,
120
+ ) -> metalstack_dot_admin_dot_v2_dot_switch__pb2.SwitchServiceGetResponse:
121
+ return await self.execute_unary(
122
+ request=request,
123
+ method=MethodInfo(
124
+ name="Get",
125
+ service_name="metalstack.admin.v2.SwitchService",
126
+ input=metalstack_dot_admin_dot_v2_dot_switch__pb2.SwitchServiceGetRequest,
127
+ output=metalstack_dot_admin_dot_v2_dot_switch__pb2.SwitchServiceGetResponse,
128
+ idempotency_level=IdempotencyLevel.UNKNOWN,
129
+ ),
130
+ headers=headers,
131
+ timeout_ms=timeout_ms,
132
+ )
133
+
134
+ async def list(
135
+ self,
136
+ request: metalstack_dot_admin_dot_v2_dot_switch__pb2.SwitchServiceListRequest,
137
+ *,
138
+ headers: Headers | Mapping[str, str] | None = None,
139
+ timeout_ms: int | None = None,
140
+ ) -> metalstack_dot_admin_dot_v2_dot_switch__pb2.SwitchServiceListResponse:
141
+ return await self.execute_unary(
142
+ request=request,
143
+ method=MethodInfo(
144
+ name="List",
145
+ service_name="metalstack.admin.v2.SwitchService",
146
+ input=metalstack_dot_admin_dot_v2_dot_switch__pb2.SwitchServiceListRequest,
147
+ output=metalstack_dot_admin_dot_v2_dot_switch__pb2.SwitchServiceListResponse,
148
+ idempotency_level=IdempotencyLevel.UNKNOWN,
149
+ ),
150
+ headers=headers,
151
+ timeout_ms=timeout_ms,
152
+ )
153
+
154
+ async def update(
155
+ self,
156
+ request: metalstack_dot_admin_dot_v2_dot_switch__pb2.SwitchServiceUpdateRequest,
157
+ *,
158
+ headers: Headers | Mapping[str, str] | None = None,
159
+ timeout_ms: int | None = None,
160
+ ) -> metalstack_dot_admin_dot_v2_dot_switch__pb2.SwitchServiceUpdateResponse:
161
+ return await self.execute_unary(
162
+ request=request,
163
+ method=MethodInfo(
164
+ name="Update",
165
+ service_name="metalstack.admin.v2.SwitchService",
166
+ input=metalstack_dot_admin_dot_v2_dot_switch__pb2.SwitchServiceUpdateRequest,
167
+ output=metalstack_dot_admin_dot_v2_dot_switch__pb2.SwitchServiceUpdateResponse,
168
+ idempotency_level=IdempotencyLevel.UNKNOWN,
169
+ ),
170
+ headers=headers,
171
+ timeout_ms=timeout_ms,
172
+ )
173
+
174
+ async def delete(
175
+ self,
176
+ request: metalstack_dot_admin_dot_v2_dot_switch__pb2.SwitchServiceDeleteRequest,
177
+ *,
178
+ headers: Headers | Mapping[str, str] | None = None,
179
+ timeout_ms: int | None = None,
180
+ ) -> metalstack_dot_admin_dot_v2_dot_switch__pb2.SwitchServiceDeleteResponse:
181
+ return await self.execute_unary(
182
+ request=request,
183
+ method=MethodInfo(
184
+ name="Delete",
185
+ service_name="metalstack.admin.v2.SwitchService",
186
+ input=metalstack_dot_admin_dot_v2_dot_switch__pb2.SwitchServiceDeleteRequest,
187
+ output=metalstack_dot_admin_dot_v2_dot_switch__pb2.SwitchServiceDeleteResponse,
188
+ idempotency_level=IdempotencyLevel.UNKNOWN,
189
+ ),
190
+ headers=headers,
191
+ timeout_ms=timeout_ms,
192
+ )
193
+
194
+ async def migrate(
195
+ self,
196
+ request: metalstack_dot_admin_dot_v2_dot_switch__pb2.SwitchServiceMigrateRequest,
197
+ *,
198
+ headers: Headers | Mapping[str, str] | None = None,
199
+ timeout_ms: int | None = None,
200
+ ) -> metalstack_dot_admin_dot_v2_dot_switch__pb2.SwitchServiceMigrateResponse:
201
+ return await self.execute_unary(
202
+ request=request,
203
+ method=MethodInfo(
204
+ name="Migrate",
205
+ service_name="metalstack.admin.v2.SwitchService",
206
+ input=metalstack_dot_admin_dot_v2_dot_switch__pb2.SwitchServiceMigrateRequest,
207
+ output=metalstack_dot_admin_dot_v2_dot_switch__pb2.SwitchServiceMigrateResponse,
208
+ idempotency_level=IdempotencyLevel.UNKNOWN,
209
+ ),
210
+ headers=headers,
211
+ timeout_ms=timeout_ms,
212
+ )
213
+
214
+ async def port(
215
+ self,
216
+ request: metalstack_dot_admin_dot_v2_dot_switch__pb2.SwitchServicePortRequest,
217
+ *,
218
+ headers: Headers | Mapping[str, str] | None = None,
219
+ timeout_ms: int | None = None,
220
+ ) -> metalstack_dot_admin_dot_v2_dot_switch__pb2.SwitchServicePortResponse:
221
+ return await self.execute_unary(
222
+ request=request,
223
+ method=MethodInfo(
224
+ name="Port",
225
+ service_name="metalstack.admin.v2.SwitchService",
226
+ input=metalstack_dot_admin_dot_v2_dot_switch__pb2.SwitchServicePortRequest,
227
+ output=metalstack_dot_admin_dot_v2_dot_switch__pb2.SwitchServicePortResponse,
228
+ idempotency_level=IdempotencyLevel.UNKNOWN,
229
+ ),
230
+ headers=headers,
231
+ timeout_ms=timeout_ms,
232
+ )
233
+
234
+
235
+ class SwitchServiceSync(Protocol):
236
+ def get(self, request: metalstack_dot_admin_dot_v2_dot_switch__pb2.SwitchServiceGetRequest, ctx: RequestContext) -> metalstack_dot_admin_dot_v2_dot_switch__pb2.SwitchServiceGetResponse:
237
+ raise ConnectError(Code.UNIMPLEMENTED, "Not implemented")
238
+ def list(self, request: metalstack_dot_admin_dot_v2_dot_switch__pb2.SwitchServiceListRequest, ctx: RequestContext) -> metalstack_dot_admin_dot_v2_dot_switch__pb2.SwitchServiceListResponse:
239
+ raise ConnectError(Code.UNIMPLEMENTED, "Not implemented")
240
+ def update(self, request: metalstack_dot_admin_dot_v2_dot_switch__pb2.SwitchServiceUpdateRequest, ctx: RequestContext) -> metalstack_dot_admin_dot_v2_dot_switch__pb2.SwitchServiceUpdateResponse:
241
+ raise ConnectError(Code.UNIMPLEMENTED, "Not implemented")
242
+ def delete(self, request: metalstack_dot_admin_dot_v2_dot_switch__pb2.SwitchServiceDeleteRequest, ctx: RequestContext) -> metalstack_dot_admin_dot_v2_dot_switch__pb2.SwitchServiceDeleteResponse:
243
+ raise ConnectError(Code.UNIMPLEMENTED, "Not implemented")
244
+ def migrate(self, request: metalstack_dot_admin_dot_v2_dot_switch__pb2.SwitchServiceMigrateRequest, ctx: RequestContext) -> metalstack_dot_admin_dot_v2_dot_switch__pb2.SwitchServiceMigrateResponse:
245
+ raise ConnectError(Code.UNIMPLEMENTED, "Not implemented")
246
+ def port(self, request: metalstack_dot_admin_dot_v2_dot_switch__pb2.SwitchServicePortRequest, ctx: RequestContext) -> metalstack_dot_admin_dot_v2_dot_switch__pb2.SwitchServicePortResponse:
247
+ raise ConnectError(Code.UNIMPLEMENTED, "Not implemented")
248
+
249
+
250
+ class SwitchServiceWSGIApplication(ConnectWSGIApplication):
251
+ def __init__(self, service: SwitchServiceSync, interceptors: Iterable[InterceptorSync]=(), read_max_bytes: int | None = None) -> None:
252
+ super().__init__(
253
+ endpoints={
254
+ "/metalstack.admin.v2.SwitchService/Get": EndpointSync.unary(
255
+ method=MethodInfo(
256
+ name="Get",
257
+ service_name="metalstack.admin.v2.SwitchService",
258
+ input=metalstack_dot_admin_dot_v2_dot_switch__pb2.SwitchServiceGetRequest,
259
+ output=metalstack_dot_admin_dot_v2_dot_switch__pb2.SwitchServiceGetResponse,
260
+ idempotency_level=IdempotencyLevel.UNKNOWN,
261
+ ),
262
+ function=service.get,
263
+ ),
264
+ "/metalstack.admin.v2.SwitchService/List": EndpointSync.unary(
265
+ method=MethodInfo(
266
+ name="List",
267
+ service_name="metalstack.admin.v2.SwitchService",
268
+ input=metalstack_dot_admin_dot_v2_dot_switch__pb2.SwitchServiceListRequest,
269
+ output=metalstack_dot_admin_dot_v2_dot_switch__pb2.SwitchServiceListResponse,
270
+ idempotency_level=IdempotencyLevel.UNKNOWN,
271
+ ),
272
+ function=service.list,
273
+ ),
274
+ "/metalstack.admin.v2.SwitchService/Update": EndpointSync.unary(
275
+ method=MethodInfo(
276
+ name="Update",
277
+ service_name="metalstack.admin.v2.SwitchService",
278
+ input=metalstack_dot_admin_dot_v2_dot_switch__pb2.SwitchServiceUpdateRequest,
279
+ output=metalstack_dot_admin_dot_v2_dot_switch__pb2.SwitchServiceUpdateResponse,
280
+ idempotency_level=IdempotencyLevel.UNKNOWN,
281
+ ),
282
+ function=service.update,
283
+ ),
284
+ "/metalstack.admin.v2.SwitchService/Delete": EndpointSync.unary(
285
+ method=MethodInfo(
286
+ name="Delete",
287
+ service_name="metalstack.admin.v2.SwitchService",
288
+ input=metalstack_dot_admin_dot_v2_dot_switch__pb2.SwitchServiceDeleteRequest,
289
+ output=metalstack_dot_admin_dot_v2_dot_switch__pb2.SwitchServiceDeleteResponse,
290
+ idempotency_level=IdempotencyLevel.UNKNOWN,
291
+ ),
292
+ function=service.delete,
293
+ ),
294
+ "/metalstack.admin.v2.SwitchService/Migrate": EndpointSync.unary(
295
+ method=MethodInfo(
296
+ name="Migrate",
297
+ service_name="metalstack.admin.v2.SwitchService",
298
+ input=metalstack_dot_admin_dot_v2_dot_switch__pb2.SwitchServiceMigrateRequest,
299
+ output=metalstack_dot_admin_dot_v2_dot_switch__pb2.SwitchServiceMigrateResponse,
300
+ idempotency_level=IdempotencyLevel.UNKNOWN,
301
+ ),
302
+ function=service.migrate,
303
+ ),
304
+ "/metalstack.admin.v2.SwitchService/Port": EndpointSync.unary(
305
+ method=MethodInfo(
306
+ name="Port",
307
+ service_name="metalstack.admin.v2.SwitchService",
308
+ input=metalstack_dot_admin_dot_v2_dot_switch__pb2.SwitchServicePortRequest,
309
+ output=metalstack_dot_admin_dot_v2_dot_switch__pb2.SwitchServicePortResponse,
310
+ idempotency_level=IdempotencyLevel.UNKNOWN,
311
+ ),
312
+ function=service.port,
313
+ ),
314
+ },
315
+ interceptors=interceptors,
316
+ read_max_bytes=read_max_bytes,
317
+ )
318
+
319
+ @property
320
+ def path(self) -> str:
321
+ """Returns the URL path to mount the application to when serving multiple applications."""
322
+ return "/metalstack.admin.v2.SwitchService"
323
+
324
+
325
+ class SwitchServiceClientSync(ConnectClientSync):
326
+ def get(
327
+ self,
328
+ request: metalstack_dot_admin_dot_v2_dot_switch__pb2.SwitchServiceGetRequest,
329
+ *,
330
+ headers: Headers | Mapping[str, str] | None = None,
331
+ timeout_ms: int | None = None,
332
+ ) -> metalstack_dot_admin_dot_v2_dot_switch__pb2.SwitchServiceGetResponse:
333
+ return self.execute_unary(
334
+ request=request,
335
+ method=MethodInfo(
336
+ name="Get",
337
+ service_name="metalstack.admin.v2.SwitchService",
338
+ input=metalstack_dot_admin_dot_v2_dot_switch__pb2.SwitchServiceGetRequest,
339
+ output=metalstack_dot_admin_dot_v2_dot_switch__pb2.SwitchServiceGetResponse,
340
+ idempotency_level=IdempotencyLevel.UNKNOWN,
341
+ ),
342
+ headers=headers,
343
+ timeout_ms=timeout_ms,
344
+ )
345
+
346
+ def list(
347
+ self,
348
+ request: metalstack_dot_admin_dot_v2_dot_switch__pb2.SwitchServiceListRequest,
349
+ *,
350
+ headers: Headers | Mapping[str, str] | None = None,
351
+ timeout_ms: int | None = None,
352
+ ) -> metalstack_dot_admin_dot_v2_dot_switch__pb2.SwitchServiceListResponse:
353
+ return self.execute_unary(
354
+ request=request,
355
+ method=MethodInfo(
356
+ name="List",
357
+ service_name="metalstack.admin.v2.SwitchService",
358
+ input=metalstack_dot_admin_dot_v2_dot_switch__pb2.SwitchServiceListRequest,
359
+ output=metalstack_dot_admin_dot_v2_dot_switch__pb2.SwitchServiceListResponse,
360
+ idempotency_level=IdempotencyLevel.UNKNOWN,
361
+ ),
362
+ headers=headers,
363
+ timeout_ms=timeout_ms,
364
+ )
365
+
366
+ def update(
367
+ self,
368
+ request: metalstack_dot_admin_dot_v2_dot_switch__pb2.SwitchServiceUpdateRequest,
369
+ *,
370
+ headers: Headers | Mapping[str, str] | None = None,
371
+ timeout_ms: int | None = None,
372
+ ) -> metalstack_dot_admin_dot_v2_dot_switch__pb2.SwitchServiceUpdateResponse:
373
+ return self.execute_unary(
374
+ request=request,
375
+ method=MethodInfo(
376
+ name="Update",
377
+ service_name="metalstack.admin.v2.SwitchService",
378
+ input=metalstack_dot_admin_dot_v2_dot_switch__pb2.SwitchServiceUpdateRequest,
379
+ output=metalstack_dot_admin_dot_v2_dot_switch__pb2.SwitchServiceUpdateResponse,
380
+ idempotency_level=IdempotencyLevel.UNKNOWN,
381
+ ),
382
+ headers=headers,
383
+ timeout_ms=timeout_ms,
384
+ )
385
+
386
+ def delete(
387
+ self,
388
+ request: metalstack_dot_admin_dot_v2_dot_switch__pb2.SwitchServiceDeleteRequest,
389
+ *,
390
+ headers: Headers | Mapping[str, str] | None = None,
391
+ timeout_ms: int | None = None,
392
+ ) -> metalstack_dot_admin_dot_v2_dot_switch__pb2.SwitchServiceDeleteResponse:
393
+ return self.execute_unary(
394
+ request=request,
395
+ method=MethodInfo(
396
+ name="Delete",
397
+ service_name="metalstack.admin.v2.SwitchService",
398
+ input=metalstack_dot_admin_dot_v2_dot_switch__pb2.SwitchServiceDeleteRequest,
399
+ output=metalstack_dot_admin_dot_v2_dot_switch__pb2.SwitchServiceDeleteResponse,
400
+ idempotency_level=IdempotencyLevel.UNKNOWN,
401
+ ),
402
+ headers=headers,
403
+ timeout_ms=timeout_ms,
404
+ )
405
+
406
+ def migrate(
407
+ self,
408
+ request: metalstack_dot_admin_dot_v2_dot_switch__pb2.SwitchServiceMigrateRequest,
409
+ *,
410
+ headers: Headers | Mapping[str, str] | None = None,
411
+ timeout_ms: int | None = None,
412
+ ) -> metalstack_dot_admin_dot_v2_dot_switch__pb2.SwitchServiceMigrateResponse:
413
+ return self.execute_unary(
414
+ request=request,
415
+ method=MethodInfo(
416
+ name="Migrate",
417
+ service_name="metalstack.admin.v2.SwitchService",
418
+ input=metalstack_dot_admin_dot_v2_dot_switch__pb2.SwitchServiceMigrateRequest,
419
+ output=metalstack_dot_admin_dot_v2_dot_switch__pb2.SwitchServiceMigrateResponse,
420
+ idempotency_level=IdempotencyLevel.UNKNOWN,
421
+ ),
422
+ headers=headers,
423
+ timeout_ms=timeout_ms,
424
+ )
425
+
426
+ def port(
427
+ self,
428
+ request: metalstack_dot_admin_dot_v2_dot_switch__pb2.SwitchServicePortRequest,
429
+ *,
430
+ headers: Headers | Mapping[str, str] | None = None,
431
+ timeout_ms: int | None = None,
432
+ ) -> metalstack_dot_admin_dot_v2_dot_switch__pb2.SwitchServicePortResponse:
433
+ return self.execute_unary(
434
+ request=request,
435
+ method=MethodInfo(
436
+ name="Port",
437
+ service_name="metalstack.admin.v2.SwitchService",
438
+ input=metalstack_dot_admin_dot_v2_dot_switch__pb2.SwitchServicePortRequest,
439
+ output=metalstack_dot_admin_dot_v2_dot_switch__pb2.SwitchServicePortResponse,
440
+ idempotency_level=IdempotencyLevel.UNKNOWN,
441
+ ),
442
+ headers=headers,
443
+ timeout_ms=timeout_ms,
444
+ )
@@ -0,0 +1,108 @@
1
+ # -*- coding: utf-8 -*-
2
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
3
+ # NO CHECKED-IN PROTOBUF GENCODE
4
+ # source: metalstack/admin/v2/switch.proto
5
+ # Protobuf Python Version: 6.32.1
6
+ """Generated protocol buffer code."""
7
+ from google.protobuf import descriptor as _descriptor
8
+ from google.protobuf import descriptor_pool as _descriptor_pool
9
+ from google.protobuf import runtime_version as _runtime_version
10
+ from google.protobuf import symbol_database as _symbol_database
11
+ from google.protobuf.internal import builder as _builder
12
+ _runtime_version.ValidateProtobufRuntimeVersion(
13
+ _runtime_version.Domain.PUBLIC,
14
+ 6,
15
+ 32,
16
+ 1,
17
+ '',
18
+ 'metalstack/admin/v2/switch.proto'
19
+ )
20
+ # @@protoc_insertion_point(imports)
21
+
22
+ _sym_db = _symbol_database.Default()
23
+
24
+
25
+ from buf.validate import validate_pb2 as buf_dot_validate_dot_validate__pb2
26
+ from google.protobuf import timestamp_pb2 as google_dot_protobuf_dot_timestamp__pb2
27
+ from metalstack.api.v2 import common_pb2 as metalstack_dot_api_dot_v2_dot_common__pb2
28
+ from metalstack.api.v2 import predefined_rules_pb2 as metalstack_dot_api_dot_v2_dot_predefined__rules__pb2
29
+ from metalstack.api.v2 import switch_pb2 as metalstack_dot_api_dot_v2_dot_switch__pb2
30
+
31
+
32
+ DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n metalstack/admin/v2/switch.proto\x12\x13metalstack.admin.v2\x1a\x1b\x62uf/validate/validate.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x1emetalstack/api/v2/common.proto\x1a(metalstack/api/v2/predefined_rules.proto\x1a\x1emetalstack/api/v2/switch.proto\"8\n\x17SwitchServiceGetRequest\x12\x1d\n\x02id\x18\x01 \x01(\tB\r\xbaH\nr\x08h\x01\xc0\xb3\xae\xb1\x02\x01R\x02id\"M\n\x18SwitchServiceGetResponse\x12\x31\n\x06switch\x18\x01 \x01(\x0b\x32\x19.metalstack.api.v2.SwitchR\x06switch\"P\n\x18SwitchServiceListRequest\x12\x34\n\x05query\x18\x01 \x01(\x0b\x32\x1e.metalstack.api.v2.SwitchQueryR\x05query\"R\n\x19SwitchServiceListResponse\x12\x35\n\x08switches\x18\x01 \x03(\x0b\x32\x19.metalstack.api.v2.SwitchR\x08switches\"\xf0\x05\n\x1aSwitchServiceUpdateRequest\x12\x1d\n\x02id\x18\x01 \x01(\tB\r\xbaH\nr\x08h\x01\xc0\xb3\xae\xb1\x02\x01R\x02id\x12\x46\n\x0bupdate_meta\x18\x02 \x01(\x0b\x32\x1d.metalstack.api.v2.UpdateMetaB\x06\xbaH\x03\xc8\x01\x01R\nupdateMeta\x12\x39\n\nupdated_at\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.TimestampR\tupdatedAt\x12\x32\n\x0b\x64\x65scription\x18\x04 \x01(\tB\x0b\xbaH\x08r\x06\xc8\xb3\xae\xb1\x02\x01H\x00R\x0b\x64\x65scription\x88\x01\x01\x12)\n\x07rack_id\x18\x05 \x01(\tB\x0b\xbaH\x08r\x06\xc0\xb3\xae\xb1\x02\x01H\x01R\x06rackId\x88\x01\x01\x12V\n\x0creplace_mode\x18\x06 \x01(\x0e\x32$.metalstack.api.v2.SwitchReplaceModeB\x08\xbaH\x05\x82\x01\x02\x10\x01H\x02R\x0breplaceMode\x88\x01\x01\x12\x31\n\rmanagement_ip\x18\x07 \x01(\tB\x07\xbaH\x04r\x02p\x01H\x03R\x0cmanagementIp\x88\x01\x01\x12\x39\n\x0fmanagement_user\x18\x08 \x01(\tB\x0b\xbaH\x08r\x06\xc0\xb3\xae\xb1\x02\x01H\x04R\x0emanagementUser\x88\x01\x01\x12\x39\n\x0f\x63onsole_command\x18\t \x01(\tB\x0b\xbaH\x08r\x06\xc8\xb3\xae\xb1\x02\x01H\x05R\x0e\x63onsoleCommand\x88\x01\x01\x12\x30\n\x04nics\x18\n \x03(\x0b\x32\x1c.metalstack.api.v2.SwitchNicR\x04nics\x12\x30\n\x02os\x18\x0b \x01(\x0b\x32\x1b.metalstack.api.v2.SwitchOSH\x06R\x02os\x88\x01\x01\x42\x0e\n\x0c_descriptionB\n\n\x08_rack_idB\x0f\n\r_replace_modeB\x10\n\x0e_management_ipB\x12\n\x10_management_userB\x12\n\x10_console_commandB\x05\n\x03_os\"P\n\x1bSwitchServiceUpdateResponse\x12\x31\n\x06switch\x18\x01 \x01(\x0b\x32\x19.metalstack.api.v2.SwitchR\x06switch\"Q\n\x1aSwitchServiceDeleteRequest\x12\x1d\n\x02id\x18\x01 \x01(\tB\r\xbaH\nr\x08h\x01\xc0\xb3\xae\xb1\x02\x01R\x02id\x12\x14\n\x05\x66orce\x18\x02 \x01(\x08R\x05\x66orce\"P\n\x1bSwitchServiceDeleteResponse\x12\x31\n\x06switch\x18\x01 \x01(\x0b\x32\x19.metalstack.api.v2.SwitchR\x06switch\"y\n\x1bSwitchServiceMigrateRequest\x12,\n\nold_switch\x18\x01 \x01(\tB\r\xbaH\nr\x08h\x01\xc0\xb3\xae\xb1\x02\x01R\toldSwitch\x12,\n\nnew_switch\x18\x02 \x01(\tB\r\xbaH\nr\x08h\x01\xc0\xb3\xae\xb1\x02\x01R\tnewSwitch\"Q\n\x1cSwitchServiceMigrateResponse\x12\x31\n\x06switch\x18\x01 \x01(\x0b\x32\x19.metalstack.api.v2.SwitchR\x06switch\"\xa8\x01\n\x18SwitchServicePortRequest\x12\x1d\n\x02id\x18\x01 \x01(\tB\r\xbaH\nr\x08h\x01\xc0\xb3\xae\xb1\x02\x01R\x02id\x12&\n\x08nic_name\x18\x02 \x01(\tB\x0b\xbaH\x08r\x06\xc0\xb3\xae\xb1\x02\x01R\x07nicName\x12\x45\n\x06status\x18\x03 \x01(\x0e\x32#.metalstack.api.v2.SwitchPortStatusB\x08\xbaH\x05\x82\x01\x02\x10\x01R\x06status\"N\n\x19SwitchServicePortResponse\x12\x31\n\x06switch\x18\x01 \x01(\x0b\x32\x19.metalstack.api.v2.SwitchR\x06switch2\xbf\x05\n\rSwitchService\x12n\n\x03Get\x12,.metalstack.admin.v2.SwitchServiceGetRequest\x1a-.metalstack.admin.v2.SwitchServiceGetResponse\"\n\xd2\xf3\x18\x02\x01\x02\xe0\xf3\x18\x02\x12q\n\x04List\x12-.metalstack.admin.v2.SwitchServiceListRequest\x1a..metalstack.admin.v2.SwitchServiceListResponse\"\n\xd2\xf3\x18\x02\x01\x02\xe0\xf3\x18\x02\x12r\n\x06Update\x12/.metalstack.admin.v2.SwitchServiceUpdateRequest\x1a\x30.metalstack.admin.v2.SwitchServiceUpdateResponse\"\x05\xd2\xf3\x18\x01\x01\x12r\n\x06\x44\x65lete\x12/.metalstack.admin.v2.SwitchServiceDeleteRequest\x1a\x30.metalstack.admin.v2.SwitchServiceDeleteResponse\"\x05\xd2\xf3\x18\x01\x01\x12u\n\x07Migrate\x12\x30.metalstack.admin.v2.SwitchServiceMigrateRequest\x1a\x31.metalstack.admin.v2.SwitchServiceMigrateResponse\"\x05\xd2\xf3\x18\x01\x01\x12l\n\x04Port\x12-.metalstack.admin.v2.SwitchServicePortRequest\x1a..metalstack.admin.v2.SwitchServicePortResponse\"\x05\xd2\xf3\x18\x01\x01\x42\xcf\x01\n\x17\x63om.metalstack.admin.v2B\x0bSwitchProtoP\x01Z9github.com/metal-stack/api/go/metalstack/admin/v2;adminv2\xa2\x02\x03MAX\xaa\x02\x13Metalstack.Admin.V2\xca\x02\x13Metalstack\\Admin\\V2\xe2\x02\x1fMetalstack\\Admin\\V2\\GPBMetadata\xea\x02\x15Metalstack::Admin::V2b\x06proto3')
33
+
34
+ _globals = globals()
35
+ _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
36
+ _builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'metalstack.admin.v2.switch_pb2', _globals)
37
+ if not _descriptor._USE_C_DESCRIPTORS:
38
+ _globals['DESCRIPTOR']._loaded_options = None
39
+ _globals['DESCRIPTOR']._serialized_options = b'\n\027com.metalstack.admin.v2B\013SwitchProtoP\001Z9github.com/metal-stack/api/go/metalstack/admin/v2;adminv2\242\002\003MAX\252\002\023Metalstack.Admin.V2\312\002\023Metalstack\\Admin\\V2\342\002\037Metalstack\\Admin\\V2\\GPBMetadata\352\002\025Metalstack::Admin::V2'
40
+ _globals['_SWITCHSERVICEGETREQUEST'].fields_by_name['id']._loaded_options = None
41
+ _globals['_SWITCHSERVICEGETREQUEST'].fields_by_name['id']._serialized_options = b'\272H\nr\010h\001\300\263\256\261\002\001'
42
+ _globals['_SWITCHSERVICEUPDATEREQUEST'].fields_by_name['id']._loaded_options = None
43
+ _globals['_SWITCHSERVICEUPDATEREQUEST'].fields_by_name['id']._serialized_options = b'\272H\nr\010h\001\300\263\256\261\002\001'
44
+ _globals['_SWITCHSERVICEUPDATEREQUEST'].fields_by_name['update_meta']._loaded_options = None
45
+ _globals['_SWITCHSERVICEUPDATEREQUEST'].fields_by_name['update_meta']._serialized_options = b'\272H\003\310\001\001'
46
+ _globals['_SWITCHSERVICEUPDATEREQUEST'].fields_by_name['description']._loaded_options = None
47
+ _globals['_SWITCHSERVICEUPDATEREQUEST'].fields_by_name['description']._serialized_options = b'\272H\010r\006\310\263\256\261\002\001'
48
+ _globals['_SWITCHSERVICEUPDATEREQUEST'].fields_by_name['rack_id']._loaded_options = None
49
+ _globals['_SWITCHSERVICEUPDATEREQUEST'].fields_by_name['rack_id']._serialized_options = b'\272H\010r\006\300\263\256\261\002\001'
50
+ _globals['_SWITCHSERVICEUPDATEREQUEST'].fields_by_name['replace_mode']._loaded_options = None
51
+ _globals['_SWITCHSERVICEUPDATEREQUEST'].fields_by_name['replace_mode']._serialized_options = b'\272H\005\202\001\002\020\001'
52
+ _globals['_SWITCHSERVICEUPDATEREQUEST'].fields_by_name['management_ip']._loaded_options = None
53
+ _globals['_SWITCHSERVICEUPDATEREQUEST'].fields_by_name['management_ip']._serialized_options = b'\272H\004r\002p\001'
54
+ _globals['_SWITCHSERVICEUPDATEREQUEST'].fields_by_name['management_user']._loaded_options = None
55
+ _globals['_SWITCHSERVICEUPDATEREQUEST'].fields_by_name['management_user']._serialized_options = b'\272H\010r\006\300\263\256\261\002\001'
56
+ _globals['_SWITCHSERVICEUPDATEREQUEST'].fields_by_name['console_command']._loaded_options = None
57
+ _globals['_SWITCHSERVICEUPDATEREQUEST'].fields_by_name['console_command']._serialized_options = b'\272H\010r\006\310\263\256\261\002\001'
58
+ _globals['_SWITCHSERVICEDELETEREQUEST'].fields_by_name['id']._loaded_options = None
59
+ _globals['_SWITCHSERVICEDELETEREQUEST'].fields_by_name['id']._serialized_options = b'\272H\nr\010h\001\300\263\256\261\002\001'
60
+ _globals['_SWITCHSERVICEMIGRATEREQUEST'].fields_by_name['old_switch']._loaded_options = None
61
+ _globals['_SWITCHSERVICEMIGRATEREQUEST'].fields_by_name['old_switch']._serialized_options = b'\272H\nr\010h\001\300\263\256\261\002\001'
62
+ _globals['_SWITCHSERVICEMIGRATEREQUEST'].fields_by_name['new_switch']._loaded_options = None
63
+ _globals['_SWITCHSERVICEMIGRATEREQUEST'].fields_by_name['new_switch']._serialized_options = b'\272H\nr\010h\001\300\263\256\261\002\001'
64
+ _globals['_SWITCHSERVICEPORTREQUEST'].fields_by_name['id']._loaded_options = None
65
+ _globals['_SWITCHSERVICEPORTREQUEST'].fields_by_name['id']._serialized_options = b'\272H\nr\010h\001\300\263\256\261\002\001'
66
+ _globals['_SWITCHSERVICEPORTREQUEST'].fields_by_name['nic_name']._loaded_options = None
67
+ _globals['_SWITCHSERVICEPORTREQUEST'].fields_by_name['nic_name']._serialized_options = b'\272H\010r\006\300\263\256\261\002\001'
68
+ _globals['_SWITCHSERVICEPORTREQUEST'].fields_by_name['status']._loaded_options = None
69
+ _globals['_SWITCHSERVICEPORTREQUEST'].fields_by_name['status']._serialized_options = b'\272H\005\202\001\002\020\001'
70
+ _globals['_SWITCHSERVICE'].methods_by_name['Get']._loaded_options = None
71
+ _globals['_SWITCHSERVICE'].methods_by_name['Get']._serialized_options = b'\322\363\030\002\001\002\340\363\030\002'
72
+ _globals['_SWITCHSERVICE'].methods_by_name['List']._loaded_options = None
73
+ _globals['_SWITCHSERVICE'].methods_by_name['List']._serialized_options = b'\322\363\030\002\001\002\340\363\030\002'
74
+ _globals['_SWITCHSERVICE'].methods_by_name['Update']._loaded_options = None
75
+ _globals['_SWITCHSERVICE'].methods_by_name['Update']._serialized_options = b'\322\363\030\001\001'
76
+ _globals['_SWITCHSERVICE'].methods_by_name['Delete']._loaded_options = None
77
+ _globals['_SWITCHSERVICE'].methods_by_name['Delete']._serialized_options = b'\322\363\030\001\001'
78
+ _globals['_SWITCHSERVICE'].methods_by_name['Migrate']._loaded_options = None
79
+ _globals['_SWITCHSERVICE'].methods_by_name['Migrate']._serialized_options = b'\322\363\030\001\001'
80
+ _globals['_SWITCHSERVICE'].methods_by_name['Port']._loaded_options = None
81
+ _globals['_SWITCHSERVICE'].methods_by_name['Port']._serialized_options = b'\322\363\030\001\001'
82
+ _globals['_SWITCHSERVICEGETREQUEST']._serialized_start=225
83
+ _globals['_SWITCHSERVICEGETREQUEST']._serialized_end=281
84
+ _globals['_SWITCHSERVICEGETRESPONSE']._serialized_start=283
85
+ _globals['_SWITCHSERVICEGETRESPONSE']._serialized_end=360
86
+ _globals['_SWITCHSERVICELISTREQUEST']._serialized_start=362
87
+ _globals['_SWITCHSERVICELISTREQUEST']._serialized_end=442
88
+ _globals['_SWITCHSERVICELISTRESPONSE']._serialized_start=444
89
+ _globals['_SWITCHSERVICELISTRESPONSE']._serialized_end=526
90
+ _globals['_SWITCHSERVICEUPDATEREQUEST']._serialized_start=529
91
+ _globals['_SWITCHSERVICEUPDATEREQUEST']._serialized_end=1281
92
+ _globals['_SWITCHSERVICEUPDATERESPONSE']._serialized_start=1283
93
+ _globals['_SWITCHSERVICEUPDATERESPONSE']._serialized_end=1363
94
+ _globals['_SWITCHSERVICEDELETEREQUEST']._serialized_start=1365
95
+ _globals['_SWITCHSERVICEDELETEREQUEST']._serialized_end=1446
96
+ _globals['_SWITCHSERVICEDELETERESPONSE']._serialized_start=1448
97
+ _globals['_SWITCHSERVICEDELETERESPONSE']._serialized_end=1528
98
+ _globals['_SWITCHSERVICEMIGRATEREQUEST']._serialized_start=1530
99
+ _globals['_SWITCHSERVICEMIGRATEREQUEST']._serialized_end=1651
100
+ _globals['_SWITCHSERVICEMIGRATERESPONSE']._serialized_start=1653
101
+ _globals['_SWITCHSERVICEMIGRATERESPONSE']._serialized_end=1734
102
+ _globals['_SWITCHSERVICEPORTREQUEST']._serialized_start=1737
103
+ _globals['_SWITCHSERVICEPORTREQUEST']._serialized_end=1905
104
+ _globals['_SWITCHSERVICEPORTRESPONSE']._serialized_start=1907
105
+ _globals['_SWITCHSERVICEPORTRESPONSE']._serialized_end=1985
106
+ _globals['_SWITCHSERVICE']._serialized_start=1988
107
+ _globals['_SWITCHSERVICE']._serialized_end=2691
108
+ # @@protoc_insertion_point(module_scope)