Class: Google::Apis::DriveV2::About::ImportFormat

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/drive_v2/classes.rb,
generated/google/apis/drive_v2/representations.rb,
generated/google/apis/drive_v2/representations.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ImportFormat

Returns a new instance of ImportFormat.



364
365
366
# File 'generated/google/apis/drive_v2/classes.rb', line 364

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

Instance Attribute Details

#sourceString

The imported file's content type to convert from. Corresponds to the JSON property source

Returns:

  • (String)


357
358
359
# File 'generated/google/apis/drive_v2/classes.rb', line 357

def source
  @source
end

#targetsArray<String>

The possible content types to convert to. Corresponds to the JSON property targets

Returns:

  • (Array<String>)


362
363
364
# File 'generated/google/apis/drive_v2/classes.rb', line 362

def targets
  @targets
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



369
370
371
372
# File 'generated/google/apis/drive_v2/classes.rb', line 369

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