Class: Google::Apis::TestingV1::LabInfo

Inherits:
Object
  • Object
show all
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

Lab specific information for a device.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ LabInfo

Returns a new instance of LabInfo.



1826
1827
1828
# File 'lib/google/apis/testing_v1/classes.rb', line 1826

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

Instance Attribute Details

#nameString

Lab name where the device is hosted. If empty, the device is hosted in a Google owned lab. Corresponds to the JSON property name

Returns:

  • (String)


1818
1819
1820
# File 'lib/google/apis/testing_v1/classes.rb', line 1818

def name
  @name
end

#region_codeString

The Unicode country/region code (CLDR) of the lab where the device is hosted. E.g. "US" for United States, "CH" for Switzerland. Corresponds to the JSON property regionCode

Returns:

  • (String)


1824
1825
1826
# File 'lib/google/apis/testing_v1/classes.rb', line 1824

def region_code
  @region_code
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1831
1832
1833
1834
# File 'lib/google/apis/testing_v1/classes.rb', line 1831

def update!(**args)
  @name = args[:name] if args.key?(:name)
  @region_code = args[:region_code] if args.key?(:region_code)
end