Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Generate Python Code from plugin-pb #101

Merged
merged 1 commit into from
Jul 30, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions cloudquery/plugin_v3/plugin_pb2.py

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

12 changes: 6 additions & 6 deletions cloudquery/plugin_v3/plugin_pb2_grpc.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ def __init__(self, channel):
request_serializer=cloudquery_dot_plugin__v3_dot_plugin__pb2.Transform.Request.SerializeToString,
response_deserializer=cloudquery_dot_plugin__v3_dot_plugin__pb2.Transform.Response.FromString,
_registered_method=True)
self.TransformSchema = channel.stream_stream(
self.TransformSchema = channel.unary_unary(
'/cloudquery.plugin.v3.Plugin/TransformSchema',
request_serializer=cloudquery_dot_plugin__v3_dot_plugin__pb2.TransformSchema.Request.SerializeToString,
response_deserializer=cloudquery_dot_plugin__v3_dot_plugin__pb2.TransformSchema.Response.FromString,
Expand Down Expand Up @@ -170,7 +170,7 @@ def Transform(self, request_iterator, context):
context.set_details('Method not implemented!')
raise NotImplementedError('Method not implemented!')

def TransformSchema(self, request_iterator, context):
def TransformSchema(self, request, context):
"""Transform schemas.
"""
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
Expand Down Expand Up @@ -239,7 +239,7 @@ def add_PluginServicer_to_server(servicer, server):
request_deserializer=cloudquery_dot_plugin__v3_dot_plugin__pb2.Transform.Request.FromString,
response_serializer=cloudquery_dot_plugin__v3_dot_plugin__pb2.Transform.Response.SerializeToString,
),
'TransformSchema': grpc.stream_stream_rpc_method_handler(
'TransformSchema': grpc.unary_unary_rpc_method_handler(
servicer.TransformSchema,
request_deserializer=cloudquery_dot_plugin__v3_dot_plugin__pb2.TransformSchema.Request.FromString,
response_serializer=cloudquery_dot_plugin__v3_dot_plugin__pb2.TransformSchema.Response.SerializeToString,
Expand Down Expand Up @@ -509,7 +509,7 @@ def Transform(request_iterator,
_registered_method=True)

@staticmethod
def TransformSchema(request_iterator,
def TransformSchema(request,
target,
options=(),
channel_credentials=None,
Expand All @@ -519,8 +519,8 @@ def TransformSchema(request_iterator,
wait_for_ready=None,
timeout=None,
metadata=None):
return grpc.experimental.stream_stream(
request_iterator,
return grpc.experimental.unary_unary(
request,
target,
'/cloudquery.plugin.v3.Plugin/TransformSchema',
cloudquery_dot_plugin__v3_dot_plugin__pb2.TransformSchema.Request.SerializeToString,
Expand Down