Class: Google::Apis::TestingV1::Shard
- Inherits:
-
Object
- Object
- Google::Apis::TestingV1::Shard
- 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
-
#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.
1900 1901 1902 |
# File 'generated/google/apis/testing_v1/classes.rb', line 1900 def initialize(**args) update!(**args) end |
Instance Attribute Details
#num_shards ⇒ Fixnum
Output only. The total number of shards.
Corresponds to the JSON property numShards
1888 1889 1890 |
# File 'generated/google/apis/testing_v1/classes.rb', line 1888 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
1893 1894 1895 |
# File 'generated/google/apis/testing_v1/classes.rb', line 1893 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
1898 1899 1900 |
# File 'generated/google/apis/testing_v1/classes.rb', line 1898 def test_targets_for_shard @test_targets_for_shard end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1905 1906 1907 1908 1909 |
# File 'generated/google/apis/testing_v1/classes.rb', line 1905 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 |