google-cloud-run overview (0.1.2)

com.google.cloud.run.v2

A client to Cloud Run Admin API

The interfaces provided are listed below, along with usage samples.

RevisionsClient

Service Description: Cloud Run Revision Control Plane API.

Sample for RevisionsClient:


try(RevisionsClientrevisionsClient=RevisionsClient.create()){
RevisionNamename=RevisionName.of("[PROJECT]","[LOCATION]","[SERVICE]","[REVISION]");
Revisionresponse=revisionsClient.getRevision(name);
}

ServicesClient

Service Description: Cloud Run Service Control Plane API

Sample for ServicesClient:


try(ServicesClientservicesClient=ServicesClient.create()){
ServiceNamename=ServiceName.of("[PROJECT]","[LOCATION]","[SERVICE]");
Serviceresponse=servicesClient.getService(name);
}

com.google.cloud.run.v2.stub

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025年10月30日 UTC.