Class: Google::Apis::TestingV1::UniformSharding

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

Uniformly shards test cases given a total number of shards. For Instrumentation test, it will be translated to “-e numShard” “-e shardIndex” AndroidJUnitRunner arguments. With uniform sharding enabled, specifying these sharding arguments via environment_variables is invalid.

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) ⇒ UniformSharding

Returns a new instance of UniformSharding.



2495
2496
2497
# File 'generated/google/apis/testing_v1/classes.rb', line 2495

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

Instance Attribute Details

#num_shardsFixnum

Required. Total number of shards. The number must be >= 1 and <= 50. Corresponds to the JSON property numShards

Returns:

  • (Fixnum)


2493
2494
2495
# File 'generated/google/apis/testing_v1/classes.rb', line 2493

def num_shards
  @num_shards
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2500
2501
2502
# File 'generated/google/apis/testing_v1/classes.rb', line 2500

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