# 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.IdFilter do
@moduledoc """
A filtering option that filters entities by their entity IDs.
## Attributes
* `adGroupAdIds` (*type:* `list(String.t)`, *default:* `nil`) - YouTube Ads to download by ID. All IDs must belong to the same Advertiser or Partner specified in CreateSdfDownloadTaskRequest.
* `adGroupIds` (*type:* `list(String.t)`, *default:* `nil`) - YouTube Ad Groups to download by ID. All IDs must belong to the same Advertiser or Partner specified in CreateSdfDownloadTaskRequest.
* `campaignIds` (*type:* `list(String.t)`, *default:* `nil`) - Campaigns to download by ID. All IDs must belong to the same Advertiser or Partner specified in CreateSdfDownloadTaskRequest.
* `insertionOrderIds` (*type:* `list(String.t)`, *default:* `nil`) - Insertion Orders to download by ID. All IDs must belong to the same Advertiser or Partner specified in CreateSdfDownloadTaskRequest.
* `lineItemIds` (*type:* `list(String.t)`, *default:* `nil`) - Line Items to download by ID. All IDs must belong to the same Advertiser or Partner specified in CreateSdfDownloadTaskRequest.
* `mediaProductIds` (*type:* `list(String.t)`, *default:* `nil`) - Media Products to download by ID. All IDs must belong to the same Advertiser or Partner specified in CreateSdfDownloadTaskRequest.
"""
use GoogleApi.Gax.ModelBase
@type t :: %__MODULE__{
:adGroupAdIds => list(String.t()) | nil,
:adGroupIds => list(String.t()) | nil,
:campaignIds => list(String.t()) | nil,
:insertionOrderIds => list(String.t()) | nil,
:lineItemIds => list(String.t()) | nil,
:mediaProductIds => list(String.t()) | nil
}
field(:adGroupAdIds, type: :list)
field(:adGroupIds, type: :list)
field(:campaignIds, type: :list)
field(:insertionOrderIds, type: :list)
field(:lineItemIds, type: :list)
field(:mediaProductIds, type: :list)
end
defimpl Poison.Decoder, for: GoogleApi.DisplayVideo.V1.Model.IdFilter do
def decode(value, options) do
GoogleApi.DisplayVideo.V1.Model.IdFilter.decode(value, options)
end
end
defimpl Poison.Encoder, for: GoogleApi.DisplayVideo.V1.Model.IdFilter do
def encode(value, options) do
GoogleApi.Gax.ModelBase.encode(value, options)
end
end