Skip to content

Commit 340d6d1

Browse files
Adding dataproc and oslogin (#2780)
1 parent 9fe0d6b commit 340d6d1

30 files changed

Lines changed: 7274 additions & 0 deletions

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,9 @@ This library supports the following Google Cloud Platform services with clients
3535
This library supports the following Google Cloud Platform services with clients at an [Alpha](#versioning) quality level:
3636

3737
- [Cloud Compute](google-cloud-compute) (Alpha)
38+
- [Cloud Dataproc](google-cloud-dataproc) (Alpha)
3839
- [Cloud DNS](google-cloud-dns) (Alpha)
40+
- [Cloud OS Login](google-cloud-os-login) (Alpha)
3941
- [Cloud Resource Manager](google-cloud-resourcemanager) (Alpha)
4042
- [Cloud Speech](google-cloud-speech) (Alpha)
4143
- [Dialogflow](google-cloud-dialogflow) (Alpha)

google-cloud-bom/pom.xml

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,7 @@
151151
<core-http.version>1.14.1-SNAPSHOT</core-http.version>
152152
<core-grpc.version>1.14.1-SNAPSHOT</core-grpc.version>
153153
<datastore.version>1.14.1-SNAPSHOT</datastore.version>
154+
<dataproc.version>0.32.1-alpha-SNAPSHOT</dataproc.version>
154155
<dialogflow.version>0.32.1-alpha-SNAPSHOT</dialogflow.version>
155156
<dlp.version>0.32.1-beta-SNAPSHOT</dlp.version>
156157
<dns.version>0.32.1-alpha-SNAPSHOT</dns.version>
@@ -160,6 +161,7 @@
160161
<language.version>1.14.1-SNAPSHOT</language.version>
161162
<logging.version>1.14.1-SNAPSHOT</logging.version>
162163
<monitoring.version>0.32.1-beta-SNAPSHOT</monitoring.version>
164+
<os-login.version>0.32.1-alpha-SNAPSHOT</os-login.version>
163165
<pubsub.version>0.32.1-beta-SNAPSHOT</pubsub.version>
164166
<resourcemanager.version>0.32.1-alpha-SNAPSHOT</resourcemanager.version>
165167
<spanner.version>0.32.1-beta-SNAPSHOT</spanner.version>
@@ -356,6 +358,28 @@
356358
<type>test-jar</type>
357359
</dependency>
358360

361+
<dependency>
362+
<groupId>com.google.cloud</groupId>
363+
<artifactId>google-cloud-dataproc</artifactId>
364+
<version>${dataproc.version}</version>
365+
</dependency>
366+
<dependency>
367+
<groupId>com.google.cloud</groupId>
368+
<artifactId>google-cloud-dataproc</artifactId>
369+
<version>${dataproc.version}</version>
370+
<type>test-jar</type>
371+
</dependency>
372+
<dependency>
373+
<groupId>com.google.api.grpc</groupId>
374+
<artifactId>proto-google-cloud-dataproc-v1</artifactId>
375+
<version>${generated-proto-beta.version}</version>
376+
</dependency>
377+
<dependency>
378+
<groupId>com.google.api.grpc</groupId>
379+
<artifactId>grpc-google-cloud-dataproc-v1</artifactId>
380+
<version>${generated-proto-beta.version}</version>
381+
</dependency>
382+
359383
<dependency>
360384
<groupId>com.google.cloud</groupId>
361385
<artifactId>google-cloud-datastore</artifactId>
@@ -576,6 +600,28 @@
576600
<version>${generated-proto-beta.version}</version>
577601
</dependency>
578602

603+
<dependency>
604+
<groupId>com.google.cloud</groupId>
605+
<artifactId>google-cloud-os-login</artifactId>
606+
<version>${os-login.version}</version>
607+
</dependency>
608+
<dependency>
609+
<groupId>com.google.cloud</groupId>
610+
<artifactId>google-cloud-os-login</artifactId>
611+
<version>${os-login.version}</version>
612+
<type>test-jar</type>
613+
</dependency>
614+
<dependency>
615+
<groupId>com.google.api.grpc</groupId>
616+
<artifactId>proto-google-cloud-os-login-v1</artifactId>
617+
<version>${generated-proto-beta.version}</version>
618+
</dependency>
619+
<dependency>
620+
<groupId>com.google.api.grpc</groupId>
621+
<artifactId>grpc-google-cloud-os-login-v1</artifactId>
622+
<version>${generated-proto-beta.version}</version>
623+
</dependency>
624+
579625
<dependency>
580626
<groupId>com.google.cloud</groupId>
581627
<artifactId>google-cloud-pubsub</artifactId>

google-cloud-dataproc/README.md

Lines changed: 119 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,119 @@
1+
Google Cloud Java Client for Dataproc
2+
=====================================
3+
4+
Java idiomatic client for [Google Cloud Dataproc][cloud-dataproc].
5+
6+
[![Build Status](https://travis-ci.org/GoogleCloudPlatform/google-cloud-java.svg?branch=master)](https://travis-ci.org/GoogleCloudPlatform/google-cloud-java)
7+
[![Coverage Status](https://coveralls.io/repos/GoogleCloudPlatform/google-cloud-java/badge.svg?branch=master)](https://coveralls.io/r/GoogleCloudPlatform/google-cloud-java?branch=master)
8+
[![Maven](https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-dataproc.svg)]( https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-dataproc.svg)
9+
[![Codacy Badge](https://api.codacy.com/project/badge/grade/9da006ad7c3a4fe1abd142e77c003917)](https://www.codacy.com/app/mziccard/google-cloud-java)
10+
[![Dependency Status](https://www.versioneye.com/user/projects/58fe4c8d6ac171426c414772/badge.svg?style=flat)](https://www.versioneye.com/user/projects/58fe4c8d6ac171426c414772)
11+
12+
- [Product Documentation][dataproc-product-docs]
13+
- [Client Library Documentation][dataproc-client-lib-docs]
14+
15+
> Note: This client is a work-in-progress, and may occasionally
16+
> make backwards-incompatible changes.
17+
18+
Quickstart
19+
----------
20+
21+
Add this to your pom.xml file
22+
```xml
23+
<dependency>
24+
<groupId>com.google.cloud</groupId>
25+
<artifactId>google-cloud-dataproc</artifactId>
26+
<version>0.32.0-alpha</version>
27+
</dependency>
28+
```
29+
If you are using Gradle, add this to your dependencies
30+
```Groovy
31+
compile 'com.google.cloud:google-cloud-dataproc:0.32.0-alpha'
32+
```
33+
If you are using SBT, add this to your dependencies
34+
```Scala
35+
libraryDependencies += "com.google.cloud" % "google-cloud-dataproc" % "0.32.0-alpha"
36+
```
37+
38+
Authentication
39+
--------------
40+
41+
See the [Authentication](https://github.com/GoogleCloudPlatform/google-cloud-java#authentication) section in the base directory's README.
42+
43+
About Google Cloud Dataproc
44+
---------------------------
45+
46+
[Google Cloud Dataproc][cloud-dataproc] manages Hadoop-based clusters and jobs on Google Cloud
47+
Platform.
48+
49+
See the [Google Cloud Dataproc docs][cloud-dataproc-quickstart] for more details on how to activate
50+
Cloud Dataproc for your project.
51+
52+
See the [Dataproc client library docs][dataproc-client-lib-docs] to learn how to interact with the
53+
Cloud Dataproc using this Client Library.
54+
55+
Getting Started
56+
---------------
57+
#### Prerequisites
58+
For this tutorial, you will need a
59+
[Google Developers Console](https://console.developers.google.com/) project with the Dataproc API
60+
enabled. You will need to [enable billing](https://support.google.com/cloud/answer/6158867?hl=en) to
61+
use Google Cloud Dataproc.
62+
[Follow these instructions](https://cloud.google.com/docs/authentication#preparation) to get your
63+
project set up. [Set up authentication with a service account][auth] so you can access the
64+
API from your local workstation.
65+
66+
#### Installation and setup
67+
You'll need to obtain the `google-cloud-dataproc` library. See the [Quickstart](#quickstart) section
68+
to add `google-cloud-dataproc` as a dependency in your code.
69+
70+
Transport
71+
---------
72+
Dataproc uses gRPC for the transport layer.
73+
74+
Java Versions
75+
-------------
76+
77+
Java 7 or above is required for using this client.
78+
79+
Testing
80+
-------
81+
82+
This library has tools to help make tests for code using Cloud Dataproc.
83+
84+
See [TESTING] to read more about testing.
85+
86+
Versioning
87+
----------
88+
89+
This library follows [Semantic Versioning](http://semver.org/).
90+
91+
It is currently in major version zero (``0.y.z``), which means that anything
92+
may change at any time and the public API should not be considered
93+
stable.
94+
95+
Contributing
96+
------------
97+
98+
Contributions to this library are always welcome and highly encouraged.
99+
100+
See `google-cloud`'s [CONTRIBUTING] documentation and the [shared documentation](https://github.com/GoogleCloudPlatform/gcloud-common/blob/master/contributing/readme.md#how-to-contribute-to-gcloud) for more information on how to get started.
101+
102+
Please note that this project is released with a Contributor Code of Conduct. By participating in this project you agree to abide by its terms. See [Code of Conduct][code-of-conduct] for more information.
103+
104+
License
105+
-------
106+
107+
Apache 2.0 - See [LICENSE] for more information.
108+
109+
110+
[CONTRIBUTING]:https://github.com/GoogleCloudPlatform/google-cloud-java/blob/master/CONTRIBUTING.md
111+
[code-of-conduct]:https://github.com/GoogleCloudPlatform/google-cloud-java/blob/master/CODE_OF_CONDUCT.md#contributor-code-of-conduct
112+
[LICENSE]: https://github.com/GoogleCloudPlatform/google-cloud-java/blob/master/LICENSE
113+
[TESTING]: https://github.com/GoogleCloudPlatform/google-cloud-java/blob/master/TESTING.md
114+
115+
[cloud-dataproc]: https://cloud.google.com/dataproc/
116+
[cloud-dataproc-quickstart]: https://cloud.google.com/dataproc/quickstart-console#before-you-begin
117+
[dataproc-product-docs]: https://cloud.google.com/dataproc/docs/
118+
[dataproc-client-lib-docs]: https://googlecloudplatform.github.io/google-cloud-java/latest/apidocs/index.html?com/google/cloud/dataproc/v1/package-summary.html
119+
[auth]: https://cloud.google.com/docs/authentication/getting-started

google-cloud-dataproc/pom.xml

Lines changed: 149 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,149 @@
1+
<?xml version="1.0"?>
2+
<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">
3+
<modelVersion>4.0.0</modelVersion>
4+
<artifactId>google-cloud-dataproc</artifactId>
5+
<version>0.32.1-beta-SNAPSHOT</version>
6+
<packaging>jar</packaging>
7+
<name>Google Cloud Dataproc</name>
8+
<url>https://github.com/GoogleCloudPlatform/google-cloud-java/tree/master/google-cloud-dataproc</url>
9+
<description>
10+
Java idiomatic client for Google Cloud Dataproc.
11+
</description>
12+
<parent>
13+
<groupId>com.google.cloud</groupId>
14+
<artifactId>google-cloud-pom</artifactId>
15+
<version>0.32.1-alpha-SNAPSHOT</version>
16+
</parent>
17+
<properties>
18+
<site.installationModule>google-cloud-dataproc</site.installationModule>
19+
</properties>
20+
<dependencies>
21+
<dependency>
22+
<groupId>io.netty</groupId>
23+
<artifactId>netty-tcnative-boringssl-static</artifactId>
24+
</dependency>
25+
<dependency>
26+
<groupId>${project.groupId}</groupId>
27+
<artifactId>google-cloud-core</artifactId>
28+
</dependency>
29+
<dependency>
30+
<groupId>${project.groupId}</groupId>
31+
<artifactId>google-cloud-core-grpc</artifactId>
32+
</dependency>
33+
<dependency>
34+
<groupId>com.google.api.grpc</groupId>
35+
<artifactId>proto-google-cloud-dataproc-v1</artifactId>
36+
</dependency>
37+
<dependency>
38+
<groupId>com.google.api.grpc</groupId>
39+
<artifactId>grpc-google-cloud-dataproc-v1</artifactId>
40+
</dependency>
41+
<dependency>
42+
<groupId>io.grpc</groupId>
43+
<artifactId>grpc-netty</artifactId>
44+
</dependency>
45+
<dependency>
46+
<groupId>io.grpc</groupId>
47+
<artifactId>grpc-stub</artifactId>
48+
</dependency>
49+
<dependency>
50+
<groupId>io.grpc</groupId>
51+
<artifactId>grpc-auth</artifactId>
52+
</dependency>
53+
<dependency>
54+
<groupId>${project.groupId}</groupId>
55+
<artifactId>google-cloud-core</artifactId>
56+
<type>test-jar</type>
57+
<scope>test</scope>
58+
</dependency>
59+
<dependency>
60+
<groupId>junit</groupId>
61+
<artifactId>junit</artifactId>
62+
<scope>test</scope>
63+
</dependency>
64+
<dependency>
65+
<groupId>org.easymock</groupId>
66+
<artifactId>easymock</artifactId>
67+
<scope>test</scope>
68+
</dependency>
69+
<dependency>
70+
<groupId>org.objenesis</groupId>
71+
<artifactId>objenesis</artifactId>
72+
<scope>test</scope>
73+
</dependency>
74+
<dependency>
75+
<groupId>com.google.truth</groupId>
76+
<artifactId>truth</artifactId>
77+
<scope>test</scope>
78+
</dependency>
79+
<dependency>
80+
<groupId>com.google.api.grpc</groupId>
81+
<artifactId>grpc-google-iam-v1</artifactId>
82+
<scope>test</scope>
83+
</dependency>
84+
<dependency>
85+
<groupId>com.google.api</groupId>
86+
<artifactId>gax-grpc</artifactId>
87+
<classifier>testlib</classifier>
88+
<scope>test</scope>
89+
</dependency>
90+
</dependencies>
91+
<profiles>
92+
<profile>
93+
<id>doclint-java8-disable</id>
94+
<activation>
95+
<jdk>[1.8,)</jdk>
96+
</activation>
97+
<properties>
98+
<!-- add this to disable checking -->
99+
<javadoc.opts>-Xdoclint:none</javadoc.opts>
100+
</properties>
101+
</profile>
102+
</profiles>
103+
<build>
104+
<plugins>
105+
<plugin>
106+
<groupId>org.codehaus.mojo</groupId>
107+
<artifactId>build-helper-maven-plugin</artifactId>
108+
<version>1.9.1</version>
109+
<executions>
110+
<execution>
111+
<phase>generate-sources</phase>
112+
<goals><goal>add-source</goal></goals>
113+
<configuration>
114+
<sources>
115+
<source>generated/src/main/java</source>
116+
</sources>
117+
</configuration>
118+
</execution>
119+
</executions>
120+
</plugin>
121+
<plugin>
122+
<groupId>org.apache.maven.plugins</groupId>
123+
<artifactId>maven-javadoc-plugin</artifactId>
124+
<version>2.10.3</version>
125+
<executions>
126+
<execution>
127+
<id>attach-javadocs</id>
128+
<goals>
129+
<goal>jar</goal>
130+
</goals>
131+
<configuration>
132+
<additionalparam>${javadoc.opts}</additionalparam>
133+
</configuration>
134+
</execution>
135+
</executions>
136+
</plugin>
137+
<plugin>
138+
<artifactId>maven-compiler-plugin</artifactId>
139+
<version>3.5.1</version>
140+
<configuration>
141+
<source>1.7</source>
142+
<target>1.7</target>
143+
<encoding>UTF-8</encoding>
144+
<compilerArgument>-Xlint:unchecked</compilerArgument>
145+
</configuration>
146+
</plugin>
147+
</plugins>
148+
</build>
149+
</project>

0 commit comments

Comments
 (0)