metal-stack-api 0.0.3__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (107) hide show
  1. buf/__init__.py +0 -0
  2. buf/validate/__init__.py +0 -0
  3. buf/validate/validate_pb2.py +450 -0
  4. buf/validate/validate_pb2.pyi +631 -0
  5. buf/validate/validate_pb2_grpc.py +4 -0
  6. metal_stack_api-0.0.3.dist-info/METADATA +26 -0
  7. metal_stack_api-0.0.3.dist-info/RECORD +107 -0
  8. metal_stack_api-0.0.3.dist-info/WHEEL +5 -0
  9. metal_stack_api-0.0.3.dist-info/top_level.txt +2 -0
  10. metalstack/__init__.py +0 -0
  11. metalstack/admin/__init__.py +0 -0
  12. metalstack/admin/v2/__init__.py +0 -0
  13. metalstack/admin/v2/filesystem_connecpy.py +214 -0
  14. metalstack/admin/v2/filesystem_pb2.py +60 -0
  15. metalstack/admin/v2/filesystem_pb2.pyi +45 -0
  16. metalstack/admin/v2/filesystem_pb2_grpc.py +169 -0
  17. metalstack/admin/v2/image_connecpy.py +270 -0
  18. metalstack/admin/v2/image_pb2.py +66 -0
  19. metalstack/admin/v2/image_pb2.pyi +58 -0
  20. metalstack/admin/v2/image_pb2_grpc.py +213 -0
  21. metalstack/admin/v2/ip_connecpy.py +158 -0
  22. metalstack/admin/v2/ip_pb2.py +53 -0
  23. metalstack/admin/v2/ip_pb2.pyi +39 -0
  24. metalstack/admin/v2/ip_pb2_grpc.py +125 -0
  25. metalstack/admin/v2/network_connecpy.py +326 -0
  26. metalstack/admin/v2/network_pb2.py +104 -0
  27. metalstack/admin/v2/network_pb2.pyi +122 -0
  28. metalstack/admin/v2/network_pb2_grpc.py +257 -0
  29. metalstack/admin/v2/partition_connecpy.py +270 -0
  30. metalstack/admin/v2/partition_pb2.py +72 -0
  31. metalstack/admin/v2/partition_pb2.pyi +90 -0
  32. metalstack/admin/v2/partition_pb2_grpc.py +213 -0
  33. metalstack/admin/v2/size_connecpy.py +214 -0
  34. metalstack/admin/v2/size_pb2.py +66 -0
  35. metalstack/admin/v2/size_pb2.pyi +54 -0
  36. metalstack/admin/v2/size_pb2_grpc.py +169 -0
  37. metalstack/admin/v2/tenant_connecpy.py +158 -0
  38. metalstack/admin/v2/tenant_pb2.py +58 -0
  39. metalstack/admin/v2/tenant_pb2.pyi +50 -0
  40. metalstack/admin/v2/tenant_pb2_grpc.py +125 -0
  41. metalstack/admin/v2/token_connecpy.py +158 -0
  42. metalstack/admin/v2/token_pb2.py +56 -0
  43. metalstack/admin/v2/token_pb2.pyi +34 -0
  44. metalstack/admin/v2/token_pb2_grpc.py +125 -0
  45. metalstack/api/__init__.py +0 -0
  46. metalstack/api/v2/__init__.py +0 -0
  47. metalstack/api/v2/common_pb2.py +66 -0
  48. metalstack/api/v2/common_pb2.pyi +128 -0
  49. metalstack/api/v2/common_pb2_grpc.py +4 -0
  50. metalstack/api/v2/filesystem_connecpy.py +270 -0
  51. metalstack/api/v2/filesystem_pb2.py +167 -0
  52. metalstack/api/v2/filesystem_pb2.pyi +229 -0
  53. metalstack/api/v2/filesystem_pb2_grpc.py +213 -0
  54. metalstack/api/v2/health_connecpy.py +102 -0
  55. metalstack/api/v2/health_pb2.py +70 -0
  56. metalstack/api/v2/health_pb2.pyi +80 -0
  57. metalstack/api/v2/health_pb2_grpc.py +81 -0
  58. metalstack/api/v2/image_connecpy.py +214 -0
  59. metalstack/api/v2/image_pb2.py +106 -0
  60. metalstack/api/v2/image_pb2.pyi +115 -0
  61. metalstack/api/v2/image_pb2_grpc.py +169 -0
  62. metalstack/api/v2/ip_connecpy.py +326 -0
  63. metalstack/api/v2/ip_pb2.py +159 -0
  64. metalstack/api/v2/ip_pb2.pyi +170 -0
  65. metalstack/api/v2/ip_pb2_grpc.py +257 -0
  66. metalstack/api/v2/methods_connecpy.py +158 -0
  67. metalstack/api/v2/methods_pb2.py +62 -0
  68. metalstack/api/v2/methods_pb2.pyi +50 -0
  69. metalstack/api/v2/methods_pb2_grpc.py +128 -0
  70. metalstack/api/v2/network_connecpy.py +382 -0
  71. metalstack/api/v2/network_pb2.py +191 -0
  72. metalstack/api/v2/network_pb2.pyi +247 -0
  73. metalstack/api/v2/network_pb2_grpc.py +301 -0
  74. metalstack/api/v2/partition_connecpy.py +158 -0
  75. metalstack/api/v2/partition_pb2.py +81 -0
  76. metalstack/api/v2/partition_pb2.pyi +79 -0
  77. metalstack/api/v2/partition_pb2_grpc.py +125 -0
  78. metalstack/api/v2/project_connecpy.py +718 -0
  79. metalstack/api/v2/project_pb2.py +156 -0
  80. metalstack/api/v2/project_pb2.pyi +230 -0
  81. metalstack/api/v2/project_pb2_grpc.py +565 -0
  82. metalstack/api/v2/size_connecpy.py +158 -0
  83. metalstack/api/v2/size_pb2.py +85 -0
  84. metalstack/api/v2/size_pb2.pyi +85 -0
  85. metalstack/api/v2/size_pb2_grpc.py +125 -0
  86. metalstack/api/v2/tenant_connecpy.py +718 -0
  87. metalstack/api/v2/tenant_pb2.py +140 -0
  88. metalstack/api/v2/tenant_pb2.pyi +236 -0
  89. metalstack/api/v2/tenant_pb2_grpc.py +565 -0
  90. metalstack/api/v2/token_connecpy.py +326 -0
  91. metalstack/api/v2/token_pb2.py +143 -0
  92. metalstack/api/v2/token_pb2.pyi +175 -0
  93. metalstack/api/v2/token_pb2_grpc.py +257 -0
  94. metalstack/api/v2/user_connecpy.py +102 -0
  95. metalstack/api/v2/user_pb2.py +48 -0
  96. metalstack/api/v2/user_pb2.pyi +38 -0
  97. metalstack/api/v2/user_pb2_grpc.py +81 -0
  98. metalstack/api/v2/version_connecpy.py +102 -0
  99. metalstack/api/v2/version_pb2.py +46 -0
  100. metalstack/api/v2/version_pb2.pyi +29 -0
  101. metalstack/api/v2/version_pb2_grpc.py +81 -0
  102. metalstack/infra/__init__.py +0 -0
  103. metalstack/infra/v2/__init__.py +0 -0
  104. metalstack/infra/v2/bmc_connecpy.py +102 -0
  105. metalstack/infra/v2/bmc_pb2.py +44 -0
  106. metalstack/infra/v2/bmc_pb2.pyi +14 -0
  107. metalstack/infra/v2/bmc_pb2_grpc.py +81 -0
@@ -0,0 +1,158 @@
1
+ # -*- coding: utf-8 -*-
2
+ # Generated by https://github.com/i2y/connecpy/protoc-gen-connecpy. DO NOT EDIT!
3
+ # source: metalstack/admin/v2/ip.proto
4
+
5
+ from typing import Optional, Protocol, Union
6
+
7
+ import httpx
8
+
9
+ from connecpy.async_client import AsyncConnecpyClient
10
+ from connecpy.base import Endpoint
11
+ from connecpy.server import ConnecpyServer
12
+ from connecpy.client import ConnecpyClient
13
+ from connecpy.context import ClientContext, ServiceContext
14
+ import metalstack.admin.v2.ip_pb2 as metalstack_dot_admin_dot_v2_dot_ip__pb2
15
+
16
+
17
+ class IPService(Protocol):
18
+ async def List(self, req: metalstack_dot_admin_dot_v2_dot_ip__pb2.IPServiceListRequest, ctx: ServiceContext) -> metalstack_dot_admin_dot_v2_dot_ip__pb2.IPServiceListResponse: ...
19
+ async def Issues(self, req: metalstack_dot_admin_dot_v2_dot_ip__pb2.IPServiceIssuesRequest, ctx: ServiceContext) -> metalstack_dot_admin_dot_v2_dot_ip__pb2.IPServiceIssuesResponse: ...
20
+
21
+
22
+ class IPServiceServer(ConnecpyServer):
23
+ def __init__(self, *, service: IPService, server_path_prefix=""):
24
+ super().__init__()
25
+ self._prefix = f"{server_path_prefix}/metalstack.admin.v2.IPService"
26
+ self._endpoints = {
27
+ "List": Endpoint[metalstack_dot_admin_dot_v2_dot_ip__pb2.IPServiceListRequest, metalstack_dot_admin_dot_v2_dot_ip__pb2.IPServiceListResponse](
28
+ service_name="IPService",
29
+ name="List",
30
+ function=getattr(service, "List"),
31
+ input=metalstack_dot_admin_dot_v2_dot_ip__pb2.IPServiceListRequest,
32
+ output=metalstack_dot_admin_dot_v2_dot_ip__pb2.IPServiceListResponse,
33
+ allowed_methods=("POST",),
34
+ ),
35
+ "Issues": Endpoint[metalstack_dot_admin_dot_v2_dot_ip__pb2.IPServiceIssuesRequest, metalstack_dot_admin_dot_v2_dot_ip__pb2.IPServiceIssuesResponse](
36
+ service_name="IPService",
37
+ name="Issues",
38
+ function=getattr(service, "Issues"),
39
+ input=metalstack_dot_admin_dot_v2_dot_ip__pb2.IPServiceIssuesRequest,
40
+ output=metalstack_dot_admin_dot_v2_dot_ip__pb2.IPServiceIssuesResponse,
41
+ allowed_methods=("POST",),
42
+ ),
43
+ }
44
+
45
+ def serviceName(self):
46
+ return "metalstack.admin.v2.IPService"
47
+
48
+
49
+ class IPServiceSync(Protocol):
50
+ def List(self, req: metalstack_dot_admin_dot_v2_dot_ip__pb2.IPServiceListRequest, ctx: ServiceContext) -> metalstack_dot_admin_dot_v2_dot_ip__pb2.IPServiceListResponse: ...
51
+ def Issues(self, req: metalstack_dot_admin_dot_v2_dot_ip__pb2.IPServiceIssuesRequest, ctx: ServiceContext) -> metalstack_dot_admin_dot_v2_dot_ip__pb2.IPServiceIssuesResponse: ...
52
+
53
+
54
+ class IPServiceServerSync(ConnecpyServer):
55
+ def __init__(self, *, service: IPServiceSync, server_path_prefix=""):
56
+ super().__init__()
57
+ self._prefix = f"{server_path_prefix}/metalstack.admin.v2.IPService"
58
+ self._endpoints = {
59
+ "List": Endpoint[metalstack_dot_admin_dot_v2_dot_ip__pb2.IPServiceListRequest, metalstack_dot_admin_dot_v2_dot_ip__pb2.IPServiceListResponse](
60
+ service_name="IPService",
61
+ name="List",
62
+ function=getattr(service, "List"),
63
+ input=metalstack_dot_admin_dot_v2_dot_ip__pb2.IPServiceListRequest,
64
+ output=metalstack_dot_admin_dot_v2_dot_ip__pb2.IPServiceListResponse,
65
+ allowed_methods=("POST",),
66
+ ),
67
+ "Issues": Endpoint[metalstack_dot_admin_dot_v2_dot_ip__pb2.IPServiceIssuesRequest, metalstack_dot_admin_dot_v2_dot_ip__pb2.IPServiceIssuesResponse](
68
+ service_name="IPService",
69
+ name="Issues",
70
+ function=getattr(service, "Issues"),
71
+ input=metalstack_dot_admin_dot_v2_dot_ip__pb2.IPServiceIssuesRequest,
72
+ output=metalstack_dot_admin_dot_v2_dot_ip__pb2.IPServiceIssuesResponse,
73
+ allowed_methods=("POST",),
74
+ ),
75
+ }
76
+
77
+ def serviceName(self):
78
+ return "metalstack.admin.v2.IPService"
79
+
80
+
81
+ class IPServiceClient(ConnecpyClient):
82
+ def List(
83
+ self,
84
+ request: metalstack_dot_admin_dot_v2_dot_ip__pb2.IPServiceListRequest,
85
+ *,
86
+ ctx: Optional[ClientContext] = None,
87
+ server_path_prefix: str = "",
88
+ **kwargs,
89
+ ) -> metalstack_dot_admin_dot_v2_dot_ip__pb2.IPServiceListResponse:
90
+ method = "POST"
91
+ return self._make_request(
92
+ url=f"{server_path_prefix}/metalstack.admin.v2.IPService/List",
93
+ ctx=ctx,
94
+ request=request,
95
+ response_class=metalstack_dot_admin_dot_v2_dot_ip__pb2.IPServiceListResponse,
96
+ method=method,
97
+ **kwargs,
98
+ )
99
+
100
+ def Issues(
101
+ self,
102
+ request: metalstack_dot_admin_dot_v2_dot_ip__pb2.IPServiceIssuesRequest,
103
+ *,
104
+ ctx: Optional[ClientContext] = None,
105
+ server_path_prefix: str = "",
106
+ **kwargs,
107
+ ) -> metalstack_dot_admin_dot_v2_dot_ip__pb2.IPServiceIssuesResponse:
108
+ method = "POST"
109
+ return self._make_request(
110
+ url=f"{server_path_prefix}/metalstack.admin.v2.IPService/Issues",
111
+ ctx=ctx,
112
+ request=request,
113
+ response_class=metalstack_dot_admin_dot_v2_dot_ip__pb2.IPServiceIssuesResponse,
114
+ method=method,
115
+ **kwargs,
116
+ )
117
+
118
+
119
+ class AsyncIPServiceClient(AsyncConnecpyClient):
120
+ async def List(
121
+ self,
122
+ request: metalstack_dot_admin_dot_v2_dot_ip__pb2.IPServiceListRequest,
123
+ *,
124
+ ctx: Optional[ClientContext] = None,
125
+ server_path_prefix: str = "",
126
+ session: Union[httpx.AsyncClient, None] = None,
127
+ **kwargs,
128
+ ) -> metalstack_dot_admin_dot_v2_dot_ip__pb2.IPServiceListResponse:
129
+ method = "POST"
130
+ return await self._make_request(
131
+ url=f"{server_path_prefix}/metalstack.admin.v2.IPService/List",
132
+ ctx=ctx,
133
+ request=request,
134
+ response_class=metalstack_dot_admin_dot_v2_dot_ip__pb2.IPServiceListResponse,
135
+ method=method,
136
+ session=session,
137
+ **kwargs,
138
+ )
139
+
140
+ async def Issues(
141
+ self,
142
+ request: metalstack_dot_admin_dot_v2_dot_ip__pb2.IPServiceIssuesRequest,
143
+ *,
144
+ ctx: Optional[ClientContext] = None,
145
+ server_path_prefix: str = "",
146
+ session: Union[httpx.AsyncClient, None] = None,
147
+ **kwargs,
148
+ ) -> metalstack_dot_admin_dot_v2_dot_ip__pb2.IPServiceIssuesResponse:
149
+ method = "POST"
150
+ return await self._make_request(
151
+ url=f"{server_path_prefix}/metalstack.admin.v2.IPService/Issues",
152
+ ctx=ctx,
153
+ request=request,
154
+ response_class=metalstack_dot_admin_dot_v2_dot_ip__pb2.IPServiceIssuesResponse,
155
+ method=method,
156
+ session=session,
157
+ **kwargs,
158
+ )
@@ -0,0 +1,53 @@
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/ip.proto
5
+ # Protobuf Python Version: 6.31.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
+ 31,
16
+ 1,
17
+ '',
18
+ 'metalstack/admin/v2/ip.proto'
19
+ )
20
+ # @@protoc_insertion_point(imports)
21
+
22
+ _sym_db = _symbol_database.Default()
23
+
24
+
25
+ from metalstack.api.v2 import common_pb2 as metalstack_dot_api_dot_v2_dot_common__pb2
26
+ from metalstack.api.v2 import ip_pb2 as metalstack_dot_api_dot_v2_dot_ip__pb2
27
+
28
+
29
+ DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1cmetalstack/admin/v2/ip.proto\x12\x13metalstack.admin.v2\x1a\x1emetalstack/api/v2/common.proto\x1a\x1ametalstack/api/v2/ip.proto\"H\n\x14IPServiceListRequest\x12\x30\n\x05query\x18\x01 \x01(\x0b\x32\x1a.metalstack.api.v2.IPQueryR\x05query\"@\n\x15IPServiceListResponse\x12\'\n\x03ips\x18\x01 \x03(\x0b\x32\x15.metalstack.api.v2.IPR\x03ips\"\x18\n\x16IPServiceIssuesRequest\"O\n\x17IPServiceIssuesResponse\x12\x34\n\x06issues\x18\x01 \x03(\x0b\x32\x1c.metalstack.admin.v2.IPIssueR\x06issues\"R\n\x07IPIssue\x12 \n\x0b\x64\x65scription\x18\x01 \x01(\tR\x0b\x64\x65scription\x12%\n\x02ip\x18\x02 \x01(\x0b\x32\x15.metalstack.api.v2.IPR\x02ip2\xe7\x01\n\tIPService\x12i\n\x04List\x12).metalstack.admin.v2.IPServiceListRequest\x1a*.metalstack.admin.v2.IPServiceListResponse\"\n\xd2\xf3\x18\x02\x01\x02\xe0\xf3\x18\x02\x12o\n\x06Issues\x12+.metalstack.admin.v2.IPServiceIssuesRequest\x1a,.metalstack.admin.v2.IPServiceIssuesResponse\"\n\xd2\xf3\x18\x02\x01\x02\xe0\xf3\x18\x02\x42\xcb\x01\n\x17\x63om.metalstack.admin.v2B\x07IpProtoP\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')
30
+
31
+ _globals = globals()
32
+ _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
33
+ _builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'metalstack.admin.v2.ip_pb2', _globals)
34
+ if not _descriptor._USE_C_DESCRIPTORS:
35
+ _globals['DESCRIPTOR']._loaded_options = None
36
+ _globals['DESCRIPTOR']._serialized_options = b'\n\027com.metalstack.admin.v2B\007IpProtoP\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'
37
+ _globals['_IPSERVICE'].methods_by_name['List']._loaded_options = None
38
+ _globals['_IPSERVICE'].methods_by_name['List']._serialized_options = b'\322\363\030\002\001\002\340\363\030\002'
39
+ _globals['_IPSERVICE'].methods_by_name['Issues']._loaded_options = None
40
+ _globals['_IPSERVICE'].methods_by_name['Issues']._serialized_options = b'\322\363\030\002\001\002\340\363\030\002'
41
+ _globals['_IPSERVICELISTREQUEST']._serialized_start=113
42
+ _globals['_IPSERVICELISTREQUEST']._serialized_end=185
43
+ _globals['_IPSERVICELISTRESPONSE']._serialized_start=187
44
+ _globals['_IPSERVICELISTRESPONSE']._serialized_end=251
45
+ _globals['_IPSERVICEISSUESREQUEST']._serialized_start=253
46
+ _globals['_IPSERVICEISSUESREQUEST']._serialized_end=277
47
+ _globals['_IPSERVICEISSUESRESPONSE']._serialized_start=279
48
+ _globals['_IPSERVICEISSUESRESPONSE']._serialized_end=358
49
+ _globals['_IPISSUE']._serialized_start=360
50
+ _globals['_IPISSUE']._serialized_end=442
51
+ _globals['_IPSERVICE']._serialized_start=445
52
+ _globals['_IPSERVICE']._serialized_end=676
53
+ # @@protoc_insertion_point(module_scope)
@@ -0,0 +1,39 @@
1
+ from metalstack.api.v2 import common_pb2 as _common_pb2
2
+ from metalstack.api.v2 import ip_pb2 as _ip_pb2
3
+ from google.protobuf.internal import containers as _containers
4
+ from google.protobuf import descriptor as _descriptor
5
+ from google.protobuf import message as _message
6
+ from collections.abc import Iterable as _Iterable, Mapping as _Mapping
7
+ from typing import ClassVar as _ClassVar, Optional as _Optional, Union as _Union
8
+
9
+ DESCRIPTOR: _descriptor.FileDescriptor
10
+
11
+ class IPServiceListRequest(_message.Message):
12
+ __slots__ = ("query",)
13
+ QUERY_FIELD_NUMBER: _ClassVar[int]
14
+ query: _ip_pb2.IPQuery
15
+ def __init__(self, query: _Optional[_Union[_ip_pb2.IPQuery, _Mapping]] = ...) -> None: ...
16
+
17
+ class IPServiceListResponse(_message.Message):
18
+ __slots__ = ("ips",)
19
+ IPS_FIELD_NUMBER: _ClassVar[int]
20
+ ips: _containers.RepeatedCompositeFieldContainer[_ip_pb2.IP]
21
+ def __init__(self, ips: _Optional[_Iterable[_Union[_ip_pb2.IP, _Mapping]]] = ...) -> None: ...
22
+
23
+ class IPServiceIssuesRequest(_message.Message):
24
+ __slots__ = ()
25
+ def __init__(self) -> None: ...
26
+
27
+ class IPServiceIssuesResponse(_message.Message):
28
+ __slots__ = ("issues",)
29
+ ISSUES_FIELD_NUMBER: _ClassVar[int]
30
+ issues: _containers.RepeatedCompositeFieldContainer[IPIssue]
31
+ def __init__(self, issues: _Optional[_Iterable[_Union[IPIssue, _Mapping]]] = ...) -> None: ...
32
+
33
+ class IPIssue(_message.Message):
34
+ __slots__ = ("description", "ip")
35
+ DESCRIPTION_FIELD_NUMBER: _ClassVar[int]
36
+ IP_FIELD_NUMBER: _ClassVar[int]
37
+ description: str
38
+ ip: _ip_pb2.IP
39
+ def __init__(self, description: _Optional[str] = ..., ip: _Optional[_Union[_ip_pb2.IP, _Mapping]] = ...) -> None: ...
@@ -0,0 +1,125 @@
1
+ # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT!
2
+ """Client and server classes corresponding to protobuf-defined services."""
3
+ import grpc
4
+
5
+ from metalstack.admin.v2 import ip_pb2 as metalstack_dot_admin_dot_v2_dot_ip__pb2
6
+
7
+
8
+ class IPServiceStub(object):
9
+ """IPService serves ip address related functions
10
+ """
11
+
12
+ def __init__(self, channel):
13
+ """Constructor.
14
+
15
+ Args:
16
+ channel: A grpc.Channel.
17
+ """
18
+ self.List = channel.unary_unary(
19
+ '/metalstack.admin.v2.IPService/List',
20
+ request_serializer=metalstack_dot_admin_dot_v2_dot_ip__pb2.IPServiceListRequest.SerializeToString,
21
+ response_deserializer=metalstack_dot_admin_dot_v2_dot_ip__pb2.IPServiceListResponse.FromString,
22
+ _registered_method=True)
23
+ self.Issues = channel.unary_unary(
24
+ '/metalstack.admin.v2.IPService/Issues',
25
+ request_serializer=metalstack_dot_admin_dot_v2_dot_ip__pb2.IPServiceIssuesRequest.SerializeToString,
26
+ response_deserializer=metalstack_dot_admin_dot_v2_dot_ip__pb2.IPServiceIssuesResponse.FromString,
27
+ _registered_method=True)
28
+
29
+
30
+ class IPServiceServicer(object):
31
+ """IPService serves ip address related functions
32
+ """
33
+
34
+ def List(self, request, context):
35
+ """List all ips
36
+ """
37
+ context.set_code(grpc.StatusCode.UNIMPLEMENTED)
38
+ context.set_details('Method not implemented!')
39
+ raise NotImplementedError('Method not implemented!')
40
+
41
+ def Issues(self, request, context):
42
+ """Show issues with ips
43
+ """
44
+ context.set_code(grpc.StatusCode.UNIMPLEMENTED)
45
+ context.set_details('Method not implemented!')
46
+ raise NotImplementedError('Method not implemented!')
47
+
48
+
49
+ def add_IPServiceServicer_to_server(servicer, server):
50
+ rpc_method_handlers = {
51
+ 'List': grpc.unary_unary_rpc_method_handler(
52
+ servicer.List,
53
+ request_deserializer=metalstack_dot_admin_dot_v2_dot_ip__pb2.IPServiceListRequest.FromString,
54
+ response_serializer=metalstack_dot_admin_dot_v2_dot_ip__pb2.IPServiceListResponse.SerializeToString,
55
+ ),
56
+ 'Issues': grpc.unary_unary_rpc_method_handler(
57
+ servicer.Issues,
58
+ request_deserializer=metalstack_dot_admin_dot_v2_dot_ip__pb2.IPServiceIssuesRequest.FromString,
59
+ response_serializer=metalstack_dot_admin_dot_v2_dot_ip__pb2.IPServiceIssuesResponse.SerializeToString,
60
+ ),
61
+ }
62
+ generic_handler = grpc.method_handlers_generic_handler(
63
+ 'metalstack.admin.v2.IPService', rpc_method_handlers)
64
+ server.add_generic_rpc_handlers((generic_handler,))
65
+ server.add_registered_method_handlers('metalstack.admin.v2.IPService', rpc_method_handlers)
66
+
67
+
68
+ # This class is part of an EXPERIMENTAL API.
69
+ class IPService(object):
70
+ """IPService serves ip address related functions
71
+ """
72
+
73
+ @staticmethod
74
+ def List(request,
75
+ target,
76
+ options=(),
77
+ channel_credentials=None,
78
+ call_credentials=None,
79
+ insecure=False,
80
+ compression=None,
81
+ wait_for_ready=None,
82
+ timeout=None,
83
+ metadata=None):
84
+ return grpc.experimental.unary_unary(
85
+ request,
86
+ target,
87
+ '/metalstack.admin.v2.IPService/List',
88
+ metalstack_dot_admin_dot_v2_dot_ip__pb2.IPServiceListRequest.SerializeToString,
89
+ metalstack_dot_admin_dot_v2_dot_ip__pb2.IPServiceListResponse.FromString,
90
+ options,
91
+ channel_credentials,
92
+ insecure,
93
+ call_credentials,
94
+ compression,
95
+ wait_for_ready,
96
+ timeout,
97
+ metadata,
98
+ _registered_method=True)
99
+
100
+ @staticmethod
101
+ def Issues(request,
102
+ target,
103
+ options=(),
104
+ channel_credentials=None,
105
+ call_credentials=None,
106
+ insecure=False,
107
+ compression=None,
108
+ wait_for_ready=None,
109
+ timeout=None,
110
+ metadata=None):
111
+ return grpc.experimental.unary_unary(
112
+ request,
113
+ target,
114
+ '/metalstack.admin.v2.IPService/Issues',
115
+ metalstack_dot_admin_dot_v2_dot_ip__pb2.IPServiceIssuesRequest.SerializeToString,
116
+ metalstack_dot_admin_dot_v2_dot_ip__pb2.IPServiceIssuesResponse.FromString,
117
+ options,
118
+ channel_credentials,
119
+ insecure,
120
+ call_credentials,
121
+ compression,
122
+ wait_for_ready,
123
+ timeout,
124
+ metadata,
125
+ _registered_method=True)