You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat: add remote function options to routines (#1558)
* feat: add remote function options This PR adds support for defining routines as remote UDFs. * basic integration test * augment tests * rename prop * augment tests * more testing * cover shenanigans --------- Co-authored-by: Tim Swast <swast@google.com>
"""Configuration options for controlling remote BigQuery functions."""
602
+
603
+
_PROPERTY_TO_API_FIELD= {
604
+
"endpoint": "endpoint",
605
+
"connection": "connection",
606
+
"max_batching_rows": "maxBatchingRows",
607
+
"user_defined_context": "userDefinedContext",
608
+
}
609
+
610
+
def__init__(
611
+
self,
612
+
endpoint=None,
613
+
connection=None,
614
+
max_batching_rows=None,
615
+
user_defined_context=None,
616
+
_properties=None,
617
+
) ->None:
618
+
if_propertiesisNone:
619
+
_properties= {}
620
+
self._properties=_properties
621
+
622
+
ifendpointisnotNone:
623
+
self.endpoint=endpoint
624
+
ifconnectionisnotNone:
625
+
self.connection=connection
626
+
ifmax_batching_rowsisnotNone:
627
+
self.max_batching_rows=max_batching_rows
628
+
ifuser_defined_contextisnotNone:
629
+
self.user_defined_context=user_defined_context
630
+
631
+
@property
632
+
defconnection(self):
633
+
"""string: Fully qualified name of the user-provided connection object which holds the authentication information to send requests to the remote service.
634
+
635
+
Format is "projects/{projectId}/locations/{locationId}/connections/{connectionId}"
0 commit comments