Class: Google::Apis::DfareportingV3_2::ObjectFilter

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

Overview

Object Filter.

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

Returns a new instance of ObjectFilter



7588
7589
7590
# File 'generated/google/apis/dfareporting_v3_2/classes.rb', line 7588

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

Instance Attribute Details

#kindString

Identifies what kind of resource this is. Value: the fixed string " dfareporting#objectFilter". Corresponds to the JSON property kind

Returns:

  • (String)


7573
7574
7575
# File 'generated/google/apis/dfareporting_v3_2/classes.rb', line 7573

def kind
  @kind
end

#object_idsArray<Fixnum>

Applicable when status is ASSIGNED. The user has access to objects with these object IDs. Corresponds to the JSON property objectIds

Returns:

  • (Array<Fixnum>)


7579
7580
7581
# File 'generated/google/apis/dfareporting_v3_2/classes.rb', line 7579

def object_ids
  @object_ids
end

#statusString

Status of the filter. NONE means the user has access to none of the objects. ALL means the user has access to all objects. ASSIGNED means the user has access to the objects with IDs in the objectIds list. Corresponds to the JSON property status

Returns:

  • (String)


7586
7587
7588
# File 'generated/google/apis/dfareporting_v3_2/classes.rb', line 7586

def status
  @status
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



7593
7594
7595
7596
7597
# File 'generated/google/apis/dfareporting_v3_2/classes.rb', line 7593

def update!(**args)
  @kind = args[:kind] if args.key?(:kind)
  @object_ids = args[:object_ids] if args.key?(:object_ids)
  @status = args[:status] if args.key?(:status)
end