Skip to content

Commit

Permalink
Move to google-cloud
Browse files Browse the repository at this point in the history
Change-Id: I1b58d2c77dfd64f3e983e393a9406179bd0e199c
  • Loading branch information
Jon Wayne Parrott committed Sep 26, 2016
1 parent fc14015 commit f82b80e
Show file tree
Hide file tree
Showing 57 changed files with 59 additions and 60 deletions.
2 changes: 1 addition & 1 deletion appengine/flexible/datastore/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
import socket

from flask import Flask, request
from gcloud import datastore
from google.cloud import datastore


app = Flask(__name__)
Expand Down
2 changes: 1 addition & 1 deletion appengine/flexible/datastore/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Flask==0.11.1
gcloud==0.18.3
google-cloud==0.19.0
gunicorn==19.6.0
oauth2client==3.0.0
2 changes: 1 addition & 1 deletion appengine/flexible/endpoints/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Flask==0.11.1
flask-cors==3.0.2
gunicorn==19.6.0
gcloud==0.18.3
google-cloud==0.19.0
six==1.10.0
pyyaml==3.12
requests==2.11.1
Expand Down
2 changes: 1 addition & 1 deletion appengine/flexible/pubsub/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
import os

from flask import current_app, Flask, render_template, request
from gcloud import pubsub
from google.cloud import pubsub


app = Flask(__name__)
Expand Down
2 changes: 1 addition & 1 deletion appengine/flexible/pubsub/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Flask==0.11.1
gcloud==0.18.3
google-cloud==0.19.0
gunicorn==19.6.0
oauth2client==3.0.0
2 changes: 1 addition & 1 deletion appengine/flexible/storage/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
import os

from flask import Flask, request
from gcloud import storage
from google.cloud import storage

# [start config]
app = Flask(__name__)
Expand Down
2 changes: 1 addition & 1 deletion appengine/flexible/storage/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
Flask==0.11.1
gcloud==0.18.3
google-cloud==0.19.0
gunicorn==19.6.0
2 changes: 1 addition & 1 deletion bigquery/cloud-client/async_query.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
import time
import uuid

from gcloud import bigquery
from google.cloud import bigquery


def async_query(query):
Expand Down
2 changes: 1 addition & 1 deletion bigquery/cloud-client/export_data_to_gcs.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
import time
import uuid

from gcloud import bigquery
from google.cloud import bigquery


def export_data_to_gcs(dataset_name, table_name, destination):
Expand Down
2 changes: 1 addition & 1 deletion bigquery/cloud-client/load_data_from_file.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@

import argparse
import time
from gcloud import bigquery
from google.cloud import bigquery


def load_data_from_file(dataset_name, table_name, source_file_name):
Expand Down
2 changes: 1 addition & 1 deletion bigquery/cloud-client/load_data_from_gcs.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
import time
import uuid

from gcloud import bigquery
from google.cloud import bigquery


def load_data_from_gcs(dataset_name, table_name, source):
Expand Down
2 changes: 1 addition & 1 deletion bigquery/cloud-client/requirements.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
gcloud==0.18.3
google-cloud==0.19.0
2 changes: 1 addition & 1 deletion bigquery/cloud-client/snippets.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
import time
import uuid

from gcloud import bigquery
from google.cloud import bigquery
import gcloud.bigquery.job


Expand Down
2 changes: 1 addition & 1 deletion bigquery/cloud-client/snippets_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.

from gcloud import bigquery
from google.cloud import bigquery
import pytest

import snippets
Expand Down
2 changes: 1 addition & 1 deletion bigquery/cloud-client/stream_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
import json
from pprint import pprint

from gcloud import bigquery
from google.cloud import bigquery


def stream_data(dataset_name, table_name, json_data):
Expand Down
2 changes: 1 addition & 1 deletion bigquery/cloud-client/sync_query.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
import argparse

# [START sync_query]
from gcloud import bigquery
from google.cloud import bigquery


def sync_query(query):
Expand Down
2 changes: 1 addition & 1 deletion bigtable/hello/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@

import argparse

from gcloud import bigtable
from google.cloud import bigtable


def main(project_id, instance_id, table_id):
Expand Down
2 changes: 1 addition & 1 deletion bigtable/hello/requirements.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
gcloud[grpc]==0.18.3
google-cloud==0.19.0
4 changes: 2 additions & 2 deletions bigtable/hello_happybase/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@

import argparse

from gcloud import bigtable
from gcloud.bigtable import happybase
from google.cloud import bigtable
from google.cloud.bigtable import happybase


def main(project_id, instance_id, table_name):
Expand Down
2 changes: 1 addition & 1 deletion bigtable/hello_happybase/requirements.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
gcloud[grpc]==0.18.3
google=cloud==0.19.0
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
import argparse
import datetime

from gcloud import datastore
from google.cloud import datastore


def path_to_key(datastore, path):
Expand Down
Original file line number Diff line number Diff line change
@@ -1 +1 @@
gcloud==0.18.3
google-cloud==0.19.0
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
import argparse
import datetime

from gcloud import datastore
from google.cloud import datastore


def path_to_key(datastore, path):
Expand Down
2 changes: 1 addition & 1 deletion dataproc/create_cluster_and_submit_job.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
import os

from apiclient import discovery
from gcloud import storage
from google.cloud import storage
from oauth2client.client import GoogleCredentials

# Currently only the "global" region is supported
Expand Down
2 changes: 1 addition & 1 deletion dataproc/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
google-api-python-client==1.5.3
gcloud==0.18.3
google-cloud==0.19.0
2 changes: 1 addition & 1 deletion datastore/api/requirements.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
gcloud==0.18.3
google-cloud==0.19.0
2 changes: 1 addition & 1 deletion datastore/api/snippets.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
from pprint import pprint

import gcloud
from gcloud import datastore
from google.cloud import datastore


def incomplete_key(client):
Expand Down
2 changes: 1 addition & 1 deletion datastore/api/snippets_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.

from gcloud import datastore
from google.cloud import datastore
from gcp.testing import eventually_consistent
from gcp.testing.flaky import flaky
import pytest
Expand Down
2 changes: 1 addition & 1 deletion datastore/api/tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
import datetime

# [START build_service]
from gcloud import datastore
from google.cloud import datastore


def create_client(project_id):
Expand Down
2 changes: 1 addition & 1 deletion datastore/api/tasks_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.

from gcloud import datastore
from google.cloud import datastore
from gcp.testing import eventually_consistent
from gcp.testing.flaky import flaky
import pytest
Expand Down
4 changes: 2 additions & 2 deletions dns/api/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@

import argparse

from gcloud import dns
from gcloud.exceptions import NotFound
from google.cloud import dns
from google.cloud.exceptions import NotFound


# [START create_zone]
Expand Down
2 changes: 1 addition & 1 deletion dns/api/main_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.

from gcloud import dns
from google.cloud import dns
from gcp.testing.flaky import flaky
import pytest

Expand Down
2 changes: 1 addition & 1 deletion dns/api/requirements.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
gcloud==0.18.3
google-cloud==0.19.0
2 changes: 1 addition & 1 deletion logging/cloud-client/export.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

import argparse

from gcloud import logging
from google.cloud import logging


def list_sinks():
Expand Down
2 changes: 1 addition & 1 deletion logging/cloud-client/export_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
import random
import string

from gcloud import logging
from google.cloud import logging
from gcp.testing import eventually_consistent
import pytest

Expand Down
2 changes: 1 addition & 1 deletion logging/cloud-client/requirements.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
gcloud==0.18.3
google-cloud==0.19.0
2 changes: 1 addition & 1 deletion logging/cloud-client/snippets.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@

import argparse

from gcloud import logging
from google.cloud import logging


def write_entry(logger_name):
Expand Down
2 changes: 1 addition & 1 deletion logging/cloud-client/snippets_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.

from gcloud import logging
from google.cloud import logging
from gcp.testing import eventually_consistent
import pytest

Expand Down
2 changes: 1 addition & 1 deletion pubsub/cloud-client/iam.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@

import argparse

from gcloud import pubsub
from google.cloud import pubsub


def get_topic_policy(topic_name):
Expand Down
2 changes: 1 addition & 1 deletion pubsub/cloud-client/iam_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.

from gcloud import pubsub
from google.cloud import pubsub
import pytest

import iam
Expand Down
2 changes: 1 addition & 1 deletion pubsub/cloud-client/publisher.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@

import argparse

from gcloud import pubsub
from google.cloud import pubsub


def list_topics():
Expand Down
2 changes: 1 addition & 1 deletion pubsub/cloud-client/publisher_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.

from gcloud import pubsub
from google.cloud import pubsub
from gcp.testing import eventually_consistent
import pytest

Expand Down
2 changes: 1 addition & 1 deletion pubsub/cloud-client/requirements.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
gcloud==0.18.3
google-cloud==0.19.0
2 changes: 1 addition & 1 deletion pubsub/cloud-client/subscriber.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@

import argparse

from gcloud import pubsub
from google.cloud import pubsub


def list_subscriptions(topic_name):
Expand Down
2 changes: 1 addition & 1 deletion pubsub/cloud-client/subscriber_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.

from gcloud import pubsub
from google.cloud import pubsub
from gcp.testing import eventually_consistent
import pytest

Expand Down
3 changes: 1 addition & 2 deletions requirements-dev.txt
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,7 @@ Flask-SQLAlchemy==2.1
Flask==0.11.1
fluent-logger==0.4.4
funcsigs==1.0.2
gcloud==0.18.3
gcloud[grpc]==0.18.3
google-cloud==0.19.0
google-api-python-client==1.5.3
grpc-google-cloud-speech-v1beta1==1.0.1
grpcio==1.0.0
Expand Down
2 changes: 1 addition & 1 deletion speech/grpc/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
gcloud==0.18.3
google-cloud==0.19.0
grpcio==1.0.0
PyAudio==0.2.9
grpc-google-cloud-speech-v1beta1==1.0.1
Expand Down
2 changes: 1 addition & 1 deletion speech/grpc/transcribe.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

import argparse

from gcloud.credentials import get_credentials
from google.cloud.credentials import get_credentials
from google.cloud.speech.v1beta1 import cloud_speech_pb2 as cloud_speech
from grpc.beta import implementations

Expand Down
2 changes: 1 addition & 1 deletion speech/grpc/transcribe_async.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
import argparse
import time

from gcloud.credentials import get_credentials
from google.cloud.credentials import get_credentials
from google.cloud.speech.v1beta1 import cloud_speech_pb2
from google.longrunning import operations_grpc_pb2
from grpc.beta import implementations
Expand Down
2 changes: 1 addition & 1 deletion speech/grpc/transcribe_streaming.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
import signal
import threading

from gcloud import credentials
from google.cloud import credentials
from google.cloud.speech.v1beta1 import cloud_speech_pb2 as cloud_speech
from google.rpc import code_pb2
from grpc.beta import implementations
Expand Down
2 changes: 1 addition & 1 deletion storage/cloud-client/acl.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@

import argparse

from gcloud import storage
from google.cloud import storage


def print_bucket_acl(bucket_name):
Expand Down
Loading

0 comments on commit f82b80e

Please sign in to comment.