Class: Google::Apis::CloudsearchV1::ContentReport

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ContentReport

Returns a new instance of ContentReport.



5692
5693
5694
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 5692

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#report_create_timestampString

The time at which the report is generated. Always populated when it is in a response. Corresponds to the JSON property reportCreateTimestamp

Returns:

  • (String)


5669
5670
5671
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 5669

def report_create_timestamp
  @report_create_timestamp
end

#report_justificationGoogle::Apis::CloudsearchV1::ContentReportJustification

Additional user-provided justification on the report. Optional. Corresponds to the JSON property reportJustification



5674
5675
5676
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 5674

def report_justification
  @report_justification
end

#report_typeGoogle::Apis::CloudsearchV1::AppsDynamiteSharedContentReportType

Denotes a type of content report a user can send. Corresponds to the JSON property reportType



5679
5680
5681
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 5679

def report_type
  @report_type
end

#reporter_user_idGoogle::Apis::CloudsearchV1::UserId

Primary key for User resource. Corresponds to the JSON property reporterUserId



5684
5685
5686
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 5684

def reporter_user_id
  @reporter_user_id
end

#revision_create_timestampString

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

Returns:

  • (String)


5690
5691
5692
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 5690

def revision_create_timestamp
  @revision_create_timestamp
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



5697
5698
5699
5700
5701
5702
5703
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 5697

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