AssuredWorkloadsService

google.cloud.assuredworkloads.v1. 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

acknowledgeViolation(request, callback) → {undefined}

Calls AcknowledgeViolation.

Parameters:
Name Type Description
request google.cloud.assuredworkloads.v1.IAcknowledgeViolationRequest

AcknowledgeViolationRequest message or plain object

callback google.cloud.assuredworkloads.v1.AssuredWorkloadsService.AcknowledgeViolationCallback

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

Returns:
Type Description
undefined

acknowledgeViolation(request) → {Promise.<google.cloud.assuredworkloads.v1.AcknowledgeViolationResponse>}

Calls AcknowledgeViolation.

Parameters:
Name Type Description
request google.cloud.assuredworkloads.v1.IAcknowledgeViolationRequest

AcknowledgeViolationRequest message or plain object

Returns:
Type Description
Promise.<google.cloud.assuredworkloads.v1.AcknowledgeViolationResponse>

Promise

createWorkload(request, callback) → {undefined}

Calls CreateWorkload.

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

CreateWorkloadRequest message or plain object

callback google.cloud.assuredworkloads.v1.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.v1.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.v1.IDeleteWorkloadRequest

DeleteWorkloadRequest message or plain object

callback google.cloud.assuredworkloads.v1.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.v1.IDeleteWorkloadRequest

DeleteWorkloadRequest message or plain object

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

Promise

getViolation(request, callback) → {undefined}

Calls GetViolation.

Parameters:
Name Type Description
request google.cloud.assuredworkloads.v1.IGetViolationRequest

GetViolationRequest message or plain object

callback google.cloud.assuredworkloads.v1.AssuredWorkloadsService.GetViolationCallback

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

Returns:
Type Description
undefined

getViolation(request) → {Promise.<google.cloud.assuredworkloads.v1.Violation>}

Calls GetViolation.

Parameters:
Name Type Description
request google.cloud.assuredworkloads.v1.IGetViolationRequest

GetViolationRequest message or plain object

Returns:
Type Description
Promise.<google.cloud.assuredworkloads.v1.Violation>

Promise

getWorkload(request, callback) → {undefined}

Calls GetWorkload.

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

GetWorkloadRequest message or plain object

callback google.cloud.assuredworkloads.v1.AssuredWorkloadsService.GetWorkloadCallback

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

Returns:
Type Description
undefined

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

Calls GetWorkload.

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

GetWorkloadRequest message or plain object

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

Promise

listViolations(request, callback) → {undefined}

Calls ListViolations.

Parameters:
Name Type Description
request google.cloud.assuredworkloads.v1.IListViolationsRequest

ListViolationsRequest message or plain object

callback google.cloud.assuredworkloads.v1.AssuredWorkloadsService.ListViolationsCallback

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

Returns:
Type Description
undefined

listViolations(request) → {Promise.<google.cloud.assuredworkloads.v1.ListViolationsResponse>}

Calls ListViolations.

Parameters:
Name Type Description
request google.cloud.assuredworkloads.v1.IListViolationsRequest

ListViolationsRequest message or plain object

Returns:
Type Description
Promise.<google.cloud.assuredworkloads.v1.ListViolationsResponse>

Promise

listWorkloads(request, callback) → {undefined}

Calls ListWorkloads.

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

ListWorkloadsRequest message or plain object

callback google.cloud.assuredworkloads.v1.AssuredWorkloadsService.ListWorkloadsCallback

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

Returns:
Type Description
undefined

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

Calls ListWorkloads.

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

ListWorkloadsRequest message or plain object

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

Promise

restrictAllowedResources(request, callback) → {undefined}

Calls RestrictAllowedResources.

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

RestrictAllowedResourcesRequest message or plain object

callback google.cloud.assuredworkloads.v1.AssuredWorkloadsService.RestrictAllowedResourcesCallback

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

Returns:
Type Description
undefined

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

Calls RestrictAllowedResources.

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

RestrictAllowedResourcesRequest message or plain object

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

Promise

updateWorkload(request, callback) → {undefined}

Calls UpdateWorkload.

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

UpdateWorkloadRequest message or plain object

callback google.cloud.assuredworkloads.v1.AssuredWorkloadsService.UpdateWorkloadCallback

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

Returns:
Type Description
undefined

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

Calls UpdateWorkload.

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

UpdateWorkloadRequest message or plain object

Returns:
Type Description
Promise.<google.cloud.assuredworkloads.v1.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

AcknowledgeViolationCallback(error, responseopt)

Callback as used by acknowledgeViolation.

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

response google.cloud.assuredworkloads.v1.AcknowledgeViolationResponse <optional>

AcknowledgeViolationResponse

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

GetViolationCallback(error, responseopt)

Callback as used by getViolation.

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

response google.cloud.assuredworkloads.v1.Violation <optional>

Violation

GetWorkloadCallback(error, responseopt)

Callback as used by getWorkload.

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

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

Workload

ListViolationsCallback(error, responseopt)

Callback as used by listViolations.

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

response google.cloud.assuredworkloads.v1.ListViolationsResponse <optional>

ListViolationsResponse

ListWorkloadsCallback(error, responseopt)

Callback as used by listWorkloads.

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

response google.cloud.assuredworkloads.v1.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.v1.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.v1.Workload <optional>

Workload