google-cloud-os-login overview (2.2.4)

com.google.cloud.oslogin.common

com.google.cloud.oslogin.v1

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

OsLoginServiceClient

Service Description: Cloud OS Login API

The Cloud OS Login API allows you to manage users and their associated SSH public keys for logging into virtual machines on Google Cloud Platform.

Sample for OsLoginServiceClient:


 // This snippet has been automatically generated for illustrative purposes only.
 // It may require modifications to work in your environment.
 try (OsLoginServiceClient osLoginServiceClient = OsLoginServiceClient.create()) {
   PosixAccountName name = PosixAccountName.of("[USER]", "[PROJECT]");
   osLoginServiceClient.deletePosixAccount(name);
 }
 

com.google.cloud.oslogin.v1.stub