Beispiel #1
0
 def __init__(self, *args, **kwargs):
     api = kwargs.get("api") or get_default_api()
     self.project_number = api.project_number()
     http = api.http()
     self._gbq = api.bigquery_api(http)
     self._gcs = api.storage_api(http)
     super(BqQueryTask, self).__init__(*args, **kwargs)
Beispiel #2
0
 def __init__(self, api=None):
     api = api or get_default_api()
     self._gcs = api.storage_api()
     self._bucket = api.bucket()
Beispiel #3
0
 def __init__(self, *args, **kwargs):
     api = kwargs.get("api") or get_default_api()
     self._gcs = api.storage_api()
     super(MarkerTask, self).__init__(*args, **kwargs)
Beispiel #4
0
 def __init__(self, *args, **kwargs):
     self.api = kwargs.get("api") or get_default_api()
     http = self.api.http()
     self._gbq = self.api.bigquery_api(http)
     self._gcs = self.api.storage_api(http)
     super(BqTableLoadTask, self).__init__(*args, **kwargs)
Beispiel #5
0
 def __init__(self, *args, **kwargs):
     self.api = kwargs.get("api") or get_default_api()
     http = self.api.http()
     self.df = self.api.dataflow_api(http)
     self.gcs = self.api.storage_api(http)
     super(DataFlowJavaTask, self).__init__(*args, **kwargs)