Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
237 commits
Select commit Hold shift + click to select a range
cee7db3
Retry for rows that return retryable error codes.
justinseinlin Oct 3, 2017
1f2e4a7
Stop processing once all rows are successful or non-retryable.
justinseinlin Oct 3, 2017
ea2e239
Remove retry for INTERNAL error. Fix the case where has_retryable_res…
justinseinlin Oct 4, 2017
d3ef455
Removing `googleapis-common-protos` from deps in non-`core` packages.…
dhermes Oct 4, 2017
98ff97e
Fix lint errors.
justinseinlin Oct 5, 2017
400536d
Fix pubsub landing page example for 'create_topic'. (#4124)
tseaver Oct 5, 2017
7796a50
Add tests for google.cloud.bigtable.table.Table.mutate_rows.\nCases f…
justinseinlin Oct 6, 2017
3a95612
Add google.api.core.operations_v1 (#4081)
Oct 6, 2017
3123de6
Fix test assertion in test_wrap_method_with_overriding_retry_deadline…
Oct 6, 2017
2a8f4fc
Add test cases for _RetryableMutateRowsWorker.
justinseinlin Oct 6, 2017
46cdbac
Refactor test for _RetryableMutateRowsWorker to cover callable interf…
justinseinlin Oct 7, 2017
ce7afe6
Add support for bucket notifications (#4127)
tseaver Oct 10, 2017
a4f7643
Remove assumption that responses come back in the same linear order a…
justinseinlin Oct 11, 2017
318b04f
Add scope for trace client (#4158)
liyanhui1228 Oct 11, 2017
7142119
Include retryable responses in the exception raised.
justinseinlin Oct 12, 2017
4c077bf
Assign default value for init argument.
justinseinlin Oct 12, 2017
aeb4cd4
Re-enable 'Bucket.requester_pays' feature (#4056)
tseaver Oct 12, 2017
99c4498
Add google.api.core.helpers.general_helpers.wraps (#4166)
Oct 12, 2017
598ab72
Fix Spanner coverage reporting. (#4169)
lukesneeringer Oct 12, 2017
e1a2483
Fix usage documentation. (#4168)
lukesneeringer Oct 12, 2017
2836658
Change _MILLIS_PER_SECOND to float for better deadline precision.
justinseinlin Oct 12, 2017
c0bbf6d
Skip user_project-based rewrite tests if envvar is not set. (#4175)
tseaver Oct 12, 2017
81ffeb2
Rename job classes (#3797)
tseaver Aug 18, 2017
63e0ebe
Rename class: 'dataset.AccessGrant' -> 'dataset.AccessEntry'. (#3798)
tseaver Aug 18, 2017
040a39e
Add 'QueryJob.query_plan' property. (#3799)
tseaver Sep 7, 2017
2583611
Add new scalar statistics properties to 'QueryJob' (#3800)
tseaver Sep 7, 2017
d4e2feb
Add 'QueryJob.referenced_tables' property. (#3801)
tseaver Sep 8, 2017
daff546
Add 'QueryJob.undeclared_query_parameters' property. (#3802)
tseaver Sep 8, 2017
0379e77
Fix system test broken by PR #3798. (#3936)
tseaver Sep 8, 2017
0aac7a0
Add 'Client.get_job' API wrapper. (#3804)
tseaver Sep 11, 2017
3a1c0fb
Add 'ExtractTableStorageJob.destination_uri_file_counts' property. (#…
tseaver Sep 11, 2017
f17bb9c
bigquery add DatasetReference class and tests (#3938)
alixhami Sep 11, 2017
10f5a2d
BigQuery: Add TestReference class. Add table function to DatasetRefer…
alixhami Sep 13, 2017
ec90007
BigQuery: Modify client.dataset() to return DatasetReference instead …
alixhami Sep 13, 2017
a71a8c3
bigquery: rename TableReference.dataset_ref (#3953)
jba Sep 13, 2017
4aba841
bigquery: rename name field of Dataset to dataset_id (#3955)
jba Sep 14, 2017
6f1c8f3
bigquery: rename name field of Table to table_id (#3959)
jba Sep 14, 2017
6923e8e
BQ: rename XJob.name to XJob.job_id. (#3962)
tswast Sep 15, 2017
2ac3cd6
Parse timestamps in query parameters using canonical format (#3945)
tswast Sep 15, 2017
4e94c48
BigQuery: Adds client.get_dataset() and removes dataset.reload() (#3973)
alixhami Sep 15, 2017
e79384f
BigQuery: Changes DatasetReference project_id property to project to …
alixhami Sep 18, 2017
bef85b7
bigquery: add client.create_dataset; remove dataset.create (#3982)
jba Sep 18, 2017
ecf88e4
bigquery: remove dataset.exists (#3996)
jba Sep 18, 2017
01b812b
BigQuery: Updates Table constructor to use TableReference as paramete…
alixhami Sep 19, 2017
3b81a14
BQ: client.extract_table starts extract job (#3991)
tswast Sep 19, 2017
1f4381f
BigQuery: Adds client.get_table() and removes table.reload() (#4004)
alixhami Sep 20, 2017
04da9c0
bigquery: add Client.update_dataset (#4003)
jba Sep 20, 2017
970f6f7
BigQuery: Remove dataset property from TableReference and add project…
alixhami Sep 20, 2017
e5b91ea
bigquery: add client.delete_dataset (#4012)
jba Sep 20, 2017
31a6219
updates dataset.table() to return a TableReference instead of a Table…
alixhami Sep 21, 2017
97f4e1c
bigquery: add client.list_dataset_tables (#4013)
jba Sep 21, 2017
a8169a4
bigquery: remove client from Dataset (#4018)
jba Sep 21, 2017
5779792
bigquery: dataset labels (#4026)
jba Sep 22, 2017
d643b6e
bigquery: Dataset constructor takes a DatasetReference (#4036)
jba Sep 22, 2017
f6d7582
bigquery: Job and Query default_dataset is DatasetReference (#4037)
jba Sep 22, 2017
ce9a06c
BigQuery: add to/from API representation for Table & Dataset referenc…
tswast Sep 22, 2017
1036b82
BigQuery: replaces table.create() with client.create_table() (#4038)
alixhami Sep 22, 2017
b0b77c3
BigQuery: Remove unnecessary line from client.create_table() test (#4…
alixhami Sep 23, 2017
6890ebe
bigquery: add system test for dataset update with etag (#4052)
jba Sep 25, 2017
ae155bb
BQ: remove redundant __eq__ from Query Parameters. (#4055)
tswast Sep 25, 2017
f38f447
bigquery: modify CopyJob (#4051)
jba Sep 25, 2017
722a831
bigquery: fix copy job system test (#4059)
jba Sep 26, 2017
9ab2715
BigQuery: replaces table.delete() with client.delete_table() (#4066)
alixhami Sep 27, 2017
0832c6f
BigQuery: add client.query_rows(), remove client.run_sync_query(). (#…
tswast Sep 27, 2017
f90bbb7
bigquery: modify LoadJob (#4103)
jba Oct 4, 2017
33244cf
Make QueryResults read-only. (#4094)
tswast Oct 6, 2017
ccf0ec2
bigquery: add Client.list_rows, remove Table.fetch_data (#4119)
jba Oct 6, 2017
0ddee3a
BigQuery: replaces table.update() and table.patch() with client.updat…
alixhami Oct 9, 2017
3a324ad
bigquery: add config getters to LoadJob (#4137)
jba Oct 9, 2017
f352eea
BQ: remove client.run_async_query, add client.query (#4130)
tswast Oct 9, 2017
e329a19
bigquery: add Client.load_table_from_file (#4136)
jba Oct 9, 2017
f72a691
BQ: Pass selected_fields as a string to tabledata.list. (#4143)
tswast Oct 9, 2017
d1b564d
bigquery: remove Table.exists (#4145)
jba Oct 9, 2017
112b441
bigquery: remove unused function (#4147)
jba Oct 10, 2017
5df465f
bigquery: add Client.list_partitions (#4146)
jba Oct 10, 2017
3f65b7c
BQ: remove fetch_data and client references from QueryResults (#4144)
tswast Oct 10, 2017
c2d84d9
bigquery: add Row class (#4149)
jba Oct 10, 2017
0313a00
BQ: move *QueryParameter and UDFResource classes to query. (#4156)
tswast Oct 11, 2017
b7f916c
BigQuery: Replace table.insert_data() with client.create_rows() (#4151)
alixhami Oct 11, 2017
53e9a44
BQ: remove unused ConfigurationProperty classes. (#4157)
tswast Oct 11, 2017
02b0069
BigQuery: removes Client from Table class (#4159)
alixhami Oct 11, 2017
3ef7386
bigquery: add streaming buffer info (#4161)
jba Oct 12, 2017
4e71918
bigquery: factor out common values in test_client.py (#4162)
jba Oct 12, 2017
a06b84b
BQ: use random job ID for system tests. (#4163)
tswast Oct 12, 2017
d7ad25e
bigquery: generate row IDs in create_rows (#4173)
jba Oct 12, 2017
fd691a2
bigquery: retry idempotent RPCs (#4148)
jba Oct 12, 2017
14b3760
BQ: use a string or list of string for client.extract_table. (#4177)
tswast Oct 12, 2017
2b88f0b
s/gcloud-common/google-cloud-common/g (#4180)
tswast Oct 13, 2017
8ab4d60
Use google.api.core.retry.Retry. Allow user-configurable retry-options.
justinseinlin Oct 13, 2017
3286ae4
Add 'user_project' support to BucketNotification API methods. (#4176)
tseaver Oct 13, 2017
c171fdc
Move debug logging call in Future.add_done_callback (#4174)
jeffkpayne Oct 13, 2017
8762c34
Add header enabling gzip downloads (#3380)
Oct 13, 2017
fce50bd
Pub/Sub version bump: 0.28.4 (#4183)
lukesneeringer Oct 13, 2017
5cc463f
Clear 'session._transaction' before calling '_delay_unitl_retry'. (#…
tseaver Oct 13, 2017
7c770c8
Catch checksum validation failure from download, delete corrupt file …
mfschwartz Oct 13, 2017
e6cc4b4
bigquery: retry Client.create_rows (#4178)
jba Oct 13, 2017
448b147
Update Docs with Python Setup Guide (#4187)
Oct 13, 2017
f71f0a9
Revert retry.py. Modify mutate_rows api to take a Retry instead with …
justinseinlin Oct 13, 2017
0372544
bigquery: classes to support external table config (#4182)
jba Oct 14, 2017
2c71305
BigQuery: adds client.create_rows_json (#4189)
alixhami Oct 16, 2017
2830480
bigquery: make views default to standard SQL (#4192)
jba Oct 16, 2017
d8b31c0
Skip running 'pylint' on '_generated' files. (#4195)
tseaver Oct 16, 2017
a97bd6b
BQ: update samples in README for beta 2 changes. (#4179)
tswast Oct 16, 2017
5f037b2
Move modules in google.api.core.helpers up one level, delete google.a…
Oct 16, 2017
8360b6a
bigquery: support external table definitions for query jobs (#4191)
jba Oct 16, 2017
3671b6f
BQ: Make snippets.py run as system tests. (#4188)
tswast Oct 16, 2017
7edad2d
Clarify 'user_project' semantics for API wrapper methods. (#4199)
tseaver Oct 16, 2017
89c479f
bigquery: support external data definition for tables (#4193)
jba Oct 16, 2017
297d397
bigquery: support update of dataset access entries (#4197)
jba Oct 16, 2017
915238d
Clarify that PollingFuture timeout is in seconds. (#4201)
tswast Oct 16, 2017
fc5e051
biqquery: factor out common values in system.py (#4194)
jba Oct 16, 2017
8e9aa23
BigQuery: option for job ID generation with user-supplied prefix (#4198)
alixhami Oct 16, 2017
16f6566
Add documentation for google.api.core modules (#4203)
Oct 16, 2017
bc520a8
Rename job classes (#3797)
tseaver Aug 18, 2017
d6504ad
Rename class: 'dataset.AccessGrant' -> 'dataset.AccessEntry'. (#3798)
tseaver Aug 18, 2017
828ad3a
Add 'QueryJob.query_plan' property. (#3799)
tseaver Sep 7, 2017
9103ba0
Add new scalar statistics properties to 'QueryJob' (#3800)
tseaver Sep 7, 2017
d20afc4
Add 'QueryJob.referenced_tables' property. (#3801)
tseaver Sep 8, 2017
8f2941f
Add 'QueryJob.undeclared_query_parameters' property. (#3802)
tseaver Sep 8, 2017
bf2dcb2
Fix system test broken by PR #3798. (#3936)
tseaver Sep 8, 2017
f2478ba
Add 'Client.get_job' API wrapper. (#3804)
tseaver Sep 11, 2017
3b777dd
Add 'ExtractTableStorageJob.destination_uri_file_counts' property. (#…
tseaver Sep 11, 2017
4aed26c
bigquery add DatasetReference class and tests (#3938)
alixhami Sep 11, 2017
ada8a31
BigQuery: Add TestReference class. Add table function to DatasetRefer…
alixhami Sep 13, 2017
f17942d
BigQuery: Modify client.dataset() to return DatasetReference instead …
alixhami Sep 13, 2017
4dfdaa7
bigquery: rename TableReference.dataset_ref (#3953)
jba Sep 13, 2017
24c9313
bigquery: rename name field of Dataset to dataset_id (#3955)
jba Sep 14, 2017
8abc913
bigquery: rename name field of Table to table_id (#3959)
jba Sep 14, 2017
26247da
BQ: rename XJob.name to XJob.job_id. (#3962)
tswast Sep 15, 2017
2df2990
Parse timestamps in query parameters using canonical format (#3945)
tswast Sep 15, 2017
e9bb79a
BigQuery: Adds client.get_dataset() and removes dataset.reload() (#3973)
alixhami Sep 15, 2017
4032d0b
BigQuery: Changes DatasetReference project_id property to project to …
alixhami Sep 18, 2017
4f79432
bigquery: add client.create_dataset; remove dataset.create (#3982)
jba Sep 18, 2017
6e8f3b9
bigquery: remove dataset.exists (#3996)
jba Sep 18, 2017
37a6b23
BigQuery: Updates Table constructor to use TableReference as paramete…
alixhami Sep 19, 2017
3488f1c
BQ: client.extract_table starts extract job (#3991)
tswast Sep 19, 2017
465e523
BigQuery: Adds client.get_table() and removes table.reload() (#4004)
alixhami Sep 20, 2017
a200750
bigquery: add Client.update_dataset (#4003)
jba Sep 20, 2017
ca10fee
BigQuery: Remove dataset property from TableReference and add project…
alixhami Sep 20, 2017
6aab47a
bigquery: add client.delete_dataset (#4012)
jba Sep 20, 2017
15b3d73
updates dataset.table() to return a TableReference instead of a Table…
alixhami Sep 21, 2017
82c401b
bigquery: add client.list_dataset_tables (#4013)
jba Sep 21, 2017
30205ed
bigquery: remove client from Dataset (#4018)
jba Sep 21, 2017
2b3d68b
bigquery: dataset labels (#4026)
jba Sep 22, 2017
fefe2ea
bigquery: Dataset constructor takes a DatasetReference (#4036)
jba Sep 22, 2017
3dc30d0
bigquery: Job and Query default_dataset is DatasetReference (#4037)
jba Sep 22, 2017
1df6975
BigQuery: add to/from API representation for Table & Dataset referenc…
tswast Sep 22, 2017
26f4fa7
BigQuery: replaces table.create() with client.create_table() (#4038)
alixhami Sep 22, 2017
ce8a1dc
BigQuery: Remove unnecessary line from client.create_table() test (#4…
alixhami Sep 23, 2017
83319e1
bigquery: add system test for dataset update with etag (#4052)
jba Sep 25, 2017
ed8b2fe
BQ: remove redundant __eq__ from Query Parameters. (#4055)
tswast Sep 25, 2017
ed06f4b
bigquery: modify CopyJob (#4051)
jba Sep 25, 2017
bfa18c3
bigquery: fix copy job system test (#4059)
jba Sep 26, 2017
de03ec9
BigQuery: replaces table.delete() with client.delete_table() (#4066)
alixhami Sep 27, 2017
d3712c2
BigQuery: add client.query_rows(), remove client.run_sync_query(). (#…
tswast Sep 27, 2017
b649544
bigquery: modify LoadJob (#4103)
jba Oct 4, 2017
05781ea
Make QueryResults read-only. (#4094)
tswast Oct 6, 2017
3a99312
bigquery: add Client.list_rows, remove Table.fetch_data (#4119)
jba Oct 6, 2017
a3d7465
BigQuery: replaces table.update() and table.patch() with client.updat…
alixhami Oct 9, 2017
010c254
bigquery: add config getters to LoadJob (#4137)
jba Oct 9, 2017
de2a3b6
BQ: remove client.run_async_query, add client.query (#4130)
tswast Oct 9, 2017
9876ad6
bigquery: add Client.load_table_from_file (#4136)
jba Oct 9, 2017
f7a52cb
BQ: Pass selected_fields as a string to tabledata.list. (#4143)
tswast Oct 9, 2017
76d303f
bigquery: remove Table.exists (#4145)
jba Oct 9, 2017
74af691
bigquery: remove unused function (#4147)
jba Oct 10, 2017
7faa1b5
bigquery: add Client.list_partitions (#4146)
jba Oct 10, 2017
868f7c7
BQ: remove fetch_data and client references from QueryResults (#4144)
tswast Oct 10, 2017
79e69c8
bigquery: add Row class (#4149)
jba Oct 10, 2017
23afc0c
BQ: move *QueryParameter and UDFResource classes to query. (#4156)
tswast Oct 11, 2017
27bc0b2
BigQuery: Replace table.insert_data() with client.create_rows() (#4151)
alixhami Oct 11, 2017
4afa7ba
BQ: remove unused ConfigurationProperty classes. (#4157)
tswast Oct 11, 2017
8e7d88e
BigQuery: removes Client from Table class (#4159)
alixhami Oct 11, 2017
4922316
bigquery: add streaming buffer info (#4161)
jba Oct 12, 2017
61acc32
bigquery: factor out common values in test_client.py (#4162)
jba Oct 12, 2017
f5bf7a1
BQ: use random job ID for system tests. (#4163)
tswast Oct 12, 2017
a9a0b30
bigquery: generate row IDs in create_rows (#4173)
jba Oct 12, 2017
0209991
bigquery: retry idempotent RPCs (#4148)
jba Oct 12, 2017
e031a29
BQ: use a string or list of string for client.extract_table. (#4177)
tswast Oct 12, 2017
053a6ba
bigquery: retry Client.create_rows (#4178)
jba Oct 13, 2017
c70d6e4
bigquery: classes to support external table config (#4182)
jba Oct 14, 2017
e29e93b
BigQuery: adds client.create_rows_json (#4189)
alixhami Oct 16, 2017
8c8a0bc
bigquery: make views default to standard SQL (#4192)
jba Oct 16, 2017
ab392d5
BQ: update samples in README for beta 2 changes. (#4179)
tswast Oct 16, 2017
7ea861f
bigquery: support external table definitions for query jobs (#4191)
jba Oct 16, 2017
3af22d7
bigquery: support external data definition for tables (#4193)
jba Oct 16, 2017
a7e627c
bigquery: support update of dataset access entries (#4197)
jba Oct 16, 2017
9f095bf
biqquery: factor out common values in system.py (#4194)
jba Oct 16, 2017
112f6e3
BigQuery: option for job ID generation with user-supplied prefix (#4198)
alixhami Oct 16, 2017
56216a7
BigQuery: skip snippets tests until they can be updated.
tswast Oct 16, 2017
9f4bd6c
Merge remote-tracking branch 'upstream/bigquery-b2' into bigquery-b2
tswast Oct 16, 2017
78df6e6
bigquery: add filter to list_datasets (#4205)
jba Oct 16, 2017
6dae47f
bigquery: support table labels (#4207)
jba Oct 16, 2017
6d239c4
Use google.api.core.exceptions for internal retryable worker instead …
justinseinlin Oct 17, 2017
184efbe
Add sanity check for rows requested to mutate and number of responses…
justinseinlin Oct 17, 2017
1b7c6bd
Add PubSub system test for fix in #4174 (#4190)
jeffkpayne Oct 17, 2017
9b0c61f
Add test for assertion check to ensure num of responses matches num o…
justinseinlin Oct 17, 2017
fb42b6a
Add trace to CircleCI list of packages (#4212)
liyanhui1228 Oct 18, 2017
6345c06
Prep 'storage-1.5.0' release. (#4202)
tseaver Oct 18, 2017
f192cb6
BigQuery: removes LoadJob error for autodetect + schema (#4213)
alixhami Oct 18, 2017
b3197f0
Add api_core package (#4210)
Oct 18, 2017
961c70c
Update docs to use api_core instead of api.core (#4220)
Oct 18, 2017
af3da30
BigQuery: populate timeout parameter for getQueryResults (#4209)
tswast Oct 18, 2017
8040bc4
Replace usage of google.api.core with google.api_core (#4221)
Oct 18, 2017
c82d512
BigQuery: Adds helper function for snake to camel case conversion (#4…
alixhami Oct 18, 2017
b284369
Be permissive about merging an empty list. (#4170)
lukesneeringer Oct 19, 2017
500f761
Adding Firestore to project README. (#4230)
dhermes Oct 20, 2017
c2d496a
Add google.api_core.gapic_v2.client_info (#4225)
Oct 20, 2017
e354310
Fix how api_core.operation populates exception errors (#4231)
Oct 20, 2017
d19b6c3
Renames client.load_table_from_storage() to client.load_table_from_ur…
alixhami Oct 20, 2017
4ce4a90
BigQuery: Updates snippets for BigQuery Beta 2 changes (#4237)
alixhami Oct 23, 2017
c35eae6
Merge remote-tracking branch 'upstream/master' into bigquery-b2
tswast Oct 23, 2017
61bb7a0
BigQuery: make docstrings use bigquery module, like the samples do. (…
tswast Oct 23, 2017
df016c2
BigQuery: Make job.begin() method private. (#4242)
tswast Oct 24, 2017
09cf23a
Merge pull request #4245 from GoogleCloudPlatform/bigquery-b2
tswast Oct 24, 2017
54b3c98
Fix bare except (#4250)
Oct 24, 2017
6dbb16c
BigQuery: cancel query on exception in query_rows. (#4248)
tswast Oct 24, 2017
99db799
Updating some storage mocks after `google-resumable-media==0.3.1` rel…
dhermes Oct 25, 2017
a51b202
Fix parsing of API errors with Unicode err message (#4251)
Indy2222 Oct 25, 2017
877ef4e
Port gax proto helper methods (#4249)
landrito Oct 25, 2017
31a639d
Retry for rows that return retryable error codes.
justinseinlin Oct 3, 2017
b514051
Stop processing once all rows are successful or non-retryable.
justinseinlin Oct 3, 2017
e3e7163
Remove retry for INTERNAL error. Fix the case where has_retryable_res…
justinseinlin Oct 4, 2017
2eaa9b5
Fix lint errors.
justinseinlin Oct 5, 2017
22d2feb
Add tests for google.cloud.bigtable.table.Table.mutate_rows.\nCases f…
justinseinlin Oct 6, 2017
873235e
Add test cases for _RetryableMutateRowsWorker.
justinseinlin Oct 6, 2017
bd82a16
Refactor test for _RetryableMutateRowsWorker to cover callable interf…
justinseinlin Oct 7, 2017
7d6e3c9
Remove assumption that responses come back in the same linear order a…
justinseinlin Oct 11, 2017
7d34a06
Include retryable responses in the exception raised.
justinseinlin Oct 12, 2017
ad49d6f
Assign default value for init argument.
justinseinlin Oct 12, 2017
3269f18
Change _MILLIS_PER_SECOND to float for better deadline precision.
justinseinlin Oct 12, 2017
c1c7b17
Use google.api.core.retry.Retry. Allow user-configurable retry-options.
justinseinlin Oct 13, 2017
abc7895
Revert retry.py. Modify mutate_rows api to take a Retry instead with …
justinseinlin Oct 13, 2017
4ade5fa
Use google.api.core.exceptions for internal retryable worker instead …
justinseinlin Oct 17, 2017
0d86021
Add sanity check for rows requested to mutate and number of responses…
justinseinlin Oct 17, 2017
517c8e1
Add test for assertion check to ensure num of responses matches num o…
justinseinlin Oct 17, 2017
faf90a6
Sync rebased local branch and remote branch.
justinseinlin Oct 25, 2017
d6f7532
Refactor google.api.core to google.api_core.
justinseinlin Oct 25, 2017
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,12 @@ jobs:
command: |
python3.6 test_utils/scripts/get_target_packages.py > ~/target_packages
cat ~/target_packages
- run:
name: Run tests - google.api_core
command: |
if [[ -n $(grep api_core ~/target_packages) ]]; then
nox -f api_core/nox.py
fi
- run:
name: Run tests - google.cloud.core
command: |
Expand Down Expand Up @@ -136,6 +142,12 @@ jobs:
if [[ -n $(grep storage ~/target_packages) ]]; then
nox -f storage/nox.py
fi
- run:
name: Run tests - google.cloud.trace
command: |
if [[ -n $(grep trace ~/target_packages) ]]; then
nox -f trace/nox.py
fi
- run:
name: Run tests - google.cloud.translate
command: |
Expand Down
6 changes: 2 additions & 4 deletions .github/CODEOWNERS
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,8 @@
core/* @dhermes
test_utils/* @dhermes

# Jon Wayne Parrott is the author of the new google.api.core library.
# NOTE: This trumps the previous core/* directive, since the last match is
# what matters.
core/google/api/core/* @jonparrott
# Jon Wayne Parrott is the author of the new google.api_core library.
api_core/* @jonparrott

# Tres Seaver and Tim Swast share responsibility for BigQuery.
bigquery/* @tswast @tseaver
Expand Down
9 changes: 8 additions & 1 deletion README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ Cloud Platform services:
- `Google Cloud Bigtable`_ (`Bigtable README`_)
- `Google Cloud Bigtable - HappyBase`_ (`HappyBase README`_)
- `Google Cloud DNS`_ (`DNS README`_)
- `Google Cloud Firestore`_ (`Firestore README`_)
- `Google Cloud Resource Manager`_ (`Resource Manager README`_)
- `Google Cloud Runtime Configuration`_ (`Runtime Config README`_)
- `Stackdriver Error Reporting`_ (`Error Reporting README`_)
Expand Down Expand Up @@ -95,6 +96,8 @@ updates. See `versioning`_ for more details.
.. _Google Cloud Video Intelligence: https://pypi.python.org/pypi/google-cloud-videointelligence
.. _Video Intelligence README: https://github.com/GoogleCloudPlatform/google-cloud-python/tree/master/videointelligence
.. _versioning: https://github.com/GoogleCloudPlatform/google-cloud-python/blob/master/CONTRIBUTING.rst#versioning
.. _Google Cloud Firestore: https://pypi.org/project/google-cloud-firestore/
.. _Firestore README: https://github.com/GoogleCloudPlatform/google-cloud-python/tree/master/firestore

If you need support for other Google APIs, check out the
`Google APIs Python Client library`_.
Expand All @@ -108,6 +111,10 @@ Quick Start

$ pip install --upgrade google-cloud

Fore more information on setting up your Python development environment, such as installing ``pip`` on your system, please refer to `Python Development Environment Setup Guide`_ for Google Cloud Platform.

.. _Python Development Environment Setup Guide: https://cloud.google.com/python/setup

Example Applications
--------------------

Expand All @@ -127,7 +134,7 @@ You may also find the `authentication document`_ shared by all the
``google-cloud-*`` libraries to be helpful.

.. _Authentication section: https://google-cloud-python.readthedocs.io/en/latest/core/auth.html
.. _authentication document: https://github.com/GoogleCloudPlatform/gcloud-common/tree/master/authentication
.. _authentication document: https://github.com/GoogleCloudPlatform/google-cloud-common/tree/master/authentication

Contributing
------------
Expand Down
13 changes: 13 additions & 0 deletions api_core/.coveragerc
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
[run]
branch = True

[report]
fail_under = 100
show_missing = True
exclude_lines =
# Re-enable the standard pragma
pragma: NO COVER
# Ignore debug-only repr
def __repr__
# Ignore abstract methods
raise NotImplementedError
10 changes: 10 additions & 0 deletions api_core/.flake8
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
[flake8]
import-order-style=google
# Note: this forces all google imports to be in the third group. See
# https://github.com/PyCQA/flake8-import-order/issues/111
application-import-names=google
exclude =
__pycache__,
.git,
*.pyc,
conf.py
202 changes: 202 additions & 0 deletions api_core/LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,202 @@

Apache License
Version 2.0, January 2004
http://www.apache.org/licenses/

TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION

1. Definitions.

"License" shall mean the terms and conditions for use, reproduction,
and distribution as defined by Sections 1 through 9 of this document.

"Licensor" shall mean the copyright owner or entity authorized by
the copyright owner that is granting the License.

"Legal Entity" shall mean the union of the acting entity and all
other entities that control, are controlled by, or are under common
control with that entity. For the purposes of this definition,
"control" means (i) the power, direct or indirect, to cause the
direction or management of such entity, whether by contract or
otherwise, or (ii) ownership of fifty percent (50%) or more of the
outstanding shares, or (iii) beneficial ownership of such entity.

"You" (or "Your") shall mean an individual or Legal Entity
exercising permissions granted by this License.

"Source" form shall mean the preferred form for making modifications,
including but not limited to software source code, documentation
source, and configuration files.

"Object" form shall mean any form resulting from mechanical
transformation or translation of a Source form, including but
not limited to compiled object code, generated documentation,
and conversions to other media types.

"Work" shall mean the work of authorship, whether in Source or
Object form, made available under the License, as indicated by a
copyright notice that is included in or attached to the work
(an example is provided in the Appendix below).

"Derivative Works" shall mean any work, whether in Source or Object
form, that is based on (or derived from) the Work and for which the
editorial revisions, annotations, elaborations, or other modifications
represent, as a whole, an original work of authorship. For the purposes
of this License, Derivative Works shall not include works that remain
separable from, or merely link (or bind by name) to the interfaces of,
the Work and Derivative Works thereof.

"Contribution" shall mean any work of authorship, including
the original version of the Work and any modifications or additions
to that Work or Derivative Works thereof, that is intentionally
submitted to Licensor for inclusion in the Work by the copyright owner
or by an individual or Legal Entity authorized to submit on behalf of
the copyright owner. For the purposes of this definition, "submitted"
means any form of electronic, verbal, or written communication sent
to the Licensor or its representatives, including but not limited to
communication on electronic mailing lists, source code control systems,
and issue tracking systems that are managed by, or on behalf of, the
Licensor for the purpose of discussing and improving the Work, but
excluding communication that is conspicuously marked or otherwise
designated in writing by the copyright owner as "Not a Contribution."

"Contributor" shall mean Licensor and any individual or Legal Entity
on behalf of whom a Contribution has been received by Licensor and
subsequently incorporated within the Work.

2. Grant of Copyright License. Subject to the terms and conditions of
this License, each Contributor hereby grants to You a perpetual,
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
copyright license to reproduce, prepare Derivative Works of,
publicly display, publicly perform, sublicense, and distribute the
Work and such Derivative Works in Source or Object form.

3. Grant of Patent License. Subject to the terms and conditions of
this License, each Contributor hereby grants to You a perpetual,
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
(except as stated in this section) patent license to make, have made,
use, offer to sell, sell, import, and otherwise transfer the Work,
where such license applies only to those patent claims licensable
by such Contributor that are necessarily infringed by their
Contribution(s) alone or by combination of their Contribution(s)
with the Work to which such Contribution(s) was submitted. If You
institute patent litigation against any entity (including a
cross-claim or counterclaim in a lawsuit) alleging that the Work
or a Contribution incorporated within the Work constitutes direct
or contributory patent infringement, then any patent licenses
granted to You under this License for that Work shall terminate
as of the date such litigation is filed.

4. Redistribution. You may reproduce and distribute copies of the
Work or Derivative Works thereof in any medium, with or without
modifications, and in Source or Object form, provided that You
meet the following conditions:

(a) You must give any other recipients of the Work or
Derivative Works a copy of this License; and

(b) You must cause any modified files to carry prominent notices
stating that You changed the files; and

(c) You must retain, in the Source form of any Derivative Works
that You distribute, all copyright, patent, trademark, and
attribution notices from the Source form of the Work,
excluding those notices that do not pertain to any part of
the Derivative Works; and

(d) If the Work includes a "NOTICE" text file as part of its
distribution, then any Derivative Works that You distribute must
include a readable copy of the attribution notices contained
within such NOTICE file, excluding those notices that do not
pertain to any part of the Derivative Works, in at least one
of the following places: within a NOTICE text file distributed
as part of the Derivative Works; within the Source form or
documentation, if provided along with the Derivative Works; or,
within a display generated by the Derivative Works, if and
wherever such third-party notices normally appear. The contents
of the NOTICE file are for informational purposes only and
do not modify the License. You may add Your own attribution
notices within Derivative Works that You distribute, alongside
or as an addendum to the NOTICE text from the Work, provided
that such additional attribution notices cannot be construed
as modifying the License.

You may add Your own copyright statement to Your modifications and
may provide additional or different license terms and conditions
for use, reproduction, or distribution of Your modifications, or
for any such Derivative Works as a whole, provided Your use,
reproduction, and distribution of the Work otherwise complies with
the conditions stated in this License.

5. Submission of Contributions. Unless You explicitly state otherwise,
any Contribution intentionally submitted for inclusion in the Work
by You to the Licensor shall be under the terms and conditions of
this License, without any additional terms or conditions.
Notwithstanding the above, nothing herein shall supersede or modify
the terms of any separate license agreement you may have executed
with Licensor regarding such Contributions.

6. Trademarks. This License does not grant permission to use the trade
names, trademarks, service marks, or product names of the Licensor,
except as required for reasonable and customary use in describing the
origin of the Work and reproducing the content of the NOTICE file.

7. Disclaimer of Warranty. Unless required by applicable law or
agreed to in writing, Licensor provides the Work (and each
Contributor provides its Contributions) on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
implied, including, without limitation, any warranties or conditions
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
PARTICULAR PURPOSE. You are solely responsible for determining the
appropriateness of using or redistributing the Work and assume any
risks associated with Your exercise of permissions under this License.

8. Limitation of Liability. In no event and under no legal theory,
whether in tort (including negligence), contract, or otherwise,
unless required by applicable law (such as deliberate and grossly
negligent acts) or agreed to in writing, shall any Contributor be
liable to You for damages, including any direct, indirect, special,
incidental, or consequential damages of any character arising as a
result of this License or out of the use or inability to use the
Work (including but not limited to damages for loss of goodwill,
work stoppage, computer failure or malfunction, or any and all
other commercial damages or losses), even if such Contributor
has been advised of the possibility of such damages.

9. Accepting Warranty or Additional Liability. While redistributing
the Work or Derivative Works thereof, You may choose to offer,
and charge a fee for, acceptance of support, warranty, indemnity,
or other liability obligations and/or rights consistent with this
License. However, in accepting such obligations, You may act only
on Your own behalf and on Your sole responsibility, not on behalf
of any other Contributor, and only if You agree to indemnify,
defend, and hold each Contributor harmless for any liability
incurred by, or claims asserted against, such Contributor by reason
of your accepting any such warranty or additional liability.

END OF TERMS AND CONDITIONS

APPENDIX: How to apply the Apache License to your work.

To apply the Apache License to your work, attach the following
boilerplate notice, with the fields enclosed by brackets "[]"
replaced with your own identifying information. (Don't include
the brackets!) The text should be enclosed in the appropriate
comment syntax for the file format. We also recommend that a
file or class name and description of purpose be included on the
same "printed page" as the copyright notice for easier
identification within third-party archives.

Copyright [yyyy] [name of copyright owner]

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.
3 changes: 3 additions & 0 deletions api_core/MANIFEST.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
include README.rst LICENSE
recursive-include tests *
global-exclude *.pyc __pycache__
14 changes: 14 additions & 0 deletions api_core/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
Core Library for Google Client Libraries
========================================

|pypi| |versions|

This library is not meant to stand-alone. Instead it defines
common helpers used by all Google API clients. For more information, see the
`documentation`_.

.. |pypi| image:: https://img.shields.io/pypi/v/google-cloud-core.svg
:target: https://pypi.org/project/google-cloud-core/
.. |versions| image:: https://img.shields.io/pypi/pyversions/google-cloud-core.svg
:target: https://pypi.org/project/google-cloud-core/
.. _documentation: https://googlecloudplatform.github.io/google-cloud-python/latest/core/
4 changes: 2 additions & 2 deletions core/google/api/__init__.py → api_core/google/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 2017 Google Inc.
# Copyright 2016 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
Expand All @@ -12,7 +12,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.

"""Google API namespace package."""
"""Google namespace package."""

try:
import pkg_resources
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,8 @@

This package contains common code and utilties used by Google client libraries.
"""

from pkg_resources import get_distribution


__version__ = get_distribution('google-api-core').version
Loading