Class: Google::Apis::DisplayvideoV2::ParentEntityFilter

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

Overview

A filtering option that filters on selected file types belonging to a chosen set of filter entities.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ParentEntityFilter

Returns a new instance of ParentEntityFilter.



9611
9612
9613
# File 'lib/google/apis/displayvideo_v2/classes.rb', line 9611

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

Instance Attribute Details

#file_typeArray<String>

Required. File types that will be returned. Corresponds to the JSON property fileType

Returns:

  • (Array<String>)


9598
9599
9600
# File 'lib/google/apis/displayvideo_v2/classes.rb', line 9598

def file_type
  @file_type
end

#filter_idsArray<Fixnum>

The IDs of the specified filter type. This is used to filter entities to fetch. If filter type is not FILTER_TYPE_NONE, at least one ID must be specified. Corresponds to the JSON property filterIds

Returns:

  • (Array<Fixnum>)


9604
9605
9606
# File 'lib/google/apis/displayvideo_v2/classes.rb', line 9604

def filter_ids
  @filter_ids
end

#filter_typeString

Required. Filter type used to filter fetched entities. Corresponds to the JSON property filterType

Returns:

  • (String)


9609
9610
9611
# File 'lib/google/apis/displayvideo_v2/classes.rb', line 9609

def filter_type
  @filter_type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



9616
9617
9618
9619
9620
# File 'lib/google/apis/displayvideo_v2/classes.rb', line 9616

def update!(**args)
  @file_type = args[:file_type] if args.key?(:file_type)
  @filter_ids = args[:filter_ids] if args.key?(:filter_ids)
  @filter_type = args[:filter_type] if args.key?(:filter_type)
end