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

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ Warning

Returns a new instance of Warning.



541
542
543
# File 'generated/google/apis/admin_reports_v1/classes.rb', line 541

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

Instance Attribute Details

#codeString

Machine readable code / warning type. Corresponds to the JSON property code

Returns:

  • (String)


529
530
531
# File 'generated/google/apis/admin_reports_v1/classes.rb', line 529

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



534
535
536
# File 'generated/google/apis/admin_reports_v1/classes.rb', line 534

def data
  @data
end

#messageString

Human readable message for the warning. Corresponds to the JSON property message

Returns:

  • (String)


539
540
541
# File 'generated/google/apis/admin_reports_v1/classes.rb', line 539

def message
  @message
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



546
547
548
549
550
# File 'generated/google/apis/admin_reports_v1/classes.rb', line 546

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