| OLD | NEW |
| 1 // This is a generated file (see the discoveryapis_generator project). | 1 // This is a generated file (see the discoveryapis_generator project). |
| 2 | 2 |
| 3 library googleapis.analytics.v3; | 3 library googleapis.analytics.v3; |
| 4 | 4 |
| 5 import 'dart:core' as core; | 5 import 'dart:core' as core; |
| 6 import 'dart:async' as async; | 6 import 'dart:async' as async; |
| 7 import 'dart:convert' as convert; | 7 import 'dart:convert' as convert; |
| 8 | 8 |
| 9 import 'package:_discoveryapis_commons/_discoveryapis_commons.dart' as commons; | 9 import 'package:_discoveryapis_commons/_discoveryapis_commons.dart' as commons; |
| 10 import 'package:http/http.dart' as http; | 10 import 'package:http/http.dart' as http; |
| 11 | 11 |
| 12 export 'package:_discoveryapis_commons/_discoveryapis_commons.dart' show | 12 export 'package:_discoveryapis_commons/_discoveryapis_commons.dart' show |
| 13 ApiRequestError, DetailedApiRequestError, Media, UploadOptions, | 13 ApiRequestError, DetailedApiRequestError, Media, UploadOptions, |
| 14 ResumableUploadOptions, DownloadOptions, PartialDownloadOptions, | 14 ResumableUploadOptions, DownloadOptions, PartialDownloadOptions, |
| 15 ByteRange; | 15 ByteRange; |
| 16 | 16 |
| 17 const core.String USER_AGENT = 'dart-api-client analytics/v3'; | 17 const core.String USER_AGENT = 'dart-api-client analytics/v3'; |
| 18 | 18 |
| 19 /** View and manage your Google Analytics data */ | 19 /** Views and manages your Google Analytics data. */ |
| 20 class AnalyticsApi { | 20 class AnalyticsApi { |
| 21 /** View and manage your Google Analytics data */ | 21 /** View and manage your Google Analytics data */ |
| 22 static const AnalyticsScope = "https://www.googleapis.com/auth/analytics"; | 22 static const AnalyticsScope = "https://www.googleapis.com/auth/analytics"; |
| 23 | 23 |
| 24 /** Edit Google Analytics management entities */ | 24 /** Edit Google Analytics management entities */ |
| 25 static const AnalyticsEditScope = "https://www.googleapis.com/auth/analytics.e
dit"; | 25 static const AnalyticsEditScope = "https://www.googleapis.com/auth/analytics.e
dit"; |
| 26 | 26 |
| 27 /** Manage Google Analytics Account users by email address */ | 27 /** Manage Google Analytics Account users by email address */ |
| 28 static const AnalyticsManageUsersScope = "https://www.googleapis.com/auth/anal
ytics.manage.users"; | 28 static const AnalyticsManageUsersScope = "https://www.googleapis.com/auth/anal
ytics.manage.users"; |
| 29 | 29 |
| (...skipping 2176 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2206 "GET", | 2206 "GET", |
| 2207 body: _body, | 2207 body: _body, |
| 2208 queryParams: _queryParams, | 2208 queryParams: _queryParams, |
| 2209 uploadOptions: _uploadOptions, | 2209 uploadOptions: _uploadOptions, |
| 2210 uploadMedia: _uploadMedia, | 2210 uploadMedia: _uploadMedia, |
| 2211 downloadOptions: _downloadOptions); | 2211 downloadOptions: _downloadOptions); |
| 2212 return _response.then((data) => new Goals.fromJson(data)); | 2212 return _response.then((data) => new Goals.fromJson(data)); |
| 2213 } | 2213 } |
| 2214 | 2214 |
| 2215 /** | 2215 /** |
| 2216 * Updates an existing view (profile). This method supports patch semantics. | 2216 * Updates an existing goal. This method supports patch semantics. |
| 2217 * | 2217 * |
| 2218 * [request] - The metadata request object. | 2218 * [request] - The metadata request object. |
| 2219 * | 2219 * |
| 2220 * Request parameters: | 2220 * Request parameters: |
| 2221 * | 2221 * |
| 2222 * [accountId] - Account ID to update the goal. | 2222 * [accountId] - Account ID to update the goal. |
| 2223 * | 2223 * |
| 2224 * [webPropertyId] - Web property ID to update the goal. | 2224 * [webPropertyId] - Web property ID to update the goal. |
| 2225 * | 2225 * |
| 2226 * [profileId] - View (Profile) ID to update the goal. | 2226 * [profileId] - View (Profile) ID to update the goal. |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2265 "PATCH", | 2265 "PATCH", |
| 2266 body: _body, | 2266 body: _body, |
| 2267 queryParams: _queryParams, | 2267 queryParams: _queryParams, |
| 2268 uploadOptions: _uploadOptions, | 2268 uploadOptions: _uploadOptions, |
| 2269 uploadMedia: _uploadMedia, | 2269 uploadMedia: _uploadMedia, |
| 2270 downloadOptions: _downloadOptions); | 2270 downloadOptions: _downloadOptions); |
| 2271 return _response.then((data) => new Goal.fromJson(data)); | 2271 return _response.then((data) => new Goal.fromJson(data)); |
| 2272 } | 2272 } |
| 2273 | 2273 |
| 2274 /** | 2274 /** |
| 2275 * Updates an existing view (profile). | 2275 * Updates an existing goal. |
| 2276 * | 2276 * |
| 2277 * [request] - The metadata request object. | 2277 * [request] - The metadata request object. |
| 2278 * | 2278 * |
| 2279 * Request parameters: | 2279 * Request parameters: |
| 2280 * | 2280 * |
| 2281 * [accountId] - Account ID to update the goal. | 2281 * [accountId] - Account ID to update the goal. |
| 2282 * | 2282 * |
| 2283 * [webPropertyId] - Web property ID to update the goal. | 2283 * [webPropertyId] - Web property ID to update the goal. |
| 2284 * | 2284 * |
| 2285 * [profileId] - View (Profile) ID to update the goal. | 2285 * [profileId] - View (Profile) ID to update the goal. |
| (...skipping 717 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3003 uploadMedia: _uploadMedia, | 3003 uploadMedia: _uploadMedia, |
| 3004 downloadOptions: _downloadOptions); | 3004 downloadOptions: _downloadOptions); |
| 3005 return _response.then((data) => null); | 3005 return _response.then((data) => null); |
| 3006 } | 3006 } |
| 3007 | 3007 |
| 3008 /** | 3008 /** |
| 3009 * Gets a view (profile) to which the user has access. | 3009 * Gets a view (profile) to which the user has access. |
| 3010 * | 3010 * |
| 3011 * Request parameters: | 3011 * Request parameters: |
| 3012 * | 3012 * |
| 3013 * [accountId] - Account ID to retrieve the goal for. | 3013 * [accountId] - Account ID to retrieve the view (profile) for. |
| 3014 * Value must have pattern "[0-9]+". | 3014 * Value must have pattern "[0-9]+". |
| 3015 * | 3015 * |
| 3016 * [webPropertyId] - Web property ID to retrieve the goal for. | 3016 * [webPropertyId] - Web property ID to retrieve the view (profile) for. |
| 3017 * Value must have pattern "UA-[0-9]+-[0-9]+". | 3017 * Value must have pattern "UA-[0-9]+-[0-9]+". |
| 3018 * | 3018 * |
| 3019 * [profileId] - View (Profile) ID to retrieve the goal for. | 3019 * [profileId] - View (Profile) ID to retrieve the view (profile) for. |
| 3020 * Value must have pattern "[0-9]+". | 3020 * Value must have pattern "[0-9]+". |
| 3021 * | 3021 * |
| 3022 * Completes with a [Profile]. | 3022 * Completes with a [Profile]. |
| 3023 * | 3023 * |
| 3024 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 3024 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 3025 * error. | 3025 * error. |
| 3026 * | 3026 * |
| 3027 * If the used [http.Client] completes with an error when making a REST call, | 3027 * If the used [http.Client] completes with an error when making a REST call, |
| 3028 * this method will complete with the same error. | 3028 * this method will complete with the same error. |
| 3029 */ | 3029 */ |
| (...skipping 1765 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4795 /** Account ID. */ | 4795 /** Account ID. */ |
| 4796 core.String id; | 4796 core.String id; |
| 4797 /** Resource type for Analytics account. */ | 4797 /** Resource type for Analytics account. */ |
| 4798 core.String kind; | 4798 core.String kind; |
| 4799 /** Account name. */ | 4799 /** Account name. */ |
| 4800 core.String name; | 4800 core.String name; |
| 4801 /** Permissions the user has for this account. */ | 4801 /** Permissions the user has for this account. */ |
| 4802 AccountPermissions permissions; | 4802 AccountPermissions permissions; |
| 4803 /** Link for this account. */ | 4803 /** Link for this account. */ |
| 4804 core.String selfLink; | 4804 core.String selfLink; |
| 4805 /** Indicates whether this account is starred or not. */ |
| 4806 core.bool starred; |
| 4805 /** Time the account was last modified. */ | 4807 /** Time the account was last modified. */ |
| 4806 core.DateTime updated; | 4808 core.DateTime updated; |
| 4807 | 4809 |
| 4808 Account(); | 4810 Account(); |
| 4809 | 4811 |
| 4810 Account.fromJson(core.Map _json) { | 4812 Account.fromJson(core.Map _json) { |
| 4811 if (_json.containsKey("childLink")) { | 4813 if (_json.containsKey("childLink")) { |
| 4812 childLink = new AccountChildLink.fromJson(_json["childLink"]); | 4814 childLink = new AccountChildLink.fromJson(_json["childLink"]); |
| 4813 } | 4815 } |
| 4814 if (_json.containsKey("created")) { | 4816 if (_json.containsKey("created")) { |
| 4815 created = core.DateTime.parse(_json["created"]); | 4817 created = core.DateTime.parse(_json["created"]); |
| 4816 } | 4818 } |
| 4817 if (_json.containsKey("id")) { | 4819 if (_json.containsKey("id")) { |
| 4818 id = _json["id"]; | 4820 id = _json["id"]; |
| 4819 } | 4821 } |
| 4820 if (_json.containsKey("kind")) { | 4822 if (_json.containsKey("kind")) { |
| 4821 kind = _json["kind"]; | 4823 kind = _json["kind"]; |
| 4822 } | 4824 } |
| 4823 if (_json.containsKey("name")) { | 4825 if (_json.containsKey("name")) { |
| 4824 name = _json["name"]; | 4826 name = _json["name"]; |
| 4825 } | 4827 } |
| 4826 if (_json.containsKey("permissions")) { | 4828 if (_json.containsKey("permissions")) { |
| 4827 permissions = new AccountPermissions.fromJson(_json["permissions"]); | 4829 permissions = new AccountPermissions.fromJson(_json["permissions"]); |
| 4828 } | 4830 } |
| 4829 if (_json.containsKey("selfLink")) { | 4831 if (_json.containsKey("selfLink")) { |
| 4830 selfLink = _json["selfLink"]; | 4832 selfLink = _json["selfLink"]; |
| 4831 } | 4833 } |
| 4834 if (_json.containsKey("starred")) { |
| 4835 starred = _json["starred"]; |
| 4836 } |
| 4832 if (_json.containsKey("updated")) { | 4837 if (_json.containsKey("updated")) { |
| 4833 updated = core.DateTime.parse(_json["updated"]); | 4838 updated = core.DateTime.parse(_json["updated"]); |
| 4834 } | 4839 } |
| 4835 } | 4840 } |
| 4836 | 4841 |
| 4837 core.Map toJson() { | 4842 core.Map toJson() { |
| 4838 var _json = new core.Map(); | 4843 var _json = new core.Map(); |
| 4839 if (childLink != null) { | 4844 if (childLink != null) { |
| 4840 _json["childLink"] = (childLink).toJson(); | 4845 _json["childLink"] = (childLink).toJson(); |
| 4841 } | 4846 } |
| 4842 if (created != null) { | 4847 if (created != null) { |
| 4843 _json["created"] = (created).toIso8601String(); | 4848 _json["created"] = (created).toIso8601String(); |
| 4844 } | 4849 } |
| 4845 if (id != null) { | 4850 if (id != null) { |
| 4846 _json["id"] = id; | 4851 _json["id"] = id; |
| 4847 } | 4852 } |
| 4848 if (kind != null) { | 4853 if (kind != null) { |
| 4849 _json["kind"] = kind; | 4854 _json["kind"] = kind; |
| 4850 } | 4855 } |
| 4851 if (name != null) { | 4856 if (name != null) { |
| 4852 _json["name"] = name; | 4857 _json["name"] = name; |
| 4853 } | 4858 } |
| 4854 if (permissions != null) { | 4859 if (permissions != null) { |
| 4855 _json["permissions"] = (permissions).toJson(); | 4860 _json["permissions"] = (permissions).toJson(); |
| 4856 } | 4861 } |
| 4857 if (selfLink != null) { | 4862 if (selfLink != null) { |
| 4858 _json["selfLink"] = selfLink; | 4863 _json["selfLink"] = selfLink; |
| 4859 } | 4864 } |
| 4865 if (starred != null) { |
| 4866 _json["starred"] = starred; |
| 4867 } |
| 4860 if (updated != null) { | 4868 if (updated != null) { |
| 4861 _json["updated"] = (updated).toIso8601String(); | 4869 _json["updated"] = (updated).toIso8601String(); |
| 4862 } | 4870 } |
| 4863 return _json; | 4871 return _json; |
| 4864 } | 4872 } |
| 4865 } | 4873 } |
| 4866 | 4874 |
| 4867 /** JSON template for a linked account. */ | 4875 /** JSON template for a linked account. */ |
| 4868 class AccountRef { | 4876 class AccountRef { |
| 4869 /** Link for this account. */ | 4877 /** Link for this account. */ |
| (...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5007 * JSON template for an Analytics AccountSummary. An AccountSummary is a | 5015 * JSON template for an Analytics AccountSummary. An AccountSummary is a |
| 5008 * lightweight tree comprised of properties/profiles. | 5016 * lightweight tree comprised of properties/profiles. |
| 5009 */ | 5017 */ |
| 5010 class AccountSummary { | 5018 class AccountSummary { |
| 5011 /** Account ID. */ | 5019 /** Account ID. */ |
| 5012 core.String id; | 5020 core.String id; |
| 5013 /** Resource type for Analytics AccountSummary. */ | 5021 /** Resource type for Analytics AccountSummary. */ |
| 5014 core.String kind; | 5022 core.String kind; |
| 5015 /** Account name. */ | 5023 /** Account name. */ |
| 5016 core.String name; | 5024 core.String name; |
| 5025 /** Indicates whether this account is starred or not. */ |
| 5026 core.bool starred; |
| 5017 /** List of web properties under this account. */ | 5027 /** List of web properties under this account. */ |
| 5018 core.List<WebPropertySummary> webProperties; | 5028 core.List<WebPropertySummary> webProperties; |
| 5019 | 5029 |
| 5020 AccountSummary(); | 5030 AccountSummary(); |
| 5021 | 5031 |
| 5022 AccountSummary.fromJson(core.Map _json) { | 5032 AccountSummary.fromJson(core.Map _json) { |
| 5023 if (_json.containsKey("id")) { | 5033 if (_json.containsKey("id")) { |
| 5024 id = _json["id"]; | 5034 id = _json["id"]; |
| 5025 } | 5035 } |
| 5026 if (_json.containsKey("kind")) { | 5036 if (_json.containsKey("kind")) { |
| 5027 kind = _json["kind"]; | 5037 kind = _json["kind"]; |
| 5028 } | 5038 } |
| 5029 if (_json.containsKey("name")) { | 5039 if (_json.containsKey("name")) { |
| 5030 name = _json["name"]; | 5040 name = _json["name"]; |
| 5031 } | 5041 } |
| 5042 if (_json.containsKey("starred")) { |
| 5043 starred = _json["starred"]; |
| 5044 } |
| 5032 if (_json.containsKey("webProperties")) { | 5045 if (_json.containsKey("webProperties")) { |
| 5033 webProperties = _json["webProperties"].map((value) => new WebPropertySumma
ry.fromJson(value)).toList(); | 5046 webProperties = _json["webProperties"].map((value) => new WebPropertySumma
ry.fromJson(value)).toList(); |
| 5034 } | 5047 } |
| 5035 } | 5048 } |
| 5036 | 5049 |
| 5037 core.Map toJson() { | 5050 core.Map toJson() { |
| 5038 var _json = new core.Map(); | 5051 var _json = new core.Map(); |
| 5039 if (id != null) { | 5052 if (id != null) { |
| 5040 _json["id"] = id; | 5053 _json["id"] = id; |
| 5041 } | 5054 } |
| 5042 if (kind != null) { | 5055 if (kind != null) { |
| 5043 _json["kind"] = kind; | 5056 _json["kind"] = kind; |
| 5044 } | 5057 } |
| 5045 if (name != null) { | 5058 if (name != null) { |
| 5046 _json["name"] = name; | 5059 _json["name"] = name; |
| 5047 } | 5060 } |
| 5061 if (starred != null) { |
| 5062 _json["starred"] = starred; |
| 5063 } |
| 5048 if (webProperties != null) { | 5064 if (webProperties != null) { |
| 5049 _json["webProperties"] = webProperties.map((value) => (value).toJson()).to
List(); | 5065 _json["webProperties"] = webProperties.map((value) => (value).toJson()).to
List(); |
| 5050 } | 5066 } |
| 5051 return _json; | 5067 return _json; |
| 5052 } | 5068 } |
| 5053 } | 5069 } |
| 5054 | 5070 |
| 5055 /** | 5071 /** |
| 5056 * JSON template for an Analytics account ticket. The account ticket consists of | 5072 * JSON template for an Analytics account ticket. The account ticket consists of |
| 5057 * the ticket ID and the basic information for the account, property and | 5073 * the ticket ID and the basic information for the account, property and |
| (...skipping 4375 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 9433 */ | 9449 */ |
| 9434 ProfileParentLink parentLink; | 9450 ProfileParentLink parentLink; |
| 9435 /** Permissions the user has for this view (profile). */ | 9451 /** Permissions the user has for this view (profile). */ |
| 9436 ProfilePermissions permissions; | 9452 ProfilePermissions permissions; |
| 9437 /** Link for this view (profile). */ | 9453 /** Link for this view (profile). */ |
| 9438 core.String selfLink; | 9454 core.String selfLink; |
| 9439 /** Site search category parameters for this view (profile). */ | 9455 /** Site search category parameters for this view (profile). */ |
| 9440 core.String siteSearchCategoryParameters; | 9456 core.String siteSearchCategoryParameters; |
| 9441 /** The site search query parameters for this view (profile). */ | 9457 /** The site search query parameters for this view (profile). */ |
| 9442 core.String siteSearchQueryParameters; | 9458 core.String siteSearchQueryParameters; |
| 9459 /** Indicates whether this view (profile) is starred or not. */ |
| 9460 core.bool starred; |
| 9443 /** | 9461 /** |
| 9444 * Whether or not Analytics will strip search category parameters from the | 9462 * Whether or not Analytics will strip search category parameters from the |
| 9445 * URLs in your reports. | 9463 * URLs in your reports. |
| 9446 */ | 9464 */ |
| 9447 core.bool stripSiteSearchCategoryParameters; | 9465 core.bool stripSiteSearchCategoryParameters; |
| 9448 /** | 9466 /** |
| 9449 * Whether or not Analytics will strip search query parameters from the URLs | 9467 * Whether or not Analytics will strip search query parameters from the URLs |
| 9450 * in your reports. | 9468 * in your reports. |
| 9451 */ | 9469 */ |
| 9452 core.bool stripSiteSearchQueryParameters; | 9470 core.bool stripSiteSearchQueryParameters; |
| (...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 9517 } | 9535 } |
| 9518 if (_json.containsKey("selfLink")) { | 9536 if (_json.containsKey("selfLink")) { |
| 9519 selfLink = _json["selfLink"]; | 9537 selfLink = _json["selfLink"]; |
| 9520 } | 9538 } |
| 9521 if (_json.containsKey("siteSearchCategoryParameters")) { | 9539 if (_json.containsKey("siteSearchCategoryParameters")) { |
| 9522 siteSearchCategoryParameters = _json["siteSearchCategoryParameters"]; | 9540 siteSearchCategoryParameters = _json["siteSearchCategoryParameters"]; |
| 9523 } | 9541 } |
| 9524 if (_json.containsKey("siteSearchQueryParameters")) { | 9542 if (_json.containsKey("siteSearchQueryParameters")) { |
| 9525 siteSearchQueryParameters = _json["siteSearchQueryParameters"]; | 9543 siteSearchQueryParameters = _json["siteSearchQueryParameters"]; |
| 9526 } | 9544 } |
| 9545 if (_json.containsKey("starred")) { |
| 9546 starred = _json["starred"]; |
| 9547 } |
| 9527 if (_json.containsKey("stripSiteSearchCategoryParameters")) { | 9548 if (_json.containsKey("stripSiteSearchCategoryParameters")) { |
| 9528 stripSiteSearchCategoryParameters = _json["stripSiteSearchCategoryParamete
rs"]; | 9549 stripSiteSearchCategoryParameters = _json["stripSiteSearchCategoryParamete
rs"]; |
| 9529 } | 9550 } |
| 9530 if (_json.containsKey("stripSiteSearchQueryParameters")) { | 9551 if (_json.containsKey("stripSiteSearchQueryParameters")) { |
| 9531 stripSiteSearchQueryParameters = _json["stripSiteSearchQueryParameters"]; | 9552 stripSiteSearchQueryParameters = _json["stripSiteSearchQueryParameters"]; |
| 9532 } | 9553 } |
| 9533 if (_json.containsKey("timezone")) { | 9554 if (_json.containsKey("timezone")) { |
| 9534 timezone = _json["timezone"]; | 9555 timezone = _json["timezone"]; |
| 9535 } | 9556 } |
| 9536 if (_json.containsKey("type")) { | 9557 if (_json.containsKey("type")) { |
| (...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 9596 } | 9617 } |
| 9597 if (selfLink != null) { | 9618 if (selfLink != null) { |
| 9598 _json["selfLink"] = selfLink; | 9619 _json["selfLink"] = selfLink; |
| 9599 } | 9620 } |
| 9600 if (siteSearchCategoryParameters != null) { | 9621 if (siteSearchCategoryParameters != null) { |
| 9601 _json["siteSearchCategoryParameters"] = siteSearchCategoryParameters; | 9622 _json["siteSearchCategoryParameters"] = siteSearchCategoryParameters; |
| 9602 } | 9623 } |
| 9603 if (siteSearchQueryParameters != null) { | 9624 if (siteSearchQueryParameters != null) { |
| 9604 _json["siteSearchQueryParameters"] = siteSearchQueryParameters; | 9625 _json["siteSearchQueryParameters"] = siteSearchQueryParameters; |
| 9605 } | 9626 } |
| 9627 if (starred != null) { |
| 9628 _json["starred"] = starred; |
| 9629 } |
| 9606 if (stripSiteSearchCategoryParameters != null) { | 9630 if (stripSiteSearchCategoryParameters != null) { |
| 9607 _json["stripSiteSearchCategoryParameters"] = stripSiteSearchCategoryParame
ters; | 9631 _json["stripSiteSearchCategoryParameters"] = stripSiteSearchCategoryParame
ters; |
| 9608 } | 9632 } |
| 9609 if (stripSiteSearchQueryParameters != null) { | 9633 if (stripSiteSearchQueryParameters != null) { |
| 9610 _json["stripSiteSearchQueryParameters"] = stripSiteSearchQueryParameters; | 9634 _json["stripSiteSearchQueryParameters"] = stripSiteSearchQueryParameters; |
| 9611 } | 9635 } |
| 9612 if (timezone != null) { | 9636 if (timezone != null) { |
| 9613 _json["timezone"] = timezone; | 9637 _json["timezone"] = timezone; |
| 9614 } | 9638 } |
| 9615 if (type != null) { | 9639 if (type != null) { |
| (...skipping 256 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 9872 * JSON template for an Analytics ProfileSummary. ProfileSummary returns basic | 9896 * JSON template for an Analytics ProfileSummary. ProfileSummary returns basic |
| 9873 * information (i.e., summary) for a profile. | 9897 * information (i.e., summary) for a profile. |
| 9874 */ | 9898 */ |
| 9875 class ProfileSummary { | 9899 class ProfileSummary { |
| 9876 /** View (profile) ID. */ | 9900 /** View (profile) ID. */ |
| 9877 core.String id; | 9901 core.String id; |
| 9878 /** Resource type for Analytics ProfileSummary. */ | 9902 /** Resource type for Analytics ProfileSummary. */ |
| 9879 core.String kind; | 9903 core.String kind; |
| 9880 /** View (profile) name. */ | 9904 /** View (profile) name. */ |
| 9881 core.String name; | 9905 core.String name; |
| 9906 /** Indicates whether this view (profile) is starred or not. */ |
| 9907 core.bool starred; |
| 9882 /** View (Profile) type. Supported types: WEB or APP. */ | 9908 /** View (Profile) type. Supported types: WEB or APP. */ |
| 9883 core.String type; | 9909 core.String type; |
| 9884 | 9910 |
| 9885 ProfileSummary(); | 9911 ProfileSummary(); |
| 9886 | 9912 |
| 9887 ProfileSummary.fromJson(core.Map _json) { | 9913 ProfileSummary.fromJson(core.Map _json) { |
| 9888 if (_json.containsKey("id")) { | 9914 if (_json.containsKey("id")) { |
| 9889 id = _json["id"]; | 9915 id = _json["id"]; |
| 9890 } | 9916 } |
| 9891 if (_json.containsKey("kind")) { | 9917 if (_json.containsKey("kind")) { |
| 9892 kind = _json["kind"]; | 9918 kind = _json["kind"]; |
| 9893 } | 9919 } |
| 9894 if (_json.containsKey("name")) { | 9920 if (_json.containsKey("name")) { |
| 9895 name = _json["name"]; | 9921 name = _json["name"]; |
| 9896 } | 9922 } |
| 9923 if (_json.containsKey("starred")) { |
| 9924 starred = _json["starred"]; |
| 9925 } |
| 9897 if (_json.containsKey("type")) { | 9926 if (_json.containsKey("type")) { |
| 9898 type = _json["type"]; | 9927 type = _json["type"]; |
| 9899 } | 9928 } |
| 9900 } | 9929 } |
| 9901 | 9930 |
| 9902 core.Map toJson() { | 9931 core.Map toJson() { |
| 9903 var _json = new core.Map(); | 9932 var _json = new core.Map(); |
| 9904 if (id != null) { | 9933 if (id != null) { |
| 9905 _json["id"] = id; | 9934 _json["id"] = id; |
| 9906 } | 9935 } |
| 9907 if (kind != null) { | 9936 if (kind != null) { |
| 9908 _json["kind"] = kind; | 9937 _json["kind"] = kind; |
| 9909 } | 9938 } |
| 9910 if (name != null) { | 9939 if (name != null) { |
| 9911 _json["name"] = name; | 9940 _json["name"] = name; |
| 9912 } | 9941 } |
| 9942 if (starred != null) { |
| 9943 _json["starred"] = starred; |
| 9944 } |
| 9913 if (type != null) { | 9945 if (type != null) { |
| 9914 _json["type"] = type; | 9946 _json["type"] = type; |
| 9915 } | 9947 } |
| 9916 return _json; | 9948 return _json; |
| 9917 } | 9949 } |
| 9918 } | 9950 } |
| 9919 | 9951 |
| 9920 /** | 9952 /** |
| 9921 * A view (profile) collection lists Analytics views (profiles) to which the | 9953 * A view (profile) collection lists Analytics views (profiles) to which the |
| 9922 * user has access. Each resource in the collection corresponds to a single | 9954 * user has access. Each resource in the collection corresponds to a single |
| (...skipping 1115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 11038 /** Internal ID for this web property. */ | 11070 /** Internal ID for this web property. */ |
| 11039 core.String internalWebPropertyId; | 11071 core.String internalWebPropertyId; |
| 11040 /** Resource type for Analytics WebPropertySummary. */ | 11072 /** Resource type for Analytics WebPropertySummary. */ |
| 11041 core.String kind; | 11073 core.String kind; |
| 11042 /** Level for this web property. Possible values are STANDARD or PREMIUM. */ | 11074 /** Level for this web property. Possible values are STANDARD or PREMIUM. */ |
| 11043 core.String level; | 11075 core.String level; |
| 11044 /** Web property name. */ | 11076 /** Web property name. */ |
| 11045 core.String name; | 11077 core.String name; |
| 11046 /** List of profiles under this web property. */ | 11078 /** List of profiles under this web property. */ |
| 11047 core.List<ProfileSummary> profiles; | 11079 core.List<ProfileSummary> profiles; |
| 11080 /** Indicates whether this web property is starred or not. */ |
| 11081 core.bool starred; |
| 11048 /** Website url for this web property. */ | 11082 /** Website url for this web property. */ |
| 11049 core.String websiteUrl; | 11083 core.String websiteUrl; |
| 11050 | 11084 |
| 11051 WebPropertySummary(); | 11085 WebPropertySummary(); |
| 11052 | 11086 |
| 11053 WebPropertySummary.fromJson(core.Map _json) { | 11087 WebPropertySummary.fromJson(core.Map _json) { |
| 11054 if (_json.containsKey("id")) { | 11088 if (_json.containsKey("id")) { |
| 11055 id = _json["id"]; | 11089 id = _json["id"]; |
| 11056 } | 11090 } |
| 11057 if (_json.containsKey("internalWebPropertyId")) { | 11091 if (_json.containsKey("internalWebPropertyId")) { |
| 11058 internalWebPropertyId = _json["internalWebPropertyId"]; | 11092 internalWebPropertyId = _json["internalWebPropertyId"]; |
| 11059 } | 11093 } |
| 11060 if (_json.containsKey("kind")) { | 11094 if (_json.containsKey("kind")) { |
| 11061 kind = _json["kind"]; | 11095 kind = _json["kind"]; |
| 11062 } | 11096 } |
| 11063 if (_json.containsKey("level")) { | 11097 if (_json.containsKey("level")) { |
| 11064 level = _json["level"]; | 11098 level = _json["level"]; |
| 11065 } | 11099 } |
| 11066 if (_json.containsKey("name")) { | 11100 if (_json.containsKey("name")) { |
| 11067 name = _json["name"]; | 11101 name = _json["name"]; |
| 11068 } | 11102 } |
| 11069 if (_json.containsKey("profiles")) { | 11103 if (_json.containsKey("profiles")) { |
| 11070 profiles = _json["profiles"].map((value) => new ProfileSummary.fromJson(va
lue)).toList(); | 11104 profiles = _json["profiles"].map((value) => new ProfileSummary.fromJson(va
lue)).toList(); |
| 11071 } | 11105 } |
| 11106 if (_json.containsKey("starred")) { |
| 11107 starred = _json["starred"]; |
| 11108 } |
| 11072 if (_json.containsKey("websiteUrl")) { | 11109 if (_json.containsKey("websiteUrl")) { |
| 11073 websiteUrl = _json["websiteUrl"]; | 11110 websiteUrl = _json["websiteUrl"]; |
| 11074 } | 11111 } |
| 11075 } | 11112 } |
| 11076 | 11113 |
| 11077 core.Map toJson() { | 11114 core.Map toJson() { |
| 11078 var _json = new core.Map(); | 11115 var _json = new core.Map(); |
| 11079 if (id != null) { | 11116 if (id != null) { |
| 11080 _json["id"] = id; | 11117 _json["id"] = id; |
| 11081 } | 11118 } |
| 11082 if (internalWebPropertyId != null) { | 11119 if (internalWebPropertyId != null) { |
| 11083 _json["internalWebPropertyId"] = internalWebPropertyId; | 11120 _json["internalWebPropertyId"] = internalWebPropertyId; |
| 11084 } | 11121 } |
| 11085 if (kind != null) { | 11122 if (kind != null) { |
| 11086 _json["kind"] = kind; | 11123 _json["kind"] = kind; |
| 11087 } | 11124 } |
| 11088 if (level != null) { | 11125 if (level != null) { |
| 11089 _json["level"] = level; | 11126 _json["level"] = level; |
| 11090 } | 11127 } |
| 11091 if (name != null) { | 11128 if (name != null) { |
| 11092 _json["name"] = name; | 11129 _json["name"] = name; |
| 11093 } | 11130 } |
| 11094 if (profiles != null) { | 11131 if (profiles != null) { |
| 11095 _json["profiles"] = profiles.map((value) => (value).toJson()).toList(); | 11132 _json["profiles"] = profiles.map((value) => (value).toJson()).toList(); |
| 11096 } | 11133 } |
| 11134 if (starred != null) { |
| 11135 _json["starred"] = starred; |
| 11136 } |
| 11097 if (websiteUrl != null) { | 11137 if (websiteUrl != null) { |
| 11098 _json["websiteUrl"] = websiteUrl; | 11138 _json["websiteUrl"] = websiteUrl; |
| 11099 } | 11139 } |
| 11100 return _json; | 11140 return _json; |
| 11101 } | 11141 } |
| 11102 } | 11142 } |
| 11103 | 11143 |
| 11104 /** | 11144 /** |
| 11105 * A web property collection lists Analytics web properties to which the user | 11145 * A web property collection lists Analytics web properties to which the user |
| 11106 * has access. Each resource in the collection corresponds to a single Analytics | 11146 * has access. Each resource in the collection corresponds to a single Analytics |
| (...skipping 208 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 11315 * Parent link for this web property. Points to the account to which this web | 11355 * Parent link for this web property. Points to the account to which this web |
| 11316 * property belongs. | 11356 * property belongs. |
| 11317 */ | 11357 */ |
| 11318 WebpropertyParentLink parentLink; | 11358 WebpropertyParentLink parentLink; |
| 11319 /** Permissions the user has for this web property. */ | 11359 /** Permissions the user has for this web property. */ |
| 11320 WebpropertyPermissions permissions; | 11360 WebpropertyPermissions permissions; |
| 11321 /** View (Profile) count for this web property. */ | 11361 /** View (Profile) count for this web property. */ |
| 11322 core.int profileCount; | 11362 core.int profileCount; |
| 11323 /** Link for this web property. */ | 11363 /** Link for this web property. */ |
| 11324 core.String selfLink; | 11364 core.String selfLink; |
| 11365 /** Indicates whether this web property is starred or not. */ |
| 11366 core.bool starred; |
| 11325 /** Time this web property was last modified. */ | 11367 /** Time this web property was last modified. */ |
| 11326 core.DateTime updated; | 11368 core.DateTime updated; |
| 11327 /** Website url for this web property. */ | 11369 /** Website url for this web property. */ |
| 11328 core.String websiteUrl; | 11370 core.String websiteUrl; |
| 11329 | 11371 |
| 11330 Webproperty(); | 11372 Webproperty(); |
| 11331 | 11373 |
| 11332 Webproperty.fromJson(core.Map _json) { | 11374 Webproperty.fromJson(core.Map _json) { |
| 11333 if (_json.containsKey("accountId")) { | 11375 if (_json.containsKey("accountId")) { |
| 11334 accountId = _json["accountId"]; | 11376 accountId = _json["accountId"]; |
| (...skipping 30 matching lines...) Expand all Loading... |
| 11365 } | 11407 } |
| 11366 if (_json.containsKey("permissions")) { | 11408 if (_json.containsKey("permissions")) { |
| 11367 permissions = new WebpropertyPermissions.fromJson(_json["permissions"]); | 11409 permissions = new WebpropertyPermissions.fromJson(_json["permissions"]); |
| 11368 } | 11410 } |
| 11369 if (_json.containsKey("profileCount")) { | 11411 if (_json.containsKey("profileCount")) { |
| 11370 profileCount = _json["profileCount"]; | 11412 profileCount = _json["profileCount"]; |
| 11371 } | 11413 } |
| 11372 if (_json.containsKey("selfLink")) { | 11414 if (_json.containsKey("selfLink")) { |
| 11373 selfLink = _json["selfLink"]; | 11415 selfLink = _json["selfLink"]; |
| 11374 } | 11416 } |
| 11417 if (_json.containsKey("starred")) { |
| 11418 starred = _json["starred"]; |
| 11419 } |
| 11375 if (_json.containsKey("updated")) { | 11420 if (_json.containsKey("updated")) { |
| 11376 updated = core.DateTime.parse(_json["updated"]); | 11421 updated = core.DateTime.parse(_json["updated"]); |
| 11377 } | 11422 } |
| 11378 if (_json.containsKey("websiteUrl")) { | 11423 if (_json.containsKey("websiteUrl")) { |
| 11379 websiteUrl = _json["websiteUrl"]; | 11424 websiteUrl = _json["websiteUrl"]; |
| 11380 } | 11425 } |
| 11381 } | 11426 } |
| 11382 | 11427 |
| 11383 core.Map toJson() { | 11428 core.Map toJson() { |
| 11384 var _json = new core.Map(); | 11429 var _json = new core.Map(); |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 11417 } | 11462 } |
| 11418 if (permissions != null) { | 11463 if (permissions != null) { |
| 11419 _json["permissions"] = (permissions).toJson(); | 11464 _json["permissions"] = (permissions).toJson(); |
| 11420 } | 11465 } |
| 11421 if (profileCount != null) { | 11466 if (profileCount != null) { |
| 11422 _json["profileCount"] = profileCount; | 11467 _json["profileCount"] = profileCount; |
| 11423 } | 11468 } |
| 11424 if (selfLink != null) { | 11469 if (selfLink != null) { |
| 11425 _json["selfLink"] = selfLink; | 11470 _json["selfLink"] = selfLink; |
| 11426 } | 11471 } |
| 11472 if (starred != null) { |
| 11473 _json["starred"] = starred; |
| 11474 } |
| 11427 if (updated != null) { | 11475 if (updated != null) { |
| 11428 _json["updated"] = (updated).toIso8601String(); | 11476 _json["updated"] = (updated).toIso8601String(); |
| 11429 } | 11477 } |
| 11430 if (websiteUrl != null) { | 11478 if (websiteUrl != null) { |
| 11431 _json["websiteUrl"] = websiteUrl; | 11479 _json["websiteUrl"] = websiteUrl; |
| 11432 } | 11480 } |
| 11433 return _json; | 11481 return _json; |
| 11434 } | 11482 } |
| 11435 } | 11483 } |
| OLD | NEW |