Class protos.google.cloud.binaryauthorization.v1beta1.SystemPolicyV1Beta1 (2.5.0)

Represents a SystemPolicyV1Beta1

Inheritance

$protobuf.rpc.Service > protos.google.cloud.binaryauthorization.v1beta1.SystemPolicyV1Beta1

Package

@google-cloud/binary-authorization

Constructors

(constructor)(rpcImpl, requestDelimited, responseDelimited)

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

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

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

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

getSystemPolicy(request, callback)

public getSystemPolicy(request: google.cloud.binaryauthorization.v1beta1.IGetSystemPolicyRequest, callback: google.cloud.binaryauthorization.v1beta1.SystemPolicyV1Beta1.GetSystemPolicyCallback): void;

Calls GetSystemPolicy.

Parameters
NameDescription
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
TypeDescription
void

getSystemPolicy(request)

public getSystemPolicy(request: google.cloud.binaryauthorization.v1beta1.IGetSystemPolicyRequest): Promise<google.cloud.binaryauthorization.v1beta1.Policy>;

Calls GetSystemPolicy.

Parameter
NameDescription
request google.cloud.binaryauthorization.v1beta1.IGetSystemPolicyRequest

GetSystemPolicyRequest message or plain object

Returns
TypeDescription
Promise<google.cloud.binaryauthorization.v1beta1.Policy>

Promise