Class: Google::Apis::DatamigrationV1::MappingRuleFilter

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ MappingRuleFilter

Returns a new instance of MappingRuleFilter.



2906
2907
2908
# File 'lib/google/apis/datamigration_v1/classes.rb', line 2906

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

Instance Attribute Details

#entitiesArray<String>

Optional. The rule should be applied to specific entities defined by their fully qualified names. Corresponds to the JSON property entities

Returns:

  • (Array<String>)


2877
2878
2879
# File 'lib/google/apis/datamigration_v1/classes.rb', line 2877

def entities
  @entities
end

#entity_name_containsString

Optional. The rule should be applied to entities whose non-qualified name contains the given string. Corresponds to the JSON property entityNameContains

Returns:

  • (String)


2883
2884
2885
# File 'lib/google/apis/datamigration_v1/classes.rb', line 2883

def entity_name_contains
  @entity_name_contains
end

#entity_name_prefixString

Optional. The rule should be applied to entities whose non-qualified name starts with the given prefix. Corresponds to the JSON property entityNamePrefix

Returns:

  • (String)


2889
2890
2891
# File 'lib/google/apis/datamigration_v1/classes.rb', line 2889

def entity_name_prefix
  @entity_name_prefix
end

#entity_name_suffixString

Optional. The rule should be applied to entities whose non-qualified name ends with the given suffix. Corresponds to the JSON property entityNameSuffix

Returns:

  • (String)


2895
2896
2897
# File 'lib/google/apis/datamigration_v1/classes.rb', line 2895

def entity_name_suffix
  @entity_name_suffix
end

#parent_entityString

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

Returns:

  • (String)


2904
2905
2906
# File 'lib/google/apis/datamigration_v1/classes.rb', line 2904

def parent_entity
  @parent_entity
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2911
2912
2913
2914
2915
2916
2917
# File 'lib/google/apis/datamigration_v1/classes.rb', line 2911

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