Class: Google::Apis::TestingV1::AndroidVersion

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

A version of the Android OS.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ AndroidVersion

Returns a new instance of AndroidVersion.



605
606
607
# File 'lib/google/apis/testing_v1/classes.rb', line 605

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

Instance Attribute Details

#api_levelFixnum

The API level for this Android version. Examples: 18, 19. Corresponds to the JSON property apiLevel

Returns:

  • (Fixnum)


564
565
566
# File 'lib/google/apis/testing_v1/classes.rb', line 564

def api_level
  @api_level
end

#code_nameString

The code name for this Android version. Examples: "JellyBean", "KitKat". Corresponds to the JSON property codeName

Returns:

  • (String)


569
570
571
# File 'lib/google/apis/testing_v1/classes.rb', line 569

def code_name
  @code_name
end

#distributionGoogle::Apis::TestingV1::Distribution

Data about the relative number of devices running a given configuration of the Android platform. Corresponds to the JSON property distribution



575
576
577
# File 'lib/google/apis/testing_v1/classes.rb', line 575

def distribution
  @distribution
end

#idString

An opaque id for this Android version. Use this id to invoke the TestExecutionService. Corresponds to the JSON property id

Returns:

  • (String)


581
582
583
# File 'lib/google/apis/testing_v1/classes.rb', line 581

def id
  @id
end

#release_dateGoogle::Apis::TestingV1::Date

Represents a whole or partial calendar date, such as a birthday. The time of day and time zone are either specified elsewhere or are insignificant. The date is relative to the Gregorian Calendar. This can represent one of the following: * A full date, with non-zero year, month, and day values. * A month and day, with a zero year (for example, an anniversary). * A year on its own, with a zero month and a zero day. * A year and month, with a zero day (for example, a credit card expiration date). Related types: * google.type. TimeOfDay * google.type.DateTime * google.protobuf.Timestamp Corresponds to the JSON property releaseDate



593
594
595
# File 'lib/google/apis/testing_v1/classes.rb', line 593

def release_date
  @release_date
end

#tagsArray<String>

Tags for this dimension. Examples: "default", "preview", "deprecated". Corresponds to the JSON property tags

Returns:

  • (Array<String>)


598
599
600
# File 'lib/google/apis/testing_v1/classes.rb', line 598

def tags
  @tags
end

#version_stringString

A string representing this version of the Android OS. Examples: "4.3", "4.4". Corresponds to the JSON property versionString

Returns:

  • (String)


603
604
605
# File 'lib/google/apis/testing_v1/classes.rb', line 603

def version_string
  @version_string
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



610
611
612
613
614
615
616
617
618
# File 'lib/google/apis/testing_v1/classes.rb', line 610

def update!(**args)
  @api_level = args[:api_level] if args.key?(:api_level)
  @code_name = args[:code_name] if args.key?(:code_name)
  @distribution = args[:distribution] if args.key?(:distribution)
  @id = args[:id] if args.key?(:id)
  @release_date = args[:release_date] if args.key?(:release_date)
  @tags = args[:tags] if args.key?(:tags)
  @version_string = args[:version_string] if args.key?(:version_string)
end