gravitino.dto.requests.model_update_request.ModelUpdateRequestBase

class gravitino.dto.requests.model_update_request.ModelUpdateRequestBase(action_type: str)

Bases: RESTRequest

Base class for all model update requests.

__init__(action_type: str)

Methods

__init__(action_type)

from_dict(kvs, *[, infer_missing])

from_json(s, *[, parse_float, parse_int, ...])

model_change()

Convert to model change operation

schema(*[, infer_missing, only, exclude, ...])

to_dict([encode_json])

to_json(*[, skipkeys, ensure_ascii, ...])

validate()

Ensures that a constructed instance of a REST message is valid according to the REST spec.

Attributes

dataclass_json_config

abstract model_change() ModelChange

Convert to model change operation

abstract validate()

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.

Raises:

IllegalArgumentException: If the message is not valid.