Current section
Files
Jump to
Current section
Files
lib/google_api/analytics/v3/model/experiment_variations.ex
# 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 file is auto generated by the elixir code generator program.
# Do not edit this file manually.
defmodule GoogleApi.Analytics.V3.Model.ExperimentVariations do
@moduledoc """
## Attributes
* `name` (*type:* `String.t`, *default:* `nil`) - The name of the variation. This field is required when creating an experiment. This field may not be changed for an experiment whose status is ENDED.
* `status` (*type:* `String.t`, *default:* `nil`) - Status of the variation. Possible values: "ACTIVE", "INACTIVE". INACTIVE variations are not served. This field may not be changed for an experiment whose status is ENDED.
* `url` (*type:* `String.t`, *default:* `nil`) - The URL of the variation. This field may not be changed for an experiment whose status is RUNNING or ENDED.
* `weight` (*type:* `float()`, *default:* `nil`) - Weight that this variation should receive. Only present if the experiment is running. This field is read-only.
* `won` (*type:* `boolean()`, *default:* `nil`) - True if the experiment has ended and this variation performed (statistically) significantly better than the original. This field is read-only.
"""
use GoogleApi.Gax.ModelBase
@type t :: %__MODULE__{
:name => String.t() | nil,
:status => String.t() | nil,
:url => String.t() | nil,
:weight => float() | nil,
:won => boolean() | nil
}
field(:name)
field(:status)
field(:url)
field(:weight)
field(:won)
end
defimpl Poison.Decoder, for: GoogleApi.Analytics.V3.Model.ExperimentVariations do
def decode(value, options) do
GoogleApi.Analytics.V3.Model.ExperimentVariations.decode(value, options)
end
end
defimpl Poison.Encoder, for: GoogleApi.Analytics.V3.Model.ExperimentVariations do
def encode(value, options) do
GoogleApi.Gax.ModelBase.encode(value, options)
end
end