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.
- buf/__init__.py +0 -0
- buf/validate/__init__.py +0 -0
- buf/validate/validate_pb2.py +450 -0
- buf/validate/validate_pb2.pyi +631 -0
- buf/validate/validate_pb2_grpc.py +4 -0
- metal_stack_api-0.0.3.dist-info/METADATA +26 -0
- metal_stack_api-0.0.3.dist-info/RECORD +107 -0
- metal_stack_api-0.0.3.dist-info/WHEEL +5 -0
- metal_stack_api-0.0.3.dist-info/top_level.txt +2 -0
- metalstack/__init__.py +0 -0
- metalstack/admin/__init__.py +0 -0
- metalstack/admin/v2/__init__.py +0 -0
- metalstack/admin/v2/filesystem_connecpy.py +214 -0
- metalstack/admin/v2/filesystem_pb2.py +60 -0
- metalstack/admin/v2/filesystem_pb2.pyi +45 -0
- metalstack/admin/v2/filesystem_pb2_grpc.py +169 -0
- metalstack/admin/v2/image_connecpy.py +270 -0
- metalstack/admin/v2/image_pb2.py +66 -0
- metalstack/admin/v2/image_pb2.pyi +58 -0
- metalstack/admin/v2/image_pb2_grpc.py +213 -0
- metalstack/admin/v2/ip_connecpy.py +158 -0
- metalstack/admin/v2/ip_pb2.py +53 -0
- metalstack/admin/v2/ip_pb2.pyi +39 -0
- metalstack/admin/v2/ip_pb2_grpc.py +125 -0
- metalstack/admin/v2/network_connecpy.py +326 -0
- metalstack/admin/v2/network_pb2.py +104 -0
- metalstack/admin/v2/network_pb2.pyi +122 -0
- metalstack/admin/v2/network_pb2_grpc.py +257 -0
- metalstack/admin/v2/partition_connecpy.py +270 -0
- metalstack/admin/v2/partition_pb2.py +72 -0
- metalstack/admin/v2/partition_pb2.pyi +90 -0
- metalstack/admin/v2/partition_pb2_grpc.py +213 -0
- metalstack/admin/v2/size_connecpy.py +214 -0
- metalstack/admin/v2/size_pb2.py +66 -0
- metalstack/admin/v2/size_pb2.pyi +54 -0
- metalstack/admin/v2/size_pb2_grpc.py +169 -0
- metalstack/admin/v2/tenant_connecpy.py +158 -0
- metalstack/admin/v2/tenant_pb2.py +58 -0
- metalstack/admin/v2/tenant_pb2.pyi +50 -0
- metalstack/admin/v2/tenant_pb2_grpc.py +125 -0
- metalstack/admin/v2/token_connecpy.py +158 -0
- metalstack/admin/v2/token_pb2.py +56 -0
- metalstack/admin/v2/token_pb2.pyi +34 -0
- metalstack/admin/v2/token_pb2_grpc.py +125 -0
- metalstack/api/__init__.py +0 -0
- metalstack/api/v2/__init__.py +0 -0
- metalstack/api/v2/common_pb2.py +66 -0
- metalstack/api/v2/common_pb2.pyi +128 -0
- metalstack/api/v2/common_pb2_grpc.py +4 -0
- metalstack/api/v2/filesystem_connecpy.py +270 -0
- metalstack/api/v2/filesystem_pb2.py +167 -0
- metalstack/api/v2/filesystem_pb2.pyi +229 -0
- metalstack/api/v2/filesystem_pb2_grpc.py +213 -0
- metalstack/api/v2/health_connecpy.py +102 -0
- metalstack/api/v2/health_pb2.py +70 -0
- metalstack/api/v2/health_pb2.pyi +80 -0
- metalstack/api/v2/health_pb2_grpc.py +81 -0
- metalstack/api/v2/image_connecpy.py +214 -0
- metalstack/api/v2/image_pb2.py +106 -0
- metalstack/api/v2/image_pb2.pyi +115 -0
- metalstack/api/v2/image_pb2_grpc.py +169 -0
- metalstack/api/v2/ip_connecpy.py +326 -0
- metalstack/api/v2/ip_pb2.py +159 -0
- metalstack/api/v2/ip_pb2.pyi +170 -0
- metalstack/api/v2/ip_pb2_grpc.py +257 -0
- metalstack/api/v2/methods_connecpy.py +158 -0
- metalstack/api/v2/methods_pb2.py +62 -0
- metalstack/api/v2/methods_pb2.pyi +50 -0
- metalstack/api/v2/methods_pb2_grpc.py +128 -0
- metalstack/api/v2/network_connecpy.py +382 -0
- metalstack/api/v2/network_pb2.py +191 -0
- metalstack/api/v2/network_pb2.pyi +247 -0
- metalstack/api/v2/network_pb2_grpc.py +301 -0
- metalstack/api/v2/partition_connecpy.py +158 -0
- metalstack/api/v2/partition_pb2.py +81 -0
- metalstack/api/v2/partition_pb2.pyi +79 -0
- metalstack/api/v2/partition_pb2_grpc.py +125 -0
- metalstack/api/v2/project_connecpy.py +718 -0
- metalstack/api/v2/project_pb2.py +156 -0
- metalstack/api/v2/project_pb2.pyi +230 -0
- metalstack/api/v2/project_pb2_grpc.py +565 -0
- metalstack/api/v2/size_connecpy.py +158 -0
- metalstack/api/v2/size_pb2.py +85 -0
- metalstack/api/v2/size_pb2.pyi +85 -0
- metalstack/api/v2/size_pb2_grpc.py +125 -0
- metalstack/api/v2/tenant_connecpy.py +718 -0
- metalstack/api/v2/tenant_pb2.py +140 -0
- metalstack/api/v2/tenant_pb2.pyi +236 -0
- metalstack/api/v2/tenant_pb2_grpc.py +565 -0
- metalstack/api/v2/token_connecpy.py +326 -0
- metalstack/api/v2/token_pb2.py +143 -0
- metalstack/api/v2/token_pb2.pyi +175 -0
- metalstack/api/v2/token_pb2_grpc.py +257 -0
- metalstack/api/v2/user_connecpy.py +102 -0
- metalstack/api/v2/user_pb2.py +48 -0
- metalstack/api/v2/user_pb2.pyi +38 -0
- metalstack/api/v2/user_pb2_grpc.py +81 -0
- metalstack/api/v2/version_connecpy.py +102 -0
- metalstack/api/v2/version_pb2.py +46 -0
- metalstack/api/v2/version_pb2.pyi +29 -0
- metalstack/api/v2/version_pb2_grpc.py +81 -0
- metalstack/infra/__init__.py +0 -0
- metalstack/infra/v2/__init__.py +0 -0
- metalstack/infra/v2/bmc_connecpy.py +102 -0
- metalstack/infra/v2/bmc_pb2.py +44 -0
- metalstack/infra/v2/bmc_pb2.pyi +14 -0
- metalstack/infra/v2/bmc_pb2_grpc.py +81 -0
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
from metalstack.api.v2 import common_pb2 as _common_pb2
|
|
2
|
+
from google.protobuf import descriptor as _descriptor
|
|
3
|
+
from google.protobuf import message as _message
|
|
4
|
+
from collections.abc import Mapping as _Mapping
|
|
5
|
+
from typing import ClassVar as _ClassVar, Optional as _Optional, Union as _Union
|
|
6
|
+
|
|
7
|
+
DESCRIPTOR: _descriptor.FileDescriptor
|
|
8
|
+
|
|
9
|
+
class Version(_message.Message):
|
|
10
|
+
__slots__ = ("version", "revision", "git_sha1", "build_date")
|
|
11
|
+
VERSION_FIELD_NUMBER: _ClassVar[int]
|
|
12
|
+
REVISION_FIELD_NUMBER: _ClassVar[int]
|
|
13
|
+
GIT_SHA1_FIELD_NUMBER: _ClassVar[int]
|
|
14
|
+
BUILD_DATE_FIELD_NUMBER: _ClassVar[int]
|
|
15
|
+
version: str
|
|
16
|
+
revision: str
|
|
17
|
+
git_sha1: str
|
|
18
|
+
build_date: str
|
|
19
|
+
def __init__(self, version: _Optional[str] = ..., revision: _Optional[str] = ..., git_sha1: _Optional[str] = ..., build_date: _Optional[str] = ...) -> None: ...
|
|
20
|
+
|
|
21
|
+
class VersionServiceGetRequest(_message.Message):
|
|
22
|
+
__slots__ = ()
|
|
23
|
+
def __init__(self) -> None: ...
|
|
24
|
+
|
|
25
|
+
class VersionServiceGetResponse(_message.Message):
|
|
26
|
+
__slots__ = ("version",)
|
|
27
|
+
VERSION_FIELD_NUMBER: _ClassVar[int]
|
|
28
|
+
version: Version
|
|
29
|
+
def __init__(self, version: _Optional[_Union[Version, _Mapping]] = ...) -> None: ...
|
|
@@ -0,0 +1,81 @@
|
|
|
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.api.v2 import version_pb2 as metalstack_dot_api_dot_v2_dot_version__pb2
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
class VersionServiceStub(object):
|
|
9
|
+
"""VersionService serves version related functions
|
|
10
|
+
"""
|
|
11
|
+
|
|
12
|
+
def __init__(self, channel):
|
|
13
|
+
"""Constructor.
|
|
14
|
+
|
|
15
|
+
Args:
|
|
16
|
+
channel: A grpc.Channel.
|
|
17
|
+
"""
|
|
18
|
+
self.Get = channel.unary_unary(
|
|
19
|
+
'/metalstack.api.v2.VersionService/Get',
|
|
20
|
+
request_serializer=metalstack_dot_api_dot_v2_dot_version__pb2.VersionServiceGetRequest.SerializeToString,
|
|
21
|
+
response_deserializer=metalstack_dot_api_dot_v2_dot_version__pb2.VersionServiceGetResponse.FromString,
|
|
22
|
+
_registered_method=True)
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
class VersionServiceServicer(object):
|
|
26
|
+
"""VersionService serves version related functions
|
|
27
|
+
"""
|
|
28
|
+
|
|
29
|
+
def Get(self, request, context):
|
|
30
|
+
"""Get the version
|
|
31
|
+
"""
|
|
32
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
33
|
+
context.set_details('Method not implemented!')
|
|
34
|
+
raise NotImplementedError('Method not implemented!')
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
def add_VersionServiceServicer_to_server(servicer, server):
|
|
38
|
+
rpc_method_handlers = {
|
|
39
|
+
'Get': grpc.unary_unary_rpc_method_handler(
|
|
40
|
+
servicer.Get,
|
|
41
|
+
request_deserializer=metalstack_dot_api_dot_v2_dot_version__pb2.VersionServiceGetRequest.FromString,
|
|
42
|
+
response_serializer=metalstack_dot_api_dot_v2_dot_version__pb2.VersionServiceGetResponse.SerializeToString,
|
|
43
|
+
),
|
|
44
|
+
}
|
|
45
|
+
generic_handler = grpc.method_handlers_generic_handler(
|
|
46
|
+
'metalstack.api.v2.VersionService', rpc_method_handlers)
|
|
47
|
+
server.add_generic_rpc_handlers((generic_handler,))
|
|
48
|
+
server.add_registered_method_handlers('metalstack.api.v2.VersionService', rpc_method_handlers)
|
|
49
|
+
|
|
50
|
+
|
|
51
|
+
# This class is part of an EXPERIMENTAL API.
|
|
52
|
+
class VersionService(object):
|
|
53
|
+
"""VersionService serves version related functions
|
|
54
|
+
"""
|
|
55
|
+
|
|
56
|
+
@staticmethod
|
|
57
|
+
def Get(request,
|
|
58
|
+
target,
|
|
59
|
+
options=(),
|
|
60
|
+
channel_credentials=None,
|
|
61
|
+
call_credentials=None,
|
|
62
|
+
insecure=False,
|
|
63
|
+
compression=None,
|
|
64
|
+
wait_for_ready=None,
|
|
65
|
+
timeout=None,
|
|
66
|
+
metadata=None):
|
|
67
|
+
return grpc.experimental.unary_unary(
|
|
68
|
+
request,
|
|
69
|
+
target,
|
|
70
|
+
'/metalstack.api.v2.VersionService/Get',
|
|
71
|
+
metalstack_dot_api_dot_v2_dot_version__pb2.VersionServiceGetRequest.SerializeToString,
|
|
72
|
+
metalstack_dot_api_dot_v2_dot_version__pb2.VersionServiceGetResponse.FromString,
|
|
73
|
+
options,
|
|
74
|
+
channel_credentials,
|
|
75
|
+
insecure,
|
|
76
|
+
call_credentials,
|
|
77
|
+
compression,
|
|
78
|
+
wait_for_ready,
|
|
79
|
+
timeout,
|
|
80
|
+
metadata,
|
|
81
|
+
_registered_method=True)
|
|
File without changes
|
|
File without changes
|
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
# -*- coding: utf-8 -*-
|
|
2
|
+
# Generated by https://github.com/i2y/connecpy/protoc-gen-connecpy. DO NOT EDIT!
|
|
3
|
+
# source: metalstack/infra/v2/bmc.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.infra.v2.bmc_pb2 as metalstack_dot_infra_dot_v2_dot_bmc__pb2
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
class BMCService(Protocol):
|
|
18
|
+
async def UpdateBMCInfo(self, req: metalstack_dot_infra_dot_v2_dot_bmc__pb2.UpdateBMCInfoRequest, ctx: ServiceContext) -> metalstack_dot_infra_dot_v2_dot_bmc__pb2.UpdateBMCInfoResponse: ...
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
class BMCServiceServer(ConnecpyServer):
|
|
22
|
+
def __init__(self, *, service: BMCService, server_path_prefix=""):
|
|
23
|
+
super().__init__()
|
|
24
|
+
self._prefix = f"{server_path_prefix}/metalstack.infra.v2.BMCService"
|
|
25
|
+
self._endpoints = {
|
|
26
|
+
"UpdateBMCInfo": Endpoint[metalstack_dot_infra_dot_v2_dot_bmc__pb2.UpdateBMCInfoRequest, metalstack_dot_infra_dot_v2_dot_bmc__pb2.UpdateBMCInfoResponse](
|
|
27
|
+
service_name="BMCService",
|
|
28
|
+
name="UpdateBMCInfo",
|
|
29
|
+
function=getattr(service, "UpdateBMCInfo"),
|
|
30
|
+
input=metalstack_dot_infra_dot_v2_dot_bmc__pb2.UpdateBMCInfoRequest,
|
|
31
|
+
output=metalstack_dot_infra_dot_v2_dot_bmc__pb2.UpdateBMCInfoResponse,
|
|
32
|
+
allowed_methods=("POST",),
|
|
33
|
+
),
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
def serviceName(self):
|
|
37
|
+
return "metalstack.infra.v2.BMCService"
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
class BMCServiceSync(Protocol):
|
|
41
|
+
def UpdateBMCInfo(self, req: metalstack_dot_infra_dot_v2_dot_bmc__pb2.UpdateBMCInfoRequest, ctx: ServiceContext) -> metalstack_dot_infra_dot_v2_dot_bmc__pb2.UpdateBMCInfoResponse: ...
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
class BMCServiceServerSync(ConnecpyServer):
|
|
45
|
+
def __init__(self, *, service: BMCServiceSync, server_path_prefix=""):
|
|
46
|
+
super().__init__()
|
|
47
|
+
self._prefix = f"{server_path_prefix}/metalstack.infra.v2.BMCService"
|
|
48
|
+
self._endpoints = {
|
|
49
|
+
"UpdateBMCInfo": Endpoint[metalstack_dot_infra_dot_v2_dot_bmc__pb2.UpdateBMCInfoRequest, metalstack_dot_infra_dot_v2_dot_bmc__pb2.UpdateBMCInfoResponse](
|
|
50
|
+
service_name="BMCService",
|
|
51
|
+
name="UpdateBMCInfo",
|
|
52
|
+
function=getattr(service, "UpdateBMCInfo"),
|
|
53
|
+
input=metalstack_dot_infra_dot_v2_dot_bmc__pb2.UpdateBMCInfoRequest,
|
|
54
|
+
output=metalstack_dot_infra_dot_v2_dot_bmc__pb2.UpdateBMCInfoResponse,
|
|
55
|
+
allowed_methods=("POST",),
|
|
56
|
+
),
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
def serviceName(self):
|
|
60
|
+
return "metalstack.infra.v2.BMCService"
|
|
61
|
+
|
|
62
|
+
|
|
63
|
+
class BMCServiceClient(ConnecpyClient):
|
|
64
|
+
def UpdateBMCInfo(
|
|
65
|
+
self,
|
|
66
|
+
request: metalstack_dot_infra_dot_v2_dot_bmc__pb2.UpdateBMCInfoRequest,
|
|
67
|
+
*,
|
|
68
|
+
ctx: Optional[ClientContext] = None,
|
|
69
|
+
server_path_prefix: str = "",
|
|
70
|
+
**kwargs,
|
|
71
|
+
) -> metalstack_dot_infra_dot_v2_dot_bmc__pb2.UpdateBMCInfoResponse:
|
|
72
|
+
method = "POST"
|
|
73
|
+
return self._make_request(
|
|
74
|
+
url=f"{server_path_prefix}/metalstack.infra.v2.BMCService/UpdateBMCInfo",
|
|
75
|
+
ctx=ctx,
|
|
76
|
+
request=request,
|
|
77
|
+
response_class=metalstack_dot_infra_dot_v2_dot_bmc__pb2.UpdateBMCInfoResponse,
|
|
78
|
+
method=method,
|
|
79
|
+
**kwargs,
|
|
80
|
+
)
|
|
81
|
+
|
|
82
|
+
|
|
83
|
+
class AsyncBMCServiceClient(AsyncConnecpyClient):
|
|
84
|
+
async def UpdateBMCInfo(
|
|
85
|
+
self,
|
|
86
|
+
request: metalstack_dot_infra_dot_v2_dot_bmc__pb2.UpdateBMCInfoRequest,
|
|
87
|
+
*,
|
|
88
|
+
ctx: Optional[ClientContext] = None,
|
|
89
|
+
server_path_prefix: str = "",
|
|
90
|
+
session: Union[httpx.AsyncClient, None] = None,
|
|
91
|
+
**kwargs,
|
|
92
|
+
) -> metalstack_dot_infra_dot_v2_dot_bmc__pb2.UpdateBMCInfoResponse:
|
|
93
|
+
method = "POST"
|
|
94
|
+
return await self._make_request(
|
|
95
|
+
url=f"{server_path_prefix}/metalstack.infra.v2.BMCService/UpdateBMCInfo",
|
|
96
|
+
ctx=ctx,
|
|
97
|
+
request=request,
|
|
98
|
+
response_class=metalstack_dot_infra_dot_v2_dot_bmc__pb2.UpdateBMCInfoResponse,
|
|
99
|
+
method=method,
|
|
100
|
+
session=session,
|
|
101
|
+
**kwargs,
|
|
102
|
+
)
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
# -*- coding: utf-8 -*-
|
|
2
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
3
|
+
# NO CHECKED-IN PROTOBUF GENCODE
|
|
4
|
+
# source: metalstack/infra/v2/bmc.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/infra/v2/bmc.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
|
+
|
|
27
|
+
|
|
28
|
+
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1dmetalstack/infra/v2/bmc.proto\x12\x13metalstack.infra.v2\x1a\x1emetalstack/api/v2/common.proto\"\x16\n\x14UpdateBMCInfoRequest\"\x17\n\x15UpdateBMCInfoResponse2\x80\x01\n\nBMCService\x12r\n\rUpdateBMCInfo\x12).metalstack.infra.v2.UpdateBMCInfoRequest\x1a*.metalstack.infra.v2.UpdateBMCInfoResponse\"\n\xe0\xf3\x18\x02\xea\xf3\x18\x02\x01\x02\x42\xcc\x01\n\x17\x63om.metalstack.infra.v2B\x08\x42mcProtoP\x01Z9github.com/metal-stack/api/go/metalstack/infra/v2;infrav2\xa2\x02\x03MIX\xaa\x02\x13Metalstack.Infra.V2\xca\x02\x13Metalstack\\Infra\\V2\xe2\x02\x1fMetalstack\\Infra\\V2\\GPBMetadata\xea\x02\x15Metalstack::Infra::V2b\x06proto3')
|
|
29
|
+
|
|
30
|
+
_globals = globals()
|
|
31
|
+
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
|
32
|
+
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'metalstack.infra.v2.bmc_pb2', _globals)
|
|
33
|
+
if not _descriptor._USE_C_DESCRIPTORS:
|
|
34
|
+
_globals['DESCRIPTOR']._loaded_options = None
|
|
35
|
+
_globals['DESCRIPTOR']._serialized_options = b'\n\027com.metalstack.infra.v2B\010BmcProtoP\001Z9github.com/metal-stack/api/go/metalstack/infra/v2;infrav2\242\002\003MIX\252\002\023Metalstack.Infra.V2\312\002\023Metalstack\\Infra\\V2\342\002\037Metalstack\\Infra\\V2\\GPBMetadata\352\002\025Metalstack::Infra::V2'
|
|
36
|
+
_globals['_BMCSERVICE'].methods_by_name['UpdateBMCInfo']._loaded_options = None
|
|
37
|
+
_globals['_BMCSERVICE'].methods_by_name['UpdateBMCInfo']._serialized_options = b'\340\363\030\002\352\363\030\002\001\002'
|
|
38
|
+
_globals['_UPDATEBMCINFOREQUEST']._serialized_start=86
|
|
39
|
+
_globals['_UPDATEBMCINFOREQUEST']._serialized_end=108
|
|
40
|
+
_globals['_UPDATEBMCINFORESPONSE']._serialized_start=110
|
|
41
|
+
_globals['_UPDATEBMCINFORESPONSE']._serialized_end=133
|
|
42
|
+
_globals['_BMCSERVICE']._serialized_start=136
|
|
43
|
+
_globals['_BMCSERVICE']._serialized_end=264
|
|
44
|
+
# @@protoc_insertion_point(module_scope)
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
from metalstack.api.v2 import common_pb2 as _common_pb2
|
|
2
|
+
from google.protobuf import descriptor as _descriptor
|
|
3
|
+
from google.protobuf import message as _message
|
|
4
|
+
from typing import ClassVar as _ClassVar
|
|
5
|
+
|
|
6
|
+
DESCRIPTOR: _descriptor.FileDescriptor
|
|
7
|
+
|
|
8
|
+
class UpdateBMCInfoRequest(_message.Message):
|
|
9
|
+
__slots__ = ()
|
|
10
|
+
def __init__(self) -> None: ...
|
|
11
|
+
|
|
12
|
+
class UpdateBMCInfoResponse(_message.Message):
|
|
13
|
+
__slots__ = ()
|
|
14
|
+
def __init__(self) -> None: ...
|
|
@@ -0,0 +1,81 @@
|
|
|
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.infra.v2 import bmc_pb2 as metalstack_dot_infra_dot_v2_dot_bmc__pb2
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
class BMCServiceStub(object):
|
|
9
|
+
"""BMCService serves bmc related functions
|
|
10
|
+
"""
|
|
11
|
+
|
|
12
|
+
def __init__(self, channel):
|
|
13
|
+
"""Constructor.
|
|
14
|
+
|
|
15
|
+
Args:
|
|
16
|
+
channel: A grpc.Channel.
|
|
17
|
+
"""
|
|
18
|
+
self.UpdateBMCInfo = channel.unary_unary(
|
|
19
|
+
'/metalstack.infra.v2.BMCService/UpdateBMCInfo',
|
|
20
|
+
request_serializer=metalstack_dot_infra_dot_v2_dot_bmc__pb2.UpdateBMCInfoRequest.SerializeToString,
|
|
21
|
+
response_deserializer=metalstack_dot_infra_dot_v2_dot_bmc__pb2.UpdateBMCInfoResponse.FromString,
|
|
22
|
+
_registered_method=True)
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
class BMCServiceServicer(object):
|
|
26
|
+
"""BMCService serves bmc related functions
|
|
27
|
+
"""
|
|
28
|
+
|
|
29
|
+
def UpdateBMCInfo(self, request, context):
|
|
30
|
+
"""UpdateBMCInfo
|
|
31
|
+
"""
|
|
32
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
33
|
+
context.set_details('Method not implemented!')
|
|
34
|
+
raise NotImplementedError('Method not implemented!')
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
def add_BMCServiceServicer_to_server(servicer, server):
|
|
38
|
+
rpc_method_handlers = {
|
|
39
|
+
'UpdateBMCInfo': grpc.unary_unary_rpc_method_handler(
|
|
40
|
+
servicer.UpdateBMCInfo,
|
|
41
|
+
request_deserializer=metalstack_dot_infra_dot_v2_dot_bmc__pb2.UpdateBMCInfoRequest.FromString,
|
|
42
|
+
response_serializer=metalstack_dot_infra_dot_v2_dot_bmc__pb2.UpdateBMCInfoResponse.SerializeToString,
|
|
43
|
+
),
|
|
44
|
+
}
|
|
45
|
+
generic_handler = grpc.method_handlers_generic_handler(
|
|
46
|
+
'metalstack.infra.v2.BMCService', rpc_method_handlers)
|
|
47
|
+
server.add_generic_rpc_handlers((generic_handler,))
|
|
48
|
+
server.add_registered_method_handlers('metalstack.infra.v2.BMCService', rpc_method_handlers)
|
|
49
|
+
|
|
50
|
+
|
|
51
|
+
# This class is part of an EXPERIMENTAL API.
|
|
52
|
+
class BMCService(object):
|
|
53
|
+
"""BMCService serves bmc related functions
|
|
54
|
+
"""
|
|
55
|
+
|
|
56
|
+
@staticmethod
|
|
57
|
+
def UpdateBMCInfo(request,
|
|
58
|
+
target,
|
|
59
|
+
options=(),
|
|
60
|
+
channel_credentials=None,
|
|
61
|
+
call_credentials=None,
|
|
62
|
+
insecure=False,
|
|
63
|
+
compression=None,
|
|
64
|
+
wait_for_ready=None,
|
|
65
|
+
timeout=None,
|
|
66
|
+
metadata=None):
|
|
67
|
+
return grpc.experimental.unary_unary(
|
|
68
|
+
request,
|
|
69
|
+
target,
|
|
70
|
+
'/metalstack.infra.v2.BMCService/UpdateBMCInfo',
|
|
71
|
+
metalstack_dot_infra_dot_v2_dot_bmc__pb2.UpdateBMCInfoRequest.SerializeToString,
|
|
72
|
+
metalstack_dot_infra_dot_v2_dot_bmc__pb2.UpdateBMCInfoResponse.FromString,
|
|
73
|
+
options,
|
|
74
|
+
channel_credentials,
|
|
75
|
+
insecure,
|
|
76
|
+
call_credentials,
|
|
77
|
+
compression,
|
|
78
|
+
wait_for_ready,
|
|
79
|
+
timeout,
|
|
80
|
+
metadata,
|
|
81
|
+
_registered_method=True)
|