Class: Google::Apis::DatamigrationV1::MultiEntityRename
- Inherits:
- 
      Object
      
        - Object
- Google::Apis::DatamigrationV1::MultiEntityRename
 
- 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
Options to configure rule type MultiEntityRename. The rule is used to rename multiple entities. The rule filter field can refer to one or more entities. The rule scope can be one of: Database, Schema, Table, Column, Constraint, Index, View, Function, Stored Procedure, Materialized View, Sequence, UDT
Instance Attribute Summary collapse
- 
  
    
      #new_name_pattern  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Optional. 
- 
  
    
      #source_name_transformation  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Optional. 
Instance Method Summary collapse
- 
  
    
      #initialize(**args)  ⇒ MultiEntityRename 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    A new instance of MultiEntityRename. 
- 
  
    
      #update!(**args)  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    Update properties of this object. 
Constructor Details
#initialize(**args) ⇒ MultiEntityRename
Returns a new instance of MultiEntityRename.
| 3081 3082 3083 | # File 'lib/google/apis/datamigration_v1/classes.rb', line 3081 def initialize(**args) update!(**args) end | 
Instance Attribute Details
#new_name_pattern ⇒ String
Optional. The pattern used to generate the new entity's name. This pattern
must include the characters 'name', which will be replaced with the name of
the original entity. For example, the pattern 't_name' for an entity name
jobs would be converted to 't_jobs'. If unspecified, the default value for
this field is 'name'
Corresponds to the JSON property newNamePattern
| 3072 3073 3074 | # File 'lib/google/apis/datamigration_v1/classes.rb', line 3072 def new_name_pattern @new_name_pattern end | 
#source_name_transformation ⇒ String
Optional. Additional transformation that can be done on the source entity name
before it is being used by the new_name_pattern, for example lower case. If no
transformation is desired, use NO_TRANSFORMATION
Corresponds to the JSON property sourceNameTransformation
| 3079 3080 3081 | # File 'lib/google/apis/datamigration_v1/classes.rb', line 3079 def source_name_transformation @source_name_transformation end | 
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
| 3086 3087 3088 3089 | # File 'lib/google/apis/datamigration_v1/classes.rb', line 3086 def update!(**args) @new_name_pattern = args[:new_name_pattern] if args.key?(:new_name_pattern) @source_name_transformation = args[:source_name_transformation] if args.key?(:source_name_transformation) end |