# 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.DisplayVideo.V3.Model.FloodlightActivity do
  @moduledoc """
  A single Floodlight activity.

  ## Attributes

  *   `advertiserIds` (*type:* `list(String.t)`, *default:* `nil`) - Output only. IDs of the advertisers that have access to the parent Floodlight group. Only advertisers under the provided partner ID will be listed in this field.
  *   `displayName` (*type:* `String.t`, *default:* `nil`) - Required. The display name of the Floodlight activity.
  *   `floodlightActivityId` (*type:* `String.t`, *default:* `nil`) - Output only. The unique ID of the Floodlight activity. Assigned by the system.
  *   `floodlightGroupId` (*type:* `String.t`, *default:* `nil`) - Required. Immutable. The ID of the parent Floodlight group.
  *   `name` (*type:* `String.t`, *default:* `nil`) - Output only. The resource name of the Floodlight activity.
  *   `remarketingConfigs` (*type:* `list(GoogleApi.DisplayVideo.V3.Model.RemarketingConfig.t)`, *default:* `nil`) - Output only. A list of configuration objects designating whether remarketing for this Floodlight Activity is enabled and available for a specifc advertiser. If enabled, this Floodlight Activity generates a remarketing user list that is able to be used in targeting under the advertiser.
  *   `servingStatus` (*type:* `String.t`, *default:* `nil`) - Optional. Whether the Floodlight activity is served.
  *   `sslRequired` (*type:* `boolean()`, *default:* `nil`) - Output only. Whether tags are required to be compliant.
  """

  use GoogleApi.Gax.ModelBase

  @type t :: %__MODULE__{
          :advertiserIds => list(String.t()) | nil,
          :displayName => String.t() | nil,
          :floodlightActivityId => String.t() | nil,
          :floodlightGroupId => String.t() | nil,
          :name => String.t() | nil,
          :remarketingConfigs =>
            list(GoogleApi.DisplayVideo.V3.Model.RemarketingConfig.t()) | nil,
          :servingStatus => String.t() | nil,
          :sslRequired => boolean() | nil
        }

  field(:advertiserIds, type: :list)
  field(:displayName)
  field(:floodlightActivityId)
  field(:floodlightGroupId)
  field(:name)
  field(:remarketingConfigs, as: GoogleApi.DisplayVideo.V3.Model.RemarketingConfig, type: :list)
  field(:servingStatus)
  field(:sslRequired)
end

defimpl Poison.Decoder, for: GoogleApi.DisplayVideo.V3.Model.FloodlightActivity do
  def decode(value, options) do
    GoogleApi.DisplayVideo.V3.Model.FloodlightActivity.decode(value, options)
  end
end

defimpl Poison.Encoder, for: GoogleApi.DisplayVideo.V3.Model.FloodlightActivity do
  def encode(value, options) do
    GoogleApi.Gax.ModelBase.encode(value, options)
  end
end
