Class: Google::Apis::DatastreamV1::RuleSet
- Inherits:
-
Object
- Object
- Google::Apis::DatastreamV1::RuleSet
- 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
-
#customization_rules ⇒ Array<Google::Apis::DatastreamV1::CustomizationRule>
Required.
-
#object_filter ⇒ Google::Apis::DatastreamV1::ObjectFilter
Object filter to apply the rules to.
Instance Method Summary collapse
-
#initialize(**args) ⇒ RuleSet
constructor
A new instance of RuleSet.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ RuleSet
Returns a new instance of RuleSet.
3313 3314 3315 |
# File 'lib/google/apis/datastream_v1/classes.rb', line 3313 def initialize(**args) update!(**args) end |
Instance Attribute Details
#customization_rules ⇒ Array<Google::Apis::DatastreamV1::CustomizationRule>
Required. List of customization rules to apply.
Corresponds to the JSON property customizationRules
3306 3307 3308 |
# File 'lib/google/apis/datastream_v1/classes.rb', line 3306 def customization_rules @customization_rules end |
#object_filter ⇒ Google::Apis::DatastreamV1::ObjectFilter
Object filter to apply the rules to.
Corresponds to the JSON property objectFilter
3311 3312 3313 |
# File 'lib/google/apis/datastream_v1/classes.rb', line 3311 def object_filter @object_filter end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
3318 3319 3320 3321 |
# File 'lib/google/apis/datastream_v1/classes.rb', line 3318 def update!(**args) @customization_rules = args[:customization_rules] if args.key?(:customization_rules) @object_filter = args[:object_filter] if args.key?(:object_filter) end |