Class: Google::Apis::DataformV1beta1::FileOperation
- Inherits:
-
Object
- Object
- Google::Apis::DataformV1beta1::FileOperation
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/dataform_v1beta1/classes.rb,
lib/google/apis/dataform_v1beta1/representations.rb,
lib/google/apis/dataform_v1beta1/representations.rb
Overview
Represents a single file operation to the repository.
Instance Attribute Summary collapse
-
#delete_file ⇒ Google::Apis::DataformV1beta1::DeleteFile
Represents the delete file operation.
-
#write_file ⇒ Google::Apis::DataformV1beta1::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.
912 913 914 |
# File 'lib/google/apis/dataform_v1beta1/classes.rb', line 912 def initialize(**args) update!(**args) end |
Instance Attribute Details
#delete_file ⇒ Google::Apis::DataformV1beta1::DeleteFile
Represents the delete file operation.
Corresponds to the JSON property deleteFile
905 906 907 |
# File 'lib/google/apis/dataform_v1beta1/classes.rb', line 905 def delete_file @delete_file end |
#write_file ⇒ Google::Apis::DataformV1beta1::WriteFile
Represents the write file operation (for files added or modified).
Corresponds to the JSON property writeFile
910 911 912 |
# File 'lib/google/apis/dataform_v1beta1/classes.rb', line 910 def write_file @write_file end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
917 918 919 920 |
# File 'lib/google/apis/dataform_v1beta1/classes.rb', line 917 def update!(**args) @delete_file = args[:delete_file] if args.key?(:delete_file) @write_file = args[:write_file] if args.key?(:write_file) end |