Get desktop application:
View/edit binary Protocol Buffers messages
CreatePolicy inserts a new policy module into the policy store. This is equivalent in functionality to OPA's [Policy REST API Create/Update method](https://www.openpolicyagent.org/docs/latest/rest-api/#create-or-update-a-policy). Warning: Inserting a new policy will trigger a full recompilation of *all* policies in the store, in order to ensure the new policy does not break existing policies. This is a known performance hazard for the OPA REST API, and remains a hazard for gRPC as well. Keeping the unique number of policies down, or using Bundles are the recommended workarounds for most OPA users.
DeletePolicy removes a policy module from the policy store. This is equivalent in functionality to OPA's [Policy REST API Delete method](https://www.openpolicyagent.org/docs/latest/rest-api/#delete-a-policy). Warning: Removing a policy will trigger a full recompilation of *all* policies in the store, in order to ensure that removing the policy module does not break existing policies. This is a known performance hazard for the OPA REST API, and remains a hazard for gRPC as well. Keeping the unique number of policies down, or using Bundles are the recommended workarounds for most OPA users.
GetPolicy fetches a policy module's code from the policy store. This is roughly equivalent in functionality to OPA's [Policy REST API Get method](https://www.openpolicyagent.org/docs/latest/rest-api/#get-a-policy). Note: Only the raw policy text is returned in this version of the API.
ListPolicies returns the set of stored policies in the policy store. This is equivalent in functionality to OPA's [Policy REST API List method](https://www.openpolicyagent.org/docs/latest/rest-api/#list-policies). Warning: This request will enumerate *all* policies stored by the Enterprise OPA instance. This can have substantial overheads if the policies are large in size.
ListPoliciesRequest is used to start a ListPolicy operation.
(message has no fields)
ListPoliciesResponse contains the list of all policies enumerated by a ListPolicy operation.
StreamingPolicyRW specifies a stream of fixed-structure, batched read/write operations. WritePolicy operations are executed sequentially, aborting the entire gRPC call if any operations fail. The ReadPolicy operations are then executed in parallel, but will report errors inline in their responses, instead of aborting the entire gRPC call.
StreamingPolicyRequest provides a way to send PolicyService requests over gRPC streams. Limited batching support is provided via the `writes`/`reads` fields. As in the BulkRW API, if a write operation fails, the entire request will be aborted. Writes are done as a single transaction, reads are done in parallel.
writes provides a sequence of WritePolicy requests.
reads provides a sequence of ReadPolicy requests.
StreamingPolicyRWResponse contains lists of the appropriate response types for each operation in the StreamingPolicyRWRequest.
writes provides a sequence of WritePolicy results.
reads provides a sequence of ReadPolicy results or errors.
UpdatePolicy updates a policy module in the policy store. This is equivalent in functionality to OPA's [Policy REST API Create/Update method](https://www.openpolicyagent.org/docs/latest/rest-api/#create-or-update-a-policy). Warning: Modifying an existing policy will trigger a full recompilation of *all* policies in the store, in order to ensure the updated policy does not break existing policies. This is a known performance hazard for the OPA REST API, and remains a hazard for gRPC as well. Keeping the unique number of policies down, or using Bundles are the recommended workarounds for most OPA users.
CreatePolicyRequest provides the policy and path to insert it at for a CreatePolicy operation.
Used as request type in: PolicyService.CreatePolicy
Used as field type in: ,
Rego module.
CreatePolicyResponse is an empty confirmation message type.
Used as response type in: PolicyService.CreatePolicy
Used as field type in: ,
(message has no fields)
DeletePolicyRequest specifies which path to delete a policy from.
Used as request type in: PolicyService.DeletePolicy
Used as field type in: ,
DeletePolicyResponse is an empty confirmation message type.
Used as response type in: PolicyService.DeletePolicy
Used as field type in: ,
(message has no fields)
Context-dependent error messages.
Used in:
The errors in the list.
GetPolicyRequest requires the path of the policy to fetch.
Used as request type in: PolicyService.GetPolicy
Used as field type in: ,
GetPolicyResponse contains the retrieved Rego module from a GetPolicy operation.
Used as response type in: PolicyService.GetPolicy
Used as field type in: ,
Rego module.
Policy is a thin wrapper type around a Rego policy.
Used in: , , ,
ReadRequest is currently a simple wrapper over the GetPolicy request type.
Used in:
WritePolicyRequest provides a union of possible Policy request types. This allows creating arbitrary sequences of Policy store operations.
Used in:
ReadResponse is currently a simple wrapper over the GetPolicy request type.
Used in:
WriteResponse provides a union of possible Policy request types. This allows creating arbitrary sequences of Policy store operations.
Used in:
UpdatePolicyRequest provides the policy and path to update for an UpdatePolicy operation.
Used as request type in: PolicyService.UpdatePolicy
Used as field type in: ,
Rego module.
UpdatePolicyResponse is an empty confirmation message type.
Used as response type in: PolicyService.UpdatePolicy
Used as field type in: ,
(message has no fields)