# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT!
"""Client and server classes corresponding to protobuf-defined services."""
import grpc
import warnings
from arista.action.v1.services import gen_pb2 as arista_dot_action_dot_v1_dot_services_dot_gen__pb2
GRPC_GENERATED_VERSION = '1.67.1'
GRPC_VERSION = grpc.__version__
_version_not_supported = False
try:
from grpc._utilities import first_version_is_lower
_version_not_supported = first_version_is_lower(GRPC_VERSION, GRPC_GENERATED_VERSION)
except ImportError:
_version_not_supported = True
if _version_not_supported:
raise RuntimeError(
f'The grpc package installed is at version {GRPC_VERSION},'
+ f' but the generated code in arista/action.v1/services.gen_pb2_grpc.py depends on'
+ f' grpcio>={GRPC_GENERATED_VERSION}.'
+ f' Please upgrade your grpc module to grpcio>={GRPC_GENERATED_VERSION}'
+ f' or downgrade your generated code using grpcio-tools<={GRPC_VERSION}.'
)
[docs]
class ActionServiceStub(object):
"""Missing associated documentation comment in .proto file."""
def __init__(self, channel):
"""Constructor.
Args:
channel: A grpc.Channel.
"""
self.GetOne = channel.unary_unary(
'/arista.action.v1.ActionService/GetOne',
request_serializer=arista_dot_action_dot_v1_dot_services_dot_gen__pb2.ActionRequest.SerializeToString,
response_deserializer=arista_dot_action_dot_v1_dot_services_dot_gen__pb2.ActionResponse.FromString,
_registered_method=True)
self.GetSome = channel.unary_stream(
'/arista.action.v1.ActionService/GetSome',
request_serializer=arista_dot_action_dot_v1_dot_services_dot_gen__pb2.ActionSomeRequest.SerializeToString,
response_deserializer=arista_dot_action_dot_v1_dot_services_dot_gen__pb2.ActionSomeResponse.FromString,
_registered_method=True)
self.GetAll = channel.unary_stream(
'/arista.action.v1.ActionService/GetAll',
request_serializer=arista_dot_action_dot_v1_dot_services_dot_gen__pb2.ActionStreamRequest.SerializeToString,
response_deserializer=arista_dot_action_dot_v1_dot_services_dot_gen__pb2.ActionStreamResponse.FromString,
_registered_method=True)
self.Subscribe = channel.unary_stream(
'/arista.action.v1.ActionService/Subscribe',
request_serializer=arista_dot_action_dot_v1_dot_services_dot_gen__pb2.ActionStreamRequest.SerializeToString,
response_deserializer=arista_dot_action_dot_v1_dot_services_dot_gen__pb2.ActionStreamResponse.FromString,
_registered_method=True)
self.GetMeta = channel.unary_unary(
'/arista.action.v1.ActionService/GetMeta',
request_serializer=arista_dot_action_dot_v1_dot_services_dot_gen__pb2.ActionStreamRequest.SerializeToString,
response_deserializer=arista_dot_action_dot_v1_dot_services_dot_gen__pb2.MetaResponse.FromString,
_registered_method=True)
self.SubscribeMeta = channel.unary_stream(
'/arista.action.v1.ActionService/SubscribeMeta',
request_serializer=arista_dot_action_dot_v1_dot_services_dot_gen__pb2.ActionStreamRequest.SerializeToString,
response_deserializer=arista_dot_action_dot_v1_dot_services_dot_gen__pb2.MetaResponse.FromString,
_registered_method=True)
[docs]
class ActionServiceServicer(object):
"""Missing associated documentation comment in .proto file."""
[docs]
def GetOne(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!')
[docs]
def GetSome(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!')
[docs]
def GetAll(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!')
[docs]
def Subscribe(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!')
[docs]
def add_ActionServiceServicer_to_server(servicer, server):
rpc_method_handlers = {
'GetOne': grpc.unary_unary_rpc_method_handler(
servicer.GetOne,
request_deserializer=arista_dot_action_dot_v1_dot_services_dot_gen__pb2.ActionRequest.FromString,
response_serializer=arista_dot_action_dot_v1_dot_services_dot_gen__pb2.ActionResponse.SerializeToString,
),
'GetSome': grpc.unary_stream_rpc_method_handler(
servicer.GetSome,
request_deserializer=arista_dot_action_dot_v1_dot_services_dot_gen__pb2.ActionSomeRequest.FromString,
response_serializer=arista_dot_action_dot_v1_dot_services_dot_gen__pb2.ActionSomeResponse.SerializeToString,
),
'GetAll': grpc.unary_stream_rpc_method_handler(
servicer.GetAll,
request_deserializer=arista_dot_action_dot_v1_dot_services_dot_gen__pb2.ActionStreamRequest.FromString,
response_serializer=arista_dot_action_dot_v1_dot_services_dot_gen__pb2.ActionStreamResponse.SerializeToString,
),
'Subscribe': grpc.unary_stream_rpc_method_handler(
servicer.Subscribe,
request_deserializer=arista_dot_action_dot_v1_dot_services_dot_gen__pb2.ActionStreamRequest.FromString,
response_serializer=arista_dot_action_dot_v1_dot_services_dot_gen__pb2.ActionStreamResponse.SerializeToString,
),
'GetMeta': grpc.unary_unary_rpc_method_handler(
servicer.GetMeta,
request_deserializer=arista_dot_action_dot_v1_dot_services_dot_gen__pb2.ActionStreamRequest.FromString,
response_serializer=arista_dot_action_dot_v1_dot_services_dot_gen__pb2.MetaResponse.SerializeToString,
),
'SubscribeMeta': grpc.unary_stream_rpc_method_handler(
servicer.SubscribeMeta,
request_deserializer=arista_dot_action_dot_v1_dot_services_dot_gen__pb2.ActionStreamRequest.FromString,
response_serializer=arista_dot_action_dot_v1_dot_services_dot_gen__pb2.MetaResponse.SerializeToString,
),
}
generic_handler = grpc.method_handlers_generic_handler(
'arista.action.v1.ActionService', rpc_method_handlers)
server.add_generic_rpc_handlers((generic_handler,))
server.add_registered_method_handlers('arista.action.v1.ActionService', rpc_method_handlers)
# This class is part of an EXPERIMENTAL API.
[docs]
class ActionService(object):
"""Missing associated documentation comment in .proto file."""
[docs]
@staticmethod
def GetOne(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,
'/arista.action.v1.ActionService/GetOne',
arista_dot_action_dot_v1_dot_services_dot_gen__pb2.ActionRequest.SerializeToString,
arista_dot_action_dot_v1_dot_services_dot_gen__pb2.ActionResponse.FromString,
options,
channel_credentials,
insecure,
call_credentials,
compression,
wait_for_ready,
timeout,
metadata,
_registered_method=True)
[docs]
@staticmethod
def GetSome(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_stream(
request,
target,
'/arista.action.v1.ActionService/GetSome',
arista_dot_action_dot_v1_dot_services_dot_gen__pb2.ActionSomeRequest.SerializeToString,
arista_dot_action_dot_v1_dot_services_dot_gen__pb2.ActionSomeResponse.FromString,
options,
channel_credentials,
insecure,
call_credentials,
compression,
wait_for_ready,
timeout,
metadata,
_registered_method=True)
[docs]
@staticmethod
def GetAll(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_stream(
request,
target,
'/arista.action.v1.ActionService/GetAll',
arista_dot_action_dot_v1_dot_services_dot_gen__pb2.ActionStreamRequest.SerializeToString,
arista_dot_action_dot_v1_dot_services_dot_gen__pb2.ActionStreamResponse.FromString,
options,
channel_credentials,
insecure,
call_credentials,
compression,
wait_for_ready,
timeout,
metadata,
_registered_method=True)
[docs]
@staticmethod
def Subscribe(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_stream(
request,
target,
'/arista.action.v1.ActionService/Subscribe',
arista_dot_action_dot_v1_dot_services_dot_gen__pb2.ActionStreamRequest.SerializeToString,
arista_dot_action_dot_v1_dot_services_dot_gen__pb2.ActionStreamResponse.FromString,
options,
channel_credentials,
insecure,
call_credentials,
compression,
wait_for_ready,
timeout,
metadata,
_registered_method=True)
[docs]
class ActionArgConfigServiceStub(object):
"""Missing associated documentation comment in .proto file."""
def __init__(self, channel):
"""Constructor.
Args:
channel: A grpc.Channel.
"""
self.GetOne = channel.unary_unary(
'/arista.action.v1.ActionArgConfigService/GetOne',
request_serializer=arista_dot_action_dot_v1_dot_services_dot_gen__pb2.ActionArgConfigRequest.SerializeToString,
response_deserializer=arista_dot_action_dot_v1_dot_services_dot_gen__pb2.ActionArgConfigResponse.FromString,
_registered_method=True)
self.GetSome = channel.unary_stream(
'/arista.action.v1.ActionArgConfigService/GetSome',
request_serializer=arista_dot_action_dot_v1_dot_services_dot_gen__pb2.ActionArgConfigSomeRequest.SerializeToString,
response_deserializer=arista_dot_action_dot_v1_dot_services_dot_gen__pb2.ActionArgConfigSomeResponse.FromString,
_registered_method=True)
self.GetAll = channel.unary_stream(
'/arista.action.v1.ActionArgConfigService/GetAll',
request_serializer=arista_dot_action_dot_v1_dot_services_dot_gen__pb2.ActionArgConfigStreamRequest.SerializeToString,
response_deserializer=arista_dot_action_dot_v1_dot_services_dot_gen__pb2.ActionArgConfigStreamResponse.FromString,
_registered_method=True)
self.Subscribe = channel.unary_stream(
'/arista.action.v1.ActionArgConfigService/Subscribe',
request_serializer=arista_dot_action_dot_v1_dot_services_dot_gen__pb2.ActionArgConfigStreamRequest.SerializeToString,
response_deserializer=arista_dot_action_dot_v1_dot_services_dot_gen__pb2.ActionArgConfigStreamResponse.FromString,
_registered_method=True)
self.GetMeta = channel.unary_unary(
'/arista.action.v1.ActionArgConfigService/GetMeta',
request_serializer=arista_dot_action_dot_v1_dot_services_dot_gen__pb2.ActionArgConfigStreamRequest.SerializeToString,
response_deserializer=arista_dot_action_dot_v1_dot_services_dot_gen__pb2.MetaResponse.FromString,
_registered_method=True)
self.SubscribeMeta = channel.unary_stream(
'/arista.action.v1.ActionArgConfigService/SubscribeMeta',
request_serializer=arista_dot_action_dot_v1_dot_services_dot_gen__pb2.ActionArgConfigStreamRequest.SerializeToString,
response_deserializer=arista_dot_action_dot_v1_dot_services_dot_gen__pb2.MetaResponse.FromString,
_registered_method=True)
self.Set = channel.unary_unary(
'/arista.action.v1.ActionArgConfigService/Set',
request_serializer=arista_dot_action_dot_v1_dot_services_dot_gen__pb2.ActionArgConfigSetRequest.SerializeToString,
response_deserializer=arista_dot_action_dot_v1_dot_services_dot_gen__pb2.ActionArgConfigSetResponse.FromString,
_registered_method=True)
self.SetSome = channel.unary_stream(
'/arista.action.v1.ActionArgConfigService/SetSome',
request_serializer=arista_dot_action_dot_v1_dot_services_dot_gen__pb2.ActionArgConfigSetSomeRequest.SerializeToString,
response_deserializer=arista_dot_action_dot_v1_dot_services_dot_gen__pb2.ActionArgConfigSetSomeResponse.FromString,
_registered_method=True)
self.Delete = channel.unary_unary(
'/arista.action.v1.ActionArgConfigService/Delete',
request_serializer=arista_dot_action_dot_v1_dot_services_dot_gen__pb2.ActionArgConfigDeleteRequest.SerializeToString,
response_deserializer=arista_dot_action_dot_v1_dot_services_dot_gen__pb2.ActionArgConfigDeleteResponse.FromString,
_registered_method=True)
self.DeleteSome = channel.unary_stream(
'/arista.action.v1.ActionArgConfigService/DeleteSome',
request_serializer=arista_dot_action_dot_v1_dot_services_dot_gen__pb2.ActionArgConfigDeleteSomeRequest.SerializeToString,
response_deserializer=arista_dot_action_dot_v1_dot_services_dot_gen__pb2.ActionArgConfigDeleteSomeResponse.FromString,
_registered_method=True)
self.DeleteAll = channel.unary_stream(
'/arista.action.v1.ActionArgConfigService/DeleteAll',
request_serializer=arista_dot_action_dot_v1_dot_services_dot_gen__pb2.ActionArgConfigDeleteAllRequest.SerializeToString,
response_deserializer=arista_dot_action_dot_v1_dot_services_dot_gen__pb2.ActionArgConfigDeleteAllResponse.FromString,
_registered_method=True)
[docs]
class ActionArgConfigServiceServicer(object):
"""Missing associated documentation comment in .proto file."""
[docs]
def GetOne(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!')
[docs]
def GetSome(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!')
[docs]
def GetAll(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!')
[docs]
def Subscribe(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!')
[docs]
def Set(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!')
[docs]
def SetSome(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!')
[docs]
def Delete(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!')
[docs]
def DeleteSome(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!')
[docs]
def DeleteAll(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!')
[docs]
def add_ActionArgConfigServiceServicer_to_server(servicer, server):
rpc_method_handlers = {
'GetOne': grpc.unary_unary_rpc_method_handler(
servicer.GetOne,
request_deserializer=arista_dot_action_dot_v1_dot_services_dot_gen__pb2.ActionArgConfigRequest.FromString,
response_serializer=arista_dot_action_dot_v1_dot_services_dot_gen__pb2.ActionArgConfigResponse.SerializeToString,
),
'GetSome': grpc.unary_stream_rpc_method_handler(
servicer.GetSome,
request_deserializer=arista_dot_action_dot_v1_dot_services_dot_gen__pb2.ActionArgConfigSomeRequest.FromString,
response_serializer=arista_dot_action_dot_v1_dot_services_dot_gen__pb2.ActionArgConfigSomeResponse.SerializeToString,
),
'GetAll': grpc.unary_stream_rpc_method_handler(
servicer.GetAll,
request_deserializer=arista_dot_action_dot_v1_dot_services_dot_gen__pb2.ActionArgConfigStreamRequest.FromString,
response_serializer=arista_dot_action_dot_v1_dot_services_dot_gen__pb2.ActionArgConfigStreamResponse.SerializeToString,
),
'Subscribe': grpc.unary_stream_rpc_method_handler(
servicer.Subscribe,
request_deserializer=arista_dot_action_dot_v1_dot_services_dot_gen__pb2.ActionArgConfigStreamRequest.FromString,
response_serializer=arista_dot_action_dot_v1_dot_services_dot_gen__pb2.ActionArgConfigStreamResponse.SerializeToString,
),
'GetMeta': grpc.unary_unary_rpc_method_handler(
servicer.GetMeta,
request_deserializer=arista_dot_action_dot_v1_dot_services_dot_gen__pb2.ActionArgConfigStreamRequest.FromString,
response_serializer=arista_dot_action_dot_v1_dot_services_dot_gen__pb2.MetaResponse.SerializeToString,
),
'SubscribeMeta': grpc.unary_stream_rpc_method_handler(
servicer.SubscribeMeta,
request_deserializer=arista_dot_action_dot_v1_dot_services_dot_gen__pb2.ActionArgConfigStreamRequest.FromString,
response_serializer=arista_dot_action_dot_v1_dot_services_dot_gen__pb2.MetaResponse.SerializeToString,
),
'Set': grpc.unary_unary_rpc_method_handler(
servicer.Set,
request_deserializer=arista_dot_action_dot_v1_dot_services_dot_gen__pb2.ActionArgConfigSetRequest.FromString,
response_serializer=arista_dot_action_dot_v1_dot_services_dot_gen__pb2.ActionArgConfigSetResponse.SerializeToString,
),
'SetSome': grpc.unary_stream_rpc_method_handler(
servicer.SetSome,
request_deserializer=arista_dot_action_dot_v1_dot_services_dot_gen__pb2.ActionArgConfigSetSomeRequest.FromString,
response_serializer=arista_dot_action_dot_v1_dot_services_dot_gen__pb2.ActionArgConfigSetSomeResponse.SerializeToString,
),
'Delete': grpc.unary_unary_rpc_method_handler(
servicer.Delete,
request_deserializer=arista_dot_action_dot_v1_dot_services_dot_gen__pb2.ActionArgConfigDeleteRequest.FromString,
response_serializer=arista_dot_action_dot_v1_dot_services_dot_gen__pb2.ActionArgConfigDeleteResponse.SerializeToString,
),
'DeleteSome': grpc.unary_stream_rpc_method_handler(
servicer.DeleteSome,
request_deserializer=arista_dot_action_dot_v1_dot_services_dot_gen__pb2.ActionArgConfigDeleteSomeRequest.FromString,
response_serializer=arista_dot_action_dot_v1_dot_services_dot_gen__pb2.ActionArgConfigDeleteSomeResponse.SerializeToString,
),
'DeleteAll': grpc.unary_stream_rpc_method_handler(
servicer.DeleteAll,
request_deserializer=arista_dot_action_dot_v1_dot_services_dot_gen__pb2.ActionArgConfigDeleteAllRequest.FromString,
response_serializer=arista_dot_action_dot_v1_dot_services_dot_gen__pb2.ActionArgConfigDeleteAllResponse.SerializeToString,
),
}
generic_handler = grpc.method_handlers_generic_handler(
'arista.action.v1.ActionArgConfigService', rpc_method_handlers)
server.add_generic_rpc_handlers((generic_handler,))
server.add_registered_method_handlers('arista.action.v1.ActionArgConfigService', rpc_method_handlers)
# This class is part of an EXPERIMENTAL API.
[docs]
class ActionArgConfigService(object):
"""Missing associated documentation comment in .proto file."""
[docs]
@staticmethod
def GetOne(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,
'/arista.action.v1.ActionArgConfigService/GetOne',
arista_dot_action_dot_v1_dot_services_dot_gen__pb2.ActionArgConfigRequest.SerializeToString,
arista_dot_action_dot_v1_dot_services_dot_gen__pb2.ActionArgConfigResponse.FromString,
options,
channel_credentials,
insecure,
call_credentials,
compression,
wait_for_ready,
timeout,
metadata,
_registered_method=True)
[docs]
@staticmethod
def GetSome(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_stream(
request,
target,
'/arista.action.v1.ActionArgConfigService/GetSome',
arista_dot_action_dot_v1_dot_services_dot_gen__pb2.ActionArgConfigSomeRequest.SerializeToString,
arista_dot_action_dot_v1_dot_services_dot_gen__pb2.ActionArgConfigSomeResponse.FromString,
options,
channel_credentials,
insecure,
call_credentials,
compression,
wait_for_ready,
timeout,
metadata,
_registered_method=True)
[docs]
@staticmethod
def GetAll(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_stream(
request,
target,
'/arista.action.v1.ActionArgConfigService/GetAll',
arista_dot_action_dot_v1_dot_services_dot_gen__pb2.ActionArgConfigStreamRequest.SerializeToString,
arista_dot_action_dot_v1_dot_services_dot_gen__pb2.ActionArgConfigStreamResponse.FromString,
options,
channel_credentials,
insecure,
call_credentials,
compression,
wait_for_ready,
timeout,
metadata,
_registered_method=True)
[docs]
@staticmethod
def Subscribe(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_stream(
request,
target,
'/arista.action.v1.ActionArgConfigService/Subscribe',
arista_dot_action_dot_v1_dot_services_dot_gen__pb2.ActionArgConfigStreamRequest.SerializeToString,
arista_dot_action_dot_v1_dot_services_dot_gen__pb2.ActionArgConfigStreamResponse.FromString,
options,
channel_credentials,
insecure,
call_credentials,
compression,
wait_for_ready,
timeout,
metadata,
_registered_method=True)
[docs]
@staticmethod
def Set(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,
'/arista.action.v1.ActionArgConfigService/Set',
arista_dot_action_dot_v1_dot_services_dot_gen__pb2.ActionArgConfigSetRequest.SerializeToString,
arista_dot_action_dot_v1_dot_services_dot_gen__pb2.ActionArgConfigSetResponse.FromString,
options,
channel_credentials,
insecure,
call_credentials,
compression,
wait_for_ready,
timeout,
metadata,
_registered_method=True)
[docs]
@staticmethod
def SetSome(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_stream(
request,
target,
'/arista.action.v1.ActionArgConfigService/SetSome',
arista_dot_action_dot_v1_dot_services_dot_gen__pb2.ActionArgConfigSetSomeRequest.SerializeToString,
arista_dot_action_dot_v1_dot_services_dot_gen__pb2.ActionArgConfigSetSomeResponse.FromString,
options,
channel_credentials,
insecure,
call_credentials,
compression,
wait_for_ready,
timeout,
metadata,
_registered_method=True)
[docs]
@staticmethod
def Delete(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,
'/arista.action.v1.ActionArgConfigService/Delete',
arista_dot_action_dot_v1_dot_services_dot_gen__pb2.ActionArgConfigDeleteRequest.SerializeToString,
arista_dot_action_dot_v1_dot_services_dot_gen__pb2.ActionArgConfigDeleteResponse.FromString,
options,
channel_credentials,
insecure,
call_credentials,
compression,
wait_for_ready,
timeout,
metadata,
_registered_method=True)
[docs]
@staticmethod
def DeleteSome(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_stream(
request,
target,
'/arista.action.v1.ActionArgConfigService/DeleteSome',
arista_dot_action_dot_v1_dot_services_dot_gen__pb2.ActionArgConfigDeleteSomeRequest.SerializeToString,
arista_dot_action_dot_v1_dot_services_dot_gen__pb2.ActionArgConfigDeleteSomeResponse.FromString,
options,
channel_credentials,
insecure,
call_credentials,
compression,
wait_for_ready,
timeout,
metadata,
_registered_method=True)
[docs]
@staticmethod
def DeleteAll(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_stream(
request,
target,
'/arista.action.v1.ActionArgConfigService/DeleteAll',
arista_dot_action_dot_v1_dot_services_dot_gen__pb2.ActionArgConfigDeleteAllRequest.SerializeToString,
arista_dot_action_dot_v1_dot_services_dot_gen__pb2.ActionArgConfigDeleteAllResponse.FromString,
options,
channel_credentials,
insecure,
call_credentials,
compression,
wait_for_ready,
timeout,
metadata,
_registered_method=True)
[docs]
class ActionConfigServiceStub(object):
"""Missing associated documentation comment in .proto file."""
def __init__(self, channel):
"""Constructor.
Args:
channel: A grpc.Channel.
"""
self.GetOne = channel.unary_unary(
'/arista.action.v1.ActionConfigService/GetOne',
request_serializer=arista_dot_action_dot_v1_dot_services_dot_gen__pb2.ActionConfigRequest.SerializeToString,
response_deserializer=arista_dot_action_dot_v1_dot_services_dot_gen__pb2.ActionConfigResponse.FromString,
_registered_method=True)
self.GetSome = channel.unary_stream(
'/arista.action.v1.ActionConfigService/GetSome',
request_serializer=arista_dot_action_dot_v1_dot_services_dot_gen__pb2.ActionConfigSomeRequest.SerializeToString,
response_deserializer=arista_dot_action_dot_v1_dot_services_dot_gen__pb2.ActionConfigSomeResponse.FromString,
_registered_method=True)
self.GetAll = channel.unary_stream(
'/arista.action.v1.ActionConfigService/GetAll',
request_serializer=arista_dot_action_dot_v1_dot_services_dot_gen__pb2.ActionConfigStreamRequest.SerializeToString,
response_deserializer=arista_dot_action_dot_v1_dot_services_dot_gen__pb2.ActionConfigStreamResponse.FromString,
_registered_method=True)
self.Subscribe = channel.unary_stream(
'/arista.action.v1.ActionConfigService/Subscribe',
request_serializer=arista_dot_action_dot_v1_dot_services_dot_gen__pb2.ActionConfigStreamRequest.SerializeToString,
response_deserializer=arista_dot_action_dot_v1_dot_services_dot_gen__pb2.ActionConfigStreamResponse.FromString,
_registered_method=True)
self.GetMeta = channel.unary_unary(
'/arista.action.v1.ActionConfigService/GetMeta',
request_serializer=arista_dot_action_dot_v1_dot_services_dot_gen__pb2.ActionConfigStreamRequest.SerializeToString,
response_deserializer=arista_dot_action_dot_v1_dot_services_dot_gen__pb2.MetaResponse.FromString,
_registered_method=True)
self.SubscribeMeta = channel.unary_stream(
'/arista.action.v1.ActionConfigService/SubscribeMeta',
request_serializer=arista_dot_action_dot_v1_dot_services_dot_gen__pb2.ActionConfigStreamRequest.SerializeToString,
response_deserializer=arista_dot_action_dot_v1_dot_services_dot_gen__pb2.MetaResponse.FromString,
_registered_method=True)
self.Set = channel.unary_unary(
'/arista.action.v1.ActionConfigService/Set',
request_serializer=arista_dot_action_dot_v1_dot_services_dot_gen__pb2.ActionConfigSetRequest.SerializeToString,
response_deserializer=arista_dot_action_dot_v1_dot_services_dot_gen__pb2.ActionConfigSetResponse.FromString,
_registered_method=True)
self.SetSome = channel.unary_stream(
'/arista.action.v1.ActionConfigService/SetSome',
request_serializer=arista_dot_action_dot_v1_dot_services_dot_gen__pb2.ActionConfigSetSomeRequest.SerializeToString,
response_deserializer=arista_dot_action_dot_v1_dot_services_dot_gen__pb2.ActionConfigSetSomeResponse.FromString,
_registered_method=True)
self.Delete = channel.unary_unary(
'/arista.action.v1.ActionConfigService/Delete',
request_serializer=arista_dot_action_dot_v1_dot_services_dot_gen__pb2.ActionConfigDeleteRequest.SerializeToString,
response_deserializer=arista_dot_action_dot_v1_dot_services_dot_gen__pb2.ActionConfigDeleteResponse.FromString,
_registered_method=True)
self.DeleteSome = channel.unary_stream(
'/arista.action.v1.ActionConfigService/DeleteSome',
request_serializer=arista_dot_action_dot_v1_dot_services_dot_gen__pb2.ActionConfigDeleteSomeRequest.SerializeToString,
response_deserializer=arista_dot_action_dot_v1_dot_services_dot_gen__pb2.ActionConfigDeleteSomeResponse.FromString,
_registered_method=True)
self.DeleteAll = channel.unary_stream(
'/arista.action.v1.ActionConfigService/DeleteAll',
request_serializer=arista_dot_action_dot_v1_dot_services_dot_gen__pb2.ActionConfigDeleteAllRequest.SerializeToString,
response_deserializer=arista_dot_action_dot_v1_dot_services_dot_gen__pb2.ActionConfigDeleteAllResponse.FromString,
_registered_method=True)
[docs]
class ActionConfigServiceServicer(object):
"""Missing associated documentation comment in .proto file."""
[docs]
def GetOne(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!')
[docs]
def GetSome(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!')
[docs]
def GetAll(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!')
[docs]
def Subscribe(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!')
[docs]
def Set(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!')
[docs]
def SetSome(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!')
[docs]
def Delete(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!')
[docs]
def DeleteSome(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!')
[docs]
def DeleteAll(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!')
[docs]
def add_ActionConfigServiceServicer_to_server(servicer, server):
rpc_method_handlers = {
'GetOne': grpc.unary_unary_rpc_method_handler(
servicer.GetOne,
request_deserializer=arista_dot_action_dot_v1_dot_services_dot_gen__pb2.ActionConfigRequest.FromString,
response_serializer=arista_dot_action_dot_v1_dot_services_dot_gen__pb2.ActionConfigResponse.SerializeToString,
),
'GetSome': grpc.unary_stream_rpc_method_handler(
servicer.GetSome,
request_deserializer=arista_dot_action_dot_v1_dot_services_dot_gen__pb2.ActionConfigSomeRequest.FromString,
response_serializer=arista_dot_action_dot_v1_dot_services_dot_gen__pb2.ActionConfigSomeResponse.SerializeToString,
),
'GetAll': grpc.unary_stream_rpc_method_handler(
servicer.GetAll,
request_deserializer=arista_dot_action_dot_v1_dot_services_dot_gen__pb2.ActionConfigStreamRequest.FromString,
response_serializer=arista_dot_action_dot_v1_dot_services_dot_gen__pb2.ActionConfigStreamResponse.SerializeToString,
),
'Subscribe': grpc.unary_stream_rpc_method_handler(
servicer.Subscribe,
request_deserializer=arista_dot_action_dot_v1_dot_services_dot_gen__pb2.ActionConfigStreamRequest.FromString,
response_serializer=arista_dot_action_dot_v1_dot_services_dot_gen__pb2.ActionConfigStreamResponse.SerializeToString,
),
'GetMeta': grpc.unary_unary_rpc_method_handler(
servicer.GetMeta,
request_deserializer=arista_dot_action_dot_v1_dot_services_dot_gen__pb2.ActionConfigStreamRequest.FromString,
response_serializer=arista_dot_action_dot_v1_dot_services_dot_gen__pb2.MetaResponse.SerializeToString,
),
'SubscribeMeta': grpc.unary_stream_rpc_method_handler(
servicer.SubscribeMeta,
request_deserializer=arista_dot_action_dot_v1_dot_services_dot_gen__pb2.ActionConfigStreamRequest.FromString,
response_serializer=arista_dot_action_dot_v1_dot_services_dot_gen__pb2.MetaResponse.SerializeToString,
),
'Set': grpc.unary_unary_rpc_method_handler(
servicer.Set,
request_deserializer=arista_dot_action_dot_v1_dot_services_dot_gen__pb2.ActionConfigSetRequest.FromString,
response_serializer=arista_dot_action_dot_v1_dot_services_dot_gen__pb2.ActionConfigSetResponse.SerializeToString,
),
'SetSome': grpc.unary_stream_rpc_method_handler(
servicer.SetSome,
request_deserializer=arista_dot_action_dot_v1_dot_services_dot_gen__pb2.ActionConfigSetSomeRequest.FromString,
response_serializer=arista_dot_action_dot_v1_dot_services_dot_gen__pb2.ActionConfigSetSomeResponse.SerializeToString,
),
'Delete': grpc.unary_unary_rpc_method_handler(
servicer.Delete,
request_deserializer=arista_dot_action_dot_v1_dot_services_dot_gen__pb2.ActionConfigDeleteRequest.FromString,
response_serializer=arista_dot_action_dot_v1_dot_services_dot_gen__pb2.ActionConfigDeleteResponse.SerializeToString,
),
'DeleteSome': grpc.unary_stream_rpc_method_handler(
servicer.DeleteSome,
request_deserializer=arista_dot_action_dot_v1_dot_services_dot_gen__pb2.ActionConfigDeleteSomeRequest.FromString,
response_serializer=arista_dot_action_dot_v1_dot_services_dot_gen__pb2.ActionConfigDeleteSomeResponse.SerializeToString,
),
'DeleteAll': grpc.unary_stream_rpc_method_handler(
servicer.DeleteAll,
request_deserializer=arista_dot_action_dot_v1_dot_services_dot_gen__pb2.ActionConfigDeleteAllRequest.FromString,
response_serializer=arista_dot_action_dot_v1_dot_services_dot_gen__pb2.ActionConfigDeleteAllResponse.SerializeToString,
),
}
generic_handler = grpc.method_handlers_generic_handler(
'arista.action.v1.ActionConfigService', rpc_method_handlers)
server.add_generic_rpc_handlers((generic_handler,))
server.add_registered_method_handlers('arista.action.v1.ActionConfigService', rpc_method_handlers)
# This class is part of an EXPERIMENTAL API.
[docs]
class ActionConfigService(object):
"""Missing associated documentation comment in .proto file."""
[docs]
@staticmethod
def GetOne(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,
'/arista.action.v1.ActionConfigService/GetOne',
arista_dot_action_dot_v1_dot_services_dot_gen__pb2.ActionConfigRequest.SerializeToString,
arista_dot_action_dot_v1_dot_services_dot_gen__pb2.ActionConfigResponse.FromString,
options,
channel_credentials,
insecure,
call_credentials,
compression,
wait_for_ready,
timeout,
metadata,
_registered_method=True)
[docs]
@staticmethod
def GetSome(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_stream(
request,
target,
'/arista.action.v1.ActionConfigService/GetSome',
arista_dot_action_dot_v1_dot_services_dot_gen__pb2.ActionConfigSomeRequest.SerializeToString,
arista_dot_action_dot_v1_dot_services_dot_gen__pb2.ActionConfigSomeResponse.FromString,
options,
channel_credentials,
insecure,
call_credentials,
compression,
wait_for_ready,
timeout,
metadata,
_registered_method=True)
[docs]
@staticmethod
def GetAll(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_stream(
request,
target,
'/arista.action.v1.ActionConfigService/GetAll',
arista_dot_action_dot_v1_dot_services_dot_gen__pb2.ActionConfigStreamRequest.SerializeToString,
arista_dot_action_dot_v1_dot_services_dot_gen__pb2.ActionConfigStreamResponse.FromString,
options,
channel_credentials,
insecure,
call_credentials,
compression,
wait_for_ready,
timeout,
metadata,
_registered_method=True)
[docs]
@staticmethod
def Subscribe(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_stream(
request,
target,
'/arista.action.v1.ActionConfigService/Subscribe',
arista_dot_action_dot_v1_dot_services_dot_gen__pb2.ActionConfigStreamRequest.SerializeToString,
arista_dot_action_dot_v1_dot_services_dot_gen__pb2.ActionConfigStreamResponse.FromString,
options,
channel_credentials,
insecure,
call_credentials,
compression,
wait_for_ready,
timeout,
metadata,
_registered_method=True)
[docs]
@staticmethod
def Set(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,
'/arista.action.v1.ActionConfigService/Set',
arista_dot_action_dot_v1_dot_services_dot_gen__pb2.ActionConfigSetRequest.SerializeToString,
arista_dot_action_dot_v1_dot_services_dot_gen__pb2.ActionConfigSetResponse.FromString,
options,
channel_credentials,
insecure,
call_credentials,
compression,
wait_for_ready,
timeout,
metadata,
_registered_method=True)
[docs]
@staticmethod
def SetSome(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_stream(
request,
target,
'/arista.action.v1.ActionConfigService/SetSome',
arista_dot_action_dot_v1_dot_services_dot_gen__pb2.ActionConfigSetSomeRequest.SerializeToString,
arista_dot_action_dot_v1_dot_services_dot_gen__pb2.ActionConfigSetSomeResponse.FromString,
options,
channel_credentials,
insecure,
call_credentials,
compression,
wait_for_ready,
timeout,
metadata,
_registered_method=True)
[docs]
@staticmethod
def Delete(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,
'/arista.action.v1.ActionConfigService/Delete',
arista_dot_action_dot_v1_dot_services_dot_gen__pb2.ActionConfigDeleteRequest.SerializeToString,
arista_dot_action_dot_v1_dot_services_dot_gen__pb2.ActionConfigDeleteResponse.FromString,
options,
channel_credentials,
insecure,
call_credentials,
compression,
wait_for_ready,
timeout,
metadata,
_registered_method=True)
[docs]
@staticmethod
def DeleteSome(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_stream(
request,
target,
'/arista.action.v1.ActionConfigService/DeleteSome',
arista_dot_action_dot_v1_dot_services_dot_gen__pb2.ActionConfigDeleteSomeRequest.SerializeToString,
arista_dot_action_dot_v1_dot_services_dot_gen__pb2.ActionConfigDeleteSomeResponse.FromString,
options,
channel_credentials,
insecure,
call_credentials,
compression,
wait_for_ready,
timeout,
metadata,
_registered_method=True)
[docs]
@staticmethod
def DeleteAll(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_stream(
request,
target,
'/arista.action.v1.ActionConfigService/DeleteAll',
arista_dot_action_dot_v1_dot_services_dot_gen__pb2.ActionConfigDeleteAllRequest.SerializeToString,
arista_dot_action_dot_v1_dot_services_dot_gen__pb2.ActionConfigDeleteAllResponse.FromString,
options,
channel_credentials,
insecure,
call_credentials,
compression,
wait_for_ready,
timeout,
metadata,
_registered_method=True)
[docs]
class ActionRunServiceStub(object):
"""Missing associated documentation comment in .proto file."""
def __init__(self, channel):
"""Constructor.
Args:
channel: A grpc.Channel.
"""
self.GetOne = channel.unary_unary(
'/arista.action.v1.ActionRunService/GetOne',
request_serializer=arista_dot_action_dot_v1_dot_services_dot_gen__pb2.ActionRunRequest.SerializeToString,
response_deserializer=arista_dot_action_dot_v1_dot_services_dot_gen__pb2.ActionRunResponse.FromString,
_registered_method=True)
self.GetSome = channel.unary_stream(
'/arista.action.v1.ActionRunService/GetSome',
request_serializer=arista_dot_action_dot_v1_dot_services_dot_gen__pb2.ActionRunSomeRequest.SerializeToString,
response_deserializer=arista_dot_action_dot_v1_dot_services_dot_gen__pb2.ActionRunSomeResponse.FromString,
_registered_method=True)
self.GetAll = channel.unary_stream(
'/arista.action.v1.ActionRunService/GetAll',
request_serializer=arista_dot_action_dot_v1_dot_services_dot_gen__pb2.ActionRunStreamRequest.SerializeToString,
response_deserializer=arista_dot_action_dot_v1_dot_services_dot_gen__pb2.ActionRunStreamResponse.FromString,
_registered_method=True)
self.Subscribe = channel.unary_stream(
'/arista.action.v1.ActionRunService/Subscribe',
request_serializer=arista_dot_action_dot_v1_dot_services_dot_gen__pb2.ActionRunStreamRequest.SerializeToString,
response_deserializer=arista_dot_action_dot_v1_dot_services_dot_gen__pb2.ActionRunStreamResponse.FromString,
_registered_method=True)
self.GetMeta = channel.unary_unary(
'/arista.action.v1.ActionRunService/GetMeta',
request_serializer=arista_dot_action_dot_v1_dot_services_dot_gen__pb2.ActionRunStreamRequest.SerializeToString,
response_deserializer=arista_dot_action_dot_v1_dot_services_dot_gen__pb2.MetaResponse.FromString,
_registered_method=True)
self.SubscribeMeta = channel.unary_stream(
'/arista.action.v1.ActionRunService/SubscribeMeta',
request_serializer=arista_dot_action_dot_v1_dot_services_dot_gen__pb2.ActionRunStreamRequest.SerializeToString,
response_deserializer=arista_dot_action_dot_v1_dot_services_dot_gen__pb2.MetaResponse.FromString,
_registered_method=True)
[docs]
class ActionRunServiceServicer(object):
"""Missing associated documentation comment in .proto file."""
[docs]
def GetOne(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!')
[docs]
def GetSome(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!')
[docs]
def GetAll(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!')
[docs]
def Subscribe(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!')
[docs]
def add_ActionRunServiceServicer_to_server(servicer, server):
rpc_method_handlers = {
'GetOne': grpc.unary_unary_rpc_method_handler(
servicer.GetOne,
request_deserializer=arista_dot_action_dot_v1_dot_services_dot_gen__pb2.ActionRunRequest.FromString,
response_serializer=arista_dot_action_dot_v1_dot_services_dot_gen__pb2.ActionRunResponse.SerializeToString,
),
'GetSome': grpc.unary_stream_rpc_method_handler(
servicer.GetSome,
request_deserializer=arista_dot_action_dot_v1_dot_services_dot_gen__pb2.ActionRunSomeRequest.FromString,
response_serializer=arista_dot_action_dot_v1_dot_services_dot_gen__pb2.ActionRunSomeResponse.SerializeToString,
),
'GetAll': grpc.unary_stream_rpc_method_handler(
servicer.GetAll,
request_deserializer=arista_dot_action_dot_v1_dot_services_dot_gen__pb2.ActionRunStreamRequest.FromString,
response_serializer=arista_dot_action_dot_v1_dot_services_dot_gen__pb2.ActionRunStreamResponse.SerializeToString,
),
'Subscribe': grpc.unary_stream_rpc_method_handler(
servicer.Subscribe,
request_deserializer=arista_dot_action_dot_v1_dot_services_dot_gen__pb2.ActionRunStreamRequest.FromString,
response_serializer=arista_dot_action_dot_v1_dot_services_dot_gen__pb2.ActionRunStreamResponse.SerializeToString,
),
'GetMeta': grpc.unary_unary_rpc_method_handler(
servicer.GetMeta,
request_deserializer=arista_dot_action_dot_v1_dot_services_dot_gen__pb2.ActionRunStreamRequest.FromString,
response_serializer=arista_dot_action_dot_v1_dot_services_dot_gen__pb2.MetaResponse.SerializeToString,
),
'SubscribeMeta': grpc.unary_stream_rpc_method_handler(
servicer.SubscribeMeta,
request_deserializer=arista_dot_action_dot_v1_dot_services_dot_gen__pb2.ActionRunStreamRequest.FromString,
response_serializer=arista_dot_action_dot_v1_dot_services_dot_gen__pb2.MetaResponse.SerializeToString,
),
}
generic_handler = grpc.method_handlers_generic_handler(
'arista.action.v1.ActionRunService', rpc_method_handlers)
server.add_generic_rpc_handlers((generic_handler,))
server.add_registered_method_handlers('arista.action.v1.ActionRunService', rpc_method_handlers)
# This class is part of an EXPERIMENTAL API.
[docs]
class ActionRunService(object):
"""Missing associated documentation comment in .proto file."""
[docs]
@staticmethod
def GetOne(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,
'/arista.action.v1.ActionRunService/GetOne',
arista_dot_action_dot_v1_dot_services_dot_gen__pb2.ActionRunRequest.SerializeToString,
arista_dot_action_dot_v1_dot_services_dot_gen__pb2.ActionRunResponse.FromString,
options,
channel_credentials,
insecure,
call_credentials,
compression,
wait_for_ready,
timeout,
metadata,
_registered_method=True)
[docs]
@staticmethod
def GetSome(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_stream(
request,
target,
'/arista.action.v1.ActionRunService/GetSome',
arista_dot_action_dot_v1_dot_services_dot_gen__pb2.ActionRunSomeRequest.SerializeToString,
arista_dot_action_dot_v1_dot_services_dot_gen__pb2.ActionRunSomeResponse.FromString,
options,
channel_credentials,
insecure,
call_credentials,
compression,
wait_for_ready,
timeout,
metadata,
_registered_method=True)
[docs]
@staticmethod
def GetAll(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_stream(
request,
target,
'/arista.action.v1.ActionRunService/GetAll',
arista_dot_action_dot_v1_dot_services_dot_gen__pb2.ActionRunStreamRequest.SerializeToString,
arista_dot_action_dot_v1_dot_services_dot_gen__pb2.ActionRunStreamResponse.FromString,
options,
channel_credentials,
insecure,
call_credentials,
compression,
wait_for_ready,
timeout,
metadata,
_registered_method=True)
[docs]
@staticmethod
def Subscribe(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_stream(
request,
target,
'/arista.action.v1.ActionRunService/Subscribe',
arista_dot_action_dot_v1_dot_services_dot_gen__pb2.ActionRunStreamRequest.SerializeToString,
arista_dot_action_dot_v1_dot_services_dot_gen__pb2.ActionRunStreamResponse.FromString,
options,
channel_credentials,
insecure,
call_credentials,
compression,
wait_for_ready,
timeout,
metadata,
_registered_method=True)
[docs]
class ActionRunConfigServiceStub(object):
"""Missing associated documentation comment in .proto file."""
def __init__(self, channel):
"""Constructor.
Args:
channel: A grpc.Channel.
"""
self.GetOne = channel.unary_unary(
'/arista.action.v1.ActionRunConfigService/GetOne',
request_serializer=arista_dot_action_dot_v1_dot_services_dot_gen__pb2.ActionRunConfigRequest.SerializeToString,
response_deserializer=arista_dot_action_dot_v1_dot_services_dot_gen__pb2.ActionRunConfigResponse.FromString,
_registered_method=True)
self.GetSome = channel.unary_stream(
'/arista.action.v1.ActionRunConfigService/GetSome',
request_serializer=arista_dot_action_dot_v1_dot_services_dot_gen__pb2.ActionRunConfigSomeRequest.SerializeToString,
response_deserializer=arista_dot_action_dot_v1_dot_services_dot_gen__pb2.ActionRunConfigSomeResponse.FromString,
_registered_method=True)
self.GetAll = channel.unary_stream(
'/arista.action.v1.ActionRunConfigService/GetAll',
request_serializer=arista_dot_action_dot_v1_dot_services_dot_gen__pb2.ActionRunConfigStreamRequest.SerializeToString,
response_deserializer=arista_dot_action_dot_v1_dot_services_dot_gen__pb2.ActionRunConfigStreamResponse.FromString,
_registered_method=True)
self.Subscribe = channel.unary_stream(
'/arista.action.v1.ActionRunConfigService/Subscribe',
request_serializer=arista_dot_action_dot_v1_dot_services_dot_gen__pb2.ActionRunConfigStreamRequest.SerializeToString,
response_deserializer=arista_dot_action_dot_v1_dot_services_dot_gen__pb2.ActionRunConfigStreamResponse.FromString,
_registered_method=True)
self.GetMeta = channel.unary_unary(
'/arista.action.v1.ActionRunConfigService/GetMeta',
request_serializer=arista_dot_action_dot_v1_dot_services_dot_gen__pb2.ActionRunConfigStreamRequest.SerializeToString,
response_deserializer=arista_dot_action_dot_v1_dot_services_dot_gen__pb2.MetaResponse.FromString,
_registered_method=True)
self.SubscribeMeta = channel.unary_stream(
'/arista.action.v1.ActionRunConfigService/SubscribeMeta',
request_serializer=arista_dot_action_dot_v1_dot_services_dot_gen__pb2.ActionRunConfigStreamRequest.SerializeToString,
response_deserializer=arista_dot_action_dot_v1_dot_services_dot_gen__pb2.MetaResponse.FromString,
_registered_method=True)
self.Set = channel.unary_unary(
'/arista.action.v1.ActionRunConfigService/Set',
request_serializer=arista_dot_action_dot_v1_dot_services_dot_gen__pb2.ActionRunConfigSetRequest.SerializeToString,
response_deserializer=arista_dot_action_dot_v1_dot_services_dot_gen__pb2.ActionRunConfigSetResponse.FromString,
_registered_method=True)
self.SetSome = channel.unary_stream(
'/arista.action.v1.ActionRunConfigService/SetSome',
request_serializer=arista_dot_action_dot_v1_dot_services_dot_gen__pb2.ActionRunConfigSetSomeRequest.SerializeToString,
response_deserializer=arista_dot_action_dot_v1_dot_services_dot_gen__pb2.ActionRunConfigSetSomeResponse.FromString,
_registered_method=True)
self.Delete = channel.unary_unary(
'/arista.action.v1.ActionRunConfigService/Delete',
request_serializer=arista_dot_action_dot_v1_dot_services_dot_gen__pb2.ActionRunConfigDeleteRequest.SerializeToString,
response_deserializer=arista_dot_action_dot_v1_dot_services_dot_gen__pb2.ActionRunConfigDeleteResponse.FromString,
_registered_method=True)
self.DeleteSome = channel.unary_stream(
'/arista.action.v1.ActionRunConfigService/DeleteSome',
request_serializer=arista_dot_action_dot_v1_dot_services_dot_gen__pb2.ActionRunConfigDeleteSomeRequest.SerializeToString,
response_deserializer=arista_dot_action_dot_v1_dot_services_dot_gen__pb2.ActionRunConfigDeleteSomeResponse.FromString,
_registered_method=True)
self.DeleteAll = channel.unary_stream(
'/arista.action.v1.ActionRunConfigService/DeleteAll',
request_serializer=arista_dot_action_dot_v1_dot_services_dot_gen__pb2.ActionRunConfigDeleteAllRequest.SerializeToString,
response_deserializer=arista_dot_action_dot_v1_dot_services_dot_gen__pb2.ActionRunConfigDeleteAllResponse.FromString,
_registered_method=True)
[docs]
class ActionRunConfigServiceServicer(object):
"""Missing associated documentation comment in .proto file."""
[docs]
def GetOne(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!')
[docs]
def GetSome(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!')
[docs]
def GetAll(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!')
[docs]
def Subscribe(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!')
[docs]
def Set(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!')
[docs]
def SetSome(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!')
[docs]
def Delete(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!')
[docs]
def DeleteSome(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!')
[docs]
def DeleteAll(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!')
[docs]
def add_ActionRunConfigServiceServicer_to_server(servicer, server):
rpc_method_handlers = {
'GetOne': grpc.unary_unary_rpc_method_handler(
servicer.GetOne,
request_deserializer=arista_dot_action_dot_v1_dot_services_dot_gen__pb2.ActionRunConfigRequest.FromString,
response_serializer=arista_dot_action_dot_v1_dot_services_dot_gen__pb2.ActionRunConfigResponse.SerializeToString,
),
'GetSome': grpc.unary_stream_rpc_method_handler(
servicer.GetSome,
request_deserializer=arista_dot_action_dot_v1_dot_services_dot_gen__pb2.ActionRunConfigSomeRequest.FromString,
response_serializer=arista_dot_action_dot_v1_dot_services_dot_gen__pb2.ActionRunConfigSomeResponse.SerializeToString,
),
'GetAll': grpc.unary_stream_rpc_method_handler(
servicer.GetAll,
request_deserializer=arista_dot_action_dot_v1_dot_services_dot_gen__pb2.ActionRunConfigStreamRequest.FromString,
response_serializer=arista_dot_action_dot_v1_dot_services_dot_gen__pb2.ActionRunConfigStreamResponse.SerializeToString,
),
'Subscribe': grpc.unary_stream_rpc_method_handler(
servicer.Subscribe,
request_deserializer=arista_dot_action_dot_v1_dot_services_dot_gen__pb2.ActionRunConfigStreamRequest.FromString,
response_serializer=arista_dot_action_dot_v1_dot_services_dot_gen__pb2.ActionRunConfigStreamResponse.SerializeToString,
),
'GetMeta': grpc.unary_unary_rpc_method_handler(
servicer.GetMeta,
request_deserializer=arista_dot_action_dot_v1_dot_services_dot_gen__pb2.ActionRunConfigStreamRequest.FromString,
response_serializer=arista_dot_action_dot_v1_dot_services_dot_gen__pb2.MetaResponse.SerializeToString,
),
'SubscribeMeta': grpc.unary_stream_rpc_method_handler(
servicer.SubscribeMeta,
request_deserializer=arista_dot_action_dot_v1_dot_services_dot_gen__pb2.ActionRunConfigStreamRequest.FromString,
response_serializer=arista_dot_action_dot_v1_dot_services_dot_gen__pb2.MetaResponse.SerializeToString,
),
'Set': grpc.unary_unary_rpc_method_handler(
servicer.Set,
request_deserializer=arista_dot_action_dot_v1_dot_services_dot_gen__pb2.ActionRunConfigSetRequest.FromString,
response_serializer=arista_dot_action_dot_v1_dot_services_dot_gen__pb2.ActionRunConfigSetResponse.SerializeToString,
),
'SetSome': grpc.unary_stream_rpc_method_handler(
servicer.SetSome,
request_deserializer=arista_dot_action_dot_v1_dot_services_dot_gen__pb2.ActionRunConfigSetSomeRequest.FromString,
response_serializer=arista_dot_action_dot_v1_dot_services_dot_gen__pb2.ActionRunConfigSetSomeResponse.SerializeToString,
),
'Delete': grpc.unary_unary_rpc_method_handler(
servicer.Delete,
request_deserializer=arista_dot_action_dot_v1_dot_services_dot_gen__pb2.ActionRunConfigDeleteRequest.FromString,
response_serializer=arista_dot_action_dot_v1_dot_services_dot_gen__pb2.ActionRunConfigDeleteResponse.SerializeToString,
),
'DeleteSome': grpc.unary_stream_rpc_method_handler(
servicer.DeleteSome,
request_deserializer=arista_dot_action_dot_v1_dot_services_dot_gen__pb2.ActionRunConfigDeleteSomeRequest.FromString,
response_serializer=arista_dot_action_dot_v1_dot_services_dot_gen__pb2.ActionRunConfigDeleteSomeResponse.SerializeToString,
),
'DeleteAll': grpc.unary_stream_rpc_method_handler(
servicer.DeleteAll,
request_deserializer=arista_dot_action_dot_v1_dot_services_dot_gen__pb2.ActionRunConfigDeleteAllRequest.FromString,
response_serializer=arista_dot_action_dot_v1_dot_services_dot_gen__pb2.ActionRunConfigDeleteAllResponse.SerializeToString,
),
}
generic_handler = grpc.method_handlers_generic_handler(
'arista.action.v1.ActionRunConfigService', rpc_method_handlers)
server.add_generic_rpc_handlers((generic_handler,))
server.add_registered_method_handlers('arista.action.v1.ActionRunConfigService', rpc_method_handlers)
# This class is part of an EXPERIMENTAL API.
[docs]
class ActionRunConfigService(object):
"""Missing associated documentation comment in .proto file."""
[docs]
@staticmethod
def GetOne(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,
'/arista.action.v1.ActionRunConfigService/GetOne',
arista_dot_action_dot_v1_dot_services_dot_gen__pb2.ActionRunConfigRequest.SerializeToString,
arista_dot_action_dot_v1_dot_services_dot_gen__pb2.ActionRunConfigResponse.FromString,
options,
channel_credentials,
insecure,
call_credentials,
compression,
wait_for_ready,
timeout,
metadata,
_registered_method=True)
[docs]
@staticmethod
def GetSome(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_stream(
request,
target,
'/arista.action.v1.ActionRunConfigService/GetSome',
arista_dot_action_dot_v1_dot_services_dot_gen__pb2.ActionRunConfigSomeRequest.SerializeToString,
arista_dot_action_dot_v1_dot_services_dot_gen__pb2.ActionRunConfigSomeResponse.FromString,
options,
channel_credentials,
insecure,
call_credentials,
compression,
wait_for_ready,
timeout,
metadata,
_registered_method=True)
[docs]
@staticmethod
def GetAll(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_stream(
request,
target,
'/arista.action.v1.ActionRunConfigService/GetAll',
arista_dot_action_dot_v1_dot_services_dot_gen__pb2.ActionRunConfigStreamRequest.SerializeToString,
arista_dot_action_dot_v1_dot_services_dot_gen__pb2.ActionRunConfigStreamResponse.FromString,
options,
channel_credentials,
insecure,
call_credentials,
compression,
wait_for_ready,
timeout,
metadata,
_registered_method=True)
[docs]
@staticmethod
def Subscribe(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_stream(
request,
target,
'/arista.action.v1.ActionRunConfigService/Subscribe',
arista_dot_action_dot_v1_dot_services_dot_gen__pb2.ActionRunConfigStreamRequest.SerializeToString,
arista_dot_action_dot_v1_dot_services_dot_gen__pb2.ActionRunConfigStreamResponse.FromString,
options,
channel_credentials,
insecure,
call_credentials,
compression,
wait_for_ready,
timeout,
metadata,
_registered_method=True)
[docs]
@staticmethod
def Set(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,
'/arista.action.v1.ActionRunConfigService/Set',
arista_dot_action_dot_v1_dot_services_dot_gen__pb2.ActionRunConfigSetRequest.SerializeToString,
arista_dot_action_dot_v1_dot_services_dot_gen__pb2.ActionRunConfigSetResponse.FromString,
options,
channel_credentials,
insecure,
call_credentials,
compression,
wait_for_ready,
timeout,
metadata,
_registered_method=True)
[docs]
@staticmethod
def SetSome(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_stream(
request,
target,
'/arista.action.v1.ActionRunConfigService/SetSome',
arista_dot_action_dot_v1_dot_services_dot_gen__pb2.ActionRunConfigSetSomeRequest.SerializeToString,
arista_dot_action_dot_v1_dot_services_dot_gen__pb2.ActionRunConfigSetSomeResponse.FromString,
options,
channel_credentials,
insecure,
call_credentials,
compression,
wait_for_ready,
timeout,
metadata,
_registered_method=True)
[docs]
@staticmethod
def Delete(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,
'/arista.action.v1.ActionRunConfigService/Delete',
arista_dot_action_dot_v1_dot_services_dot_gen__pb2.ActionRunConfigDeleteRequest.SerializeToString,
arista_dot_action_dot_v1_dot_services_dot_gen__pb2.ActionRunConfigDeleteResponse.FromString,
options,
channel_credentials,
insecure,
call_credentials,
compression,
wait_for_ready,
timeout,
metadata,
_registered_method=True)
[docs]
@staticmethod
def DeleteSome(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_stream(
request,
target,
'/arista.action.v1.ActionRunConfigService/DeleteSome',
arista_dot_action_dot_v1_dot_services_dot_gen__pb2.ActionRunConfigDeleteSomeRequest.SerializeToString,
arista_dot_action_dot_v1_dot_services_dot_gen__pb2.ActionRunConfigDeleteSomeResponse.FromString,
options,
channel_credentials,
insecure,
call_credentials,
compression,
wait_for_ready,
timeout,
metadata,
_registered_method=True)
[docs]
@staticmethod
def DeleteAll(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_stream(
request,
target,
'/arista.action.v1.ActionRunConfigService/DeleteAll',
arista_dot_action_dot_v1_dot_services_dot_gen__pb2.ActionRunConfigDeleteAllRequest.SerializeToString,
arista_dot_action_dot_v1_dot_services_dot_gen__pb2.ActionRunConfigDeleteAllResponse.FromString,
options,
channel_credentials,
insecure,
call_credentials,
compression,
wait_for_ready,
timeout,
metadata,
_registered_method=True)