I'm trying to create a java client listing all projects in GCP, I've used google-cloud-resourcemanager
as mentioned in the documentation. It works fine but I keep getting ResourceManager is deprecated. v3 GAPIC client of ResourceManager is now available
. Not sure what is a Gapic client and how do I use it?
I just encountered the same deprecation message, and after some research I believe that the message is terribly misleading - there actually is no ResourceManager
equivalent in the new design, it has been broken apart into a number of different clients. In particular, the deprecation message for ResourceManager.get()
says Please use com.google.cloud.resourcemanager.v3.ProjectsClient.getProject() instead
.
(There are also now separate OrganizationsClient
and FoldersClient
objects as well)
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.