@googleapis/chromemanagement 25.2.0 → 27.0.0

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.
package/v1.ts CHANGED
@@ -685,6 +685,23 @@ export namespace chromemanagement_v1 {
685
685
  */
686
686
  storageReports?: Schema$GoogleChromeManagementV1DeviceHardwareCountReport[];
687
687
  }
688
+ /**
689
+ * Response containing requested managed profile versions details and counts.
690
+ */
691
+ export interface Schema$GoogleChromeManagementV1CountChromeProfileVersionsResponse {
692
+ /**
693
+ * Token to specify the next page of the request.
694
+ */
695
+ nextPageToken?: string | null;
696
+ /**
697
+ * List of all browser versions reported for profiles and their install counts.
698
+ */
699
+ profileBrowserVersions?: Schema$GoogleChromeManagementV1BrowserVersion[];
700
+ /**
701
+ * Total number browser versions matching request.
702
+ */
703
+ totalSize?: number | null;
704
+ }
688
705
  /**
689
706
  * Response containing requested browser versions details and counts.
690
707
  */
@@ -1288,6 +1305,10 @@ export namespace chromemanagement_v1 {
1288
1305
  * Output only. Permissions of the installed app.
1289
1306
  */
1290
1307
  permissions?: string[] | null;
1308
+ /**
1309
+ * Output only. Count of Chrome Profiles with this app installed.
1310
+ */
1311
+ profileCount?: string | null;
1291
1312
  /**
1292
1313
  * Output only. If available, the risk assessment data about this extension.
1293
1314
  */
@@ -2518,6 +2539,15 @@ export namespace chromemanagement_v1 {
2518
2539
  */
2519
2540
  subjectPublicKeyInfo?: string | null;
2520
2541
  }
2542
+ /**
2543
+ * Response from checking the enablement status of insights for the customer.
2544
+ */
2545
+ export interface Schema$GoogleChromeManagementVersionsV1CheckEnablementStatusResponse {
2546
+ /**
2547
+ * The state of the insights feature.
2548
+ */
2549
+ insightsState?: string | null;
2550
+ }
2521
2551
  /**
2522
2552
  * A representation of a Chrome browser profile.
2523
2553
  */
@@ -2811,6 +2841,40 @@ export namespace chromemanagement_v1 {
2811
2841
  */
2812
2842
  updateTime?: string | null;
2813
2843
  }
2844
+ /**
2845
+ * A content transfers summary for a given breakdown dimension.
2846
+ */
2847
+ export interface Schema$GoogleChromeManagementVersionsV1ContentTransfersBreakdown {
2848
+ /**
2849
+ * The content category of the content transfers.
2850
+ */
2851
+ contentCategory?: string | null;
2852
+ /**
2853
+ * The event domain of the content transfers.
2854
+ */
2855
+ eventDomain?: string | null;
2856
+ /**
2857
+ * The summary of content transfers for the breakdown dimension.
2858
+ */
2859
+ summary?: Schema$GoogleChromeManagementVersionsV1ContentTransfersSummary;
2860
+ /**
2861
+ * The user that transferred the content.
2862
+ */
2863
+ user?: string | null;
2864
+ }
2865
+ /**
2866
+ * Summary of content transfers for a given metric.
2867
+ */
2868
+ export interface Schema$GoogleChromeManagementVersionsV1ContentTransfersSummary {
2869
+ /**
2870
+ * The count of the content transfers metric.
2871
+ */
2872
+ count?: string | null;
2873
+ /**
2874
+ * The type of content transfers metric.
2875
+ */
2876
+ metric?: string | null;
2877
+ }
2814
2878
  /**
2815
2879
  * CrowdStrike connector config.
2816
2880
  */
@@ -2904,6 +2968,37 @@ export namespace chromemanagement_v1 {
2904
2968
  */
2905
2969
  urlMatchers?: string[] | null;
2906
2970
  }
2971
+ /**
2972
+ * Request to disable insights for the customer.
2973
+ */
2974
+ export interface Schema$GoogleChromeManagementVersionsV1DisableInsightsRequest {}
2975
+ /**
2976
+ * Response from disabling insights for the customer.
2977
+ */
2978
+ export interface Schema$GoogleChromeManagementVersionsV1DisableInsightsResponse {
2979
+ /**
2980
+ * The state of the insights feature.
2981
+ */
2982
+ insightsState?: string | null;
2983
+ }
2984
+ /**
2985
+ * Request to enable insights for the customer.
2986
+ */
2987
+ export interface Schema$GoogleChromeManagementVersionsV1EnableInsightsRequest {
2988
+ /**
2989
+ * Optional. The Organizational Units to set up required connectors for. Organizational Units are provided as paths relative to root. If this field is not set, connectors will be set up at root OU (as if it were set to ["/"]). Example: ["/corp/sales", "/eng"]
2990
+ */
2991
+ targetOus?: string[] | null;
2992
+ }
2993
+ /**
2994
+ * Response from enabling insights for the customer.
2995
+ */
2996
+ export interface Schema$GoogleChromeManagementVersionsV1EnableInsightsResponse {
2997
+ /**
2998
+ * The state of the insights feature.
2999
+ */
3000
+ insightsState?: string | null;
3001
+ }
2907
3002
  /**
2908
3003
  * Describes a generic Certificate Authority Connection.
2909
3004
  */
@@ -3060,6 +3155,50 @@ export namespace chromemanagement_v1 {
3060
3155
  */
3061
3156
  xdrSettings?: Schema$GoogleChromeManagementVersionsV1XdrSettings;
3062
3157
  }
3158
+ /**
3159
+ * Response message for QueryContentTransfersBreakdowns.
3160
+ */
3161
+ export interface Schema$GoogleChromeManagementVersionsV1QueryContentTransfersBreakdownsResponse {
3162
+ /**
3163
+ * The content transfer breakdowns from the specified insight.
3164
+ */
3165
+ contentTransfersBreakdowns?: Schema$GoogleChromeManagementVersionsV1ContentTransfersBreakdown[];
3166
+ /**
3167
+ * A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages.
3168
+ */
3169
+ nextPageToken?: string | null;
3170
+ }
3171
+ /**
3172
+ * Response message for QueryContentTransfers.
3173
+ */
3174
+ export interface Schema$GoogleChromeManagementVersionsV1QueryContentTransfersResponse {
3175
+ /**
3176
+ * A collection of summaries for various content transfers metrics.
3177
+ */
3178
+ summaries?: Schema$GoogleChromeManagementVersionsV1ContentTransfersSummary[];
3179
+ }
3180
+ /**
3181
+ * Response message for QueryUrlVisitsBreakdowns.
3182
+ */
3183
+ export interface Schema$GoogleChromeManagementVersionsV1QueryUrlVisitsBreakdownsResponse {
3184
+ /**
3185
+ * A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages.
3186
+ */
3187
+ nextPageToken?: string | null;
3188
+ /**
3189
+ * The URL visit breakdowns from the specified insight.
3190
+ */
3191
+ urlVisitsBreakdowns?: Schema$GoogleChromeManagementVersionsV1UrlVisitsBreakdown[];
3192
+ }
3193
+ /**
3194
+ * Response message for QueryUrlVisits.
3195
+ */
3196
+ export interface Schema$GoogleChromeManagementVersionsV1QueryUrlVisitsResponse {
3197
+ /**
3198
+ * A collection of summaries for various URL visit metrics.
3199
+ */
3200
+ summaries?: Schema$GoogleChromeManagementVersionsV1UrlVisitsSummary[];
3201
+ }
3063
3202
  /**
3064
3203
  * Reporting data of a Chrome browser profile.
3065
3204
  */
@@ -3368,6 +3507,36 @@ export namespace chromemanagement_v1 {
3368
3507
  * Response message for publishing an issued certificate for a certificate provisioning process.
3369
3508
  */
3370
3509
  export interface Schema$GoogleChromeManagementVersionsV1UploadCertificateResponse {}
3510
+ /**
3511
+ * A URL visits summary for a given breakdown dimension.
3512
+ */
3513
+ export interface Schema$GoogleChromeManagementVersionsV1UrlVisitsBreakdown {
3514
+ /**
3515
+ * The event domain of the URL visits.
3516
+ */
3517
+ eventDomain?: string | null;
3518
+ /**
3519
+ * The summary of URL visits for the breakdown dimension.
3520
+ */
3521
+ summary?: Schema$GoogleChromeManagementVersionsV1UrlVisitsSummary;
3522
+ /**
3523
+ * The user that visited the URL.
3524
+ */
3525
+ user?: string | null;
3526
+ }
3527
+ /**
3528
+ * Summary of URL visits for a given metric.
3529
+ */
3530
+ export interface Schema$GoogleChromeManagementVersionsV1UrlVisitsSummary {
3531
+ /**
3532
+ * The count of the URL visits metric.
3533
+ */
3534
+ count?: string | null;
3535
+ /**
3536
+ * The type of URL visits metric.
3537
+ */
3538
+ metric?: string | null;
3539
+ }
3371
3540
  /**
3372
3541
  * XDR settings for connector configs.
3373
3542
  */
@@ -3467,6 +3636,7 @@ export namespace chromemanagement_v1 {
3467
3636
  apps: Resource$Customers$Apps;
3468
3637
  certificateProvisioningProcesses: Resource$Customers$Certificateprovisioningprocesses;
3469
3638
  connectorConfigs: Resource$Customers$Connectorconfigs;
3639
+ enterprise: Resource$Customers$Enterprise;
3470
3640
  profiles: Resource$Customers$Profiles;
3471
3641
  reports: Resource$Customers$Reports;
3472
3642
  telemetry: Resource$Customers$Telemetry;
@@ -3479,6 +3649,7 @@ export namespace chromemanagement_v1 {
3479
3649
  this.connectorConfigs = new Resource$Customers$Connectorconfigs(
3480
3650
  this.context
3481
3651
  );
3652
+ this.enterprise = new Resource$Customers$Enterprise(this.context);
3482
3653
  this.profiles = new Resource$Customers$Profiles(this.context);
3483
3654
  this.reports = new Resource$Customers$Reports(this.context);
3484
3655
  this.telemetry = new Resource$Customers$Telemetry(this.context);
@@ -5155,8 +5326,7 @@ export namespace chromemanagement_v1 {
5155
5326
  signData(
5156
5327
  params: Params$Resource$Customers$Certificateprovisioningprocesses$Signdata,
5157
5328
  options:
5158
- | MethodOptions
5159
- | BodyResponseCallback<Schema$GoogleLongrunningOperation>,
5329
+ MethodOptions | BodyResponseCallback<Schema$GoogleLongrunningOperation>,
5160
5330
  callback: BodyResponseCallback<Schema$GoogleLongrunningOperation>
5161
5331
  ): void;
5162
5332
  signData(
@@ -5521,8 +5691,7 @@ export namespace chromemanagement_v1 {
5521
5691
  get(
5522
5692
  params: Params$Resource$Customers$Certificateprovisioningprocesses$Operations$Get,
5523
5693
  options:
5524
- | MethodOptions
5525
- | BodyResponseCallback<Schema$GoogleLongrunningOperation>,
5694
+ MethodOptions | BodyResponseCallback<Schema$GoogleLongrunningOperation>,
5526
5695
  callback: BodyResponseCallback<Schema$GoogleLongrunningOperation>
5527
5696
  ): void;
5528
5697
  get(
@@ -5636,7 +5805,7 @@ export namespace chromemanagement_v1 {
5636
5805
  *
5637
5806
  * // Do the magic
5638
5807
  * const res = await chromemanagement.customers.connectorConfigs.create({
5639
- * // Optional. ID to use for the connector config, which becomes the final component of the connector config's resource name. If provided, the ID must be 1-63 characters long, and contain only lowercase letters, digits, and hyphens. It must start with a letter, and end with a letter or number. If not provided, the connector config will be assigned a random UUID.
5808
+ * // Optional. ID to use for the connector config, which becomes the final component of the connector config's resource name. If provided, the ID must be 1-36 characters long, and contain only lowercase letters, digits, and hyphens. It must start with a letter, and end with a letter or number. If not provided, the connector config will be assigned a random UUID.
5640
5809
  * connectorConfigId: 'placeholder-value',
5641
5810
  * // Required. Format: customers/{customer\}
5642
5811
  * parent: 'customers/my-customer',
@@ -6372,7 +6541,7 @@ export namespace chromemanagement_v1 {
6372
6541
 
6373
6542
  export interface Params$Resource$Customers$Connectorconfigs$Create extends StandardParameters {
6374
6543
  /**
6375
- * Optional. ID to use for the connector config, which becomes the final component of the connector config's resource name. If provided, the ID must be 1-63 characters long, and contain only lowercase letters, digits, and hyphens. It must start with a letter, and end with a letter or number. If not provided, the connector config will be assigned a random UUID.
6544
+ * Optional. ID to use for the connector config, which becomes the final component of the connector config's resource name. If provided, the ID must be 1-36 characters long, and contain only lowercase letters, digits, and hyphens. It must start with a letter, and end with a letter or number. If not provided, the connector config will be assigned a random UUID.
6376
6545
  */
6377
6546
  connectorConfigId?: string;
6378
6547
  /**
@@ -6427,16 +6596,24 @@ export namespace chromemanagement_v1 {
6427
6596
  requestBody?: Schema$GoogleChromeManagementVersionsV1ConnectorConfig;
6428
6597
  }
6429
6598
 
6430
- export class Resource$Customers$Profiles {
6599
+ export class Resource$Customers$Enterprise {
6600
+ context: APIRequestContext;
6601
+ securityInsights: Resource$Customers$Enterprise$Securityinsights;
6602
+ constructor(context: APIRequestContext) {
6603
+ this.context = context;
6604
+ this.securityInsights =
6605
+ new Resource$Customers$Enterprise$Securityinsights(this.context);
6606
+ }
6607
+ }
6608
+
6609
+ export class Resource$Customers$Enterprise$Securityinsights {
6431
6610
  context: APIRequestContext;
6432
- commands: Resource$Customers$Profiles$Commands;
6433
6611
  constructor(context: APIRequestContext) {
6434
6612
  this.context = context;
6435
- this.commands = new Resource$Customers$Profiles$Commands(this.context);
6436
6613
  }
6437
6614
 
6438
6615
  /**
6439
- * Deletes the data collected from a Chrome browser profile.
6616
+ * Gets the setting state of the insights feature for the customer.
6440
6617
  * @example
6441
6618
  * ```js
6442
6619
  * // Before running the sample:
@@ -6457,7 +6634,10 @@ export namespace chromemanagement_v1 {
6457
6634
  * async function main() {
6458
6635
  * const auth = new google.auth.GoogleAuth({
6459
6636
  * // Scopes can be specified either as an array or as a single, space-delimited string.
6460
- * scopes: ['https://www.googleapis.com/auth/chrome.management.profiles'],
6637
+ * scopes: [
6638
+ * 'https://www.googleapis.com/auth/chrome.management.securityinsights',
6639
+ * 'https://www.googleapis.com/auth/chrome.management.securityinsights.readonly',
6640
+ * ],
6461
6641
  * });
6462
6642
  *
6463
6643
  * // Acquire an auth client, and bind it to all future calls
@@ -6465,14 +6645,19 @@ export namespace chromemanagement_v1 {
6465
6645
  * google.options({auth: authClient});
6466
6646
  *
6467
6647
  * // Do the magic
6468
- * const res = await chromemanagement.customers.profiles.delete({
6469
- * // Required. Format: customers/{customer_id\}/profiles/{profile_permanent_id\}
6470
- * name: 'customers/my-customer/profiles/my-profile',
6471
- * });
6648
+ * const res =
6649
+ * await chromemanagement.customers.enterprise.securityInsights.checkEnablementStatus(
6650
+ * {
6651
+ * // Required. The customer to check the enablement status for. Format: customers/{customer_id\}
6652
+ * customer: 'customers/my-customer',
6653
+ * },
6654
+ * );
6472
6655
  * console.log(res.data);
6473
6656
  *
6474
6657
  * // Example response
6475
- * // {}
6658
+ * // {
6659
+ * // "insightsState": "my_insightsState"
6660
+ * // }
6476
6661
  * }
6477
6662
  *
6478
6663
  * main().catch(e => {
@@ -6487,53 +6672,62 @@ export namespace chromemanagement_v1 {
6487
6672
  * @param callback - Optional callback that handles the response.
6488
6673
  * @returns A promise if used with async/await, or void if used with a callback.
6489
6674
  */
6490
- delete(
6491
- params: Params$Resource$Customers$Profiles$Delete,
6675
+ checkEnablementStatus(
6676
+ params: Params$Resource$Customers$Enterprise$Securityinsights$Checkenablementstatus,
6492
6677
  options: StreamMethodOptions
6493
6678
  ): Promise<GaxiosResponseWithHTTP2<Readable>>;
6494
- delete(
6495
- params?: Params$Resource$Customers$Profiles$Delete,
6679
+ checkEnablementStatus(
6680
+ params?: Params$Resource$Customers$Enterprise$Securityinsights$Checkenablementstatus,
6496
6681
  options?: MethodOptions
6497
- ): Promise<GaxiosResponseWithHTTP2<Schema$GoogleProtobufEmpty>>;
6498
- delete(
6499
- params: Params$Resource$Customers$Profiles$Delete,
6682
+ ): Promise<
6683
+ GaxiosResponseWithHTTP2<Schema$GoogleChromeManagementVersionsV1CheckEnablementStatusResponse>
6684
+ >;
6685
+ checkEnablementStatus(
6686
+ params: Params$Resource$Customers$Enterprise$Securityinsights$Checkenablementstatus,
6500
6687
  options: StreamMethodOptions | BodyResponseCallback<Readable>,
6501
6688
  callback: BodyResponseCallback<Readable>
6502
6689
  ): void;
6503
- delete(
6504
- params: Params$Resource$Customers$Profiles$Delete,
6505
- options: MethodOptions | BodyResponseCallback<Schema$GoogleProtobufEmpty>,
6506
- callback: BodyResponseCallback<Schema$GoogleProtobufEmpty>
6690
+ checkEnablementStatus(
6691
+ params: Params$Resource$Customers$Enterprise$Securityinsights$Checkenablementstatus,
6692
+ options:
6693
+ | MethodOptions
6694
+ | BodyResponseCallback<Schema$GoogleChromeManagementVersionsV1CheckEnablementStatusResponse>,
6695
+ callback: BodyResponseCallback<Schema$GoogleChromeManagementVersionsV1CheckEnablementStatusResponse>
6507
6696
  ): void;
6508
- delete(
6509
- params: Params$Resource$Customers$Profiles$Delete,
6510
- callback: BodyResponseCallback<Schema$GoogleProtobufEmpty>
6697
+ checkEnablementStatus(
6698
+ params: Params$Resource$Customers$Enterprise$Securityinsights$Checkenablementstatus,
6699
+ callback: BodyResponseCallback<Schema$GoogleChromeManagementVersionsV1CheckEnablementStatusResponse>
6511
6700
  ): void;
6512
- delete(callback: BodyResponseCallback<Schema$GoogleProtobufEmpty>): void;
6513
- delete(
6701
+ checkEnablementStatus(
6702
+ callback: BodyResponseCallback<Schema$GoogleChromeManagementVersionsV1CheckEnablementStatusResponse>
6703
+ ): void;
6704
+ checkEnablementStatus(
6514
6705
  paramsOrCallback?:
6515
- | Params$Resource$Customers$Profiles$Delete
6516
- | BodyResponseCallback<Schema$GoogleProtobufEmpty>
6706
+ | Params$Resource$Customers$Enterprise$Securityinsights$Checkenablementstatus
6707
+ | BodyResponseCallback<Schema$GoogleChromeManagementVersionsV1CheckEnablementStatusResponse>
6517
6708
  | BodyResponseCallback<Readable>,
6518
6709
  optionsOrCallback?:
6519
6710
  | MethodOptions
6520
6711
  | StreamMethodOptions
6521
- | BodyResponseCallback<Schema$GoogleProtobufEmpty>
6712
+ | BodyResponseCallback<Schema$GoogleChromeManagementVersionsV1CheckEnablementStatusResponse>
6522
6713
  | BodyResponseCallback<Readable>,
6523
6714
  callback?:
6524
- | BodyResponseCallback<Schema$GoogleProtobufEmpty>
6715
+ | BodyResponseCallback<Schema$GoogleChromeManagementVersionsV1CheckEnablementStatusResponse>
6525
6716
  | BodyResponseCallback<Readable>
6526
6717
  ):
6527
6718
  | void
6528
- | Promise<GaxiosResponseWithHTTP2<Schema$GoogleProtobufEmpty>>
6719
+ | Promise<
6720
+ GaxiosResponseWithHTTP2<Schema$GoogleChromeManagementVersionsV1CheckEnablementStatusResponse>
6721
+ >
6529
6722
  | Promise<GaxiosResponseWithHTTP2<Readable>> {
6530
6723
  let params = (paramsOrCallback ||
6531
- {}) as Params$Resource$Customers$Profiles$Delete;
6724
+ {}) as Params$Resource$Customers$Enterprise$Securityinsights$Checkenablementstatus;
6532
6725
  let options = (optionsOrCallback || {}) as MethodOptions;
6533
6726
 
6534
6727
  if (typeof paramsOrCallback === 'function') {
6535
6728
  callback = paramsOrCallback;
6536
- params = {} as Params$Resource$Customers$Profiles$Delete;
6729
+ params =
6730
+ {} as Params$Resource$Customers$Enterprise$Securityinsights$Checkenablementstatus;
6537
6731
  options = {};
6538
6732
  }
6539
6733
 
@@ -6547,29 +6741,34 @@ export namespace chromemanagement_v1 {
6547
6741
  const parameters = {
6548
6742
  options: Object.assign(
6549
6743
  {
6550
- url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'),
6551
- method: 'DELETE',
6744
+ url: (
6745
+ rootUrl +
6746
+ '/v1/{+customer}/enterprise/securityInsights:checkEnablementStatus'
6747
+ ).replace(/([^:]\/)\/+/g, '$1'),
6748
+ method: 'GET',
6552
6749
  apiVersion: '',
6553
6750
  },
6554
6751
  options
6555
6752
  ),
6556
6753
  params,
6557
- requiredParams: ['name'],
6558
- pathParams: ['name'],
6754
+ requiredParams: ['customer'],
6755
+ pathParams: ['customer'],
6559
6756
  context: this.context,
6560
6757
  };
6561
6758
  if (callback) {
6562
- createAPIRequest<Schema$GoogleProtobufEmpty>(
6759
+ createAPIRequest<Schema$GoogleChromeManagementVersionsV1CheckEnablementStatusResponse>(
6563
6760
  parameters,
6564
6761
  callback as BodyResponseCallback<unknown>
6565
6762
  );
6566
6763
  } else {
6567
- return createAPIRequest<Schema$GoogleProtobufEmpty>(parameters);
6764
+ return createAPIRequest<Schema$GoogleChromeManagementVersionsV1CheckEnablementStatusResponse>(
6765
+ parameters
6766
+ );
6568
6767
  }
6569
6768
  }
6570
6769
 
6571
6770
  /**
6572
- * Gets a Chrome browser profile with customer ID and profile permanent ID.
6771
+ * Disables insights for the customer.
6573
6772
  * @example
6574
6773
  * ```js
6575
6774
  * // Before running the sample:
@@ -6591,8 +6790,7 @@ export namespace chromemanagement_v1 {
6591
6790
  * const auth = new google.auth.GoogleAuth({
6592
6791
  * // Scopes can be specified either as an array or as a single, space-delimited string.
6593
6792
  * scopes: [
6594
- * 'https://www.googleapis.com/auth/chrome.management.profiles',
6595
- * 'https://www.googleapis.com/auth/chrome.management.profiles.readonly',
6793
+ * 'https://www.googleapis.com/auth/chrome.management.securityinsights',
6596
6794
  * ],
6597
6795
  * });
6598
6796
  *
@@ -6601,41 +6799,22 @@ export namespace chromemanagement_v1 {
6601
6799
  * google.options({auth: authClient});
6602
6800
  *
6603
6801
  * // Do the magic
6604
- * const res = await chromemanagement.customers.profiles.get({
6605
- * // Required. Format: customers/{customer_id\}/profiles/{profile_permanent_id\}
6606
- * name: 'customers/my-customer/profiles/my-profile',
6607
- * });
6802
+ * const res =
6803
+ * await chromemanagement.customers.enterprise.securityInsights.disable({
6804
+ * // Required. The customer to disable insights for. Format: customers/{customer\}
6805
+ * customer: 'customers/my-customer',
6806
+ *
6807
+ * // Request body metadata
6808
+ * requestBody: {
6809
+ * // request body parameters
6810
+ * // {}
6811
+ * },
6812
+ * });
6608
6813
  * console.log(res.data);
6609
6814
  *
6610
6815
  * // Example response
6611
6816
  * // {
6612
- * // "affiliationState": "my_affiliationState",
6613
- * // "annotatedLocation": "my_annotatedLocation",
6614
- * // "annotatedUser": "my_annotatedUser",
6615
- * // "attestationCredential": {},
6616
- * // "browserChannel": "my_browserChannel",
6617
- * // "browserVersion": "my_browserVersion",
6618
- * // "deviceInfo": {},
6619
- * // "displayName": "my_displayName",
6620
- * // "etag": "my_etag",
6621
- * // "extensionCount": "my_extensionCount",
6622
- * // "firstEnrollmentTime": "my_firstEnrollmentTime",
6623
- * // "identityProvider": "my_identityProvider",
6624
- * // "lastActivityTime": "my_lastActivityTime",
6625
- * // "lastPolicyFetchTime": "my_lastPolicyFetchTime",
6626
- * // "lastPolicySyncTime": "my_lastPolicySyncTime",
6627
- * // "lastStatusReportTime": "my_lastStatusReportTime",
6628
- * // "name": "my_name",
6629
- * // "osPlatformType": "my_osPlatformType",
6630
- * // "osPlatformVersion": "my_osPlatformVersion",
6631
- * // "osVersion": "my_osVersion",
6632
- * // "policyCount": "my_policyCount",
6633
- * // "profileId": "my_profileId",
6634
- * // "profilePermanentId": "my_profilePermanentId",
6635
- * // "reportingData": {},
6636
- * // "supportsFcmNotifications": false,
6637
- * // "userEmail": "my_userEmail",
6638
- * // "userId": "my_userId"
6817
+ * // "insightsState": "my_insightsState"
6639
6818
  * // }
6640
6819
  * }
6641
6820
  *
@@ -6651,61 +6830,62 @@ export namespace chromemanagement_v1 {
6651
6830
  * @param callback - Optional callback that handles the response.
6652
6831
  * @returns A promise if used with async/await, or void if used with a callback.
6653
6832
  */
6654
- get(
6655
- params: Params$Resource$Customers$Profiles$Get,
6833
+ disable(
6834
+ params: Params$Resource$Customers$Enterprise$Securityinsights$Disable,
6656
6835
  options: StreamMethodOptions
6657
6836
  ): Promise<GaxiosResponseWithHTTP2<Readable>>;
6658
- get(
6659
- params?: Params$Resource$Customers$Profiles$Get,
6837
+ disable(
6838
+ params?: Params$Resource$Customers$Enterprise$Securityinsights$Disable,
6660
6839
  options?: MethodOptions
6661
6840
  ): Promise<
6662
- GaxiosResponseWithHTTP2<Schema$GoogleChromeManagementVersionsV1ChromeBrowserProfile>
6841
+ GaxiosResponseWithHTTP2<Schema$GoogleChromeManagementVersionsV1DisableInsightsResponse>
6663
6842
  >;
6664
- get(
6665
- params: Params$Resource$Customers$Profiles$Get,
6843
+ disable(
6844
+ params: Params$Resource$Customers$Enterprise$Securityinsights$Disable,
6666
6845
  options: StreamMethodOptions | BodyResponseCallback<Readable>,
6667
6846
  callback: BodyResponseCallback<Readable>
6668
6847
  ): void;
6669
- get(
6670
- params: Params$Resource$Customers$Profiles$Get,
6848
+ disable(
6849
+ params: Params$Resource$Customers$Enterprise$Securityinsights$Disable,
6671
6850
  options:
6672
6851
  | MethodOptions
6673
- | BodyResponseCallback<Schema$GoogleChromeManagementVersionsV1ChromeBrowserProfile>,
6674
- callback: BodyResponseCallback<Schema$GoogleChromeManagementVersionsV1ChromeBrowserProfile>
6852
+ | BodyResponseCallback<Schema$GoogleChromeManagementVersionsV1DisableInsightsResponse>,
6853
+ callback: BodyResponseCallback<Schema$GoogleChromeManagementVersionsV1DisableInsightsResponse>
6675
6854
  ): void;
6676
- get(
6677
- params: Params$Resource$Customers$Profiles$Get,
6678
- callback: BodyResponseCallback<Schema$GoogleChromeManagementVersionsV1ChromeBrowserProfile>
6855
+ disable(
6856
+ params: Params$Resource$Customers$Enterprise$Securityinsights$Disable,
6857
+ callback: BodyResponseCallback<Schema$GoogleChromeManagementVersionsV1DisableInsightsResponse>
6679
6858
  ): void;
6680
- get(
6681
- callback: BodyResponseCallback<Schema$GoogleChromeManagementVersionsV1ChromeBrowserProfile>
6859
+ disable(
6860
+ callback: BodyResponseCallback<Schema$GoogleChromeManagementVersionsV1DisableInsightsResponse>
6682
6861
  ): void;
6683
- get(
6862
+ disable(
6684
6863
  paramsOrCallback?:
6685
- | Params$Resource$Customers$Profiles$Get
6686
- | BodyResponseCallback<Schema$GoogleChromeManagementVersionsV1ChromeBrowserProfile>
6864
+ | Params$Resource$Customers$Enterprise$Securityinsights$Disable
6865
+ | BodyResponseCallback<Schema$GoogleChromeManagementVersionsV1DisableInsightsResponse>
6687
6866
  | BodyResponseCallback<Readable>,
6688
6867
  optionsOrCallback?:
6689
6868
  | MethodOptions
6690
6869
  | StreamMethodOptions
6691
- | BodyResponseCallback<Schema$GoogleChromeManagementVersionsV1ChromeBrowserProfile>
6870
+ | BodyResponseCallback<Schema$GoogleChromeManagementVersionsV1DisableInsightsResponse>
6692
6871
  | BodyResponseCallback<Readable>,
6693
6872
  callback?:
6694
- | BodyResponseCallback<Schema$GoogleChromeManagementVersionsV1ChromeBrowserProfile>
6873
+ | BodyResponseCallback<Schema$GoogleChromeManagementVersionsV1DisableInsightsResponse>
6695
6874
  | BodyResponseCallback<Readable>
6696
6875
  ):
6697
6876
  | void
6698
6877
  | Promise<
6699
- GaxiosResponseWithHTTP2<Schema$GoogleChromeManagementVersionsV1ChromeBrowserProfile>
6878
+ GaxiosResponseWithHTTP2<Schema$GoogleChromeManagementVersionsV1DisableInsightsResponse>
6700
6879
  >
6701
6880
  | Promise<GaxiosResponseWithHTTP2<Readable>> {
6702
6881
  let params = (paramsOrCallback ||
6703
- {}) as Params$Resource$Customers$Profiles$Get;
6882
+ {}) as Params$Resource$Customers$Enterprise$Securityinsights$Disable;
6704
6883
  let options = (optionsOrCallback || {}) as MethodOptions;
6705
6884
 
6706
6885
  if (typeof paramsOrCallback === 'function') {
6707
6886
  callback = paramsOrCallback;
6708
- params = {} as Params$Resource$Customers$Profiles$Get;
6887
+ params =
6888
+ {} as Params$Resource$Customers$Enterprise$Securityinsights$Disable;
6709
6889
  options = {};
6710
6890
  }
6711
6891
 
@@ -6719,31 +6899,33 @@ export namespace chromemanagement_v1 {
6719
6899
  const parameters = {
6720
6900
  options: Object.assign(
6721
6901
  {
6722
- url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'),
6723
- method: 'GET',
6902
+ url: (
6903
+ rootUrl + '/v1/{+customer}/enterprise/securityInsights:disable'
6904
+ ).replace(/([^:]\/)\/+/g, '$1'),
6905
+ method: 'POST',
6724
6906
  apiVersion: '',
6725
6907
  },
6726
6908
  options
6727
6909
  ),
6728
6910
  params,
6729
- requiredParams: ['name'],
6730
- pathParams: ['name'],
6911
+ requiredParams: ['customer'],
6912
+ pathParams: ['customer'],
6731
6913
  context: this.context,
6732
6914
  };
6733
6915
  if (callback) {
6734
- createAPIRequest<Schema$GoogleChromeManagementVersionsV1ChromeBrowserProfile>(
6916
+ createAPIRequest<Schema$GoogleChromeManagementVersionsV1DisableInsightsResponse>(
6735
6917
  parameters,
6736
6918
  callback as BodyResponseCallback<unknown>
6737
6919
  );
6738
6920
  } else {
6739
- return createAPIRequest<Schema$GoogleChromeManagementVersionsV1ChromeBrowserProfile>(
6921
+ return createAPIRequest<Schema$GoogleChromeManagementVersionsV1DisableInsightsResponse>(
6740
6922
  parameters
6741
6923
  );
6742
6924
  }
6743
6925
  }
6744
6926
 
6745
6927
  /**
6746
- * Lists Chrome browser profiles of a customer based on the given search and sorting criteria.
6928
+ * Enables insights for the customer and sets up required chrome connectors.
6747
6929
  * @example
6748
6930
  * ```js
6749
6931
  * // Before running the sample:
@@ -6765,8 +6947,7 @@ export namespace chromemanagement_v1 {
6765
6947
  * const auth = new google.auth.GoogleAuth({
6766
6948
  * // Scopes can be specified either as an array or as a single, space-delimited string.
6767
6949
  * scopes: [
6768
- * 'https://www.googleapis.com/auth/chrome.management.profiles',
6769
- * 'https://www.googleapis.com/auth/chrome.management.profiles.readonly',
6950
+ * 'https://www.googleapis.com/auth/chrome.management.securityinsights',
6770
6951
  * ],
6771
6952
  * });
6772
6953
  *
@@ -6775,8 +6956,1243 @@ export namespace chromemanagement_v1 {
6775
6956
  * google.options({auth: authClient});
6776
6957
  *
6777
6958
  * // Do the magic
6778
- * const res = await chromemanagement.customers.profiles.list({
6779
- * // Optional. The filter used to filter profiles. The following fields can be used in the filter: - profile_id - display_name - user_email - last_activity_time - last_policy_sync_time - last_status_report_time - first_enrollment_time - os_platform_type - os_version - browser_version - browser_channel - policy_count - extension_count - identity_provider - affiliation_state - os_platform_version - ouId Any of the above fields can be used to specify a filter, and filtering by multiple fields is supported with AND operator. String type fields and enum type fields support '=' and '!=' operators. The integer type and the timestamp type fields support '=', '!=', '<', '\>', '<=' and '\>=' operators. Timestamps expect an RFC-3339 formatted string (e.g. 2012-04-21T11:30:00-04:00). Wildcard '*' can be used with a string type field filter. In addition, string literal filtering is also supported, for example, 'ABC' as a filter maps to a filter that checks if any of the filterable string type fields contains 'ABC'. Organization unit number can be used as a filtering criteria here by specifying 'ouId = ${your_org_unit_id\}', please note that only single OU ID matching is supported.
6959
+ * const res =
6960
+ * await chromemanagement.customers.enterprise.securityInsights.enable({
6961
+ * // Required. The customer to enable insights for. Format: customers/{customer\}
6962
+ * customer: 'customers/my-customer',
6963
+ *
6964
+ * // Request body metadata
6965
+ * requestBody: {
6966
+ * // request body parameters
6967
+ * // {
6968
+ * // "targetOus": []
6969
+ * // }
6970
+ * },
6971
+ * });
6972
+ * console.log(res.data);
6973
+ *
6974
+ * // Example response
6975
+ * // {
6976
+ * // "insightsState": "my_insightsState"
6977
+ * // }
6978
+ * }
6979
+ *
6980
+ * main().catch(e => {
6981
+ * console.error(e);
6982
+ * throw e;
6983
+ * });
6984
+ *
6985
+ * ```
6986
+ *
6987
+ * @param params - Parameters for request
6988
+ * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
6989
+ * @param callback - Optional callback that handles the response.
6990
+ * @returns A promise if used with async/await, or void if used with a callback.
6991
+ */
6992
+ enable(
6993
+ params: Params$Resource$Customers$Enterprise$Securityinsights$Enable,
6994
+ options: StreamMethodOptions
6995
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
6996
+ enable(
6997
+ params?: Params$Resource$Customers$Enterprise$Securityinsights$Enable,
6998
+ options?: MethodOptions
6999
+ ): Promise<
7000
+ GaxiosResponseWithHTTP2<Schema$GoogleChromeManagementVersionsV1EnableInsightsResponse>
7001
+ >;
7002
+ enable(
7003
+ params: Params$Resource$Customers$Enterprise$Securityinsights$Enable,
7004
+ options: StreamMethodOptions | BodyResponseCallback<Readable>,
7005
+ callback: BodyResponseCallback<Readable>
7006
+ ): void;
7007
+ enable(
7008
+ params: Params$Resource$Customers$Enterprise$Securityinsights$Enable,
7009
+ options:
7010
+ | MethodOptions
7011
+ | BodyResponseCallback<Schema$GoogleChromeManagementVersionsV1EnableInsightsResponse>,
7012
+ callback: BodyResponseCallback<Schema$GoogleChromeManagementVersionsV1EnableInsightsResponse>
7013
+ ): void;
7014
+ enable(
7015
+ params: Params$Resource$Customers$Enterprise$Securityinsights$Enable,
7016
+ callback: BodyResponseCallback<Schema$GoogleChromeManagementVersionsV1EnableInsightsResponse>
7017
+ ): void;
7018
+ enable(
7019
+ callback: BodyResponseCallback<Schema$GoogleChromeManagementVersionsV1EnableInsightsResponse>
7020
+ ): void;
7021
+ enable(
7022
+ paramsOrCallback?:
7023
+ | Params$Resource$Customers$Enterprise$Securityinsights$Enable
7024
+ | BodyResponseCallback<Schema$GoogleChromeManagementVersionsV1EnableInsightsResponse>
7025
+ | BodyResponseCallback<Readable>,
7026
+ optionsOrCallback?:
7027
+ | MethodOptions
7028
+ | StreamMethodOptions
7029
+ | BodyResponseCallback<Schema$GoogleChromeManagementVersionsV1EnableInsightsResponse>
7030
+ | BodyResponseCallback<Readable>,
7031
+ callback?:
7032
+ | BodyResponseCallback<Schema$GoogleChromeManagementVersionsV1EnableInsightsResponse>
7033
+ | BodyResponseCallback<Readable>
7034
+ ):
7035
+ | void
7036
+ | Promise<
7037
+ GaxiosResponseWithHTTP2<Schema$GoogleChromeManagementVersionsV1EnableInsightsResponse>
7038
+ >
7039
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
7040
+ let params = (paramsOrCallback ||
7041
+ {}) as Params$Resource$Customers$Enterprise$Securityinsights$Enable;
7042
+ let options = (optionsOrCallback || {}) as MethodOptions;
7043
+
7044
+ if (typeof paramsOrCallback === 'function') {
7045
+ callback = paramsOrCallback;
7046
+ params =
7047
+ {} as Params$Resource$Customers$Enterprise$Securityinsights$Enable;
7048
+ options = {};
7049
+ }
7050
+
7051
+ if (typeof optionsOrCallback === 'function') {
7052
+ callback = optionsOrCallback;
7053
+ options = {};
7054
+ }
7055
+
7056
+ const rootUrl =
7057
+ options.rootUrl || 'https://chromemanagement.googleapis.com/';
7058
+ const parameters = {
7059
+ options: Object.assign(
7060
+ {
7061
+ url: (
7062
+ rootUrl + '/v1/{+customer}/enterprise/securityInsights:enable'
7063
+ ).replace(/([^:]\/)\/+/g, '$1'),
7064
+ method: 'POST',
7065
+ apiVersion: '',
7066
+ },
7067
+ options
7068
+ ),
7069
+ params,
7070
+ requiredParams: ['customer'],
7071
+ pathParams: ['customer'],
7072
+ context: this.context,
7073
+ };
7074
+ if (callback) {
7075
+ createAPIRequest<Schema$GoogleChromeManagementVersionsV1EnableInsightsResponse>(
7076
+ parameters,
7077
+ callback as BodyResponseCallback<unknown>
7078
+ );
7079
+ } else {
7080
+ return createAPIRequest<Schema$GoogleChromeManagementVersionsV1EnableInsightsResponse>(
7081
+ parameters
7082
+ );
7083
+ }
7084
+ }
7085
+
7086
+ /**
7087
+ * Returns a high-level summary of content transfers for a given customer.
7088
+ * @example
7089
+ * ```js
7090
+ * // Before running the sample:
7091
+ * // - Enable the API at:
7092
+ * // https://console.developers.google.com/apis/api/chromemanagement.googleapis.com
7093
+ * // - Login into gcloud by running:
7094
+ * // ```sh
7095
+ * // $ gcloud auth application-default login
7096
+ * // ```
7097
+ * // - Install the npm module by running:
7098
+ * // ```sh
7099
+ * // $ npm install googleapis
7100
+ * // ```
7101
+ *
7102
+ * const {google} = require('googleapis');
7103
+ * const chromemanagement = google.chromemanagement('v1');
7104
+ *
7105
+ * async function main() {
7106
+ * const auth = new google.auth.GoogleAuth({
7107
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
7108
+ * scopes: [
7109
+ * 'https://www.googleapis.com/auth/chrome.management.securityinsights',
7110
+ * 'https://www.googleapis.com/auth/chrome.management.securityinsights.readonly',
7111
+ * ],
7112
+ * });
7113
+ *
7114
+ * // Acquire an auth client, and bind it to all future calls
7115
+ * const authClient = await auth.getClient();
7116
+ * google.options({auth: authClient});
7117
+ *
7118
+ * // Do the magic
7119
+ * const res =
7120
+ * await chromemanagement.customers.enterprise.securityInsights.queryContentTransfers(
7121
+ * {
7122
+ * // Required. The customer ID in the format "customers/{customer_id\}".
7123
+ * customer: 'customers/my-customer',
7124
+ * // Optional. The filter to apply to the request. For syntax, see AIP-160. Data is not available for events older than 180 days, and may be unavailable or inaccurate for time ranges less than 4 hours. If `event_time` is not specified, results will be returned for the last 30 days. Supported fields for filtering: - `event_time` Supported operators: - `\>=` and `<=` for `event_time` Supported conjunctions: - `AND` Example: `event_time \>= "2024-01-01T00:00:00Z" AND event_time <= "2024-01-02T00:00:00Z"`
7125
+ * filter: 'placeholder-value',
7126
+ * },
7127
+ * );
7128
+ * console.log(res.data);
7129
+ *
7130
+ * // Example response
7131
+ * // {
7132
+ * // "summaries": []
7133
+ * // }
7134
+ * }
7135
+ *
7136
+ * main().catch(e => {
7137
+ * console.error(e);
7138
+ * throw e;
7139
+ * });
7140
+ *
7141
+ * ```
7142
+ *
7143
+ * @param params - Parameters for request
7144
+ * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
7145
+ * @param callback - Optional callback that handles the response.
7146
+ * @returns A promise if used with async/await, or void if used with a callback.
7147
+ */
7148
+ queryContentTransfers(
7149
+ params: Params$Resource$Customers$Enterprise$Securityinsights$Querycontenttransfers,
7150
+ options: StreamMethodOptions
7151
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
7152
+ queryContentTransfers(
7153
+ params?: Params$Resource$Customers$Enterprise$Securityinsights$Querycontenttransfers,
7154
+ options?: MethodOptions
7155
+ ): Promise<
7156
+ GaxiosResponseWithHTTP2<Schema$GoogleChromeManagementVersionsV1QueryContentTransfersResponse>
7157
+ >;
7158
+ queryContentTransfers(
7159
+ params: Params$Resource$Customers$Enterprise$Securityinsights$Querycontenttransfers,
7160
+ options: StreamMethodOptions | BodyResponseCallback<Readable>,
7161
+ callback: BodyResponseCallback<Readable>
7162
+ ): void;
7163
+ queryContentTransfers(
7164
+ params: Params$Resource$Customers$Enterprise$Securityinsights$Querycontenttransfers,
7165
+ options:
7166
+ | MethodOptions
7167
+ | BodyResponseCallback<Schema$GoogleChromeManagementVersionsV1QueryContentTransfersResponse>,
7168
+ callback: BodyResponseCallback<Schema$GoogleChromeManagementVersionsV1QueryContentTransfersResponse>
7169
+ ): void;
7170
+ queryContentTransfers(
7171
+ params: Params$Resource$Customers$Enterprise$Securityinsights$Querycontenttransfers,
7172
+ callback: BodyResponseCallback<Schema$GoogleChromeManagementVersionsV1QueryContentTransfersResponse>
7173
+ ): void;
7174
+ queryContentTransfers(
7175
+ callback: BodyResponseCallback<Schema$GoogleChromeManagementVersionsV1QueryContentTransfersResponse>
7176
+ ): void;
7177
+ queryContentTransfers(
7178
+ paramsOrCallback?:
7179
+ | Params$Resource$Customers$Enterprise$Securityinsights$Querycontenttransfers
7180
+ | BodyResponseCallback<Schema$GoogleChromeManagementVersionsV1QueryContentTransfersResponse>
7181
+ | BodyResponseCallback<Readable>,
7182
+ optionsOrCallback?:
7183
+ | MethodOptions
7184
+ | StreamMethodOptions
7185
+ | BodyResponseCallback<Schema$GoogleChromeManagementVersionsV1QueryContentTransfersResponse>
7186
+ | BodyResponseCallback<Readable>,
7187
+ callback?:
7188
+ | BodyResponseCallback<Schema$GoogleChromeManagementVersionsV1QueryContentTransfersResponse>
7189
+ | BodyResponseCallback<Readable>
7190
+ ):
7191
+ | void
7192
+ | Promise<
7193
+ GaxiosResponseWithHTTP2<Schema$GoogleChromeManagementVersionsV1QueryContentTransfersResponse>
7194
+ >
7195
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
7196
+ let params = (paramsOrCallback ||
7197
+ {}) as Params$Resource$Customers$Enterprise$Securityinsights$Querycontenttransfers;
7198
+ let options = (optionsOrCallback || {}) as MethodOptions;
7199
+
7200
+ if (typeof paramsOrCallback === 'function') {
7201
+ callback = paramsOrCallback;
7202
+ params =
7203
+ {} as Params$Resource$Customers$Enterprise$Securityinsights$Querycontenttransfers;
7204
+ options = {};
7205
+ }
7206
+
7207
+ if (typeof optionsOrCallback === 'function') {
7208
+ callback = optionsOrCallback;
7209
+ options = {};
7210
+ }
7211
+
7212
+ const rootUrl =
7213
+ options.rootUrl || 'https://chromemanagement.googleapis.com/';
7214
+ const parameters = {
7215
+ options: Object.assign(
7216
+ {
7217
+ url: (
7218
+ rootUrl +
7219
+ '/v1/{+customer}/enterprise/securityInsights:queryContentTransfers'
7220
+ ).replace(/([^:]\/)\/+/g, '$1'),
7221
+ method: 'GET',
7222
+ apiVersion: '',
7223
+ },
7224
+ options
7225
+ ),
7226
+ params,
7227
+ requiredParams: ['customer'],
7228
+ pathParams: ['customer'],
7229
+ context: this.context,
7230
+ };
7231
+ if (callback) {
7232
+ createAPIRequest<Schema$GoogleChromeManagementVersionsV1QueryContentTransfersResponse>(
7233
+ parameters,
7234
+ callback as BodyResponseCallback<unknown>
7235
+ );
7236
+ } else {
7237
+ return createAPIRequest<Schema$GoogleChromeManagementVersionsV1QueryContentTransfersResponse>(
7238
+ parameters
7239
+ );
7240
+ }
7241
+ }
7242
+
7243
+ /**
7244
+ * Returns summaries of content transfers for a given metric and breakdown dimension.
7245
+ * @example
7246
+ * ```js
7247
+ * // Before running the sample:
7248
+ * // - Enable the API at:
7249
+ * // https://console.developers.google.com/apis/api/chromemanagement.googleapis.com
7250
+ * // - Login into gcloud by running:
7251
+ * // ```sh
7252
+ * // $ gcloud auth application-default login
7253
+ * // ```
7254
+ * // - Install the npm module by running:
7255
+ * // ```sh
7256
+ * // $ npm install googleapis
7257
+ * // ```
7258
+ *
7259
+ * const {google} = require('googleapis');
7260
+ * const chromemanagement = google.chromemanagement('v1');
7261
+ *
7262
+ * async function main() {
7263
+ * const auth = new google.auth.GoogleAuth({
7264
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
7265
+ * scopes: [
7266
+ * 'https://www.googleapis.com/auth/chrome.management.securityinsights',
7267
+ * 'https://www.googleapis.com/auth/chrome.management.securityinsights.readonly',
7268
+ * ],
7269
+ * });
7270
+ *
7271
+ * // Acquire an auth client, and bind it to all future calls
7272
+ * const authClient = await auth.getClient();
7273
+ * google.options({auth: authClient});
7274
+ *
7275
+ * // Do the magic
7276
+ * const res =
7277
+ * await chromemanagement.customers.enterprise.securityInsights.queryContentTransfersBreakdowns(
7278
+ * {
7279
+ * // Optional. The dimension to break down the content transfers by. Defaults to USER.
7280
+ * breakdown: 'placeholder-value',
7281
+ * // Required. The customer ID in the format "customers/{customer_id\}".
7282
+ * customer: 'customers/my-customer',
7283
+ * // Optional. The filter to apply to the request. For syntax, see AIP-160. Data is not available for events older than 180 days or more recent than 48 hours ago. If `event_time` is not specified, results will end 48 hours ago. Supported fields for filtering: - `user` - `event_domain` - `content_category` - `event_time` Filtering by `user` or `event_domain` requires the `breakdown` dimension to be set to the corresponding value (e.g., you must set `breakdown = USER` to filter by `user`). Supported operators: - `=` for `user`, `event_domain`, and `content_category`. - `<=` for `event_time`. Supported conjunctions: - `AND` Example: `user = "testuser" AND event_time <= "2024-01-02T00:00:00Z"`
7284
+ * filter: 'placeholder-value',
7285
+ * // Optional. The fixed time range to return the breakdowns for. Defaults to FIXED_TIME_RANGE_FOUR_WEEKS. Fixed time ranges are used to allow for precomputation and optimize response times.
7286
+ * fixedTimeRange: 'placeholder-value',
7287
+ * // Optional. The metric to return the breakdowns for. Defaults to CONTENT_TRANSFERS_METRIC_TOTAL_TRANSFERS.
7288
+ * metric: 'placeholder-value',
7289
+ * // Optional. The maximum number of breakdowns to return. The service may return fewer than this value. If unspecified, at most 50 breakdowns will be returned. The maximum value is 1000; values above 1000 will be coerced to 1000.
7290
+ * pageSize: 'placeholder-value',
7291
+ * // Optional. A page token, received from a previous `QueryContentTransfersBreakdowns` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `QueryContentTransfersBreakdowns` must match the call that provided the page token.
7292
+ * pageToken: 'placeholder-value',
7293
+ * },
7294
+ * );
7295
+ * console.log(res.data);
7296
+ *
7297
+ * // Example response
7298
+ * // {
7299
+ * // "contentTransfersBreakdowns": [],
7300
+ * // "nextPageToken": "my_nextPageToken"
7301
+ * // }
7302
+ * }
7303
+ *
7304
+ * main().catch(e => {
7305
+ * console.error(e);
7306
+ * throw e;
7307
+ * });
7308
+ *
7309
+ * ```
7310
+ *
7311
+ * @param params - Parameters for request
7312
+ * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
7313
+ * @param callback - Optional callback that handles the response.
7314
+ * @returns A promise if used with async/await, or void if used with a callback.
7315
+ */
7316
+ queryContentTransfersBreakdowns(
7317
+ params: Params$Resource$Customers$Enterprise$Securityinsights$Querycontenttransfersbreakdowns,
7318
+ options: StreamMethodOptions
7319
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
7320
+ queryContentTransfersBreakdowns(
7321
+ params?: Params$Resource$Customers$Enterprise$Securityinsights$Querycontenttransfersbreakdowns,
7322
+ options?: MethodOptions
7323
+ ): Promise<
7324
+ GaxiosResponseWithHTTP2<Schema$GoogleChromeManagementVersionsV1QueryContentTransfersBreakdownsResponse>
7325
+ >;
7326
+ queryContentTransfersBreakdowns(
7327
+ params: Params$Resource$Customers$Enterprise$Securityinsights$Querycontenttransfersbreakdowns,
7328
+ options: StreamMethodOptions | BodyResponseCallback<Readable>,
7329
+ callback: BodyResponseCallback<Readable>
7330
+ ): void;
7331
+ queryContentTransfersBreakdowns(
7332
+ params: Params$Resource$Customers$Enterprise$Securityinsights$Querycontenttransfersbreakdowns,
7333
+ options:
7334
+ | MethodOptions
7335
+ | BodyResponseCallback<Schema$GoogleChromeManagementVersionsV1QueryContentTransfersBreakdownsResponse>,
7336
+ callback: BodyResponseCallback<Schema$GoogleChromeManagementVersionsV1QueryContentTransfersBreakdownsResponse>
7337
+ ): void;
7338
+ queryContentTransfersBreakdowns(
7339
+ params: Params$Resource$Customers$Enterprise$Securityinsights$Querycontenttransfersbreakdowns,
7340
+ callback: BodyResponseCallback<Schema$GoogleChromeManagementVersionsV1QueryContentTransfersBreakdownsResponse>
7341
+ ): void;
7342
+ queryContentTransfersBreakdowns(
7343
+ callback: BodyResponseCallback<Schema$GoogleChromeManagementVersionsV1QueryContentTransfersBreakdownsResponse>
7344
+ ): void;
7345
+ queryContentTransfersBreakdowns(
7346
+ paramsOrCallback?:
7347
+ | Params$Resource$Customers$Enterprise$Securityinsights$Querycontenttransfersbreakdowns
7348
+ | BodyResponseCallback<Schema$GoogleChromeManagementVersionsV1QueryContentTransfersBreakdownsResponse>
7349
+ | BodyResponseCallback<Readable>,
7350
+ optionsOrCallback?:
7351
+ | MethodOptions
7352
+ | StreamMethodOptions
7353
+ | BodyResponseCallback<Schema$GoogleChromeManagementVersionsV1QueryContentTransfersBreakdownsResponse>
7354
+ | BodyResponseCallback<Readable>,
7355
+ callback?:
7356
+ | BodyResponseCallback<Schema$GoogleChromeManagementVersionsV1QueryContentTransfersBreakdownsResponse>
7357
+ | BodyResponseCallback<Readable>
7358
+ ):
7359
+ | void
7360
+ | Promise<
7361
+ GaxiosResponseWithHTTP2<Schema$GoogleChromeManagementVersionsV1QueryContentTransfersBreakdownsResponse>
7362
+ >
7363
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
7364
+ let params = (paramsOrCallback ||
7365
+ {}) as Params$Resource$Customers$Enterprise$Securityinsights$Querycontenttransfersbreakdowns;
7366
+ let options = (optionsOrCallback || {}) as MethodOptions;
7367
+
7368
+ if (typeof paramsOrCallback === 'function') {
7369
+ callback = paramsOrCallback;
7370
+ params =
7371
+ {} as Params$Resource$Customers$Enterprise$Securityinsights$Querycontenttransfersbreakdowns;
7372
+ options = {};
7373
+ }
7374
+
7375
+ if (typeof optionsOrCallback === 'function') {
7376
+ callback = optionsOrCallback;
7377
+ options = {};
7378
+ }
7379
+
7380
+ const rootUrl =
7381
+ options.rootUrl || 'https://chromemanagement.googleapis.com/';
7382
+ const parameters = {
7383
+ options: Object.assign(
7384
+ {
7385
+ url: (
7386
+ rootUrl +
7387
+ '/v1/{+customer}/enterprise/securityInsights:queryContentTransfersBreakdowns'
7388
+ ).replace(/([^:]\/)\/+/g, '$1'),
7389
+ method: 'GET',
7390
+ apiVersion: '',
7391
+ },
7392
+ options
7393
+ ),
7394
+ params,
7395
+ requiredParams: ['customer'],
7396
+ pathParams: ['customer'],
7397
+ context: this.context,
7398
+ };
7399
+ if (callback) {
7400
+ createAPIRequest<Schema$GoogleChromeManagementVersionsV1QueryContentTransfersBreakdownsResponse>(
7401
+ parameters,
7402
+ callback as BodyResponseCallback<unknown>
7403
+ );
7404
+ } else {
7405
+ return createAPIRequest<Schema$GoogleChromeManagementVersionsV1QueryContentTransfersBreakdownsResponse>(
7406
+ parameters
7407
+ );
7408
+ }
7409
+ }
7410
+
7411
+ /**
7412
+ * Returns a high-level summary of URL visits for a given customer. Requires a Chrome Enterprise Premium subscription. If the customer does not have this subscription, query results will be empty.
7413
+ * @example
7414
+ * ```js
7415
+ * // Before running the sample:
7416
+ * // - Enable the API at:
7417
+ * // https://console.developers.google.com/apis/api/chromemanagement.googleapis.com
7418
+ * // - Login into gcloud by running:
7419
+ * // ```sh
7420
+ * // $ gcloud auth application-default login
7421
+ * // ```
7422
+ * // - Install the npm module by running:
7423
+ * // ```sh
7424
+ * // $ npm install googleapis
7425
+ * // ```
7426
+ *
7427
+ * const {google} = require('googleapis');
7428
+ * const chromemanagement = google.chromemanagement('v1');
7429
+ *
7430
+ * async function main() {
7431
+ * const auth = new google.auth.GoogleAuth({
7432
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
7433
+ * scopes: [
7434
+ * 'https://www.googleapis.com/auth/chrome.management.securityinsights',
7435
+ * 'https://www.googleapis.com/auth/chrome.management.securityinsights.readonly',
7436
+ * ],
7437
+ * });
7438
+ *
7439
+ * // Acquire an auth client, and bind it to all future calls
7440
+ * const authClient = await auth.getClient();
7441
+ * google.options({auth: authClient});
7442
+ *
7443
+ * // Do the magic
7444
+ * const res =
7445
+ * await chromemanagement.customers.enterprise.securityInsights.queryUrlVisits(
7446
+ * {
7447
+ * // Required. The customer ID in the format "customers/{customer_id\}".
7448
+ * customer: 'customers/my-customer',
7449
+ * // Optional. The filter to apply to the request. For syntax, see AIP-160. Data is not available for events older than 180 days, and may be unavailable or inaccurate for time ranges less than 4 hours. If `event_time` is not specified, results will be returned for the last 30 days. Supported fields for filtering: - `event_time` Supported operators: - `\>=` and `<=` for `event_time` Supported conjunctions: - `AND` Example: `event_time \>= "2024-01-01T00:00:00Z" AND event_time <= "2024-01-02T00:00:00Z"`
7450
+ * filter: 'placeholder-value',
7451
+ * },
7452
+ * );
7453
+ * console.log(res.data);
7454
+ *
7455
+ * // Example response
7456
+ * // {
7457
+ * // "summaries": []
7458
+ * // }
7459
+ * }
7460
+ *
7461
+ * main().catch(e => {
7462
+ * console.error(e);
7463
+ * throw e;
7464
+ * });
7465
+ *
7466
+ * ```
7467
+ *
7468
+ * @param params - Parameters for request
7469
+ * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
7470
+ * @param callback - Optional callback that handles the response.
7471
+ * @returns A promise if used with async/await, or void if used with a callback.
7472
+ */
7473
+ queryUrlVisits(
7474
+ params: Params$Resource$Customers$Enterprise$Securityinsights$Queryurlvisits,
7475
+ options: StreamMethodOptions
7476
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
7477
+ queryUrlVisits(
7478
+ params?: Params$Resource$Customers$Enterprise$Securityinsights$Queryurlvisits,
7479
+ options?: MethodOptions
7480
+ ): Promise<
7481
+ GaxiosResponseWithHTTP2<Schema$GoogleChromeManagementVersionsV1QueryUrlVisitsResponse>
7482
+ >;
7483
+ queryUrlVisits(
7484
+ params: Params$Resource$Customers$Enterprise$Securityinsights$Queryurlvisits,
7485
+ options: StreamMethodOptions | BodyResponseCallback<Readable>,
7486
+ callback: BodyResponseCallback<Readable>
7487
+ ): void;
7488
+ queryUrlVisits(
7489
+ params: Params$Resource$Customers$Enterprise$Securityinsights$Queryurlvisits,
7490
+ options:
7491
+ | MethodOptions
7492
+ | BodyResponseCallback<Schema$GoogleChromeManagementVersionsV1QueryUrlVisitsResponse>,
7493
+ callback: BodyResponseCallback<Schema$GoogleChromeManagementVersionsV1QueryUrlVisitsResponse>
7494
+ ): void;
7495
+ queryUrlVisits(
7496
+ params: Params$Resource$Customers$Enterprise$Securityinsights$Queryurlvisits,
7497
+ callback: BodyResponseCallback<Schema$GoogleChromeManagementVersionsV1QueryUrlVisitsResponse>
7498
+ ): void;
7499
+ queryUrlVisits(
7500
+ callback: BodyResponseCallback<Schema$GoogleChromeManagementVersionsV1QueryUrlVisitsResponse>
7501
+ ): void;
7502
+ queryUrlVisits(
7503
+ paramsOrCallback?:
7504
+ | Params$Resource$Customers$Enterprise$Securityinsights$Queryurlvisits
7505
+ | BodyResponseCallback<Schema$GoogleChromeManagementVersionsV1QueryUrlVisitsResponse>
7506
+ | BodyResponseCallback<Readable>,
7507
+ optionsOrCallback?:
7508
+ | MethodOptions
7509
+ | StreamMethodOptions
7510
+ | BodyResponseCallback<Schema$GoogleChromeManagementVersionsV1QueryUrlVisitsResponse>
7511
+ | BodyResponseCallback<Readable>,
7512
+ callback?:
7513
+ | BodyResponseCallback<Schema$GoogleChromeManagementVersionsV1QueryUrlVisitsResponse>
7514
+ | BodyResponseCallback<Readable>
7515
+ ):
7516
+ | void
7517
+ | Promise<
7518
+ GaxiosResponseWithHTTP2<Schema$GoogleChromeManagementVersionsV1QueryUrlVisitsResponse>
7519
+ >
7520
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
7521
+ let params = (paramsOrCallback ||
7522
+ {}) as Params$Resource$Customers$Enterprise$Securityinsights$Queryurlvisits;
7523
+ let options = (optionsOrCallback || {}) as MethodOptions;
7524
+
7525
+ if (typeof paramsOrCallback === 'function') {
7526
+ callback = paramsOrCallback;
7527
+ params =
7528
+ {} as Params$Resource$Customers$Enterprise$Securityinsights$Queryurlvisits;
7529
+ options = {};
7530
+ }
7531
+
7532
+ if (typeof optionsOrCallback === 'function') {
7533
+ callback = optionsOrCallback;
7534
+ options = {};
7535
+ }
7536
+
7537
+ const rootUrl =
7538
+ options.rootUrl || 'https://chromemanagement.googleapis.com/';
7539
+ const parameters = {
7540
+ options: Object.assign(
7541
+ {
7542
+ url: (
7543
+ rootUrl +
7544
+ '/v1/{+customer}/enterprise/securityInsights:queryUrlVisits'
7545
+ ).replace(/([^:]\/)\/+/g, '$1'),
7546
+ method: 'GET',
7547
+ apiVersion: '',
7548
+ },
7549
+ options
7550
+ ),
7551
+ params,
7552
+ requiredParams: ['customer'],
7553
+ pathParams: ['customer'],
7554
+ context: this.context,
7555
+ };
7556
+ if (callback) {
7557
+ createAPIRequest<Schema$GoogleChromeManagementVersionsV1QueryUrlVisitsResponse>(
7558
+ parameters,
7559
+ callback as BodyResponseCallback<unknown>
7560
+ );
7561
+ } else {
7562
+ return createAPIRequest<Schema$GoogleChromeManagementVersionsV1QueryUrlVisitsResponse>(
7563
+ parameters
7564
+ );
7565
+ }
7566
+ }
7567
+
7568
+ /**
7569
+ * Returns summaries of URL visits for a given metric and breakdown dimension. Requires a Chrome Enterprise Premium subscription. If the customer does not have this subscription, query results will be empty.
7570
+ * @example
7571
+ * ```js
7572
+ * // Before running the sample:
7573
+ * // - Enable the API at:
7574
+ * // https://console.developers.google.com/apis/api/chromemanagement.googleapis.com
7575
+ * // - Login into gcloud by running:
7576
+ * // ```sh
7577
+ * // $ gcloud auth application-default login
7578
+ * // ```
7579
+ * // - Install the npm module by running:
7580
+ * // ```sh
7581
+ * // $ npm install googleapis
7582
+ * // ```
7583
+ *
7584
+ * const {google} = require('googleapis');
7585
+ * const chromemanagement = google.chromemanagement('v1');
7586
+ *
7587
+ * async function main() {
7588
+ * const auth = new google.auth.GoogleAuth({
7589
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
7590
+ * scopes: [
7591
+ * 'https://www.googleapis.com/auth/chrome.management.securityinsights',
7592
+ * 'https://www.googleapis.com/auth/chrome.management.securityinsights.readonly',
7593
+ * ],
7594
+ * });
7595
+ *
7596
+ * // Acquire an auth client, and bind it to all future calls
7597
+ * const authClient = await auth.getClient();
7598
+ * google.options({auth: authClient});
7599
+ *
7600
+ * // Do the magic
7601
+ * const res =
7602
+ * await chromemanagement.customers.enterprise.securityInsights.queryUrlVisitsBreakdowns(
7603
+ * {
7604
+ * // Optional. The dimension to break down the URL visits by. Defaults to USER.
7605
+ * breakdown: 'placeholder-value',
7606
+ * // Required. The customer ID in the format "customers/{customer_id\}".
7607
+ * customer: 'customers/my-customer',
7608
+ * // Optional. The filter to apply to the request. For syntax, see AIP-160. Data is not available for events older than 180 days or more recent than 48 hours ago. If `event_time` is not specified, results will end 48 hours ago. Supported fields for filtering: - `user` - `event_domain` - `event_time` Filtering by `user` or `event_domain` requires the `breakdown` dimension to be set to the corresponding value (e.g., you must set `breakdown = USER` to filter by `user`). Supported operators: - `=` for `user` and `event_domain`. - `<=` for `event_time`. Supported conjunctions: - `AND` Example: `user = "testuser" AND event_time <= "2024-01-02T00:00:00Z"`
7609
+ * filter: 'placeholder-value',
7610
+ * // Optional. The fixed time range to return the breakdowns for. Defaults to FIXED_TIME_RANGE_FOUR_WEEKS. Fixed time ranges are used to allow for precomputation and optimize response times.
7611
+ * fixedTimeRange: 'placeholder-value',
7612
+ * // Optional. The metric to return the breakdowns for. Defaults to URL_VISITS_METRIC_TOTAL_SUSPICIOUS_URL_VISITS.
7613
+ * metric: 'placeholder-value',
7614
+ * // Optional. The maximum number of breakdowns to return. The service may return fewer than this value. If unspecified, at most 50 breakdowns will be returned. The maximum value is 1000; values above 1000 will be coerced to 1000.
7615
+ * pageSize: 'placeholder-value',
7616
+ * // Optional. A page token, received from a previous `QueryUrlVisitsBreakdowns` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `QueryUrlVisitsBreakdowns` must match the call that provided the page token.
7617
+ * pageToken: 'placeholder-value',
7618
+ * },
7619
+ * );
7620
+ * console.log(res.data);
7621
+ *
7622
+ * // Example response
7623
+ * // {
7624
+ * // "nextPageToken": "my_nextPageToken",
7625
+ * // "urlVisitsBreakdowns": []
7626
+ * // }
7627
+ * }
7628
+ *
7629
+ * main().catch(e => {
7630
+ * console.error(e);
7631
+ * throw e;
7632
+ * });
7633
+ *
7634
+ * ```
7635
+ *
7636
+ * @param params - Parameters for request
7637
+ * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
7638
+ * @param callback - Optional callback that handles the response.
7639
+ * @returns A promise if used with async/await, or void if used with a callback.
7640
+ */
7641
+ queryUrlVisitsBreakdowns(
7642
+ params: Params$Resource$Customers$Enterprise$Securityinsights$Queryurlvisitsbreakdowns,
7643
+ options: StreamMethodOptions
7644
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
7645
+ queryUrlVisitsBreakdowns(
7646
+ params?: Params$Resource$Customers$Enterprise$Securityinsights$Queryurlvisitsbreakdowns,
7647
+ options?: MethodOptions
7648
+ ): Promise<
7649
+ GaxiosResponseWithHTTP2<Schema$GoogleChromeManagementVersionsV1QueryUrlVisitsBreakdownsResponse>
7650
+ >;
7651
+ queryUrlVisitsBreakdowns(
7652
+ params: Params$Resource$Customers$Enterprise$Securityinsights$Queryurlvisitsbreakdowns,
7653
+ options: StreamMethodOptions | BodyResponseCallback<Readable>,
7654
+ callback: BodyResponseCallback<Readable>
7655
+ ): void;
7656
+ queryUrlVisitsBreakdowns(
7657
+ params: Params$Resource$Customers$Enterprise$Securityinsights$Queryurlvisitsbreakdowns,
7658
+ options:
7659
+ | MethodOptions
7660
+ | BodyResponseCallback<Schema$GoogleChromeManagementVersionsV1QueryUrlVisitsBreakdownsResponse>,
7661
+ callback: BodyResponseCallback<Schema$GoogleChromeManagementVersionsV1QueryUrlVisitsBreakdownsResponse>
7662
+ ): void;
7663
+ queryUrlVisitsBreakdowns(
7664
+ params: Params$Resource$Customers$Enterprise$Securityinsights$Queryurlvisitsbreakdowns,
7665
+ callback: BodyResponseCallback<Schema$GoogleChromeManagementVersionsV1QueryUrlVisitsBreakdownsResponse>
7666
+ ): void;
7667
+ queryUrlVisitsBreakdowns(
7668
+ callback: BodyResponseCallback<Schema$GoogleChromeManagementVersionsV1QueryUrlVisitsBreakdownsResponse>
7669
+ ): void;
7670
+ queryUrlVisitsBreakdowns(
7671
+ paramsOrCallback?:
7672
+ | Params$Resource$Customers$Enterprise$Securityinsights$Queryurlvisitsbreakdowns
7673
+ | BodyResponseCallback<Schema$GoogleChromeManagementVersionsV1QueryUrlVisitsBreakdownsResponse>
7674
+ | BodyResponseCallback<Readable>,
7675
+ optionsOrCallback?:
7676
+ | MethodOptions
7677
+ | StreamMethodOptions
7678
+ | BodyResponseCallback<Schema$GoogleChromeManagementVersionsV1QueryUrlVisitsBreakdownsResponse>
7679
+ | BodyResponseCallback<Readable>,
7680
+ callback?:
7681
+ | BodyResponseCallback<Schema$GoogleChromeManagementVersionsV1QueryUrlVisitsBreakdownsResponse>
7682
+ | BodyResponseCallback<Readable>
7683
+ ):
7684
+ | void
7685
+ | Promise<
7686
+ GaxiosResponseWithHTTP2<Schema$GoogleChromeManagementVersionsV1QueryUrlVisitsBreakdownsResponse>
7687
+ >
7688
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
7689
+ let params = (paramsOrCallback ||
7690
+ {}) as Params$Resource$Customers$Enterprise$Securityinsights$Queryurlvisitsbreakdowns;
7691
+ let options = (optionsOrCallback || {}) as MethodOptions;
7692
+
7693
+ if (typeof paramsOrCallback === 'function') {
7694
+ callback = paramsOrCallback;
7695
+ params =
7696
+ {} as Params$Resource$Customers$Enterprise$Securityinsights$Queryurlvisitsbreakdowns;
7697
+ options = {};
7698
+ }
7699
+
7700
+ if (typeof optionsOrCallback === 'function') {
7701
+ callback = optionsOrCallback;
7702
+ options = {};
7703
+ }
7704
+
7705
+ const rootUrl =
7706
+ options.rootUrl || 'https://chromemanagement.googleapis.com/';
7707
+ const parameters = {
7708
+ options: Object.assign(
7709
+ {
7710
+ url: (
7711
+ rootUrl +
7712
+ '/v1/{+customer}/enterprise/securityInsights:queryUrlVisitsBreakdowns'
7713
+ ).replace(/([^:]\/)\/+/g, '$1'),
7714
+ method: 'GET',
7715
+ apiVersion: '',
7716
+ },
7717
+ options
7718
+ ),
7719
+ params,
7720
+ requiredParams: ['customer'],
7721
+ pathParams: ['customer'],
7722
+ context: this.context,
7723
+ };
7724
+ if (callback) {
7725
+ createAPIRequest<Schema$GoogleChromeManagementVersionsV1QueryUrlVisitsBreakdownsResponse>(
7726
+ parameters,
7727
+ callback as BodyResponseCallback<unknown>
7728
+ );
7729
+ } else {
7730
+ return createAPIRequest<Schema$GoogleChromeManagementVersionsV1QueryUrlVisitsBreakdownsResponse>(
7731
+ parameters
7732
+ );
7733
+ }
7734
+ }
7735
+ }
7736
+
7737
+ export interface Params$Resource$Customers$Enterprise$Securityinsights$Checkenablementstatus extends StandardParameters {
7738
+ /**
7739
+ * Required. The customer to check the enablement status for. Format: customers/{customer_id\}
7740
+ */
7741
+ customer?: string;
7742
+ }
7743
+ export interface Params$Resource$Customers$Enterprise$Securityinsights$Disable extends StandardParameters {
7744
+ /**
7745
+ * Required. The customer to disable insights for. Format: customers/{customer\}
7746
+ */
7747
+ customer?: string;
7748
+
7749
+ /**
7750
+ * Request body metadata
7751
+ */
7752
+ requestBody?: Schema$GoogleChromeManagementVersionsV1DisableInsightsRequest;
7753
+ }
7754
+ export interface Params$Resource$Customers$Enterprise$Securityinsights$Enable extends StandardParameters {
7755
+ /**
7756
+ * Required. The customer to enable insights for. Format: customers/{customer\}
7757
+ */
7758
+ customer?: string;
7759
+
7760
+ /**
7761
+ * Request body metadata
7762
+ */
7763
+ requestBody?: Schema$GoogleChromeManagementVersionsV1EnableInsightsRequest;
7764
+ }
7765
+ export interface Params$Resource$Customers$Enterprise$Securityinsights$Querycontenttransfers extends StandardParameters {
7766
+ /**
7767
+ * Required. The customer ID in the format "customers/{customer_id\}".
7768
+ */
7769
+ customer?: string;
7770
+ /**
7771
+ * Optional. The filter to apply to the request. For syntax, see AIP-160. Data is not available for events older than 180 days, and may be unavailable or inaccurate for time ranges less than 4 hours. If `event_time` is not specified, results will be returned for the last 30 days. Supported fields for filtering: - `event_time` Supported operators: - `\>=` and `<=` for `event_time` Supported conjunctions: - `AND` Example: `event_time \>= "2024-01-01T00:00:00Z" AND event_time <= "2024-01-02T00:00:00Z"`
7772
+ */
7773
+ filter?: string;
7774
+ }
7775
+ export interface Params$Resource$Customers$Enterprise$Securityinsights$Querycontenttransfersbreakdowns extends StandardParameters {
7776
+ /**
7777
+ * Optional. The dimension to break down the content transfers by. Defaults to USER.
7778
+ */
7779
+ breakdown?: string;
7780
+ /**
7781
+ * Required. The customer ID in the format "customers/{customer_id\}".
7782
+ */
7783
+ customer?: string;
7784
+ /**
7785
+ * Optional. The filter to apply to the request. For syntax, see AIP-160. Data is not available for events older than 180 days or more recent than 48 hours ago. If `event_time` is not specified, results will end 48 hours ago. Supported fields for filtering: - `user` - `event_domain` - `content_category` - `event_time` Filtering by `user` or `event_domain` requires the `breakdown` dimension to be set to the corresponding value (e.g., you must set `breakdown = USER` to filter by `user`). Supported operators: - `=` for `user`, `event_domain`, and `content_category`. - `<=` for `event_time`. Supported conjunctions: - `AND` Example: `user = "testuser" AND event_time <= "2024-01-02T00:00:00Z"`
7786
+ */
7787
+ filter?: string;
7788
+ /**
7789
+ * Optional. The fixed time range to return the breakdowns for. Defaults to FIXED_TIME_RANGE_FOUR_WEEKS. Fixed time ranges are used to allow for precomputation and optimize response times.
7790
+ */
7791
+ fixedTimeRange?: string;
7792
+ /**
7793
+ * Optional. The metric to return the breakdowns for. Defaults to CONTENT_TRANSFERS_METRIC_TOTAL_TRANSFERS.
7794
+ */
7795
+ metric?: string;
7796
+ /**
7797
+ * Optional. The maximum number of breakdowns to return. The service may return fewer than this value. If unspecified, at most 50 breakdowns will be returned. The maximum value is 1000; values above 1000 will be coerced to 1000.
7798
+ */
7799
+ pageSize?: number;
7800
+ /**
7801
+ * Optional. A page token, received from a previous `QueryContentTransfersBreakdowns` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `QueryContentTransfersBreakdowns` must match the call that provided the page token.
7802
+ */
7803
+ pageToken?: string;
7804
+ }
7805
+ export interface Params$Resource$Customers$Enterprise$Securityinsights$Queryurlvisits extends StandardParameters {
7806
+ /**
7807
+ * Required. The customer ID in the format "customers/{customer_id\}".
7808
+ */
7809
+ customer?: string;
7810
+ /**
7811
+ * Optional. The filter to apply to the request. For syntax, see AIP-160. Data is not available for events older than 180 days, and may be unavailable or inaccurate for time ranges less than 4 hours. If `event_time` is not specified, results will be returned for the last 30 days. Supported fields for filtering: - `event_time` Supported operators: - `\>=` and `<=` for `event_time` Supported conjunctions: - `AND` Example: `event_time \>= "2024-01-01T00:00:00Z" AND event_time <= "2024-01-02T00:00:00Z"`
7812
+ */
7813
+ filter?: string;
7814
+ }
7815
+ export interface Params$Resource$Customers$Enterprise$Securityinsights$Queryurlvisitsbreakdowns extends StandardParameters {
7816
+ /**
7817
+ * Optional. The dimension to break down the URL visits by. Defaults to USER.
7818
+ */
7819
+ breakdown?: string;
7820
+ /**
7821
+ * Required. The customer ID in the format "customers/{customer_id\}".
7822
+ */
7823
+ customer?: string;
7824
+ /**
7825
+ * Optional. The filter to apply to the request. For syntax, see AIP-160. Data is not available for events older than 180 days or more recent than 48 hours ago. If `event_time` is not specified, results will end 48 hours ago. Supported fields for filtering: - `user` - `event_domain` - `event_time` Filtering by `user` or `event_domain` requires the `breakdown` dimension to be set to the corresponding value (e.g., you must set `breakdown = USER` to filter by `user`). Supported operators: - `=` for `user` and `event_domain`. - `<=` for `event_time`. Supported conjunctions: - `AND` Example: `user = "testuser" AND event_time <= "2024-01-02T00:00:00Z"`
7826
+ */
7827
+ filter?: string;
7828
+ /**
7829
+ * Optional. The fixed time range to return the breakdowns for. Defaults to FIXED_TIME_RANGE_FOUR_WEEKS. Fixed time ranges are used to allow for precomputation and optimize response times.
7830
+ */
7831
+ fixedTimeRange?: string;
7832
+ /**
7833
+ * Optional. The metric to return the breakdowns for. Defaults to URL_VISITS_METRIC_TOTAL_SUSPICIOUS_URL_VISITS.
7834
+ */
7835
+ metric?: string;
7836
+ /**
7837
+ * Optional. The maximum number of breakdowns to return. The service may return fewer than this value. If unspecified, at most 50 breakdowns will be returned. The maximum value is 1000; values above 1000 will be coerced to 1000.
7838
+ */
7839
+ pageSize?: number;
7840
+ /**
7841
+ * Optional. A page token, received from a previous `QueryUrlVisitsBreakdowns` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `QueryUrlVisitsBreakdowns` must match the call that provided the page token.
7842
+ */
7843
+ pageToken?: string;
7844
+ }
7845
+
7846
+ export class Resource$Customers$Profiles {
7847
+ context: APIRequestContext;
7848
+ commands: Resource$Customers$Profiles$Commands;
7849
+ constructor(context: APIRequestContext) {
7850
+ this.context = context;
7851
+ this.commands = new Resource$Customers$Profiles$Commands(this.context);
7852
+ }
7853
+
7854
+ /**
7855
+ * Deletes the data collected from a Chrome browser profile.
7856
+ * @example
7857
+ * ```js
7858
+ * // Before running the sample:
7859
+ * // - Enable the API at:
7860
+ * // https://console.developers.google.com/apis/api/chromemanagement.googleapis.com
7861
+ * // - Login into gcloud by running:
7862
+ * // ```sh
7863
+ * // $ gcloud auth application-default login
7864
+ * // ```
7865
+ * // - Install the npm module by running:
7866
+ * // ```sh
7867
+ * // $ npm install googleapis
7868
+ * // ```
7869
+ *
7870
+ * const {google} = require('googleapis');
7871
+ * const chromemanagement = google.chromemanagement('v1');
7872
+ *
7873
+ * async function main() {
7874
+ * const auth = new google.auth.GoogleAuth({
7875
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
7876
+ * scopes: ['https://www.googleapis.com/auth/chrome.management.profiles'],
7877
+ * });
7878
+ *
7879
+ * // Acquire an auth client, and bind it to all future calls
7880
+ * const authClient = await auth.getClient();
7881
+ * google.options({auth: authClient});
7882
+ *
7883
+ * // Do the magic
7884
+ * const res = await chromemanagement.customers.profiles.delete({
7885
+ * // Required. Format: customers/{customer_id\}/profiles/{profile_permanent_id\}
7886
+ * name: 'customers/my-customer/profiles/my-profile',
7887
+ * });
7888
+ * console.log(res.data);
7889
+ *
7890
+ * // Example response
7891
+ * // {}
7892
+ * }
7893
+ *
7894
+ * main().catch(e => {
7895
+ * console.error(e);
7896
+ * throw e;
7897
+ * });
7898
+ *
7899
+ * ```
7900
+ *
7901
+ * @param params - Parameters for request
7902
+ * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
7903
+ * @param callback - Optional callback that handles the response.
7904
+ * @returns A promise if used with async/await, or void if used with a callback.
7905
+ */
7906
+ delete(
7907
+ params: Params$Resource$Customers$Profiles$Delete,
7908
+ options: StreamMethodOptions
7909
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
7910
+ delete(
7911
+ params?: Params$Resource$Customers$Profiles$Delete,
7912
+ options?: MethodOptions
7913
+ ): Promise<GaxiosResponseWithHTTP2<Schema$GoogleProtobufEmpty>>;
7914
+ delete(
7915
+ params: Params$Resource$Customers$Profiles$Delete,
7916
+ options: StreamMethodOptions | BodyResponseCallback<Readable>,
7917
+ callback: BodyResponseCallback<Readable>
7918
+ ): void;
7919
+ delete(
7920
+ params: Params$Resource$Customers$Profiles$Delete,
7921
+ options: MethodOptions | BodyResponseCallback<Schema$GoogleProtobufEmpty>,
7922
+ callback: BodyResponseCallback<Schema$GoogleProtobufEmpty>
7923
+ ): void;
7924
+ delete(
7925
+ params: Params$Resource$Customers$Profiles$Delete,
7926
+ callback: BodyResponseCallback<Schema$GoogleProtobufEmpty>
7927
+ ): void;
7928
+ delete(callback: BodyResponseCallback<Schema$GoogleProtobufEmpty>): void;
7929
+ delete(
7930
+ paramsOrCallback?:
7931
+ | Params$Resource$Customers$Profiles$Delete
7932
+ | BodyResponseCallback<Schema$GoogleProtobufEmpty>
7933
+ | BodyResponseCallback<Readable>,
7934
+ optionsOrCallback?:
7935
+ | MethodOptions
7936
+ | StreamMethodOptions
7937
+ | BodyResponseCallback<Schema$GoogleProtobufEmpty>
7938
+ | BodyResponseCallback<Readable>,
7939
+ callback?:
7940
+ | BodyResponseCallback<Schema$GoogleProtobufEmpty>
7941
+ | BodyResponseCallback<Readable>
7942
+ ):
7943
+ | void
7944
+ | Promise<GaxiosResponseWithHTTP2<Schema$GoogleProtobufEmpty>>
7945
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
7946
+ let params = (paramsOrCallback ||
7947
+ {}) as Params$Resource$Customers$Profiles$Delete;
7948
+ let options = (optionsOrCallback || {}) as MethodOptions;
7949
+
7950
+ if (typeof paramsOrCallback === 'function') {
7951
+ callback = paramsOrCallback;
7952
+ params = {} as Params$Resource$Customers$Profiles$Delete;
7953
+ options = {};
7954
+ }
7955
+
7956
+ if (typeof optionsOrCallback === 'function') {
7957
+ callback = optionsOrCallback;
7958
+ options = {};
7959
+ }
7960
+
7961
+ const rootUrl =
7962
+ options.rootUrl || 'https://chromemanagement.googleapis.com/';
7963
+ const parameters = {
7964
+ options: Object.assign(
7965
+ {
7966
+ url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'),
7967
+ method: 'DELETE',
7968
+ apiVersion: '',
7969
+ },
7970
+ options
7971
+ ),
7972
+ params,
7973
+ requiredParams: ['name'],
7974
+ pathParams: ['name'],
7975
+ context: this.context,
7976
+ };
7977
+ if (callback) {
7978
+ createAPIRequest<Schema$GoogleProtobufEmpty>(
7979
+ parameters,
7980
+ callback as BodyResponseCallback<unknown>
7981
+ );
7982
+ } else {
7983
+ return createAPIRequest<Schema$GoogleProtobufEmpty>(parameters);
7984
+ }
7985
+ }
7986
+
7987
+ /**
7988
+ * Gets a Chrome browser profile with customer ID and profile permanent ID.
7989
+ * @example
7990
+ * ```js
7991
+ * // Before running the sample:
7992
+ * // - Enable the API at:
7993
+ * // https://console.developers.google.com/apis/api/chromemanagement.googleapis.com
7994
+ * // - Login into gcloud by running:
7995
+ * // ```sh
7996
+ * // $ gcloud auth application-default login
7997
+ * // ```
7998
+ * // - Install the npm module by running:
7999
+ * // ```sh
8000
+ * // $ npm install googleapis
8001
+ * // ```
8002
+ *
8003
+ * const {google} = require('googleapis');
8004
+ * const chromemanagement = google.chromemanagement('v1');
8005
+ *
8006
+ * async function main() {
8007
+ * const auth = new google.auth.GoogleAuth({
8008
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
8009
+ * scopes: [
8010
+ * 'https://www.googleapis.com/auth/chrome.management.profiles',
8011
+ * 'https://www.googleapis.com/auth/chrome.management.profiles.readonly',
8012
+ * ],
8013
+ * });
8014
+ *
8015
+ * // Acquire an auth client, and bind it to all future calls
8016
+ * const authClient = await auth.getClient();
8017
+ * google.options({auth: authClient});
8018
+ *
8019
+ * // Do the magic
8020
+ * const res = await chromemanagement.customers.profiles.get({
8021
+ * // Required. Format: customers/{customer_id\}/profiles/{profile_permanent_id\}
8022
+ * name: 'customers/my-customer/profiles/my-profile',
8023
+ * });
8024
+ * console.log(res.data);
8025
+ *
8026
+ * // Example response
8027
+ * // {
8028
+ * // "affiliationState": "my_affiliationState",
8029
+ * // "annotatedLocation": "my_annotatedLocation",
8030
+ * // "annotatedUser": "my_annotatedUser",
8031
+ * // "attestationCredential": {},
8032
+ * // "browserChannel": "my_browserChannel",
8033
+ * // "browserVersion": "my_browserVersion",
8034
+ * // "deviceInfo": {},
8035
+ * // "displayName": "my_displayName",
8036
+ * // "etag": "my_etag",
8037
+ * // "extensionCount": "my_extensionCount",
8038
+ * // "firstEnrollmentTime": "my_firstEnrollmentTime",
8039
+ * // "identityProvider": "my_identityProvider",
8040
+ * // "lastActivityTime": "my_lastActivityTime",
8041
+ * // "lastPolicyFetchTime": "my_lastPolicyFetchTime",
8042
+ * // "lastPolicySyncTime": "my_lastPolicySyncTime",
8043
+ * // "lastStatusReportTime": "my_lastStatusReportTime",
8044
+ * // "name": "my_name",
8045
+ * // "osPlatformType": "my_osPlatformType",
8046
+ * // "osPlatformVersion": "my_osPlatformVersion",
8047
+ * // "osVersion": "my_osVersion",
8048
+ * // "policyCount": "my_policyCount",
8049
+ * // "profileId": "my_profileId",
8050
+ * // "profilePermanentId": "my_profilePermanentId",
8051
+ * // "reportingData": {},
8052
+ * // "supportsFcmNotifications": false,
8053
+ * // "userEmail": "my_userEmail",
8054
+ * // "userId": "my_userId"
8055
+ * // }
8056
+ * }
8057
+ *
8058
+ * main().catch(e => {
8059
+ * console.error(e);
8060
+ * throw e;
8061
+ * });
8062
+ *
8063
+ * ```
8064
+ *
8065
+ * @param params - Parameters for request
8066
+ * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
8067
+ * @param callback - Optional callback that handles the response.
8068
+ * @returns A promise if used with async/await, or void if used with a callback.
8069
+ */
8070
+ get(
8071
+ params: Params$Resource$Customers$Profiles$Get,
8072
+ options: StreamMethodOptions
8073
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
8074
+ get(
8075
+ params?: Params$Resource$Customers$Profiles$Get,
8076
+ options?: MethodOptions
8077
+ ): Promise<
8078
+ GaxiosResponseWithHTTP2<Schema$GoogleChromeManagementVersionsV1ChromeBrowserProfile>
8079
+ >;
8080
+ get(
8081
+ params: Params$Resource$Customers$Profiles$Get,
8082
+ options: StreamMethodOptions | BodyResponseCallback<Readable>,
8083
+ callback: BodyResponseCallback<Readable>
8084
+ ): void;
8085
+ get(
8086
+ params: Params$Resource$Customers$Profiles$Get,
8087
+ options:
8088
+ | MethodOptions
8089
+ | BodyResponseCallback<Schema$GoogleChromeManagementVersionsV1ChromeBrowserProfile>,
8090
+ callback: BodyResponseCallback<Schema$GoogleChromeManagementVersionsV1ChromeBrowserProfile>
8091
+ ): void;
8092
+ get(
8093
+ params: Params$Resource$Customers$Profiles$Get,
8094
+ callback: BodyResponseCallback<Schema$GoogleChromeManagementVersionsV1ChromeBrowserProfile>
8095
+ ): void;
8096
+ get(
8097
+ callback: BodyResponseCallback<Schema$GoogleChromeManagementVersionsV1ChromeBrowserProfile>
8098
+ ): void;
8099
+ get(
8100
+ paramsOrCallback?:
8101
+ | Params$Resource$Customers$Profiles$Get
8102
+ | BodyResponseCallback<Schema$GoogleChromeManagementVersionsV1ChromeBrowserProfile>
8103
+ | BodyResponseCallback<Readable>,
8104
+ optionsOrCallback?:
8105
+ | MethodOptions
8106
+ | StreamMethodOptions
8107
+ | BodyResponseCallback<Schema$GoogleChromeManagementVersionsV1ChromeBrowserProfile>
8108
+ | BodyResponseCallback<Readable>,
8109
+ callback?:
8110
+ | BodyResponseCallback<Schema$GoogleChromeManagementVersionsV1ChromeBrowserProfile>
8111
+ | BodyResponseCallback<Readable>
8112
+ ):
8113
+ | void
8114
+ | Promise<
8115
+ GaxiosResponseWithHTTP2<Schema$GoogleChromeManagementVersionsV1ChromeBrowserProfile>
8116
+ >
8117
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
8118
+ let params = (paramsOrCallback ||
8119
+ {}) as Params$Resource$Customers$Profiles$Get;
8120
+ let options = (optionsOrCallback || {}) as MethodOptions;
8121
+
8122
+ if (typeof paramsOrCallback === 'function') {
8123
+ callback = paramsOrCallback;
8124
+ params = {} as Params$Resource$Customers$Profiles$Get;
8125
+ options = {};
8126
+ }
8127
+
8128
+ if (typeof optionsOrCallback === 'function') {
8129
+ callback = optionsOrCallback;
8130
+ options = {};
8131
+ }
8132
+
8133
+ const rootUrl =
8134
+ options.rootUrl || 'https://chromemanagement.googleapis.com/';
8135
+ const parameters = {
8136
+ options: Object.assign(
8137
+ {
8138
+ url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'),
8139
+ method: 'GET',
8140
+ apiVersion: '',
8141
+ },
8142
+ options
8143
+ ),
8144
+ params,
8145
+ requiredParams: ['name'],
8146
+ pathParams: ['name'],
8147
+ context: this.context,
8148
+ };
8149
+ if (callback) {
8150
+ createAPIRequest<Schema$GoogleChromeManagementVersionsV1ChromeBrowserProfile>(
8151
+ parameters,
8152
+ callback as BodyResponseCallback<unknown>
8153
+ );
8154
+ } else {
8155
+ return createAPIRequest<Schema$GoogleChromeManagementVersionsV1ChromeBrowserProfile>(
8156
+ parameters
8157
+ );
8158
+ }
8159
+ }
8160
+
8161
+ /**
8162
+ * Lists Chrome browser profiles of a customer based on the given search and sorting criteria.
8163
+ * @example
8164
+ * ```js
8165
+ * // Before running the sample:
8166
+ * // - Enable the API at:
8167
+ * // https://console.developers.google.com/apis/api/chromemanagement.googleapis.com
8168
+ * // - Login into gcloud by running:
8169
+ * // ```sh
8170
+ * // $ gcloud auth application-default login
8171
+ * // ```
8172
+ * // - Install the npm module by running:
8173
+ * // ```sh
8174
+ * // $ npm install googleapis
8175
+ * // ```
8176
+ *
8177
+ * const {google} = require('googleapis');
8178
+ * const chromemanagement = google.chromemanagement('v1');
8179
+ *
8180
+ * async function main() {
8181
+ * const auth = new google.auth.GoogleAuth({
8182
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
8183
+ * scopes: [
8184
+ * 'https://www.googleapis.com/auth/chrome.management.profiles',
8185
+ * 'https://www.googleapis.com/auth/chrome.management.profiles.readonly',
8186
+ * ],
8187
+ * });
8188
+ *
8189
+ * // Acquire an auth client, and bind it to all future calls
8190
+ * const authClient = await auth.getClient();
8191
+ * google.options({auth: authClient});
8192
+ *
8193
+ * // Do the magic
8194
+ * const res = await chromemanagement.customers.profiles.list({
8195
+ * // Optional. The filter used to filter profiles. The following fields can be used in the filter: - profile_id - display_name - user_email - last_activity_time - last_policy_sync_time - last_status_report_time - first_enrollment_time - os_platform_type - os_version - browser_version - browser_channel - policy_count - extension_count - identity_provider - affiliation_state - os_platform_version - ouId Any of the above fields can be used to specify a filter, and filtering by multiple fields is supported with AND operator. String type fields and enum type fields support '=' and '!=' operators. The integer type and the timestamp type fields support '=', '!=', '<', '\>', '<=' and '\>=' operators. Timestamps expect an RFC-3339 formatted string (e.g. 2012-04-21T11:30:00-04:00). Wildcard '*' can be used with a string type field filter. In addition, string literal filtering is also supported, for example, 'ABC' as a filter maps to a filter that checks if any of the filterable string type fields contains 'ABC'. Organization unit number can be used as a filtering criteria here by specifying 'ouId = ${your_org_unit_id\}', please note that only single OU ID matching is supported.
6780
8196
  * filter: 'placeholder-value',
6781
8197
  * // Optional. The fields used to specify the ordering of the results. The supported fields are: - profile_id - display_name - user_email - last_activity_time - last_policy_sync_time - last_status_report_time - first_enrollment_time - os_platform_type - os_version - browser_version - browser_channel - policy_count - extension_count - identity_provider - affiliation_state - os_platform_version By default, sorting is in ascending order, to specify descending order for a field, a suffix " desc" should be added to the field name. The default ordering is the descending order of last_status_report_time.
6782
8198
  * orderBy: 'placeholder-value',
@@ -8413,6 +9829,167 @@ export namespace chromemanagement_v1 {
8413
9829
  }
8414
9830
  }
8415
9831
 
9832
+ /**
9833
+ * Generate report of installed Chrome versions on managed profiles.
9834
+ * @example
9835
+ * ```js
9836
+ * // Before running the sample:
9837
+ * // - Enable the API at:
9838
+ * // https://console.developers.google.com/apis/api/chromemanagement.googleapis.com
9839
+ * // - Login into gcloud by running:
9840
+ * // ```sh
9841
+ * // $ gcloud auth application-default login
9842
+ * // ```
9843
+ * // - Install the npm module by running:
9844
+ * // ```sh
9845
+ * // $ npm install googleapis
9846
+ * // ```
9847
+ *
9848
+ * const {google} = require('googleapis');
9849
+ * const chromemanagement = google.chromemanagement('v1');
9850
+ *
9851
+ * async function main() {
9852
+ * const auth = new google.auth.GoogleAuth({
9853
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
9854
+ * scopes: [
9855
+ * 'https://www.googleapis.com/auth/chrome.management.reports.readonly',
9856
+ * ],
9857
+ * });
9858
+ *
9859
+ * // Acquire an auth client, and bind it to all future calls
9860
+ * const authClient = await auth.getClient();
9861
+ * google.options({auth: authClient});
9862
+ *
9863
+ * // Do the magic
9864
+ * const res =
9865
+ * await chromemanagement.customers.reports.countChromeProfileVersions({
9866
+ * // Required. Customer id or "my_customer" to use the customer associated to the account making the request.
9867
+ * customer: 'customers/my-customer',
9868
+ * // Optional. Query string to filter results, AND-separated fields in EBNF syntax. Note: OR operations are not supported in this filter. Supported filter fields: * last_active_date
9869
+ * filter: 'placeholder-value',
9870
+ * // The ID of the organizational unit. If omitted, all data will be returned.
9871
+ * orgUnitId: 'placeholder-value',
9872
+ * // Optional. Maximum number of results to return. Maximum and default are 100.
9873
+ * pageSize: 'placeholder-value',
9874
+ * // Optional. Token to specify the page of the request to be returned.
9875
+ * pageToken: 'placeholder-value',
9876
+ * });
9877
+ * console.log(res.data);
9878
+ *
9879
+ * // Example response
9880
+ * // {
9881
+ * // "nextPageToken": "my_nextPageToken",
9882
+ * // "profileBrowserVersions": [],
9883
+ * // "totalSize": 0
9884
+ * // }
9885
+ * }
9886
+ *
9887
+ * main().catch(e => {
9888
+ * console.error(e);
9889
+ * throw e;
9890
+ * });
9891
+ *
9892
+ * ```
9893
+ *
9894
+ * @param params - Parameters for request
9895
+ * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
9896
+ * @param callback - Optional callback that handles the response.
9897
+ * @returns A promise if used with async/await, or void if used with a callback.
9898
+ */
9899
+ countChromeProfileVersions(
9900
+ params: Params$Resource$Customers$Reports$Countchromeprofileversions,
9901
+ options: StreamMethodOptions
9902
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
9903
+ countChromeProfileVersions(
9904
+ params?: Params$Resource$Customers$Reports$Countchromeprofileversions,
9905
+ options?: MethodOptions
9906
+ ): Promise<
9907
+ GaxiosResponseWithHTTP2<Schema$GoogleChromeManagementV1CountChromeProfileVersionsResponse>
9908
+ >;
9909
+ countChromeProfileVersions(
9910
+ params: Params$Resource$Customers$Reports$Countchromeprofileversions,
9911
+ options: StreamMethodOptions | BodyResponseCallback<Readable>,
9912
+ callback: BodyResponseCallback<Readable>
9913
+ ): void;
9914
+ countChromeProfileVersions(
9915
+ params: Params$Resource$Customers$Reports$Countchromeprofileversions,
9916
+ options:
9917
+ | MethodOptions
9918
+ | BodyResponseCallback<Schema$GoogleChromeManagementV1CountChromeProfileVersionsResponse>,
9919
+ callback: BodyResponseCallback<Schema$GoogleChromeManagementV1CountChromeProfileVersionsResponse>
9920
+ ): void;
9921
+ countChromeProfileVersions(
9922
+ params: Params$Resource$Customers$Reports$Countchromeprofileversions,
9923
+ callback: BodyResponseCallback<Schema$GoogleChromeManagementV1CountChromeProfileVersionsResponse>
9924
+ ): void;
9925
+ countChromeProfileVersions(
9926
+ callback: BodyResponseCallback<Schema$GoogleChromeManagementV1CountChromeProfileVersionsResponse>
9927
+ ): void;
9928
+ countChromeProfileVersions(
9929
+ paramsOrCallback?:
9930
+ | Params$Resource$Customers$Reports$Countchromeprofileversions
9931
+ | BodyResponseCallback<Schema$GoogleChromeManagementV1CountChromeProfileVersionsResponse>
9932
+ | BodyResponseCallback<Readable>,
9933
+ optionsOrCallback?:
9934
+ | MethodOptions
9935
+ | StreamMethodOptions
9936
+ | BodyResponseCallback<Schema$GoogleChromeManagementV1CountChromeProfileVersionsResponse>
9937
+ | BodyResponseCallback<Readable>,
9938
+ callback?:
9939
+ | BodyResponseCallback<Schema$GoogleChromeManagementV1CountChromeProfileVersionsResponse>
9940
+ | BodyResponseCallback<Readable>
9941
+ ):
9942
+ | void
9943
+ | Promise<
9944
+ GaxiosResponseWithHTTP2<Schema$GoogleChromeManagementV1CountChromeProfileVersionsResponse>
9945
+ >
9946
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
9947
+ let params = (paramsOrCallback ||
9948
+ {}) as Params$Resource$Customers$Reports$Countchromeprofileversions;
9949
+ let options = (optionsOrCallback || {}) as MethodOptions;
9950
+
9951
+ if (typeof paramsOrCallback === 'function') {
9952
+ callback = paramsOrCallback;
9953
+ params =
9954
+ {} as Params$Resource$Customers$Reports$Countchromeprofileversions;
9955
+ options = {};
9956
+ }
9957
+
9958
+ if (typeof optionsOrCallback === 'function') {
9959
+ callback = optionsOrCallback;
9960
+ options = {};
9961
+ }
9962
+
9963
+ const rootUrl =
9964
+ options.rootUrl || 'https://chromemanagement.googleapis.com/';
9965
+ const parameters = {
9966
+ options: Object.assign(
9967
+ {
9968
+ url: (
9969
+ rootUrl + '/v1/{+customer}/reports:countChromeProfileVersions'
9970
+ ).replace(/([^:]\/)\/+/g, '$1'),
9971
+ method: 'GET',
9972
+ apiVersion: '',
9973
+ },
9974
+ options
9975
+ ),
9976
+ params,
9977
+ requiredParams: ['customer'],
9978
+ pathParams: ['customer'],
9979
+ context: this.context,
9980
+ };
9981
+ if (callback) {
9982
+ createAPIRequest<Schema$GoogleChromeManagementV1CountChromeProfileVersionsResponse>(
9983
+ parameters,
9984
+ callback as BodyResponseCallback<unknown>
9985
+ );
9986
+ } else {
9987
+ return createAPIRequest<Schema$GoogleChromeManagementV1CountChromeProfileVersionsResponse>(
9988
+ parameters
9989
+ );
9990
+ }
9991
+ }
9992
+
8416
9993
  /**
8417
9994
  * Generate report of installed Chrome versions.
8418
9995
  * @example
@@ -9966,6 +11543,28 @@ export namespace chromemanagement_v1 {
9966
11543
  */
9967
11544
  readMask?: string;
9968
11545
  }
11546
+ export interface Params$Resource$Customers$Reports$Countchromeprofileversions extends StandardParameters {
11547
+ /**
11548
+ * Required. Customer id or "my_customer" to use the customer associated to the account making the request.
11549
+ */
11550
+ customer?: string;
11551
+ /**
11552
+ * Optional. Query string to filter results, AND-separated fields in EBNF syntax. Note: OR operations are not supported in this filter. Supported filter fields: * last_active_date
11553
+ */
11554
+ filter?: string;
11555
+ /**
11556
+ * The ID of the organizational unit. If omitted, all data will be returned.
11557
+ */
11558
+ orgUnitId?: string;
11559
+ /**
11560
+ * Optional. Maximum number of results to return. Maximum and default are 100.
11561
+ */
11562
+ pageSize?: number;
11563
+ /**
11564
+ * Optional. Token to specify the page of the request to be returned.
11565
+ */
11566
+ pageToken?: string;
11567
+ }
9969
11568
  export interface Params$Resource$Customers$Reports$Countchromeversions extends StandardParameters {
9970
11569
  /**
9971
11570
  * Required. Customer id or "my_customer" to use the customer associated to the account making the request.