From 11d3be6088a28d96325cf64a3f7c03e9bb82d53e Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Mon, 15 Dec 2014 09:53:45 -0800 Subject: [PATCH] Add copyright and license headers --- gcloud/__init__.py | 14 ++++++++++++++ gcloud/_testing.py | 14 ++++++++++++++ gcloud/connection.py | 14 ++++++++++++++ gcloud/credentials.py | 14 ++++++++++++++ gcloud/datastore/__init__.py | 14 ++++++++++++++ gcloud/datastore/connection.py | 14 ++++++++++++++ gcloud/datastore/dataset.py | 14 ++++++++++++++ gcloud/datastore/datastore_v1_pb2.py | 14 ++++++++++++++ gcloud/datastore/demo/__init__.py | 14 ++++++++++++++ gcloud/datastore/demo/__main__.py | 14 ++++++++++++++ gcloud/datastore/demo/demo.py | 14 ++++++++++++++ gcloud/datastore/entity.py | 14 ++++++++++++++ gcloud/datastore/helpers.py | 14 ++++++++++++++ gcloud/datastore/key.py | 14 ++++++++++++++ gcloud/datastore/query.py | 14 ++++++++++++++ gcloud/datastore/test___init__.py | 14 ++++++++++++++ gcloud/datastore/test_connection.py | 14 ++++++++++++++ gcloud/datastore/test_dataset.py | 14 ++++++++++++++ gcloud/datastore/test_entity.py | 14 ++++++++++++++ gcloud/datastore/test_helpers.py | 14 ++++++++++++++ gcloud/datastore/test_key.py | 14 ++++++++++++++ gcloud/datastore/test_query.py | 14 ++++++++++++++ gcloud/datastore/test_transaction.py | 14 ++++++++++++++ gcloud/datastore/transaction.py | 14 ++++++++++++++ gcloud/demo.py | 14 ++++++++++++++ gcloud/storage/__init__.py | 14 ++++++++++++++ gcloud/storage/_helpers.py | 14 ++++++++++++++ gcloud/storage/acl.py | 14 ++++++++++++++ gcloud/storage/bucket.py | 14 ++++++++++++++ gcloud/storage/connection.py | 14 ++++++++++++++ gcloud/storage/demo/__init__.py | 14 ++++++++++++++ gcloud/storage/demo/__main__.py | 14 ++++++++++++++ gcloud/storage/demo/demo.py | 14 ++++++++++++++ gcloud/storage/exceptions.py | 14 ++++++++++++++ gcloud/storage/iterator.py | 14 ++++++++++++++ gcloud/storage/key.py | 14 ++++++++++++++ gcloud/storage/test___init__.py | 14 ++++++++++++++ gcloud/storage/test__helpers.py | 14 ++++++++++++++ gcloud/storage/test_acl.py | 14 ++++++++++++++ gcloud/storage/test_bucket.py | 14 ++++++++++++++ gcloud/storage/test_connection.py | 14 ++++++++++++++ gcloud/storage/test_exceptions.py | 14 ++++++++++++++ gcloud/storage/test_iterator.py | 14 ++++++++++++++ gcloud/storage/test_key.py | 14 ++++++++++++++ gcloud/test_connection.py | 14 ++++++++++++++ gcloud/test_credentials.py | 14 ++++++++++++++ regression/clear_datastore.py | 14 ++++++++++++++ regression/datastore.py | 14 ++++++++++++++ regression/populate_datastore.py | 14 ++++++++++++++ regression/regression_utils.py | 14 ++++++++++++++ regression/run_regression.py | 14 ++++++++++++++ regression/storage.py | 14 ++++++++++++++ run_pylint.py | 14 ++++++++++++++ 53 files changed, 742 insertions(+) diff --git a/gcloud/__init__.py b/gcloud/__init__.py index e87e92411f05..8c1c7b4e97e2 100644 --- a/gcloud/__init__.py +++ b/gcloud/__init__.py @@ -1,3 +1,17 @@ +# Copyright 2014 Google Inc. All rights reserved. +# +# Licensed 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. + """GCloud API access in idiomatic Python.""" from pkg_resources import get_distribution diff --git a/gcloud/_testing.py b/gcloud/_testing.py index 5f56ece97bbc..824214482e20 100644 --- a/gcloud/_testing.py +++ b/gcloud/_testing.py @@ -1,3 +1,17 @@ +# Copyright 2014 Google Inc. All rights reserved. +# +# Licensed 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. + """Shared testing utilities.""" diff --git a/gcloud/connection.py b/gcloud/connection.py index 30eae893b95b..a1ac7698a295 100644 --- a/gcloud/connection.py +++ b/gcloud/connection.py @@ -1,3 +1,17 @@ +# Copyright 2014 Google Inc. All rights reserved. +# +# Licensed 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. + """ Shared implementation of connections to API servers.""" from pkg_resources import get_distribution diff --git a/gcloud/credentials.py b/gcloud/credentials.py index 02bd1e1cc12f..12aceca8a025 100644 --- a/gcloud/credentials.py +++ b/gcloud/credentials.py @@ -1,3 +1,17 @@ +# Copyright 2014 Google Inc. All rights reserved. +# +# Licensed 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. + """A simple wrapper around the OAuth2 credentials library.""" from oauth2client import client diff --git a/gcloud/datastore/__init__.py b/gcloud/datastore/__init__.py index fee5a98b47b9..53d94e2e7f5f 100644 --- a/gcloud/datastore/__init__.py +++ b/gcloud/datastore/__init__.py @@ -1,3 +1,17 @@ +# Copyright 2014 Google Inc. All rights reserved. +# +# Licensed 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. + """Shortcut methods for getting set up with Google Cloud Datastore. You'll typically use these to get started with the API: diff --git a/gcloud/datastore/connection.py b/gcloud/datastore/connection.py index eb17650f70dd..5124fdcec856 100644 --- a/gcloud/datastore/connection.py +++ b/gcloud/datastore/connection.py @@ -1,3 +1,17 @@ +# Copyright 2014 Google Inc. All rights reserved. +# +# Licensed 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. + """Connections to gcloud datastore API servers.""" from gcloud import connection diff --git a/gcloud/datastore/dataset.py b/gcloud/datastore/dataset.py index 8de9aa1a995a..98659e4e0aa2 100644 --- a/gcloud/datastore/dataset.py +++ b/gcloud/datastore/dataset.py @@ -1,3 +1,17 @@ +# Copyright 2014 Google Inc. All rights reserved. +# +# Licensed 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. + """Create / interact with gcloud datastore datasets.""" from gcloud.datastore import helpers diff --git a/gcloud/datastore/datastore_v1_pb2.py b/gcloud/datastore/datastore_v1_pb2.py index 6c789c922c4e..e0023a7153a6 100644 --- a/gcloud/datastore/datastore_v1_pb2.py +++ b/gcloud/datastore/datastore_v1_pb2.py @@ -1,3 +1,17 @@ +# Copyright 2014 Google Inc. All rights reserved. +# +# Licensed 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. + # Generated by the protocol buffer compiler. DO NOT EDIT! # source: datastore_v1.proto diff --git a/gcloud/datastore/demo/__init__.py b/gcloud/datastore/demo/__init__.py index 5c0fe9497467..62530d1a2216 100644 --- a/gcloud/datastore/demo/__init__.py +++ b/gcloud/datastore/demo/__init__.py @@ -1,3 +1,17 @@ +# Copyright 2014 Google Inc. All rights reserved. +# +# Licensed 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. + # pragma NO COVER import os from gcloud import datastore diff --git a/gcloud/datastore/demo/__main__.py b/gcloud/datastore/demo/__main__.py index 7564f71e046b..e5e55065a9fa 100644 --- a/gcloud/datastore/demo/__main__.py +++ b/gcloud/datastore/demo/__main__.py @@ -1,3 +1,17 @@ +# Copyright 2014 Google Inc. All rights reserved. +# +# Licensed 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. + # pragma NO COVER from gcloud import demo from gcloud import datastore diff --git a/gcloud/datastore/demo/demo.py b/gcloud/datastore/demo/demo.py index 41c22922dfb0..e1cccbe98b6a 100644 --- a/gcloud/datastore/demo/demo.py +++ b/gcloud/datastore/demo/demo.py @@ -1,3 +1,17 @@ +# Copyright 2014 Google Inc. All rights reserved. +# +# Licensed 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. + # pragma NO COVER # Welcome to the gCloud Datastore Demo! (hit enter) diff --git a/gcloud/datastore/entity.py b/gcloud/datastore/entity.py index 10555694c54c..6411d3ee64f6 100644 --- a/gcloud/datastore/entity.py +++ b/gcloud/datastore/entity.py @@ -1,3 +1,17 @@ +# Copyright 2014 Google Inc. All rights reserved. +# +# Licensed 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. + """Class for representing a single entity in the Cloud Datastore.""" from gcloud.datastore import datastore_v1_pb2 as datastore_pb diff --git a/gcloud/datastore/helpers.py b/gcloud/datastore/helpers.py index ea89419135bf..54c8ab8855f0 100644 --- a/gcloud/datastore/helpers.py +++ b/gcloud/datastore/helpers.py @@ -1,3 +1,17 @@ +# Copyright 2014 Google Inc. All rights reserved. +# +# Licensed 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. + """Helper functions for dealing with Cloud Datastore's Protobuf API. The non-private functions are part of the API. diff --git a/gcloud/datastore/key.py b/gcloud/datastore/key.py index 31691b678f74..f187f17aeaad 100644 --- a/gcloud/datastore/key.py +++ b/gcloud/datastore/key.py @@ -1,3 +1,17 @@ +# Copyright 2014 Google Inc. All rights reserved. +# +# Licensed 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. + """Create / interact with gcloud datastore keys.""" import copy diff --git a/gcloud/datastore/query.py b/gcloud/datastore/query.py index cdd9c2e1b702..1058b9ee18df 100644 --- a/gcloud/datastore/query.py +++ b/gcloud/datastore/query.py @@ -1,3 +1,17 @@ +# Copyright 2014 Google Inc. All rights reserved. +# +# Licensed 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. + """Create / interact with gcloud datastore queries.""" import base64 diff --git a/gcloud/datastore/test___init__.py b/gcloud/datastore/test___init__.py index 147563109066..b20eae78534d 100644 --- a/gcloud/datastore/test___init__.py +++ b/gcloud/datastore/test___init__.py @@ -1,3 +1,17 @@ +# Copyright 2014 Google Inc. All rights reserved. +# +# Licensed 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. + import unittest2 diff --git a/gcloud/datastore/test_connection.py b/gcloud/datastore/test_connection.py index b3476dd42058..a804c84c0461 100644 --- a/gcloud/datastore/test_connection.py +++ b/gcloud/datastore/test_connection.py @@ -1,3 +1,17 @@ +# Copyright 2014 Google Inc. All rights reserved. +# +# Licensed 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. + import unittest2 diff --git a/gcloud/datastore/test_dataset.py b/gcloud/datastore/test_dataset.py index 5f3e6000055b..e6924ebbb069 100644 --- a/gcloud/datastore/test_dataset.py +++ b/gcloud/datastore/test_dataset.py @@ -1,3 +1,17 @@ +# Copyright 2014 Google Inc. All rights reserved. +# +# Licensed 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. + import unittest2 diff --git a/gcloud/datastore/test_entity.py b/gcloud/datastore/test_entity.py index 6f796622593f..164a69aeb003 100644 --- a/gcloud/datastore/test_entity.py +++ b/gcloud/datastore/test_entity.py @@ -1,3 +1,17 @@ +# Copyright 2014 Google Inc. All rights reserved. +# +# Licensed 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. + import unittest2 _MARKER = object() diff --git a/gcloud/datastore/test_helpers.py b/gcloud/datastore/test_helpers.py index 893ed2ccacb4..70db552aaa7a 100644 --- a/gcloud/datastore/test_helpers.py +++ b/gcloud/datastore/test_helpers.py @@ -1,3 +1,17 @@ +# Copyright 2014 Google Inc. All rights reserved. +# +# Licensed 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. + import unittest2 diff --git a/gcloud/datastore/test_key.py b/gcloud/datastore/test_key.py index 1e92060311e3..c90e301d5eb6 100644 --- a/gcloud/datastore/test_key.py +++ b/gcloud/datastore/test_key.py @@ -1,3 +1,17 @@ +# Copyright 2014 Google Inc. All rights reserved. +# +# Licensed 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. + import unittest2 diff --git a/gcloud/datastore/test_query.py b/gcloud/datastore/test_query.py index 09bc7b3277d0..7b9fc8ec61bc 100644 --- a/gcloud/datastore/test_query.py +++ b/gcloud/datastore/test_query.py @@ -1,3 +1,17 @@ +# Copyright 2014 Google Inc. All rights reserved. +# +# Licensed 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. + import unittest2 diff --git a/gcloud/datastore/test_transaction.py b/gcloud/datastore/test_transaction.py index 82eba83ff56d..7d39ef1429eb 100644 --- a/gcloud/datastore/test_transaction.py +++ b/gcloud/datastore/test_transaction.py @@ -1,3 +1,17 @@ +# Copyright 2014 Google Inc. All rights reserved. +# +# Licensed 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. + import unittest2 diff --git a/gcloud/datastore/transaction.py b/gcloud/datastore/transaction.py index 9503b266805f..047193d7967a 100644 --- a/gcloud/datastore/transaction.py +++ b/gcloud/datastore/transaction.py @@ -1,3 +1,17 @@ +# Copyright 2014 Google Inc. All rights reserved. +# +# Licensed 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. + """Create / interact with gcloud datastore transactions.""" from gcloud.datastore import datastore_v1_pb2 as datastore_pb diff --git a/gcloud/demo.py b/gcloud/demo.py index 3ef2192ca15c..b49fb37a538e 100644 --- a/gcloud/demo.py +++ b/gcloud/demo.py @@ -1,3 +1,17 @@ +# Copyright 2014 Google Inc. All rights reserved. +# +# Licensed 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. + # pragma NO COVER from code import interact import itertools diff --git a/gcloud/storage/__init__.py b/gcloud/storage/__init__.py index 4b5ef86d9222..ff6907ea8215 100644 --- a/gcloud/storage/__init__.py +++ b/gcloud/storage/__init__.py @@ -1,3 +1,17 @@ +# Copyright 2014 Google Inc. All rights reserved. +# +# Licensed 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. + """Shortcut methods for getting set up with Google Cloud Storage. You'll typically use these to get started with the API: diff --git a/gcloud/storage/_helpers.py b/gcloud/storage/_helpers.py index 303c90e15a40..cdf080aa69d2 100644 --- a/gcloud/storage/_helpers.py +++ b/gcloud/storage/_helpers.py @@ -1,3 +1,17 @@ +# Copyright 2014 Google Inc. All rights reserved. +# +# Licensed 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. + """Helper functions for Cloud Storage utility classes. These are *not* part of the API. diff --git a/gcloud/storage/acl.py b/gcloud/storage/acl.py index f80f7affc0a5..e0af9af20b82 100644 --- a/gcloud/storage/acl.py +++ b/gcloud/storage/acl.py @@ -1,3 +1,17 @@ +# Copyright 2014 Google Inc. All rights reserved. +# +# Licensed 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. + """Manipulate access control lists that Cloud Storage provides. :class:`gcloud.storage.bucket.Bucket` has a getting method that creates diff --git a/gcloud/storage/bucket.py b/gcloud/storage/bucket.py index 57ebdb1fa6ed..104ac884b983 100644 --- a/gcloud/storage/bucket.py +++ b/gcloud/storage/bucket.py @@ -1,3 +1,17 @@ +# Copyright 2014 Google Inc. All rights reserved. +# +# Licensed 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. + """Create / interact with gcloud storage buckets.""" import os diff --git a/gcloud/storage/connection.py b/gcloud/storage/connection.py index a54c60356cef..4f1a447c26ed 100644 --- a/gcloud/storage/connection.py +++ b/gcloud/storage/connection.py @@ -1,3 +1,17 @@ +# Copyright 2014 Google Inc. All rights reserved. +# +# Licensed 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. + """Create / interact with gcloud storage connections.""" import base64 diff --git a/gcloud/storage/demo/__init__.py b/gcloud/storage/demo/__init__.py index 937aa7f23c1e..3c3470f403ba 100644 --- a/gcloud/storage/demo/__init__.py +++ b/gcloud/storage/demo/__init__.py @@ -1,3 +1,17 @@ +# Copyright 2014 Google Inc. All rights reserved. +# +# Licensed 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. + # pragma NO COVER import os from gcloud import storage diff --git a/gcloud/storage/demo/__main__.py b/gcloud/storage/demo/__main__.py index 430f728a08a6..ada9e7858624 100644 --- a/gcloud/storage/demo/__main__.py +++ b/gcloud/storage/demo/__main__.py @@ -1,3 +1,17 @@ +# Copyright 2014 Google Inc. All rights reserved. +# +# Licensed 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. + # pragma NO COVER from gcloud import demo from gcloud import storage diff --git a/gcloud/storage/demo/demo.py b/gcloud/storage/demo/demo.py index d1f2631e7cb8..541a0cc9be1d 100644 --- a/gcloud/storage/demo/demo.py +++ b/gcloud/storage/demo/demo.py @@ -1,3 +1,17 @@ +# Copyright 2014 Google Inc. All rights reserved. +# +# Licensed 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. + # pragma NO COVER # Welcome to the gCloud Storage Demo! (hit enter) diff --git a/gcloud/storage/exceptions.py b/gcloud/storage/exceptions.py index 59c41381ddee..05fa71983aa9 100644 --- a/gcloud/storage/exceptions.py +++ b/gcloud/storage/exceptions.py @@ -1,3 +1,17 @@ +# Copyright 2014 Google Inc. All rights reserved. +# +# Licensed 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. + """Custom exceptions for gcloud.storage package. See: https://cloud.google.com/storage/docs/json_api/v1/status-codes diff --git a/gcloud/storage/iterator.py b/gcloud/storage/iterator.py index 1ee0dbb08867..ad6d2ad00217 100644 --- a/gcloud/storage/iterator.py +++ b/gcloud/storage/iterator.py @@ -1,3 +1,17 @@ +# Copyright 2014 Google Inc. All rights reserved. +# +# Licensed 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. + """Iterators for paging through API responses. These iterators simplify the process of paging through API responses diff --git a/gcloud/storage/key.py b/gcloud/storage/key.py index dbf737740748..baaf7cc8587d 100644 --- a/gcloud/storage/key.py +++ b/gcloud/storage/key.py @@ -1,3 +1,17 @@ +# Copyright 2014 Google Inc. All rights reserved. +# +# Licensed 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. + """Create / interact with gcloud storage keys.""" import copy diff --git a/gcloud/storage/test___init__.py b/gcloud/storage/test___init__.py index 13d296b73d98..1197af631a27 100644 --- a/gcloud/storage/test___init__.py +++ b/gcloud/storage/test___init__.py @@ -1,3 +1,17 @@ +# Copyright 2014 Google Inc. All rights reserved. +# +# Licensed 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. + import unittest2 diff --git a/gcloud/storage/test__helpers.py b/gcloud/storage/test__helpers.py index 7714f118ed71..b550f905034d 100644 --- a/gcloud/storage/test__helpers.py +++ b/gcloud/storage/test__helpers.py @@ -1,3 +1,17 @@ +# Copyright 2014 Google Inc. All rights reserved. +# +# Licensed 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. + import unittest2 diff --git a/gcloud/storage/test_acl.py b/gcloud/storage/test_acl.py index 5cf9d092db70..b0ad5d1dd0b4 100644 --- a/gcloud/storage/test_acl.py +++ b/gcloud/storage/test_acl.py @@ -1,3 +1,17 @@ +# Copyright 2014 Google Inc. All rights reserved. +# +# Licensed 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. + import unittest2 diff --git a/gcloud/storage/test_bucket.py b/gcloud/storage/test_bucket.py index 54321a186243..03ccc6018724 100644 --- a/gcloud/storage/test_bucket.py +++ b/gcloud/storage/test_bucket.py @@ -1,3 +1,17 @@ +# Copyright 2014 Google Inc. All rights reserved. +# +# Licensed 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. + import io import unittest2 diff --git a/gcloud/storage/test_connection.py b/gcloud/storage/test_connection.py index 44daa9aa554b..3655fdcb69aa 100644 --- a/gcloud/storage/test_connection.py +++ b/gcloud/storage/test_connection.py @@ -1,3 +1,17 @@ +# Copyright 2014 Google Inc. All rights reserved. +# +# Licensed 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. + import unittest2 diff --git a/gcloud/storage/test_exceptions.py b/gcloud/storage/test_exceptions.py index eda720e3a2d1..70edca89c9a2 100644 --- a/gcloud/storage/test_exceptions.py +++ b/gcloud/storage/test_exceptions.py @@ -1,3 +1,17 @@ +# Copyright 2014 Google Inc. All rights reserved. +# +# Licensed 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. + import unittest2 diff --git a/gcloud/storage/test_iterator.py b/gcloud/storage/test_iterator.py index b7567602218d..afe5d219ac08 100644 --- a/gcloud/storage/test_iterator.py +++ b/gcloud/storage/test_iterator.py @@ -1,3 +1,17 @@ +# Copyright 2014 Google Inc. All rights reserved. +# +# Licensed 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. + import unittest2 diff --git a/gcloud/storage/test_key.py b/gcloud/storage/test_key.py index 3fa4a885b0ac..a9e648cd4b7e 100644 --- a/gcloud/storage/test_key.py +++ b/gcloud/storage/test_key.py @@ -1,3 +1,17 @@ +# Copyright 2014 Google Inc. All rights reserved. +# +# Licensed 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. + import unittest2 diff --git a/gcloud/test_connection.py b/gcloud/test_connection.py index 27db46ba187f..4e5dae7afa6e 100644 --- a/gcloud/test_connection.py +++ b/gcloud/test_connection.py @@ -1,3 +1,17 @@ +# Copyright 2014 Google Inc. All rights reserved. +# +# Licensed 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. + import unittest2 diff --git a/gcloud/test_credentials.py b/gcloud/test_credentials.py index 15c8b8b4a0b3..2133ff2b6547 100644 --- a/gcloud/test_credentials.py +++ b/gcloud/test_credentials.py @@ -1,3 +1,17 @@ +# Copyright 2014 Google Inc. All rights reserved. +# +# Licensed 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. + import unittest2 diff --git a/regression/clear_datastore.py b/regression/clear_datastore.py index 5059840cc845..b7a1ee84ad74 100644 --- a/regression/clear_datastore.py +++ b/regression/clear_datastore.py @@ -1,3 +1,17 @@ +# Copyright 2014 Google Inc. All rights reserved. +# +# Licensed 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. + """Script to populate datastore with regression test data.""" diff --git a/regression/datastore.py b/regression/datastore.py index a6213d6e8542..b23947ea9aac 100644 --- a/regression/datastore.py +++ b/regression/datastore.py @@ -1,3 +1,17 @@ +# Copyright 2014 Google Inc. All rights reserved. +# +# Licensed 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. + import datetime import pytz import unittest2 diff --git a/regression/populate_datastore.py b/regression/populate_datastore.py index 34f65cf4d132..62ed9053d945 100644 --- a/regression/populate_datastore.py +++ b/regression/populate_datastore.py @@ -1,3 +1,17 @@ +# Copyright 2014 Google Inc. All rights reserved. +# +# Licensed 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. + """Script to populate datastore with regression test data.""" from six.moves import zip diff --git a/regression/regression_utils.py b/regression/regression_utils.py index 423c8f98d056..fb265b1a32cd 100644 --- a/regression/regression_utils.py +++ b/regression/regression_utils.py @@ -1,3 +1,17 @@ +# Copyright 2014 Google Inc. All rights reserved. +# +# Licensed 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 __future__ import print_function import os import sys diff --git a/regression/run_regression.py b/regression/run_regression.py index ab0d60409da2..76e78b971c14 100644 --- a/regression/run_regression.py +++ b/regression/run_regression.py @@ -1,3 +1,17 @@ +# Copyright 2014 Google Inc. All rights reserved. +# +# Licensed 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. + import argparse import sys import unittest2 diff --git a/regression/storage.py b/regression/storage.py index 7427d5f72b31..0fbcd7c1d52b 100644 --- a/regression/storage.py +++ b/regression/storage.py @@ -1,3 +1,17 @@ +# Copyright 2014 Google Inc. All rights reserved. +# +# Licensed 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 Crypto.Hash import MD5 import base64 import httplib2 diff --git a/run_pylint.py b/run_pylint.py index a6b6684d0594..67dfd268f282 100644 --- a/run_pylint.py +++ b/run_pylint.py @@ -1,3 +1,17 @@ +# Copyright 2014 Google Inc. All rights reserved. +# +# Licensed 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. + """Custom script to run PyLint on gcloud codebase. This runs pylint as a script via subprocess in two different