Skip to content

Commit fba88b9

Browse files
authored
feat: [bigquerydatapolicy] new module for bigquerydatapolicy (#8563)
- feat: initial generation of bigquerydatapolicy - build: add the bigquerydatapolicy module to monorepo
1 parent 848d354 commit fba88b9

File tree

50 files changed

+17007
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

50 files changed

+17007
-0
lines changed

.release-please-manifest.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
"java-beyondcorp-clientgateways": "0.0.0",
2525
"java-bigqueryconnection": "2.5.5",
2626
"java-bigquery-data-exchange": "0.3.2",
27+
"java-bigquerydatapolicy": "0.0.0",
2728
"java-bigquerydatatransfer": "2.3.15",
2829
"java-bigquerymigration": "0.6.2",
2930
"java-bigqueryreservation": "2.4.5",

CoverageAggregator/pom.xml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,11 @@
137137
<artifactId>google-cloud-bigquery-data-exchange</artifactId>
138138
<version>0.3.3-SNAPSHOT</version><!-- {x-version-update:google-cloud-bigquery-data-exchange:current} -->
139139
</dependency>
140+
<dependency>
141+
<groupId>com.google.cloud</groupId>
142+
<artifactId>google-cloud-bigquerydatapolicy</artifactId>
143+
<version>0.0.1-SNAPSHOT</version><!-- {x-version-update:google-cloud-bigquerydatapolicy:current} -->
144+
</dependency>
140145
<dependency>
141146
<groupId>com.google.cloud</groupId>
142147
<artifactId>google-cloud-bigquerydatatransfer</artifactId>

java-bigquerydatapolicy/.OwlBot.yaml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
# Copyright 2022 Google LLC
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
15+
16+
deep-remove-regex:
17+
- "/java-bigquerydatapolicy/grpc-google-.*/src"
18+
- "/java-bigquerydatapolicy/proto-google-.*/src"
19+
- "/java-bigquerydatapolicy/google-.*/src"
20+
21+
deep-preserve-regex:
22+
- "/java-bigquerydatapolicy/google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java"
23+
24+
deep-copy-regex:
25+
- source: "/google/cloud/bigquery/datapolicies/(v.*)/.*-java/proto-google-.*/src"
26+
dest: "/owl-bot-staging/java-bigquerydatapolicy/$1/proto-google-cloud-bigquerydatapolicy-$1/src"
27+
- source: "/google/cloud/bigquery/datapolicies/(v.*)/.*-java/grpc-google-.*/src"
28+
dest: "/owl-bot-staging/java-bigquerydatapolicy/$1/grpc-google-cloud-bigquerydatapolicy-$1/src"
29+
- source: "/google/cloud/bigquery/datapolicies/(v.*)/.*-java/gapic-google-.*/src"
30+
dest: "/owl-bot-staging/java-bigquerydatapolicy/$1/google-cloud-bigquerydatapolicy/src"
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
{
2+
"api_shortname": "bigquerydatapolicy",
3+
"name_pretty": "BigQuery DataPolicy API",
4+
"product_documentation": "https://cloud.google.com/bigquery/docs/reference/datapolicy/",
5+
"api_description": "",
6+
"client_documentation": "https://cloud.google.com/java/docs/reference/google-cloud-bigquerydatapolicy/latest/overview",
7+
"release_level": "preview",
8+
"transport": "grpc",
9+
"language": "java",
10+
"repo": "googleapis/java-bigquerydatapolicy",
11+
"repo_short": "java-bigquerydatapolicy",
12+
"distribution_name": "com.google.cloud:google-cloud-bigquerydatapolicy",
13+
"api_id": "bigquerydatapolicy.googleapis.com",
14+
"library_type": "GAPIC_AUTO",
15+
"requires_billing": true
16+
}

java-bigquerydatapolicy/README.md

Lines changed: 201 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,201 @@
1+
# Google BigQuery DataPolicy API Client for Java
2+
3+
Java idiomatic client for [BigQuery DataPolicy API][product-docs].
4+
5+
[![Maven][maven-version-image]][maven-version-link]
6+
![Stability][stability-image]
7+
8+
- [Product Documentation][product-docs]
9+
- [Client Library Documentation][javadocs]
10+
11+
> Note: This client is a work-in-progress, and may occasionally
12+
> make backwards-incompatible changes.
13+
14+
15+
## Quickstart
16+
17+
18+
If you are using Maven, add this to your pom.xml file:
19+
20+
21+
```xml
22+
<dependency>
23+
<groupId>com.google.cloud</groupId>
24+
<artifactId>google-cloud-bigquerydatapolicy</artifactId>
25+
<version>0.0.0</version>
26+
</dependency>
27+
```
28+
29+
If you are using Gradle without BOM, add this to your dependencies:
30+
31+
```Groovy
32+
implementation 'com.google.cloud:google-cloud-bigquerydatapolicy:0.0.0'
33+
```
34+
35+
If you are using SBT, add this to your dependencies:
36+
37+
```Scala
38+
libraryDependencies += "com.google.cloud" % "google-cloud-bigquerydatapolicy" % "0.0.0"
39+
```
40+
41+
## Authentication
42+
43+
See the [Authentication][authentication] section in the base directory's README.
44+
45+
## Authorization
46+
47+
The client application making API calls must be granted [authorization scopes][auth-scopes] required for the desired BigQuery DataPolicy API APIs, and the authenticated principal must have the [IAM role(s)][predefined-iam-roles] required to access GCP resources using the BigQuery DataPolicy API API calls.
48+
49+
## Getting Started
50+
51+
### Prerequisites
52+
53+
You will need a [Google Cloud Platform Console][developer-console] project with the BigQuery DataPolicy API [API enabled][enable-api].
54+
You will need to [enable billing][enable-billing] to use Google BigQuery DataPolicy API.
55+
[Follow these instructions][create-project] to get your project set up. You will also need to set up the local development environment by
56+
[installing the Google Cloud SDK][cloud-sdk] and running the following commands in command line:
57+
`gcloud auth login` and `gcloud config set project [YOUR PROJECT ID]`.
58+
59+
### Installation and setup
60+
61+
You'll need to obtain the `google-cloud-bigquerydatapolicy` library. See the [Quickstart](#quickstart) section
62+
to add `google-cloud-bigquerydatapolicy` as a dependency in your code.
63+
64+
## About BigQuery DataPolicy API
65+
66+
67+
[BigQuery DataPolicy API][product-docs]
68+
69+
See the [BigQuery DataPolicy API client library docs][javadocs] to learn how to
70+
use this BigQuery DataPolicy API Client Library.
71+
72+
73+
74+
75+
76+
77+
## Troubleshooting
78+
79+
To get help, follow the instructions in the [shared Troubleshooting document][troubleshooting].
80+
81+
## Transport
82+
83+
BigQuery DataPolicy API uses gRPC for the transport layer.
84+
85+
## Supported Java Versions
86+
87+
Java 8 or above is required for using this client.
88+
89+
Google's Java client libraries,
90+
[Google Cloud Client Libraries][cloudlibs]
91+
and
92+
[Google Cloud API Libraries][apilibs],
93+
follow the
94+
[Oracle Java SE support roadmap][oracle]
95+
(see the Oracle Java SE Product Releases section).
96+
97+
### For new development
98+
99+
In general, new feature development occurs with support for the lowest Java
100+
LTS version covered by Oracle's Premier Support (which typically lasts 5 years
101+
from initial General Availability). If the minimum required JVM for a given
102+
library is changed, it is accompanied by a [semver][semver] major release.
103+
104+
Java 11 and (in September 2021) Java 17 are the best choices for new
105+
development.
106+
107+
### Keeping production systems current
108+
109+
Google tests its client libraries with all current LTS versions covered by
110+
Oracle's Extended Support (which typically lasts 8 years from initial
111+
General Availability).
112+
113+
#### Legacy support
114+
115+
Google's client libraries support legacy versions of Java runtimes with long
116+
term stable libraries that don't receive feature updates on a best efforts basis
117+
as it may not be possible to backport all patches.
118+
119+
Google provides updates on a best efforts basis to apps that continue to use
120+
Java 7, though apps might need to upgrade to current versions of the library
121+
that supports their JVM.
122+
123+
#### Where to find specific information
124+
125+
The latest versions and the supported Java versions are identified on
126+
the individual GitHub repository `github.com/GoogleAPIs/java-SERVICENAME`
127+
and on [google-cloud-java][g-c-j].
128+
129+
## Versioning
130+
131+
132+
This library follows [Semantic Versioning](http://semver.org/).
133+
134+
135+
It is currently in major version zero (``0.y.z``), which means that anything may change at any time
136+
and the public API should not be considered stable.
137+
138+
139+
## Contributing
140+
141+
142+
Contributions to this library are always welcome and highly encouraged.
143+
144+
See [CONTRIBUTING][contributing] for more information how to get started.
145+
146+
Please note that this project is released with a Contributor Code of Conduct. By participating in
147+
this project you agree to abide by its terms. See [Code of Conduct][code-of-conduct] for more
148+
information.
149+
150+
151+
## License
152+
153+
Apache 2.0 - See [LICENSE][license] for more information.
154+
155+
## CI Status
156+
157+
Java Version | Status
158+
------------ | ------
159+
Java 8 | [![Kokoro CI][kokoro-badge-image-2]][kokoro-badge-link-2]
160+
Java 8 OSX | [![Kokoro CI][kokoro-badge-image-3]][kokoro-badge-link-3]
161+
Java 8 Windows | [![Kokoro CI][kokoro-badge-image-4]][kokoro-badge-link-4]
162+
Java 11 | [![Kokoro CI][kokoro-badge-image-5]][kokoro-badge-link-5]
163+
164+
Java is a registered trademark of Oracle and/or its affiliates.
165+
166+
[product-docs]: https://cloud.google.com/bigquery/docs/reference/datapolicy/
167+
[javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-bigquerydatapolicy/latest/overview
168+
[kokoro-badge-image-1]: http://storage.googleapis.com/cloud-devrel-public/java/badges/java-bigquerydatapolicy/java7.svg
169+
[kokoro-badge-link-1]: http://storage.googleapis.com/cloud-devrel-public/java/badges/java-bigquerydatapolicy/java7.html
170+
[kokoro-badge-image-2]: http://storage.googleapis.com/cloud-devrel-public/java/badges/java-bigquerydatapolicy/java8.svg
171+
[kokoro-badge-link-2]: http://storage.googleapis.com/cloud-devrel-public/java/badges/java-bigquerydatapolicy/java8.html
172+
[kokoro-badge-image-3]: http://storage.googleapis.com/cloud-devrel-public/java/badges/java-bigquerydatapolicy/java8-osx.svg
173+
[kokoro-badge-link-3]: http://storage.googleapis.com/cloud-devrel-public/java/badges/java-bigquerydatapolicy/java8-osx.html
174+
[kokoro-badge-image-4]: http://storage.googleapis.com/cloud-devrel-public/java/badges/java-bigquerydatapolicy/java8-win.svg
175+
[kokoro-badge-link-4]: http://storage.googleapis.com/cloud-devrel-public/java/badges/java-bigquerydatapolicy/java8-win.html
176+
[kokoro-badge-image-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/java-bigquerydatapolicy/java11.svg
177+
[kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/java-bigquerydatapolicy/java11.html
178+
[stability-image]: https://img.shields.io/badge/stability-preview-yellow
179+
[maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-bigquerydatapolicy.svg
180+
[maven-version-link]: https://search.maven.org/search?q=g:com.google.cloud%20AND%20a:google-cloud-bigquerydatapolicy&core=gav
181+
[authentication]: https://github.com/googleapis/google-cloud-java#authentication
182+
[auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes
183+
[predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles
184+
[iam-policy]: https://cloud.google.com/iam/docs/overview#cloud-iam-policy
185+
[developer-console]: https://console.developers.google.com/
186+
[create-project]: https://cloud.google.com/resource-manager/docs/creating-managing-projects
187+
[cloud-sdk]: https://cloud.google.com/sdk/
188+
[troubleshooting]: https://github.com/googleapis/google-cloud-common/blob/main/troubleshooting/readme.md#troubleshooting
189+
[contributing]: https://github.com/googleapis/java-bigquerydatapolicy/blob/main/CONTRIBUTING.md
190+
[code-of-conduct]: https://github.com/googleapis/java-bigquerydatapolicy/blob/main/CODE_OF_CONDUCT.md#contributor-code-of-conduct
191+
[license]: https://github.com/googleapis/java-bigquerydatapolicy/blob/main/LICENSE
192+
[enable-billing]: https://cloud.google.com/apis/docs/getting-started#enabling_billing
193+
[enable-api]: https://console.cloud.google.com/flows/enableapi?apiid=bigquerydatapolicy.googleapis.com
194+
[libraries-bom]: https://github.com/GoogleCloudPlatform/cloud-opensource-java/wiki/The-Google-Cloud-Platform-Libraries-BOM
195+
[shell_img]: https://gstatic.com/cloudssh/images/open-btn.png
196+
197+
[semver]: https://semver.org/
198+
[cloudlibs]: https://cloud.google.com/apis/docs/client-libraries-explained
199+
[apilibs]: https://cloud.google.com/apis/docs/client-libraries-explained#google_api_client_libraries
200+
[oracle]: https://www.oracle.com/java/technologies/java-se-support-roadmap.html
201+
[g-c-j]: http://github.com/googleapis/google-cloud-java
Lines changed: 94 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,94 @@
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+
<groupId>com.google.cloud</groupId>
5+
<artifactId>google-cloud-bigquerydatapolicy-bom</artifactId>
6+
<version>0.0.1-SNAPSHOT</version><!-- {x-version-update:google-cloud-bigquerydatapolicy:current} -->
7+
<packaging>pom</packaging>
8+
<parent>
9+
<groupId>com.google.cloud</groupId>
10+
<artifactId>google-cloud-shared-config</artifactId>
11+
<version>1.5.3</version>
12+
</parent>
13+
14+
<name>Google BigQuery DataPolicy API BOM</name>
15+
<url>https://github.com/googleapis/java-bigquerydatapolicy</url>
16+
<description>
17+
BOM for BigQuery DataPolicy API
18+
</description>
19+
20+
<organization>
21+
<name>Google LLC</name>
22+
</organization>
23+
24+
<developers>
25+
<developer>
26+
<id>chingor13</id>
27+
<name>Jeff Ching</name>
28+
<email>[email protected]</email>
29+
<organization>Google LLC</organization>
30+
<roles>
31+
<role>Developer</role>
32+
</roles>
33+
</developer>
34+
<developer>
35+
<id>neenushaji</id>
36+
<name>Neenu Shaji</name>
37+
<email>[email protected]</email>
38+
<organization>Google LLC</organization>
39+
<roles>
40+
<role>Developer</role>
41+
</roles>
42+
</developer>
43+
</developers>
44+
45+
<scm>
46+
<connection>scm:git:https://github.com/googleapis/java-bigquerydatapolicy.git</connection>
47+
<developerConnection>scm:git:[email protected]:googleapis/java-bigquerydatapolicy.git</developerConnection>
48+
<url>https://github.com/googleapis/java-bigquerydatapolicy</url>
49+
</scm>
50+
51+
<properties>
52+
<maven.antrun.skip>true</maven.antrun.skip>
53+
</properties>
54+
55+
<licenses>
56+
<license>
57+
<name>The Apache Software License, Version 2.0</name>
58+
<url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
59+
<distribution>repo</distribution>
60+
</license>
61+
</licenses>
62+
63+
<dependencyManagement>
64+
<dependencies>
65+
<dependency>
66+
<groupId>com.google.cloud</groupId>
67+
<artifactId>google-cloud-bigquerydatapolicy</artifactId>
68+
<version>0.0.1-SNAPSHOT</version><!-- {x-version-update:google-cloud-bigquerydatapolicy:current} -->
69+
</dependency>
70+
<dependency>
71+
<groupId>com.google.api.grpc</groupId>
72+
<artifactId>grpc-google-cloud-bigquerydatapolicy-v1beta1</artifactId>
73+
<version>0.0.1-SNAPSHOT</version><!-- {x-version-update:grpc-google-cloud-bigquerydatapolicy-v1beta1:current} -->
74+
</dependency>
75+
<dependency>
76+
<groupId>com.google.api.grpc</groupId>
77+
<artifactId>proto-google-cloud-bigquerydatapolicy-v1beta1</artifactId>
78+
<version>0.0.1-SNAPSHOT</version><!-- {x-version-update:proto-google-cloud-bigquerydatapolicy-v1beta1:current} -->
79+
</dependency>
80+
</dependencies>
81+
</dependencyManagement>
82+
83+
<build>
84+
<plugins>
85+
<plugin>
86+
<groupId>org.apache.maven.plugins</groupId>
87+
<artifactId>maven-checkstyle-plugin</artifactId>
88+
<configuration>
89+
<skip>true</skip>
90+
</configuration>
91+
</plugin>
92+
</plugins>
93+
</build>
94+
</project>

0 commit comments

Comments
 (0)