Class protos.google.cloud.assuredworkloads.v1beta1.AssuredWorkloadsService (2.2.0)

Represents an AssuredWorkloadsService

Inheritance

$protobuf.rpc.Service > protos.google.cloud.assuredworkloads.v1beta1.AssuredWorkloadsService

Package

@google-cloud/assured-workloads

Constructors

(constructor)(rpcImpl, requestDelimited, responseDelimited)

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

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

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

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

createWorkload(request, callback)

public createWorkload(request: google.cloud.assuredworkloads.v1beta1.ICreateWorkloadRequest, callback: google.cloud.assuredworkloads.v1beta1.AssuredWorkloadsService.CreateWorkloadCallback): void;

Calls CreateWorkload.

Parameters
NameDescription
request google.cloud.assuredworkloads.v1beta1.ICreateWorkloadRequest

CreateWorkloadRequest message or plain object

callback google.cloud.assuredworkloads.v1beta1.AssuredWorkloadsService.CreateWorkloadCallback

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

Returns
TypeDescription
void

createWorkload(request)

public createWorkload(request: google.cloud.assuredworkloads.v1beta1.ICreateWorkloadRequest): Promise<google.longrunning.Operation>;

Calls CreateWorkload.

Parameter
NameDescription
request google.cloud.assuredworkloads.v1beta1.ICreateWorkloadRequest

CreateWorkloadRequest message or plain object

Returns
TypeDescription
Promise<google.longrunning.Operation>

Promise

deleteWorkload(request, callback)

public deleteWorkload(request: google.cloud.assuredworkloads.v1beta1.IDeleteWorkloadRequest, callback: google.cloud.assuredworkloads.v1beta1.AssuredWorkloadsService.DeleteWorkloadCallback): void;

Calls DeleteWorkload.

Parameters
NameDescription
request IDeleteWorkloadRequest

DeleteWorkloadRequest message or plain object

callback google.cloud.assuredworkloads.v1beta1.AssuredWorkloadsService.DeleteWorkloadCallback

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

Returns
TypeDescription
void

deleteWorkload(request)

public deleteWorkload(request: google.cloud.assuredworkloads.v1beta1.IDeleteWorkloadRequest): Promise<google.protobuf.Empty>;

Calls DeleteWorkload.

Parameter
NameDescription
request IDeleteWorkloadRequest

DeleteWorkloadRequest message or plain object

Returns
TypeDescription
Promise<google.protobuf.Empty>

Promise

getWorkload(request, callback)

public getWorkload(request: google.cloud.assuredworkloads.v1beta1.IGetWorkloadRequest, callback: google.cloud.assuredworkloads.v1beta1.AssuredWorkloadsService.GetWorkloadCallback): void;

Calls GetWorkload.

Parameters
NameDescription
request IGetWorkloadRequest

GetWorkloadRequest message or plain object

callback google.cloud.assuredworkloads.v1beta1.AssuredWorkloadsService.GetWorkloadCallback

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

Returns
TypeDescription
void

getWorkload(request)

public getWorkload(request: google.cloud.assuredworkloads.v1beta1.IGetWorkloadRequest): Promise<google.cloud.assuredworkloads.v1beta1.Workload>;

Calls GetWorkload.

Parameter
NameDescription
request IGetWorkloadRequest

GetWorkloadRequest message or plain object

Returns
TypeDescription
Promise<google.cloud.assuredworkloads.v1beta1.Workload>

Promise

listWorkloads(request, callback)

public listWorkloads(request: google.cloud.assuredworkloads.v1beta1.IListWorkloadsRequest, callback: google.cloud.assuredworkloads.v1beta1.AssuredWorkloadsService.ListWorkloadsCallback): void;

Calls ListWorkloads.

Parameters
NameDescription
request IListWorkloadsRequest

ListWorkloadsRequest message or plain object

callback google.cloud.assuredworkloads.v1beta1.AssuredWorkloadsService.ListWorkloadsCallback

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

Returns
TypeDescription
void

listWorkloads(request)

public listWorkloads(request: google.cloud.assuredworkloads.v1beta1.IListWorkloadsRequest): Promise<google.cloud.assuredworkloads.v1beta1.ListWorkloadsResponse>;

Calls ListWorkloads.

Parameter
NameDescription
request IListWorkloadsRequest

ListWorkloadsRequest message or plain object

Returns
TypeDescription
Promise<google.cloud.assuredworkloads.v1beta1.ListWorkloadsResponse>

Promise

updateWorkload(request, callback)

public updateWorkload(request: google.cloud.assuredworkloads.v1beta1.IUpdateWorkloadRequest, callback: google.cloud.assuredworkloads.v1beta1.AssuredWorkloadsService.UpdateWorkloadCallback): void;

Calls UpdateWorkload.

Parameters
NameDescription
request IUpdateWorkloadRequest

UpdateWorkloadRequest message or plain object

callback google.cloud.assuredworkloads.v1beta1.AssuredWorkloadsService.UpdateWorkloadCallback

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

Returns
TypeDescription
void

updateWorkload(request)

public updateWorkload(request: google.cloud.assuredworkloads.v1beta1.IUpdateWorkloadRequest): Promise<google.cloud.assuredworkloads.v1beta1.Workload>;

Calls UpdateWorkload.

Parameter
NameDescription
request IUpdateWorkloadRequest

UpdateWorkloadRequest message or plain object

Returns
TypeDescription
Promise<google.cloud.assuredworkloads.v1beta1.Workload>

Promise