Class protos.google.cloud.oslogin.v1.OsLoginService (5.4.0)

Represents an OsLoginService

Inheritance

$protobuf.rpc.Service > protos.google.cloud.oslogin.v1.OsLoginService

Package

@google-cloud/os-login

Constructors

(constructor)(rpcImpl, requestDelimited, responseDelimited)

constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean);

Constructs a new OsLoginService service.

Parameters
NameDescription
rpcImpl $protobuf.RPCImpl

RPC implementation

requestDelimited boolean

Whether requests are length-delimited

responseDelimited boolean

Whether responses are length-delimited

Methods

create(rpcImpl, requestDelimited, responseDelimited)

public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): OsLoginService;

Creates new OsLoginService service using the specified rpc implementation.

Parameters
NameDescription
rpcImpl $protobuf.RPCImpl

RPC implementation

requestDelimited boolean

Whether requests are length-delimited

responseDelimited boolean

Whether responses are length-delimited

Returns
TypeDescription
OsLoginService

RPC service. Useful where requests and/or responses are streamed.

createSshPublicKey(request, callback)

public createSshPublicKey(request: google.cloud.oslogin.v1.ICreateSshPublicKeyRequest, callback: google.cloud.oslogin.v1.OsLoginService.CreateSshPublicKeyCallback): void;

Calls CreateSshPublicKey.

Parameters
NameDescription
request ICreateSshPublicKeyRequest

CreateSshPublicKeyRequest message or plain object

callback CreateSshPublicKeyCallback

Node-style callback called with the error, if any, and SshPublicKey

Returns
TypeDescription
void

createSshPublicKey(request)

public createSshPublicKey(request: google.cloud.oslogin.v1.ICreateSshPublicKeyRequest): Promise<google.cloud.oslogin.common.SshPublicKey>;

Calls CreateSshPublicKey.

Parameter
NameDescription
request ICreateSshPublicKeyRequest

CreateSshPublicKeyRequest message or plain object

Returns
TypeDescription
Promise<google.cloud.oslogin.common.SshPublicKey>

Promise

deletePosixAccount(request, callback)

public deletePosixAccount(request: google.cloud.oslogin.v1.IDeletePosixAccountRequest, callback: google.cloud.oslogin.v1.OsLoginService.DeletePosixAccountCallback): void;

Calls DeletePosixAccount.

Parameters
NameDescription
request IDeletePosixAccountRequest

DeletePosixAccountRequest message or plain object

callback DeletePosixAccountCallback

Node-style callback called with the error, if any, and Empty

Returns
TypeDescription
void

deletePosixAccount(request)

public deletePosixAccount(request: google.cloud.oslogin.v1.IDeletePosixAccountRequest): Promise<google.protobuf.Empty>;

Calls DeletePosixAccount.

Parameter
NameDescription
request IDeletePosixAccountRequest

DeletePosixAccountRequest message or plain object

Returns
TypeDescription
Promise<google.protobuf.Empty>

Promise

deleteSshPublicKey(request, callback)

public deleteSshPublicKey(request: google.cloud.oslogin.v1.IDeleteSshPublicKeyRequest, callback: google.cloud.oslogin.v1.OsLoginService.DeleteSshPublicKeyCallback): void;

Calls DeleteSshPublicKey.

Parameters
NameDescription
request IDeleteSshPublicKeyRequest

DeleteSshPublicKeyRequest message or plain object

callback DeleteSshPublicKeyCallback

Node-style callback called with the error, if any, and Empty

Returns
TypeDescription
void

deleteSshPublicKey(request)

public deleteSshPublicKey(request: google.cloud.oslogin.v1.IDeleteSshPublicKeyRequest): Promise<google.protobuf.Empty>;

Calls DeleteSshPublicKey.

Parameter
NameDescription
request IDeleteSshPublicKeyRequest

DeleteSshPublicKeyRequest message or plain object

Returns
TypeDescription
Promise<google.protobuf.Empty>

Promise

getLoginProfile(request, callback)

public getLoginProfile(request: google.cloud.oslogin.v1.IGetLoginProfileRequest, callback: google.cloud.oslogin.v1.OsLoginService.GetLoginProfileCallback): void;

Calls GetLoginProfile.

Parameters
NameDescription
request IGetLoginProfileRequest

GetLoginProfileRequest message or plain object

callback GetLoginProfileCallback

Node-style callback called with the error, if any, and LoginProfile

Returns
TypeDescription
void

getLoginProfile(request)

public getLoginProfile(request: google.cloud.oslogin.v1.IGetLoginProfileRequest): Promise<google.cloud.oslogin.v1.LoginProfile>;

Calls GetLoginProfile.

Parameter
NameDescription
request IGetLoginProfileRequest

GetLoginProfileRequest message or plain object

Returns
TypeDescription
Promise<google.cloud.oslogin.v1.LoginProfile>

Promise

getSshPublicKey(request, callback)

public getSshPublicKey(request: google.cloud.oslogin.v1.IGetSshPublicKeyRequest, callback: google.cloud.oslogin.v1.OsLoginService.GetSshPublicKeyCallback): void;

Calls GetSshPublicKey.

Parameters
NameDescription
request IGetSshPublicKeyRequest

GetSshPublicKeyRequest message or plain object

callback GetSshPublicKeyCallback

Node-style callback called with the error, if any, and SshPublicKey

Returns
TypeDescription
void

getSshPublicKey(request)

public getSshPublicKey(request: google.cloud.oslogin.v1.IGetSshPublicKeyRequest): Promise<google.cloud.oslogin.common.SshPublicKey>;

Calls GetSshPublicKey.

Parameter
NameDescription
request IGetSshPublicKeyRequest

GetSshPublicKeyRequest message or plain object

Returns
TypeDescription
Promise<google.cloud.oslogin.common.SshPublicKey>

Promise

importSshPublicKey(request, callback)

public importSshPublicKey(request: google.cloud.oslogin.v1.IImportSshPublicKeyRequest, callback: google.cloud.oslogin.v1.OsLoginService.ImportSshPublicKeyCallback): void;

Calls ImportSshPublicKey.

Parameters
NameDescription
request IImportSshPublicKeyRequest

ImportSshPublicKeyRequest message or plain object

callback ImportSshPublicKeyCallback

Node-style callback called with the error, if any, and ImportSshPublicKeyResponse

Returns
TypeDescription
void

importSshPublicKey(request)

public importSshPublicKey(request: google.cloud.oslogin.v1.IImportSshPublicKeyRequest): Promise<google.cloud.oslogin.v1.ImportSshPublicKeyResponse>;

Calls ImportSshPublicKey.

Parameter
NameDescription
request IImportSshPublicKeyRequest

ImportSshPublicKeyRequest message or plain object

Returns
TypeDescription
Promise<google.cloud.oslogin.v1.ImportSshPublicKeyResponse>

Promise

updateSshPublicKey(request, callback)

public updateSshPublicKey(request: google.cloud.oslogin.v1.IUpdateSshPublicKeyRequest, callback: google.cloud.oslogin.v1.OsLoginService.UpdateSshPublicKeyCallback): void;

Calls UpdateSshPublicKey.

Parameters
NameDescription
request IUpdateSshPublicKeyRequest

UpdateSshPublicKeyRequest message or plain object

callback UpdateSshPublicKeyCallback

Node-style callback called with the error, if any, and SshPublicKey

Returns
TypeDescription
void

updateSshPublicKey(request)

public updateSshPublicKey(request: google.cloud.oslogin.v1.IUpdateSshPublicKeyRequest): Promise<google.cloud.oslogin.common.SshPublicKey>;

Calls UpdateSshPublicKey.

Parameter
NameDescription
request IUpdateSshPublicKeyRequest

UpdateSshPublicKeyRequest message or plain object

Returns
TypeDescription
Promise<google.cloud.oslogin.common.SshPublicKey>

Promise