Class: Google::Apis::TestingV1::IosDevice

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 iOS 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) ⇒ IosDevice

Returns a new instance of IosDevice



1114
1115
1116
# File 'generated/google/apis/testing_v1/classes.rb', line 1114

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

Instance Attribute Details

#ios_model_idString

Required. The id of the iOS device to be used. Use the EnvironmentDiscoveryService to get supported options. Corresponds to the JSON property iosModelId

Returns:

  • (String)


1094
1095
1096
# File 'generated/google/apis/testing_v1/classes.rb', line 1094

def ios_model_id
  @ios_model_id
end

#ios_version_idString

Required. The id of the iOS major software version to be used. Use the EnvironmentDiscoveryService to get supported options. Corresponds to the JSON property iosVersionId

Returns:

  • (String)


1100
1101
1102
# File 'generated/google/apis/testing_v1/classes.rb', line 1100

def ios_version_id
  @ios_version_id
end

#localeString

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

Returns:

  • (String)


1106
1107
1108
# File 'generated/google/apis/testing_v1/classes.rb', line 1106

def locale
  @locale
end

#orientationString

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

Returns:

  • (String)


1112
1113
1114
# File 'generated/google/apis/testing_v1/classes.rb', line 1112

def orientation
  @orientation
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1119
1120
1121
1122
1123
1124
# File 'generated/google/apis/testing_v1/classes.rb', line 1119

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