Class: Google::Apis::TestingV1::IosModel

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

Overview

A description of an iOS device tests may be run on.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ IosModel

Returns a new instance of IosModel.



1322
1323
1324
# File 'generated/google/apis/testing_v1/classes.rb', line 1322

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

Instance Attribute Details

#device_capabilitiesArray<String>

Device capabilities. Copied from https://developer.apple.com/library/archive/ documentation/DeviceInformation/Reference/iOSDeviceCompatibility/ DeviceCompatibilityMatrix/DeviceCompatibilityMatrix.html Corresponds to the JSON property deviceCapabilities

Returns:

  • (Array<String>)


1278
1279
1280
# File 'generated/google/apis/testing_v1/classes.rb', line 1278

def device_capabilities
  @device_capabilities
end

#form_factorString

Whether this device is a phone, tablet, wearable, etc. Corresponds to the JSON property formFactor

Returns:

  • (String)


1283
1284
1285
# File 'generated/google/apis/testing_v1/classes.rb', line 1283

def form_factor
  @form_factor
end

#idString

The unique opaque id for this model. Use this for invoking the TestExecutionService. Corresponds to the JSON property id

Returns:

  • (String)


1289
1290
1291
# File 'generated/google/apis/testing_v1/classes.rb', line 1289

def id
  @id
end

#nameString

The human-readable name for this device model. Examples: "iPhone 4s", "iPad Mini 2". Corresponds to the JSON property name

Returns:

  • (String)


1295
1296
1297
# File 'generated/google/apis/testing_v1/classes.rb', line 1295

def name
  @name
end

#screen_densityFixnum

Screen density in DPI. Corresponds to the JSON property screenDensity

Returns:

  • (Fixnum)


1300
1301
1302
# File 'generated/google/apis/testing_v1/classes.rb', line 1300

def screen_density
  @screen_density
end

#screen_xFixnum

Screen size in the horizontal (X) dimension measured in pixels. Corresponds to the JSON property screenX

Returns:

  • (Fixnum)


1305
1306
1307
# File 'generated/google/apis/testing_v1/classes.rb', line 1305

def screen_x
  @screen_x
end

#screen_yFixnum

Screen size in the vertical (Y) dimension measured in pixels. Corresponds to the JSON property screenY

Returns:

  • (Fixnum)


1310
1311
1312
# File 'generated/google/apis/testing_v1/classes.rb', line 1310

def screen_y
  @screen_y
end

#supported_version_idsArray<String>

The set of iOS major software versions this device supports. Corresponds to the JSON property supportedVersionIds

Returns:

  • (Array<String>)


1315
1316
1317
# File 'generated/google/apis/testing_v1/classes.rb', line 1315

def supported_version_ids
  @supported_version_ids
end

#tagsArray<String>

Tags for this dimension. Examples: "default", "preview", "deprecated". Corresponds to the JSON property tags

Returns:

  • (Array<String>)


1320
1321
1322
# File 'generated/google/apis/testing_v1/classes.rb', line 1320

def tags
  @tags
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
# File 'generated/google/apis/testing_v1/classes.rb', line 1327

def update!(**args)
  @device_capabilities = args[:device_capabilities] if args.key?(:device_capabilities)
  @form_factor = args[:form_factor] if args.key?(:form_factor)
  @id = args[:id] if args.key?(:id)
  @name = args[:name] if args.key?(:name)
  @screen_density = args[:screen_density] if args.key?(:screen_density)
  @screen_x = args[:screen_x] if args.key?(:screen_x)
  @screen_y = args[:screen_y] if args.key?(:screen_y)
  @supported_version_ids = args[:supported_version_ids] if args.key?(:supported_version_ids)
  @tags = args[:tags] if args.key?(:tags)
end