metal-stack-api 0.0.7__py3-none-any.whl → 0.0.9__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.
- {metal_stack_api-0.0.7.dist-info → metal_stack_api-0.0.9.dist-info}/METADATA +1 -1
- {metal_stack_api-0.0.7.dist-info → metal_stack_api-0.0.9.dist-info}/RECORD +16 -5
- metalstack/api/v2/machine_connecpy.py +326 -0
- metalstack/api/v2/machine_pb2.py +377 -0
- metalstack/api/v2/machine_pb2.pyi +556 -0
- metalstack/api/v2/machine_pb2_grpc.py +257 -0
- metalstack/api/v2/switch_pb2.py +124 -0
- metalstack/api/v2/switch_pb2.pyi +133 -0
- metalstack/api/v2/switch_pb2_grpc.py +4 -0
- metalstack/client/client.py +8 -0
- metalstack/infra/v2/switch_connecpy.py +102 -0
- metalstack/infra/v2/switch_pb2.py +45 -0
- metalstack/infra/v2/switch_pb2.pyi +20 -0
- metalstack/infra/v2/switch_pb2_grpc.py +81 -0
- {metal_stack_api-0.0.7.dist-info → metal_stack_api-0.0.9.dist-info}/WHEEL +0 -0
- {metal_stack_api-0.0.7.dist-info → metal_stack_api-0.0.9.dist-info}/top_level.txt +0 -0
|
@@ -59,6 +59,10 @@ metalstack/api/v2/ip_connecpy.py,sha256=zXoiCxTvhKJJElpxGy-NmrsgiTkLQRo2ISE50cFd
|
|
|
59
59
|
metalstack/api/v2/ip_pb2.py,sha256=h_WKI0IBDPTUilt8TqHyt8eMC8ezu2AlR7DpMN9tohU,18439
|
|
60
60
|
metalstack/api/v2/ip_pb2.pyi,sha256=oDm0tyazXPRKe1sv3_-k9Y4kFWFZ0d9cWvRMPVunf-4,7443
|
|
61
61
|
metalstack/api/v2/ip_pb2_grpc.py,sha256=CNa4XCydddgstEOT3IKiD-mHiozDvzX6Rsb0QN0NVss,10079
|
|
62
|
+
metalstack/api/v2/machine_connecpy.py,sha256=lauD9TuSWmdhz_JFJDvvach6JdK0ANvOVEXZ556q6CY,15939
|
|
63
|
+
metalstack/api/v2/machine_pb2.py,sha256=XI2w2tSJ3J1j21OgP5ZDBUfhQfvwDu4XjbpmqSV8JNo,54039
|
|
64
|
+
metalstack/api/v2/machine_pb2.pyi,sha256=3P-v-qHVLo4ZJ286KGkrJWRPCTy2Ppe4qLMw08CAJrM,29363
|
|
65
|
+
metalstack/api/v2/machine_pb2_grpc.py,sha256=U3QkK4Dobjhto1Lutf1qHd2rDfSH47d2GI15o23girM,10499
|
|
62
66
|
metalstack/api/v2/method_connecpy.py,sha256=_I1bQnyANgDg8-5YR-afe9Q-Mif6-8QAjZPvkd065F0,7387
|
|
63
67
|
metalstack/api/v2/method_pb2.py,sha256=xljqd4ehZ_uj_V1ei2VdL4hBf5AdEISkjuyl9O6eGLI,5533
|
|
64
68
|
metalstack/api/v2/method_pb2.pyi,sha256=pkz8SXparLISMtzfQi_p3by07c_pD7ZGqzWEayQ-yRQ,2630
|
|
@@ -79,6 +83,9 @@ metalstack/api/v2/size_connecpy.py,sha256=knKakjI3qD7Pt1thyejU0oGjm3QNRk9ar4y0ED
|
|
|
79
83
|
metalstack/api/v2/size_pb2.py,sha256=O6V47lK-15aPn6IyPhFng-eK8sLn1tia5Okzm6Zmg8E,8370
|
|
80
84
|
metalstack/api/v2/size_pb2.pyi,sha256=ZKSf60gss4MO9ad8bFkt7ECe0HOA2mA791MIt8H_OtU,3825
|
|
81
85
|
metalstack/api/v2/size_pb2_grpc.py,sha256=JFk6O7tPDV79gqWYx5EL9PypOLUXdDJXrG1MOf4V5As,4683
|
|
86
|
+
metalstack/api/v2/switch_pb2.py,sha256=X1ghJAAiZjvh9lhE7L-fq3pB28PTxNOIljkAqks9CXY,13903
|
|
87
|
+
metalstack/api/v2/switch_pb2.pyi,sha256=RQmPQaHOHKUUUS2GqZC4MoBRv8cr45Msu7FuhnQWgMw,6549
|
|
88
|
+
metalstack/api/v2/switch_pb2_grpc.py,sha256=1oboBPFxaTEXt9Aw7EAj8gXHDCNMhZD2VXqocC9l_gk,159
|
|
82
89
|
metalstack/api/v2/tenant_connecpy.py,sha256=h3SRO8qxzYHfDhLJp87RXq0kmSYMjyePYIdC9ZviKQA,36977
|
|
83
90
|
metalstack/api/v2/tenant_pb2.py,sha256=aD8oD-ZCVPWAOwxHaYuPcZZl56ErLSvZvMlbBLI6wTE,17665
|
|
84
91
|
metalstack/api/v2/tenant_pb2.pyi,sha256=fopXmxKCtaDU9aGdM4Ams8wgx63B1DXcE683P3TJNY0,10275
|
|
@@ -96,14 +103,18 @@ metalstack/api/v2/version_pb2.py,sha256=oy4hAYI8KWYbNgr0AVvfKyrG7W9QlhcPC9j4eHej
|
|
|
96
103
|
metalstack/api/v2/version_pb2.pyi,sha256=JfQ_tYwDG6P9aH7y7-iEHmtuWsLKsrpLKAVJIzHehRM,1172
|
|
97
104
|
metalstack/api/v2/version_pb2_grpc.py,sha256=JIdrRIyNyWnQiw7CgCDkpZQv1eSQdGI6ocZOHixY4ao,2947
|
|
98
105
|
metalstack/client/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
99
|
-
metalstack/client/client.py,sha256=
|
|
106
|
+
metalstack/client/client.py,sha256=LOsqH2iT8WFgwiYmKkE32jScRrMvJSEcgQ2Kk7H9-ZA,5852
|
|
100
107
|
metalstack/infra/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
101
108
|
metalstack/infra/v2/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
102
109
|
metalstack/infra/v2/bmc_connecpy.py,sha256=bSuJccboyftuFFZ63X1eMTv6Xngp9J5gGgPtKzE3OZk,4197
|
|
103
110
|
metalstack/infra/v2/bmc_pb2.py,sha256=maCH4C5cyDGHFt4SJg2ZBk9NeVf5eTGyAZkqx-LlQJM,2701
|
|
104
111
|
metalstack/infra/v2/bmc_pb2.pyi,sha256=e4FGBnDQhg6K_zlhoC170lw-0OSlSdHK3So6r3Reh1E,444
|
|
105
112
|
metalstack/infra/v2/bmc_pb2_grpc.py,sha256=3rDzkvuVS2cltmzRAvTo9f0vyR0ajgInCYixOmH5_7o,2927
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
113
|
+
metalstack/infra/v2/switch_connecpy.py,sha256=dhRy8soyRRsqVlCfzt2lvy80hJGlAY1aFcp9_z8flDU,4392
|
|
114
|
+
metalstack/infra/v2/switch_pb2.py,sha256=8DZpWBwmFPb6TUWkd4vG_JLtbFnsmaEJjhiKM7GrOaA,3068
|
|
115
|
+
metalstack/infra/v2/switch_pb2.pyi,sha256=keDojB2U7IW7kDoEj12ckSrGK3kR8PZhRpepN7HwuB4,890
|
|
116
|
+
metalstack/infra/v2/switch_pb2_grpc.py,sha256=Upgjj1YATjaac6vTK8eAeFH7apuSJTiFPB-4BXxj6rc,3010
|
|
117
|
+
metal_stack_api-0.0.9.dist-info/METADATA,sha256=cM3MJ65Do4pZqs4JpCxLvrIJxmvCYQ0OtEupviw_IAk,831
|
|
118
|
+
metal_stack_api-0.0.9.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
119
|
+
metal_stack_api-0.0.9.dist-info/top_level.txt,sha256=EVrYyUiIjmWi5LomfJxKYph7kX6cNdnKbpVLXUKG3M0,15
|
|
120
|
+
metal_stack_api-0.0.9.dist-info/RECORD,,
|
|
@@ -0,0 +1,326 @@
|
|
|
1
|
+
# -*- coding: utf-8 -*-
|
|
2
|
+
# Generated by https://github.com/i2y/connecpy/protoc-gen-connecpy. DO NOT EDIT!
|
|
3
|
+
# source: metalstack/api/v2/machine.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.api.v2.machine_pb2 as metalstack_dot_api_dot_v2_dot_machine__pb2
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
class MachineService(Protocol):
|
|
18
|
+
async def Get(self, req: metalstack_dot_api_dot_v2_dot_machine__pb2.MachineServiceGetRequest, ctx: ServiceContext) -> metalstack_dot_api_dot_v2_dot_machine__pb2.MachineServiceGetResponse: ...
|
|
19
|
+
async def Create(self, req: metalstack_dot_api_dot_v2_dot_machine__pb2.MachineServiceCreateRequest, ctx: ServiceContext) -> metalstack_dot_api_dot_v2_dot_machine__pb2.MachineServiceCreateResponse: ...
|
|
20
|
+
async def Update(self, req: metalstack_dot_api_dot_v2_dot_machine__pb2.MachineServiceUpdateRequest, ctx: ServiceContext) -> metalstack_dot_api_dot_v2_dot_machine__pb2.MachineServiceUpdateResponse: ...
|
|
21
|
+
async def List(self, req: metalstack_dot_api_dot_v2_dot_machine__pb2.MachineServiceListRequest, ctx: ServiceContext) -> metalstack_dot_api_dot_v2_dot_machine__pb2.MachineServiceListResponse: ...
|
|
22
|
+
async def Delete(self, req: metalstack_dot_api_dot_v2_dot_machine__pb2.MachineServiceDeleteRequest, ctx: ServiceContext) -> metalstack_dot_api_dot_v2_dot_machine__pb2.MachineServiceDeleteResponse: ...
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
class MachineServiceServer(ConnecpyServer):
|
|
26
|
+
def __init__(self, *, service: MachineService, server_path_prefix=""):
|
|
27
|
+
super().__init__()
|
|
28
|
+
self._prefix = f"{server_path_prefix}/metalstack.api.v2.MachineService"
|
|
29
|
+
self._endpoints = {
|
|
30
|
+
"Get": Endpoint[metalstack_dot_api_dot_v2_dot_machine__pb2.MachineServiceGetRequest, metalstack_dot_api_dot_v2_dot_machine__pb2.MachineServiceGetResponse](
|
|
31
|
+
service_name="MachineService",
|
|
32
|
+
name="Get",
|
|
33
|
+
function=getattr(service, "Get"),
|
|
34
|
+
input=metalstack_dot_api_dot_v2_dot_machine__pb2.MachineServiceGetRequest,
|
|
35
|
+
output=metalstack_dot_api_dot_v2_dot_machine__pb2.MachineServiceGetResponse,
|
|
36
|
+
allowed_methods=("POST",),
|
|
37
|
+
),
|
|
38
|
+
"Create": Endpoint[metalstack_dot_api_dot_v2_dot_machine__pb2.MachineServiceCreateRequest, metalstack_dot_api_dot_v2_dot_machine__pb2.MachineServiceCreateResponse](
|
|
39
|
+
service_name="MachineService",
|
|
40
|
+
name="Create",
|
|
41
|
+
function=getattr(service, "Create"),
|
|
42
|
+
input=metalstack_dot_api_dot_v2_dot_machine__pb2.MachineServiceCreateRequest,
|
|
43
|
+
output=metalstack_dot_api_dot_v2_dot_machine__pb2.MachineServiceCreateResponse,
|
|
44
|
+
allowed_methods=("POST",),
|
|
45
|
+
),
|
|
46
|
+
"Update": Endpoint[metalstack_dot_api_dot_v2_dot_machine__pb2.MachineServiceUpdateRequest, metalstack_dot_api_dot_v2_dot_machine__pb2.MachineServiceUpdateResponse](
|
|
47
|
+
service_name="MachineService",
|
|
48
|
+
name="Update",
|
|
49
|
+
function=getattr(service, "Update"),
|
|
50
|
+
input=metalstack_dot_api_dot_v2_dot_machine__pb2.MachineServiceUpdateRequest,
|
|
51
|
+
output=metalstack_dot_api_dot_v2_dot_machine__pb2.MachineServiceUpdateResponse,
|
|
52
|
+
allowed_methods=("POST",),
|
|
53
|
+
),
|
|
54
|
+
"List": Endpoint[metalstack_dot_api_dot_v2_dot_machine__pb2.MachineServiceListRequest, metalstack_dot_api_dot_v2_dot_machine__pb2.MachineServiceListResponse](
|
|
55
|
+
service_name="MachineService",
|
|
56
|
+
name="List",
|
|
57
|
+
function=getattr(service, "List"),
|
|
58
|
+
input=metalstack_dot_api_dot_v2_dot_machine__pb2.MachineServiceListRequest,
|
|
59
|
+
output=metalstack_dot_api_dot_v2_dot_machine__pb2.MachineServiceListResponse,
|
|
60
|
+
allowed_methods=("POST",),
|
|
61
|
+
),
|
|
62
|
+
"Delete": Endpoint[metalstack_dot_api_dot_v2_dot_machine__pb2.MachineServiceDeleteRequest, metalstack_dot_api_dot_v2_dot_machine__pb2.MachineServiceDeleteResponse](
|
|
63
|
+
service_name="MachineService",
|
|
64
|
+
name="Delete",
|
|
65
|
+
function=getattr(service, "Delete"),
|
|
66
|
+
input=metalstack_dot_api_dot_v2_dot_machine__pb2.MachineServiceDeleteRequest,
|
|
67
|
+
output=metalstack_dot_api_dot_v2_dot_machine__pb2.MachineServiceDeleteResponse,
|
|
68
|
+
allowed_methods=("POST",),
|
|
69
|
+
),
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
def serviceName(self):
|
|
73
|
+
return "metalstack.api.v2.MachineService"
|
|
74
|
+
|
|
75
|
+
|
|
76
|
+
class MachineServiceSync(Protocol):
|
|
77
|
+
def Get(self, req: metalstack_dot_api_dot_v2_dot_machine__pb2.MachineServiceGetRequest, ctx: ServiceContext) -> metalstack_dot_api_dot_v2_dot_machine__pb2.MachineServiceGetResponse: ...
|
|
78
|
+
def Create(self, req: metalstack_dot_api_dot_v2_dot_machine__pb2.MachineServiceCreateRequest, ctx: ServiceContext) -> metalstack_dot_api_dot_v2_dot_machine__pb2.MachineServiceCreateResponse: ...
|
|
79
|
+
def Update(self, req: metalstack_dot_api_dot_v2_dot_machine__pb2.MachineServiceUpdateRequest, ctx: ServiceContext) -> metalstack_dot_api_dot_v2_dot_machine__pb2.MachineServiceUpdateResponse: ...
|
|
80
|
+
def List(self, req: metalstack_dot_api_dot_v2_dot_machine__pb2.MachineServiceListRequest, ctx: ServiceContext) -> metalstack_dot_api_dot_v2_dot_machine__pb2.MachineServiceListResponse: ...
|
|
81
|
+
def Delete(self, req: metalstack_dot_api_dot_v2_dot_machine__pb2.MachineServiceDeleteRequest, ctx: ServiceContext) -> metalstack_dot_api_dot_v2_dot_machine__pb2.MachineServiceDeleteResponse: ...
|
|
82
|
+
|
|
83
|
+
|
|
84
|
+
class MachineServiceServerSync(ConnecpyServer):
|
|
85
|
+
def __init__(self, *, service: MachineServiceSync, server_path_prefix=""):
|
|
86
|
+
super().__init__()
|
|
87
|
+
self._prefix = f"{server_path_prefix}/metalstack.api.v2.MachineService"
|
|
88
|
+
self._endpoints = {
|
|
89
|
+
"Get": Endpoint[metalstack_dot_api_dot_v2_dot_machine__pb2.MachineServiceGetRequest, metalstack_dot_api_dot_v2_dot_machine__pb2.MachineServiceGetResponse](
|
|
90
|
+
service_name="MachineService",
|
|
91
|
+
name="Get",
|
|
92
|
+
function=getattr(service, "Get"),
|
|
93
|
+
input=metalstack_dot_api_dot_v2_dot_machine__pb2.MachineServiceGetRequest,
|
|
94
|
+
output=metalstack_dot_api_dot_v2_dot_machine__pb2.MachineServiceGetResponse,
|
|
95
|
+
allowed_methods=("POST",),
|
|
96
|
+
),
|
|
97
|
+
"Create": Endpoint[metalstack_dot_api_dot_v2_dot_machine__pb2.MachineServiceCreateRequest, metalstack_dot_api_dot_v2_dot_machine__pb2.MachineServiceCreateResponse](
|
|
98
|
+
service_name="MachineService",
|
|
99
|
+
name="Create",
|
|
100
|
+
function=getattr(service, "Create"),
|
|
101
|
+
input=metalstack_dot_api_dot_v2_dot_machine__pb2.MachineServiceCreateRequest,
|
|
102
|
+
output=metalstack_dot_api_dot_v2_dot_machine__pb2.MachineServiceCreateResponse,
|
|
103
|
+
allowed_methods=("POST",),
|
|
104
|
+
),
|
|
105
|
+
"Update": Endpoint[metalstack_dot_api_dot_v2_dot_machine__pb2.MachineServiceUpdateRequest, metalstack_dot_api_dot_v2_dot_machine__pb2.MachineServiceUpdateResponse](
|
|
106
|
+
service_name="MachineService",
|
|
107
|
+
name="Update",
|
|
108
|
+
function=getattr(service, "Update"),
|
|
109
|
+
input=metalstack_dot_api_dot_v2_dot_machine__pb2.MachineServiceUpdateRequest,
|
|
110
|
+
output=metalstack_dot_api_dot_v2_dot_machine__pb2.MachineServiceUpdateResponse,
|
|
111
|
+
allowed_methods=("POST",),
|
|
112
|
+
),
|
|
113
|
+
"List": Endpoint[metalstack_dot_api_dot_v2_dot_machine__pb2.MachineServiceListRequest, metalstack_dot_api_dot_v2_dot_machine__pb2.MachineServiceListResponse](
|
|
114
|
+
service_name="MachineService",
|
|
115
|
+
name="List",
|
|
116
|
+
function=getattr(service, "List"),
|
|
117
|
+
input=metalstack_dot_api_dot_v2_dot_machine__pb2.MachineServiceListRequest,
|
|
118
|
+
output=metalstack_dot_api_dot_v2_dot_machine__pb2.MachineServiceListResponse,
|
|
119
|
+
allowed_methods=("POST",),
|
|
120
|
+
),
|
|
121
|
+
"Delete": Endpoint[metalstack_dot_api_dot_v2_dot_machine__pb2.MachineServiceDeleteRequest, metalstack_dot_api_dot_v2_dot_machine__pb2.MachineServiceDeleteResponse](
|
|
122
|
+
service_name="MachineService",
|
|
123
|
+
name="Delete",
|
|
124
|
+
function=getattr(service, "Delete"),
|
|
125
|
+
input=metalstack_dot_api_dot_v2_dot_machine__pb2.MachineServiceDeleteRequest,
|
|
126
|
+
output=metalstack_dot_api_dot_v2_dot_machine__pb2.MachineServiceDeleteResponse,
|
|
127
|
+
allowed_methods=("POST",),
|
|
128
|
+
),
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
def serviceName(self):
|
|
132
|
+
return "metalstack.api.v2.MachineService"
|
|
133
|
+
|
|
134
|
+
|
|
135
|
+
class MachineServiceClient(ConnecpyClient):
|
|
136
|
+
def Get(
|
|
137
|
+
self,
|
|
138
|
+
request: metalstack_dot_api_dot_v2_dot_machine__pb2.MachineServiceGetRequest,
|
|
139
|
+
*,
|
|
140
|
+
ctx: Optional[ClientContext] = None,
|
|
141
|
+
server_path_prefix: str = "",
|
|
142
|
+
**kwargs,
|
|
143
|
+
) -> metalstack_dot_api_dot_v2_dot_machine__pb2.MachineServiceGetResponse:
|
|
144
|
+
method = "POST"
|
|
145
|
+
return self._make_request(
|
|
146
|
+
url=f"{server_path_prefix}/metalstack.api.v2.MachineService/Get",
|
|
147
|
+
ctx=ctx,
|
|
148
|
+
request=request,
|
|
149
|
+
response_class=metalstack_dot_api_dot_v2_dot_machine__pb2.MachineServiceGetResponse,
|
|
150
|
+
method=method,
|
|
151
|
+
**kwargs,
|
|
152
|
+
)
|
|
153
|
+
|
|
154
|
+
def Create(
|
|
155
|
+
self,
|
|
156
|
+
request: metalstack_dot_api_dot_v2_dot_machine__pb2.MachineServiceCreateRequest,
|
|
157
|
+
*,
|
|
158
|
+
ctx: Optional[ClientContext] = None,
|
|
159
|
+
server_path_prefix: str = "",
|
|
160
|
+
**kwargs,
|
|
161
|
+
) -> metalstack_dot_api_dot_v2_dot_machine__pb2.MachineServiceCreateResponse:
|
|
162
|
+
method = "POST"
|
|
163
|
+
return self._make_request(
|
|
164
|
+
url=f"{server_path_prefix}/metalstack.api.v2.MachineService/Create",
|
|
165
|
+
ctx=ctx,
|
|
166
|
+
request=request,
|
|
167
|
+
response_class=metalstack_dot_api_dot_v2_dot_machine__pb2.MachineServiceCreateResponse,
|
|
168
|
+
method=method,
|
|
169
|
+
**kwargs,
|
|
170
|
+
)
|
|
171
|
+
|
|
172
|
+
def Update(
|
|
173
|
+
self,
|
|
174
|
+
request: metalstack_dot_api_dot_v2_dot_machine__pb2.MachineServiceUpdateRequest,
|
|
175
|
+
*,
|
|
176
|
+
ctx: Optional[ClientContext] = None,
|
|
177
|
+
server_path_prefix: str = "",
|
|
178
|
+
**kwargs,
|
|
179
|
+
) -> metalstack_dot_api_dot_v2_dot_machine__pb2.MachineServiceUpdateResponse:
|
|
180
|
+
method = "POST"
|
|
181
|
+
return self._make_request(
|
|
182
|
+
url=f"{server_path_prefix}/metalstack.api.v2.MachineService/Update",
|
|
183
|
+
ctx=ctx,
|
|
184
|
+
request=request,
|
|
185
|
+
response_class=metalstack_dot_api_dot_v2_dot_machine__pb2.MachineServiceUpdateResponse,
|
|
186
|
+
method=method,
|
|
187
|
+
**kwargs,
|
|
188
|
+
)
|
|
189
|
+
|
|
190
|
+
def List(
|
|
191
|
+
self,
|
|
192
|
+
request: metalstack_dot_api_dot_v2_dot_machine__pb2.MachineServiceListRequest,
|
|
193
|
+
*,
|
|
194
|
+
ctx: Optional[ClientContext] = None,
|
|
195
|
+
server_path_prefix: str = "",
|
|
196
|
+
**kwargs,
|
|
197
|
+
) -> metalstack_dot_api_dot_v2_dot_machine__pb2.MachineServiceListResponse:
|
|
198
|
+
method = "POST"
|
|
199
|
+
return self._make_request(
|
|
200
|
+
url=f"{server_path_prefix}/metalstack.api.v2.MachineService/List",
|
|
201
|
+
ctx=ctx,
|
|
202
|
+
request=request,
|
|
203
|
+
response_class=metalstack_dot_api_dot_v2_dot_machine__pb2.MachineServiceListResponse,
|
|
204
|
+
method=method,
|
|
205
|
+
**kwargs,
|
|
206
|
+
)
|
|
207
|
+
|
|
208
|
+
def Delete(
|
|
209
|
+
self,
|
|
210
|
+
request: metalstack_dot_api_dot_v2_dot_machine__pb2.MachineServiceDeleteRequest,
|
|
211
|
+
*,
|
|
212
|
+
ctx: Optional[ClientContext] = None,
|
|
213
|
+
server_path_prefix: str = "",
|
|
214
|
+
**kwargs,
|
|
215
|
+
) -> metalstack_dot_api_dot_v2_dot_machine__pb2.MachineServiceDeleteResponse:
|
|
216
|
+
method = "POST"
|
|
217
|
+
return self._make_request(
|
|
218
|
+
url=f"{server_path_prefix}/metalstack.api.v2.MachineService/Delete",
|
|
219
|
+
ctx=ctx,
|
|
220
|
+
request=request,
|
|
221
|
+
response_class=metalstack_dot_api_dot_v2_dot_machine__pb2.MachineServiceDeleteResponse,
|
|
222
|
+
method=method,
|
|
223
|
+
**kwargs,
|
|
224
|
+
)
|
|
225
|
+
|
|
226
|
+
|
|
227
|
+
class AsyncMachineServiceClient(AsyncConnecpyClient):
|
|
228
|
+
async def Get(
|
|
229
|
+
self,
|
|
230
|
+
request: metalstack_dot_api_dot_v2_dot_machine__pb2.MachineServiceGetRequest,
|
|
231
|
+
*,
|
|
232
|
+
ctx: Optional[ClientContext] = None,
|
|
233
|
+
server_path_prefix: str = "",
|
|
234
|
+
session: Union[httpx.AsyncClient, None] = None,
|
|
235
|
+
**kwargs,
|
|
236
|
+
) -> metalstack_dot_api_dot_v2_dot_machine__pb2.MachineServiceGetResponse:
|
|
237
|
+
method = "POST"
|
|
238
|
+
return await self._make_request(
|
|
239
|
+
url=f"{server_path_prefix}/metalstack.api.v2.MachineService/Get",
|
|
240
|
+
ctx=ctx,
|
|
241
|
+
request=request,
|
|
242
|
+
response_class=metalstack_dot_api_dot_v2_dot_machine__pb2.MachineServiceGetResponse,
|
|
243
|
+
method=method,
|
|
244
|
+
session=session,
|
|
245
|
+
**kwargs,
|
|
246
|
+
)
|
|
247
|
+
|
|
248
|
+
async def Create(
|
|
249
|
+
self,
|
|
250
|
+
request: metalstack_dot_api_dot_v2_dot_machine__pb2.MachineServiceCreateRequest,
|
|
251
|
+
*,
|
|
252
|
+
ctx: Optional[ClientContext] = None,
|
|
253
|
+
server_path_prefix: str = "",
|
|
254
|
+
session: Union[httpx.AsyncClient, None] = None,
|
|
255
|
+
**kwargs,
|
|
256
|
+
) -> metalstack_dot_api_dot_v2_dot_machine__pb2.MachineServiceCreateResponse:
|
|
257
|
+
method = "POST"
|
|
258
|
+
return await self._make_request(
|
|
259
|
+
url=f"{server_path_prefix}/metalstack.api.v2.MachineService/Create",
|
|
260
|
+
ctx=ctx,
|
|
261
|
+
request=request,
|
|
262
|
+
response_class=metalstack_dot_api_dot_v2_dot_machine__pb2.MachineServiceCreateResponse,
|
|
263
|
+
method=method,
|
|
264
|
+
session=session,
|
|
265
|
+
**kwargs,
|
|
266
|
+
)
|
|
267
|
+
|
|
268
|
+
async def Update(
|
|
269
|
+
self,
|
|
270
|
+
request: metalstack_dot_api_dot_v2_dot_machine__pb2.MachineServiceUpdateRequest,
|
|
271
|
+
*,
|
|
272
|
+
ctx: Optional[ClientContext] = None,
|
|
273
|
+
server_path_prefix: str = "",
|
|
274
|
+
session: Union[httpx.AsyncClient, None] = None,
|
|
275
|
+
**kwargs,
|
|
276
|
+
) -> metalstack_dot_api_dot_v2_dot_machine__pb2.MachineServiceUpdateResponse:
|
|
277
|
+
method = "POST"
|
|
278
|
+
return await self._make_request(
|
|
279
|
+
url=f"{server_path_prefix}/metalstack.api.v2.MachineService/Update",
|
|
280
|
+
ctx=ctx,
|
|
281
|
+
request=request,
|
|
282
|
+
response_class=metalstack_dot_api_dot_v2_dot_machine__pb2.MachineServiceUpdateResponse,
|
|
283
|
+
method=method,
|
|
284
|
+
session=session,
|
|
285
|
+
**kwargs,
|
|
286
|
+
)
|
|
287
|
+
|
|
288
|
+
async def List(
|
|
289
|
+
self,
|
|
290
|
+
request: metalstack_dot_api_dot_v2_dot_machine__pb2.MachineServiceListRequest,
|
|
291
|
+
*,
|
|
292
|
+
ctx: Optional[ClientContext] = None,
|
|
293
|
+
server_path_prefix: str = "",
|
|
294
|
+
session: Union[httpx.AsyncClient, None] = None,
|
|
295
|
+
**kwargs,
|
|
296
|
+
) -> metalstack_dot_api_dot_v2_dot_machine__pb2.MachineServiceListResponse:
|
|
297
|
+
method = "POST"
|
|
298
|
+
return await self._make_request(
|
|
299
|
+
url=f"{server_path_prefix}/metalstack.api.v2.MachineService/List",
|
|
300
|
+
ctx=ctx,
|
|
301
|
+
request=request,
|
|
302
|
+
response_class=metalstack_dot_api_dot_v2_dot_machine__pb2.MachineServiceListResponse,
|
|
303
|
+
method=method,
|
|
304
|
+
session=session,
|
|
305
|
+
**kwargs,
|
|
306
|
+
)
|
|
307
|
+
|
|
308
|
+
async def Delete(
|
|
309
|
+
self,
|
|
310
|
+
request: metalstack_dot_api_dot_v2_dot_machine__pb2.MachineServiceDeleteRequest,
|
|
311
|
+
*,
|
|
312
|
+
ctx: Optional[ClientContext] = None,
|
|
313
|
+
server_path_prefix: str = "",
|
|
314
|
+
session: Union[httpx.AsyncClient, None] = None,
|
|
315
|
+
**kwargs,
|
|
316
|
+
) -> metalstack_dot_api_dot_v2_dot_machine__pb2.MachineServiceDeleteResponse:
|
|
317
|
+
method = "POST"
|
|
318
|
+
return await self._make_request(
|
|
319
|
+
url=f"{server_path_prefix}/metalstack.api.v2.MachineService/Delete",
|
|
320
|
+
ctx=ctx,
|
|
321
|
+
request=request,
|
|
322
|
+
response_class=metalstack_dot_api_dot_v2_dot_machine__pb2.MachineServiceDeleteResponse,
|
|
323
|
+
method=method,
|
|
324
|
+
session=session,
|
|
325
|
+
**kwargs,
|
|
326
|
+
)
|