Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 59ad58a

Browse files
Sourabh Bajajaaltay
authored andcommitted
Rename google_cloud_dataflow and google_cloud_platform
1 parent cad84c8 commit 59ad58a

59 files changed

Lines changed: 94 additions & 93 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

sdks/python/apache_beam/examples/cookbook/bigquery_schema.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ def run(argv=None):
4444

4545
p = beam.Pipeline(argv=pipeline_args)
4646

47-
from apache_beam.io.google_cloud_platform.internal.clients import bigquery # pylint: disable=wrong-import-order, wrong-import-position
47+
from apache_beam.io.gcp.internal.clients import bigquery # pylint: disable=wrong-import-order, wrong-import-position
4848

4949
table_schema = bigquery.TableSchema()
5050

sdks/python/apache_beam/examples/cookbook/datastore_wordcount.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,8 +72,8 @@
7272

7373
import apache_beam as beam
7474
from apache_beam.io import ReadFromText
75-
from apache_beam.io.google_cloud_platform.datastore.v1.datastoreio import ReadFromDatastore
76-
from apache_beam.io.google_cloud_platform.datastore.v1.datastoreio import WriteToDatastore
75+
from apache_beam.io.gcp.datastore.v1.datastoreio import ReadFromDatastore
76+
from apache_beam.io.gcp.datastore.v1.datastoreio import WriteToDatastore
7777
from apache_beam.metrics import Metrics
7878
from apache_beam.utils.pipeline_options import GoogleCloudOptions
7979
from apache_beam.utils.pipeline_options import PipelineOptions

sdks/python/apache_beam/examples/snippets/snippets.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -873,8 +873,8 @@ def model_datastoreio():
873873
import googledatastore
874874
import apache_beam as beam
875875
from apache_beam.utils.pipeline_options import PipelineOptions
876-
from apache_beam.io.google_cloud_platform.datastore.v1.datastoreio import ReadFromDatastore
877-
from apache_beam.io.google_cloud_platform.datastore.v1.datastoreio import WriteToDatastore
876+
from apache_beam.io.gcp.datastore.v1.datastoreio import ReadFromDatastore
877+
from apache_beam.io.gcp.datastore.v1.datastoreio import WriteToDatastore
878878

879879
project = 'my_project'
880880
kind = 'my_kind'

sdks/python/apache_beam/internal/google_cloud_platform/__init__.py renamed to sdks/python/apache_beam/internal/gcp/__init__.py

File renamed without changes.

sdks/python/apache_beam/internal/google_cloud_platform/json_value.py renamed to sdks/python/apache_beam/internal/gcp/json_value.py

File renamed without changes.

sdks/python/apache_beam/internal/google_cloud_platform/json_value_test.py renamed to sdks/python/apache_beam/internal/gcp/json_value_test.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@
1919

2020
import unittest
2121

22-
from apache_beam.internal.google_cloud_platform.json_value import from_json_value
23-
from apache_beam.internal.google_cloud_platform.json_value import to_json_value
22+
from apache_beam.internal.gcp.json_value import from_json_value
23+
from apache_beam.internal.gcp.json_value import to_json_value
2424

2525

2626
# Protect against environments where apitools library is not available.

sdks/python/apache_beam/io/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,8 @@
3131
# Protect against environments where clientslibrary is not available.
3232
# pylint: disable=wrong-import-order, wrong-import-position
3333
try:
34-
from apache_beam.io.google_cloud_platform.bigquery import *
35-
from apache_beam.io.google_cloud_platform.pubsub import *
34+
from apache_beam.io.gcp.bigquery import *
35+
from apache_beam.io.gcp.pubsub import *
3636
except ImportError:
3737
pass
3838
# pylint: enable=wrong-import-order, wrong-import-position

sdks/python/apache_beam/io/fileio.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
# Protect against environments where apitools library is not available.
3838
# pylint: disable=wrong-import-order, wrong-import-position
3939
try:
40-
from apache_beam.io.google_cloud_platform import gcsio
40+
from apache_beam.io.gcp import gcsio
4141
DEFAULT_READ_BUFFER_SIZE = gcsio.DEFAULT_READ_BUFFER_SIZE
4242
MAX_BATCH_OPERATION_SIZE = gcsio.MAX_BATCH_OPERATION_SIZE
4343
except ImportError:
File renamed without changes.

sdks/python/apache_beam/io/google_cloud_platform/bigquery.py renamed to sdks/python/apache_beam/io/gcp/bigquery.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -112,13 +112,13 @@
112112

113113
from apache_beam import coders
114114
from apache_beam.internal import auth
115-
from apache_beam.internal.google_cloud_platform.json_value import from_json_value
116-
from apache_beam.internal.google_cloud_platform.json_value import to_json_value
117-
from apache_beam.runners.google_cloud_dataflow.native_io import iobase as dataflow_io
115+
from apache_beam.internal.gcp.json_value import from_json_value
116+
from apache_beam.internal.gcp.json_value import to_json_value
117+
from apache_beam.runners.dataflow.native_io import iobase as dataflow_io
118118
from apache_beam.transforms.display import DisplayDataItem
119119
from apache_beam.utils import retry
120120
from apache_beam.utils.pipeline_options import GoogleCloudOptions
121-
from apache_beam.io.google_cloud_platform.internal.clients import bigquery
121+
from apache_beam.io.gcp.internal.clients import bigquery
122122

123123
# Protect against environments where bigquery library is not available.
124124
# pylint: disable=wrong-import-order, wrong-import-position

0 commit comments

Comments
 (0)