Class: Google::Apis::TestingV1::AndroidDevice

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 single Android device.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ AndroidDevice

Returns a new instance of AndroidDevice.



78
79
80
# File 'generated/google/apis/testing_v1/classes.rb', line 78

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

Instance Attribute Details

#android_model_idString

Required. The id of the Android device to be used. Use the TestEnvironmentDiscoveryService to get supported options. Corresponds to the JSON property androidModelId

Returns:

  • (String)


58
59
60
# File 'generated/google/apis/testing_v1/classes.rb', line 58

def android_model_id
  @android_model_id
end

#android_version_idString

Required. The id of the Android OS version to be used. Use the TestEnvironmentDiscoveryService to get supported options. Corresponds to the JSON property androidVersionId

Returns:

  • (String)


64
65
66
# File 'generated/google/apis/testing_v1/classes.rb', line 64

def android_version_id
  @android_version_id
end

#localeString

Required. The locale the test device used for testing. Use the TestEnvironmentDiscoveryService to get supported options. Corresponds to the JSON property locale

Returns:

  • (String)


70
71
72
# File 'generated/google/apis/testing_v1/classes.rb', line 70

def locale
  @locale
end

#orientationString

Required. How the device is oriented during the test. Use the TestEnvironmentDiscoveryService to get supported options. Corresponds to the JSON property orientation

Returns:

  • (String)


76
77
78
# File 'generated/google/apis/testing_v1/classes.rb', line 76

def orientation
  @orientation
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



83
84
85
86
87
88
# File 'generated/google/apis/testing_v1/classes.rb', line 83

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