UpdateNotificationsRequest

pydantic model openapi_client.models.update_notifications_request.UpdateNotificationsRequest

UpdateNotificationsRequest

Fields:
field resource_type: StrictStr [Required] (alias 'ResourceType')

Resource kind. custom-alert-emails is not valid here; use query custom_email_address=yes instead.

Constraints:
  • strict = True

field resources: List[UpdateNotificationsResourceItem] [Required] (alias 'Resources')

At least one item. Each item needs ResourceId and Email. Push is read for the update write. EmailAddress is used only when custom_email_address=yes. ResourceName and ResourceType on an item are ignored.

field user_id: Optional[StrictStr] = None (alias 'UserId')

Ignored. Overwritten from the caller token.

to_str()

Returns the string representation of the model using alias

Return type:

str

to_json()

Returns the JSON representation of the model using alias

Return type:

str

classmethod from_json(json_str)

Create an instance of UpdateNotificationsRequest from a JSON string

Return type:

Optional[Self]

to_dict()

Return the dictionary representation of the model using alias.

This has the following differences from calling pydantic’s self.model_dump(by_alias=True):

  • None is only added to the output dict for nullable fields that were set at model initialization. Other fields with value None are ignored.

Return type:

Dict[str, Any]

classmethod from_dict(obj)

Create an instance of UpdateNotificationsRequest from a dict

Return type:

Optional[Self]