WpxComment Class
Create a new model by parsing and validating input data from keyword arguments.
Raises [ValidationError][pydantic_core.ValidationError] if the input data cannot be validated to form a valid model.
self is explicitly positional-only to allow self as a field name.
Constructor
WpxComment(*, type: Literal['wpxComment'] = NotificationTypes.WPX_COMMENT, odataId: str | None = None, documentId: str | None = None, parentCommentId: str | None = None, commentId: str | None = None, **extra_data: Any)
Keyword-Only Parameters
| Name | Description |
|---|---|
|
type
|
Default value: NotificationTypes.WPX_COMMENT
|
|
odataId
|
Default value: None
|
|
documentId
|
Default value: None
|
|
parentCommentId
|
Default value: None
|
|
commentId
|
Default value: None
|
Attributes
model_config
@model_serializer def _serialize(self):
omit_if_empty = { k for k, v in self if isinstance(v, list) and not v
}
return {k: v for k, v in self if k not in omit_if_empty and v is not None}
model_config: ClassVar[ConfigDict] = {'alias_generator': <function to_camel>, 'extra': 'allow', 'populate_by_name': True, 'validate_by_alias': True, 'validate_by_name': True}
comment_id
comment_id: str | None
document_id
document_id: str | None
odata_id
odata_id: str | None
parent_comment_id
parent_comment_id: str | None
type
type: Literal['wpxComment']