Skip to content

Commit 6c91a35

Browse files
yoshi-automationsofisl
authored andcommitted
feat(chromemanagement): update the API
#### chromemanagement:v1 The following keys were added: - resources.customers.resources.thirdPartyProfileUsers.methods.move.description - resources.customers.resources.thirdPartyProfileUsers.methods.move.flatPath - resources.customers.resources.thirdPartyProfileUsers.methods.move.httpMethod - resources.customers.resources.thirdPartyProfileUsers.methods.move.id - resources.customers.resources.thirdPartyProfileUsers.methods.move.parameterOrder - resources.customers.resources.thirdPartyProfileUsers.methods.move.parameters.name.description - resources.customers.resources.thirdPartyProfileUsers.methods.move.parameters.name.location - resources.customers.resources.thirdPartyProfileUsers.methods.move.parameters.name.pattern - resources.customers.resources.thirdPartyProfileUsers.methods.move.parameters.name.required - resources.customers.resources.thirdPartyProfileUsers.methods.move.parameters.name.type - resources.customers.resources.thirdPartyProfileUsers.methods.move.path - resources.customers.resources.thirdPartyProfileUsers.methods.move.request.$ref - resources.customers.resources.thirdPartyProfileUsers.methods.move.response.$ref - resources.customers.resources.thirdPartyProfileUsers.methods.move.scopes - schemas.GoogleChromeManagementVersionsV1MoveThirdPartyProfileUserRequest.description - schemas.GoogleChromeManagementVersionsV1MoveThirdPartyProfileUserRequest.id - schemas.GoogleChromeManagementVersionsV1MoveThirdPartyProfileUserRequest.properties.destinationOrgUnit.description - schemas.GoogleChromeManagementVersionsV1MoveThirdPartyProfileUserRequest.properties.destinationOrgUnit.type - schemas.GoogleChromeManagementVersionsV1MoveThirdPartyProfileUserRequest.type - schemas.GoogleChromeManagementVersionsV1MoveThirdPartyProfileUserResponse.description - schemas.GoogleChromeManagementVersionsV1MoveThirdPartyProfileUserResponse.id - schemas.GoogleChromeManagementVersionsV1MoveThirdPartyProfileUserResponse.properties.thirdPartyProfileUser.$ref - schemas.GoogleChromeManagementVersionsV1MoveThirdPartyProfileUserResponse.properties.thirdPartyProfileUser.description - schemas.GoogleChromeManagementVersionsV1MoveThirdPartyProfileUserResponse.properties.thirdPartyProfileUser.readOnly - schemas.GoogleChromeManagementVersionsV1MoveThirdPartyProfileUserResponse.type - schemas.GoogleChromeManagementVersionsV1ThirdPartyProfileUser.description - schemas.GoogleChromeManagementVersionsV1ThirdPartyProfileUser.id - schemas.GoogleChromeManagementVersionsV1ThirdPartyProfileUser.properties.name.description - schemas.GoogleChromeManagementVersionsV1ThirdPartyProfileUser.properties.name.type - schemas.GoogleChromeManagementVersionsV1ThirdPartyProfileUser.properties.orgUnitId.description - schemas.GoogleChromeManagementVersionsV1ThirdPartyProfileUser.properties.orgUnitId.readOnly - schemas.GoogleChromeManagementVersionsV1ThirdPartyProfileUser.properties.orgUnitId.type - schemas.GoogleChromeManagementVersionsV1ThirdPartyProfileUser.type
1 parent 091a4e1 commit 6c91a35

File tree

2 files changed

+279
-1
lines changed

2 files changed

+279
-1
lines changed

discovery/chromemanagement-v1.json

Lines changed: 72 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1373,11 +1373,43 @@
13731373
}
13741374
}
13751375
}
1376+
},
1377+
"thirdPartyProfileUsers": {
1378+
"methods": {
1379+
"move": {
1380+
"description": "Moves a third party chrome profile user to a destination OU. All profiles associated to that user will be moved to the destination OU.",
1381+
"flatPath": "v1/customers/{customersId}/thirdPartyProfileUsers/{thirdPartyProfileUsersId}:move",
1382+
"httpMethod": "POST",
1383+
"id": "chromemanagement.customers.thirdPartyProfileUsers.move",
1384+
"parameterOrder": [
1385+
"name"
1386+
],
1387+
"parameters": {
1388+
"name": {
1389+
"description": "Required. Format: customers/{customer_id}/thirdPartyProfileUsers/{third_party_profile_user_id}",
1390+
"location": "path",
1391+
"pattern": "^customers/[^/]+/thirdPartyProfileUsers/[^/]+$",
1392+
"required": true,
1393+
"type": "string"
1394+
}
1395+
},
1396+
"path": "v1/{+name}:move",
1397+
"request": {
1398+
"$ref": "GoogleChromeManagementVersionsV1MoveThirdPartyProfileUserRequest"
1399+
},
1400+
"response": {
1401+
"$ref": "GoogleChromeManagementVersionsV1MoveThirdPartyProfileUserResponse"
1402+
},
1403+
"scopes": [
1404+
"https://www.googleapis.com/auth/chrome.management.profiles"
1405+
]
1406+
}
1407+
}
13761408
}
13771409
}
13781410
}
13791411
},
1380-
"revision": "20250721",
1412+
"revision": "20250730",
13811413
"rootUrl": "https://chromemanagement.googleapis.com/",
13821414
"schemas": {
13831415
"GoogleChromeManagementV1AndroidAppInfo": {
@@ -5680,6 +5712,29 @@
56805712
},
56815713
"type": "object"
56825714
},
5715+
"GoogleChromeManagementVersionsV1MoveThirdPartyProfileUserRequest": {
5716+
"description": "Request to MoveThirdPartyProfileUser method.",
5717+
"id": "GoogleChromeManagementVersionsV1MoveThirdPartyProfileUserRequest",
5718+
"properties": {
5719+
"destinationOrgUnit": {
5720+
"description": "Required. Destination organizational unit where the third party chrome profile user will be moved to.",
5721+
"type": "string"
5722+
}
5723+
},
5724+
"type": "object"
5725+
},
5726+
"GoogleChromeManagementVersionsV1MoveThirdPartyProfileUserResponse": {
5727+
"description": "Response for MoveThirdPartyProfileUser method.",
5728+
"id": "GoogleChromeManagementVersionsV1MoveThirdPartyProfileUserResponse",
5729+
"properties": {
5730+
"thirdPartyProfileUser": {
5731+
"$ref": "GoogleChromeManagementVersionsV1ThirdPartyProfileUser",
5732+
"description": "Output only. The moved third party profile user.",
5733+
"readOnly": true
5734+
}
5735+
},
5736+
"type": "object"
5737+
},
56835738
"GoogleChromeManagementVersionsV1ReportingData": {
56845739
"description": "Reporting data of a Chrome browser profile.",
56855740
"id": "GoogleChromeManagementVersionsV1ReportingData",
@@ -5953,6 +6008,22 @@
59536008
},
59546009
"type": "object"
59556010
},
6011+
"GoogleChromeManagementVersionsV1ThirdPartyProfileUser": {
6012+
"description": "A representation of non-Google (third party) user that is associated with a managed Chrome profile.",
6013+
"id": "GoogleChromeManagementVersionsV1ThirdPartyProfileUser",
6014+
"properties": {
6015+
"name": {
6016+
"description": "Identifier. Format: customers/{customer_id}/thirdPartyProfileUsers/{third_party_profile_user_id}",
6017+
"type": "string"
6018+
},
6019+
"orgUnitId": {
6020+
"description": "Output only. The ID of the organizational unit assigned to the user.",
6021+
"readOnly": true,
6022+
"type": "string"
6023+
}
6024+
},
6025+
"type": "object"
6026+
},
59566027
"GoogleProtobufEmpty": {
59576028
"description": "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); }",
59586029
"id": "GoogleProtobufEmpty",

src/apis/chromemanagement/v1.ts

Lines changed: 207 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2603,6 +2603,24 @@ export namespace chromemanagement_v1 {
26032603
*/
26042604
totalSize?: string | null;
26052605
}
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+
}
26062624
/**
26072625
* Reporting data of a Chrome browser profile.
26082626
*/
@@ -2750,6 +2768,19 @@ export namespace chromemanagement_v1 {
27502768
*/
27512769
certificateProvisioningProcess?: Schema$GoogleChromeManagementVersionsV1CertificateProvisioningProcess;
27522770
}
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+
}
27532784
/**
27542785
* 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); \}
27552786
*/
@@ -2795,12 +2826,15 @@ export namespace chromemanagement_v1 {
27952826
profiles: Resource$Customers$Profiles;
27962827
reports: Resource$Customers$Reports;
27972828
telemetry: Resource$Customers$Telemetry;
2829+
thirdPartyProfileUsers: Resource$Customers$Thirdpartyprofileusers;
27982830
constructor(context: APIRequestContext) {
27992831
this.context = context;
28002832
this.apps = new Resource$Customers$Apps(this.context);
28012833
this.profiles = new Resource$Customers$Profiles(this.context);
28022834
this.reports = new Resource$Customers$Reports(this.context);
28032835
this.telemetry = new Resource$Customers$Telemetry(this.context);
2836+
this.thirdPartyProfileUsers =
2837+
new Resource$Customers$Thirdpartyprofileusers(this.context);
28042838
}
28052839
}
28062840

@@ -8397,4 +8431,177 @@ export namespace chromemanagement_v1 {
83978431
*/
83988432
readMask?: string;
83998433
}
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+
}
84008607
}

0 commit comments

Comments
 (0)