|
711 | 711 | "https://www.googleapis.com/auth/analytics.readonly"
|
712 | 712 | ]
|
713 | 713 | },
|
| 714 | + "getDataRetentionSettings": { |
| 715 | + "description": "Returns the singleton data retention settings for this property.", |
| 716 | + "flatPath": "v1alpha/properties/{propertiesId}/dataRetentionSettings", |
| 717 | + "httpMethod": "GET", |
| 718 | + "id": "analyticsadmin.properties.getDataRetentionSettings", |
| 719 | + "parameterOrder": [ |
| 720 | + "name" |
| 721 | + ], |
| 722 | + "parameters": { |
| 723 | + "name": { |
| 724 | + "description": "Required. The name of the settings to lookup. Format: properties/{property}/dataRetentionSettings Example: \"properties/1000/dataRetentionSettings\"", |
| 725 | + "location": "path", |
| 726 | + "pattern": "^properties/[^/]+/dataRetentionSettings$", |
| 727 | + "required": true, |
| 728 | + "type": "string" |
| 729 | + } |
| 730 | + }, |
| 731 | + "path": "v1alpha/{+name}", |
| 732 | + "response": { |
| 733 | + "$ref": "GoogleAnalyticsAdminV1alphaDataRetentionSettings" |
| 734 | + }, |
| 735 | + "scopes": [ |
| 736 | + "https://www.googleapis.com/auth/analytics.edit", |
| 737 | + "https://www.googleapis.com/auth/analytics.readonly" |
| 738 | + ] |
| 739 | + }, |
714 | 740 | "getGoogleSignalsSettings": {
|
715 | 741 | "description": "Lookup for Google Signals settings for a property.",
|
716 | 742 | "flatPath": "v1alpha/properties/{propertiesId}/googleSignalsSettings",
|
|
809 | 835 | "https://www.googleapis.com/auth/analytics.edit"
|
810 | 836 | ]
|
811 | 837 | },
|
| 838 | + "updateDataRetentionSettings": { |
| 839 | + "description": "Updates the singleton data retention settings for this property.", |
| 840 | + "flatPath": "v1alpha/properties/{propertiesId}/dataRetentionSettings", |
| 841 | + "httpMethod": "PATCH", |
| 842 | + "id": "analyticsadmin.properties.updateDataRetentionSettings", |
| 843 | + "parameterOrder": [ |
| 844 | + "name" |
| 845 | + ], |
| 846 | + "parameters": { |
| 847 | + "name": { |
| 848 | + "description": "Output only. Resource name for this DataRetentionSetting resource. Format: properties/{property}/dataRetentionSettings", |
| 849 | + "location": "path", |
| 850 | + "pattern": "^properties/[^/]+/dataRetentionSettings$", |
| 851 | + "required": true, |
| 852 | + "type": "string" |
| 853 | + }, |
| 854 | + "updateMask": { |
| 855 | + "description": "Required. The list of fields to be updated. Field names must be in snake case (e.g., \"field_to_update\"). Omitted fields will not be updated. To replace the entire entity, use one path with the string \"*\" to match all fields.", |
| 856 | + "format": "google-fieldmask", |
| 857 | + "location": "query", |
| 858 | + "type": "string" |
| 859 | + } |
| 860 | + }, |
| 861 | + "path": "v1alpha/{+name}", |
| 862 | + "request": { |
| 863 | + "$ref": "GoogleAnalyticsAdminV1alphaDataRetentionSettings" |
| 864 | + }, |
| 865 | + "response": { |
| 866 | + "$ref": "GoogleAnalyticsAdminV1alphaDataRetentionSettings" |
| 867 | + }, |
| 868 | + "scopes": [ |
| 869 | + "https://www.googleapis.com/auth/analytics.edit" |
| 870 | + ] |
| 871 | + }, |
812 | 872 | "updateGoogleSignalsSettings": {
|
813 | 873 | "description": "Updates Google Signals settings for a property.",
|
814 | 874 | "flatPath": "v1alpha/properties/{propertiesId}/googleSignalsSettings",
|
|
3092 | 3152 | }
|
3093 | 3153 | }
|
3094 | 3154 | },
|
3095 |
| - "revision": "20210813", |
| 3155 | + "revision": "20210822", |
3096 | 3156 | "rootUrl": "https://analyticsadmin.googleapis.com/",
|
3097 | 3157 | "schemas": {
|
3098 | 3158 | "GoogleAnalyticsAdminV1alphaAccount": {
|
|
3440 | 3500 | "$ref": "GoogleAnalyticsAdminV1alphaCustomMetric",
|
3441 | 3501 | "description": "A snapshot of a CustomMetric resource in change history."
|
3442 | 3502 | },
|
| 3503 | + "dataRetentionSettings": { |
| 3504 | + "$ref": "GoogleAnalyticsAdminV1alphaDataRetentionSettings", |
| 3505 | + "description": "A snapshot of a data retention settings resource in change history." |
| 3506 | + }, |
3443 | 3507 | "displayVideo360AdvertiserLink": {
|
3444 | 3508 | "$ref": "GoogleAnalyticsAdminV1alphaDisplayVideo360AdvertiserLink",
|
3445 | 3509 | "description": "A snapshot of a DisplayVideo360AdvertiserLink resource in change history."
|
|
3685 | 3749 | },
|
3686 | 3750 | "type": "object"
|
3687 | 3751 | },
|
| 3752 | + "GoogleAnalyticsAdminV1alphaDataRetentionSettings": { |
| 3753 | + "description": "Settings values for data retention. This is a singleton resource.", |
| 3754 | + "id": "GoogleAnalyticsAdminV1alphaDataRetentionSettings", |
| 3755 | + "properties": { |
| 3756 | + "eventDataRetention": { |
| 3757 | + "description": "The length of time that event-level data is retained.", |
| 3758 | + "enum": [ |
| 3759 | + "RETENTION_DURATION_UNSPECIFIED", |
| 3760 | + "TWO_MONTHS", |
| 3761 | + "FOURTEEN_MONTHS", |
| 3762 | + "TWENTY_SIX_MONTHS", |
| 3763 | + "THIRTY_EIGHT_MONTHS", |
| 3764 | + "FIFTY_MONTHS" |
| 3765 | + ], |
| 3766 | + "enumDescriptions": [ |
| 3767 | + "Data retention time duration is not specified.", |
| 3768 | + "The data retention time duration is 2 months.", |
| 3769 | + "The data retention time duration is 14 months.", |
| 3770 | + "The data retention time duration is 26 months. Available to 360 properties only.", |
| 3771 | + "The data retention time duration is 38 months. Available to 360 properties only.", |
| 3772 | + "The data retention time duration is 50 months. Available to 360 properties only." |
| 3773 | + ], |
| 3774 | + "type": "string" |
| 3775 | + }, |
| 3776 | + "name": { |
| 3777 | + "description": "Output only. Resource name for this DataRetentionSetting resource. Format: properties/{property}/dataRetentionSettings", |
| 3778 | + "readOnly": true, |
| 3779 | + "type": "string" |
| 3780 | + }, |
| 3781 | + "resetUserDataOnNewActivity": { |
| 3782 | + "description": "If true, reset the retention period for the user identifier with every event from that user.", |
| 3783 | + "type": "boolean" |
| 3784 | + } |
| 3785 | + }, |
| 3786 | + "type": "object" |
| 3787 | + }, |
3688 | 3788 | "GoogleAnalyticsAdminV1alphaDataSharingSettings": {
|
3689 | 3789 | "description": "A resource message representing data sharing settings of a Google Analytics account.",
|
3690 | 3790 | "id": "GoogleAnalyticsAdminV1alphaDataSharingSettings",
|
|
4599 | 4699 | "CONVERSION_EVENT",
|
4600 | 4700 | "MEASUREMENT_PROTOCOL_SECRET",
|
4601 | 4701 | "CUSTOM_DIMENSION",
|
4602 |
| - "CUSTOM_METRIC" |
| 4702 | + "CUSTOM_METRIC", |
| 4703 | + "DATA_RETENTION_SETTINGS" |
4603 | 4704 | ],
|
4604 | 4705 | "enumDescriptions": [
|
4605 | 4706 | "Resource type unknown or not specified.",
|
|
4614 | 4715 | "ConversionEvent resource",
|
4615 | 4716 | "MeasurementProtocolSecret resource",
|
4616 | 4717 | "CustomDimension resource",
|
4617 |
| - "CustomMetric resource" |
| 4718 | + "CustomMetric resource", |
| 4719 | + "DataRetentionSettings resource" |
4618 | 4720 | ],
|
4619 | 4721 | "type": "string"
|
4620 | 4722 | },
|
|
0 commit comments