Class: Google::Apis::DataformV1::FileOperation
- Inherits:
-
Object
- Object
- Google::Apis::DataformV1::FileOperation
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/dataform_v1/classes.rb,
lib/google/apis/dataform_v1/representations.rb,
lib/google/apis/dataform_v1/representations.rb
Overview
Represents a single file operation to the repository.
Instance Attribute Summary collapse
-
#delete_file ⇒ Google::Apis::DataformV1::DeleteFile
Represents the delete file operation.
-
#write_file ⇒ Google::Apis::DataformV1::WriteFile
Represents the write file operation (for files added or modified).
Instance Method Summary collapse
-
#initialize(**args) ⇒ FileOperation
constructor
A new instance of FileOperation.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ FileOperation
Returns a new instance of FileOperation.
1381 1382 1383 |
# File 'lib/google/apis/dataform_v1/classes.rb', line 1381 def initialize(**args) update!(**args) end |
Instance Attribute Details
#delete_file ⇒ Google::Apis::DataformV1::DeleteFile
Represents the delete file operation.
Corresponds to the JSON property deleteFile
1374 1375 1376 |
# File 'lib/google/apis/dataform_v1/classes.rb', line 1374 def delete_file @delete_file end |
#write_file ⇒ Google::Apis::DataformV1::WriteFile
Represents the write file operation (for files added or modified).
Corresponds to the JSON property writeFile
1379 1380 1381 |
# File 'lib/google/apis/dataform_v1/classes.rb', line 1379 def write_file @write_file end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1386 1387 1388 1389 |
# File 'lib/google/apis/dataform_v1/classes.rb', line 1386 def update!(**args) @delete_file = args[:delete_file] if args.key?(:delete_file) @write_file = args[:write_file] if args.key?(:write_file) end |