Class: Google::Apis::CloudsearchV1::ContentReportSummary

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

Overview

Summarized info of content reports. Usually less expensive to fetch than to fetch all detailed reports. Set only when the request asks for it.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ContentReportSummary

Returns a new instance of ContentReportSummary.



5804
5805
5806
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 5804

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

Instance Attribute Details

#number_reportsFixnum

Total number of reports attached to this (revision of) message. Corresponds to the JSON property numberReports

Returns:

  • (Fixnum)


5796
5797
5798
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 5796

def number_reports
  @number_reports
end

#number_reports_all_revisionsFixnum

Totoal number of reports attached to all revisions of this message (i.e. since creation). Set only when the request asks for it. Corresponds to the JSON property numberReportsAllRevisions

Returns:

  • (Fixnum)


5802
5803
5804
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 5802

def number_reports_all_revisions
  @number_reports_all_revisions
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



5809
5810
5811
5812
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 5809

def update!(**args)
  @number_reports = args[:number_reports] if args.key?(:number_reports)
  @number_reports_all_revisions = args[:number_reports_all_revisions] if args.key?(:number_reports_all_revisions)
end