Represents an AssuredWorkloadsService
Inheritance
$protobuf.rpc.Service > protos.google.cloud.assuredworkloads.v1beta1.AssuredWorkloadsServicePackage
@google-cloud/assured-workloadsConstructors
(constructor)(rpcImpl, requestDelimited, responseDelimited)
constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean);
Constructs a new AssuredWorkloadsService service.
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): AssuredWorkloadsService;
Creates new AssuredWorkloadsService service using the specified rpc implementation.
Name | Description |
rpcImpl |
$protobuf.RPCImpl
RPC implementation |
requestDelimited |
boolean
Whether requests are length-delimited |
responseDelimited |
boolean
Whether responses are length-delimited |
Type | Description |
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.
Name | Description |
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 |
Type | Description |
void |
createWorkload(request)
public createWorkload(request: google.cloud.assuredworkloads.v1beta1.ICreateWorkloadRequest): Promise<google.longrunning.Operation>;
Calls CreateWorkload.
Name | Description |
request |
google.cloud.assuredworkloads.v1beta1.ICreateWorkloadRequest
CreateWorkloadRequest message or plain object |
Type | Description |
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.
Name | Description |
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 |
Type | Description |
void |
deleteWorkload(request)
public deleteWorkload(request: google.cloud.assuredworkloads.v1beta1.IDeleteWorkloadRequest): Promise<google.protobuf.Empty>;
Calls DeleteWorkload.
Name | Description |
request |
IDeleteWorkloadRequest
DeleteWorkloadRequest message or plain object |
Type | Description |
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.
Name | Description |
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 |
Type | Description |
void |
getWorkload(request)
public getWorkload(request: google.cloud.assuredworkloads.v1beta1.IGetWorkloadRequest): Promise<google.cloud.assuredworkloads.v1beta1.Workload>;
Calls GetWorkload.
Name | Description |
request |
IGetWorkloadRequest
GetWorkloadRequest message or plain object |
Type | Description |
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.
Name | Description |
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 |
Type | Description |
void |
listWorkloads(request)
public listWorkloads(request: google.cloud.assuredworkloads.v1beta1.IListWorkloadsRequest): Promise<google.cloud.assuredworkloads.v1beta1.ListWorkloadsResponse>;
Calls ListWorkloads.
Name | Description |
request |
IListWorkloadsRequest
ListWorkloadsRequest message or plain object |
Type | Description |
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.
Name | Description |
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 |
Type | Description |
void |
updateWorkload(request)
public updateWorkload(request: google.cloud.assuredworkloads.v1beta1.IUpdateWorkloadRequest): Promise<google.cloud.assuredworkloads.v1beta1.Workload>;
Calls UpdateWorkload.
Name | Description |
request |
IUpdateWorkloadRequest
UpdateWorkloadRequest message or plain object |
Type | Description |
Promise<google.cloud.assuredworkloads.v1beta1.Workload> | Promise |