Class PolicyUpdatesRequest
java.lang.Object
org.apache.gravitino.dto.requests.PolicyUpdatesRequest
- All Implemented Interfaces:
RESTMessage
,RESTRequest
Represents a request to update a policy.
-
Constructor Summary
ConstructorsConstructorDescriptionThis is the constructor that is used by Jackson deserializerPolicyUpdatesRequest
(List<PolicyUpdateRequest> updates) Creates a new PolicyUpdatesRequest. -
Method Summary
Modifier and TypeMethodDescriptionvoid
validate()
Ensures that a constructed instance of a REST message is valid according to the REST spec.
-
Constructor Details
-
PolicyUpdatesRequest
Creates a new PolicyUpdatesRequest.- Parameters:
updates
- The updates to apply to the policy.
-
PolicyUpdatesRequest
public PolicyUpdatesRequest()This is the constructor that is used by Jackson deserializer
-
-
Method Details
-
validate
Description copied from interface:RESTMessage
Ensures that a constructed instance of a REST message is valid according to the REST spec.This is needed when parsing data that comes from external sources and the object might have been constructed without all the required fields present.
- Specified by:
validate
in interfaceRESTMessage
- Throws:
IllegalArgumentException
-