Class: Google::Apis::DatamigrationV1::MappingRuleFilter
- Inherits:
-
Object
- Object
- Google::Apis::DatamigrationV1::MappingRuleFilter
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/datamigration_v1/classes.rb,
lib/google/apis/datamigration_v1/representations.rb,
lib/google/apis/datamigration_v1/representations.rb
Overview
A filter defining the entities that a mapping rule should be applied to. When more than one field is specified, the rule is applied only to entities which match all the fields.
Instance Attribute Summary collapse
-
#entities ⇒ Array<String>
Optional.
-
#entity_name_contains ⇒ String
Optional.
-
#entity_name_prefix ⇒ String
Optional.
-
#entity_name_suffix ⇒ String
Optional.
-
#parent_entity ⇒ String
Optional.
Instance Method Summary collapse
-
#initialize(**args) ⇒ MappingRuleFilter
constructor
A new instance of MappingRuleFilter.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ MappingRuleFilter
Returns a new instance of MappingRuleFilter.
2837 2838 2839 |
# File 'lib/google/apis/datamigration_v1/classes.rb', line 2837 def initialize(**args) update!(**args) end |
Instance Attribute Details
#entities ⇒ Array<String>
Optional. The rule should be applied to specific entities defined by their
fully qualified names.
Corresponds to the JSON property entities
2808 2809 2810 |
# File 'lib/google/apis/datamigration_v1/classes.rb', line 2808 def entities @entities end |
#entity_name_contains ⇒ String
Optional. The rule should be applied to entities whose non-qualified name
contains the given string.
Corresponds to the JSON property entityNameContains
2814 2815 2816 |
# File 'lib/google/apis/datamigration_v1/classes.rb', line 2814 def entity_name_contains @entity_name_contains end |
#entity_name_prefix ⇒ String
Optional. The rule should be applied to entities whose non-qualified name
starts with the given prefix.
Corresponds to the JSON property entityNamePrefix
2820 2821 2822 |
# File 'lib/google/apis/datamigration_v1/classes.rb', line 2820 def entity_name_prefix @entity_name_prefix end |
#entity_name_suffix ⇒ String
Optional. The rule should be applied to entities whose non-qualified name ends
with the given suffix.
Corresponds to the JSON property entityNameSuffix
2826 2827 2828 |
# File 'lib/google/apis/datamigration_v1/classes.rb', line 2826 def entity_name_suffix @entity_name_suffix end |
#parent_entity ⇒ String
Optional. The rule should be applied to entities whose parent entity (fully
qualified name) matches the given value. For example, if the rule applies to a
table entity, the expected value should be a schema (schema). If the rule
applies to a column or index entity, the expected value can be either a schema
(schema) or a table (schema.table)
Corresponds to the JSON property parentEntity
2835 2836 2837 |
# File 'lib/google/apis/datamigration_v1/classes.rb', line 2835 def parent_entity @parent_entity end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2842 2843 2844 2845 2846 2847 2848 |
# File 'lib/google/apis/datamigration_v1/classes.rb', line 2842 def update!(**args) @entities = args[:entities] if args.key?(:entities) @entity_name_contains = args[:entity_name_contains] if args.key?(:entity_name_contains) @entity_name_prefix = args[:entity_name_prefix] if args.key?(:entity_name_prefix) @entity_name_suffix = args[:entity_name_suffix] if args.key?(:entity_name_suffix) @parent_entity = args[:parent_entity] if args.key?(:parent_entity) end |