# 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.Uploads do @moduledoc """ Upload collection lists Analytics uploads to which the user has access. Each custom data source can have a set of uploads. Each resource in the upload collection corresponds to a single Analytics data upload. ## Attributes * `items` (*type:* `list(GoogleApi.Analytics.V3.Model.Upload.t)`, *default:* `nil`) - A list of uploads. * `itemsPerPage` (*type:* `integer()`, *default:* `nil`) - The maximum number of resources the response can contain, regardless of the actual number of resources returned. Its value ranges from 1 to 1000 with a value of 1000 by default, or otherwise specified by the max-results query parameter. * `kind` (*type:* `String.t`, *default:* `analytics#uploads`) - Collection type. * `nextLink` (*type:* `String.t`, *default:* `nil`) - Link to next page for this upload collection. * `previousLink` (*type:* `String.t`, *default:* `nil`) - Link to previous page for this upload collection. * `startIndex` (*type:* `integer()`, *default:* `nil`) - The starting index of the resources, which is 1 by default or otherwise specified by the start-index query parameter. * `totalResults` (*type:* `integer()`, *default:* `nil`) - The total number of results for the query, regardless of the number of resources in the result. """ use GoogleApi.Gax.ModelBase @type t :: %__MODULE__{ :items => list(GoogleApi.Analytics.V3.Model.Upload.t()), :itemsPerPage => integer(), :kind => String.t(), :nextLink => String.t(), :previousLink => String.t(), :startIndex => integer(), :totalResults => integer() } field(:items, as: GoogleApi.Analytics.V3.Model.Upload, type: :list) field(:itemsPerPage) field(:kind) field(:nextLink) field(:previousLink) field(:startIndex) field(:totalResults) end defimpl Poison.Decoder, for: GoogleApi.Analytics.V3.Model.Uploads do def decode(value, options) do GoogleApi.Analytics.V3.Model.Uploads.decode(value, options) end end defimpl Poison.Encoder, for: GoogleApi.Analytics.V3.Model.Uploads do def encode(value, options) do GoogleApi.Gax.ModelBase.encode(value, options) end end