Class: Google::Apis::DataformV1::FileOperation

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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ FileOperation

Returns a new instance of FileOperation.



1383
1384
1385
# File 'lib/google/apis/dataform_v1/classes.rb', line 1383

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

Instance Attribute Details

#delete_fileGoogle::Apis::DataformV1::DeleteFile

Represents the delete file operation. Corresponds to the JSON property deleteFile



1376
1377
1378
# File 'lib/google/apis/dataform_v1/classes.rb', line 1376

def delete_file
  @delete_file
end

#write_fileGoogle::Apis::DataformV1::WriteFile

Represents the write file operation (for files added or modified). Corresponds to the JSON property writeFile



1381
1382
1383
# File 'lib/google/apis/dataform_v1/classes.rb', line 1381

def write_file
  @write_file
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1388
1389
1390
1391
# File 'lib/google/apis/dataform_v1/classes.rb', line 1388

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