Class: Google::Apis::AdminReportsV1::UsageReports::Warning

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/admin_reports_v1/classes.rb,
generated/google/apis/admin_reports_v1/representations.rb,
generated/google/apis/admin_reports_v1/representations.rb

Defined Under Namespace

Classes: Datum

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Warning

Returns a new instance of Warning.



700
701
702
# File 'generated/google/apis/admin_reports_v1/classes.rb', line 700

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

Instance Attribute Details

#codeString

Machine readable code or warning type. The warning code value is 200. Corresponds to the JSON property code

Returns:

  • (String)


684
685
686
# File 'generated/google/apis/admin_reports_v1/classes.rb', line 684

def code
  @code
end

#dataArray<Google::Apis::AdminReportsV1::UsageReports::Warning::Datum>

Key-value pairs to give detailed information on the warning. Corresponds to the JSON property data



689
690
691
# File 'generated/google/apis/admin_reports_v1/classes.rb', line 689

def data
  @data
end

#messageString

The human readable messages for a warning are: - Data is not available warning

  • Sorry, data for date yyyy-mm-dd for application "application name" is not available. - Partial data is available warning - Data for date yyyy-mm-dd for application "application name" is not available right now, please try again after a few hours. Corresponds to the JSON property message

Returns:

  • (String)


698
699
700
# File 'generated/google/apis/admin_reports_v1/classes.rb', line 698

def message
  @message
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



705
706
707
708
709
# File 'generated/google/apis/admin_reports_v1/classes.rb', line 705

def update!(**args)
  @code = args[:code] if args.key?(:code)
  @data = args[:data] if args.key?(:data)
  @message = args[:message] if args.key?(:message)
end