Class: Google::Apis::DfareportingV2_1::ObjectFilter

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

Overview

Object Filter.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ ObjectFilter

Returns a new instance of ObjectFilter.



6524
6525
6526
# File 'generated/google/apis/dfareporting_v2_1/classes.rb', line 6524

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)


6509
6510
6511
# File 'generated/google/apis/dfareporting_v2_1/classes.rb', line 6509

def kind
  @kind
end

#object_idsArray<String>

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

Returns:

  • (Array<String>)


6515
6516
6517
# File 'generated/google/apis/dfareporting_v2_1/classes.rb', line 6515

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)


6522
6523
6524
# File 'generated/google/apis/dfareporting_v2_1/classes.rb', line 6522

def status
  @status
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



6529
6530
6531
6532
6533
# File 'generated/google/apis/dfareporting_v2_1/classes.rb', line 6529

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