@maxim_mazurok/gapi.client.analyticsadmin-v1alpha 0.0.20221129 → 0.0.20221205

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 +97 -1
  2. package/package.json +1 -1
  3. package/tests.ts +11 -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: 20221129
12
+ // Revision: 20221205
13
13
 
14
14
  /// <reference types="gapi.client" />
15
15
 
@@ -435,6 +435,27 @@ declare namespace gapi.client {
435
435
  /** The user links updated. */
436
436
  userLinks?: GoogleAnalyticsAdminV1alphaUserLink[];
437
437
  }
438
+ interface GoogleAnalyticsAdminV1alphaBigQueryLink {
439
+ /** Output only. Time when the link was created. */
440
+ createTime?: string;
441
+ /** If set true, enables daily data export to the linked Google Cloud project. */
442
+ dailyExportEnabled?: boolean;
443
+ /** The list of event names that will be excluded from exports. */
444
+ excludedEvents?: string[];
445
+ /** The list of streams under the parent property for which data will be exported. Format: properties/{property_id}/dataStreams/{stream_id} Example: ['properties/1000/dataStreams/2000'] */
446
+ exportStreams?: string[];
447
+ /** If set true, exported data will include advertising identifiers for mobile app streams. */
448
+ includeAdvertisingId?: boolean;
449
+ /** Output only. Resource name of this BigQuery link. Format: 'properties/{property_id}/bigQueryLinks/{bigquery_link_id}' Format: 'properties/1234/bigQueryLinks/abc567' */
450
+ name?: string;
451
+ /**
452
+ * Immutable. The linked Google Cloud project. When creating a BigQueryLink, you may provide this resource name using either a project number or project ID. Once this resource has been
453
+ * created, the returned project will always have a project that contains a project number. Format: 'projects/{project number}' Example: 'projects/1234'
454
+ */
455
+ project?: string;
456
+ /** If set true, enables streaming export to the linked Google Cloud project. */
457
+ streamingExportEnabled?: boolean;
458
+ }
438
459
  // tslint:disable-next-line:no-empty-interface
439
460
  interface GoogleAnalyticsAdminV1alphaCancelDisplayVideo360AdvertiserLinkProposalRequest {
440
461
  }
@@ -453,6 +474,8 @@ declare namespace gapi.client {
453
474
  account?: GoogleAnalyticsAdminV1alphaAccount;
454
475
  /** A snapshot of AttributionSettings resource in change history. */
455
476
  attributionSettings?: GoogleAnalyticsAdminV1alphaAttributionSettings;
477
+ /** A snapshot of a BigQuery link resource in change history. */
478
+ bigqueryLink?: GoogleAnalyticsAdminV1alphaBigQueryLink;
456
479
  /** A snapshot of a ConversionEvent resource in change history. */
457
480
  conversionEvent?: GoogleAnalyticsAdminV1alphaConversionEvent;
458
481
  /** A snapshot of a CustomDimension resource in change history. */
@@ -819,6 +842,12 @@ declare namespace gapi.client {
819
842
  /** A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages. */
820
843
  nextPageToken?: string;
821
844
  }
845
+ interface GoogleAnalyticsAdminV1alphaListBigQueryLinksResponse {
846
+ /** List of BigQueryLinks. */
847
+ bigqueryLinks?: GoogleAnalyticsAdminV1alphaBigQueryLink[];
848
+ /** A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages. */
849
+ nextPageToken?: string;
850
+ }
822
851
  interface GoogleAnalyticsAdminV1alphaListConversionEventsResponse {
823
852
  /** The requested conversion events */
824
853
  conversionEvents?: GoogleAnalyticsAdminV1alphaConversionEvent[];
@@ -2177,6 +2206,72 @@ declare namespace gapi.client {
2177
2206
  },
2178
2207
  body: GoogleAnalyticsAdminV1alphaAudience): Request<GoogleAnalyticsAdminV1alphaAudience>;
2179
2208
  }
2209
+ interface BigQueryLinksResource {
2210
+ /** Lookup for a single BigQuery Link. */
2211
+ get(request?: {
2212
+ /** V1 error format. */
2213
+ "$.xgafv"?: string;
2214
+ /** OAuth access token. */
2215
+ access_token?: string;
2216
+ /** Data format for response. */
2217
+ alt?: string;
2218
+ /** JSONP */
2219
+ callback?: string;
2220
+ /** Selector specifying which fields to include in a partial response. */
2221
+ fields?: string;
2222
+ /** 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. */
2223
+ key?: string;
2224
+ /** Required. The name of the BigQuery link to lookup. Format: properties/{property_id}/bigQueryLinks/{bigquery_link_id} Example: properties/123/bigQueryLinks/456 */
2225
+ name: string;
2226
+ /** OAuth 2.0 token for the current user. */
2227
+ oauth_token?: string;
2228
+ /** Returns response with indentations and line breaks. */
2229
+ prettyPrint?: boolean;
2230
+ /** 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. */
2231
+ quotaUser?: string;
2232
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
2233
+ upload_protocol?: string;
2234
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2235
+ uploadType?: string;
2236
+ }): Request<GoogleAnalyticsAdminV1alphaBigQueryLink>;
2237
+ /** Lists BigQuery Links on a property. */
2238
+ list(request?: {
2239
+ /** V1 error format. */
2240
+ "$.xgafv"?: string;
2241
+ /** OAuth access token. */
2242
+ access_token?: string;
2243
+ /** Data format for response. */
2244
+ alt?: string;
2245
+ /** JSONP */
2246
+ callback?: string;
2247
+ /** Selector specifying which fields to include in a partial response. */
2248
+ fields?: string;
2249
+ /** 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. */
2250
+ key?: string;
2251
+ /** OAuth 2.0 token for the current user. */
2252
+ oauth_token?: string;
2253
+ /**
2254
+ * The maximum number of resources to return. The service may return fewer than this value, even if there are additional pages. If unspecified, at most 50 resources will be
2255
+ * returned. The maximum value is 200; (higher values will be coerced to the maximum)
2256
+ */
2257
+ pageSize?: number;
2258
+ /**
2259
+ * A page token, received from a previous `ListBigQueryLinks` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to
2260
+ * `ListBigQueryLinks` must match the call that provided the page token.
2261
+ */
2262
+ pageToken?: string;
2263
+ /** Required. The name of the property to list BigQuery links under. Format: properties/{property_id} Example: properties/1234 */
2264
+ parent: string;
2265
+ /** Returns response with indentations and line breaks. */
2266
+ prettyPrint?: boolean;
2267
+ /** 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. */
2268
+ quotaUser?: string;
2269
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
2270
+ upload_protocol?: string;
2271
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2272
+ uploadType?: string;
2273
+ }): Request<GoogleAnalyticsAdminV1alphaListBigQueryLinksResponse>;
2274
+ }
2180
2275
  interface ConversionEventsResource {
2181
2276
  /** Creates a conversion event with the specified attributes. */
2182
2277
  create(request: {
@@ -5353,6 +5448,7 @@ declare namespace gapi.client {
5353
5448
  },
5354
5449
  body: GoogleAnalyticsAdminV1alphaGoogleSignalsSettings): Request<GoogleAnalyticsAdminV1alphaGoogleSignalsSettings>;
5355
5450
  audiences: AudiencesResource;
5451
+ bigQueryLinks: BigQueryLinksResource;
5356
5452
  conversionEvents: ConversionEventsResource;
5357
5453
  customDimensions: CustomDimensionsResource;
5358
5454
  customMetrics: CustomMetricsResource;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maxim_mazurok/gapi.client.analyticsadmin-v1alpha",
3
- "version": "0.0.20221129",
3
+ "version": "0.0.20221205",
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: 20221129
6
+ // Revision: 20221205
7
7
 
8
8
  gapi.load('client', async () => {
9
9
  /** now we can use gapi.client */
@@ -706,6 +706,16 @@ gapi.load('client', async () => {
706
706
  membershipDurationDays: 42,
707
707
  name: "Test string",
708
708
  });
709
+ /** Lookup for a single BigQuery Link. */
710
+ await gapi.client.analyticsadmin.properties.bigQueryLinks.get({
711
+ name: "Test string",
712
+ });
713
+ /** Lists BigQuery Links on a property. */
714
+ await gapi.client.analyticsadmin.properties.bigQueryLinks.list({
715
+ pageSize: 42,
716
+ pageToken: "Test string",
717
+ parent: "Test string",
718
+ });
709
719
  /** Creates a conversion event with the specified attributes. */
710
720
  await gapi.client.analyticsadmin.properties.conversionEvents.create({
711
721
  parent: "Test string",