Class: Google::Apis::DatastreamV1::RuleSet

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

Overview

A set of rules to apply to a set of objects.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ RuleSet

Returns a new instance of RuleSet.



4005
4006
4007
# File 'lib/google/apis/datastream_v1/classes.rb', line 4005

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

Instance Attribute Details

#customization_rulesArray<Google::Apis::DatastreamV1::CustomizationRule>

Required. List of customization rules to apply. Corresponds to the JSON property customizationRules



3998
3999
4000
# File 'lib/google/apis/datastream_v1/classes.rb', line 3998

def customization_rules
  @customization_rules
end

#object_filterGoogle::Apis::DatastreamV1::ObjectFilter

Object filter to apply the rules to. Corresponds to the JSON property objectFilter



4003
4004
4005
# File 'lib/google/apis/datastream_v1/classes.rb', line 4003

def object_filter
  @object_filter
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4010
4011
4012
4013
# File 'lib/google/apis/datastream_v1/classes.rb', line 4010

def update!(**args)
  @customization_rules = args[:customization_rules] if args.key?(:customization_rules)
  @object_filter = args[:object_filter] if args.key?(:object_filter)
end