Class: Google::Apis::DatamigrationV1::RulesFile
- Inherits:
-
Object
- Object
- Google::Apis::DatamigrationV1::RulesFile
- 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
-
#rules_content ⇒ String
The text content of the rules that needs to be converted.
-
#rules_source_filename ⇒ String
The filename of the rules that needs to be converted.
Instance Method Summary collapse
-
#initialize(**args) ⇒ RulesFile
constructor
A new instance of RulesFile.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ RulesFile
Returns a new instance of RulesFile.
2893 2894 2895 |
# File 'lib/google/apis/datamigration_v1/classes.rb', line 2893 def initialize(**args) update!(**args) end |
Instance Attribute Details
#rules_content ⇒ String
The text content of the rules that needs to be converted.
Corresponds to the JSON property rulesContent
2884 2885 2886 |
# File 'lib/google/apis/datamigration_v1/classes.rb', line 2884 def rules_content @rules_content end |
#rules_source_filename ⇒ String
The filename of the rules that needs to be converted. The filename is used
mainly so that future logs of the import rules job contain it, and can
therefore be searched by it.
Corresponds to the JSON property rulesSourceFilename
2891 2892 2893 |
# File 'lib/google/apis/datamigration_v1/classes.rb', line 2891 def rules_source_filename @rules_source_filename end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2898 2899 2900 2901 |
# File 'lib/google/apis/datamigration_v1/classes.rb', line 2898 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 |