View Source GoogleApi.ContentWarehouse.V1.Model.YoutubeCommentsApiCommentModeratedRestriction (google_api_content_warehouse v0.3.0)
Data representing a comment moderated restriction. A moderated comment is hidden from all viewers except for comment author. A comment can be moderated due to multiple moderated restrictions from multiple issuers. Each is represented by a CommentModeratedRestriction entry which is uniquely identified by the external comment id and the create time in the storage. Conceptually, there should be exactly one moderated restriction for a specific reason per issuer per reviewable value and this constraint will be enforced in the Comment API endpoints. For more context see go/yt-comment-restriction-data-model ## Next id: 11. ## Spanner primary key attributes
Attributes
-
autoModEnforcements
(type:list(GoogleApi.ContentWarehouse.V1.Model.YoutubeCommentsApiCommentModeratedRestrictionAutoModDecisionEnforcement.t)
, default:nil
) - Live chat auto moderation only. The HOLD decisions and whether they are enforced correspondingly. -
createTime
(type:DateTime.t
, default:nil
) - Required. The creation time of this restriction. -
externalCommentId
(type:String.t
, default:nil
) - Required. The external ID of the comment that this restriction described. -
issuer
(type:GoogleApi.ContentWarehouse.V1.Model.YoutubeCommentsApiCommentRestrictionIssuer.t
, default:nil
) - Required. The system who moderated the comment. For CommentModeratedRestriction all issuer enums apply."Issuer" is different from the grouping for permission check, which will be enforced via Boq Scaffolding RpcSecurityPolicy. -
reason
(type:GoogleApi.ContentWarehouse.V1.Model.YoutubeCommentsApiCommentRestrictionReason.t
, default:nil
) - Required. The specific restriction reason why the comment is moderated. When Automod issues multiple HOLD decisions for a chat message, they always share the same reason. -
reviewable
(type:boolean()
, default:nil
) - True if moderation comes from T&S, Automod, and some of channel owner settings and comments will be put into "Held For Review" queue for channel owner review. After any creator review, this restriction will remain in this status to capture the original restriction. True maps to ModerationState=HOLD in Stanza. False if moderation results from channel owner manual opertation or author in hidden user list, and maps to ModerationState=REJECTED in Stanza. -
status
(type:String.t
, default:nil
) - Required. For moderated restriction on comment and live chat but not issued by Automod, the field should be always set to ACTIVE. For Automod moderation on live chat, the restriction is active as long as one of the HOLD decisions is enforced. Can only be changed by upcoming QPS threshold configuration changes and backfills. -
updateTime
(type:DateTime.t
, default:nil
) - The timestamp when this restriction is updated.
Summary
Functions
Unwrap a decoded JSON object into its complex fields.
Types
@type t() :: %GoogleApi.ContentWarehouse.V1.Model.YoutubeCommentsApiCommentModeratedRestriction{ autoModEnforcements: [ GoogleApi.ContentWarehouse.V1.Model.YoutubeCommentsApiCommentModeratedRestrictionAutoModDecisionEnforcement.t() ] | nil, createTime: DateTime.t() | nil, externalCommentId: String.t() | nil, issuer: GoogleApi.ContentWarehouse.V1.Model.YoutubeCommentsApiCommentRestrictionIssuer.t() | nil, reason: GoogleApi.ContentWarehouse.V1.Model.YoutubeCommentsApiCommentRestrictionReason.t() | nil, reviewable: boolean() | nil, status: String.t() | nil, updateTime: DateTime.t() | nil }
Functions
Unwrap a decoded JSON object into its complex fields.