SystemPolicyV1Beta1

google.cloud.binaryauthorization.v1beta1. SystemPolicyV1Beta1

Represents a SystemPolicyV1Beta1

Constructor

new SystemPolicyV1Beta1(rpcImpl, requestDelimitedopt, responseDelimitedopt)

Constructs a new SystemPolicyV1Beta1 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

getSystemPolicy(request, callback) → {undefined}

Calls GetSystemPolicy.

Parameters:
Name Type Description
request google.cloud.binaryauthorization.v1beta1.IGetSystemPolicyRequest

GetSystemPolicyRequest message or plain object

callback google.cloud.binaryauthorization.v1beta1.SystemPolicyV1Beta1.GetSystemPolicyCallback

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

Returns:
Type Description
undefined

getSystemPolicy(request) → {Promise.<google.cloud.binaryauthorization.v1beta1.Policy>}

Calls GetSystemPolicy.

Parameters:
Name Type Description
request google.cloud.binaryauthorization.v1beta1.IGetSystemPolicyRequest

GetSystemPolicyRequest message or plain object

Returns:
Type Description
Promise.<google.cloud.binaryauthorization.v1beta1.Policy>

Promise

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

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

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

Type Definitions

GetSystemPolicyCallback(error, responseopt)

Callback as used by getSystemPolicy.

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

response google.cloud.binaryauthorization.v1beta1.Policy <optional>

Policy