@maxim_mazurok/gapi.client.analyticsadmin-v1alpha 0.0.20230923 → 0.0.20230927

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 (3) hide show
  1. package/index.d.ts +168 -1
  2. package/package.json +1 -1
  3. package/tests.ts +17 -1
package/index.d.ts CHANGED
@@ -9,7 +9,7 @@
9
9
  // This file was generated by https://github.com/Maxim-Mazurok/google-api-typings-generator. Please do not edit it manually.
10
10
  // In case of any problems please post issue to https://github.com/Maxim-Mazurok/google-api-typings-generator
11
11
  // Generated from: https://analyticsadmin.googleapis.com/$discovery/rest?version=v1alpha
12
- // Revision: 20230923
12
+ // Revision: 20230927
13
13
 
14
14
  /// <reference types="gapi.client" />
15
15
 
@@ -698,6 +698,9 @@ declare namespace gapi.client {
698
698
  /** A snapshot of a CustomMetric resource in change history. */
699
699
  customMetric?:
700
700
  GoogleAnalyticsAdminV1alphaCustomMetric;
701
+ /** A snapshot of DataRedactionSettings resource in change history. */
702
+ dataRedactionSettings?:
703
+ GoogleAnalyticsAdminV1alphaDataRedactionSettings;
701
704
  /** A snapshot of a data retention settings resource in change history. */
702
705
  dataRetentionSettings?:
703
706
  GoogleAnalyticsAdminV1alphaDataRetentionSettings;
@@ -972,6 +975,29 @@ declare namespace gapi.client {
972
975
  scope?:
973
976
  string;
974
977
  }
978
+ interface GoogleAnalyticsAdminV1alphaDataRedactionSettings {
979
+ /** If enabled, any event parameter or user property values that look like an email will be redacted. */
980
+ emailRedactionEnabled?:
981
+ boolean;
982
+ /**
983
+ * Output only. Name of this Data Redaction Settings resource. Format: properties/{property_id}/dataStreams/{data_stream}/dataRedactionSettings Example:
984
+ * "properties/1000/dataStreams/2000/dataRedactionSettings"
985
+ */
986
+ name?:
987
+ string;
988
+ /**
989
+ * The query parameter keys to apply redaction logic to if present in the URL. Query parameter matching is case-insensitive. Must contain at least one element if
990
+ * query_parameter_replacement_enabled is true. Keys cannot contain commas.
991
+ */
992
+ queryParameterKeys?:
993
+ string[];
994
+ /**
995
+ * Query Parameter redaction removes the key and value portions of a query parameter if it is in the configured set of query parameters. If enabled, URL query replacement logic will be
996
+ * run for the Stream. Any query parameters defined in query_parameter_keys will be redacted.
997
+ */
998
+ queryParameterRedactionEnabled?:
999
+ boolean;
1000
+ }
975
1001
  interface GoogleAnalyticsAdminV1alphaDataRetentionSettings {
976
1002
  /** The length of time that event-level data is retained. */
977
1003
  eventDataRetention?:
@@ -7470,6 +7496,48 @@ declare namespace gapi.client {
7470
7496
  uploadType?:
7471
7497
  string;
7472
7498
  }): Request<GoogleAnalyticsAdminV1alphaDataStream>;
7499
+ /** Lookup for a single DataRedactionSettings. */
7500
+ getDataRedactionSettings(request?: {
7501
+ /** V1 error format. */
7502
+ "$.xgafv"?:
7503
+ string;
7504
+ /** OAuth access token. */
7505
+ access_token?:
7506
+ string;
7507
+ /** Data format for response. */
7508
+ alt?:
7509
+ string;
7510
+ /** JSONP */
7511
+ callback?:
7512
+ string;
7513
+ /** Selector specifying which fields to include in a partial response. */
7514
+ fields?:
7515
+ string;
7516
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
7517
+ key?:
7518
+ string;
7519
+ /**
7520
+ * Required. The name of the settings to lookup. Format: properties/{property}/dataStreams/{data_stream}/dataRedactionSettings Example:
7521
+ * "properties/1000/dataStreams/2000/dataRedactionSettings"
7522
+ */
7523
+ name:
7524
+ string;
7525
+ /** OAuth 2.0 token for the current user. */
7526
+ oauth_token?:
7527
+ string;
7528
+ /** Returns response with indentations and line breaks. */
7529
+ prettyPrint?:
7530
+ boolean;
7531
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
7532
+ quotaUser?:
7533
+ string;
7534
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
7535
+ upload_protocol?:
7536
+ string;
7537
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
7538
+ uploadType?:
7539
+ string;
7540
+ }): Request<GoogleAnalyticsAdminV1alphaDataRedactionSettings>;
7473
7541
  /** Returns the enhanced measurement settings for this data stream. Note that the stream must enable enhanced measurement for these settings to take effect. */
7474
7542
  getEnhancedMeasurementSettings(request?: {
7475
7543
  /** V1 error format. */
@@ -7689,6 +7757,105 @@ declare namespace gapi.client {
7689
7757
  string;
7690
7758
  },
7691
7759
  body: GoogleAnalyticsAdminV1alphaDataStream): Request<GoogleAnalyticsAdminV1alphaDataStream>;
7760
+ /** Updates a DataRedactionSettings on a property. */
7761
+ updateDataRedactionSettings(request: {
7762
+ /** V1 error format. */
7763
+ "$.xgafv"?:
7764
+ string;
7765
+ /** OAuth access token. */
7766
+ access_token?:
7767
+ string;
7768
+ /** Data format for response. */
7769
+ alt?:
7770
+ string;
7771
+ /** JSONP */
7772
+ callback?:
7773
+ string;
7774
+ /** Selector specifying which fields to include in a partial response. */
7775
+ fields?:
7776
+ string;
7777
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
7778
+ key?:
7779
+ string;
7780
+ /**
7781
+ * Output only. Name of this Data Redaction Settings resource. Format: properties/{property_id}/dataStreams/{data_stream}/dataRedactionSettings Example:
7782
+ * "properties/1000/dataStreams/2000/dataRedactionSettings"
7783
+ */
7784
+ name:
7785
+ string;
7786
+ /** OAuth 2.0 token for the current user. */
7787
+ oauth_token?:
7788
+ string;
7789
+ /** Returns response with indentations and line breaks. */
7790
+ prettyPrint?:
7791
+ boolean;
7792
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
7793
+ quotaUser?:
7794
+ string;
7795
+ /**
7796
+ * 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
7797
+ * one path with the string "*" to match all fields.
7798
+ */
7799
+ updateMask?:
7800
+ string;
7801
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
7802
+ upload_protocol?:
7803
+ string;
7804
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
7805
+ uploadType?:
7806
+ string;
7807
+ /** Request body */
7808
+ resource:
7809
+ GoogleAnalyticsAdminV1alphaDataRedactionSettings;
7810
+ }): Request<GoogleAnalyticsAdminV1alphaDataRedactionSettings>;
7811
+ updateDataRedactionSettings(request: {
7812
+ /** V1 error format. */
7813
+ "$.xgafv"?:
7814
+ string;
7815
+ /** OAuth access token. */
7816
+ access_token?:
7817
+ string;
7818
+ /** Data format for response. */
7819
+ alt?:
7820
+ string;
7821
+ /** JSONP */
7822
+ callback?:
7823
+ string;
7824
+ /** Selector specifying which fields to include in a partial response. */
7825
+ fields?:
7826
+ string;
7827
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
7828
+ key?:
7829
+ string;
7830
+ /**
7831
+ * Output only. Name of this Data Redaction Settings resource. Format: properties/{property_id}/dataStreams/{data_stream}/dataRedactionSettings Example:
7832
+ * "properties/1000/dataStreams/2000/dataRedactionSettings"
7833
+ */
7834
+ name:
7835
+ string;
7836
+ /** OAuth 2.0 token for the current user. */
7837
+ oauth_token?:
7838
+ string;
7839
+ /** Returns response with indentations and line breaks. */
7840
+ prettyPrint?:
7841
+ boolean;
7842
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
7843
+ quotaUser?:
7844
+ string;
7845
+ /**
7846
+ * 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
7847
+ * one path with the string "*" to match all fields.
7848
+ */
7849
+ updateMask?:
7850
+ string;
7851
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
7852
+ upload_protocol?:
7853
+ string;
7854
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
7855
+ uploadType?:
7856
+ string;
7857
+ },
7858
+ body: GoogleAnalyticsAdminV1alphaDataRedactionSettings): Request<GoogleAnalyticsAdminV1alphaDataRedactionSettings>;
7692
7859
  /** Updates the enhanced measurement settings for this data stream. Note that the stream must enable enhanced measurement for these settings to take effect. */
7693
7860
  updateEnhancedMeasurementSettings(request: {
7694
7861
  /** V1 error format. */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maxim_mazurok/gapi.client.analyticsadmin-v1alpha",
3
- "version": "0.0.20230923",
3
+ "version": "0.0.20230927",
4
4
  "description": "TypeScript typings for Google Analytics Admin API v1alpha",
5
5
  "license": "MIT",
6
6
  "author": {
package/tests.ts CHANGED
@@ -3,7 +3,7 @@
3
3
  // This file was generated by https://github.com/Maxim-Mazurok/google-api-typings-generator. Please do not edit it manually.
4
4
  // In case of any problems please post issue to https://github.com/Maxim-Mazurok/google-api-typings-generator
5
5
 
6
- // Revision: 20230923
6
+ // Revision: 20230927
7
7
 
8
8
  gapi.load('client', async () => {
9
9
  /** now we can use gapi.client */
@@ -1301,6 +1301,10 @@ gapi.load('client', async () => {
1301
1301
  await gapi.client.analyticsadmin.properties.dataStreams.get({
1302
1302
  name: "Test string",
1303
1303
  });
1304
+ /** Lookup for a single DataRedactionSettings. */
1305
+ await gapi.client.analyticsadmin.properties.dataStreams.getDataRedactionSettings({
1306
+ name: "Test string",
1307
+ });
1304
1308
  /** Returns the enhanced measurement settings for this data stream. Note that the stream must enable enhanced measurement for these settings to take effect. */
1305
1309
  await gapi.client.analyticsadmin.properties.dataStreams.getEnhancedMeasurementSettings({
1306
1310
  name: "Test string",
@@ -1339,6 +1343,18 @@ gapi.load('client', async () => {
1339
1343
  measurementId: "Test string",
1340
1344
  },
1341
1345
  });
1346
+ /** Updates a DataRedactionSettings on a property. */
1347
+ await gapi.client.analyticsadmin.properties.dataStreams.updateDataRedactionSettings({
1348
+ name: "Test string",
1349
+ updateMask: "Test string",
1350
+ }, {
1351
+ emailRedactionEnabled: true,
1352
+ name: "Test string",
1353
+ queryParameterKeys: [
1354
+ "Test string"
1355
+ ],
1356
+ queryParameterRedactionEnabled: true,
1357
+ });
1342
1358
  /** Updates the enhanced measurement settings for this data stream. Note that the stream must enable enhanced measurement for these settings to take effect. */
1343
1359
  await gapi.client.analyticsadmin.properties.dataStreams.updateEnhancedMeasurementSettings({
1344
1360
  name: "Test string",