@googleapis/chromemanagement 21.0.1 → 21.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/CHANGELOG.md CHANGED
@@ -1,5 +1,19 @@
1
1
  # Changelog
2
2
 
3
+ ## [21.2.0](https://github.com/googleapis/google-api-nodejs-client/compare/chromemanagement-v21.1.0...chromemanagement-v21.2.0) (2025-07-25)
4
+
5
+
6
+ ### Features
7
+
8
+ * run the generator ([#3721](https://github.com/googleapis/google-api-nodejs-client/issues/3721)) ([89a253d](https://github.com/googleapis/google-api-nodejs-client/commit/89a253dc14d931865a4a35fb9093a39a8804ec63))
9
+
10
+ ## [21.1.0](https://github.com/googleapis/google-api-nodejs-client/compare/chromemanagement-v21.0.1...chromemanagement-v21.1.0) (2025-07-15)
11
+
12
+
13
+ ### Features
14
+
15
+ * **chromemanagement:** update the API ([ae136e1](https://github.com/googleapis/google-api-nodejs-client/commit/ae136e12b05549ace3337283079daec235377615))
16
+
3
17
  ## [21.0.1](https://github.com/googleapis/google-api-nodejs-client/compare/chromemanagement-v21.0.0...chromemanagement-v21.0.1) (2025-07-08)
4
18
 
5
19
 
package/build/v1.d.ts CHANGED
@@ -414,6 +414,10 @@ export declare namespace chromemanagement_v1 {
414
414
  * Output only. Whether this app is enabled for Kiosk mode on ChromeOS devices
415
415
  */
416
416
  kioskEnabled?: boolean | null;
417
+ /**
418
+ * Output only. The version of this extension's manifest.
419
+ */
420
+ manifestVersion?: string | null;
417
421
  /**
418
422
  * Output only. The minimum number of users using this app.
419
423
  */
@@ -886,6 +890,10 @@ export declare namespace chromemanagement_v1 {
886
890
  * Output only. Display width in millimeters.
887
891
  */
888
892
  displayWidthMm?: number | null;
893
+ /**
894
+ * Output only. EDID version.
895
+ */
896
+ edidVersion?: string | null;
889
897
  /**
890
898
  * Output only. Is display internal or not.
891
899
  */
@@ -902,6 +910,10 @@ export declare namespace chromemanagement_v1 {
902
910
  * Output only. Manufacturer product code.
903
911
  */
904
912
  modelId?: number | null;
913
+ /**
914
+ * Output only. Serial number.
915
+ */
916
+ serialNumber?: number | null;
905
917
  }
906
918
  /**
907
919
  * Information for a display.
@@ -915,6 +927,10 @@ export declare namespace chromemanagement_v1 {
915
927
  * Output only. Display device name.
916
928
  */
917
929
  displayName?: string | null;
930
+ /**
931
+ * Output only. EDID version.
932
+ */
933
+ edidVersion?: string | null;
918
934
  /**
919
935
  * Output only. Indicates if display is internal or not.
920
936
  */
@@ -931,6 +947,10 @@ export declare namespace chromemanagement_v1 {
931
947
  * Output only. Resolution width in pixels.
932
948
  */
933
949
  resolutionWidth?: number | null;
950
+ /**
951
+ * Output only. Serial number.
952
+ */
953
+ serialNumber?: number | null;
934
954
  }
935
955
  /**
936
956
  * Response containing a list of print jobs.
@@ -2378,6 +2398,58 @@ export declare namespace chromemanagement_v1 {
2378
2398
  */
2379
2399
  userId?: string | null;
2380
2400
  }
2401
+ /**
2402
+ * A representation of a remote command for a Chrome browser profile.
2403
+ */
2404
+ export interface Schema$GoogleChromeManagementVersionsV1ChromeBrowserProfileCommand {
2405
+ /**
2406
+ * Output only. Result of the remote command.
2407
+ */
2408
+ commandResult?: Schema$GoogleChromeManagementVersionsV1ChromeBrowserProfileCommandCommandResult;
2409
+ /**
2410
+ * Output only. State of the remote command.
2411
+ */
2412
+ commandState?: string | null;
2413
+ /**
2414
+ * Required. Type of the remote command. The only supported command_type is "clearBrowsingData".
2415
+ */
2416
+ commandType?: string | null;
2417
+ /**
2418
+ * Output only. Timestamp of the issurance of the remote command.
2419
+ */
2420
+ issueTime?: string | null;
2421
+ /**
2422
+ * Identifier. Format: customers/{customer_id\}/profiles/{profile_permanent_id\}/commands/{command_id\}
2423
+ */
2424
+ name?: string | null;
2425
+ /**
2426
+ * Required. Payload of the remote command. The payload for "clearBrowsingData" command supports: - fields "clearCache" and "clearCookies" - values of boolean type.
2427
+ */
2428
+ payload?: {
2429
+ [key: string]: any;
2430
+ } | null;
2431
+ /**
2432
+ * Output only. Valid duration of the remote command.
2433
+ */
2434
+ validDuration?: string | null;
2435
+ }
2436
+ /**
2437
+ * Result of the execution of a command.
2438
+ */
2439
+ export interface Schema$GoogleChromeManagementVersionsV1ChromeBrowserProfileCommandCommandResult {
2440
+ /**
2441
+ * Output only. Timestamp of the client execution of the remote command.
2442
+ */
2443
+ clientExecutionTime?: string | null;
2444
+ /**
2445
+ * Output only. Result code that indicates the type of error or success of the command.
2446
+ */
2447
+ resultCode?: string | null;
2448
+ /**
2449
+ * Output only. Result type of the remote command.
2450
+ */
2451
+ resultType?: string | null;
2452
+ }
2381
2453
  /**
2382
2454
  * Describes the ChromeOS device that a `CertificateProvisioningProcess` belongs to.
2383
2455
  */
@@ -2447,6 +2519,23 @@ export declare namespace chromemanagement_v1 {
2447
2519
  */
2448
2520
  profileAdapterConfigReference?: string | null;
2449
2521
  }
2522
+ /**
2523
+ * Response to ListChromeBrowserProfileCommands method.
2524
+ */
2525
+ export interface Schema$GoogleChromeManagementVersionsV1ListChromeBrowserProfileCommandsResponse {
2526
+ /**
2527
+ * The list of commands returned.
2528
+ */
2529
+ chromeBrowserProfileCommands?: Schema$GoogleChromeManagementVersionsV1ChromeBrowserProfileCommand[];
2530
+ /**
2531
+ * The pagination token that can be used to list the next page.
2532
+ */
2533
+ nextPageToken?: string | null;
2534
+ /**
2535
+ * Total size represents an estimated number of resources returned.
2536
+ */
2537
+ totalSize?: string | null;
2538
+ }
2450
2539
  /**
2451
2540
  * Response to ListChromeBrowserProfiles method.
2452
2541
  */
@@ -3223,6 +3312,7 @@ export declare namespace chromemanagement_v1 {
3223
3312
  }
3224
3313
  export class Resource$Customers$Profiles {
3225
3314
  context: APIRequestContext;
3315
+ commands: Resource$Customers$Profiles$Commands;
3226
3316
  constructor(context: APIRequestContext);
3227
3317
  /**
3228
3318
  * Deletes the data collected from a Chrome browser profile.
@@ -3478,6 +3568,258 @@ export declare namespace chromemanagement_v1 {
3478
3568
  */
3479
3569
  parent?: string;
3480
3570
  }
3571
+ export class Resource$Customers$Profiles$Commands {
3572
+ context: APIRequestContext;
3573
+ constructor(context: APIRequestContext);
3574
+ /**
3575
+ * Creates a Chrome browser profile remote command.
3576
+ * @example
3577
+ * ```js
3578
+ * // Before running the sample:
3579
+ * // - Enable the API at:
3580
+ * // https://console.developers.google.com/apis/api/chromemanagement.googleapis.com
3581
+ * // - Login into gcloud by running:
3582
+ * // ```sh
3583
+ * // $ gcloud auth application-default login
3584
+ * // ```
3585
+ * // - Install the npm module by running:
3586
+ * // ```sh
3587
+ * // $ npm install googleapis
3588
+ * // ```
3589
+ *
3590
+ * const {google} = require('googleapis');
3591
+ * const chromemanagement = google.chromemanagement('v1');
3592
+ *
3593
+ * async function main() {
3594
+ * const auth = new google.auth.GoogleAuth({
3595
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
3596
+ * scopes: ['https://www.googleapis.com/auth/chrome.management.profiles'],
3597
+ * });
3598
+ *
3599
+ * // Acquire an auth client, and bind it to all future calls
3600
+ * const authClient = await auth.getClient();
3601
+ * google.options({auth: authClient});
3602
+ *
3603
+ * // Do the magic
3604
+ * const res = await chromemanagement.customers.profiles.commands.create({
3605
+ * // Required. Format: customers/{customer_id\}/profiles/{profile_permanent_id\}
3606
+ * parent: 'customers/my-customer/profiles/my-profile',
3607
+ *
3608
+ * // Request body metadata
3609
+ * requestBody: {
3610
+ * // request body parameters
3611
+ * // {
3612
+ * // "commandResult": {},
3613
+ * // "commandState": "my_commandState",
3614
+ * // "commandType": "my_commandType",
3615
+ * // "issueTime": "my_issueTime",
3616
+ * // "name": "my_name",
3617
+ * // "payload": {},
3618
+ * // "validDuration": "my_validDuration"
3619
+ * // }
3620
+ * },
3621
+ * });
3622
+ * console.log(res.data);
3623
+ *
3624
+ * // Example response
3625
+ * // {
3626
+ * // "commandResult": {},
3627
+ * // "commandState": "my_commandState",
3628
+ * // "commandType": "my_commandType",
3629
+ * // "issueTime": "my_issueTime",
3630
+ * // "name": "my_name",
3631
+ * // "payload": {},
3632
+ * // "validDuration": "my_validDuration"
3633
+ * // }
3634
+ * }
3635
+ *
3636
+ * main().catch(e => {
3637
+ * console.error(e);
3638
+ * throw e;
3639
+ * });
3640
+ *
3641
+ * ```
3642
+ *
3643
+ * @param params - Parameters for request
3644
+ * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
3645
+ * @param callback - Optional callback that handles the response.
3646
+ * @returns A promise if used with async/await, or void if used with a callback.
3647
+ */
3648
+ create(params: Params$Resource$Customers$Profiles$Commands$Create, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
3649
+ create(params?: Params$Resource$Customers$Profiles$Commands$Create, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$GoogleChromeManagementVersionsV1ChromeBrowserProfileCommand>>;
3650
+ create(params: Params$Resource$Customers$Profiles$Commands$Create, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
3651
+ create(params: Params$Resource$Customers$Profiles$Commands$Create, options: MethodOptions | BodyResponseCallback<Schema$GoogleChromeManagementVersionsV1ChromeBrowserProfileCommand>, callback: BodyResponseCallback<Schema$GoogleChromeManagementVersionsV1ChromeBrowserProfileCommand>): void;
3652
+ create(params: Params$Resource$Customers$Profiles$Commands$Create, callback: BodyResponseCallback<Schema$GoogleChromeManagementVersionsV1ChromeBrowserProfileCommand>): void;
3653
+ create(callback: BodyResponseCallback<Schema$GoogleChromeManagementVersionsV1ChromeBrowserProfileCommand>): void;
3654
+ /**
3655
+ * Gets a Chrome browser profile remote command.
3656
+ * @example
3657
+ * ```js
3658
+ * // Before running the sample:
3659
+ * // - Enable the API at:
3660
+ * // https://console.developers.google.com/apis/api/chromemanagement.googleapis.com
3661
+ * // - Login into gcloud by running:
3662
+ * // ```sh
3663
+ * // $ gcloud auth application-default login
3664
+ * // ```
3665
+ * // - Install the npm module by running:
3666
+ * // ```sh
3667
+ * // $ npm install googleapis
3668
+ * // ```
3669
+ *
3670
+ * const {google} = require('googleapis');
3671
+ * const chromemanagement = google.chromemanagement('v1');
3672
+ *
3673
+ * async function main() {
3674
+ * const auth = new google.auth.GoogleAuth({
3675
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
3676
+ * scopes: [
3677
+ * 'https://www.googleapis.com/auth/chrome.management.profiles',
3678
+ * 'https://www.googleapis.com/auth/chrome.management.profiles.readonly',
3679
+ * ],
3680
+ * });
3681
+ *
3682
+ * // Acquire an auth client, and bind it to all future calls
3683
+ * const authClient = await auth.getClient();
3684
+ * google.options({auth: authClient});
3685
+ *
3686
+ * // Do the magic
3687
+ * const res = await chromemanagement.customers.profiles.commands.get({
3688
+ * // Required. Format: customers/{customer_id\}/profiles/{profile_permanent_id\}/commands/{command_id\}
3689
+ * name: 'customers/my-customer/profiles/my-profile/commands/my-command',
3690
+ * });
3691
+ * console.log(res.data);
3692
+ *
3693
+ * // Example response
3694
+ * // {
3695
+ * // "commandResult": {},
3696
+ * // "commandState": "my_commandState",
3697
+ * // "commandType": "my_commandType",
3698
+ * // "issueTime": "my_issueTime",
3699
+ * // "name": "my_name",
3700
+ * // "payload": {},
3701
+ * // "validDuration": "my_validDuration"
3702
+ * // }
3703
+ * }
3704
+ *
3705
+ * main().catch(e => {
3706
+ * console.error(e);
3707
+ * throw e;
3708
+ * });
3709
+ *
3710
+ * ```
3711
+ *
3712
+ * @param params - Parameters for request
3713
+ * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
3714
+ * @param callback - Optional callback that handles the response.
3715
+ * @returns A promise if used with async/await, or void if used with a callback.
3716
+ */
3717
+ get(params: Params$Resource$Customers$Profiles$Commands$Get, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
3718
+ get(params?: Params$Resource$Customers$Profiles$Commands$Get, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$GoogleChromeManagementVersionsV1ChromeBrowserProfileCommand>>;
3719
+ get(params: Params$Resource$Customers$Profiles$Commands$Get, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
3720
+ get(params: Params$Resource$Customers$Profiles$Commands$Get, options: MethodOptions | BodyResponseCallback<Schema$GoogleChromeManagementVersionsV1ChromeBrowserProfileCommand>, callback: BodyResponseCallback<Schema$GoogleChromeManagementVersionsV1ChromeBrowserProfileCommand>): void;
3721
+ get(params: Params$Resource$Customers$Profiles$Commands$Get, callback: BodyResponseCallback<Schema$GoogleChromeManagementVersionsV1ChromeBrowserProfileCommand>): void;
3722
+ get(callback: BodyResponseCallback<Schema$GoogleChromeManagementVersionsV1ChromeBrowserProfileCommand>): void;
3723
+ /**
3724
+ * Lists remote commands of a Chrome browser profile.
3725
+ * @example
3726
+ * ```js
3727
+ * // Before running the sample:
3728
+ * // - Enable the API at:
3729
+ * // https://console.developers.google.com/apis/api/chromemanagement.googleapis.com
3730
+ * // - Login into gcloud by running:
3731
+ * // ```sh
3732
+ * // $ gcloud auth application-default login
3733
+ * // ```
3734
+ * // - Install the npm module by running:
3735
+ * // ```sh
3736
+ * // $ npm install googleapis
3737
+ * // ```
3738
+ *
3739
+ * const {google} = require('googleapis');
3740
+ * const chromemanagement = google.chromemanagement('v1');
3741
+ *
3742
+ * async function main() {
3743
+ * const auth = new google.auth.GoogleAuth({
3744
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
3745
+ * scopes: [
3746
+ * 'https://www.googleapis.com/auth/chrome.management.profiles',
3747
+ * 'https://www.googleapis.com/auth/chrome.management.profiles.readonly',
3748
+ * ],
3749
+ * });
3750
+ *
3751
+ * // Acquire an auth client, and bind it to all future calls
3752
+ * const authClient = await auth.getClient();
3753
+ * google.options({auth: authClient});
3754
+ *
3755
+ * // Do the magic
3756
+ * const res = await chromemanagement.customers.profiles.commands.list({
3757
+ * // Optional. The maximum number of commands to return. The default page size is 100 if page_size is unspecified, and the maximum page size allowed is 100.
3758
+ * pageSize: 'placeholder-value',
3759
+ * // Optional. The page token used to retrieve a specific page of the listing request.
3760
+ * pageToken: 'placeholder-value',
3761
+ * // Required. Format: customers/{customer_id\}/profiles/{profile_permanent_id\}
3762
+ * parent: 'customers/my-customer/profiles/my-profile',
3763
+ * });
3764
+ * console.log(res.data);
3765
+ *
3766
+ * // Example response
3767
+ * // {
3768
+ * // "chromeBrowserProfileCommands": [],
3769
+ * // "nextPageToken": "my_nextPageToken",
3770
+ * // "totalSize": "my_totalSize"
3771
+ * // }
3772
+ * }
3773
+ *
3774
+ * main().catch(e => {
3775
+ * console.error(e);
3776
+ * throw e;
3777
+ * });
3778
+ *
3779
+ * ```
3780
+ *
3781
+ * @param params - Parameters for request
3782
+ * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
3783
+ * @param callback - Optional callback that handles the response.
3784
+ * @returns A promise if used with async/await, or void if used with a callback.
3785
+ */
3786
+ list(params: Params$Resource$Customers$Profiles$Commands$List, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
3787
+ list(params?: Params$Resource$Customers$Profiles$Commands$List, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$GoogleChromeManagementVersionsV1ListChromeBrowserProfileCommandsResponse>>;
3788
+ list(params: Params$Resource$Customers$Profiles$Commands$List, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
3789
+ list(params: Params$Resource$Customers$Profiles$Commands$List, options: MethodOptions | BodyResponseCallback<Schema$GoogleChromeManagementVersionsV1ListChromeBrowserProfileCommandsResponse>, callback: BodyResponseCallback<Schema$GoogleChromeManagementVersionsV1ListChromeBrowserProfileCommandsResponse>): void;
3790
+ list(params: Params$Resource$Customers$Profiles$Commands$List, callback: BodyResponseCallback<Schema$GoogleChromeManagementVersionsV1ListChromeBrowserProfileCommandsResponse>): void;
3791
+ list(callback: BodyResponseCallback<Schema$GoogleChromeManagementVersionsV1ListChromeBrowserProfileCommandsResponse>): void;
3792
+ }
3793
+ export interface Params$Resource$Customers$Profiles$Commands$Create extends StandardParameters {
3794
+ /**
3795
+ * Required. Format: customers/{customer_id\}/profiles/{profile_permanent_id\}
3796
+ */
3797
+ parent?: string;
3798
+ /**
3799
+ * Request body metadata
3800
+ */
3801
+ requestBody?: Schema$GoogleChromeManagementVersionsV1ChromeBrowserProfileCommand;
3802
+ }
3803
+ export interface Params$Resource$Customers$Profiles$Commands$Get extends StandardParameters {
3804
+ /**
3805
+ * Required. Format: customers/{customer_id\}/profiles/{profile_permanent_id\}/commands/{command_id\}
3806
+ */
3807
+ name?: string;
3808
+ }
3809
+ export interface Params$Resource$Customers$Profiles$Commands$List extends StandardParameters {
3810
+ /**
3811
+ * Optional. The maximum number of commands to return. The default page size is 100 if page_size is unspecified, and the maximum page size allowed is 100.
3812
+ */
3813
+ pageSize?: number;
3814
+ /**
3815
+ * Optional. The page token used to retrieve a specific page of the listing request.
3816
+ */
3817
+ pageToken?: string;
3818
+ /**
3819
+ * Required. Format: customers/{customer_id\}/profiles/{profile_permanent_id\}
3820
+ */
3821
+ parent?: string;
3822
+ }
3481
3823
  export class Resource$Customers$Reports {
3482
3824
  context: APIRequestContext;
3483
3825
  constructor(context: APIRequestContext);
@@ -4763,7 +5105,7 @@ export declare namespace chromemanagement_v1 {
4763
5105
  * pageToken: 'placeholder-value',
4764
5106
  * // Required. Customer id or "my_customer" to use the customer associated to the account making the request.
4765
5107
  * parent: 'customers/my-customer',
4766
- * // Required. Read mask to specify which fields to return. Although currently required, this field will become optional, while the filter parameter with an event type will be come required. Supported read_mask paths are: - device - user - audio_severe_underrun_event - usb_peripherals_event - https_latency_change_event - network_state_change_event - wifi_signal_strength_event - vpn_connection_state_change_event - app_install_event - app_uninstall_event - app_launch_event - os_crash_event
5108
+ * // Required. Read mask to specify which fields to return. Although currently required, this field will become optional, while the filter parameter with an event type will be come required. Supported read_mask paths are: - device - user - audio_severe_underrun_event - usb_peripherals_event - https_latency_change_event - network_state_change_event - wifi_signal_strength_event - vpn_connection_state_change_event - app_install_event - app_uninstall_event - app_launch_event - os_crash_event - external_displays_event
4767
5109
  * readMask: 'placeholder-value',
4768
5110
  * });
4769
5111
  * console.log(res.data);
@@ -4812,7 +5154,7 @@ export declare namespace chromemanagement_v1 {
4812
5154
  */
4813
5155
  parent?: string;
4814
5156
  /**
4815
- * Required. Read mask to specify which fields to return. Although currently required, this field will become optional, while the filter parameter with an event type will be come required. Supported read_mask paths are: - device - user - audio_severe_underrun_event - usb_peripherals_event - https_latency_change_event - network_state_change_event - wifi_signal_strength_event - vpn_connection_state_change_event - app_install_event - app_uninstall_event - app_launch_event - os_crash_event
5157
+ * Required. Read mask to specify which fields to return. Although currently required, this field will become optional, while the filter parameter with an event type will be come required. Supported read_mask paths are: - device - user - audio_severe_underrun_event - usb_peripherals_event - https_latency_change_event - network_state_change_event - wifi_signal_strength_event - vpn_connection_state_change_event - app_install_event - app_uninstall_event - app_launch_event - os_crash_event - external_displays_event
4816
5158
  */
4817
5159
  readMask?: string;
4818
5160
  }
package/build/v1.js CHANGED
@@ -276,6 +276,7 @@ var chromemanagement_v1;
276
276
  class Resource$Customers$Profiles {
277
277
  constructor(context) {
278
278
  this.context = context;
279
+ this.commands = new Resource$Customers$Profiles$Commands(this.context);
279
280
  }
280
281
  delete(paramsOrCallback, optionsOrCallback, callback) {
281
282
  let params = (paramsOrCallback ||
@@ -375,6 +376,108 @@ var chromemanagement_v1;
375
376
  }
376
377
  }
377
378
  chromemanagement_v1.Resource$Customers$Profiles = Resource$Customers$Profiles;
379
+ class Resource$Customers$Profiles$Commands {
380
+ constructor(context) {
381
+ this.context = context;
382
+ }
383
+ create(paramsOrCallback, optionsOrCallback, callback) {
384
+ let params = (paramsOrCallback ||
385
+ {});
386
+ let options = (optionsOrCallback || {});
387
+ if (typeof paramsOrCallback === 'function') {
388
+ callback = paramsOrCallback;
389
+ params = {};
390
+ options = {};
391
+ }
392
+ if (typeof optionsOrCallback === 'function') {
393
+ callback = optionsOrCallback;
394
+ options = {};
395
+ }
396
+ const rootUrl = options.rootUrl || 'https://chromemanagement.googleapis.com/';
397
+ const parameters = {
398
+ options: Object.assign({
399
+ url: (rootUrl + '/v1/{+parent}/commands').replace(/([^:]\/)\/+/g, '$1'),
400
+ method: 'POST',
401
+ apiVersion: '',
402
+ }, options),
403
+ params,
404
+ requiredParams: ['parent'],
405
+ pathParams: ['parent'],
406
+ context: this.context,
407
+ };
408
+ if (callback) {
409
+ (0, googleapis_common_1.createAPIRequest)(parameters, callback);
410
+ }
411
+ else {
412
+ return (0, googleapis_common_1.createAPIRequest)(parameters);
413
+ }
414
+ }
415
+ get(paramsOrCallback, optionsOrCallback, callback) {
416
+ let params = (paramsOrCallback ||
417
+ {});
418
+ let options = (optionsOrCallback || {});
419
+ if (typeof paramsOrCallback === 'function') {
420
+ callback = paramsOrCallback;
421
+ params = {};
422
+ options = {};
423
+ }
424
+ if (typeof optionsOrCallback === 'function') {
425
+ callback = optionsOrCallback;
426
+ options = {};
427
+ }
428
+ const rootUrl = options.rootUrl || 'https://chromemanagement.googleapis.com/';
429
+ const parameters = {
430
+ options: Object.assign({
431
+ url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'),
432
+ method: 'GET',
433
+ apiVersion: '',
434
+ }, options),
435
+ params,
436
+ requiredParams: ['name'],
437
+ pathParams: ['name'],
438
+ context: this.context,
439
+ };
440
+ if (callback) {
441
+ (0, googleapis_common_1.createAPIRequest)(parameters, callback);
442
+ }
443
+ else {
444
+ return (0, googleapis_common_1.createAPIRequest)(parameters);
445
+ }
446
+ }
447
+ list(paramsOrCallback, optionsOrCallback, callback) {
448
+ let params = (paramsOrCallback ||
449
+ {});
450
+ let options = (optionsOrCallback || {});
451
+ if (typeof paramsOrCallback === 'function') {
452
+ callback = paramsOrCallback;
453
+ params = {};
454
+ options = {};
455
+ }
456
+ if (typeof optionsOrCallback === 'function') {
457
+ callback = optionsOrCallback;
458
+ options = {};
459
+ }
460
+ const rootUrl = options.rootUrl || 'https://chromemanagement.googleapis.com/';
461
+ const parameters = {
462
+ options: Object.assign({
463
+ url: (rootUrl + '/v1/{+parent}/commands').replace(/([^:]\/)\/+/g, '$1'),
464
+ method: 'GET',
465
+ apiVersion: '',
466
+ }, options),
467
+ params,
468
+ requiredParams: ['parent'],
469
+ pathParams: ['parent'],
470
+ context: this.context,
471
+ };
472
+ if (callback) {
473
+ (0, googleapis_common_1.createAPIRequest)(parameters, callback);
474
+ }
475
+ else {
476
+ return (0, googleapis_common_1.createAPIRequest)(parameters);
477
+ }
478
+ }
479
+ }
480
+ chromemanagement_v1.Resource$Customers$Profiles$Commands = Resource$Customers$Profiles$Commands;
378
481
  class Resource$Customers$Reports {
379
482
  constructor(context) {
380
483
  this.context = context;