Current section
Files
Jump to
Current section
Files
lib/google_api/analytics/v3/model/profile.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.Profile do
@moduledoc """
JSON template for an Analytics view (profile).
## Attributes
* `accountId` (*type:* `String.t`, *default:* `nil`) - Account ID to which this view (profile) belongs.
* `botFilteringEnabled` (*type:* `boolean()`, *default:* `nil`) - Indicates whether bot filtering is enabled for this view (profile).
* `childLink` (*type:* `GoogleApi.Analytics.V3.Model.ProfileChildLink.t`, *default:* `nil`) - Child link for this view (profile). Points to the list of goals for this view (profile).
* `created` (*type:* `DateTime.t`, *default:* `nil`) - Time this view (profile) was created.
* `currency` (*type:* `String.t`, *default:* `nil`) - The currency type associated with this view (profile), defaults to USD. The supported values are:
USD, JPY, EUR, GBP, AUD, KRW, BRL, CNY, DKK, RUB, SEK, NOK, PLN, TRY, TWD, HKD, THB, IDR, ARS, MXN, VND, PHP, INR, CHF, CAD, CZK, NZD, HUF, BGN, LTL, ZAR, UAH, AED, BOB, CLP, COP, EGP, HRK, ILS, MAD, MYR, PEN, PKR, RON, RSD, SAR, SGD, VEF, LVL
* `defaultPage` (*type:* `String.t`, *default:* `nil`) - Default page for this view (profile).
* `eCommerceTracking` (*type:* `boolean()`, *default:* `nil`) - Indicates whether ecommerce tracking is enabled for this view (profile).
* `enhancedECommerceTracking` (*type:* `boolean()`, *default:* `nil`) - Indicates whether enhanced ecommerce tracking is enabled for this view (profile). This property can only be enabled if ecommerce tracking is enabled.
* `excludeQueryParameters` (*type:* `String.t`, *default:* `nil`) - The query parameters that are excluded from this view (profile).
* `id` (*type:* `String.t`, *default:* `nil`) - View (Profile) ID.
* `internalWebPropertyId` (*type:* `String.t`, *default:* `nil`) - Internal ID for the web property to which this view (profile) belongs.
* `kind` (*type:* `String.t`, *default:* `analytics#profile`) - Resource type for Analytics view (profile).
* `name` (*type:* `String.t`, *default:* `nil`) - Name of this view (profile).
* `parentLink` (*type:* `GoogleApi.Analytics.V3.Model.ProfileParentLink.t`, *default:* `nil`) - Parent link for this view (profile). Points to the web property to which this view (profile) belongs.
* `permissions` (*type:* `GoogleApi.Analytics.V3.Model.ProfilePermissions.t`, *default:* `nil`) - Permissions the user has for this view (profile).
* `selfLink` (*type:* `String.t`, *default:* `nil`) - Link for this view (profile).
* `siteSearchCategoryParameters` (*type:* `String.t`, *default:* `nil`) - Site search category parameters for this view (profile).
* `siteSearchQueryParameters` (*type:* `String.t`, *default:* `nil`) - The site search query parameters for this view (profile).
* `starred` (*type:* `boolean()`, *default:* `nil`) - Indicates whether this view (profile) is starred or not.
* `stripSiteSearchCategoryParameters` (*type:* `boolean()`, *default:* `nil`) - Whether or not Analytics will strip search category parameters from the URLs in your reports.
* `stripSiteSearchQueryParameters` (*type:* `boolean()`, *default:* `nil`) - Whether or not Analytics will strip search query parameters from the URLs in your reports.
* `timezone` (*type:* `String.t`, *default:* `nil`) - Time zone for which this view (profile) has been configured. Time zones are identified by strings from the TZ database.
* `type` (*type:* `String.t`, *default:* `nil`) - View (Profile) type. Supported types: WEB or APP.
* `updated` (*type:* `DateTime.t`, *default:* `nil`) - Time this view (profile) was last modified.
* `webPropertyId` (*type:* `String.t`, *default:* `nil`) - Web property ID of the form UA-XXXXX-YY to which this view (profile) belongs.
* `websiteUrl` (*type:* `String.t`, *default:* `nil`) - Website URL for this view (profile).
"""
use GoogleApi.Gax.ModelBase
@type t :: %__MODULE__{
:accountId => String.t() | nil,
:botFilteringEnabled => boolean() | nil,
:childLink => GoogleApi.Analytics.V3.Model.ProfileChildLink.t() | nil,
:created => DateTime.t() | nil,
:currency => String.t() | nil,
:defaultPage => String.t() | nil,
:eCommerceTracking => boolean() | nil,
:enhancedECommerceTracking => boolean() | nil,
:excludeQueryParameters => String.t() | nil,
:id => String.t() | nil,
:internalWebPropertyId => String.t() | nil,
:kind => String.t() | nil,
:name => String.t() | nil,
:parentLink => GoogleApi.Analytics.V3.Model.ProfileParentLink.t() | nil,
:permissions => GoogleApi.Analytics.V3.Model.ProfilePermissions.t() | nil,
:selfLink => String.t() | nil,
:siteSearchCategoryParameters => String.t() | nil,
:siteSearchQueryParameters => String.t() | nil,
:starred => boolean() | nil,
:stripSiteSearchCategoryParameters => boolean() | nil,
:stripSiteSearchQueryParameters => boolean() | nil,
:timezone => String.t() | nil,
:type => String.t() | nil,
:updated => DateTime.t() | nil,
:webPropertyId => String.t() | nil,
:websiteUrl => String.t() | nil
}
field(:accountId)
field(:botFilteringEnabled)
field(:childLink, as: GoogleApi.Analytics.V3.Model.ProfileChildLink)
field(:created, as: DateTime)
field(:currency)
field(:defaultPage)
field(:eCommerceTracking)
field(:enhancedECommerceTracking)
field(:excludeQueryParameters)
field(:id)
field(:internalWebPropertyId)
field(:kind)
field(:name)
field(:parentLink, as: GoogleApi.Analytics.V3.Model.ProfileParentLink)
field(:permissions, as: GoogleApi.Analytics.V3.Model.ProfilePermissions)
field(:selfLink)
field(:siteSearchCategoryParameters)
field(:siteSearchQueryParameters)
field(:starred)
field(:stripSiteSearchCategoryParameters)
field(:stripSiteSearchQueryParameters)
field(:timezone)
field(:type)
field(:updated, as: DateTime)
field(:webPropertyId)
field(:websiteUrl)
end
defimpl Poison.Decoder, for: GoogleApi.Analytics.V3.Model.Profile do
def decode(value, options) do
GoogleApi.Analytics.V3.Model.Profile.decode(value, options)
end
end
defimpl Poison.Encoder, for: GoogleApi.Analytics.V3.Model.Profile do
def encode(value, options) do
GoogleApi.Gax.ModelBase.encode(value, options)
end
end