# 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 class is auto generated by the elixir code generator program. # Do not edit the class manually. defmodule GoogleApi.Analytics.V3.Model.CustomDimension do @moduledoc """ JSON template for Analytics Custom Dimension. ## Attributes * `accountId` (*type:* `String.t`, *default:* `nil`) - Account ID. * `active` (*type:* `boolean()`, *default:* `nil`) - Boolean indicating whether the custom dimension is active. * `created` (*type:* `DateTime.t`, *default:* `nil`) - Time the custom dimension was created. * `id` (*type:* `String.t`, *default:* `nil`) - Custom dimension ID. * `index` (*type:* `integer()`, *default:* `nil`) - Index of the custom dimension. * `kind` (*type:* `String.t`, *default:* `analytics#customDimension`) - Kind value for a custom dimension. Set to "analytics#customDimension". It is a read-only field. * `name` (*type:* `String.t`, *default:* `nil`) - Name of the custom dimension. * `parentLink` (*type:* `GoogleApi.Analytics.V3.Model.CustomDimensionParentLink.t`, *default:* `nil`) - Parent link for the custom dimension. Points to the property to which the custom dimension belongs. * `scope` (*type:* `String.t`, *default:* `nil`) - Scope of the custom dimension: HIT, SESSION, USER or PRODUCT. * `selfLink` (*type:* `String.t`, *default:* `nil`) - Link for the custom dimension * `updated` (*type:* `DateTime.t`, *default:* `nil`) - Time the custom dimension was last modified. * `webPropertyId` (*type:* `String.t`, *default:* `nil`) - Property ID. """ use GoogleApi.Gax.ModelBase @type t :: %__MODULE__{ :accountId => String.t(), :active => boolean(), :created => DateTime.t(), :id => String.t(), :index => integer(), :kind => String.t(), :name => String.t(), :parentLink => GoogleApi.Analytics.V3.Model.CustomDimensionParentLink.t(), :scope => String.t(), :selfLink => String.t(), :updated => DateTime.t(), :webPropertyId => String.t() } field(:accountId) field(:active) field(:created, as: DateTime) field(:id) field(:index) field(:kind) field(:name) field(:parentLink, as: GoogleApi.Analytics.V3.Model.CustomDimensionParentLink) field(:scope) field(:selfLink) field(:updated, as: DateTime) field(:webPropertyId) end defimpl Poison.Decoder, for: GoogleApi.Analytics.V3.Model.CustomDimension do def decode(value, options) do GoogleApi.Analytics.V3.Model.CustomDimension.decode(value, options) end end defimpl Poison.Encoder, for: GoogleApi.Analytics.V3.Model.CustomDimension do def encode(value, options) do GoogleApi.Gax.ModelBase.encode(value, options) end end