@googleapis/chromemanagement 31.1.1 → 31.2.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
@@ -2665,6 +2665,56 @@ export namespace chromemanagement_v1 {
2665
2665
  */
2666
2666
  publicKey?: string | null;
2667
2667
  }
2668
+ /**
2669
+ * A specific installation of Chrome on a device with managed Chrome browsers.
2670
+ */
2671
+ export interface Schema$GoogleChromeManagementVersionsV1Browser {
2672
+ /**
2673
+ * Output only. Browser version installed.
2674
+ */
2675
+ browserVersion?: string | null;
2676
+ /**
2677
+ * Output only. The channel of the browser installed.
2678
+ */
2679
+ channel?: string | null;
2680
+ /**
2681
+ * Output only. The path to the Chrome.exe executable for this browser.
2682
+ */
2683
+ executablePath?: string | null;
2684
+ /**
2685
+ * Output only. The time when the last request to fetch policies succeeded on this Chrome browser.
2686
+ */
2687
+ lastPolicyFetchTime?: string | null;
2688
+ /**
2689
+ * Output only. The time when the last report was received from this Chrome browser.
2690
+ */
2691
+ lastStatusReportTime?: string | null;
2692
+ /**
2693
+ * Output only. Pending version of a browser is installed. This field is only set when the current active browser has a different version as in "browser_version".
2694
+ */
2695
+ pendingInstallVersion?: string | null;
2696
+ /**
2697
+ * Output only. List of all plugins installed on this Chrome browser.
2698
+ */
2699
+ plugins?: Schema$GoogleChromeManagementVersionsV1Plugin[];
2700
+ /**
2701
+ * Output only. The list of profiles for this browser.
2702
+ */
2703
+ profiles?: Schema$GoogleChromeManagementVersionsV1Profile[];
2704
+ }
2705
+ /**
2706
+ * A Chrome browser user.
2707
+ */
2708
+ export interface Schema$GoogleChromeManagementVersionsV1BrowserUser {
2709
+ /**
2710
+ * Output only. The time when this user info last reported a status.
2711
+ */
2712
+ lastStatusReportTime?: string | null;
2713
+ /**
2714
+ * Output only. The user name of the user that signed into chrome.
2715
+ */
2716
+ userName?: string | null;
2717
+ }
2668
2718
  /**
2669
2719
  * A certificate provisioning process.
2670
2720
  */
@@ -2739,6 +2789,127 @@ export namespace chromemanagement_v1 {
2739
2789
  */
2740
2790
  insightsState?: string | null;
2741
2791
  }
2792
+ /**
2793
+ * A device with managed Chrome Browsers.
2794
+ */
2795
+ export interface Schema$GoogleChromeManagementVersionsV1ChromeBrowser {
2796
+ /**
2797
+ * Optional. Asset identifier as annotated by the administrator or specified during enrollment.
2798
+ */
2799
+ annotatedAssetId?: string | null;
2800
+ /**
2801
+ * Optional. Address or location of the device as annotated by the administrator.
2802
+ */
2803
+ annotatedLocation?: string | null;
2804
+ /**
2805
+ * Optional. Notes about this device as annotated by the administrator.
2806
+ */
2807
+ annotatedNotes?: string | null;
2808
+ /**
2809
+ * Optional. User of the device as annotated by the administrator.
2810
+ */
2811
+ annotatedUser?: string | null;
2812
+ /**
2813
+ * Output only. The attestation credential used for Device Trust Connector.
2814
+ */
2815
+ attestationCredential?: Schema$GoogleChromeManagementVersionsV1AttestationCredential;
2816
+ /**
2817
+ * Output only. Unique identifier of Chrome Browser.
2818
+ */
2819
+ browserPermanentId?: string | null;
2820
+ /**
2821
+ * Output only. List of Chrome browsers installed on this device.
2822
+ */
2823
+ browsers?: Schema$GoogleChromeManagementVersionsV1Browser[];
2824
+ /**
2825
+ * Output only. List of all browser versions installed on this device.
2826
+ */
2827
+ browserVersions?: string[] | null;
2828
+ /**
2829
+ * Output only. The history of identifiers reported to this device.
2830
+ */
2831
+ deviceIdentifiersHistory?: Schema$GoogleChromeManagementVersionsV1DeviceIdentifiersHistory;
2832
+ /**
2833
+ * Output only. The number of distinct extensions installed on all the Chrome browsers of this device.
2834
+ */
2835
+ extensionCount?: string | null;
2836
+ /**
2837
+ * Output only. The time of the last activity on the device device either from reporting, policy fetching or registration.
2838
+ */
2839
+ lastActivityTime?: string | null;
2840
+ /**
2841
+ * Output only. The last user who logged into a Chrome browser on this device.
2842
+ */
2843
+ lastDeviceUser?: string | null;
2844
+ /**
2845
+ * Output only. List of recent browser users, in descending order by last report time.
2846
+ */
2847
+ lastDeviceUsers?: Schema$GoogleChromeManagementVersionsV1BrowserUser[];
2848
+ /**
2849
+ * Output only. The time the last policy fetch succeeded on this device.
2850
+ */
2851
+ lastPolicyFetchTime?: string | null;
2852
+ /**
2853
+ * Output only. The time the device last tried to register.
2854
+ */
2855
+ lastRegistrationTime?: string | null;
2856
+ /**
2857
+ * Output only. The time the device last sent a status report.
2858
+ */
2859
+ lastStatusReportTime?: string | null;
2860
+ /**
2861
+ * Output only. The list of all device level policies set for extensions installed in Chrome on this device.
2862
+ */
2863
+ machineExtensionPolicies?: Schema$GoogleChromeManagementVersionsV1ExtensionPolicy[];
2864
+ /**
2865
+ * Output only. Machine name.
2866
+ */
2867
+ machineName?: string | null;
2868
+ /**
2869
+ * Output only. The list of all device level policies set for Chrome browsers on this device.
2870
+ */
2871
+ machinePolicies?: Schema$GoogleChromeManagementVersionsV1Policy[];
2872
+ /**
2873
+ * Identifier. Format: customers/{customer_id\}/chromeBrowsers/{browser_permanent_id\}
2874
+ */
2875
+ name?: string | null;
2876
+ /**
2877
+ * Output only. Recent policy fetch activity by Omaha. Not necessarily the last fetch since this field is only updated daily.
2878
+ */
2879
+ omahaRecentFetchTime?: string | null;
2880
+ /**
2881
+ * Output only. The obfuscated organizational unit ID of the browser.
2882
+ */
2883
+ orgUnitId?: string | null;
2884
+ /**
2885
+ * Output only. Device CPU architecture.
2886
+ */
2887
+ osArchitecture?: string | null;
2888
+ /**
2889
+ * Output only. Device Os platform.
2890
+ */
2891
+ osPlatform?: string | null;
2892
+ /**
2893
+ * Output only. Device Os platform and version combined.
2894
+ */
2895
+ osPlatformVersion?: string | null;
2896
+ /**
2897
+ * Output only. Device Os Version.
2898
+ */
2899
+ osVersion?: string | null;
2900
+ /**
2901
+ * Output only. The number of distinct policies set on all the Chrome browsers of this device.
2902
+ */
2903
+ policyCount?: string | null;
2904
+ /**
2905
+ * Output only. The device's serial number.
2906
+ */
2907
+ serialNumber?: string | null;
2908
+ /**
2909
+ * Output only. The initial device id sent by the first Chrome browser that enrolled this device.
2910
+ */
2911
+ virtualDeviceId?: string | null;
2912
+ }
2742
2913
  /**
2743
2914
  * A representation of a Chrome browser profile.
2744
2915
  */
@@ -3121,6 +3292,57 @@ export namespace chromemanagement_v1 {
3121
3292
  */
3122
3293
  xdrSettings?: Schema$GoogleChromeManagementVersionsV1XdrSettings;
3123
3294
  }
3295
+ /**
3296
+ * Collection of device identifiers.
3297
+ */
3298
+ export interface Schema$GoogleChromeManagementVersionsV1DeviceIdentifiers {
3299
+ /**
3300
+ * Output only. The device's host name.
3301
+ */
3302
+ hostName?: string | null;
3303
+ /**
3304
+ * Output only. The name of the machine associated with the device.
3305
+ */
3306
+ machineName?: string | null;
3307
+ /**
3308
+ * Output only. The device's serial number.
3309
+ */
3310
+ serialNumber?: string | null;
3311
+ }
3312
+ /**
3313
+ * History of device identifiers reported from a device.
3314
+ */
3315
+ export interface Schema$GoogleChromeManagementVersionsV1DeviceIdentifiersHistory {
3316
+ /**
3317
+ * Output only. The device id is potentially being used by multiple devices.
3318
+ */
3319
+ deviceIdCollision?: boolean | null;
3320
+ /**
3321
+ * Output only. The last time we detected the device id collision.
3322
+ */
3323
+ lastDeviceIdCollisionDetectionTime?: string | null;
3324
+ /**
3325
+ * Output only. List of device identifiers sent by this device. In descending order by last_activity_time.
3326
+ */
3327
+ records?: Schema$GoogleChromeManagementVersionsV1DeviceIdentifiersRecord[];
3328
+ }
3329
+ /**
3330
+ * Record of the device identifiers and when they were reported.
3331
+ */
3332
+ export interface Schema$GoogleChromeManagementVersionsV1DeviceIdentifiersRecord {
3333
+ /**
3334
+ * Output only. The first time these identifiers were reported.
3335
+ */
3336
+ firstRecordTime?: string | null;
3337
+ /**
3338
+ * Output only. Device identifiers.
3339
+ */
3340
+ identifiers?: Schema$GoogleChromeManagementVersionsV1DeviceIdentifiers;
3341
+ /**
3342
+ * Output only. The time of the last activity of these identifiers either from reporting, policy fetching or registration.
3343
+ */
3344
+ lastActivityTime?: string | null;
3345
+ }
3124
3346
  /**
3125
3347
  * Information of a device that runs a Chrome browser profile.
3126
3348
  */
@@ -3194,6 +3416,138 @@ export namespace chromemanagement_v1 {
3194
3416
  */
3195
3417
  insightsState?: string | null;
3196
3418
  }
3419
+ /**
3420
+ * Enrollment token for a chrome device.
3421
+ */
3422
+ export interface Schema$GoogleChromeManagementVersionsV1EnrollmentToken {
3423
+ /**
3424
+ * Output only. The creation time of the token.
3425
+ */
3426
+ createTime?: string | null;
3427
+ /**
3428
+ * Output only. The id of the user who created the token.
3429
+ */
3430
+ creatorId?: string | null;
3431
+ /**
3432
+ * Output only. The obfuscated ID of the customer to whom this token is associated.
3433
+ */
3434
+ customerId?: string | null;
3435
+ /**
3436
+ * Identifier. The resource name of the enrollment token. Format: customers/{customer\}/enrollmentTokens/{token_permanent_id\}
3437
+ */
3438
+ name?: string | null;
3439
+ /**
3440
+ * Optional. Obfuscated ID of the organization unit this token is associated with. If not set, the token is created for the root organization unit.
3441
+ */
3442
+ orgUnitId?: string | null;
3443
+ /**
3444
+ * Output only. The id of the user who revoked the token, null if the token is not revoked.
3445
+ */
3446
+ revokerId?: string | null;
3447
+ /**
3448
+ * Output only. The revocation time of the token, null if the token is not revoked.
3449
+ */
3450
+ revokeTime?: string | null;
3451
+ /**
3452
+ * Output only. The state of the token.
3453
+ */
3454
+ state?: string | null;
3455
+ /**
3456
+ * Output only. The value of the token stored on the device and used to identify it to the management service handling the enrollment request.
3457
+ */
3458
+ token?: string | null;
3459
+ /**
3460
+ * Output only. Unique identifier of the enrollment token used to access information on tokens.
3461
+ */
3462
+ tokenPermanentId?: string | null;
3463
+ /**
3464
+ * Optional. The device type this token is used for. If not set, defaults to `ENROLLMENT_TOKEN_TYPE_CHROME_BROWSER`.
3465
+ */
3466
+ tokenType?: string | null;
3467
+ }
3468
+ /**
3469
+ * Information about extensions installed on profile reported on an installed Chrome on a device with managed chrome browsers.
3470
+ */
3471
+ export interface Schema$GoogleChromeManagementVersionsV1Extension {
3472
+ /**
3473
+ * Output only. The type of the extension.
3474
+ */
3475
+ appType?: string | null;
3476
+ /**
3477
+ * Output only. If the extension is controlled by a browser policy.
3478
+ */
3479
+ configuredAppPolicy?: string | null;
3480
+ /**
3481
+ * Output only. The localized description of this extension.
3482
+ */
3483
+ description?: string | null;
3484
+ /**
3485
+ * Output only. Whether the extension is disabled.
3486
+ */
3487
+ disabled?: boolean | null;
3488
+ /**
3489
+ * Output only. The id of the extension.
3490
+ */
3491
+ extensionId?: string | null;
3492
+ /**
3493
+ * Output only. The localized name of this extension as reported by Chrome.
3494
+ */
3495
+ extensionName?: string | null;
3496
+ /**
3497
+ * Output only. The URL of the homepage for this extension.
3498
+ */
3499
+ homepageUri?: string | null;
3500
+ /**
3501
+ * Output only. The list of icons available for this extension.
3502
+ */
3503
+ icons?: Schema$GoogleChromeManagementVersionsV1ExtensionIcon[];
3504
+ /**
3505
+ * Output only. The way the extension was installed.
3506
+ */
3507
+ installType?: string | null;
3508
+ /**
3509
+ * Output only. The manifest version of this extension.
3510
+ */
3511
+ manifestVersion?: number | null;
3512
+ /**
3513
+ * Output only. The list of permissions required for this extension.
3514
+ */
3515
+ permissions?: string[] | null;
3516
+ /**
3517
+ * Output only. The version of the extension.
3518
+ */
3519
+ version?: string | null;
3520
+ }
3521
+ /**
3522
+ * An icon of a Chrome browser extension.
3523
+ */
3524
+ export interface Schema$GoogleChromeManagementVersionsV1ExtensionIcon {
3525
+ /**
3526
+ * Output only. The size of the extension icon.
3527
+ */
3528
+ size?: number | null;
3529
+ /**
3530
+ * Output only. The URL to the extension icon.
3531
+ */
3532
+ uri?: string | null;
3533
+ }
3534
+ /**
3535
+ * The reported policies applied to an extension installed on a Chrome profile.
3536
+ */
3537
+ export interface Schema$GoogleChromeManagementVersionsV1ExtensionPolicy {
3538
+ /**
3539
+ * Output only. The id of the extension the policies are applied to.
3540
+ */
3541
+ extensionId?: string | null;
3542
+ /**
3543
+ * Output only. The name of the extension the policies are applied to.
3544
+ */
3545
+ extensionName?: string | null;
3546
+ /**
3547
+ * Output only. List of policies applied to this extension.
3548
+ */
3549
+ policies?: Schema$GoogleChromeManagementVersionsV1Policy[];
3550
+ }
3197
3551
  /**
3198
3552
  * Describes a generic Certificate Authority Connection.
3199
3553
  */
@@ -3263,6 +3617,19 @@ export namespace chromemanagement_v1 {
3263
3617
  */
3264
3618
  totalSize?: string | null;
3265
3619
  }
3620
+ /**
3621
+ * Response to ListChromeBrowsers method.
3622
+ */
3623
+ export interface Schema$GoogleChromeManagementVersionsV1ListChromeBrowsersResponse {
3624
+ /**
3625
+ * List of Chrome Browser device objects.
3626
+ */
3627
+ chromeBrowsers?: Schema$GoogleChromeManagementVersionsV1ChromeBrowser[];
3628
+ /**
3629
+ * Token used to access next page of this result.
3630
+ */
3631
+ nextPageToken?: string | null;
3632
+ }
3266
3633
  /**
3267
3634
  * Response to ListConnectorConfigs method.
3268
3635
  */
@@ -3276,6 +3643,19 @@ export namespace chromemanagement_v1 {
3276
3643
  */
3277
3644
  nextPageToken?: string | null;
3278
3645
  }
3646
+ /**
3647
+ * Response that contains a list of tokens.
3648
+ */
3649
+ export interface Schema$GoogleChromeManagementVersionsV1ListEnrollmentTokensResponse {
3650
+ /**
3651
+ * List of Chrome device enrollment tokens.
3652
+ */
3653
+ enrollmentTokens?: Schema$GoogleChromeManagementVersionsV1EnrollmentToken[];
3654
+ /**
3655
+ * Token to retrieve the next page of results, or empty if there are no more results in the list.
3656
+ */
3657
+ nextPageToken?: string | null;
3658
+ }
3279
3659
  /**
3280
3660
  * MIP label connector config.
3281
3661
  */
@@ -3289,6 +3669,23 @@ export namespace chromemanagement_v1 {
3289
3669
  */
3290
3670
  microsoftTenantId?: string | null;
3291
3671
  }
3672
+ /**
3673
+ * Request to MoveChromeBrowsers method.
3674
+ */
3675
+ export interface Schema$GoogleChromeManagementVersionsV1MoveChromeBrowsersRequest {
3676
+ /**
3677
+ * Required. ID of the destination organizational unit.
3678
+ */
3679
+ destinationOrgUnitId?: string | null;
3680
+ /**
3681
+ * Required. List of resource IDs of Chrome Browser Devices to move. A maximum of 600 browsers may be moved per request.
3682
+ */
3683
+ resourceIds?: string[] | null;
3684
+ }
3685
+ /**
3686
+ * Response to MoveChromeBrowsers method.
3687
+ */
3688
+ export interface Schema$GoogleChromeManagementVersionsV1MoveChromeBrowsersResponse {}
3292
3689
  /**
3293
3690
  * Request to MoveThirdPartyProfileUser method.
3294
3691
  */
@@ -3325,26 +3722,113 @@ export namespace chromemanagement_v1 {
3325
3722
  reportingSettings?: Schema$GoogleChromeManagementVersionsV1ReportingSettings;
3326
3723
  }
3327
3724
  /**
3328
- * Pub/Sub connector config.
3725
+ * Information about a Chrome browser plugin installed on a reported Chrome installation on a device with managed Chrome browsers.
3329
3726
  */
3330
- export interface Schema$GoogleChromeManagementVersionsV1PubSubConfig {
3727
+ export interface Schema$GoogleChromeManagementVersionsV1Plugin {
3331
3728
  /**
3332
- * Required. The reporting settings for the Pub/Sub config.
3729
+ * Output only. The description of the installed plugin.
3333
3730
  */
3334
- reportingSettings?: Schema$GoogleChromeManagementVersionsV1ReportingSettings;
3731
+ description?: string | null;
3335
3732
  /**
3336
- * Required. The full path to the topic to send the event to. Must be at most 1000 characters.
3733
+ * Output only. The filename of the installed plugin.
3337
3734
  */
3338
- topicFullPath?: string | null;
3735
+ filename?: string | null;
3736
+ /**
3737
+ * Output only. The name of the installed plugin.
3738
+ */
3739
+ pluginName?: string | null;
3339
3740
  }
3340
3741
  /**
3341
- * Pub/Sub XDR connector config.
3742
+ * The applied policy reported by a managed Chrome browser. The policy can be applied at various scopes (machine, profile, extension).
3342
3743
  */
3343
- export interface Schema$GoogleChromeManagementVersionsV1PubSubXdrConfig {
3744
+ export interface Schema$GoogleChromeManagementVersionsV1Policy {
3344
3745
  /**
3345
- * Required. The full path to the topic to send the event to. Must be at most 1000 characters.
3746
+ * Output only. A localized string with all the errors reported when trying to apply this policy, if any.
3346
3747
  */
3347
- topicFullPath?: string | null;
3748
+ error?: string | null;
3749
+ /**
3750
+ * Output only. The name of the policy.
3751
+ */
3752
+ policyName?: string | null;
3753
+ /**
3754
+ * Output only. The source of the policy.
3755
+ */
3756
+ source?: string | null;
3757
+ /**
3758
+ * Output only. The value of the policy.
3759
+ */
3760
+ value?: string | null;
3761
+ }
3762
+ /**
3763
+ * A profile reported on an installation of Chrome on a device with managed chrome browsers.
3764
+ */
3765
+ export interface Schema$GoogleChromeManagementVersionsV1Profile {
3766
+ /**
3767
+ * Output only. The email of the user signed in to this profile, if any.
3768
+ */
3769
+ chromeSignedInUserEmail?: string | null;
3770
+ /**
3771
+ * Output only. The list of extensions with applied extension policies.
3772
+ */
3773
+ extensionPolicies?: Schema$GoogleChromeManagementVersionsV1ExtensionPolicy[];
3774
+ /**
3775
+ * Output only. The list of extensions installed for this profile.
3776
+ */
3777
+ extensions?: Schema$GoogleChromeManagementVersionsV1Extension[];
3778
+ /**
3779
+ * Output only. A unique ID for this profile.
3780
+ */
3781
+ id?: string | null;
3782
+ /**
3783
+ * Output only. The time when the last request to fetch policies succeeded for this profile.
3784
+ */
3785
+ lastPolicyFetchTime?: string | null;
3786
+ /**
3787
+ * Output only. The time when the last report was received from this profile.
3788
+ */
3789
+ lastStatusReportTime?: string | null;
3790
+ /**
3791
+ * Output only. The name given to this profile.
3792
+ */
3793
+ profileName?: string | null;
3794
+ /**
3795
+ * Output only. The number of safe browsing warnings that were shown on this profile.
3796
+ */
3797
+ safeBrowsingWarnings?: string | null;
3798
+ /**
3799
+ * Output only. The number of safe browsing warnings that were clicked through on this profile.
3800
+ */
3801
+ safeBrowsingWarningsClickThroughs?: string | null;
3802
+ /**
3803
+ * Output only. The last time the safe browsing warning info was reset to 0.
3804
+ */
3805
+ safeBrowsingWarningsResetTime?: string | null;
3806
+ /**
3807
+ * Output only. The list of Chrome browser policies applied to this profile.
3808
+ */
3809
+ userPolicies?: Schema$GoogleChromeManagementVersionsV1Policy[];
3810
+ }
3811
+ /**
3812
+ * Pub/Sub connector config.
3813
+ */
3814
+ export interface Schema$GoogleChromeManagementVersionsV1PubSubConfig {
3815
+ /**
3816
+ * Required. The reporting settings for the Pub/Sub config.
3817
+ */
3818
+ reportingSettings?: Schema$GoogleChromeManagementVersionsV1ReportingSettings;
3819
+ /**
3820
+ * Required. The full path to the topic to send the event to. Must be at most 1000 characters.
3821
+ */
3822
+ topicFullPath?: string | null;
3823
+ }
3824
+ /**
3825
+ * Pub/Sub XDR connector config.
3826
+ */
3827
+ export interface Schema$GoogleChromeManagementVersionsV1PubSubXdrConfig {
3828
+ /**
3829
+ * Required. The full path to the topic to send the event to. Must be at most 1000 characters.
3830
+ */
3831
+ topicFullPath?: string | null;
3348
3832
  /**
3349
3833
  * Required. The XDR settings for the Pub/Sub XDR config.
3350
3834
  */
@@ -3540,6 +4024,10 @@ export namespace chromemanagement_v1 {
3540
4024
  */
3541
4025
  enabledOptInEvents?: string[] | null;
3542
4026
  }
4027
+ /**
4028
+ * Request to revoke a token.
4029
+ */
4030
+ export interface Schema$GoogleChromeManagementVersionsV1RevokeEnrollmentTokenRequest {}
3543
4031
  /**
3544
4032
  * Describes a SCEP Certificate Authority Connection.
3545
4033
  */
@@ -3843,7 +4331,9 @@ export namespace chromemanagement_v1 {
3843
4331
  context: APIRequestContext;
3844
4332
  apps: Resource$Customers$Apps;
3845
4333
  certificateProvisioningProcesses: Resource$Customers$Certificateprovisioningprocesses;
4334
+ chromeBrowsers: Resource$Customers$Chromebrowsers;
3846
4335
  connectorConfigs: Resource$Customers$Connectorconfigs;
4336
+ enrollmentTokens: Resource$Customers$Enrollmenttokens;
3847
4337
  enterprise: Resource$Customers$Enterprise;
3848
4338
  profiles: Resource$Customers$Profiles;
3849
4339
  reports: Resource$Customers$Reports;
@@ -3854,9 +4344,13 @@ export namespace chromemanagement_v1 {
3854
4344
  this.apps = new Resource$Customers$Apps(this.context);
3855
4345
  this.certificateProvisioningProcesses =
3856
4346
  new Resource$Customers$Certificateprovisioningprocesses(this.context);
4347
+ this.chromeBrowsers = new Resource$Customers$Chromebrowsers(this.context);
3857
4348
  this.connectorConfigs = new Resource$Customers$Connectorconfigs(
3858
4349
  this.context
3859
4350
  );
4351
+ this.enrollmentTokens = new Resource$Customers$Enrollmenttokens(
4352
+ this.context
4353
+ );
3860
4354
  this.enterprise = new Resource$Customers$Enterprise(this.context);
3861
4355
  this.profiles = new Resource$Customers$Profiles(this.context);
3862
4356
  this.reports = new Resource$Customers$Reports(this.context);
@@ -5976,14 +6470,14 @@ export namespace chromemanagement_v1 {
5976
6470
  name?: string;
5977
6471
  }
5978
6472
 
5979
- export class Resource$Customers$Connectorconfigs {
6473
+ export class Resource$Customers$Chromebrowsers {
5980
6474
  context: APIRequestContext;
5981
6475
  constructor(context: APIRequestContext) {
5982
6476
  this.context = context;
5983
6477
  }
5984
6478
 
5985
6479
  /**
5986
- * Creates a connector config.
6480
+ * Deletes the data collected from a Chrome browser profile.
5987
6481
  * @example
5988
6482
  * ```js
5989
6483
  * // Before running the sample:
@@ -6012,34 +6506,14 @@ export namespace chromemanagement_v1 {
6012
6506
  * google.options({auth: authClient});
6013
6507
  *
6014
6508
  * // Do the magic
6015
- * const res = await chromemanagement.customers.connectorConfigs.create({
6016
- * // 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.
6017
- * connectorConfigId: 'placeholder-value',
6018
- * // Required. Format: customers/{customer\}
6019
- * parent: 'customers/my-customer',
6020
- *
6021
- * // Request body metadata
6022
- * requestBody: {
6023
- * // request body parameters
6024
- * // {
6025
- * // "details": {},
6026
- * // "displayName": "my_displayName",
6027
- * // "name": "my_name",
6028
- * // "status": {},
6029
- * // "type": "my_type"
6030
- * // }
6031
- * },
6509
+ * const res = await chromemanagement.customers.chromeBrowsers.delete({
6510
+ * // Required. Format: customers/{customer_id\}/chromeBrowsers/{browser_permanent_id\}
6511
+ * name: 'customers/my-customer/chromeBrowsers/my-chromeBrowser',
6032
6512
  * });
6033
6513
  * console.log(res.data);
6034
6514
  *
6035
6515
  * // Example response
6036
- * // {
6037
- * // "details": {},
6038
- * // "displayName": "my_displayName",
6039
- * // "name": "my_name",
6040
- * // "status": {},
6041
- * // "type": "my_type"
6042
- * // }
6516
+ * // {}
6043
6517
  * }
6044
6518
  *
6045
6519
  * main().catch(e => {
@@ -6054,61 +6528,53 @@ export namespace chromemanagement_v1 {
6054
6528
  * @param callback - Optional callback that handles the response.
6055
6529
  * @returns A promise if used with async/await, or void if used with a callback.
6056
6530
  */
6057
- create(
6058
- params: Params$Resource$Customers$Connectorconfigs$Create,
6531
+ delete(
6532
+ params: Params$Resource$Customers$Chromebrowsers$Delete,
6059
6533
  options: StreamMethodOptions
6060
6534
  ): Promise<GaxiosResponseWithHTTP2<Readable>>;
6061
- create(
6062
- params?: Params$Resource$Customers$Connectorconfigs$Create,
6535
+ delete(
6536
+ params?: Params$Resource$Customers$Chromebrowsers$Delete,
6063
6537
  options?: MethodOptions
6064
- ): Promise<
6065
- GaxiosResponseWithHTTP2<Schema$GoogleChromeManagementVersionsV1ConnectorConfig>
6066
- >;
6067
- create(
6068
- params: Params$Resource$Customers$Connectorconfigs$Create,
6538
+ ): Promise<GaxiosResponseWithHTTP2<Schema$GoogleProtobufEmpty>>;
6539
+ delete(
6540
+ params: Params$Resource$Customers$Chromebrowsers$Delete,
6069
6541
  options: StreamMethodOptions | BodyResponseCallback<Readable>,
6070
6542
  callback: BodyResponseCallback<Readable>
6071
6543
  ): void;
6072
- create(
6073
- params: Params$Resource$Customers$Connectorconfigs$Create,
6074
- options:
6075
- | MethodOptions
6076
- | BodyResponseCallback<Schema$GoogleChromeManagementVersionsV1ConnectorConfig>,
6077
- callback: BodyResponseCallback<Schema$GoogleChromeManagementVersionsV1ConnectorConfig>
6078
- ): void;
6079
- create(
6080
- params: Params$Resource$Customers$Connectorconfigs$Create,
6081
- callback: BodyResponseCallback<Schema$GoogleChromeManagementVersionsV1ConnectorConfig>
6544
+ delete(
6545
+ params: Params$Resource$Customers$Chromebrowsers$Delete,
6546
+ options: MethodOptions | BodyResponseCallback<Schema$GoogleProtobufEmpty>,
6547
+ callback: BodyResponseCallback<Schema$GoogleProtobufEmpty>
6082
6548
  ): void;
6083
- create(
6084
- callback: BodyResponseCallback<Schema$GoogleChromeManagementVersionsV1ConnectorConfig>
6549
+ delete(
6550
+ params: Params$Resource$Customers$Chromebrowsers$Delete,
6551
+ callback: BodyResponseCallback<Schema$GoogleProtobufEmpty>
6085
6552
  ): void;
6086
- create(
6553
+ delete(callback: BodyResponseCallback<Schema$GoogleProtobufEmpty>): void;
6554
+ delete(
6087
6555
  paramsOrCallback?:
6088
- | Params$Resource$Customers$Connectorconfigs$Create
6089
- | BodyResponseCallback<Schema$GoogleChromeManagementVersionsV1ConnectorConfig>
6556
+ | Params$Resource$Customers$Chromebrowsers$Delete
6557
+ | BodyResponseCallback<Schema$GoogleProtobufEmpty>
6090
6558
  | BodyResponseCallback<Readable>,
6091
6559
  optionsOrCallback?:
6092
6560
  | MethodOptions
6093
6561
  | StreamMethodOptions
6094
- | BodyResponseCallback<Schema$GoogleChromeManagementVersionsV1ConnectorConfig>
6562
+ | BodyResponseCallback<Schema$GoogleProtobufEmpty>
6095
6563
  | BodyResponseCallback<Readable>,
6096
6564
  callback?:
6097
- | BodyResponseCallback<Schema$GoogleChromeManagementVersionsV1ConnectorConfig>
6565
+ | BodyResponseCallback<Schema$GoogleProtobufEmpty>
6098
6566
  | BodyResponseCallback<Readable>
6099
6567
  ):
6100
6568
  | void
6101
- | Promise<
6102
- GaxiosResponseWithHTTP2<Schema$GoogleChromeManagementVersionsV1ConnectorConfig>
6103
- >
6569
+ | Promise<GaxiosResponseWithHTTP2<Schema$GoogleProtobufEmpty>>
6104
6570
  | Promise<GaxiosResponseWithHTTP2<Readable>> {
6105
6571
  let params = (paramsOrCallback ||
6106
- {}) as Params$Resource$Customers$Connectorconfigs$Create;
6572
+ {}) as Params$Resource$Customers$Chromebrowsers$Delete;
6107
6573
  let options = (optionsOrCallback || {}) as MethodOptions;
6108
6574
 
6109
6575
  if (typeof paramsOrCallback === 'function') {
6110
6576
  callback = paramsOrCallback;
6111
- params = {} as Params$Resource$Customers$Connectorconfigs$Create;
6577
+ params = {} as Params$Resource$Customers$Chromebrowsers$Delete;
6112
6578
  options = {};
6113
6579
  }
6114
6580
 
@@ -6122,34 +6588,29 @@ export namespace chromemanagement_v1 {
6122
6588
  const parameters = {
6123
6589
  options: Object.assign(
6124
6590
  {
6125
- url: (rootUrl + '/v1/{+parent}/connectorConfigs').replace(
6126
- /([^:]\/)\/+/g,
6127
- '$1'
6128
- ),
6129
- method: 'POST',
6591
+ url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'),
6592
+ method: 'DELETE',
6130
6593
  apiVersion: '',
6131
6594
  },
6132
6595
  options
6133
6596
  ),
6134
6597
  params,
6135
- requiredParams: ['parent'],
6136
- pathParams: ['parent'],
6598
+ requiredParams: ['name'],
6599
+ pathParams: ['name'],
6137
6600
  context: this.context,
6138
6601
  };
6139
6602
  if (callback) {
6140
- createAPIRequest<Schema$GoogleChromeManagementVersionsV1ConnectorConfig>(
6603
+ createAPIRequest<Schema$GoogleProtobufEmpty>(
6141
6604
  parameters,
6142
6605
  callback as BodyResponseCallback<unknown>
6143
6606
  );
6144
6607
  } else {
6145
- return createAPIRequest<Schema$GoogleChromeManagementVersionsV1ConnectorConfig>(
6146
- parameters
6147
- );
6608
+ return createAPIRequest<Schema$GoogleProtobufEmpty>(parameters);
6148
6609
  }
6149
6610
  }
6150
6611
 
6151
6612
  /**
6152
- * Deletes a connector config.
6613
+ * Retrieves a single Chrome Browser identified by its customer ID and resource ID.
6153
6614
  * @example
6154
6615
  * ```js
6155
6616
  * // Before running the sample:
@@ -6178,14 +6639,44 @@ export namespace chromemanagement_v1 {
6178
6639
  * google.options({auth: authClient});
6179
6640
  *
6180
6641
  * // Do the magic
6181
- * const res = await chromemanagement.customers.connectorConfigs.delete({
6182
- * // Required. Format: customers/{customer\}/connectorConfigs/{connector_config\}
6183
- * name: 'customers/my-customer/connectorConfigs/my-connectorConfig',
6642
+ * const res = await chromemanagement.customers.chromeBrowsers.get({
6643
+ * // Required. Format: customers/{customer_id\}/chromeBrowsers/{browser_permanent_id\}
6644
+ * name: 'customers/my-customer/chromeBrowsers/my-chromeBrowser',
6184
6645
  * });
6185
6646
  * console.log(res.data);
6186
6647
  *
6187
6648
  * // Example response
6188
- * // {}
6649
+ * // {
6650
+ * // "annotatedAssetId": "my_annotatedAssetId",
6651
+ * // "annotatedLocation": "my_annotatedLocation",
6652
+ * // "annotatedNotes": "my_annotatedNotes",
6653
+ * // "annotatedUser": "my_annotatedUser",
6654
+ * // "attestationCredential": {},
6655
+ * // "browserPermanentId": "my_browserPermanentId",
6656
+ * // "browserVersions": [],
6657
+ * // "browsers": [],
6658
+ * // "deviceIdentifiersHistory": {},
6659
+ * // "extensionCount": "my_extensionCount",
6660
+ * // "lastActivityTime": "my_lastActivityTime",
6661
+ * // "lastDeviceUser": "my_lastDeviceUser",
6662
+ * // "lastDeviceUsers": [],
6663
+ * // "lastPolicyFetchTime": "my_lastPolicyFetchTime",
6664
+ * // "lastRegistrationTime": "my_lastRegistrationTime",
6665
+ * // "lastStatusReportTime": "my_lastStatusReportTime",
6666
+ * // "machineExtensionPolicies": [],
6667
+ * // "machineName": "my_machineName",
6668
+ * // "machinePolicies": [],
6669
+ * // "name": "my_name",
6670
+ * // "omahaRecentFetchTime": "my_omahaRecentFetchTime",
6671
+ * // "orgUnitId": "my_orgUnitId",
6672
+ * // "osArchitecture": "my_osArchitecture",
6673
+ * // "osPlatform": "my_osPlatform",
6674
+ * // "osPlatformVersion": "my_osPlatformVersion",
6675
+ * // "osVersion": "my_osVersion",
6676
+ * // "policyCount": "my_policyCount",
6677
+ * // "serialNumber": "my_serialNumber",
6678
+ * // "virtualDeviceId": "my_virtualDeviceId"
6679
+ * // }
6189
6680
  * }
6190
6681
  *
6191
6682
  * main().catch(e => {
@@ -6200,53 +6691,61 @@ export namespace chromemanagement_v1 {
6200
6691
  * @param callback - Optional callback that handles the response.
6201
6692
  * @returns A promise if used with async/await, or void if used with a callback.
6202
6693
  */
6203
- delete(
6204
- params: Params$Resource$Customers$Connectorconfigs$Delete,
6694
+ get(
6695
+ params: Params$Resource$Customers$Chromebrowsers$Get,
6205
6696
  options: StreamMethodOptions
6206
6697
  ): Promise<GaxiosResponseWithHTTP2<Readable>>;
6207
- delete(
6208
- params?: Params$Resource$Customers$Connectorconfigs$Delete,
6698
+ get(
6699
+ params?: Params$Resource$Customers$Chromebrowsers$Get,
6209
6700
  options?: MethodOptions
6210
- ): Promise<GaxiosResponseWithHTTP2<Schema$GoogleProtobufEmpty>>;
6211
- delete(
6212
- params: Params$Resource$Customers$Connectorconfigs$Delete,
6701
+ ): Promise<
6702
+ GaxiosResponseWithHTTP2<Schema$GoogleChromeManagementVersionsV1ChromeBrowser>
6703
+ >;
6704
+ get(
6705
+ params: Params$Resource$Customers$Chromebrowsers$Get,
6213
6706
  options: StreamMethodOptions | BodyResponseCallback<Readable>,
6214
6707
  callback: BodyResponseCallback<Readable>
6215
6708
  ): void;
6216
- delete(
6217
- params: Params$Resource$Customers$Connectorconfigs$Delete,
6218
- options: MethodOptions | BodyResponseCallback<Schema$GoogleProtobufEmpty>,
6219
- callback: BodyResponseCallback<Schema$GoogleProtobufEmpty>
6709
+ get(
6710
+ params: Params$Resource$Customers$Chromebrowsers$Get,
6711
+ options:
6712
+ | MethodOptions
6713
+ | BodyResponseCallback<Schema$GoogleChromeManagementVersionsV1ChromeBrowser>,
6714
+ callback: BodyResponseCallback<Schema$GoogleChromeManagementVersionsV1ChromeBrowser>
6220
6715
  ): void;
6221
- delete(
6222
- params: Params$Resource$Customers$Connectorconfigs$Delete,
6223
- callback: BodyResponseCallback<Schema$GoogleProtobufEmpty>
6716
+ get(
6717
+ params: Params$Resource$Customers$Chromebrowsers$Get,
6718
+ callback: BodyResponseCallback<Schema$GoogleChromeManagementVersionsV1ChromeBrowser>
6224
6719
  ): void;
6225
- delete(callback: BodyResponseCallback<Schema$GoogleProtobufEmpty>): void;
6226
- delete(
6720
+ get(
6721
+ callback: BodyResponseCallback<Schema$GoogleChromeManagementVersionsV1ChromeBrowser>
6722
+ ): void;
6723
+ get(
6227
6724
  paramsOrCallback?:
6228
- | Params$Resource$Customers$Connectorconfigs$Delete
6229
- | BodyResponseCallback<Schema$GoogleProtobufEmpty>
6725
+ | Params$Resource$Customers$Chromebrowsers$Get
6726
+ | BodyResponseCallback<Schema$GoogleChromeManagementVersionsV1ChromeBrowser>
6230
6727
  | BodyResponseCallback<Readable>,
6231
6728
  optionsOrCallback?:
6232
6729
  | MethodOptions
6233
6730
  | StreamMethodOptions
6234
- | BodyResponseCallback<Schema$GoogleProtobufEmpty>
6731
+ | BodyResponseCallback<Schema$GoogleChromeManagementVersionsV1ChromeBrowser>
6235
6732
  | BodyResponseCallback<Readable>,
6236
6733
  callback?:
6237
- | BodyResponseCallback<Schema$GoogleProtobufEmpty>
6734
+ | BodyResponseCallback<Schema$GoogleChromeManagementVersionsV1ChromeBrowser>
6238
6735
  | BodyResponseCallback<Readable>
6239
6736
  ):
6240
6737
  | void
6241
- | Promise<GaxiosResponseWithHTTP2<Schema$GoogleProtobufEmpty>>
6738
+ | Promise<
6739
+ GaxiosResponseWithHTTP2<Schema$GoogleChromeManagementVersionsV1ChromeBrowser>
6740
+ >
6242
6741
  | Promise<GaxiosResponseWithHTTP2<Readable>> {
6243
6742
  let params = (paramsOrCallback ||
6244
- {}) as Params$Resource$Customers$Connectorconfigs$Delete;
6743
+ {}) as Params$Resource$Customers$Chromebrowsers$Get;
6245
6744
  let options = (optionsOrCallback || {}) as MethodOptions;
6246
6745
 
6247
6746
  if (typeof paramsOrCallback === 'function') {
6248
6747
  callback = paramsOrCallback;
6249
- params = {} as Params$Resource$Customers$Connectorconfigs$Delete;
6748
+ params = {} as Params$Resource$Customers$Chromebrowsers$Get;
6250
6749
  options = {};
6251
6750
  }
6252
6751
 
@@ -6261,7 +6760,7 @@ export namespace chromemanagement_v1 {
6261
6760
  options: Object.assign(
6262
6761
  {
6263
6762
  url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'),
6264
- method: 'DELETE',
6763
+ method: 'GET',
6265
6764
  apiVersion: '',
6266
6765
  },
6267
6766
  options
@@ -6272,17 +6771,19 @@ export namespace chromemanagement_v1 {
6272
6771
  context: this.context,
6273
6772
  };
6274
6773
  if (callback) {
6275
- createAPIRequest<Schema$GoogleProtobufEmpty>(
6774
+ createAPIRequest<Schema$GoogleChromeManagementVersionsV1ChromeBrowser>(
6276
6775
  parameters,
6277
6776
  callback as BodyResponseCallback<unknown>
6278
6777
  );
6279
6778
  } else {
6280
- return createAPIRequest<Schema$GoogleProtobufEmpty>(parameters);
6779
+ return createAPIRequest<Schema$GoogleChromeManagementVersionsV1ChromeBrowser>(
6780
+ parameters
6781
+ );
6281
6782
  }
6282
6783
  }
6283
6784
 
6284
6785
  /**
6285
- * Gets a connector config with customer ID and config ID.
6786
+ * Retrieves all Chrome Browsers of a customer (paginated).
6286
6787
  * @example
6287
6788
  * ```js
6288
6789
  * // Before running the sample:
@@ -6311,19 +6812,24 @@ export namespace chromemanagement_v1 {
6311
6812
  * google.options({auth: authClient});
6312
6813
  *
6313
6814
  * // Do the magic
6314
- * const res = await chromemanagement.customers.connectorConfigs.get({
6315
- * // Required. Format: customers/{customer\}/connectorConfigs/{connector_config\}
6316
- * name: 'customers/my-customer/connectorConfigs/my-connectorConfig',
6815
+ * const res = await chromemanagement.customers.chromeBrowsers.list({
6816
+ * // Optional. The filter used to filter browsers. The following fields can be used in the filter: * `browser_permanent_id` * `last_policy_fetch_time` * `os_platform` * `os_architecture` * `os_version` * `machine_name` * `annotated_location` * `annotated_user` * `annotated_asset_id` * `annotated_note` * `org_unit_path` * `org_unit_id` * `last_registration_time` * `os_platform_version` * `browser_version` * `last_status_report_time` * `extension_count` * `policy_count` * `last_device_user` * `last_activity_time` * `device_id_collision` The following functions can be used in the filter: * `in_group(string)`: Filters browsers that belong to the specified Cloud Identity group resource name (e.g. `in_group("groups/{group_id\}")`). Any of the above fields or functions can be used to specify a filter, and filtering by multiple fields or functions is supported with AND operator. String type, Integer type fields and enum type fields support `=` and `:` operators. The timestamp type fields support `=`, `<=` and `\>=` operators. Timestamps expect an RFC-3339 formatted string (e.g. 2012-04-21T11:30:00-04:00). Wildcard `*` is only supported for `machine_name`, `annotated_asset_id`, and `browser_version`. In addition, global string literal filtering without a field name is supported: a single term (e.g., `ABC`) matches if any indexed string field contains `ABC`, and multiple terms joined by `AND` or whitespace (e.g., `machine AND 73` or `machine 73`) match browsers where every term appears in at least one indexed string field (whereas a single quoted phrase like `"machine 73"` matches the contiguous phrase within a single field).
6817
+ * filter: 'placeholder-value',
6818
+ * // Optional. The fields used to specify the ordering of the results. The supported fields are: * `browser_permanent_id` * `last_sync` * `annotated_user` * `annotated_location` * `annotated_asset_id` * `annotated_notes` * `org_unit_path` * `os_version` * `enrollment_date` * `extension_count` * `policy_count` * `last_signed_in_user` * `machine_name` * `browser_version_channel` * `os_platform_version` * `last_activity_time` * `browser_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`.
6819
+ * orderBy: 'placeholder-value',
6820
+ * // Optional. Maximum number of results to return. Maximum and default are 100.
6821
+ * pageSize: 'placeholder-value',
6822
+ * // Optional. Token to specify next page in the list.
6823
+ * pageToken: 'placeholder-value',
6824
+ * // Required. Format: customers/{customer_id\}
6825
+ * parent: 'customers/my-customer',
6317
6826
  * });
6318
6827
  * console.log(res.data);
6319
6828
  *
6320
6829
  * // Example response
6321
6830
  * // {
6322
- * // "details": {},
6323
- * // "displayName": "my_displayName",
6324
- * // "name": "my_name",
6325
- * // "status": {},
6326
- * // "type": "my_type"
6831
+ * // "chromeBrowsers": [],
6832
+ * // "nextPageToken": "my_nextPageToken"
6327
6833
  * // }
6328
6834
  * }
6329
6835
  *
@@ -6339,61 +6845,1659 @@ export namespace chromemanagement_v1 {
6339
6845
  * @param callback - Optional callback that handles the response.
6340
6846
  * @returns A promise if used with async/await, or void if used with a callback.
6341
6847
  */
6342
- get(
6343
- params: Params$Resource$Customers$Connectorconfigs$Get,
6848
+ list(
6849
+ params: Params$Resource$Customers$Chromebrowsers$List,
6344
6850
  options: StreamMethodOptions
6345
6851
  ): Promise<GaxiosResponseWithHTTP2<Readable>>;
6346
- get(
6347
- params?: Params$Resource$Customers$Connectorconfigs$Get,
6852
+ list(
6853
+ params?: Params$Resource$Customers$Chromebrowsers$List,
6348
6854
  options?: MethodOptions
6349
6855
  ): Promise<
6350
- GaxiosResponseWithHTTP2<Schema$GoogleChromeManagementVersionsV1ConnectorConfig>
6856
+ GaxiosResponseWithHTTP2<Schema$GoogleChromeManagementVersionsV1ListChromeBrowsersResponse>
6351
6857
  >;
6352
- get(
6353
- params: Params$Resource$Customers$Connectorconfigs$Get,
6858
+ list(
6859
+ params: Params$Resource$Customers$Chromebrowsers$List,
6354
6860
  options: StreamMethodOptions | BodyResponseCallback<Readable>,
6355
6861
  callback: BodyResponseCallback<Readable>
6356
6862
  ): void;
6357
- get(
6358
- params: Params$Resource$Customers$Connectorconfigs$Get,
6863
+ list(
6864
+ params: Params$Resource$Customers$Chromebrowsers$List,
6359
6865
  options:
6360
6866
  | MethodOptions
6361
- | BodyResponseCallback<Schema$GoogleChromeManagementVersionsV1ConnectorConfig>,
6362
- callback: BodyResponseCallback<Schema$GoogleChromeManagementVersionsV1ConnectorConfig>
6867
+ | BodyResponseCallback<Schema$GoogleChromeManagementVersionsV1ListChromeBrowsersResponse>,
6868
+ callback: BodyResponseCallback<Schema$GoogleChromeManagementVersionsV1ListChromeBrowsersResponse>
6363
6869
  ): void;
6364
- get(
6365
- params: Params$Resource$Customers$Connectorconfigs$Get,
6366
- callback: BodyResponseCallback<Schema$GoogleChromeManagementVersionsV1ConnectorConfig>
6870
+ list(
6871
+ params: Params$Resource$Customers$Chromebrowsers$List,
6872
+ callback: BodyResponseCallback<Schema$GoogleChromeManagementVersionsV1ListChromeBrowsersResponse>
6367
6873
  ): void;
6368
- get(
6369
- callback: BodyResponseCallback<Schema$GoogleChromeManagementVersionsV1ConnectorConfig>
6874
+ list(
6875
+ callback: BodyResponseCallback<Schema$GoogleChromeManagementVersionsV1ListChromeBrowsersResponse>
6876
+ ): void;
6877
+ list(
6878
+ paramsOrCallback?:
6879
+ | Params$Resource$Customers$Chromebrowsers$List
6880
+ | BodyResponseCallback<Schema$GoogleChromeManagementVersionsV1ListChromeBrowsersResponse>
6881
+ | BodyResponseCallback<Readable>,
6882
+ optionsOrCallback?:
6883
+ | MethodOptions
6884
+ | StreamMethodOptions
6885
+ | BodyResponseCallback<Schema$GoogleChromeManagementVersionsV1ListChromeBrowsersResponse>
6886
+ | BodyResponseCallback<Readable>,
6887
+ callback?:
6888
+ | BodyResponseCallback<Schema$GoogleChromeManagementVersionsV1ListChromeBrowsersResponse>
6889
+ | BodyResponseCallback<Readable>
6890
+ ):
6891
+ | void
6892
+ | Promise<
6893
+ GaxiosResponseWithHTTP2<Schema$GoogleChromeManagementVersionsV1ListChromeBrowsersResponse>
6894
+ >
6895
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
6896
+ let params = (paramsOrCallback ||
6897
+ {}) as Params$Resource$Customers$Chromebrowsers$List;
6898
+ let options = (optionsOrCallback || {}) as MethodOptions;
6899
+
6900
+ if (typeof paramsOrCallback === 'function') {
6901
+ callback = paramsOrCallback;
6902
+ params = {} as Params$Resource$Customers$Chromebrowsers$List;
6903
+ options = {};
6904
+ }
6905
+
6906
+ if (typeof optionsOrCallback === 'function') {
6907
+ callback = optionsOrCallback;
6908
+ options = {};
6909
+ }
6910
+
6911
+ const rootUrl =
6912
+ options.rootUrl || 'https://chromemanagement.googleapis.com/';
6913
+ const parameters = {
6914
+ options: Object.assign(
6915
+ {
6916
+ url: (rootUrl + '/v1/{+parent}/chromeBrowsers').replace(
6917
+ /([^:]\/)\/+/g,
6918
+ '$1'
6919
+ ),
6920
+ method: 'GET',
6921
+ apiVersion: '',
6922
+ },
6923
+ options
6924
+ ),
6925
+ params,
6926
+ requiredParams: ['parent'],
6927
+ pathParams: ['parent'],
6928
+ context: this.context,
6929
+ };
6930
+ if (callback) {
6931
+ createAPIRequest<Schema$GoogleChromeManagementVersionsV1ListChromeBrowsersResponse>(
6932
+ parameters,
6933
+ callback as BodyResponseCallback<unknown>
6934
+ );
6935
+ } else {
6936
+ return createAPIRequest<Schema$GoogleChromeManagementVersionsV1ListChromeBrowsersResponse>(
6937
+ parameters
6938
+ );
6939
+ }
6940
+ }
6941
+
6942
+ /**
6943
+ * Moves managed Chrome Browsers to a new Organizational Unit (OU). If there is an error while moving any of the browsers, none of the browsers will be moved.
6944
+ * @example
6945
+ * ```js
6946
+ * // Before running the sample:
6947
+ * // - Enable the API at:
6948
+ * // https://console.developers.google.com/apis/api/chromemanagement.googleapis.com
6949
+ * // - Login into gcloud by running:
6950
+ * // ```sh
6951
+ * // $ gcloud auth application-default login
6952
+ * // ```
6953
+ * // - Install the npm module by running:
6954
+ * // ```sh
6955
+ * // $ npm install googleapis
6956
+ * // ```
6957
+ *
6958
+ * const {google} = require('googleapis');
6959
+ * const chromemanagement = google.chromemanagement('v1');
6960
+ *
6961
+ * async function main() {
6962
+ * const auth = new google.auth.GoogleAuth({
6963
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
6964
+ * scopes: [],
6965
+ * });
6966
+ *
6967
+ * // Acquire an auth client, and bind it to all future calls
6968
+ * const authClient = await auth.getClient();
6969
+ * google.options({auth: authClient});
6970
+ *
6971
+ * // Do the magic
6972
+ * const res = await chromemanagement.customers.chromeBrowsers.move({
6973
+ * // Required. Format: customers/{customer_id\}
6974
+ * parent: 'customers/my-customer',
6975
+ *
6976
+ * // Request body metadata
6977
+ * requestBody: {
6978
+ * // request body parameters
6979
+ * // {
6980
+ * // "destinationOrgUnitId": "my_destinationOrgUnitId",
6981
+ * // "resourceIds": []
6982
+ * // }
6983
+ * },
6984
+ * });
6985
+ * console.log(res.data);
6986
+ *
6987
+ * // Example response
6988
+ * // {}
6989
+ * }
6990
+ *
6991
+ * main().catch(e => {
6992
+ * console.error(e);
6993
+ * throw e;
6994
+ * });
6995
+ *
6996
+ * ```
6997
+ *
6998
+ * @param params - Parameters for request
6999
+ * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
7000
+ * @param callback - Optional callback that handles the response.
7001
+ * @returns A promise if used with async/await, or void if used with a callback.
7002
+ */
7003
+ move(
7004
+ params: Params$Resource$Customers$Chromebrowsers$Move,
7005
+ options: StreamMethodOptions
7006
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
7007
+ move(
7008
+ params?: Params$Resource$Customers$Chromebrowsers$Move,
7009
+ options?: MethodOptions
7010
+ ): Promise<
7011
+ GaxiosResponseWithHTTP2<Schema$GoogleChromeManagementVersionsV1MoveChromeBrowsersResponse>
7012
+ >;
7013
+ move(
7014
+ params: Params$Resource$Customers$Chromebrowsers$Move,
7015
+ options: StreamMethodOptions | BodyResponseCallback<Readable>,
7016
+ callback: BodyResponseCallback<Readable>
7017
+ ): void;
7018
+ move(
7019
+ params: Params$Resource$Customers$Chromebrowsers$Move,
7020
+ options:
7021
+ | MethodOptions
7022
+ | BodyResponseCallback<Schema$GoogleChromeManagementVersionsV1MoveChromeBrowsersResponse>,
7023
+ callback: BodyResponseCallback<Schema$GoogleChromeManagementVersionsV1MoveChromeBrowsersResponse>
7024
+ ): void;
7025
+ move(
7026
+ params: Params$Resource$Customers$Chromebrowsers$Move,
7027
+ callback: BodyResponseCallback<Schema$GoogleChromeManagementVersionsV1MoveChromeBrowsersResponse>
7028
+ ): void;
7029
+ move(
7030
+ callback: BodyResponseCallback<Schema$GoogleChromeManagementVersionsV1MoveChromeBrowsersResponse>
7031
+ ): void;
7032
+ move(
7033
+ paramsOrCallback?:
7034
+ | Params$Resource$Customers$Chromebrowsers$Move
7035
+ | BodyResponseCallback<Schema$GoogleChromeManagementVersionsV1MoveChromeBrowsersResponse>
7036
+ | BodyResponseCallback<Readable>,
7037
+ optionsOrCallback?:
7038
+ | MethodOptions
7039
+ | StreamMethodOptions
7040
+ | BodyResponseCallback<Schema$GoogleChromeManagementVersionsV1MoveChromeBrowsersResponse>
7041
+ | BodyResponseCallback<Readable>,
7042
+ callback?:
7043
+ | BodyResponseCallback<Schema$GoogleChromeManagementVersionsV1MoveChromeBrowsersResponse>
7044
+ | BodyResponseCallback<Readable>
7045
+ ):
7046
+ | void
7047
+ | Promise<
7048
+ GaxiosResponseWithHTTP2<Schema$GoogleChromeManagementVersionsV1MoveChromeBrowsersResponse>
7049
+ >
7050
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
7051
+ let params = (paramsOrCallback ||
7052
+ {}) as Params$Resource$Customers$Chromebrowsers$Move;
7053
+ let options = (optionsOrCallback || {}) as MethodOptions;
7054
+
7055
+ if (typeof paramsOrCallback === 'function') {
7056
+ callback = paramsOrCallback;
7057
+ params = {} as Params$Resource$Customers$Chromebrowsers$Move;
7058
+ options = {};
7059
+ }
7060
+
7061
+ if (typeof optionsOrCallback === 'function') {
7062
+ callback = optionsOrCallback;
7063
+ options = {};
7064
+ }
7065
+
7066
+ const rootUrl =
7067
+ options.rootUrl || 'https://chromemanagement.googleapis.com/';
7068
+ const parameters = {
7069
+ options: Object.assign(
7070
+ {
7071
+ url: (rootUrl + '/v1/{+parent}/chromeBrowsers:move').replace(
7072
+ /([^:]\/)\/+/g,
7073
+ '$1'
7074
+ ),
7075
+ method: 'POST',
7076
+ apiVersion: '',
7077
+ },
7078
+ options
7079
+ ),
7080
+ params,
7081
+ requiredParams: ['parent'],
7082
+ pathParams: ['parent'],
7083
+ context: this.context,
7084
+ };
7085
+ if (callback) {
7086
+ createAPIRequest<Schema$GoogleChromeManagementVersionsV1MoveChromeBrowsersResponse>(
7087
+ parameters,
7088
+ callback as BodyResponseCallback<unknown>
7089
+ );
7090
+ } else {
7091
+ return createAPIRequest<Schema$GoogleChromeManagementVersionsV1MoveChromeBrowsersResponse>(
7092
+ parameters
7093
+ );
7094
+ }
7095
+ }
7096
+
7097
+ /**
7098
+ * Updates annotation information for a Chrome Browser.
7099
+ * @example
7100
+ * ```js
7101
+ * // Before running the sample:
7102
+ * // - Enable the API at:
7103
+ * // https://console.developers.google.com/apis/api/chromemanagement.googleapis.com
7104
+ * // - Login into gcloud by running:
7105
+ * // ```sh
7106
+ * // $ gcloud auth application-default login
7107
+ * // ```
7108
+ * // - Install the npm module by running:
7109
+ * // ```sh
7110
+ * // $ npm install googleapis
7111
+ * // ```
7112
+ *
7113
+ * const {google} = require('googleapis');
7114
+ * const chromemanagement = google.chromemanagement('v1');
7115
+ *
7116
+ * async function main() {
7117
+ * const auth = new google.auth.GoogleAuth({
7118
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
7119
+ * scopes: [],
7120
+ * });
7121
+ *
7122
+ * // Acquire an auth client, and bind it to all future calls
7123
+ * const authClient = await auth.getClient();
7124
+ * google.options({auth: authClient});
7125
+ *
7126
+ * // Do the magic
7127
+ * const res = await chromemanagement.customers.chromeBrowsers.patch({
7128
+ * // Identifier. Format: customers/{customer_id\}/chromeBrowsers/{browser_permanent_id\}
7129
+ * name: 'customers/my-customer/chromeBrowsers/my-chromeBrowser',
7130
+ * // Optional. The update mask that can be used to specify which fields to update.
7131
+ * updateMask: 'placeholder-value',
7132
+ *
7133
+ * // Request body metadata
7134
+ * requestBody: {
7135
+ * // request body parameters
7136
+ * // {
7137
+ * // "annotatedAssetId": "my_annotatedAssetId",
7138
+ * // "annotatedLocation": "my_annotatedLocation",
7139
+ * // "annotatedNotes": "my_annotatedNotes",
7140
+ * // "annotatedUser": "my_annotatedUser",
7141
+ * // "attestationCredential": {},
7142
+ * // "browserPermanentId": "my_browserPermanentId",
7143
+ * // "browserVersions": [],
7144
+ * // "browsers": [],
7145
+ * // "deviceIdentifiersHistory": {},
7146
+ * // "extensionCount": "my_extensionCount",
7147
+ * // "lastActivityTime": "my_lastActivityTime",
7148
+ * // "lastDeviceUser": "my_lastDeviceUser",
7149
+ * // "lastDeviceUsers": [],
7150
+ * // "lastPolicyFetchTime": "my_lastPolicyFetchTime",
7151
+ * // "lastRegistrationTime": "my_lastRegistrationTime",
7152
+ * // "lastStatusReportTime": "my_lastStatusReportTime",
7153
+ * // "machineExtensionPolicies": [],
7154
+ * // "machineName": "my_machineName",
7155
+ * // "machinePolicies": [],
7156
+ * // "name": "my_name",
7157
+ * // "omahaRecentFetchTime": "my_omahaRecentFetchTime",
7158
+ * // "orgUnitId": "my_orgUnitId",
7159
+ * // "osArchitecture": "my_osArchitecture",
7160
+ * // "osPlatform": "my_osPlatform",
7161
+ * // "osPlatformVersion": "my_osPlatformVersion",
7162
+ * // "osVersion": "my_osVersion",
7163
+ * // "policyCount": "my_policyCount",
7164
+ * // "serialNumber": "my_serialNumber",
7165
+ * // "virtualDeviceId": "my_virtualDeviceId"
7166
+ * // }
7167
+ * },
7168
+ * });
7169
+ * console.log(res.data);
7170
+ *
7171
+ * // Example response
7172
+ * // {
7173
+ * // "annotatedAssetId": "my_annotatedAssetId",
7174
+ * // "annotatedLocation": "my_annotatedLocation",
7175
+ * // "annotatedNotes": "my_annotatedNotes",
7176
+ * // "annotatedUser": "my_annotatedUser",
7177
+ * // "attestationCredential": {},
7178
+ * // "browserPermanentId": "my_browserPermanentId",
7179
+ * // "browserVersions": [],
7180
+ * // "browsers": [],
7181
+ * // "deviceIdentifiersHistory": {},
7182
+ * // "extensionCount": "my_extensionCount",
7183
+ * // "lastActivityTime": "my_lastActivityTime",
7184
+ * // "lastDeviceUser": "my_lastDeviceUser",
7185
+ * // "lastDeviceUsers": [],
7186
+ * // "lastPolicyFetchTime": "my_lastPolicyFetchTime",
7187
+ * // "lastRegistrationTime": "my_lastRegistrationTime",
7188
+ * // "lastStatusReportTime": "my_lastStatusReportTime",
7189
+ * // "machineExtensionPolicies": [],
7190
+ * // "machineName": "my_machineName",
7191
+ * // "machinePolicies": [],
7192
+ * // "name": "my_name",
7193
+ * // "omahaRecentFetchTime": "my_omahaRecentFetchTime",
7194
+ * // "orgUnitId": "my_orgUnitId",
7195
+ * // "osArchitecture": "my_osArchitecture",
7196
+ * // "osPlatform": "my_osPlatform",
7197
+ * // "osPlatformVersion": "my_osPlatformVersion",
7198
+ * // "osVersion": "my_osVersion",
7199
+ * // "policyCount": "my_policyCount",
7200
+ * // "serialNumber": "my_serialNumber",
7201
+ * // "virtualDeviceId": "my_virtualDeviceId"
7202
+ * // }
7203
+ * }
7204
+ *
7205
+ * main().catch(e => {
7206
+ * console.error(e);
7207
+ * throw e;
7208
+ * });
7209
+ *
7210
+ * ```
7211
+ *
7212
+ * @param params - Parameters for request
7213
+ * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
7214
+ * @param callback - Optional callback that handles the response.
7215
+ * @returns A promise if used with async/await, or void if used with a callback.
7216
+ */
7217
+ patch(
7218
+ params: Params$Resource$Customers$Chromebrowsers$Patch,
7219
+ options: StreamMethodOptions
7220
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
7221
+ patch(
7222
+ params?: Params$Resource$Customers$Chromebrowsers$Patch,
7223
+ options?: MethodOptions
7224
+ ): Promise<
7225
+ GaxiosResponseWithHTTP2<Schema$GoogleChromeManagementVersionsV1ChromeBrowser>
7226
+ >;
7227
+ patch(
7228
+ params: Params$Resource$Customers$Chromebrowsers$Patch,
7229
+ options: StreamMethodOptions | BodyResponseCallback<Readable>,
7230
+ callback: BodyResponseCallback<Readable>
7231
+ ): void;
7232
+ patch(
7233
+ params: Params$Resource$Customers$Chromebrowsers$Patch,
7234
+ options:
7235
+ | MethodOptions
7236
+ | BodyResponseCallback<Schema$GoogleChromeManagementVersionsV1ChromeBrowser>,
7237
+ callback: BodyResponseCallback<Schema$GoogleChromeManagementVersionsV1ChromeBrowser>
7238
+ ): void;
7239
+ patch(
7240
+ params: Params$Resource$Customers$Chromebrowsers$Patch,
7241
+ callback: BodyResponseCallback<Schema$GoogleChromeManagementVersionsV1ChromeBrowser>
7242
+ ): void;
7243
+ patch(
7244
+ callback: BodyResponseCallback<Schema$GoogleChromeManagementVersionsV1ChromeBrowser>
7245
+ ): void;
7246
+ patch(
7247
+ paramsOrCallback?:
7248
+ | Params$Resource$Customers$Chromebrowsers$Patch
7249
+ | BodyResponseCallback<Schema$GoogleChromeManagementVersionsV1ChromeBrowser>
7250
+ | BodyResponseCallback<Readable>,
7251
+ optionsOrCallback?:
7252
+ | MethodOptions
7253
+ | StreamMethodOptions
7254
+ | BodyResponseCallback<Schema$GoogleChromeManagementVersionsV1ChromeBrowser>
7255
+ | BodyResponseCallback<Readable>,
7256
+ callback?:
7257
+ | BodyResponseCallback<Schema$GoogleChromeManagementVersionsV1ChromeBrowser>
7258
+ | BodyResponseCallback<Readable>
7259
+ ):
7260
+ | void
7261
+ | Promise<
7262
+ GaxiosResponseWithHTTP2<Schema$GoogleChromeManagementVersionsV1ChromeBrowser>
7263
+ >
7264
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
7265
+ let params = (paramsOrCallback ||
7266
+ {}) as Params$Resource$Customers$Chromebrowsers$Patch;
7267
+ let options = (optionsOrCallback || {}) as MethodOptions;
7268
+
7269
+ if (typeof paramsOrCallback === 'function') {
7270
+ callback = paramsOrCallback;
7271
+ params = {} as Params$Resource$Customers$Chromebrowsers$Patch;
7272
+ options = {};
7273
+ }
7274
+
7275
+ if (typeof optionsOrCallback === 'function') {
7276
+ callback = optionsOrCallback;
7277
+ options = {};
7278
+ }
7279
+
7280
+ const rootUrl =
7281
+ options.rootUrl || 'https://chromemanagement.googleapis.com/';
7282
+ const parameters = {
7283
+ options: Object.assign(
7284
+ {
7285
+ url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'),
7286
+ method: 'PATCH',
7287
+ apiVersion: '',
7288
+ },
7289
+ options
7290
+ ),
7291
+ params,
7292
+ requiredParams: ['name'],
7293
+ pathParams: ['name'],
7294
+ context: this.context,
7295
+ };
7296
+ if (callback) {
7297
+ createAPIRequest<Schema$GoogleChromeManagementVersionsV1ChromeBrowser>(
7298
+ parameters,
7299
+ callback as BodyResponseCallback<unknown>
7300
+ );
7301
+ } else {
7302
+ return createAPIRequest<Schema$GoogleChromeManagementVersionsV1ChromeBrowser>(
7303
+ parameters
7304
+ );
7305
+ }
7306
+ }
7307
+ }
7308
+
7309
+ export interface Params$Resource$Customers$Chromebrowsers$Delete extends StandardParameters {
7310
+ /**
7311
+ * Required. Format: customers/{customer_id\}/chromeBrowsers/{browser_permanent_id\}
7312
+ */
7313
+ name?: string;
7314
+ }
7315
+ export interface Params$Resource$Customers$Chromebrowsers$Get extends StandardParameters {
7316
+ /**
7317
+ * Required. Format: customers/{customer_id\}/chromeBrowsers/{browser_permanent_id\}
7318
+ */
7319
+ name?: string;
7320
+ }
7321
+ export interface Params$Resource$Customers$Chromebrowsers$List extends StandardParameters {
7322
+ /**
7323
+ * Optional. The filter used to filter browsers. The following fields can be used in the filter: * `browser_permanent_id` * `last_policy_fetch_time` * `os_platform` * `os_architecture` * `os_version` * `machine_name` * `annotated_location` * `annotated_user` * `annotated_asset_id` * `annotated_note` * `org_unit_path` * `org_unit_id` * `last_registration_time` * `os_platform_version` * `browser_version` * `last_status_report_time` * `extension_count` * `policy_count` * `last_device_user` * `last_activity_time` * `device_id_collision` The following functions can be used in the filter: * `in_group(string)`: Filters browsers that belong to the specified Cloud Identity group resource name (e.g. `in_group("groups/{group_id\}")`). Any of the above fields or functions can be used to specify a filter, and filtering by multiple fields or functions is supported with AND operator. String type, Integer type fields and enum type fields support `=` and `:` operators. The timestamp type fields support `=`, `<=` and `\>=` operators. Timestamps expect an RFC-3339 formatted string (e.g. 2012-04-21T11:30:00-04:00). Wildcard `*` is only supported for `machine_name`, `annotated_asset_id`, and `browser_version`. In addition, global string literal filtering without a field name is supported: a single term (e.g., `ABC`) matches if any indexed string field contains `ABC`, and multiple terms joined by `AND` or whitespace (e.g., `machine AND 73` or `machine 73`) match browsers where every term appears in at least one indexed string field (whereas a single quoted phrase like `"machine 73"` matches the contiguous phrase within a single field).
7324
+ */
7325
+ filter?: string;
7326
+ /**
7327
+ * Optional. The fields used to specify the ordering of the results. The supported fields are: * `browser_permanent_id` * `last_sync` * `annotated_user` * `annotated_location` * `annotated_asset_id` * `annotated_notes` * `org_unit_path` * `os_version` * `enrollment_date` * `extension_count` * `policy_count` * `last_signed_in_user` * `machine_name` * `browser_version_channel` * `os_platform_version` * `last_activity_time` * `browser_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`.
7328
+ */
7329
+ orderBy?: string;
7330
+ /**
7331
+ * Optional. Maximum number of results to return. Maximum and default are 100.
7332
+ */
7333
+ pageSize?: number;
7334
+ /**
7335
+ * Optional. Token to specify next page in the list.
7336
+ */
7337
+ pageToken?: string;
7338
+ /**
7339
+ * Required. Format: customers/{customer_id\}
7340
+ */
7341
+ parent?: string;
7342
+ }
7343
+ export interface Params$Resource$Customers$Chromebrowsers$Move extends StandardParameters {
7344
+ /**
7345
+ * Required. Format: customers/{customer_id\}
7346
+ */
7347
+ parent?: string;
7348
+
7349
+ /**
7350
+ * Request body metadata
7351
+ */
7352
+ requestBody?: Schema$GoogleChromeManagementVersionsV1MoveChromeBrowsersRequest;
7353
+ }
7354
+ export interface Params$Resource$Customers$Chromebrowsers$Patch extends StandardParameters {
7355
+ /**
7356
+ * Identifier. Format: customers/{customer_id\}/chromeBrowsers/{browser_permanent_id\}
7357
+ */
7358
+ name?: string;
7359
+ /**
7360
+ * Optional. The update mask that can be used to specify which fields to update.
7361
+ */
7362
+ updateMask?: string;
7363
+
7364
+ /**
7365
+ * Request body metadata
7366
+ */
7367
+ requestBody?: Schema$GoogleChromeManagementVersionsV1ChromeBrowser;
7368
+ }
7369
+
7370
+ export class Resource$Customers$Connectorconfigs {
7371
+ context: APIRequestContext;
7372
+ constructor(context: APIRequestContext) {
7373
+ this.context = context;
7374
+ }
7375
+
7376
+ /**
7377
+ * Creates a connector config.
7378
+ * @example
7379
+ * ```js
7380
+ * // Before running the sample:
7381
+ * // - Enable the API at:
7382
+ * // https://console.developers.google.com/apis/api/chromemanagement.googleapis.com
7383
+ * // - Login into gcloud by running:
7384
+ * // ```sh
7385
+ * // $ gcloud auth application-default login
7386
+ * // ```
7387
+ * // - Install the npm module by running:
7388
+ * // ```sh
7389
+ * // $ npm install googleapis
7390
+ * // ```
7391
+ *
7392
+ * const {google} = require('googleapis');
7393
+ * const chromemanagement = google.chromemanagement('v1');
7394
+ *
7395
+ * async function main() {
7396
+ * const auth = new google.auth.GoogleAuth({
7397
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
7398
+ * scopes: [],
7399
+ * });
7400
+ *
7401
+ * // Acquire an auth client, and bind it to all future calls
7402
+ * const authClient = await auth.getClient();
7403
+ * google.options({auth: authClient});
7404
+ *
7405
+ * // Do the magic
7406
+ * const res = await chromemanagement.customers.connectorConfigs.create({
7407
+ * // 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.
7408
+ * connectorConfigId: 'placeholder-value',
7409
+ * // Required. Format: customers/{customer\}
7410
+ * parent: 'customers/my-customer',
7411
+ *
7412
+ * // Request body metadata
7413
+ * requestBody: {
7414
+ * // request body parameters
7415
+ * // {
7416
+ * // "details": {},
7417
+ * // "displayName": "my_displayName",
7418
+ * // "name": "my_name",
7419
+ * // "status": {},
7420
+ * // "type": "my_type"
7421
+ * // }
7422
+ * },
7423
+ * });
7424
+ * console.log(res.data);
7425
+ *
7426
+ * // Example response
7427
+ * // {
7428
+ * // "details": {},
7429
+ * // "displayName": "my_displayName",
7430
+ * // "name": "my_name",
7431
+ * // "status": {},
7432
+ * // "type": "my_type"
7433
+ * // }
7434
+ * }
7435
+ *
7436
+ * main().catch(e => {
7437
+ * console.error(e);
7438
+ * throw e;
7439
+ * });
7440
+ *
7441
+ * ```
7442
+ *
7443
+ * @param params - Parameters for request
7444
+ * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
7445
+ * @param callback - Optional callback that handles the response.
7446
+ * @returns A promise if used with async/await, or void if used with a callback.
7447
+ */
7448
+ create(
7449
+ params: Params$Resource$Customers$Connectorconfigs$Create,
7450
+ options: StreamMethodOptions
7451
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
7452
+ create(
7453
+ params?: Params$Resource$Customers$Connectorconfigs$Create,
7454
+ options?: MethodOptions
7455
+ ): Promise<
7456
+ GaxiosResponseWithHTTP2<Schema$GoogleChromeManagementVersionsV1ConnectorConfig>
7457
+ >;
7458
+ create(
7459
+ params: Params$Resource$Customers$Connectorconfigs$Create,
7460
+ options: StreamMethodOptions | BodyResponseCallback<Readable>,
7461
+ callback: BodyResponseCallback<Readable>
7462
+ ): void;
7463
+ create(
7464
+ params: Params$Resource$Customers$Connectorconfigs$Create,
7465
+ options:
7466
+ | MethodOptions
7467
+ | BodyResponseCallback<Schema$GoogleChromeManagementVersionsV1ConnectorConfig>,
7468
+ callback: BodyResponseCallback<Schema$GoogleChromeManagementVersionsV1ConnectorConfig>
7469
+ ): void;
7470
+ create(
7471
+ params: Params$Resource$Customers$Connectorconfigs$Create,
7472
+ callback: BodyResponseCallback<Schema$GoogleChromeManagementVersionsV1ConnectorConfig>
7473
+ ): void;
7474
+ create(
7475
+ callback: BodyResponseCallback<Schema$GoogleChromeManagementVersionsV1ConnectorConfig>
7476
+ ): void;
7477
+ create(
7478
+ paramsOrCallback?:
7479
+ | Params$Resource$Customers$Connectorconfigs$Create
7480
+ | BodyResponseCallback<Schema$GoogleChromeManagementVersionsV1ConnectorConfig>
7481
+ | BodyResponseCallback<Readable>,
7482
+ optionsOrCallback?:
7483
+ | MethodOptions
7484
+ | StreamMethodOptions
7485
+ | BodyResponseCallback<Schema$GoogleChromeManagementVersionsV1ConnectorConfig>
7486
+ | BodyResponseCallback<Readable>,
7487
+ callback?:
7488
+ | BodyResponseCallback<Schema$GoogleChromeManagementVersionsV1ConnectorConfig>
7489
+ | BodyResponseCallback<Readable>
7490
+ ):
7491
+ | void
7492
+ | Promise<
7493
+ GaxiosResponseWithHTTP2<Schema$GoogleChromeManagementVersionsV1ConnectorConfig>
7494
+ >
7495
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
7496
+ let params = (paramsOrCallback ||
7497
+ {}) as Params$Resource$Customers$Connectorconfigs$Create;
7498
+ let options = (optionsOrCallback || {}) as MethodOptions;
7499
+
7500
+ if (typeof paramsOrCallback === 'function') {
7501
+ callback = paramsOrCallback;
7502
+ params = {} as Params$Resource$Customers$Connectorconfigs$Create;
7503
+ options = {};
7504
+ }
7505
+
7506
+ if (typeof optionsOrCallback === 'function') {
7507
+ callback = optionsOrCallback;
7508
+ options = {};
7509
+ }
7510
+
7511
+ const rootUrl =
7512
+ options.rootUrl || 'https://chromemanagement.googleapis.com/';
7513
+ const parameters = {
7514
+ options: Object.assign(
7515
+ {
7516
+ url: (rootUrl + '/v1/{+parent}/connectorConfigs').replace(
7517
+ /([^:]\/)\/+/g,
7518
+ '$1'
7519
+ ),
7520
+ method: 'POST',
7521
+ apiVersion: '',
7522
+ },
7523
+ options
7524
+ ),
7525
+ params,
7526
+ requiredParams: ['parent'],
7527
+ pathParams: ['parent'],
7528
+ context: this.context,
7529
+ };
7530
+ if (callback) {
7531
+ createAPIRequest<Schema$GoogleChromeManagementVersionsV1ConnectorConfig>(
7532
+ parameters,
7533
+ callback as BodyResponseCallback<unknown>
7534
+ );
7535
+ } else {
7536
+ return createAPIRequest<Schema$GoogleChromeManagementVersionsV1ConnectorConfig>(
7537
+ parameters
7538
+ );
7539
+ }
7540
+ }
7541
+
7542
+ /**
7543
+ * Deletes a connector config.
7544
+ * @example
7545
+ * ```js
7546
+ * // Before running the sample:
7547
+ * // - Enable the API at:
7548
+ * // https://console.developers.google.com/apis/api/chromemanagement.googleapis.com
7549
+ * // - Login into gcloud by running:
7550
+ * // ```sh
7551
+ * // $ gcloud auth application-default login
7552
+ * // ```
7553
+ * // - Install the npm module by running:
7554
+ * // ```sh
7555
+ * // $ npm install googleapis
7556
+ * // ```
7557
+ *
7558
+ * const {google} = require('googleapis');
7559
+ * const chromemanagement = google.chromemanagement('v1');
7560
+ *
7561
+ * async function main() {
7562
+ * const auth = new google.auth.GoogleAuth({
7563
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
7564
+ * scopes: [],
7565
+ * });
7566
+ *
7567
+ * // Acquire an auth client, and bind it to all future calls
7568
+ * const authClient = await auth.getClient();
7569
+ * google.options({auth: authClient});
7570
+ *
7571
+ * // Do the magic
7572
+ * const res = await chromemanagement.customers.connectorConfigs.delete({
7573
+ * // Required. Format: customers/{customer\}/connectorConfigs/{connector_config\}
7574
+ * name: 'customers/my-customer/connectorConfigs/my-connectorConfig',
7575
+ * });
7576
+ * console.log(res.data);
7577
+ *
7578
+ * // Example response
7579
+ * // {}
7580
+ * }
7581
+ *
7582
+ * main().catch(e => {
7583
+ * console.error(e);
7584
+ * throw e;
7585
+ * });
7586
+ *
7587
+ * ```
7588
+ *
7589
+ * @param params - Parameters for request
7590
+ * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
7591
+ * @param callback - Optional callback that handles the response.
7592
+ * @returns A promise if used with async/await, or void if used with a callback.
7593
+ */
7594
+ delete(
7595
+ params: Params$Resource$Customers$Connectorconfigs$Delete,
7596
+ options: StreamMethodOptions
7597
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
7598
+ delete(
7599
+ params?: Params$Resource$Customers$Connectorconfigs$Delete,
7600
+ options?: MethodOptions
7601
+ ): Promise<GaxiosResponseWithHTTP2<Schema$GoogleProtobufEmpty>>;
7602
+ delete(
7603
+ params: Params$Resource$Customers$Connectorconfigs$Delete,
7604
+ options: StreamMethodOptions | BodyResponseCallback<Readable>,
7605
+ callback: BodyResponseCallback<Readable>
7606
+ ): void;
7607
+ delete(
7608
+ params: Params$Resource$Customers$Connectorconfigs$Delete,
7609
+ options: MethodOptions | BodyResponseCallback<Schema$GoogleProtobufEmpty>,
7610
+ callback: BodyResponseCallback<Schema$GoogleProtobufEmpty>
7611
+ ): void;
7612
+ delete(
7613
+ params: Params$Resource$Customers$Connectorconfigs$Delete,
7614
+ callback: BodyResponseCallback<Schema$GoogleProtobufEmpty>
7615
+ ): void;
7616
+ delete(callback: BodyResponseCallback<Schema$GoogleProtobufEmpty>): void;
7617
+ delete(
7618
+ paramsOrCallback?:
7619
+ | Params$Resource$Customers$Connectorconfigs$Delete
7620
+ | BodyResponseCallback<Schema$GoogleProtobufEmpty>
7621
+ | BodyResponseCallback<Readable>,
7622
+ optionsOrCallback?:
7623
+ | MethodOptions
7624
+ | StreamMethodOptions
7625
+ | BodyResponseCallback<Schema$GoogleProtobufEmpty>
7626
+ | BodyResponseCallback<Readable>,
7627
+ callback?:
7628
+ | BodyResponseCallback<Schema$GoogleProtobufEmpty>
7629
+ | BodyResponseCallback<Readable>
7630
+ ):
7631
+ | void
7632
+ | Promise<GaxiosResponseWithHTTP2<Schema$GoogleProtobufEmpty>>
7633
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
7634
+ let params = (paramsOrCallback ||
7635
+ {}) as Params$Resource$Customers$Connectorconfigs$Delete;
7636
+ let options = (optionsOrCallback || {}) as MethodOptions;
7637
+
7638
+ if (typeof paramsOrCallback === 'function') {
7639
+ callback = paramsOrCallback;
7640
+ params = {} as Params$Resource$Customers$Connectorconfigs$Delete;
7641
+ options = {};
7642
+ }
7643
+
7644
+ if (typeof optionsOrCallback === 'function') {
7645
+ callback = optionsOrCallback;
7646
+ options = {};
7647
+ }
7648
+
7649
+ const rootUrl =
7650
+ options.rootUrl || 'https://chromemanagement.googleapis.com/';
7651
+ const parameters = {
7652
+ options: Object.assign(
7653
+ {
7654
+ url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'),
7655
+ method: 'DELETE',
7656
+ apiVersion: '',
7657
+ },
7658
+ options
7659
+ ),
7660
+ params,
7661
+ requiredParams: ['name'],
7662
+ pathParams: ['name'],
7663
+ context: this.context,
7664
+ };
7665
+ if (callback) {
7666
+ createAPIRequest<Schema$GoogleProtobufEmpty>(
7667
+ parameters,
7668
+ callback as BodyResponseCallback<unknown>
7669
+ );
7670
+ } else {
7671
+ return createAPIRequest<Schema$GoogleProtobufEmpty>(parameters);
7672
+ }
7673
+ }
7674
+
7675
+ /**
7676
+ * Gets a connector config with customer ID and config ID.
7677
+ * @example
7678
+ * ```js
7679
+ * // Before running the sample:
7680
+ * // - Enable the API at:
7681
+ * // https://console.developers.google.com/apis/api/chromemanagement.googleapis.com
7682
+ * // - Login into gcloud by running:
7683
+ * // ```sh
7684
+ * // $ gcloud auth application-default login
7685
+ * // ```
7686
+ * // - Install the npm module by running:
7687
+ * // ```sh
7688
+ * // $ npm install googleapis
7689
+ * // ```
7690
+ *
7691
+ * const {google} = require('googleapis');
7692
+ * const chromemanagement = google.chromemanagement('v1');
7693
+ *
7694
+ * async function main() {
7695
+ * const auth = new google.auth.GoogleAuth({
7696
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
7697
+ * scopes: [],
7698
+ * });
7699
+ *
7700
+ * // Acquire an auth client, and bind it to all future calls
7701
+ * const authClient = await auth.getClient();
7702
+ * google.options({auth: authClient});
7703
+ *
7704
+ * // Do the magic
7705
+ * const res = await chromemanagement.customers.connectorConfigs.get({
7706
+ * // Required. Format: customers/{customer\}/connectorConfigs/{connector_config\}
7707
+ * name: 'customers/my-customer/connectorConfigs/my-connectorConfig',
7708
+ * });
7709
+ * console.log(res.data);
7710
+ *
7711
+ * // Example response
7712
+ * // {
7713
+ * // "details": {},
7714
+ * // "displayName": "my_displayName",
7715
+ * // "name": "my_name",
7716
+ * // "status": {},
7717
+ * // "type": "my_type"
7718
+ * // }
7719
+ * }
7720
+ *
7721
+ * main().catch(e => {
7722
+ * console.error(e);
7723
+ * throw e;
7724
+ * });
7725
+ *
7726
+ * ```
7727
+ *
7728
+ * @param params - Parameters for request
7729
+ * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
7730
+ * @param callback - Optional callback that handles the response.
7731
+ * @returns A promise if used with async/await, or void if used with a callback.
7732
+ */
7733
+ get(
7734
+ params: Params$Resource$Customers$Connectorconfigs$Get,
7735
+ options: StreamMethodOptions
7736
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
7737
+ get(
7738
+ params?: Params$Resource$Customers$Connectorconfigs$Get,
7739
+ options?: MethodOptions
7740
+ ): Promise<
7741
+ GaxiosResponseWithHTTP2<Schema$GoogleChromeManagementVersionsV1ConnectorConfig>
7742
+ >;
7743
+ get(
7744
+ params: Params$Resource$Customers$Connectorconfigs$Get,
7745
+ options: StreamMethodOptions | BodyResponseCallback<Readable>,
7746
+ callback: BodyResponseCallback<Readable>
7747
+ ): void;
7748
+ get(
7749
+ params: Params$Resource$Customers$Connectorconfigs$Get,
7750
+ options:
7751
+ | MethodOptions
7752
+ | BodyResponseCallback<Schema$GoogleChromeManagementVersionsV1ConnectorConfig>,
7753
+ callback: BodyResponseCallback<Schema$GoogleChromeManagementVersionsV1ConnectorConfig>
7754
+ ): void;
7755
+ get(
7756
+ params: Params$Resource$Customers$Connectorconfigs$Get,
7757
+ callback: BodyResponseCallback<Schema$GoogleChromeManagementVersionsV1ConnectorConfig>
7758
+ ): void;
7759
+ get(
7760
+ callback: BodyResponseCallback<Schema$GoogleChromeManagementVersionsV1ConnectorConfig>
7761
+ ): void;
7762
+ get(
7763
+ paramsOrCallback?:
7764
+ | Params$Resource$Customers$Connectorconfigs$Get
7765
+ | BodyResponseCallback<Schema$GoogleChromeManagementVersionsV1ConnectorConfig>
7766
+ | BodyResponseCallback<Readable>,
7767
+ optionsOrCallback?:
7768
+ | MethodOptions
7769
+ | StreamMethodOptions
7770
+ | BodyResponseCallback<Schema$GoogleChromeManagementVersionsV1ConnectorConfig>
7771
+ | BodyResponseCallback<Readable>,
7772
+ callback?:
7773
+ | BodyResponseCallback<Schema$GoogleChromeManagementVersionsV1ConnectorConfig>
7774
+ | BodyResponseCallback<Readable>
7775
+ ):
7776
+ | void
7777
+ | Promise<
7778
+ GaxiosResponseWithHTTP2<Schema$GoogleChromeManagementVersionsV1ConnectorConfig>
7779
+ >
7780
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
7781
+ let params = (paramsOrCallback ||
7782
+ {}) as Params$Resource$Customers$Connectorconfigs$Get;
7783
+ let options = (optionsOrCallback || {}) as MethodOptions;
7784
+
7785
+ if (typeof paramsOrCallback === 'function') {
7786
+ callback = paramsOrCallback;
7787
+ params = {} as Params$Resource$Customers$Connectorconfigs$Get;
7788
+ options = {};
7789
+ }
7790
+
7791
+ if (typeof optionsOrCallback === 'function') {
7792
+ callback = optionsOrCallback;
7793
+ options = {};
7794
+ }
7795
+
7796
+ const rootUrl =
7797
+ options.rootUrl || 'https://chromemanagement.googleapis.com/';
7798
+ const parameters = {
7799
+ options: Object.assign(
7800
+ {
7801
+ url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'),
7802
+ method: 'GET',
7803
+ apiVersion: '',
7804
+ },
7805
+ options
7806
+ ),
7807
+ params,
7808
+ requiredParams: ['name'],
7809
+ pathParams: ['name'],
7810
+ context: this.context,
7811
+ };
7812
+ if (callback) {
7813
+ createAPIRequest<Schema$GoogleChromeManagementVersionsV1ConnectorConfig>(
7814
+ parameters,
7815
+ callback as BodyResponseCallback<unknown>
7816
+ );
7817
+ } else {
7818
+ return createAPIRequest<Schema$GoogleChromeManagementVersionsV1ConnectorConfig>(
7819
+ parameters
7820
+ );
7821
+ }
7822
+ }
7823
+
7824
+ /**
7825
+ * Lists connector configs of a customer.
7826
+ * @example
7827
+ * ```js
7828
+ * // Before running the sample:
7829
+ * // - Enable the API at:
7830
+ * // https://console.developers.google.com/apis/api/chromemanagement.googleapis.com
7831
+ * // - Login into gcloud by running:
7832
+ * // ```sh
7833
+ * // $ gcloud auth application-default login
7834
+ * // ```
7835
+ * // - Install the npm module by running:
7836
+ * // ```sh
7837
+ * // $ npm install googleapis
7838
+ * // ```
7839
+ *
7840
+ * const {google} = require('googleapis');
7841
+ * const chromemanagement = google.chromemanagement('v1');
7842
+ *
7843
+ * async function main() {
7844
+ * const auth = new google.auth.GoogleAuth({
7845
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
7846
+ * scopes: [],
7847
+ * });
7848
+ *
7849
+ * // Acquire an auth client, and bind it to all future calls
7850
+ * const authClient = await auth.getClient();
7851
+ * google.options({auth: authClient});
7852
+ *
7853
+ * // Do the magic
7854
+ * const res = await chromemanagement.customers.connectorConfigs.list({
7855
+ * // Optional. The maximum number of connector configs to return. The default page size is 50 if page_size is unspecified, and the maximum page size allowed is 100. Values above 100 will be capped at 100.
7856
+ * pageSize: 'placeholder-value',
7857
+ * // Optional. A page token, received from a previous `ListConnectorConfigs` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `ListConnectorConfigs` must match the call that provided the page token.
7858
+ * pageToken: 'placeholder-value',
7859
+ * // Required. Format: customers/{customer\}
7860
+ * parent: 'customers/my-customer',
7861
+ * });
7862
+ * console.log(res.data);
7863
+ *
7864
+ * // Example response
7865
+ * // {
7866
+ * // "connectorConfigs": [],
7867
+ * // "nextPageToken": "my_nextPageToken"
7868
+ * // }
7869
+ * }
7870
+ *
7871
+ * main().catch(e => {
7872
+ * console.error(e);
7873
+ * throw e;
7874
+ * });
7875
+ *
7876
+ * ```
7877
+ *
7878
+ * @param params - Parameters for request
7879
+ * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
7880
+ * @param callback - Optional callback that handles the response.
7881
+ * @returns A promise if used with async/await, or void if used with a callback.
7882
+ */
7883
+ list(
7884
+ params: Params$Resource$Customers$Connectorconfigs$List,
7885
+ options: StreamMethodOptions
7886
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
7887
+ list(
7888
+ params?: Params$Resource$Customers$Connectorconfigs$List,
7889
+ options?: MethodOptions
7890
+ ): Promise<
7891
+ GaxiosResponseWithHTTP2<Schema$GoogleChromeManagementVersionsV1ListConnectorConfigsResponse>
7892
+ >;
7893
+ list(
7894
+ params: Params$Resource$Customers$Connectorconfigs$List,
7895
+ options: StreamMethodOptions | BodyResponseCallback<Readable>,
7896
+ callback: BodyResponseCallback<Readable>
7897
+ ): void;
7898
+ list(
7899
+ params: Params$Resource$Customers$Connectorconfigs$List,
7900
+ options:
7901
+ | MethodOptions
7902
+ | BodyResponseCallback<Schema$GoogleChromeManagementVersionsV1ListConnectorConfigsResponse>,
7903
+ callback: BodyResponseCallback<Schema$GoogleChromeManagementVersionsV1ListConnectorConfigsResponse>
7904
+ ): void;
7905
+ list(
7906
+ params: Params$Resource$Customers$Connectorconfigs$List,
7907
+ callback: BodyResponseCallback<Schema$GoogleChromeManagementVersionsV1ListConnectorConfigsResponse>
7908
+ ): void;
7909
+ list(
7910
+ callback: BodyResponseCallback<Schema$GoogleChromeManagementVersionsV1ListConnectorConfigsResponse>
7911
+ ): void;
7912
+ list(
7913
+ paramsOrCallback?:
7914
+ | Params$Resource$Customers$Connectorconfigs$List
7915
+ | BodyResponseCallback<Schema$GoogleChromeManagementVersionsV1ListConnectorConfigsResponse>
7916
+ | BodyResponseCallback<Readable>,
7917
+ optionsOrCallback?:
7918
+ | MethodOptions
7919
+ | StreamMethodOptions
7920
+ | BodyResponseCallback<Schema$GoogleChromeManagementVersionsV1ListConnectorConfigsResponse>
7921
+ | BodyResponseCallback<Readable>,
7922
+ callback?:
7923
+ | BodyResponseCallback<Schema$GoogleChromeManagementVersionsV1ListConnectorConfigsResponse>
7924
+ | BodyResponseCallback<Readable>
7925
+ ):
7926
+ | void
7927
+ | Promise<
7928
+ GaxiosResponseWithHTTP2<Schema$GoogleChromeManagementVersionsV1ListConnectorConfigsResponse>
7929
+ >
7930
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
7931
+ let params = (paramsOrCallback ||
7932
+ {}) as Params$Resource$Customers$Connectorconfigs$List;
7933
+ let options = (optionsOrCallback || {}) as MethodOptions;
7934
+
7935
+ if (typeof paramsOrCallback === 'function') {
7936
+ callback = paramsOrCallback;
7937
+ params = {} as Params$Resource$Customers$Connectorconfigs$List;
7938
+ options = {};
7939
+ }
7940
+
7941
+ if (typeof optionsOrCallback === 'function') {
7942
+ callback = optionsOrCallback;
7943
+ options = {};
7944
+ }
7945
+
7946
+ const rootUrl =
7947
+ options.rootUrl || 'https://chromemanagement.googleapis.com/';
7948
+ const parameters = {
7949
+ options: Object.assign(
7950
+ {
7951
+ url: (rootUrl + '/v1/{+parent}/connectorConfigs').replace(
7952
+ /([^:]\/)\/+/g,
7953
+ '$1'
7954
+ ),
7955
+ method: 'GET',
7956
+ apiVersion: '',
7957
+ },
7958
+ options
7959
+ ),
7960
+ params,
7961
+ requiredParams: ['parent'],
7962
+ pathParams: ['parent'],
7963
+ context: this.context,
7964
+ };
7965
+ if (callback) {
7966
+ createAPIRequest<Schema$GoogleChromeManagementVersionsV1ListConnectorConfigsResponse>(
7967
+ parameters,
7968
+ callback as BodyResponseCallback<unknown>
7969
+ );
7970
+ } else {
7971
+ return createAPIRequest<Schema$GoogleChromeManagementVersionsV1ListConnectorConfigsResponse>(
7972
+ parameters
7973
+ );
7974
+ }
7975
+ }
7976
+
7977
+ /**
7978
+ * Updates a connector config.
7979
+ * @example
7980
+ * ```js
7981
+ * // Before running the sample:
7982
+ * // - Enable the API at:
7983
+ * // https://console.developers.google.com/apis/api/chromemanagement.googleapis.com
7984
+ * // - Login into gcloud by running:
7985
+ * // ```sh
7986
+ * // $ gcloud auth application-default login
7987
+ * // ```
7988
+ * // - Install the npm module by running:
7989
+ * // ```sh
7990
+ * // $ npm install googleapis
7991
+ * // ```
7992
+ *
7993
+ * const {google} = require('googleapis');
7994
+ * const chromemanagement = google.chromemanagement('v1');
7995
+ *
7996
+ * async function main() {
7997
+ * const auth = new google.auth.GoogleAuth({
7998
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
7999
+ * scopes: [],
8000
+ * });
8001
+ *
8002
+ * // Acquire an auth client, and bind it to all future calls
8003
+ * const authClient = await auth.getClient();
8004
+ * google.options({auth: authClient});
8005
+ *
8006
+ * // Do the magic
8007
+ * const res = await chromemanagement.customers.connectorConfigs.patch({
8008
+ * // Identifier. Format: customers/{customer\}/connectorConfigs/{connector_config\}
8009
+ * name: 'customers/my-customer/connectorConfigs/my-connectorConfig',
8010
+ * // Optional. The update mask that can be used to specify which fields to update.
8011
+ * updateMask: 'placeholder-value',
8012
+ *
8013
+ * // Request body metadata
8014
+ * requestBody: {
8015
+ * // request body parameters
8016
+ * // {
8017
+ * // "details": {},
8018
+ * // "displayName": "my_displayName",
8019
+ * // "name": "my_name",
8020
+ * // "status": {},
8021
+ * // "type": "my_type"
8022
+ * // }
8023
+ * },
8024
+ * });
8025
+ * console.log(res.data);
8026
+ *
8027
+ * // Example response
8028
+ * // {
8029
+ * // "details": {},
8030
+ * // "displayName": "my_displayName",
8031
+ * // "name": "my_name",
8032
+ * // "status": {},
8033
+ * // "type": "my_type"
8034
+ * // }
8035
+ * }
8036
+ *
8037
+ * main().catch(e => {
8038
+ * console.error(e);
8039
+ * throw e;
8040
+ * });
8041
+ *
8042
+ * ```
8043
+ *
8044
+ * @param params - Parameters for request
8045
+ * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
8046
+ * @param callback - Optional callback that handles the response.
8047
+ * @returns A promise if used with async/await, or void if used with a callback.
8048
+ */
8049
+ patch(
8050
+ params: Params$Resource$Customers$Connectorconfigs$Patch,
8051
+ options: StreamMethodOptions
8052
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
8053
+ patch(
8054
+ params?: Params$Resource$Customers$Connectorconfigs$Patch,
8055
+ options?: MethodOptions
8056
+ ): Promise<
8057
+ GaxiosResponseWithHTTP2<Schema$GoogleChromeManagementVersionsV1ConnectorConfig>
8058
+ >;
8059
+ patch(
8060
+ params: Params$Resource$Customers$Connectorconfigs$Patch,
8061
+ options: StreamMethodOptions | BodyResponseCallback<Readable>,
8062
+ callback: BodyResponseCallback<Readable>
8063
+ ): void;
8064
+ patch(
8065
+ params: Params$Resource$Customers$Connectorconfigs$Patch,
8066
+ options:
8067
+ | MethodOptions
8068
+ | BodyResponseCallback<Schema$GoogleChromeManagementVersionsV1ConnectorConfig>,
8069
+ callback: BodyResponseCallback<Schema$GoogleChromeManagementVersionsV1ConnectorConfig>
8070
+ ): void;
8071
+ patch(
8072
+ params: Params$Resource$Customers$Connectorconfigs$Patch,
8073
+ callback: BodyResponseCallback<Schema$GoogleChromeManagementVersionsV1ConnectorConfig>
8074
+ ): void;
8075
+ patch(
8076
+ callback: BodyResponseCallback<Schema$GoogleChromeManagementVersionsV1ConnectorConfig>
8077
+ ): void;
8078
+ patch(
8079
+ paramsOrCallback?:
8080
+ | Params$Resource$Customers$Connectorconfigs$Patch
8081
+ | BodyResponseCallback<Schema$GoogleChromeManagementVersionsV1ConnectorConfig>
8082
+ | BodyResponseCallback<Readable>,
8083
+ optionsOrCallback?:
8084
+ | MethodOptions
8085
+ | StreamMethodOptions
8086
+ | BodyResponseCallback<Schema$GoogleChromeManagementVersionsV1ConnectorConfig>
8087
+ | BodyResponseCallback<Readable>,
8088
+ callback?:
8089
+ | BodyResponseCallback<Schema$GoogleChromeManagementVersionsV1ConnectorConfig>
8090
+ | BodyResponseCallback<Readable>
8091
+ ):
8092
+ | void
8093
+ | Promise<
8094
+ GaxiosResponseWithHTTP2<Schema$GoogleChromeManagementVersionsV1ConnectorConfig>
8095
+ >
8096
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
8097
+ let params = (paramsOrCallback ||
8098
+ {}) as Params$Resource$Customers$Connectorconfigs$Patch;
8099
+ let options = (optionsOrCallback || {}) as MethodOptions;
8100
+
8101
+ if (typeof paramsOrCallback === 'function') {
8102
+ callback = paramsOrCallback;
8103
+ params = {} as Params$Resource$Customers$Connectorconfigs$Patch;
8104
+ options = {};
8105
+ }
8106
+
8107
+ if (typeof optionsOrCallback === 'function') {
8108
+ callback = optionsOrCallback;
8109
+ options = {};
8110
+ }
8111
+
8112
+ const rootUrl =
8113
+ options.rootUrl || 'https://chromemanagement.googleapis.com/';
8114
+ const parameters = {
8115
+ options: Object.assign(
8116
+ {
8117
+ url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'),
8118
+ method: 'PATCH',
8119
+ apiVersion: '',
8120
+ },
8121
+ options
8122
+ ),
8123
+ params,
8124
+ requiredParams: ['name'],
8125
+ pathParams: ['name'],
8126
+ context: this.context,
8127
+ };
8128
+ if (callback) {
8129
+ createAPIRequest<Schema$GoogleChromeManagementVersionsV1ConnectorConfig>(
8130
+ parameters,
8131
+ callback as BodyResponseCallback<unknown>
8132
+ );
8133
+ } else {
8134
+ return createAPIRequest<Schema$GoogleChromeManagementVersionsV1ConnectorConfig>(
8135
+ parameters
8136
+ );
8137
+ }
8138
+ }
8139
+ }
8140
+
8141
+ export interface Params$Resource$Customers$Connectorconfigs$Create extends StandardParameters {
8142
+ /**
8143
+ * 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.
8144
+ */
8145
+ connectorConfigId?: string;
8146
+ /**
8147
+ * Required. Format: customers/{customer\}
8148
+ */
8149
+ parent?: string;
8150
+
8151
+ /**
8152
+ * Request body metadata
8153
+ */
8154
+ requestBody?: Schema$GoogleChromeManagementVersionsV1ConnectorConfig;
8155
+ }
8156
+ export interface Params$Resource$Customers$Connectorconfigs$Delete extends StandardParameters {
8157
+ /**
8158
+ * Required. Format: customers/{customer\}/connectorConfigs/{connector_config\}
8159
+ */
8160
+ name?: string;
8161
+ }
8162
+ export interface Params$Resource$Customers$Connectorconfigs$Get extends StandardParameters {
8163
+ /**
8164
+ * Required. Format: customers/{customer\}/connectorConfigs/{connector_config\}
8165
+ */
8166
+ name?: string;
8167
+ }
8168
+ export interface Params$Resource$Customers$Connectorconfigs$List extends StandardParameters {
8169
+ /**
8170
+ * Optional. The maximum number of connector configs to return. The default page size is 50 if page_size is unspecified, and the maximum page size allowed is 100. Values above 100 will be capped at 100.
8171
+ */
8172
+ pageSize?: number;
8173
+ /**
8174
+ * Optional. A page token, received from a previous `ListConnectorConfigs` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `ListConnectorConfigs` must match the call that provided the page token.
8175
+ */
8176
+ pageToken?: string;
8177
+ /**
8178
+ * Required. Format: customers/{customer\}
8179
+ */
8180
+ parent?: string;
8181
+ }
8182
+ export interface Params$Resource$Customers$Connectorconfigs$Patch extends StandardParameters {
8183
+ /**
8184
+ * Identifier. Format: customers/{customer\}/connectorConfigs/{connector_config\}
8185
+ */
8186
+ name?: string;
8187
+ /**
8188
+ * Optional. The update mask that can be used to specify which fields to update.
8189
+ */
8190
+ updateMask?: string;
8191
+
8192
+ /**
8193
+ * Request body metadata
8194
+ */
8195
+ requestBody?: Schema$GoogleChromeManagementVersionsV1ConnectorConfig;
8196
+ }
8197
+
8198
+ export class Resource$Customers$Enrollmenttokens {
8199
+ context: APIRequestContext;
8200
+ constructor(context: APIRequestContext) {
8201
+ this.context = context;
8202
+ }
8203
+
8204
+ /**
8205
+ * Creates a new enrollment token for a browser device. Creation fails if there is already an active token for this customer under the same org unit.
8206
+ * @example
8207
+ * ```js
8208
+ * // Before running the sample:
8209
+ * // - Enable the API at:
8210
+ * // https://console.developers.google.com/apis/api/chromemanagement.googleapis.com
8211
+ * // - Login into gcloud by running:
8212
+ * // ```sh
8213
+ * // $ gcloud auth application-default login
8214
+ * // ```
8215
+ * // - Install the npm module by running:
8216
+ * // ```sh
8217
+ * // $ npm install googleapis
8218
+ * // ```
8219
+ *
8220
+ * const {google} = require('googleapis');
8221
+ * const chromemanagement = google.chromemanagement('v1');
8222
+ *
8223
+ * async function main() {
8224
+ * const auth = new google.auth.GoogleAuth({
8225
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
8226
+ * scopes: [],
8227
+ * });
8228
+ *
8229
+ * // Acquire an auth client, and bind it to all future calls
8230
+ * const authClient = await auth.getClient();
8231
+ * google.options({auth: authClient});
8232
+ *
8233
+ * // Do the magic
8234
+ * const res = await chromemanagement.customers.enrollmentTokens.create({
8235
+ * // Optional. The ID to use for the enrollment token, which will become the final component of the enrollment token's resource name. This value must be local-unique under the customer and is optional. If not provided, it will be auto-generated. If provided, it must be 1-63 characters long and match the regular expression `[a-zA-Z0-9._-]+`.
8236
+ * enrollmentTokenId: 'placeholder-value',
8237
+ * // Required. The parent resource where this enrollment token will be created. Format: customers/{customer\}
8238
+ * parent: 'customers/my-customer',
8239
+ *
8240
+ * // Request body metadata
8241
+ * requestBody: {
8242
+ * // request body parameters
8243
+ * // {
8244
+ * // "createTime": "my_createTime",
8245
+ * // "creatorId": "my_creatorId",
8246
+ * // "customerId": "my_customerId",
8247
+ * // "name": "my_name",
8248
+ * // "orgUnitId": "my_orgUnitId",
8249
+ * // "revokeTime": "my_revokeTime",
8250
+ * // "revokerId": "my_revokerId",
8251
+ * // "state": "my_state",
8252
+ * // "token": "my_token",
8253
+ * // "tokenPermanentId": "my_tokenPermanentId",
8254
+ * // "tokenType": "my_tokenType"
8255
+ * // }
8256
+ * },
8257
+ * });
8258
+ * console.log(res.data);
8259
+ *
8260
+ * // Example response
8261
+ * // {
8262
+ * // "createTime": "my_createTime",
8263
+ * // "creatorId": "my_creatorId",
8264
+ * // "customerId": "my_customerId",
8265
+ * // "name": "my_name",
8266
+ * // "orgUnitId": "my_orgUnitId",
8267
+ * // "revokeTime": "my_revokeTime",
8268
+ * // "revokerId": "my_revokerId",
8269
+ * // "state": "my_state",
8270
+ * // "token": "my_token",
8271
+ * // "tokenPermanentId": "my_tokenPermanentId",
8272
+ * // "tokenType": "my_tokenType"
8273
+ * // }
8274
+ * }
8275
+ *
8276
+ * main().catch(e => {
8277
+ * console.error(e);
8278
+ * throw e;
8279
+ * });
8280
+ *
8281
+ * ```
8282
+ *
8283
+ * @param params - Parameters for request
8284
+ * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
8285
+ * @param callback - Optional callback that handles the response.
8286
+ * @returns A promise if used with async/await, or void if used with a callback.
8287
+ */
8288
+ create(
8289
+ params: Params$Resource$Customers$Enrollmenttokens$Create,
8290
+ options: StreamMethodOptions
8291
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
8292
+ create(
8293
+ params?: Params$Resource$Customers$Enrollmenttokens$Create,
8294
+ options?: MethodOptions
8295
+ ): Promise<
8296
+ GaxiosResponseWithHTTP2<Schema$GoogleChromeManagementVersionsV1EnrollmentToken>
8297
+ >;
8298
+ create(
8299
+ params: Params$Resource$Customers$Enrollmenttokens$Create,
8300
+ options: StreamMethodOptions | BodyResponseCallback<Readable>,
8301
+ callback: BodyResponseCallback<Readable>
8302
+ ): void;
8303
+ create(
8304
+ params: Params$Resource$Customers$Enrollmenttokens$Create,
8305
+ options:
8306
+ | MethodOptions
8307
+ | BodyResponseCallback<Schema$GoogleChromeManagementVersionsV1EnrollmentToken>,
8308
+ callback: BodyResponseCallback<Schema$GoogleChromeManagementVersionsV1EnrollmentToken>
8309
+ ): void;
8310
+ create(
8311
+ params: Params$Resource$Customers$Enrollmenttokens$Create,
8312
+ callback: BodyResponseCallback<Schema$GoogleChromeManagementVersionsV1EnrollmentToken>
8313
+ ): void;
8314
+ create(
8315
+ callback: BodyResponseCallback<Schema$GoogleChromeManagementVersionsV1EnrollmentToken>
8316
+ ): void;
8317
+ create(
8318
+ paramsOrCallback?:
8319
+ | Params$Resource$Customers$Enrollmenttokens$Create
8320
+ | BodyResponseCallback<Schema$GoogleChromeManagementVersionsV1EnrollmentToken>
8321
+ | BodyResponseCallback<Readable>,
8322
+ optionsOrCallback?:
8323
+ | MethodOptions
8324
+ | StreamMethodOptions
8325
+ | BodyResponseCallback<Schema$GoogleChromeManagementVersionsV1EnrollmentToken>
8326
+ | BodyResponseCallback<Readable>,
8327
+ callback?:
8328
+ | BodyResponseCallback<Schema$GoogleChromeManagementVersionsV1EnrollmentToken>
8329
+ | BodyResponseCallback<Readable>
8330
+ ):
8331
+ | void
8332
+ | Promise<
8333
+ GaxiosResponseWithHTTP2<Schema$GoogleChromeManagementVersionsV1EnrollmentToken>
8334
+ >
8335
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
8336
+ let params = (paramsOrCallback ||
8337
+ {}) as Params$Resource$Customers$Enrollmenttokens$Create;
8338
+ let options = (optionsOrCallback || {}) as MethodOptions;
8339
+
8340
+ if (typeof paramsOrCallback === 'function') {
8341
+ callback = paramsOrCallback;
8342
+ params = {} as Params$Resource$Customers$Enrollmenttokens$Create;
8343
+ options = {};
8344
+ }
8345
+
8346
+ if (typeof optionsOrCallback === 'function') {
8347
+ callback = optionsOrCallback;
8348
+ options = {};
8349
+ }
8350
+
8351
+ const rootUrl =
8352
+ options.rootUrl || 'https://chromemanagement.googleapis.com/';
8353
+ const parameters = {
8354
+ options: Object.assign(
8355
+ {
8356
+ url: (rootUrl + '/v1/{+parent}/enrollmentTokens').replace(
8357
+ /([^:]\/)\/+/g,
8358
+ '$1'
8359
+ ),
8360
+ method: 'POST',
8361
+ apiVersion: '',
8362
+ },
8363
+ options
8364
+ ),
8365
+ params,
8366
+ requiredParams: ['parent'],
8367
+ pathParams: ['parent'],
8368
+ context: this.context,
8369
+ };
8370
+ if (callback) {
8371
+ createAPIRequest<Schema$GoogleChromeManagementVersionsV1EnrollmentToken>(
8372
+ parameters,
8373
+ callback as BodyResponseCallback<unknown>
8374
+ );
8375
+ } else {
8376
+ return createAPIRequest<Schema$GoogleChromeManagementVersionsV1EnrollmentToken>(
8377
+ parameters
8378
+ );
8379
+ }
8380
+ }
8381
+
8382
+ /**
8383
+ * Gets a browser device enrollment token.
8384
+ * @example
8385
+ * ```js
8386
+ * // Before running the sample:
8387
+ * // - Enable the API at:
8388
+ * // https://console.developers.google.com/apis/api/chromemanagement.googleapis.com
8389
+ * // - Login into gcloud by running:
8390
+ * // ```sh
8391
+ * // $ gcloud auth application-default login
8392
+ * // ```
8393
+ * // - Install the npm module by running:
8394
+ * // ```sh
8395
+ * // $ npm install googleapis
8396
+ * // ```
8397
+ *
8398
+ * const {google} = require('googleapis');
8399
+ * const chromemanagement = google.chromemanagement('v1');
8400
+ *
8401
+ * async function main() {
8402
+ * const auth = new google.auth.GoogleAuth({
8403
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
8404
+ * scopes: [],
8405
+ * });
8406
+ *
8407
+ * // Acquire an auth client, and bind it to all future calls
8408
+ * const authClient = await auth.getClient();
8409
+ * google.options({auth: authClient});
8410
+ *
8411
+ * // Do the magic
8412
+ * const res = await chromemanagement.customers.enrollmentTokens.get({
8413
+ * // Required. The name of the enrollment token to retrieve. Format: customers/{customer\}/enrollmentTokens/{token_permanent_id\}
8414
+ * name: 'customers/my-customer/enrollmentTokens/my-enrollmentToken',
8415
+ * });
8416
+ * console.log(res.data);
8417
+ *
8418
+ * // Example response
8419
+ * // {
8420
+ * // "createTime": "my_createTime",
8421
+ * // "creatorId": "my_creatorId",
8422
+ * // "customerId": "my_customerId",
8423
+ * // "name": "my_name",
8424
+ * // "orgUnitId": "my_orgUnitId",
8425
+ * // "revokeTime": "my_revokeTime",
8426
+ * // "revokerId": "my_revokerId",
8427
+ * // "state": "my_state",
8428
+ * // "token": "my_token",
8429
+ * // "tokenPermanentId": "my_tokenPermanentId",
8430
+ * // "tokenType": "my_tokenType"
8431
+ * // }
8432
+ * }
8433
+ *
8434
+ * main().catch(e => {
8435
+ * console.error(e);
8436
+ * throw e;
8437
+ * });
8438
+ *
8439
+ * ```
8440
+ *
8441
+ * @param params - Parameters for request
8442
+ * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
8443
+ * @param callback - Optional callback that handles the response.
8444
+ * @returns A promise if used with async/await, or void if used with a callback.
8445
+ */
8446
+ get(
8447
+ params: Params$Resource$Customers$Enrollmenttokens$Get,
8448
+ options: StreamMethodOptions
8449
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
8450
+ get(
8451
+ params?: Params$Resource$Customers$Enrollmenttokens$Get,
8452
+ options?: MethodOptions
8453
+ ): Promise<
8454
+ GaxiosResponseWithHTTP2<Schema$GoogleChromeManagementVersionsV1EnrollmentToken>
8455
+ >;
8456
+ get(
8457
+ params: Params$Resource$Customers$Enrollmenttokens$Get,
8458
+ options: StreamMethodOptions | BodyResponseCallback<Readable>,
8459
+ callback: BodyResponseCallback<Readable>
8460
+ ): void;
8461
+ get(
8462
+ params: Params$Resource$Customers$Enrollmenttokens$Get,
8463
+ options:
8464
+ | MethodOptions
8465
+ | BodyResponseCallback<Schema$GoogleChromeManagementVersionsV1EnrollmentToken>,
8466
+ callback: BodyResponseCallback<Schema$GoogleChromeManagementVersionsV1EnrollmentToken>
8467
+ ): void;
8468
+ get(
8469
+ params: Params$Resource$Customers$Enrollmenttokens$Get,
8470
+ callback: BodyResponseCallback<Schema$GoogleChromeManagementVersionsV1EnrollmentToken>
8471
+ ): void;
8472
+ get(
8473
+ callback: BodyResponseCallback<Schema$GoogleChromeManagementVersionsV1EnrollmentToken>
6370
8474
  ): void;
6371
8475
  get(
6372
8476
  paramsOrCallback?:
6373
- | Params$Resource$Customers$Connectorconfigs$Get
6374
- | BodyResponseCallback<Schema$GoogleChromeManagementVersionsV1ConnectorConfig>
8477
+ | Params$Resource$Customers$Enrollmenttokens$Get
8478
+ | BodyResponseCallback<Schema$GoogleChromeManagementVersionsV1EnrollmentToken>
6375
8479
  | BodyResponseCallback<Readable>,
6376
8480
  optionsOrCallback?:
6377
8481
  | MethodOptions
6378
8482
  | StreamMethodOptions
6379
- | BodyResponseCallback<Schema$GoogleChromeManagementVersionsV1ConnectorConfig>
8483
+ | BodyResponseCallback<Schema$GoogleChromeManagementVersionsV1EnrollmentToken>
6380
8484
  | BodyResponseCallback<Readable>,
6381
8485
  callback?:
6382
- | BodyResponseCallback<Schema$GoogleChromeManagementVersionsV1ConnectorConfig>
8486
+ | BodyResponseCallback<Schema$GoogleChromeManagementVersionsV1EnrollmentToken>
6383
8487
  | BodyResponseCallback<Readable>
6384
8488
  ):
6385
8489
  | void
6386
8490
  | Promise<
6387
- GaxiosResponseWithHTTP2<Schema$GoogleChromeManagementVersionsV1ConnectorConfig>
8491
+ GaxiosResponseWithHTTP2<Schema$GoogleChromeManagementVersionsV1EnrollmentToken>
6388
8492
  >
6389
8493
  | Promise<GaxiosResponseWithHTTP2<Readable>> {
6390
8494
  let params = (paramsOrCallback ||
6391
- {}) as Params$Resource$Customers$Connectorconfigs$Get;
8495
+ {}) as Params$Resource$Customers$Enrollmenttokens$Get;
6392
8496
  let options = (optionsOrCallback || {}) as MethodOptions;
6393
8497
 
6394
8498
  if (typeof paramsOrCallback === 'function') {
6395
8499
  callback = paramsOrCallback;
6396
- params = {} as Params$Resource$Customers$Connectorconfigs$Get;
8500
+ params = {} as Params$Resource$Customers$Enrollmenttokens$Get;
6397
8501
  options = {};
6398
8502
  }
6399
8503
 
@@ -6419,19 +8523,19 @@ export namespace chromemanagement_v1 {
6419
8523
  context: this.context,
6420
8524
  };
6421
8525
  if (callback) {
6422
- createAPIRequest<Schema$GoogleChromeManagementVersionsV1ConnectorConfig>(
8526
+ createAPIRequest<Schema$GoogleChromeManagementVersionsV1EnrollmentToken>(
6423
8527
  parameters,
6424
8528
  callback as BodyResponseCallback<unknown>
6425
8529
  );
6426
8530
  } else {
6427
- return createAPIRequest<Schema$GoogleChromeManagementVersionsV1ConnectorConfig>(
8531
+ return createAPIRequest<Schema$GoogleChromeManagementVersionsV1EnrollmentToken>(
6428
8532
  parameters
6429
8533
  );
6430
8534
  }
6431
8535
  }
6432
8536
 
6433
8537
  /**
6434
- * Lists connector configs of a customer.
8538
+ * Lists all browser device enrollment tokens.
6435
8539
  * @example
6436
8540
  * ```js
6437
8541
  * // Before running the sample:
@@ -6460,19 +8564,21 @@ export namespace chromemanagement_v1 {
6460
8564
  * google.options({auth: authClient});
6461
8565
  *
6462
8566
  * // Do the magic
6463
- * const res = await chromemanagement.customers.connectorConfigs.list({
6464
- * // Optional. The maximum number of connector configs to return. The default page size is 50 if page_size is unspecified, and the maximum page size allowed is 100. Values above 100 will be capped at 100.
8567
+ * const res = await chromemanagement.customers.enrollmentTokens.list({
8568
+ * // Optional. Filter to apply to list results. The following fields can be used in the filter: * device_type (currently only 'CHROME_BROWSER' is supported) * token_state (supported values: 'ACTIVE', 'EXPIRED', 'REVOKED') * org_unit_path The full path of the org unit, such as /Montreal/Sales. * org_unit_id The obfuscated id of the org unit, not the full path.
8569
+ * filter: 'placeholder-value',
8570
+ * // Optional. Maximum number of results to return. Maximum and default are 100.
6465
8571
  * pageSize: 'placeholder-value',
6466
- * // Optional. A page token, received from a previous `ListConnectorConfigs` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `ListConnectorConfigs` must match the call that provided the page token.
8572
+ * // Optional. Token to specify next page in the list.
6467
8573
  * pageToken: 'placeholder-value',
6468
- * // Required. Format: customers/{customer\}
8574
+ * // Required. The parent resource where this enrollment token will be created. Format: customers/{customer\}
6469
8575
  * parent: 'customers/my-customer',
6470
8576
  * });
6471
8577
  * console.log(res.data);
6472
8578
  *
6473
8579
  * // Example response
6474
8580
  * // {
6475
- * // "connectorConfigs": [],
8581
+ * // "enrollmentTokens": [],
6476
8582
  * // "nextPageToken": "my_nextPageToken"
6477
8583
  * // }
6478
8584
  * }
@@ -6490,60 +8596,60 @@ export namespace chromemanagement_v1 {
6490
8596
  * @returns A promise if used with async/await, or void if used with a callback.
6491
8597
  */
6492
8598
  list(
6493
- params: Params$Resource$Customers$Connectorconfigs$List,
8599
+ params: Params$Resource$Customers$Enrollmenttokens$List,
6494
8600
  options: StreamMethodOptions
6495
8601
  ): Promise<GaxiosResponseWithHTTP2<Readable>>;
6496
8602
  list(
6497
- params?: Params$Resource$Customers$Connectorconfigs$List,
8603
+ params?: Params$Resource$Customers$Enrollmenttokens$List,
6498
8604
  options?: MethodOptions
6499
8605
  ): Promise<
6500
- GaxiosResponseWithHTTP2<Schema$GoogleChromeManagementVersionsV1ListConnectorConfigsResponse>
8606
+ GaxiosResponseWithHTTP2<Schema$GoogleChromeManagementVersionsV1ListEnrollmentTokensResponse>
6501
8607
  >;
6502
8608
  list(
6503
- params: Params$Resource$Customers$Connectorconfigs$List,
8609
+ params: Params$Resource$Customers$Enrollmenttokens$List,
6504
8610
  options: StreamMethodOptions | BodyResponseCallback<Readable>,
6505
8611
  callback: BodyResponseCallback<Readable>
6506
8612
  ): void;
6507
8613
  list(
6508
- params: Params$Resource$Customers$Connectorconfigs$List,
8614
+ params: Params$Resource$Customers$Enrollmenttokens$List,
6509
8615
  options:
6510
8616
  | MethodOptions
6511
- | BodyResponseCallback<Schema$GoogleChromeManagementVersionsV1ListConnectorConfigsResponse>,
6512
- callback: BodyResponseCallback<Schema$GoogleChromeManagementVersionsV1ListConnectorConfigsResponse>
8617
+ | BodyResponseCallback<Schema$GoogleChromeManagementVersionsV1ListEnrollmentTokensResponse>,
8618
+ callback: BodyResponseCallback<Schema$GoogleChromeManagementVersionsV1ListEnrollmentTokensResponse>
6513
8619
  ): void;
6514
8620
  list(
6515
- params: Params$Resource$Customers$Connectorconfigs$List,
6516
- callback: BodyResponseCallback<Schema$GoogleChromeManagementVersionsV1ListConnectorConfigsResponse>
8621
+ params: Params$Resource$Customers$Enrollmenttokens$List,
8622
+ callback: BodyResponseCallback<Schema$GoogleChromeManagementVersionsV1ListEnrollmentTokensResponse>
6517
8623
  ): void;
6518
8624
  list(
6519
- callback: BodyResponseCallback<Schema$GoogleChromeManagementVersionsV1ListConnectorConfigsResponse>
8625
+ callback: BodyResponseCallback<Schema$GoogleChromeManagementVersionsV1ListEnrollmentTokensResponse>
6520
8626
  ): void;
6521
8627
  list(
6522
8628
  paramsOrCallback?:
6523
- | Params$Resource$Customers$Connectorconfigs$List
6524
- | BodyResponseCallback<Schema$GoogleChromeManagementVersionsV1ListConnectorConfigsResponse>
8629
+ | Params$Resource$Customers$Enrollmenttokens$List
8630
+ | BodyResponseCallback<Schema$GoogleChromeManagementVersionsV1ListEnrollmentTokensResponse>
6525
8631
  | BodyResponseCallback<Readable>,
6526
8632
  optionsOrCallback?:
6527
8633
  | MethodOptions
6528
8634
  | StreamMethodOptions
6529
- | BodyResponseCallback<Schema$GoogleChromeManagementVersionsV1ListConnectorConfigsResponse>
8635
+ | BodyResponseCallback<Schema$GoogleChromeManagementVersionsV1ListEnrollmentTokensResponse>
6530
8636
  | BodyResponseCallback<Readable>,
6531
8637
  callback?:
6532
- | BodyResponseCallback<Schema$GoogleChromeManagementVersionsV1ListConnectorConfigsResponse>
8638
+ | BodyResponseCallback<Schema$GoogleChromeManagementVersionsV1ListEnrollmentTokensResponse>
6533
8639
  | BodyResponseCallback<Readable>
6534
8640
  ):
6535
8641
  | void
6536
8642
  | Promise<
6537
- GaxiosResponseWithHTTP2<Schema$GoogleChromeManagementVersionsV1ListConnectorConfigsResponse>
8643
+ GaxiosResponseWithHTTP2<Schema$GoogleChromeManagementVersionsV1ListEnrollmentTokensResponse>
6538
8644
  >
6539
8645
  | Promise<GaxiosResponseWithHTTP2<Readable>> {
6540
8646
  let params = (paramsOrCallback ||
6541
- {}) as Params$Resource$Customers$Connectorconfigs$List;
8647
+ {}) as Params$Resource$Customers$Enrollmenttokens$List;
6542
8648
  let options = (optionsOrCallback || {}) as MethodOptions;
6543
8649
 
6544
8650
  if (typeof paramsOrCallback === 'function') {
6545
8651
  callback = paramsOrCallback;
6546
- params = {} as Params$Resource$Customers$Connectorconfigs$List;
8652
+ params = {} as Params$Resource$Customers$Enrollmenttokens$List;
6547
8653
  options = {};
6548
8654
  }
6549
8655
 
@@ -6557,7 +8663,7 @@ export namespace chromemanagement_v1 {
6557
8663
  const parameters = {
6558
8664
  options: Object.assign(
6559
8665
  {
6560
- url: (rootUrl + '/v1/{+parent}/connectorConfigs').replace(
8666
+ url: (rootUrl + '/v1/{+parent}/enrollmentTokens').replace(
6561
8667
  /([^:]\/)\/+/g,
6562
8668
  '$1'
6563
8669
  ),
@@ -6572,19 +8678,19 @@ export namespace chromemanagement_v1 {
6572
8678
  context: this.context,
6573
8679
  };
6574
8680
  if (callback) {
6575
- createAPIRequest<Schema$GoogleChromeManagementVersionsV1ListConnectorConfigsResponse>(
8681
+ createAPIRequest<Schema$GoogleChromeManagementVersionsV1ListEnrollmentTokensResponse>(
6576
8682
  parameters,
6577
8683
  callback as BodyResponseCallback<unknown>
6578
8684
  );
6579
8685
  } else {
6580
- return createAPIRequest<Schema$GoogleChromeManagementVersionsV1ListConnectorConfigsResponse>(
8686
+ return createAPIRequest<Schema$GoogleChromeManagementVersionsV1ListEnrollmentTokensResponse>(
6581
8687
  parameters
6582
8688
  );
6583
8689
  }
6584
8690
  }
6585
8691
 
6586
8692
  /**
6587
- * Updates a connector config.
8693
+ * Revokes a browser device enrollment token.
6588
8694
  * @example
6589
8695
  * ```js
6590
8696
  * // Before running the sample:
@@ -6613,33 +8719,31 @@ export namespace chromemanagement_v1 {
6613
8719
  * google.options({auth: authClient});
6614
8720
  *
6615
8721
  * // Do the magic
6616
- * const res = await chromemanagement.customers.connectorConfigs.patch({
6617
- * // Identifier. Format: customers/{customer\}/connectorConfigs/{connector_config\}
6618
- * name: 'customers/my-customer/connectorConfigs/my-connectorConfig',
6619
- * // Optional. The update mask that can be used to specify which fields to update.
6620
- * updateMask: 'placeholder-value',
8722
+ * const res = await chromemanagement.customers.enrollmentTokens.revoke({
8723
+ * // Required. The name of the enrollment token to revoke. Format: customers/{customer\}/enrollmentTokens/{token_permanent_id\}
8724
+ * name: 'customers/my-customer/enrollmentTokens/my-enrollmentToken',
6621
8725
  *
6622
8726
  * // Request body metadata
6623
8727
  * requestBody: {
6624
8728
  * // request body parameters
6625
- * // {
6626
- * // "details": {},
6627
- * // "displayName": "my_displayName",
6628
- * // "name": "my_name",
6629
- * // "status": {},
6630
- * // "type": "my_type"
6631
- * // }
8729
+ * // {}
6632
8730
  * },
6633
8731
  * });
6634
8732
  * console.log(res.data);
6635
8733
  *
6636
8734
  * // Example response
6637
8735
  * // {
6638
- * // "details": {},
6639
- * // "displayName": "my_displayName",
8736
+ * // "createTime": "my_createTime",
8737
+ * // "creatorId": "my_creatorId",
8738
+ * // "customerId": "my_customerId",
6640
8739
  * // "name": "my_name",
6641
- * // "status": {},
6642
- * // "type": "my_type"
8740
+ * // "orgUnitId": "my_orgUnitId",
8741
+ * // "revokeTime": "my_revokeTime",
8742
+ * // "revokerId": "my_revokerId",
8743
+ * // "state": "my_state",
8744
+ * // "token": "my_token",
8745
+ * // "tokenPermanentId": "my_tokenPermanentId",
8746
+ * // "tokenType": "my_tokenType"
6643
8747
  * // }
6644
8748
  * }
6645
8749
  *
@@ -6655,61 +8759,61 @@ export namespace chromemanagement_v1 {
6655
8759
  * @param callback - Optional callback that handles the response.
6656
8760
  * @returns A promise if used with async/await, or void if used with a callback.
6657
8761
  */
6658
- patch(
6659
- params: Params$Resource$Customers$Connectorconfigs$Patch,
8762
+ revoke(
8763
+ params: Params$Resource$Customers$Enrollmenttokens$Revoke,
6660
8764
  options: StreamMethodOptions
6661
8765
  ): Promise<GaxiosResponseWithHTTP2<Readable>>;
6662
- patch(
6663
- params?: Params$Resource$Customers$Connectorconfigs$Patch,
8766
+ revoke(
8767
+ params?: Params$Resource$Customers$Enrollmenttokens$Revoke,
6664
8768
  options?: MethodOptions
6665
8769
  ): Promise<
6666
- GaxiosResponseWithHTTP2<Schema$GoogleChromeManagementVersionsV1ConnectorConfig>
8770
+ GaxiosResponseWithHTTP2<Schema$GoogleChromeManagementVersionsV1EnrollmentToken>
6667
8771
  >;
6668
- patch(
6669
- params: Params$Resource$Customers$Connectorconfigs$Patch,
8772
+ revoke(
8773
+ params: Params$Resource$Customers$Enrollmenttokens$Revoke,
6670
8774
  options: StreamMethodOptions | BodyResponseCallback<Readable>,
6671
8775
  callback: BodyResponseCallback<Readable>
6672
8776
  ): void;
6673
- patch(
6674
- params: Params$Resource$Customers$Connectorconfigs$Patch,
8777
+ revoke(
8778
+ params: Params$Resource$Customers$Enrollmenttokens$Revoke,
6675
8779
  options:
6676
8780
  | MethodOptions
6677
- | BodyResponseCallback<Schema$GoogleChromeManagementVersionsV1ConnectorConfig>,
6678
- callback: BodyResponseCallback<Schema$GoogleChromeManagementVersionsV1ConnectorConfig>
8781
+ | BodyResponseCallback<Schema$GoogleChromeManagementVersionsV1EnrollmentToken>,
8782
+ callback: BodyResponseCallback<Schema$GoogleChromeManagementVersionsV1EnrollmentToken>
6679
8783
  ): void;
6680
- patch(
6681
- params: Params$Resource$Customers$Connectorconfigs$Patch,
6682
- callback: BodyResponseCallback<Schema$GoogleChromeManagementVersionsV1ConnectorConfig>
8784
+ revoke(
8785
+ params: Params$Resource$Customers$Enrollmenttokens$Revoke,
8786
+ callback: BodyResponseCallback<Schema$GoogleChromeManagementVersionsV1EnrollmentToken>
6683
8787
  ): void;
6684
- patch(
6685
- callback: BodyResponseCallback<Schema$GoogleChromeManagementVersionsV1ConnectorConfig>
8788
+ revoke(
8789
+ callback: BodyResponseCallback<Schema$GoogleChromeManagementVersionsV1EnrollmentToken>
6686
8790
  ): void;
6687
- patch(
8791
+ revoke(
6688
8792
  paramsOrCallback?:
6689
- | Params$Resource$Customers$Connectorconfigs$Patch
6690
- | BodyResponseCallback<Schema$GoogleChromeManagementVersionsV1ConnectorConfig>
8793
+ | Params$Resource$Customers$Enrollmenttokens$Revoke
8794
+ | BodyResponseCallback<Schema$GoogleChromeManagementVersionsV1EnrollmentToken>
6691
8795
  | BodyResponseCallback<Readable>,
6692
8796
  optionsOrCallback?:
6693
8797
  | MethodOptions
6694
8798
  | StreamMethodOptions
6695
- | BodyResponseCallback<Schema$GoogleChromeManagementVersionsV1ConnectorConfig>
8799
+ | BodyResponseCallback<Schema$GoogleChromeManagementVersionsV1EnrollmentToken>
6696
8800
  | BodyResponseCallback<Readable>,
6697
8801
  callback?:
6698
- | BodyResponseCallback<Schema$GoogleChromeManagementVersionsV1ConnectorConfig>
8802
+ | BodyResponseCallback<Schema$GoogleChromeManagementVersionsV1EnrollmentToken>
6699
8803
  | BodyResponseCallback<Readable>
6700
8804
  ):
6701
8805
  | void
6702
8806
  | Promise<
6703
- GaxiosResponseWithHTTP2<Schema$GoogleChromeManagementVersionsV1ConnectorConfig>
8807
+ GaxiosResponseWithHTTP2<Schema$GoogleChromeManagementVersionsV1EnrollmentToken>
6704
8808
  >
6705
8809
  | Promise<GaxiosResponseWithHTTP2<Readable>> {
6706
8810
  let params = (paramsOrCallback ||
6707
- {}) as Params$Resource$Customers$Connectorconfigs$Patch;
8811
+ {}) as Params$Resource$Customers$Enrollmenttokens$Revoke;
6708
8812
  let options = (optionsOrCallback || {}) as MethodOptions;
6709
8813
 
6710
8814
  if (typeof paramsOrCallback === 'function') {
6711
8815
  callback = paramsOrCallback;
6712
- params = {} as Params$Resource$Customers$Connectorconfigs$Patch;
8816
+ params = {} as Params$Resource$Customers$Enrollmenttokens$Revoke;
6713
8817
  options = {};
6714
8818
  }
6715
8819
 
@@ -6723,8 +8827,8 @@ export namespace chromemanagement_v1 {
6723
8827
  const parameters = {
6724
8828
  options: Object.assign(
6725
8829
  {
6726
- url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'),
6727
- method: 'PATCH',
8830
+ url: (rootUrl + '/v1/{+name}:revoke').replace(/([^:]\/)\/+/g, '$1'),
8831
+ method: 'POST',
6728
8832
  apiVersion: '',
6729
8833
  },
6730
8834
  options
@@ -6735,73 +8839,67 @@ export namespace chromemanagement_v1 {
6735
8839
  context: this.context,
6736
8840
  };
6737
8841
  if (callback) {
6738
- createAPIRequest<Schema$GoogleChromeManagementVersionsV1ConnectorConfig>(
8842
+ createAPIRequest<Schema$GoogleChromeManagementVersionsV1EnrollmentToken>(
6739
8843
  parameters,
6740
8844
  callback as BodyResponseCallback<unknown>
6741
8845
  );
6742
8846
  } else {
6743
- return createAPIRequest<Schema$GoogleChromeManagementVersionsV1ConnectorConfig>(
8847
+ return createAPIRequest<Schema$GoogleChromeManagementVersionsV1EnrollmentToken>(
6744
8848
  parameters
6745
8849
  );
6746
8850
  }
6747
8851
  }
6748
8852
  }
6749
8853
 
6750
- export interface Params$Resource$Customers$Connectorconfigs$Create extends StandardParameters {
8854
+ export interface Params$Resource$Customers$Enrollmenttokens$Create extends StandardParameters {
6751
8855
  /**
6752
- * 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.
8856
+ * Optional. The ID to use for the enrollment token, which will become the final component of the enrollment token's resource name. This value must be local-unique under the customer and is optional. If not provided, it will be auto-generated. If provided, it must be 1-63 characters long and match the regular expression `[a-zA-Z0-9._-]+`.
6753
8857
  */
6754
- connectorConfigId?: string;
8858
+ enrollmentTokenId?: string;
6755
8859
  /**
6756
- * Required. Format: customers/{customer\}
8860
+ * Required. The parent resource where this enrollment token will be created. Format: customers/{customer\}
6757
8861
  */
6758
8862
  parent?: string;
6759
8863
 
6760
8864
  /**
6761
8865
  * Request body metadata
6762
8866
  */
6763
- requestBody?: Schema$GoogleChromeManagementVersionsV1ConnectorConfig;
8867
+ requestBody?: Schema$GoogleChromeManagementVersionsV1EnrollmentToken;
6764
8868
  }
6765
- export interface Params$Resource$Customers$Connectorconfigs$Delete extends StandardParameters {
8869
+ export interface Params$Resource$Customers$Enrollmenttokens$Get extends StandardParameters {
6766
8870
  /**
6767
- * Required. Format: customers/{customer\}/connectorConfigs/{connector_config\}
8871
+ * Required. The name of the enrollment token to retrieve. Format: customers/{customer\}/enrollmentTokens/{token_permanent_id\}
6768
8872
  */
6769
8873
  name?: string;
6770
8874
  }
6771
- export interface Params$Resource$Customers$Connectorconfigs$Get extends StandardParameters {
8875
+ export interface Params$Resource$Customers$Enrollmenttokens$List extends StandardParameters {
6772
8876
  /**
6773
- * Required. Format: customers/{customer\}/connectorConfigs/{connector_config\}
8877
+ * Optional. Filter to apply to list results. The following fields can be used in the filter: * device_type (currently only 'CHROME_BROWSER' is supported) * token_state (supported values: 'ACTIVE', 'EXPIRED', 'REVOKED') * org_unit_path The full path of the org unit, such as /Montreal/Sales. * org_unit_id The obfuscated id of the org unit, not the full path.
6774
8878
  */
6775
- name?: string;
6776
- }
6777
- export interface Params$Resource$Customers$Connectorconfigs$List extends StandardParameters {
8879
+ filter?: string;
6778
8880
  /**
6779
- * Optional. The maximum number of connector configs to return. The default page size is 50 if page_size is unspecified, and the maximum page size allowed is 100. Values above 100 will be capped at 100.
8881
+ * Optional. Maximum number of results to return. Maximum and default are 100.
6780
8882
  */
6781
8883
  pageSize?: number;
6782
8884
  /**
6783
- * Optional. A page token, received from a previous `ListConnectorConfigs` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `ListConnectorConfigs` must match the call that provided the page token.
8885
+ * Optional. Token to specify next page in the list.
6784
8886
  */
6785
8887
  pageToken?: string;
6786
8888
  /**
6787
- * Required. Format: customers/{customer\}
8889
+ * Required. The parent resource where this enrollment token will be created. Format: customers/{customer\}
6788
8890
  */
6789
8891
  parent?: string;
6790
8892
  }
6791
- export interface Params$Resource$Customers$Connectorconfigs$Patch extends StandardParameters {
8893
+ export interface Params$Resource$Customers$Enrollmenttokens$Revoke extends StandardParameters {
6792
8894
  /**
6793
- * Identifier. Format: customers/{customer\}/connectorConfigs/{connector_config\}
8895
+ * Required. The name of the enrollment token to revoke. Format: customers/{customer\}/enrollmentTokens/{token_permanent_id\}
6794
8896
  */
6795
8897
  name?: string;
6796
- /**
6797
- * Optional. The update mask that can be used to specify which fields to update.
6798
- */
6799
- updateMask?: string;
6800
8898
 
6801
8899
  /**
6802
8900
  * Request body metadata
6803
8901
  */
6804
- requestBody?: Schema$GoogleChromeManagementVersionsV1ConnectorConfig;
8902
+ requestBody?: Schema$GoogleChromeManagementVersionsV1RevokeEnrollmentTokenRequest;
6805
8903
  }
6806
8904
 
6807
8905
  export class Resource$Customers$Enterprise {