Class: Google::Apis::AdminReportsV1::UsageReport::Parameter

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

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) ⇒ Parameter

Returns a new instance of Parameter.


611
612
613
# File 'generated/google/apis/admin_reports_v1/classes.rb', line 611

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

Instance Attribute Details

#bool_valueBoolean Also known as: bool_value?

Output only. Boolean value of the parameter. Corresponds to the JSON property boolValue

Returns:

  • (Boolean)

582
583
584
# File 'generated/google/apis/admin_reports_v1/classes.rb', line 582

def bool_value
  @bool_value
end

#datetime_valueDateTime

The RFC 3339 formatted value of the parameter, for example 2010-10-28T10:26:35. 000Z. Corresponds to the JSON property datetimeValue

Returns:

  • (DateTime)

589
590
591
# File 'generated/google/apis/admin_reports_v1/classes.rb', line 589

def datetime_value
  @datetime_value
end

#int_valueFixnum

Output only. Integer value of the parameter. Corresponds to the JSON property intValue

Returns:

  • (Fixnum)

594
595
596
# File 'generated/google/apis/admin_reports_v1/classes.rb', line 594

def int_value
  @int_value
end

#msg_valueArray<Hash<String,Object>>

Output only. Nested message value of the parameter. Corresponds to the JSON property msgValue

Returns:

  • (Array<Hash<String,Object>>)

599
600
601
# File 'generated/google/apis/admin_reports_v1/classes.rb', line 599

def msg_value
  @msg_value
end

#nameString

Name of the parameter. Corresponds to the JSON property name

Returns:

  • (String)

604
605
606
# File 'generated/google/apis/admin_reports_v1/classes.rb', line 604

def name
  @name
end

#string_valueString

Output only. String value of the parameter. Corresponds to the JSON property stringValue

Returns:

  • (String)

609
610
611
# File 'generated/google/apis/admin_reports_v1/classes.rb', line 609

def string_value
  @string_value
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object


616
617
618
619
620
621
622
623
# File 'generated/google/apis/admin_reports_v1/classes.rb', line 616

def update!(**args)
  @bool_value = args[:bool_value] if args.key?(:bool_value)
  @datetime_value = args[:datetime_value] if args.key?(:datetime_value)
  @int_value = args[:int_value] if args.key?(:int_value)
  @msg_value = args[:msg_value] if args.key?(:msg_value)
  @name = args[:name] if args.key?(:name)
  @string_value = args[:string_value] if args.key?(:string_value)
end