Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

OSLogin

import { OSLogin } from "https://googleapis.deno.dev/v1/oslogin:v1.ts";

You can use OS Login to manage access to your VM instances using IAM roles.

class OSLogin {
constructor(client?: CredentialsClient, baseUrl?: string);
async usersGetLoginProfile(name: string, opts?: UsersGetLoginProfileOptions): Promise<LoginProfile>;
async usersImportSshPublicKey(
parent: string,
): Promise<ImportSshPublicKeyResponse>;
async usersProjectsDelete(name: string): Promise<Empty>;
async usersSshPublicKeysCreate(parent: string, req: SshPublicKey): Promise<SshPublicKey>;
async usersSshPublicKeysDelete(name: string): Promise<Empty>;
async usersSshPublicKeysGet(name: string): Promise<SshPublicKey>;
async usersSshPublicKeysPatch(
name: string,
): Promise<SshPublicKey>;
}

§Constructors

§
new OSLogin(client?: CredentialsClient, baseUrl?: string)
[src]

§Methods

§
usersGetLoginProfile(name: string, opts?: UsersGetLoginProfileOptions): Promise<LoginProfile>
[src]

Retrieves the profile information used for logging in to a virtual machine on Google Compute Engine.

@param name

Required. The unique ID for the user in format users/{user}.

§
usersImportSshPublicKey(parent: string, req: SshPublicKey, opts?: UsersImportSshPublicKeyOptions): Promise<ImportSshPublicKeyResponse>
[src]

Adds an SSH public key and returns the profile information. Default POSIX account information is set when no username and UID exist as part of the login profile.

@param parent

Required. The unique ID for the user in format users/{user}.

§
usersProjectsDelete(name: string): Promise<Empty>
[src]

Deletes a POSIX account.

@param name

Required. A reference to the POSIX account to update. POSIX accounts are identified by the project ID they are associated with. A reference to the POSIX account is in format users/{user}/projects/{project}.

§
usersSshPublicKeysCreate(parent: string, req: SshPublicKey): Promise<SshPublicKey>
[src]

Create an SSH public key

@param parent

Required. The unique ID for the user in format users/{user}.

§
usersSshPublicKeysDelete(name: string): Promise<Empty>
[src]

Deletes an SSH public key.

@param name

Required. The fingerprint of the public key to update. Public keys are identified by their SHA-256 fingerprint. The fingerprint of the public key is in format users/{user}/sshPublicKeys/{fingerprint}.

§
usersSshPublicKeysGet(name: string): Promise<SshPublicKey>
[src]

Retrieves an SSH public key.

@param name

Required. The fingerprint of the public key to retrieve. Public keys are identified by their SHA-256 fingerprint. The fingerprint of the public key is in format users/{user}/sshPublicKeys/{fingerprint}.

§
usersSshPublicKeysPatch(name: string, req: SshPublicKey, opts?: UsersSshPublicKeysPatchOptions): Promise<SshPublicKey>
[src]

Updates an SSH public key and returns the profile information. This method supports patch semantics.

@param name

Required. The fingerprint of the public key to update. Public keys are identified by their SHA-256 fingerprint. The fingerprint of the public key is in format users/{user}/sshPublicKeys/{fingerprint}.