Class: Google::Apis::DataformV1beta1::FileOperation

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

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_fileGoogle::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_fileGoogle::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