# 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.V1.Model.Partner do
@moduledoc """
A single partner in Display & Video 360 (DV360).
## Attributes
* `adServerConfig` (*type:* `GoogleApi.DisplayVideo.V1.Model.PartnerAdServerConfig.t`, *default:* `nil`) - Ad server related settings of the partner.
* `dataAccessConfig` (*type:* `GoogleApi.DisplayVideo.V1.Model.PartnerDataAccessConfig.t`, *default:* `nil`) - Settings that control how partner data may be accessed.
* `displayName` (*type:* `String.t`, *default:* `nil`) - The display name of the partner. Must be UTF-8 encoded with a maximum size of 240 bytes.
* `entityStatus` (*type:* `String.t`, *default:* `nil`) - Output only. The status of the partner.
* `exchangeConfig` (*type:* `GoogleApi.DisplayVideo.V1.Model.ExchangeConfig.t`, *default:* `nil`) - Settings that control which exchanges are enabled for the partner.
* `generalConfig` (*type:* `GoogleApi.DisplayVideo.V1.Model.PartnerGeneralConfig.t`, *default:* `nil`) - General settings of the partner.
* `name` (*type:* `String.t`, *default:* `nil`) - Output only. The resource name of the partner.
* `partnerId` (*type:* `String.t`, *default:* `nil`) - Output only. The unique ID of the partner. Assigned by the system.
* `updateTime` (*type:* `DateTime.t`, *default:* `nil`) - Output only. The timestamp when the partner was last updated. Assigned by the system.
"""
use GoogleApi.Gax.ModelBase
@type t :: %__MODULE__{
:adServerConfig => GoogleApi.DisplayVideo.V1.Model.PartnerAdServerConfig.t() | nil,
:dataAccessConfig => GoogleApi.DisplayVideo.V1.Model.PartnerDataAccessConfig.t() | nil,
:displayName => String.t() | nil,
:entityStatus => String.t() | nil,
:exchangeConfig => GoogleApi.DisplayVideo.V1.Model.ExchangeConfig.t() | nil,
:generalConfig => GoogleApi.DisplayVideo.V1.Model.PartnerGeneralConfig.t() | nil,
:name => String.t() | nil,
:partnerId => String.t() | nil,
:updateTime => DateTime.t() | nil
}
field(:adServerConfig, as: GoogleApi.DisplayVideo.V1.Model.PartnerAdServerConfig)
field(:dataAccessConfig, as: GoogleApi.DisplayVideo.V1.Model.PartnerDataAccessConfig)
field(:displayName)
field(:entityStatus)
field(:exchangeConfig, as: GoogleApi.DisplayVideo.V1.Model.ExchangeConfig)
field(:generalConfig, as: GoogleApi.DisplayVideo.V1.Model.PartnerGeneralConfig)
field(:name)
field(:partnerId)
field(:updateTime, as: DateTime)
end
defimpl Poison.Decoder, for: GoogleApi.DisplayVideo.V1.Model.Partner do
def decode(value, options) do
GoogleApi.DisplayVideo.V1.Model.Partner.decode(value, options)
end
end
defimpl Poison.Encoder, for: GoogleApi.DisplayVideo.V1.Model.Partner do
def encode(value, options) do
GoogleApi.Gax.ModelBase.encode(value, options)
end
end