@maxim_mazurok/gapi.client.analyticsadmin-v1beta 0.1.20260316 → 0.2.20260316

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/index.d.ts +288 -182
  2. package/package.json +1 -1
package/index.d.ts CHANGED
@@ -98,7 +98,13 @@ declare namespace gapi.client {
98
98
  }
99
99
  interface GoogleAnalyticsAdminV1betaAccessNumericFilter {
100
100
  /** The operation type for this filter. */
101
- operation?: string;
101
+ operation?:
102
+ | 'OPERATION_UNSPECIFIED'
103
+ | 'EQUAL'
104
+ | 'LESS_THAN'
105
+ | 'LESS_THAN_OR_EQUAL'
106
+ | 'GREATER_THAN'
107
+ | 'GREATER_THAN_OR_EQUAL';
102
108
  /** A numeric value or a date value. */
103
109
  value?: GoogleAnalyticsAdminV1betaNumericValue;
104
110
  }
@@ -114,7 +120,11 @@ declare namespace gapi.client {
114
120
  /** A dimension name in the request to order by. */
115
121
  dimensionName?: string;
116
122
  /** Controls the rule for dimension value ordering. */
117
- orderType?: string;
123
+ orderType?:
124
+ | 'ORDER_TYPE_UNSPECIFIED'
125
+ | 'ALPHANUMERIC'
126
+ | 'CASE_INSENSITIVE_ALPHANUMERIC'
127
+ | 'NUMERIC';
118
128
  }
119
129
  interface GoogleAnalyticsAdminV1betaAccessOrderByMetricOrderBy {
120
130
  /** A metric name in the request to order by. */
@@ -148,7 +158,14 @@ declare namespace gapi.client {
148
158
  /** If true, the string value is case sensitive. */
149
159
  caseSensitive?: boolean;
150
160
  /** The match type for this filter. */
151
- matchType?: string;
161
+ matchType?:
162
+ | 'MATCH_TYPE_UNSPECIFIED'
163
+ | 'EXACT'
164
+ | 'BEGINS_WITH'
165
+ | 'ENDS_WITH'
166
+ | 'CONTAINS'
167
+ | 'FULL_REGEXP'
168
+ | 'PARTIAL_REGEXP';
152
169
  /** The string value used for the matching. */
153
170
  value?: string;
154
171
  }
@@ -187,7 +204,7 @@ declare namespace gapi.client {
187
204
  interface GoogleAnalyticsAdminV1betaArchiveCustomMetricRequest {}
188
205
  interface GoogleAnalyticsAdminV1betaChangeHistoryChange {
189
206
  /** The type of action that changed this resource. */
190
- action?: string;
207
+ action?: 'ACTION_TYPE_UNSPECIFIED' | 'CREATED' | 'UPDATED' | 'DELETED';
191
208
  /** Resource name of the resource whose changes are described by this entry. */
192
209
  resource?: string;
193
210
  /** Resource contents from after the change was made. If this resource was deleted in this change, this field will be missing. */
@@ -215,7 +232,7 @@ declare namespace gapi.client {
215
232
  }
216
233
  interface GoogleAnalyticsAdminV1betaChangeHistoryEvent {
217
234
  /** The type of actor that made this change. */
218
- actorType?: string;
235
+ actorType?: 'ACTOR_TYPE_UNSPECIFIED' | 'USER' | 'SYSTEM' | 'SUPPORT';
219
236
  /** A list of changes made in this change history event that fit the filters specified in SearchChangeHistoryEventsRequest. */
220
237
  changes?: GoogleAnalyticsAdminV1betaChangeHistoryChange[];
221
238
  /** If true, then the list of changes returned was filtered, and does not represent all changes that occurred in this event. */
@@ -229,7 +246,10 @@ declare namespace gapi.client {
229
246
  }
230
247
  interface GoogleAnalyticsAdminV1betaConversionEvent {
231
248
  /** Optional. The method by which conversions will be counted across multiple events within a session. If this value is not provided, it will be set to `ONCE_PER_EVENT`. */
232
- countingMethod?: string;
249
+ countingMethod?:
250
+ | 'CONVERSION_COUNTING_METHOD_UNSPECIFIED'
251
+ | 'ONCE_PER_EVENT'
252
+ | 'ONCE_PER_SESSION';
233
253
  /** Output only. Time when this conversion event was created in the property. */
234
254
  createTime?: string;
235
255
  /** Output only. If set to true, this conversion event refers to a custom event. If set to false, this conversion event refers to a default event in GA. Default events typically have special meaning in GA. Default events are usually created for you by the GA system, but in some cases can be created by property admins. Custom events count towards the maximum number of custom conversion events that may be created per property. */
@@ -261,7 +281,7 @@ declare namespace gapi.client {
261
281
  /** Required. Immutable. Tagging parameter name for this custom dimension. If this is a user-scoped dimension, then this is the user property name. If this is an event-scoped dimension, then this is the event parameter name. If this is an item-scoped dimension, then this is the parameter name found in the eCommerce items array. May only contain alphanumeric and underscore characters, starting with a letter. Max length of 24 characters for user-scoped dimensions, 40 characters for event-scoped dimensions. */
262
282
  parameterName?: string;
263
283
  /** Required. Immutable. The scope of this dimension. */
264
- scope?: string;
284
+ scope?: 'DIMENSION_SCOPE_UNSPECIFIED' | 'EVENT' | 'USER' | 'ITEM';
265
285
  }
266
286
  interface GoogleAnalyticsAdminV1betaCustomMetric {
267
287
  /** Optional. Description for this custom dimension. Max length of 150 characters. */
@@ -269,25 +289,51 @@ declare namespace gapi.client {
269
289
  /** Required. Display name for this custom metric as shown in the Analytics UI. Max length of 82 characters, alphanumeric plus space and underscore starting with a letter. Legacy system-generated display names may contain square brackets, but updates to this field will never permit square brackets. */
270
290
  displayName?: string;
271
291
  /** Required. The type for the custom metric's value. */
272
- measurementUnit?: string;
292
+ measurementUnit?:
293
+ | 'MEASUREMENT_UNIT_UNSPECIFIED'
294
+ | 'STANDARD'
295
+ | 'CURRENCY'
296
+ | 'FEET'
297
+ | 'METERS'
298
+ | 'KILOMETERS'
299
+ | 'MILES'
300
+ | 'MILLISECONDS'
301
+ | 'SECONDS'
302
+ | 'MINUTES'
303
+ | 'HOURS';
273
304
  /** Output only. Resource name for this CustomMetric resource. Format: properties/{property}/customMetrics/{customMetric} */
274
305
  name?: string;
275
306
  /** Required. Immutable. Tagging name for this custom metric. If this is an event-scoped metric, then this is the event parameter name. May only contain alphanumeric and underscore charactes, starting with a letter. Max length of 40 characters for event-scoped metrics. */
276
307
  parameterName?: string;
277
308
  /** Optional. Types of restricted data that this metric may contain. Required for metrics with CURRENCY measurement unit. Must be empty for metrics with a non-CURRENCY measurement unit. */
278
- restrictedMetricType?: string[];
309
+ restrictedMetricType?:
310
+ | 'RESTRICTED_METRIC_TYPE_UNSPECIFIED'
311
+ | 'COST_DATA'
312
+ | 'REVENUE_DATA'[];
279
313
  /** Required. Immutable. The scope of this custom metric. */
280
- scope?: string;
314
+ scope?: 'METRIC_SCOPE_UNSPECIFIED' | 'EVENT';
281
315
  }
282
316
  interface GoogleAnalyticsAdminV1betaDataRetentionSettings {
283
317
  /** Required. The length of time that event-level data is retained. */
284
- eventDataRetention?: string;
318
+ eventDataRetention?:
319
+ | 'RETENTION_DURATION_UNSPECIFIED'
320
+ | 'TWO_MONTHS'
321
+ | 'FOURTEEN_MONTHS'
322
+ | 'TWENTY_SIX_MONTHS'
323
+ | 'THIRTY_EIGHT_MONTHS'
324
+ | 'FIFTY_MONTHS';
285
325
  /** Output only. Resource name for this DataRetentionSetting resource. Format: properties/{property}/dataRetentionSettings */
286
326
  name?: string;
287
327
  /** If true, reset the retention period for the user identifier with every event from that user. */
288
328
  resetUserDataOnNewActivity?: boolean;
289
329
  /** Required. The length of time that user-level data is retained. */
290
- userDataRetention?: string;
330
+ userDataRetention?:
331
+ | 'RETENTION_DURATION_UNSPECIFIED'
332
+ | 'TWO_MONTHS'
333
+ | 'FOURTEEN_MONTHS'
334
+ | 'TWENTY_SIX_MONTHS'
335
+ | 'THIRTY_EIGHT_MONTHS'
336
+ | 'FIFTY_MONTHS';
291
337
  }
292
338
  interface GoogleAnalyticsAdminV1betaDataSharingSettings {
293
339
  /** Output only. Resource name. Format: accounts/{account}/dataSharingSettings Example: "accounts/1000/dataSharingSettings" */
@@ -315,7 +361,11 @@ declare namespace gapi.client {
315
361
  /** Output only. Resource name of this Data Stream. Format: properties/{property_id}/dataStreams/{stream_id} Example: "properties/1000/dataStreams/2000" */
316
362
  name?: string;
317
363
  /** Required. Immutable. The type of this DataStream resource. */
318
- type?: string;
364
+ type?:
365
+ | 'DATA_STREAM_TYPE_UNSPECIFIED'
366
+ | 'WEB_DATA_STREAM'
367
+ | 'ANDROID_APP_DATA_STREAM'
368
+ | 'IOS_APP_DATA_STREAM';
319
369
  /** Output only. Time when stream payload fields were last updated. */
320
370
  updateTime?: string;
321
371
  /** Data specific to web streams. Must be populated if type is WEB_DATA_STREAM. */
@@ -367,7 +417,10 @@ declare namespace gapi.client {
367
417
  }
368
418
  interface GoogleAnalyticsAdminV1betaKeyEvent {
369
419
  /** Required. The method by which Key Events will be counted across multiple events within a session. */
370
- countingMethod?: string;
420
+ countingMethod?:
421
+ | 'COUNTING_METHOD_UNSPECIFIED'
422
+ | 'ONCE_PER_EVENT'
423
+ | 'ONCE_PER_SESSION';
371
424
  /** Output only. Time when this key event was created in the property. */
372
425
  createTime?: string;
373
426
  /** Output only. If set to true, this key event refers to a custom event. If set to false, this key event refers to a default event in GA. Default events typically have special meaning in GA. Default events are usually created for you by the GA system, but in some cases can be created by property admins. Custom events count towards the maximum number of custom key events that may be created per property. */
@@ -481,15 +534,49 @@ declare namespace gapi.client {
481
534
  /** Output only. If set, the time at which this trashed property will be permanently deleted. If not set, then this property is not currently in the trash can and is not slated to be deleted. */
482
535
  expireTime?: string;
483
536
  /** Industry associated with this property Example: AUTOMOTIVE, FOOD_AND_DRINK */
484
- industryCategory?: string;
537
+ industryCategory?:
538
+ | 'INDUSTRY_CATEGORY_UNSPECIFIED'
539
+ | 'AUTOMOTIVE'
540
+ | 'BUSINESS_AND_INDUSTRIAL_MARKETS'
541
+ | 'FINANCE'
542
+ | 'HEALTHCARE'
543
+ | 'TECHNOLOGY'
544
+ | 'TRAVEL'
545
+ | 'OTHER'
546
+ | 'ARTS_AND_ENTERTAINMENT'
547
+ | 'BEAUTY_AND_FITNESS'
548
+ | 'BOOKS_AND_LITERATURE'
549
+ | 'FOOD_AND_DRINK'
550
+ | 'GAMES'
551
+ | 'HOBBIES_AND_LEISURE'
552
+ | 'HOME_AND_GARDEN'
553
+ | 'INTERNET_AND_TELECOM'
554
+ | 'LAW_AND_GOVERNMENT'
555
+ | 'NEWS'
556
+ | 'ONLINE_COMMUNITIES'
557
+ | 'PEOPLE_AND_SOCIETY'
558
+ | 'PETS_AND_ANIMALS'
559
+ | 'REAL_ESTATE'
560
+ | 'REFERENCE'
561
+ | 'SCIENCE'
562
+ | 'SPORTS'
563
+ | 'JOBS_AND_EDUCATION'
564
+ | 'SHOPPING';
485
565
  /** Output only. Resource name of this property. Format: properties/{property_id} Example: "properties/1000" */
486
566
  name?: string;
487
567
  /** Immutable. Resource name of this property's logical parent. Note: The Property-Moving UI can be used to change the parent. Format: accounts/{account}, properties/{property} Example: "accounts/100", "properties/101" */
488
568
  parent?: string;
489
569
  /** Immutable. The property type for this Property resource. When creating a property, if the type is "PROPERTY_TYPE_UNSPECIFIED", then "ORDINARY_PROPERTY" will be implied. */
490
- propertyType?: string;
570
+ propertyType?:
571
+ | 'PROPERTY_TYPE_UNSPECIFIED'
572
+ | 'PROPERTY_TYPE_ORDINARY'
573
+ | 'PROPERTY_TYPE_SUBPROPERTY'
574
+ | 'PROPERTY_TYPE_ROLLUP';
491
575
  /** Output only. The Google Analytics service level that applies to this property. */
492
- serviceLevel?: string;
576
+ serviceLevel?:
577
+ | 'SERVICE_LEVEL_UNSPECIFIED'
578
+ | 'GOOGLE_ANALYTICS_STANDARD'
579
+ | 'GOOGLE_ANALYTICS_360';
493
580
  /** Required. Reporting Time Zone, used as the day boundary for reports, regardless of where the data originates. If the time zone honors DST, Analytics will automatically adjust for the changes. NOTE: Changing the time zone only affects data going forward, and is not applied retroactively. Format: https://www.iana.org/time-zones Example: "America/Los_Angeles" */
494
581
  timeZone?: string;
495
582
  /** Output only. Time when entity payload fields were last updated. */
@@ -503,7 +590,11 @@ declare namespace gapi.client {
503
590
  /** Resource name of property referred to by this property summary Format: properties/{property_id} Example: "properties/1000" */
504
591
  property?: string;
505
592
  /** The property's property type. */
506
- propertyType?: string;
593
+ propertyType?:
594
+ | 'PROPERTY_TYPE_UNSPECIFIED'
595
+ | 'PROPERTY_TYPE_ORDINARY'
596
+ | 'PROPERTY_TYPE_SUBPROPERTY'
597
+ | 'PROPERTY_TYPE_ROLLUP';
507
598
  }
508
599
  interface GoogleAnalyticsAdminV1betaProvisionAccountTicketRequest {
509
600
  /** The account to create. */
@@ -555,7 +646,7 @@ declare namespace gapi.client {
555
646
  }
556
647
  interface GoogleAnalyticsAdminV1betaSearchChangeHistoryEventsRequest {
557
648
  /** Optional. If set, only return changes that match one or more of these types of actions. */
558
- action?: string[];
649
+ action?: 'ACTION_TYPE_UNSPECIFIED' | 'CREATED' | 'UPDATED' | 'DELETED'[];
559
650
  /** Optional. If set, only return changes if they are made by a user in this list. */
560
651
  actorEmail?: string[];
561
652
  /** Optional. If set, only return changes made after this time (inclusive). */
@@ -569,7 +660,22 @@ declare namespace gapi.client {
569
660
  /** Optional. Resource name for a child property. If set, only return changes made to this property or its child resources. Format: properties/{propertyId} Example: `properties/100` */
570
661
  property?: string;
571
662
  /** Optional. If set, only return changes if they are for a resource that matches at least one of these types. */
572
- resourceType?: string[];
663
+ resourceType?:
664
+ | 'CHANGE_HISTORY_RESOURCE_TYPE_UNSPECIFIED'
665
+ | 'ACCOUNT'
666
+ | 'PROPERTY'
667
+ | 'FIREBASE_LINK'
668
+ | 'GOOGLE_ADS_LINK'
669
+ | 'GOOGLE_SIGNALS_SETTINGS'
670
+ | 'CONVERSION_EVENT'
671
+ | 'MEASUREMENT_PROTOCOL_SECRET'
672
+ | 'CUSTOM_DIMENSION'
673
+ | 'CUSTOM_METRIC'
674
+ | 'DATA_RETENTION_SETTINGS'
675
+ | 'DISPLAY_VIDEO_360_ADVERTISER_LINK'
676
+ | 'DISPLAY_VIDEO_360_ADVERTISER_LINK_PROPOSAL'
677
+ | 'DATA_STREAM'
678
+ | 'ATTRIBUTION_SETTINGS'[];
573
679
  }
574
680
  interface GoogleAnalyticsAdminV1betaSearchChangeHistoryEventsResponse {
575
681
  /** Results that were accessible to the caller. */
@@ -582,11 +688,11 @@ declare namespace gapi.client {
582
688
  /** Marks target Account as soft-deleted (ie: "trashed") and returns it. This API does not have a method to restore soft-deleted accounts. However, they can be restored using the Trash Can UI. If the accounts are not restored before the expiration time, the account and all child resources (eg: Properties, GoogleAdsLinks, Streams, AccessBindings) will be permanently purged. https://support.google.com/analytics/answer/6154772 Returns an error if the target is not found. */
583
689
  delete(request?: {
584
690
  /** V1 error format. */
585
- '$.xgafv'?: string;
691
+ '$.xgafv'?: '1' | '2';
586
692
  /** OAuth access token. */
587
693
  access_token?: string;
588
694
  /** Data format for response. */
589
- alt?: string;
695
+ alt?: 'json' | 'media' | 'proto';
590
696
  /** JSONP */
591
697
  callback?: string;
592
698
  /** Selector specifying which fields to include in a partial response. */
@@ -609,11 +715,11 @@ declare namespace gapi.client {
609
715
  /** Lookup for a single Account. */
610
716
  get(request?: {
611
717
  /** V1 error format. */
612
- '$.xgafv'?: string;
718
+ '$.xgafv'?: '1' | '2';
613
719
  /** OAuth access token. */
614
720
  access_token?: string;
615
721
  /** Data format for response. */
616
- alt?: string;
722
+ alt?: 'json' | 'media' | 'proto';
617
723
  /** JSONP */
618
724
  callback?: string;
619
725
  /** Selector specifying which fields to include in a partial response. */
@@ -636,11 +742,11 @@ declare namespace gapi.client {
636
742
  /** Get data sharing settings on an account. Data sharing settings are singletons. */
637
743
  getDataSharingSettings(request?: {
638
744
  /** V1 error format. */
639
- '$.xgafv'?: string;
745
+ '$.xgafv'?: '1' | '2';
640
746
  /** OAuth access token. */
641
747
  access_token?: string;
642
748
  /** Data format for response. */
643
- alt?: string;
749
+ alt?: 'json' | 'media' | 'proto';
644
750
  /** JSONP */
645
751
  callback?: string;
646
752
  /** Selector specifying which fields to include in a partial response. */
@@ -663,11 +769,11 @@ declare namespace gapi.client {
663
769
  /** Returns all accounts accessible by the caller. Note that these accounts might not currently have GA properties. Soft-deleted (ie: "trashed") accounts are excluded by default. Returns an empty list if no relevant accounts are found. */
664
770
  list(request?: {
665
771
  /** V1 error format. */
666
- '$.xgafv'?: string;
772
+ '$.xgafv'?: '1' | '2';
667
773
  /** OAuth access token. */
668
774
  access_token?: string;
669
775
  /** Data format for response. */
670
- alt?: string;
776
+ alt?: 'json' | 'media' | 'proto';
671
777
  /** JSONP */
672
778
  callback?: string;
673
779
  /** Selector specifying which fields to include in a partial response. */
@@ -694,11 +800,11 @@ declare namespace gapi.client {
694
800
  /** Updates an account. */
695
801
  patch(request: {
696
802
  /** V1 error format. */
697
- '$.xgafv'?: string;
803
+ '$.xgafv'?: '1' | '2';
698
804
  /** OAuth access token. */
699
805
  access_token?: string;
700
806
  /** Data format for response. */
701
- alt?: string;
807
+ alt?: 'json' | 'media' | 'proto';
702
808
  /** JSONP */
703
809
  callback?: string;
704
810
  /** Selector specifying which fields to include in a partial response. */
@@ -725,11 +831,11 @@ declare namespace gapi.client {
725
831
  patch(
726
832
  request: {
727
833
  /** V1 error format. */
728
- '$.xgafv'?: string;
834
+ '$.xgafv'?: '1' | '2';
729
835
  /** OAuth access token. */
730
836
  access_token?: string;
731
837
  /** Data format for response. */
732
- alt?: string;
838
+ alt?: 'json' | 'media' | 'proto';
733
839
  /** JSONP */
734
840
  callback?: string;
735
841
  /** Selector specifying which fields to include in a partial response. */
@@ -756,11 +862,11 @@ declare namespace gapi.client {
756
862
  /** Requests a ticket for creating an account. */
757
863
  provisionAccountTicket(request: {
758
864
  /** V1 error format. */
759
- '$.xgafv'?: string;
865
+ '$.xgafv'?: '1' | '2';
760
866
  /** OAuth access token. */
761
867
  access_token?: string;
762
868
  /** Data format for response. */
763
- alt?: string;
869
+ alt?: 'json' | 'media' | 'proto';
764
870
  /** JSONP */
765
871
  callback?: string;
766
872
  /** Selector specifying which fields to include in a partial response. */
@@ -783,11 +889,11 @@ declare namespace gapi.client {
783
889
  provisionAccountTicket(
784
890
  request: {
785
891
  /** V1 error format. */
786
- '$.xgafv'?: string;
892
+ '$.xgafv'?: '1' | '2';
787
893
  /** OAuth access token. */
788
894
  access_token?: string;
789
895
  /** Data format for response. */
790
- alt?: string;
896
+ alt?: 'json' | 'media' | 'proto';
791
897
  /** JSONP */
792
898
  callback?: string;
793
899
  /** Selector specifying which fields to include in a partial response. */
@@ -810,11 +916,11 @@ declare namespace gapi.client {
810
916
  /** Returns a customized report of data access records. The report provides records of each time a user reads Google Analytics reporting data. Access records are retained for up to 2 years. Data Access Reports can be requested for a property. Reports may be requested for any property, but dimensions that aren't related to quota can only be requested on Google Analytics 360 properties. This method is only available to Administrators. These data access records include GA UI Reporting, GA UI Explorations, GA Data API, and other products like Firebase & Admob that can retrieve data from Google Analytics through a linkage. These records don't include property configuration changes like adding a stream or changing a property's time zone. For configuration change history, see [searchChangeHistoryEvents](https://developers.google.com/analytics/devguides/config/admin/v1/rest/v1alpha/accounts/searchChangeHistoryEvents). To give your feedback on this API, complete the [Google Analytics Access Reports feedback](https://docs.google.com/forms/d/e/1FAIpQLSdmEBUrMzAEdiEKk5TV5dEHvDUZDRlgWYdQdAeSdtR4hVjEhw/viewform) form. */
811
917
  runAccessReport(request: {
812
918
  /** V1 error format. */
813
- '$.xgafv'?: string;
919
+ '$.xgafv'?: '1' | '2';
814
920
  /** OAuth access token. */
815
921
  access_token?: string;
816
922
  /** Data format for response. */
817
- alt?: string;
923
+ alt?: 'json' | 'media' | 'proto';
818
924
  /** JSONP */
819
925
  callback?: string;
820
926
  /** The Data Access Report supports requesting at the property level or account level. If requested at the account level, Data Access Reports include all access for all properties under that account. To request at the property level, entity should be for example 'properties/123' if "123" is your Google Analytics property ID. To request at the account level, entity should be for example 'accounts/1234' if "1234" is your Google Analytics Account ID. */
@@ -839,11 +945,11 @@ declare namespace gapi.client {
839
945
  runAccessReport(
840
946
  request: {
841
947
  /** V1 error format. */
842
- '$.xgafv'?: string;
948
+ '$.xgafv'?: '1' | '2';
843
949
  /** OAuth access token. */
844
950
  access_token?: string;
845
951
  /** Data format for response. */
846
- alt?: string;
952
+ alt?: 'json' | 'media' | 'proto';
847
953
  /** JSONP */
848
954
  callback?: string;
849
955
  /** The Data Access Report supports requesting at the property level or account level. If requested at the account level, Data Access Reports include all access for all properties under that account. To request at the property level, entity should be for example 'properties/123' if "123" is your Google Analytics property ID. To request at the account level, entity should be for example 'accounts/1234' if "1234" is your Google Analytics Account ID. */
@@ -868,13 +974,13 @@ declare namespace gapi.client {
868
974
  /** 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. */
869
975
  searchChangeHistoryEvents(request: {
870
976
  /** V1 error format. */
871
- '$.xgafv'?: string;
977
+ '$.xgafv'?: '1' | '2';
872
978
  /** OAuth access token. */
873
979
  access_token?: string;
874
980
  /** Required. The account resource for which to return change history resources. Format: accounts/{account} Example: `accounts/100` */
875
981
  account: string;
876
982
  /** Data format for response. */
877
- alt?: string;
983
+ alt?: 'json' | 'media' | 'proto';
878
984
  /** JSONP */
879
985
  callback?: string;
880
986
  /** Selector specifying which fields to include in a partial response. */
@@ -897,13 +1003,13 @@ declare namespace gapi.client {
897
1003
  searchChangeHistoryEvents(
898
1004
  request: {
899
1005
  /** V1 error format. */
900
- '$.xgafv'?: string;
1006
+ '$.xgafv'?: '1' | '2';
901
1007
  /** OAuth access token. */
902
1008
  access_token?: string;
903
1009
  /** Required. The account resource for which to return change history resources. Format: accounts/{account} Example: `accounts/100` */
904
1010
  account: string;
905
1011
  /** Data format for response. */
906
- alt?: string;
1012
+ alt?: 'json' | 'media' | 'proto';
907
1013
  /** JSONP */
908
1014
  callback?: string;
909
1015
  /** Selector specifying which fields to include in a partial response. */
@@ -928,11 +1034,11 @@ declare namespace gapi.client {
928
1034
  /** Returns summaries of all accounts accessible by the caller. */
929
1035
  list(request?: {
930
1036
  /** V1 error format. */
931
- '$.xgafv'?: string;
1037
+ '$.xgafv'?: '1' | '2';
932
1038
  /** OAuth access token. */
933
1039
  access_token?: string;
934
1040
  /** Data format for response. */
935
- alt?: string;
1041
+ alt?: 'json' | 'media' | 'proto';
936
1042
  /** JSONP */
937
1043
  callback?: string;
938
1044
  /** Selector specifying which fields to include in a partial response. */
@@ -959,11 +1065,11 @@ declare namespace gapi.client {
959
1065
  /** Deprecated: Use `CreateKeyEvent` instead. Creates a conversion event with the specified attributes. */
960
1066
  create(request: {
961
1067
  /** V1 error format. */
962
- '$.xgafv'?: string;
1068
+ '$.xgafv'?: '1' | '2';
963
1069
  /** OAuth access token. */
964
1070
  access_token?: string;
965
1071
  /** Data format for response. */
966
- alt?: string;
1072
+ alt?: 'json' | 'media' | 'proto';
967
1073
  /** JSONP */
968
1074
  callback?: string;
969
1075
  /** Selector specifying which fields to include in a partial response. */
@@ -988,11 +1094,11 @@ declare namespace gapi.client {
988
1094
  create(
989
1095
  request: {
990
1096
  /** V1 error format. */
991
- '$.xgafv'?: string;
1097
+ '$.xgafv'?: '1' | '2';
992
1098
  /** OAuth access token. */
993
1099
  access_token?: string;
994
1100
  /** Data format for response. */
995
- alt?: string;
1101
+ alt?: 'json' | 'media' | 'proto';
996
1102
  /** JSONP */
997
1103
  callback?: string;
998
1104
  /** Selector specifying which fields to include in a partial response. */
@@ -1017,11 +1123,11 @@ declare namespace gapi.client {
1017
1123
  /** Deprecated: Use `DeleteKeyEvent` instead. Deletes a conversion event in a property. */
1018
1124
  delete(request?: {
1019
1125
  /** V1 error format. */
1020
- '$.xgafv'?: string;
1126
+ '$.xgafv'?: '1' | '2';
1021
1127
  /** OAuth access token. */
1022
1128
  access_token?: string;
1023
1129
  /** Data format for response. */
1024
- alt?: string;
1130
+ alt?: 'json' | 'media' | 'proto';
1025
1131
  /** JSONP */
1026
1132
  callback?: string;
1027
1133
  /** Selector specifying which fields to include in a partial response. */
@@ -1044,11 +1150,11 @@ declare namespace gapi.client {
1044
1150
  /** Deprecated: Use `GetKeyEvent` instead. Retrieve a single conversion event. */
1045
1151
  get(request?: {
1046
1152
  /** V1 error format. */
1047
- '$.xgafv'?: string;
1153
+ '$.xgafv'?: '1' | '2';
1048
1154
  /** OAuth access token. */
1049
1155
  access_token?: string;
1050
1156
  /** Data format for response. */
1051
- alt?: string;
1157
+ alt?: 'json' | 'media' | 'proto';
1052
1158
  /** JSONP */
1053
1159
  callback?: string;
1054
1160
  /** Selector specifying which fields to include in a partial response. */
@@ -1071,11 +1177,11 @@ declare namespace gapi.client {
1071
1177
  /** Deprecated: Use `ListKeyEvents` instead. Returns a list of conversion events in the specified parent property. Returns an empty list if no conversion events are found. */
1072
1178
  list(request?: {
1073
1179
  /** V1 error format. */
1074
- '$.xgafv'?: string;
1180
+ '$.xgafv'?: '1' | '2';
1075
1181
  /** OAuth access token. */
1076
1182
  access_token?: string;
1077
1183
  /** Data format for response. */
1078
- alt?: string;
1184
+ alt?: 'json' | 'media' | 'proto';
1079
1185
  /** JSONP */
1080
1186
  callback?: string;
1081
1187
  /** Selector specifying which fields to include in a partial response. */
@@ -1102,11 +1208,11 @@ declare namespace gapi.client {
1102
1208
  /** Deprecated: Use `UpdateKeyEvent` instead. Updates a conversion event with the specified attributes. */
1103
1209
  patch(request: {
1104
1210
  /** V1 error format. */
1105
- '$.xgafv'?: string;
1211
+ '$.xgafv'?: '1' | '2';
1106
1212
  /** OAuth access token. */
1107
1213
  access_token?: string;
1108
1214
  /** Data format for response. */
1109
- alt?: string;
1215
+ alt?: 'json' | 'media' | 'proto';
1110
1216
  /** JSONP */
1111
1217
  callback?: string;
1112
1218
  /** Selector specifying which fields to include in a partial response. */
@@ -1133,11 +1239,11 @@ declare namespace gapi.client {
1133
1239
  patch(
1134
1240
  request: {
1135
1241
  /** V1 error format. */
1136
- '$.xgafv'?: string;
1242
+ '$.xgafv'?: '1' | '2';
1137
1243
  /** OAuth access token. */
1138
1244
  access_token?: string;
1139
1245
  /** Data format for response. */
1140
- alt?: string;
1246
+ alt?: 'json' | 'media' | 'proto';
1141
1247
  /** JSONP */
1142
1248
  callback?: string;
1143
1249
  /** Selector specifying which fields to include in a partial response. */
@@ -1166,11 +1272,11 @@ declare namespace gapi.client {
1166
1272
  /** Archives a CustomDimension on a property. */
1167
1273
  archive(request: {
1168
1274
  /** V1 error format. */
1169
- '$.xgafv'?: string;
1275
+ '$.xgafv'?: '1' | '2';
1170
1276
  /** OAuth access token. */
1171
1277
  access_token?: string;
1172
1278
  /** Data format for response. */
1173
- alt?: string;
1279
+ alt?: 'json' | 'media' | 'proto';
1174
1280
  /** JSONP */
1175
1281
  callback?: string;
1176
1282
  /** Selector specifying which fields to include in a partial response. */
@@ -1195,11 +1301,11 @@ declare namespace gapi.client {
1195
1301
  archive(
1196
1302
  request: {
1197
1303
  /** V1 error format. */
1198
- '$.xgafv'?: string;
1304
+ '$.xgafv'?: '1' | '2';
1199
1305
  /** OAuth access token. */
1200
1306
  access_token?: string;
1201
1307
  /** Data format for response. */
1202
- alt?: string;
1308
+ alt?: 'json' | 'media' | 'proto';
1203
1309
  /** JSONP */
1204
1310
  callback?: string;
1205
1311
  /** Selector specifying which fields to include in a partial response. */
@@ -1224,11 +1330,11 @@ declare namespace gapi.client {
1224
1330
  /** Creates a CustomDimension. */
1225
1331
  create(request: {
1226
1332
  /** V1 error format. */
1227
- '$.xgafv'?: string;
1333
+ '$.xgafv'?: '1' | '2';
1228
1334
  /** OAuth access token. */
1229
1335
  access_token?: string;
1230
1336
  /** Data format for response. */
1231
- alt?: string;
1337
+ alt?: 'json' | 'media' | 'proto';
1232
1338
  /** JSONP */
1233
1339
  callback?: string;
1234
1340
  /** Selector specifying which fields to include in a partial response. */
@@ -1253,11 +1359,11 @@ declare namespace gapi.client {
1253
1359
  create(
1254
1360
  request: {
1255
1361
  /** V1 error format. */
1256
- '$.xgafv'?: string;
1362
+ '$.xgafv'?: '1' | '2';
1257
1363
  /** OAuth access token. */
1258
1364
  access_token?: string;
1259
1365
  /** Data format for response. */
1260
- alt?: string;
1366
+ alt?: 'json' | 'media' | 'proto';
1261
1367
  /** JSONP */
1262
1368
  callback?: string;
1263
1369
  /** Selector specifying which fields to include in a partial response. */
@@ -1282,11 +1388,11 @@ declare namespace gapi.client {
1282
1388
  /** Lookup for a single CustomDimension. */
1283
1389
  get(request?: {
1284
1390
  /** V1 error format. */
1285
- '$.xgafv'?: string;
1391
+ '$.xgafv'?: '1' | '2';
1286
1392
  /** OAuth access token. */
1287
1393
  access_token?: string;
1288
1394
  /** Data format for response. */
1289
- alt?: string;
1395
+ alt?: 'json' | 'media' | 'proto';
1290
1396
  /** JSONP */
1291
1397
  callback?: string;
1292
1398
  /** Selector specifying which fields to include in a partial response. */
@@ -1309,11 +1415,11 @@ declare namespace gapi.client {
1309
1415
  /** Lists CustomDimensions on a property. */
1310
1416
  list(request?: {
1311
1417
  /** V1 error format. */
1312
- '$.xgafv'?: string;
1418
+ '$.xgafv'?: '1' | '2';
1313
1419
  /** OAuth access token. */
1314
1420
  access_token?: string;
1315
1421
  /** Data format for response. */
1316
- alt?: string;
1422
+ alt?: 'json' | 'media' | 'proto';
1317
1423
  /** JSONP */
1318
1424
  callback?: string;
1319
1425
  /** Selector specifying which fields to include in a partial response. */
@@ -1340,11 +1446,11 @@ declare namespace gapi.client {
1340
1446
  /** Updates a CustomDimension on a property. */
1341
1447
  patch(request: {
1342
1448
  /** V1 error format. */
1343
- '$.xgafv'?: string;
1449
+ '$.xgafv'?: '1' | '2';
1344
1450
  /** OAuth access token. */
1345
1451
  access_token?: string;
1346
1452
  /** Data format for response. */
1347
- alt?: string;
1453
+ alt?: 'json' | 'media' | 'proto';
1348
1454
  /** JSONP */
1349
1455
  callback?: string;
1350
1456
  /** Selector specifying which fields to include in a partial response. */
@@ -1371,11 +1477,11 @@ declare namespace gapi.client {
1371
1477
  patch(
1372
1478
  request: {
1373
1479
  /** V1 error format. */
1374
- '$.xgafv'?: string;
1480
+ '$.xgafv'?: '1' | '2';
1375
1481
  /** OAuth access token. */
1376
1482
  access_token?: string;
1377
1483
  /** Data format for response. */
1378
- alt?: string;
1484
+ alt?: 'json' | 'media' | 'proto';
1379
1485
  /** JSONP */
1380
1486
  callback?: string;
1381
1487
  /** Selector specifying which fields to include in a partial response. */
@@ -1404,11 +1510,11 @@ declare namespace gapi.client {
1404
1510
  /** Archives a CustomMetric on a property. */
1405
1511
  archive(request: {
1406
1512
  /** V1 error format. */
1407
- '$.xgafv'?: string;
1513
+ '$.xgafv'?: '1' | '2';
1408
1514
  /** OAuth access token. */
1409
1515
  access_token?: string;
1410
1516
  /** Data format for response. */
1411
- alt?: string;
1517
+ alt?: 'json' | 'media' | 'proto';
1412
1518
  /** JSONP */
1413
1519
  callback?: string;
1414
1520
  /** Selector specifying which fields to include in a partial response. */
@@ -1433,11 +1539,11 @@ declare namespace gapi.client {
1433
1539
  archive(
1434
1540
  request: {
1435
1541
  /** V1 error format. */
1436
- '$.xgafv'?: string;
1542
+ '$.xgafv'?: '1' | '2';
1437
1543
  /** OAuth access token. */
1438
1544
  access_token?: string;
1439
1545
  /** Data format for response. */
1440
- alt?: string;
1546
+ alt?: 'json' | 'media' | 'proto';
1441
1547
  /** JSONP */
1442
1548
  callback?: string;
1443
1549
  /** Selector specifying which fields to include in a partial response. */
@@ -1462,11 +1568,11 @@ declare namespace gapi.client {
1462
1568
  /** Creates a CustomMetric. */
1463
1569
  create(request: {
1464
1570
  /** V1 error format. */
1465
- '$.xgafv'?: string;
1571
+ '$.xgafv'?: '1' | '2';
1466
1572
  /** OAuth access token. */
1467
1573
  access_token?: string;
1468
1574
  /** Data format for response. */
1469
- alt?: string;
1575
+ alt?: 'json' | 'media' | 'proto';
1470
1576
  /** JSONP */
1471
1577
  callback?: string;
1472
1578
  /** Selector specifying which fields to include in a partial response. */
@@ -1491,11 +1597,11 @@ declare namespace gapi.client {
1491
1597
  create(
1492
1598
  request: {
1493
1599
  /** V1 error format. */
1494
- '$.xgafv'?: string;
1600
+ '$.xgafv'?: '1' | '2';
1495
1601
  /** OAuth access token. */
1496
1602
  access_token?: string;
1497
1603
  /** Data format for response. */
1498
- alt?: string;
1604
+ alt?: 'json' | 'media' | 'proto';
1499
1605
  /** JSONP */
1500
1606
  callback?: string;
1501
1607
  /** Selector specifying which fields to include in a partial response. */
@@ -1520,11 +1626,11 @@ declare namespace gapi.client {
1520
1626
  /** Lookup for a single CustomMetric. */
1521
1627
  get(request?: {
1522
1628
  /** V1 error format. */
1523
- '$.xgafv'?: string;
1629
+ '$.xgafv'?: '1' | '2';
1524
1630
  /** OAuth access token. */
1525
1631
  access_token?: string;
1526
1632
  /** Data format for response. */
1527
- alt?: string;
1633
+ alt?: 'json' | 'media' | 'proto';
1528
1634
  /** JSONP */
1529
1635
  callback?: string;
1530
1636
  /** Selector specifying which fields to include in a partial response. */
@@ -1547,11 +1653,11 @@ declare namespace gapi.client {
1547
1653
  /** Lists CustomMetrics on a property. */
1548
1654
  list(request?: {
1549
1655
  /** V1 error format. */
1550
- '$.xgafv'?: string;
1656
+ '$.xgafv'?: '1' | '2';
1551
1657
  /** OAuth access token. */
1552
1658
  access_token?: string;
1553
1659
  /** Data format for response. */
1554
- alt?: string;
1660
+ alt?: 'json' | 'media' | 'proto';
1555
1661
  /** JSONP */
1556
1662
  callback?: string;
1557
1663
  /** Selector specifying which fields to include in a partial response. */
@@ -1578,11 +1684,11 @@ declare namespace gapi.client {
1578
1684
  /** Updates a CustomMetric on a property. */
1579
1685
  patch(request: {
1580
1686
  /** V1 error format. */
1581
- '$.xgafv'?: string;
1687
+ '$.xgafv'?: '1' | '2';
1582
1688
  /** OAuth access token. */
1583
1689
  access_token?: string;
1584
1690
  /** Data format for response. */
1585
- alt?: string;
1691
+ alt?: 'json' | 'media' | 'proto';
1586
1692
  /** JSONP */
1587
1693
  callback?: string;
1588
1694
  /** Selector specifying which fields to include in a partial response. */
@@ -1609,11 +1715,11 @@ declare namespace gapi.client {
1609
1715
  patch(
1610
1716
  request: {
1611
1717
  /** V1 error format. */
1612
- '$.xgafv'?: string;
1718
+ '$.xgafv'?: '1' | '2';
1613
1719
  /** OAuth access token. */
1614
1720
  access_token?: string;
1615
1721
  /** Data format for response. */
1616
- alt?: string;
1722
+ alt?: 'json' | 'media' | 'proto';
1617
1723
  /** JSONP */
1618
1724
  callback?: string;
1619
1725
  /** Selector specifying which fields to include in a partial response. */
@@ -1642,11 +1748,11 @@ declare namespace gapi.client {
1642
1748
  /** Creates a measurement protocol secret. */
1643
1749
  create(request: {
1644
1750
  /** V1 error format. */
1645
- '$.xgafv'?: string;
1751
+ '$.xgafv'?: '1' | '2';
1646
1752
  /** OAuth access token. */
1647
1753
  access_token?: string;
1648
1754
  /** Data format for response. */
1649
- alt?: string;
1755
+ alt?: 'json' | 'media' | 'proto';
1650
1756
  /** JSONP */
1651
1757
  callback?: string;
1652
1758
  /** Selector specifying which fields to include in a partial response. */
@@ -1671,11 +1777,11 @@ declare namespace gapi.client {
1671
1777
  create(
1672
1778
  request: {
1673
1779
  /** V1 error format. */
1674
- '$.xgafv'?: string;
1780
+ '$.xgafv'?: '1' | '2';
1675
1781
  /** OAuth access token. */
1676
1782
  access_token?: string;
1677
1783
  /** Data format for response. */
1678
- alt?: string;
1784
+ alt?: 'json' | 'media' | 'proto';
1679
1785
  /** JSONP */
1680
1786
  callback?: string;
1681
1787
  /** Selector specifying which fields to include in a partial response. */
@@ -1700,11 +1806,11 @@ declare namespace gapi.client {
1700
1806
  /** Deletes target MeasurementProtocolSecret. */
1701
1807
  delete(request?: {
1702
1808
  /** V1 error format. */
1703
- '$.xgafv'?: string;
1809
+ '$.xgafv'?: '1' | '2';
1704
1810
  /** OAuth access token. */
1705
1811
  access_token?: string;
1706
1812
  /** Data format for response. */
1707
- alt?: string;
1813
+ alt?: 'json' | 'media' | 'proto';
1708
1814
  /** JSONP */
1709
1815
  callback?: string;
1710
1816
  /** Selector specifying which fields to include in a partial response. */
@@ -1727,11 +1833,11 @@ declare namespace gapi.client {
1727
1833
  /** Lookup for a single MeasurementProtocolSecret. */
1728
1834
  get(request?: {
1729
1835
  /** V1 error format. */
1730
- '$.xgafv'?: string;
1836
+ '$.xgafv'?: '1' | '2';
1731
1837
  /** OAuth access token. */
1732
1838
  access_token?: string;
1733
1839
  /** Data format for response. */
1734
- alt?: string;
1840
+ alt?: 'json' | 'media' | 'proto';
1735
1841
  /** JSONP */
1736
1842
  callback?: string;
1737
1843
  /** Selector specifying which fields to include in a partial response. */
@@ -1754,11 +1860,11 @@ declare namespace gapi.client {
1754
1860
  /** Returns child MeasurementProtocolSecrets under the specified parent Property. */
1755
1861
  list(request?: {
1756
1862
  /** V1 error format. */
1757
- '$.xgafv'?: string;
1863
+ '$.xgafv'?: '1' | '2';
1758
1864
  /** OAuth access token. */
1759
1865
  access_token?: string;
1760
1866
  /** Data format for response. */
1761
- alt?: string;
1867
+ alt?: 'json' | 'media' | 'proto';
1762
1868
  /** JSONP */
1763
1869
  callback?: string;
1764
1870
  /** Selector specifying which fields to include in a partial response. */
@@ -1785,11 +1891,11 @@ declare namespace gapi.client {
1785
1891
  /** Updates a measurement protocol secret. */
1786
1892
  patch(request: {
1787
1893
  /** V1 error format. */
1788
- '$.xgafv'?: string;
1894
+ '$.xgafv'?: '1' | '2';
1789
1895
  /** OAuth access token. */
1790
1896
  access_token?: string;
1791
1897
  /** Data format for response. */
1792
- alt?: string;
1898
+ alt?: 'json' | 'media' | 'proto';
1793
1899
  /** JSONP */
1794
1900
  callback?: string;
1795
1901
  /** Selector specifying which fields to include in a partial response. */
@@ -1816,11 +1922,11 @@ declare namespace gapi.client {
1816
1922
  patch(
1817
1923
  request: {
1818
1924
  /** V1 error format. */
1819
- '$.xgafv'?: string;
1925
+ '$.xgafv'?: '1' | '2';
1820
1926
  /** OAuth access token. */
1821
1927
  access_token?: string;
1822
1928
  /** Data format for response. */
1823
- alt?: string;
1929
+ alt?: 'json' | 'media' | 'proto';
1824
1930
  /** JSONP */
1825
1931
  callback?: string;
1826
1932
  /** Selector specifying which fields to include in a partial response. */
@@ -1849,11 +1955,11 @@ declare namespace gapi.client {
1849
1955
  /** Creates a DataStream. */
1850
1956
  create(request: {
1851
1957
  /** V1 error format. */
1852
- '$.xgafv'?: string;
1958
+ '$.xgafv'?: '1' | '2';
1853
1959
  /** OAuth access token. */
1854
1960
  access_token?: string;
1855
1961
  /** Data format for response. */
1856
- alt?: string;
1962
+ alt?: 'json' | 'media' | 'proto';
1857
1963
  /** JSONP */
1858
1964
  callback?: string;
1859
1965
  /** Selector specifying which fields to include in a partial response. */
@@ -1878,11 +1984,11 @@ declare namespace gapi.client {
1878
1984
  create(
1879
1985
  request: {
1880
1986
  /** V1 error format. */
1881
- '$.xgafv'?: string;
1987
+ '$.xgafv'?: '1' | '2';
1882
1988
  /** OAuth access token. */
1883
1989
  access_token?: string;
1884
1990
  /** Data format for response. */
1885
- alt?: string;
1991
+ alt?: 'json' | 'media' | 'proto';
1886
1992
  /** JSONP */
1887
1993
  callback?: string;
1888
1994
  /** Selector specifying which fields to include in a partial response. */
@@ -1907,11 +2013,11 @@ declare namespace gapi.client {
1907
2013
  /** Deletes a DataStream on a property. */
1908
2014
  delete(request?: {
1909
2015
  /** V1 error format. */
1910
- '$.xgafv'?: string;
2016
+ '$.xgafv'?: '1' | '2';
1911
2017
  /** OAuth access token. */
1912
2018
  access_token?: string;
1913
2019
  /** Data format for response. */
1914
- alt?: string;
2020
+ alt?: 'json' | 'media' | 'proto';
1915
2021
  /** JSONP */
1916
2022
  callback?: string;
1917
2023
  /** Selector specifying which fields to include in a partial response. */
@@ -1934,11 +2040,11 @@ declare namespace gapi.client {
1934
2040
  /** Lookup for a single DataStream. */
1935
2041
  get(request?: {
1936
2042
  /** V1 error format. */
1937
- '$.xgafv'?: string;
2043
+ '$.xgafv'?: '1' | '2';
1938
2044
  /** OAuth access token. */
1939
2045
  access_token?: string;
1940
2046
  /** Data format for response. */
1941
- alt?: string;
2047
+ alt?: 'json' | 'media' | 'proto';
1942
2048
  /** JSONP */
1943
2049
  callback?: string;
1944
2050
  /** Selector specifying which fields to include in a partial response. */
@@ -1961,11 +2067,11 @@ declare namespace gapi.client {
1961
2067
  /** Lists DataStreams on a property. */
1962
2068
  list(request?: {
1963
2069
  /** V1 error format. */
1964
- '$.xgafv'?: string;
2070
+ '$.xgafv'?: '1' | '2';
1965
2071
  /** OAuth access token. */
1966
2072
  access_token?: string;
1967
2073
  /** Data format for response. */
1968
- alt?: string;
2074
+ alt?: 'json' | 'media' | 'proto';
1969
2075
  /** JSONP */
1970
2076
  callback?: string;
1971
2077
  /** Selector specifying which fields to include in a partial response. */
@@ -1992,11 +2098,11 @@ declare namespace gapi.client {
1992
2098
  /** Updates a DataStream on a property. */
1993
2099
  patch(request: {
1994
2100
  /** V1 error format. */
1995
- '$.xgafv'?: string;
2101
+ '$.xgafv'?: '1' | '2';
1996
2102
  /** OAuth access token. */
1997
2103
  access_token?: string;
1998
2104
  /** Data format for response. */
1999
- alt?: string;
2105
+ alt?: 'json' | 'media' | 'proto';
2000
2106
  /** JSONP */
2001
2107
  callback?: string;
2002
2108
  /** Selector specifying which fields to include in a partial response. */
@@ -2023,11 +2129,11 @@ declare namespace gapi.client {
2023
2129
  patch(
2024
2130
  request: {
2025
2131
  /** V1 error format. */
2026
- '$.xgafv'?: string;
2132
+ '$.xgafv'?: '1' | '2';
2027
2133
  /** OAuth access token. */
2028
2134
  access_token?: string;
2029
2135
  /** Data format for response. */
2030
- alt?: string;
2136
+ alt?: 'json' | 'media' | 'proto';
2031
2137
  /** JSONP */
2032
2138
  callback?: string;
2033
2139
  /** Selector specifying which fields to include in a partial response. */
@@ -2057,11 +2163,11 @@ declare namespace gapi.client {
2057
2163
  /** Creates a FirebaseLink. Properties can have at most one FirebaseLink. */
2058
2164
  create(request: {
2059
2165
  /** V1 error format. */
2060
- '$.xgafv'?: string;
2166
+ '$.xgafv'?: '1' | '2';
2061
2167
  /** OAuth access token. */
2062
2168
  access_token?: string;
2063
2169
  /** Data format for response. */
2064
- alt?: string;
2170
+ alt?: 'json' | 'media' | 'proto';
2065
2171
  /** JSONP */
2066
2172
  callback?: string;
2067
2173
  /** Selector specifying which fields to include in a partial response. */
@@ -2086,11 +2192,11 @@ declare namespace gapi.client {
2086
2192
  create(
2087
2193
  request: {
2088
2194
  /** V1 error format. */
2089
- '$.xgafv'?: string;
2195
+ '$.xgafv'?: '1' | '2';
2090
2196
  /** OAuth access token. */
2091
2197
  access_token?: string;
2092
2198
  /** Data format for response. */
2093
- alt?: string;
2199
+ alt?: 'json' | 'media' | 'proto';
2094
2200
  /** JSONP */
2095
2201
  callback?: string;
2096
2202
  /** Selector specifying which fields to include in a partial response. */
@@ -2115,11 +2221,11 @@ declare namespace gapi.client {
2115
2221
  /** Deletes a FirebaseLink on a property */
2116
2222
  delete(request?: {
2117
2223
  /** V1 error format. */
2118
- '$.xgafv'?: string;
2224
+ '$.xgafv'?: '1' | '2';
2119
2225
  /** OAuth access token. */
2120
2226
  access_token?: string;
2121
2227
  /** Data format for response. */
2122
- alt?: string;
2228
+ alt?: 'json' | 'media' | 'proto';
2123
2229
  /** JSONP */
2124
2230
  callback?: string;
2125
2231
  /** Selector specifying which fields to include in a partial response. */
@@ -2142,11 +2248,11 @@ declare namespace gapi.client {
2142
2248
  /** Lists FirebaseLinks on a property. Properties can have at most one FirebaseLink. */
2143
2249
  list(request?: {
2144
2250
  /** V1 error format. */
2145
- '$.xgafv'?: string;
2251
+ '$.xgafv'?: '1' | '2';
2146
2252
  /** OAuth access token. */
2147
2253
  access_token?: string;
2148
2254
  /** Data format for response. */
2149
- alt?: string;
2255
+ alt?: 'json' | 'media' | 'proto';
2150
2256
  /** JSONP */
2151
2257
  callback?: string;
2152
2258
  /** Selector specifying which fields to include in a partial response. */
@@ -2175,11 +2281,11 @@ declare namespace gapi.client {
2175
2281
  /** Creates a GoogleAdsLink. */
2176
2282
  create(request: {
2177
2283
  /** V1 error format. */
2178
- '$.xgafv'?: string;
2284
+ '$.xgafv'?: '1' | '2';
2179
2285
  /** OAuth access token. */
2180
2286
  access_token?: string;
2181
2287
  /** Data format for response. */
2182
- alt?: string;
2288
+ alt?: 'json' | 'media' | 'proto';
2183
2289
  /** JSONP */
2184
2290
  callback?: string;
2185
2291
  /** Selector specifying which fields to include in a partial response. */
@@ -2204,11 +2310,11 @@ declare namespace gapi.client {
2204
2310
  create(
2205
2311
  request: {
2206
2312
  /** V1 error format. */
2207
- '$.xgafv'?: string;
2313
+ '$.xgafv'?: '1' | '2';
2208
2314
  /** OAuth access token. */
2209
2315
  access_token?: string;
2210
2316
  /** Data format for response. */
2211
- alt?: string;
2317
+ alt?: 'json' | 'media' | 'proto';
2212
2318
  /** JSONP */
2213
2319
  callback?: string;
2214
2320
  /** Selector specifying which fields to include in a partial response. */
@@ -2233,11 +2339,11 @@ declare namespace gapi.client {
2233
2339
  /** Deletes a GoogleAdsLink on a property */
2234
2340
  delete(request?: {
2235
2341
  /** V1 error format. */
2236
- '$.xgafv'?: string;
2342
+ '$.xgafv'?: '1' | '2';
2237
2343
  /** OAuth access token. */
2238
2344
  access_token?: string;
2239
2345
  /** Data format for response. */
2240
- alt?: string;
2346
+ alt?: 'json' | 'media' | 'proto';
2241
2347
  /** JSONP */
2242
2348
  callback?: string;
2243
2349
  /** Selector specifying which fields to include in a partial response. */
@@ -2260,11 +2366,11 @@ declare namespace gapi.client {
2260
2366
  /** Lists GoogleAdsLinks on a property. */
2261
2367
  list(request?: {
2262
2368
  /** V1 error format. */
2263
- '$.xgafv'?: string;
2369
+ '$.xgafv'?: '1' | '2';
2264
2370
  /** OAuth access token. */
2265
2371
  access_token?: string;
2266
2372
  /** Data format for response. */
2267
- alt?: string;
2373
+ alt?: 'json' | 'media' | 'proto';
2268
2374
  /** JSONP */
2269
2375
  callback?: string;
2270
2376
  /** Selector specifying which fields to include in a partial response. */
@@ -2291,11 +2397,11 @@ declare namespace gapi.client {
2291
2397
  /** Updates a GoogleAdsLink on a property */
2292
2398
  patch(request: {
2293
2399
  /** V1 error format. */
2294
- '$.xgafv'?: string;
2400
+ '$.xgafv'?: '1' | '2';
2295
2401
  /** OAuth access token. */
2296
2402
  access_token?: string;
2297
2403
  /** Data format for response. */
2298
- alt?: string;
2404
+ alt?: 'json' | 'media' | 'proto';
2299
2405
  /** JSONP */
2300
2406
  callback?: string;
2301
2407
  /** Selector specifying which fields to include in a partial response. */
@@ -2322,11 +2428,11 @@ declare namespace gapi.client {
2322
2428
  patch(
2323
2429
  request: {
2324
2430
  /** V1 error format. */
2325
- '$.xgafv'?: string;
2431
+ '$.xgafv'?: '1' | '2';
2326
2432
  /** OAuth access token. */
2327
2433
  access_token?: string;
2328
2434
  /** Data format for response. */
2329
- alt?: string;
2435
+ alt?: 'json' | 'media' | 'proto';
2330
2436
  /** JSONP */
2331
2437
  callback?: string;
2332
2438
  /** Selector specifying which fields to include in a partial response. */
@@ -2355,11 +2461,11 @@ declare namespace gapi.client {
2355
2461
  /** Creates a Key Event. */
2356
2462
  create(request: {
2357
2463
  /** V1 error format. */
2358
- '$.xgafv'?: string;
2464
+ '$.xgafv'?: '1' | '2';
2359
2465
  /** OAuth access token. */
2360
2466
  access_token?: string;
2361
2467
  /** Data format for response. */
2362
- alt?: string;
2468
+ alt?: 'json' | 'media' | 'proto';
2363
2469
  /** JSONP */
2364
2470
  callback?: string;
2365
2471
  /** Selector specifying which fields to include in a partial response. */
@@ -2384,11 +2490,11 @@ declare namespace gapi.client {
2384
2490
  create(
2385
2491
  request: {
2386
2492
  /** V1 error format. */
2387
- '$.xgafv'?: string;
2493
+ '$.xgafv'?: '1' | '2';
2388
2494
  /** OAuth access token. */
2389
2495
  access_token?: string;
2390
2496
  /** Data format for response. */
2391
- alt?: string;
2497
+ alt?: 'json' | 'media' | 'proto';
2392
2498
  /** JSONP */
2393
2499
  callback?: string;
2394
2500
  /** Selector specifying which fields to include in a partial response. */
@@ -2413,11 +2519,11 @@ declare namespace gapi.client {
2413
2519
  /** Deletes a Key Event. */
2414
2520
  delete(request?: {
2415
2521
  /** V1 error format. */
2416
- '$.xgafv'?: string;
2522
+ '$.xgafv'?: '1' | '2';
2417
2523
  /** OAuth access token. */
2418
2524
  access_token?: string;
2419
2525
  /** Data format for response. */
2420
- alt?: string;
2526
+ alt?: 'json' | 'media' | 'proto';
2421
2527
  /** JSONP */
2422
2528
  callback?: string;
2423
2529
  /** Selector specifying which fields to include in a partial response. */
@@ -2440,11 +2546,11 @@ declare namespace gapi.client {
2440
2546
  /** Retrieve a single Key Event. */
2441
2547
  get(request?: {
2442
2548
  /** V1 error format. */
2443
- '$.xgafv'?: string;
2549
+ '$.xgafv'?: '1' | '2';
2444
2550
  /** OAuth access token. */
2445
2551
  access_token?: string;
2446
2552
  /** Data format for response. */
2447
- alt?: string;
2553
+ alt?: 'json' | 'media' | 'proto';
2448
2554
  /** JSONP */
2449
2555
  callback?: string;
2450
2556
  /** Selector specifying which fields to include in a partial response. */
@@ -2467,11 +2573,11 @@ declare namespace gapi.client {
2467
2573
  /** Returns a list of Key Events in the specified parent property. Returns an empty list if no Key Events are found. */
2468
2574
  list(request?: {
2469
2575
  /** V1 error format. */
2470
- '$.xgafv'?: string;
2576
+ '$.xgafv'?: '1' | '2';
2471
2577
  /** OAuth access token. */
2472
2578
  access_token?: string;
2473
2579
  /** Data format for response. */
2474
- alt?: string;
2580
+ alt?: 'json' | 'media' | 'proto';
2475
2581
  /** JSONP */
2476
2582
  callback?: string;
2477
2583
  /** Selector specifying which fields to include in a partial response. */
@@ -2498,11 +2604,11 @@ declare namespace gapi.client {
2498
2604
  /** Updates a Key Event. */
2499
2605
  patch(request: {
2500
2606
  /** V1 error format. */
2501
- '$.xgafv'?: string;
2607
+ '$.xgafv'?: '1' | '2';
2502
2608
  /** OAuth access token. */
2503
2609
  access_token?: string;
2504
2610
  /** Data format for response. */
2505
- alt?: string;
2611
+ alt?: 'json' | 'media' | 'proto';
2506
2612
  /** JSONP */
2507
2613
  callback?: string;
2508
2614
  /** Selector specifying which fields to include in a partial response. */
@@ -2529,11 +2635,11 @@ declare namespace gapi.client {
2529
2635
  patch(
2530
2636
  request: {
2531
2637
  /** V1 error format. */
2532
- '$.xgafv'?: string;
2638
+ '$.xgafv'?: '1' | '2';
2533
2639
  /** OAuth access token. */
2534
2640
  access_token?: string;
2535
2641
  /** Data format for response. */
2536
- alt?: string;
2642
+ alt?: 'json' | 'media' | 'proto';
2537
2643
  /** JSONP */
2538
2644
  callback?: string;
2539
2645
  /** Selector specifying which fields to include in a partial response. */
@@ -2562,11 +2668,11 @@ declare namespace gapi.client {
2562
2668
  /** Acknowledges the terms of user data collection for the specified property. This acknowledgement must be completed (either in the Google Analytics UI or through this API) before MeasurementProtocolSecret resources may be created. */
2563
2669
  acknowledgeUserDataCollection(request: {
2564
2670
  /** V1 error format. */
2565
- '$.xgafv'?: string;
2671
+ '$.xgafv'?: '1' | '2';
2566
2672
  /** OAuth access token. */
2567
2673
  access_token?: string;
2568
2674
  /** Data format for response. */
2569
- alt?: string;
2675
+ alt?: 'json' | 'media' | 'proto';
2570
2676
  /** JSONP */
2571
2677
  callback?: string;
2572
2678
  /** Selector specifying which fields to include in a partial response. */
@@ -2591,11 +2697,11 @@ declare namespace gapi.client {
2591
2697
  acknowledgeUserDataCollection(
2592
2698
  request: {
2593
2699
  /** V1 error format. */
2594
- '$.xgafv'?: string;
2700
+ '$.xgafv'?: '1' | '2';
2595
2701
  /** OAuth access token. */
2596
2702
  access_token?: string;
2597
2703
  /** Data format for response. */
2598
- alt?: string;
2704
+ alt?: 'json' | 'media' | 'proto';
2599
2705
  /** JSONP */
2600
2706
  callback?: string;
2601
2707
  /** Selector specifying which fields to include in a partial response. */
@@ -2620,11 +2726,11 @@ declare namespace gapi.client {
2620
2726
  /** Creates a Google Analytics property with the specified location and attributes. */
2621
2727
  create(request: {
2622
2728
  /** V1 error format. */
2623
- '$.xgafv'?: string;
2729
+ '$.xgafv'?: '1' | '2';
2624
2730
  /** OAuth access token. */
2625
2731
  access_token?: string;
2626
2732
  /** Data format for response. */
2627
- alt?: string;
2733
+ alt?: 'json' | 'media' | 'proto';
2628
2734
  /** JSONP */
2629
2735
  callback?: string;
2630
2736
  /** Selector specifying which fields to include in a partial response. */
@@ -2647,11 +2753,11 @@ declare namespace gapi.client {
2647
2753
  create(
2648
2754
  request: {
2649
2755
  /** V1 error format. */
2650
- '$.xgafv'?: string;
2756
+ '$.xgafv'?: '1' | '2';
2651
2757
  /** OAuth access token. */
2652
2758
  access_token?: string;
2653
2759
  /** Data format for response. */
2654
- alt?: string;
2760
+ alt?: 'json' | 'media' | 'proto';
2655
2761
  /** JSONP */
2656
2762
  callback?: string;
2657
2763
  /** Selector specifying which fields to include in a partial response. */
@@ -2674,11 +2780,11 @@ declare namespace gapi.client {
2674
2780
  /** Marks target Property as soft-deleted (ie: "trashed") and returns it. This API does not have a method to restore soft-deleted properties. However, they can be restored using the Trash Can UI. If the properties are not restored before the expiration time, the Property and all child resources (eg: GoogleAdsLinks, Streams, AccessBindings) will be permanently purged. https://support.google.com/analytics/answer/6154772 Returns an error if the target is not found. */
2675
2781
  delete(request?: {
2676
2782
  /** V1 error format. */
2677
- '$.xgafv'?: string;
2783
+ '$.xgafv'?: '1' | '2';
2678
2784
  /** OAuth access token. */
2679
2785
  access_token?: string;
2680
2786
  /** Data format for response. */
2681
- alt?: string;
2787
+ alt?: 'json' | 'media' | 'proto';
2682
2788
  /** JSONP */
2683
2789
  callback?: string;
2684
2790
  /** Selector specifying which fields to include in a partial response. */
@@ -2701,11 +2807,11 @@ declare namespace gapi.client {
2701
2807
  /** Lookup for a single GA Property. */
2702
2808
  get(request?: {
2703
2809
  /** V1 error format. */
2704
- '$.xgafv'?: string;
2810
+ '$.xgafv'?: '1' | '2';
2705
2811
  /** OAuth access token. */
2706
2812
  access_token?: string;
2707
2813
  /** Data format for response. */
2708
- alt?: string;
2814
+ alt?: 'json' | 'media' | 'proto';
2709
2815
  /** JSONP */
2710
2816
  callback?: string;
2711
2817
  /** Selector specifying which fields to include in a partial response. */
@@ -2728,11 +2834,11 @@ declare namespace gapi.client {
2728
2834
  /** Returns the singleton data retention settings for this property. */
2729
2835
  getDataRetentionSettings(request?: {
2730
2836
  /** V1 error format. */
2731
- '$.xgafv'?: string;
2837
+ '$.xgafv'?: '1' | '2';
2732
2838
  /** OAuth access token. */
2733
2839
  access_token?: string;
2734
2840
  /** Data format for response. */
2735
- alt?: string;
2841
+ alt?: 'json' | 'media' | 'proto';
2736
2842
  /** JSONP */
2737
2843
  callback?: string;
2738
2844
  /** Selector specifying which fields to include in a partial response. */
@@ -2755,11 +2861,11 @@ declare namespace gapi.client {
2755
2861
  /** Returns child Properties under the specified parent Account. Properties will be excluded if the caller does not have access. Soft-deleted (ie: "trashed") properties are excluded by default. Returns an empty list if no relevant properties are found. */
2756
2862
  list(request?: {
2757
2863
  /** V1 error format. */
2758
- '$.xgafv'?: string;
2864
+ '$.xgafv'?: '1' | '2';
2759
2865
  /** OAuth access token. */
2760
2866
  access_token?: string;
2761
2867
  /** Data format for response. */
2762
- alt?: string;
2868
+ alt?: 'json' | 'media' | 'proto';
2763
2869
  /** JSONP */
2764
2870
  callback?: string;
2765
2871
  /** Selector specifying which fields to include in a partial response. */
@@ -2788,11 +2894,11 @@ declare namespace gapi.client {
2788
2894
  /** Updates a property. */
2789
2895
  patch(request: {
2790
2896
  /** V1 error format. */
2791
- '$.xgafv'?: string;
2897
+ '$.xgafv'?: '1' | '2';
2792
2898
  /** OAuth access token. */
2793
2899
  access_token?: string;
2794
2900
  /** Data format for response. */
2795
- alt?: string;
2901
+ alt?: 'json' | 'media' | 'proto';
2796
2902
  /** JSONP */
2797
2903
  callback?: string;
2798
2904
  /** Selector specifying which fields to include in a partial response. */
@@ -2819,11 +2925,11 @@ declare namespace gapi.client {
2819
2925
  patch(
2820
2926
  request: {
2821
2927
  /** V1 error format. */
2822
- '$.xgafv'?: string;
2928
+ '$.xgafv'?: '1' | '2';
2823
2929
  /** OAuth access token. */
2824
2930
  access_token?: string;
2825
2931
  /** Data format for response. */
2826
- alt?: string;
2932
+ alt?: 'json' | 'media' | 'proto';
2827
2933
  /** JSONP */
2828
2934
  callback?: string;
2829
2935
  /** Selector specifying which fields to include in a partial response. */
@@ -2850,11 +2956,11 @@ declare namespace gapi.client {
2850
2956
  /** Returns a customized report of data access records. The report provides records of each time a user reads Google Analytics reporting data. Access records are retained for up to 2 years. Data Access Reports can be requested for a property. Reports may be requested for any property, but dimensions that aren't related to quota can only be requested on Google Analytics 360 properties. This method is only available to Administrators. These data access records include GA UI Reporting, GA UI Explorations, GA Data API, and other products like Firebase & Admob that can retrieve data from Google Analytics through a linkage. These records don't include property configuration changes like adding a stream or changing a property's time zone. For configuration change history, see [searchChangeHistoryEvents](https://developers.google.com/analytics/devguides/config/admin/v1/rest/v1alpha/accounts/searchChangeHistoryEvents). To give your feedback on this API, complete the [Google Analytics Access Reports feedback](https://docs.google.com/forms/d/e/1FAIpQLSdmEBUrMzAEdiEKk5TV5dEHvDUZDRlgWYdQdAeSdtR4hVjEhw/viewform) form. */
2851
2957
  runAccessReport(request: {
2852
2958
  /** V1 error format. */
2853
- '$.xgafv'?: string;
2959
+ '$.xgafv'?: '1' | '2';
2854
2960
  /** OAuth access token. */
2855
2961
  access_token?: string;
2856
2962
  /** Data format for response. */
2857
- alt?: string;
2963
+ alt?: 'json' | 'media' | 'proto';
2858
2964
  /** JSONP */
2859
2965
  callback?: string;
2860
2966
  /** The Data Access Report supports requesting at the property level or account level. If requested at the account level, Data Access Reports include all access for all properties under that account. To request at the property level, entity should be for example 'properties/123' if "123" is your Google Analytics property ID. To request at the account level, entity should be for example 'accounts/1234' if "1234" is your Google Analytics Account ID. */
@@ -2879,11 +2985,11 @@ declare namespace gapi.client {
2879
2985
  runAccessReport(
2880
2986
  request: {
2881
2987
  /** V1 error format. */
2882
- '$.xgafv'?: string;
2988
+ '$.xgafv'?: '1' | '2';
2883
2989
  /** OAuth access token. */
2884
2990
  access_token?: string;
2885
2991
  /** Data format for response. */
2886
- alt?: string;
2992
+ alt?: 'json' | 'media' | 'proto';
2887
2993
  /** JSONP */
2888
2994
  callback?: string;
2889
2995
  /** The Data Access Report supports requesting at the property level or account level. If requested at the account level, Data Access Reports include all access for all properties under that account. To request at the property level, entity should be for example 'properties/123' if "123" is your Google Analytics property ID. To request at the account level, entity should be for example 'accounts/1234' if "1234" is your Google Analytics Account ID. */
@@ -2908,11 +3014,11 @@ declare namespace gapi.client {
2908
3014
  /** Updates the singleton data retention settings for this property. */
2909
3015
  updateDataRetentionSettings(request: {
2910
3016
  /** V1 error format. */
2911
- '$.xgafv'?: string;
3017
+ '$.xgafv'?: '1' | '2';
2912
3018
  /** OAuth access token. */
2913
3019
  access_token?: string;
2914
3020
  /** Data format for response. */
2915
- alt?: string;
3021
+ alt?: 'json' | 'media' | 'proto';
2916
3022
  /** JSONP */
2917
3023
  callback?: string;
2918
3024
  /** Selector specifying which fields to include in a partial response. */
@@ -2939,11 +3045,11 @@ declare namespace gapi.client {
2939
3045
  updateDataRetentionSettings(
2940
3046
  request: {
2941
3047
  /** V1 error format. */
2942
- '$.xgafv'?: string;
3048
+ '$.xgafv'?: '1' | '2';
2943
3049
  /** OAuth access token. */
2944
3050
  access_token?: string;
2945
3051
  /** Data format for response. */
2946
- alt?: string;
3052
+ alt?: 'json' | 'media' | 'proto';
2947
3053
  /** JSONP */
2948
3054
  callback?: string;
2949
3055
  /** Selector specifying which fields to include in a partial response. */