Class protos.google.cloud.aiplatform.v1.PersistentResourceService (5.13.0)

Represents a PersistentResourceService

Inheritance

$protobuf.rpc.Service > protos.google.cloud.aiplatform.v1.PersistentResourceService

Package

@google-cloud/aiplatform

Constructors

(constructor)(rpcImpl, requestDelimited, responseDelimited)

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

Constructs a new PersistentResourceService 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): PersistentResourceService;

Creates new PersistentResourceService 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
PersistentResourceService

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

createPersistentResource(request, callback)

public createPersistentResource(request: google.cloud.aiplatform.v1.ICreatePersistentResourceRequest, callback: google.cloud.aiplatform.v1.PersistentResourceService.CreatePersistentResourceCallback): void;

Calls CreatePersistentResource.

Parameters
Name Description
request ICreatePersistentResourceRequest

CreatePersistentResourceRequest message or plain object

callback CreatePersistentResourceCallback

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

Returns
Type Description
void

createPersistentResource(request)

public createPersistentResource(request: google.cloud.aiplatform.v1.ICreatePersistentResourceRequest): Promise<google.longrunning.Operation>;

Calls CreatePersistentResource.

Parameter
Name Description
request ICreatePersistentResourceRequest

CreatePersistentResourceRequest message or plain object

Returns
Type Description
Promise<google.longrunning.Operation>

Promise

deletePersistentResource(request, callback)

public deletePersistentResource(request: google.cloud.aiplatform.v1.IDeletePersistentResourceRequest, callback: google.cloud.aiplatform.v1.PersistentResourceService.DeletePersistentResourceCallback): void;

Calls DeletePersistentResource.

Parameters
Name Description
request IDeletePersistentResourceRequest

DeletePersistentResourceRequest message or plain object

callback DeletePersistentResourceCallback

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

Returns
Type Description
void

deletePersistentResource(request)

public deletePersistentResource(request: google.cloud.aiplatform.v1.IDeletePersistentResourceRequest): Promise<google.longrunning.Operation>;

Calls DeletePersistentResource.

Parameter
Name Description
request IDeletePersistentResourceRequest

DeletePersistentResourceRequest message or plain object

Returns
Type Description
Promise<google.longrunning.Operation>

Promise

getPersistentResource(request, callback)

public getPersistentResource(request: google.cloud.aiplatform.v1.IGetPersistentResourceRequest, callback: google.cloud.aiplatform.v1.PersistentResourceService.GetPersistentResourceCallback): void;

Calls GetPersistentResource.

Parameters
Name Description
request IGetPersistentResourceRequest

GetPersistentResourceRequest message or plain object

callback GetPersistentResourceCallback

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

Returns
Type Description
void

getPersistentResource(request)

public getPersistentResource(request: google.cloud.aiplatform.v1.IGetPersistentResourceRequest): Promise<google.cloud.aiplatform.v1.PersistentResource>;

Calls GetPersistentResource.

Parameter
Name Description
request IGetPersistentResourceRequest

GetPersistentResourceRequest message or plain object

Returns
Type Description
Promise<google.cloud.aiplatform.v1.PersistentResource>

Promise

listPersistentResources(request, callback)

public listPersistentResources(request: google.cloud.aiplatform.v1.IListPersistentResourcesRequest, callback: google.cloud.aiplatform.v1.PersistentResourceService.ListPersistentResourcesCallback): void;

Calls ListPersistentResources.

Parameters
Name Description
request IListPersistentResourcesRequest

ListPersistentResourcesRequest message or plain object

callback ListPersistentResourcesCallback

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

Returns
Type Description
void

listPersistentResources(request)

public listPersistentResources(request: google.cloud.aiplatform.v1.IListPersistentResourcesRequest): Promise<google.cloud.aiplatform.v1.ListPersistentResourcesResponse>;

Calls ListPersistentResources.

Parameter
Name Description
request IListPersistentResourcesRequest

ListPersistentResourcesRequest message or plain object

Returns
Type Description
Promise<google.cloud.aiplatform.v1.ListPersistentResourcesResponse>

Promise

rebootPersistentResource(request, callback)

public rebootPersistentResource(request: google.cloud.aiplatform.v1.IRebootPersistentResourceRequest, callback: google.cloud.aiplatform.v1.PersistentResourceService.RebootPersistentResourceCallback): void;

Calls RebootPersistentResource.

Parameters
Name Description
request IRebootPersistentResourceRequest

RebootPersistentResourceRequest message or plain object

callback RebootPersistentResourceCallback

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

Returns
Type Description
void

rebootPersistentResource(request)

public rebootPersistentResource(request: google.cloud.aiplatform.v1.IRebootPersistentResourceRequest): Promise<google.longrunning.Operation>;

Calls RebootPersistentResource.

Parameter
Name Description
request IRebootPersistentResourceRequest

RebootPersistentResourceRequest message or plain object

Returns
Type Description
Promise<google.longrunning.Operation>

Promise

updatePersistentResource(request, callback)

public updatePersistentResource(request: google.cloud.aiplatform.v1.IUpdatePersistentResourceRequest, callback: google.cloud.aiplatform.v1.PersistentResourceService.UpdatePersistentResourceCallback): void;

Calls UpdatePersistentResource.

Parameters
Name Description
request IUpdatePersistentResourceRequest

UpdatePersistentResourceRequest message or plain object

callback UpdatePersistentResourceCallback

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

Returns
Type Description
void

updatePersistentResource(request)

public updatePersistentResource(request: google.cloud.aiplatform.v1.IUpdatePersistentResourceRequest): Promise<google.longrunning.Operation>;

Calls UpdatePersistentResource.

Parameter
Name Description
request IUpdatePersistentResourceRequest

UpdatePersistentResourceRequest message or plain object

Returns
Type Description
Promise<google.longrunning.Operation>

Promise