AssuredWorkloadsService

google.cloud.assuredworkloads.v1beta1. AssuredWorkloadsService

Represents an AssuredWorkloadsService

Constructor

new AssuredWorkloadsService(rpcImpl, requestDelimitedopt, responseDelimitedopt)

Constructs a new AssuredWorkloadsService service.

Parameters:
Name Type Attributes Default Description
rpcImpl $protobuf.RPCImpl

RPC implementation

requestDelimited boolean <optional>
false

Whether requests are length-delimited

responseDelimited boolean <optional>
false

Whether responses are length-delimited

Extends

  • $protobuf.rpc.Service

Methods

analyzeWorkloadMove(request, callback) → {undefined}

Calls AnalyzeWorkloadMove.

Parameters:
Name Type Description
request google.cloud.assuredworkloads.v1beta1.IAnalyzeWorkloadMoveRequest

AnalyzeWorkloadMoveRequest message or plain object

callback google.cloud.assuredworkloads.v1beta1.AssuredWorkloadsService.AnalyzeWorkloadMoveCallback

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

Returns:
Type Description
undefined

analyzeWorkloadMove(request) → {Promise.<google.cloud.assuredworkloads.v1beta1.AnalyzeWorkloadMoveResponse>}

Calls AnalyzeWorkloadMove.

Parameters:
Name Type Description
request google.cloud.assuredworkloads.v1beta1.IAnalyzeWorkloadMoveRequest

AnalyzeWorkloadMoveRequest message or plain object

Returns:
Type Description
Promise.<google.cloud.assuredworkloads.v1beta1.AnalyzeWorkloadMoveResponse>

Promise

createWorkload(request, callback) → {undefined}

Calls CreateWorkload.

Parameters:
Name Type 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

Returns:
Type Description
undefined

createWorkload(request) → {Promise.<google.longrunning.Operation>}

Calls CreateWorkload.

Parameters:
Name Type Description
request google.cloud.assuredworkloads.v1beta1.ICreateWorkloadRequest

CreateWorkloadRequest message or plain object

Returns:
Type Description
Promise.<google.longrunning.Operation>

Promise

deleteWorkload(request, callback) → {undefined}

Calls DeleteWorkload.

Parameters:
Name Type Description
request google.cloud.assuredworkloads.v1beta1.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:
Type Description
undefined

deleteWorkload(request) → {Promise.<google.protobuf.Empty>}

Calls DeleteWorkload.

Parameters:
Name Type Description
request google.cloud.assuredworkloads.v1beta1.IDeleteWorkloadRequest

DeleteWorkloadRequest message or plain object

Returns:
Type Description
Promise.<google.protobuf.Empty>

Promise

getWorkload(request, callback) → {undefined}

Calls GetWorkload.

Parameters:
Name Type Description
request google.cloud.assuredworkloads.v1beta1.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:
Type Description
undefined

getWorkload(request) → {Promise.<google.cloud.assuredworkloads.v1beta1.Workload>}

Calls GetWorkload.

Parameters:
Name Type Description
request google.cloud.assuredworkloads.v1beta1.IGetWorkloadRequest

GetWorkloadRequest message or plain object

Returns:
Type Description
Promise.<google.cloud.assuredworkloads.v1beta1.Workload>

Promise

listWorkloads(request, callback) → {undefined}

Calls ListWorkloads.

Parameters:
Name Type Description
request google.cloud.assuredworkloads.v1beta1.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:
Type Description
undefined

listWorkloads(request) → {Promise.<google.cloud.assuredworkloads.v1beta1.ListWorkloadsResponse>}

Calls ListWorkloads.

Parameters:
Name Type Description
request google.cloud.assuredworkloads.v1beta1.IListWorkloadsRequest

ListWorkloadsRequest message or plain object

Returns:
Type Description
Promise.<google.cloud.assuredworkloads.v1beta1.ListWorkloadsResponse>

Promise

restrictAllowedResources(request, callback) → {undefined}

Calls RestrictAllowedResources.

Parameters:
Name Type Description
request google.cloud.assuredworkloads.v1beta1.IRestrictAllowedResourcesRequest

RestrictAllowedResourcesRequest message or plain object

callback google.cloud.assuredworkloads.v1beta1.AssuredWorkloadsService.RestrictAllowedResourcesCallback

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

Returns:
Type Description
undefined

restrictAllowedResources(request) → {Promise.<google.cloud.assuredworkloads.v1beta1.RestrictAllowedResourcesResponse>}

Calls RestrictAllowedResources.

Parameters:
Name Type Description
request google.cloud.assuredworkloads.v1beta1.IRestrictAllowedResourcesRequest

RestrictAllowedResourcesRequest message or plain object

Returns:
Type Description
Promise.<google.cloud.assuredworkloads.v1beta1.RestrictAllowedResourcesResponse>

Promise

updateWorkload(request, callback) → {undefined}

Calls UpdateWorkload.

Parameters:
Name Type Description
request google.cloud.assuredworkloads.v1beta1.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:
Type Description
undefined

updateWorkload(request) → {Promise.<google.cloud.assuredworkloads.v1beta1.Workload>}

Calls UpdateWorkload.

Parameters:
Name Type Description
request google.cloud.assuredworkloads.v1beta1.IUpdateWorkloadRequest

UpdateWorkloadRequest message or plain object

Returns:
Type Description
Promise.<google.cloud.assuredworkloads.v1beta1.Workload>

Promise

(static) create(rpcImpl, requestDelimitedopt, responseDelimitedopt) → {AssuredWorkloadsService}

Creates new AssuredWorkloadsService service using the specified rpc implementation.

Parameters:
Name Type Attributes Default Description
rpcImpl $protobuf.RPCImpl

RPC implementation

requestDelimited boolean <optional>
false

Whether requests are length-delimited

responseDelimited boolean <optional>
false

Whether responses are length-delimited

Returns:
Type Description
AssuredWorkloadsService

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

Type Definitions

AnalyzeWorkloadMoveCallback(error, responseopt)

Callback as used by analyzeWorkloadMove.

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

response google.cloud.assuredworkloads.v1beta1.AnalyzeWorkloadMoveResponse <optional>

AnalyzeWorkloadMoveResponse

CreateWorkloadCallback(error, responseopt)

Callback as used by createWorkload.

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

response google.longrunning.Operation <optional>

Operation

DeleteWorkloadCallback(error, responseopt)

Callback as used by deleteWorkload.

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

response google.protobuf.Empty <optional>

Empty

GetWorkloadCallback(error, responseopt)

Callback as used by getWorkload.

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

response google.cloud.assuredworkloads.v1beta1.Workload <optional>

Workload

ListWorkloadsCallback(error, responseopt)

Callback as used by listWorkloads.

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

response google.cloud.assuredworkloads.v1beta1.ListWorkloadsResponse <optional>

ListWorkloadsResponse

RestrictAllowedResourcesCallback(error, responseopt)

Callback as used by restrictAllowedResources.

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

response google.cloud.assuredworkloads.v1beta1.RestrictAllowedResourcesResponse <optional>

RestrictAllowedResourcesResponse

UpdateWorkloadCallback(error, responseopt)

Callback as used by updateWorkload.

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

response google.cloud.assuredworkloads.v1beta1.Workload <optional>

Workload