Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update v1beta3 branch with master's most recent changes #817

Merged
merged 293 commits into from
Mar 30, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
293 commits
Select commit Hold shift + click to select a range
c5566eb
Merge pull request #597 from mderka/dns-options
mderka Feb 2, 2016
a69101a
Added Dns methods. Fixes #596. Added Zone and ZoneTest
mderka Feb 2, 2016
28a457e
Rename TableDefinition to StandardTableDefinition and BaseTableDefini…
mziccard Feb 2, 2016
2bb03eb
Merge pull request #600 from mziccard/bigquery-hierachies
aozarov Feb 2, 2016
b0c0bb7
Make bigquery functional classes extend info classes
mziccard Feb 2, 2016
e083dfd
Fixed documentation and some code formatting. Declared exceptions to be
mderka Feb 2, 2016
d6daf09
Adjusted documentation, removed getProjectId and getProjectNumber
mderka Feb 3, 2016
e3686e3
Merge pull request #606 from mderka/dns-options
mderka Feb 3, 2016
3d1c1c8
Make functional objects subclasses of metadata objects.
Feb 1, 2016
94533b2
Minor refactoring bigquery functional objects
mziccard Feb 3, 2016
5829d81
Add functional classes to SerializationTest
mziccard Feb 3, 2016
0338ead
Completes DnsRpc interface by adding methods and doc.
mderka Feb 3, 2016
bc4b820
Implements DefaultDnsRpc. Progress in #595.
mderka Feb 3, 2016
896de75
Fixed documentation and null returns from rpc.
mderka Feb 3, 2016
aa0e377
minor fixes
Feb 3, 2016
6870eb7
Add toBuilder tests for Bucket and Blob, remove static get and builde…
Feb 4, 2016
75dbbf8
Add builder test to increase coverage
Feb 4, 2016
b6ad451
Refactor bigquery function objects builders
mziccard Feb 4, 2016
fbcbfb4
Add missing override annotation and serialVersionUID
mziccard Feb 4, 2016
3ae0f21
Change Tuple<X,Y> into ListResult<X>, added NAME option.
mderka Feb 4, 2016
4bf3796
Merge pull request #609 from mziccard/bigquery-hierachies
aozarov Feb 4, 2016
35dbb34
Merge pull request #616 from mderka/dns-options
aozarov Feb 4, 2016
ae7e62e
try latest version of coveralls
Feb 4, 2016
71f5ae2
Makes name of Zone mandatory and removes id-based methods.
mderka Feb 4, 2016
3183f4a
Added field options for zone create method.
mderka Feb 4, 2016
4057dcd
Fixed doc after refactoring. Made zone name mandatory in fields.
mderka Feb 5, 2016
7761a9e
Make Table methods public
mziccard Feb 5, 2016
3ce2cc6
Fix the 'Definition of groupId is redundant' mvn warning
mziccard Feb 5, 2016
f7990c0
Merge pull request #622 from mziccard/fix-groupid-warning
aozarov Feb 5, 2016
8ba9230
Merge pull request #621 from mziccard/bigquery-hierachies
aozarov Feb 5, 2016
d722635
Javadoc fixed.
mderka Feb 5, 2016
b128548
Merge pull request #620 from mderka/dns-options
mderka Feb 5, 2016
288c993
Minor fixes
Feb 5, 2016
cdec697
Merge pull request #614 from ajkannan/storage-merge-objects
aozarov Feb 5, 2016
3f39ab2
Fix failing bigquery ITs due to missing queryPlan
mziccard Feb 5, 2016
d2dbd99
Merge pull request #625 from mziccard/master
aozarov Feb 5, 2016
ef7c74f
Site cleanup
Feb 6, 2016
2bb9cb0
Merge pull request #627 from ajkannan/cleanup-site
aozarov Feb 6, 2016
5be58b3
Makes Zone subclass of ZoneInfo. Fixes #605.
mderka Feb 7, 2016
d1c4512
Added implementation of Dns and test. Renamed getProjectInfo.
mderka Feb 7, 2016
c0c5451
Included options attribute to Zone. Fixed symmetry of toPb and fromPb.
mderka Feb 8, 2016
ee5bb8f
Removed zone.get() and optimized retries.
mderka Feb 9, 2016
86b4356
Merge pull request #629 from mderka/rpc-default
aozarov Feb 9, 2016
f06c11a
Fix NPE in bigquery XXXInfo.equals
mziccard Feb 9, 2016
3502610
Update javadoc in Table definitions (remove type naming)
mziccard Feb 9, 2016
6955bf4
Shorten line longer than 100 characters
mziccard Feb 9, 2016
307ddf3
Merge pull request #632 from mziccard/bigquery-hierachies
ajkannan Feb 9, 2016
db52e09
Made nameServerSet read only and setters package private.
mderka Feb 9, 2016
fa081ac
Merge pull request #633 from mderka/rpc-default
mderka Feb 9, 2016
edc9db7
Refactor examples
mziccard Feb 9, 2016
b392345
Minor refactoring of examples and READMEs
mziccard Feb 10, 2016
b8b2612
Add comment in snippet classes reminding to update docs upon change
mziccard Feb 10, 2016
384a3f1
Update example links in module's READMEs
mziccard Feb 10, 2016
6fed3ee
Rename John Do to John Doe
mziccard Feb 10, 2016
d1765c7
Fix indentation issues in javadoc code samples
Feb 10, 2016
257e764
fix lint errors
Feb 10, 2016
71ac555
Move integration tests to separate package
Feb 10, 2016
4d8d986
Avoid reading extra output during local gcd shutdown.
Feb 10, 2016
526eb5f
Fix minor documentation issues in examples
mziccard Feb 10, 2016
8c9cb2e
Rename missing John Do
mziccard Feb 10, 2016
7864a93
Merge pull request #635 from mziccard/refactor-examples
aozarov Feb 10, 2016
9d201a0
Fix codacy and spacing bugs
Feb 10, 2016
0bea6e8
Add codacy badge to READMEs
mziccard Feb 11, 2016
43aabb3
Add codacy code patterns configuration
mziccard Feb 11, 2016
bc66860
Minor fix in ITs
Feb 11, 2016
1ab48bb
Merge pull request #641 from mziccard/refactor-examples
aozarov Feb 11, 2016
deb228f
Fix double code tags
Feb 12, 2016
a68a0b6
Add set methods for lists of same type
Feb 12, 2016
8050cca
Cleaner getList return value
Feb 12, 2016
8fb9e91
Merge pull request #636 from ajkannan/minor-cleanup
aozarov Feb 12, 2016
f920986
Revert #625 and Fixes ##624
aozarov Feb 12, 2016
47dcc63
Merge pull request #644 from aozarov/master
mziccard Feb 12, 2016
4476dcf
Update dependencies when possible
mziccard Feb 12, 2016
2f77f2d
Add versioneye badge to READMEs
mziccard Feb 12, 2016
e08896c
upgrade google-api-services-datastore-protobuf to v1beta2-rev1-4.0.0 …
aozarov Feb 12, 2016
ae7c0e9
Merge pull request #645 from mziccard/dependency-versions
aozarov Feb 12, 2016
67efa01
Merge pull request #646 from aozarov/master
mziccard Feb 12, 2016
2314eee
update codacy config
aozarov Feb 13, 2016
9412d69
Merge pull request #647 from aozarov/master
mziccard Feb 15, 2016
65f4f80
Add getter for key parent
Feb 16, 2016
c2f8952
Expose consistency parameter to users of LocalGcdHelper
Feb 16, 2016
274b9ae
Add set(...) javadoc, fix key namespace issue, fix ListValue.of(...),…
Feb 17, 2016
662f57f
remove unncessary changes to ListValue
Feb 17, 2016
04ab56e
Merge pull request #648 from ajkannan/datastore-fixes
aozarov Feb 17, 2016
53290f5
fix lint issue
aozarov Feb 17, 2016
7076ab6
Merge pull request #650 from aozarov/master
ajkannan Feb 18, 2016
1f6a7b3
support paging
Feb 18, 2016
1dd2c04
Fix broken hyperlink in comment
jart Feb 18, 2016
6b322fa
minor fixes
Feb 18, 2016
df32901
Propagate page size error to user
Feb 18, 2016
b9cd1a7
catch ResourceManagerException instead of Exception
Feb 18, 2016
da544a9
Merge pull request #651 from ajkannan/resourcemanager-page
aozarov Feb 18, 2016
ff20847
Add IAM Policy classes
Feb 17, 2016
3f07b2c
move to/fromPb functions to Resource Manager
Feb 19, 2016
c96469b
variable rename to make codacy happy
Feb 19, 2016
3695ddc
Update version for release
Feb 19, 2016
df90b9f
Merge pull request #653 from ajkannan/release-0.1.4
ajkannan Feb 19, 2016
cf792d8
Updating version in README files. [ci skip]
Feb 19, 2016
60998b7
Update version to 0.1.5-SNAPSHOT
Feb 19, 2016
df52008
Merge pull request #654 from ajkannan/update-version-to-0.1.5-SNAPSHOT
ajkannan Feb 19, 2016
a1ec7f4
Added local implementation of the service and tests.
mderka Feb 19, 2016
d72a8c6
Added "do not use production projects for tests"
mderka Feb 20, 2016
36fe287
Merge pull request #658 from GoogleCloudPlatform/mderka-doc-patch
aozarov Feb 20, 2016
e44e12a
Make BaseIamPolicy<R> in core and a subclass in Resource Manager
Feb 20, 2016
04f354a
Added RPC layer of tests for local helpers. Closes #665.
mderka Feb 23, 2016
b2c2d40
Udpate dependencies: source plugin, bigquery, storage and fluido skin
mziccard Feb 24, 2016
332f990
Merge pull request #663 from mziccard/master
ajkannan Feb 24, 2016
ee78b22
Fix equals, javadoc, bindings representation, and address other comme…
Feb 22, 2016
1583e2c
Add pageToken to list fields option for GCS and resourcemanager
mziccard Feb 25, 2016
28f4a18
validateOpen throws ClosedChannelException in BaseWriteChannel and Bl…
mziccard Feb 25, 2016
119ccdf
Merge pull request #669 from mziccard/validate-open-exception
aozarov Feb 25, 2016
08295ee
Document exceptions and satisfy codacy's demands.
Feb 25, 2016
5fea7ce
Use Pattern to match list fields selector
mziccard Feb 25, 2016
a62c69d
Handle no project fields are selected on list
mziccard Feb 25, 2016
cbf737d
Added integration tests.
mderka Feb 24, 2016
a439628
Remove non-necessary commaNeeded variable
mziccard Feb 25, 2016
7194201
Merge pull request #668 from mziccard/page-token-fields-option
aozarov Feb 25, 2016
7d87d3c
Use enum for legacy roles, add input checks
Feb 26, 2016
f4d3b95
Merge pull request #652 from ajkannan/iam
aozarov Feb 26, 2016
75269ff
Removed unnecessary integration tests. Adjusted deleting objects.
mderka Feb 26, 2016
992a371
Remove tabs from storage and bigquery poms
mziccard Feb 29, 2016
72b4f44
Fix links to examples javadoc in READMEs
mziccard Feb 29, 2016
5ea8a8d
Merge pull request #685 from mziccard/poms-remove-tabs
ajkannan Feb 29, 2016
5c3bd9f
Use better link names for examples javadoc
mziccard Feb 29, 2016
bbe7b50
Merge pull request #686 from mziccard/master
aozarov Feb 29, 2016
21e68cc
Add a versions option to BlobListOption
aozarov Feb 29, 2016
438896b
add list versioned blobs to integration tests
aozarov Mar 1, 2016
e66c9a4
fix style and formatting issue
aozarov Mar 1, 2016
3930ff9
Merge pull request #688 from aozarov/master
mziccard Mar 1, 2016
93810ca
Replace com.google.api.client.util.Lists with Guava's Lists
mziccard Mar 1, 2016
8a3d5d8
Replace repackaged checkNotNull inclusion with Guava's
mziccard Mar 1, 2016
926831e
Merge pull request #694 from mziccard/master
aozarov Mar 1, 2016
9b6929b
Added retryable errors.
mderka Mar 1, 2016
452e274
Handle eventally consistent blob lists in storage ITs
mziccard Mar 2, 2016
22153aa
Added sleep and renamed change completion check.
mderka Mar 1, 2016
44b1998
Merge pull request #674 from mderka/integration
mderka Mar 2, 2016
4f28101
Added retries for userRateLimitExceeded and rateLimitExceeded.
mderka Mar 2, 2016
a3fdbbc
Add BlobTargetOption and BlobWriteOption classes to Bucket
mziccard Mar 2, 2016
3600338
Reword javadoc in BlobTargetOption and BlobWriteOption
mziccard Mar 2, 2016
030e819
Merge pull request #700 from mderka/retries
mderka Mar 3, 2016
be913a6
Merge pull request #705 from mziccard/functional-bucket-options
aozarov Mar 3, 2016
5a1d93f
Merge branch 'master' into merge-master
mderka Mar 3, 2016
5858809
pom.xml version edit
mderka Mar 3, 2016
d163bfb
Merge pull request #707 from mderka/merge-master
ajkannan Mar 3, 2016
622dcc9
Replace values().iterator() with iterateAll() in blob list ITs
mziccard Mar 3, 2016
50750d4
Merge pull request #704 from mziccard/fix-storage-its
mziccard Mar 3, 2016
8684506
Added missing waits for change completion.
mderka Mar 3, 2016
8e6aeef
Merge pull request #708 from mderka/integration
mderka Mar 3, 2016
8dd8786
Remove redundant throws from services method signatures
mziccard Mar 4, 2016
7eb957d
Merge pull request #712 from mziccard/remove-throws
aozarov Mar 4, 2016
b8031e1
Adjusted clear not to collide when parallel test are running.
mderka Mar 4, 2016
481db7a
Merge pull request #713 from mderka/integration
mderka Mar 4, 2016
c486452
Add NoAuthCredentials
Mar 6, 2016
8c353ec
Add javadoc
Mar 7, 2016
0c4af89
change NoAuthCredentials javadoc wording
Mar 7, 2016
d3224b3
Merge pull request #719 from ajkannan/add-no-auth
ajkannan Mar 7, 2016
cded234
Fix writes with 0 length
aozarov Mar 7, 2016
36ebabd
Fix test and issue #723
aozarov Mar 8, 2016
e70387d
Merge pull request #725 from aozarov/master
mziccard Mar 8, 2016
d930b4b
Remove BlobListOption.recursive option and fix delimiter handling
mziccard Mar 8, 2016
0f4a7a0
Release version 0.1.5
mziccard Mar 8, 2016
2611514
Merge pull request #729 from mziccard/master
mziccard Mar 8, 2016
1f1f4b0
Updating version in README files. [ci skip]
Mar 8, 2016
aa6c173
Update version to 0.1.6-SNAPSHOT
mziccard Mar 8, 2016
7c42116
Merge pull request #730 from mziccard/master
aozarov Mar 8, 2016
de9b0d6
Refactor Storage's delimiter support
mziccard Mar 9, 2016
5dd3c30
Merge pull request #726 from mziccard/fix-list-prefix
mziccard Mar 9, 2016
1f06caf
The following has been done within multiple iterations:
mderka Feb 24, 2016
53e87fe
Merge pull request #656 from mderka/dummy
mderka Mar 9, 2016
3cf0722
Switched ZoneInfo.builder(). to ZoneInfo.of(). Fixes #698.
mderka Mar 1, 2016
90897f3
Renamed a test method and a variable.
mderka Mar 10, 2016
a26bd59
Merge pull request #736 from mderka/zone-of
mziccard Mar 10, 2016
407c436
Create service-specific spi packages
mziccard Mar 10, 2016
fd7d84d
Reorder and add imports
mziccard Mar 10, 2016
0d38c67
Merge pull request #742 from mziccard/rename-spi
ajkannan Mar 11, 2016
a595f6a
Use groups to separate packages in javadoc's index
mziccard Mar 10, 2016
90d0917
Add group for testing packages
mziccard Mar 10, 2016
24a712a
Rename Main packages to API packages, reorder groups, add service's SPIs
mziccard Mar 10, 2016
ac1ba66
Add more detailed javadoc to Blob and Storage signUrl
mziccard Mar 11, 2016
1425513
Merge pull request #738 from mziccard/javadoc-group-packages
ajkannan Mar 11, 2016
8a3b4f2
Remove final from Blob
jean-philippe-martin Mar 11, 2016
ddd02aa
Merge pull request #744 from jean-philippe-martin/blob_notfinal
aozarov Mar 11, 2016
ddb1ade
Rephrase signUrl javadoc for better clarity
mziccard Mar 13, 2016
d97c188
Rename maxResults to pageSize
mziccard Mar 14, 2016
767be65
LocalDnsHelper adds the default change upon creating a zone.
mderka Mar 14, 2016
86e23d5
Fix flaky RemoteGcsHelperTest.testForceDeleteTimeout
mziccard Mar 14, 2016
f5c0587
Merge pull request #746 from mderka/local-adjustment
mderka Mar 14, 2016
9e5c173
Merge pull request #745 from mziccard/rename-max-results
mderka Mar 14, 2016
646f3c9
Merge pull request #747 from mziccard/master
aozarov Mar 14, 2016
96e380c
Moved spi package to dns.spi as per #742
mderka Mar 14, 2016
6be68bc
Merge pull request #748 from mderka/spi-refactor
ajkannan Mar 14, 2016
4e0248f
Add better javadoc for signUrl examples
mziccard Mar 15, 2016
3b083a6
Merge pull request #743 from mziccard/signurl-javadoc
mziccard Mar 15, 2016
886a8bd
Added a DNS example and documentation.
mderka Mar 2, 2016
8e82f35
Fixed based on first round of comments:
mderka Mar 10, 2016
da877d8
Added code snippets for DNS.
mderka Mar 10, 2016
3cdc3a4
Merge pull request #717 from mderka/example
mderka Mar 15, 2016
baee7d7
Added integration test for invalid change request.
mderka Mar 14, 2016
736b6e1
Merge pull request #749 from mderka/spi-refactor
mderka Mar 15, 2016
c2c6628
Add get, replace, and test for IAM
Mar 1, 2016
7d48ec7
Merge pull request #718 from ajkannan/get-set-test-iam
ajkannan Mar 15, 2016
8ae8a1b
Create base class for serialization tests
mziccard Mar 16, 2016
f7f4de8
Added READMEs. This includes:
mderka Mar 1, 2016
17442b0
Merge pull request #750 from mderka/readme
mderka Mar 16, 2016
967c5c5
Add tests for restorable classes. Fix serialization issues
mziccard Mar 17, 2016
034432a
Remove serialization test for ApplicationDefaultAuthCredentials
mziccard Mar 17, 2016
ce59793
Add restorableObjects method to BaseSerializationTest
mziccard Mar 17, 2016
0a113cd
Remove default contentType from Storage's compose
mziccard Mar 18, 2016
8840b33
Remove default contentType from Bucket's create
mziccard Mar 18, 2016
5c4e288
Make NoAuthCredentials constructor private
mziccard Mar 18, 2016
19e0c6e
Add IamPolicy to SerializationTest
mziccard Mar 18, 2016
83ddb08
Add equals and hashCode to exceptions. Add exceptions to serializatio…
mziccard Mar 18, 2016
353d2db
Merge pull request #754 from mziccard/serialization-tests
aozarov Mar 18, 2016
22636e2
Remove checks for contentType in CopyRequest
mziccard Mar 18, 2016
3e5db7a
Refactor CopyRequest: remove targetId, add boolean overrideInfo
mziccard Mar 20, 2016
1855ae1
Add better javadoc to Storage.copy and CopyWriter
mziccard Mar 20, 2016
5dd0292
Rephrase RewriteChannel and Storage.copy javadoc. Add final to CopyWr…
mziccard Mar 20, 2016
fa64fa5
Merge pull request #762 from mziccard/remove-compose-content-type
mziccard Mar 20, 2016
3e9e1a0
IAM docs and functional methods for policies
Mar 16, 2016
c05e738
Add binding entries as necessary in IamPolicy.Builder
Mar 21, 2016
7bbe67f
Take care of minor changes
Mar 21, 2016
5fbb41c
Merge pull request #760 from ajkannan/iam-docs-and-cleanup
ajkannan Mar 21, 2016
3a97ae1
Make role and permission strings to allow for service-specific values
Mar 22, 2016
52bf6c1
remove varargs for testPermissions and other minor fixes
Mar 22, 2016
a78f0a7
Merge pull request #772 from ajkannan/support-more-iam-roles
ajkannan Mar 22, 2016
b7c6da4
Rename startPageToken to pageToken in Storage and BigQuery
mziccard Mar 22, 2016
689bbb4
Merge pull request #774 from mziccard/rename-next-page-token
ajkannan Mar 22, 2016
d974887
Merge remote-tracking branch 'upstream/master' into dns-alpha
mderka Mar 23, 2016
e946b76
Updated the version in pom.
mderka Mar 23, 2016
9ac6a82
Merge pull request #782 from mderka/merge-master
ajkannan Mar 23, 2016
5c3fc94
Refactored the serialization test to use the base test
mderka Mar 23, 2016
2f90e7e
Merge pull request #783 from mderka/newserialization
ajkannan Mar 23, 2016
1a5aade
Renamed DnsRecord to RecordSet. Fixes #779.
mderka Mar 23, 2016
96e28d6
Merge pull request #784 from mderka/rename-dns-record
mderka Mar 24, 2016
01e2310
Turned ChangeRequest into a functional object.
mderka Mar 24, 2016
de8bf4b
Addressed comments. This includes:
mderka Mar 25, 2016
104f9e5
Merge pull request #789 from mderka/change-request-functional
mderka Mar 26, 2016
59c3215
Merge pull request #795 from ajkannan/merge-dns-alpha
ajkannan Mar 29, 2016
f2f93bc
Release v0.1.6
Mar 29, 2016
3df14dd
Merge pull request #799 from ajkannan/release-0.1.6
ajkannan Mar 29, 2016
7004918
Updating version in README files. [ci skip]
Mar 29, 2016
d2dc5e7
Update version to 0.1.7-SNAPSHOT
Mar 29, 2016
f97385f
Merge pull request #801 from ajkannan/pom-version-0.1.7-SNAPSHOT
ajkannan Mar 29, 2016
4ee0e32
update pom.xml to include DNS in javadoc groups
aozarov Mar 29, 2016
249cac6
Merge pull request #802 from aozarov/master
ajkannan Mar 29, 2016
7849e6e
Add pkg info for dns
Mar 29, 2016
2819942
Merge pull request #805 from ajkannan/dns-testing-pkg-info
ajkannan Mar 29, 2016
69476eb
Add comment about releasing new modules
Mar 29, 2016
6747274
Merge pull request #806 from ajkannan/releasing-new-module
ajkannan Mar 29, 2016
2b52294
Merge conflict resolution.
Mar 29, 2016
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
2 changes: 2 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@ When changes are made to authentication and project ID-related code, authenticat

Known issue: If you have installed the Google Cloud SDK, be sure to log in (using `gcloud auth login`) before running tests. Though the Datastore tests use a local Datastore emulator that doesn't require authentication, they will not run if you have the Google Cloud SDK installed but aren't authenticated.

**Please, do not use your production projects for executing integration tests.** While we do our best to make our tests independent of your project's state and content, they do perform create, modify and deletes, and you do not want to have your production data accidentally modified.

Adding Features
---------------
In order to add a feature to gcloud-java:
Expand Down
227 changes: 168 additions & 59 deletions README.md

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions RELEASING.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ Most of the release process is handled by the `after_success.sh` script, trigger
1. Run `utilities/update_pom_version.sh` from the repository's base directory.
This script takes an optional argument denoting the new version. By default, if the current version is X.Y.Z-SNAPSHOT, the script will update the version in all the pom.xml files to X.Y.Z. If desired, another version can be supplied via command line argument instead.

2. Create a PR to update the pom.xml version.
The PR should look something like [#225](https://github.com/GoogleCloudPlatform/gcloud-java/pull/225). After this PR is merged into GoogleCloudPlatform/gcloud-java, Travis CI will push a new website to GoogleCloudPlatform/gh-pages, push a new artifact to the Maven Central Repository, and update versions in the README files.
2. Create a PR to update the pom.xml version. If releasing a new client library, this PR should also update javadoc grouping in the base directory's [pom.xml](./pom.xml).
PRs that don't release new modules should look something like [#225](https://github.com/GoogleCloudPlatform/gcloud-java/pull/225). PRs that do release a new module should also add the appropriate packages to the javadoc groups "SPI" and "Test helpers", as shown in [#802](https://github.com/GoogleCloudPlatform/gcloud-java/pull/802) for `gcloud-java-dns`. After this PR is merged into GoogleCloudPlatform/gcloud-java, Travis CI will push a new website to GoogleCloudPlatform/gh-pages, push a new artifact to the Maven Central Repository, and update versions in the README files.

3. Before moving on, verify that the artifacts have successfully been pushed to the Maven Central Repository. Open Travis CI, click the ["Build History" tab](https://travis-ci.org/GoogleCloudPlatform/gcloud-java/builds), and open the second build's logs for Step 2's PR. Be sure that you are not opening the "Pull Request" build logs. When the build finishes, scroll to the end of the log and verify that the artifacts were successfully staged and deployed. You can also search for `gcloud-java` on the [Sonatype website](https://oss.sonatype.org/#nexus-search;quick~gcloud-java) and check the latest version number. If the deployment didn't succeed because of a flaky test, rerun the build.

Expand Down
1 change: 1 addition & 0 deletions codacy-conf.json

Large diffs are not rendered by default.

104 changes: 16 additions & 88 deletions gcloud-java-bigquery/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ Java idiomatic client for [Google Cloud BigQuery] (https://cloud.google.com/bigq
[![Build Status](https://travis-ci.org/GoogleCloudPlatform/gcloud-java.svg?branch=master)](https://travis-ci.org/GoogleCloudPlatform/gcloud-java)
[![Coverage Status](https://coveralls.io/repos/GoogleCloudPlatform/gcloud-java/badge.svg?branch=master)](https://coveralls.io/r/GoogleCloudPlatform/gcloud-java?branch=master)
[![Maven](https://img.shields.io/maven-central/v/com.google.gcloud/gcloud-java-bigquery.svg)]( https://img.shields.io/maven-central/v/com.google.gcloud/gcloud-java-bigquery.svg)
[![Codacy Badge](https://api.codacy.com/project/badge/grade/9da006ad7c3a4fe1abd142e77c003917)](https://www.codacy.com/app/mziccard/gcloud-java)
[![Dependency Status](https://www.versioneye.com/user/projects/56bd8ee72a29ed002d2b0969/badge.svg?style=flat)](https://www.versioneye.com/user/projects/56bd8ee72a29ed002d2b0969)

- [Homepage] (https://googlecloudplatform.github.io/gcloud-java/)
- [API Documentation] (http://googlecloudplatform.github.io/gcloud-java/apidocs/index.html?com/google/gcloud/bigquery/package-summary.html)
Expand All @@ -20,22 +22,22 @@ If you are using Maven, add this to your pom.xml file
<dependency>
<groupId>com.google.gcloud</groupId>
<artifactId>gcloud-java-bigquery</artifactId>
<version>0.1.3</version>
<version>0.1.6</version>
</dependency>
```
If you are using Gradle, add this to your dependencies
```Groovy
compile 'com.google.gcloud:gcloud-java-bigquery:0.1.3'
compile 'com.google.gcloud:gcloud-java-bigquery:0.1.6'
```
If you are using SBT, add this to your dependencies
```Scala
libraryDependencies += "com.google.gcloud" % "gcloud-java-bigquery" % "0.1.3"
libraryDependencies += "com.google.gcloud" % "gcloud-java-bigquery" % "0.1.6"
```

Example Application
-------------------
- [`BigQueryExample`](https://github.com/GoogleCloudPlatform/gcloud-java/blob/master/gcloud-java-examples/src/main/java/com/google/gcloud/examples/BigQueryExample.java) - A simple command line interface providing some of Cloud BigQuery's functionality.
Read more about using this application on the [`gcloud-java-examples` docs page](http://googlecloudplatform.github.io/gcloud-java/apidocs/?com/google/gcloud/examples/BigQueryExample.html).
- [`BigQueryExample`](../gcloud-java-examples/src/main/java/com/google/gcloud/examples/bigquery/BigQueryExample.java) - A simple command line interface providing some of Cloud BigQuery's functionality.
Read more about using this application on the [`BigQueryExample` docs page](http://googlecloudplatform.github.io/gcloud-java/apidocs/?com/google/gcloud/examples/bigquery/BigQueryExample.html).

Authentication
--------------
Expand Down Expand Up @@ -111,9 +113,10 @@ are created from a BigQuery SQL query. In this code snippet we show how to creat
with only one string field. Add the following imports at the top of your file:

```java
import com.google.gcloud.bigquery.BaseTableInfo;
import com.google.gcloud.bigquery.Field;
import com.google.gcloud.bigquery.Schema;
import com.google.gcloud.bigquery.StandardTableDefinition;
import com.google.gcloud.bigquery.Table;
import com.google.gcloud.bigquery.TableId;
import com.google.gcloud.bigquery.TableInfo;
```
Expand All @@ -126,7 +129,8 @@ Field stringField = Field.of("StringField", Field.Type.string());
// Table schema definition
Schema schema = Schema.of(stringField);
// Create a table
TableInfo createdTableInfo = bigquery.create(TableInfo.of(tableId, schema));
StandardTableDefinition tableDefinition = StandardTableDefinition.of(schema);
Table createdTable = bigquery.create(TableInfo.of(tableId, tableDefinition));
```

#### Loading data into a table
Expand Down Expand Up @@ -181,7 +185,7 @@ Then add the following code to run the query and wait for the result:
QueryRequest queryRequest =
QueryRequest.builder("SELECT * FROM my_dataset_id.my_table_id")
.maxWaitTime(60000L)
.maxResults(1000L)
.pageSize(1000L)
.build();
// Request query to be executed and wait for results
QueryResponse queryResponse = bigquery.query(queryRequest);
Expand All @@ -198,89 +202,13 @@ while (rowIterator.hasNext()) {
```
#### Complete source code

Here we put together all the code shown above into one program. This program assumes that you are
running on Compute Engine or from your own desktop. To run this example on App Engine, simply move
In
[InsertDataAndQueryTable.java](../gcloud-java-examples/src/main/java/com/google/gcloud/examples/bigquery/snippets/InsertDataAndQueryTable.java)
we put together all the code shown above into one program. The program assumes that you are
running on Compute Engine or from your own desktop. To run the example on App Engine, simply move
the code from the main method to your application's servlet class and change the print statements to
display on your webpage.

```java
import com.google.gcloud.bigquery.BaseTableInfo;
import com.google.gcloud.bigquery.BigQuery;
import com.google.gcloud.bigquery.BigQueryOptions;
import com.google.gcloud.bigquery.DatasetInfo;
import com.google.gcloud.bigquery.Field;
import com.google.gcloud.bigquery.FieldValue;
import com.google.gcloud.bigquery.InsertAllRequest;
import com.google.gcloud.bigquery.InsertAllResponse;
import com.google.gcloud.bigquery.QueryRequest;
import com.google.gcloud.bigquery.QueryResponse;
import com.google.gcloud.bigquery.Schema;
import com.google.gcloud.bigquery.TableId;
import com.google.gcloud.bigquery.TableInfo;

import java.util.HashMap;
import java.util.Iterator;
import java.util.List;
import java.util.Map;

public class GcloudBigQueryExample {

public static void main(String[] args) throws InterruptedException {

// Create a service instance
BigQuery bigquery = BigQueryOptions.defaultInstance().service();

// Create a dataset
String datasetId = "my_dataset_id";
bigquery.create(DatasetInfo.builder(datasetId).build());

TableId tableId = TableId.of(datasetId, "my_table_id");
// Table field definition
Field stringField = Field.of("StringField", Field.Type.string());
// Table schema definition
Schema schema = Schema.of(stringField);
// Create a table
TableInfo createdTableInfo = bigquery.create(TableInfo.of(tableId, schema));

// Define rows to insert
Map<String, Object> firstRow = new HashMap<>();
Map<String, Object> secondRow = new HashMap<>();
firstRow.put("StringField", "value1");
secondRow.put("StringField", "value2");
// Create an insert request
InsertAllRequest insertRequest = InsertAllRequest.builder(tableId)
.addRow(firstRow)
.addRow(secondRow)
.build();
// Insert rows
InsertAllResponse insertResponse = bigquery.insertAll(insertRequest);
// Check if errors occurred
if (insertResponse.hasErrors()) {
System.out.println("Errors occurred while inserting rows");
}

// Create a query request
QueryRequest queryRequest =
QueryRequest.builder("SELECT * FROM my_dataset_id.my_table_id")
.maxWaitTime(60000L)
.maxResults(1000L)
.build();
// Request query to be executed and wait for results
QueryResponse queryResponse = bigquery.query(queryRequest);
while (!queryResponse.jobComplete()) {
Thread.sleep(1000L);
queryResponse = bigquery.getQueryResults(queryResponse.jobId());
}
// Read rows
Iterator<List<FieldValue>> rowIterator = queryResponse.result().iterateAll();
System.out.println("Table rows:");
while (rowIterator.hasNext()) {
System.out.println(rowIterator.next());
}
}
}
```

Troubleshooting
---------------

Expand Down
22 changes: 14 additions & 8 deletions gcloud-java-bigquery/pom.xml
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
<?xml version="1.0"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>com.google.gcloud</groupId>
<artifactId>gcloud-java-bigquery</artifactId>
<packaging>jar</packaging>
<name>GCloud Java bigquery</name>
Expand All @@ -11,7 +10,7 @@
<parent>
<groupId>com.google.gcloud</groupId>
<artifactId>gcloud-java-pom</artifactId>
<version>0.1.4-SNAPSHOT</version>
<version>0.1.7-SNAPSHOT</version>
</parent>
<properties>
<site.installationModule>gcloud-java-bigquery</site.installationModule>
Expand All @@ -31,15 +30,22 @@
<dependency>
<groupId>com.google.apis</groupId>
<artifactId>google-api-services-bigquery</artifactId>
<version>v2-rev254-1.21.0</version>
<version>v2-rev270-1.21.0</version>
<scope>compile</scope>
<exclusions>
<exclusion>
<groupId>com.google.guava</groupId>
<artifactId>guava-jdk5</artifactId>
</exclusion>
<exclusion>
<groupId>com.google.guava</groupId>
<artifactId>guava-jdk5</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>${project.groupId}</groupId>
<artifactId>gcloud-java-core</artifactId>
<version>${project.version}</version>
<type>test-jar</type>
<scope>test</scope>
</dependency>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
Expand All @@ -49,7 +55,7 @@
<dependency>
<groupId>org.easymock</groupId>
<artifactId>easymock</artifactId>
<version>3.3</version>
<version>3.4</version>
<scope>test</scope>
</dependency>
</dependencies>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -325,6 +325,8 @@ Access toPb() {
*/
public static final class View extends Entity {

private static final long serialVersionUID = -6851072781269419383L;

private final TableId id;

/**
Expand Down
Loading