xref: /aosp_15_r20/external/google-cloud-java/java-resourcemanager/README.md (revision 55e87721aa1bc457b326496a7ca40f3ea1a63287)
1*55e87721SMatt Gilbride# Google Resource Manager API Client for Java
2*55e87721SMatt Gilbride
3*55e87721SMatt GilbrideJava idiomatic client for [Resource Manager API][product-docs].
4*55e87721SMatt Gilbride
5*55e87721SMatt Gilbride[![Maven][maven-version-image]][maven-version-link]
6*55e87721SMatt Gilbride![Stability][stability-image]
7*55e87721SMatt Gilbride
8*55e87721SMatt Gilbride- [Product Documentation][product-docs]
9*55e87721SMatt Gilbride- [Client Library Documentation][javadocs]
10*55e87721SMatt Gilbride
11*55e87721SMatt Gilbride
12*55e87721SMatt Gilbride## Quickstart
13*55e87721SMatt Gilbride
14*55e87721SMatt Gilbride
15*55e87721SMatt GilbrideIf you are using Maven with [BOM][libraries-bom], add this to your pom.xml file:
16*55e87721SMatt Gilbride
17*55e87721SMatt Gilbride```xml
18*55e87721SMatt Gilbride<dependencyManagement>
19*55e87721SMatt Gilbride  <dependencies>
20*55e87721SMatt Gilbride    <dependency>
21*55e87721SMatt Gilbride      <groupId>com.google.cloud</groupId>
22*55e87721SMatt Gilbride      <artifactId>libraries-bom</artifactId>
23*55e87721SMatt Gilbride      <version>26.14.0</version>
24*55e87721SMatt Gilbride      <type>pom</type>
25*55e87721SMatt Gilbride      <scope>import</scope>
26*55e87721SMatt Gilbride    </dependency>
27*55e87721SMatt Gilbride  </dependencies>
28*55e87721SMatt Gilbride</dependencyManagement>
29*55e87721SMatt Gilbride
30*55e87721SMatt Gilbride<dependencies>
31*55e87721SMatt Gilbride  <dependency>
32*55e87721SMatt Gilbride    <groupId>com.google.cloud</groupId>
33*55e87721SMatt Gilbride    <artifactId>google-cloud-resourcemanager</artifactId>
34*55e87721SMatt Gilbride  </dependency>
35*55e87721SMatt Gilbride```
36*55e87721SMatt Gilbride
37*55e87721SMatt GilbrideIf you are using Maven without the BOM, add this to your dependencies:
38*55e87721SMatt Gilbride
39*55e87721SMatt Gilbride<!-- {x-version-update-start:google-cloud-resourcemanager:released} -->
40*55e87721SMatt Gilbride
41*55e87721SMatt Gilbride```xml
42*55e87721SMatt Gilbride<dependency>
43*55e87721SMatt Gilbride  <groupId>com.google.cloud</groupId>
44*55e87721SMatt Gilbride  <artifactId>google-cloud-resourcemanager</artifactId>
45*55e87721SMatt Gilbride  <version>1.19.0</version>
46*55e87721SMatt Gilbride</dependency>
47*55e87721SMatt Gilbride```
48*55e87721SMatt Gilbride
49*55e87721SMatt GilbrideIf you are using Gradle without BOM, add this to your dependencies:
50*55e87721SMatt Gilbride
51*55e87721SMatt Gilbride```Groovy
52*55e87721SMatt Gilbrideimplementation 'com.google.cloud:google-cloud-resourcemanager:1.19.0'
53*55e87721SMatt Gilbride```
54*55e87721SMatt Gilbride
55*55e87721SMatt GilbrideIf you are using SBT, add this to your dependencies:
56*55e87721SMatt Gilbride
57*55e87721SMatt Gilbride```Scala
58*55e87721SMatt GilbridelibraryDependencies += "com.google.cloud" % "google-cloud-resourcemanager" % "1.19.0"
59*55e87721SMatt Gilbride```
60*55e87721SMatt Gilbride<!-- {x-version-update-end} -->
61*55e87721SMatt Gilbride
62*55e87721SMatt Gilbride## Authentication
63*55e87721SMatt Gilbride
64*55e87721SMatt GilbrideSee the [Authentication][authentication] section in the base directory's README.
65*55e87721SMatt Gilbride
66*55e87721SMatt Gilbride## Authorization
67*55e87721SMatt Gilbride
68*55e87721SMatt GilbrideThe client application making API calls must be granted [authorization scopes][auth-scopes] required for the desired Resource Manager API APIs, and the authenticated principal must have the [IAM role(s)][predefined-iam-roles] required to access GCP resources using the Resource Manager API API calls.
69*55e87721SMatt Gilbride
70*55e87721SMatt Gilbride## Getting Started
71*55e87721SMatt Gilbride
72*55e87721SMatt Gilbride### Prerequisites
73*55e87721SMatt Gilbride
74*55e87721SMatt GilbrideYou will need a [Google Cloud Platform Console][developer-console] project with the Resource Manager API [API enabled][enable-api].
75*55e87721SMatt Gilbride
76*55e87721SMatt Gilbride[Follow these instructions][create-project] to get your project set up. You will also need to set up the local development environment by
77*55e87721SMatt Gilbride[installing the Google Cloud Command Line Interface][cloud-cli] and running the following commands in command line:
78*55e87721SMatt Gilbride`gcloud auth login` and `gcloud config set project [YOUR PROJECT ID]`.
79*55e87721SMatt Gilbride
80*55e87721SMatt Gilbride### Installation and setup
81*55e87721SMatt Gilbride
82*55e87721SMatt GilbrideYou'll need to obtain the `google-cloud-resourcemanager` library.  See the [Quickstart](#quickstart) section
83*55e87721SMatt Gilbrideto add `google-cloud-resourcemanager` as a dependency in your code.
84*55e87721SMatt Gilbride
85*55e87721SMatt Gilbride## About Resource Manager API
86*55e87721SMatt Gilbride
87*55e87721SMatt Gilbride
88*55e87721SMatt Gilbride[Resource Manager API][product-docs] enables you to programmatically manage resources by project, folder, and organization.
89*55e87721SMatt Gilbride
90*55e87721SMatt GilbrideSee the [Resource Manager API client library docs][javadocs] to learn how to
91*55e87721SMatt Gilbrideuse this Resource Manager API Client Library.
92*55e87721SMatt Gilbride
93*55e87721SMatt Gilbride
94*55e87721SMatt Gilbride#### Creating an authorized service object
95*55e87721SMatt GilbrideTo make authenticated requests to Google Cloud Resource Manager, you must create a service object
96*55e87721SMatt Gilbridewith Google Cloud SDK credentials. You can then make API calls by calling methods on the Resource
97*55e87721SMatt GilbrideManager service object. The simplest way to authenticate is to use
98*55e87721SMatt Gilbride[Application Default Credentials](https://developers.google.com/identity/protocols/application-default-credentials).
99*55e87721SMatt GilbrideThese credentials are automatically inferred from your environment, so you only need the following
100*55e87721SMatt Gilbridecode to create your service object:
101*55e87721SMatt Gilbride
102*55e87721SMatt Gilbride```java
103*55e87721SMatt Gilbrideimport com.google.cloud.resourcemanager.ResourceManager;
104*55e87721SMatt Gilbrideimport com.google.cloud.resourcemanager.ResourceManagerOptions;
105*55e87721SMatt Gilbride
106*55e87721SMatt GilbrideResourceManager resourceManager = ResourceManagerOptions.getDefaultInstance().getService();
107*55e87721SMatt Gilbride```
108*55e87721SMatt Gilbride
109*55e87721SMatt Gilbride#### Getting a specific project
110*55e87721SMatt GilbrideYou can load a project if you know its project ID and have read permissions to the project.
111*55e87721SMatt GilbrideTo get a project, add the following import at the top of your file:
112*55e87721SMatt Gilbride
113*55e87721SMatt Gilbride```java
114*55e87721SMatt Gilbrideimport com.google.cloud.resourcemanager.Project;
115*55e87721SMatt Gilbride```
116*55e87721SMatt Gilbride
117*55e87721SMatt GilbrideThen use the following code to get the project:
118*55e87721SMatt Gilbride
119*55e87721SMatt Gilbride```java
120*55e87721SMatt GilbrideString projectId = "my-globally-unique-project-id"; // Change to a unique project ID
121*55e87721SMatt GilbrideProject project = resourceManager.get(projectId);
122*55e87721SMatt Gilbride```
123*55e87721SMatt Gilbride
124*55e87721SMatt Gilbride#### Creating a project
125*55e87721SMatt GilbrideAll you need to create a project is a globally unique project ID. You can also optionally attach a
126*55e87721SMatt Gilbridenon-unique name and labels to your project. Read more about naming guidelines for project IDs,
127*55e87721SMatt Gilbridenames, and labels [here](https://cloud.google.com/resource-manager/reference/rest/v1beta1/projects).
128*55e87721SMatt GilbrideTo create a project, add the following imports at the top of your file:
129*55e87721SMatt Gilbride
130*55e87721SMatt Gilbride```java
131*55e87721SMatt Gilbrideimport com.google.cloud.resourcemanager.Project;
132*55e87721SMatt Gilbrideimport com.google.cloud.resourcemanager.ProjectInfo;
133*55e87721SMatt Gilbride```
134*55e87721SMatt Gilbride
135*55e87721SMatt GilbrideThen add the following code to create a project (be sure to change `projectId` to your own unique
136*55e87721SMatt Gilbrideproject ID).
137*55e87721SMatt Gilbride
138*55e87721SMatt Gilbride```java
139*55e87721SMatt GilbrideString projectId = "my-globally-unique-project-id"; // Change to a unique project ID
140*55e87721SMatt GilbrideProject project = resourceManager.create(ProjectInfo.newBuilder(projectId).build());
141*55e87721SMatt Gilbride```
142*55e87721SMatt Gilbride
143*55e87721SMatt GilbrideNote that the return value from `create` is a `Project` that includes additional read-only
144*55e87721SMatt Gilbrideinformation, like creation time, project number, and lifecycle state. Read more about these fields
145*55e87721SMatt Gilbrideon the [Projects page](https://cloud.google.com/resource-manager/reference/rest/v1beta1/projects).
146*55e87721SMatt Gilbride`Project`, a subclass of `ProjectInfo`, adds a layer of service-related functionality over
147*55e87721SMatt Gilbride`ProjectInfo`.
148*55e87721SMatt Gilbride
149*55e87721SMatt Gilbride#### Editing a project
150*55e87721SMatt GilbrideTo edit a project, create a new `ProjectInfo` object and pass it in to the `Project.replace` method.
151*55e87721SMatt GilbrideFor example, to add a label to a project to denote that it's launch status is "in development", add
152*55e87721SMatt Gilbridethe following code:
153*55e87721SMatt Gilbride
154*55e87721SMatt Gilbride```java
155*55e87721SMatt GilbrideProject newProject = project.toBuilder()
156*55e87721SMatt Gilbride    .addLabel("launch-status", "in-development")
157*55e87721SMatt Gilbride    .build()
158*55e87721SMatt Gilbride    .replace();
159*55e87721SMatt Gilbride```
160*55e87721SMatt Gilbride
161*55e87721SMatt GilbrideNote that the values of the project you pass in to `replace` overwrite the server's values for
162*55e87721SMatt Gilbridenon-read-only fields, namely `projectName` and `labels`. For example, if you create a project with
163*55e87721SMatt Gilbride`projectName` "some-project-name" and subsequently call replace using a `ProjectInfo` object that
164*55e87721SMatt Gilbridedidn't set the `projectName`, then the server will unset the project's name. The server ignores any
165*55e87721SMatt Gilbrideattempted changes to the read-only fields `projectNumber`, `lifecycleState`, and `createTime`.
166*55e87721SMatt GilbrideThe `projectId` cannot change.
167*55e87721SMatt Gilbride
168*55e87721SMatt Gilbride#### Listing all projects
169*55e87721SMatt GilbrideSuppose that we want a list of all projects for which we have read permissions. Add the following
170*55e87721SMatt Gilbrideimport:
171*55e87721SMatt Gilbride
172*55e87721SMatt Gilbride```java
173*55e87721SMatt Gilbrideimport java.util.Iterator;
174*55e87721SMatt Gilbride```
175*55e87721SMatt Gilbride
176*55e87721SMatt GilbrideThen add the following code to print a list of projects you can view:
177*55e87721SMatt Gilbride
178*55e87721SMatt Gilbride```java
179*55e87721SMatt GilbrideIterator<Project> projectIterator = resourceManager.list().iterateAll().iterator();
180*55e87721SMatt GilbrideSystem.out.println("Projects I can view:");
181*55e87721SMatt Gilbridewhile (projectIterator.hasNext()) {
182*55e87721SMatt Gilbride  System.out.println(projectIterator.next().getProjectId());
183*55e87721SMatt Gilbride}
184*55e87721SMatt Gilbride```
185*55e87721SMatt Gilbride
186*55e87721SMatt Gilbride#### Managing IAM Policies
187*55e87721SMatt GilbrideYou can edit [Google Cloud IAM](https://cloud.google.com/iam/) (Identity and Access Management)
188*55e87721SMatt Gilbridepolicies on the project-level using this library as well. We recommend using the read-modify-write
189*55e87721SMatt Gilbridepattern to make policy changes.  This entails reading the project's current policy, updating it
190*55e87721SMatt Gilbridelocally, and then sending the modified policy for writing, as shown in the snippet below. First,
191*55e87721SMatt Gilbrideadd these imports:
192*55e87721SMatt Gilbride
193*55e87721SMatt Gilbride```java
194*55e87721SMatt Gilbrideimport com.google.cloud.Identity;
195*55e87721SMatt Gilbrideimport com.google.cloud.Policy;
196*55e87721SMatt Gilbrideimport com.google.cloud.Role;
197*55e87721SMatt Gilbride```
198*55e87721SMatt Gilbride
199*55e87721SMatt GilbrideAssuming you have completed the steps above to create the `ResourceManager` service object and load
200*55e87721SMatt Gilbridea project from the server, you just need to add the following code:
201*55e87721SMatt Gilbride
202*55e87721SMatt Gilbride```java
203*55e87721SMatt Gilbride// Get the project's policy
204*55e87721SMatt GilbridePolicy policy = project.getPolicy();
205*55e87721SMatt Gilbride
206*55e87721SMatt Gilbride// Add a viewer
207*55e87721SMatt GilbridePolicy.Builder modifiedPolicy = policy.toBuilder();
208*55e87721SMatt GilbrideIdentity newViewer = Identity.user("<insert user's email address here>");
209*55e87721SMatt GilbridemodifiedPolicy.addIdentity(Role.viewer(), newViewer);
210*55e87721SMatt Gilbride
211*55e87721SMatt Gilbride// Write policy
212*55e87721SMatt GilbridePolicy updatedPolicy = project.replacePolicy(modifiedPolicy.build());
213*55e87721SMatt Gilbride```
214*55e87721SMatt Gilbride
215*55e87721SMatt GilbrideNote that the policy you pass in to `replacePolicy` overwrites the original policy. For example, if
216*55e87721SMatt Gilbridethe original policy has two bindings and you call `replacePolicy` with a new policy containing only
217*55e87721SMatt Gilbrideone binding, the two original bindings are lost.
218*55e87721SMatt Gilbride
219*55e87721SMatt Gilbride#### Complete source code
220*55e87721SMatt Gilbride
221*55e87721SMatt GilbrideWe put together all the code shown above into three programs. The programs assume that you are
222*55e87721SMatt Gilbriderunning from your own desktop and used the Google Cloud SDK to authenticate yourself.
223*55e87721SMatt Gilbride
224*55e87721SMatt GilbrideThe first program creates a project if it does not exist. Complete source code can be found at
225*55e87721SMatt Gilbride[GetOrCreateProject.java](https://github.com/googleapis/google-cloud-java/blob/master/google-cloud-examples/src/main/java/com/google/cloud/examples/resourcemanager/snippets/GetOrCreateProject.java).
226*55e87721SMatt Gilbride
227*55e87721SMatt GilbrideThe second program updates a project if it exists and lists all projects the user has permission to
228*55e87721SMatt Gilbrideview. Complete source code can be found at
229*55e87721SMatt Gilbride[UpdateAndListProjects.java](https://github.com/googleapis/google-cloud-java/blob/master/google-cloud-examples/src/main/java/com/google/cloud/examples/resourcemanager/snippets/UpdateAndListProjects.java).
230*55e87721SMatt Gilbride
231*55e87721SMatt GilbrideThe third program modifies the IAM policy associated with a project using the read-modify-write
232*55e87721SMatt Gilbridepattern.  Complete source code can be found at
233*55e87721SMatt Gilbride[ModifyPolicy.java](https://github.com/googleapis/google-cloud-java/blob/master/google-cloud-examples/src/main/java/com/google/cloud/examples/resourcemanager/snippets/ModifyPolicy.java)
234*55e87721SMatt Gilbride
235*55e87721SMatt Gilbride
236*55e87721SMatt Gilbride
237*55e87721SMatt Gilbride
238*55e87721SMatt Gilbride
239*55e87721SMatt Gilbride## Troubleshooting
240*55e87721SMatt Gilbride
241*55e87721SMatt GilbrideTo get help, follow the instructions in the [shared Troubleshooting document][troubleshooting].
242*55e87721SMatt Gilbride
243*55e87721SMatt Gilbride## Transport
244*55e87721SMatt Gilbride
245*55e87721SMatt GilbrideResource Manager API uses HTTP/JSON for the transport layer.
246*55e87721SMatt Gilbride
247*55e87721SMatt Gilbride## Supported Java Versions
248*55e87721SMatt Gilbride
249*55e87721SMatt GilbrideJava 8 or above is required for using this client.
250*55e87721SMatt Gilbride
251*55e87721SMatt GilbrideGoogle's Java client libraries,
252*55e87721SMatt Gilbride[Google Cloud Client Libraries][cloudlibs]
253*55e87721SMatt Gilbrideand
254*55e87721SMatt Gilbride[Google Cloud API Libraries][apilibs],
255*55e87721SMatt Gilbridefollow the
256*55e87721SMatt Gilbride[Oracle Java SE support roadmap][oracle]
257*55e87721SMatt Gilbride(see the Oracle Java SE Product Releases section).
258*55e87721SMatt Gilbride
259*55e87721SMatt Gilbride### For new development
260*55e87721SMatt Gilbride
261*55e87721SMatt GilbrideIn general, new feature development occurs with support for the lowest Java
262*55e87721SMatt GilbrideLTS version covered by  Oracle's Premier Support (which typically lasts 5 years
263*55e87721SMatt Gilbridefrom initial General Availability). If the minimum required JVM for a given
264*55e87721SMatt Gilbridelibrary is changed, it is accompanied by a [semver][semver] major release.
265*55e87721SMatt Gilbride
266*55e87721SMatt GilbrideJava 11 and (in September 2021) Java 17 are the best choices for new
267*55e87721SMatt Gilbridedevelopment.
268*55e87721SMatt Gilbride
269*55e87721SMatt Gilbride### Keeping production systems current
270*55e87721SMatt Gilbride
271*55e87721SMatt GilbrideGoogle tests its client libraries with all current LTS versions covered by
272*55e87721SMatt GilbrideOracle's Extended Support (which typically lasts 8 years from initial
273*55e87721SMatt GilbrideGeneral Availability).
274*55e87721SMatt Gilbride
275*55e87721SMatt Gilbride#### Legacy support
276*55e87721SMatt Gilbride
277*55e87721SMatt GilbrideGoogle's client libraries support legacy versions of Java runtimes with long
278*55e87721SMatt Gilbrideterm stable libraries that don't receive feature updates on a best efforts basis
279*55e87721SMatt Gilbrideas it may not be possible to backport all patches.
280*55e87721SMatt Gilbride
281*55e87721SMatt GilbrideGoogle provides updates on a best efforts basis to apps that continue to use
282*55e87721SMatt GilbrideJava 7, though apps might need to upgrade to current versions of the library
283*55e87721SMatt Gilbridethat supports their JVM.
284*55e87721SMatt Gilbride
285*55e87721SMatt Gilbride#### Where to find specific information
286*55e87721SMatt Gilbride
287*55e87721SMatt GilbrideThe latest versions and the supported Java versions are identified on
288*55e87721SMatt Gilbridethe individual GitHub repository `github.com/GoogleAPIs/java-SERVICENAME`
289*55e87721SMatt Gilbrideand on [google-cloud-java][g-c-j].
290*55e87721SMatt Gilbride
291*55e87721SMatt Gilbride## Versioning
292*55e87721SMatt Gilbride
293*55e87721SMatt Gilbride
294*55e87721SMatt GilbrideThis library follows [Semantic Versioning](http://semver.org/).
295*55e87721SMatt Gilbride
296*55e87721SMatt Gilbride
297*55e87721SMatt Gilbride
298*55e87721SMatt Gilbride## Contributing
299*55e87721SMatt Gilbride
300*55e87721SMatt Gilbride
301*55e87721SMatt GilbrideContributions to this library are always welcome and highly encouraged.
302*55e87721SMatt Gilbride
303*55e87721SMatt GilbrideSee [CONTRIBUTING][contributing] for more information how to get started.
304*55e87721SMatt Gilbride
305*55e87721SMatt GilbridePlease note that this project is released with a Contributor Code of Conduct. By participating in
306*55e87721SMatt Gilbridethis project you agree to abide by its terms. See [Code of Conduct][code-of-conduct] for more
307*55e87721SMatt Gilbrideinformation.
308*55e87721SMatt Gilbride
309*55e87721SMatt Gilbride
310*55e87721SMatt Gilbride## License
311*55e87721SMatt Gilbride
312*55e87721SMatt GilbrideApache 2.0 - See [LICENSE][license] for more information.
313*55e87721SMatt Gilbride
314*55e87721SMatt Gilbride## CI Status
315*55e87721SMatt Gilbride
316*55e87721SMatt GilbrideJava Version | Status
317*55e87721SMatt Gilbride------------ | ------
318*55e87721SMatt GilbrideJava 8 | [![Kokoro CI][kokoro-badge-image-2]][kokoro-badge-link-2]
319*55e87721SMatt GilbrideJava 8 OSX | [![Kokoro CI][kokoro-badge-image-3]][kokoro-badge-link-3]
320*55e87721SMatt GilbrideJava 8 Windows | [![Kokoro CI][kokoro-badge-image-4]][kokoro-badge-link-4]
321*55e87721SMatt GilbrideJava 11 | [![Kokoro CI][kokoro-badge-image-5]][kokoro-badge-link-5]
322*55e87721SMatt Gilbride
323*55e87721SMatt GilbrideJava is a registered trademark of Oracle and/or its affiliates.
324*55e87721SMatt Gilbride
325*55e87721SMatt Gilbride[product-docs]: https://cloud.google.com/resource-manager
326*55e87721SMatt Gilbride[javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-resourcemanager/latest/overview
327*55e87721SMatt Gilbride[kokoro-badge-image-1]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java7.svg
328*55e87721SMatt Gilbride[kokoro-badge-link-1]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java7.html
329*55e87721SMatt Gilbride[kokoro-badge-image-2]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java8.svg
330*55e87721SMatt Gilbride[kokoro-badge-link-2]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java8.html
331*55e87721SMatt Gilbride[kokoro-badge-image-3]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java8-osx.svg
332*55e87721SMatt Gilbride[kokoro-badge-link-3]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java8-osx.html
333*55e87721SMatt Gilbride[kokoro-badge-image-4]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java8-win.svg
334*55e87721SMatt Gilbride[kokoro-badge-link-4]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java8-win.html
335*55e87721SMatt Gilbride[kokoro-badge-image-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.svg
336*55e87721SMatt Gilbride[kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html
337*55e87721SMatt Gilbride[stability-image]: https://img.shields.io/badge/stability-stable-green
338*55e87721SMatt Gilbride[maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-resourcemanager.svg
339*55e87721SMatt Gilbride[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-resourcemanager/1.18.0
340*55e87721SMatt Gilbride[authentication]: https://github.com/googleapis/google-cloud-java#authentication
341*55e87721SMatt Gilbride[auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes
342*55e87721SMatt Gilbride[predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles
343*55e87721SMatt Gilbride[iam-policy]: https://cloud.google.com/iam/docs/overview#cloud-iam-policy
344*55e87721SMatt Gilbride[developer-console]: https://console.developers.google.com/
345*55e87721SMatt Gilbride[create-project]: https://cloud.google.com/resource-manager/docs/creating-managing-projects
346*55e87721SMatt Gilbride[cloud-cli]: https://cloud.google.com/cli
347*55e87721SMatt Gilbride[troubleshooting]: https://github.com/googleapis/google-cloud-java/blob/main/TROUBLESHOOTING.md
348*55e87721SMatt Gilbride[contributing]: https://github.com/googleapis/google-cloud-java/blob/main/CONTRIBUTING.md
349*55e87721SMatt Gilbride[code-of-conduct]: https://github.com/googleapis/google-cloud-java/blob/main/CODE_OF_CONDUCT.md#contributor-code-of-conduct
350*55e87721SMatt Gilbride[license]: https://github.com/googleapis/google-cloud-java/blob/main/LICENSE
351*55e87721SMatt Gilbride
352*55e87721SMatt Gilbride[enable-api]: https://console.cloud.google.com/flows/enableapi?apiid=cloudresourcemanager.googleapis.com
353*55e87721SMatt Gilbride[libraries-bom]: https://github.com/GoogleCloudPlatform/cloud-opensource-java/wiki/The-Google-Cloud-Platform-Libraries-BOM
354*55e87721SMatt Gilbride[shell_img]: https://gstatic.com/cloudssh/images/open-btn.png
355*55e87721SMatt Gilbride
356*55e87721SMatt Gilbride[semver]: https://semver.org/
357*55e87721SMatt Gilbride[cloudlibs]: https://cloud.google.com/apis/docs/client-libraries-explained
358*55e87721SMatt Gilbride[apilibs]: https://cloud.google.com/apis/docs/client-libraries-explained#google_api_client_libraries
359*55e87721SMatt Gilbride[oracle]: https://www.oracle.com/java/technologies/java-se-support-roadmap.html
360*55e87721SMatt Gilbride[g-c-j]: http://github.com/googleapis/google-cloud-java
361