Class: Google::Apis::TestingV1::AndroidDevice
- Inherits:
-
Object
- Object
- Google::Apis::TestingV1::AndroidDevice
- 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 single Android device.
Instance Attribute Summary collapse
-
#android_model_id ⇒ String
The id of the Android device to be used.
-
#android_version_id ⇒ String
The id of the Android OS version to be used.
-
#locale ⇒ String
The locale the test device used for testing.
-
#orientation ⇒ String
How the device is oriented during the test.
Instance Method Summary collapse
-
#initialize(**args) ⇒ AndroidDevice
constructor
A new instance of AndroidDevice.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ AndroidDevice
Returns a new instance of AndroidDevice
82 83 84 |
# File 'generated/google/apis/testing_v1/classes.rb', line 82 def initialize(**args) update!(**args) end |
Instance Attribute Details
#android_model_id ⇒ String
The id of the Android device to be used.
Use the EnvironmentDiscoveryService to get supported options.
Required
Corresponds to the JSON property androidModelId
59 60 61 |
# File 'generated/google/apis/testing_v1/classes.rb', line 59 def android_model_id @android_model_id end |
#android_version_id ⇒ String
The id of the Android OS version to be used.
Use the EnvironmentDiscoveryService to get supported options.
Required
Corresponds to the JSON property androidVersionId
66 67 68 |
# File 'generated/google/apis/testing_v1/classes.rb', line 66 def android_version_id @android_version_id end |
#locale ⇒ String
The locale the test device used for testing.
Use the EnvironmentDiscoveryService to get supported options.
Required
Corresponds to the JSON property locale
73 74 75 |
# File 'generated/google/apis/testing_v1/classes.rb', line 73 def locale @locale end |
#orientation ⇒ String
How the device is oriented during the test.
Use the EnvironmentDiscoveryService to get supported options.
Required
Corresponds to the JSON property orientation
80 81 82 |
# File 'generated/google/apis/testing_v1/classes.rb', line 80 def orientation @orientation end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
87 88 89 90 91 92 |
# File 'generated/google/apis/testing_v1/classes.rb', line 87 def update!(**args) @android_model_id = args[:android_model_id] if args.key?(:android_model_id) @android_version_id = args[:android_version_id] if args.key?(:android_version_id) @locale = args[:locale] if args.key?(:locale) @orientation = args[:orientation] if args.key?(:orientation) end |