# Copyright 2019 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. # NOTE: This class is auto generated by the elixir code generator program. # Do not edit the class manually. defmodule GoogleApi.Testing.V1.Model.TestMatrix do @moduledoc """ TestMatrix captures all details about a test. It contains the environment configuration, test specification, test executions and overall state and outcome. ## Attributes * `clientInfo` (*type:* `GoogleApi.Testing.V1.Model.ClientInfo.t`, *default:* `nil`) - Information about the client which invoked the test. * `environmentMatrix` (*type:* `GoogleApi.Testing.V1.Model.EnvironmentMatrix.t`, *default:* `nil`) - Required. The devices the tests are being executed on. * `flakyTestAttempts` (*type:* `integer()`, *default:* `nil`) - The number of times a TestExecution should be re-attempted if one or more of its test cases fail for any reason. The maximum number of reruns allowed is 10. Default is 0, which implies no reruns. * `invalidMatrixDetails` (*type:* `String.t`, *default:* `nil`) - Output only. Describes why the matrix is considered invalid. Only useful for matrices in the INVALID state. * `outcomeSummary` (*type:* `String.t`, *default:* `nil`) - Output Only. The overall outcome of the test. Only set when the test matrix state is FINISHED. * `projectId` (*type:* `String.t`, *default:* `nil`) - The cloud project that owns the test matrix. * `resultStorage` (*type:* `GoogleApi.Testing.V1.Model.ResultStorage.t`, *default:* `nil`) - Required. Where the results for the matrix are written. * `state` (*type:* `String.t`, *default:* `nil`) - Output only. Indicates the current progress of the test matrix. * `testExecutions` (*type:* `list(GoogleApi.Testing.V1.Model.TestExecution.t)`, *default:* `nil`) - Output only. The list of test executions that the service creates for this matrix. * `testMatrixId` (*type:* `String.t`, *default:* `nil`) - Output only. Unique id set by the service. * `testSpecification` (*type:* `GoogleApi.Testing.V1.Model.TestSpecification.t`, *default:* `nil`) - Required. How to run the test. * `timestamp` (*type:* `DateTime.t`, *default:* `nil`) - Output only. The time this test matrix was initially created. """ use GoogleApi.Gax.ModelBase @type t :: %__MODULE__{ :clientInfo => GoogleApi.Testing.V1.Model.ClientInfo.t(), :environmentMatrix => GoogleApi.Testing.V1.Model.EnvironmentMatrix.t(), :flakyTestAttempts => integer(), :invalidMatrixDetails => String.t(), :outcomeSummary => String.t(), :projectId => String.t(), :resultStorage => GoogleApi.Testing.V1.Model.ResultStorage.t(), :state => String.t(), :testExecutions => list(GoogleApi.Testing.V1.Model.TestExecution.t()), :testMatrixId => String.t(), :testSpecification => GoogleApi.Testing.V1.Model.TestSpecification.t(), :timestamp => DateTime.t() } field(:clientInfo, as: GoogleApi.Testing.V1.Model.ClientInfo) field(:environmentMatrix, as: GoogleApi.Testing.V1.Model.EnvironmentMatrix) field(:flakyTestAttempts) field(:invalidMatrixDetails) field(:outcomeSummary) field(:projectId) field(:resultStorage, as: GoogleApi.Testing.V1.Model.ResultStorage) field(:state) field(:testExecutions, as: GoogleApi.Testing.V1.Model.TestExecution, type: :list) field(:testMatrixId) field(:testSpecification, as: GoogleApi.Testing.V1.Model.TestSpecification) field(:timestamp, as: DateTime) end defimpl Poison.Decoder, for: GoogleApi.Testing.V1.Model.TestMatrix do def decode(value, options) do GoogleApi.Testing.V1.Model.TestMatrix.decode(value, options) end end defimpl Poison.Encoder, for: GoogleApi.Testing.V1.Model.TestMatrix do def encode(value, options) do GoogleApi.Gax.ModelBase.encode(value, options) end end