@@ -2603,6 +2603,24 @@ export namespace chromemanagement_v1 {
2603
2603
*/
2604
2604
totalSize ?: string | null ;
2605
2605
}
2606
+ /**
2607
+ * Request to MoveThirdPartyProfileUser method.
2608
+ */
2609
+ export interface Schema$GoogleChromeManagementVersionsV1MoveThirdPartyProfileUserRequest {
2610
+ /**
2611
+ * Required. Destination organizational unit where the third party chrome profile user will be moved to.
2612
+ */
2613
+ destinationOrgUnit ?: string | null ;
2614
+ }
2615
+ /**
2616
+ * Response for MoveThirdPartyProfileUser method.
2617
+ */
2618
+ export interface Schema$GoogleChromeManagementVersionsV1MoveThirdPartyProfileUserResponse {
2619
+ /**
2620
+ * Output only. The moved third party profile user.
2621
+ */
2622
+ thirdPartyProfileUser ?: Schema$GoogleChromeManagementVersionsV1ThirdPartyProfileUser ;
2623
+ }
2606
2624
/**
2607
2625
* Reporting data of a Chrome browser profile.
2608
2626
*/
@@ -2750,6 +2768,19 @@ export namespace chromemanagement_v1 {
2750
2768
*/
2751
2769
certificateProvisioningProcess ?: Schema$GoogleChromeManagementVersionsV1CertificateProvisioningProcess ;
2752
2770
}
2771
+ /**
2772
+ * A representation of non-Google (third party) user that is associated with a managed Chrome profile.
2773
+ */
2774
+ export interface Schema$GoogleChromeManagementVersionsV1ThirdPartyProfileUser {
2775
+ /**
2776
+ * Identifier. Format: customers/{customer_id\}/thirdPartyProfileUsers/{third_party_profile_user_id\}
2777
+ */
2778
+ name ?: string | null ;
2779
+ /**
2780
+ * Output only. The ID of the organizational unit assigned to the user.
2781
+ */
2782
+ orgUnitId ?: string | null ;
2783
+ }
2753
2784
/**
2754
2785
* A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); \}
2755
2786
*/
@@ -2795,12 +2826,15 @@ export namespace chromemanagement_v1 {
2795
2826
profiles : Resource$Customers$Profiles ;
2796
2827
reports : Resource$Customers$Reports ;
2797
2828
telemetry : Resource$Customers$Telemetry ;
2829
+ thirdPartyProfileUsers : Resource$Customers$Thirdpartyprofileusers ;
2798
2830
constructor ( context : APIRequestContext ) {
2799
2831
this . context = context ;
2800
2832
this . apps = new Resource$Customers$Apps ( this . context ) ;
2801
2833
this . profiles = new Resource$Customers$Profiles ( this . context ) ;
2802
2834
this . reports = new Resource$Customers$Reports ( this . context ) ;
2803
2835
this . telemetry = new Resource$Customers$Telemetry ( this . context ) ;
2836
+ this . thirdPartyProfileUsers =
2837
+ new Resource$Customers$Thirdpartyprofileusers ( this . context ) ;
2804
2838
}
2805
2839
}
2806
2840
@@ -8397,4 +8431,177 @@ export namespace chromemanagement_v1 {
8397
8431
*/
8398
8432
readMask ?: string ;
8399
8433
}
8434
+
8435
+ export class Resource$Customers$Thirdpartyprofileusers {
8436
+ context : APIRequestContext ;
8437
+ constructor ( context : APIRequestContext ) {
8438
+ this . context = context ;
8439
+ }
8440
+
8441
+ /**
8442
+ * Moves a third party chrome profile user to a destination OU. All profiles associated to that user will be moved to the destination OU.
8443
+ * @example
8444
+ * ```js
8445
+ * // Before running the sample:
8446
+ * // - Enable the API at:
8447
+ * // https://console.developers.google.com/apis/api/chromemanagement.googleapis.com
8448
+ * // - Login into gcloud by running:
8449
+ * // ```sh
8450
+ * // $ gcloud auth application-default login
8451
+ * // ```
8452
+ * // - Install the npm module by running:
8453
+ * // ```sh
8454
+ * // $ npm install googleapis
8455
+ * // ```
8456
+ *
8457
+ * const {google} = require('googleapis');
8458
+ * const chromemanagement = google.chromemanagement('v1');
8459
+ *
8460
+ * async function main() {
8461
+ * const auth = new google.auth.GoogleAuth({
8462
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
8463
+ * scopes: ['https://www.googleapis.com/auth/chrome.management.profiles'],
8464
+ * });
8465
+ *
8466
+ * // Acquire an auth client, and bind it to all future calls
8467
+ * const authClient = await auth.getClient();
8468
+ * google.options({auth: authClient});
8469
+ *
8470
+ * // Do the magic
8471
+ * const res = await chromemanagement.customers.thirdPartyProfileUsers.move({
8472
+ * // Required. Format: customers/{customer_id\}/thirdPartyProfileUsers/{third_party_profile_user_id\}
8473
+ * name: 'customers/my-customer/thirdPartyProfileUsers/my-thirdPartyProfileUser',
8474
+ *
8475
+ * // Request body metadata
8476
+ * requestBody: {
8477
+ * // request body parameters
8478
+ * // {
8479
+ * // "destinationOrgUnit": "my_destinationOrgUnit"
8480
+ * // }
8481
+ * },
8482
+ * });
8483
+ * console.log(res.data);
8484
+ *
8485
+ * // Example response
8486
+ * // {
8487
+ * // "thirdPartyProfileUser": {}
8488
+ * // }
8489
+ * }
8490
+ *
8491
+ * main().catch(e => {
8492
+ * console.error(e);
8493
+ * throw e;
8494
+ * });
8495
+ *
8496
+ * ```
8497
+ *
8498
+ * @param params - Parameters for request
8499
+ * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
8500
+ * @param callback - Optional callback that handles the response.
8501
+ * @returns A promise if used with async/await, or void if used with a callback.
8502
+ */
8503
+ move (
8504
+ params : Params$Resource$Customers$Thirdpartyprofileusers$Move ,
8505
+ options : StreamMethodOptions
8506
+ ) : Promise < GaxiosResponseWithHTTP2 < Readable > > ;
8507
+ move (
8508
+ params ?: Params$Resource$Customers$Thirdpartyprofileusers$Move ,
8509
+ options ?: MethodOptions
8510
+ ) : Promise <
8511
+ GaxiosResponseWithHTTP2 < Schema$GoogleChromeManagementVersionsV1MoveThirdPartyProfileUserResponse >
8512
+ > ;
8513
+ move (
8514
+ params : Params$Resource$Customers$Thirdpartyprofileusers$Move ,
8515
+ options : StreamMethodOptions | BodyResponseCallback < Readable > ,
8516
+ callback : BodyResponseCallback < Readable >
8517
+ ) : void ;
8518
+ move (
8519
+ params : Params$Resource$Customers$Thirdpartyprofileusers$Move ,
8520
+ options :
8521
+ | MethodOptions
8522
+ | BodyResponseCallback < Schema$GoogleChromeManagementVersionsV1MoveThirdPartyProfileUserResponse > ,
8523
+ callback : BodyResponseCallback < Schema$GoogleChromeManagementVersionsV1MoveThirdPartyProfileUserResponse >
8524
+ ) : void ;
8525
+ move (
8526
+ params : Params$Resource$Customers$Thirdpartyprofileusers$Move ,
8527
+ callback : BodyResponseCallback < Schema$GoogleChromeManagementVersionsV1MoveThirdPartyProfileUserResponse >
8528
+ ) : void ;
8529
+ move (
8530
+ callback : BodyResponseCallback < Schema$GoogleChromeManagementVersionsV1MoveThirdPartyProfileUserResponse >
8531
+ ) : void ;
8532
+ move (
8533
+ paramsOrCallback ?:
8534
+ | Params$Resource$Customers$Thirdpartyprofileusers$Move
8535
+ | BodyResponseCallback < Schema$GoogleChromeManagementVersionsV1MoveThirdPartyProfileUserResponse >
8536
+ | BodyResponseCallback < Readable > ,
8537
+ optionsOrCallback ?:
8538
+ | MethodOptions
8539
+ | StreamMethodOptions
8540
+ | BodyResponseCallback < Schema$GoogleChromeManagementVersionsV1MoveThirdPartyProfileUserResponse >
8541
+ | BodyResponseCallback < Readable > ,
8542
+ callback ?:
8543
+ | BodyResponseCallback < Schema$GoogleChromeManagementVersionsV1MoveThirdPartyProfileUserResponse >
8544
+ | BodyResponseCallback < Readable >
8545
+ ) :
8546
+ | void
8547
+ | Promise <
8548
+ GaxiosResponseWithHTTP2 < Schema$GoogleChromeManagementVersionsV1MoveThirdPartyProfileUserResponse >
8549
+ >
8550
+ | Promise < GaxiosResponseWithHTTP2 < Readable > > {
8551
+ let params = ( paramsOrCallback ||
8552
+ { } ) as Params$Resource$Customers$Thirdpartyprofileusers$Move ;
8553
+ let options = ( optionsOrCallback || { } ) as MethodOptions ;
8554
+
8555
+ if ( typeof paramsOrCallback === 'function' ) {
8556
+ callback = paramsOrCallback ;
8557
+ params = { } as Params$Resource$Customers$Thirdpartyprofileusers$Move ;
8558
+ options = { } ;
8559
+ }
8560
+
8561
+ if ( typeof optionsOrCallback === 'function' ) {
8562
+ callback = optionsOrCallback ;
8563
+ options = { } ;
8564
+ }
8565
+
8566
+ const rootUrl =
8567
+ options . rootUrl || 'https://chromemanagement.googleapis.com/' ;
8568
+ const parameters = {
8569
+ options : Object . assign (
8570
+ {
8571
+ url : ( rootUrl + '/v1/{+name}:move' ) . replace ( / ( [ ^ : ] \/ ) \/ + / g, '$1' ) ,
8572
+ method : 'POST' ,
8573
+ apiVersion : '' ,
8574
+ } ,
8575
+ options
8576
+ ) ,
8577
+ params,
8578
+ requiredParams : [ 'name' ] ,
8579
+ pathParams : [ 'name' ] ,
8580
+ context : this . context ,
8581
+ } ;
8582
+ if ( callback ) {
8583
+ createAPIRequest < Schema$GoogleChromeManagementVersionsV1MoveThirdPartyProfileUserResponse > (
8584
+ parameters ,
8585
+ callback as BodyResponseCallback < unknown >
8586
+ ) ;
8587
+ } else {
8588
+ return createAPIRequest < Schema$GoogleChromeManagementVersionsV1MoveThirdPartyProfileUserResponse > (
8589
+ parameters
8590
+ ) ;
8591
+ }
8592
+ }
8593
+ }
8594
+
8595
+ export interface Params$Resource$Customers$Thirdpartyprofileusers$Move
8596
+ extends StandardParameters {
8597
+ /**
8598
+ * Required. Format: customers/{customer_id\}/thirdPartyProfileUsers/{third_party_profile_user_id\}
8599
+ */
8600
+ name ?: string ;
8601
+
8602
+ /**
8603
+ * Request body metadata
8604
+ */
8605
+ requestBody ?: Schema$GoogleChromeManagementVersionsV1MoveThirdPartyProfileUserRequest ;
8606
+ }
8400
8607
}
0 commit comments