Class: Google::Apis::TestingV1::Shard

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

Output only. Details about the shard.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Shard

Returns a new instance of Shard.



2333
2334
2335
# File 'lib/google/apis/testing_v1/classes.rb', line 2333

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

Instance Attribute Details

#estimated_shard_durationString

Output only. The estimated shard duration based on previous test case timing records, if available. Corresponds to the JSON property estimatedShardDuration

Returns:

  • (String)


2316
2317
2318
# File 'lib/google/apis/testing_v1/classes.rb', line 2316

def estimated_shard_duration
  @estimated_shard_duration
end

#num_shardsFixnum

Output only. The total number of shards. Corresponds to the JSON property numShards

Returns:

  • (Fixnum)


2321
2322
2323
# File 'lib/google/apis/testing_v1/classes.rb', line 2321

def num_shards
  @num_shards
end

#shard_indexFixnum

Output only. The index of the shard among all the shards. Corresponds to the JSON property shardIndex

Returns:

  • (Fixnum)


2326
2327
2328
# File 'lib/google/apis/testing_v1/classes.rb', line 2326

def shard_index
  @shard_index
end

#test_targets_for_shardGoogle::Apis::TestingV1::TestTargetsForShard

Test targets for a shard. Corresponds to the JSON property testTargetsForShard



2331
2332
2333
# File 'lib/google/apis/testing_v1/classes.rb', line 2331

def test_targets_for_shard
  @test_targets_for_shard
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2338
2339
2340
2341
2342
2343
# File 'lib/google/apis/testing_v1/classes.rb', line 2338

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