Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(553)

Unified Diff: generated/googleapis/lib/analytics/v3.dart

Issue 3006323002: Api-Roll 54: 2017-09-11 (Closed)
Patch Set: use 2.0.0-dev.infinity sdk constraint in pubspecs Created 3 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « generated/googleapis/lib/adsensehost/v4_1.dart ('k') | generated/googleapis/lib/analyticsreporting/v4.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: generated/googleapis/lib/analytics/v3.dart
diff --git a/generated/googleapis/lib/analytics/v3.dart b/generated/googleapis/lib/analytics/v3.dart
index 8bcc18a378e82a29a36b755e73d4687fac4524ab..fadf21e5b65f8d19d38085a33e1ad2550ff0e498 100644
--- a/generated/googleapis/lib/analytics/v3.dart
+++ b/generated/googleapis/lib/analytics/v3.dart
@@ -9,137 +9,154 @@ import 'dart:convert' as convert;
import 'package:_discoveryapis_commons/_discoveryapis_commons.dart' as commons;
import 'package:http/http.dart' as http;
-export 'package:_discoveryapis_commons/_discoveryapis_commons.dart' show
- ApiRequestError, DetailedApiRequestError, Media, UploadOptions,
- ResumableUploadOptions, DownloadOptions, PartialDownloadOptions,
- ByteRange;
+export 'package:_discoveryapis_commons/_discoveryapis_commons.dart'
+ show
+ ApiRequestError,
+ DetailedApiRequestError,
+ Media,
+ UploadOptions,
+ ResumableUploadOptions,
+ DownloadOptions,
+ PartialDownloadOptions,
+ ByteRange;
const core.String USER_AGENT = 'dart-api-client analytics/v3';
-/** Views and manages your Google Analytics data. */
+/// Views and manages your Google Analytics data.
class AnalyticsApi {
- /** View and manage your Google Analytics data */
+ /// View and manage your Google Analytics data
static const AnalyticsScope = "https://www.googleapis.com/auth/analytics";
- /** Edit Google Analytics management entities */
- static const AnalyticsEditScope = "https://www.googleapis.com/auth/analytics.edit";
+ /// Edit Google Analytics management entities
+ static const AnalyticsEditScope =
+ "https://www.googleapis.com/auth/analytics.edit";
- /** Manage Google Analytics Account users by email address */
- static const AnalyticsManageUsersScope = "https://www.googleapis.com/auth/analytics.manage.users";
+ /// Manage Google Analytics Account users by email address
+ static const AnalyticsManageUsersScope =
+ "https://www.googleapis.com/auth/analytics.manage.users";
- /** View Google Analytics user permissions */
- static const AnalyticsManageUsersReadonlyScope = "https://www.googleapis.com/auth/analytics.manage.users.readonly";
+ /// View Google Analytics user permissions
+ static const AnalyticsManageUsersReadonlyScope =
+ "https://www.googleapis.com/auth/analytics.manage.users.readonly";
- /**
- * Create a new Google Analytics account along with its default property and
- * view
- */
- static const AnalyticsProvisionScope = "https://www.googleapis.com/auth/analytics.provision";
-
- /** View your Google Analytics data */
- static const AnalyticsReadonlyScope = "https://www.googleapis.com/auth/analytics.readonly";
+ /// Create a new Google Analytics account along with its default property and
+ /// view
+ static const AnalyticsProvisionScope =
+ "https://www.googleapis.com/auth/analytics.provision";
+ /// View your Google Analytics data
+ static const AnalyticsReadonlyScope =
+ "https://www.googleapis.com/auth/analytics.readonly";
final commons.ApiRequester _requester;
DataResourceApi get data => new DataResourceApi(_requester);
ManagementResourceApi get management => new ManagementResourceApi(_requester);
MetadataResourceApi get metadata => new MetadataResourceApi(_requester);
- ProvisioningResourceApi get provisioning => new ProvisioningResourceApi(_requester);
+ ProvisioningResourceApi get provisioning =>
+ new ProvisioningResourceApi(_requester);
- AnalyticsApi(http.Client client, {core.String rootUrl: "https://www.googleapis.com/", core.String servicePath: "analytics/v3/"}) :
- _requester = new commons.ApiRequester(client, rootUrl, servicePath, USER_AGENT);
+ AnalyticsApi(http.Client client,
+ {core.String rootUrl: "https://www.googleapis.com/",
+ core.String servicePath: "analytics/v3/"})
+ : _requester =
+ new commons.ApiRequester(client, rootUrl, servicePath, USER_AGENT);
}
-
class DataResourceApi {
final commons.ApiRequester _requester;
DataGaResourceApi get ga => new DataGaResourceApi(_requester);
DataMcfResourceApi get mcf => new DataMcfResourceApi(_requester);
- DataRealtimeResourceApi get realtime => new DataRealtimeResourceApi(_requester);
+ DataRealtimeResourceApi get realtime =>
+ new DataRealtimeResourceApi(_requester);
- DataResourceApi(commons.ApiRequester client) :
- _requester = client;
+ DataResourceApi(commons.ApiRequester client) : _requester = client;
}
-
class DataGaResourceApi {
final commons.ApiRequester _requester;
- DataGaResourceApi(commons.ApiRequester client) :
- _requester = client;
-
- /**
- * Returns Analytics data for a view (profile).
- *
- * Request parameters:
- *
- * [ids] - Unique table ID for retrieving Analytics data. Table ID is of the
- * form ga:XXXX, where XXXX is the Analytics view (profile) ID.
- * Value must have pattern "ga:[0-9]+".
- *
- * [start_date] - Start date for fetching Analytics data. Requests can specify
- * a start date formatted as YYYY-MM-DD, or as a relative date (e.g., today,
- * yesterday, or 7daysAgo). The default value is 7daysAgo.
- * Value must have pattern
- * "[0-9]{4}-[0-9]{2}-[0-9]{2}|today|yesterday|[0-9]+(daysAgo)".
- *
- * [end_date] - End date for fetching Analytics data. Request can should
- * specify an end date formatted as YYYY-MM-DD, or as a relative date (e.g.,
- * today, yesterday, or 7daysAgo). The default value is yesterday.
- * Value must have pattern
- * "[0-9]{4}-[0-9]{2}-[0-9]{2}|today|yesterday|[0-9]+(daysAgo)".
- *
- * [metrics] - A comma-separated list of Analytics metrics. E.g.,
- * 'ga:sessions,ga:pageviews'. At least one metric must be specified.
- * Value must have pattern "ga:.+".
- *
- * [dimensions] - A comma-separated list of Analytics dimensions. E.g.,
- * 'ga:browser,ga:city'.
- * Value must have pattern "(ga:.+)?".
- *
- * [filters] - A comma-separated list of dimension or metric filters to be
- * applied to Analytics data.
- * Value must have pattern "ga:.+".
- *
- * [include_empty_rows] - The response will include empty rows if this
- * parameter is set to true, the default is true
- *
- * [max_results] - The maximum number of entries to include in this feed.
- *
- * [output] - The selected format for the response. Default format is JSON.
- * Possible string values are:
- * - "dataTable" : Returns the response in Google Charts Data Table format.
- * This is useful in creating visualization using Google Charts.
- * - "json" : Returns the response in standard JSON format.
- *
- * [samplingLevel] - The desired sampling level.
- * Possible string values are:
- * - "DEFAULT" : Returns response with a sample size that balances speed and
- * accuracy.
- * - "FASTER" : Returns a fast response with a smaller sample size.
- * - "HIGHER_PRECISION" : Returns a more accurate response using a large
- * sample size, but this may result in the response being slower.
- *
- * [segment] - An Analytics segment to be applied to data.
- *
- * [sort] - A comma-separated list of dimensions or metrics that determine the
- * sort order for Analytics data.
- * Value must have pattern "(-)?ga:.+".
- *
- * [start_index] - An index of the first entity to retrieve. Use this
- * parameter as a pagination mechanism along with the max-results parameter.
- *
- * Completes with a [GaData].
- *
- * Completes with a [commons.ApiRequestError] if the API endpoint returned an
- * error.
- *
- * If the used [http.Client] completes with an error when making a REST call,
- * this method will complete with the same error.
- */
- async.Future<GaData> get(core.String ids, core.String start_date, core.String end_date, core.String metrics, {core.String dimensions, core.String filters, core.bool include_empty_rows, core.int max_results, core.String output, core.String samplingLevel, core.String segment, core.String sort, core.int start_index}) {
+ DataGaResourceApi(commons.ApiRequester client) : _requester = client;
+
+ /// Returns Analytics data for a view (profile).
+ ///
+ /// Request parameters:
+ ///
+ /// [ids] - Unique table ID for retrieving Analytics data. Table ID is of the
+ /// form ga:XXXX, where XXXX is the Analytics view (profile) ID.
+ /// Value must have pattern "ga:[0-9]+".
+ ///
+ /// [start_date] - Start date for fetching Analytics data. Requests can
+ /// specify a start date formatted as YYYY-MM-DD, or as a relative date
+ /// (e.g., today, yesterday, or 7daysAgo). The default value is 7daysAgo.
+ /// Value must have pattern
+ /// "[0-9]{4}-[0-9]{2}-[0-9]{2}|today|yesterday|[0-9]+(daysAgo)".
+ ///
+ /// [end_date] - End date for fetching Analytics data. Request can should
+ /// specify an end date formatted as YYYY-MM-DD, or as a relative date (e.g.,
+ /// today, yesterday, or 7daysAgo). The default value is yesterday.
+ /// Value must have pattern
+ /// "[0-9]{4}-[0-9]{2}-[0-9]{2}|today|yesterday|[0-9]+(daysAgo)".
+ ///
+ /// [metrics] - A comma-separated list of Analytics metrics. E.g.,
+ /// 'ga:sessions,ga:pageviews'. At least one metric must be specified.
+ /// Value must have pattern "ga:.+".
+ ///
+ /// [dimensions] - A comma-separated list of Analytics dimensions. E.g.,
+ /// 'ga:browser,ga:city'.
+ /// Value must have pattern "(ga:.+)?".
+ ///
+ /// [filters] - A comma-separated list of dimension or metric filters to be
+ /// applied to Analytics data.
+ /// Value must have pattern "ga:.+".
+ ///
+ /// [include_empty_rows] - The response will include empty rows if this
+ /// parameter is set to true, the default is true
+ ///
+ /// [max_results] - The maximum number of entries to include in this feed.
+ ///
+ /// [output] - The selected format for the response. Default format is JSON.
+ /// Possible string values are:
+ /// - "dataTable" : Returns the response in Google Charts Data Table format.
+ /// This is useful in creating visualization using Google Charts.
+ /// - "json" : Returns the response in standard JSON format.
+ ///
+ /// [samplingLevel] - The desired sampling level.
+ /// Possible string values are:
+ /// - "DEFAULT" : Returns response with a sample size that balances speed and
+ /// accuracy.
+ /// - "FASTER" : Returns a fast response with a smaller sample size.
+ /// - "HIGHER_PRECISION" : Returns a more accurate response using a large
+ /// sample size, but this may result in the response being slower.
+ ///
+ /// [segment] - An Analytics segment to be applied to data.
+ ///
+ /// [sort] - A comma-separated list of dimensions or metrics that determine
+ /// the sort order for Analytics data.
+ /// Value must have pattern "(-)?ga:.+".
+ ///
+ /// [start_index] - An index of the first entity to retrieve. Use this
+ /// parameter as a pagination mechanism along with the max-results parameter.
+ ///
+ /// Completes with a [GaData].
+ ///
+ /// Completes with a [commons.ApiRequestError] if the API endpoint returned
+ /// an error.
+ ///
+ /// If the used [http.Client] completes with an error when making a REST
+ /// call, this method will complete with the same error.
+ async.Future<GaData> get(core.String ids, core.String start_date,
+ core.String end_date, core.String metrics,
+ {core.String dimensions,
+ core.String filters,
+ core.bool include_empty_rows,
+ core.int max_results,
+ core.String output,
+ core.String samplingLevel,
+ core.String segment,
+ core.String sort,
+ core.int start_index}) {
var _url = null;
var _queryParams = new core.Map();
var _uploadMedia = null;
@@ -193,85 +210,86 @@ class DataGaResourceApi {
_url = 'data/ga';
- var _response = _requester.request(_url,
- "GET",
- body: _body,
- queryParams: _queryParams,
- uploadOptions: _uploadOptions,
- uploadMedia: _uploadMedia,
- downloadOptions: _downloadOptions);
+ var _response = _requester.request(_url, "GET",
+ body: _body,
+ queryParams: _queryParams,
+ uploadOptions: _uploadOptions,
+ uploadMedia: _uploadMedia,
+ downloadOptions: _downloadOptions);
return _response.then((data) => new GaData.fromJson(data));
}
-
}
-
class DataMcfResourceApi {
final commons.ApiRequester _requester;
- DataMcfResourceApi(commons.ApiRequester client) :
- _requester = client;
-
- /**
- * Returns Analytics Multi-Channel Funnels data for a view (profile).
- *
- * Request parameters:
- *
- * [ids] - Unique table ID for retrieving Analytics data. Table ID is of the
- * form ga:XXXX, where XXXX is the Analytics view (profile) ID.
- * Value must have pattern "ga:[0-9]+".
- *
- * [start_date] - Start date for fetching Analytics data. Requests can specify
- * a start date formatted as YYYY-MM-DD, or as a relative date (e.g., today,
- * yesterday, or 7daysAgo). The default value is 7daysAgo.
- * Value must have pattern
- * "[0-9]{4}-[0-9]{2}-[0-9]{2}|today|yesterday|[0-9]+(daysAgo)".
- *
- * [end_date] - End date for fetching Analytics data. Requests can specify a
- * start date formatted as YYYY-MM-DD, or as a relative date (e.g., today,
- * yesterday, or 7daysAgo). The default value is 7daysAgo.
- * Value must have pattern
- * "[0-9]{4}-[0-9]{2}-[0-9]{2}|today|yesterday|[0-9]+(daysAgo)".
- *
- * [metrics] - A comma-separated list of Multi-Channel Funnels metrics. E.g.,
- * 'mcf:totalConversions,mcf:totalConversionValue'. At least one metric must
- * be specified.
- * Value must have pattern "mcf:.+".
- *
- * [dimensions] - A comma-separated list of Multi-Channel Funnels dimensions.
- * E.g., 'mcf:source,mcf:medium'.
- * Value must have pattern "(mcf:.+)?".
- *
- * [filters] - A comma-separated list of dimension or metric filters to be
- * applied to the Analytics data.
- * Value must have pattern "mcf:.+".
- *
- * [max_results] - The maximum number of entries to include in this feed.
- *
- * [samplingLevel] - The desired sampling level.
- * Possible string values are:
- * - "DEFAULT" : Returns response with a sample size that balances speed and
- * accuracy.
- * - "FASTER" : Returns a fast response with a smaller sample size.
- * - "HIGHER_PRECISION" : Returns a more accurate response using a large
- * sample size, but this may result in the response being slower.
- *
- * [sort] - A comma-separated list of dimensions or metrics that determine the
- * sort order for the Analytics data.
- * Value must have pattern "(-)?mcf:.+".
- *
- * [start_index] - An index of the first entity to retrieve. Use this
- * parameter as a pagination mechanism along with the max-results parameter.
- *
- * Completes with a [McfData].
- *
- * Completes with a [commons.ApiRequestError] if the API endpoint returned an
- * error.
- *
- * If the used [http.Client] completes with an error when making a REST call,
- * this method will complete with the same error.
- */
- async.Future<McfData> get(core.String ids, core.String start_date, core.String end_date, core.String metrics, {core.String dimensions, core.String filters, core.int max_results, core.String samplingLevel, core.String sort, core.int start_index}) {
+ DataMcfResourceApi(commons.ApiRequester client) : _requester = client;
+
+ /// Returns Analytics Multi-Channel Funnels data for a view (profile).
+ ///
+ /// Request parameters:
+ ///
+ /// [ids] - Unique table ID for retrieving Analytics data. Table ID is of the
+ /// form ga:XXXX, where XXXX is the Analytics view (profile) ID.
+ /// Value must have pattern "ga:[0-9]+".
+ ///
+ /// [start_date] - Start date for fetching Analytics data. Requests can
+ /// specify a start date formatted as YYYY-MM-DD, or as a relative date
+ /// (e.g., today, yesterday, or 7daysAgo). The default value is 7daysAgo.
+ /// Value must have pattern
+ /// "[0-9]{4}-[0-9]{2}-[0-9]{2}|today|yesterday|[0-9]+(daysAgo)".
+ ///
+ /// [end_date] - End date for fetching Analytics data. Requests can specify a
+ /// start date formatted as YYYY-MM-DD, or as a relative date (e.g., today,
+ /// yesterday, or 7daysAgo). The default value is 7daysAgo.
+ /// Value must have pattern
+ /// "[0-9]{4}-[0-9]{2}-[0-9]{2}|today|yesterday|[0-9]+(daysAgo)".
+ ///
+ /// [metrics] - A comma-separated list of Multi-Channel Funnels metrics.
+ /// E.g., 'mcf:totalConversions,mcf:totalConversionValue'. At least one
+ /// metric must be specified.
+ /// Value must have pattern "mcf:.+".
+ ///
+ /// [dimensions] - A comma-separated list of Multi-Channel Funnels
+ /// dimensions. E.g., 'mcf:source,mcf:medium'.
+ /// Value must have pattern "(mcf:.+)?".
+ ///
+ /// [filters] - A comma-separated list of dimension or metric filters to be
+ /// applied to the Analytics data.
+ /// Value must have pattern "mcf:.+".
+ ///
+ /// [max_results] - The maximum number of entries to include in this feed.
+ ///
+ /// [samplingLevel] - The desired sampling level.
+ /// Possible string values are:
+ /// - "DEFAULT" : Returns response with a sample size that balances speed and
+ /// accuracy.
+ /// - "FASTER" : Returns a fast response with a smaller sample size.
+ /// - "HIGHER_PRECISION" : Returns a more accurate response using a large
+ /// sample size, but this may result in the response being slower.
+ ///
+ /// [sort] - A comma-separated list of dimensions or metrics that determine
+ /// the sort order for the Analytics data.
+ /// Value must have pattern "(-)?mcf:.+".
+ ///
+ /// [start_index] - An index of the first entity to retrieve. Use this
+ /// parameter as a pagination mechanism along with the max-results parameter.
+ ///
+ /// Completes with a [McfData].
+ ///
+ /// Completes with a [commons.ApiRequestError] if the API endpoint returned
+ /// an error.
+ ///
+ /// If the used [http.Client] completes with an error when making a REST
+ /// call, this method will complete with the same error.
+ async.Future<McfData> get(core.String ids, core.String start_date,
+ core.String end_date, core.String metrics,
+ {core.String dimensions,
+ core.String filters,
+ core.int max_results,
+ core.String samplingLevel,
+ core.String sort,
+ core.int start_index}) {
var _url = null;
var _queryParams = new core.Map();
var _uploadMedia = null;
@@ -316,61 +334,59 @@ class DataMcfResourceApi {
_url = 'data/mcf';
- var _response = _requester.request(_url,
- "GET",
- body: _body,
- queryParams: _queryParams,
- uploadOptions: _uploadOptions,
- uploadMedia: _uploadMedia,
- downloadOptions: _downloadOptions);
+ var _response = _requester.request(_url, "GET",
+ body: _body,
+ queryParams: _queryParams,
+ uploadOptions: _uploadOptions,
+ uploadMedia: _uploadMedia,
+ downloadOptions: _downloadOptions);
return _response.then((data) => new McfData.fromJson(data));
}
-
}
-
class DataRealtimeResourceApi {
final commons.ApiRequester _requester;
- DataRealtimeResourceApi(commons.ApiRequester client) :
- _requester = client;
-
- /**
- * Returns real time data for a view (profile).
- *
- * Request parameters:
- *
- * [ids] - Unique table ID for retrieving real time data. Table ID is of the
- * form ga:XXXX, where XXXX is the Analytics view (profile) ID.
- * Value must have pattern "ga:[0-9]+".
- *
- * [metrics] - A comma-separated list of real time metrics. E.g.,
- * 'rt:activeUsers'. At least one metric must be specified.
- * Value must have pattern "(ga:.+)|(rt:.+)".
- *
- * [dimensions] - A comma-separated list of real time dimensions. E.g.,
- * 'rt:medium,rt:city'.
- * Value must have pattern "(ga:.+)|(rt:.+)".
- *
- * [filters] - A comma-separated list of dimension or metric filters to be
- * applied to real time data.
- * Value must have pattern "(ga:.+)|(rt:.+)".
- *
- * [max_results] - The maximum number of entries to include in this feed.
- *
- * [sort] - A comma-separated list of dimensions or metrics that determine the
- * sort order for real time data.
- * Value must have pattern "(-)?((ga:.+)|(rt:.+))".
- *
- * Completes with a [RealtimeData].
- *
- * Completes with a [commons.ApiRequestError] if the API endpoint returned an
- * error.
- *
- * If the used [http.Client] completes with an error when making a REST call,
- * this method will complete with the same error.
- */
- async.Future<RealtimeData> get(core.String ids, core.String metrics, {core.String dimensions, core.String filters, core.int max_results, core.String sort}) {
+ DataRealtimeResourceApi(commons.ApiRequester client) : _requester = client;
+
+ /// Returns real time data for a view (profile).
+ ///
+ /// Request parameters:
+ ///
+ /// [ids] - Unique table ID for retrieving real time data. Table ID is of the
+ /// form ga:XXXX, where XXXX is the Analytics view (profile) ID.
+ /// Value must have pattern "ga:[0-9]+".
+ ///
+ /// [metrics] - A comma-separated list of real time metrics. E.g.,
+ /// 'rt:activeUsers'. At least one metric must be specified.
+ /// Value must have pattern "(ga:.+)|(rt:.+)".
+ ///
+ /// [dimensions] - A comma-separated list of real time dimensions. E.g.,
+ /// 'rt:medium,rt:city'.
+ /// Value must have pattern "(ga:.+)|(rt:.+)".
+ ///
+ /// [filters] - A comma-separated list of dimension or metric filters to be
+ /// applied to real time data.
+ /// Value must have pattern "(ga:.+)|(rt:.+)".
+ ///
+ /// [max_results] - The maximum number of entries to include in this feed.
+ ///
+ /// [sort] - A comma-separated list of dimensions or metrics that determine
+ /// the sort order for real time data.
+ /// Value must have pattern "(-)?((ga:.+)|(rt:.+))".
+ ///
+ /// Completes with a [RealtimeData].
+ ///
+ /// Completes with a [commons.ApiRequestError] if the API endpoint returned
+ /// an error.
+ ///
+ /// If the used [http.Client] completes with an error when making a REST
+ /// call, this method will complete with the same error.
+ async.Future<RealtimeData> get(core.String ids, core.String metrics,
+ {core.String dimensions,
+ core.String filters,
+ core.int max_results,
+ core.String sort}) {
var _url = null;
var _queryParams = new core.Map();
var _uploadMedia = null;
@@ -401,74 +417,87 @@ class DataRealtimeResourceApi {
_url = 'data/realtime';
- var _response = _requester.request(_url,
- "GET",
- body: _body,
- queryParams: _queryParams,
- uploadOptions: _uploadOptions,
- uploadMedia: _uploadMedia,
- downloadOptions: _downloadOptions);
+ var _response = _requester.request(_url, "GET",
+ body: _body,
+ queryParams: _queryParams,
+ uploadOptions: _uploadOptions,
+ uploadMedia: _uploadMedia,
+ downloadOptions: _downloadOptions);
return _response.then((data) => new RealtimeData.fromJson(data));
}
-
}
-
class ManagementResourceApi {
final commons.ApiRequester _requester;
- ManagementAccountSummariesResourceApi get accountSummaries => new ManagementAccountSummariesResourceApi(_requester);
- ManagementAccountUserLinksResourceApi get accountUserLinks => new ManagementAccountUserLinksResourceApi(_requester);
- ManagementAccountsResourceApi get accounts => new ManagementAccountsResourceApi(_requester);
- ManagementCustomDataSourcesResourceApi get customDataSources => new ManagementCustomDataSourcesResourceApi(_requester);
- ManagementCustomDimensionsResourceApi get customDimensions => new ManagementCustomDimensionsResourceApi(_requester);
- ManagementCustomMetricsResourceApi get customMetrics => new ManagementCustomMetricsResourceApi(_requester);
- ManagementExperimentsResourceApi get experiments => new ManagementExperimentsResourceApi(_requester);
- ManagementFiltersResourceApi get filters => new ManagementFiltersResourceApi(_requester);
- ManagementGoalsResourceApi get goals => new ManagementGoalsResourceApi(_requester);
- ManagementProfileFilterLinksResourceApi get profileFilterLinks => new ManagementProfileFilterLinksResourceApi(_requester);
- ManagementProfileUserLinksResourceApi get profileUserLinks => new ManagementProfileUserLinksResourceApi(_requester);
- ManagementProfilesResourceApi get profiles => new ManagementProfilesResourceApi(_requester);
- ManagementRemarketingAudienceResourceApi get remarketingAudience => new ManagementRemarketingAudienceResourceApi(_requester);
- ManagementSegmentsResourceApi get segments => new ManagementSegmentsResourceApi(_requester);
- ManagementUnsampledReportsResourceApi get unsampledReports => new ManagementUnsampledReportsResourceApi(_requester);
- ManagementUploadsResourceApi get uploads => new ManagementUploadsResourceApi(_requester);
- ManagementWebPropertyAdWordsLinksResourceApi get webPropertyAdWordsLinks => new ManagementWebPropertyAdWordsLinksResourceApi(_requester);
- ManagementWebpropertiesResourceApi get webproperties => new ManagementWebpropertiesResourceApi(_requester);
- ManagementWebpropertyUserLinksResourceApi get webpropertyUserLinks => new ManagementWebpropertyUserLinksResourceApi(_requester);
-
- ManagementResourceApi(commons.ApiRequester client) :
- _requester = client;
+ ManagementAccountSummariesResourceApi get accountSummaries =>
+ new ManagementAccountSummariesResourceApi(_requester);
+ ManagementAccountUserLinksResourceApi get accountUserLinks =>
+ new ManagementAccountUserLinksResourceApi(_requester);
+ ManagementAccountsResourceApi get accounts =>
+ new ManagementAccountsResourceApi(_requester);
+ ManagementCustomDataSourcesResourceApi get customDataSources =>
+ new ManagementCustomDataSourcesResourceApi(_requester);
+ ManagementCustomDimensionsResourceApi get customDimensions =>
+ new ManagementCustomDimensionsResourceApi(_requester);
+ ManagementCustomMetricsResourceApi get customMetrics =>
+ new ManagementCustomMetricsResourceApi(_requester);
+ ManagementExperimentsResourceApi get experiments =>
+ new ManagementExperimentsResourceApi(_requester);
+ ManagementFiltersResourceApi get filters =>
+ new ManagementFiltersResourceApi(_requester);
+ ManagementGoalsResourceApi get goals =>
+ new ManagementGoalsResourceApi(_requester);
+ ManagementProfileFilterLinksResourceApi get profileFilterLinks =>
+ new ManagementProfileFilterLinksResourceApi(_requester);
+ ManagementProfileUserLinksResourceApi get profileUserLinks =>
+ new ManagementProfileUserLinksResourceApi(_requester);
+ ManagementProfilesResourceApi get profiles =>
+ new ManagementProfilesResourceApi(_requester);
+ ManagementRemarketingAudienceResourceApi get remarketingAudience =>
+ new ManagementRemarketingAudienceResourceApi(_requester);
+ ManagementSegmentsResourceApi get segments =>
+ new ManagementSegmentsResourceApi(_requester);
+ ManagementUnsampledReportsResourceApi get unsampledReports =>
+ new ManagementUnsampledReportsResourceApi(_requester);
+ ManagementUploadsResourceApi get uploads =>
+ new ManagementUploadsResourceApi(_requester);
+ ManagementWebPropertyAdWordsLinksResourceApi get webPropertyAdWordsLinks =>
+ new ManagementWebPropertyAdWordsLinksResourceApi(_requester);
+ ManagementWebpropertiesResourceApi get webproperties =>
+ new ManagementWebpropertiesResourceApi(_requester);
+ ManagementWebpropertyUserLinksResourceApi get webpropertyUserLinks =>
+ new ManagementWebpropertyUserLinksResourceApi(_requester);
+
+ ManagementResourceApi(commons.ApiRequester client) : _requester = client;
}
-
class ManagementAccountSummariesResourceApi {
final commons.ApiRequester _requester;
- ManagementAccountSummariesResourceApi(commons.ApiRequester client) :
- _requester = client;
-
- /**
- * Lists account summaries (lightweight tree comprised of
- * accounts/properties/profiles) to which the user has access.
- *
- * Request parameters:
- *
- * [max_results] - The maximum number of account summaries to include in this
- * response, where the largest acceptable value is 1000.
- *
- * [start_index] - An index of the first entity to retrieve. Use this
- * parameter as a pagination mechanism along with the max-results parameter.
- *
- * Completes with a [AccountSummaries].
- *
- * Completes with a [commons.ApiRequestError] if the API endpoint returned an
- * error.
- *
- * If the used [http.Client] completes with an error when making a REST call,
- * this method will complete with the same error.
- */
- async.Future<AccountSummaries> list({core.int max_results, core.int start_index}) {
+ ManagementAccountSummariesResourceApi(commons.ApiRequester client)
+ : _requester = client;
+
+ /// Lists account summaries (lightweight tree comprised of
+ /// accounts/properties/profiles) to which the user has access.
+ ///
+ /// Request parameters:
+ ///
+ /// [max_results] - The maximum number of account summaries to include in
+ /// this response, where the largest acceptable value is 1000.
+ ///
+ /// [start_index] - An index of the first entity to retrieve. Use this
+ /// parameter as a pagination mechanism along with the max-results parameter.
+ ///
+ /// Completes with a [AccountSummaries].
+ ///
+ /// Completes with a [commons.ApiRequestError] if the API endpoint returned
+ /// an error.
+ ///
+ /// If the used [http.Client] completes with an error when making a REST
+ /// call, this method will complete with the same error.
+ async.Future<AccountSummaries> list(
+ {core.int max_results, core.int start_index}) {
var _url = null;
var _queryParams = new core.Map();
var _uploadMedia = null;
@@ -485,40 +514,35 @@ class ManagementAccountSummariesResourceApi {
_url = 'management/accountSummaries';
- var _response = _requester.request(_url,
- "GET",
- body: _body,
- queryParams: _queryParams,
- uploadOptions: _uploadOptions,
- uploadMedia: _uploadMedia,
- downloadOptions: _downloadOptions);
+ var _response = _requester.request(_url, "GET",
+ body: _body,
+ queryParams: _queryParams,
+ uploadOptions: _uploadOptions,
+ uploadMedia: _uploadMedia,
+ downloadOptions: _downloadOptions);
return _response.then((data) => new AccountSummaries.fromJson(data));
}
-
}
-
class ManagementAccountUserLinksResourceApi {
final commons.ApiRequester _requester;
- ManagementAccountUserLinksResourceApi(commons.ApiRequester client) :
- _requester = client;
-
- /**
- * Removes a user from the given account.
- *
- * Request parameters:
- *
- * [accountId] - Account ID to delete the user link for.
- *
- * [linkId] - Link ID to delete the user link for.
- *
- * Completes with a [commons.ApiRequestError] if the API endpoint returned an
- * error.
- *
- * If the used [http.Client] completes with an error when making a REST call,
- * this method will complete with the same error.
- */
+ ManagementAccountUserLinksResourceApi(commons.ApiRequester client)
+ : _requester = client;
+
+ /// Removes a user from the given account.
+ ///
+ /// Request parameters:
+ ///
+ /// [accountId] - Account ID to delete the user link for.
+ ///
+ /// [linkId] - Link ID to delete the user link for.
+ ///
+ /// Completes with a [commons.ApiRequestError] if the API endpoint returned
+ /// an error.
+ ///
+ /// If the used [http.Client] completes with an error when making a REST
+ /// call, this method will complete with the same error.
async.Future delete(core.String accountId, core.String linkId) {
var _url = null;
var _queryParams = new core.Map();
@@ -536,36 +560,37 @@ class ManagementAccountUserLinksResourceApi {
_downloadOptions = null;
- _url = 'management/accounts/' + commons.Escaper.ecapeVariable('$accountId') + '/entityUserLinks/' + commons.Escaper.ecapeVariable('$linkId');
-
- var _response = _requester.request(_url,
- "DELETE",
- body: _body,
- queryParams: _queryParams,
- uploadOptions: _uploadOptions,
- uploadMedia: _uploadMedia,
- downloadOptions: _downloadOptions);
+ _url = 'management/accounts/' +
+ commons.Escaper.ecapeVariable('$accountId') +
+ '/entityUserLinks/' +
+ commons.Escaper.ecapeVariable('$linkId');
+
+ var _response = _requester.request(_url, "DELETE",
+ body: _body,
+ queryParams: _queryParams,
+ uploadOptions: _uploadOptions,
+ uploadMedia: _uploadMedia,
+ downloadOptions: _downloadOptions);
return _response.then((data) => null);
}
- /**
- * Adds a new user to the given account.
- *
- * [request] - The metadata request object.
- *
- * Request parameters:
- *
- * [accountId] - Account ID to create the user link for.
- *
- * Completes with a [EntityUserLink].
- *
- * Completes with a [commons.ApiRequestError] if the API endpoint returned an
- * error.
- *
- * If the used [http.Client] completes with an error when making a REST call,
- * this method will complete with the same error.
- */
- async.Future<EntityUserLink> insert(EntityUserLink request, core.String accountId) {
+ /// Adds a new user to the given account.
+ ///
+ /// [request] - The metadata request object.
+ ///
+ /// Request parameters:
+ ///
+ /// [accountId] - Account ID to create the user link for.
+ ///
+ /// Completes with a [EntityUserLink].
+ ///
+ /// Completes with a [commons.ApiRequestError] if the API endpoint returned
+ /// an error.
+ ///
+ /// If the used [http.Client] completes with an error when making a REST
+ /// call, this method will complete with the same error.
+ async.Future<EntityUserLink> insert(
+ EntityUserLink request, core.String accountId) {
var _url = null;
var _queryParams = new core.Map();
var _uploadMedia = null;
@@ -580,41 +605,41 @@ class ManagementAccountUserLinksResourceApi {
throw new core.ArgumentError("Parameter accountId is required.");
}
- _url = 'management/accounts/' + commons.Escaper.ecapeVariable('$accountId') + '/entityUserLinks';
+ _url = 'management/accounts/' +
+ commons.Escaper.ecapeVariable('$accountId') +
+ '/entityUserLinks';
- var _response = _requester.request(_url,
- "POST",
- body: _body,
- queryParams: _queryParams,
- uploadOptions: _uploadOptions,
- uploadMedia: _uploadMedia,
- downloadOptions: _downloadOptions);
+ var _response = _requester.request(_url, "POST",
+ body: _body,
+ queryParams: _queryParams,
+ uploadOptions: _uploadOptions,
+ uploadMedia: _uploadMedia,
+ downloadOptions: _downloadOptions);
return _response.then((data) => new EntityUserLink.fromJson(data));
}
- /**
- * Lists account-user links for a given account.
- *
- * Request parameters:
- *
- * [accountId] - Account ID to retrieve the user links for.
- *
- * [max_results] - The maximum number of account-user links to include in this
- * response.
- *
- * [start_index] - An index of the first account-user link to retrieve. Use
- * this parameter as a pagination mechanism along with the max-results
- * parameter.
- *
- * Completes with a [EntityUserLinks].
- *
- * Completes with a [commons.ApiRequestError] if the API endpoint returned an
- * error.
- *
- * If the used [http.Client] completes with an error when making a REST call,
- * this method will complete with the same error.
- */
- async.Future<EntityUserLinks> list(core.String accountId, {core.int max_results, core.int start_index}) {
+ /// Lists account-user links for a given account.
+ ///
+ /// Request parameters:
+ ///
+ /// [accountId] - Account ID to retrieve the user links for.
+ ///
+ /// [max_results] - The maximum number of account-user links to include in
+ /// this response.
+ ///
+ /// [start_index] - An index of the first account-user link to retrieve. Use
+ /// this parameter as a pagination mechanism along with the max-results
+ /// parameter.
+ ///
+ /// Completes with a [EntityUserLinks].
+ ///
+ /// Completes with a [commons.ApiRequestError] if the API endpoint returned
+ /// an error.
+ ///
+ /// If the used [http.Client] completes with an error when making a REST
+ /// call, this method will complete with the same error.
+ async.Future<EntityUserLinks> list(core.String accountId,
+ {core.int max_results, core.int start_index}) {
var _url = null;
var _queryParams = new core.Map();
var _uploadMedia = null;
@@ -632,38 +657,38 @@ class ManagementAccountUserLinksResourceApi {
_queryParams["start-index"] = ["${start_index}"];
}
- _url = 'management/accounts/' + commons.Escaper.ecapeVariable('$accountId') + '/entityUserLinks';
+ _url = 'management/accounts/' +
+ commons.Escaper.ecapeVariable('$accountId') +
+ '/entityUserLinks';
- var _response = _requester.request(_url,
- "GET",
- body: _body,
- queryParams: _queryParams,
- uploadOptions: _uploadOptions,
- uploadMedia: _uploadMedia,
- downloadOptions: _downloadOptions);
+ var _response = _requester.request(_url, "GET",
+ body: _body,
+ queryParams: _queryParams,
+ uploadOptions: _uploadOptions,
+ uploadMedia: _uploadMedia,
+ downloadOptions: _downloadOptions);
return _response.then((data) => new EntityUserLinks.fromJson(data));
}
- /**
- * Updates permissions for an existing user on the given account.
- *
- * [request] - The metadata request object.
- *
- * Request parameters:
- *
- * [accountId] - Account ID to update the account-user link for.
- *
- * [linkId] - Link ID to update the account-user link for.
- *
- * Completes with a [EntityUserLink].
- *
- * Completes with a [commons.ApiRequestError] if the API endpoint returned an
- * error.
- *
- * If the used [http.Client] completes with an error when making a REST call,
- * this method will complete with the same error.
- */
- async.Future<EntityUserLink> update(EntityUserLink request, core.String accountId, core.String linkId) {
+ /// Updates permissions for an existing user on the given account.
+ ///
+ /// [request] - The metadata request object.
+ ///
+ /// Request parameters:
+ ///
+ /// [accountId] - Account ID to update the account-user link for.
+ ///
+ /// [linkId] - Link ID to update the account-user link for.
+ ///
+ /// Completes with a [EntityUserLink].
+ ///
+ /// Completes with a [commons.ApiRequestError] if the API endpoint returned
+ /// an error.
+ ///
+ /// If the used [http.Client] completes with an error when making a REST
+ /// call, this method will complete with the same error.
+ async.Future<EntityUserLink> update(
+ EntityUserLink request, core.String accountId, core.String linkId) {
var _url = null;
var _queryParams = new core.Map();
var _uploadMedia = null;
@@ -681,45 +706,44 @@ class ManagementAccountUserLinksResourceApi {
throw new core.ArgumentError("Parameter linkId is required.");
}
- _url = 'management/accounts/' + commons.Escaper.ecapeVariable('$accountId') + '/entityUserLinks/' + commons.Escaper.ecapeVariable('$linkId');
+ _url = 'management/accounts/' +
+ commons.Escaper.ecapeVariable('$accountId') +
+ '/entityUserLinks/' +
+ commons.Escaper.ecapeVariable('$linkId');
- var _response = _requester.request(_url,
- "PUT",
- body: _body,
- queryParams: _queryParams,
- uploadOptions: _uploadOptions,
- uploadMedia: _uploadMedia,
- downloadOptions: _downloadOptions);
+ var _response = _requester.request(_url, "PUT",
+ body: _body,
+ queryParams: _queryParams,
+ uploadOptions: _uploadOptions,
+ uploadMedia: _uploadMedia,
+ downloadOptions: _downloadOptions);
return _response.then((data) => new EntityUserLink.fromJson(data));
}
-
}
-
class ManagementAccountsResourceApi {
final commons.ApiRequester _requester;
- ManagementAccountsResourceApi(commons.ApiRequester client) :
- _requester = client;
-
- /**
- * Lists all accounts to which the user has access.
- *
- * Request parameters:
- *
- * [max_results] - The maximum number of accounts to include in this response.
- *
- * [start_index] - An index of the first account to retrieve. Use this
- * parameter as a pagination mechanism along with the max-results parameter.
- *
- * Completes with a [Accounts].
- *
- * Completes with a [commons.ApiRequestError] if the API endpoint returned an
- * error.
- *
- * If the used [http.Client] completes with an error when making a REST call,
- * this method will complete with the same error.
- */
+ ManagementAccountsResourceApi(commons.ApiRequester client)
+ : _requester = client;
+
+ /// Lists all accounts to which the user has access.
+ ///
+ /// Request parameters:
+ ///
+ /// [max_results] - The maximum number of accounts to include in this
+ /// response.
+ ///
+ /// [start_index] - An index of the first account to retrieve. Use this
+ /// parameter as a pagination mechanism along with the max-results parameter.
+ ///
+ /// Completes with a [Accounts].
+ ///
+ /// Completes with a [commons.ApiRequestError] if the API endpoint returned
+ /// an error.
+ ///
+ /// If the used [http.Client] completes with an error when making a REST
+ /// call, this method will complete with the same error.
async.Future<Accounts> list({core.int max_results, core.int start_index}) {
var _url = null;
var _queryParams = new core.Map();
@@ -737,52 +761,50 @@ class ManagementAccountsResourceApi {
_url = 'management/accounts';
- var _response = _requester.request(_url,
- "GET",
- body: _body,
- queryParams: _queryParams,
- uploadOptions: _uploadOptions,
- uploadMedia: _uploadMedia,
- downloadOptions: _downloadOptions);
+ var _response = _requester.request(_url, "GET",
+ body: _body,
+ queryParams: _queryParams,
+ uploadOptions: _uploadOptions,
+ uploadMedia: _uploadMedia,
+ downloadOptions: _downloadOptions);
return _response.then((data) => new Accounts.fromJson(data));
}
-
}
-
class ManagementCustomDataSourcesResourceApi {
final commons.ApiRequester _requester;
- ManagementCustomDataSourcesResourceApi(commons.ApiRequester client) :
- _requester = client;
-
- /**
- * List custom data sources to which the user has access.
- *
- * Request parameters:
- *
- * [accountId] - Account Id for the custom data sources to retrieve.
- * Value must have pattern "\d+".
- *
- * [webPropertyId] - Web property Id for the custom data sources to retrieve.
- * Value must have pattern "UA-(\d+)-(\d+)".
- *
- * [max_results] - The maximum number of custom data sources to include in
- * this response.
- *
- * [start_index] - A 1-based index of the first custom data source to
- * retrieve. Use this parameter as a pagination mechanism along with the
- * max-results parameter.
- *
- * Completes with a [CustomDataSources].
- *
- * Completes with a [commons.ApiRequestError] if the API endpoint returned an
- * error.
- *
- * If the used [http.Client] completes with an error when making a REST call,
- * this method will complete with the same error.
- */
- async.Future<CustomDataSources> list(core.String accountId, core.String webPropertyId, {core.int max_results, core.int start_index}) {
+ ManagementCustomDataSourcesResourceApi(commons.ApiRequester client)
+ : _requester = client;
+
+ /// List custom data sources to which the user has access.
+ ///
+ /// Request parameters:
+ ///
+ /// [accountId] - Account Id for the custom data sources to retrieve.
+ /// Value must have pattern "\d+".
+ ///
+ /// [webPropertyId] - Web property Id for the custom data sources to
+ /// retrieve.
+ /// Value must have pattern "UA-(\d+)-(\d+)".
+ ///
+ /// [max_results] - The maximum number of custom data sources to include in
+ /// this response.
+ ///
+ /// [start_index] - A 1-based index of the first custom data source to
+ /// retrieve. Use this parameter as a pagination mechanism along with the
+ /// max-results parameter.
+ ///
+ /// Completes with a [CustomDataSources].
+ ///
+ /// Completes with a [commons.ApiRequestError] if the API endpoint returned
+ /// an error.
+ ///
+ /// If the used [http.Client] completes with an error when making a REST
+ /// call, this method will complete with the same error.
+ async.Future<CustomDataSources> list(
+ core.String accountId, core.String webPropertyId,
+ {core.int max_results, core.int start_index}) {
var _url = null;
var _queryParams = new core.Map();
var _uploadMedia = null;
@@ -803,47 +825,47 @@ class ManagementCustomDataSourcesResourceApi {
_queryParams["start-index"] = ["${start_index}"];
}
- _url = 'management/accounts/' + commons.Escaper.ecapeVariable('$accountId') + '/webproperties/' + commons.Escaper.ecapeVariable('$webPropertyId') + '/customDataSources';
+ _url = 'management/accounts/' +
+ commons.Escaper.ecapeVariable('$accountId') +
+ '/webproperties/' +
+ commons.Escaper.ecapeVariable('$webPropertyId') +
+ '/customDataSources';
- var _response = _requester.request(_url,
- "GET",
- body: _body,
- queryParams: _queryParams,
- uploadOptions: _uploadOptions,
- uploadMedia: _uploadMedia,
- downloadOptions: _downloadOptions);
+ var _response = _requester.request(_url, "GET",
+ body: _body,
+ queryParams: _queryParams,
+ uploadOptions: _uploadOptions,
+ uploadMedia: _uploadMedia,
+ downloadOptions: _downloadOptions);
return _response.then((data) => new CustomDataSources.fromJson(data));
}
-
}
-
class ManagementCustomDimensionsResourceApi {
final commons.ApiRequester _requester;
- ManagementCustomDimensionsResourceApi(commons.ApiRequester client) :
- _requester = client;
-
- /**
- * Get a custom dimension to which the user has access.
- *
- * Request parameters:
- *
- * [accountId] - Account ID for the custom dimension to retrieve.
- *
- * [webPropertyId] - Web property ID for the custom dimension to retrieve.
- *
- * [customDimensionId] - The ID of the custom dimension to retrieve.
- *
- * Completes with a [CustomDimension].
- *
- * Completes with a [commons.ApiRequestError] if the API endpoint returned an
- * error.
- *
- * If the used [http.Client] completes with an error when making a REST call,
- * this method will complete with the same error.
- */
- async.Future<CustomDimension> get(core.String accountId, core.String webPropertyId, core.String customDimensionId) {
+ ManagementCustomDimensionsResourceApi(commons.ApiRequester client)
+ : _requester = client;
+
+ /// Get a custom dimension to which the user has access.
+ ///
+ /// Request parameters:
+ ///
+ /// [accountId] - Account ID for the custom dimension to retrieve.
+ ///
+ /// [webPropertyId] - Web property ID for the custom dimension to retrieve.
+ ///
+ /// [customDimensionId] - The ID of the custom dimension to retrieve.
+ ///
+ /// Completes with a [CustomDimension].
+ ///
+ /// Completes with a [commons.ApiRequestError] if the API endpoint returned
+ /// an error.
+ ///
+ /// If the used [http.Client] completes with an error when making a REST
+ /// call, this method will complete with the same error.
+ async.Future<CustomDimension> get(core.String accountId,
+ core.String webPropertyId, core.String customDimensionId) {
var _url = null;
var _queryParams = new core.Map();
var _uploadMedia = null;
@@ -861,38 +883,41 @@ class ManagementCustomDimensionsResourceApi {
throw new core.ArgumentError("Parameter customDimensionId is required.");
}
- _url = 'management/accounts/' + commons.Escaper.ecapeVariable('$accountId') + '/webproperties/' + commons.Escaper.ecapeVariable('$webPropertyId') + '/customDimensions/' + commons.Escaper.ecapeVariable('$customDimensionId');
+ _url = 'management/accounts/' +
+ commons.Escaper.ecapeVariable('$accountId') +
+ '/webproperties/' +
+ commons.Escaper.ecapeVariable('$webPropertyId') +
+ '/customDimensions/' +
+ commons.Escaper.ecapeVariable('$customDimensionId');
- var _response = _requester.request(_url,
- "GET",
- body: _body,
- queryParams: _queryParams,
- uploadOptions: _uploadOptions,
- uploadMedia: _uploadMedia,
- downloadOptions: _downloadOptions);
+ var _response = _requester.request(_url, "GET",
+ body: _body,
+ queryParams: _queryParams,
+ uploadOptions: _uploadOptions,
+ uploadMedia: _uploadMedia,
+ downloadOptions: _downloadOptions);
return _response.then((data) => new CustomDimension.fromJson(data));
}
- /**
- * Create a new custom dimension.
- *
- * [request] - The metadata request object.
- *
- * Request parameters:
- *
- * [accountId] - Account ID for the custom dimension to create.
- *
- * [webPropertyId] - Web property ID for the custom dimension to create.
- *
- * Completes with a [CustomDimension].
- *
- * Completes with a [commons.ApiRequestError] if the API endpoint returned an
- * error.
- *
- * If the used [http.Client] completes with an error when making a REST call,
- * this method will complete with the same error.
- */
- async.Future<CustomDimension> insert(CustomDimension request, core.String accountId, core.String webPropertyId) {
+ /// Create a new custom dimension.
+ ///
+ /// [request] - The metadata request object.
+ ///
+ /// Request parameters:
+ ///
+ /// [accountId] - Account ID for the custom dimension to create.
+ ///
+ /// [webPropertyId] - Web property ID for the custom dimension to create.
+ ///
+ /// Completes with a [CustomDimension].
+ ///
+ /// Completes with a [commons.ApiRequestError] if the API endpoint returned
+ /// an error.
+ ///
+ /// If the used [http.Client] completes with an error when making a REST
+ /// call, this method will complete with the same error.
+ async.Future<CustomDimension> insert(CustomDimension request,
+ core.String accountId, core.String webPropertyId) {
var _url = null;
var _queryParams = new core.Map();
var _uploadMedia = null;
@@ -910,42 +935,45 @@ class ManagementCustomDimensionsResourceApi {
throw new core.ArgumentError("Parameter webPropertyId is required.");
}
- _url = 'management/accounts/' + commons.Escaper.ecapeVariable('$accountId') + '/webproperties/' + commons.Escaper.ecapeVariable('$webPropertyId') + '/customDimensions';
+ _url = 'management/accounts/' +
+ commons.Escaper.ecapeVariable('$accountId') +
+ '/webproperties/' +
+ commons.Escaper.ecapeVariable('$webPropertyId') +
+ '/customDimensions';
- var _response = _requester.request(_url,
- "POST",
- body: _body,
- queryParams: _queryParams,
- uploadOptions: _uploadOptions,
- uploadMedia: _uploadMedia,
- downloadOptions: _downloadOptions);
+ var _response = _requester.request(_url, "POST",
+ body: _body,
+ queryParams: _queryParams,
+ uploadOptions: _uploadOptions,
+ uploadMedia: _uploadMedia,
+ downloadOptions: _downloadOptions);
return _response.then((data) => new CustomDimension.fromJson(data));
}
- /**
- * Lists custom dimensions to which the user has access.
- *
- * Request parameters:
- *
- * [accountId] - Account ID for the custom dimensions to retrieve.
- *
- * [webPropertyId] - Web property ID for the custom dimensions to retrieve.
- *
- * [max_results] - The maximum number of custom dimensions to include in this
- * response.
- *
- * [start_index] - An index of the first entity to retrieve. Use this
- * parameter as a pagination mechanism along with the max-results parameter.
- *
- * Completes with a [CustomDimensions].
- *
- * Completes with a [commons.ApiRequestError] if the API endpoint returned an
- * error.
- *
- * If the used [http.Client] completes with an error when making a REST call,
- * this method will complete with the same error.
- */
- async.Future<CustomDimensions> list(core.String accountId, core.String webPropertyId, {core.int max_results, core.int start_index}) {
+ /// Lists custom dimensions to which the user has access.
+ ///
+ /// Request parameters:
+ ///
+ /// [accountId] - Account ID for the custom dimensions to retrieve.
+ ///
+ /// [webPropertyId] - Web property ID for the custom dimensions to retrieve.
+ ///
+ /// [max_results] - The maximum number of custom dimensions to include in
+ /// this response.
+ ///
+ /// [start_index] - An index of the first entity to retrieve. Use this
+ /// parameter as a pagination mechanism along with the max-results parameter.
+ ///
+ /// Completes with a [CustomDimensions].
+ ///
+ /// Completes with a [commons.ApiRequestError] if the API endpoint returned
+ /// an error.
+ ///
+ /// If the used [http.Client] completes with an error when making a REST
+ /// call, this method will complete with the same error.
+ async.Future<CustomDimensions> list(
+ core.String accountId, core.String webPropertyId,
+ {core.int max_results, core.int start_index}) {
var _url = null;
var _queryParams = new core.Map();
var _uploadMedia = null;
@@ -966,45 +994,52 @@ class ManagementCustomDimensionsResourceApi {
_queryParams["start-index"] = ["${start_index}"];
}
- _url = 'management/accounts/' + commons.Escaper.ecapeVariable('$accountId') + '/webproperties/' + commons.Escaper.ecapeVariable('$webPropertyId') + '/customDimensions';
+ _url = 'management/accounts/' +
+ commons.Escaper.ecapeVariable('$accountId') +
+ '/webproperties/' +
+ commons.Escaper.ecapeVariable('$webPropertyId') +
+ '/customDimensions';
- var _response = _requester.request(_url,
- "GET",
- body: _body,
- queryParams: _queryParams,
- uploadOptions: _uploadOptions,
- uploadMedia: _uploadMedia,
- downloadOptions: _downloadOptions);
+ var _response = _requester.request(_url, "GET",
+ body: _body,
+ queryParams: _queryParams,
+ uploadOptions: _uploadOptions,
+ uploadMedia: _uploadMedia,
+ downloadOptions: _downloadOptions);
return _response.then((data) => new CustomDimensions.fromJson(data));
}
- /**
- * Updates an existing custom dimension. This method supports patch semantics.
- *
- * [request] - The metadata request object.
- *
- * Request parameters:
- *
- * [accountId] - Account ID for the custom dimension to update.
- *
- * [webPropertyId] - Web property ID for the custom dimension to update.
- *
- * [customDimensionId] - Custom dimension ID for the custom dimension to
- * update.
- *
- * [ignoreCustomDataSourceLinks] - Force the update and ignore any warnings
- * related to the custom dimension being linked to a custom data source / data
- * set.
- *
- * Completes with a [CustomDimension].
- *
- * Completes with a [commons.ApiRequestError] if the API endpoint returned an
- * error.
- *
- * If the used [http.Client] completes with an error when making a REST call,
- * this method will complete with the same error.
- */
- async.Future<CustomDimension> patch(CustomDimension request, core.String accountId, core.String webPropertyId, core.String customDimensionId, {core.bool ignoreCustomDataSourceLinks}) {
+ /// Updates an existing custom dimension. This method supports patch
+ /// semantics.
+ ///
+ /// [request] - The metadata request object.
+ ///
+ /// Request parameters:
+ ///
+ /// [accountId] - Account ID for the custom dimension to update.
+ ///
+ /// [webPropertyId] - Web property ID for the custom dimension to update.
+ ///
+ /// [customDimensionId] - Custom dimension ID for the custom dimension to
+ /// update.
+ ///
+ /// [ignoreCustomDataSourceLinks] - Force the update and ignore any warnings
+ /// related to the custom dimension being linked to a custom data source /
+ /// data set.
+ ///
+ /// Completes with a [CustomDimension].
+ ///
+ /// Completes with a [commons.ApiRequestError] if the API endpoint returned
+ /// an error.
+ ///
+ /// If the used [http.Client] completes with an error when making a REST
+ /// call, this method will complete with the same error.
+ async.Future<CustomDimension> patch(
+ CustomDimension request,
+ core.String accountId,
+ core.String webPropertyId,
+ core.String customDimensionId,
+ {core.bool ignoreCustomDataSourceLinks}) {
var _url = null;
var _queryParams = new core.Map();
var _uploadMedia = null;
@@ -1025,48 +1060,57 @@ class ManagementCustomDimensionsResourceApi {
throw new core.ArgumentError("Parameter customDimensionId is required.");
}
if (ignoreCustomDataSourceLinks != null) {
- _queryParams["ignoreCustomDataSourceLinks"] = ["${ignoreCustomDataSourceLinks}"];
- }
-
- _url = 'management/accounts/' + commons.Escaper.ecapeVariable('$accountId') + '/webproperties/' + commons.Escaper.ecapeVariable('$webPropertyId') + '/customDimensions/' + commons.Escaper.ecapeVariable('$customDimensionId');
-
- var _response = _requester.request(_url,
- "PATCH",
- body: _body,
- queryParams: _queryParams,
- uploadOptions: _uploadOptions,
- uploadMedia: _uploadMedia,
- downloadOptions: _downloadOptions);
+ _queryParams["ignoreCustomDataSourceLinks"] = [
+ "${ignoreCustomDataSourceLinks}"
+ ];
+ }
+
+ _url = 'management/accounts/' +
+ commons.Escaper.ecapeVariable('$accountId') +
+ '/webproperties/' +
+ commons.Escaper.ecapeVariable('$webPropertyId') +
+ '/customDimensions/' +
+ commons.Escaper.ecapeVariable('$customDimensionId');
+
+ var _response = _requester.request(_url, "PATCH",
+ body: _body,
+ queryParams: _queryParams,
+ uploadOptions: _uploadOptions,
+ uploadMedia: _uploadMedia,
+ downloadOptions: _downloadOptions);
return _response.then((data) => new CustomDimension.fromJson(data));
}
- /**
- * Updates an existing custom dimension.
- *
- * [request] - The metadata request object.
- *
- * Request parameters:
- *
- * [accountId] - Account ID for the custom dimension to update.
- *
- * [webPropertyId] - Web property ID for the custom dimension to update.
- *
- * [customDimensionId] - Custom dimension ID for the custom dimension to
- * update.
- *
- * [ignoreCustomDataSourceLinks] - Force the update and ignore any warnings
- * related to the custom dimension being linked to a custom data source / data
- * set.
- *
- * Completes with a [CustomDimension].
- *
- * Completes with a [commons.ApiRequestError] if the API endpoint returned an
- * error.
- *
- * If the used [http.Client] completes with an error when making a REST call,
- * this method will complete with the same error.
- */
- async.Future<CustomDimension> update(CustomDimension request, core.String accountId, core.String webPropertyId, core.String customDimensionId, {core.bool ignoreCustomDataSourceLinks}) {
+ /// Updates an existing custom dimension.
+ ///
+ /// [request] - The metadata request object.
+ ///
+ /// Request parameters:
+ ///
+ /// [accountId] - Account ID for the custom dimension to update.
+ ///
+ /// [webPropertyId] - Web property ID for the custom dimension to update.
+ ///
+ /// [customDimensionId] - Custom dimension ID for the custom dimension to
+ /// update.
+ ///
+ /// [ignoreCustomDataSourceLinks] - Force the update and ignore any warnings
+ /// related to the custom dimension being linked to a custom data source /
+ /// data set.
+ ///
+ /// Completes with a [CustomDimension].
+ ///
+ /// Completes with a [commons.ApiRequestError] if the API endpoint returned
+ /// an error.
+ ///
+ /// If the used [http.Client] completes with an error when making a REST
+ /// call, this method will complete with the same error.
+ async.Future<CustomDimension> update(
+ CustomDimension request,
+ core.String accountId,
+ core.String webPropertyId,
+ core.String customDimensionId,
+ {core.bool ignoreCustomDataSourceLinks}) {
var _url = null;
var _queryParams = new core.Map();
var _uploadMedia = null;
@@ -1087,50 +1131,53 @@ class ManagementCustomDimensionsResourceApi {
throw new core.ArgumentError("Parameter customDimensionId is required.");
}
if (ignoreCustomDataSourceLinks != null) {
- _queryParams["ignoreCustomDataSourceLinks"] = ["${ignoreCustomDataSourceLinks}"];
- }
-
- _url = 'management/accounts/' + commons.Escaper.ecapeVariable('$accountId') + '/webproperties/' + commons.Escaper.ecapeVariable('$webPropertyId') + '/customDimensions/' + commons.Escaper.ecapeVariable('$customDimensionId');
-
- var _response = _requester.request(_url,
- "PUT",
- body: _body,
- queryParams: _queryParams,
- uploadOptions: _uploadOptions,
- uploadMedia: _uploadMedia,
- downloadOptions: _downloadOptions);
+ _queryParams["ignoreCustomDataSourceLinks"] = [
+ "${ignoreCustomDataSourceLinks}"
+ ];
+ }
+
+ _url = 'management/accounts/' +
+ commons.Escaper.ecapeVariable('$accountId') +
+ '/webproperties/' +
+ commons.Escaper.ecapeVariable('$webPropertyId') +
+ '/customDimensions/' +
+ commons.Escaper.ecapeVariable('$customDimensionId');
+
+ var _response = _requester.request(_url, "PUT",
+ body: _body,
+ queryParams: _queryParams,
+ uploadOptions: _uploadOptions,
+ uploadMedia: _uploadMedia,
+ downloadOptions: _downloadOptions);
return _response.then((data) => new CustomDimension.fromJson(data));
}
-
}
-
class ManagementCustomMetricsResourceApi {
final commons.ApiRequester _requester;
- ManagementCustomMetricsResourceApi(commons.ApiRequester client) :
- _requester = client;
-
- /**
- * Get a custom metric to which the user has access.
- *
- * Request parameters:
- *
- * [accountId] - Account ID for the custom metric to retrieve.
- *
- * [webPropertyId] - Web property ID for the custom metric to retrieve.
- *
- * [customMetricId] - The ID of the custom metric to retrieve.
- *
- * Completes with a [CustomMetric].
- *
- * Completes with a [commons.ApiRequestError] if the API endpoint returned an
- * error.
- *
- * If the used [http.Client] completes with an error when making a REST call,
- * this method will complete with the same error.
- */
- async.Future<CustomMetric> get(core.String accountId, core.String webPropertyId, core.String customMetricId) {
+ ManagementCustomMetricsResourceApi(commons.ApiRequester client)
+ : _requester = client;
+
+ /// Get a custom metric to which the user has access.
+ ///
+ /// Request parameters:
+ ///
+ /// [accountId] - Account ID for the custom metric to retrieve.
+ ///
+ /// [webPropertyId] - Web property ID for the custom metric to retrieve.
+ ///
+ /// [customMetricId] - The ID of the custom metric to retrieve.
+ ///
+ /// Completes with a [CustomMetric].
+ ///
+ /// Completes with a [commons.ApiRequestError] if the API endpoint returned
+ /// an error.
+ ///
+ /// If the used [http.Client] completes with an error when making a REST
+ /// call, this method will complete with the same error.
+ async.Future<CustomMetric> get(core.String accountId,
+ core.String webPropertyId, core.String customMetricId) {
var _url = null;
var _queryParams = new core.Map();
var _uploadMedia = null;
@@ -1148,38 +1195,41 @@ class ManagementCustomMetricsResourceApi {
throw new core.ArgumentError("Parameter customMetricId is required.");
}
- _url = 'management/accounts/' + commons.Escaper.ecapeVariable('$accountId') + '/webproperties/' + commons.Escaper.ecapeVariable('$webPropertyId') + '/customMetrics/' + commons.Escaper.ecapeVariable('$customMetricId');
+ _url = 'management/accounts/' +
+ commons.Escaper.ecapeVariable('$accountId') +
+ '/webproperties/' +
+ commons.Escaper.ecapeVariable('$webPropertyId') +
+ '/customMetrics/' +
+ commons.Escaper.ecapeVariable('$customMetricId');
- var _response = _requester.request(_url,
- "GET",
- body: _body,
- queryParams: _queryParams,
- uploadOptions: _uploadOptions,
- uploadMedia: _uploadMedia,
- downloadOptions: _downloadOptions);
+ var _response = _requester.request(_url, "GET",
+ body: _body,
+ queryParams: _queryParams,
+ uploadOptions: _uploadOptions,
+ uploadMedia: _uploadMedia,
+ downloadOptions: _downloadOptions);
return _response.then((data) => new CustomMetric.fromJson(data));
}
- /**
- * Create a new custom metric.
- *
- * [request] - The metadata request object.
- *
- * Request parameters:
- *
- * [accountId] - Account ID for the custom metric to create.
- *
- * [webPropertyId] - Web property ID for the custom dimension to create.
- *
- * Completes with a [CustomMetric].
- *
- * Completes with a [commons.ApiRequestError] if the API endpoint returned an
- * error.
- *
- * If the used [http.Client] completes with an error when making a REST call,
- * this method will complete with the same error.
- */
- async.Future<CustomMetric> insert(CustomMetric request, core.String accountId, core.String webPropertyId) {
+ /// Create a new custom metric.
+ ///
+ /// [request] - The metadata request object.
+ ///
+ /// Request parameters:
+ ///
+ /// [accountId] - Account ID for the custom metric to create.
+ ///
+ /// [webPropertyId] - Web property ID for the custom dimension to create.
+ ///
+ /// Completes with a [CustomMetric].
+ ///
+ /// Completes with a [commons.ApiRequestError] if the API endpoint returned
+ /// an error.
+ ///
+ /// If the used [http.Client] completes with an error when making a REST
+ /// call, this method will complete with the same error.
+ async.Future<CustomMetric> insert(
+ CustomMetric request, core.String accountId, core.String webPropertyId) {
var _url = null;
var _queryParams = new core.Map();
var _uploadMedia = null;
@@ -1197,42 +1247,45 @@ class ManagementCustomMetricsResourceApi {
throw new core.ArgumentError("Parameter webPropertyId is required.");
}
- _url = 'management/accounts/' + commons.Escaper.ecapeVariable('$accountId') + '/webproperties/' + commons.Escaper.ecapeVariable('$webPropertyId') + '/customMetrics';
+ _url = 'management/accounts/' +
+ commons.Escaper.ecapeVariable('$accountId') +
+ '/webproperties/' +
+ commons.Escaper.ecapeVariable('$webPropertyId') +
+ '/customMetrics';
- var _response = _requester.request(_url,
- "POST",
- body: _body,
- queryParams: _queryParams,
- uploadOptions: _uploadOptions,
- uploadMedia: _uploadMedia,
- downloadOptions: _downloadOptions);
+ var _response = _requester.request(_url, "POST",
+ body: _body,
+ queryParams: _queryParams,
+ uploadOptions: _uploadOptions,
+ uploadMedia: _uploadMedia,
+ downloadOptions: _downloadOptions);
return _response.then((data) => new CustomMetric.fromJson(data));
}
- /**
- * Lists custom metrics to which the user has access.
- *
- * Request parameters:
- *
- * [accountId] - Account ID for the custom metrics to retrieve.
- *
- * [webPropertyId] - Web property ID for the custom metrics to retrieve.
- *
- * [max_results] - The maximum number of custom metrics to include in this
- * response.
- *
- * [start_index] - An index of the first entity to retrieve. Use this
- * parameter as a pagination mechanism along with the max-results parameter.
- *
- * Completes with a [CustomMetrics].
- *
- * Completes with a [commons.ApiRequestError] if the API endpoint returned an
- * error.
- *
- * If the used [http.Client] completes with an error when making a REST call,
- * this method will complete with the same error.
- */
- async.Future<CustomMetrics> list(core.String accountId, core.String webPropertyId, {core.int max_results, core.int start_index}) {
+ /// Lists custom metrics to which the user has access.
+ ///
+ /// Request parameters:
+ ///
+ /// [accountId] - Account ID for the custom metrics to retrieve.
+ ///
+ /// [webPropertyId] - Web property ID for the custom metrics to retrieve.
+ ///
+ /// [max_results] - The maximum number of custom metrics to include in this
+ /// response.
+ ///
+ /// [start_index] - An index of the first entity to retrieve. Use this
+ /// parameter as a pagination mechanism along with the max-results parameter.
+ ///
+ /// Completes with a [CustomMetrics].
+ ///
+ /// Completes with a [commons.ApiRequestError] if the API endpoint returned
+ /// an error.
+ ///
+ /// If the used [http.Client] completes with an error when making a REST
+ /// call, this method will complete with the same error.
+ async.Future<CustomMetrics> list(
+ core.String accountId, core.String webPropertyId,
+ {core.int max_results, core.int start_index}) {
var _url = null;
var _queryParams = new core.Map();
var _uploadMedia = null;
@@ -1253,44 +1306,47 @@ class ManagementCustomMetricsResourceApi {
_queryParams["start-index"] = ["${start_index}"];
}
- _url = 'management/accounts/' + commons.Escaper.ecapeVariable('$accountId') + '/webproperties/' + commons.Escaper.ecapeVariable('$webPropertyId') + '/customMetrics';
+ _url = 'management/accounts/' +
+ commons.Escaper.ecapeVariable('$accountId') +
+ '/webproperties/' +
+ commons.Escaper.ecapeVariable('$webPropertyId') +
+ '/customMetrics';
- var _response = _requester.request(_url,
- "GET",
- body: _body,
- queryParams: _queryParams,
- uploadOptions: _uploadOptions,
- uploadMedia: _uploadMedia,
- downloadOptions: _downloadOptions);
+ var _response = _requester.request(_url, "GET",
+ body: _body,
+ queryParams: _queryParams,
+ uploadOptions: _uploadOptions,
+ uploadMedia: _uploadMedia,
+ downloadOptions: _downloadOptions);
return _response.then((data) => new CustomMetrics.fromJson(data));
}
- /**
- * Updates an existing custom metric. This method supports patch semantics.
- *
- * [request] - The metadata request object.
- *
- * Request parameters:
- *
- * [accountId] - Account ID for the custom metric to update.
- *
- * [webPropertyId] - Web property ID for the custom metric to update.
- *
- * [customMetricId] - Custom metric ID for the custom metric to update.
- *
- * [ignoreCustomDataSourceLinks] - Force the update and ignore any warnings
- * related to the custom metric being linked to a custom data source / data
- * set.
- *
- * Completes with a [CustomMetric].
- *
- * Completes with a [commons.ApiRequestError] if the API endpoint returned an
- * error.
- *
- * If the used [http.Client] completes with an error when making a REST call,
- * this method will complete with the same error.
- */
- async.Future<CustomMetric> patch(CustomMetric request, core.String accountId, core.String webPropertyId, core.String customMetricId, {core.bool ignoreCustomDataSourceLinks}) {
+ /// Updates an existing custom metric. This method supports patch semantics.
+ ///
+ /// [request] - The metadata request object.
+ ///
+ /// Request parameters:
+ ///
+ /// [accountId] - Account ID for the custom metric to update.
+ ///
+ /// [webPropertyId] - Web property ID for the custom metric to update.
+ ///
+ /// [customMetricId] - Custom metric ID for the custom metric to update.
+ ///
+ /// [ignoreCustomDataSourceLinks] - Force the update and ignore any warnings
+ /// related to the custom metric being linked to a custom data source / data
+ /// set.
+ ///
+ /// Completes with a [CustomMetric].
+ ///
+ /// Completes with a [commons.ApiRequestError] if the API endpoint returned
+ /// an error.
+ ///
+ /// If the used [http.Client] completes with an error when making a REST
+ /// call, this method will complete with the same error.
+ async.Future<CustomMetric> patch(CustomMetric request, core.String accountId,
+ core.String webPropertyId, core.String customMetricId,
+ {core.bool ignoreCustomDataSourceLinks}) {
var _url = null;
var _queryParams = new core.Map();
var _uploadMedia = null;
@@ -1311,47 +1367,53 @@ class ManagementCustomMetricsResourceApi {
throw new core.ArgumentError("Parameter customMetricId is required.");
}
if (ignoreCustomDataSourceLinks != null) {
- _queryParams["ignoreCustomDataSourceLinks"] = ["${ignoreCustomDataSourceLinks}"];
- }
-
- _url = 'management/accounts/' + commons.Escaper.ecapeVariable('$accountId') + '/webproperties/' + commons.Escaper.ecapeVariable('$webPropertyId') + '/customMetrics/' + commons.Escaper.ecapeVariable('$customMetricId');
-
- var _response = _requester.request(_url,
- "PATCH",
- body: _body,
- queryParams: _queryParams,
- uploadOptions: _uploadOptions,
- uploadMedia: _uploadMedia,
- downloadOptions: _downloadOptions);
+ _queryParams["ignoreCustomDataSourceLinks"] = [
+ "${ignoreCustomDataSourceLinks}"
+ ];
+ }
+
+ _url = 'management/accounts/' +
+ commons.Escaper.ecapeVariable('$accountId') +
+ '/webproperties/' +
+ commons.Escaper.ecapeVariable('$webPropertyId') +
+ '/customMetrics/' +
+ commons.Escaper.ecapeVariable('$customMetricId');
+
+ var _response = _requester.request(_url, "PATCH",
+ body: _body,
+ queryParams: _queryParams,
+ uploadOptions: _uploadOptions,
+ uploadMedia: _uploadMedia,
+ downloadOptions: _downloadOptions);
return _response.then((data) => new CustomMetric.fromJson(data));
}
- /**
- * Updates an existing custom metric.
- *
- * [request] - The metadata request object.
- *
- * Request parameters:
- *
- * [accountId] - Account ID for the custom metric to update.
- *
- * [webPropertyId] - Web property ID for the custom metric to update.
- *
- * [customMetricId] - Custom metric ID for the custom metric to update.
- *
- * [ignoreCustomDataSourceLinks] - Force the update and ignore any warnings
- * related to the custom metric being linked to a custom data source / data
- * set.
- *
- * Completes with a [CustomMetric].
- *
- * Completes with a [commons.ApiRequestError] if the API endpoint returned an
- * error.
- *
- * If the used [http.Client] completes with an error when making a REST call,
- * this method will complete with the same error.
- */
- async.Future<CustomMetric> update(CustomMetric request, core.String accountId, core.String webPropertyId, core.String customMetricId, {core.bool ignoreCustomDataSourceLinks}) {
+ /// Updates an existing custom metric.
+ ///
+ /// [request] - The metadata request object.
+ ///
+ /// Request parameters:
+ ///
+ /// [accountId] - Account ID for the custom metric to update.
+ ///
+ /// [webPropertyId] - Web property ID for the custom metric to update.
+ ///
+ /// [customMetricId] - Custom metric ID for the custom metric to update.
+ ///
+ /// [ignoreCustomDataSourceLinks] - Force the update and ignore any warnings
+ /// related to the custom metric being linked to a custom data source / data
+ /// set.
+ ///
+ /// Completes with a [CustomMetric].
+ ///
+ /// Completes with a [commons.ApiRequestError] if the API endpoint returned
+ /// an error.
+ ///
+ /// If the used [http.Client] completes with an error when making a REST
+ /// call, this method will complete with the same error.
+ async.Future<CustomMetric> update(CustomMetric request, core.String accountId,
+ core.String webPropertyId, core.String customMetricId,
+ {core.bool ignoreCustomDataSourceLinks}) {
var _url = null;
var _queryParams = new core.Map();
var _uploadMedia = null;
@@ -1372,50 +1434,53 @@ class ManagementCustomMetricsResourceApi {
throw new core.ArgumentError("Parameter customMetricId is required.");
}
if (ignoreCustomDataSourceLinks != null) {
- _queryParams["ignoreCustomDataSourceLinks"] = ["${ignoreCustomDataSourceLinks}"];
- }
-
- _url = 'management/accounts/' + commons.Escaper.ecapeVariable('$accountId') + '/webproperties/' + commons.Escaper.ecapeVariable('$webPropertyId') + '/customMetrics/' + commons.Escaper.ecapeVariable('$customMetricId');
-
- var _response = _requester.request(_url,
- "PUT",
- body: _body,
- queryParams: _queryParams,
- uploadOptions: _uploadOptions,
- uploadMedia: _uploadMedia,
- downloadOptions: _downloadOptions);
+ _queryParams["ignoreCustomDataSourceLinks"] = [
+ "${ignoreCustomDataSourceLinks}"
+ ];
+ }
+
+ _url = 'management/accounts/' +
+ commons.Escaper.ecapeVariable('$accountId') +
+ '/webproperties/' +
+ commons.Escaper.ecapeVariable('$webPropertyId') +
+ '/customMetrics/' +
+ commons.Escaper.ecapeVariable('$customMetricId');
+
+ var _response = _requester.request(_url, "PUT",
+ body: _body,
+ queryParams: _queryParams,
+ uploadOptions: _uploadOptions,
+ uploadMedia: _uploadMedia,
+ downloadOptions: _downloadOptions);
return _response.then((data) => new CustomMetric.fromJson(data));
}
-
}
-
class ManagementExperimentsResourceApi {
final commons.ApiRequester _requester;
- ManagementExperimentsResourceApi(commons.ApiRequester client) :
- _requester = client;
-
- /**
- * Delete an experiment.
- *
- * Request parameters:
- *
- * [accountId] - Account ID to which the experiment belongs
- *
- * [webPropertyId] - Web property ID to which the experiment belongs
- *
- * [profileId] - View (Profile) ID to which the experiment belongs
- *
- * [experimentId] - ID of the experiment to delete
- *
- * Completes with a [commons.ApiRequestError] if the API endpoint returned an
- * error.
- *
- * If the used [http.Client] completes with an error when making a REST call,
- * this method will complete with the same error.
- */
- async.Future delete(core.String accountId, core.String webPropertyId, core.String profileId, core.String experimentId) {
+ ManagementExperimentsResourceApi(commons.ApiRequester client)
+ : _requester = client;
+
+ /// Delete an experiment.
+ ///
+ /// Request parameters:
+ ///
+ /// [accountId] - Account ID to which the experiment belongs
+ ///
+ /// [webPropertyId] - Web property ID to which the experiment belongs
+ ///
+ /// [profileId] - View (Profile) ID to which the experiment belongs
+ ///
+ /// [experimentId] - ID of the experiment to delete
+ ///
+ /// Completes with a [commons.ApiRequestError] if the API endpoint returned
+ /// an error.
+ ///
+ /// If the used [http.Client] completes with an error when making a REST
+ /// call, this method will complete with the same error.
+ async.Future delete(core.String accountId, core.String webPropertyId,
+ core.String profileId, core.String experimentId) {
var _url = null;
var _queryParams = new core.Map();
var _uploadMedia = null;
@@ -1438,40 +1503,45 @@ class ManagementExperimentsResourceApi {
_downloadOptions = null;
- _url = 'management/accounts/' + commons.Escaper.ecapeVariable('$accountId') + '/webproperties/' + commons.Escaper.ecapeVariable('$webPropertyId') + '/profiles/' + commons.Escaper.ecapeVariable('$profileId') + '/experiments/' + commons.Escaper.ecapeVariable('$experimentId');
-
- var _response = _requester.request(_url,
- "DELETE",
- body: _body,
- queryParams: _queryParams,
- uploadOptions: _uploadOptions,
- uploadMedia: _uploadMedia,
- downloadOptions: _downloadOptions);
+ _url = 'management/accounts/' +
+ commons.Escaper.ecapeVariable('$accountId') +
+ '/webproperties/' +
+ commons.Escaper.ecapeVariable('$webPropertyId') +
+ '/profiles/' +
+ commons.Escaper.ecapeVariable('$profileId') +
+ '/experiments/' +
+ commons.Escaper.ecapeVariable('$experimentId');
+
+ var _response = _requester.request(_url, "DELETE",
+ body: _body,
+ queryParams: _queryParams,
+ uploadOptions: _uploadOptions,
+ uploadMedia: _uploadMedia,
+ downloadOptions: _downloadOptions);
return _response.then((data) => null);
}
- /**
- * Returns an experiment to which the user has access.
- *
- * Request parameters:
- *
- * [accountId] - Account ID to retrieve the experiment for.
- *
- * [webPropertyId] - Web property ID to retrieve the experiment for.
- *
- * [profileId] - View (Profile) ID to retrieve the experiment for.
- *
- * [experimentId] - Experiment ID to retrieve the experiment for.
- *
- * Completes with a [Experiment].
- *
- * Completes with a [commons.ApiRequestError] if the API endpoint returned an
- * error.
- *
- * If the used [http.Client] completes with an error when making a REST call,
- * this method will complete with the same error.
- */
- async.Future<Experiment> get(core.String accountId, core.String webPropertyId, core.String profileId, core.String experimentId) {
+ /// Returns an experiment to which the user has access.
+ ///
+ /// Request parameters:
+ ///
+ /// [accountId] - Account ID to retrieve the experiment for.
+ ///
+ /// [webPropertyId] - Web property ID to retrieve the experiment for.
+ ///
+ /// [profileId] - View (Profile) ID to retrieve the experiment for.
+ ///
+ /// [experimentId] - Experiment ID to retrieve the experiment for.
+ ///
+ /// Completes with a [Experiment].
+ ///
+ /// Completes with a [commons.ApiRequestError] if the API endpoint returned
+ /// an error.
+ ///
+ /// If the used [http.Client] completes with an error when making a REST
+ /// call, this method will complete with the same error.
+ async.Future<Experiment> get(core.String accountId, core.String webPropertyId,
+ core.String profileId, core.String experimentId) {
var _url = null;
var _queryParams = new core.Map();
var _uploadMedia = null;
@@ -1492,40 +1562,45 @@ class ManagementExperimentsResourceApi {
throw new core.ArgumentError("Parameter experimentId is required.");
}
- _url = 'management/accounts/' + commons.Escaper.ecapeVariable('$accountId') + '/webproperties/' + commons.Escaper.ecapeVariable('$webPropertyId') + '/profiles/' + commons.Escaper.ecapeVariable('$profileId') + '/experiments/' + commons.Escaper.ecapeVariable('$experimentId');
-
- var _response = _requester.request(_url,
- "GET",
- body: _body,
- queryParams: _queryParams,
- uploadOptions: _uploadOptions,
- uploadMedia: _uploadMedia,
- downloadOptions: _downloadOptions);
+ _url = 'management/accounts/' +
+ commons.Escaper.ecapeVariable('$accountId') +
+ '/webproperties/' +
+ commons.Escaper.ecapeVariable('$webPropertyId') +
+ '/profiles/' +
+ commons.Escaper.ecapeVariable('$profileId') +
+ '/experiments/' +
+ commons.Escaper.ecapeVariable('$experimentId');
+
+ var _response = _requester.request(_url, "GET",
+ body: _body,
+ queryParams: _queryParams,
+ uploadOptions: _uploadOptions,
+ uploadMedia: _uploadMedia,
+ downloadOptions: _downloadOptions);
return _response.then((data) => new Experiment.fromJson(data));
}
- /**
- * Create a new experiment.
- *
- * [request] - The metadata request object.
- *
- * Request parameters:
- *
- * [accountId] - Account ID to create the experiment for.
- *
- * [webPropertyId] - Web property ID to create the experiment for.
- *
- * [profileId] - View (Profile) ID to create the experiment for.
- *
- * Completes with a [Experiment].
- *
- * Completes with a [commons.ApiRequestError] if the API endpoint returned an
- * error.
- *
- * If the used [http.Client] completes with an error when making a REST call,
- * this method will complete with the same error.
- */
- async.Future<Experiment> insert(Experiment request, core.String accountId, core.String webPropertyId, core.String profileId) {
+ /// Create a new experiment.
+ ///
+ /// [request] - The metadata request object.
+ ///
+ /// Request parameters:
+ ///
+ /// [accountId] - Account ID to create the experiment for.
+ ///
+ /// [webPropertyId] - Web property ID to create the experiment for.
+ ///
+ /// [profileId] - View (Profile) ID to create the experiment for.
+ ///
+ /// Completes with a [Experiment].
+ ///
+ /// Completes with a [commons.ApiRequestError] if the API endpoint returned
+ /// an error.
+ ///
+ /// If the used [http.Client] completes with an error when making a REST
+ /// call, this method will complete with the same error.
+ async.Future<Experiment> insert(Experiment request, core.String accountId,
+ core.String webPropertyId, core.String profileId) {
var _url = null;
var _queryParams = new core.Map();
var _uploadMedia = null;
@@ -1546,47 +1621,52 @@ class ManagementExperimentsResourceApi {
throw new core.ArgumentError("Parameter profileId is required.");
}
- _url = 'management/accounts/' + commons.Escaper.ecapeVariable('$accountId') + '/webproperties/' + commons.Escaper.ecapeVariable('$webPropertyId') + '/profiles/' + commons.Escaper.ecapeVariable('$profileId') + '/experiments';
-
- var _response = _requester.request(_url,
- "POST",
- body: _body,
- queryParams: _queryParams,
- uploadOptions: _uploadOptions,
- uploadMedia: _uploadMedia,
- downloadOptions: _downloadOptions);
+ _url = 'management/accounts/' +
+ commons.Escaper.ecapeVariable('$accountId') +
+ '/webproperties/' +
+ commons.Escaper.ecapeVariable('$webPropertyId') +
+ '/profiles/' +
+ commons.Escaper.ecapeVariable('$profileId') +
+ '/experiments';
+
+ var _response = _requester.request(_url, "POST",
+ body: _body,
+ queryParams: _queryParams,
+ uploadOptions: _uploadOptions,
+ uploadMedia: _uploadMedia,
+ downloadOptions: _downloadOptions);
return _response.then((data) => new Experiment.fromJson(data));
}
- /**
- * Lists experiments to which the user has access.
- *
- * Request parameters:
- *
- * [accountId] - Account ID to retrieve experiments for.
- * Value must have pattern "\d+".
- *
- * [webPropertyId] - Web property ID to retrieve experiments for.
- * Value must have pattern "UA-(\d+)-(\d+)".
- *
- * [profileId] - View (Profile) ID to retrieve experiments for.
- * Value must have pattern "\d+".
- *
- * [max_results] - The maximum number of experiments to include in this
- * response.
- *
- * [start_index] - An index of the first experiment to retrieve. Use this
- * parameter as a pagination mechanism along with the max-results parameter.
- *
- * Completes with a [Experiments].
- *
- * Completes with a [commons.ApiRequestError] if the API endpoint returned an
- * error.
- *
- * If the used [http.Client] completes with an error when making a REST call,
- * this method will complete with the same error.
- */
- async.Future<Experiments> list(core.String accountId, core.String webPropertyId, core.String profileId, {core.int max_results, core.int start_index}) {
+ /// Lists experiments to which the user has access.
+ ///
+ /// Request parameters:
+ ///
+ /// [accountId] - Account ID to retrieve experiments for.
+ /// Value must have pattern "\d+".
+ ///
+ /// [webPropertyId] - Web property ID to retrieve experiments for.
+ /// Value must have pattern "UA-(\d+)-(\d+)".
+ ///
+ /// [profileId] - View (Profile) ID to retrieve experiments for.
+ /// Value must have pattern "\d+".
+ ///
+ /// [max_results] - The maximum number of experiments to include in this
+ /// response.
+ ///
+ /// [start_index] - An index of the first experiment to retrieve. Use this
+ /// parameter as a pagination mechanism along with the max-results parameter.
+ ///
+ /// Completes with a [Experiments].
+ ///
+ /// Completes with a [commons.ApiRequestError] if the API endpoint returned
+ /// an error.
+ ///
+ /// If the used [http.Client] completes with an error when making a REST
+ /// call, this method will complete with the same error.
+ async.Future<Experiments> list(
+ core.String accountId, core.String webPropertyId, core.String profileId,
+ {core.int max_results, core.int start_index}) {
var _url = null;
var _queryParams = new core.Map();
var _uploadMedia = null;
@@ -1610,42 +1690,50 @@ class ManagementExperimentsResourceApi {
_queryParams["start-index"] = ["${start_index}"];
}
- _url = 'management/accounts/' + commons.Escaper.ecapeVariable('$accountId') + '/webproperties/' + commons.Escaper.ecapeVariable('$webPropertyId') + '/profiles/' + commons.Escaper.ecapeVariable('$profileId') + '/experiments';
-
- var _response = _requester.request(_url,
- "GET",
- body: _body,
- queryParams: _queryParams,
- uploadOptions: _uploadOptions,
- uploadMedia: _uploadMedia,
- downloadOptions: _downloadOptions);
+ _url = 'management/accounts/' +
+ commons.Escaper.ecapeVariable('$accountId') +
+ '/webproperties/' +
+ commons.Escaper.ecapeVariable('$webPropertyId') +
+ '/profiles/' +
+ commons.Escaper.ecapeVariable('$profileId') +
+ '/experiments';
+
+ var _response = _requester.request(_url, "GET",
+ body: _body,
+ queryParams: _queryParams,
+ uploadOptions: _uploadOptions,
+ uploadMedia: _uploadMedia,
+ downloadOptions: _downloadOptions);
return _response.then((data) => new Experiments.fromJson(data));
}
- /**
- * Update an existing experiment. This method supports patch semantics.
- *
- * [request] - The metadata request object.
- *
- * Request parameters:
- *
- * [accountId] - Account ID of the experiment to update.
- *
- * [webPropertyId] - Web property ID of the experiment to update.
- *
- * [profileId] - View (Profile) ID of the experiment to update.
- *
- * [experimentId] - Experiment ID of the experiment to update.
- *
- * Completes with a [Experiment].
- *
- * Completes with a [commons.ApiRequestError] if the API endpoint returned an
- * error.
- *
- * If the used [http.Client] completes with an error when making a REST call,
- * this method will complete with the same error.
- */
- async.Future<Experiment> patch(Experiment request, core.String accountId, core.String webPropertyId, core.String profileId, core.String experimentId) {
+ /// Update an existing experiment. This method supports patch semantics.
+ ///
+ /// [request] - The metadata request object.
+ ///
+ /// Request parameters:
+ ///
+ /// [accountId] - Account ID of the experiment to update.
+ ///
+ /// [webPropertyId] - Web property ID of the experiment to update.
+ ///
+ /// [profileId] - View (Profile) ID of the experiment to update.
+ ///
+ /// [experimentId] - Experiment ID of the experiment to update.
+ ///
+ /// Completes with a [Experiment].
+ ///
+ /// Completes with a [commons.ApiRequestError] if the API endpoint returned
+ /// an error.
+ ///
+ /// If the used [http.Client] completes with an error when making a REST
+ /// call, this method will complete with the same error.
+ async.Future<Experiment> patch(
+ Experiment request,
+ core.String accountId,
+ core.String webPropertyId,
+ core.String profileId,
+ core.String experimentId) {
var _url = null;
var _queryParams = new core.Map();
var _uploadMedia = null;
@@ -1669,42 +1757,51 @@ class ManagementExperimentsResourceApi {
throw new core.ArgumentError("Parameter experimentId is required.");
}
- _url = 'management/accounts/' + commons.Escaper.ecapeVariable('$accountId') + '/webproperties/' + commons.Escaper.ecapeVariable('$webPropertyId') + '/profiles/' + commons.Escaper.ecapeVariable('$profileId') + '/experiments/' + commons.Escaper.ecapeVariable('$experimentId');
-
- var _response = _requester.request(_url,
- "PATCH",
- body: _body,
- queryParams: _queryParams,
- uploadOptions: _uploadOptions,
- uploadMedia: _uploadMedia,
- downloadOptions: _downloadOptions);
+ _url = 'management/accounts/' +
+ commons.Escaper.ecapeVariable('$accountId') +
+ '/webproperties/' +
+ commons.Escaper.ecapeVariable('$webPropertyId') +
+ '/profiles/' +
+ commons.Escaper.ecapeVariable('$profileId') +
+ '/experiments/' +
+ commons.Escaper.ecapeVariable('$experimentId');
+
+ var _response = _requester.request(_url, "PATCH",
+ body: _body,
+ queryParams: _queryParams,
+ uploadOptions: _uploadOptions,
+ uploadMedia: _uploadMedia,
+ downloadOptions: _downloadOptions);
return _response.then((data) => new Experiment.fromJson(data));
}
- /**
- * Update an existing experiment.
- *
- * [request] - The metadata request object.
- *
- * Request parameters:
- *
- * [accountId] - Account ID of the experiment to update.
- *
- * [webPropertyId] - Web property ID of the experiment to update.
- *
- * [profileId] - View (Profile) ID of the experiment to update.
- *
- * [experimentId] - Experiment ID of the experiment to update.
- *
- * Completes with a [Experiment].
- *
- * Completes with a [commons.ApiRequestError] if the API endpoint returned an
- * error.
- *
- * If the used [http.Client] completes with an error when making a REST call,
- * this method will complete with the same error.
- */
- async.Future<Experiment> update(Experiment request, core.String accountId, core.String webPropertyId, core.String profileId, core.String experimentId) {
+ /// Update an existing experiment.
+ ///
+ /// [request] - The metadata request object.
+ ///
+ /// Request parameters:
+ ///
+ /// [accountId] - Account ID of the experiment to update.
+ ///
+ /// [webPropertyId] - Web property ID of the experiment to update.
+ ///
+ /// [profileId] - View (Profile) ID of the experiment to update.
+ ///
+ /// [experimentId] - Experiment ID of the experiment to update.
+ ///
+ /// Completes with a [Experiment].
+ ///
+ /// Completes with a [commons.ApiRequestError] if the API endpoint returned
+ /// an error.
+ ///
+ /// If the used [http.Client] completes with an error when making a REST
+ /// call, this method will complete with the same error.
+ async.Future<Experiment> update(
+ Experiment request,
+ core.String accountId,
+ core.String webPropertyId,
+ core.String profileId,
+ core.String experimentId) {
var _url = null;
var _queryParams = new core.Map();
var _uploadMedia = null;
@@ -1728,44 +1825,46 @@ class ManagementExperimentsResourceApi {
throw new core.ArgumentError("Parameter experimentId is required.");
}
- _url = 'management/accounts/' + commons.Escaper.ecapeVariable('$accountId') + '/webproperties/' + commons.Escaper.ecapeVariable('$webPropertyId') + '/profiles/' + commons.Escaper.ecapeVariable('$profileId') + '/experiments/' + commons.Escaper.ecapeVariable('$experimentId');
-
- var _response = _requester.request(_url,
- "PUT",
- body: _body,
- queryParams: _queryParams,
- uploadOptions: _uploadOptions,
- uploadMedia: _uploadMedia,
- downloadOptions: _downloadOptions);
+ _url = 'management/accounts/' +
+ commons.Escaper.ecapeVariable('$accountId') +
+ '/webproperties/' +
+ commons.Escaper.ecapeVariable('$webPropertyId') +
+ '/profiles/' +
+ commons.Escaper.ecapeVariable('$profileId') +
+ '/experiments/' +
+ commons.Escaper.ecapeVariable('$experimentId');
+
+ var _response = _requester.request(_url, "PUT",
+ body: _body,
+ queryParams: _queryParams,
+ uploadOptions: _uploadOptions,
+ uploadMedia: _uploadMedia,
+ downloadOptions: _downloadOptions);
return _response.then((data) => new Experiment.fromJson(data));
}
-
}
-
class ManagementFiltersResourceApi {
final commons.ApiRequester _requester;
- ManagementFiltersResourceApi(commons.ApiRequester client) :
- _requester = client;
-
- /**
- * Delete a filter.
- *
- * Request parameters:
- *
- * [accountId] - Account ID to delete the filter for.
- *
- * [filterId] - ID of the filter to be deleted.
- *
- * Completes with a [Filter].
- *
- * Completes with a [commons.ApiRequestError] if the API endpoint returned an
- * error.
- *
- * If the used [http.Client] completes with an error when making a REST call,
- * this method will complete with the same error.
- */
+ ManagementFiltersResourceApi(commons.ApiRequester client)
+ : _requester = client;
+
+ /// Delete a filter.
+ ///
+ /// Request parameters:
+ ///
+ /// [accountId] - Account ID to delete the filter for.
+ ///
+ /// [filterId] - ID of the filter to be deleted.
+ ///
+ /// Completes with a [Filter].
+ ///
+ /// Completes with a [commons.ApiRequestError] if the API endpoint returned
+ /// an error.
+ ///
+ /// If the used [http.Client] completes with an error when making a REST
+ /// call, this method will complete with the same error.
async.Future<Filter> delete(core.String accountId, core.String filterId) {
var _url = null;
var _queryParams = new core.Map();
@@ -1781,35 +1880,35 @@ class ManagementFiltersResourceApi {
throw new core.ArgumentError("Parameter filterId is required.");
}
- _url = 'management/accounts/' + commons.Escaper.ecapeVariable('$accountId') + '/filters/' + commons.Escaper.ecapeVariable('$filterId');
+ _url = 'management/accounts/' +
+ commons.Escaper.ecapeVariable('$accountId') +
+ '/filters/' +
+ commons.Escaper.ecapeVariable('$filterId');
- var _response = _requester.request(_url,
- "DELETE",
- body: _body,
- queryParams: _queryParams,
- uploadOptions: _uploadOptions,
- uploadMedia: _uploadMedia,
- downloadOptions: _downloadOptions);
+ var _response = _requester.request(_url, "DELETE",
+ body: _body,
+ queryParams: _queryParams,
+ uploadOptions: _uploadOptions,
+ uploadMedia: _uploadMedia,
+ downloadOptions: _downloadOptions);
return _response.then((data) => new Filter.fromJson(data));
}
- /**
- * Returns a filters to which the user has access.
- *
- * Request parameters:
- *
- * [accountId] - Account ID to retrieve filters for.
- *
- * [filterId] - Filter ID to retrieve filters for.
- *
- * Completes with a [Filter].
- *
- * Completes with a [commons.ApiRequestError] if the API endpoint returned an
- * error.
- *
- * If the used [http.Client] completes with an error when making a REST call,
- * this method will complete with the same error.
- */
+ /// Returns a filters to which the user has access.
+ ///
+ /// Request parameters:
+ ///
+ /// [accountId] - Account ID to retrieve filters for.
+ ///
+ /// [filterId] - Filter ID to retrieve filters for.
+ ///
+ /// Completes with a [Filter].
+ ///
+ /// Completes with a [commons.ApiRequestError] if the API endpoint returned
+ /// an error.
+ ///
+ /// If the used [http.Client] completes with an error when making a REST
+ /// call, this method will complete with the same error.
async.Future<Filter> get(core.String accountId, core.String filterId) {
var _url = null;
var _queryParams = new core.Map();
@@ -1825,35 +1924,35 @@ class ManagementFiltersResourceApi {
throw new core.ArgumentError("Parameter filterId is required.");
}
- _url = 'management/accounts/' + commons.Escaper.ecapeVariable('$accountId') + '/filters/' + commons.Escaper.ecapeVariable('$filterId');
+ _url = 'management/accounts/' +
+ commons.Escaper.ecapeVariable('$accountId') +
+ '/filters/' +
+ commons.Escaper.ecapeVariable('$filterId');
- var _response = _requester.request(_url,
- "GET",
- body: _body,
- queryParams: _queryParams,
- uploadOptions: _uploadOptions,
- uploadMedia: _uploadMedia,
- downloadOptions: _downloadOptions);
+ var _response = _requester.request(_url, "GET",
+ body: _body,
+ queryParams: _queryParams,
+ uploadOptions: _uploadOptions,
+ uploadMedia: _uploadMedia,
+ downloadOptions: _downloadOptions);
return _response.then((data) => new Filter.fromJson(data));
}
- /**
- * Create a new filter.
- *
- * [request] - The metadata request object.
- *
- * Request parameters:
- *
- * [accountId] - Account ID to create filter for.
- *
- * Completes with a [Filter].
- *
- * Completes with a [commons.ApiRequestError] if the API endpoint returned an
- * error.
- *
- * If the used [http.Client] completes with an error when making a REST call,
- * this method will complete with the same error.
- */
+ /// Create a new filter.
+ ///
+ /// [request] - The metadata request object.
+ ///
+ /// Request parameters:
+ ///
+ /// [accountId] - Account ID to create filter for.
+ ///
+ /// Completes with a [Filter].
+ ///
+ /// Completes with a [commons.ApiRequestError] if the API endpoint returned
+ /// an error.
+ ///
+ /// If the used [http.Client] completes with an error when making a REST
+ /// call, this method will complete with the same error.
async.Future<Filter> insert(Filter request, core.String accountId) {
var _url = null;
var _queryParams = new core.Map();
@@ -1869,40 +1968,41 @@ class ManagementFiltersResourceApi {
throw new core.ArgumentError("Parameter accountId is required.");
}
- _url = 'management/accounts/' + commons.Escaper.ecapeVariable('$accountId') + '/filters';
+ _url = 'management/accounts/' +
+ commons.Escaper.ecapeVariable('$accountId') +
+ '/filters';
- var _response = _requester.request(_url,
- "POST",
- body: _body,
- queryParams: _queryParams,
- uploadOptions: _uploadOptions,
- uploadMedia: _uploadMedia,
- downloadOptions: _downloadOptions);
+ var _response = _requester.request(_url, "POST",
+ body: _body,
+ queryParams: _queryParams,
+ uploadOptions: _uploadOptions,
+ uploadMedia: _uploadMedia,
+ downloadOptions: _downloadOptions);
return _response.then((data) => new Filter.fromJson(data));
}
- /**
- * Lists all filters for an account
- *
- * Request parameters:
- *
- * [accountId] - Account ID to retrieve filters for.
- * Value must have pattern "\d+".
- *
- * [max_results] - The maximum number of filters to include in this response.
- *
- * [start_index] - An index of the first entity to retrieve. Use this
- * parameter as a pagination mechanism along with the max-results parameter.
- *
- * Completes with a [Filters].
- *
- * Completes with a [commons.ApiRequestError] if the API endpoint returned an
- * error.
- *
- * If the used [http.Client] completes with an error when making a REST call,
- * this method will complete with the same error.
- */
- async.Future<Filters> list(core.String accountId, {core.int max_results, core.int start_index}) {
+ /// Lists all filters for an account
+ ///
+ /// Request parameters:
+ ///
+ /// [accountId] - Account ID to retrieve filters for.
+ /// Value must have pattern "\d+".
+ ///
+ /// [max_results] - The maximum number of filters to include in this
+ /// response.
+ ///
+ /// [start_index] - An index of the first entity to retrieve. Use this
+ /// parameter as a pagination mechanism along with the max-results parameter.
+ ///
+ /// Completes with a [Filters].
+ ///
+ /// Completes with a [commons.ApiRequestError] if the API endpoint returned
+ /// an error.
+ ///
+ /// If the used [http.Client] completes with an error when making a REST
+ /// call, this method will complete with the same error.
+ async.Future<Filters> list(core.String accountId,
+ {core.int max_results, core.int start_index}) {
var _url = null;
var _queryParams = new core.Map();
var _uploadMedia = null;
@@ -1920,38 +2020,38 @@ class ManagementFiltersResourceApi {
_queryParams["start-index"] = ["${start_index}"];
}
- _url = 'management/accounts/' + commons.Escaper.ecapeVariable('$accountId') + '/filters';
+ _url = 'management/accounts/' +
+ commons.Escaper.ecapeVariable('$accountId') +
+ '/filters';
- var _response = _requester.request(_url,
- "GET",
- body: _body,
- queryParams: _queryParams,
- uploadOptions: _uploadOptions,
- uploadMedia: _uploadMedia,
- downloadOptions: _downloadOptions);
+ var _response = _requester.request(_url, "GET",
+ body: _body,
+ queryParams: _queryParams,
+ uploadOptions: _uploadOptions,
+ uploadMedia: _uploadMedia,
+ downloadOptions: _downloadOptions);
return _response.then((data) => new Filters.fromJson(data));
}
- /**
- * Updates an existing filter. This method supports patch semantics.
- *
- * [request] - The metadata request object.
- *
- * Request parameters:
- *
- * [accountId] - Account ID to which the filter belongs.
- *
- * [filterId] - ID of the filter to be updated.
- *
- * Completes with a [Filter].
- *
- * Completes with a [commons.ApiRequestError] if the API endpoint returned an
- * error.
- *
- * If the used [http.Client] completes with an error when making a REST call,
- * this method will complete with the same error.
- */
- async.Future<Filter> patch(Filter request, core.String accountId, core.String filterId) {
+ /// Updates an existing filter. This method supports patch semantics.
+ ///
+ /// [request] - The metadata request object.
+ ///
+ /// Request parameters:
+ ///
+ /// [accountId] - Account ID to which the filter belongs.
+ ///
+ /// [filterId] - ID of the filter to be updated.
+ ///
+ /// Completes with a [Filter].
+ ///
+ /// Completes with a [commons.ApiRequestError] if the API endpoint returned
+ /// an error.
+ ///
+ /// If the used [http.Client] completes with an error when making a REST
+ /// call, this method will complete with the same error.
+ async.Future<Filter> patch(
+ Filter request, core.String accountId, core.String filterId) {
var _url = null;
var _queryParams = new core.Map();
var _uploadMedia = null;
@@ -1969,38 +2069,39 @@ class ManagementFiltersResourceApi {
throw new core.ArgumentError("Parameter filterId is required.");
}
- _url = 'management/accounts/' + commons.Escaper.ecapeVariable('$accountId') + '/filters/' + commons.Escaper.ecapeVariable('$filterId');
+ _url = 'management/accounts/' +
+ commons.Escaper.ecapeVariable('$accountId') +
+ '/filters/' +
+ commons.Escaper.ecapeVariable('$filterId');
- var _response = _requester.request(_url,
- "PATCH",
- body: _body,
- queryParams: _queryParams,
- uploadOptions: _uploadOptions,
- uploadMedia: _uploadMedia,
- downloadOptions: _downloadOptions);
+ var _response = _requester.request(_url, "PATCH",
+ body: _body,
+ queryParams: _queryParams,
+ uploadOptions: _uploadOptions,
+ uploadMedia: _uploadMedia,
+ downloadOptions: _downloadOptions);
return _response.then((data) => new Filter.fromJson(data));
}
- /**
- * Updates an existing filter.
- *
- * [request] - The metadata request object.
- *
- * Request parameters:
- *
- * [accountId] - Account ID to which the filter belongs.
- *
- * [filterId] - ID of the filter to be updated.
- *
- * Completes with a [Filter].
- *
- * Completes with a [commons.ApiRequestError] if the API endpoint returned an
- * error.
- *
- * If the used [http.Client] completes with an error when making a REST call,
- * this method will complete with the same error.
- */
- async.Future<Filter> update(Filter request, core.String accountId, core.String filterId) {
+ /// Updates an existing filter.
+ ///
+ /// [request] - The metadata request object.
+ ///
+ /// Request parameters:
+ ///
+ /// [accountId] - Account ID to which the filter belongs.
+ ///
+ /// [filterId] - ID of the filter to be updated.
+ ///
+ /// Completes with a [Filter].
+ ///
+ /// Completes with a [commons.ApiRequestError] if the API endpoint returned
+ /// an error.
+ ///
+ /// If the used [http.Client] completes with an error when making a REST
+ /// call, this method will complete with the same error.
+ async.Future<Filter> update(
+ Filter request, core.String accountId, core.String filterId) {
var _url = null;
var _queryParams = new core.Map();
var _uploadMedia = null;
@@ -2018,49 +2119,47 @@ class ManagementFiltersResourceApi {
throw new core.ArgumentError("Parameter filterId is required.");
}
- _url = 'management/accounts/' + commons.Escaper.ecapeVariable('$accountId') + '/filters/' + commons.Escaper.ecapeVariable('$filterId');
+ _url = 'management/accounts/' +
+ commons.Escaper.ecapeVariable('$accountId') +
+ '/filters/' +
+ commons.Escaper.ecapeVariable('$filterId');
- var _response = _requester.request(_url,
- "PUT",
- body: _body,
- queryParams: _queryParams,
- uploadOptions: _uploadOptions,
- uploadMedia: _uploadMedia,
- downloadOptions: _downloadOptions);
+ var _response = _requester.request(_url, "PUT",
+ body: _body,
+ queryParams: _queryParams,
+ uploadOptions: _uploadOptions,
+ uploadMedia: _uploadMedia,
+ downloadOptions: _downloadOptions);
return _response.then((data) => new Filter.fromJson(data));
}
-
}
-
class ManagementGoalsResourceApi {
final commons.ApiRequester _requester;
- ManagementGoalsResourceApi(commons.ApiRequester client) :
- _requester = client;
-
- /**
- * Gets a goal to which the user has access.
- *
- * Request parameters:
- *
- * [accountId] - Account ID to retrieve the goal for.
- *
- * [webPropertyId] - Web property ID to retrieve the goal for.
- *
- * [profileId] - View (Profile) ID to retrieve the goal for.
- *
- * [goalId] - Goal ID to retrieve the goal for.
- *
- * Completes with a [Goal].
- *
- * Completes with a [commons.ApiRequestError] if the API endpoint returned an
- * error.
- *
- * If the used [http.Client] completes with an error when making a REST call,
- * this method will complete with the same error.
- */
- async.Future<Goal> get(core.String accountId, core.String webPropertyId, core.String profileId, core.String goalId) {
+ ManagementGoalsResourceApi(commons.ApiRequester client) : _requester = client;
+
+ /// Gets a goal to which the user has access.
+ ///
+ /// Request parameters:
+ ///
+ /// [accountId] - Account ID to retrieve the goal for.
+ ///
+ /// [webPropertyId] - Web property ID to retrieve the goal for.
+ ///
+ /// [profileId] - View (Profile) ID to retrieve the goal for.
+ ///
+ /// [goalId] - Goal ID to retrieve the goal for.
+ ///
+ /// Completes with a [Goal].
+ ///
+ /// Completes with a [commons.ApiRequestError] if the API endpoint returned
+ /// an error.
+ ///
+ /// If the used [http.Client] completes with an error when making a REST
+ /// call, this method will complete with the same error.
+ async.Future<Goal> get(core.String accountId, core.String webPropertyId,
+ core.String profileId, core.String goalId) {
var _url = null;
var _queryParams = new core.Map();
var _uploadMedia = null;
@@ -2081,40 +2180,45 @@ class ManagementGoalsResourceApi {
throw new core.ArgumentError("Parameter goalId is required.");
}
- _url = 'management/accounts/' + commons.Escaper.ecapeVariable('$accountId') + '/webproperties/' + commons.Escaper.ecapeVariable('$webPropertyId') + '/profiles/' + commons.Escaper.ecapeVariable('$profileId') + '/goals/' + commons.Escaper.ecapeVariable('$goalId');
-
- var _response = _requester.request(_url,
- "GET",
- body: _body,
- queryParams: _queryParams,
- uploadOptions: _uploadOptions,
- uploadMedia: _uploadMedia,
- downloadOptions: _downloadOptions);
+ _url = 'management/accounts/' +
+ commons.Escaper.ecapeVariable('$accountId') +
+ '/webproperties/' +
+ commons.Escaper.ecapeVariable('$webPropertyId') +
+ '/profiles/' +
+ commons.Escaper.ecapeVariable('$profileId') +
+ '/goals/' +
+ commons.Escaper.ecapeVariable('$goalId');
+
+ var _response = _requester.request(_url, "GET",
+ body: _body,
+ queryParams: _queryParams,
+ uploadOptions: _uploadOptions,
+ uploadMedia: _uploadMedia,
+ downloadOptions: _downloadOptions);
return _response.then((data) => new Goal.fromJson(data));
}
- /**
- * Create a new goal.
- *
- * [request] - The metadata request object.
- *
- * Request parameters:
- *
- * [accountId] - Account ID to create the goal for.
- *
- * [webPropertyId] - Web property ID to create the goal for.
- *
- * [profileId] - View (Profile) ID to create the goal for.
- *
- * Completes with a [Goal].
- *
- * Completes with a [commons.ApiRequestError] if the API endpoint returned an
- * error.
- *
- * If the used [http.Client] completes with an error when making a REST call,
- * this method will complete with the same error.
- */
- async.Future<Goal> insert(Goal request, core.String accountId, core.String webPropertyId, core.String profileId) {
+ /// Create a new goal.
+ ///
+ /// [request] - The metadata request object.
+ ///
+ /// Request parameters:
+ ///
+ /// [accountId] - Account ID to create the goal for.
+ ///
+ /// [webPropertyId] - Web property ID to create the goal for.
+ ///
+ /// [profileId] - View (Profile) ID to create the goal for.
+ ///
+ /// Completes with a [Goal].
+ ///
+ /// Completes with a [commons.ApiRequestError] if the API endpoint returned
+ /// an error.
+ ///
+ /// If the used [http.Client] completes with an error when making a REST
+ /// call, this method will complete with the same error.
+ async.Future<Goal> insert(Goal request, core.String accountId,
+ core.String webPropertyId, core.String profileId) {
var _url = null;
var _queryParams = new core.Map();
var _uploadMedia = null;
@@ -2135,49 +2239,54 @@ class ManagementGoalsResourceApi {
throw new core.ArgumentError("Parameter profileId is required.");
}
- _url = 'management/accounts/' + commons.Escaper.ecapeVariable('$accountId') + '/webproperties/' + commons.Escaper.ecapeVariable('$webPropertyId') + '/profiles/' + commons.Escaper.ecapeVariable('$profileId') + '/goals';
-
- var _response = _requester.request(_url,
- "POST",
- body: _body,
- queryParams: _queryParams,
- uploadOptions: _uploadOptions,
- uploadMedia: _uploadMedia,
- downloadOptions: _downloadOptions);
+ _url = 'management/accounts/' +
+ commons.Escaper.ecapeVariable('$accountId') +
+ '/webproperties/' +
+ commons.Escaper.ecapeVariable('$webPropertyId') +
+ '/profiles/' +
+ commons.Escaper.ecapeVariable('$profileId') +
+ '/goals';
+
+ var _response = _requester.request(_url, "POST",
+ body: _body,
+ queryParams: _queryParams,
+ uploadOptions: _uploadOptions,
+ uploadMedia: _uploadMedia,
+ downloadOptions: _downloadOptions);
return _response.then((data) => new Goal.fromJson(data));
}
- /**
- * Lists goals to which the user has access.
- *
- * Request parameters:
- *
- * [accountId] - Account ID to retrieve goals for. Can either be a specific
- * account ID or '~all', which refers to all the accounts that user has access
- * to.
- *
- * [webPropertyId] - Web property ID to retrieve goals for. Can either be a
- * specific web property ID or '~all', which refers to all the web properties
- * that user has access to.
- *
- * [profileId] - View (Profile) ID to retrieve goals for. Can either be a
- * specific view (profile) ID or '~all', which refers to all the views
- * (profiles) that user has access to.
- *
- * [max_results] - The maximum number of goals to include in this response.
- *
- * [start_index] - An index of the first goal to retrieve. Use this parameter
- * as a pagination mechanism along with the max-results parameter.
- *
- * Completes with a [Goals].
- *
- * Completes with a [commons.ApiRequestError] if the API endpoint returned an
- * error.
- *
- * If the used [http.Client] completes with an error when making a REST call,
- * this method will complete with the same error.
- */
- async.Future<Goals> list(core.String accountId, core.String webPropertyId, core.String profileId, {core.int max_results, core.int start_index}) {
+ /// Lists goals to which the user has access.
+ ///
+ /// Request parameters:
+ ///
+ /// [accountId] - Account ID to retrieve goals for. Can either be a specific
+ /// account ID or '~all', which refers to all the accounts that user has
+ /// access to.
+ ///
+ /// [webPropertyId] - Web property ID to retrieve goals for. Can either be a
+ /// specific web property ID or '~all', which refers to all the web
+ /// properties that user has access to.
+ ///
+ /// [profileId] - View (Profile) ID to retrieve goals for. Can either be a
+ /// specific view (profile) ID or '~all', which refers to all the views
+ /// (profiles) that user has access to.
+ ///
+ /// [max_results] - The maximum number of goals to include in this response.
+ ///
+ /// [start_index] - An index of the first goal to retrieve. Use this
+ /// parameter as a pagination mechanism along with the max-results parameter.
+ ///
+ /// Completes with a [Goals].
+ ///
+ /// Completes with a [commons.ApiRequestError] if the API endpoint returned
+ /// an error.
+ ///
+ /// If the used [http.Client] completes with an error when making a REST
+ /// call, this method will complete with the same error.
+ async.Future<Goals> list(
+ core.String accountId, core.String webPropertyId, core.String profileId,
+ {core.int max_results, core.int start_index}) {
var _url = null;
var _queryParams = new core.Map();
var _uploadMedia = null;
@@ -2201,42 +2310,46 @@ class ManagementGoalsResourceApi {
_queryParams["start-index"] = ["${start_index}"];
}
- _url = 'management/accounts/' + commons.Escaper.ecapeVariable('$accountId') + '/webproperties/' + commons.Escaper.ecapeVariable('$webPropertyId') + '/profiles/' + commons.Escaper.ecapeVariable('$profileId') + '/goals';
-
- var _response = _requester.request(_url,
- "GET",
- body: _body,
- queryParams: _queryParams,
- uploadOptions: _uploadOptions,
- uploadMedia: _uploadMedia,
- downloadOptions: _downloadOptions);
+ _url = 'management/accounts/' +
+ commons.Escaper.ecapeVariable('$accountId') +
+ '/webproperties/' +
+ commons.Escaper.ecapeVariable('$webPropertyId') +
+ '/profiles/' +
+ commons.Escaper.ecapeVariable('$profileId') +
+ '/goals';
+
+ var _response = _requester.request(_url, "GET",
+ body: _body,
+ queryParams: _queryParams,
+ uploadOptions: _uploadOptions,
+ uploadMedia: _uploadMedia,
+ downloadOptions: _downloadOptions);
return _response.then((data) => new Goals.fromJson(data));
}
- /**
- * Updates an existing goal. This method supports patch semantics.
- *
- * [request] - The metadata request object.
- *
- * Request parameters:
- *
- * [accountId] - Account ID to update the goal.
- *
- * [webPropertyId] - Web property ID to update the goal.
- *
- * [profileId] - View (Profile) ID to update the goal.
- *
- * [goalId] - Index of the goal to be updated.
- *
- * Completes with a [Goal].
- *
- * Completes with a [commons.ApiRequestError] if the API endpoint returned an
- * error.
- *
- * If the used [http.Client] completes with an error when making a REST call,
- * this method will complete with the same error.
- */
- async.Future<Goal> patch(Goal request, core.String accountId, core.String webPropertyId, core.String profileId, core.String goalId) {
+ /// Updates an existing goal. This method supports patch semantics.
+ ///
+ /// [request] - The metadata request object.
+ ///
+ /// Request parameters:
+ ///
+ /// [accountId] - Account ID to update the goal.
+ ///
+ /// [webPropertyId] - Web property ID to update the goal.
+ ///
+ /// [profileId] - View (Profile) ID to update the goal.
+ ///
+ /// [goalId] - Index of the goal to be updated.
+ ///
+ /// Completes with a [Goal].
+ ///
+ /// Completes with a [commons.ApiRequestError] if the API endpoint returned
+ /// an error.
+ ///
+ /// If the used [http.Client] completes with an error when making a REST
+ /// call, this method will complete with the same error.
+ async.Future<Goal> patch(Goal request, core.String accountId,
+ core.String webPropertyId, core.String profileId, core.String goalId) {
var _url = null;
var _queryParams = new core.Map();
var _uploadMedia = null;
@@ -2260,42 +2373,47 @@ class ManagementGoalsResourceApi {
throw new core.ArgumentError("Parameter goalId is required.");
}
- _url = 'management/accounts/' + commons.Escaper.ecapeVariable('$accountId') + '/webproperties/' + commons.Escaper.ecapeVariable('$webPropertyId') + '/profiles/' + commons.Escaper.ecapeVariable('$profileId') + '/goals/' + commons.Escaper.ecapeVariable('$goalId');
-
- var _response = _requester.request(_url,
- "PATCH",
- body: _body,
- queryParams: _queryParams,
- uploadOptions: _uploadOptions,
- uploadMedia: _uploadMedia,
- downloadOptions: _downloadOptions);
+ _url = 'management/accounts/' +
+ commons.Escaper.ecapeVariable('$accountId') +
+ '/webproperties/' +
+ commons.Escaper.ecapeVariable('$webPropertyId') +
+ '/profiles/' +
+ commons.Escaper.ecapeVariable('$profileId') +
+ '/goals/' +
+ commons.Escaper.ecapeVariable('$goalId');
+
+ var _response = _requester.request(_url, "PATCH",
+ body: _body,
+ queryParams: _queryParams,
+ uploadOptions: _uploadOptions,
+ uploadMedia: _uploadMedia,
+ downloadOptions: _downloadOptions);
return _response.then((data) => new Goal.fromJson(data));
}
- /**
- * Updates an existing goal.
- *
- * [request] - The metadata request object.
- *
- * Request parameters:
- *
- * [accountId] - Account ID to update the goal.
- *
- * [webPropertyId] - Web property ID to update the goal.
- *
- * [profileId] - View (Profile) ID to update the goal.
- *
- * [goalId] - Index of the goal to be updated.
- *
- * Completes with a [Goal].
- *
- * Completes with a [commons.ApiRequestError] if the API endpoint returned an
- * error.
- *
- * If the used [http.Client] completes with an error when making a REST call,
- * this method will complete with the same error.
- */
- async.Future<Goal> update(Goal request, core.String accountId, core.String webPropertyId, core.String profileId, core.String goalId) {
+ /// Updates an existing goal.
+ ///
+ /// [request] - The metadata request object.
+ ///
+ /// Request parameters:
+ ///
+ /// [accountId] - Account ID to update the goal.
+ ///
+ /// [webPropertyId] - Web property ID to update the goal.
+ ///
+ /// [profileId] - View (Profile) ID to update the goal.
+ ///
+ /// [goalId] - Index of the goal to be updated.
+ ///
+ /// Completes with a [Goal].
+ ///
+ /// Completes with a [commons.ApiRequestError] if the API endpoint returned
+ /// an error.
+ ///
+ /// If the used [http.Client] completes with an error when making a REST
+ /// call, this method will complete with the same error.
+ async.Future<Goal> update(Goal request, core.String accountId,
+ core.String webPropertyId, core.String profileId, core.String goalId) {
var _url = null;
var _queryParams = new core.Map();
var _uploadMedia = null;
@@ -2319,51 +2437,55 @@ class ManagementGoalsResourceApi {
throw new core.ArgumentError("Parameter goalId is required.");
}
- _url = 'management/accounts/' + commons.Escaper.ecapeVariable('$accountId') + '/webproperties/' + commons.Escaper.ecapeVariable('$webPropertyId') + '/profiles/' + commons.Escaper.ecapeVariable('$profileId') + '/goals/' + commons.Escaper.ecapeVariable('$goalId');
-
- var _response = _requester.request(_url,
- "PUT",
- body: _body,
- queryParams: _queryParams,
- uploadOptions: _uploadOptions,
- uploadMedia: _uploadMedia,
- downloadOptions: _downloadOptions);
+ _url = 'management/accounts/' +
+ commons.Escaper.ecapeVariable('$accountId') +
+ '/webproperties/' +
+ commons.Escaper.ecapeVariable('$webPropertyId') +
+ '/profiles/' +
+ commons.Escaper.ecapeVariable('$profileId') +
+ '/goals/' +
+ commons.Escaper.ecapeVariable('$goalId');
+
+ var _response = _requester.request(_url, "PUT",
+ body: _body,
+ queryParams: _queryParams,
+ uploadOptions: _uploadOptions,
+ uploadMedia: _uploadMedia,
+ downloadOptions: _downloadOptions);
return _response.then((data) => new Goal.fromJson(data));
}
-
}
-
class ManagementProfileFilterLinksResourceApi {
final commons.ApiRequester _requester;
- ManagementProfileFilterLinksResourceApi(commons.ApiRequester client) :
- _requester = client;
-
- /**
- * Delete a profile filter link.
- *
- * Request parameters:
- *
- * [accountId] - Account ID to which the profile filter link belongs.
- * Value must have pattern "\d+".
- *
- * [webPropertyId] - Web property Id to which the profile filter link belongs.
- * Value must have pattern "UA-(\d+)-(\d+)".
- *
- * [profileId] - Profile ID to which the filter link belongs.
- * Value must have pattern "\d+".
- *
- * [linkId] - ID of the profile filter link to delete.
- * Value must have pattern "\d+:\d+".
- *
- * Completes with a [commons.ApiRequestError] if the API endpoint returned an
- * error.
- *
- * If the used [http.Client] completes with an error when making a REST call,
- * this method will complete with the same error.
- */
- async.Future delete(core.String accountId, core.String webPropertyId, core.String profileId, core.String linkId) {
+ ManagementProfileFilterLinksResourceApi(commons.ApiRequester client)
+ : _requester = client;
+
+ /// Delete a profile filter link.
+ ///
+ /// Request parameters:
+ ///
+ /// [accountId] - Account ID to which the profile filter link belongs.
+ /// Value must have pattern "\d+".
+ ///
+ /// [webPropertyId] - Web property Id to which the profile filter link
+ /// belongs.
+ /// Value must have pattern "UA-(\d+)-(\d+)".
+ ///
+ /// [profileId] - Profile ID to which the filter link belongs.
+ /// Value must have pattern "\d+".
+ ///
+ /// [linkId] - ID of the profile filter link to delete.
+ /// Value must have pattern "\d+:\d+".
+ ///
+ /// Completes with a [commons.ApiRequestError] if the API endpoint returned
+ /// an error.
+ ///
+ /// If the used [http.Client] completes with an error when making a REST
+ /// call, this method will complete with the same error.
+ async.Future delete(core.String accountId, core.String webPropertyId,
+ core.String profileId, core.String linkId) {
var _url = null;
var _queryParams = new core.Map();
var _uploadMedia = null;
@@ -2386,44 +2508,49 @@ class ManagementProfileFilterLinksResourceApi {
_downloadOptions = null;
- _url = 'management/accounts/' + commons.Escaper.ecapeVariable('$accountId') + '/webproperties/' + commons.Escaper.ecapeVariable('$webPropertyId') + '/profiles/' + commons.Escaper.ecapeVariable('$profileId') + '/profileFilterLinks/' + commons.Escaper.ecapeVariable('$linkId');
-
- var _response = _requester.request(_url,
- "DELETE",
- body: _body,
- queryParams: _queryParams,
- uploadOptions: _uploadOptions,
- uploadMedia: _uploadMedia,
- downloadOptions: _downloadOptions);
+ _url = 'management/accounts/' +
+ commons.Escaper.ecapeVariable('$accountId') +
+ '/webproperties/' +
+ commons.Escaper.ecapeVariable('$webPropertyId') +
+ '/profiles/' +
+ commons.Escaper.ecapeVariable('$profileId') +
+ '/profileFilterLinks/' +
+ commons.Escaper.ecapeVariable('$linkId');
+
+ var _response = _requester.request(_url, "DELETE",
+ body: _body,
+ queryParams: _queryParams,
+ uploadOptions: _uploadOptions,
+ uploadMedia: _uploadMedia,
+ downloadOptions: _downloadOptions);
return _response.then((data) => null);
}
- /**
- * Returns a single profile filter link.
- *
- * Request parameters:
- *
- * [accountId] - Account ID to retrieve profile filter link for.
- * Value must have pattern "\d+".
- *
- * [webPropertyId] - Web property Id to retrieve profile filter link for.
- * Value must have pattern "UA-(\d+)-(\d+)".
- *
- * [profileId] - Profile ID to retrieve filter link for.
- * Value must have pattern "\d+".
- *
- * [linkId] - ID of the profile filter link.
- * Value must have pattern "\d+:\d+".
- *
- * Completes with a [ProfileFilterLink].
- *
- * Completes with a [commons.ApiRequestError] if the API endpoint returned an
- * error.
- *
- * If the used [http.Client] completes with an error when making a REST call,
- * this method will complete with the same error.
- */
- async.Future<ProfileFilterLink> get(core.String accountId, core.String webPropertyId, core.String profileId, core.String linkId) {
+ /// Returns a single profile filter link.
+ ///
+ /// Request parameters:
+ ///
+ /// [accountId] - Account ID to retrieve profile filter link for.
+ /// Value must have pattern "\d+".
+ ///
+ /// [webPropertyId] - Web property Id to retrieve profile filter link for.
+ /// Value must have pattern "UA-(\d+)-(\d+)".
+ ///
+ /// [profileId] - Profile ID to retrieve filter link for.
+ /// Value must have pattern "\d+".
+ ///
+ /// [linkId] - ID of the profile filter link.
+ /// Value must have pattern "\d+:\d+".
+ ///
+ /// Completes with a [ProfileFilterLink].
+ ///
+ /// Completes with a [commons.ApiRequestError] if the API endpoint returned
+ /// an error.
+ ///
+ /// If the used [http.Client] completes with an error when making a REST
+ /// call, this method will complete with the same error.
+ async.Future<ProfileFilterLink> get(core.String accountId,
+ core.String webPropertyId, core.String profileId, core.String linkId) {
var _url = null;
var _queryParams = new core.Map();
var _uploadMedia = null;
@@ -2444,43 +2571,48 @@ class ManagementProfileFilterLinksResourceApi {
throw new core.ArgumentError("Parameter linkId is required.");
}
- _url = 'management/accounts/' + commons.Escaper.ecapeVariable('$accountId') + '/webproperties/' + commons.Escaper.ecapeVariable('$webPropertyId') + '/profiles/' + commons.Escaper.ecapeVariable('$profileId') + '/profileFilterLinks/' + commons.Escaper.ecapeVariable('$linkId');
-
- var _response = _requester.request(_url,
- "GET",
- body: _body,
- queryParams: _queryParams,
- uploadOptions: _uploadOptions,
- uploadMedia: _uploadMedia,
- downloadOptions: _downloadOptions);
+ _url = 'management/accounts/' +
+ commons.Escaper.ecapeVariable('$accountId') +
+ '/webproperties/' +
+ commons.Escaper.ecapeVariable('$webPropertyId') +
+ '/profiles/' +
+ commons.Escaper.ecapeVariable('$profileId') +
+ '/profileFilterLinks/' +
+ commons.Escaper.ecapeVariable('$linkId');
+
+ var _response = _requester.request(_url, "GET",
+ body: _body,
+ queryParams: _queryParams,
+ uploadOptions: _uploadOptions,
+ uploadMedia: _uploadMedia,
+ downloadOptions: _downloadOptions);
return _response.then((data) => new ProfileFilterLink.fromJson(data));
}
- /**
- * Create a new profile filter link.
- *
- * [request] - The metadata request object.
- *
- * Request parameters:
- *
- * [accountId] - Account ID to create profile filter link for.
- * Value must have pattern "\d+".
- *
- * [webPropertyId] - Web property Id to create profile filter link for.
- * Value must have pattern "UA-(\d+)-(\d+)".
- *
- * [profileId] - Profile ID to create filter link for.
- * Value must have pattern "\d+".
- *
- * Completes with a [ProfileFilterLink].
- *
- * Completes with a [commons.ApiRequestError] if the API endpoint returned an
- * error.
- *
- * If the used [http.Client] completes with an error when making a REST call,
- * this method will complete with the same error.
- */
- async.Future<ProfileFilterLink> insert(ProfileFilterLink request, core.String accountId, core.String webPropertyId, core.String profileId) {
+ /// Create a new profile filter link.
+ ///
+ /// [request] - The metadata request object.
+ ///
+ /// Request parameters:
+ ///
+ /// [accountId] - Account ID to create profile filter link for.
+ /// Value must have pattern "\d+".
+ ///
+ /// [webPropertyId] - Web property Id to create profile filter link for.
+ /// Value must have pattern "UA-(\d+)-(\d+)".
+ ///
+ /// [profileId] - Profile ID to create filter link for.
+ /// Value must have pattern "\d+".
+ ///
+ /// Completes with a [ProfileFilterLink].
+ ///
+ /// Completes with a [commons.ApiRequestError] if the API endpoint returned
+ /// an error.
+ ///
+ /// If the used [http.Client] completes with an error when making a REST
+ /// call, this method will complete with the same error.
+ async.Future<ProfileFilterLink> insert(ProfileFilterLink request,
+ core.String accountId, core.String webPropertyId, core.String profileId) {
var _url = null;
var _queryParams = new core.Map();
var _uploadMedia = null;
@@ -2501,49 +2633,54 @@ class ManagementProfileFilterLinksResourceApi {
throw new core.ArgumentError("Parameter profileId is required.");
}
- _url = 'management/accounts/' + commons.Escaper.ecapeVariable('$accountId') + '/webproperties/' + commons.Escaper.ecapeVariable('$webPropertyId') + '/profiles/' + commons.Escaper.ecapeVariable('$profileId') + '/profileFilterLinks';
-
- var _response = _requester.request(_url,
- "POST",
- body: _body,
- queryParams: _queryParams,
- uploadOptions: _uploadOptions,
- uploadMedia: _uploadMedia,
- downloadOptions: _downloadOptions);
+ _url = 'management/accounts/' +
+ commons.Escaper.ecapeVariable('$accountId') +
+ '/webproperties/' +
+ commons.Escaper.ecapeVariable('$webPropertyId') +
+ '/profiles/' +
+ commons.Escaper.ecapeVariable('$profileId') +
+ '/profileFilterLinks';
+
+ var _response = _requester.request(_url, "POST",
+ body: _body,
+ queryParams: _queryParams,
+ uploadOptions: _uploadOptions,
+ uploadMedia: _uploadMedia,
+ downloadOptions: _downloadOptions);
return _response.then((data) => new ProfileFilterLink.fromJson(data));
}
- /**
- * Lists all profile filter links for a profile.
- *
- * Request parameters:
- *
- * [accountId] - Account ID to retrieve profile filter links for.
- * Value must have pattern "\d+".
- *
- * [webPropertyId] - Web property Id for profile filter links for. Can either
- * be a specific web property ID or '~all', which refers to all the web
- * properties that user has access to.
- *
- * [profileId] - Profile ID to retrieve filter links for. Can either be a
- * specific profile ID or '~all', which refers to all the profiles that user
- * has access to.
- *
- * [max_results] - The maximum number of profile filter links to include in
- * this response.
- *
- * [start_index] - An index of the first entity to retrieve. Use this
- * parameter as a pagination mechanism along with the max-results parameter.
- *
- * Completes with a [ProfileFilterLinks].
- *
- * Completes with a [commons.ApiRequestError] if the API endpoint returned an
- * error.
- *
- * If the used [http.Client] completes with an error when making a REST call,
- * this method will complete with the same error.
- */
- async.Future<ProfileFilterLinks> list(core.String accountId, core.String webPropertyId, core.String profileId, {core.int max_results, core.int start_index}) {
+ /// Lists all profile filter links for a profile.
+ ///
+ /// Request parameters:
+ ///
+ /// [accountId] - Account ID to retrieve profile filter links for.
+ /// Value must have pattern "\d+".
+ ///
+ /// [webPropertyId] - Web property Id for profile filter links for. Can
+ /// either be a specific web property ID or '~all', which refers to all the
+ /// web properties that user has access to.
+ ///
+ /// [profileId] - Profile ID to retrieve filter links for. Can either be a
+ /// specific profile ID or '~all', which refers to all the profiles that user
+ /// has access to.
+ ///
+ /// [max_results] - The maximum number of profile filter links to include in
+ /// this response.
+ ///
+ /// [start_index] - An index of the first entity to retrieve. Use this
+ /// parameter as a pagination mechanism along with the max-results parameter.
+ ///
+ /// Completes with a [ProfileFilterLinks].
+ ///
+ /// Completes with a [commons.ApiRequestError] if the API endpoint returned
+ /// an error.
+ ///
+ /// If the used [http.Client] completes with an error when making a REST
+ /// call, this method will complete with the same error.
+ async.Future<ProfileFilterLinks> list(
+ core.String accountId, core.String webPropertyId, core.String profileId,
+ {core.int max_results, core.int start_index}) {
var _url = null;
var _queryParams = new core.Map();
var _uploadMedia = null;
@@ -2567,47 +2704,55 @@ class ManagementProfileFilterLinksResourceApi {
_queryParams["start-index"] = ["${start_index}"];
}
- _url = 'management/accounts/' + commons.Escaper.ecapeVariable('$accountId') + '/webproperties/' + commons.Escaper.ecapeVariable('$webPropertyId') + '/profiles/' + commons.Escaper.ecapeVariable('$profileId') + '/profileFilterLinks';
-
- var _response = _requester.request(_url,
- "GET",
- body: _body,
- queryParams: _queryParams,
- uploadOptions: _uploadOptions,
- uploadMedia: _uploadMedia,
- downloadOptions: _downloadOptions);
+ _url = 'management/accounts/' +
+ commons.Escaper.ecapeVariable('$accountId') +
+ '/webproperties/' +
+ commons.Escaper.ecapeVariable('$webPropertyId') +
+ '/profiles/' +
+ commons.Escaper.ecapeVariable('$profileId') +
+ '/profileFilterLinks';
+
+ var _response = _requester.request(_url, "GET",
+ body: _body,
+ queryParams: _queryParams,
+ uploadOptions: _uploadOptions,
+ uploadMedia: _uploadMedia,
+ downloadOptions: _downloadOptions);
return _response.then((data) => new ProfileFilterLinks.fromJson(data));
}
- /**
- * Update an existing profile filter link. This method supports patch
- * semantics.
- *
- * [request] - The metadata request object.
- *
- * Request parameters:
- *
- * [accountId] - Account ID to which profile filter link belongs.
- * Value must have pattern "\d+".
- *
- * [webPropertyId] - Web property Id to which profile filter link belongs
- * Value must have pattern "UA-(\d+)-(\d+)".
- *
- * [profileId] - Profile ID to which filter link belongs
- * Value must have pattern "\d+".
- *
- * [linkId] - ID of the profile filter link to be updated.
- * Value must have pattern "\d+:\d+".
- *
- * Completes with a [ProfileFilterLink].
- *
- * Completes with a [commons.ApiRequestError] if the API endpoint returned an
- * error.
- *
- * If the used [http.Client] completes with an error when making a REST call,
- * this method will complete with the same error.
- */
- async.Future<ProfileFilterLink> patch(ProfileFilterLink request, core.String accountId, core.String webPropertyId, core.String profileId, core.String linkId) {
+ /// Update an existing profile filter link. This method supports patch
+ /// semantics.
+ ///
+ /// [request] - The metadata request object.
+ ///
+ /// Request parameters:
+ ///
+ /// [accountId] - Account ID to which profile filter link belongs.
+ /// Value must have pattern "\d+".
+ ///
+ /// [webPropertyId] - Web property Id to which profile filter link belongs
+ /// Value must have pattern "UA-(\d+)-(\d+)".
+ ///
+ /// [profileId] - Profile ID to which filter link belongs
+ /// Value must have pattern "\d+".
+ ///
+ /// [linkId] - ID of the profile filter link to be updated.
+ /// Value must have pattern "\d+:\d+".
+ ///
+ /// Completes with a [ProfileFilterLink].
+ ///
+ /// Completes with a [commons.ApiRequestError] if the API endpoint returned
+ /// an error.
+ ///
+ /// If the used [http.Client] completes with an error when making a REST
+ /// call, this method will complete with the same error.
+ async.Future<ProfileFilterLink> patch(
+ ProfileFilterLink request,
+ core.String accountId,
+ core.String webPropertyId,
+ core.String profileId,
+ core.String linkId) {
var _url = null;
var _queryParams = new core.Map();
var _uploadMedia = null;
@@ -2631,46 +2776,55 @@ class ManagementProfileFilterLinksResourceApi {
throw new core.ArgumentError("Parameter linkId is required.");
}
- _url = 'management/accounts/' + commons.Escaper.ecapeVariable('$accountId') + '/webproperties/' + commons.Escaper.ecapeVariable('$webPropertyId') + '/profiles/' + commons.Escaper.ecapeVariable('$profileId') + '/profileFilterLinks/' + commons.Escaper.ecapeVariable('$linkId');
-
- var _response = _requester.request(_url,
- "PATCH",
- body: _body,
- queryParams: _queryParams,
- uploadOptions: _uploadOptions,
- uploadMedia: _uploadMedia,
- downloadOptions: _downloadOptions);
+ _url = 'management/accounts/' +
+ commons.Escaper.ecapeVariable('$accountId') +
+ '/webproperties/' +
+ commons.Escaper.ecapeVariable('$webPropertyId') +
+ '/profiles/' +
+ commons.Escaper.ecapeVariable('$profileId') +
+ '/profileFilterLinks/' +
+ commons.Escaper.ecapeVariable('$linkId');
+
+ var _response = _requester.request(_url, "PATCH",
+ body: _body,
+ queryParams: _queryParams,
+ uploadOptions: _uploadOptions,
+ uploadMedia: _uploadMedia,
+ downloadOptions: _downloadOptions);
return _response.then((data) => new ProfileFilterLink.fromJson(data));
}
- /**
- * Update an existing profile filter link.
- *
- * [request] - The metadata request object.
- *
- * Request parameters:
- *
- * [accountId] - Account ID to which profile filter link belongs.
- * Value must have pattern "\d+".
- *
- * [webPropertyId] - Web property Id to which profile filter link belongs
- * Value must have pattern "UA-(\d+)-(\d+)".
- *
- * [profileId] - Profile ID to which filter link belongs
- * Value must have pattern "\d+".
- *
- * [linkId] - ID of the profile filter link to be updated.
- * Value must have pattern "\d+:\d+".
- *
- * Completes with a [ProfileFilterLink].
- *
- * Completes with a [commons.ApiRequestError] if the API endpoint returned an
- * error.
- *
- * If the used [http.Client] completes with an error when making a REST call,
- * this method will complete with the same error.
- */
- async.Future<ProfileFilterLink> update(ProfileFilterLink request, core.String accountId, core.String webPropertyId, core.String profileId, core.String linkId) {
+ /// Update an existing profile filter link.
+ ///
+ /// [request] - The metadata request object.
+ ///
+ /// Request parameters:
+ ///
+ /// [accountId] - Account ID to which profile filter link belongs.
+ /// Value must have pattern "\d+".
+ ///
+ /// [webPropertyId] - Web property Id to which profile filter link belongs
+ /// Value must have pattern "UA-(\d+)-(\d+)".
+ ///
+ /// [profileId] - Profile ID to which filter link belongs
+ /// Value must have pattern "\d+".
+ ///
+ /// [linkId] - ID of the profile filter link to be updated.
+ /// Value must have pattern "\d+:\d+".
+ ///
+ /// Completes with a [ProfileFilterLink].
+ ///
+ /// Completes with a [commons.ApiRequestError] if the API endpoint returned
+ /// an error.
+ ///
+ /// If the used [http.Client] completes with an error when making a REST
+ /// call, this method will complete with the same error.
+ async.Future<ProfileFilterLink> update(
+ ProfileFilterLink request,
+ core.String accountId,
+ core.String webPropertyId,
+ core.String profileId,
+ core.String linkId) {
var _url = null;
var _queryParams = new core.Map();
var _uploadMedia = null;
@@ -2694,47 +2848,50 @@ class ManagementProfileFilterLinksResourceApi {
throw new core.ArgumentError("Parameter linkId is required.");
}
- _url = 'management/accounts/' + commons.Escaper.ecapeVariable('$accountId') + '/webproperties/' + commons.Escaper.ecapeVariable('$webPropertyId') + '/profiles/' + commons.Escaper.ecapeVariable('$profileId') + '/profileFilterLinks/' + commons.Escaper.ecapeVariable('$linkId');
-
- var _response = _requester.request(_url,
- "PUT",
- body: _body,
- queryParams: _queryParams,
- uploadOptions: _uploadOptions,
- uploadMedia: _uploadMedia,
- downloadOptions: _downloadOptions);
+ _url = 'management/accounts/' +
+ commons.Escaper.ecapeVariable('$accountId') +
+ '/webproperties/' +
+ commons.Escaper.ecapeVariable('$webPropertyId') +
+ '/profiles/' +
+ commons.Escaper.ecapeVariable('$profileId') +
+ '/profileFilterLinks/' +
+ commons.Escaper.ecapeVariable('$linkId');
+
+ var _response = _requester.request(_url, "PUT",
+ body: _body,
+ queryParams: _queryParams,
+ uploadOptions: _uploadOptions,
+ uploadMedia: _uploadMedia,
+ downloadOptions: _downloadOptions);
return _response.then((data) => new ProfileFilterLink.fromJson(data));
}
-
}
-
class ManagementProfileUserLinksResourceApi {
final commons.ApiRequester _requester;
- ManagementProfileUserLinksResourceApi(commons.ApiRequester client) :
- _requester = client;
-
- /**
- * Removes a user from the given view (profile).
- *
- * Request parameters:
- *
- * [accountId] - Account ID to delete the user link for.
- *
- * [webPropertyId] - Web Property ID to delete the user link for.
- *
- * [profileId] - View (Profile) ID to delete the user link for.
- *
- * [linkId] - Link ID to delete the user link for.
- *
- * Completes with a [commons.ApiRequestError] if the API endpoint returned an
- * error.
- *
- * If the used [http.Client] completes with an error when making a REST call,
- * this method will complete with the same error.
- */
- async.Future delete(core.String accountId, core.String webPropertyId, core.String profileId, core.String linkId) {
+ ManagementProfileUserLinksResourceApi(commons.ApiRequester client)
+ : _requester = client;
+
+ /// Removes a user from the given view (profile).
+ ///
+ /// Request parameters:
+ ///
+ /// [accountId] - Account ID to delete the user link for.
+ ///
+ /// [webPropertyId] - Web Property ID to delete the user link for.
+ ///
+ /// [profileId] - View (Profile) ID to delete the user link for.
+ ///
+ /// [linkId] - Link ID to delete the user link for.
+ ///
+ /// Completes with a [commons.ApiRequestError] if the API endpoint returned
+ /// an error.
+ ///
+ /// If the used [http.Client] completes with an error when making a REST
+ /// call, this method will complete with the same error.
+ async.Future delete(core.String accountId, core.String webPropertyId,
+ core.String profileId, core.String linkId) {
var _url = null;
var _queryParams = new core.Map();
var _uploadMedia = null;
@@ -2757,40 +2914,45 @@ class ManagementProfileUserLinksResourceApi {
_downloadOptions = null;
- _url = 'management/accounts/' + commons.Escaper.ecapeVariable('$accountId') + '/webproperties/' + commons.Escaper.ecapeVariable('$webPropertyId') + '/profiles/' + commons.Escaper.ecapeVariable('$profileId') + '/entityUserLinks/' + commons.Escaper.ecapeVariable('$linkId');
-
- var _response = _requester.request(_url,
- "DELETE",
- body: _body,
- queryParams: _queryParams,
- uploadOptions: _uploadOptions,
- uploadMedia: _uploadMedia,
- downloadOptions: _downloadOptions);
+ _url = 'management/accounts/' +
+ commons.Escaper.ecapeVariable('$accountId') +
+ '/webproperties/' +
+ commons.Escaper.ecapeVariable('$webPropertyId') +
+ '/profiles/' +
+ commons.Escaper.ecapeVariable('$profileId') +
+ '/entityUserLinks/' +
+ commons.Escaper.ecapeVariable('$linkId');
+
+ var _response = _requester.request(_url, "DELETE",
+ body: _body,
+ queryParams: _queryParams,
+ uploadOptions: _uploadOptions,
+ uploadMedia: _uploadMedia,
+ downloadOptions: _downloadOptions);
return _response.then((data) => null);
}
- /**
- * Adds a new user to the given view (profile).
- *
- * [request] - The metadata request object.
- *
- * Request parameters:
- *
- * [accountId] - Account ID to create the user link for.
- *
- * [webPropertyId] - Web Property ID to create the user link for.
- *
- * [profileId] - View (Profile) ID to create the user link for.
- *
- * Completes with a [EntityUserLink].
- *
- * Completes with a [commons.ApiRequestError] if the API endpoint returned an
- * error.
- *
- * If the used [http.Client] completes with an error when making a REST call,
- * this method will complete with the same error.
- */
- async.Future<EntityUserLink> insert(EntityUserLink request, core.String accountId, core.String webPropertyId, core.String profileId) {
+ /// Adds a new user to the given view (profile).
+ ///
+ /// [request] - The metadata request object.
+ ///
+ /// Request parameters:
+ ///
+ /// [accountId] - Account ID to create the user link for.
+ ///
+ /// [webPropertyId] - Web Property ID to create the user link for.
+ ///
+ /// [profileId] - View (Profile) ID to create the user link for.
+ ///
+ /// Completes with a [EntityUserLink].
+ ///
+ /// Completes with a [commons.ApiRequestError] if the API endpoint returned
+ /// an error.
+ ///
+ /// If the used [http.Client] completes with an error when making a REST
+ /// call, this method will complete with the same error.
+ async.Future<EntityUserLink> insert(EntityUserLink request,
+ core.String accountId, core.String webPropertyId, core.String profileId) {
var _url = null;
var _queryParams = new core.Map();
var _uploadMedia = null;
@@ -2811,49 +2973,54 @@ class ManagementProfileUserLinksResourceApi {
throw new core.ArgumentError("Parameter profileId is required.");
}
- _url = 'management/accounts/' + commons.Escaper.ecapeVariable('$accountId') + '/webproperties/' + commons.Escaper.ecapeVariable('$webPropertyId') + '/profiles/' + commons.Escaper.ecapeVariable('$profileId') + '/entityUserLinks';
-
- var _response = _requester.request(_url,
- "POST",
- body: _body,
- queryParams: _queryParams,
- uploadOptions: _uploadOptions,
- uploadMedia: _uploadMedia,
- downloadOptions: _downloadOptions);
+ _url = 'management/accounts/' +
+ commons.Escaper.ecapeVariable('$accountId') +
+ '/webproperties/' +
+ commons.Escaper.ecapeVariable('$webPropertyId') +
+ '/profiles/' +
+ commons.Escaper.ecapeVariable('$profileId') +
+ '/entityUserLinks';
+
+ var _response = _requester.request(_url, "POST",
+ body: _body,
+ queryParams: _queryParams,
+ uploadOptions: _uploadOptions,
+ uploadMedia: _uploadMedia,
+ downloadOptions: _downloadOptions);
return _response.then((data) => new EntityUserLink.fromJson(data));
}
- /**
- * Lists profile-user links for a given view (profile).
- *
- * Request parameters:
- *
- * [accountId] - Account ID which the given view (profile) belongs to.
- *
- * [webPropertyId] - Web Property ID which the given view (profile) belongs
- * to. Can either be a specific web property ID or '~all', which refers to all
- * the web properties that user has access to.
- *
- * [profileId] - View (Profile) ID to retrieve the profile-user links for. Can
- * either be a specific profile ID or '~all', which refers to all the profiles
- * that user has access to.
- *
- * [max_results] - The maximum number of profile-user links to include in this
- * response.
- *
- * [start_index] - An index of the first profile-user link to retrieve. Use
- * this parameter as a pagination mechanism along with the max-results
- * parameter.
- *
- * Completes with a [EntityUserLinks].
- *
- * Completes with a [commons.ApiRequestError] if the API endpoint returned an
- * error.
- *
- * If the used [http.Client] completes with an error when making a REST call,
- * this method will complete with the same error.
- */
- async.Future<EntityUserLinks> list(core.String accountId, core.String webPropertyId, core.String profileId, {core.int max_results, core.int start_index}) {
+ /// Lists profile-user links for a given view (profile).
+ ///
+ /// Request parameters:
+ ///
+ /// [accountId] - Account ID which the given view (profile) belongs to.
+ ///
+ /// [webPropertyId] - Web Property ID which the given view (profile) belongs
+ /// to. Can either be a specific web property ID or '~all', which refers to
+ /// all the web properties that user has access to.
+ ///
+ /// [profileId] - View (Profile) ID to retrieve the profile-user links for.
+ /// Can either be a specific profile ID or '~all', which refers to all the
+ /// profiles that user has access to.
+ ///
+ /// [max_results] - The maximum number of profile-user links to include in
+ /// this response.
+ ///
+ /// [start_index] - An index of the first profile-user link to retrieve. Use
+ /// this parameter as a pagination mechanism along with the max-results
+ /// parameter.
+ ///
+ /// Completes with a [EntityUserLinks].
+ ///
+ /// Completes with a [commons.ApiRequestError] if the API endpoint returned
+ /// an error.
+ ///
+ /// If the used [http.Client] completes with an error when making a REST
+ /// call, this method will complete with the same error.
+ async.Future<EntityUserLinks> list(
+ core.String accountId, core.String webPropertyId, core.String profileId,
+ {core.int max_results, core.int start_index}) {
var _url = null;
var _queryParams = new core.Map();
var _uploadMedia = null;
@@ -2877,42 +3044,50 @@ class ManagementProfileUserLinksResourceApi {
_queryParams["start-index"] = ["${start_index}"];
}
- _url = 'management/accounts/' + commons.Escaper.ecapeVariable('$accountId') + '/webproperties/' + commons.Escaper.ecapeVariable('$webPropertyId') + '/profiles/' + commons.Escaper.ecapeVariable('$profileId') + '/entityUserLinks';
-
- var _response = _requester.request(_url,
- "GET",
- body: _body,
- queryParams: _queryParams,
- uploadOptions: _uploadOptions,
- uploadMedia: _uploadMedia,
- downloadOptions: _downloadOptions);
+ _url = 'management/accounts/' +
+ commons.Escaper.ecapeVariable('$accountId') +
+ '/webproperties/' +
+ commons.Escaper.ecapeVariable('$webPropertyId') +
+ '/profiles/' +
+ commons.Escaper.ecapeVariable('$profileId') +
+ '/entityUserLinks';
+
+ var _response = _requester.request(_url, "GET",
+ body: _body,
+ queryParams: _queryParams,
+ uploadOptions: _uploadOptions,
+ uploadMedia: _uploadMedia,
+ downloadOptions: _downloadOptions);
return _response.then((data) => new EntityUserLinks.fromJson(data));
}
- /**
- * Updates permissions for an existing user on the given view (profile).
- *
- * [request] - The metadata request object.
- *
- * Request parameters:
- *
- * [accountId] - Account ID to update the user link for.
- *
- * [webPropertyId] - Web Property ID to update the user link for.
- *
- * [profileId] - View (Profile ID) to update the user link for.
- *
- * [linkId] - Link ID to update the user link for.
- *
- * Completes with a [EntityUserLink].
- *
- * Completes with a [commons.ApiRequestError] if the API endpoint returned an
- * error.
- *
- * If the used [http.Client] completes with an error when making a REST call,
- * this method will complete with the same error.
- */
- async.Future<EntityUserLink> update(EntityUserLink request, core.String accountId, core.String webPropertyId, core.String profileId, core.String linkId) {
+ /// Updates permissions for an existing user on the given view (profile).
+ ///
+ /// [request] - The metadata request object.
+ ///
+ /// Request parameters:
+ ///
+ /// [accountId] - Account ID to update the user link for.
+ ///
+ /// [webPropertyId] - Web Property ID to update the user link for.
+ ///
+ /// [profileId] - View (Profile ID) to update the user link for.
+ ///
+ /// [linkId] - Link ID to update the user link for.
+ ///
+ /// Completes with a [EntityUserLink].
+ ///
+ /// Completes with a [commons.ApiRequestError] if the API endpoint returned
+ /// an error.
+ ///
+ /// If the used [http.Client] completes with an error when making a REST
+ /// call, this method will complete with the same error.
+ async.Future<EntityUserLink> update(
+ EntityUserLink request,
+ core.String accountId,
+ core.String webPropertyId,
+ core.String profileId,
+ core.String linkId) {
var _url = null;
var _queryParams = new core.Map();
var _uploadMedia = null;
@@ -2936,45 +3111,48 @@ class ManagementProfileUserLinksResourceApi {
throw new core.ArgumentError("Parameter linkId is required.");
}
- _url = 'management/accounts/' + commons.Escaper.ecapeVariable('$accountId') + '/webproperties/' + commons.Escaper.ecapeVariable('$webPropertyId') + '/profiles/' + commons.Escaper.ecapeVariable('$profileId') + '/entityUserLinks/' + commons.Escaper.ecapeVariable('$linkId');
-
- var _response = _requester.request(_url,
- "PUT",
- body: _body,
- queryParams: _queryParams,
- uploadOptions: _uploadOptions,
- uploadMedia: _uploadMedia,
- downloadOptions: _downloadOptions);
+ _url = 'management/accounts/' +
+ commons.Escaper.ecapeVariable('$accountId') +
+ '/webproperties/' +
+ commons.Escaper.ecapeVariable('$webPropertyId') +
+ '/profiles/' +
+ commons.Escaper.ecapeVariable('$profileId') +
+ '/entityUserLinks/' +
+ commons.Escaper.ecapeVariable('$linkId');
+
+ var _response = _requester.request(_url, "PUT",
+ body: _body,
+ queryParams: _queryParams,
+ uploadOptions: _uploadOptions,
+ uploadMedia: _uploadMedia,
+ downloadOptions: _downloadOptions);
return _response.then((data) => new EntityUserLink.fromJson(data));
}
-
}
-
class ManagementProfilesResourceApi {
final commons.ApiRequester _requester;
- ManagementProfilesResourceApi(commons.ApiRequester client) :
- _requester = client;
-
- /**
- * Deletes a view (profile).
- *
- * Request parameters:
- *
- * [accountId] - Account ID to delete the view (profile) for.
- *
- * [webPropertyId] - Web property ID to delete the view (profile) for.
- *
- * [profileId] - ID of the view (profile) to be deleted.
- *
- * Completes with a [commons.ApiRequestError] if the API endpoint returned an
- * error.
- *
- * If the used [http.Client] completes with an error when making a REST call,
- * this method will complete with the same error.
- */
- async.Future delete(core.String accountId, core.String webPropertyId, core.String profileId) {
+ ManagementProfilesResourceApi(commons.ApiRequester client)
+ : _requester = client;
+
+ /// Deletes a view (profile).
+ ///
+ /// Request parameters:
+ ///
+ /// [accountId] - Account ID to delete the view (profile) for.
+ ///
+ /// [webPropertyId] - Web property ID to delete the view (profile) for.
+ ///
+ /// [profileId] - ID of the view (profile) to be deleted.
+ ///
+ /// Completes with a [commons.ApiRequestError] if the API endpoint returned
+ /// an error.
+ ///
+ /// If the used [http.Client] completes with an error when making a REST
+ /// call, this method will complete with the same error.
+ async.Future delete(
+ core.String accountId, core.String webPropertyId, core.String profileId) {
var _url = null;
var _queryParams = new core.Map();
var _uploadMedia = null;
@@ -2994,41 +3172,44 @@ class ManagementProfilesResourceApi {
_downloadOptions = null;
- _url = 'management/accounts/' + commons.Escaper.ecapeVariable('$accountId') + '/webproperties/' + commons.Escaper.ecapeVariable('$webPropertyId') + '/profiles/' + commons.Escaper.ecapeVariable('$profileId');
-
- var _response = _requester.request(_url,
- "DELETE",
- body: _body,
- queryParams: _queryParams,
- uploadOptions: _uploadOptions,
- uploadMedia: _uploadMedia,
- downloadOptions: _downloadOptions);
+ _url = 'management/accounts/' +
+ commons.Escaper.ecapeVariable('$accountId') +
+ '/webproperties/' +
+ commons.Escaper.ecapeVariable('$webPropertyId') +
+ '/profiles/' +
+ commons.Escaper.ecapeVariable('$profileId');
+
+ var _response = _requester.request(_url, "DELETE",
+ body: _body,
+ queryParams: _queryParams,
+ uploadOptions: _uploadOptions,
+ uploadMedia: _uploadMedia,
+ downloadOptions: _downloadOptions);
return _response.then((data) => null);
}
- /**
- * Gets a view (profile) to which the user has access.
- *
- * Request parameters:
- *
- * [accountId] - Account ID to retrieve the view (profile) for.
- * Value must have pattern "[0-9]+".
- *
- * [webPropertyId] - Web property ID to retrieve the view (profile) for.
- * Value must have pattern "UA-[0-9]+-[0-9]+".
- *
- * [profileId] - View (Profile) ID to retrieve the view (profile) for.
- * Value must have pattern "[0-9]+".
- *
- * Completes with a [Profile].
- *
- * Completes with a [commons.ApiRequestError] if the API endpoint returned an
- * error.
- *
- * If the used [http.Client] completes with an error when making a REST call,
- * this method will complete with the same error.
- */
- async.Future<Profile> get(core.String accountId, core.String webPropertyId, core.String profileId) {
+ /// Gets a view (profile) to which the user has access.
+ ///
+ /// Request parameters:
+ ///
+ /// [accountId] - Account ID to retrieve the view (profile) for.
+ /// Value must have pattern "[0-9]+".
+ ///
+ /// [webPropertyId] - Web property ID to retrieve the view (profile) for.
+ /// Value must have pattern "UA-[0-9]+-[0-9]+".
+ ///
+ /// [profileId] - View (Profile) ID to retrieve the view (profile) for.
+ /// Value must have pattern "[0-9]+".
+ ///
+ /// Completes with a [Profile].
+ ///
+ /// Completes with a [commons.ApiRequestError] if the API endpoint returned
+ /// an error.
+ ///
+ /// If the used [http.Client] completes with an error when making a REST
+ /// call, this method will complete with the same error.
+ async.Future<Profile> get(
+ core.String accountId, core.String webPropertyId, core.String profileId) {
var _url = null;
var _queryParams = new core.Map();
var _uploadMedia = null;
@@ -3046,38 +3227,41 @@ class ManagementProfilesResourceApi {
throw new core.ArgumentError("Parameter profileId is required.");
}
- _url = 'management/accounts/' + commons.Escaper.ecapeVariable('$accountId') + '/webproperties/' + commons.Escaper.ecapeVariable('$webPropertyId') + '/profiles/' + commons.Escaper.ecapeVariable('$profileId');
+ _url = 'management/accounts/' +
+ commons.Escaper.ecapeVariable('$accountId') +
+ '/webproperties/' +
+ commons.Escaper.ecapeVariable('$webPropertyId') +
+ '/profiles/' +
+ commons.Escaper.ecapeVariable('$profileId');
- var _response = _requester.request(_url,
- "GET",
- body: _body,
- queryParams: _queryParams,
- uploadOptions: _uploadOptions,
- uploadMedia: _uploadMedia,
- downloadOptions: _downloadOptions);
+ var _response = _requester.request(_url, "GET",
+ body: _body,
+ queryParams: _queryParams,
+ uploadOptions: _uploadOptions,
+ uploadMedia: _uploadMedia,
+ downloadOptions: _downloadOptions);
return _response.then((data) => new Profile.fromJson(data));
}
- /**
- * Create a new view (profile).
- *
- * [request] - The metadata request object.
- *
- * Request parameters:
- *
- * [accountId] - Account ID to create the view (profile) for.
- *
- * [webPropertyId] - Web property ID to create the view (profile) for.
- *
- * Completes with a [Profile].
- *
- * Completes with a [commons.ApiRequestError] if the API endpoint returned an
- * error.
- *
- * If the used [http.Client] completes with an error when making a REST call,
- * this method will complete with the same error.
- */
- async.Future<Profile> insert(Profile request, core.String accountId, core.String webPropertyId) {
+ /// Create a new view (profile).
+ ///
+ /// [request] - The metadata request object.
+ ///
+ /// Request parameters:
+ ///
+ /// [accountId] - Account ID to create the view (profile) for.
+ ///
+ /// [webPropertyId] - Web property ID to create the view (profile) for.
+ ///
+ /// Completes with a [Profile].
+ ///
+ /// Completes with a [commons.ApiRequestError] if the API endpoint returned
+ /// an error.
+ ///
+ /// If the used [http.Client] completes with an error when making a REST
+ /// call, this method will complete with the same error.
+ async.Future<Profile> insert(
+ Profile request, core.String accountId, core.String webPropertyId) {
var _url = null;
var _queryParams = new core.Map();
var _uploadMedia = null;
@@ -3095,46 +3279,48 @@ class ManagementProfilesResourceApi {
throw new core.ArgumentError("Parameter webPropertyId is required.");
}
- _url = 'management/accounts/' + commons.Escaper.ecapeVariable('$accountId') + '/webproperties/' + commons.Escaper.ecapeVariable('$webPropertyId') + '/profiles';
+ _url = 'management/accounts/' +
+ commons.Escaper.ecapeVariable('$accountId') +
+ '/webproperties/' +
+ commons.Escaper.ecapeVariable('$webPropertyId') +
+ '/profiles';
- var _response = _requester.request(_url,
- "POST",
- body: _body,
- queryParams: _queryParams,
- uploadOptions: _uploadOptions,
- uploadMedia: _uploadMedia,
- downloadOptions: _downloadOptions);
+ var _response = _requester.request(_url, "POST",
+ body: _body,
+ queryParams: _queryParams,
+ uploadOptions: _uploadOptions,
+ uploadMedia: _uploadMedia,
+ downloadOptions: _downloadOptions);
return _response.then((data) => new Profile.fromJson(data));
}
- /**
- * Lists views (profiles) to which the user has access.
- *
- * Request parameters:
- *
- * [accountId] - Account ID for the view (profiles) to retrieve. Can either be
- * a specific account ID or '~all', which refers to all the accounts to which
- * the user has access.
- *
- * [webPropertyId] - Web property ID for the views (profiles) to retrieve. Can
- * either be a specific web property ID or '~all', which refers to all the web
- * properties to which the user has access.
- *
- * [max_results] - The maximum number of views (profiles) to include in this
- * response.
- *
- * [start_index] - An index of the first entity to retrieve. Use this
- * parameter as a pagination mechanism along with the max-results parameter.
- *
- * Completes with a [Profiles].
- *
- * Completes with a [commons.ApiRequestError] if the API endpoint returned an
- * error.
- *
- * If the used [http.Client] completes with an error when making a REST call,
- * this method will complete with the same error.
- */
- async.Future<Profiles> list(core.String accountId, core.String webPropertyId, {core.int max_results, core.int start_index}) {
+ /// Lists views (profiles) to which the user has access.
+ ///
+ /// Request parameters:
+ ///
+ /// [accountId] - Account ID for the view (profiles) to retrieve. Can either
+ /// be a specific account ID or '~all', which refers to all the accounts to
+ /// which the user has access.
+ ///
+ /// [webPropertyId] - Web property ID for the views (profiles) to retrieve.
+ /// Can either be a specific web property ID or '~all', which refers to all
+ /// the web properties to which the user has access.
+ ///
+ /// [max_results] - The maximum number of views (profiles) to include in this
+ /// response.
+ ///
+ /// [start_index] - An index of the first entity to retrieve. Use this
+ /// parameter as a pagination mechanism along with the max-results parameter.
+ ///
+ /// Completes with a [Profiles].
+ ///
+ /// Completes with a [commons.ApiRequestError] if the API endpoint returned
+ /// an error.
+ ///
+ /// If the used [http.Client] completes with an error when making a REST
+ /// call, this method will complete with the same error.
+ async.Future<Profiles> list(core.String accountId, core.String webPropertyId,
+ {core.int max_results, core.int start_index}) {
var _url = null;
var _queryParams = new core.Map();
var _uploadMedia = null;
@@ -3155,40 +3341,42 @@ class ManagementProfilesResourceApi {
_queryParams["start-index"] = ["${start_index}"];
}
- _url = 'management/accounts/' + commons.Escaper.ecapeVariable('$accountId') + '/webproperties/' + commons.Escaper.ecapeVariable('$webPropertyId') + '/profiles';
+ _url = 'management/accounts/' +
+ commons.Escaper.ecapeVariable('$accountId') +
+ '/webproperties/' +
+ commons.Escaper.ecapeVariable('$webPropertyId') +
+ '/profiles';
- var _response = _requester.request(_url,
- "GET",
- body: _body,
- queryParams: _queryParams,
- uploadOptions: _uploadOptions,
- uploadMedia: _uploadMedia,
- downloadOptions: _downloadOptions);
+ var _response = _requester.request(_url, "GET",
+ body: _body,
+ queryParams: _queryParams,
+ uploadOptions: _uploadOptions,
+ uploadMedia: _uploadMedia,
+ downloadOptions: _downloadOptions);
return _response.then((data) => new Profiles.fromJson(data));
}
- /**
- * Updates an existing view (profile). This method supports patch semantics.
- *
- * [request] - The metadata request object.
- *
- * Request parameters:
- *
- * [accountId] - Account ID to which the view (profile) belongs
- *
- * [webPropertyId] - Web property ID to which the view (profile) belongs
- *
- * [profileId] - ID of the view (profile) to be updated.
- *
- * Completes with a [Profile].
- *
- * Completes with a [commons.ApiRequestError] if the API endpoint returned an
- * error.
- *
- * If the used [http.Client] completes with an error when making a REST call,
- * this method will complete with the same error.
- */
- async.Future<Profile> patch(Profile request, core.String accountId, core.String webPropertyId, core.String profileId) {
+ /// Updates an existing view (profile). This method supports patch semantics.
+ ///
+ /// [request] - The metadata request object.
+ ///
+ /// Request parameters:
+ ///
+ /// [accountId] - Account ID to which the view (profile) belongs
+ ///
+ /// [webPropertyId] - Web property ID to which the view (profile) belongs
+ ///
+ /// [profileId] - ID of the view (profile) to be updated.
+ ///
+ /// Completes with a [Profile].
+ ///
+ /// Completes with a [commons.ApiRequestError] if the API endpoint returned
+ /// an error.
+ ///
+ /// If the used [http.Client] completes with an error when making a REST
+ /// call, this method will complete with the same error.
+ async.Future<Profile> patch(Profile request, core.String accountId,
+ core.String webPropertyId, core.String profileId) {
var _url = null;
var _queryParams = new core.Map();
var _uploadMedia = null;
@@ -3209,40 +3397,43 @@ class ManagementProfilesResourceApi {
throw new core.ArgumentError("Parameter profileId is required.");
}
- _url = 'management/accounts/' + commons.Escaper.ecapeVariable('$accountId') + '/webproperties/' + commons.Escaper.ecapeVariable('$webPropertyId') + '/profiles/' + commons.Escaper.ecapeVariable('$profileId');
+ _url = 'management/accounts/' +
+ commons.Escaper.ecapeVariable('$accountId') +
+ '/webproperties/' +
+ commons.Escaper.ecapeVariable('$webPropertyId') +
+ '/profiles/' +
+ commons.Escaper.ecapeVariable('$profileId');
- var _response = _requester.request(_url,
- "PATCH",
- body: _body,
- queryParams: _queryParams,
- uploadOptions: _uploadOptions,
- uploadMedia: _uploadMedia,
- downloadOptions: _downloadOptions);
+ var _response = _requester.request(_url, "PATCH",
+ body: _body,
+ queryParams: _queryParams,
+ uploadOptions: _uploadOptions,
+ uploadMedia: _uploadMedia,
+ downloadOptions: _downloadOptions);
return _response.then((data) => new Profile.fromJson(data));
}
- /**
- * Updates an existing view (profile).
- *
- * [request] - The metadata request object.
- *
- * Request parameters:
- *
- * [accountId] - Account ID to which the view (profile) belongs
- *
- * [webPropertyId] - Web property ID to which the view (profile) belongs
- *
- * [profileId] - ID of the view (profile) to be updated.
- *
- * Completes with a [Profile].
- *
- * Completes with a [commons.ApiRequestError] if the API endpoint returned an
- * error.
- *
- * If the used [http.Client] completes with an error when making a REST call,
- * this method will complete with the same error.
- */
- async.Future<Profile> update(Profile request, core.String accountId, core.String webPropertyId, core.String profileId) {
+ /// Updates an existing view (profile).
+ ///
+ /// [request] - The metadata request object.
+ ///
+ /// Request parameters:
+ ///
+ /// [accountId] - Account ID to which the view (profile) belongs
+ ///
+ /// [webPropertyId] - Web property ID to which the view (profile) belongs
+ ///
+ /// [profileId] - ID of the view (profile) to be updated.
+ ///
+ /// Completes with a [Profile].
+ ///
+ /// Completes with a [commons.ApiRequestError] if the API endpoint returned
+ /// an error.
+ ///
+ /// If the used [http.Client] completes with an error when making a REST
+ /// call, this method will complete with the same error.
+ async.Future<Profile> update(Profile request, core.String accountId,
+ core.String webPropertyId, core.String profileId) {
var _url = null;
var _queryParams = new core.Map();
var _uploadMedia = null;
@@ -3263,46 +3454,47 @@ class ManagementProfilesResourceApi {
throw new core.ArgumentError("Parameter profileId is required.");
}
- _url = 'management/accounts/' + commons.Escaper.ecapeVariable('$accountId') + '/webproperties/' + commons.Escaper.ecapeVariable('$webPropertyId') + '/profiles/' + commons.Escaper.ecapeVariable('$profileId');
+ _url = 'management/accounts/' +
+ commons.Escaper.ecapeVariable('$accountId') +
+ '/webproperties/' +
+ commons.Escaper.ecapeVariable('$webPropertyId') +
+ '/profiles/' +
+ commons.Escaper.ecapeVariable('$profileId');
- var _response = _requester.request(_url,
- "PUT",
- body: _body,
- queryParams: _queryParams,
- uploadOptions: _uploadOptions,
- uploadMedia: _uploadMedia,
- downloadOptions: _downloadOptions);
+ var _response = _requester.request(_url, "PUT",
+ body: _body,
+ queryParams: _queryParams,
+ uploadOptions: _uploadOptions,
+ uploadMedia: _uploadMedia,
+ downloadOptions: _downloadOptions);
return _response.then((data) => new Profile.fromJson(data));
}
-
}
-
class ManagementRemarketingAudienceResourceApi {
final commons.ApiRequester _requester;
- ManagementRemarketingAudienceResourceApi(commons.ApiRequester client) :
- _requester = client;
-
- /**
- * Delete a remarketing audience.
- *
- * Request parameters:
- *
- * [accountId] - Account ID to which the remarketing audience belongs.
- *
- * [webPropertyId] - Web property ID to which the remarketing audience
- * belongs.
- *
- * [remarketingAudienceId] - The ID of the remarketing audience to delete.
- *
- * Completes with a [commons.ApiRequestError] if the API endpoint returned an
- * error.
- *
- * If the used [http.Client] completes with an error when making a REST call,
- * this method will complete with the same error.
- */
- async.Future delete(core.String accountId, core.String webPropertyId, core.String remarketingAudienceId) {
+ ManagementRemarketingAudienceResourceApi(commons.ApiRequester client)
+ : _requester = client;
+
+ /// Delete a remarketing audience.
+ ///
+ /// Request parameters:
+ ///
+ /// [accountId] - Account ID to which the remarketing audience belongs.
+ ///
+ /// [webPropertyId] - Web property ID to which the remarketing audience
+ /// belongs.
+ ///
+ /// [remarketingAudienceId] - The ID of the remarketing audience to delete.
+ ///
+ /// Completes with a [commons.ApiRequestError] if the API endpoint returned
+ /// an error.
+ ///
+ /// If the used [http.Client] completes with an error when making a REST
+ /// call, this method will complete with the same error.
+ async.Future delete(core.String accountId, core.String webPropertyId,
+ core.String remarketingAudienceId) {
var _url = null;
var _queryParams = new core.Map();
var _uploadMedia = null;
@@ -3317,44 +3509,48 @@ class ManagementRemarketingAudienceResourceApi {
throw new core.ArgumentError("Parameter webPropertyId is required.");
}
if (remarketingAudienceId == null) {
- throw new core.ArgumentError("Parameter remarketingAudienceId is required.");
+ throw new core.ArgumentError(
+ "Parameter remarketingAudienceId is required.");
}
_downloadOptions = null;
- _url = 'management/accounts/' + commons.Escaper.ecapeVariable('$accountId') + '/webproperties/' + commons.Escaper.ecapeVariable('$webPropertyId') + '/remarketingAudiences/' + commons.Escaper.ecapeVariable('$remarketingAudienceId');
-
- var _response = _requester.request(_url,
- "DELETE",
- body: _body,
- queryParams: _queryParams,
- uploadOptions: _uploadOptions,
- uploadMedia: _uploadMedia,
- downloadOptions: _downloadOptions);
+ _url = 'management/accounts/' +
+ commons.Escaper.ecapeVariable('$accountId') +
+ '/webproperties/' +
+ commons.Escaper.ecapeVariable('$webPropertyId') +
+ '/remarketingAudiences/' +
+ commons.Escaper.ecapeVariable('$remarketingAudienceId');
+
+ var _response = _requester.request(_url, "DELETE",
+ body: _body,
+ queryParams: _queryParams,
+ uploadOptions: _uploadOptions,
+ uploadMedia: _uploadMedia,
+ downloadOptions: _downloadOptions);
return _response.then((data) => null);
}
- /**
- * Gets a remarketing audience to which the user has access.
- *
- * Request parameters:
- *
- * [accountId] - The account ID of the remarketing audience to retrieve.
- *
- * [webPropertyId] - The web property ID of the remarketing audience to
- * retrieve.
- *
- * [remarketingAudienceId] - The ID of the remarketing audience to retrieve.
- *
- * Completes with a [RemarketingAudience].
- *
- * Completes with a [commons.ApiRequestError] if the API endpoint returned an
- * error.
- *
- * If the used [http.Client] completes with an error when making a REST call,
- * this method will complete with the same error.
- */
- async.Future<RemarketingAudience> get(core.String accountId, core.String webPropertyId, core.String remarketingAudienceId) {
+ /// Gets a remarketing audience to which the user has access.
+ ///
+ /// Request parameters:
+ ///
+ /// [accountId] - The account ID of the remarketing audience to retrieve.
+ ///
+ /// [webPropertyId] - The web property ID of the remarketing audience to
+ /// retrieve.
+ ///
+ /// [remarketingAudienceId] - The ID of the remarketing audience to retrieve.
+ ///
+ /// Completes with a [RemarketingAudience].
+ ///
+ /// Completes with a [commons.ApiRequestError] if the API endpoint returned
+ /// an error.
+ ///
+ /// If the used [http.Client] completes with an error when making a REST
+ /// call, this method will complete with the same error.
+ async.Future<RemarketingAudience> get(core.String accountId,
+ core.String webPropertyId, core.String remarketingAudienceId) {
var _url = null;
var _queryParams = new core.Map();
var _uploadMedia = null;
@@ -3369,42 +3565,47 @@ class ManagementRemarketingAudienceResourceApi {
throw new core.ArgumentError("Parameter webPropertyId is required.");
}
if (remarketingAudienceId == null) {
- throw new core.ArgumentError("Parameter remarketingAudienceId is required.");
- }
-
- _url = 'management/accounts/' + commons.Escaper.ecapeVariable('$accountId') + '/webproperties/' + commons.Escaper.ecapeVariable('$webPropertyId') + '/remarketingAudiences/' + commons.Escaper.ecapeVariable('$remarketingAudienceId');
-
- var _response = _requester.request(_url,
- "GET",
- body: _body,
- queryParams: _queryParams,
- uploadOptions: _uploadOptions,
- uploadMedia: _uploadMedia,
- downloadOptions: _downloadOptions);
+ throw new core.ArgumentError(
+ "Parameter remarketingAudienceId is required.");
+ }
+
+ _url = 'management/accounts/' +
+ commons.Escaper.ecapeVariable('$accountId') +
+ '/webproperties/' +
+ commons.Escaper.ecapeVariable('$webPropertyId') +
+ '/remarketingAudiences/' +
+ commons.Escaper.ecapeVariable('$remarketingAudienceId');
+
+ var _response = _requester.request(_url, "GET",
+ body: _body,
+ queryParams: _queryParams,
+ uploadOptions: _uploadOptions,
+ uploadMedia: _uploadMedia,
+ downloadOptions: _downloadOptions);
return _response.then((data) => new RemarketingAudience.fromJson(data));
}
- /**
- * Creates a new remarketing audience.
- *
- * [request] - The metadata request object.
- *
- * Request parameters:
- *
- * [accountId] - The account ID for which to create the remarketing audience.
- *
- * [webPropertyId] - Web property ID for which to create the remarketing
- * audience.
- *
- * Completes with a [RemarketingAudience].
- *
- * Completes with a [commons.ApiRequestError] if the API endpoint returned an
- * error.
- *
- * If the used [http.Client] completes with an error when making a REST call,
- * this method will complete with the same error.
- */
- async.Future<RemarketingAudience> insert(RemarketingAudience request, core.String accountId, core.String webPropertyId) {
+ /// Creates a new remarketing audience.
+ ///
+ /// [request] - The metadata request object.
+ ///
+ /// Request parameters:
+ ///
+ /// [accountId] - The account ID for which to create the remarketing
+ /// audience.
+ ///
+ /// [webPropertyId] - Web property ID for which to create the remarketing
+ /// audience.
+ ///
+ /// Completes with a [RemarketingAudience].
+ ///
+ /// Completes with a [commons.ApiRequestError] if the API endpoint returned
+ /// an error.
+ ///
+ /// If the used [http.Client] completes with an error when making a REST
+ /// call, this method will complete with the same error.
+ async.Future<RemarketingAudience> insert(RemarketingAudience request,
+ core.String accountId, core.String webPropertyId) {
var _url = null;
var _queryParams = new core.Map();
var _uploadMedia = null;
@@ -3422,45 +3623,48 @@ class ManagementRemarketingAudienceResourceApi {
throw new core.ArgumentError("Parameter webPropertyId is required.");
}
- _url = 'management/accounts/' + commons.Escaper.ecapeVariable('$accountId') + '/webproperties/' + commons.Escaper.ecapeVariable('$webPropertyId') + '/remarketingAudiences';
+ _url = 'management/accounts/' +
+ commons.Escaper.ecapeVariable('$accountId') +
+ '/webproperties/' +
+ commons.Escaper.ecapeVariable('$webPropertyId') +
+ '/remarketingAudiences';
- var _response = _requester.request(_url,
- "POST",
- body: _body,
- queryParams: _queryParams,
- uploadOptions: _uploadOptions,
- uploadMedia: _uploadMedia,
- downloadOptions: _downloadOptions);
+ var _response = _requester.request(_url, "POST",
+ body: _body,
+ queryParams: _queryParams,
+ uploadOptions: _uploadOptions,
+ uploadMedia: _uploadMedia,
+ downloadOptions: _downloadOptions);
return _response.then((data) => new RemarketingAudience.fromJson(data));
}
- /**
- * Lists remarketing audiences to which the user has access.
- *
- * Request parameters:
- *
- * [accountId] - The account ID of the remarketing audiences to retrieve.
- *
- * [webPropertyId] - The web property ID of the remarketing audiences to
- * retrieve.
- *
- * [max_results] - The maximum number of remarketing audiences to include in
- * this response.
- *
- * [start_index] - An index of the first entity to retrieve. Use this
- * parameter as a pagination mechanism along with the max-results parameter.
- *
- * [type] - null
- *
- * Completes with a [RemarketingAudiences].
- *
- * Completes with a [commons.ApiRequestError] if the API endpoint returned an
- * error.
- *
- * If the used [http.Client] completes with an error when making a REST call,
- * this method will complete with the same error.
- */
- async.Future<RemarketingAudiences> list(core.String accountId, core.String webPropertyId, {core.int max_results, core.int start_index, core.String type}) {
+ /// Lists remarketing audiences to which the user has access.
+ ///
+ /// Request parameters:
+ ///
+ /// [accountId] - The account ID of the remarketing audiences to retrieve.
+ ///
+ /// [webPropertyId] - The web property ID of the remarketing audiences to
+ /// retrieve.
+ ///
+ /// [max_results] - The maximum number of remarketing audiences to include in
+ /// this response.
+ ///
+ /// [start_index] - An index of the first entity to retrieve. Use this
+ /// parameter as a pagination mechanism along with the max-results parameter.
+ ///
+ /// [type] - null
+ ///
+ /// Completes with a [RemarketingAudiences].
+ ///
+ /// Completes with a [commons.ApiRequestError] if the API endpoint returned
+ /// an error.
+ ///
+ /// If the used [http.Client] completes with an error when making a REST
+ /// call, this method will complete with the same error.
+ async.Future<RemarketingAudiences> list(
+ core.String accountId, core.String webPropertyId,
+ {core.int max_results, core.int start_index, core.String type}) {
var _url = null;
var _queryParams = new core.Map();
var _uploadMedia = null;
@@ -3484,42 +3688,47 @@ class ManagementRemarketingAudienceResourceApi {
_queryParams["type"] = [type];
}
- _url = 'management/accounts/' + commons.Escaper.ecapeVariable('$accountId') + '/webproperties/' + commons.Escaper.ecapeVariable('$webPropertyId') + '/remarketingAudiences';
+ _url = 'management/accounts/' +
+ commons.Escaper.ecapeVariable('$accountId') +
+ '/webproperties/' +
+ commons.Escaper.ecapeVariable('$webPropertyId') +
+ '/remarketingAudiences';
- var _response = _requester.request(_url,
- "GET",
- body: _body,
- queryParams: _queryParams,
- uploadOptions: _uploadOptions,
- uploadMedia: _uploadMedia,
- downloadOptions: _downloadOptions);
+ var _response = _requester.request(_url, "GET",
+ body: _body,
+ queryParams: _queryParams,
+ uploadOptions: _uploadOptions,
+ uploadMedia: _uploadMedia,
+ downloadOptions: _downloadOptions);
return _response.then((data) => new RemarketingAudiences.fromJson(data));
}
- /**
- * Updates an existing remarketing audience. This method supports patch
- * semantics.
- *
- * [request] - The metadata request object.
- *
- * Request parameters:
- *
- * [accountId] - The account ID of the remarketing audience to update.
- *
- * [webPropertyId] - The web property ID of the remarketing audience to
- * update.
- *
- * [remarketingAudienceId] - The ID of the remarketing audience to update.
- *
- * Completes with a [RemarketingAudience].
- *
- * Completes with a [commons.ApiRequestError] if the API endpoint returned an
- * error.
- *
- * If the used [http.Client] completes with an error when making a REST call,
- * this method will complete with the same error.
- */
- async.Future<RemarketingAudience> patch(RemarketingAudience request, core.String accountId, core.String webPropertyId, core.String remarketingAudienceId) {
+ /// Updates an existing remarketing audience. This method supports patch
+ /// semantics.
+ ///
+ /// [request] - The metadata request object.
+ ///
+ /// Request parameters:
+ ///
+ /// [accountId] - The account ID of the remarketing audience to update.
+ ///
+ /// [webPropertyId] - The web property ID of the remarketing audience to
+ /// update.
+ ///
+ /// [remarketingAudienceId] - The ID of the remarketing audience to update.
+ ///
+ /// Completes with a [RemarketingAudience].
+ ///
+ /// Completes with a [commons.ApiRequestError] if the API endpoint returned
+ /// an error.
+ ///
+ /// If the used [http.Client] completes with an error when making a REST
+ /// call, this method will complete with the same error.
+ async.Future<RemarketingAudience> patch(
+ RemarketingAudience request,
+ core.String accountId,
+ core.String webPropertyId,
+ core.String remarketingAudienceId) {
var _url = null;
var _queryParams = new core.Map();
var _uploadMedia = null;
@@ -3537,44 +3746,51 @@ class ManagementRemarketingAudienceResourceApi {
throw new core.ArgumentError("Parameter webPropertyId is required.");
}
if (remarketingAudienceId == null) {
- throw new core.ArgumentError("Parameter remarketingAudienceId is required.");
- }
-
- _url = 'management/accounts/' + commons.Escaper.ecapeVariable('$accountId') + '/webproperties/' + commons.Escaper.ecapeVariable('$webPropertyId') + '/remarketingAudiences/' + commons.Escaper.ecapeVariable('$remarketingAudienceId');
-
- var _response = _requester.request(_url,
- "PATCH",
- body: _body,
- queryParams: _queryParams,
- uploadOptions: _uploadOptions,
- uploadMedia: _uploadMedia,
- downloadOptions: _downloadOptions);
+ throw new core.ArgumentError(
+ "Parameter remarketingAudienceId is required.");
+ }
+
+ _url = 'management/accounts/' +
+ commons.Escaper.ecapeVariable('$accountId') +
+ '/webproperties/' +
+ commons.Escaper.ecapeVariable('$webPropertyId') +
+ '/remarketingAudiences/' +
+ commons.Escaper.ecapeVariable('$remarketingAudienceId');
+
+ var _response = _requester.request(_url, "PATCH",
+ body: _body,
+ queryParams: _queryParams,
+ uploadOptions: _uploadOptions,
+ uploadMedia: _uploadMedia,
+ downloadOptions: _downloadOptions);
return _response.then((data) => new RemarketingAudience.fromJson(data));
}
- /**
- * Updates an existing remarketing audience.
- *
- * [request] - The metadata request object.
- *
- * Request parameters:
- *
- * [accountId] - The account ID of the remarketing audience to update.
- *
- * [webPropertyId] - The web property ID of the remarketing audience to
- * update.
- *
- * [remarketingAudienceId] - The ID of the remarketing audience to update.
- *
- * Completes with a [RemarketingAudience].
- *
- * Completes with a [commons.ApiRequestError] if the API endpoint returned an
- * error.
- *
- * If the used [http.Client] completes with an error when making a REST call,
- * this method will complete with the same error.
- */
- async.Future<RemarketingAudience> update(RemarketingAudience request, core.String accountId, core.String webPropertyId, core.String remarketingAudienceId) {
+ /// Updates an existing remarketing audience.
+ ///
+ /// [request] - The metadata request object.
+ ///
+ /// Request parameters:
+ ///
+ /// [accountId] - The account ID of the remarketing audience to update.
+ ///
+ /// [webPropertyId] - The web property ID of the remarketing audience to
+ /// update.
+ ///
+ /// [remarketingAudienceId] - The ID of the remarketing audience to update.
+ ///
+ /// Completes with a [RemarketingAudience].
+ ///
+ /// Completes with a [commons.ApiRequestError] if the API endpoint returned
+ /// an error.
+ ///
+ /// If the used [http.Client] completes with an error when making a REST
+ /// call, this method will complete with the same error.
+ async.Future<RemarketingAudience> update(
+ RemarketingAudience request,
+ core.String accountId,
+ core.String webPropertyId,
+ core.String remarketingAudienceId) {
var _url = null;
var _queryParams = new core.Map();
var _uploadMedia = null;
@@ -3592,48 +3808,50 @@ class ManagementRemarketingAudienceResourceApi {
throw new core.ArgumentError("Parameter webPropertyId is required.");
}
if (remarketingAudienceId == null) {
- throw new core.ArgumentError("Parameter remarketingAudienceId is required.");
- }
-
- _url = 'management/accounts/' + commons.Escaper.ecapeVariable('$accountId') + '/webproperties/' + commons.Escaper.ecapeVariable('$webPropertyId') + '/remarketingAudiences/' + commons.Escaper.ecapeVariable('$remarketingAudienceId');
-
- var _response = _requester.request(_url,
- "PUT",
- body: _body,
- queryParams: _queryParams,
- uploadOptions: _uploadOptions,
- uploadMedia: _uploadMedia,
- downloadOptions: _downloadOptions);
+ throw new core.ArgumentError(
+ "Parameter remarketingAudienceId is required.");
+ }
+
+ _url = 'management/accounts/' +
+ commons.Escaper.ecapeVariable('$accountId') +
+ '/webproperties/' +
+ commons.Escaper.ecapeVariable('$webPropertyId') +
+ '/remarketingAudiences/' +
+ commons.Escaper.ecapeVariable('$remarketingAudienceId');
+
+ var _response = _requester.request(_url, "PUT",
+ body: _body,
+ queryParams: _queryParams,
+ uploadOptions: _uploadOptions,
+ uploadMedia: _uploadMedia,
+ downloadOptions: _downloadOptions);
return _response.then((data) => new RemarketingAudience.fromJson(data));
}
-
}
-
class ManagementSegmentsResourceApi {
final commons.ApiRequester _requester;
- ManagementSegmentsResourceApi(commons.ApiRequester client) :
- _requester = client;
-
- /**
- * Lists segments to which the user has access.
- *
- * Request parameters:
- *
- * [max_results] - The maximum number of segments to include in this response.
- *
- * [start_index] - An index of the first segment to retrieve. Use this
- * parameter as a pagination mechanism along with the max-results parameter.
- *
- * Completes with a [Segments].
- *
- * Completes with a [commons.ApiRequestError] if the API endpoint returned an
- * error.
- *
- * If the used [http.Client] completes with an error when making a REST call,
- * this method will complete with the same error.
- */
+ ManagementSegmentsResourceApi(commons.ApiRequester client)
+ : _requester = client;
+
+ /// Lists segments to which the user has access.
+ ///
+ /// Request parameters:
+ ///
+ /// [max_results] - The maximum number of segments to include in this
+ /// response.
+ ///
+ /// [start_index] - An index of the first segment to retrieve. Use this
+ /// parameter as a pagination mechanism along with the max-results parameter.
+ ///
+ /// Completes with a [Segments].
+ ///
+ /// Completes with a [commons.ApiRequestError] if the API endpoint returned
+ /// an error.
+ ///
+ /// If the used [http.Client] completes with an error when making a REST
+ /// call, this method will complete with the same error.
async.Future<Segments> list({core.int max_results, core.int start_index}) {
var _url = null;
var _queryParams = new core.Map();
@@ -3651,45 +3869,41 @@ class ManagementSegmentsResourceApi {
_url = 'management/segments';
- var _response = _requester.request(_url,
- "GET",
- body: _body,
- queryParams: _queryParams,
- uploadOptions: _uploadOptions,
- uploadMedia: _uploadMedia,
- downloadOptions: _downloadOptions);
+ var _response = _requester.request(_url, "GET",
+ body: _body,
+ queryParams: _queryParams,
+ uploadOptions: _uploadOptions,
+ uploadMedia: _uploadMedia,
+ downloadOptions: _downloadOptions);
return _response.then((data) => new Segments.fromJson(data));
}
-
}
-
class ManagementUnsampledReportsResourceApi {
final commons.ApiRequester _requester;
- ManagementUnsampledReportsResourceApi(commons.ApiRequester client) :
- _requester = client;
-
- /**
- * Deletes an unsampled report.
- *
- * Request parameters:
- *
- * [accountId] - Account ID to delete the unsampled report for.
- *
- * [webPropertyId] - Web property ID to delete the unsampled reports for.
- *
- * [profileId] - View (Profile) ID to delete the unsampled report for.
- *
- * [unsampledReportId] - ID of the unsampled report to be deleted.
- *
- * Completes with a [commons.ApiRequestError] if the API endpoint returned an
- * error.
- *
- * If the used [http.Client] completes with an error when making a REST call,
- * this method will complete with the same error.
- */
- async.Future delete(core.String accountId, core.String webPropertyId, core.String profileId, core.String unsampledReportId) {
+ ManagementUnsampledReportsResourceApi(commons.ApiRequester client)
+ : _requester = client;
+
+ /// Deletes an unsampled report.
+ ///
+ /// Request parameters:
+ ///
+ /// [accountId] - Account ID to delete the unsampled report for.
+ ///
+ /// [webPropertyId] - Web property ID to delete the unsampled reports for.
+ ///
+ /// [profileId] - View (Profile) ID to delete the unsampled report for.
+ ///
+ /// [unsampledReportId] - ID of the unsampled report to be deleted.
+ ///
+ /// Completes with a [commons.ApiRequestError] if the API endpoint returned
+ /// an error.
+ ///
+ /// If the used [http.Client] completes with an error when making a REST
+ /// call, this method will complete with the same error.
+ async.Future delete(core.String accountId, core.String webPropertyId,
+ core.String profileId, core.String unsampledReportId) {
var _url = null;
var _queryParams = new core.Map();
var _uploadMedia = null;
@@ -3712,40 +3926,48 @@ class ManagementUnsampledReportsResourceApi {
_downloadOptions = null;
- _url = 'management/accounts/' + commons.Escaper.ecapeVariable('$accountId') + '/webproperties/' + commons.Escaper.ecapeVariable('$webPropertyId') + '/profiles/' + commons.Escaper.ecapeVariable('$profileId') + '/unsampledReports/' + commons.Escaper.ecapeVariable('$unsampledReportId');
-
- var _response = _requester.request(_url,
- "DELETE",
- body: _body,
- queryParams: _queryParams,
- uploadOptions: _uploadOptions,
- uploadMedia: _uploadMedia,
- downloadOptions: _downloadOptions);
+ _url = 'management/accounts/' +
+ commons.Escaper.ecapeVariable('$accountId') +
+ '/webproperties/' +
+ commons.Escaper.ecapeVariable('$webPropertyId') +
+ '/profiles/' +
+ commons.Escaper.ecapeVariable('$profileId') +
+ '/unsampledReports/' +
+ commons.Escaper.ecapeVariable('$unsampledReportId');
+
+ var _response = _requester.request(_url, "DELETE",
+ body: _body,
+ queryParams: _queryParams,
+ uploadOptions: _uploadOptions,
+ uploadMedia: _uploadMedia,
+ downloadOptions: _downloadOptions);
return _response.then((data) => null);
}
- /**
- * Returns a single unsampled report.
- *
- * Request parameters:
- *
- * [accountId] - Account ID to retrieve unsampled report for.
- *
- * [webPropertyId] - Web property ID to retrieve unsampled reports for.
- *
- * [profileId] - View (Profile) ID to retrieve unsampled report for.
- *
- * [unsampledReportId] - ID of the unsampled report to retrieve.
- *
- * Completes with a [UnsampledReport].
- *
- * Completes with a [commons.ApiRequestError] if the API endpoint returned an
- * error.
- *
- * If the used [http.Client] completes with an error when making a REST call,
- * this method will complete with the same error.
- */
- async.Future<UnsampledReport> get(core.String accountId, core.String webPropertyId, core.String profileId, core.String unsampledReportId) {
+ /// Returns a single unsampled report.
+ ///
+ /// Request parameters:
+ ///
+ /// [accountId] - Account ID to retrieve unsampled report for.
+ ///
+ /// [webPropertyId] - Web property ID to retrieve unsampled reports for.
+ ///
+ /// [profileId] - View (Profile) ID to retrieve unsampled report for.
+ ///
+ /// [unsampledReportId] - ID of the unsampled report to retrieve.
+ ///
+ /// Completes with a [UnsampledReport].
+ ///
+ /// Completes with a [commons.ApiRequestError] if the API endpoint returned
+ /// an error.
+ ///
+ /// If the used [http.Client] completes with an error when making a REST
+ /// call, this method will complete with the same error.
+ async.Future<UnsampledReport> get(
+ core.String accountId,
+ core.String webPropertyId,
+ core.String profileId,
+ core.String unsampledReportId) {
var _url = null;
var _queryParams = new core.Map();
var _uploadMedia = null;
@@ -3766,40 +3988,45 @@ class ManagementUnsampledReportsResourceApi {
throw new core.ArgumentError("Parameter unsampledReportId is required.");
}
- _url = 'management/accounts/' + commons.Escaper.ecapeVariable('$accountId') + '/webproperties/' + commons.Escaper.ecapeVariable('$webPropertyId') + '/profiles/' + commons.Escaper.ecapeVariable('$profileId') + '/unsampledReports/' + commons.Escaper.ecapeVariable('$unsampledReportId');
-
- var _response = _requester.request(_url,
- "GET",
- body: _body,
- queryParams: _queryParams,
- uploadOptions: _uploadOptions,
- uploadMedia: _uploadMedia,
- downloadOptions: _downloadOptions);
+ _url = 'management/accounts/' +
+ commons.Escaper.ecapeVariable('$accountId') +
+ '/webproperties/' +
+ commons.Escaper.ecapeVariable('$webPropertyId') +
+ '/profiles/' +
+ commons.Escaper.ecapeVariable('$profileId') +
+ '/unsampledReports/' +
+ commons.Escaper.ecapeVariable('$unsampledReportId');
+
+ var _response = _requester.request(_url, "GET",
+ body: _body,
+ queryParams: _queryParams,
+ uploadOptions: _uploadOptions,
+ uploadMedia: _uploadMedia,
+ downloadOptions: _downloadOptions);
return _response.then((data) => new UnsampledReport.fromJson(data));
}
- /**
- * Create a new unsampled report.
- *
- * [request] - The metadata request object.
- *
- * Request parameters:
- *
- * [accountId] - Account ID to create the unsampled report for.
- *
- * [webPropertyId] - Web property ID to create the unsampled report for.
- *
- * [profileId] - View (Profile) ID to create the unsampled report for.
- *
- * Completes with a [UnsampledReport].
- *
- * Completes with a [commons.ApiRequestError] if the API endpoint returned an
- * error.
- *
- * If the used [http.Client] completes with an error when making a REST call,
- * this method will complete with the same error.
- */
- async.Future<UnsampledReport> insert(UnsampledReport request, core.String accountId, core.String webPropertyId, core.String profileId) {
+ /// Create a new unsampled report.
+ ///
+ /// [request] - The metadata request object.
+ ///
+ /// Request parameters:
+ ///
+ /// [accountId] - Account ID to create the unsampled report for.
+ ///
+ /// [webPropertyId] - Web property ID to create the unsampled report for.
+ ///
+ /// [profileId] - View (Profile) ID to create the unsampled report for.
+ ///
+ /// Completes with a [UnsampledReport].
+ ///
+ /// Completes with a [commons.ApiRequestError] if the API endpoint returned
+ /// an error.
+ ///
+ /// If the used [http.Client] completes with an error when making a REST
+ /// call, this method will complete with the same error.
+ async.Future<UnsampledReport> insert(UnsampledReport request,
+ core.String accountId, core.String webPropertyId, core.String profileId) {
var _url = null;
var _queryParams = new core.Map();
var _uploadMedia = null;
@@ -3820,48 +4047,53 @@ class ManagementUnsampledReportsResourceApi {
throw new core.ArgumentError("Parameter profileId is required.");
}
- _url = 'management/accounts/' + commons.Escaper.ecapeVariable('$accountId') + '/webproperties/' + commons.Escaper.ecapeVariable('$webPropertyId') + '/profiles/' + commons.Escaper.ecapeVariable('$profileId') + '/unsampledReports';
-
- var _response = _requester.request(_url,
- "POST",
- body: _body,
- queryParams: _queryParams,
- uploadOptions: _uploadOptions,
- uploadMedia: _uploadMedia,
- downloadOptions: _downloadOptions);
+ _url = 'management/accounts/' +
+ commons.Escaper.ecapeVariable('$accountId') +
+ '/webproperties/' +
+ commons.Escaper.ecapeVariable('$webPropertyId') +
+ '/profiles/' +
+ commons.Escaper.ecapeVariable('$profileId') +
+ '/unsampledReports';
+
+ var _response = _requester.request(_url, "POST",
+ body: _body,
+ queryParams: _queryParams,
+ uploadOptions: _uploadOptions,
+ uploadMedia: _uploadMedia,
+ downloadOptions: _downloadOptions);
return _response.then((data) => new UnsampledReport.fromJson(data));
}
- /**
- * Lists unsampled reports to which the user has access.
- *
- * Request parameters:
- *
- * [accountId] - Account ID to retrieve unsampled reports for. Must be a
- * specific account ID, ~all is not supported.
- *
- * [webPropertyId] - Web property ID to retrieve unsampled reports for. Must
- * be a specific web property ID, ~all is not supported.
- *
- * [profileId] - View (Profile) ID to retrieve unsampled reports for. Must be
- * a specific view (profile) ID, ~all is not supported.
- *
- * [max_results] - The maximum number of unsampled reports to include in this
- * response.
- *
- * [start_index] - An index of the first unsampled report to retrieve. Use
- * this parameter as a pagination mechanism along with the max-results
- * parameter.
- *
- * Completes with a [UnsampledReports].
- *
- * Completes with a [commons.ApiRequestError] if the API endpoint returned an
- * error.
- *
- * If the used [http.Client] completes with an error when making a REST call,
- * this method will complete with the same error.
- */
- async.Future<UnsampledReports> list(core.String accountId, core.String webPropertyId, core.String profileId, {core.int max_results, core.int start_index}) {
+ /// Lists unsampled reports to which the user has access.
+ ///
+ /// Request parameters:
+ ///
+ /// [accountId] - Account ID to retrieve unsampled reports for. Must be a
+ /// specific account ID, ~all is not supported.
+ ///
+ /// [webPropertyId] - Web property ID to retrieve unsampled reports for. Must
+ /// be a specific web property ID, ~all is not supported.
+ ///
+ /// [profileId] - View (Profile) ID to retrieve unsampled reports for. Must
+ /// be a specific view (profile) ID, ~all is not supported.
+ ///
+ /// [max_results] - The maximum number of unsampled reports to include in
+ /// this response.
+ ///
+ /// [start_index] - An index of the first unsampled report to retrieve. Use
+ /// this parameter as a pagination mechanism along with the max-results
+ /// parameter.
+ ///
+ /// Completes with a [UnsampledReports].
+ ///
+ /// Completes with a [commons.ApiRequestError] if the API endpoint returned
+ /// an error.
+ ///
+ /// If the used [http.Client] completes with an error when making a REST
+ /// call, this method will complete with the same error.
+ async.Future<UnsampledReports> list(
+ core.String accountId, core.String webPropertyId, core.String profileId,
+ {core.int max_results, core.int start_index}) {
var _url = null;
var _queryParams = new core.Map();
var _uploadMedia = null;
@@ -3885,50 +4117,56 @@ class ManagementUnsampledReportsResourceApi {
_queryParams["start-index"] = ["${start_index}"];
}
- _url = 'management/accounts/' + commons.Escaper.ecapeVariable('$accountId') + '/webproperties/' + commons.Escaper.ecapeVariable('$webPropertyId') + '/profiles/' + commons.Escaper.ecapeVariable('$profileId') + '/unsampledReports';
-
- var _response = _requester.request(_url,
- "GET",
- body: _body,
- queryParams: _queryParams,
- uploadOptions: _uploadOptions,
- uploadMedia: _uploadMedia,
- downloadOptions: _downloadOptions);
+ _url = 'management/accounts/' +
+ commons.Escaper.ecapeVariable('$accountId') +
+ '/webproperties/' +
+ commons.Escaper.ecapeVariable('$webPropertyId') +
+ '/profiles/' +
+ commons.Escaper.ecapeVariable('$profileId') +
+ '/unsampledReports';
+
+ var _response = _requester.request(_url, "GET",
+ body: _body,
+ queryParams: _queryParams,
+ uploadOptions: _uploadOptions,
+ uploadMedia: _uploadMedia,
+ downloadOptions: _downloadOptions);
return _response.then((data) => new UnsampledReports.fromJson(data));
}
-
}
-
class ManagementUploadsResourceApi {
final commons.ApiRequester _requester;
- ManagementUploadsResourceApi(commons.ApiRequester client) :
- _requester = client;
-
- /**
- * Delete data associated with a previous upload.
- *
- * [request] - The metadata request object.
- *
- * Request parameters:
- *
- * [accountId] - Account Id for the uploads to be deleted.
- * Value must have pattern "\d+".
- *
- * [webPropertyId] - Web property Id for the uploads to be deleted.
- * Value must have pattern "UA-(\d+)-(\d+)".
- *
- * [customDataSourceId] - Custom data source Id for the uploads to be deleted.
- * Value must have pattern ".{22}".
- *
- * Completes with a [commons.ApiRequestError] if the API endpoint returned an
- * error.
- *
- * If the used [http.Client] completes with an error when making a REST call,
- * this method will complete with the same error.
- */
- async.Future deleteUploadData(AnalyticsDataimportDeleteUploadDataRequest request, core.String accountId, core.String webPropertyId, core.String customDataSourceId) {
+ ManagementUploadsResourceApi(commons.ApiRequester client)
+ : _requester = client;
+
+ /// Delete data associated with a previous upload.
+ ///
+ /// [request] - The metadata request object.
+ ///
+ /// Request parameters:
+ ///
+ /// [accountId] - Account Id for the uploads to be deleted.
+ /// Value must have pattern "\d+".
+ ///
+ /// [webPropertyId] - Web property Id for the uploads to be deleted.
+ /// Value must have pattern "UA-(\d+)-(\d+)".
+ ///
+ /// [customDataSourceId] - Custom data source Id for the uploads to be
+ /// deleted.
+ /// Value must have pattern ".{22}".
+ ///
+ /// Completes with a [commons.ApiRequestError] if the API endpoint returned
+ /// an error.
+ ///
+ /// If the used [http.Client] completes with an error when making a REST
+ /// call, this method will complete with the same error.
+ async.Future deleteUploadData(
+ AnalyticsDataimportDeleteUploadDataRequest request,
+ core.String accountId,
+ core.String webPropertyId,
+ core.String customDataSourceId) {
var _url = null;
var _queryParams = new core.Map();
var _uploadMedia = null;
@@ -3951,44 +4189,48 @@ class ManagementUploadsResourceApi {
_downloadOptions = null;
- _url = 'management/accounts/' + commons.Escaper.ecapeVariable('$accountId') + '/webproperties/' + commons.Escaper.ecapeVariable('$webPropertyId') + '/customDataSources/' + commons.Escaper.ecapeVariable('$customDataSourceId') + '/deleteUploadData';
-
- var _response = _requester.request(_url,
- "POST",
- body: _body,
- queryParams: _queryParams,
- uploadOptions: _uploadOptions,
- uploadMedia: _uploadMedia,
- downloadOptions: _downloadOptions);
+ _url = 'management/accounts/' +
+ commons.Escaper.ecapeVariable('$accountId') +
+ '/webproperties/' +
+ commons.Escaper.ecapeVariable('$webPropertyId') +
+ '/customDataSources/' +
+ commons.Escaper.ecapeVariable('$customDataSourceId') +
+ '/deleteUploadData';
+
+ var _response = _requester.request(_url, "POST",
+ body: _body,
+ queryParams: _queryParams,
+ uploadOptions: _uploadOptions,
+ uploadMedia: _uploadMedia,
+ downloadOptions: _downloadOptions);
return _response.then((data) => null);
}
- /**
- * List uploads to which the user has access.
- *
- * Request parameters:
- *
- * [accountId] - Account Id for the upload to retrieve.
- * Value must have pattern "\d+".
- *
- * [webPropertyId] - Web property Id for the upload to retrieve.
- * Value must have pattern "UA-(\d+)-(\d+)".
- *
- * [customDataSourceId] - Custom data source Id for upload to retrieve.
- * Value must have pattern ".{22}".
- *
- * [uploadId] - Upload Id to retrieve.
- * Value must have pattern ".{22}".
- *
- * Completes with a [Upload].
- *
- * Completes with a [commons.ApiRequestError] if the API endpoint returned an
- * error.
- *
- * If the used [http.Client] completes with an error when making a REST call,
- * this method will complete with the same error.
- */
- async.Future<Upload> get(core.String accountId, core.String webPropertyId, core.String customDataSourceId, core.String uploadId) {
+ /// List uploads to which the user has access.
+ ///
+ /// Request parameters:
+ ///
+ /// [accountId] - Account Id for the upload to retrieve.
+ /// Value must have pattern "\d+".
+ ///
+ /// [webPropertyId] - Web property Id for the upload to retrieve.
+ /// Value must have pattern "UA-(\d+)-(\d+)".
+ ///
+ /// [customDataSourceId] - Custom data source Id for upload to retrieve.
+ /// Value must have pattern ".{22}".
+ ///
+ /// [uploadId] - Upload Id to retrieve.
+ /// Value must have pattern ".{22}".
+ ///
+ /// Completes with a [Upload].
+ ///
+ /// Completes with a [commons.ApiRequestError] if the API endpoint returned
+ /// an error.
+ ///
+ /// If the used [http.Client] completes with an error when making a REST
+ /// call, this method will complete with the same error.
+ async.Future<Upload> get(core.String accountId, core.String webPropertyId,
+ core.String customDataSourceId, core.String uploadId) {
var _url = null;
var _queryParams = new core.Map();
var _uploadMedia = null;
@@ -4009,46 +4251,53 @@ class ManagementUploadsResourceApi {
throw new core.ArgumentError("Parameter uploadId is required.");
}
- _url = 'management/accounts/' + commons.Escaper.ecapeVariable('$accountId') + '/webproperties/' + commons.Escaper.ecapeVariable('$webPropertyId') + '/customDataSources/' + commons.Escaper.ecapeVariable('$customDataSourceId') + '/uploads/' + commons.Escaper.ecapeVariable('$uploadId');
-
- var _response = _requester.request(_url,
- "GET",
- body: _body,
- queryParams: _queryParams,
- uploadOptions: _uploadOptions,
- uploadMedia: _uploadMedia,
- downloadOptions: _downloadOptions);
+ _url = 'management/accounts/' +
+ commons.Escaper.ecapeVariable('$accountId') +
+ '/webproperties/' +
+ commons.Escaper.ecapeVariable('$webPropertyId') +
+ '/customDataSources/' +
+ commons.Escaper.ecapeVariable('$customDataSourceId') +
+ '/uploads/' +
+ commons.Escaper.ecapeVariable('$uploadId');
+
+ var _response = _requester.request(_url, "GET",
+ body: _body,
+ queryParams: _queryParams,
+ uploadOptions: _uploadOptions,
+ uploadMedia: _uploadMedia,
+ downloadOptions: _downloadOptions);
return _response.then((data) => new Upload.fromJson(data));
}
- /**
- * List uploads to which the user has access.
- *
- * Request parameters:
- *
- * [accountId] - Account Id for the uploads to retrieve.
- * Value must have pattern "\d+".
- *
- * [webPropertyId] - Web property Id for the uploads to retrieve.
- * Value must have pattern "UA-(\d+)-(\d+)".
- *
- * [customDataSourceId] - Custom data source Id for uploads to retrieve.
- * Value must have pattern ".{22}".
- *
- * [max_results] - The maximum number of uploads to include in this response.
- *
- * [start_index] - A 1-based index of the first upload to retrieve. Use this
- * parameter as a pagination mechanism along with the max-results parameter.
- *
- * Completes with a [Uploads].
- *
- * Completes with a [commons.ApiRequestError] if the API endpoint returned an
- * error.
- *
- * If the used [http.Client] completes with an error when making a REST call,
- * this method will complete with the same error.
- */
- async.Future<Uploads> list(core.String accountId, core.String webPropertyId, core.String customDataSourceId, {core.int max_results, core.int start_index}) {
+ /// List uploads to which the user has access.
+ ///
+ /// Request parameters:
+ ///
+ /// [accountId] - Account Id for the uploads to retrieve.
+ /// Value must have pattern "\d+".
+ ///
+ /// [webPropertyId] - Web property Id for the uploads to retrieve.
+ /// Value must have pattern "UA-(\d+)-(\d+)".
+ ///
+ /// [customDataSourceId] - Custom data source Id for uploads to retrieve.
+ /// Value must have pattern ".{22}".
+ ///
+ /// [max_results] - The maximum number of uploads to include in this
+ /// response.
+ ///
+ /// [start_index] - A 1-based index of the first upload to retrieve. Use this
+ /// parameter as a pagination mechanism along with the max-results parameter.
+ ///
+ /// Completes with a [Uploads].
+ ///
+ /// Completes with a [commons.ApiRequestError] if the API endpoint returned
+ /// an error.
+ ///
+ /// If the used [http.Client] completes with an error when making a REST
+ /// call, this method will complete with the same error.
+ async.Future<Uploads> list(core.String accountId, core.String webPropertyId,
+ core.String customDataSourceId,
+ {core.int max_results, core.int start_index}) {
var _url = null;
var _queryParams = new core.Map();
var _uploadMedia = null;
@@ -4072,46 +4321,53 @@ class ManagementUploadsResourceApi {
_queryParams["start-index"] = ["${start_index}"];
}
- _url = 'management/accounts/' + commons.Escaper.ecapeVariable('$accountId') + '/webproperties/' + commons.Escaper.ecapeVariable('$webPropertyId') + '/customDataSources/' + commons.Escaper.ecapeVariable('$customDataSourceId') + '/uploads';
-
- var _response = _requester.request(_url,
- "GET",
- body: _body,
- queryParams: _queryParams,
- uploadOptions: _uploadOptions,
- uploadMedia: _uploadMedia,
- downloadOptions: _downloadOptions);
+ _url = 'management/accounts/' +
+ commons.Escaper.ecapeVariable('$accountId') +
+ '/webproperties/' +
+ commons.Escaper.ecapeVariable('$webPropertyId') +
+ '/customDataSources/' +
+ commons.Escaper.ecapeVariable('$customDataSourceId') +
+ '/uploads';
+
+ var _response = _requester.request(_url, "GET",
+ body: _body,
+ queryParams: _queryParams,
+ uploadOptions: _uploadOptions,
+ uploadMedia: _uploadMedia,
+ downloadOptions: _downloadOptions);
return _response.then((data) => new Uploads.fromJson(data));
}
- /**
- * Upload data for a custom data source.
- *
- * Request parameters:
- *
- * [accountId] - Account Id associated with the upload.
- * Value must have pattern "\d+".
- *
- * [webPropertyId] - Web property UA-string associated with the upload.
- * Value must have pattern "UA-\d+-\d+".
- *
- * [customDataSourceId] - Custom data source Id to which the data being
- * uploaded belongs.
- *
- * [uploadMedia] - The media to upload.
- *
- * [uploadOptions] - Options for the media upload. Streaming Media without the
- * length being known ahead of time is only supported via resumable uploads.
- *
- * Completes with a [Upload].
- *
- * Completes with a [commons.ApiRequestError] if the API endpoint returned an
- * error.
- *
- * If the used [http.Client] completes with an error when making a REST call,
- * this method will complete with the same error.
- */
- async.Future<Upload> uploadData(core.String accountId, core.String webPropertyId, core.String customDataSourceId, {commons.UploadOptions uploadOptions : commons.UploadOptions.Default, commons.Media uploadMedia}) {
+ /// Upload data for a custom data source.
+ ///
+ /// Request parameters:
+ ///
+ /// [accountId] - Account Id associated with the upload.
+ /// Value must have pattern "\d+".
+ ///
+ /// [webPropertyId] - Web property UA-string associated with the upload.
+ /// Value must have pattern "UA-\d+-\d+".
+ ///
+ /// [customDataSourceId] - Custom data source Id to which the data being
+ /// uploaded belongs.
+ ///
+ /// [uploadMedia] - The media to upload.
+ ///
+ /// [uploadOptions] - Options for the media upload. Streaming Media without
+ /// the length being known ahead of time is only supported via resumable
+ /// uploads.
+ ///
+ /// Completes with a [Upload].
+ ///
+ /// Completes with a [commons.ApiRequestError] if the API endpoint returned
+ /// an error.
+ ///
+ /// If the used [http.Client] completes with an error when making a REST
+ /// call, this method will complete with the same error.
+ async.Future<Upload> uploadData(core.String accountId,
+ core.String webPropertyId, core.String customDataSourceId,
+ {commons.UploadOptions uploadOptions: commons.UploadOptions.Default,
+ commons.Media uploadMedia}) {
var _url = null;
var _queryParams = new core.Map();
var _uploadMedia = null;
@@ -4129,55 +4385,68 @@ class ManagementUploadsResourceApi {
throw new core.ArgumentError("Parameter customDataSourceId is required.");
}
- _uploadMedia = uploadMedia;
- _uploadOptions = uploadOptions;
+ _uploadMedia = uploadMedia;
+ _uploadOptions = uploadOptions;
if (_uploadMedia == null) {
- _url = 'management/accounts/' + commons.Escaper.ecapeVariable('$accountId') + '/webproperties/' + commons.Escaper.ecapeVariable('$webPropertyId') + '/customDataSources/' + commons.Escaper.ecapeVariable('$customDataSourceId') + '/uploads';
+ _url = 'management/accounts/' +
+ commons.Escaper.ecapeVariable('$accountId') +
+ '/webproperties/' +
+ commons.Escaper.ecapeVariable('$webPropertyId') +
+ '/customDataSources/' +
+ commons.Escaper.ecapeVariable('$customDataSourceId') +
+ '/uploads';
} else if (_uploadOptions is commons.ResumableUploadOptions) {
- _url = '/resumable/upload/analytics/v3/management/accounts/' + commons.Escaper.ecapeVariable('$accountId') + '/webproperties/' + commons.Escaper.ecapeVariable('$webPropertyId') + '/customDataSources/' + commons.Escaper.ecapeVariable('$customDataSourceId') + '/uploads';
+ _url = '/resumable/upload/analytics/v3/management/accounts/' +
+ commons.Escaper.ecapeVariable('$accountId') +
+ '/webproperties/' +
+ commons.Escaper.ecapeVariable('$webPropertyId') +
+ '/customDataSources/' +
+ commons.Escaper.ecapeVariable('$customDataSourceId') +
+ '/uploads';
} else {
- _url = '/upload/analytics/v3/management/accounts/' + commons.Escaper.ecapeVariable('$accountId') + '/webproperties/' + commons.Escaper.ecapeVariable('$webPropertyId') + '/customDataSources/' + commons.Escaper.ecapeVariable('$customDataSourceId') + '/uploads';
- }
-
-
- var _response = _requester.request(_url,
- "POST",
- body: _body,
- queryParams: _queryParams,
- uploadOptions: _uploadOptions,
- uploadMedia: _uploadMedia,
- downloadOptions: _downloadOptions);
+ _url = '/upload/analytics/v3/management/accounts/' +
+ commons.Escaper.ecapeVariable('$accountId') +
+ '/webproperties/' +
+ commons.Escaper.ecapeVariable('$webPropertyId') +
+ '/customDataSources/' +
+ commons.Escaper.ecapeVariable('$customDataSourceId') +
+ '/uploads';
+ }
+
+ var _response = _requester.request(_url, "POST",
+ body: _body,
+ queryParams: _queryParams,
+ uploadOptions: _uploadOptions,
+ uploadMedia: _uploadMedia,
+ downloadOptions: _downloadOptions);
return _response.then((data) => new Upload.fromJson(data));
}
-
}
-
class ManagementWebPropertyAdWordsLinksResourceApi {
final commons.ApiRequester _requester;
- ManagementWebPropertyAdWordsLinksResourceApi(commons.ApiRequester client) :
- _requester = client;
-
- /**
- * Deletes a web property-AdWords link.
- *
- * Request parameters:
- *
- * [accountId] - ID of the account which the given web property belongs to.
- *
- * [webPropertyId] - Web property ID to delete the AdWords link for.
- *
- * [webPropertyAdWordsLinkId] - Web property AdWords link ID.
- *
- * Completes with a [commons.ApiRequestError] if the API endpoint returned an
- * error.
- *
- * If the used [http.Client] completes with an error when making a REST call,
- * this method will complete with the same error.
- */
- async.Future delete(core.String accountId, core.String webPropertyId, core.String webPropertyAdWordsLinkId) {
+ ManagementWebPropertyAdWordsLinksResourceApi(commons.ApiRequester client)
+ : _requester = client;
+
+ /// Deletes a web property-AdWords link.
+ ///
+ /// Request parameters:
+ ///
+ /// [accountId] - ID of the account which the given web property belongs to.
+ ///
+ /// [webPropertyId] - Web property ID to delete the AdWords link for.
+ ///
+ /// [webPropertyAdWordsLinkId] - Web property AdWords link ID.
+ ///
+ /// Completes with a [commons.ApiRequestError] if the API endpoint returned
+ /// an error.
+ ///
+ /// If the used [http.Client] completes with an error when making a REST
+ /// call, this method will complete with the same error.
+ async.Future delete(core.String accountId, core.String webPropertyId,
+ core.String webPropertyAdWordsLinkId) {
var _url = null;
var _queryParams = new core.Map();
var _uploadMedia = null;
@@ -4192,43 +4461,47 @@ class ManagementWebPropertyAdWordsLinksResourceApi {
throw new core.ArgumentError("Parameter webPropertyId is required.");
}
if (webPropertyAdWordsLinkId == null) {
- throw new core.ArgumentError("Parameter webPropertyAdWordsLinkId is required.");
+ throw new core.ArgumentError(
+ "Parameter webPropertyAdWordsLinkId is required.");
}
_downloadOptions = null;
- _url = 'management/accounts/' + commons.Escaper.ecapeVariable('$accountId') + '/webproperties/' + commons.Escaper.ecapeVariable('$webPropertyId') + '/entityAdWordsLinks/' + commons.Escaper.ecapeVariable('$webPropertyAdWordsLinkId');
-
- var _response = _requester.request(_url,
- "DELETE",
- body: _body,
- queryParams: _queryParams,
- uploadOptions: _uploadOptions,
- uploadMedia: _uploadMedia,
- downloadOptions: _downloadOptions);
+ _url = 'management/accounts/' +
+ commons.Escaper.ecapeVariable('$accountId') +
+ '/webproperties/' +
+ commons.Escaper.ecapeVariable('$webPropertyId') +
+ '/entityAdWordsLinks/' +
+ commons.Escaper.ecapeVariable('$webPropertyAdWordsLinkId');
+
+ var _response = _requester.request(_url, "DELETE",
+ body: _body,
+ queryParams: _queryParams,
+ uploadOptions: _uploadOptions,
+ uploadMedia: _uploadMedia,
+ downloadOptions: _downloadOptions);
return _response.then((data) => null);
}
- /**
- * Returns a web property-AdWords link to which the user has access.
- *
- * Request parameters:
- *
- * [accountId] - ID of the account which the given web property belongs to.
- *
- * [webPropertyId] - Web property ID to retrieve the AdWords link for.
- *
- * [webPropertyAdWordsLinkId] - Web property-AdWords link ID.
- *
- * Completes with a [EntityAdWordsLink].
- *
- * Completes with a [commons.ApiRequestError] if the API endpoint returned an
- * error.
- *
- * If the used [http.Client] completes with an error when making a REST call,
- * this method will complete with the same error.
- */
- async.Future<EntityAdWordsLink> get(core.String accountId, core.String webPropertyId, core.String webPropertyAdWordsLinkId) {
+ /// Returns a web property-AdWords link to which the user has access.
+ ///
+ /// Request parameters:
+ ///
+ /// [accountId] - ID of the account which the given web property belongs to.
+ ///
+ /// [webPropertyId] - Web property ID to retrieve the AdWords link for.
+ ///
+ /// [webPropertyAdWordsLinkId] - Web property-AdWords link ID.
+ ///
+ /// Completes with a [EntityAdWordsLink].
+ ///
+ /// Completes with a [commons.ApiRequestError] if the API endpoint returned
+ /// an error.
+ ///
+ /// If the used [http.Client] completes with an error when making a REST
+ /// call, this method will complete with the same error.
+ async.Future<EntityAdWordsLink> get(core.String accountId,
+ core.String webPropertyId, core.String webPropertyAdWordsLinkId) {
var _url = null;
var _queryParams = new core.Map();
var _uploadMedia = null;
@@ -4243,41 +4516,45 @@ class ManagementWebPropertyAdWordsLinksResourceApi {
throw new core.ArgumentError("Parameter webPropertyId is required.");
}
if (webPropertyAdWordsLinkId == null) {
- throw new core.ArgumentError("Parameter webPropertyAdWordsLinkId is required.");
- }
-
- _url = 'management/accounts/' + commons.Escaper.ecapeVariable('$accountId') + '/webproperties/' + commons.Escaper.ecapeVariable('$webPropertyId') + '/entityAdWordsLinks/' + commons.Escaper.ecapeVariable('$webPropertyAdWordsLinkId');
-
- var _response = _requester.request(_url,
- "GET",
- body: _body,
- queryParams: _queryParams,
- uploadOptions: _uploadOptions,
- uploadMedia: _uploadMedia,
- downloadOptions: _downloadOptions);
+ throw new core.ArgumentError(
+ "Parameter webPropertyAdWordsLinkId is required.");
+ }
+
+ _url = 'management/accounts/' +
+ commons.Escaper.ecapeVariable('$accountId') +
+ '/webproperties/' +
+ commons.Escaper.ecapeVariable('$webPropertyId') +
+ '/entityAdWordsLinks/' +
+ commons.Escaper.ecapeVariable('$webPropertyAdWordsLinkId');
+
+ var _response = _requester.request(_url, "GET",
+ body: _body,
+ queryParams: _queryParams,
+ uploadOptions: _uploadOptions,
+ uploadMedia: _uploadMedia,
+ downloadOptions: _downloadOptions);
return _response.then((data) => new EntityAdWordsLink.fromJson(data));
}
- /**
- * Creates a webProperty-AdWords link.
- *
- * [request] - The metadata request object.
- *
- * Request parameters:
- *
- * [accountId] - ID of the Google Analytics account to create the link for.
- *
- * [webPropertyId] - Web property ID to create the link for.
- *
- * Completes with a [EntityAdWordsLink].
- *
- * Completes with a [commons.ApiRequestError] if the API endpoint returned an
- * error.
- *
- * If the used [http.Client] completes with an error when making a REST call,
- * this method will complete with the same error.
- */
- async.Future<EntityAdWordsLink> insert(EntityAdWordsLink request, core.String accountId, core.String webPropertyId) {
+ /// Creates a webProperty-AdWords link.
+ ///
+ /// [request] - The metadata request object.
+ ///
+ /// Request parameters:
+ ///
+ /// [accountId] - ID of the Google Analytics account to create the link for.
+ ///
+ /// [webPropertyId] - Web property ID to create the link for.
+ ///
+ /// Completes with a [EntityAdWordsLink].
+ ///
+ /// Completes with a [commons.ApiRequestError] if the API endpoint returned
+ /// an error.
+ ///
+ /// If the used [http.Client] completes with an error when making a REST
+ /// call, this method will complete with the same error.
+ async.Future<EntityAdWordsLink> insert(EntityAdWordsLink request,
+ core.String accountId, core.String webPropertyId) {
var _url = null;
var _queryParams = new core.Map();
var _uploadMedia = null;
@@ -4295,44 +4572,47 @@ class ManagementWebPropertyAdWordsLinksResourceApi {
throw new core.ArgumentError("Parameter webPropertyId is required.");
}
- _url = 'management/accounts/' + commons.Escaper.ecapeVariable('$accountId') + '/webproperties/' + commons.Escaper.ecapeVariable('$webPropertyId') + '/entityAdWordsLinks';
+ _url = 'management/accounts/' +
+ commons.Escaper.ecapeVariable('$accountId') +
+ '/webproperties/' +
+ commons.Escaper.ecapeVariable('$webPropertyId') +
+ '/entityAdWordsLinks';
- var _response = _requester.request(_url,
- "POST",
- body: _body,
- queryParams: _queryParams,
- uploadOptions: _uploadOptions,
- uploadMedia: _uploadMedia,
- downloadOptions: _downloadOptions);
+ var _response = _requester.request(_url, "POST",
+ body: _body,
+ queryParams: _queryParams,
+ uploadOptions: _uploadOptions,
+ uploadMedia: _uploadMedia,
+ downloadOptions: _downloadOptions);
return _response.then((data) => new EntityAdWordsLink.fromJson(data));
}
- /**
- * Lists webProperty-AdWords links for a given web property.
- *
- * Request parameters:
- *
- * [accountId] - ID of the account which the given web property belongs to.
- * Value must have pattern "\d+".
- *
- * [webPropertyId] - Web property ID to retrieve the AdWords links for.
- *
- * [max_results] - The maximum number of webProperty-AdWords links to include
- * in this response.
- *
- * [start_index] - An index of the first webProperty-AdWords link to retrieve.
- * Use this parameter as a pagination mechanism along with the max-results
- * parameter.
- *
- * Completes with a [EntityAdWordsLinks].
- *
- * Completes with a [commons.ApiRequestError] if the API endpoint returned an
- * error.
- *
- * If the used [http.Client] completes with an error when making a REST call,
- * this method will complete with the same error.
- */
- async.Future<EntityAdWordsLinks> list(core.String accountId, core.String webPropertyId, {core.int max_results, core.int start_index}) {
+ /// Lists webProperty-AdWords links for a given web property.
+ ///
+ /// Request parameters:
+ ///
+ /// [accountId] - ID of the account which the given web property belongs to.
+ /// Value must have pattern "\d+".
+ ///
+ /// [webPropertyId] - Web property ID to retrieve the AdWords links for.
+ ///
+ /// [max_results] - The maximum number of webProperty-AdWords links to
+ /// include in this response.
+ ///
+ /// [start_index] - An index of the first webProperty-AdWords link to
+ /// retrieve. Use this parameter as a pagination mechanism along with the
+ /// max-results parameter.
+ ///
+ /// Completes with a [EntityAdWordsLinks].
+ ///
+ /// Completes with a [commons.ApiRequestError] if the API endpoint returned
+ /// an error.
+ ///
+ /// If the used [http.Client] completes with an error when making a REST
+ /// call, this method will complete with the same error.
+ async.Future<EntityAdWordsLinks> list(
+ core.String accountId, core.String webPropertyId,
+ {core.int max_results, core.int start_index}) {
var _url = null;
var _queryParams = new core.Map();
var _uploadMedia = null;
@@ -4353,41 +4633,46 @@ class ManagementWebPropertyAdWordsLinksResourceApi {
_queryParams["start-index"] = ["${start_index}"];
}
- _url = 'management/accounts/' + commons.Escaper.ecapeVariable('$accountId') + '/webproperties/' + commons.Escaper.ecapeVariable('$webPropertyId') + '/entityAdWordsLinks';
+ _url = 'management/accounts/' +
+ commons.Escaper.ecapeVariable('$accountId') +
+ '/webproperties/' +
+ commons.Escaper.ecapeVariable('$webPropertyId') +
+ '/entityAdWordsLinks';
- var _response = _requester.request(_url,
- "GET",
- body: _body,
- queryParams: _queryParams,
- uploadOptions: _uploadOptions,
- uploadMedia: _uploadMedia,
- downloadOptions: _downloadOptions);
+ var _response = _requester.request(_url, "GET",
+ body: _body,
+ queryParams: _queryParams,
+ uploadOptions: _uploadOptions,
+ uploadMedia: _uploadMedia,
+ downloadOptions: _downloadOptions);
return _response.then((data) => new EntityAdWordsLinks.fromJson(data));
}
- /**
- * Updates an existing webProperty-AdWords link. This method supports patch
- * semantics.
- *
- * [request] - The metadata request object.
- *
- * Request parameters:
- *
- * [accountId] - ID of the account which the given web property belongs to.
- *
- * [webPropertyId] - Web property ID to retrieve the AdWords link for.
- *
- * [webPropertyAdWordsLinkId] - Web property-AdWords link ID.
- *
- * Completes with a [EntityAdWordsLink].
- *
- * Completes with a [commons.ApiRequestError] if the API endpoint returned an
- * error.
- *
- * If the used [http.Client] completes with an error when making a REST call,
- * this method will complete with the same error.
- */
- async.Future<EntityAdWordsLink> patch(EntityAdWordsLink request, core.String accountId, core.String webPropertyId, core.String webPropertyAdWordsLinkId) {
+ /// Updates an existing webProperty-AdWords link. This method supports patch
+ /// semantics.
+ ///
+ /// [request] - The metadata request object.
+ ///
+ /// Request parameters:
+ ///
+ /// [accountId] - ID of the account which the given web property belongs to.
+ ///
+ /// [webPropertyId] - Web property ID to retrieve the AdWords link for.
+ ///
+ /// [webPropertyAdWordsLinkId] - Web property-AdWords link ID.
+ ///
+ /// Completes with a [EntityAdWordsLink].
+ ///
+ /// Completes with a [commons.ApiRequestError] if the API endpoint returned
+ /// an error.
+ ///
+ /// If the used [http.Client] completes with an error when making a REST
+ /// call, this method will complete with the same error.
+ async.Future<EntityAdWordsLink> patch(
+ EntityAdWordsLink request,
+ core.String accountId,
+ core.String webPropertyId,
+ core.String webPropertyAdWordsLinkId) {
var _url = null;
var _queryParams = new core.Map();
var _uploadMedia = null;
@@ -4405,43 +4690,50 @@ class ManagementWebPropertyAdWordsLinksResourceApi {
throw new core.ArgumentError("Parameter webPropertyId is required.");
}
if (webPropertyAdWordsLinkId == null) {
- throw new core.ArgumentError("Parameter webPropertyAdWordsLinkId is required.");
- }
-
- _url = 'management/accounts/' + commons.Escaper.ecapeVariable('$accountId') + '/webproperties/' + commons.Escaper.ecapeVariable('$webPropertyId') + '/entityAdWordsLinks/' + commons.Escaper.ecapeVariable('$webPropertyAdWordsLinkId');
-
- var _response = _requester.request(_url,
- "PATCH",
- body: _body,
- queryParams: _queryParams,
- uploadOptions: _uploadOptions,
- uploadMedia: _uploadMedia,
- downloadOptions: _downloadOptions);
+ throw new core.ArgumentError(
+ "Parameter webPropertyAdWordsLinkId is required.");
+ }
+
+ _url = 'management/accounts/' +
+ commons.Escaper.ecapeVariable('$accountId') +
+ '/webproperties/' +
+ commons.Escaper.ecapeVariable('$webPropertyId') +
+ '/entityAdWordsLinks/' +
+ commons.Escaper.ecapeVariable('$webPropertyAdWordsLinkId');
+
+ var _response = _requester.request(_url, "PATCH",
+ body: _body,
+ queryParams: _queryParams,
+ uploadOptions: _uploadOptions,
+ uploadMedia: _uploadMedia,
+ downloadOptions: _downloadOptions);
return _response.then((data) => new EntityAdWordsLink.fromJson(data));
}
- /**
- * Updates an existing webProperty-AdWords link.
- *
- * [request] - The metadata request object.
- *
- * Request parameters:
- *
- * [accountId] - ID of the account which the given web property belongs to.
- *
- * [webPropertyId] - Web property ID to retrieve the AdWords link for.
- *
- * [webPropertyAdWordsLinkId] - Web property-AdWords link ID.
- *
- * Completes with a [EntityAdWordsLink].
- *
- * Completes with a [commons.ApiRequestError] if the API endpoint returned an
- * error.
- *
- * If the used [http.Client] completes with an error when making a REST call,
- * this method will complete with the same error.
- */
- async.Future<EntityAdWordsLink> update(EntityAdWordsLink request, core.String accountId, core.String webPropertyId, core.String webPropertyAdWordsLinkId) {
+ /// Updates an existing webProperty-AdWords link.
+ ///
+ /// [request] - The metadata request object.
+ ///
+ /// Request parameters:
+ ///
+ /// [accountId] - ID of the account which the given web property belongs to.
+ ///
+ /// [webPropertyId] - Web property ID to retrieve the AdWords link for.
+ ///
+ /// [webPropertyAdWordsLinkId] - Web property-AdWords link ID.
+ ///
+ /// Completes with a [EntityAdWordsLink].
+ ///
+ /// Completes with a [commons.ApiRequestError] if the API endpoint returned
+ /// an error.
+ ///
+ /// If the used [http.Client] completes with an error when making a REST
+ /// call, this method will complete with the same error.
+ async.Future<EntityAdWordsLink> update(
+ EntityAdWordsLink request,
+ core.String accountId,
+ core.String webPropertyId,
+ core.String webPropertyAdWordsLinkId) {
var _url = null;
var _queryParams = new core.Map();
var _uploadMedia = null;
@@ -4459,50 +4751,52 @@ class ManagementWebPropertyAdWordsLinksResourceApi {
throw new core.ArgumentError("Parameter webPropertyId is required.");
}
if (webPropertyAdWordsLinkId == null) {
- throw new core.ArgumentError("Parameter webPropertyAdWordsLinkId is required.");
- }
-
- _url = 'management/accounts/' + commons.Escaper.ecapeVariable('$accountId') + '/webproperties/' + commons.Escaper.ecapeVariable('$webPropertyId') + '/entityAdWordsLinks/' + commons.Escaper.ecapeVariable('$webPropertyAdWordsLinkId');
-
- var _response = _requester.request(_url,
- "PUT",
- body: _body,
- queryParams: _queryParams,
- uploadOptions: _uploadOptions,
- uploadMedia: _uploadMedia,
- downloadOptions: _downloadOptions);
+ throw new core.ArgumentError(
+ "Parameter webPropertyAdWordsLinkId is required.");
+ }
+
+ _url = 'management/accounts/' +
+ commons.Escaper.ecapeVariable('$accountId') +
+ '/webproperties/' +
+ commons.Escaper.ecapeVariable('$webPropertyId') +
+ '/entityAdWordsLinks/' +
+ commons.Escaper.ecapeVariable('$webPropertyAdWordsLinkId');
+
+ var _response = _requester.request(_url, "PUT",
+ body: _body,
+ queryParams: _queryParams,
+ uploadOptions: _uploadOptions,
+ uploadMedia: _uploadMedia,
+ downloadOptions: _downloadOptions);
return _response.then((data) => new EntityAdWordsLink.fromJson(data));
}
-
}
-
class ManagementWebpropertiesResourceApi {
final commons.ApiRequester _requester;
- ManagementWebpropertiesResourceApi(commons.ApiRequester client) :
- _requester = client;
-
- /**
- * Gets a web property to which the user has access.
- *
- * Request parameters:
- *
- * [accountId] - Account ID to retrieve the web property for.
- * Value must have pattern "[0-9]+".
- *
- * [webPropertyId] - ID to retrieve the web property for.
- * Value must have pattern "UA-[0-9]+-[0-9]+".
- *
- * Completes with a [Webproperty].
- *
- * Completes with a [commons.ApiRequestError] if the API endpoint returned an
- * error.
- *
- * If the used [http.Client] completes with an error when making a REST call,
- * this method will complete with the same error.
- */
- async.Future<Webproperty> get(core.String accountId, core.String webPropertyId) {
+ ManagementWebpropertiesResourceApi(commons.ApiRequester client)
+ : _requester = client;
+
+ /// Gets a web property to which the user has access.
+ ///
+ /// Request parameters:
+ ///
+ /// [accountId] - Account ID to retrieve the web property for.
+ /// Value must have pattern "[0-9]+".
+ ///
+ /// [webPropertyId] - ID to retrieve the web property for.
+ /// Value must have pattern "UA-[0-9]+-[0-9]+".
+ ///
+ /// Completes with a [Webproperty].
+ ///
+ /// Completes with a [commons.ApiRequestError] if the API endpoint returned
+ /// an error.
+ ///
+ /// If the used [http.Client] completes with an error when making a REST
+ /// call, this method will complete with the same error.
+ async.Future<Webproperty> get(
+ core.String accountId, core.String webPropertyId) {
var _url = null;
var _queryParams = new core.Map();
var _uploadMedia = null;
@@ -4517,37 +4811,37 @@ class ManagementWebpropertiesResourceApi {
throw new core.ArgumentError("Parameter webPropertyId is required.");
}
- _url = 'management/accounts/' + commons.Escaper.ecapeVariable('$accountId') + '/webproperties/' + commons.Escaper.ecapeVariable('$webPropertyId');
+ _url = 'management/accounts/' +
+ commons.Escaper.ecapeVariable('$accountId') +
+ '/webproperties/' +
+ commons.Escaper.ecapeVariable('$webPropertyId');
- var _response = _requester.request(_url,
- "GET",
- body: _body,
- queryParams: _queryParams,
- uploadOptions: _uploadOptions,
- uploadMedia: _uploadMedia,
- downloadOptions: _downloadOptions);
+ var _response = _requester.request(_url, "GET",
+ body: _body,
+ queryParams: _queryParams,
+ uploadOptions: _uploadOptions,
+ uploadMedia: _uploadMedia,
+ downloadOptions: _downloadOptions);
return _response.then((data) => new Webproperty.fromJson(data));
}
- /**
- * Create a new property if the account has fewer than 20 properties. Web
- * properties are visible in the Google Analytics interface only if they have
- * at least one profile.
- *
- * [request] - The metadata request object.
- *
- * Request parameters:
- *
- * [accountId] - Account ID to create the web property for.
- *
- * Completes with a [Webproperty].
- *
- * Completes with a [commons.ApiRequestError] if the API endpoint returned an
- * error.
- *
- * If the used [http.Client] completes with an error when making a REST call,
- * this method will complete with the same error.
- */
+ /// Create a new property if the account has fewer than 20 properties. Web
+ /// properties are visible in the Google Analytics interface only if they
+ /// have at least one profile.
+ ///
+ /// [request] - The metadata request object.
+ ///
+ /// Request parameters:
+ ///
+ /// [accountId] - Account ID to create the web property for.
+ ///
+ /// Completes with a [Webproperty].
+ ///
+ /// Completes with a [commons.ApiRequestError] if the API endpoint returned
+ /// an error.
+ ///
+ /// If the used [http.Client] completes with an error when making a REST
+ /// call, this method will complete with the same error.
async.Future<Webproperty> insert(Webproperty request, core.String accountId) {
var _url = null;
var _queryParams = new core.Map();
@@ -4563,42 +4857,42 @@ class ManagementWebpropertiesResourceApi {
throw new core.ArgumentError("Parameter accountId is required.");
}
- _url = 'management/accounts/' + commons.Escaper.ecapeVariable('$accountId') + '/webproperties';
+ _url = 'management/accounts/' +
+ commons.Escaper.ecapeVariable('$accountId') +
+ '/webproperties';
- var _response = _requester.request(_url,
- "POST",
- body: _body,
- queryParams: _queryParams,
- uploadOptions: _uploadOptions,
- uploadMedia: _uploadMedia,
- downloadOptions: _downloadOptions);
+ var _response = _requester.request(_url, "POST",
+ body: _body,
+ queryParams: _queryParams,
+ uploadOptions: _uploadOptions,
+ uploadMedia: _uploadMedia,
+ downloadOptions: _downloadOptions);
return _response.then((data) => new Webproperty.fromJson(data));
}
- /**
- * Lists web properties to which the user has access.
- *
- * Request parameters:
- *
- * [accountId] - Account ID to retrieve web properties for. Can either be a
- * specific account ID or '~all', which refers to all the accounts that user
- * has access to.
- *
- * [max_results] - The maximum number of web properties to include in this
- * response.
- *
- * [start_index] - An index of the first entity to retrieve. Use this
- * parameter as a pagination mechanism along with the max-results parameter.
- *
- * Completes with a [Webproperties].
- *
- * Completes with a [commons.ApiRequestError] if the API endpoint returned an
- * error.
- *
- * If the used [http.Client] completes with an error when making a REST call,
- * this method will complete with the same error.
- */
- async.Future<Webproperties> list(core.String accountId, {core.int max_results, core.int start_index}) {
+ /// Lists web properties to which the user has access.
+ ///
+ /// Request parameters:
+ ///
+ /// [accountId] - Account ID to retrieve web properties for. Can either be a
+ /// specific account ID or '~all', which refers to all the accounts that user
+ /// has access to.
+ ///
+ /// [max_results] - The maximum number of web properties to include in this
+ /// response.
+ ///
+ /// [start_index] - An index of the first entity to retrieve. Use this
+ /// parameter as a pagination mechanism along with the max-results parameter.
+ ///
+ /// Completes with a [Webproperties].
+ ///
+ /// Completes with a [commons.ApiRequestError] if the API endpoint returned
+ /// an error.
+ ///
+ /// If the used [http.Client] completes with an error when making a REST
+ /// call, this method will complete with the same error.
+ async.Future<Webproperties> list(core.String accountId,
+ {core.int max_results, core.int start_index}) {
var _url = null;
var _queryParams = new core.Map();
var _uploadMedia = null;
@@ -4616,38 +4910,38 @@ class ManagementWebpropertiesResourceApi {
_queryParams["start-index"] = ["${start_index}"];
}
- _url = 'management/accounts/' + commons.Escaper.ecapeVariable('$accountId') + '/webproperties';
+ _url = 'management/accounts/' +
+ commons.Escaper.ecapeVariable('$accountId') +
+ '/webproperties';
- var _response = _requester.request(_url,
- "GET",
- body: _body,
- queryParams: _queryParams,
- uploadOptions: _uploadOptions,
- uploadMedia: _uploadMedia,
- downloadOptions: _downloadOptions);
+ var _response = _requester.request(_url, "GET",
+ body: _body,
+ queryParams: _queryParams,
+ uploadOptions: _uploadOptions,
+ uploadMedia: _uploadMedia,
+ downloadOptions: _downloadOptions);
return _response.then((data) => new Webproperties.fromJson(data));
}
- /**
- * Updates an existing web property. This method supports patch semantics.
- *
- * [request] - The metadata request object.
- *
- * Request parameters:
- *
- * [accountId] - Account ID to which the web property belongs
- *
- * [webPropertyId] - Web property ID
- *
- * Completes with a [Webproperty].
- *
- * Completes with a [commons.ApiRequestError] if the API endpoint returned an
- * error.
- *
- * If the used [http.Client] completes with an error when making a REST call,
- * this method will complete with the same error.
- */
- async.Future<Webproperty> patch(Webproperty request, core.String accountId, core.String webPropertyId) {
+ /// Updates an existing web property. This method supports patch semantics.
+ ///
+ /// [request] - The metadata request object.
+ ///
+ /// Request parameters:
+ ///
+ /// [accountId] - Account ID to which the web property belongs
+ ///
+ /// [webPropertyId] - Web property ID
+ ///
+ /// Completes with a [Webproperty].
+ ///
+ /// Completes with a [commons.ApiRequestError] if the API endpoint returned
+ /// an error.
+ ///
+ /// If the used [http.Client] completes with an error when making a REST
+ /// call, this method will complete with the same error.
+ async.Future<Webproperty> patch(
+ Webproperty request, core.String accountId, core.String webPropertyId) {
var _url = null;
var _queryParams = new core.Map();
var _uploadMedia = null;
@@ -4665,38 +4959,39 @@ class ManagementWebpropertiesResourceApi {
throw new core.ArgumentError("Parameter webPropertyId is required.");
}
- _url = 'management/accounts/' + commons.Escaper.ecapeVariable('$accountId') + '/webproperties/' + commons.Escaper.ecapeVariable('$webPropertyId');
+ _url = 'management/accounts/' +
+ commons.Escaper.ecapeVariable('$accountId') +
+ '/webproperties/' +
+ commons.Escaper.ecapeVariable('$webPropertyId');
- var _response = _requester.request(_url,
- "PATCH",
- body: _body,
- queryParams: _queryParams,
- uploadOptions: _uploadOptions,
- uploadMedia: _uploadMedia,
- downloadOptions: _downloadOptions);
+ var _response = _requester.request(_url, "PATCH",
+ body: _body,
+ queryParams: _queryParams,
+ uploadOptions: _uploadOptions,
+ uploadMedia: _uploadMedia,
+ downloadOptions: _downloadOptions);
return _response.then((data) => new Webproperty.fromJson(data));
}
- /**
- * Updates an existing web property.
- *
- * [request] - The metadata request object.
- *
- * Request parameters:
- *
- * [accountId] - Account ID to which the web property belongs
- *
- * [webPropertyId] - Web property ID
- *
- * Completes with a [Webproperty].
- *
- * Completes with a [commons.ApiRequestError] if the API endpoint returned an
- * error.
- *
- * If the used [http.Client] completes with an error when making a REST call,
- * this method will complete with the same error.
- */
- async.Future<Webproperty> update(Webproperty request, core.String accountId, core.String webPropertyId) {
+ /// Updates an existing web property.
+ ///
+ /// [request] - The metadata request object.
+ ///
+ /// Request parameters:
+ ///
+ /// [accountId] - Account ID to which the web property belongs
+ ///
+ /// [webPropertyId] - Web property ID
+ ///
+ /// Completes with a [Webproperty].
+ ///
+ /// Completes with a [commons.ApiRequestError] if the API endpoint returned
+ /// an error.
+ ///
+ /// If the used [http.Client] completes with an error when making a REST
+ /// call, this method will complete with the same error.
+ async.Future<Webproperty> update(
+ Webproperty request, core.String accountId, core.String webPropertyId) {
var _url = null;
var _queryParams = new core.Map();
var _uploadMedia = null;
@@ -4714,45 +5009,44 @@ class ManagementWebpropertiesResourceApi {
throw new core.ArgumentError("Parameter webPropertyId is required.");
}
- _url = 'management/accounts/' + commons.Escaper.ecapeVariable('$accountId') + '/webproperties/' + commons.Escaper.ecapeVariable('$webPropertyId');
+ _url = 'management/accounts/' +
+ commons.Escaper.ecapeVariable('$accountId') +
+ '/webproperties/' +
+ commons.Escaper.ecapeVariable('$webPropertyId');
- var _response = _requester.request(_url,
- "PUT",
- body: _body,
- queryParams: _queryParams,
- uploadOptions: _uploadOptions,
- uploadMedia: _uploadMedia,
- downloadOptions: _downloadOptions);
+ var _response = _requester.request(_url, "PUT",
+ body: _body,
+ queryParams: _queryParams,
+ uploadOptions: _uploadOptions,
+ uploadMedia: _uploadMedia,
+ downloadOptions: _downloadOptions);
return _response.then((data) => new Webproperty.fromJson(data));
}
-
}
-
class ManagementWebpropertyUserLinksResourceApi {
final commons.ApiRequester _requester;
- ManagementWebpropertyUserLinksResourceApi(commons.ApiRequester client) :
- _requester = client;
-
- /**
- * Removes a user from the given web property.
- *
- * Request parameters:
- *
- * [accountId] - Account ID to delete the user link for.
- *
- * [webPropertyId] - Web Property ID to delete the user link for.
- *
- * [linkId] - Link ID to delete the user link for.
- *
- * Completes with a [commons.ApiRequestError] if the API endpoint returned an
- * error.
- *
- * If the used [http.Client] completes with an error when making a REST call,
- * this method will complete with the same error.
- */
- async.Future delete(core.String accountId, core.String webPropertyId, core.String linkId) {
+ ManagementWebpropertyUserLinksResourceApi(commons.ApiRequester client)
+ : _requester = client;
+
+ /// Removes a user from the given web property.
+ ///
+ /// Request parameters:
+ ///
+ /// [accountId] - Account ID to delete the user link for.
+ ///
+ /// [webPropertyId] - Web Property ID to delete the user link for.
+ ///
+ /// [linkId] - Link ID to delete the user link for.
+ ///
+ /// Completes with a [commons.ApiRequestError] if the API endpoint returned
+ /// an error.
+ ///
+ /// If the used [http.Client] completes with an error when making a REST
+ /// call, this method will complete with the same error.
+ async.Future delete(
+ core.String accountId, core.String webPropertyId, core.String linkId) {
var _url = null;
var _queryParams = new core.Map();
var _uploadMedia = null;
@@ -4772,38 +5066,41 @@ class ManagementWebpropertyUserLinksResourceApi {
_downloadOptions = null;
- _url = 'management/accounts/' + commons.Escaper.ecapeVariable('$accountId') + '/webproperties/' + commons.Escaper.ecapeVariable('$webPropertyId') + '/entityUserLinks/' + commons.Escaper.ecapeVariable('$linkId');
-
- var _response = _requester.request(_url,
- "DELETE",
- body: _body,
- queryParams: _queryParams,
- uploadOptions: _uploadOptions,
- uploadMedia: _uploadMedia,
- downloadOptions: _downloadOptions);
+ _url = 'management/accounts/' +
+ commons.Escaper.ecapeVariable('$accountId') +
+ '/webproperties/' +
+ commons.Escaper.ecapeVariable('$webPropertyId') +
+ '/entityUserLinks/' +
+ commons.Escaper.ecapeVariable('$linkId');
+
+ var _response = _requester.request(_url, "DELETE",
+ body: _body,
+ queryParams: _queryParams,
+ uploadOptions: _uploadOptions,
+ uploadMedia: _uploadMedia,
+ downloadOptions: _downloadOptions);
return _response.then((data) => null);
}
- /**
- * Adds a new user to the given web property.
- *
- * [request] - The metadata request object.
- *
- * Request parameters:
- *
- * [accountId] - Account ID to create the user link for.
- *
- * [webPropertyId] - Web Property ID to create the user link for.
- *
- * Completes with a [EntityUserLink].
- *
- * Completes with a [commons.ApiRequestError] if the API endpoint returned an
- * error.
- *
- * If the used [http.Client] completes with an error when making a REST call,
- * this method will complete with the same error.
- */
- async.Future<EntityUserLink> insert(EntityUserLink request, core.String accountId, core.String webPropertyId) {
+ /// Adds a new user to the given web property.
+ ///
+ /// [request] - The metadata request object.
+ ///
+ /// Request parameters:
+ ///
+ /// [accountId] - Account ID to create the user link for.
+ ///
+ /// [webPropertyId] - Web Property ID to create the user link for.
+ ///
+ /// Completes with a [EntityUserLink].
+ ///
+ /// Completes with a [commons.ApiRequestError] if the API endpoint returned
+ /// an error.
+ ///
+ /// If the used [http.Client] completes with an error when making a REST
+ /// call, this method will complete with the same error.
+ async.Future<EntityUserLink> insert(EntityUserLink request,
+ core.String accountId, core.String webPropertyId) {
var _url = null;
var _queryParams = new core.Map();
var _uploadMedia = null;
@@ -4821,45 +5118,48 @@ class ManagementWebpropertyUserLinksResourceApi {
throw new core.ArgumentError("Parameter webPropertyId is required.");
}
- _url = 'management/accounts/' + commons.Escaper.ecapeVariable('$accountId') + '/webproperties/' + commons.Escaper.ecapeVariable('$webPropertyId') + '/entityUserLinks';
+ _url = 'management/accounts/' +
+ commons.Escaper.ecapeVariable('$accountId') +
+ '/webproperties/' +
+ commons.Escaper.ecapeVariable('$webPropertyId') +
+ '/entityUserLinks';
- var _response = _requester.request(_url,
- "POST",
- body: _body,
- queryParams: _queryParams,
- uploadOptions: _uploadOptions,
- uploadMedia: _uploadMedia,
- downloadOptions: _downloadOptions);
+ var _response = _requester.request(_url, "POST",
+ body: _body,
+ queryParams: _queryParams,
+ uploadOptions: _uploadOptions,
+ uploadMedia: _uploadMedia,
+ downloadOptions: _downloadOptions);
return _response.then((data) => new EntityUserLink.fromJson(data));
}
- /**
- * Lists webProperty-user links for a given web property.
- *
- * Request parameters:
- *
- * [accountId] - Account ID which the given web property belongs to.
- *
- * [webPropertyId] - Web Property ID for the webProperty-user links to
- * retrieve. Can either be a specific web property ID or '~all', which refers
- * to all the web properties that user has access to.
- *
- * [max_results] - The maximum number of webProperty-user Links to include in
- * this response.
- *
- * [start_index] - An index of the first webProperty-user link to retrieve.
- * Use this parameter as a pagination mechanism along with the max-results
- * parameter.
- *
- * Completes with a [EntityUserLinks].
- *
- * Completes with a [commons.ApiRequestError] if the API endpoint returned an
- * error.
- *
- * If the used [http.Client] completes with an error when making a REST call,
- * this method will complete with the same error.
- */
- async.Future<EntityUserLinks> list(core.String accountId, core.String webPropertyId, {core.int max_results, core.int start_index}) {
+ /// Lists webProperty-user links for a given web property.
+ ///
+ /// Request parameters:
+ ///
+ /// [accountId] - Account ID which the given web property belongs to.
+ ///
+ /// [webPropertyId] - Web Property ID for the webProperty-user links to
+ /// retrieve. Can either be a specific web property ID or '~all', which
+ /// refers to all the web properties that user has access to.
+ ///
+ /// [max_results] - The maximum number of webProperty-user Links to include
+ /// in this response.
+ ///
+ /// [start_index] - An index of the first webProperty-user link to retrieve.
+ /// Use this parameter as a pagination mechanism along with the max-results
+ /// parameter.
+ ///
+ /// Completes with a [EntityUserLinks].
+ ///
+ /// Completes with a [commons.ApiRequestError] if the API endpoint returned
+ /// an error.
+ ///
+ /// If the used [http.Client] completes with an error when making a REST
+ /// call, this method will complete with the same error.
+ async.Future<EntityUserLinks> list(
+ core.String accountId, core.String webPropertyId,
+ {core.int max_results, core.int start_index}) {
var _url = null;
var _queryParams = new core.Map();
var _uploadMedia = null;
@@ -4880,40 +5180,42 @@ class ManagementWebpropertyUserLinksResourceApi {
_queryParams["start-index"] = ["${start_index}"];
}
- _url = 'management/accounts/' + commons.Escaper.ecapeVariable('$accountId') + '/webproperties/' + commons.Escaper.ecapeVariable('$webPropertyId') + '/entityUserLinks';
+ _url = 'management/accounts/' +
+ commons.Escaper.ecapeVariable('$accountId') +
+ '/webproperties/' +
+ commons.Escaper.ecapeVariable('$webPropertyId') +
+ '/entityUserLinks';
- var _response = _requester.request(_url,
- "GET",
- body: _body,
- queryParams: _queryParams,
- uploadOptions: _uploadOptions,
- uploadMedia: _uploadMedia,
- downloadOptions: _downloadOptions);
+ var _response = _requester.request(_url, "GET",
+ body: _body,
+ queryParams: _queryParams,
+ uploadOptions: _uploadOptions,
+ uploadMedia: _uploadMedia,
+ downloadOptions: _downloadOptions);
return _response.then((data) => new EntityUserLinks.fromJson(data));
}
- /**
- * Updates permissions for an existing user on the given web property.
- *
- * [request] - The metadata request object.
- *
- * Request parameters:
- *
- * [accountId] - Account ID to update the account-user link for.
- *
- * [webPropertyId] - Web property ID to update the account-user link for.
- *
- * [linkId] - Link ID to update the account-user link for.
- *
- * Completes with a [EntityUserLink].
- *
- * Completes with a [commons.ApiRequestError] if the API endpoint returned an
- * error.
- *
- * If the used [http.Client] completes with an error when making a REST call,
- * this method will complete with the same error.
- */
- async.Future<EntityUserLink> update(EntityUserLink request, core.String accountId, core.String webPropertyId, core.String linkId) {
+ /// Updates permissions for an existing user on the given web property.
+ ///
+ /// [request] - The metadata request object.
+ ///
+ /// Request parameters:
+ ///
+ /// [accountId] - Account ID to update the account-user link for.
+ ///
+ /// [webPropertyId] - Web property ID to update the account-user link for.
+ ///
+ /// [linkId] - Link ID to update the account-user link for.
+ ///
+ /// Completes with a [EntityUserLink].
+ ///
+ /// Completes with a [commons.ApiRequestError] if the API endpoint returned
+ /// an error.
+ ///
+ /// If the used [http.Client] completes with an error when making a REST
+ /// call, this method will complete with the same error.
+ async.Future<EntityUserLink> update(EntityUserLink request,
+ core.String accountId, core.String webPropertyId, core.String linkId) {
var _url = null;
var _queryParams = new core.Map();
var _uploadMedia = null;
@@ -4934,54 +5236,52 @@ class ManagementWebpropertyUserLinksResourceApi {
throw new core.ArgumentError("Parameter linkId is required.");
}
- _url = 'management/accounts/' + commons.Escaper.ecapeVariable('$accountId') + '/webproperties/' + commons.Escaper.ecapeVariable('$webPropertyId') + '/entityUserLinks/' + commons.Escaper.ecapeVariable('$linkId');
+ _url = 'management/accounts/' +
+ commons.Escaper.ecapeVariable('$accountId') +
+ '/webproperties/' +
+ commons.Escaper.ecapeVariable('$webPropertyId') +
+ '/entityUserLinks/' +
+ commons.Escaper.ecapeVariable('$linkId');
- var _response = _requester.request(_url,
- "PUT",
- body: _body,
- queryParams: _queryParams,
- uploadOptions: _uploadOptions,
- uploadMedia: _uploadMedia,
- downloadOptions: _downloadOptions);
+ var _response = _requester.request(_url, "PUT",
+ body: _body,
+ queryParams: _queryParams,
+ uploadOptions: _uploadOptions,
+ uploadMedia: _uploadMedia,
+ downloadOptions: _downloadOptions);
return _response.then((data) => new EntityUserLink.fromJson(data));
}
-
}
-
class MetadataResourceApi {
final commons.ApiRequester _requester;
- MetadataColumnsResourceApi get columns => new MetadataColumnsResourceApi(_requester);
+ MetadataColumnsResourceApi get columns =>
+ new MetadataColumnsResourceApi(_requester);
- MetadataResourceApi(commons.ApiRequester client) :
- _requester = client;
+ MetadataResourceApi(commons.ApiRequester client) : _requester = client;
}
-
class MetadataColumnsResourceApi {
final commons.ApiRequester _requester;
- MetadataColumnsResourceApi(commons.ApiRequester client) :
- _requester = client;
-
- /**
- * Lists all columns for a report type
- *
- * Request parameters:
- *
- * [reportType] - Report type. Allowed Values: 'ga'. Where 'ga' corresponds to
- * the Core Reporting API
- * Value must have pattern "ga".
- *
- * Completes with a [Columns].
- *
- * Completes with a [commons.ApiRequestError] if the API endpoint returned an
- * error.
- *
- * If the used [http.Client] completes with an error when making a REST call,
- * this method will complete with the same error.
- */
+ MetadataColumnsResourceApi(commons.ApiRequester client) : _requester = client;
+
+ /// Lists all columns for a report type
+ ///
+ /// Request parameters:
+ ///
+ /// [reportType] - Report type. Allowed Values: 'ga'. Where 'ga' corresponds
+ /// to the Core Reporting API
+ /// Value must have pattern "ga".
+ ///
+ /// Completes with a [Columns].
+ ///
+ /// Completes with a [commons.ApiRequestError] if the API endpoint returned
+ /// an error.
+ ///
+ /// If the used [http.Client] completes with an error when making a REST
+ /// call, this method will complete with the same error.
async.Future<Columns> list(core.String reportType) {
var _url = null;
var _queryParams = new core.Map();
@@ -4994,42 +5294,37 @@ class MetadataColumnsResourceApi {
throw new core.ArgumentError("Parameter reportType is required.");
}
- _url = 'metadata/' + commons.Escaper.ecapeVariable('$reportType') + '/columns';
+ _url =
+ 'metadata/' + commons.Escaper.ecapeVariable('$reportType') + '/columns';
- var _response = _requester.request(_url,
- "GET",
- body: _body,
- queryParams: _queryParams,
- uploadOptions: _uploadOptions,
- uploadMedia: _uploadMedia,
- downloadOptions: _downloadOptions);
+ var _response = _requester.request(_url, "GET",
+ body: _body,
+ queryParams: _queryParams,
+ uploadOptions: _uploadOptions,
+ uploadMedia: _uploadMedia,
+ downloadOptions: _downloadOptions);
return _response.then((data) => new Columns.fromJson(data));
}
-
}
-
class ProvisioningResourceApi {
final commons.ApiRequester _requester;
- ProvisioningResourceApi(commons.ApiRequester client) :
- _requester = client;
-
- /**
- * Creates an account ticket.
- *
- * [request] - The metadata request object.
- *
- * Request parameters:
- *
- * Completes with a [AccountTicket].
- *
- * Completes with a [commons.ApiRequestError] if the API endpoint returned an
- * error.
- *
- * If the used [http.Client] completes with an error when making a REST call,
- * this method will complete with the same error.
- */
+ ProvisioningResourceApi(commons.ApiRequester client) : _requester = client;
+
+ /// Creates an account ticket.
+ ///
+ /// [request] - The metadata request object.
+ ///
+ /// Request parameters:
+ ///
+ /// Completes with a [AccountTicket].
+ ///
+ /// Completes with a [commons.ApiRequestError] if the API endpoint returned
+ /// an error.
+ ///
+ /// If the used [http.Client] completes with an error when making a REST
+ /// call, this method will complete with the same error.
async.Future<AccountTicket> createAccountTicket(AccountTicket request) {
var _url = null;
var _queryParams = new core.Map();
@@ -5044,28 +5339,23 @@ class ProvisioningResourceApi {
_url = 'provisioning/createAccountTicket';
- var _response = _requester.request(_url,
- "POST",
- body: _body,
- queryParams: _queryParams,
- uploadOptions: _uploadOptions,
- uploadMedia: _uploadMedia,
- downloadOptions: _downloadOptions);
+ var _response = _requester.request(_url, "POST",
+ body: _body,
+ queryParams: _queryParams,
+ uploadOptions: _uploadOptions,
+ uploadMedia: _uploadMedia,
+ downloadOptions: _downloadOptions);
return _response.then((data) => new AccountTicket.fromJson(data));
}
-
}
-
-
-/**
- * Child link for an account entry. Points to the list of web properties for
- * this account.
- */
+/// Child link for an account entry. Points to the list of web properties for
+/// this account.
class AccountChildLink {
- /** Link to the list of web properties for this account. */
+ /// Link to the list of web properties for this account.
core.String href;
- /** Type of the child link. Its value is "analytics#webproperties". */
+
+ /// Type of the child link. Its value is "analytics#webproperties".
core.String type;
AccountChildLink();
@@ -5080,7 +5370,8 @@ class AccountChildLink {
}
core.Map<core.String, core.Object> toJson() {
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>();
+ final core.Map<core.String, core.Object> _json =
+ new core.Map<core.String, core.Object>();
if (href != null) {
_json["href"] = href;
}
@@ -5091,12 +5382,10 @@ class AccountChildLink {
}
}
-/** Permissions the user has for this account. */
+/// Permissions the user has for this account.
class AccountPermissions {
- /**
- * All the permissions that the user has for this account. These include any
- * implied permissions (e.g., EDIT implies VIEW).
- */
+ /// All the permissions that the user has for this account. These include any
+ /// implied permissions (e.g., EDIT implies VIEW).
core.List<core.String> effective;
AccountPermissions();
@@ -5108,7 +5397,8 @@ class AccountPermissions {
}
core.Map<core.String, core.Object> toJson() {
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>();
+ final core.Map<core.String, core.Object> _json =
+ new core.Map<core.String, core.Object>();
if (effective != null) {
_json["effective"] = effective;
}
@@ -5116,28 +5406,34 @@ class AccountPermissions {
}
}
-/** JSON template for Analytics account entry. */
+/// JSON template for Analytics account entry.
class Account {
- /**
- * Child link for an account entry. Points to the list of web properties for
- * this account.
- */
+ /// Child link for an account entry. Points to the list of web properties for
+ /// this account.
AccountChildLink childLink;
- /** Time the account was created. */
+
+ /// Time the account was created.
core.DateTime created;
- /** Account ID. */
+
+ /// Account ID.
core.String id;
- /** Resource type for Analytics account. */
+
+ /// Resource type for Analytics account.
core.String kind;
- /** Account name. */
+
+ /// Account name.
core.String name;
- /** Permissions the user has for this account. */
+
+ /// Permissions the user has for this account.
AccountPermissions permissions;
- /** Link for this account. */
+
+ /// Link for this account.
core.String selfLink;
- /** Indicates whether this account is starred or not. */
+
+ /// Indicates whether this account is starred or not.
core.bool starred;
- /** Time the account was last modified. */
+
+ /// Time the account was last modified.
core.DateTime updated;
Account();
@@ -5173,7 +5469,8 @@ class Account {
}
core.Map<core.String, core.Object> toJson() {
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>();
+ final core.Map<core.String, core.Object> _json =
+ new core.Map<core.String, core.Object>();
if (childLink != null) {
_json["childLink"] = (childLink).toJson();
}
@@ -5205,15 +5502,18 @@ class Account {
}
}
-/** JSON template for a linked account. */
+/// JSON template for a linked account.
class AccountRef {
- /** Link for this account. */
+ /// Link for this account.
core.String href;
- /** Account ID. */
+
+ /// Account ID.
core.String id;
- /** Analytics account reference. */
+
+ /// Analytics account reference.
core.String kind;
- /** Account name. */
+
+ /// Account name.
core.String name;
AccountRef();
@@ -5234,7 +5534,8 @@ class AccountRef {
}
core.Map<core.String, core.Object> toJson() {
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>();
+ final core.Map<core.String, core.Object> _json =
+ new core.Map<core.String, core.Object>();
if (href != null) {
_json["href"] = href;
}
@@ -5251,45 +5552,46 @@ class AccountRef {
}
}
-/**
- * An AccountSummary collection lists a summary of accounts, properties and
- * views (profiles) to which the user has access. Each resource in the
- * collection corresponds to a single AccountSummary.
- */
+/// An AccountSummary collection lists a summary of accounts, properties and
+/// views (profiles) to which the user has access. Each resource in the
+/// collection corresponds to a single AccountSummary.
class AccountSummaries {
- /** A list of AccountSummaries. */
+ /// A list of AccountSummaries.
core.List<AccountSummary> items;
- /**
- * 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.
- */
+
+ /// 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.
core.int itemsPerPage;
- /** Collection type. */
+
+ /// Collection type.
core.String kind;
- /** Link to next page for this AccountSummary collection. */
+
+ /// Link to next page for this AccountSummary collection.
core.String nextLink;
- /** Link to previous page for this AccountSummary collection. */
+
+ /// Link to previous page for this AccountSummary collection.
core.String previousLink;
- /**
- * The starting index of the resources, which is 1 by default or otherwise
- * specified by the start-index query parameter.
- */
+
+ /// The starting index of the resources, which is 1 by default or otherwise
+ /// specified by the start-index query parameter.
core.int startIndex;
- /**
- * The total number of results for the query, regardless of the number of
- * results in the response.
- */
+
+ /// The total number of results for the query, regardless of the number of
+ /// results in the response.
core.int totalResults;
- /** Email ID of the authenticated user */
+
+ /// Email ID of the authenticated user
core.String username;
AccountSummaries();
AccountSummaries.fromJson(core.Map _json) {
if (_json.containsKey("items")) {
- items = _json["items"].map((value) => new AccountSummary.fromJson(value)).toList();
+ items = _json["items"]
+ .map((value) => new AccountSummary.fromJson(value))
+ .toList();
}
if (_json.containsKey("itemsPerPage")) {
itemsPerPage = _json["itemsPerPage"];
@@ -5315,7 +5617,8 @@ class AccountSummaries {
}
core.Map<core.String, core.Object> toJson() {
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>();
+ final core.Map<core.String, core.Object> _json =
+ new core.Map<core.String, core.Object>();
if (items != null) {
_json["items"] = items.map((value) => (value).toJson()).toList();
}
@@ -5344,20 +5647,22 @@ class AccountSummaries {
}
}
-/**
- * JSON template for an Analytics AccountSummary. An AccountSummary is a
- * lightweight tree comprised of properties/profiles.
- */
+/// JSON template for an Analytics AccountSummary. An AccountSummary is a
+/// lightweight tree comprised of properties/profiles.
class AccountSummary {
- /** Account ID. */
+ /// Account ID.
core.String id;
- /** Resource type for Analytics AccountSummary. */
+
+ /// Resource type for Analytics AccountSummary.
core.String kind;
- /** Account name. */
+
+ /// Account name.
core.String name;
- /** Indicates whether this account is starred or not. */
+
+ /// Indicates whether this account is starred or not.
core.bool starred;
- /** List of web properties under this account. */
+
+ /// List of web properties under this account.
core.List<WebPropertySummary> webProperties;
AccountSummary();
@@ -5376,12 +5681,15 @@ class AccountSummary {
starred = _json["starred"];
}
if (_json.containsKey("webProperties")) {
- webProperties = _json["webProperties"].map((value) => new WebPropertySummary.fromJson(value)).toList();
+ webProperties = _json["webProperties"]
+ .map((value) => new WebPropertySummary.fromJson(value))
+ .toList();
}
}
core.Map<core.String, core.Object> toJson() {
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>();
+ final core.Map<core.String, core.Object> _json =
+ new core.Map<core.String, core.Object>();
if (id != null) {
_json["id"] = id;
}
@@ -5395,32 +5703,34 @@ class AccountSummary {
_json["starred"] = starred;
}
if (webProperties != null) {
- _json["webProperties"] = webProperties.map((value) => (value).toJson()).toList();
+ _json["webProperties"] =
+ webProperties.map((value) => (value).toJson()).toList();
}
return _json;
}
}
-/**
- * JSON template for an Analytics account ticket. The account ticket consists of
- * the ticket ID and the basic information for the account, property and
- * profile.
- */
+/// JSON template for an Analytics account ticket. The account ticket consists
+/// of the ticket ID and the basic information for the account, property and
+/// profile.
class AccountTicket {
- /** Account for this ticket. */
+ /// Account for this ticket.
Account account;
- /** Account ticket ID used to access the account ticket. */
+
+ /// Account ticket ID used to access the account ticket.
core.String id;
- /** Resource type for account ticket. */
+
+ /// Resource type for account ticket.
core.String kind;
- /** View (Profile) for the account. */
+
+ /// View (Profile) for the account.
Profile profile;
- /**
- * Redirect URI where the user will be sent after accepting Terms of Service.
- * Must be configured in APIs console as a callback URL.
- */
+
+ /// Redirect URI where the user will be sent after accepting Terms of
+ /// Service. Must be configured in APIs console as a callback URL.
core.String redirectUri;
- /** Web property for the account. */
+
+ /// Web property for the account.
Webproperty webproperty;
AccountTicket();
@@ -5447,7 +5757,8 @@ class AccountTicket {
}
core.Map<core.String, core.Object> toJson() {
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>();
+ final core.Map<core.String, core.Object> _json =
+ new core.Map<core.String, core.Object>();
if (account != null) {
_json["account"] = (account).toJson();
}
@@ -5470,46 +5781,46 @@ class AccountTicket {
}
}
-/**
- * An account collection provides a list of Analytics accounts to which a user
- * has access. The account collection is the entry point to all management
- * information. Each resource in the collection corresponds to a single
- * Analytics account.
- */
+/// An account collection provides a list of Analytics accounts to which a user
+/// has access. The account collection is the entry point to all management
+/// information. Each resource in the collection corresponds to a single
+/// Analytics account.
class Accounts {
- /** A list of accounts. */
+ /// A list of accounts.
core.List<Account> items;
- /**
- * The maximum number of entries the response can contain, regardless of the
- * actual number of entries returned. Its value ranges from 1 to 1000 with a
- * value of 1000 by default, or otherwise specified by the max-results query
- * parameter.
- */
+
+ /// The maximum number of entries the response can contain, regardless of the
+ /// actual number of entries returned. Its value ranges from 1 to 1000 with a
+ /// value of 1000 by default, or otherwise specified by the max-results query
+ /// parameter.
core.int itemsPerPage;
- /** Collection type. */
+
+ /// Collection type.
core.String kind;
- /** Next link for this account collection. */
+
+ /// Next link for this account collection.
core.String nextLink;
- /** Previous link for this account collection. */
+
+ /// Previous link for this account collection.
core.String previousLink;
- /**
- * The starting index of the entries, which is 1 by default or otherwise
- * specified by the start-index query parameter.
- */
+
+ /// The starting index of the entries, which is 1 by default or otherwise
+ /// specified by the start-index query parameter.
core.int startIndex;
- /**
- * The total number of results for the query, regardless of the number of
- * results in the response.
- */
+
+ /// The total number of results for the query, regardless of the number of
+ /// results in the response.
core.int totalResults;
- /** Email ID of the authenticated user */
+
+ /// Email ID of the authenticated user
core.String username;
Accounts();
Accounts.fromJson(core.Map _json) {
if (_json.containsKey("items")) {
- items = _json["items"].map((value) => new Account.fromJson(value)).toList();
+ items =
+ _json["items"].map((value) => new Account.fromJson(value)).toList();
}
if (_json.containsKey("itemsPerPage")) {
itemsPerPage = _json["itemsPerPage"];
@@ -5535,7 +5846,8 @@ class Accounts {
}
core.Map<core.String, core.Object> toJson() {
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>();
+ final core.Map<core.String, core.Object> _json =
+ new core.Map<core.String, core.Object>();
if (items != null) {
_json["items"] = items.map((value) => (value).toJson()).toList();
}
@@ -5564,16 +5876,16 @@ class Accounts {
}
}
-/** JSON template for an AdWords account. */
+/// JSON template for an AdWords account.
class AdWordsAccount {
- /**
- * True if auto-tagging is enabled on the AdWords account. Read-only after the
- * insert operation.
- */
+ /// True if auto-tagging is enabled on the AdWords account. Read-only after
+ /// the insert operation.
core.bool autoTaggingEnabled;
- /** Customer ID. This field is required when creating an AdWords link. */
+
+ /// Customer ID. This field is required when creating an AdWords link.
core.String customerId;
- /** Resource type for AdWords account. */
+
+ /// Resource type for AdWords account.
core.String kind;
AdWordsAccount();
@@ -5591,7 +5903,8 @@ class AdWordsAccount {
}
core.Map<core.String, core.Object> toJson() {
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>();
+ final core.Map<core.String, core.Object> _json =
+ new core.Map<core.String, core.Object>();
if (autoTaggingEnabled != null) {
_json["autoTaggingEnabled"] = autoTaggingEnabled;
}
@@ -5605,9 +5918,9 @@ class AdWordsAccount {
}
}
-/** Request template for the delete upload data request. */
+/// Request template for the delete upload data request.
class AnalyticsDataimportDeleteUploadDataRequest {
- /** A list of upload UIDs. */
+ /// A list of upload UIDs.
core.List<core.String> customDataImportUids;
AnalyticsDataimportDeleteUploadDataRequest();
@@ -5619,7 +5932,8 @@ class AnalyticsDataimportDeleteUploadDataRequest {
}
core.Map<core.String, core.Object> toJson() {
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>();
+ final core.Map<core.String, core.Object> _json =
+ new core.Map<core.String, core.Object>();
if (customDataImportUids != null) {
_json["customDataImportUids"] = customDataImportUids;
}
@@ -5627,13 +5941,15 @@ class AnalyticsDataimportDeleteUploadDataRequest {
}
}
-/** JSON template for a metadata column. */
+/// JSON template for a metadata column.
class Column {
- /** Map of attribute name and value for this column. */
+ /// Map of attribute name and value for this column.
core.Map<core.String, core.String> attributes;
- /** Column id. */
+
+ /// Column id.
core.String id;
- /** Resource type for Analytics column. */
+
+ /// Resource type for Analytics column.
core.String kind;
Column();
@@ -5651,7 +5967,8 @@ class Column {
}
core.Map<core.String, core.Object> toJson() {
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>();
+ final core.Map<core.String, core.Object> _json =
+ new core.Map<core.String, core.Object>();
if (attributes != null) {
_json["attributes"] = attributes;
}
@@ -5665,20 +5982,22 @@ class Column {
}
}
-/** Lists columns (dimensions and metrics) for a particular report type. */
+/// Lists columns (dimensions and metrics) for a particular report type.
class Columns {
- /** List of attributes names returned by columns. */
+ /// List of attributes names returned by columns.
core.List<core.String> attributeNames;
- /**
- * Etag of collection. This etag can be compared with the last response etag
- * to check if response has changed.
- */
+
+ /// Etag of collection. This etag can be compared with the last response etag
+ /// to check if response has changed.
core.String etag;
- /** List of columns for a report type. */
+
+ /// List of columns for a report type.
core.List<Column> items;
- /** Collection type. */
+
+ /// Collection type.
core.String kind;
- /** Total number of columns returned in the response. */
+
+ /// Total number of columns returned in the response.
core.int totalResults;
Columns();
@@ -5691,7 +6010,8 @@ class Columns {
etag = _json["etag"];
}
if (_json.containsKey("items")) {
- items = _json["items"].map((value) => new Column.fromJson(value)).toList();
+ items =
+ _json["items"].map((value) => new Column.fromJson(value)).toList();
}
if (_json.containsKey("kind")) {
kind = _json["kind"];
@@ -5702,7 +6022,8 @@ class Columns {
}
core.Map<core.String, core.Object> toJson() {
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>();
+ final core.Map<core.String, core.Object> _json =
+ new core.Map<core.String, core.Object>();
if (attributeNames != null) {
_json["attributeNames"] = attributeNames;
}
@@ -5723,12 +6044,11 @@ class Columns {
}
class CustomDataSourceChildLink {
- /**
- * Link to the list of daily uploads for this custom data source. Link to the
- * list of uploads for this custom data source.
- */
+ /// Link to the list of daily uploads for this custom data source. Link to
+ /// the list of uploads for this custom data source.
core.String href;
- /** Value is "analytics#dailyUploads". Value is "analytics#uploads". */
+
+ /// Value is "analytics#dailyUploads". Value is "analytics#uploads".
core.String type;
CustomDataSourceChildLink();
@@ -5743,7 +6063,8 @@ class CustomDataSourceChildLink {
}
core.Map<core.String, core.Object> toJson() {
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>();
+ final core.Map<core.String, core.Object> _json =
+ new core.Map<core.String, core.Object>();
if (href != null) {
_json["href"] = href;
}
@@ -5754,14 +6075,13 @@ class CustomDataSourceChildLink {
}
}
-/**
- * Parent link for this custom data source. Points to the web property to which
- * this custom data source belongs.
- */
+/// Parent link for this custom data source. Points to the web property to
+/// which this custom data source belongs.
class CustomDataSourceParentLink {
- /** Link to the web property to which this custom data source belongs. */
+ /// Link to the web property to which this custom data source belongs.
core.String href;
- /** Value is "analytics#webproperty". */
+
+ /// Value is "analytics#webproperty".
core.String type;
CustomDataSourceParentLink();
@@ -5776,7 +6096,8 @@ class CustomDataSourceParentLink {
}
core.Map<core.String, core.Object> toJson() {
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>();
+ final core.Map<core.String, core.Object> _json =
+ new core.Map<core.String, core.Object>();
if (href != null) {
_json["href"] = href;
}
@@ -5787,43 +6108,52 @@ class CustomDataSourceParentLink {
}
}
-/** JSON template for an Analytics custom data source. */
+/// JSON template for an Analytics custom data source.
class CustomDataSource {
- /** Account ID to which this custom data source belongs. */
+ /// Account ID to which this custom data source belongs.
core.String accountId;
CustomDataSourceChildLink childLink;
- /** Time this custom data source was created. */
+
+ /// Time this custom data source was created.
core.DateTime created;
- /** Description of custom data source. */
+
+ /// Description of custom data source.
core.String description;
- /** Custom data source ID. */
+
+ /// Custom data source ID.
core.String id;
core.String importBehavior;
- /** Resource type for Analytics custom data source. */
+
+ /// Resource type for Analytics custom data source.
core.String kind;
- /** Name of this custom data source. */
+
+ /// Name of this custom data source.
core.String name;
- /**
- * Parent link for this custom data source. Points to the web property to
- * which this custom data source belongs.
- */
+
+ /// Parent link for this custom data source. Points to the web property to
+ /// which this custom data source belongs.
CustomDataSourceParentLink parentLink;
- /** IDs of views (profiles) linked to the custom data source. */
+
+ /// IDs of views (profiles) linked to the custom data source.
core.List<core.String> profilesLinked;
- /** Collection of schema headers of the custom data source. */
+
+ /// Collection of schema headers of the custom data source.
core.List<core.String> schema;
- /** Link for this Analytics custom data source. */
+
+ /// Link for this Analytics custom data source.
core.String selfLink;
- /** Type of the custom data source. */
+
+ /// Type of the custom data source.
core.String type;
- /** Time this custom data source was last modified. */
+
+ /// Time this custom data source was last modified.
core.DateTime updated;
- /** Upload type of the custom data source. */
+
+ /// Upload type of the custom data source.
core.String uploadType;
- /**
- * Web property ID of the form UA-XXXXX-YY to which this custom data source
- * belongs.
- */
+
+ /// Web property ID of the form UA-XXXXX-YY to which this custom data source
+ /// belongs.
core.String webPropertyId;
CustomDataSource();
@@ -5880,7 +6210,8 @@ class CustomDataSource {
}
core.Map<core.String, core.Object> toJson() {
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>();
+ final core.Map<core.String, core.Object> _json =
+ new core.Map<core.String, core.Object>();
if (accountId != null) {
_json["accountId"] = accountId;
}
@@ -5933,45 +6264,46 @@ class CustomDataSource {
}
}
-/**
- * Lists Analytics custom data sources to which the user has access. Each
- * resource in the collection corresponds to a single Analytics custom data
- * source.
- */
+/// Lists Analytics custom data sources to which the user has access. Each
+/// resource in the collection corresponds to a single Analytics custom data
+/// source.
class CustomDataSources {
- /** Collection of custom data sources. */
+ /// Collection of custom data sources.
core.List<CustomDataSource> items;
- /**
- * 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.
- */
+
+ /// 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.
core.int itemsPerPage;
- /** Collection type. */
+
+ /// Collection type.
core.String kind;
- /** Link to next page for this custom data source collection. */
+
+ /// Link to next page for this custom data source collection.
core.String nextLink;
- /** Link to previous page for this custom data source collection. */
+
+ /// Link to previous page for this custom data source collection.
core.String previousLink;
- /**
- * The starting index of the resources, which is 1 by default or otherwise
- * specified by the start-index query parameter.
- */
+
+ /// The starting index of the resources, which is 1 by default or otherwise
+ /// specified by the start-index query parameter.
core.int startIndex;
- /**
- * The total number of results for the query, regardless of the number of
- * results in the response.
- */
+
+ /// The total number of results for the query, regardless of the number of
+ /// results in the response.
core.int totalResults;
- /** Email ID of the authenticated user */
+
+ /// Email ID of the authenticated user
core.String username;
CustomDataSources();
CustomDataSources.fromJson(core.Map _json) {
if (_json.containsKey("items")) {
- items = _json["items"].map((value) => new CustomDataSource.fromJson(value)).toList();
+ items = _json["items"]
+ .map((value) => new CustomDataSource.fromJson(value))
+ .toList();
}
if (_json.containsKey("itemsPerPage")) {
itemsPerPage = _json["itemsPerPage"];
@@ -5997,7 +6329,8 @@ class CustomDataSources {
}
core.Map<core.String, core.Object> toJson() {
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>();
+ final core.Map<core.String, core.Object> _json =
+ new core.Map<core.String, core.Object>();
if (items != null) {
_json["items"] = items.map((value) => (value).toJson()).toList();
}
@@ -6026,14 +6359,13 @@ class CustomDataSources {
}
}
-/**
- * Parent link for the custom dimension. Points to the property to which the
- * custom dimension belongs.
- */
+/// Parent link for the custom dimension. Points to the property to which the
+/// custom dimension belongs.
class CustomDimensionParentLink {
- /** Link to the property to which the custom dimension belongs. */
+ /// Link to the property to which the custom dimension belongs.
core.String href;
- /** Type of the parent link. Set to "analytics#webproperty". */
+
+ /// Type of the parent link. Set to "analytics#webproperty".
core.String type;
CustomDimensionParentLink();
@@ -6048,7 +6380,8 @@ class CustomDimensionParentLink {
}
core.Map<core.String, core.Object> toJson() {
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>();
+ final core.Map<core.String, core.Object> _json =
+ new core.Map<core.String, core.Object>();
if (href != null) {
_json["href"] = href;
}
@@ -6059,37 +6392,44 @@ class CustomDimensionParentLink {
}
}
-/** JSON template for Analytics Custom Dimension. */
+/// JSON template for Analytics Custom Dimension.
class CustomDimension {
- /** Account ID. */
+ /// Account ID.
core.String accountId;
- /** Boolean indicating whether the custom dimension is active. */
+
+ /// Boolean indicating whether the custom dimension is active.
core.bool active;
- /** Time the custom dimension was created. */
+
+ /// Time the custom dimension was created.
core.DateTime created;
- /** Custom dimension ID. */
+
+ /// Custom dimension ID.
core.String id;
- /** Index of the custom dimension. */
+
+ /// Index of the custom dimension.
core.int index;
- /**
- * Kind value for a custom dimension. Set to "analytics#customDimension". It
- * is a read-only field.
- */
+
+ /// Kind value for a custom dimension. Set to "analytics#customDimension". It
+ /// is a read-only field.
core.String kind;
- /** Name of the custom dimension. */
+
+ /// Name of the custom dimension.
core.String name;
- /**
- * Parent link for the custom dimension. Points to the property to which the
- * custom dimension belongs.
- */
+
+ /// Parent link for the custom dimension. Points to the property to which the
+ /// custom dimension belongs.
CustomDimensionParentLink parentLink;
- /** Scope of the custom dimension: HIT, SESSION, USER or PRODUCT. */
+
+ /// Scope of the custom dimension: HIT, SESSION, USER or PRODUCT.
core.String scope;
- /** Link for the custom dimension */
+
+ /// Link for the custom dimension
core.String selfLink;
- /** Time the custom dimension was last modified. */
+
+ /// Time the custom dimension was last modified.
core.DateTime updated;
- /** Property ID. */
+
+ /// Property ID.
core.String webPropertyId;
CustomDimension();
@@ -6134,7 +6474,8 @@ class CustomDimension {
}
core.Map<core.String, core.Object> toJson() {
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>();
+ final core.Map<core.String, core.Object> _json =
+ new core.Map<core.String, core.Object>();
if (accountId != null) {
_json["accountId"] = accountId;
}
@@ -6175,45 +6516,46 @@ class CustomDimension {
}
}
-/**
- * A custom dimension collection lists Analytics custom dimensions to which the
- * user has access. Each resource in the collection corresponds to a single
- * Analytics custom dimension.
- */
+/// A custom dimension collection lists Analytics custom dimensions to which
+/// the user has access. Each resource in the collection corresponds to a
+/// single Analytics custom dimension.
class CustomDimensions {
- /** Collection of custom dimensions. */
+ /// Collection of custom dimensions.
core.List<CustomDimension> items;
- /**
- * 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.
- */
+
+ /// 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.
core.int itemsPerPage;
- /** Collection type. */
+
+ /// Collection type.
core.String kind;
- /** Link to next page for this custom dimension collection. */
+
+ /// Link to next page for this custom dimension collection.
core.String nextLink;
- /** Link to previous page for this custom dimension collection. */
+
+ /// Link to previous page for this custom dimension collection.
core.String previousLink;
- /**
- * The starting index of the resources, which is 1 by default or otherwise
- * specified by the start-index query parameter.
- */
+
+ /// The starting index of the resources, which is 1 by default or otherwise
+ /// specified by the start-index query parameter.
core.int startIndex;
- /**
- * The total number of results for the query, regardless of the number of
- * results in the response.
- */
+
+ /// The total number of results for the query, regardless of the number of
+ /// results in the response.
core.int totalResults;
- /** Email ID of the authenticated user */
+
+ /// Email ID of the authenticated user
core.String username;
CustomDimensions();
CustomDimensions.fromJson(core.Map _json) {
if (_json.containsKey("items")) {
- items = _json["items"].map((value) => new CustomDimension.fromJson(value)).toList();
+ items = _json["items"]
+ .map((value) => new CustomDimension.fromJson(value))
+ .toList();
}
if (_json.containsKey("itemsPerPage")) {
itemsPerPage = _json["itemsPerPage"];
@@ -6239,7 +6581,8 @@ class CustomDimensions {
}
core.Map<core.String, core.Object> toJson() {
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>();
+ final core.Map<core.String, core.Object> _json =
+ new core.Map<core.String, core.Object>();
if (items != null) {
_json["items"] = items.map((value) => (value).toJson()).toList();
}
@@ -6268,14 +6611,13 @@ class CustomDimensions {
}
}
-/**
- * Parent link for the custom metric. Points to the property to which the custom
- * metric belongs.
- */
+/// Parent link for the custom metric. Points to the property to which the
+/// custom metric belongs.
class CustomMetricParentLink {
- /** Link to the property to which the custom metric belongs. */
+ /// Link to the property to which the custom metric belongs.
core.String href;
- /** Type of the parent link. Set to "analytics#webproperty". */
+
+ /// Type of the parent link. Set to "analytics#webproperty".
core.String type;
CustomMetricParentLink();
@@ -6290,7 +6632,8 @@ class CustomMetricParentLink {
}
core.Map<core.String, core.Object> toJson() {
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>();
+ final core.Map<core.String, core.Object> _json =
+ new core.Map<core.String, core.Object>();
if (href != null) {
_json["href"] = href;
}
@@ -6301,43 +6644,53 @@ class CustomMetricParentLink {
}
}
-/** JSON template for Analytics Custom Metric. */
+/// JSON template for Analytics Custom Metric.
class CustomMetric {
- /** Account ID. */
+ /// Account ID.
core.String accountId;
- /** Boolean indicating whether the custom metric is active. */
+
+ /// Boolean indicating whether the custom metric is active.
core.bool active;
- /** Time the custom metric was created. */
+
+ /// Time the custom metric was created.
core.DateTime created;
- /** Custom metric ID. */
+
+ /// Custom metric ID.
core.String id;
- /** Index of the custom metric. */
+
+ /// Index of the custom metric.
core.int index;
- /**
- * Kind value for a custom metric. Set to "analytics#customMetric". It is a
- * read-only field.
- */
+
+ /// Kind value for a custom metric. Set to "analytics#customMetric". It is a
+ /// read-only field.
core.String kind;
- /** Max value of custom metric. */
+
+ /// Max value of custom metric.
core.String maxValue;
- /** Min value of custom metric. */
+
+ /// Min value of custom metric.
core.String minValue;
- /** Name of the custom metric. */
+
+ /// Name of the custom metric.
core.String name;
- /**
- * Parent link for the custom metric. Points to the property to which the
- * custom metric belongs.
- */
+
+ /// Parent link for the custom metric. Points to the property to which the
+ /// custom metric belongs.
CustomMetricParentLink parentLink;
- /** Scope of the custom metric: HIT or PRODUCT. */
+
+ /// Scope of the custom metric: HIT or PRODUCT.
core.String scope;
- /** Link for the custom metric */
+
+ /// Link for the custom metric
core.String selfLink;
- /** Data type of custom metric. */
+
+ /// Data type of custom metric.
core.String type;
- /** Time the custom metric was last modified. */
+
+ /// Time the custom metric was last modified.
core.DateTime updated;
- /** Property ID. */
+
+ /// Property ID.
core.String webPropertyId;
CustomMetric();
@@ -6391,7 +6744,8 @@ class CustomMetric {
}
core.Map<core.String, core.Object> toJson() {
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>();
+ final core.Map<core.String, core.Object> _json =
+ new core.Map<core.String, core.Object>();
if (accountId != null) {
_json["accountId"] = accountId;
}
@@ -6441,45 +6795,46 @@ class CustomMetric {
}
}
-/**
- * A custom metric collection lists Analytics custom metrics to which the user
- * has access. Each resource in the collection corresponds to a single Analytics
- * custom metric.
- */
+/// A custom metric collection lists Analytics custom metrics to which the user
+/// has access. Each resource in the collection corresponds to a single
+/// Analytics custom metric.
class CustomMetrics {
- /** Collection of custom metrics. */
+ /// Collection of custom metrics.
core.List<CustomMetric> items;
- /**
- * 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.
- */
+
+ /// 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.
core.int itemsPerPage;
- /** Collection type. */
+
+ /// Collection type.
core.String kind;
- /** Link to next page for this custom metric collection. */
+
+ /// Link to next page for this custom metric collection.
core.String nextLink;
- /** Link to previous page for this custom metric collection. */
+
+ /// Link to previous page for this custom metric collection.
core.String previousLink;
- /**
- * The starting index of the resources, which is 1 by default or otherwise
- * specified by the start-index query parameter.
- */
+
+ /// The starting index of the resources, which is 1 by default or otherwise
+ /// specified by the start-index query parameter.
core.int startIndex;
- /**
- * The total number of results for the query, regardless of the number of
- * results in the response.
- */
+
+ /// The total number of results for the query, regardless of the number of
+ /// results in the response.
core.int totalResults;
- /** Email ID of the authenticated user */
+
+ /// Email ID of the authenticated user
core.String username;
CustomMetrics();
CustomMetrics.fromJson(core.Map _json) {
if (_json.containsKey("items")) {
- items = _json["items"].map((value) => new CustomMetric.fromJson(value)).toList();
+ items = _json["items"]
+ .map((value) => new CustomMetric.fromJson(value))
+ .toList();
}
if (_json.containsKey("itemsPerPage")) {
itemsPerPage = _json["itemsPerPage"];
@@ -6505,7 +6860,8 @@ class CustomMetrics {
}
core.Map<core.String, core.Object> toJson() {
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>();
+ final core.Map<core.String, core.Object> _json =
+ new core.Map<core.String, core.Object>();
if (items != null) {
_json["items"] = items.map((value) => (value).toJson()).toList();
}
@@ -6534,7 +6890,7 @@ class CustomMetrics {
}
}
-/** Web property being linked. */
+/// Web property being linked.
class EntityAdWordsLinkEntity {
WebPropertyRef webPropertyRef;
@@ -6547,7 +6903,8 @@ class EntityAdWordsLinkEntity {
}
core.Map<core.String, core.Object> toJson() {
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>();
+ final core.Map<core.String, core.Object> _json =
+ new core.Map<core.String, core.Object>();
if (webPropertyRef != null) {
_json["webPropertyRef"] = (webPropertyRef).toJson();
}
@@ -6555,33 +6912,37 @@ class EntityAdWordsLinkEntity {
}
}
-/** JSON template for Analytics Entity AdWords Link. */
+/// JSON template for Analytics Entity AdWords Link.
class EntityAdWordsLink {
- /**
- * A list of AdWords client accounts. These cannot be MCC accounts. This field
- * is required when creating an AdWords link. It cannot be empty.
- */
+ /// A list of AdWords client accounts. These cannot be MCC accounts. This
+ /// field is required when creating an AdWords link. It cannot be empty.
core.List<AdWordsAccount> adWordsAccounts;
- /** Web property being linked. */
+
+ /// Web property being linked.
EntityAdWordsLinkEntity entity;
- /** Entity AdWords link ID */
+
+ /// Entity AdWords link ID
core.String id;
- /** Resource type for entity AdWords link. */
+
+ /// Resource type for entity AdWords link.
core.String kind;
- /**
- * Name of the link. This field is required when creating an AdWords link.
- */
+
+ /// Name of the link. This field is required when creating an AdWords link.
core.String name;
- /** IDs of linked Views (Profiles) represented as strings. */
+
+ /// IDs of linked Views (Profiles) represented as strings.
core.List<core.String> profileIds;
- /** URL link for this Google Analytics - Google AdWords link. */
+
+ /// URL link for this Google Analytics - Google AdWords link.
core.String selfLink;
EntityAdWordsLink();
EntityAdWordsLink.fromJson(core.Map _json) {
if (_json.containsKey("adWordsAccounts")) {
- adWordsAccounts = _json["adWordsAccounts"].map((value) => new AdWordsAccount.fromJson(value)).toList();
+ adWordsAccounts = _json["adWordsAccounts"]
+ .map((value) => new AdWordsAccount.fromJson(value))
+ .toList();
}
if (_json.containsKey("entity")) {
entity = new EntityAdWordsLinkEntity.fromJson(_json["entity"]);
@@ -6604,9 +6965,11 @@ class EntityAdWordsLink {
}
core.Map<core.String, core.Object> toJson() {
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>();
+ final core.Map<core.String, core.Object> _json =
+ new core.Map<core.String, core.Object>();
if (adWordsAccounts != null) {
- _json["adWordsAccounts"] = adWordsAccounts.map((value) => (value).toJson()).toList();
+ _json["adWordsAccounts"] =
+ adWordsAccounts.map((value) => (value).toJson()).toList();
}
if (entity != null) {
_json["entity"] = (entity).toJson();
@@ -6630,42 +6993,42 @@ class EntityAdWordsLink {
}
}
-/**
- * An entity AdWords link collection provides a list of GA-AdWords links Each
- * resource in this collection corresponds to a single link.
- */
+/// An entity AdWords link collection provides a list of GA-AdWords links Each
+/// resource in this collection corresponds to a single link.
class EntityAdWordsLinks {
- /** A list of entity AdWords links. */
+ /// A list of entity AdWords links.
core.List<EntityAdWordsLink> items;
- /**
- * The maximum number of entries the response can contain, regardless of the
- * actual number of entries returned. Its value ranges from 1 to 1000 with a
- * value of 1000 by default, or otherwise specified by the max-results query
- * parameter.
- */
+
+ /// The maximum number of entries the response can contain, regardless of the
+ /// actual number of entries returned. Its value ranges from 1 to 1000 with a
+ /// value of 1000 by default, or otherwise specified by the max-results query
+ /// parameter.
core.int itemsPerPage;
- /** Collection type. */
+
+ /// Collection type.
core.String kind;
- /** Next link for this AdWords link collection. */
+
+ /// Next link for this AdWords link collection.
core.String nextLink;
- /** Previous link for this AdWords link collection. */
+
+ /// Previous link for this AdWords link collection.
core.String previousLink;
- /**
- * The starting index of the entries, which is 1 by default or otherwise
- * specified by the start-index query parameter.
- */
+
+ /// The starting index of the entries, which is 1 by default or otherwise
+ /// specified by the start-index query parameter.
core.int startIndex;
- /**
- * The total number of results for the query, regardless of the number of
- * results in the response.
- */
+
+ /// The total number of results for the query, regardless of the number of
+ /// results in the response.
core.int totalResults;
EntityAdWordsLinks();
EntityAdWordsLinks.fromJson(core.Map _json) {
if (_json.containsKey("items")) {
- items = _json["items"].map((value) => new EntityAdWordsLink.fromJson(value)).toList();
+ items = _json["items"]
+ .map((value) => new EntityAdWordsLink.fromJson(value))
+ .toList();
}
if (_json.containsKey("itemsPerPage")) {
itemsPerPage = _json["itemsPerPage"];
@@ -6688,7 +7051,8 @@ class EntityAdWordsLinks {
}
core.Map<core.String, core.Object> toJson() {
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>();
+ final core.Map<core.String, core.Object> _json =
+ new core.Map<core.String, core.Object>();
if (items != null) {
_json["items"] = items.map((value) => (value).toJson()).toList();
}
@@ -6714,16 +7078,16 @@ class EntityAdWordsLinks {
}
}
-/**
- * Entity for this link. It can be an account, a web property, or a view
- * (profile).
- */
+/// Entity for this link. It can be an account, a web property, or a view
+/// (profile).
class EntityUserLinkEntity {
- /** Account for this link. */
+ /// Account for this link.
AccountRef accountRef;
- /** View (Profile) for this link. */
+
+ /// View (Profile) for this link.
ProfileRef profileRef;
- /** Web property for this link. */
+
+ /// Web property for this link.
WebPropertyRef webPropertyRef;
EntityUserLinkEntity();
@@ -6741,7 +7105,8 @@ class EntityUserLinkEntity {
}
core.Map<core.String, core.Object> toJson() {
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>();
+ final core.Map<core.String, core.Object> _json =
+ new core.Map<core.String, core.Object>();
if (accountRef != null) {
_json["accountRef"] = (accountRef).toJson();
}
@@ -6755,20 +7120,17 @@ class EntityUserLinkEntity {
}
}
-/** Permissions the user has for this entity. */
+/// Permissions the user has for this entity.
class EntityUserLinkPermissions {
- /**
- * Effective permissions represent all the permissions that a user has for
- * this entity. These include any implied permissions (e.g., EDIT implies
- * VIEW) or inherited permissions from the parent entity. Effective
- * permissions are read-only.
- */
+ /// Effective permissions represent all the permissions that a user has for
+ /// this entity. These include any implied permissions (e.g., EDIT implies
+ /// VIEW) or inherited permissions from the parent entity. Effective
+ /// permissions are read-only.
core.List<core.String> effective;
- /**
- * Permissions that a user has been assigned at this very level. Does not
- * include any implied or inherited permissions. Local permissions are
- * modifiable.
- */
+
+ /// Permissions that a user has been assigned at this very level. Does not
+ /// include any implied or inherited permissions. Local permissions are
+ /// modifiable.
core.List<core.String> local;
EntityUserLinkPermissions();
@@ -6783,7 +7145,8 @@ class EntityUserLinkPermissions {
}
core.Map<core.String, core.Object> toJson() {
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>();
+ final core.Map<core.String, core.Object> _json =
+ new core.Map<core.String, core.Object>();
if (effective != null) {
_json["effective"] = effective;
}
@@ -6794,25 +7157,26 @@ class EntityUserLinkPermissions {
}
}
-/**
- * JSON template for an Analytics Entity-User Link. Returns permissions that a
- * user has for an entity.
- */
+/// JSON template for an Analytics Entity-User Link. Returns permissions that a
+/// user has for an entity.
class EntityUserLink {
- /**
- * Entity for this link. It can be an account, a web property, or a view
- * (profile).
- */
+ /// Entity for this link. It can be an account, a web property, or a view
+ /// (profile).
EntityUserLinkEntity entity;
- /** Entity user link ID */
+
+ /// Entity user link ID
core.String id;
- /** Resource type for entity user link. */
+
+ /// Resource type for entity user link.
core.String kind;
- /** Permissions the user has for this entity. */
+
+ /// Permissions the user has for this entity.
EntityUserLinkPermissions permissions;
- /** Self link for this resource. */
+
+ /// Self link for this resource.
core.String selfLink;
- /** User reference. */
+
+ /// User reference.
UserRef userRef;
EntityUserLink();
@@ -6828,7 +7192,8 @@ class EntityUserLink {
kind = _json["kind"];
}
if (_json.containsKey("permissions")) {
- permissions = new EntityUserLinkPermissions.fromJson(_json["permissions"]);
+ permissions =
+ new EntityUserLinkPermissions.fromJson(_json["permissions"]);
}
if (_json.containsKey("selfLink")) {
selfLink = _json["selfLink"];
@@ -6839,7 +7204,8 @@ class EntityUserLink {
}
core.Map<core.String, core.Object> toJson() {
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>();
+ final core.Map<core.String, core.Object> _json =
+ new core.Map<core.String, core.Object>();
if (entity != null) {
_json["entity"] = (entity).toJson();
}
@@ -6862,42 +7228,42 @@ class EntityUserLink {
}
}
-/**
- * An entity user link collection provides a list of Analytics ACL links Each
- * resource in this collection corresponds to a single link.
- */
+/// An entity user link collection provides a list of Analytics ACL links Each
+/// resource in this collection corresponds to a single link.
class EntityUserLinks {
- /** A list of entity user links. */
+ /// A list of entity user links.
core.List<EntityUserLink> items;
- /**
- * The maximum number of entries the response can contain, regardless of the
- * actual number of entries returned. Its value ranges from 1 to 1000 with a
- * value of 1000 by default, or otherwise specified by the max-results query
- * parameter.
- */
+
+ /// The maximum number of entries the response can contain, regardless of the
+ /// actual number of entries returned. Its value ranges from 1 to 1000 with a
+ /// value of 1000 by default, or otherwise specified by the max-results query
+ /// parameter.
core.int itemsPerPage;
- /** Collection type. */
+
+ /// Collection type.
core.String kind;
- /** Next link for this account collection. */
+
+ /// Next link for this account collection.
core.String nextLink;
- /** Previous link for this account collection. */
+
+ /// Previous link for this account collection.
core.String previousLink;
- /**
- * The starting index of the entries, which is 1 by default or otherwise
- * specified by the start-index query parameter.
- */
+
+ /// The starting index of the entries, which is 1 by default or otherwise
+ /// specified by the start-index query parameter.
core.int startIndex;
- /**
- * The total number of results for the query, regardless of the number of
- * results in the response.
- */
+
+ /// The total number of results for the query, regardless of the number of
+ /// results in the response.
core.int totalResults;
EntityUserLinks();
EntityUserLinks.fromJson(core.Map _json) {
if (_json.containsKey("items")) {
- items = _json["items"].map((value) => new EntityUserLink.fromJson(value)).toList();
+ items = _json["items"]
+ .map((value) => new EntityUserLink.fromJson(value))
+ .toList();
}
if (_json.containsKey("itemsPerPage")) {
itemsPerPage = _json["itemsPerPage"];
@@ -6920,7 +7286,8 @@ class EntityUserLinks {
}
core.Map<core.String, core.Object> toJson() {
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>();
+ final core.Map<core.String, core.Object> _json =
+ new core.Map<core.String, core.Object>();
if (items != null) {
_json["items"] = items.map((value) => (value).toJson()).toList();
}
@@ -6946,17 +7313,14 @@ class EntityUserLinks {
}
}
-/**
- * Parent link for an experiment. Points to the view (profile) to which this
- * experiment belongs.
- */
+/// Parent link for an experiment. Points to the view (profile) to which this
+/// experiment belongs.
class ExperimentParentLink {
- /**
- * Link to the view (profile) to which this experiment belongs. This field is
- * read-only.
- */
+ /// Link to the view (profile) to which this experiment belongs. This field
+ /// is read-only.
core.String href;
- /** Value is "analytics#profile". This field is read-only. */
+
+ /// Value is "analytics#profile". This field is read-only.
core.String type;
ExperimentParentLink();
@@ -6971,7 +7335,8 @@ class ExperimentParentLink {
}
core.Map<core.String, core.Object> toJson() {
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>();
+ final core.Map<core.String, core.Object> _json =
+ new core.Map<core.String, core.Object>();
if (href != null) {
_json["href"] = href;
}
@@ -6983,33 +7348,27 @@ class ExperimentParentLink {
}
class ExperimentVariations {
- /**
- * The name of the variation. This field is required when creating an
- * experiment. This field may not be changed for an experiment whose status is
- * ENDED.
- */
+ /// The name of the variation. This field is required when creating an
+ /// experiment. This field may not be changed for an experiment whose status
+ /// is ENDED.
core.String name;
- /**
- * Status of the variation. Possible values: "ACTIVE", "INACTIVE". INACTIVE
- * variations are not served. This field may not be changed for an experiment
- * whose status is ENDED.
- */
+
+ /// Status of the variation. Possible values: "ACTIVE", "INACTIVE". INACTIVE
+ /// variations are not served. This field may not be changed for an
+ /// experiment whose status is ENDED.
core.String status;
- /**
- * The URL of the variation. This field may not be changed for an experiment
- * whose status is RUNNING or ENDED.
- */
+
+ /// The URL of the variation. This field may not be changed for an experiment
+ /// whose status is RUNNING or ENDED.
core.String url;
- /**
- * Weight that this variation should receive. Only present if the experiment
- * is running. This field is read-only.
- */
+
+ /// Weight that this variation should receive. Only present if the experiment
+ /// is running. This field is read-only.
core.double weight;
- /**
- * True if the experiment has ended and this variation performed
- * (statistically) significantly better than the original. This field is
- * read-only.
- */
+
+ /// True if the experiment has ended and this variation performed
+ /// (statistically) significantly better than the original. This field is
+ /// read-only.
core.bool won;
ExperimentVariations();
@@ -7033,7 +7392,8 @@ class ExperimentVariations {
}
core.Map<core.String, core.Object> toJson() {
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>();
+ final core.Map<core.String, core.Object> _json =
+ new core.Map<core.String, core.Object>();
if (name != null) {
_json["name"] = name;
}
@@ -7053,156 +7413,141 @@ class ExperimentVariations {
}
}
-/** JSON template for Analytics experiment resource. */
+/// JSON template for Analytics experiment resource.
class Experiment {
- /** Account ID to which this experiment belongs. This field is read-only. */
+ /// Account ID to which this experiment belongs. This field is read-only.
core.String accountId;
- /** Time the experiment was created. This field is read-only. */
+
+ /// Time the experiment was created. This field is read-only.
core.DateTime created;
- /** Notes about this experiment. */
+
+ /// Notes about this experiment.
core.String description;
- /**
- * If true, the end user will be able to edit the experiment via the Google
- * Analytics user interface.
- */
+
+ /// If true, the end user will be able to edit the experiment via the Google
+ /// Analytics user interface.
core.bool editableInGaUi;
- /**
- * The ending time of the experiment (the time the status changed from RUNNING
- * to ENDED). This field is present only if the experiment has ended. This
- * field is read-only.
- */
+
+ /// The ending time of the experiment (the time the status changed from
+ /// RUNNING to ENDED). This field is present only if the experiment has
+ /// ended. This field is read-only.
core.DateTime endTime;
- /**
- * Boolean specifying whether to distribute traffic evenly across all
- * variations. If the value is False, content experiments follows the default
- * behavior of adjusting traffic dynamically based on variation performance.
- * Optional -- defaults to False. This field may not be changed for an
- * experiment whose status is ENDED.
- */
+
+ /// Boolean specifying whether to distribute traffic evenly across all
+ /// variations. If the value is False, content experiments follows the
+ /// default behavior of adjusting traffic dynamically based on variation
+ /// performance. Optional -- defaults to False. This field may not be changed
+ /// for an experiment whose status is ENDED.
core.bool equalWeighting;
- /** Experiment ID. Required for patch and update. Disallowed for create. */
+
+ /// Experiment ID. Required for patch and update. Disallowed for create.
core.String id;
- /**
- * Internal ID for the web property to which this experiment belongs. This
- * field is read-only.
- */
+
+ /// Internal ID for the web property to which this experiment belongs. This
+ /// field is read-only.
core.String internalWebPropertyId;
- /** Resource type for an Analytics experiment. This field is read-only. */
+
+ /// Resource type for an Analytics experiment. This field is read-only.
core.String kind;
- /**
- * An integer number in [3, 90]. Specifies the minimum length of the
- * experiment. Can be changed for a running experiment. This field may not be
- * changed for an experiments whose status is ENDED.
- */
+
+ /// An integer number in [3, 90]. Specifies the minimum length of the
+ /// experiment. Can be changed for a running experiment. This field may not
+ /// be changed for an experiments whose status is ENDED.
core.int minimumExperimentLengthInDays;
- /**
- * Experiment name. This field may not be changed for an experiment whose
- * status is ENDED. This field is required when creating an experiment.
- */
+
+ /// Experiment name. This field may not be changed for an experiment whose
+ /// status is ENDED. This field is required when creating an experiment.
core.String name;
- /**
- * The metric that the experiment is optimizing. Valid values:
- * "ga:goal(n)Completions", "ga:adsenseAdsClicks", "ga:adsenseAdsViewed",
- * "ga:adsenseRevenue", "ga:bounces", "ga:pageviews", "ga:sessionDuration",
- * "ga:transactions", "ga:transactionRevenue". This field is required if
- * status is "RUNNING" and servingFramework is one of "REDIRECT" or "API".
- */
+
+ /// The metric that the experiment is optimizing. Valid values:
+ /// "ga:goal(n)Completions", "ga:adsenseAdsClicks", "ga:adsenseAdsViewed",
+ /// "ga:adsenseRevenue", "ga:bounces", "ga:pageviews", "ga:sessionDuration",
+ /// "ga:transactions", "ga:transactionRevenue". This field is required if
+ /// status is "RUNNING" and servingFramework is one of "REDIRECT" or "API".
core.String objectiveMetric;
- /**
- * Whether the objectiveMetric should be minimized or maximized. Possible
- * values: "MAXIMUM", "MINIMUM". Optional--defaults to "MAXIMUM". Cannot be
- * specified without objectiveMetric. Cannot be modified when status is
- * "RUNNING" or "ENDED".
- */
+
+ /// Whether the objectiveMetric should be minimized or maximized. Possible
+ /// values: "MAXIMUM", "MINIMUM". Optional--defaults to "MAXIMUM". Cannot be
+ /// specified without objectiveMetric. Cannot be modified when status is
+ /// "RUNNING" or "ENDED".
core.String optimizationType;
- /**
- * Parent link for an experiment. Points to the view (profile) to which this
- * experiment belongs.
- */
+
+ /// Parent link for an experiment. Points to the view (profile) to which this
+ /// experiment belongs.
ExperimentParentLink parentLink;
- /**
- * View (Profile) ID to which this experiment belongs. This field is
- * read-only.
- */
+
+ /// View (Profile) ID to which this experiment belongs. This field is
+ /// read-only.
core.String profileId;
- /**
- * Why the experiment ended. Possible values: "STOPPED_BY_USER",
- * "WINNER_FOUND", "EXPERIMENT_EXPIRED", "ENDED_WITH_NO_WINNER",
- * "GOAL_OBJECTIVE_CHANGED". "ENDED_WITH_NO_WINNER" means that the experiment
- * didn't expire but no winner was projected to be found. If the experiment
- * status is changed via the API to ENDED this field is set to
- * STOPPED_BY_USER. This field is read-only.
- */
+
+ /// Why the experiment ended. Possible values: "STOPPED_BY_USER",
+ /// "WINNER_FOUND", "EXPERIMENT_EXPIRED", "ENDED_WITH_NO_WINNER",
+ /// "GOAL_OBJECTIVE_CHANGED". "ENDED_WITH_NO_WINNER" means that the
+ /// experiment didn't expire but no winner was projected to be found. If the
+ /// experiment status is changed via the API to ENDED this field is set to
+ /// STOPPED_BY_USER. This field is read-only.
core.String reasonExperimentEnded;
- /**
- * Boolean specifying whether variations URLS are rewritten to match those of
- * the original. This field may not be changed for an experiments whose status
- * is ENDED.
- */
+
+ /// Boolean specifying whether variations URLS are rewritten to match those
+ /// of the original. This field may not be changed for an experiments whose
+ /// status is ENDED.
core.bool rewriteVariationUrlsAsOriginal;
- /** Link for this experiment. This field is read-only. */
+
+ /// Link for this experiment. This field is read-only.
core.String selfLink;
- /**
- * The framework used to serve the experiment variations and evaluate the
- * results. One of:
- * - REDIRECT: Google Analytics redirects traffic to different variation
- * pages, reports the chosen variation and evaluates the results.
- * - API: Google Analytics chooses and reports the variation to serve and
- * evaluates the results; the caller is responsible for serving the selected
- * variation.
- * - EXTERNAL: The variations will be served externally and the chosen
- * variation reported to Google Analytics. The caller is responsible for
- * serving the selected variation and evaluating the results.
- */
+
+ /// The framework used to serve the experiment variations and evaluate the
+ /// results. One of:
+ /// - REDIRECT: Google Analytics redirects traffic to different variation
+ /// pages, reports the chosen variation and evaluates the results.
+ /// - API: Google Analytics chooses and reports the variation to serve and
+ /// evaluates the results; the caller is responsible for serving the selected
+ /// variation.
+ /// - EXTERNAL: The variations will be served externally and the chosen
+ /// variation reported to Google Analytics. The caller is responsible for
+ /// serving the selected variation and evaluating the results.
core.String servingFramework;
- /**
- * The snippet of code to include on the control page(s). This field is
- * read-only.
- */
+
+ /// The snippet of code to include on the control page(s). This field is
+ /// read-only.
core.String snippet;
- /**
- * The starting time of the experiment (the time the status changed from
- * READY_TO_RUN to RUNNING). This field is present only if the experiment has
- * started. This field is read-only.
- */
+
+ /// The starting time of the experiment (the time the status changed from
+ /// READY_TO_RUN to RUNNING). This field is present only if the experiment
+ /// has started. This field is read-only.
core.DateTime startTime;
- /**
- * Experiment status. Possible values: "DRAFT", "READY_TO_RUN", "RUNNING",
- * "ENDED". Experiments can be created in the "DRAFT", "READY_TO_RUN" or
- * "RUNNING" state. This field is required when creating an experiment.
- */
+
+ /// Experiment status. Possible values: "DRAFT", "READY_TO_RUN", "RUNNING",
+ /// "ENDED". Experiments can be created in the "DRAFT", "READY_TO_RUN" or
+ /// "RUNNING" state. This field is required when creating an experiment.
core.String status;
- /**
- * A floating-point number in (0, 1]. Specifies the fraction of the traffic
- * that participates in the experiment. Can be changed for a running
- * experiment. This field may not be changed for an experiments whose status
- * is ENDED.
- */
+
+ /// A floating-point number in (0, 1]. Specifies the fraction of the traffic
+ /// that participates in the experiment. Can be changed for a running
+ /// experiment. This field may not be changed for an experiments whose status
+ /// is ENDED.
core.double trafficCoverage;
- /** Time the experiment was last modified. This field is read-only. */
+
+ /// Time the experiment was last modified. This field is read-only.
core.DateTime updated;
- /**
- * Array of variations. The first variation in the array is the original. The
- * number of variations may not change once an experiment is in the RUNNING
- * state. At least two variations are required before status can be set to
- * RUNNING.
- */
+
+ /// Array of variations. The first variation in the array is the original.
+ /// The number of variations may not change once an experiment is in the
+ /// RUNNING state. At least two variations are required before status can be
+ /// set to RUNNING.
core.List<ExperimentVariations> variations;
- /**
- * Web property ID to which this experiment belongs. The web property ID is of
- * the form UA-XXXXX-YY. This field is read-only.
- */
+
+ /// Web property ID to which this experiment belongs. The web property ID is
+ /// of the form UA-XXXXX-YY. This field is read-only.
core.String webPropertyId;
- /**
- * A floating-point number in (0, 1). Specifies the necessary confidence level
- * to choose a winner. This field may not be changed for an experiments whose
- * status is ENDED.
- */
+
+ /// A floating-point number in (0, 1). Specifies the necessary confidence
+ /// level to choose a winner. This field may not be changed for an
+ /// experiments whose status is ENDED.
core.double winnerConfidenceLevel;
- /**
- * Boolean specifying whether a winner has been found for this experiment.
- * This field is read-only.
- */
+
+ /// Boolean specifying whether a winner has been found for this experiment.
+ /// This field is read-only.
core.bool winnerFound;
Experiment();
@@ -7281,7 +7626,9 @@ class Experiment {
updated = core.DateTime.parse(_json["updated"]);
}
if (_json.containsKey("variations")) {
- variations = _json["variations"].map((value) => new ExperimentVariations.fromJson(value)).toList();
+ variations = _json["variations"]
+ .map((value) => new ExperimentVariations.fromJson(value))
+ .toList();
}
if (_json.containsKey("webPropertyId")) {
webPropertyId = _json["webPropertyId"];
@@ -7295,7 +7642,8 @@ class Experiment {
}
core.Map<core.String, core.Object> toJson() {
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>();
+ final core.Map<core.String, core.Object> _json =
+ new core.Map<core.String, core.Object>();
if (accountId != null) {
_json["accountId"] = accountId;
}
@@ -7369,7 +7717,8 @@ class Experiment {
_json["updated"] = (updated).toIso8601String();
}
if (variations != null) {
- _json["variations"] = variations.map((value) => (value).toJson()).toList();
+ _json["variations"] =
+ variations.map((value) => (value).toJson()).toList();
}
if (webPropertyId != null) {
_json["webPropertyId"] = webPropertyId;
@@ -7384,45 +7733,46 @@ class Experiment {
}
}
-/**
- * An experiment collection lists Analytics experiments to which the user has
- * access. Each view (profile) can have a set of experiments. Each resource in
- * the Experiment collection corresponds to a single Analytics experiment.
- */
+/// An experiment collection lists Analytics experiments to which the user has
+/// access. Each view (profile) can have a set of experiments. Each resource in
+/// the Experiment collection corresponds to a single Analytics experiment.
class Experiments {
- /** A list of experiments. */
+ /// A list of experiments.
core.List<Experiment> items;
- /**
- * 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.
- */
+
+ /// 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.
core.int itemsPerPage;
- /** Collection type. */
+
+ /// Collection type.
core.String kind;
- /** Link to next page for this experiment collection. */
+
+ /// Link to next page for this experiment collection.
core.String nextLink;
- /** Link to previous page for this experiment collection. */
+
+ /// Link to previous page for this experiment collection.
core.String previousLink;
- /**
- * The starting index of the resources, which is 1 by default or otherwise
- * specified by the start-index query parameter.
- */
+
+ /// The starting index of the resources, which is 1 by default or otherwise
+ /// specified by the start-index query parameter.
core.int startIndex;
- /**
- * The total number of results for the query, regardless of the number of
- * resources in the result.
- */
+
+ /// The total number of results for the query, regardless of the number of
+ /// resources in the result.
core.int totalResults;
- /** Email ID of the authenticated user */
+
+ /// Email ID of the authenticated user
core.String username;
Experiments();
Experiments.fromJson(core.Map _json) {
if (_json.containsKey("items")) {
- items = _json["items"].map((value) => new Experiment.fromJson(value)).toList();
+ items = _json["items"]
+ .map((value) => new Experiment.fromJson(value))
+ .toList();
}
if (_json.containsKey("itemsPerPage")) {
itemsPerPage = _json["itemsPerPage"];
@@ -7448,7 +7798,8 @@ class Experiments {
}
core.Map<core.String, core.Object> toJson() {
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>();
+ final core.Map<core.String, core.Object> _json =
+ new core.Map<core.String, core.Object>();
if (items != null) {
_json["items"] = items.map((value) => (value).toJson()).toList();
}
@@ -7477,42 +7828,49 @@ class Experiments {
}
}
-/** Details for the filter of the type ADVANCED. */
+/// Details for the filter of the type ADVANCED.
class FilterAdvancedDetails {
- /** Indicates if the filter expressions are case sensitive. */
+ /// Indicates if the filter expressions are case sensitive.
core.bool caseSensitive;
- /** Expression to extract from field A. */
+
+ /// Expression to extract from field A.
core.String extractA;
- /** Expression to extract from field B. */
+
+ /// Expression to extract from field B.
core.String extractB;
- /** Field A. */
+
+ /// Field A.
core.String fieldA;
- /**
- * The Index of the custom dimension. Required if field is a CUSTOM_DIMENSION.
- */
+
+ /// The Index of the custom dimension. Required if field is a
+ /// CUSTOM_DIMENSION.
core.int fieldAIndex;
- /** Indicates if field A is required to match. */
+
+ /// Indicates if field A is required to match.
core.bool fieldARequired;
- /** Field B. */
+
+ /// Field B.
core.String fieldB;
- /**
- * The Index of the custom dimension. Required if field is a CUSTOM_DIMENSION.
- */
+
+ /// The Index of the custom dimension. Required if field is a
+ /// CUSTOM_DIMENSION.
core.int fieldBIndex;
- /** Indicates if field B is required to match. */
+
+ /// Indicates if field B is required to match.
core.bool fieldBRequired;
- /** Expression used to construct the output value. */
+
+ /// Expression used to construct the output value.
core.String outputConstructor;
- /** Output field. */
+
+ /// Output field.
core.String outputToField;
- /**
- * The Index of the custom dimension. Required if field is a CUSTOM_DIMENSION.
- */
+
+ /// The Index of the custom dimension. Required if field is a
+ /// CUSTOM_DIMENSION.
core.int outputToFieldIndex;
- /**
- * Indicates if the existing value of the output field, if any, should be
- * overridden by the output expression.
- */
+
+ /// Indicates if the existing value of the output field, if any, should be
+ /// overridden by the output expression.
core.bool overrideOutputField;
FilterAdvancedDetails();
@@ -7560,7 +7918,8 @@ class FilterAdvancedDetails {
}
core.Map<core.String, core.Object> toJson() {
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>();
+ final core.Map<core.String, core.Object> _json =
+ new core.Map<core.String, core.Object>();
if (caseSensitive != null) {
_json["caseSensitive"] = caseSensitive;
}
@@ -7604,13 +7963,13 @@ class FilterAdvancedDetails {
}
}
-/** Details for the filter of the type LOWER. */
+/// Details for the filter of the type LOWER.
class FilterLowercaseDetails {
- /** Field to use in the filter. */
+ /// Field to use in the filter.
core.String field;
- /**
- * The Index of the custom dimension. Required if field is a CUSTOM_DIMENSION.
- */
+
+ /// The Index of the custom dimension. Required if field is a
+ /// CUSTOM_DIMENSION.
core.int fieldIndex;
FilterLowercaseDetails();
@@ -7625,7 +7984,8 @@ class FilterLowercaseDetails {
}
core.Map<core.String, core.Object> toJson() {
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>();
+ final core.Map<core.String, core.Object> _json =
+ new core.Map<core.String, core.Object>();
if (field != null) {
_json["field"] = field;
}
@@ -7636,14 +7996,13 @@ class FilterLowercaseDetails {
}
}
-/**
- * Parent link for this filter. Points to the account to which this filter
- * belongs.
- */
+/// Parent link for this filter. Points to the account to which this filter
+/// belongs.
class FilterParentLink {
- /** Link to the account to which this filter belongs. */
+ /// Link to the account to which this filter belongs.
core.String href;
- /** Value is "analytics#account". */
+
+ /// Value is "analytics#account".
core.String type;
FilterParentLink();
@@ -7658,7 +8017,8 @@ class FilterParentLink {
}
core.Map<core.String, core.Object> toJson() {
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>();
+ final core.Map<core.String, core.Object> _json =
+ new core.Map<core.String, core.Object>();
if (href != null) {
_json["href"] = href;
}
@@ -7669,19 +8029,22 @@ class FilterParentLink {
}
}
-/** Details for the filter of the type SEARCH_AND_REPLACE. */
+/// Details for the filter of the type SEARCH_AND_REPLACE.
class FilterSearchAndReplaceDetails {
- /** Determines if the filter is case sensitive. */
+ /// Determines if the filter is case sensitive.
core.bool caseSensitive;
- /** Field to use in the filter. */
+
+ /// Field to use in the filter.
core.String field;
- /**
- * The Index of the custom dimension. Required if field is a CUSTOM_DIMENSION.
- */
+
+ /// The Index of the custom dimension. Required if field is a
+ /// CUSTOM_DIMENSION.
core.int fieldIndex;
- /** Term to replace the search term with. */
+
+ /// Term to replace the search term with.
core.String replaceString;
- /** Term to search. */
+
+ /// Term to search.
core.String searchString;
FilterSearchAndReplaceDetails();
@@ -7705,7 +8068,8 @@ class FilterSearchAndReplaceDetails {
}
core.Map<core.String, core.Object> toJson() {
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>();
+ final core.Map<core.String, core.Object> _json =
+ new core.Map<core.String, core.Object>();
if (caseSensitive != null) {
_json["caseSensitive"] = caseSensitive;
}
@@ -7725,13 +8089,13 @@ class FilterSearchAndReplaceDetails {
}
}
-/** Details for the filter of the type UPPER. */
+/// Details for the filter of the type UPPER.
class FilterUppercaseDetails {
- /** Field to use in the filter. */
+ /// Field to use in the filter.
core.String field;
- /**
- * The Index of the custom dimension. Required if field is a CUSTOM_DIMENSION.
- */
+
+ /// The Index of the custom dimension. Required if field is a
+ /// CUSTOM_DIMENSION.
core.int fieldIndex;
FilterUppercaseDetails();
@@ -7746,7 +8110,8 @@ class FilterUppercaseDetails {
}
core.Map<core.String, core.Object> toJson() {
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>();
+ final core.Map<core.String, core.Object> _json =
+ new core.Map<core.String, core.Object>();
if (field != null) {
_json["field"] = field;
}
@@ -7757,43 +8122,53 @@ class FilterUppercaseDetails {
}
}
-/** JSON template for an Analytics account filter. */
+/// JSON template for an Analytics account filter.
class Filter {
- /** Account ID to which this filter belongs. */
+ /// Account ID to which this filter belongs.
core.String accountId;
- /** Details for the filter of the type ADVANCED. */
+
+ /// Details for the filter of the type ADVANCED.
FilterAdvancedDetails advancedDetails;
- /** Time this filter was created. */
+
+ /// Time this filter was created.
core.DateTime created;
- /** Details for the filter of the type EXCLUDE. */
+
+ /// Details for the filter of the type EXCLUDE.
FilterExpression excludeDetails;
- /** Filter ID. */
+
+ /// Filter ID.
core.String id;
- /** Details for the filter of the type INCLUDE. */
+
+ /// Details for the filter of the type INCLUDE.
FilterExpression includeDetails;
- /** Resource type for Analytics filter. */
+
+ /// Resource type for Analytics filter.
core.String kind;
- /** Details for the filter of the type LOWER. */
+
+ /// Details for the filter of the type LOWER.
FilterLowercaseDetails lowercaseDetails;
- /** Name of this filter. */
+
+ /// Name of this filter.
core.String name;
- /**
- * Parent link for this filter. Points to the account to which this filter
- * belongs.
- */
+
+ /// Parent link for this filter. Points to the account to which this filter
+ /// belongs.
FilterParentLink parentLink;
- /** Details for the filter of the type SEARCH_AND_REPLACE. */
+
+ /// Details for the filter of the type SEARCH_AND_REPLACE.
FilterSearchAndReplaceDetails searchAndReplaceDetails;
- /** Link for this filter. */
+
+ /// Link for this filter.
core.String selfLink;
- /**
- * Type of this filter. Possible values are INCLUDE, EXCLUDE, LOWERCASE,
- * UPPERCASE, SEARCH_AND_REPLACE and ADVANCED.
- */
+
+ /// Type of this filter. Possible values are INCLUDE, EXCLUDE, LOWERCASE,
+ /// UPPERCASE, SEARCH_AND_REPLACE and ADVANCED.
core.String type;
- /** Time this filter was last modified. */
+
+ /// Time this filter was last modified.
core.DateTime updated;
- /** Details for the filter of the type UPPER. */
+
+ /// Details for the filter of the type UPPER.
FilterUppercaseDetails uppercaseDetails;
Filter();
@@ -7803,7 +8178,8 @@ class Filter {
accountId = _json["accountId"];
}
if (_json.containsKey("advancedDetails")) {
- advancedDetails = new FilterAdvancedDetails.fromJson(_json["advancedDetails"]);
+ advancedDetails =
+ new FilterAdvancedDetails.fromJson(_json["advancedDetails"]);
}
if (_json.containsKey("created")) {
created = core.DateTime.parse(_json["created"]);
@@ -7821,7 +8197,8 @@ class Filter {
kind = _json["kind"];
}
if (_json.containsKey("lowercaseDetails")) {
- lowercaseDetails = new FilterLowercaseDetails.fromJson(_json["lowercaseDetails"]);
+ lowercaseDetails =
+ new FilterLowercaseDetails.fromJson(_json["lowercaseDetails"]);
}
if (_json.containsKey("name")) {
name = _json["name"];
@@ -7830,7 +8207,8 @@ class Filter {
parentLink = new FilterParentLink.fromJson(_json["parentLink"]);
}
if (_json.containsKey("searchAndReplaceDetails")) {
- searchAndReplaceDetails = new FilterSearchAndReplaceDetails.fromJson(_json["searchAndReplaceDetails"]);
+ searchAndReplaceDetails = new FilterSearchAndReplaceDetails.fromJson(
+ _json["searchAndReplaceDetails"]);
}
if (_json.containsKey("selfLink")) {
selfLink = _json["selfLink"];
@@ -7842,12 +8220,14 @@ class Filter {
updated = core.DateTime.parse(_json["updated"]);
}
if (_json.containsKey("uppercaseDetails")) {
- uppercaseDetails = new FilterUppercaseDetails.fromJson(_json["uppercaseDetails"]);
+ uppercaseDetails =
+ new FilterUppercaseDetails.fromJson(_json["uppercaseDetails"]);
}
}
core.Map<core.String, core.Object> toJson() {
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>();
+ final core.Map<core.String, core.Object> _json =
+ new core.Map<core.String, core.Object>();
if (accountId != null) {
_json["accountId"] = accountId;
}
@@ -7897,115 +8277,114 @@ class Filter {
}
}
-/** JSON template for an Analytics filter expression. */
+/// JSON template for an Analytics filter expression.
class FilterExpression {
- /** Determines if the filter is case sensitive. */
+ /// Determines if the filter is case sensitive.
core.bool caseSensitive;
- /** Filter expression value */
+
+ /// Filter expression value
core.String expressionValue;
- /**
- * Field to filter. Possible values:
- * - Content and Traffic
- * - PAGE_REQUEST_URI,
- * - PAGE_HOSTNAME,
- * - PAGE_TITLE,
- * - REFERRAL,
- * - COST_DATA_URI (Campaign target URL),
- * - HIT_TYPE,
- * - INTERNAL_SEARCH_TERM,
- * - INTERNAL_SEARCH_TYPE,
- * - SOURCE_PROPERTY_TRACKING_ID,
- * - Campaign or AdGroup
- * - CAMPAIGN_SOURCE,
- * - CAMPAIGN_MEDIUM,
- * - CAMPAIGN_NAME,
- * - CAMPAIGN_AD_GROUP,
- * - CAMPAIGN_TERM,
- * - CAMPAIGN_CONTENT,
- * - CAMPAIGN_CODE,
- * - CAMPAIGN_REFERRAL_PATH,
- * - E-Commerce
- * - TRANSACTION_COUNTRY,
- * - TRANSACTION_REGION,
- * - TRANSACTION_CITY,
- * - TRANSACTION_AFFILIATION (Store or order location),
- * - ITEM_NAME,
- * - ITEM_CODE,
- * - ITEM_VARIATION,
- * - TRANSACTION_ID,
- * - TRANSACTION_CURRENCY_CODE,
- * - PRODUCT_ACTION_TYPE,
- * - Audience/Users
- * - BROWSER,
- * - BROWSER_VERSION,
- * - BROWSER_SIZE,
- * - PLATFORM,
- * - PLATFORM_VERSION,
- * - LANGUAGE,
- * - SCREEN_RESOLUTION,
- * - SCREEN_COLORS,
- * - JAVA_ENABLED (Boolean Field),
- * - FLASH_VERSION,
- * - GEO_SPEED (Connection speed),
- * - VISITOR_TYPE,
- * - GEO_ORGANIZATION (ISP organization),
- * - GEO_DOMAIN,
- * - GEO_IP_ADDRESS,
- * - GEO_IP_VERSION,
- * - Location
- * - GEO_COUNTRY,
- * - GEO_REGION,
- * - GEO_CITY,
- * - Event
- * - EVENT_CATEGORY,
- * - EVENT_ACTION,
- * - EVENT_LABEL,
- * - Other
- * - CUSTOM_FIELD_1,
- * - CUSTOM_FIELD_2,
- * - USER_DEFINED_VALUE,
- * - Application
- * - APP_ID,
- * - APP_INSTALLER_ID,
- * - APP_NAME,
- * - APP_VERSION,
- * - SCREEN,
- * - IS_APP (Boolean Field),
- * - IS_FATAL_EXCEPTION (Boolean Field),
- * - EXCEPTION_DESCRIPTION,
- * - Mobile device
- * - IS_MOBILE (Boolean Field, Deprecated. Use DEVICE_CATEGORY=mobile),
- * - IS_TABLET (Boolean Field, Deprecated. Use DEVICE_CATEGORY=tablet),
- * - DEVICE_CATEGORY,
- * - MOBILE_HAS_QWERTY_KEYBOARD (Boolean Field),
- * - MOBILE_HAS_NFC_SUPPORT (Boolean Field),
- * - MOBILE_HAS_CELLULAR_RADIO (Boolean Field),
- * - MOBILE_HAS_WIFI_SUPPORT (Boolean Field),
- * - MOBILE_BRAND_NAME,
- * - MOBILE_MODEL_NAME,
- * - MOBILE_MARKETING_NAME,
- * - MOBILE_POINTING_METHOD,
- * - Social
- * - SOCIAL_NETWORK,
- * - SOCIAL_ACTION,
- * - SOCIAL_ACTION_TARGET,
- * - Custom dimension
- * - CUSTOM_DIMENSION (See accompanying field index),
- */
+
+ /// Field to filter. Possible values:
+ /// - Content and Traffic
+ /// - PAGE_REQUEST_URI,
+ /// - PAGE_HOSTNAME,
+ /// - PAGE_TITLE,
+ /// - REFERRAL,
+ /// - COST_DATA_URI (Campaign target URL),
+ /// - HIT_TYPE,
+ /// - INTERNAL_SEARCH_TERM,
+ /// - INTERNAL_SEARCH_TYPE,
+ /// - SOURCE_PROPERTY_TRACKING_ID,
+ /// - Campaign or AdGroup
+ /// - CAMPAIGN_SOURCE,
+ /// - CAMPAIGN_MEDIUM,
+ /// - CAMPAIGN_NAME,
+ /// - CAMPAIGN_AD_GROUP,
+ /// - CAMPAIGN_TERM,
+ /// - CAMPAIGN_CONTENT,
+ /// - CAMPAIGN_CODE,
+ /// - CAMPAIGN_REFERRAL_PATH,
+ /// - E-Commerce
+ /// - TRANSACTION_COUNTRY,
+ /// - TRANSACTION_REGION,
+ /// - TRANSACTION_CITY,
+ /// - TRANSACTION_AFFILIATION (Store or order location),
+ /// - ITEM_NAME,
+ /// - ITEM_CODE,
+ /// - ITEM_VARIATION,
+ /// - TRANSACTION_ID,
+ /// - TRANSACTION_CURRENCY_CODE,
+ /// - PRODUCT_ACTION_TYPE,
+ /// - Audience/Users
+ /// - BROWSER,
+ /// - BROWSER_VERSION,
+ /// - BROWSER_SIZE,
+ /// - PLATFORM,
+ /// - PLATFORM_VERSION,
+ /// - LANGUAGE,
+ /// - SCREEN_RESOLUTION,
+ /// - SCREEN_COLORS,
+ /// - JAVA_ENABLED (Boolean Field),
+ /// - FLASH_VERSION,
+ /// - GEO_SPEED (Connection speed),
+ /// - VISITOR_TYPE,
+ /// - GEO_ORGANIZATION (ISP organization),
+ /// - GEO_DOMAIN,
+ /// - GEO_IP_ADDRESS,
+ /// - GEO_IP_VERSION,
+ /// - Location
+ /// - GEO_COUNTRY,
+ /// - GEO_REGION,
+ /// - GEO_CITY,
+ /// - Event
+ /// - EVENT_CATEGORY,
+ /// - EVENT_ACTION,
+ /// - EVENT_LABEL,
+ /// - Other
+ /// - CUSTOM_FIELD_1,
+ /// - CUSTOM_FIELD_2,
+ /// - USER_DEFINED_VALUE,
+ /// - Application
+ /// - APP_ID,
+ /// - APP_INSTALLER_ID,
+ /// - APP_NAME,
+ /// - APP_VERSION,
+ /// - SCREEN,
+ /// - IS_APP (Boolean Field),
+ /// - IS_FATAL_EXCEPTION (Boolean Field),
+ /// - EXCEPTION_DESCRIPTION,
+ /// - Mobile device
+ /// - IS_MOBILE (Boolean Field, Deprecated. Use DEVICE_CATEGORY=mobile),
+ /// - IS_TABLET (Boolean Field, Deprecated. Use DEVICE_CATEGORY=tablet),
+ /// - DEVICE_CATEGORY,
+ /// - MOBILE_HAS_QWERTY_KEYBOARD (Boolean Field),
+ /// - MOBILE_HAS_NFC_SUPPORT (Boolean Field),
+ /// - MOBILE_HAS_CELLULAR_RADIO (Boolean Field),
+ /// - MOBILE_HAS_WIFI_SUPPORT (Boolean Field),
+ /// - MOBILE_BRAND_NAME,
+ /// - MOBILE_MODEL_NAME,
+ /// - MOBILE_MARKETING_NAME,
+ /// - MOBILE_POINTING_METHOD,
+ /// - Social
+ /// - SOCIAL_NETWORK,
+ /// - SOCIAL_ACTION,
+ /// - SOCIAL_ACTION_TARGET,
+ /// - Custom dimension
+ /// - CUSTOM_DIMENSION (See accompanying field index),
core.String field;
- /**
- * The Index of the custom dimension. Set only if the field is a is
- * CUSTOM_DIMENSION.
- */
+
+ /// The Index of the custom dimension. Set only if the field is a is
+ /// CUSTOM_DIMENSION.
core.int fieldIndex;
- /** Kind value for filter expression */
+
+ /// Kind value for filter expression
core.String kind;
- /**
- * Match type for this filter. Possible values are BEGINS_WITH, EQUAL,
- * ENDS_WITH, CONTAINS, or MATCHES. GEO_DOMAIN, GEO_IP_ADDRESS,
- * PAGE_REQUEST_URI, or PAGE_HOSTNAME filters can use any match type; all
- * other filters must use MATCHES.
- */
+
+ /// Match type for this filter. Possible values are BEGINS_WITH, EQUAL,
+ /// ENDS_WITH, CONTAINS, or MATCHES. GEO_DOMAIN, GEO_IP_ADDRESS,
+ /// PAGE_REQUEST_URI, or PAGE_HOSTNAME filters can use any match type; all
+ /// other filters must use MATCHES.
core.String matchType;
FilterExpression();
@@ -8032,7 +8411,8 @@ class FilterExpression {
}
core.Map<core.String, core.Object> toJson() {
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>();
+ final core.Map<core.String, core.Object> _json =
+ new core.Map<core.String, core.Object>();
if (caseSensitive != null) {
_json["caseSensitive"] = caseSensitive;
}
@@ -8055,17 +8435,21 @@ class FilterExpression {
}
}
-/** JSON template for a profile filter link. */
+/// JSON template for a profile filter link.
class FilterRef {
- /** Account ID to which this filter belongs. */
+ /// Account ID to which this filter belongs.
core.String accountId;
- /** Link for this filter. */
+
+ /// Link for this filter.
core.String href;
- /** Filter ID. */
+
+ /// Filter ID.
core.String id;
- /** Kind value for filter reference. */
+
+ /// Kind value for filter reference.
core.String kind;
- /** Name of this filter. */
+
+ /// Name of this filter.
core.String name;
FilterRef();
@@ -8089,7 +8473,8 @@ class FilterRef {
}
core.Map<core.String, core.Object> toJson() {
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>();
+ final core.Map<core.String, core.Object> _json =
+ new core.Map<core.String, core.Object>();
if (accountId != null) {
_json["accountId"] = accountId;
}
@@ -8109,44 +8494,44 @@ class FilterRef {
}
}
-/**
- * A filter collection lists filters created by users in an Analytics account.
- * Each resource in the collection corresponds to a filter.
- */
+/// A filter collection lists filters created by users in an Analytics account.
+/// Each resource in the collection corresponds to a filter.
class Filters {
- /** A list of filters. */
+ /// A list of filters.
core.List<Filter> items;
- /**
- * The maximum number of resources the response can contain, regardless of the
- * actual number of resources returned. Its value ranges from 1 to 1,000 with
- * a value of 1000 by default, or otherwise specified by the max-results query
- * parameter.
- */
+
+ /// The maximum number of resources the response can contain, regardless of
+ /// the actual number of resources returned. Its value ranges from 1 to 1,000
+ /// with a value of 1000 by default, or otherwise specified by the
+ /// max-results query parameter.
core.int itemsPerPage;
- /** Collection type. */
+
+ /// Collection type.
core.String kind;
- /** Link to next page for this filter collection. */
+
+ /// Link to next page for this filter collection.
core.String nextLink;
- /** Link to previous page for this filter collection. */
+
+ /// Link to previous page for this filter collection.
core.String previousLink;
- /**
- * The starting index of the resources, which is 1 by default or otherwise
- * specified by the start-index query parameter.
- */
+
+ /// The starting index of the resources, which is 1 by default or otherwise
+ /// specified by the start-index query parameter.
core.int startIndex;
- /**
- * The total number of results for the query, regardless of the number of
- * results in the response.
- */
+
+ /// The total number of results for the query, regardless of the number of
+ /// results in the response.
core.int totalResults;
- /** Email ID of the authenticated user */
+
+ /// Email ID of the authenticated user
core.String username;
Filters();
Filters.fromJson(core.Map _json) {
if (_json.containsKey("items")) {
- items = _json["items"].map((value) => new Filter.fromJson(value)).toList();
+ items =
+ _json["items"].map((value) => new Filter.fromJson(value)).toList();
}
if (_json.containsKey("itemsPerPage")) {
itemsPerPage = _json["itemsPerPage"];
@@ -8172,7 +8557,8 @@ class Filters {
}
core.Map<core.String, core.Object> toJson() {
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>();
+ final core.Map<core.String, core.Object> _json =
+ new core.Map<core.String, core.Object>();
if (items != null) {
_json["items"] = items.map((value) => (value).toJson()).toList();
}
@@ -8202,15 +8588,15 @@ class Filters {
}
class GaDataColumnHeaders {
- /** Column Type. Either DIMENSION or METRIC. */
+ /// Column Type. Either DIMENSION or METRIC.
core.String columnType;
- /**
- * Data type. Dimension column headers have only STRING as the data type.
- * Metric column headers have data types for metric values such as INTEGER,
- * DOUBLE, CURRENCY etc.
- */
+
+ /// Data type. Dimension column headers have only STRING as the data type.
+ /// Metric column headers have data types for metric values such as INTEGER,
+ /// DOUBLE, CURRENCY etc.
core.String dataType;
- /** Column name. */
+
+ /// Column name.
core.String name;
GaDataColumnHeaders();
@@ -8228,7 +8614,8 @@ class GaDataColumnHeaders {
}
core.Map<core.String, core.Object> toJson() {
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>();
+ final core.Map<core.String, core.Object> _json =
+ new core.Map<core.String, core.Object>();
if (columnType != null) {
_json["columnType"] = columnType;
}
@@ -8262,7 +8649,8 @@ class GaDataDataTableCols {
}
core.Map<core.String, core.Object> toJson() {
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>();
+ final core.Map<core.String, core.Object> _json =
+ new core.Map<core.String, core.Object>();
if (id != null) {
_json["id"] = id;
}
@@ -8288,7 +8676,8 @@ class GaDataDataTableRowsC {
}
core.Map<core.String, core.Object> toJson() {
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>();
+ final core.Map<core.String, core.Object> _json =
+ new core.Map<core.String, core.Object>();
if (v != null) {
_json["v"] = v;
}
@@ -8303,12 +8692,15 @@ class GaDataDataTableRows {
GaDataDataTableRows.fromJson(core.Map _json) {
if (_json.containsKey("c")) {
- c = _json["c"].map((value) => new GaDataDataTableRowsC.fromJson(value)).toList();
+ c = _json["c"]
+ .map((value) => new GaDataDataTableRowsC.fromJson(value))
+ .toList();
}
}
core.Map<core.String, core.Object> toJson() {
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>();
+ final core.Map<core.String, core.Object> _json =
+ new core.Map<core.String, core.Object>();
if (c != null) {
_json["c"] = c.map((value) => (value).toJson()).toList();
}
@@ -8324,15 +8716,20 @@ class GaDataDataTable {
GaDataDataTable.fromJson(core.Map _json) {
if (_json.containsKey("cols")) {
- cols = _json["cols"].map((value) => new GaDataDataTableCols.fromJson(value)).toList();
+ cols = _json["cols"]
+ .map((value) => new GaDataDataTableCols.fromJson(value))
+ .toList();
}
if (_json.containsKey("rows")) {
- rows = _json["rows"].map((value) => new GaDataDataTableRows.fromJson(value)).toList();
+ rows = _json["rows"]
+ .map((value) => new GaDataDataTableRows.fromJson(value))
+ .toList();
}
}
core.Map<core.String, core.Object> toJson() {
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>();
+ final core.Map<core.String, core.Object> _json =
+ new core.Map<core.String, core.Object>();
if (cols != null) {
_json["cols"] = cols.map((value) => (value).toJson()).toList();
}
@@ -8343,22 +8740,25 @@ class GaDataDataTable {
}
}
-/**
- * Information for the view (profile), for which the Analytics data was
- * requested.
- */
+/// Information for the view (profile), for which the Analytics data was
+/// requested.
class GaDataProfileInfo {
- /** Account ID to which this view (profile) belongs. */
+ /// Account ID to which this view (profile) belongs.
core.String accountId;
- /** Internal ID for the web property to which this view (profile) belongs. */
+
+ /// Internal ID for the web property to which this view (profile) belongs.
core.String internalWebPropertyId;
- /** View (Profile) ID. */
+
+ /// View (Profile) ID.
core.String profileId;
- /** View (Profile) name. */
+
+ /// View (Profile) name.
core.String profileName;
- /** Table ID for view (profile). */
+
+ /// Table ID for view (profile).
core.String tableId;
- /** Web Property ID to which this view (profile) belongs. */
+
+ /// Web Property ID to which this view (profile) belongs.
core.String webPropertyId;
GaDataProfileInfo();
@@ -8385,7 +8785,8 @@ class GaDataProfileInfo {
}
core.Map<core.String, core.Object> toJson() {
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>();
+ final core.Map<core.String, core.Object> _json =
+ new core.Map<core.String, core.Object>();
if (accountId != null) {
_json["accountId"] = accountId;
}
@@ -8408,29 +8809,39 @@ class GaDataProfileInfo {
}
}
-/** Analytics data request query parameters. */
+/// Analytics data request query parameters.
class GaDataQuery {
- /** List of analytics dimensions. */
+ /// List of analytics dimensions.
core.String dimensions;
- /** End date. */
+
+ /// End date.
core.String end_date;
- /** Comma-separated list of dimension or metric filters. */
+
+ /// Comma-separated list of dimension or metric filters.
core.String filters;
- /** Unique table ID. */
+
+ /// Unique table ID.
core.String ids;
- /** Maximum results per page. */
+
+ /// Maximum results per page.
core.int max_results;
- /** List of analytics metrics. */
+
+ /// List of analytics metrics.
core.List<core.String> metrics;
- /** Desired sampling level */
+
+ /// Desired sampling level
core.String samplingLevel;
- /** Analytics advanced segment. */
+
+ /// Analytics advanced segment.
core.String segment;
- /** List of dimensions or metrics based on which Analytics data is sorted. */
+
+ /// List of dimensions or metrics based on which Analytics data is sorted.
core.List<core.String> sort;
- /** Start date. */
+
+ /// Start date.
core.String start_date;
- /** Start index. */
+
+ /// Start index.
core.int start_index;
GaDataQuery();
@@ -8472,7 +8883,8 @@ class GaDataQuery {
}
core.Map<core.String, core.Object> toJson() {
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>();
+ final core.Map<core.String, core.Object> _json =
+ new core.Map<core.String, core.Object>();
if (dimensions != null) {
_json["dimensions"] = dimensions;
}
@@ -8510,69 +8922,74 @@ class GaDataQuery {
}
}
-/** Analytics data for a given view (profile). */
+/// Analytics data for a given view (profile).
class GaData {
- /**
- * Column headers that list dimension names followed by the metric names. The
- * order of dimensions and metrics is same as specified in the request.
- */
+ /// Column headers that list dimension names followed by the metric names.
+ /// The order of dimensions and metrics is same as specified in the request.
core.List<GaDataColumnHeaders> columnHeaders;
- /** Determines if Analytics data contains samples. */
+
+ /// Determines if Analytics data contains samples.
core.bool containsSampledData;
- /** The last refreshed time in seconds for Analytics data. */
+
+ /// The last refreshed time in seconds for Analytics data.
core.String dataLastRefreshed;
GaDataDataTable dataTable;
- /** Unique ID for this data response. */
+
+ /// Unique ID for this data response.
core.String id;
- /**
- * The maximum number of rows the response can contain, regardless of the
- * actual number of rows returned. Its value ranges from 1 to 10,000 with a
- * value of 1000 by default, or otherwise specified by the max-results query
- * parameter.
- */
+
+ /// The maximum number of rows the response can contain, regardless of the
+ /// actual number of rows returned. Its value ranges from 1 to 10,000 with a
+ /// value of 1000 by default, or otherwise specified by the max-results query
+ /// parameter.
core.int itemsPerPage;
- /** Resource type. */
+
+ /// Resource type.
core.String kind;
- /** Link to next page for this Analytics data query. */
+
+ /// Link to next page for this Analytics data query.
core.String nextLink;
- /** Link to previous page for this Analytics data query. */
+
+ /// Link to previous page for this Analytics data query.
core.String previousLink;
- /**
- * Information for the view (profile), for which the Analytics data was
- * requested.
- */
+
+ /// Information for the view (profile), for which the Analytics data was
+ /// requested.
GaDataProfileInfo profileInfo;
- /** Analytics data request query parameters. */
+
+ /// Analytics data request query parameters.
GaDataQuery query;
- /**
- * Analytics data rows, where each row contains a list of dimension values
- * followed by the metric values. The order of dimensions and metrics is same
- * as specified in the request.
- */
+
+ /// Analytics data rows, where each row contains a list of dimension values
+ /// followed by the metric values. The order of dimensions and metrics is
+ /// same as specified in the request.
core.List<core.List<core.String>> rows;
- /** The number of samples used to calculate the result. */
+
+ /// The number of samples used to calculate the result.
core.String sampleSize;
- /** Total size of the sample space from which the samples were selected. */
+
+ /// Total size of the sample space from which the samples were selected.
core.String sampleSpace;
- /** Link to this page. */
+
+ /// Link to this page.
core.String selfLink;
- /**
- * The total number of rows for the query, regardless of the number of rows in
- * the response.
- */
+
+ /// The total number of rows for the query, regardless of the number of rows
+ /// in the response.
core.int totalResults;
- /**
- * Total values for the requested metrics over all the results, not just the
- * results returned in this response. The order of the metric totals is same
- * as the metric order specified in the request.
- */
+
+ /// Total values for the requested metrics over all the results, not just the
+ /// results returned in this response. The order of the metric totals is same
+ /// as the metric order specified in the request.
core.Map<core.String, core.String> totalsForAllResults;
GaData();
GaData.fromJson(core.Map _json) {
if (_json.containsKey("columnHeaders")) {
- columnHeaders = _json["columnHeaders"].map((value) => new GaDataColumnHeaders.fromJson(value)).toList();
+ columnHeaders = _json["columnHeaders"]
+ .map((value) => new GaDataColumnHeaders.fromJson(value))
+ .toList();
}
if (_json.containsKey("containsSampledData")) {
containsSampledData = _json["containsSampledData"];
@@ -8625,9 +9042,11 @@ class GaData {
}
core.Map<core.String, core.Object> toJson() {
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>();
+ final core.Map<core.String, core.Object> _json =
+ new core.Map<core.String, core.Object>();
if (columnHeaders != null) {
- _json["columnHeaders"] = columnHeaders.map((value) => (value).toJson()).toList();
+ _json["columnHeaders"] =
+ columnHeaders.map((value) => (value).toJson()).toList();
}
if (containsSampledData != null) {
_json["containsSampledData"] = containsSampledData;
@@ -8682,23 +9101,21 @@ class GaData {
}
class GoalEventDetailsEventConditions {
- /**
- * Type of comparison. Possible values are LESS_THAN, GREATER_THAN or EQUAL.
- */
+ /// Type of comparison. Possible values are LESS_THAN, GREATER_THAN or EQUAL.
core.String comparisonType;
- /** Value used for this comparison. */
+
+ /// Value used for this comparison.
core.String comparisonValue;
- /** Expression used for this match. */
+
+ /// Expression used for this match.
core.String expression;
- /**
- * Type of the match to be performed. Possible values are REGEXP, BEGINS_WITH,
- * or EXACT.
- */
+
+ /// Type of the match to be performed. Possible values are REGEXP,
+ /// BEGINS_WITH, or EXACT.
core.String matchType;
- /**
- * Type of this event condition. Possible values are CATEGORY, ACTION, LABEL,
- * or VALUE.
- */
+
+ /// Type of this event condition. Possible values are CATEGORY, ACTION,
+ /// LABEL, or VALUE.
core.String type;
GoalEventDetailsEventConditions();
@@ -8722,7 +9139,8 @@ class GoalEventDetailsEventConditions {
}
core.Map<core.String, core.Object> toJson() {
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>();
+ final core.Map<core.String, core.Object> _json =
+ new core.Map<core.String, core.Object>();
if (comparisonType != null) {
_json["comparisonType"] = comparisonType;
}
@@ -8742,20 +9160,21 @@ class GoalEventDetailsEventConditions {
}
}
-/** Details for the goal of the type EVENT. */
+/// Details for the goal of the type EVENT.
class GoalEventDetails {
- /** List of event conditions. */
+ /// List of event conditions.
core.List<GoalEventDetailsEventConditions> eventConditions;
- /**
- * Determines if the event value should be used as the value for this goal.
- */
+
+ /// Determines if the event value should be used as the value for this goal.
core.bool useEventValue;
GoalEventDetails();
GoalEventDetails.fromJson(core.Map _json) {
if (_json.containsKey("eventConditions")) {
- eventConditions = _json["eventConditions"].map((value) => new GoalEventDetailsEventConditions.fromJson(value)).toList();
+ eventConditions = _json["eventConditions"]
+ .map((value) => new GoalEventDetailsEventConditions.fromJson(value))
+ .toList();
}
if (_json.containsKey("useEventValue")) {
useEventValue = _json["useEventValue"];
@@ -8763,9 +9182,11 @@ class GoalEventDetails {
}
core.Map<core.String, core.Object> toJson() {
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>();
+ final core.Map<core.String, core.Object> _json =
+ new core.Map<core.String, core.Object>();
if (eventConditions != null) {
- _json["eventConditions"] = eventConditions.map((value) => (value).toJson()).toList();
+ _json["eventConditions"] =
+ eventConditions.map((value) => (value).toJson()).toList();
}
if (useEventValue != null) {
_json["useEventValue"] = useEventValue;
@@ -8774,14 +9195,13 @@ class GoalEventDetails {
}
}
-/**
- * Parent link for a goal. Points to the view (profile) to which this goal
- * belongs.
- */
+/// Parent link for a goal. Points to the view (profile) to which this goal
+/// belongs.
class GoalParentLink {
- /** Link to the view (profile) to which this goal belongs. */
+ /// Link to the view (profile) to which this goal belongs.
core.String href;
- /** Value is "analytics#profile". */
+
+ /// Value is "analytics#profile".
core.String type;
GoalParentLink();
@@ -8796,7 +9216,8 @@ class GoalParentLink {
}
core.Map<core.String, core.Object> toJson() {
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>();
+ final core.Map<core.String, core.Object> _json =
+ new core.Map<core.String, core.Object>();
if (href != null) {
_json["href"] = href;
}
@@ -8808,11 +9229,13 @@ class GoalParentLink {
}
class GoalUrlDestinationDetailsSteps {
- /** Step name. */
+ /// Step name.
core.String name;
- /** Step number. */
+
+ /// Step number.
core.int number;
- /** URL for this step. */
+
+ /// URL for this step.
core.String url;
GoalUrlDestinationDetailsSteps();
@@ -8830,7 +9253,8 @@ class GoalUrlDestinationDetailsSteps {
}
core.Map<core.String, core.Object> toJson() {
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>();
+ final core.Map<core.String, core.Object> _json =
+ new core.Map<core.String, core.Object>();
if (name != null) {
_json["name"] = name;
}
@@ -8844,22 +9268,22 @@ class GoalUrlDestinationDetailsSteps {
}
}
-/** Details for the goal of the type URL_DESTINATION. */
+/// Details for the goal of the type URL_DESTINATION.
class GoalUrlDestinationDetails {
- /**
- * Determines if the goal URL must exactly match the capitalization of visited
- * URLs.
- */
+ /// Determines if the goal URL must exactly match the capitalization of
+ /// visited URLs.
core.bool caseSensitive;
- /** Determines if the first step in this goal is required. */
+
+ /// Determines if the first step in this goal is required.
core.bool firstStepRequired;
- /**
- * Match type for the goal URL. Possible values are HEAD, EXACT, or REGEX.
- */
+
+ /// Match type for the goal URL. Possible values are HEAD, EXACT, or REGEX.
core.String matchType;
- /** List of steps configured for this goal funnel. */
+
+ /// List of steps configured for this goal funnel.
core.List<GoalUrlDestinationDetailsSteps> steps;
- /** URL for this goal. */
+
+ /// URL for this goal.
core.String url;
GoalUrlDestinationDetails();
@@ -8875,7 +9299,9 @@ class GoalUrlDestinationDetails {
matchType = _json["matchType"];
}
if (_json.containsKey("steps")) {
- steps = _json["steps"].map((value) => new GoalUrlDestinationDetailsSteps.fromJson(value)).toList();
+ steps = _json["steps"]
+ .map((value) => new GoalUrlDestinationDetailsSteps.fromJson(value))
+ .toList();
}
if (_json.containsKey("url")) {
url = _json["url"];
@@ -8883,7 +9309,8 @@ class GoalUrlDestinationDetails {
}
core.Map<core.String, core.Object> toJson() {
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>();
+ final core.Map<core.String, core.Object> _json =
+ new core.Map<core.String, core.Object>();
if (caseSensitive != null) {
_json["caseSensitive"] = caseSensitive;
}
@@ -8903,13 +9330,13 @@ class GoalUrlDestinationDetails {
}
}
-/** Details for the goal of the type VISIT_NUM_PAGES. */
+/// Details for the goal of the type VISIT_NUM_PAGES.
class GoalVisitNumPagesDetails {
- /**
- * Type of comparison. Possible values are LESS_THAN, GREATER_THAN, or EQUAL.
- */
+ /// Type of comparison. Possible values are LESS_THAN, GREATER_THAN, or
+ /// EQUAL.
core.String comparisonType;
- /** Value used for this comparison. */
+
+ /// Value used for this comparison.
core.String comparisonValue;
GoalVisitNumPagesDetails();
@@ -8924,7 +9351,8 @@ class GoalVisitNumPagesDetails {
}
core.Map<core.String, core.Object> toJson() {
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>();
+ final core.Map<core.String, core.Object> _json =
+ new core.Map<core.String, core.Object>();
if (comparisonType != null) {
_json["comparisonType"] = comparisonType;
}
@@ -8935,11 +9363,12 @@ class GoalVisitNumPagesDetails {
}
}
-/** Details for the goal of the type VISIT_TIME_ON_SITE. */
+/// Details for the goal of the type VISIT_TIME_ON_SITE.
class GoalVisitTimeOnSiteDetails {
- /** Type of comparison. Possible values are LESS_THAN or GREATER_THAN. */
+ /// Type of comparison. Possible values are LESS_THAN or GREATER_THAN.
core.String comparisonType;
- /** Value used for this comparison. */
+
+ /// Value used for this comparison.
core.String comparisonValue;
GoalVisitTimeOnSiteDetails();
@@ -8954,7 +9383,8 @@ class GoalVisitTimeOnSiteDetails {
}
core.Map<core.String, core.Object> toJson() {
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>();
+ final core.Map<core.String, core.Object> _json =
+ new core.Map<core.String, core.Object>();
if (comparisonType != null) {
_json["comparisonType"] = comparisonType;
}
@@ -8965,52 +9395,63 @@ class GoalVisitTimeOnSiteDetails {
}
}
-/** JSON template for Analytics goal resource. */
+/// JSON template for Analytics goal resource.
class Goal {
- /** Account ID to which this goal belongs. */
+ /// Account ID to which this goal belongs.
core.String accountId;
- /** Determines whether this goal is active. */
+
+ /// Determines whether this goal is active.
core.bool active;
- /** Time this goal was created. */
+
+ /// Time this goal was created.
core.DateTime created;
- /** Details for the goal of the type EVENT. */
+
+ /// Details for the goal of the type EVENT.
GoalEventDetails eventDetails;
- /** Goal ID. */
+
+ /// Goal ID.
core.String id;
- /** Internal ID for the web property to which this goal belongs. */
+
+ /// Internal ID for the web property to which this goal belongs.
core.String internalWebPropertyId;
- /** Resource type for an Analytics goal. */
+
+ /// Resource type for an Analytics goal.
core.String kind;
- /** Goal name. */
+
+ /// Goal name.
core.String name;
- /**
- * Parent link for a goal. Points to the view (profile) to which this goal
- * belongs.
- */
+
+ /// Parent link for a goal. Points to the view (profile) to which this goal
+ /// belongs.
GoalParentLink parentLink;
- /** View (Profile) ID to which this goal belongs. */
+
+ /// View (Profile) ID to which this goal belongs.
core.String profileId;
- /** Link for this goal. */
+
+ /// Link for this goal.
core.String selfLink;
- /**
- * Goal type. Possible values are URL_DESTINATION, VISIT_TIME_ON_SITE,
- * VISIT_NUM_PAGES, AND EVENT.
- */
+
+ /// Goal type. Possible values are URL_DESTINATION, VISIT_TIME_ON_SITE,
+ /// VISIT_NUM_PAGES, AND EVENT.
core.String type;
- /** Time this goal was last modified. */
+
+ /// Time this goal was last modified.
core.DateTime updated;
- /** Details for the goal of the type URL_DESTINATION. */
+
+ /// Details for the goal of the type URL_DESTINATION.
GoalUrlDestinationDetails urlDestinationDetails;
- /** Goal value. */
+
+ /// Goal value.
core.double value;
- /** Details for the goal of the type VISIT_NUM_PAGES. */
+
+ /// Details for the goal of the type VISIT_NUM_PAGES.
GoalVisitNumPagesDetails visitNumPagesDetails;
- /** Details for the goal of the type VISIT_TIME_ON_SITE. */
+
+ /// Details for the goal of the type VISIT_TIME_ON_SITE.
GoalVisitTimeOnSiteDetails visitTimeOnSiteDetails;
- /**
- * Web property ID to which this goal belongs. The web property ID is of the
- * form UA-XXXXX-YY.
- */
+
+ /// Web property ID to which this goal belongs. The web property ID is of the
+ /// form UA-XXXXX-YY.
core.String webPropertyId;
Goal();
@@ -9056,16 +9497,19 @@ class Goal {
updated = core.DateTime.parse(_json["updated"]);
}
if (_json.containsKey("urlDestinationDetails")) {
- urlDestinationDetails = new GoalUrlDestinationDetails.fromJson(_json["urlDestinationDetails"]);
+ urlDestinationDetails = new GoalUrlDestinationDetails.fromJson(
+ _json["urlDestinationDetails"]);
}
if (_json.containsKey("value")) {
value = _json["value"];
}
if (_json.containsKey("visitNumPagesDetails")) {
- visitNumPagesDetails = new GoalVisitNumPagesDetails.fromJson(_json["visitNumPagesDetails"]);
+ visitNumPagesDetails =
+ new GoalVisitNumPagesDetails.fromJson(_json["visitNumPagesDetails"]);
}
if (_json.containsKey("visitTimeOnSiteDetails")) {
- visitTimeOnSiteDetails = new GoalVisitTimeOnSiteDetails.fromJson(_json["visitTimeOnSiteDetails"]);
+ visitTimeOnSiteDetails = new GoalVisitTimeOnSiteDetails.fromJson(
+ _json["visitTimeOnSiteDetails"]);
}
if (_json.containsKey("webPropertyId")) {
webPropertyId = _json["webPropertyId"];
@@ -9073,7 +9517,8 @@ class Goal {
}
core.Map<core.String, core.Object> toJson() {
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>();
+ final core.Map<core.String, core.Object> _json =
+ new core.Map<core.String, core.Object>();
if (accountId != null) {
_json["accountId"] = accountId;
}
@@ -9132,38 +9577,37 @@ class Goal {
}
}
-/**
- * A goal collection lists Analytics goals to which the user has access. Each
- * view (profile) can have a set of goals. Each resource in the Goal collection
- * corresponds to a single Analytics goal.
- */
+/// A goal collection lists Analytics goals to which the user has access. Each
+/// view (profile) can have a set of goals. Each resource in the Goal
+/// collection corresponds to a single Analytics goal.
class Goals {
- /** A list of goals. */
+ /// A list of goals.
core.List<Goal> items;
- /**
- * 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.
- */
+
+ /// 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.
core.int itemsPerPage;
- /** Collection type. */
+
+ /// Collection type.
core.String kind;
- /** Link to next page for this goal collection. */
+
+ /// Link to next page for this goal collection.
core.String nextLink;
- /** Link to previous page for this goal collection. */
+
+ /// Link to previous page for this goal collection.
core.String previousLink;
- /**
- * The starting index of the resources, which is 1 by default or otherwise
- * specified by the start-index query parameter.
- */
+
+ /// The starting index of the resources, which is 1 by default or otherwise
+ /// specified by the start-index query parameter.
core.int startIndex;
- /**
- * The total number of results for the query, regardless of the number of
- * resources in the result.
- */
+
+ /// The total number of results for the query, regardless of the number of
+ /// resources in the result.
core.int totalResults;
- /** Email ID of the authenticated user */
+
+ /// Email ID of the authenticated user
core.String username;
Goals();
@@ -9196,7 +9640,8 @@ class Goals {
}
core.Map<core.String, core.Object> toJson() {
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>();
+ final core.Map<core.String, core.Object> _json =
+ new core.Map<core.String, core.Object>();
if (items != null) {
_json["items"] = items.map((value) => (value).toJson()).toList();
}
@@ -9225,29 +9670,27 @@ class Goals {
}
}
-/** JSON template for an Analytics Remarketing Include Conditions. */
+/// JSON template for an Analytics Remarketing Include Conditions.
class IncludeConditions {
- /**
- * The look-back window lets you specify a time frame for evaluating the
- * behavior that qualifies users for your audience. For example, if your
- * filters include users from Central Asia, and Transactions Greater than 2,
- * and you set the look-back window to 14 days, then any user from Central
- * Asia whose cumulative transactions exceed 2 during the last 14 days is
- * added to the audience.
- */
+ /// The look-back window lets you specify a time frame for evaluating the
+ /// behavior that qualifies users for your audience. For example, if your
+ /// filters include users from Central Asia, and Transactions Greater than 2,
+ /// and you set the look-back window to 14 days, then any user from Central
+ /// Asia whose cumulative transactions exceed 2 during the last 14 days is
+ /// added to the audience.
core.int daysToLookBack;
- /**
- * Boolean indicating whether this segment is a smart list.
- * https://support.google.com/analytics/answer/4628577
- */
+
+ /// Boolean indicating whether this segment is a smart list.
+ /// https://support.google.com/analytics/answer/4628577
core.bool isSmartList;
- /** Resource type for include conditions. */
+
+ /// Resource type for include conditions.
core.String kind;
- /** Number of days (in the range 1 to 540) a user remains in the audience. */
+
+ /// Number of days (in the range 1 to 540) a user remains in the audience.
core.int membershipDurationDays;
- /**
- * The segment condition that will cause a user to be added to an audience.
- */
+
+ /// The segment condition that will cause a user to be added to an audience.
core.String segment;
IncludeConditions();
@@ -9271,7 +9714,8 @@ class IncludeConditions {
}
core.Map<core.String, core.Object> toJson() {
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>();
+ final core.Map<core.String, core.Object> _json =
+ new core.Map<core.String, core.Object>();
if (daysToLookBack != null) {
_json["daysToLookBack"] = daysToLookBack;
}
@@ -9291,39 +9735,40 @@ class IncludeConditions {
}
}
-/** JSON template for an Analytics Remarketing Audience Foreign Link. */
+/// JSON template for an Analytics Remarketing Audience Foreign Link.
class LinkedForeignAccount {
- /** Account ID to which this linked foreign account belongs. */
+ /// Account ID to which this linked foreign account belongs.
core.String accountId;
- /** Boolean indicating whether this is eligible for search. */
+
+ /// Boolean indicating whether this is eligible for search.
core.bool eligibleForSearch;
- /** Entity ad account link ID. */
+
+ /// Entity ad account link ID.
core.String id;
- /**
- * Internal ID for the web property to which this linked foreign account
- * belongs.
- */
+
+ /// Internal ID for the web property to which this linked foreign account
+ /// belongs.
core.String internalWebPropertyId;
- /** Resource type for linked foreign account. */
+
+ /// Resource type for linked foreign account.
core.String kind;
- /**
- * The foreign account ID. For example the an AdWords `linkedAccountId` has
- * the following format XXX-XXX-XXXX.
- */
+
+ /// The foreign account ID. For example the an AdWords `linkedAccountId` has
+ /// the following format XXX-XXX-XXXX.
core.String linkedAccountId;
- /** Remarketing audience ID to which this linked foreign account belongs. */
+
+ /// Remarketing audience ID to which this linked foreign account belongs.
core.String remarketingAudienceId;
- /** The status of this foreign account link. */
+
+ /// The status of this foreign account link.
core.String status;
- /**
- * The type of the foreign account. For example, `ADWORDS_LINKS`, `DBM_LINKS`,
- * `MCC_LINKS` or `OPTIMIZE`.
- */
+
+ /// The type of the foreign account. For example, `ADWORDS_LINKS`,
+ /// `DBM_LINKS`, `MCC_LINKS` or `OPTIMIZE`.
core.String type;
- /**
- * Web property ID of the form UA-XXXXX-YY to which this linked foreign
- * account belongs.
- */
+
+ /// Web property ID of the form UA-XXXXX-YY to which this linked foreign
+ /// account belongs.
core.String webPropertyId;
LinkedForeignAccount();
@@ -9362,7 +9807,8 @@ class LinkedForeignAccount {
}
core.Map<core.String, core.Object> toJson() {
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>();
+ final core.Map<core.String, core.Object> _json =
+ new core.Map<core.String, core.Object>();
if (accountId != null) {
_json["accountId"] = accountId;
}
@@ -9398,14 +9844,14 @@ class LinkedForeignAccount {
}
class McfDataColumnHeaders {
- /** Column Type. Either DIMENSION or METRIC. */
+ /// Column Type. Either DIMENSION or METRIC.
core.String columnType;
- /**
- * Data type. Dimension and metric values data types such as INTEGER, DOUBLE,
- * CURRENCY, MCF_SEQUENCE etc.
- */
+
+ /// Data type. Dimension and metric values data types such as INTEGER,
+ /// DOUBLE, CURRENCY, MCF_SEQUENCE etc.
core.String dataType;
- /** Column name. */
+
+ /// Column name.
core.String name;
McfDataColumnHeaders();
@@ -9423,7 +9869,8 @@ class McfDataColumnHeaders {
}
core.Map<core.String, core.Object> toJson() {
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>();
+ final core.Map<core.String, core.Object> _json =
+ new core.Map<core.String, core.Object>();
if (columnType != null) {
_json["columnType"] = columnType;
}
@@ -9437,22 +9884,25 @@ class McfDataColumnHeaders {
}
}
-/**
- * Information for the view (profile), for which the Analytics data was
- * requested.
- */
+/// Information for the view (profile), for which the Analytics data was
+/// requested.
class McfDataProfileInfo {
- /** Account ID to which this view (profile) belongs. */
+ /// Account ID to which this view (profile) belongs.
core.String accountId;
- /** Internal ID for the web property to which this view (profile) belongs. */
+
+ /// Internal ID for the web property to which this view (profile) belongs.
core.String internalWebPropertyId;
- /** View (Profile) ID. */
+
+ /// View (Profile) ID.
core.String profileId;
- /** View (Profile) name. */
+
+ /// View (Profile) name.
core.String profileName;
- /** Table ID for view (profile). */
+
+ /// Table ID for view (profile).
core.String tableId;
- /** Web Property ID to which this view (profile) belongs. */
+
+ /// Web Property ID to which this view (profile) belongs.
core.String webPropertyId;
McfDataProfileInfo();
@@ -9479,7 +9929,8 @@ class McfDataProfileInfo {
}
core.Map<core.String, core.Object> toJson() {
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>();
+ final core.Map<core.String, core.Object> _json =
+ new core.Map<core.String, core.Object>();
if (accountId != null) {
_json["accountId"] = accountId;
}
@@ -9502,29 +9953,39 @@ class McfDataProfileInfo {
}
}
-/** Analytics data request query parameters. */
+/// Analytics data request query parameters.
class McfDataQuery {
- /** List of analytics dimensions. */
+ /// List of analytics dimensions.
core.String dimensions;
- /** End date. */
+
+ /// End date.
core.String end_date;
- /** Comma-separated list of dimension or metric filters. */
+
+ /// Comma-separated list of dimension or metric filters.
core.String filters;
- /** Unique table ID. */
+
+ /// Unique table ID.
core.String ids;
- /** Maximum results per page. */
+
+ /// Maximum results per page.
core.int max_results;
- /** List of analytics metrics. */
+
+ /// List of analytics metrics.
core.List<core.String> metrics;
- /** Desired sampling level */
+
+ /// Desired sampling level
core.String samplingLevel;
- /** Analytics advanced segment. */
+
+ /// Analytics advanced segment.
core.String segment;
- /** List of dimensions or metrics based on which Analytics data is sorted. */
+
+ /// List of dimensions or metrics based on which Analytics data is sorted.
core.List<core.String> sort;
- /** Start date. */
+
+ /// Start date.
core.String start_date;
- /** Start index. */
+
+ /// Start index.
core.int start_index;
McfDataQuery();
@@ -9566,7 +10027,8 @@ class McfDataQuery {
}
core.Map<core.String, core.Object> toJson() {
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>();
+ final core.Map<core.String, core.Object> _json =
+ new core.Map<core.String, core.Object>();
if (dimensions != null) {
_json["dimensions"] = dimensions;
}
@@ -9605,14 +10067,11 @@ class McfDataQuery {
}
class McfDataRowsConversionPathValue {
- /**
- * Type of an interaction on conversion path. Such as CLICK, IMPRESSION etc.
- */
+ /// Type of an interaction on conversion path. Such as CLICK, IMPRESSION etc.
core.String interactionType;
- /**
- * Node value of an interaction on conversion path. Such as source, medium
- * etc.
- */
+
+ /// Node value of an interaction on conversion path. Such as source, medium
+ /// etc.
core.String nodeValue;
McfDataRowsConversionPathValue();
@@ -9627,7 +10086,8 @@ class McfDataRowsConversionPathValue {
}
core.Map<core.String, core.Object> toJson() {
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>();
+ final core.Map<core.String, core.Object> _json =
+ new core.Map<core.String, core.Object>();
if (interactionType != null) {
_json["interactionType"] = interactionType;
}
@@ -9638,24 +10098,23 @@ class McfDataRowsConversionPathValue {
}
}
-/**
- * A union object representing a dimension or metric value. Only one of
- * "primitiveValue" or "conversionPathValue" attribute will be populated.
- */
+/// A union object representing a dimension or metric value. Only one of
+/// "primitiveValue" or "conversionPathValue" attribute will be populated.
class McfDataRows {
- /**
- * A conversion path dimension value, containing a list of interactions with
- * their attributes.
- */
+ /// A conversion path dimension value, containing a list of interactions with
+ /// their attributes.
core.List<McfDataRowsConversionPathValue> conversionPathValue;
- /** A primitive dimension value. A primitive metric value. */
+
+ /// A primitive dimension value. A primitive metric value.
core.String primitiveValue;
McfDataRows();
McfDataRows.fromJson(core.Map _json) {
if (_json.containsKey("conversionPathValue")) {
- conversionPathValue = _json["conversionPathValue"].map((value) => new McfDataRowsConversionPathValue.fromJson(value)).toList();
+ conversionPathValue = _json["conversionPathValue"]
+ .map((value) => new McfDataRowsConversionPathValue.fromJson(value))
+ .toList();
}
if (_json.containsKey("primitiveValue")) {
primitiveValue = _json["primitiveValue"];
@@ -9663,9 +10122,11 @@ class McfDataRows {
}
core.Map<core.String, core.Object> toJson() {
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>();
+ final core.Map<core.String, core.Object> _json =
+ new core.Map<core.String, core.Object>();
if (conversionPathValue != null) {
- _json["conversionPathValue"] = conversionPathValue.map((value) => (value).toJson()).toList();
+ _json["conversionPathValue"] =
+ conversionPathValue.map((value) => (value).toJson()).toList();
}
if (primitiveValue != null) {
_json["primitiveValue"] = primitiveValue;
@@ -9674,66 +10135,70 @@ class McfDataRows {
}
}
-/** Multi-Channel Funnels data for a given view (profile). */
+/// Multi-Channel Funnels data for a given view (profile).
class McfData {
- /**
- * Column headers that list dimension names followed by the metric names. The
- * order of dimensions and metrics is same as specified in the request.
- */
+ /// Column headers that list dimension names followed by the metric names.
+ /// The order of dimensions and metrics is same as specified in the request.
core.List<McfDataColumnHeaders> columnHeaders;
- /** Determines if the Analytics data contains sampled data. */
+
+ /// Determines if the Analytics data contains sampled data.
core.bool containsSampledData;
- /** Unique ID for this data response. */
+
+ /// Unique ID for this data response.
core.String id;
- /**
- * The maximum number of rows the response can contain, regardless of the
- * actual number of rows returned. Its value ranges from 1 to 10,000 with a
- * value of 1000 by default, or otherwise specified by the max-results query
- * parameter.
- */
+
+ /// The maximum number of rows the response can contain, regardless of the
+ /// actual number of rows returned. Its value ranges from 1 to 10,000 with a
+ /// value of 1000 by default, or otherwise specified by the max-results query
+ /// parameter.
core.int itemsPerPage;
- /** Resource type. */
+
+ /// Resource type.
core.String kind;
- /** Link to next page for this Analytics data query. */
+
+ /// Link to next page for this Analytics data query.
core.String nextLink;
- /** Link to previous page for this Analytics data query. */
+
+ /// Link to previous page for this Analytics data query.
core.String previousLink;
- /**
- * Information for the view (profile), for which the Analytics data was
- * requested.
- */
+
+ /// Information for the view (profile), for which the Analytics data was
+ /// requested.
McfDataProfileInfo profileInfo;
- /** Analytics data request query parameters. */
+
+ /// Analytics data request query parameters.
McfDataQuery query;
- /**
- * Analytics data rows, where each row contains a list of dimension values
- * followed by the metric values. The order of dimensions and metrics is same
- * as specified in the request.
- */
+
+ /// Analytics data rows, where each row contains a list of dimension values
+ /// followed by the metric values. The order of dimensions and metrics is
+ /// same as specified in the request.
core.List<core.List<McfDataRows>> rows;
- /** The number of samples used to calculate the result. */
+
+ /// The number of samples used to calculate the result.
core.String sampleSize;
- /** Total size of the sample space from which the samples were selected. */
+
+ /// Total size of the sample space from which the samples were selected.
core.String sampleSpace;
- /** Link to this page. */
+
+ /// Link to this page.
core.String selfLink;
- /**
- * The total number of rows for the query, regardless of the number of rows in
- * the response.
- */
+
+ /// The total number of rows for the query, regardless of the number of rows
+ /// in the response.
core.int totalResults;
- /**
- * Total values for the requested metrics over all the results, not just the
- * results returned in this response. The order of the metric totals is same
- * as the metric order specified in the request.
- */
+
+ /// Total values for the requested metrics over all the results, not just the
+ /// results returned in this response. The order of the metric totals is same
+ /// as the metric order specified in the request.
core.Map<core.String, core.String> totalsForAllResults;
McfData();
McfData.fromJson(core.Map _json) {
if (_json.containsKey("columnHeaders")) {
- columnHeaders = _json["columnHeaders"].map((value) => new McfDataColumnHeaders.fromJson(value)).toList();
+ columnHeaders = _json["columnHeaders"]
+ .map((value) => new McfDataColumnHeaders.fromJson(value))
+ .toList();
}
if (_json.containsKey("containsSampledData")) {
containsSampledData = _json["containsSampledData"];
@@ -9760,7 +10225,10 @@ class McfData {
query = new McfDataQuery.fromJson(_json["query"]);
}
if (_json.containsKey("rows")) {
- rows = _json["rows"].map((value) => value.map((value) => new McfDataRows.fromJson(value)).toList()).toList();
+ rows = _json["rows"]
+ .map((value) =>
+ value.map((value) => new McfDataRows.fromJson(value)).toList())
+ .toList();
}
if (_json.containsKey("sampleSize")) {
sampleSize = _json["sampleSize"];
@@ -9780,9 +10248,11 @@ class McfData {
}
core.Map<core.String, core.Object> toJson() {
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>();
+ final core.Map<core.String, core.Object> _json =
+ new core.Map<core.String, core.Object>();
if (columnHeaders != null) {
- _json["columnHeaders"] = columnHeaders.map((value) => (value).toJson()).toList();
+ _json["columnHeaders"] =
+ columnHeaders.map((value) => (value).toJson()).toList();
}
if (containsSampledData != null) {
_json["containsSampledData"] = containsSampledData;
@@ -9809,7 +10279,9 @@ class McfData {
_json["query"] = (query).toJson();
}
if (rows != null) {
- _json["rows"] = rows.map((value) => value.map((value) => (value).toJson()).toList()).toList();
+ _json["rows"] = rows
+ .map((value) => value.map((value) => (value).toJson()).toList())
+ .toList();
}
if (sampleSize != null) {
_json["sampleSize"] = sampleSize;
@@ -9830,14 +10302,13 @@ class McfData {
}
}
-/**
- * Child link for this view (profile). Points to the list of goals for this view
- * (profile).
- */
+/// Child link for this view (profile). Points to the list of goals for this
+/// view (profile).
class ProfileChildLink {
- /** Link to the list of goals for this view (profile). */
+ /// Link to the list of goals for this view (profile).
core.String href;
- /** Value is "analytics#goals". */
+
+ /// Value is "analytics#goals".
core.String type;
ProfileChildLink();
@@ -9852,7 +10323,8 @@ class ProfileChildLink {
}
core.Map<core.String, core.Object> toJson() {
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>();
+ final core.Map<core.String, core.Object> _json =
+ new core.Map<core.String, core.Object>();
if (href != null) {
_json["href"] = href;
}
@@ -9863,14 +10335,13 @@ class ProfileChildLink {
}
}
-/**
- * Parent link for this view (profile). Points to the web property to which this
- * view (profile) belongs.
- */
+/// Parent link for this view (profile). Points to the web property to which
+/// this view (profile) belongs.
class ProfileParentLink {
- /** Link to the web property to which this view (profile) belongs. */
+ /// Link to the web property to which this view (profile) belongs.
core.String href;
- /** Value is "analytics#webproperty". */
+
+ /// Value is "analytics#webproperty".
core.String type;
ProfileParentLink();
@@ -9885,7 +10356,8 @@ class ProfileParentLink {
}
core.Map<core.String, core.Object> toJson() {
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>();
+ final core.Map<core.String, core.Object> _json =
+ new core.Map<core.String, core.Object>();
if (href != null) {
_json["href"] = href;
}
@@ -9896,13 +10368,11 @@ class ProfileParentLink {
}
}
-/** Permissions the user has for this view (profile). */
+/// Permissions the user has for this view (profile).
class ProfilePermissions {
- /**
- * All the permissions that the user has for this view (profile). These
- * include any implied permissions (e.g., EDIT implies VIEW) or inherited
- * permissions from the parent web property.
- */
+ /// All the permissions that the user has for this view (profile). These
+ /// include any implied permissions (e.g., EDIT implies VIEW) or inherited
+ /// permissions from the parent web property.
core.List<core.String> effective;
ProfilePermissions();
@@ -9914,7 +10384,8 @@ class ProfilePermissions {
}
core.Map<core.String, core.Object> toJson() {
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>();
+ final core.Map<core.String, core.Object> _json =
+ new core.Map<core.String, core.Object>();
if (effective != null) {
_json["effective"] = effective;
}
@@ -9922,90 +10393,97 @@ class ProfilePermissions {
}
}
-/** JSON template for an Analytics view (profile). */
+/// JSON template for an Analytics view (profile).
class Profile {
- /** Account ID to which this view (profile) belongs. */
+ /// Account ID to which this view (profile) belongs.
core.String accountId;
- /** Indicates whether bot filtering is enabled for this view (profile). */
+
+ /// Indicates whether bot filtering is enabled for this view (profile).
core.bool botFilteringEnabled;
- /**
- * Child link for this view (profile). Points to the list of goals for this
- * view (profile).
- */
+
+ /// Child link for this view (profile). Points to the list of goals for this
+ /// view (profile).
ProfileChildLink childLink;
- /** Time this view (profile) was created. */
+
+ /// Time this view (profile) was created.
core.DateTime created;
- /**
- * 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
- */
+
+ /// 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
core.String currency;
- /** Default page for this view (profile). */
+
+ /// Default page for this view (profile).
core.String defaultPage;
- /**
- * Indicates whether ecommerce tracking is enabled for this view (profile).
- */
+
+ /// Indicates whether ecommerce tracking is enabled for this view (profile).
core.bool eCommerceTracking;
- /**
- * Indicates whether enhanced ecommerce tracking is enabled for this view
- * (profile). This property can only be enabled if ecommerce tracking is
- * enabled.
- */
+
+ /// Indicates whether enhanced ecommerce tracking is enabled for this view
+ /// (profile). This property can only be enabled if ecommerce tracking is
+ /// enabled.
core.bool enhancedECommerceTracking;
- /** The query parameters that are excluded from this view (profile). */
+
+ /// The query parameters that are excluded from this view (profile).
core.String excludeQueryParameters;
- /** View (Profile) ID. */
+
+ /// View (Profile) ID.
core.String id;
- /** Internal ID for the web property to which this view (profile) belongs. */
+
+ /// Internal ID for the web property to which this view (profile) belongs.
core.String internalWebPropertyId;
- /** Resource type for Analytics view (profile). */
+
+ /// Resource type for Analytics view (profile).
core.String kind;
- /** Name of this view (profile). */
+
+ /// Name of this view (profile).
core.String name;
- /**
- * Parent link for this view (profile). Points to the web property to which
- * this view (profile) belongs.
- */
+
+ /// Parent link for this view (profile). Points to the web property to which
+ /// this view (profile) belongs.
ProfileParentLink parentLink;
- /** Permissions the user has for this view (profile). */
+
+ /// Permissions the user has for this view (profile).
ProfilePermissions permissions;
- /** Link for this view (profile). */
+
+ /// Link for this view (profile).
core.String selfLink;
- /** Site search category parameters for this view (profile). */
+
+ /// Site search category parameters for this view (profile).
core.String siteSearchCategoryParameters;
- /** The site search query parameters for this view (profile). */
+
+ /// The site search query parameters for this view (profile).
core.String siteSearchQueryParameters;
- /** Indicates whether this view (profile) is starred or not. */
+
+ /// Indicates whether this view (profile) is starred or not.
core.bool starred;
- /**
- * Whether or not Analytics will strip search category parameters from the
- * URLs in your reports.
- */
+
+ /// Whether or not Analytics will strip search category parameters from the
+ /// URLs in your reports.
core.bool stripSiteSearchCategoryParameters;
- /**
- * Whether or not Analytics will strip search query parameters from the URLs
- * in your reports.
- */
+
+ /// Whether or not Analytics will strip search query parameters from the URLs
+ /// in your reports.
core.bool stripSiteSearchQueryParameters;
- /**
- * Time zone for which this view (profile) has been configured. Time zones are
- * identified by strings from the TZ database.
- */
+
+ /// Time zone for which this view (profile) has been configured. Time zones
+ /// are identified by strings from the TZ database.
core.String timezone;
- /** View (Profile) type. Supported types: WEB or APP. */
+
+ /// View (Profile) type. Supported types: WEB or APP.
core.String type;
- /** Time this view (profile) was last modified. */
+
+ /// Time this view (profile) was last modified.
core.DateTime updated;
- /**
- * Web property ID of the form UA-XXXXX-YY to which this view (profile)
- * belongs.
- */
+
+ /// Web property ID of the form UA-XXXXX-YY to which this view (profile)
+ /// belongs.
core.String webPropertyId;
- /** Website URL for this view (profile). */
+
+ /// Website URL for this view (profile).
core.String websiteUrl;
Profile();
@@ -10069,7 +10547,8 @@ class Profile {
starred = _json["starred"];
}
if (_json.containsKey("stripSiteSearchCategoryParameters")) {
- stripSiteSearchCategoryParameters = _json["stripSiteSearchCategoryParameters"];
+ stripSiteSearchCategoryParameters =
+ _json["stripSiteSearchCategoryParameters"];
}
if (_json.containsKey("stripSiteSearchQueryParameters")) {
stripSiteSearchQueryParameters = _json["stripSiteSearchQueryParameters"];
@@ -10092,7 +10571,8 @@ class Profile {
}
core.Map<core.String, core.Object> toJson() {
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>();
+ final core.Map<core.String, core.Object> _json =
+ new core.Map<core.String, core.Object>();
if (accountId != null) {
_json["accountId"] = accountId;
}
@@ -10151,7 +10631,8 @@ class Profile {
_json["starred"] = starred;
}
if (stripSiteSearchCategoryParameters != null) {
- _json["stripSiteSearchCategoryParameters"] = stripSiteSearchCategoryParameters;
+ _json["stripSiteSearchCategoryParameters"] =
+ stripSiteSearchCategoryParameters;
}
if (stripSiteSearchQueryParameters != null) {
_json["stripSiteSearchQueryParameters"] = stripSiteSearchQueryParameters;
@@ -10175,31 +10656,35 @@ class Profile {
}
}
-/** JSON template for an Analytics profile filter link. */
+/// JSON template for an Analytics profile filter link.
class ProfileFilterLink {
- /** Filter for this link. */
+ /// Filter for this link.
FilterRef filterRef;
- /** Profile filter link ID. */
+
+ /// Profile filter link ID.
core.String id;
- /** Resource type for Analytics filter. */
+
+ /// Resource type for Analytics filter.
core.String kind;
- /** View (Profile) for this link. */
+
+ /// View (Profile) for this link.
ProfileRef profileRef;
- /**
- * The rank of this profile filter link relative to the other filters linked
- * to the same profile.
- * For readonly (i.e., list and get) operations, the rank always starts at 1.
- * For write (i.e., create, update, or delete) operations, you may specify a
- * value between 0 and 255 inclusively, [0, 255]. In order to insert a link at
- * the end of the list, either don't specify a rank or set a rank to a number
- * greater than the largest rank in the list. In order to insert a link to the
- * beginning of the list specify a rank that is less than or equal to 1. The
- * new link will move all existing filters with the same or lower rank down
- * the list. After the link is inserted/updated/deleted all profile filter
- * links will be renumbered starting at 1.
- */
+
+ /// The rank of this profile filter link relative to the other filters linked
+ /// to the same profile.
+ /// For readonly (i.e., list and get) operations, the rank always starts at
+ /// 1.
+ /// For write (i.e., create, update, or delete) operations, you may specify a
+ /// value between 0 and 255 inclusively, [0, 255]. In order to insert a link
+ /// at the end of the list, either don't specify a rank or set a rank to a
+ /// number greater than the largest rank in the list. In order to insert a
+ /// link to the beginning of the list specify a rank that is less than or
+ /// equal to 1. The new link will move all existing filters with the same or
+ /// lower rank down the list. After the link is inserted/updated/deleted all
+ /// profile filter links will be renumbered starting at 1.
core.int rank;
- /** Link for this profile filter link. */
+
+ /// Link for this profile filter link.
core.String selfLink;
ProfileFilterLink();
@@ -10226,7 +10711,8 @@ class ProfileFilterLink {
}
core.Map<core.String, core.Object> toJson() {
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>();
+ final core.Map<core.String, core.Object> _json =
+ new core.Map<core.String, core.Object>();
if (filterRef != null) {
_json["filterRef"] = (filterRef).toJson();
}
@@ -10249,45 +10735,46 @@ class ProfileFilterLink {
}
}
-/**
- * A profile filter link collection lists profile filter links between profiles
- * and filters. Each resource in the collection corresponds to a profile filter
- * link.
- */
+/// A profile filter link collection lists profile filter links between
+/// profiles and filters. Each resource in the collection corresponds to a
+/// profile filter link.
class ProfileFilterLinks {
- /** A list of profile filter links. */
+ /// A list of profile filter links.
core.List<ProfileFilterLink> items;
- /**
- * The maximum number of resources the response can contain, regardless of the
- * actual number of resources returned. Its value ranges from 1 to 1,000 with
- * a value of 1000 by default, or otherwise specified by the max-results query
- * parameter.
- */
+
+ /// The maximum number of resources the response can contain, regardless of
+ /// the actual number of resources returned. Its value ranges from 1 to 1,000
+ /// with a value of 1000 by default, or otherwise specified by the
+ /// max-results query parameter.
core.int itemsPerPage;
- /** Collection type. */
+
+ /// Collection type.
core.String kind;
- /** Link to next page for this profile filter link collection. */
+
+ /// Link to next page for this profile filter link collection.
core.String nextLink;
- /** Link to previous page for this profile filter link collection. */
+
+ /// Link to previous page for this profile filter link collection.
core.String previousLink;
- /**
- * The starting index of the resources, which is 1 by default or otherwise
- * specified by the start-index query parameter.
- */
+
+ /// The starting index of the resources, which is 1 by default or otherwise
+ /// specified by the start-index query parameter.
core.int startIndex;
- /**
- * The total number of results for the query, regardless of the number of
- * results in the response.
- */
+
+ /// The total number of results for the query, regardless of the number of
+ /// results in the response.
core.int totalResults;
- /** Email ID of the authenticated user */
+
+ /// Email ID of the authenticated user
core.String username;
ProfileFilterLinks();
ProfileFilterLinks.fromJson(core.Map _json) {
if (_json.containsKey("items")) {
- items = _json["items"].map((value) => new ProfileFilterLink.fromJson(value)).toList();
+ items = _json["items"]
+ .map((value) => new ProfileFilterLink.fromJson(value))
+ .toList();
}
if (_json.containsKey("itemsPerPage")) {
itemsPerPage = _json["itemsPerPage"];
@@ -10313,7 +10800,8 @@ class ProfileFilterLinks {
}
core.Map<core.String, core.Object> toJson() {
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>();
+ final core.Map<core.String, core.Object> _json =
+ new core.Map<core.String, core.Object>();
if (items != null) {
_json["items"] = items.map((value) => (value).toJson()).toList();
}
@@ -10342,24 +10830,28 @@ class ProfileFilterLinks {
}
}
-/** JSON template for a linked view (profile). */
+/// JSON template for a linked view (profile).
class ProfileRef {
- /** Account ID to which this view (profile) belongs. */
+ /// Account ID to which this view (profile) belongs.
core.String accountId;
- /** Link for this view (profile). */
+
+ /// Link for this view (profile).
core.String href;
- /** View (Profile) ID. */
+
+ /// View (Profile) ID.
core.String id;
- /** Internal ID for the web property to which this view (profile) belongs. */
+
+ /// Internal ID for the web property to which this view (profile) belongs.
core.String internalWebPropertyId;
- /** Analytics view (profile) reference. */
+
+ /// Analytics view (profile) reference.
core.String kind;
- /** Name of this view (profile). */
+
+ /// Name of this view (profile).
core.String name;
- /**
- * Web property ID of the form UA-XXXXX-YY to which this view (profile)
- * belongs.
- */
+
+ /// Web property ID of the form UA-XXXXX-YY to which this view (profile)
+ /// belongs.
core.String webPropertyId;
ProfileRef();
@@ -10389,7 +10881,8 @@ class ProfileRef {
}
core.Map<core.String, core.Object> toJson() {
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>();
+ final core.Map<core.String, core.Object> _json =
+ new core.Map<core.String, core.Object>();
if (accountId != null) {
_json["accountId"] = accountId;
}
@@ -10415,20 +10908,22 @@ class ProfileRef {
}
}
-/**
- * JSON template for an Analytics ProfileSummary. ProfileSummary returns basic
- * information (i.e., summary) for a profile.
- */
+/// JSON template for an Analytics ProfileSummary. ProfileSummary returns basic
+/// information (i.e., summary) for a profile.
class ProfileSummary {
- /** View (profile) ID. */
+ /// View (profile) ID.
core.String id;
- /** Resource type for Analytics ProfileSummary. */
+
+ /// Resource type for Analytics ProfileSummary.
core.String kind;
- /** View (profile) name. */
+
+ /// View (profile) name.
core.String name;
- /** Indicates whether this view (profile) is starred or not. */
+
+ /// Indicates whether this view (profile) is starred or not.
core.bool starred;
- /** View (Profile) type. Supported types: WEB or APP. */
+
+ /// View (Profile) type. Supported types: WEB or APP.
core.String type;
ProfileSummary();
@@ -10452,7 +10947,8 @@ class ProfileSummary {
}
core.Map<core.String, core.Object> toJson() {
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>();
+ final core.Map<core.String, core.Object> _json =
+ new core.Map<core.String, core.Object>();
if (id != null) {
_json["id"] = id;
}
@@ -10472,45 +10968,45 @@ class ProfileSummary {
}
}
-/**
- * A view (profile) collection lists Analytics views (profiles) to which the
- * user has access. Each resource in the collection corresponds to a single
- * Analytics view (profile).
- */
+/// A view (profile) collection lists Analytics views (profiles) to which the
+/// user has access. Each resource in the collection corresponds to a single
+/// Analytics view (profile).
class Profiles {
- /** A list of views (profiles). */
+ /// A list of views (profiles).
core.List<Profile> items;
- /**
- * 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.
- */
+
+ /// 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.
core.int itemsPerPage;
- /** Collection type. */
+
+ /// Collection type.
core.String kind;
- /** Link to next page for this view (profile) collection. */
+
+ /// Link to next page for this view (profile) collection.
core.String nextLink;
- /** Link to previous page for this view (profile) collection. */
+
+ /// Link to previous page for this view (profile) collection.
core.String previousLink;
- /**
- * The starting index of the resources, which is 1 by default or otherwise
- * specified by the start-index query parameter.
- */
+
+ /// The starting index of the resources, which is 1 by default or otherwise
+ /// specified by the start-index query parameter.
core.int startIndex;
- /**
- * The total number of results for the query, regardless of the number of
- * results in the response.
- */
+
+ /// The total number of results for the query, regardless of the number of
+ /// results in the response.
core.int totalResults;
- /** Email ID of the authenticated user */
+
+ /// Email ID of the authenticated user
core.String username;
Profiles();
Profiles.fromJson(core.Map _json) {
if (_json.containsKey("items")) {
- items = _json["items"].map((value) => new Profile.fromJson(value)).toList();
+ items =
+ _json["items"].map((value) => new Profile.fromJson(value)).toList();
}
if (_json.containsKey("itemsPerPage")) {
itemsPerPage = _json["itemsPerPage"];
@@ -10536,7 +11032,8 @@ class Profiles {
}
core.Map<core.String, core.Object> toJson() {
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>();
+ final core.Map<core.String, core.Object> _json =
+ new core.Map<core.String, core.Object>();
if (items != null) {
_json["items"] = items.map((value) => (value).toJson()).toList();
}
@@ -10566,15 +11063,15 @@ class Profiles {
}
class RealtimeDataColumnHeaders {
- /** Column Type. Either DIMENSION or METRIC. */
+ /// Column Type. Either DIMENSION or METRIC.
core.String columnType;
- /**
- * Data type. Dimension column headers have only STRING as the data type.
- * Metric column headers have data types for metric values such as INTEGER,
- * DOUBLE, CURRENCY etc.
- */
+
+ /// Data type. Dimension column headers have only STRING as the data type.
+ /// Metric column headers have data types for metric values such as INTEGER,
+ /// DOUBLE, CURRENCY etc.
core.String dataType;
- /** Column name. */
+
+ /// Column name.
core.String name;
RealtimeDataColumnHeaders();
@@ -10592,7 +11089,8 @@ class RealtimeDataColumnHeaders {
}
core.Map<core.String, core.Object> toJson() {
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>();
+ final core.Map<core.String, core.Object> _json =
+ new core.Map<core.String, core.Object>();
if (columnType != null) {
_json["columnType"] = columnType;
}
@@ -10606,22 +11104,25 @@ class RealtimeDataColumnHeaders {
}
}
-/**
- * Information for the view (profile), for which the real time data was
- * requested.
- */
+/// Information for the view (profile), for which the real time data was
+/// requested.
class RealtimeDataProfileInfo {
- /** Account ID to which this view (profile) belongs. */
+ /// Account ID to which this view (profile) belongs.
core.String accountId;
- /** Internal ID for the web property to which this view (profile) belongs. */
+
+ /// Internal ID for the web property to which this view (profile) belongs.
core.String internalWebPropertyId;
- /** View (Profile) ID. */
+
+ /// View (Profile) ID.
core.String profileId;
- /** View (Profile) name. */
+
+ /// View (Profile) name.
core.String profileName;
- /** Table ID for view (profile). */
+
+ /// Table ID for view (profile).
core.String tableId;
- /** Web Property ID to which this view (profile) belongs. */
+
+ /// Web Property ID to which this view (profile) belongs.
core.String webPropertyId;
RealtimeDataProfileInfo();
@@ -10648,7 +11149,8 @@ class RealtimeDataProfileInfo {
}
core.Map<core.String, core.Object> toJson() {
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>();
+ final core.Map<core.String, core.Object> _json =
+ new core.Map<core.String, core.Object>();
if (accountId != null) {
_json["accountId"] = accountId;
}
@@ -10671,19 +11173,24 @@ class RealtimeDataProfileInfo {
}
}
-/** Real time data request query parameters. */
+/// Real time data request query parameters.
class RealtimeDataQuery {
- /** List of real time dimensions. */
+ /// List of real time dimensions.
core.String dimensions;
- /** Comma-separated list of dimension or metric filters. */
+
+ /// Comma-separated list of dimension or metric filters.
core.String filters;
- /** Unique table ID. */
+
+ /// Unique table ID.
core.String ids;
- /** Maximum results per page. */
+
+ /// Maximum results per page.
core.int max_results;
- /** List of real time metrics. */
+
+ /// List of real time metrics.
core.List<core.String> metrics;
- /** List of dimensions or metrics based on which real time data is sorted. */
+
+ /// List of dimensions or metrics based on which real time data is sorted.
core.List<core.String> sort;
RealtimeDataQuery();
@@ -10710,7 +11217,8 @@ class RealtimeDataQuery {
}
core.Map<core.String, core.Object> toJson() {
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>();
+ final core.Map<core.String, core.Object> _json =
+ new core.Map<core.String, core.Object>();
if (dimensions != null) {
_json["dimensions"] = dimensions;
}
@@ -10733,49 +11241,49 @@ class RealtimeDataQuery {
}
}
-/** Real time data for a given view (profile). */
+/// Real time data for a given view (profile).
class RealtimeData {
- /**
- * Column headers that list dimension names followed by the metric names. The
- * order of dimensions and metrics is same as specified in the request.
- */
+ /// Column headers that list dimension names followed by the metric names.
+ /// The order of dimensions and metrics is same as specified in the request.
core.List<RealtimeDataColumnHeaders> columnHeaders;
- /** Unique ID for this data response. */
+
+ /// Unique ID for this data response.
core.String id;
- /** Resource type. */
+
+ /// Resource type.
core.String kind;
- /**
- * Information for the view (profile), for which the real time data was
- * requested.
- */
+
+ /// Information for the view (profile), for which the real time data was
+ /// requested.
RealtimeDataProfileInfo profileInfo;
- /** Real time data request query parameters. */
+
+ /// Real time data request query parameters.
RealtimeDataQuery query;
- /**
- * Real time data rows, where each row contains a list of dimension values
- * followed by the metric values. The order of dimensions and metrics is same
- * as specified in the request.
- */
+
+ /// Real time data rows, where each row contains a list of dimension values
+ /// followed by the metric values. The order of dimensions and metrics is
+ /// same as specified in the request.
core.List<core.List<core.String>> rows;
- /** Link to this page. */
+
+ /// Link to this page.
core.String selfLink;
- /**
- * The total number of rows for the query, regardless of the number of rows in
- * the response.
- */
+
+ /// The total number of rows for the query, regardless of the number of rows
+ /// in the response.
core.int totalResults;
- /**
- * Total values for the requested metrics over all the results, not just the
- * results returned in this response. The order of the metric totals is same
- * as the metric order specified in the request.
- */
+
+ /// Total values for the requested metrics over all the results, not just the
+ /// results returned in this response. The order of the metric totals is same
+ /// as the metric order specified in the request.
core.Map<core.String, core.String> totalsForAllResults;
RealtimeData();
RealtimeData.fromJson(core.Map _json) {
if (_json.containsKey("columnHeaders")) {
- columnHeaders = _json["columnHeaders"].map((value) => new RealtimeDataColumnHeaders.fromJson(value)).toList();
+ columnHeaders = _json["columnHeaders"]
+ .map((value) => new RealtimeDataColumnHeaders.fromJson(value))
+ .toList();
}
if (_json.containsKey("id")) {
id = _json["id"];
@@ -10804,9 +11312,11 @@ class RealtimeData {
}
core.Map<core.String, core.Object> toJson() {
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>();
+ final core.Map<core.String, core.Object> _json =
+ new core.Map<core.String, core.Object>();
if (columnHeaders != null) {
- _json["columnHeaders"] = columnHeaders.map((value) => (value).toJson()).toList();
+ _json["columnHeaders"] =
+ columnHeaders.map((value) => (value).toJson()).toList();
}
if (id != null) {
_json["id"] = id;
@@ -10836,24 +11346,24 @@ class RealtimeData {
}
}
-/**
- * The simple audience definition that will cause a user to be added to an
- * audience.
- */
+/// The simple audience definition that will cause a user to be added to an
+/// audience.
class RemarketingAudienceAudienceDefinition {
- /** Defines the conditions to include users to the audience. */
+ /// Defines the conditions to include users to the audience.
IncludeConditions includeConditions;
RemarketingAudienceAudienceDefinition();
RemarketingAudienceAudienceDefinition.fromJson(core.Map _json) {
if (_json.containsKey("includeConditions")) {
- includeConditions = new IncludeConditions.fromJson(_json["includeConditions"]);
+ includeConditions =
+ new IncludeConditions.fromJson(_json["includeConditions"]);
}
}
core.Map<core.String, core.Object> toJson() {
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>();
+ final core.Map<core.String, core.Object> _json =
+ new core.Map<core.String, core.Object>();
if (includeConditions != null) {
_json["includeConditions"] = (includeConditions).toJson();
}
@@ -10861,19 +11371,19 @@ class RemarketingAudienceAudienceDefinition {
}
}
-/** Defines the conditions to exclude users from the audience. */
+/// Defines the conditions to exclude users from the audience.
class RemarketingAudienceStateBasedAudienceDefinitionExcludeConditions {
- /** Whether to make the exclusion TEMPORARY or PERMANENT. */
+ /// Whether to make the exclusion TEMPORARY or PERMANENT.
core.String exclusionDuration;
- /**
- * The segment condition that will cause a user to be removed from an
- * audience.
- */
+
+ /// The segment condition that will cause a user to be removed from an
+ /// audience.
core.String segment;
RemarketingAudienceStateBasedAudienceDefinitionExcludeConditions();
- RemarketingAudienceStateBasedAudienceDefinitionExcludeConditions.fromJson(core.Map _json) {
+ RemarketingAudienceStateBasedAudienceDefinitionExcludeConditions.fromJson(
+ core.Map _json) {
if (_json.containsKey("exclusionDuration")) {
exclusionDuration = _json["exclusionDuration"];
}
@@ -10883,7 +11393,8 @@ class RemarketingAudienceStateBasedAudienceDefinitionExcludeConditions {
}
core.Map<core.String, core.Object> toJson() {
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>();
+ final core.Map<core.String, core.Object> _json =
+ new core.Map<core.String, core.Object>();
if (exclusionDuration != null) {
_json["exclusionDuration"] = exclusionDuration;
}
@@ -10894,29 +11405,33 @@ class RemarketingAudienceStateBasedAudienceDefinitionExcludeConditions {
}
}
-/**
- * A state based audience definition that will cause a user to be added or
- * removed from an audience.
- */
+/// A state based audience definition that will cause a user to be added or
+/// removed from an audience.
class RemarketingAudienceStateBasedAudienceDefinition {
- /** Defines the conditions to exclude users from the audience. */
- RemarketingAudienceStateBasedAudienceDefinitionExcludeConditions excludeConditions;
- /** Defines the conditions to include users to the audience. */
+ /// Defines the conditions to exclude users from the audience.
+ RemarketingAudienceStateBasedAudienceDefinitionExcludeConditions
+ excludeConditions;
+
+ /// Defines the conditions to include users to the audience.
IncludeConditions includeConditions;
RemarketingAudienceStateBasedAudienceDefinition();
RemarketingAudienceStateBasedAudienceDefinition.fromJson(core.Map _json) {
if (_json.containsKey("excludeConditions")) {
- excludeConditions = new RemarketingAudienceStateBasedAudienceDefinitionExcludeConditions.fromJson(_json["excludeConditions"]);
+ excludeConditions =
+ new RemarketingAudienceStateBasedAudienceDefinitionExcludeConditions
+ .fromJson(_json["excludeConditions"]);
}
if (_json.containsKey("includeConditions")) {
- includeConditions = new IncludeConditions.fromJson(_json["includeConditions"]);
+ includeConditions =
+ new IncludeConditions.fromJson(_json["includeConditions"]);
}
}
core.Map<core.String, core.Object> toJson() {
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>();
+ final core.Map<core.String, core.Object> _json =
+ new core.Map<core.String, core.Object>();
if (excludeConditions != null) {
_json["excludeConditions"] = (excludeConditions).toJson();
}
@@ -10927,50 +11442,53 @@ class RemarketingAudienceStateBasedAudienceDefinition {
}
}
-/** JSON template for an Analytics remarketing audience. */
+/// JSON template for an Analytics remarketing audience.
class RemarketingAudience {
- /** Account ID to which this remarketing audience belongs. */
+ /// Account ID to which this remarketing audience belongs.
core.String accountId;
- /**
- * The simple audience definition that will cause a user to be added to an
- * audience.
- */
+
+ /// The simple audience definition that will cause a user to be added to an
+ /// audience.
RemarketingAudienceAudienceDefinition audienceDefinition;
- /** The type of audience, either SIMPLE or STATE_BASED. */
+
+ /// The type of audience, either SIMPLE or STATE_BASED.
core.String audienceType;
- /** Time this remarketing audience was created. */
+
+ /// Time this remarketing audience was created.
core.DateTime created;
- /** The description of this remarketing audience. */
+
+ /// The description of this remarketing audience.
core.String description;
- /** Remarketing Audience ID. */
+
+ /// Remarketing Audience ID.
core.String id;
- /**
- * Internal ID for the web property to which this remarketing audience
- * belongs.
- */
+
+ /// Internal ID for the web property to which this remarketing audience
+ /// belongs.
core.String internalWebPropertyId;
- /** Collection type. */
+
+ /// Collection type.
core.String kind;
- /**
- * The linked ad accounts associated with this remarketing audience. A
- * remarketing audience can have only one linkedAdAccount currently.
- */
+
+ /// The linked ad accounts associated with this remarketing audience. A
+ /// remarketing audience can have only one linkedAdAccount currently.
core.List<LinkedForeignAccount> linkedAdAccounts;
- /** The views (profiles) that this remarketing audience is linked to. */
+
+ /// The views (profiles) that this remarketing audience is linked to.
core.List<core.String> linkedViews;
- /** The name of this remarketing audience. */
+
+ /// The name of this remarketing audience.
core.String name;
- /**
- * A state based audience definition that will cause a user to be added or
- * removed from an audience.
- */
+
+ /// A state based audience definition that will cause a user to be added or
+ /// removed from an audience.
RemarketingAudienceStateBasedAudienceDefinition stateBasedAudienceDefinition;
- /** Time this remarketing audience was last modified. */
+
+ /// Time this remarketing audience was last modified.
core.DateTime updated;
- /**
- * Web property ID of the form UA-XXXXX-YY to which this remarketing audience
- * belongs.
- */
+
+ /// Web property ID of the form UA-XXXXX-YY to which this remarketing
+ /// audience belongs.
core.String webPropertyId;
RemarketingAudience();
@@ -10980,7 +11498,8 @@ class RemarketingAudience {
accountId = _json["accountId"];
}
if (_json.containsKey("audienceDefinition")) {
- audienceDefinition = new RemarketingAudienceAudienceDefinition.fromJson(_json["audienceDefinition"]);
+ audienceDefinition = new RemarketingAudienceAudienceDefinition.fromJson(
+ _json["audienceDefinition"]);
}
if (_json.containsKey("audienceType")) {
audienceType = _json["audienceType"];
@@ -11001,7 +11520,9 @@ class RemarketingAudience {
kind = _json["kind"];
}
if (_json.containsKey("linkedAdAccounts")) {
- linkedAdAccounts = _json["linkedAdAccounts"].map((value) => new LinkedForeignAccount.fromJson(value)).toList();
+ linkedAdAccounts = _json["linkedAdAccounts"]
+ .map((value) => new LinkedForeignAccount.fromJson(value))
+ .toList();
}
if (_json.containsKey("linkedViews")) {
linkedViews = _json["linkedViews"];
@@ -11010,7 +11531,9 @@ class RemarketingAudience {
name = _json["name"];
}
if (_json.containsKey("stateBasedAudienceDefinition")) {
- stateBasedAudienceDefinition = new RemarketingAudienceStateBasedAudienceDefinition.fromJson(_json["stateBasedAudienceDefinition"]);
+ stateBasedAudienceDefinition =
+ new RemarketingAudienceStateBasedAudienceDefinition.fromJson(
+ _json["stateBasedAudienceDefinition"]);
}
if (_json.containsKey("updated")) {
updated = core.DateTime.parse(_json["updated"]);
@@ -11021,7 +11544,8 @@ class RemarketingAudience {
}
core.Map<core.String, core.Object> toJson() {
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>();
+ final core.Map<core.String, core.Object> _json =
+ new core.Map<core.String, core.Object>();
if (accountId != null) {
_json["accountId"] = accountId;
}
@@ -11047,7 +11571,8 @@ class RemarketingAudience {
_json["kind"] = kind;
}
if (linkedAdAccounts != null) {
- _json["linkedAdAccounts"] = linkedAdAccounts.map((value) => (value).toJson()).toList();
+ _json["linkedAdAccounts"] =
+ linkedAdAccounts.map((value) => (value).toJson()).toList();
}
if (linkedViews != null) {
_json["linkedViews"] = linkedViews;
@@ -11056,7 +11581,8 @@ class RemarketingAudience {
_json["name"] = name;
}
if (stateBasedAudienceDefinition != null) {
- _json["stateBasedAudienceDefinition"] = (stateBasedAudienceDefinition).toJson();
+ _json["stateBasedAudienceDefinition"] =
+ (stateBasedAudienceDefinition).toJson();
}
if (updated != null) {
_json["updated"] = (updated).toIso8601String();
@@ -11068,45 +11594,46 @@ class RemarketingAudience {
}
}
-/**
- * A remarketing audience collection lists Analytics remarketing audiences to
- * which the user has access. Each resource in the collection corresponds to a
- * single Analytics remarketing audience.
- */
+/// A remarketing audience collection lists Analytics remarketing audiences to
+/// which the user has access. Each resource in the collection corresponds to a
+/// single Analytics remarketing audience.
class RemarketingAudiences {
- /** A list of remarketing audiences. */
+ /// A list of remarketing audiences.
core.List<RemarketingAudience> items;
- /**
- * 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.
- */
+
+ /// 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.
core.int itemsPerPage;
- /** Collection type. */
+
+ /// Collection type.
core.String kind;
- /** Link to next page for this remarketing audience collection. */
+
+ /// Link to next page for this remarketing audience collection.
core.String nextLink;
- /** Link to previous page for this view (profile) collection. */
+
+ /// Link to previous page for this view (profile) collection.
core.String previousLink;
- /**
- * The starting index of the resources, which is 1 by default or otherwise
- * specified by the start-index query parameter.
- */
+
+ /// The starting index of the resources, which is 1 by default or otherwise
+ /// specified by the start-index query parameter.
core.int startIndex;
- /**
- * The total number of results for the query, regardless of the number of
- * results in the response.
- */
+
+ /// The total number of results for the query, regardless of the number of
+ /// results in the response.
core.int totalResults;
- /** Email ID of the authenticated user */
+
+ /// Email ID of the authenticated user
core.String username;
RemarketingAudiences();
RemarketingAudiences.fromJson(core.Map _json) {
if (_json.containsKey("items")) {
- items = _json["items"].map((value) => new RemarketingAudience.fromJson(value)).toList();
+ items = _json["items"]
+ .map((value) => new RemarketingAudience.fromJson(value))
+ .toList();
}
if (_json.containsKey("itemsPerPage")) {
itemsPerPage = _json["itemsPerPage"];
@@ -11132,7 +11659,8 @@ class RemarketingAudiences {
}
core.Map<core.String, core.Object> toJson() {
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>();
+ final core.Map<core.String, core.Object> _json =
+ new core.Map<core.String, core.Object>();
if (items != null) {
_json["items"] = items.map((value) => (value).toJson()).toList();
}
@@ -11161,27 +11689,34 @@ class RemarketingAudiences {
}
}
-/** JSON template for an Analytics segment. */
+/// JSON template for an Analytics segment.
class Segment {
- /** Time the segment was created. */
+ /// Time the segment was created.
core.DateTime created;
- /** Segment definition. */
+
+ /// Segment definition.
core.String definition;
- /** Segment ID. */
+
+ /// Segment ID.
core.String id;
- /** Resource type for Analytics segment. */
+
+ /// Resource type for Analytics segment.
core.String kind;
- /** Segment name. */
+
+ /// Segment name.
core.String name;
- /**
- * Segment ID. Can be used with the 'segment' parameter in Core Reporting API.
- */
+
+ /// Segment ID. Can be used with the 'segment' parameter in Core Reporting
+ /// API.
core.String segmentId;
- /** Link for this segment. */
+
+ /// Link for this segment.
core.String selfLink;
- /** Type for a segment. Possible values are "BUILT_IN" or "CUSTOM". */
+
+ /// Type for a segment. Possible values are "BUILT_IN" or "CUSTOM".
core.String type;
- /** Time the segment was last modified. */
+
+ /// Time the segment was last modified.
core.DateTime updated;
Segment();
@@ -11217,7 +11752,8 @@ class Segment {
}
core.Map<core.String, core.Object> toJson() {
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>();
+ final core.Map<core.String, core.Object> _json =
+ new core.Map<core.String, core.Object>();
if (created != null) {
_json["created"] = (created).toIso8601String();
}
@@ -11249,44 +11785,44 @@ class Segment {
}
}
-/**
- * An segment collection lists Analytics segments that the user has access to.
- * Each resource in the collection corresponds to a single Analytics segment.
- */
+/// An segment collection lists Analytics segments that the user has access to.
+/// Each resource in the collection corresponds to a single Analytics segment.
class Segments {
- /** A list of segments. */
+ /// A list of segments.
core.List<Segment> items;
- /**
- * 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.
- */
+
+ /// 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.
core.int itemsPerPage;
- /** Collection type for segments. */
+
+ /// Collection type for segments.
core.String kind;
- /** Link to next page for this segment collection. */
+
+ /// Link to next page for this segment collection.
core.String nextLink;
- /** Link to previous page for this segment collection. */
+
+ /// Link to previous page for this segment collection.
core.String previousLink;
- /**
- * The starting index of the resources, which is 1 by default or otherwise
- * specified by the start-index query parameter.
- */
+
+ /// The starting index of the resources, which is 1 by default or otherwise
+ /// specified by the start-index query parameter.
core.int startIndex;
- /**
- * The total number of results for the query, regardless of the number of
- * results in the response.
- */
+
+ /// The total number of results for the query, regardless of the number of
+ /// results in the response.
core.int totalResults;
- /** Email ID of the authenticated user */
+
+ /// Email ID of the authenticated user
core.String username;
Segments();
Segments.fromJson(core.Map _json) {
if (_json.containsKey("items")) {
- items = _json["items"].map((value) => new Segment.fromJson(value)).toList();
+ items =
+ _json["items"].map((value) => new Segment.fromJson(value)).toList();
}
if (_json.containsKey("itemsPerPage")) {
itemsPerPage = _json["itemsPerPage"];
@@ -11312,7 +11848,8 @@ class Segments {
}
core.Map<core.String, core.Object> toJson() {
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>();
+ final core.Map<core.String, core.Object> _json =
+ new core.Map<core.String, core.Object>();
if (items != null) {
_json["items"] = items.map((value) => (value).toJson()).toList();
}
@@ -11341,11 +11878,12 @@ class Segments {
}
}
-/** Download details for a file stored in Google Cloud Storage. */
+/// Download details for a file stored in Google Cloud Storage.
class UnsampledReportCloudStorageDownloadDetails {
- /** Id of the bucket the file object is stored in. */
+ /// Id of the bucket the file object is stored in.
core.String bucketId;
- /** Id of the file object containing the report data. */
+
+ /// Id of the file object containing the report data.
core.String objectId;
UnsampledReportCloudStorageDownloadDetails();
@@ -11360,7 +11898,8 @@ class UnsampledReportCloudStorageDownloadDetails {
}
core.Map<core.String, core.Object> toJson() {
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>();
+ final core.Map<core.String, core.Object> _json =
+ new core.Map<core.String, core.Object>();
if (bucketId != null) {
_json["bucketId"] = bucketId;
}
@@ -11371,9 +11910,9 @@ class UnsampledReportCloudStorageDownloadDetails {
}
}
-/** Download details for a file stored in Google Drive. */
+/// Download details for a file stored in Google Drive.
class UnsampledReportDriveDownloadDetails {
- /** Id of the document/file containing the report data. */
+ /// Id of the document/file containing the report data.
core.String documentId;
UnsampledReportDriveDownloadDetails();
@@ -11385,7 +11924,8 @@ class UnsampledReportDriveDownloadDetails {
}
core.Map<core.String, core.Object> toJson() {
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>();
+ final core.Map<core.String, core.Object> _json =
+ new core.Map<core.String, core.Object>();
if (documentId != null) {
_json["documentId"] = documentId;
}
@@ -11393,56 +11933,68 @@ class UnsampledReportDriveDownloadDetails {
}
}
-/** JSON template for Analytics unsampled report resource. */
+/// JSON template for Analytics unsampled report resource.
class UnsampledReport {
- /** Account ID to which this unsampled report belongs. */
+ /// Account ID to which this unsampled report belongs.
core.String accountId;
- /** Download details for a file stored in Google Cloud Storage. */
+
+ /// Download details for a file stored in Google Cloud Storage.
UnsampledReportCloudStorageDownloadDetails cloudStorageDownloadDetails;
- /** Time this unsampled report was created. */
+
+ /// Time this unsampled report was created.
core.DateTime created;
- /** The dimensions for the unsampled report. */
+
+ /// The dimensions for the unsampled report.
core.String dimensions;
- /**
- * The type of download you need to use for the report data file. Possible
- * values include `GOOGLE_DRIVE` and `GOOGLE_CLOUD_STORAGE`. If the value is
- * `GOOGLE_DRIVE`, see the `driveDownloadDetails` field. If the value is
- * `GOOGLE_CLOUD_STORAGE`, see the `cloudStorageDownloadDetails` field.
- */
+
+ /// The type of download you need to use for the report data file. Possible
+ /// values include `GOOGLE_DRIVE` and `GOOGLE_CLOUD_STORAGE`. If the value is
+ /// `GOOGLE_DRIVE`, see the `driveDownloadDetails` field. If the value is
+ /// `GOOGLE_CLOUD_STORAGE`, see the `cloudStorageDownloadDetails` field.
core.String downloadType;
- /** Download details for a file stored in Google Drive. */
+
+ /// Download details for a file stored in Google Drive.
UnsampledReportDriveDownloadDetails driveDownloadDetails;
- /** The end date for the unsampled report. */
+
+ /// The end date for the unsampled report.
core.String end_date;
- /** The filters for the unsampled report. */
+
+ /// The filters for the unsampled report.
core.String filters;
- /** Unsampled report ID. */
+
+ /// Unsampled report ID.
core.String id;
- /** Resource type for an Analytics unsampled report. */
+
+ /// Resource type for an Analytics unsampled report.
core.String kind;
- /** The metrics for the unsampled report. */
+
+ /// The metrics for the unsampled report.
core.String metrics;
- /** View (Profile) ID to which this unsampled report belongs. */
+
+ /// View (Profile) ID to which this unsampled report belongs.
core.String profileId;
- /** The segment for the unsampled report. */
+
+ /// The segment for the unsampled report.
core.String segment;
- /** Link for this unsampled report. */
+
+ /// Link for this unsampled report.
core.String selfLink;
- /** The start date for the unsampled report. */
+
+ /// The start date for the unsampled report.
core.String start_date;
- /**
- * Status of this unsampled report. Possible values are PENDING, COMPLETED, or
- * FAILED.
- */
+
+ /// Status of this unsampled report. Possible values are PENDING, COMPLETED,
+ /// or FAILED.
core.String status;
- /** Title of the unsampled report. */
+
+ /// Title of the unsampled report.
core.String title;
- /** Time this unsampled report was last modified. */
+
+ /// Time this unsampled report was last modified.
core.DateTime updated;
- /**
- * Web property ID to which this unsampled report belongs. The web property ID
- * is of the form UA-XXXXX-YY.
- */
+
+ /// Web property ID to which this unsampled report belongs. The web property
+ /// ID is of the form UA-XXXXX-YY.
core.String webPropertyId;
UnsampledReport();
@@ -11452,7 +12004,9 @@ class UnsampledReport {
accountId = _json["accountId"];
}
if (_json.containsKey("cloudStorageDownloadDetails")) {
- cloudStorageDownloadDetails = new UnsampledReportCloudStorageDownloadDetails.fromJson(_json["cloudStorageDownloadDetails"]);
+ cloudStorageDownloadDetails =
+ new UnsampledReportCloudStorageDownloadDetails.fromJson(
+ _json["cloudStorageDownloadDetails"]);
}
if (_json.containsKey("created")) {
created = core.DateTime.parse(_json["created"]);
@@ -11464,7 +12018,8 @@ class UnsampledReport {
downloadType = _json["downloadType"];
}
if (_json.containsKey("driveDownloadDetails")) {
- driveDownloadDetails = new UnsampledReportDriveDownloadDetails.fromJson(_json["driveDownloadDetails"]);
+ driveDownloadDetails = new UnsampledReportDriveDownloadDetails.fromJson(
+ _json["driveDownloadDetails"]);
}
if (_json.containsKey("end-date")) {
end_date = _json["end-date"];
@@ -11508,12 +12063,14 @@ class UnsampledReport {
}
core.Map<core.String, core.Object> toJson() {
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>();
+ final core.Map<core.String, core.Object> _json =
+ new core.Map<core.String, core.Object>();
if (accountId != null) {
_json["accountId"] = accountId;
}
if (cloudStorageDownloadDetails != null) {
- _json["cloudStorageDownloadDetails"] = (cloudStorageDownloadDetails).toJson();
+ _json["cloudStorageDownloadDetails"] =
+ (cloudStorageDownloadDetails).toJson();
}
if (created != null) {
_json["created"] = (created).toIso8601String();
@@ -11570,46 +12127,47 @@ class UnsampledReport {
}
}
-/**
- * An unsampled report collection lists Analytics unsampled reports to which the
- * user has access. Each view (profile) can have a set of unsampled reports.
- * Each resource in the unsampled report collection corresponds to a single
- * Analytics unsampled report.
- */
+/// An unsampled report collection lists Analytics unsampled reports to which
+/// the user has access. Each view (profile) can have a set of unsampled
+/// reports. Each resource in the unsampled report collection corresponds to a
+/// single Analytics unsampled report.
class UnsampledReports {
- /** A list of unsampled reports. */
+ /// A list of unsampled reports.
core.List<UnsampledReport> items;
- /**
- * 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.
- */
+
+ /// 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.
core.int itemsPerPage;
- /** Collection type. */
+
+ /// Collection type.
core.String kind;
- /** Link to next page for this unsampled report collection. */
+
+ /// Link to next page for this unsampled report collection.
core.String nextLink;
- /** Link to previous page for this unsampled report collection. */
+
+ /// Link to previous page for this unsampled report collection.
core.String previousLink;
- /**
- * The starting index of the resources, which is 1 by default or otherwise
- * specified by the start-index query parameter.
- */
+
+ /// The starting index of the resources, which is 1 by default or otherwise
+ /// specified by the start-index query parameter.
core.int startIndex;
- /**
- * The total number of results for the query, regardless of the number of
- * resources in the result.
- */
+
+ /// The total number of results for the query, regardless of the number of
+ /// resources in the result.
core.int totalResults;
- /** Email ID of the authenticated user */
+
+ /// Email ID of the authenticated user
core.String username;
UnsampledReports();
UnsampledReports.fromJson(core.Map _json) {
if (_json.containsKey("items")) {
- items = _json["items"].map((value) => new UnsampledReport.fromJson(value)).toList();
+ items = _json["items"]
+ .map((value) => new UnsampledReport.fromJson(value))
+ .toList();
}
if (_json.containsKey("itemsPerPage")) {
itemsPerPage = _json["itemsPerPage"];
@@ -11635,7 +12193,8 @@ class UnsampledReports {
}
core.Map<core.String, core.Object> toJson() {
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>();
+ final core.Map<core.String, core.Object> _json =
+ new core.Map<core.String, core.Object>();
if (items != null) {
_json["items"] = items.map((value) => (value).toJson()).toList();
}
@@ -11664,24 +12223,28 @@ class UnsampledReports {
}
}
-/** Metadata returned for an upload operation. */
+/// Metadata returned for an upload operation.
class Upload {
- /** Account Id to which this upload belongs. */
+ /// Account Id to which this upload belongs.
core.String accountId;
- /** Custom data source Id to which this data import belongs. */
+
+ /// Custom data source Id to which this data import belongs.
core.String customDataSourceId;
- /** Data import errors collection. */
+
+ /// Data import errors collection.
core.List<core.String> errors;
- /** A unique ID for this upload. */
+
+ /// A unique ID for this upload.
core.String id;
- /** Resource type for Analytics upload. */
+
+ /// Resource type for Analytics upload.
core.String kind;
- /**
- * Upload status. Possible values: PENDING, COMPLETED, FAILED, DELETING,
- * DELETED.
- */
+
+ /// Upload status. Possible values: PENDING, COMPLETED, FAILED, DELETING,
+ /// DELETED.
core.String status;
- /** Time this file is uploaded. */
+
+ /// Time this file is uploaded.
core.DateTime uploadTime;
Upload();
@@ -11711,7 +12274,8 @@ class Upload {
}
core.Map<core.String, core.Object> toJson() {
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>();
+ final core.Map<core.String, core.Object> _json =
+ new core.Map<core.String, core.Object>();
if (accountId != null) {
_json["accountId"] = accountId;
}
@@ -11737,43 +12301,42 @@ class Upload {
}
}
-/**
- * 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.
- */
+/// 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.
class Uploads {
- /** A list of uploads. */
+ /// A list of uploads.
core.List<Upload> items;
- /**
- * 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.
- */
+
+ /// 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.
core.int itemsPerPage;
- /** Collection type. */
+
+ /// Collection type.
core.String kind;
- /** Link to next page for this upload collection. */
+
+ /// Link to next page for this upload collection.
core.String nextLink;
- /** Link to previous page for this upload collection. */
+
+ /// Link to previous page for this upload collection.
core.String previousLink;
- /**
- * The starting index of the resources, which is 1 by default or otherwise
- * specified by the start-index query parameter.
- */
+
+ /// The starting index of the resources, which is 1 by default or otherwise
+ /// specified by the start-index query parameter.
core.int startIndex;
- /**
- * The total number of results for the query, regardless of the number of
- * resources in the result.
- */
+
+ /// The total number of results for the query, regardless of the number of
+ /// resources in the result.
core.int totalResults;
Uploads();
Uploads.fromJson(core.Map _json) {
if (_json.containsKey("items")) {
- items = _json["items"].map((value) => new Upload.fromJson(value)).toList();
+ items =
+ _json["items"].map((value) => new Upload.fromJson(value)).toList();
}
if (_json.containsKey("itemsPerPage")) {
itemsPerPage = _json["itemsPerPage"];
@@ -11796,7 +12359,8 @@ class Uploads {
}
core.Map<core.String, core.Object> toJson() {
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>();
+ final core.Map<core.String, core.Object> _json =
+ new core.Map<core.String, core.Object>();
if (items != null) {
_json["items"] = items.map((value) => (value).toJson()).toList();
}
@@ -11822,11 +12386,12 @@ class Uploads {
}
}
-/** JSON template for a user reference. */
+/// JSON template for a user reference.
class UserRef {
- /** Email ID of this user. */
+ /// Email ID of this user.
core.String email;
- /** User ID. */
+
+ /// User ID.
core.String id;
core.String kind;
@@ -11845,7 +12410,8 @@ class UserRef {
}
core.Map<core.String, core.Object> toJson() {
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>();
+ final core.Map<core.String, core.Object> _json =
+ new core.Map<core.String, core.Object>();
if (email != null) {
_json["email"] = email;
}
@@ -11859,19 +12425,24 @@ class UserRef {
}
}
-/** JSON template for a web property reference. */
+/// JSON template for a web property reference.
class WebPropertyRef {
- /** Account ID to which this web property belongs. */
+ /// Account ID to which this web property belongs.
core.String accountId;
- /** Link for this web property. */
+
+ /// Link for this web property.
core.String href;
- /** Web property ID of the form UA-XXXXX-YY. */
+
+ /// Web property ID of the form UA-XXXXX-YY.
core.String id;
- /** Internal ID for this web property. */
+
+ /// Internal ID for this web property.
core.String internalWebPropertyId;
- /** Analytics web property reference. */
+
+ /// Analytics web property reference.
core.String kind;
- /** Name of this web property. */
+
+ /// Name of this web property.
core.String name;
WebPropertyRef();
@@ -11898,7 +12469,8 @@ class WebPropertyRef {
}
core.Map<core.String, core.Object> toJson() {
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>();
+ final core.Map<core.String, core.Object> _json =
+ new core.Map<core.String, core.Object>();
if (accountId != null) {
_json["accountId"] = accountId;
}
@@ -11921,26 +12493,31 @@ class WebPropertyRef {
}
}
-/**
- * JSON template for an Analytics WebPropertySummary. WebPropertySummary returns
- * basic information (i.e., summary) for a web property.
- */
+/// JSON template for an Analytics WebPropertySummary. WebPropertySummary
+/// returns basic information (i.e., summary) for a web property.
class WebPropertySummary {
- /** Web property ID of the form UA-XXXXX-YY. */
+ /// Web property ID of the form UA-XXXXX-YY.
core.String id;
- /** Internal ID for this web property. */
+
+ /// Internal ID for this web property.
core.String internalWebPropertyId;
- /** Resource type for Analytics WebPropertySummary. */
+
+ /// Resource type for Analytics WebPropertySummary.
core.String kind;
- /** Level for this web property. Possible values are STANDARD or PREMIUM. */
+
+ /// Level for this web property. Possible values are STANDARD or PREMIUM.
core.String level;
- /** Web property name. */
+
+ /// Web property name.
core.String name;
- /** List of profiles under this web property. */
+
+ /// List of profiles under this web property.
core.List<ProfileSummary> profiles;
- /** Indicates whether this web property is starred or not. */
+
+ /// Indicates whether this web property is starred or not.
core.bool starred;
- /** Website url for this web property. */
+
+ /// Website url for this web property.
core.String websiteUrl;
WebPropertySummary();
@@ -11962,7 +12539,9 @@ class WebPropertySummary {
name = _json["name"];
}
if (_json.containsKey("profiles")) {
- profiles = _json["profiles"].map((value) => new ProfileSummary.fromJson(value)).toList();
+ profiles = _json["profiles"]
+ .map((value) => new ProfileSummary.fromJson(value))
+ .toList();
}
if (_json.containsKey("starred")) {
starred = _json["starred"];
@@ -11973,7 +12552,8 @@ class WebPropertySummary {
}
core.Map<core.String, core.Object> toJson() {
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>();
+ final core.Map<core.String, core.Object> _json =
+ new core.Map<core.String, core.Object>();
if (id != null) {
_json["id"] = id;
}
@@ -12002,45 +12582,46 @@ class WebPropertySummary {
}
}
-/**
- * A web property collection lists Analytics web properties to which the user
- * has access. Each resource in the collection corresponds to a single Analytics
- * web property.
- */
+/// A web property collection lists Analytics web properties to which the user
+/// has access. Each resource in the collection corresponds to a single
+/// Analytics web property.
class Webproperties {
- /** A list of web properties. */
+ /// A list of web properties.
core.List<Webproperty> items;
- /**
- * 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.
- */
+
+ /// 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.
core.int itemsPerPage;
- /** Collection type. */
+
+ /// Collection type.
core.String kind;
- /** Link to next page for this web property collection. */
+
+ /// Link to next page for this web property collection.
core.String nextLink;
- /** Link to previous page for this web property collection. */
+
+ /// Link to previous page for this web property collection.
core.String previousLink;
- /**
- * The starting index of the resources, which is 1 by default or otherwise
- * specified by the start-index query parameter.
- */
+
+ /// The starting index of the resources, which is 1 by default or otherwise
+ /// specified by the start-index query parameter.
core.int startIndex;
- /**
- * The total number of results for the query, regardless of the number of
- * results in the response.
- */
+
+ /// The total number of results for the query, regardless of the number of
+ /// results in the response.
core.int totalResults;
- /** Email ID of the authenticated user */
+
+ /// Email ID of the authenticated user
core.String username;
Webproperties();
Webproperties.fromJson(core.Map _json) {
if (_json.containsKey("items")) {
- items = _json["items"].map((value) => new Webproperty.fromJson(value)).toList();
+ items = _json["items"]
+ .map((value) => new Webproperty.fromJson(value))
+ .toList();
}
if (_json.containsKey("itemsPerPage")) {
itemsPerPage = _json["itemsPerPage"];
@@ -12066,7 +12647,8 @@ class Webproperties {
}
core.Map<core.String, core.Object> toJson() {
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>();
+ final core.Map<core.String, core.Object> _json =
+ new core.Map<core.String, core.Object>();
if (items != null) {
_json["items"] = items.map((value) => (value).toJson()).toList();
}
@@ -12095,14 +12677,13 @@ class Webproperties {
}
}
-/**
- * Child link for this web property. Points to the list of views (profiles) for
- * this web property.
- */
+/// Child link for this web property. Points to the list of views (profiles)
+/// for this web property.
class WebpropertyChildLink {
- /** Link to the list of views (profiles) for this web property. */
+ /// Link to the list of views (profiles) for this web property.
core.String href;
- /** Type of the parent link. Its value is "analytics#profiles". */
+
+ /// Type of the parent link. Its value is "analytics#profiles".
core.String type;
WebpropertyChildLink();
@@ -12117,7 +12698,8 @@ class WebpropertyChildLink {
}
core.Map<core.String, core.Object> toJson() {
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>();
+ final core.Map<core.String, core.Object> _json =
+ new core.Map<core.String, core.Object>();
if (href != null) {
_json["href"] = href;
}
@@ -12128,14 +12710,13 @@ class WebpropertyChildLink {
}
}
-/**
- * Parent link for this web property. Points to the account to which this web
- * property belongs.
- */
+/// Parent link for this web property. Points to the account to which this web
+/// property belongs.
class WebpropertyParentLink {
- /** Link to the account for this web property. */
+ /// Link to the account for this web property.
core.String href;
- /** Type of the parent link. Its value is "analytics#account". */
+
+ /// Type of the parent link. Its value is "analytics#account".
core.String type;
WebpropertyParentLink();
@@ -12150,7 +12731,8 @@ class WebpropertyParentLink {
}
core.Map<core.String, core.Object> toJson() {
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>();
+ final core.Map<core.String, core.Object> _json =
+ new core.Map<core.String, core.Object>();
if (href != null) {
_json["href"] = href;
}
@@ -12161,13 +12743,11 @@ class WebpropertyParentLink {
}
}
-/** Permissions the user has for this web property. */
+/// Permissions the user has for this web property.
class WebpropertyPermissions {
- /**
- * All the permissions that the user has for this web property. These include
- * any implied permissions (e.g., EDIT implies VIEW) or inherited permissions
- * from the parent account.
- */
+ /// All the permissions that the user has for this web property. These
+ /// include any implied permissions (e.g., EDIT implies VIEW) or inherited
+ /// permissions from the parent account.
core.List<core.String> effective;
WebpropertyPermissions();
@@ -12179,7 +12759,8 @@ class WebpropertyPermissions {
}
core.Map<core.String, core.Object> toJson() {
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>();
+ final core.Map<core.String, core.Object> _json =
+ new core.Map<core.String, core.Object>();
if (effective != null) {
_json["effective"] = effective;
}
@@ -12187,47 +12768,59 @@ class WebpropertyPermissions {
}
}
-/** JSON template for an Analytics web property. */
+/// JSON template for an Analytics web property.
class Webproperty {
- /** Account ID to which this web property belongs. */
+ /// Account ID to which this web property belongs.
core.String accountId;
- /**
- * Child link for this web property. Points to the list of views (profiles)
- * for this web property.
- */
+
+ /// Child link for this web property. Points to the list of views (profiles)
+ /// for this web property.
WebpropertyChildLink childLink;
- /** Time this web property was created. */
+
+ /// Time this web property was created.
core.DateTime created;
- /** Default view (profile) ID. */
+
+ /// Default view (profile) ID.
core.String defaultProfileId;
- /** Web property ID of the form UA-XXXXX-YY. */
+
+ /// Web property ID of the form UA-XXXXX-YY.
core.String id;
- /** The industry vertical/category selected for this web property. */
+
+ /// The industry vertical/category selected for this web property.
core.String industryVertical;
- /** Internal ID for this web property. */
+
+ /// Internal ID for this web property.
core.String internalWebPropertyId;
- /** Resource type for Analytics WebProperty. */
+
+ /// Resource type for Analytics WebProperty.
core.String kind;
- /** Level for this web property. Possible values are STANDARD or PREMIUM. */
+
+ /// Level for this web property. Possible values are STANDARD or PREMIUM.
core.String level;
- /** Name of this web property. */
+
+ /// Name of this web property.
core.String name;
- /**
- * Parent link for this web property. Points to the account to which this web
- * property belongs.
- */
+
+ /// Parent link for this web property. Points to the account to which this
+ /// web property belongs.
WebpropertyParentLink parentLink;
- /** Permissions the user has for this web property. */
+
+ /// Permissions the user has for this web property.
WebpropertyPermissions permissions;
- /** View (Profile) count for this web property. */
+
+ /// View (Profile) count for this web property.
core.int profileCount;
- /** Link for this web property. */
+
+ /// Link for this web property.
core.String selfLink;
- /** Indicates whether this web property is starred or not. */
+
+ /// Indicates whether this web property is starred or not.
core.bool starred;
- /** Time this web property was last modified. */
+
+ /// Time this web property was last modified.
core.DateTime updated;
- /** Website url for this web property. */
+
+ /// Website url for this web property.
core.String websiteUrl;
Webproperty();
@@ -12287,7 +12880,8 @@ class Webproperty {
}
core.Map<core.String, core.Object> toJson() {
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>();
+ final core.Map<core.String, core.Object> _json =
+ new core.Map<core.String, core.Object>();
if (accountId != null) {
_json["accountId"] = accountId;
}
« no previous file with comments | « generated/googleapis/lib/adsensehost/v4_1.dart ('k') | generated/googleapis/lib/analyticsreporting/v4.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698