The @google-cloud/oslogin package has the following named exports:
OsLoginServiceClient- Reference to v1beta.OsLoginServiceClientv1beta- This is used for selecting or pinning a particular backend service version. It exports:OsLoginServiceClient- Reference to v1beta.OsLoginServiceClient
Examples
Install the client library with npm:
npm install --save @google-cloud/oslogin
Import the client library:
const oslogin = require('@google-cloud/oslogin');
Create a client that uses Application Default Credentials (ADC):
const client = new oslogin.OsLoginServiceClient();
Create a client with explicit credentials:
const client = new oslogin.OsLoginServiceClient({
projectId: 'your-project-id',
keyFilename: '/path/to/keyfile.json',
});
Members
(static) v1beta :object
Properties:
| Name | Type | Description |
|---|---|---|
OsLoginServiceClient |
constructor |
Reference to v1beta.OsLoginServiceClient |