Class: Google::Apis::TestingV1::IosDevice
- Inherits:
-
Object
- Object
- Google::Apis::TestingV1::IosDevice
- 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 single iOS device.
Instance Attribute Summary collapse
-
#ios_model_id ⇒ String
Required.
-
#ios_version_id ⇒ String
Required.
-
#locale ⇒ String
Required.
-
#orientation ⇒ String
Required.
Instance Method Summary collapse
-
#initialize(**args) ⇒ IosDevice
constructor
A new instance of IosDevice.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ IosDevice
Returns a new instance of IosDevice.
1210 1211 1212 |
# File 'lib/google/apis/testing_v1/classes.rb', line 1210 def initialize(**args) update!(**args) end |
Instance Attribute Details
#ios_model_id ⇒ String
Required. The id of the iOS device to be used. Use the
TestEnvironmentDiscoveryService to get supported options.
Corresponds to the JSON property iosModelId
1190 1191 1192 |
# File 'lib/google/apis/testing_v1/classes.rb', line 1190 def ios_model_id @ios_model_id end |
#ios_version_id ⇒ String
Required. The id of the iOS major software version to be used. Use the
TestEnvironmentDiscoveryService to get supported options.
Corresponds to the JSON property iosVersionId
1196 1197 1198 |
# File 'lib/google/apis/testing_v1/classes.rb', line 1196 def ios_version_id @ios_version_id end |
#locale ⇒ String
Required. The locale the test device used for testing. Use the
TestEnvironmentDiscoveryService to get supported options.
Corresponds to the JSON property locale
1202 1203 1204 |
# File 'lib/google/apis/testing_v1/classes.rb', line 1202 def locale @locale end |
#orientation ⇒ String
Required. How the device is oriented during the test. Use the
TestEnvironmentDiscoveryService to get supported options.
Corresponds to the JSON property orientation
1208 1209 1210 |
# File 'lib/google/apis/testing_v1/classes.rb', line 1208 def orientation @orientation end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1215 1216 1217 1218 1219 1220 |
# File 'lib/google/apis/testing_v1/classes.rb', line 1215 def update!(**args) @ios_model_id = args[:ios_model_id] if args.key?(:ios_model_id) @ios_version_id = args[:ios_version_id] if args.key?(:ios_version_id) @locale = args[:locale] if args.key?(:locale) @orientation = args[:orientation] if args.key?(:orientation) end |