Skip to content

Commit

Permalink
feat(proto): upgrade to v24.3
Browse files Browse the repository at this point in the history
Signed-off-by: PoAn Yang <[email protected]>
  • Loading branch information
FrankYang0529 authored and David Ko committed Nov 30, 2023
1 parent b6b7a0f commit 9ab0341
Show file tree
Hide file tree
Showing 8 changed files with 336 additions and 421 deletions.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
@@ -0,0 +1,133 @@
# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT!
"""Client and server classes corresponding to protobuf-defined services."""
import grpc

from github.com.longhorn.longhorn_share_manager.pkg.rpc import smrpc_pb2 as github_dot_com_dot_longhorn_dot_longhorn__share__manager_dot_pkg_dot_rpc_dot_smrpc__pb2
from google.protobuf import empty_pb2 as google_dot_protobuf_dot_empty__pb2


class ShareManagerServiceStub(object):
"""Missing associated documentation comment in .proto file."""

def __init__(self, channel):
"""Constructor.
Args:
channel: A grpc.Channel.
"""
self.FilesystemTrim = channel.unary_unary(
'/ShareManagerService/FilesystemTrim',
request_serializer=github_dot_com_dot_longhorn_dot_longhorn__share__manager_dot_pkg_dot_rpc_dot_smrpc__pb2.FilesystemTrimRequest.SerializeToString,
response_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString,
)
self.Unmount = channel.unary_unary(
'/ShareManagerService/Unmount',
request_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString,
response_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString,
)
self.Mount = channel.unary_unary(
'/ShareManagerService/Mount',
request_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString,
response_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString,
)


class ShareManagerServiceServicer(object):
"""Missing associated documentation comment in .proto file."""

def FilesystemTrim(self, request, context):
"""Missing associated documentation comment in .proto file."""
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
context.set_details('Method not implemented!')
raise NotImplementedError('Method not implemented!')

def Unmount(self, request, context):
"""Missing associated documentation comment in .proto file."""
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
context.set_details('Method not implemented!')
raise NotImplementedError('Method not implemented!')

def Mount(self, request, context):
"""Missing associated documentation comment in .proto file."""
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
context.set_details('Method not implemented!')
raise NotImplementedError('Method not implemented!')


def add_ShareManagerServiceServicer_to_server(servicer, server):
rpc_method_handlers = {
'FilesystemTrim': grpc.unary_unary_rpc_method_handler(
servicer.FilesystemTrim,
request_deserializer=github_dot_com_dot_longhorn_dot_longhorn__share__manager_dot_pkg_dot_rpc_dot_smrpc__pb2.FilesystemTrimRequest.FromString,
response_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString,
),
'Unmount': grpc.unary_unary_rpc_method_handler(
servicer.Unmount,
request_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString,
response_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString,
),
'Mount': grpc.unary_unary_rpc_method_handler(
servicer.Mount,
request_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString,
response_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString,
),
}
generic_handler = grpc.method_handlers_generic_handler(
'ShareManagerService', rpc_method_handlers)
server.add_generic_rpc_handlers((generic_handler,))


# This class is part of an EXPERIMENTAL API.
class ShareManagerService(object):
"""Missing associated documentation comment in .proto file."""

@staticmethod
def FilesystemTrim(request,
target,
options=(),
channel_credentials=None,
call_credentials=None,
insecure=False,
compression=None,
wait_for_ready=None,
timeout=None,
metadata=None):
return grpc.experimental.unary_unary(request, target, '/ShareManagerService/FilesystemTrim',
github_dot_com_dot_longhorn_dot_longhorn__share__manager_dot_pkg_dot_rpc_dot_smrpc__pb2.FilesystemTrimRequest.SerializeToString,
google_dot_protobuf_dot_empty__pb2.Empty.FromString,
options, channel_credentials,
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)

@staticmethod
def Unmount(request,
target,
options=(),
channel_credentials=None,
call_credentials=None,
insecure=False,
compression=None,
wait_for_ready=None,
timeout=None,
metadata=None):
return grpc.experimental.unary_unary(request, target, '/ShareManagerService/Unmount',
google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString,
google_dot_protobuf_dot_empty__pb2.Empty.FromString,
options, channel_credentials,
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)

@staticmethod
def Mount(request,
target,
options=(),
channel_credentials=None,
call_credentials=None,
insecure=False,
compression=None,
wait_for_ready=None,
timeout=None,
metadata=None):
return grpc.experimental.unary_unary(request, target, '/ShareManagerService/Mount',
google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString,
google_dot_protobuf_dot_empty__pb2.Empty.FromString,
options, channel_credentials,
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
96 changes: 0 additions & 96 deletions integration/rpc/share_manager/sm_pb2.py

This file was deleted.

47 changes: 0 additions & 47 deletions integration/rpc/share_manager/sm_pb2_grpc.py

This file was deleted.

Loading

0 comments on commit 9ab0341

Please sign in to comment.