Skip to content

Commit 9d4dd10

Browse files
yoshi-automationsofisl
authored andcommitted
feat(analyticsadmin): update the API
#### analyticsadmin:v1alpha The following keys were added: - schemas.GoogleAnalyticsAdminV1alphaDataRetentionSettings.properties.userDataRetention.description - schemas.GoogleAnalyticsAdminV1alphaDataRetentionSettings.properties.userDataRetention.enum - schemas.GoogleAnalyticsAdminV1alphaDataRetentionSettings.properties.userDataRetention.enumDescriptions - schemas.GoogleAnalyticsAdminV1alphaDataRetentionSettings.properties.userDataRetention.type The following keys were changed: - resources.accounts.methods.searchChangeHistoryEvents.description - schemas.GoogleAnalyticsAdminV1alphaDataRetentionSettings.properties.eventDataRetention.description - schemas.GoogleAnalyticsAdminV1alphaDataRetentionSettings.properties.eventDataRetention.enumDescriptions - schemas.GoogleAnalyticsAdminV1alphaSearchChangeHistoryEventsRequest.properties.pageSize.description #### analyticsadmin:v1beta The following keys were added: - schemas.GoogleAnalyticsAdminV1betaDataRetentionSettings.properties.userDataRetention.description - schemas.GoogleAnalyticsAdminV1betaDataRetentionSettings.properties.userDataRetention.enum - schemas.GoogleAnalyticsAdminV1betaDataRetentionSettings.properties.userDataRetention.enumDescriptions - schemas.GoogleAnalyticsAdminV1betaDataRetentionSettings.properties.userDataRetention.type The following keys were changed: - resources.accounts.methods.searchChangeHistoryEvents.description - schemas.GoogleAnalyticsAdminV1betaDataRetentionSettings.properties.eventDataRetention.description - schemas.GoogleAnalyticsAdminV1betaDataRetentionSettings.properties.eventDataRetention.enumDescriptions - schemas.GoogleAnalyticsAdminV1betaSearchChangeHistoryEventsRequest.properties.pageSize.description - schemas.GoogleAnalyticsAdminV1betaSearchChangeHistoryEventsRequest.properties.resourceType.items.enum - schemas.GoogleAnalyticsAdminV1betaSearchChangeHistoryEventsRequest.properties.resourceType.items.enumDescriptions
1 parent 2707e6d commit 9d4dd10

File tree

4 files changed

+72
-20
lines changed

4 files changed

+72
-20
lines changed

‎discovery/analyticsadmin-v1alpha.json

Lines changed: 27 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -340,7 +340,7 @@
340340
]
341341
},
342342
"searchChangeHistoryEvents": {
343-
"description": "Searches through all changes to an account or its children given the specified set of filters.",
343+
"description": "Searches through all changes to an account or its children given the specified set of filters. Only returns the subset of changes supported by the API. The UI may return additional changes.",
344344
"flatPath": "v1alpha/accounts/{accountsId}:searchChangeHistoryEvents",
345345
"httpMethod": "POST",
346346
"id": "analyticsadmin.accounts.searchChangeHistoryEvents",
@@ -4886,7 +4886,7 @@
48864886
}
48874887
}
48884888
},
4889-
"revision": "20240929",
4889+
"revision": "20250114",
48904890
"rootUrl": "https://analyticsadmin.googleapis.com/",
48914891
"schemas": {
48924892
"GoogleAnalyticsAdminV1alphaAccessBetweenFilter": {
@@ -6818,7 +6818,7 @@
68186818
"id": "GoogleAnalyticsAdminV1alphaDataRetentionSettings",
68196819
"properties": {
68206820
"eventDataRetention": {
6821-
"description": "The length of time that event-level data is retained.",
6821+
"description": "Required. The length of time that event-level data is retained.",
68226822
"enum": [
68236823
"RETENTION_DURATION_UNSPECIFIED",
68246824
"TWO_MONTHS",
@@ -6831,9 +6831,9 @@
68316831
"Data retention time duration is not specified.",
68326832
"The data retention time duration is 2 months.",
68336833
"The data retention time duration is 14 months.",
6834-
"The data retention time duration is 26 months. Available to 360 properties only.",
6835-
"The data retention time duration is 38 months. Available to 360 properties only.",
6836-
"The data retention time duration is 50 months. Available to 360 properties only."
6834+
"The data retention time duration is 26 months. Available to 360 properties only. Available for event data only.",
6835+
"The data retention time duration is 38 months. Available to 360 properties only. Available for event data only.",
6836+
"The data retention time duration is 50 months. Available to 360 properties only. Available for event data only."
68376837
],
68386838
"type": "string"
68396839
},
@@ -6845,6 +6845,26 @@
68456845
"resetUserDataOnNewActivity": {
68466846
"description": "If true, reset the retention period for the user identifier with every event from that user.",
68476847
"type": "boolean"
6848+
},
6849+
"userDataRetention": {
6850+
"description": "Required. The length of time that user-level data is retained.",
6851+
"enum": [
6852+
"RETENTION_DURATION_UNSPECIFIED",
6853+
"TWO_MONTHS",
6854+
"FOURTEEN_MONTHS",
6855+
"TWENTY_SIX_MONTHS",
6856+
"THIRTY_EIGHT_MONTHS",
6857+
"FIFTY_MONTHS"
6858+
],
6859+
"enumDescriptions": [
6860+
"Data retention time duration is not specified.",
6861+
"The data retention time duration is 2 months.",
6862+
"The data retention time duration is 14 months.",
6863+
"The data retention time duration is 26 months. Available to 360 properties only. Available for event data only.",
6864+
"The data retention time duration is 38 months. Available to 360 properties only. Available for event data only.",
6865+
"The data retention time duration is 50 months. Available to 360 properties only. Available for event data only."
6866+
],
6867+
"type": "string"
68486868
}
68496869
},
68506870
"type": "object"
@@ -8774,7 +8794,7 @@
87748794
"type": "string"
87758795
},
87768796
"pageSize": {
8777-
"description": "Optional. The maximum number of ChangeHistoryEvent items to return. The service may return fewer than this value, even if there are additional pages. If unspecified, at most 50 items will be returned. The maximum value is 200 (higher values will be coerced to the maximum).",
8797+
"description": "Optional. The maximum number of ChangeHistoryEvent items to return. If unspecified, at most 50 items will be returned. The maximum value is 200 (higher values will be coerced to the maximum). Note that the service may return a page with fewer items than this value specifies (potentially even zero), and that there still may be additional pages. If you want a particular number of items, you'll need to continue requesting additional pages using `page_token` until you get the needed number.",
87788798
"format": "int32",
87798799
"type": "integer"
87808800
},

‎discovery/analyticsadmin-v1beta.json

Lines changed: 31 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -334,7 +334,7 @@
334334
]
335335
},
336336
"searchChangeHistoryEvents": {
337-
"description": "Searches through all changes to an account or its children given the specified set of filters.",
337+
"description": "Searches through all changes to an account or its children given the specified set of filters. Only returns the subset of changes supported by the API. The UI may return additional changes.",
338338
"flatPath": "v1beta/accounts/{accountsId}:searchChangeHistoryEvents",
339339
"httpMethod": "POST",
340340
"id": "analyticsadmin.accounts.searchChangeHistoryEvents",
@@ -1788,7 +1788,7 @@
17881788
}
17891789
}
17901790
},
1791-
"revision": "20240916",
1791+
"revision": "20250114",
17921792
"rootUrl": "https://analyticsadmin.googleapis.com/",
17931793
"schemas": {
17941794
"GoogleAnalyticsAdminV1betaAccessBetweenFilter": {
@@ -2575,7 +2575,7 @@
25752575
"id": "GoogleAnalyticsAdminV1betaDataRetentionSettings",
25762576
"properties": {
25772577
"eventDataRetention": {
2578-
"description": "The length of time that event-level data is retained.",
2578+
"description": "Required. The length of time that event-level data is retained.",
25792579
"enum": [
25802580
"RETENTION_DURATION_UNSPECIFIED",
25812581
"TWO_MONTHS",
@@ -2588,9 +2588,9 @@
25882588
"Data retention time duration is not specified.",
25892589
"The data retention time duration is 2 months.",
25902590
"The data retention time duration is 14 months.",
2591-
"The data retention time duration is 26 months. Available to 360 properties only.",
2592-
"The data retention time duration is 38 months. Available to 360 properties only.",
2593-
"The data retention time duration is 50 months. Available to 360 properties only."
2591+
"The data retention time duration is 26 months. Available to 360 properties only. Available for event data only.",
2592+
"The data retention time duration is 38 months. Available to 360 properties only. Available for event data only.",
2593+
"The data retention time duration is 50 months. Available to 360 properties only. Available for event data only."
25942594
],
25952595
"type": "string"
25962596
},
@@ -2602,6 +2602,26 @@
26022602
"resetUserDataOnNewActivity": {
26032603
"description": "If true, reset the retention period for the user identifier with every event from that user.",
26042604
"type": "boolean"
2605+
},
2606+
"userDataRetention": {
2607+
"description": "Required. The length of time that user-level data is retained.",
2608+
"enum": [
2609+
"RETENTION_DURATION_UNSPECIFIED",
2610+
"TWO_MONTHS",
2611+
"FOURTEEN_MONTHS",
2612+
"TWENTY_SIX_MONTHS",
2613+
"THIRTY_EIGHT_MONTHS",
2614+
"FIFTY_MONTHS"
2615+
],
2616+
"enumDescriptions": [
2617+
"Data retention time duration is not specified.",
2618+
"The data retention time duration is 2 months.",
2619+
"The data retention time duration is 14 months.",
2620+
"The data retention time duration is 26 months. Available to 360 properties only. Available for event data only.",
2621+
"The data retention time duration is 38 months. Available to 360 properties only. Available for event data only.",
2622+
"The data retention time duration is 50 months. Available to 360 properties only. Available for event data only."
2623+
],
2624+
"type": "string"
26052625
}
26062626
},
26072627
"type": "object"
@@ -3470,7 +3490,7 @@
34703490
"type": "string"
34713491
},
34723492
"pageSize": {
3473-
"description": "Optional. The maximum number of ChangeHistoryEvent items to return. The service may return fewer than this value, even if there are additional pages. If unspecified, at most 50 items will be returned. The maximum value is 200 (higher values will be coerced to the maximum).",
3493+
"description": "Optional. The maximum number of ChangeHistoryEvent items to return. If unspecified, at most 50 items will be returned. The maximum value is 200 (higher values will be coerced to the maximum). Note that the service may return a page with fewer items than this value specifies (potentially even zero), and that there still may be additional pages. If you want a particular number of items, you'll need to continue requesting additional pages using `page_token` until you get the needed number.",
34743494
"format": "int32",
34753495
"type": "integer"
34763496
},
@@ -3494,6 +3514,8 @@
34943514
"GOOGLE_SIGNALS_SETTINGS",
34953515
"CONVERSION_EVENT",
34963516
"MEASUREMENT_PROTOCOL_SECRET",
3517+
"CUSTOM_DIMENSION",
3518+
"CUSTOM_METRIC",
34973519
"DATA_RETENTION_SETTINGS",
34983520
"DISPLAY_VIDEO_360_ADVERTISER_LINK",
34993521
"DISPLAY_VIDEO_360_ADVERTISER_LINK_PROPOSAL",
@@ -3509,6 +3531,8 @@
35093531
"GoogleSignalsSettings resource",
35103532
"ConversionEvent resource",
35113533
"MeasurementProtocolSecret resource",
3534+
"CustomDimension resource",
3535+
"CustomMetric resource",
35123536
"DataRetentionSettings resource",
35133537
"DisplayVideo360AdvertiserLink resource",
35143538
"DisplayVideo360AdvertiserLinkProposal resource",

‎src/apis/analyticsadmin/v1alpha.ts

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1435,7 +1435,7 @@ export namespace analyticsadmin_v1alpha {
14351435
*/
14361436
export interface Schema$GoogleAnalyticsAdminV1alphaDataRetentionSettings {
14371437
/**
1438-
* The length of time that event-level data is retained.
1438+
* Required. The length of time that event-level data is retained.
14391439
*/
14401440
eventDataRetention?: string | null;
14411441
/**
@@ -1446,6 +1446,10 @@ export namespace analyticsadmin_v1alpha {
14461446
* If true, reset the retention period for the user identifier with every event from that user.
14471447
*/
14481448
resetUserDataOnNewActivity?: boolean | null;
1449+
/**
1450+
* Required. The length of time that user-level data is retained.
1451+
*/
1452+
userDataRetention?: string | null;
14491453
}
14501454
/**
14511455
* A resource message representing data sharing settings of a Google Analytics account.
@@ -2770,7 +2774,7 @@ export namespace analyticsadmin_v1alpha {
27702774
*/
27712775
latestChangeTime?: string | null;
27722776
/**
2773-
* Optional. The maximum number of ChangeHistoryEvent items to return. The service may return fewer than this value, even if there are additional pages. If unspecified, at most 50 items will be returned. The maximum value is 200 (higher values will be coerced to the maximum).
2777+
* Optional. The maximum number of ChangeHistoryEvent items to return. If unspecified, at most 50 items will be returned. The maximum value is 200 (higher values will be coerced to the maximum). Note that the service may return a page with fewer items than this value specifies (potentially even zero), and that there still may be additional pages. If you want a particular number of items, you'll need to continue requesting additional pages using `page_token` until you get the needed number.
27742778
*/
27752779
pageSize?: number | null;
27762780
/**
@@ -3615,7 +3619,7 @@ export namespace analyticsadmin_v1alpha {
36153619
}
36163620

36173621
/**
3618-
* Searches through all changes to an account or its children given the specified set of filters.
3622+
* Searches through all changes to an account or its children given the specified set of filters. Only returns the subset of changes supported by the API. The UI may return additional changes.
36193623
*
36203624
* @param params - Parameters for request
36213625
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.

‎src/apis/analyticsadmin/v1beta.ts

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -671,7 +671,7 @@ export namespace analyticsadmin_v1beta {
671671
*/
672672
export interface Schema$GoogleAnalyticsAdminV1betaDataRetentionSettings {
673673
/**
674-
* The length of time that event-level data is retained.
674+
* Required. The length of time that event-level data is retained.
675675
*/
676676
eventDataRetention?: string | null;
677677
/**
@@ -682,6 +682,10 @@ export namespace analyticsadmin_v1beta {
682682
* If true, reset the retention period for the user identifier with every event from that user.
683683
*/
684684
resetUserDataOnNewActivity?: boolean | null;
685+
/**
686+
* Required. The length of time that user-level data is retained.
687+
*/
688+
userDataRetention?: string | null;
685689
}
686690
/**
687691
* A resource message representing data sharing settings of a Google Analytics account.
@@ -1260,7 +1264,7 @@ export namespace analyticsadmin_v1beta {
12601264
*/
12611265
latestChangeTime?: string | null;
12621266
/**
1263-
* Optional. The maximum number of ChangeHistoryEvent items to return. The service may return fewer than this value, even if there are additional pages. If unspecified, at most 50 items will be returned. The maximum value is 200 (higher values will be coerced to the maximum).
1267+
* Optional. The maximum number of ChangeHistoryEvent items to return. If unspecified, at most 50 items will be returned. The maximum value is 200 (higher values will be coerced to the maximum). Note that the service may return a page with fewer items than this value specifies (potentially even zero), and that there still may be additional pages. If you want a particular number of items, you'll need to continue requesting additional pages using `page_token` until you get the needed number.
12641268
*/
12651269
pageSize?: number | null;
12661270
/**
@@ -1962,7 +1966,7 @@ export namespace analyticsadmin_v1beta {
19621966
}
19631967

19641968
/**
1965-
* Searches through all changes to an account or its children given the specified set of filters.
1969+
* Searches through all changes to an account or its children given the specified set of filters. Only returns the subset of changes supported by the API. The UI may return additional changes.
19661970
*
19671971
* @param params - Parameters for request
19681972
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.

0 commit comments

Comments
 (0)