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

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

Output only. Details about the shard.

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

Returns a new instance of Shard.



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

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

Instance Attribute Details

#num_shardsFixnum

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

Returns:

  • (Fixnum)


1819
1820
1821
# File 'generated/google/apis/testing_v1/classes.rb', line 1819

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)


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

def shard_index
  @shard_index
end

#test_targets_for_shardGoogle::Apis::TestingV1::TestTargetsForShard

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



1829
1830
1831
# File 'generated/google/apis/testing_v1/classes.rb', line 1829

def test_targets_for_shard
  @test_targets_for_shard
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1836
1837
1838
1839
1840
# File 'generated/google/apis/testing_v1/classes.rb', line 1836

def update!(**args)
  @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