Class: Google::Apis::AdminReportsV1::NestedParameter

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

Overview

JSON template for a parameter used in various reports.

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

Returns a new instance of NestedParameter.


470
471
472
# File 'generated/google/apis/admin_reports_v1/classes.rb', line 470

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

Instance Attribute Details

#bool_valueBoolean Also known as: bool_value?

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

Returns:

  • (Boolean)

437
438
439
# File 'generated/google/apis/admin_reports_v1/classes.rb', line 437

def bool_value
  @bool_value
end

#int_valueFixnum

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

Returns:

  • (Fixnum)

443
444
445
# File 'generated/google/apis/admin_reports_v1/classes.rb', line 443

def int_value
  @int_value
end

#multi_bool_valueArray<Boolean>

Multiple boolean values of the parameter. Corresponds to the JSON property multiBoolValue

Returns:

  • (Array<Boolean>)

448
449
450
# File 'generated/google/apis/admin_reports_v1/classes.rb', line 448

def multi_bool_value
  @multi_bool_value
end

#multi_int_valueArray<Fixnum>

Multiple integer values of the parameter. Corresponds to the JSON property multiIntValue

Returns:

  • (Array<Fixnum>)

453
454
455
# File 'generated/google/apis/admin_reports_v1/classes.rb', line 453

def multi_int_value
  @multi_int_value
end

#multi_valueArray<String>

Multiple string values of the parameter. Corresponds to the JSON property multiValue

Returns:

  • (Array<String>)

458
459
460
# File 'generated/google/apis/admin_reports_v1/classes.rb', line 458

def multi_value
  @multi_value
end

#nameString

The name of the parameter. Corresponds to the JSON property name

Returns:

  • (String)

463
464
465
# File 'generated/google/apis/admin_reports_v1/classes.rb', line 463

def name
  @name
end

#valueString

String value of the parameter. Corresponds to the JSON property value

Returns:

  • (String)

468
469
470
# File 'generated/google/apis/admin_reports_v1/classes.rb', line 468

def value
  @value
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object


475
476
477
478
479
480
481
482
483
# File 'generated/google/apis/admin_reports_v1/classes.rb', line 475

def update!(**args)
  @bool_value = args[:bool_value] if args.key?(:bool_value)
  @int_value = args[:int_value] if args.key?(:int_value)
  @multi_bool_value = args[:multi_bool_value] if args.key?(:multi_bool_value)
  @multi_int_value = args[:multi_int_value] if args.key?(:multi_int_value)
  @multi_value = args[:multi_value] if args.key?(:multi_value)
  @name = args[:name] if args.key?(:name)
  @value = args[:value] if args.key?(:value)
end