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.



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

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



1374
1375
1376
# File 'lib/google/apis/dataform_v1/classes.rb', line 1374

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



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