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

Merge pubsub-alpha from master #798

Merged
merged 241 commits into from
Mar 29, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
241 commits
Select commit Hold shift + click to select a range
2bf4925
Initial project for Google Cloud DNS in gcloud-java
mderka Jan 16, 2016
fe4e137
Added DnsRecord as a part of the basic data model.
mderka Jan 16, 2016
f652277
Implemented comments by @mziccard
mderka Jan 19, 2016
b29945f
Second round of comments from @mziccard
mderka Jan 20, 2016
1fc0e32
Implemented comments by @aozarov. Also removed incomplete
mderka Jan 21, 2016
01662be
Implements comments by @ajkannan
mderka Jan 21, 2016
1c65715
Removed the method for removing a record by index.
mderka Jan 21, 2016
f994057
Another round of comments from @aozarov.
mderka Jan 22, 2016
7493f1a
Merge pull request #559 from mderka/gcloud-dns
aozarov Jan 22, 2016
1c69b05
Merge pull request #574 from GoogleCloudPlatform/master
mderka Jan 22, 2016
e8dd142
Created a ManagedZoneInfo class as part of the model.
mderka Jan 20, 2016
c95c3aa
Implemented comments by @aozarov.
mderka Jan 23, 2016
dacea19
Another round of comments from @aozarov.
mderka Jan 25, 2016
20f325b
Merge pull request #575 from mderka/dns-managed-zone
aozarov Jan 26, 2016
273b441
Implemented ChangeRequest.
mderka Jan 26, 2016
35cfd61
Added test for ChangeRequest.
mderka Jan 26, 2016
6f9e1c0
Implements comments from @ajkannan and @aozarov.
mderka Jan 27, 2016
438c05a
Merge pull request #587 from mderka/dns-change
mderka Jan 27, 2016
9b4ff48
Added ProjectInfo.
mderka Jan 26, 2016
a47158d
Fixed serialization, javadoc and checkstyle.
mderka Jan 27, 2016
9db27d4
Implements comment from @aozarov and @ajkannan into ProjectInfo.
mderka Jan 28, 2016
4412c73
Changed documentation @code to @link where applicable.
mderka Jan 28, 2016
2c87334
Merge pull request #590 from mderka/dns-project
mderka Jan 28, 2016
81a46d8
Renames ManagedZone to Zone. Acommodates codecheck. Fixes #579.
mderka Jan 28, 2016
c364ff3
Modified ttl to accept time unit. Fixed #581.
mderka Jan 28, 2016
7bcff48
Implemented comments by @aozarov.
mderka Jan 28, 2016
a2fdb69
Merge pull request #592 from mderka/dns-polishing
mderka Jan 28, 2016
f9b6f6a
Added DnsService interface.
mderka Jan 28, 2016
4fdc8ee
Added AbstractOption.
mderka Jan 28, 2016
06becd8
Added DnsException.
mderka Jan 28, 2016
81cedc4
Added DnsServiceRpc.
mderka Jan 29, 2016
bf1361c
Added DnsServiceOptions and necessary dependencies.
mderka Jan 29, 2016
465f532
Modified DnsException to pass tests.
mderka Jan 29, 2016
a8bee9c
Implements comments by @aozarov.
mderka Jan 30, 2016
762483b
Makes ProjectInfo.Quota serializable. Fixed #599.
mderka Jan 30, 2016
e17bedb
Implemented DnsOptions up to two unavailable classes.
mderka Jan 30, 2016
adf5c1c
Added test for AbstractOption.
mderka Feb 1, 2016
a9cc927
Implemented comments by @aozarov. Added test for option accessors.
mderka Feb 1, 2016
6ecde35
Comments by @aozarov second round.
mderka Feb 2, 2016
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
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
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
3ae0f21
Change Tuple<X,Y> into ListResult<X>, added NAME option.
mderka Feb 4, 2016
35dbb34
Merge pull request #616 from mderka/dns-options
aozarov 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
d722635
Javadoc fixed.
mderka Feb 5, 2016
b128548
Merge pull request #620 from mderka/dns-options
mderka Feb 5, 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
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
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
9d201a0
Fix codacy and spacing bugs
Feb 10, 2016
bc66860
Minor fix in ITs
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
f3502a6
Merge branch 'master' into pubsub-alpha
shinfan Mar 29, 2016
a1b6c65
Update pom version to fix the build.
shinfan 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
89 changes: 81 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ Java idiomatic client for [Google Cloud Platform][cloud-platform] services.
[![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.svg)]( https://img.shields.io/maven-central/v/com.google.gcloud/gcloud-java.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)
Expand All @@ -15,6 +16,7 @@ This client supports the following Google Cloud Platform services:

- [Google Cloud BigQuery] (#google-cloud-bigquery-alpha) (Alpha)
- [Google Cloud Datastore] (#google-cloud-datastore)
- [Google Cloud DNS] (#google-cloud-dns-alpha) (Alpha)
- [Google Cloud Resource Manager] (#google-cloud-resource-manager-alpha) (Alpha)
- [Google Cloud Storage] (#google-cloud-storage)

Expand All @@ -28,33 +30,35 @@ If you are using Maven, add this to your pom.xml file
<dependency>
<groupId>com.google.gcloud</groupId>
<artifactId>gcloud-java</artifactId>
<version>0.1.3</version>
<version>0.1.5</version>
</dependency>
```
If you are using Gradle, add this to your dependencies
```Groovy
compile 'com.google.gcloud:gcloud-java:0.1.3'
compile 'com.google.gcloud:gcloud-java:0.1.5'
```
If you are using SBT, add this to your dependencies
```Scala
libraryDependencies += "com.google.gcloud" % "gcloud-java" % "0.1.3"
libraryDependencies += "com.google.gcloud" % "gcloud-java" % "0.1.5"
```

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

- [`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 [`gcloud-java-examples` docs page](http://googlecloudplatform.github.io/gcloud-java/apidocs/?com/google/gcloud/examples/BigQueryExample.html).
- 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).
- [`Bookshelf`](https://github.com/GoogleCloudPlatform/getting-started-java/tree/master/bookshelf) - An App Engine app that manages a virtual bookshelf.
- This app uses `gcloud-java` to interface with Cloud Datastore and Cloud Storage. It also uses Cloud SQL, another Google Cloud Platform service.
- [`DatastoreExample`](./gcloud-java-examples/src/main/java/com/google/gcloud/examples/datastore/DatastoreExample.java) - A simple command line interface for the Cloud Datastore
- Read more about using this application on the [`gcloud-java-examples` docs page](http://googlecloudplatform.github.io/gcloud-java/apidocs/?com/google/gcloud/examples/DatastoreExample.html).
- [`DatastoreExample`](./gcloud-java-examples/src/main/java/com/google/gcloud/examples/datastore/DatastoreExample.java) - A simple command line interface for Cloud Datastore
- Read more about using this application on the [`DatastoreExample` docs page](http://googlecloudplatform.github.io/gcloud-java/apidocs/?com/google/gcloud/examples/datastore/DatastoreExample.html).
- [`DnsExample`](./gcloud-java-examples/src/main/java/com/google/gcloud/examples/dns/DnsExample.java) - A simple command line interface for Cloud DNS
- Read more about using this application on the [`DnsExample` docs page](http://googlecloudplatform.github.io/gcloud-java/apidocs/?com/google/gcloud/examples/dns/DnsExample.html).
- [`ResourceManagerExample`](./gcloud-java-examples/src/main/java/com/google/gcloud/examples/resourcemanager/ResourceManagerExample.java) - A simple command line interface providing some of Cloud Resource Manager'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/ResourceManagerExample.html).
- Read more about using this application on the [`ResourceManagerExample` docs page](http://googlecloudplatform.github.io/gcloud-java/apidocs/?com/google/gcloud/examples/resourcemanager/ResourceManagerExample.html).
- [`SparkDemo`](https://github.com/GoogleCloudPlatform/java-docs-samples/blob/master/managed_vms/sparkjava) - An example of using gcloud-java-datastore from within the SparkJava and App Engine Managed VM frameworks.
- Read about how it works on the example's [README page](https://github.com/GoogleCloudPlatform/java-docs-samples/tree/master/managed_vms/sparkjava#how-does-it-work).
- [`StorageExample`](./gcloud-java-examples/src/main/java/com/google/gcloud/examples/storage/StorageExample.java) - A simple command line interface providing some of Cloud Storage'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/StorageExample.html).
- Read more about using this application on the [`StorageExample` docs page](http://googlecloudplatform.github.io/gcloud-java/apidocs/?com/google/gcloud/examples/storage/StorageExample.html).

Specifying a Project ID
-----------------------
Expand Down Expand Up @@ -217,6 +221,71 @@ if (entity != null) {
}
```

Google Cloud DNS (Alpha)
----------------------
- [API Documentation][dns-api]
- [Official Documentation][cloud-dns-docs]

*Follow the [activation instructions][cloud-dns-activation] to use the Google Cloud DNS API with your project.*

#### Preview

Here are two code snippets showing simple usage examples from within Compute/App Engine. Note that you must [supply credentials](#authentication) and a project ID if running this snippet elsewhere.

The first snippet shows how to create a zone resource. Complete source code can be found on
[CreateZone.java](./gcloud-java-examples/src/main/java/com/google/gcloud/examples/dns/snippets/CreateZone.java).

```java
import com.google.gcloud.dns.Dns;
import com.google.gcloud.dns.DnsOptions;
import com.google.gcloud.dns.Zone;
import com.google.gcloud.dns.ZoneInfo;

Dns dns = DnsOptions.defaultInstance().service();
String zoneName = "my-unique-zone";
String domainName = "someexampledomain.com.";
String description = "This is a gcloud-java-dns sample zone.";
ZoneInfo zoneInfo = ZoneInfo.of(zoneName, domainName, description);
Zone zone = dns.create(zoneInfo);
```

The second snippet shows how to create records inside a zone. The complete code can be found on [CreateOrUpdateRecordSets.java](./gcloud-java-examples/src/main/java/com/google/gcloud/examples/dns/snippets/CreateOrUpdateRecordSets.java).

```java
import com.google.gcloud.dns.ChangeRequestInfo;
import com.google.gcloud.dns.Dns;
import com.google.gcloud.dns.DnsOptions;
import com.google.gcloud.dns.RecordSet;
import com.google.gcloud.dns.Zone;

import java.util.Iterator;
import java.util.concurrent.TimeUnit;

Dns dns = DnsOptions.defaultInstance().service();
String zoneName = "my-unique-zone";
Zone zone = dns.getZone(zoneName);
String ip = "12.13.14.15";
RecordSet toCreate = RecordSet.builder("www.someexampledomain.com.", RecordSet.Type.A)
.ttl(24, TimeUnit.HOURS)
.addRecord(ip)
.build();
ChangeRequestInfo.Builder changeBuilder = ChangeRequestInfo.builder().add(toCreate);

// Verify that the record does not exist yet.
// If it does exist, we will overwrite it with our prepared record.
Iterator<RecordSet> recordSetIterator = zone.listRecordSets().iterateAll();
while (recordSetIterator.hasNext()) {
RecordSet current = recordSetIterator.next();
if (toCreate.name().equals(current.name()) &&
toCreate.type().equals(current.type())) {
changeBuilder.delete(current);
}
}

ChangeRequestInfo changeRequest = changeBuilder.build();
zone.applyChangeRequest(changeRequest);
```

Google Cloud Resource Manager (Alpha)
----------------------

Expand Down Expand Up @@ -358,6 +427,10 @@ Apache 2.0 - See [LICENSE] for more information.
[cloud-datastore-activation]: https://cloud.google.com/datastore/docs/activate
[datastore-api]: http://googlecloudplatform.github.io/gcloud-java/apidocs/index.html?com/google/gcloud/datastore/package-summary.html

[dns-api]: http://googlecloudplatform.github.io/gcloud-java/apidocs/index.html?com/google/gcloud/dns/package-summary.html
[cloud-dns-docs]: https://cloud.google.com/dns/docs
[cloud-dns-activation]: https://console.cloud.google.com/start/api?id=dns

[cloud-pubsub]: https://cloud.google.com/pubsub/
[cloud-pubsub-docs]: https://cloud.google.com/pubsub/docs

Expand Down
2 changes: 1 addition & 1 deletion codacy-conf.json

Large diffs are not rendered by default.

11 changes: 6 additions & 5 deletions gcloud-java-bigquery/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ Java idiomatic client for [Google Cloud BigQuery] (https://cloud.google.com/bigq
[![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 @@ -21,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.5</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.5'
```
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.5"
```

Example Application
-------------------
- [`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 [`gcloud-java-examples` docs page](http://googlecloudplatform.github.io/gcloud-java/apidocs/?com/google/gcloud/examples/BigQueryExample.html).
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 @@ -184,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 Down
21 changes: 14 additions & 7 deletions gcloud-java-bigquery/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
<parent>
<groupId>com.google.gcloud</groupId>
<artifactId>gcloud-java-pom</artifactId>
<version>0.1.4-SNAPSHOT</version>
<version>0.1.6-SNAPSHOT</version>
</parent>
<properties>
<site.installationModule>gcloud-java-bigquery</site.installationModule>
Expand All @@ -30,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 @@ -48,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
Loading