Class: Google::Apis::TestingV1::Shard
- Inherits:
-
Object
- Object
- Google::Apis::TestingV1::Shard
- 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
Output only. Details about the shard.
Instance Attribute Summary collapse
-
#estimated_shard_duration ⇒ String
Output only.
-
#num_shards ⇒ Fixnum
Output only.
-
#shard_index ⇒ Fixnum
Output only.
-
#test_targets_for_shard ⇒ Google::Apis::TestingV1::TestTargetsForShard
Test targets for a shard.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Shard
constructor
A new instance of Shard.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ Shard
Returns a new instance of Shard.
2392 2393 2394 |
# File 'lib/google/apis/testing_v1/classes.rb', line 2392 def initialize(**args) update!(**args) end |
Instance Attribute Details
#estimated_shard_duration ⇒ String
Output only. The estimated shard duration based on previous test case timing
records, if available.
Corresponds to the JSON property estimatedShardDuration
2375 2376 2377 |
# File 'lib/google/apis/testing_v1/classes.rb', line 2375 def estimated_shard_duration @estimated_shard_duration end |
#num_shards ⇒ Fixnum
Output only. The total number of shards.
Corresponds to the JSON property numShards
2380 2381 2382 |
# File 'lib/google/apis/testing_v1/classes.rb', line 2380 def num_shards @num_shards end |
#shard_index ⇒ Fixnum
Output only. The index of the shard among all the shards.
Corresponds to the JSON property shardIndex
2385 2386 2387 |
# File 'lib/google/apis/testing_v1/classes.rb', line 2385 def shard_index @shard_index end |
#test_targets_for_shard ⇒ Google::Apis::TestingV1::TestTargetsForShard
Test targets for a shard.
Corresponds to the JSON property testTargetsForShard
2390 2391 2392 |
# File 'lib/google/apis/testing_v1/classes.rb', line 2390 def test_targets_for_shard @test_targets_for_shard end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2397 2398 2399 2400 2401 2402 |
# File 'lib/google/apis/testing_v1/classes.rb', line 2397 def update!(**args) @estimated_shard_duration = args[:estimated_shard_duration] if args.key?(:estimated_shard_duration) @num_shards = args[:num_shards] if args.key?(:num_shards) @shard_index = args[:shard_index] if args.key?(:shard_index) @test_targets_for_shard = args[:test_targets_for_shard] if args.key?(:test_targets_for_shard) end |