You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by GitBox <gi...@apache.org> on 2019/02/26 21:22:11 UTC
[GitHub] mik-laj commented on a change in pull request #4780: [AIRFLOW-3960]
Create Google Cloud Speech operators
mik-laj commented on a change in pull request #4780: [AIRFLOW-3960] Create Google Cloud Speech operators
URL: https://github.com/apache/airflow/pull/4780#discussion_r260492853
##########
File path: airflow/contrib/hooks/gcp_speech_to_text_hook.py
##########
@@ -0,0 +1,60 @@
+# -*- coding: utf-8 -*-
+#
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements. See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership. The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied. See the License for the
+# specific language governing permissions and limitations
+# under the License.
+
+from google.cloud.speech_v1 import SpeechClient
+
+from airflow.contrib.hooks.gcp_api_base_hook import GoogleCloudBaseHook
+
+
+class GCPSpeechToTextHook(GoogleCloudBaseHook):
Review comment:
All hooks (except `GoogleCloudBaseHook`) for the GCP platform have very limited descriptions. What do you think should be included in this description? I am interested in the development of integration with the GCP platform and your opinion is valuable to me. What parts should the description consist of?
https://github.com/apache/airflow/blob/master/airflow/contrib/hooks/gcp_vision_hook.py#L87-L90
https://github.com/apache/airflow/blob/master/airflow/contrib/hooks/gcp_transfer_hook.py#L33-L37
https://github.com/apache/airflow/blob/master/airflow/contrib/hooks/gcp_spanner_hook.py#L27-L34
https://github.com/apache/airflow/blob/master/airflow/contrib/hooks/gcp_pubsub_hook.py#L40-L45
https://github.com/apache/airflow/blob/master/airflow/contrib/hooks/gcp_mlengine_hook.py#L48-L51
https://github.com/apache/airflow/blob/master/airflow/contrib/hooks/gcp_kms_hook.py#L38-L42
https://github.com/apache/airflow/blob/master/airflow/contrib/hooks/gcp_function_hook.py#L36-L42
https://github.com/apache/airflow/blob/master/airflow/contrib/hooks/gcp_function_hook.py#L36-L42
https://github.com/apache/airflow/blob/master/airflow/contrib/hooks/gcp_dataproc_hook.py#L206-L213
https://github.com/apache/airflow/blob/master/airflow/contrib/hooks/gcp_dataflow_hook.py#L176-L178
https://github.com/apache/airflow/blob/master/airflow/contrib/hooks/gcp_container_hook.py#L37-L42
https://github.com/apache/airflow/blob/master/airflow/contrib/hooks/gcp_compute_hook.py#L41-L46
https://github.com/apache/airflow/blob/master/airflow/contrib/hooks/gcp_bigtable_hook.py#L28-L34
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services