Class: Google::Apis::DatamigrationV1::RulesFile

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

Details of a single rules file

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ RulesFile

Returns a new instance of RulesFile.



2770
2771
2772
# File 'lib/google/apis/datamigration_v1/classes.rb', line 2770

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

Instance Attribute Details

#rules_contentString

The text content of the rules that needs to be converted Corresponds to the JSON property rulesContent

Returns:

  • (String)


2761
2762
2763
# File 'lib/google/apis/datamigration_v1/classes.rb', line 2761

def rules_content
  @rules_content
end

#rules_source_filenameString

The filename of the rules that needs to be converted. This is used mainly so future logs of the import rules job will contain this detail and can therefore be searched by it later Corresponds to the JSON property rulesSourceFilename

Returns:

  • (String)


2768
2769
2770
# File 'lib/google/apis/datamigration_v1/classes.rb', line 2768

def rules_source_filename
  @rules_source_filename
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2775
2776
2777
2778
# File 'lib/google/apis/datamigration_v1/classes.rb', line 2775

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