Class: Google::Apis::CloudsearchV1::ContentReport
- Inherits:
-
Object
- Object
- Google::Apis::CloudsearchV1::ContentReport
- Includes:
- Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
- Defined in:
- lib/google/apis/cloudsearch_v1/classes.rb,
lib/google/apis/cloudsearch_v1/representations.rb,
lib/google/apis/cloudsearch_v1/representations.rb
Instance Attribute Summary collapse
-
#report_create_timestamp ⇒ String
The time at which the report is generated.
-
#report_justification ⇒ Google::Apis::CloudsearchV1::ContentReportJustification
Additional user-provided justification on the report.
-
#report_type ⇒ Google::Apis::CloudsearchV1::AppsDynamiteSharedContentReportType
Denotes a type of content report a user can send.
-
#reporter_user_id ⇒ Google::Apis::CloudsearchV1::UserId
Primary key for User resource.
-
#revision_create_timestamp ⇒ String
Create timestamp of the revisions of the message when it's reported.
Instance Method Summary collapse
-
#initialize(**args) ⇒ ContentReport
constructor
A new instance of ContentReport.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ ContentReport
Returns a new instance of ContentReport.
6686 6687 6688 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 6686 def initialize(**args) update!(**args) end |
Instance Attribute Details
#report_create_timestamp ⇒ String
The time at which the report is generated. Always populated when it is in a
response.
Corresponds to the JSON property reportCreateTimestamp
6663 6664 6665 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 6663 def @report_create_timestamp end |
#report_justification ⇒ Google::Apis::CloudsearchV1::ContentReportJustification
Additional user-provided justification on the report. Optional.
Corresponds to the JSON property reportJustification
6668 6669 6670 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 6668 def report_justification @report_justification end |
#report_type ⇒ Google::Apis::CloudsearchV1::AppsDynamiteSharedContentReportType
Denotes a type of content report a user can send.
Corresponds to the JSON property reportType
6673 6674 6675 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 6673 def report_type @report_type end |
#reporter_user_id ⇒ Google::Apis::CloudsearchV1::UserId
Primary key for User resource.
Corresponds to the JSON property reporterUserId
6678 6679 6680 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 6678 def reporter_user_id @reporter_user_id end |
#revision_create_timestamp ⇒ String
Create timestamp of the revisions of the message when it's reported. Always
populated when it is in a response.
Corresponds to the JSON property revisionCreateTimestamp
6684 6685 6686 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 6684 def @revision_create_timestamp end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
6691 6692 6693 6694 6695 6696 6697 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 6691 def update!(**args) @report_create_timestamp = args[:report_create_timestamp] if args.key?(:report_create_timestamp) @report_justification = args[:report_justification] if args.key?(:report_justification) @report_type = args[:report_type] if args.key?(:report_type) @reporter_user_id = args[:reporter_user_id] if args.key?(:reporter_user_id) @revision_create_timestamp = args[:revision_create_timestamp] if args.key?(:revision_create_timestamp) end |