Skip to content

Commit bcc7bc5

Browse files
author
Jon Wayne Parrott
committed
Move to google-cloud
Change-Id: I1b58d2c77dfd64f3e983e393a9406179bd0e199c
1 parent 0e8995a commit bcc7bc5

Some content is hidden

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

57 files changed

+59
-60
lines changed

appengine/flexible/datastore/main.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
import socket
1919

2020
from flask import Flask, request
21-
from gcloud import datastore
21+
from google.cloud import datastore
2222

2323

2424
app = Flask(__name__)
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
Flask==0.11.1
2-
gcloud==0.18.3
2+
google-cloud==0.19.0
33
gunicorn==19.6.0
44
oauth2client==3.0.0

appengine/flexible/endpoints/requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Flask==0.11.1
22
flask-cors==3.0.2
33
gunicorn==19.6.0
4-
gcloud==0.18.3
4+
google-cloud==0.19.0
55
six==1.10.0
66
pyyaml==3.12
77
requests==2.11.1

appengine/flexible/pubsub/main.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
import os
2020

2121
from flask import current_app, Flask, render_template, request
22-
from gcloud import pubsub
22+
from google.cloud import pubsub
2323

2424

2525
app = Flask(__name__)
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
Flask==0.11.1
2-
gcloud==0.18.3
2+
google-cloud==0.19.0
33
gunicorn==19.6.0
44
oauth2client==3.0.0

appengine/flexible/storage/main.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
import os
1818

1919
from flask import Flask, request
20-
from gcloud import storage
20+
from google.cloud import storage
2121

2222
# [start config]
2323
app = Flask(__name__)
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
Flask==0.11.1
2-
gcloud==0.18.3
2+
google-cloud==0.19.0
33
gunicorn==19.6.0

bigquery/cloud-client/async_query.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
import time
2828
import uuid
2929

30-
from gcloud import bigquery
30+
from google.cloud import bigquery
3131

3232

3333
def async_query(query):

bigquery/cloud-client/export_data_to_gcs.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
import time
3030
import uuid
3131

32-
from gcloud import bigquery
32+
from google.cloud import bigquery
3333

3434

3535
def export_data_to_gcs(dataset_name, table_name, destination):

bigquery/cloud-client/load_data_from_file.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727

2828
import argparse
2929
import time
30-
from gcloud import bigquery
30+
from google.cloud import bigquery
3131

3232

3333
def load_data_from_file(dataset_name, table_name, source_file_name):

bigquery/cloud-client/load_data_from_gcs.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
import time
3030
import uuid
3131

32-
from gcloud import bigquery
32+
from google.cloud import bigquery
3333

3434

3535
def load_data_from_gcs(dataset_name, table_name, source):
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
gcloud==0.18.3
1+
google-cloud==0.19.0

bigquery/cloud-client/snippets.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
import time
2929
import uuid
3030

31-
from gcloud import bigquery
31+
from google.cloud import bigquery
3232
import gcloud.bigquery.job
3333

3434

bigquery/cloud-client/snippets_test.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
1414

15-
from gcloud import bigquery
15+
from google.cloud import bigquery
1616
import pytest
1717

1818
import snippets

bigquery/cloud-client/stream_data.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
import json
3030
from pprint import pprint
3131

32-
from gcloud import bigquery
32+
from google.cloud import bigquery
3333

3434

3535
def stream_data(dataset_name, table_name, json_data):

bigquery/cloud-client/sync_query.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
import argparse
2727

2828
# [START sync_query]
29-
from gcloud import bigquery
29+
from google.cloud import bigquery
3030

3131

3232
def sync_query(query):

bigtable/hello/main.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626

2727
import argparse
2828

29-
from gcloud import bigtable
29+
from google.cloud import bigtable
3030

3131

3232
def main(project_id, instance_id, table_id):

bigtable/hello/requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
gcloud[grpc]==0.18.3
1+
google-cloud==0.19.0

bigtable/hello_happybase/main.py

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

2727
import argparse
2828

29-
from gcloud import bigtable
30-
from gcloud.bigtable import happybase
29+
from google.cloud import bigtable
30+
from google.cloud.bigtable import happybase
3131

3232

3333
def main(project_id, instance_id, table_name):
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
gcloud[grpc]==0.18.3
1+
google=cloud==0.19.0

blog/introduction_to_data_models_in_cloud_datastore/blog.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
import argparse
1515
import datetime
1616

17-
from gcloud import datastore
17+
from google.cloud import datastore
1818

1919

2020
def path_to_key(datastore, path):
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
gcloud==0.18.3
1+
google-cloud==0.19.0

blog/introduction_to_data_models_in_cloud_datastore/wiki.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
import argparse
1515
import datetime
1616

17-
from gcloud import datastore
17+
from google.cloud import datastore
1818

1919

2020
def path_to_key(datastore, path):

dataproc/create_cluster_and_submit_job.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
import os
1818

1919
from apiclient import discovery
20-
from gcloud import storage
20+
from google.cloud import storage
2121
from oauth2client.client import GoogleCredentials
2222

2323
# Currently only the "global" region is supported

dataproc/requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
google-api-python-client==1.5.3
2-
gcloud==0.18.3
2+
google-cloud==0.19.0

datastore/api/requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
gcloud==0.18.3
1+
google-cloud==0.19.0

datastore/api/snippets.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
from pprint import pprint
1818

1919
import gcloud
20-
from gcloud import datastore
20+
from google.cloud import datastore
2121

2222

2323
def incomplete_key(client):

datastore/api/snippets_test.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
# See the License for the specific language governing permissions and
1212
# limitations under the License.
1313

14-
from gcloud import datastore
14+
from google.cloud import datastore
1515
from gcp.testing import eventually_consistent
1616
from gcp.testing.flaky import flaky
1717
import pytest

datastore/api/tasks.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
import datetime
1616

1717
# [START build_service]
18-
from gcloud import datastore
18+
from google.cloud import datastore
1919

2020

2121
def create_client(project_id):

datastore/api/tasks_test.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
# See the License for the specific language governing permissions and
1212
# limitations under the License.
1313

14-
from gcloud import datastore
14+
from google.cloud import datastore
1515
from gcp.testing import eventually_consistent
1616
from gcp.testing.flaky import flaky
1717
import pytest

dns/api/main.py

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

1414
import argparse
1515

16-
from gcloud import dns
17-
from gcloud.exceptions import NotFound
16+
from google.cloud import dns
17+
from google.cloud.exceptions import NotFound
1818

1919

2020
# [START create_zone]

dns/api/main_test.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
# See the License for the specific language governing permissions and
1212
# limitations under the License.
1313

14-
from gcloud import dns
14+
from google.cloud import dns
1515
from gcp.testing.flaky import flaky
1616
import pytest
1717

dns/api/requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
gcloud==0.18.3
1+
google-cloud==0.19.0

logging/cloud-client/export.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616

1717
import argparse
1818

19-
from gcloud import logging
19+
from google.cloud import logging
2020

2121

2222
def list_sinks():

logging/cloud-client/export_test.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
import random
1616
import string
1717

18-
from gcloud import logging
18+
from google.cloud import logging
1919
from gcp.testing import eventually_consistent
2020
import pytest
2121

logging/cloud-client/requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
gcloud==0.18.3
1+
google-cloud==0.19.0

logging/cloud-client/snippets.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323

2424
import argparse
2525

26-
from gcloud import logging
26+
from google.cloud import logging
2727

2828

2929
def write_entry(logger_name):

logging/cloud-client/snippets_test.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
1414

15-
from gcloud import logging
15+
from google.cloud import logging
1616
from gcp.testing import eventually_consistent
1717
import pytest
1818

pubsub/cloud-client/iam.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323

2424
import argparse
2525

26-
from gcloud import pubsub
26+
from google.cloud import pubsub
2727

2828

2929
def get_topic_policy(topic_name):

pubsub/cloud-client/iam_test.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
1414

15-
from gcloud import pubsub
15+
from google.cloud import pubsub
1616
import pytest
1717

1818
import iam

pubsub/cloud-client/publisher.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323

2424
import argparse
2525

26-
from gcloud import pubsub
26+
from google.cloud import pubsub
2727

2828

2929
def list_topics():

pubsub/cloud-client/publisher_test.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
1414

15-
from gcloud import pubsub
15+
from google.cloud import pubsub
1616
from gcp.testing import eventually_consistent
1717
import pytest
1818

pubsub/cloud-client/requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
gcloud==0.18.3
1+
google-cloud==0.19.0

pubsub/cloud-client/subscriber.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323

2424
import argparse
2525

26-
from gcloud import pubsub
26+
from google.cloud import pubsub
2727

2828

2929
def list_subscriptions(topic_name):

pubsub/cloud-client/subscriber_test.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
1414

15-
from gcloud import pubsub
15+
from google.cloud import pubsub
1616
from gcp.testing import eventually_consistent
1717
import pytest
1818

requirements-dev.txt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,7 @@ Flask-SQLAlchemy==2.1
1111
Flask==0.11.1
1212
fluent-logger==0.4.4
1313
funcsigs==1.0.2
14-
gcloud==0.18.3
15-
gcloud[grpc]==0.18.3
14+
google-cloud==0.19.0
1615
google-api-python-client==1.5.3
1716
grpc-google-cloud-speech-v1beta1==1.0.1
1817
grpcio==1.0.0

speech/grpc/requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
gcloud==0.18.3
1+
google-cloud==0.19.0
22
grpcio==1.0.0
33
PyAudio==0.2.9
44
grpc-google-cloud-speech-v1beta1==1.0.1

speech/grpc/transcribe.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717

1818
import argparse
1919

20-
from gcloud.credentials import get_credentials
20+
from google.cloud.credentials import get_credentials
2121
from google.cloud.speech.v1beta1 import cloud_speech_pb2 as cloud_speech
2222
from grpc.beta import implementations
2323

speech/grpc/transcribe_async.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
import argparse
2020
import time
2121

22-
from gcloud.credentials import get_credentials
22+
from google.cloud.credentials import get_credentials
2323
from google.cloud.speech.v1beta1 import cloud_speech_pb2
2424
from google.longrunning import operations_grpc_pb2
2525
from grpc.beta import implementations

speech/grpc/transcribe_streaming.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
import signal
2222
import threading
2323

24-
from gcloud import credentials
24+
from google.cloud import credentials
2525
from google.cloud.speech.v1beta1 import cloud_speech_pb2 as cloud_speech
2626
from google.rpc import code_pb2
2727
from grpc.beta import implementations

storage/cloud-client/acl.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323

2424
import argparse
2525

26-
from gcloud import storage
26+
from google.cloud import storage
2727

2828

2929
def print_bucket_acl(bucket_name):

0 commit comments

Comments
 (0)