Class protos.google.cloud.backupdr.v1.BackupDR (0.1.0)

Represents a BackupDR

Inheritance

$protobuf.rpc.Service > protos.google.cloud.backupdr.v1.BackupDR

Package

@google-cloud/backupdr

Constructors

(constructor)(rpcImpl, requestDelimited, responseDelimited)

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

Constructs a new BackupDR service.

Parameters
Name Description
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): BackupDR;

Creates new BackupDR service using the specified rpc implementation.

Parameters
Name Description
rpcImpl $protobuf.RPCImpl

RPC implementation

requestDelimited boolean

Whether requests are length-delimited

responseDelimited boolean

Whether responses are length-delimited

Returns
Type Description
BackupDR

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

createManagementServer(request, callback)

public createManagementServer(request: google.cloud.backupdr.v1.ICreateManagementServerRequest, callback: google.cloud.backupdr.v1.BackupDR.CreateManagementServerCallback): void;

Calls CreateManagementServer.

Parameters
Name Description
request ICreateManagementServerRequest

CreateManagementServerRequest message or plain object

callback CreateManagementServerCallback

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

Returns
Type Description
void

createManagementServer(request)

public createManagementServer(request: google.cloud.backupdr.v1.ICreateManagementServerRequest): Promise<google.longrunning.Operation>;

Calls CreateManagementServer.

Parameter
Name Description
request ICreateManagementServerRequest

CreateManagementServerRequest message or plain object

Returns
Type Description
Promise<google.longrunning.Operation>

Promise

deleteManagementServer(request, callback)

public deleteManagementServer(request: google.cloud.backupdr.v1.IDeleteManagementServerRequest, callback: google.cloud.backupdr.v1.BackupDR.DeleteManagementServerCallback): void;

Calls DeleteManagementServer.

Parameters
Name Description
request IDeleteManagementServerRequest

DeleteManagementServerRequest message or plain object

callback DeleteManagementServerCallback

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

Returns
Type Description
void

deleteManagementServer(request)

public deleteManagementServer(request: google.cloud.backupdr.v1.IDeleteManagementServerRequest): Promise<google.longrunning.Operation>;

Calls DeleteManagementServer.

Parameter
Name Description
request IDeleteManagementServerRequest

DeleteManagementServerRequest message or plain object

Returns
Type Description
Promise<google.longrunning.Operation>

Promise

getManagementServer(request, callback)

public getManagementServer(request: google.cloud.backupdr.v1.IGetManagementServerRequest, callback: google.cloud.backupdr.v1.BackupDR.GetManagementServerCallback): void;

Calls GetManagementServer.

Parameters
Name Description
request IGetManagementServerRequest

GetManagementServerRequest message or plain object

callback GetManagementServerCallback

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

Returns
Type Description
void

getManagementServer(request)

public getManagementServer(request: google.cloud.backupdr.v1.IGetManagementServerRequest): Promise<google.cloud.backupdr.v1.ManagementServer>;

Calls GetManagementServer.

Parameter
Name Description
request IGetManagementServerRequest

GetManagementServerRequest message or plain object

Returns
Type Description
Promise<google.cloud.backupdr.v1.ManagementServer>

Promise

listManagementServers(request, callback)

public listManagementServers(request: google.cloud.backupdr.v1.IListManagementServersRequest, callback: google.cloud.backupdr.v1.BackupDR.ListManagementServersCallback): void;

Calls ListManagementServers.

Parameters
Name Description
request IListManagementServersRequest

ListManagementServersRequest message or plain object

callback ListManagementServersCallback

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

Returns
Type Description
void

listManagementServers(request)

public listManagementServers(request: google.cloud.backupdr.v1.IListManagementServersRequest): Promise<google.cloud.backupdr.v1.ListManagementServersResponse>;

Calls ListManagementServers.

Parameter
Name Description
request IListManagementServersRequest

ListManagementServersRequest message or plain object

Returns
Type Description
Promise<google.cloud.backupdr.v1.ListManagementServersResponse>

Promise