# Copyright 2015 Google Inc. # # 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. require 'date' require 'google/apis/core/base_service' require 'google/apis/core/json_representation' require 'google/apis/core/hashable' require 'google/apis/errors' module Google module Apis module AnalyticsV3 class Account class Representation < Google::Apis::Core::JsonRepresentation; end class ChildLink class Representation < Google::Apis::Core::JsonRepresentation; end end class Permissions class Representation < Google::Apis::Core::JsonRepresentation; end end end class AccountRef class Representation < Google::Apis::Core::JsonRepresentation; end end class AccountSummaries class Representation < Google::Apis::Core::JsonRepresentation; end end class AccountSummary class Representation < Google::Apis::Core::JsonRepresentation; end end class AccountTicket class Representation < Google::Apis::Core::JsonRepresentation; end end class Accounts class Representation < Google::Apis::Core::JsonRepresentation; end end class AdWordsAccount class Representation < Google::Apis::Core::JsonRepresentation; end end class DeleteUploadDataRequest class Representation < Google::Apis::Core::JsonRepresentation; end end class Column class Representation < Google::Apis::Core::JsonRepresentation; end end class Columns class Representation < Google::Apis::Core::JsonRepresentation; end end class CustomDataSource class Representation < Google::Apis::Core::JsonRepresentation; end class ChildLink class Representation < Google::Apis::Core::JsonRepresentation; end end class ParentLink class Representation < Google::Apis::Core::JsonRepresentation; end end end class CustomDataSources class Representation < Google::Apis::Core::JsonRepresentation; end end class CustomDimension class Representation < Google::Apis::Core::JsonRepresentation; end class ParentLink class Representation < Google::Apis::Core::JsonRepresentation; end end end class CustomDimensions class Representation < Google::Apis::Core::JsonRepresentation; end end class CustomMetric class Representation < Google::Apis::Core::JsonRepresentation; end class ParentLink class Representation < Google::Apis::Core::JsonRepresentation; end end end class CustomMetrics class Representation < Google::Apis::Core::JsonRepresentation; end end class EntityAdWordsLink class Representation < Google::Apis::Core::JsonRepresentation; end class Entity class Representation < Google::Apis::Core::JsonRepresentation; end end end class EntityAdWordsLinks class Representation < Google::Apis::Core::JsonRepresentation; end end class EntityUserLink class Representation < Google::Apis::Core::JsonRepresentation; end class Entity class Representation < Google::Apis::Core::JsonRepresentation; end end class Permissions class Representation < Google::Apis::Core::JsonRepresentation; end end end class EntityUserLinks class Representation < Google::Apis::Core::JsonRepresentation; end end class Experiment class Representation < Google::Apis::Core::JsonRepresentation; end class ParentLink class Representation < Google::Apis::Core::JsonRepresentation; end end class Variation class Representation < Google::Apis::Core::JsonRepresentation; end end end class Experiments class Representation < Google::Apis::Core::JsonRepresentation; end end class Filter class Representation < Google::Apis::Core::JsonRepresentation; end class AdvancedDetails class Representation < Google::Apis::Core::JsonRepresentation; end end class LowercaseDetails class Representation < Google::Apis::Core::JsonRepresentation; end end class ParentLink class Representation < Google::Apis::Core::JsonRepresentation; end end class SearchAndReplaceDetails class Representation < Google::Apis::Core::JsonRepresentation; end end class UppercaseDetails class Representation < Google::Apis::Core::JsonRepresentation; end end end class FilterExpression class Representation < Google::Apis::Core::JsonRepresentation; end end class FilterRef class Representation < Google::Apis::Core::JsonRepresentation; end end class Filters class Representation < Google::Apis::Core::JsonRepresentation; end end class GaData class Representation < Google::Apis::Core::JsonRepresentation; end class ColumnHeader class Representation < Google::Apis::Core::JsonRepresentation; end end class DataTable class Representation < Google::Apis::Core::JsonRepresentation; end class Col class Representation < Google::Apis::Core::JsonRepresentation; end end class Row class Representation < Google::Apis::Core::JsonRepresentation; end class C class Representation < Google::Apis::Core::JsonRepresentation; end end end end class ProfileInfo class Representation < Google::Apis::Core::JsonRepresentation; end end class Query class Representation < Google::Apis::Core::JsonRepresentation; end end end class Goal class Representation < Google::Apis::Core::JsonRepresentation; end class EventDetails class Representation < Google::Apis::Core::JsonRepresentation; end class EventCondition class Representation < Google::Apis::Core::JsonRepresentation; end end end class ParentLink class Representation < Google::Apis::Core::JsonRepresentation; end end class UrlDestinationDetails class Representation < Google::Apis::Core::JsonRepresentation; end class Step class Representation < Google::Apis::Core::JsonRepresentation; end end end class VisitNumPagesDetails class Representation < Google::Apis::Core::JsonRepresentation; end end class VisitTimeOnSiteDetails class Representation < Google::Apis::Core::JsonRepresentation; end end end class Goals class Representation < Google::Apis::Core::JsonRepresentation; end end class McfData class Representation < Google::Apis::Core::JsonRepresentation; end class ColumnHeader class Representation < Google::Apis::Core::JsonRepresentation; end end class ProfileInfo class Representation < Google::Apis::Core::JsonRepresentation; end end class Query class Representation < Google::Apis::Core::JsonRepresentation; end end class Row class Representation < Google::Apis::Core::JsonRepresentation; end class ConversionPathValue class Representation < Google::Apis::Core::JsonRepresentation; end end end end class Profile class Representation < Google::Apis::Core::JsonRepresentation; end class ChildLink class Representation < Google::Apis::Core::JsonRepresentation; end end class ParentLink class Representation < Google::Apis::Core::JsonRepresentation; end end class Permissions class Representation < Google::Apis::Core::JsonRepresentation; end end end class ProfileFilterLink class Representation < Google::Apis::Core::JsonRepresentation; end end class ProfileFilterLinks class Representation < Google::Apis::Core::JsonRepresentation; end end class ProfileRef class Representation < Google::Apis::Core::JsonRepresentation; end end class ProfileSummary class Representation < Google::Apis::Core::JsonRepresentation; end end class Profiles class Representation < Google::Apis::Core::JsonRepresentation; end end class RealtimeData class Representation < Google::Apis::Core::JsonRepresentation; end class ColumnHeader class Representation < Google::Apis::Core::JsonRepresentation; end end class ProfileInfo class Representation < Google::Apis::Core::JsonRepresentation; end end class Query class Representation < Google::Apis::Core::JsonRepresentation; end end end class Segment class Representation < Google::Apis::Core::JsonRepresentation; end end class Segments class Representation < Google::Apis::Core::JsonRepresentation; end end class UnsampledReport class Representation < Google::Apis::Core::JsonRepresentation; end class CloudStorageDownloadDetails class Representation < Google::Apis::Core::JsonRepresentation; end end class DriveDownloadDetails class Representation < Google::Apis::Core::JsonRepresentation; end end end class UnsampledReports class Representation < Google::Apis::Core::JsonRepresentation; end end class Upload class Representation < Google::Apis::Core::JsonRepresentation; end end class Uploads class Representation < Google::Apis::Core::JsonRepresentation; end end class UserRef class Representation < Google::Apis::Core::JsonRepresentation; end end class WebPropertyRef class Representation < Google::Apis::Core::JsonRepresentation; end end class WebPropertySummary class Representation < Google::Apis::Core::JsonRepresentation; end end class Webproperties class Representation < Google::Apis::Core::JsonRepresentation; end end class Webproperty class Representation < Google::Apis::Core::JsonRepresentation; end class ChildLink class Representation < Google::Apis::Core::JsonRepresentation; end end class ParentLink class Representation < Google::Apis::Core::JsonRepresentation; end end class Permissions class Representation < Google::Apis::Core::JsonRepresentation; end end end # @private class Account class Representation < Google::Apis::Core::JsonRepresentation property :child_link, as: 'childLink', class: Google::Apis::AnalyticsV3::Account::ChildLink, decorator: Google::Apis::AnalyticsV3::Account::ChildLink::Representation property :created, as: 'created', type: DateTime property :id, as: 'id' property :kind, as: 'kind' property :name, as: 'name' property :permissions, as: 'permissions', class: Google::Apis::AnalyticsV3::Account::Permissions, decorator: Google::Apis::AnalyticsV3::Account::Permissions::Representation property :self_link, as: 'selfLink' property :updated, as: 'updated', type: DateTime end # @private class ChildLink class Representation < Google::Apis::Core::JsonRepresentation property :href, as: 'href' property :type, as: 'type' end end # @private class Permissions class Representation < Google::Apis::Core::JsonRepresentation collection :effective, as: 'effective' end end end # @private class AccountRef class Representation < Google::Apis::Core::JsonRepresentation property :href, as: 'href' property :id, as: 'id' property :kind, as: 'kind' property :name, as: 'name' end end # @private class AccountSummaries class Representation < Google::Apis::Core::JsonRepresentation collection :items, as: 'items', class: Google::Apis::AnalyticsV3::AccountSummary, decorator: Google::Apis::AnalyticsV3::AccountSummary::Representation property :items_per_page, as: 'itemsPerPage' property :kind, as: 'kind' property :next_link, as: 'nextLink' property :previous_link, as: 'previousLink' property :start_index, as: 'startIndex' property :total_results, as: 'totalResults' property :username, as: 'username' end end # @private class AccountSummary class Representation < Google::Apis::Core::JsonRepresentation property :id, as: 'id' property :kind, as: 'kind' property :name, as: 'name' collection :web_properties, as: 'webProperties', class: Google::Apis::AnalyticsV3::WebPropertySummary, decorator: Google::Apis::AnalyticsV3::WebPropertySummary::Representation end end # @private class AccountTicket class Representation < Google::Apis::Core::JsonRepresentation property :account, as: 'account', class: Google::Apis::AnalyticsV3::Account, decorator: Google::Apis::AnalyticsV3::Account::Representation property :id, as: 'id' property :kind, as: 'kind' property :profile, as: 'profile', class: Google::Apis::AnalyticsV3::Profile, decorator: Google::Apis::AnalyticsV3::Profile::Representation property :redirect_uri, as: 'redirectUri' property :webproperty, as: 'webproperty', class: Google::Apis::AnalyticsV3::Webproperty, decorator: Google::Apis::AnalyticsV3::Webproperty::Representation end end # @private class Accounts class Representation < Google::Apis::Core::JsonRepresentation collection :items, as: 'items', class: Google::Apis::AnalyticsV3::Account, decorator: Google::Apis::AnalyticsV3::Account::Representation property :items_per_page, as: 'itemsPerPage' property :kind, as: 'kind' property :next_link, as: 'nextLink' property :previous_link, as: 'previousLink' property :start_index, as: 'startIndex' property :total_results, as: 'totalResults' property :username, as: 'username' end end # @private class AdWordsAccount class Representation < Google::Apis::Core::JsonRepresentation property :auto_tagging_enabled, as: 'autoTaggingEnabled' property :customer_id, as: 'customerId' property :kind, as: 'kind' end end # @private class DeleteUploadDataRequest class Representation < Google::Apis::Core::JsonRepresentation collection :custom_data_import_uids, as: 'customDataImportUids' end end # @private class Column class Representation < Google::Apis::Core::JsonRepresentation hash :attributes, as: 'attributes' property :id, as: 'id' property :kind, as: 'kind' end end # @private class Columns class Representation < Google::Apis::Core::JsonRepresentation collection :attribute_names, as: 'attributeNames' property :etag, as: 'etag' collection :items, as: 'items', class: Google::Apis::AnalyticsV3::Column, decorator: Google::Apis::AnalyticsV3::Column::Representation property :kind, as: 'kind' property :total_results, as: 'totalResults' end end # @private class CustomDataSource class Representation < Google::Apis::Core::JsonRepresentation property :account_id, as: 'accountId' property :child_link, as: 'childLink', class: Google::Apis::AnalyticsV3::CustomDataSource::ChildLink, decorator: Google::Apis::AnalyticsV3::CustomDataSource::ChildLink::Representation property :created, as: 'created', type: DateTime property :description, as: 'description' property :id, as: 'id' property :import_behavior, as: 'importBehavior' property :kind, as: 'kind' property :name, as: 'name' property :parent_link, as: 'parentLink', class: Google::Apis::AnalyticsV3::CustomDataSource::ParentLink, decorator: Google::Apis::AnalyticsV3::CustomDataSource::ParentLink::Representation collection :profiles_linked, as: 'profilesLinked' property :self_link, as: 'selfLink' property :type, as: 'type' property :updated, as: 'updated', type: DateTime property :upload_type, as: 'uploadType' property :web_property_id, as: 'webPropertyId' end # @private class ChildLink class Representation < Google::Apis::Core::JsonRepresentation property :href, as: 'href' property :type, as: 'type' end end # @private class ParentLink class Representation < Google::Apis::Core::JsonRepresentation property :href, as: 'href' property :type, as: 'type' end end end # @private class CustomDataSources class Representation < Google::Apis::Core::JsonRepresentation collection :items, as: 'items', class: Google::Apis::AnalyticsV3::CustomDataSource, decorator: Google::Apis::AnalyticsV3::CustomDataSource::Representation property :items_per_page, as: 'itemsPerPage' property :kind, as: 'kind' property :next_link, as: 'nextLink' property :previous_link, as: 'previousLink' property :start_index, as: 'startIndex' property :total_results, as: 'totalResults' property :username, as: 'username' end end # @private class CustomDimension class Representation < Google::Apis::Core::JsonRepresentation property :account_id, as: 'accountId' property :active, as: 'active' property :created, as: 'created', type: DateTime property :id, as: 'id' property :index, as: 'index' property :kind, as: 'kind' property :name, as: 'name' property :parent_link, as: 'parentLink', class: Google::Apis::AnalyticsV3::CustomDimension::ParentLink, decorator: Google::Apis::AnalyticsV3::CustomDimension::ParentLink::Representation property :scope, as: 'scope' property :self_link, as: 'selfLink' property :updated, as: 'updated', type: DateTime property :web_property_id, as: 'webPropertyId' end # @private class ParentLink class Representation < Google::Apis::Core::JsonRepresentation property :href, as: 'href' property :type, as: 'type' end end end # @private class CustomDimensions class Representation < Google::Apis::Core::JsonRepresentation collection :items, as: 'items', class: Google::Apis::AnalyticsV3::CustomDimension, decorator: Google::Apis::AnalyticsV3::CustomDimension::Representation property :items_per_page, as: 'itemsPerPage' property :kind, as: 'kind' property :next_link, as: 'nextLink' property :previous_link, as: 'previousLink' property :start_index, as: 'startIndex' property :total_results, as: 'totalResults' property :username, as: 'username' end end # @private class CustomMetric class Representation < Google::Apis::Core::JsonRepresentation property :account_id, as: 'accountId' property :active, as: 'active' property :created, as: 'created', type: DateTime property :id, as: 'id' property :index, as: 'index' property :kind, as: 'kind' property :max_value, as: 'max_value' property :min_value, as: 'min_value' property :name, as: 'name' property :parent_link, as: 'parentLink', class: Google::Apis::AnalyticsV3::CustomMetric::ParentLink, decorator: Google::Apis::AnalyticsV3::CustomMetric::ParentLink::Representation property :scope, as: 'scope' property :self_link, as: 'selfLink' property :type, as: 'type' property :updated, as: 'updated', type: DateTime property :web_property_id, as: 'webPropertyId' end # @private class ParentLink class Representation < Google::Apis::Core::JsonRepresentation property :href, as: 'href' property :type, as: 'type' end end end # @private class CustomMetrics class Representation < Google::Apis::Core::JsonRepresentation collection :items, as: 'items', class: Google::Apis::AnalyticsV3::CustomMetric, decorator: Google::Apis::AnalyticsV3::CustomMetric::Representation property :items_per_page, as: 'itemsPerPage' property :kind, as: 'kind' property :next_link, as: 'nextLink' property :previous_link, as: 'previousLink' property :start_index, as: 'startIndex' property :total_results, as: 'totalResults' property :username, as: 'username' end end # @private class EntityAdWordsLink class Representation < Google::Apis::Core::JsonRepresentation collection :ad_words_accounts, as: 'adWordsAccounts', class: Google::Apis::AnalyticsV3::AdWordsAccount, decorator: Google::Apis::AnalyticsV3::AdWordsAccount::Representation property :entity, as: 'entity', class: Google::Apis::AnalyticsV3::EntityAdWordsLink::Entity, decorator: Google::Apis::AnalyticsV3::EntityAdWordsLink::Entity::Representation property :id, as: 'id' property :kind, as: 'kind' property :name, as: 'name' collection :profile_ids, as: 'profileIds' property :self_link, as: 'selfLink' end # @private class Entity class Representation < Google::Apis::Core::JsonRepresentation property :web_property_ref, as: 'webPropertyRef', class: Google::Apis::AnalyticsV3::WebPropertyRef, decorator: Google::Apis::AnalyticsV3::WebPropertyRef::Representation end end end # @private class EntityAdWordsLinks class Representation < Google::Apis::Core::JsonRepresentation collection :items, as: 'items', class: Google::Apis::AnalyticsV3::EntityAdWordsLink, decorator: Google::Apis::AnalyticsV3::EntityAdWordsLink::Representation property :items_per_page, as: 'itemsPerPage' property :kind, as: 'kind' property :next_link, as: 'nextLink' property :previous_link, as: 'previousLink' property :start_index, as: 'startIndex' property :total_results, as: 'totalResults' end end # @private class EntityUserLink class Representation < Google::Apis::Core::JsonRepresentation property :entity, as: 'entity', class: Google::Apis::AnalyticsV3::EntityUserLink::Entity, decorator: Google::Apis::AnalyticsV3::EntityUserLink::Entity::Representation property :id, as: 'id' property :kind, as: 'kind' property :permissions, as: 'permissions', class: Google::Apis::AnalyticsV3::EntityUserLink::Permissions, decorator: Google::Apis::AnalyticsV3::EntityUserLink::Permissions::Representation property :self_link, as: 'selfLink' property :user_ref, as: 'userRef', class: Google::Apis::AnalyticsV3::UserRef, decorator: Google::Apis::AnalyticsV3::UserRef::Representation end # @private class Entity class Representation < Google::Apis::Core::JsonRepresentation property :account_ref, as: 'accountRef', class: Google::Apis::AnalyticsV3::AccountRef, decorator: Google::Apis::AnalyticsV3::AccountRef::Representation property :profile_ref, as: 'profileRef', class: Google::Apis::AnalyticsV3::ProfileRef, decorator: Google::Apis::AnalyticsV3::ProfileRef::Representation property :web_property_ref, as: 'webPropertyRef', class: Google::Apis::AnalyticsV3::WebPropertyRef, decorator: Google::Apis::AnalyticsV3::WebPropertyRef::Representation end end # @private class Permissions class Representation < Google::Apis::Core::JsonRepresentation collection :effective, as: 'effective' collection :local, as: 'local' end end end # @private class EntityUserLinks class Representation < Google::Apis::Core::JsonRepresentation collection :items, as: 'items', class: Google::Apis::AnalyticsV3::EntityUserLink, decorator: Google::Apis::AnalyticsV3::EntityUserLink::Representation property :items_per_page, as: 'itemsPerPage' property :kind, as: 'kind' property :next_link, as: 'nextLink' property :previous_link, as: 'previousLink' property :start_index, as: 'startIndex' property :total_results, as: 'totalResults' end end # @private class Experiment class Representation < Google::Apis::Core::JsonRepresentation property :account_id, as: 'accountId' property :created, as: 'created', type: DateTime property :description, as: 'description' property :editable_in_ga_ui, as: 'editableInGaUi' property :end_time, as: 'endTime', type: DateTime property :equal_weighting, as: 'equalWeighting' property :id, as: 'id' property :internal_web_property_id, as: 'internalWebPropertyId' property :kind, as: 'kind' property :minimum_experiment_length_in_days, as: 'minimumExperimentLengthInDays' property :name, as: 'name' property :objective_metric, as: 'objectiveMetric' property :optimization_type, as: 'optimizationType' property :parent_link, as: 'parentLink', class: Google::Apis::AnalyticsV3::Experiment::ParentLink, decorator: Google::Apis::AnalyticsV3::Experiment::ParentLink::Representation property :profile_id, as: 'profileId' property :reason_experiment_ended, as: 'reasonExperimentEnded' property :rewrite_variation_urls_as_original, as: 'rewriteVariationUrlsAsOriginal' property :self_link, as: 'selfLink' property :serving_framework, as: 'servingFramework' property :snippet, as: 'snippet' property :start_time, as: 'startTime', type: DateTime property :status, as: 'status' property :traffic_coverage, as: 'trafficCoverage' property :updated, as: 'updated', type: DateTime collection :variations, as: 'variations', class: Google::Apis::AnalyticsV3::Experiment::Variation, decorator: Google::Apis::AnalyticsV3::Experiment::Variation::Representation property :web_property_id, as: 'webPropertyId' property :winner_confidence_level, as: 'winnerConfidenceLevel' property :winner_found, as: 'winnerFound' end # @private class ParentLink class Representation < Google::Apis::Core::JsonRepresentation property :href, as: 'href' property :type, as: 'type' end end # @private class Variation class Representation < Google::Apis::Core::JsonRepresentation property :name, as: 'name' property :status, as: 'status' property :url, as: 'url' property :weight, as: 'weight' property :won, as: 'won' end end end # @private class Experiments class Representation < Google::Apis::Core::JsonRepresentation collection :items, as: 'items', class: Google::Apis::AnalyticsV3::Experiment, decorator: Google::Apis::AnalyticsV3::Experiment::Representation property :items_per_page, as: 'itemsPerPage' property :kind, as: 'kind' property :next_link, as: 'nextLink' property :previous_link, as: 'previousLink' property :start_index, as: 'startIndex' property :total_results, as: 'totalResults' property :username, as: 'username' end end # @private class Filter class Representation < Google::Apis::Core::JsonRepresentation property :account_id, as: 'accountId' property :advanced_details, as: 'advancedDetails', class: Google::Apis::AnalyticsV3::Filter::AdvancedDetails, decorator: Google::Apis::AnalyticsV3::Filter::AdvancedDetails::Representation property :created, as: 'created', type: DateTime property :exclude_details, as: 'excludeDetails', class: Google::Apis::AnalyticsV3::FilterExpression, decorator: Google::Apis::AnalyticsV3::FilterExpression::Representation property :id, as: 'id' property :include_details, as: 'includeDetails', class: Google::Apis::AnalyticsV3::FilterExpression, decorator: Google::Apis::AnalyticsV3::FilterExpression::Representation property :kind, as: 'kind' property :lowercase_details, as: 'lowercaseDetails', class: Google::Apis::AnalyticsV3::Filter::LowercaseDetails, decorator: Google::Apis::AnalyticsV3::Filter::LowercaseDetails::Representation property :name, as: 'name' property :parent_link, as: 'parentLink', class: Google::Apis::AnalyticsV3::Filter::ParentLink, decorator: Google::Apis::AnalyticsV3::Filter::ParentLink::Representation property :search_and_replace_details, as: 'searchAndReplaceDetails', class: Google::Apis::AnalyticsV3::Filter::SearchAndReplaceDetails, decorator: Google::Apis::AnalyticsV3::Filter::SearchAndReplaceDetails::Representation property :self_link, as: 'selfLink' property :type, as: 'type' property :updated, as: 'updated', type: DateTime property :uppercase_details, as: 'uppercaseDetails', class: Google::Apis::AnalyticsV3::Filter::UppercaseDetails, decorator: Google::Apis::AnalyticsV3::Filter::UppercaseDetails::Representation end # @private class AdvancedDetails class Representation < Google::Apis::Core::JsonRepresentation property :case_sensitive, as: 'caseSensitive' property :extract_a, as: 'extractA' property :extract_b, as: 'extractB' property :field_a, as: 'fieldA' property :field_a_index, as: 'fieldAIndex' property :field_a_required, as: 'fieldARequired' property :field_b, as: 'fieldB' property :field_b_index, as: 'fieldBIndex' property :field_b_required, as: 'fieldBRequired' property :output_constructor, as: 'outputConstructor' property :output_to_field, as: 'outputToField' property :output_to_field_index, as: 'outputToFieldIndex' property :override_output_field, as: 'overrideOutputField' end end # @private class LowercaseDetails class Representation < Google::Apis::Core::JsonRepresentation property :field, as: 'field' property :field_index, as: 'fieldIndex' end end # @private class ParentLink class Representation < Google::Apis::Core::JsonRepresentation property :href, as: 'href' property :type, as: 'type' end end # @private class SearchAndReplaceDetails class Representation < Google::Apis::Core::JsonRepresentation property :case_sensitive, as: 'caseSensitive' property :field, as: 'field' property :field_index, as: 'fieldIndex' property :replace_string, as: 'replaceString' property :search_string, as: 'searchString' end end # @private class UppercaseDetails class Representation < Google::Apis::Core::JsonRepresentation property :field, as: 'field' property :field_index, as: 'fieldIndex' end end end # @private class FilterExpression class Representation < Google::Apis::Core::JsonRepresentation property :case_sensitive, as: 'caseSensitive' property :expression_value, as: 'expressionValue' property :field, as: 'field' property :field_index, as: 'fieldIndex' property :kind, as: 'kind' property :match_type, as: 'matchType' end end # @private class FilterRef class Representation < Google::Apis::Core::JsonRepresentation property :account_id, as: 'accountId' property :href, as: 'href' property :id, as: 'id' property :kind, as: 'kind' property :name, as: 'name' end end # @private class Filters class Representation < Google::Apis::Core::JsonRepresentation collection :items, as: 'items', class: Google::Apis::AnalyticsV3::Filter, decorator: Google::Apis::AnalyticsV3::Filter::Representation property :items_per_page, as: 'itemsPerPage' property :kind, as: 'kind' property :next_link, as: 'nextLink' property :previous_link, as: 'previousLink' property :start_index, as: 'startIndex' property :total_results, as: 'totalResults' property :username, as: 'username' end end # @private class GaData class Representation < Google::Apis::Core::JsonRepresentation collection :column_headers, as: 'columnHeaders', class: Google::Apis::AnalyticsV3::GaData::ColumnHeader, decorator: Google::Apis::AnalyticsV3::GaData::ColumnHeader::Representation property :contains_sampled_data, as: 'containsSampledData' property :data_table, as: 'dataTable', class: Google::Apis::AnalyticsV3::GaData::DataTable, decorator: Google::Apis::AnalyticsV3::GaData::DataTable::Representation property :id, as: 'id' property :items_per_page, as: 'itemsPerPage' property :kind, as: 'kind' property :next_link, as: 'nextLink' property :previous_link, as: 'previousLink' property :profile_info, as: 'profileInfo', class: Google::Apis::AnalyticsV3::GaData::ProfileInfo, decorator: Google::Apis::AnalyticsV3::GaData::ProfileInfo::Representation property :query, as: 'query', class: Google::Apis::AnalyticsV3::GaData::Query, decorator: Google::Apis::AnalyticsV3::GaData::Query::Representation collection :rows, as: 'rows', :class => Array do include Representable::JSON::Collection items end property :sample_size, as: 'sampleSize' property :sample_space, as: 'sampleSpace' property :self_link, as: 'selfLink' property :total_results, as: 'totalResults' hash :totals_for_all_results, as: 'totalsForAllResults' end # @private class ColumnHeader class Representation < Google::Apis::Core::JsonRepresentation property :column_type, as: 'columnType' property :data_type, as: 'dataType' property :name, as: 'name' end end # @private class DataTable class Representation < Google::Apis::Core::JsonRepresentation collection :cols, as: 'cols', class: Google::Apis::AnalyticsV3::GaData::DataTable::Col, decorator: Google::Apis::AnalyticsV3::GaData::DataTable::Col::Representation collection :rows, as: 'rows', class: Google::Apis::AnalyticsV3::GaData::DataTable::Row, decorator: Google::Apis::AnalyticsV3::GaData::DataTable::Row::Representation end # @private class Col class Representation < Google::Apis::Core::JsonRepresentation property :id, as: 'id' property :label, as: 'label' property :type, as: 'type' end end # @private class Row class Representation < Google::Apis::Core::JsonRepresentation collection :c, as: 'c', class: Google::Apis::AnalyticsV3::GaData::DataTable::Row::C, decorator: Google::Apis::AnalyticsV3::GaData::DataTable::Row::C::Representation end # @private class C class Representation < Google::Apis::Core::JsonRepresentation property :v, as: 'v' end end end end # @private class ProfileInfo class Representation < Google::Apis::Core::JsonRepresentation property :account_id, as: 'accountId' property :internal_web_property_id, as: 'internalWebPropertyId' property :profile_id, as: 'profileId' property :profile_name, as: 'profileName' property :table_id, as: 'tableId' property :web_property_id, as: 'webPropertyId' end end # @private class Query class Representation < Google::Apis::Core::JsonRepresentation property :dimensions, as: 'dimensions' property :end_date, as: 'end-date' property :filters, as: 'filters' property :ids, as: 'ids' property :max_results, as: 'max-results' collection :metrics, as: 'metrics' property :sampling_level, as: 'samplingLevel' property :segment, as: 'segment' collection :sort, as: 'sort' property :start_date, as: 'start-date' property :start_index, as: 'start-index' end end end # @private class Goal class Representation < Google::Apis::Core::JsonRepresentation property :account_id, as: 'accountId' property :active, as: 'active' property :created, as: 'created', type: DateTime property :event_details, as: 'eventDetails', class: Google::Apis::AnalyticsV3::Goal::EventDetails, decorator: Google::Apis::AnalyticsV3::Goal::EventDetails::Representation property :id, as: 'id' property :internal_web_property_id, as: 'internalWebPropertyId' property :kind, as: 'kind' property :name, as: 'name' property :parent_link, as: 'parentLink', class: Google::Apis::AnalyticsV3::Goal::ParentLink, decorator: Google::Apis::AnalyticsV3::Goal::ParentLink::Representation property :profile_id, as: 'profileId' property :self_link, as: 'selfLink' property :type, as: 'type' property :updated, as: 'updated', type: DateTime property :url_destination_details, as: 'urlDestinationDetails', class: Google::Apis::AnalyticsV3::Goal::UrlDestinationDetails, decorator: Google::Apis::AnalyticsV3::Goal::UrlDestinationDetails::Representation property :value, as: 'value' property :visit_num_pages_details, as: 'visitNumPagesDetails', class: Google::Apis::AnalyticsV3::Goal::VisitNumPagesDetails, decorator: Google::Apis::AnalyticsV3::Goal::VisitNumPagesDetails::Representation property :visit_time_on_site_details, as: 'visitTimeOnSiteDetails', class: Google::Apis::AnalyticsV3::Goal::VisitTimeOnSiteDetails, decorator: Google::Apis::AnalyticsV3::Goal::VisitTimeOnSiteDetails::Representation property :web_property_id, as: 'webPropertyId' end # @private class EventDetails class Representation < Google::Apis::Core::JsonRepresentation collection :event_conditions, as: 'eventConditions', class: Google::Apis::AnalyticsV3::Goal::EventDetails::EventCondition, decorator: Google::Apis::AnalyticsV3::Goal::EventDetails::EventCondition::Representation property :use_event_value, as: 'useEventValue' end # @private class EventCondition class Representation < Google::Apis::Core::JsonRepresentation property :comparison_type, as: 'comparisonType' property :comparison_value, as: 'comparisonValue' property :expression, as: 'expression' property :match_type, as: 'matchType' property :type, as: 'type' end end end # @private class ParentLink class Representation < Google::Apis::Core::JsonRepresentation property :href, as: 'href' property :type, as: 'type' end end # @private class UrlDestinationDetails class Representation < Google::Apis::Core::JsonRepresentation property :case_sensitive, as: 'caseSensitive' property :first_step_required, as: 'firstStepRequired' property :match_type, as: 'matchType' collection :steps, as: 'steps', class: Google::Apis::AnalyticsV3::Goal::UrlDestinationDetails::Step, decorator: Google::Apis::AnalyticsV3::Goal::UrlDestinationDetails::Step::Representation property :url, as: 'url' end # @private class Step class Representation < Google::Apis::Core::JsonRepresentation property :name, as: 'name' property :number, as: 'number' property :url, as: 'url' end end end # @private class VisitNumPagesDetails class Representation < Google::Apis::Core::JsonRepresentation property :comparison_type, as: 'comparisonType' property :comparison_value, as: 'comparisonValue' end end # @private class VisitTimeOnSiteDetails class Representation < Google::Apis::Core::JsonRepresentation property :comparison_type, as: 'comparisonType' property :comparison_value, as: 'comparisonValue' end end end # @private class Goals class Representation < Google::Apis::Core::JsonRepresentation collection :items, as: 'items', class: Google::Apis::AnalyticsV3::Goal, decorator: Google::Apis::AnalyticsV3::Goal::Representation property :items_per_page, as: 'itemsPerPage' property :kind, as: 'kind' property :next_link, as: 'nextLink' property :previous_link, as: 'previousLink' property :start_index, as: 'startIndex' property :total_results, as: 'totalResults' property :username, as: 'username' end end # @private class McfData class Representation < Google::Apis::Core::JsonRepresentation collection :column_headers, as: 'columnHeaders', class: Google::Apis::AnalyticsV3::McfData::ColumnHeader, decorator: Google::Apis::AnalyticsV3::McfData::ColumnHeader::Representation property :contains_sampled_data, as: 'containsSampledData' property :id, as: 'id' property :items_per_page, as: 'itemsPerPage' property :kind, as: 'kind' property :next_link, as: 'nextLink' property :previous_link, as: 'previousLink' property :profile_info, as: 'profileInfo', class: Google::Apis::AnalyticsV3::McfData::ProfileInfo, decorator: Google::Apis::AnalyticsV3::McfData::ProfileInfo::Representation property :query, as: 'query', class: Google::Apis::AnalyticsV3::McfData::Query, decorator: Google::Apis::AnalyticsV3::McfData::Query::Representation collection :rows, as: 'rows', :class => Array do include Representable::JSON::Collection items class: Google::Apis::AnalyticsV3::McfData::Row, decorator: Google::Apis::AnalyticsV3::McfData::Row::Representation end property :sample_size, as: 'sampleSize' property :sample_space, as: 'sampleSpace' property :self_link, as: 'selfLink' property :total_results, as: 'totalResults' hash :totals_for_all_results, as: 'totalsForAllResults' end # @private class ColumnHeader class Representation < Google::Apis::Core::JsonRepresentation property :column_type, as: 'columnType' property :data_type, as: 'dataType' property :name, as: 'name' end end # @private class ProfileInfo class Representation < Google::Apis::Core::JsonRepresentation property :account_id, as: 'accountId' property :internal_web_property_id, as: 'internalWebPropertyId' property :profile_id, as: 'profileId' property :profile_name, as: 'profileName' property :table_id, as: 'tableId' property :web_property_id, as: 'webPropertyId' end end # @private class Query class Representation < Google::Apis::Core::JsonRepresentation property :dimensions, as: 'dimensions' property :end_date, as: 'end-date' property :filters, as: 'filters' property :ids, as: 'ids' property :max_results, as: 'max-results' collection :metrics, as: 'metrics' property :sampling_level, as: 'samplingLevel' property :segment, as: 'segment' collection :sort, as: 'sort' property :start_date, as: 'start-date' property :start_index, as: 'start-index' end end # @private class Row class Representation < Google::Apis::Core::JsonRepresentation collection :conversion_path_value, as: 'conversionPathValue', class: Google::Apis::AnalyticsV3::McfData::Row::ConversionPathValue, decorator: Google::Apis::AnalyticsV3::McfData::Row::ConversionPathValue::Representation property :primitive_value, as: 'primitiveValue' end # @private class ConversionPathValue class Representation < Google::Apis::Core::JsonRepresentation property :interaction_type, as: 'interactionType' property :node_value, as: 'nodeValue' end end end end # @private class Profile class Representation < Google::Apis::Core::JsonRepresentation property :account_id, as: 'accountId' property :child_link, as: 'childLink', class: Google::Apis::AnalyticsV3::Profile::ChildLink, decorator: Google::Apis::AnalyticsV3::Profile::ChildLink::Representation property :created, as: 'created', type: DateTime property :currency, as: 'currency' property :default_page, as: 'defaultPage' property :e_commerce_tracking, as: 'eCommerceTracking' property :enhanced_e_commerce_tracking, as: 'enhancedECommerceTracking' property :exclude_query_parameters, as: 'excludeQueryParameters' property :id, as: 'id' property :internal_web_property_id, as: 'internalWebPropertyId' property :kind, as: 'kind' property :name, as: 'name' property :parent_link, as: 'parentLink', class: Google::Apis::AnalyticsV3::Profile::ParentLink, decorator: Google::Apis::AnalyticsV3::Profile::ParentLink::Representation property :permissions, as: 'permissions', class: Google::Apis::AnalyticsV3::Profile::Permissions, decorator: Google::Apis::AnalyticsV3::Profile::Permissions::Representation property :self_link, as: 'selfLink' property :site_search_category_parameters, as: 'siteSearchCategoryParameters' property :site_search_query_parameters, as: 'siteSearchQueryParameters' property :strip_site_search_category_parameters, as: 'stripSiteSearchCategoryParameters' property :strip_site_search_query_parameters, as: 'stripSiteSearchQueryParameters' property :timezone, as: 'timezone' property :type, as: 'type' property :updated, as: 'updated', type: DateTime property :web_property_id, as: 'webPropertyId' property :website_url, as: 'websiteUrl' end # @private class ChildLink class Representation < Google::Apis::Core::JsonRepresentation property :href, as: 'href' property :type, as: 'type' end end # @private class ParentLink class Representation < Google::Apis::Core::JsonRepresentation property :href, as: 'href' property :type, as: 'type' end end # @private class Permissions class Representation < Google::Apis::Core::JsonRepresentation collection :effective, as: 'effective' end end end # @private class ProfileFilterLink class Representation < Google::Apis::Core::JsonRepresentation property :filter_ref, as: 'filterRef', class: Google::Apis::AnalyticsV3::FilterRef, decorator: Google::Apis::AnalyticsV3::FilterRef::Representation property :id, as: 'id' property :kind, as: 'kind' property :profile_ref, as: 'profileRef', class: Google::Apis::AnalyticsV3::ProfileRef, decorator: Google::Apis::AnalyticsV3::ProfileRef::Representation property :rank, as: 'rank' property :self_link, as: 'selfLink' end end # @private class ProfileFilterLinks class Representation < Google::Apis::Core::JsonRepresentation collection :items, as: 'items', class: Google::Apis::AnalyticsV3::ProfileFilterLink, decorator: Google::Apis::AnalyticsV3::ProfileFilterLink::Representation property :items_per_page, as: 'itemsPerPage' property :kind, as: 'kind' property :next_link, as: 'nextLink' property :previous_link, as: 'previousLink' property :start_index, as: 'startIndex' property :total_results, as: 'totalResults' property :username, as: 'username' end end # @private class ProfileRef class Representation < Google::Apis::Core::JsonRepresentation property :account_id, as: 'accountId' property :href, as: 'href' property :id, as: 'id' property :internal_web_property_id, as: 'internalWebPropertyId' property :kind, as: 'kind' property :name, as: 'name' property :web_property_id, as: 'webPropertyId' end end # @private class ProfileSummary class Representation < Google::Apis::Core::JsonRepresentation property :id, as: 'id' property :kind, as: 'kind' property :name, as: 'name' property :type, as: 'type' end end # @private class Profiles class Representation < Google::Apis::Core::JsonRepresentation collection :items, as: 'items', class: Google::Apis::AnalyticsV3::Profile, decorator: Google::Apis::AnalyticsV3::Profile::Representation property :items_per_page, as: 'itemsPerPage' property :kind, as: 'kind' property :next_link, as: 'nextLink' property :previous_link, as: 'previousLink' property :start_index, as: 'startIndex' property :total_results, as: 'totalResults' property :username, as: 'username' end end # @private class RealtimeData class Representation < Google::Apis::Core::JsonRepresentation collection :column_headers, as: 'columnHeaders', class: Google::Apis::AnalyticsV3::RealtimeData::ColumnHeader, decorator: Google::Apis::AnalyticsV3::RealtimeData::ColumnHeader::Representation property :id, as: 'id' property :kind, as: 'kind' property :profile_info, as: 'profileInfo', class: Google::Apis::AnalyticsV3::RealtimeData::ProfileInfo, decorator: Google::Apis::AnalyticsV3::RealtimeData::ProfileInfo::Representation property :query, as: 'query', class: Google::Apis::AnalyticsV3::RealtimeData::Query, decorator: Google::Apis::AnalyticsV3::RealtimeData::Query::Representation collection :rows, as: 'rows', :class => Array do include Representable::JSON::Collection items end property :self_link, as: 'selfLink' property :total_results, as: 'totalResults' hash :totals_for_all_results, as: 'totalsForAllResults' end # @private class ColumnHeader class Representation < Google::Apis::Core::JsonRepresentation property :column_type, as: 'columnType' property :data_type, as: 'dataType' property :name, as: 'name' end end # @private class ProfileInfo class Representation < Google::Apis::Core::JsonRepresentation property :account_id, as: 'accountId' property :internal_web_property_id, as: 'internalWebPropertyId' property :profile_id, as: 'profileId' property :profile_name, as: 'profileName' property :table_id, as: 'tableId' property :web_property_id, as: 'webPropertyId' end end # @private class Query class Representation < Google::Apis::Core::JsonRepresentation property :dimensions, as: 'dimensions' property :filters, as: 'filters' property :ids, as: 'ids' property :max_results, as: 'max-results' collection :metrics, as: 'metrics' collection :sort, as: 'sort' end end end # @private class Segment class Representation < Google::Apis::Core::JsonRepresentation property :created, as: 'created', type: DateTime property :definition, as: 'definition' property :id, as: 'id' property :kind, as: 'kind' property :name, as: 'name' property :segment_id, as: 'segmentId' property :self_link, as: 'selfLink' property :type, as: 'type' property :updated, as: 'updated', type: DateTime end end # @private class Segments class Representation < Google::Apis::Core::JsonRepresentation collection :items, as: 'items', class: Google::Apis::AnalyticsV3::Segment, decorator: Google::Apis::AnalyticsV3::Segment::Representation property :items_per_page, as: 'itemsPerPage' property :kind, as: 'kind' property :next_link, as: 'nextLink' property :previous_link, as: 'previousLink' property :start_index, as: 'startIndex' property :total_results, as: 'totalResults' property :username, as: 'username' end end # @private class UnsampledReport class Representation < Google::Apis::Core::JsonRepresentation property :account_id, as: 'accountId' property :cloud_storage_download_details, as: 'cloudStorageDownloadDetails', class: Google::Apis::AnalyticsV3::UnsampledReport::CloudStorageDownloadDetails, decorator: Google::Apis::AnalyticsV3::UnsampledReport::CloudStorageDownloadDetails::Representation property :created, as: 'created', type: DateTime property :dimensions, as: 'dimensions' property :download_type, as: 'downloadType' property :drive_download_details, as: 'driveDownloadDetails', class: Google::Apis::AnalyticsV3::UnsampledReport::DriveDownloadDetails, decorator: Google::Apis::AnalyticsV3::UnsampledReport::DriveDownloadDetails::Representation property :end_date, as: 'end-date' property :filters, as: 'filters' property :id, as: 'id' property :kind, as: 'kind' property :metrics, as: 'metrics' property :profile_id, as: 'profileId' property :segment, as: 'segment' property :self_link, as: 'selfLink' property :start_date, as: 'start-date' property :status, as: 'status' property :title, as: 'title' property :updated, as: 'updated', type: DateTime property :web_property_id, as: 'webPropertyId' end # @private class CloudStorageDownloadDetails class Representation < Google::Apis::Core::JsonRepresentation property :bucket_id, as: 'bucketId' property :obj_id, as: 'objectId' end end # @private class DriveDownloadDetails class Representation < Google::Apis::Core::JsonRepresentation property :document_id, as: 'documentId' end end end # @private class UnsampledReports class Representation < Google::Apis::Core::JsonRepresentation collection :items, as: 'items', class: Google::Apis::AnalyticsV3::UnsampledReport, decorator: Google::Apis::AnalyticsV3::UnsampledReport::Representation property :items_per_page, as: 'itemsPerPage' property :kind, as: 'kind' property :next_link, as: 'nextLink' property :previous_link, as: 'previousLink' property :start_index, as: 'startIndex' property :total_results, as: 'totalResults' property :username, as: 'username' end end # @private class Upload class Representation < Google::Apis::Core::JsonRepresentation property :account_id, as: 'accountId' property :custom_data_source_id, as: 'customDataSourceId' collection :errors, as: 'errors' property :id, as: 'id' property :kind, as: 'kind' property :status, as: 'status' end end # @private class Uploads class Representation < Google::Apis::Core::JsonRepresentation collection :items, as: 'items', class: Google::Apis::AnalyticsV3::Upload, decorator: Google::Apis::AnalyticsV3::Upload::Representation property :items_per_page, as: 'itemsPerPage' property :kind, as: 'kind' property :next_link, as: 'nextLink' property :previous_link, as: 'previousLink' property :start_index, as: 'startIndex' property :total_results, as: 'totalResults' end end # @private class UserRef class Representation < Google::Apis::Core::JsonRepresentation property :email, as: 'email' property :id, as: 'id' property :kind, as: 'kind' end end # @private class WebPropertyRef class Representation < Google::Apis::Core::JsonRepresentation property :account_id, as: 'accountId' property :href, as: 'href' property :id, as: 'id' property :internal_web_property_id, as: 'internalWebPropertyId' property :kind, as: 'kind' property :name, as: 'name' end end # @private class WebPropertySummary class Representation < Google::Apis::Core::JsonRepresentation property :id, as: 'id' property :internal_web_property_id, as: 'internalWebPropertyId' property :kind, as: 'kind' property :level, as: 'level' property :name, as: 'name' collection :profiles, as: 'profiles', class: Google::Apis::AnalyticsV3::ProfileSummary, decorator: Google::Apis::AnalyticsV3::ProfileSummary::Representation property :website_url, as: 'websiteUrl' end end # @private class Webproperties class Representation < Google::Apis::Core::JsonRepresentation collection :items, as: 'items', class: Google::Apis::AnalyticsV3::Webproperty, decorator: Google::Apis::AnalyticsV3::Webproperty::Representation property :items_per_page, as: 'itemsPerPage' property :kind, as: 'kind' property :next_link, as: 'nextLink' property :previous_link, as: 'previousLink' property :start_index, as: 'startIndex' property :total_results, as: 'totalResults' property :username, as: 'username' end end # @private class Webproperty class Representation < Google::Apis::Core::JsonRepresentation property :account_id, as: 'accountId' property :child_link, as: 'childLink', class: Google::Apis::AnalyticsV3::Webproperty::ChildLink, decorator: Google::Apis::AnalyticsV3::Webproperty::ChildLink::Representation property :created, as: 'created', type: DateTime property :default_profile_id, as: 'defaultProfileId' property :id, as: 'id' property :industry_vertical, as: 'industryVertical' property :internal_web_property_id, as: 'internalWebPropertyId' property :kind, as: 'kind' property :level, as: 'level' property :name, as: 'name' property :parent_link, as: 'parentLink', class: Google::Apis::AnalyticsV3::Webproperty::ParentLink, decorator: Google::Apis::AnalyticsV3::Webproperty::ParentLink::Representation property :permissions, as: 'permissions', class: Google::Apis::AnalyticsV3::Webproperty::Permissions, decorator: Google::Apis::AnalyticsV3::Webproperty::Permissions::Representation property :profile_count, as: 'profileCount' property :self_link, as: 'selfLink' property :updated, as: 'updated', type: DateTime property :website_url, as: 'websiteUrl' end # @private class ChildLink class Representation < Google::Apis::Core::JsonRepresentation property :href, as: 'href' property :type, as: 'type' end end # @private class ParentLink class Representation < Google::Apis::Core::JsonRepresentation property :href, as: 'href' property :type, as: 'type' end end # @private class Permissions class Representation < Google::Apis::Core::JsonRepresentation collection :effective, as: 'effective' end end end end end end