Class: Google::Apis::TestingV1::IosDeviceFile

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

Overview

A file or directory to install on the device before the test starts.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ IosDeviceFile

Returns a new instance of IosDeviceFile.



1433
1434
1435
# File 'lib/google/apis/testing_v1/classes.rb', line 1433

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

Instance Attribute Details

#bundle_idString

The bundle id of the app where this file lives. iOS apps sandbox their own filesystem, so app files must specify which app installed on the device. Corresponds to the JSON property bundleId

Returns:

  • (String)


1421
1422
1423
# File 'lib/google/apis/testing_v1/classes.rb', line 1421

def bundle_id
  @bundle_id
end

#contentGoogle::Apis::TestingV1::FileReference

A reference to a file, used for user inputs. Corresponds to the JSON property content



1426
1427
1428
# File 'lib/google/apis/testing_v1/classes.rb', line 1426

def content
  @content
end

#device_pathString

Location of the file on the device, inside the app's sandboxed filesystem Corresponds to the JSON property devicePath

Returns:

  • (String)


1431
1432
1433
# File 'lib/google/apis/testing_v1/classes.rb', line 1431

def device_path
  @device_path
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1438
1439
1440
1441
1442
# File 'lib/google/apis/testing_v1/classes.rb', line 1438

def update!(**args)
  @bundle_id = args[:bundle_id] if args.key?(:bundle_id)
  @content = args[:content] if args.key?(:content)
  @device_path = args[:device_path] if args.key?(:device_path)
end