@maxim_mazurok/gapi.client.admin-directory_v1 0.0.20230110 → 0.0.20230124

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/index.d.ts CHANGED
@@ -9,7 +9,7 @@
9
9
  // This file was generated by https://github.com/Maxim-Mazurok/google-api-typings-generator. Please do not edit it manually.
10
10
  // In case of any problems please post issue to https://github.com/Maxim-Mazurok/google-api-typings-generator
11
11
  // Generated from: https://admin.googleapis.com/$discovery/rest?version=directory_v1
12
- // Revision: 20230110
12
+ // Revision: 20230124
13
13
 
14
14
  /// <reference types="gapi.client" />
15
15
 
@@ -542,8 +542,8 @@ declare namespace gapi.client {
542
542
  }
543
543
  interface DirectoryChromeosdevicesCommandResult {
544
544
  /**
545
- * The payload for the command result. The following commands respond with a payload: - DEVICE_START_CRD_SESSION: Payload is a stringified JSON object in the form: { "url": url }. The
546
- * URL provides a link to the CRD session.
545
+ * The payload for the command result. The following commands respond with a payload: * `DEVICE_START_CRD_SESSION`: Payload is a stringified JSON object in the form: { "url": url }.
546
+ * The URL provides a link to the Chrome Remote Desktop session.
547
547
  */
548
548
  commandResultPayload?: string;
549
549
  /** The error message with a short explanation as to why the command failed. Only present if the command failed. */
@@ -557,10 +557,10 @@ declare namespace gapi.client {
557
557
  /** The type of command. */
558
558
  commandType?: string;
559
559
  /**
560
- * The payload for the command, provide it only if command supports it. The following commands support adding payload: - SET_VOLUME: Payload is a stringified JSON object in the form: {
561
- * "volume": 50 }. The volume has to be an integer in the range [0,100]. - DEVICE_START_CRD_SESSION: Payload is optionally a stringified JSON object in the form: { "ackedUserPresence":
562
- * true }. ackedUserPresence is a boolean. If a device is being used, ackedUserPresence must be set to true to acknowledge that you want to start a CRD session anyways. It is false by
563
- * default, so a CRD command will fail if used on an active device without this field.
560
+ * The payload for the command, provide it only if command supports it. The following commands support adding payload: * `SET_VOLUME`: Payload is a stringified JSON object in the form:
561
+ * { "volume": 50 }. The volume has to be an integer in the range [0,100]. * `DEVICE_START_CRD_SESSION`: Payload is optionally a stringified JSON object in the form: {
562
+ * "ackedUserPresence": true }. `ackedUserPresence` is a boolean. By default, `ackedUserPresence` is set to `false`. To start a Chrome Remote Desktop session for an active device, set
563
+ * `ackedUserPresence` to `true`.
564
564
  */
565
565
  payload?: string;
566
566
  }
@@ -3008,8 +3008,8 @@ declare namespace gapi.client {
3008
3008
  }
3009
3009
  interface DirectoryChromeosdevicesCommandResult {
3010
3010
  /**
3011
- * The payload for the command result. The following commands respond with a payload: - DEVICE_START_CRD_SESSION: Payload is a stringified JSON object in the form: { "url": url }. The
3012
- * URL provides a link to the CRD session.
3011
+ * The payload for the command result. The following commands respond with a payload: * `DEVICE_START_CRD_SESSION`: Payload is a stringified JSON object in the form: { "url": url }.
3012
+ * The URL provides a link to the Chrome Remote Desktop session.
3013
3013
  */
3014
3014
  commandResultPayload?: string;
3015
3015
  /** The error message with a short explanation as to why the command failed. Only present if the command failed. */
@@ -3023,10 +3023,10 @@ declare namespace gapi.client {
3023
3023
  /** The type of command. */
3024
3024
  commandType?: string;
3025
3025
  /**
3026
- * The payload for the command, provide it only if command supports it. The following commands support adding payload: - SET_VOLUME: Payload is a stringified JSON object in the form: {
3027
- * "volume": 50 }. The volume has to be an integer in the range [0,100]. - DEVICE_START_CRD_SESSION: Payload is optionally a stringified JSON object in the form: { "ackedUserPresence":
3028
- * true }. ackedUserPresence is a boolean. If a device is being used, ackedUserPresence must be set to true to acknowledge that you want to start a CRD session anyways. It is false by
3029
- * default, so a CRD command will fail if used on an active device without this field.
3026
+ * The payload for the command, provide it only if command supports it. The following commands support adding payload: * `SET_VOLUME`: Payload is a stringified JSON object in the form:
3027
+ * { "volume": 50 }. The volume has to be an integer in the range [0,100]. * `DEVICE_START_CRD_SESSION`: Payload is optionally a stringified JSON object in the form: {
3028
+ * "ackedUserPresence": true }. `ackedUserPresence` is a boolean. By default, `ackedUserPresence` is set to `false`. To start a Chrome Remote Desktop session for an active device, set
3029
+ * `ackedUserPresence` to `true`.
3030
3030
  */
3031
3031
  payload?: string;
3032
3032
  }
@@ -8476,8 +8476,9 @@ declare namespace gapi.client {
8476
8476
  },
8477
8477
  body: UserMakeAdmin): Request<void>;
8478
8478
  /**
8479
- * Updates a user using patch semantics. The update method should be used instead, since it also supports patch semantics and has better performance. This method is unable to clear
8480
- * fields that contain repeated objects (`addresses`, `phones`, etc). Use the update method instead.
8479
+ * Updates a user using patch semantics. The update method should be used instead, because it also supports patch semantics and has better performance. If you're mapping an external
8480
+ * identity to a Google identity, use the [`update`](https://developers.google.com/admin-sdk/directory/v1/reference/users/update) method instead of the `patch` method. This method is
8481
+ * unable to clear fields that contain repeated objects (`addresses`, `phones`, etc). Use the update method instead.
8481
8482
  */
8482
8483
  patch(request: {
8483
8484
  /** V1 error format. */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maxim_mazurok/gapi.client.admin-directory_v1",
3
- "version": "0.0.20230110",
3
+ "version": "0.0.20230124",
4
4
  "description": "TypeScript typings for Admin SDK API directory_v1",
5
5
  "license": "MIT",
6
6
  "author": {
package/readme.md CHANGED
@@ -503,7 +503,7 @@ Makes a user a super administrator.
503
503
  await gapi.client.directory.users.makeAdmin({ userKey: "userKey", });
504
504
 
505
505
  /*
506
- Updates a user using patch semantics. The update method should be used instead, since it also supports patch semantics and has better performance. This method is unable to clear fields that contain repeated objects (`addresses`, `phones`, etc). Use the update method instead.
506
+ Updates a user using patch semantics. The update method should be used instead, because it also supports patch semantics and has better performance. If you're mapping an external identity to a Google identity, use the [`update`](https://developers.google.com/admin-sdk/directory/v1/reference/users/update) method instead of the `patch` method. This method is unable to clear fields that contain repeated objects (`addresses`, `phones`, etc). Use the update method instead.
507
507
  */
508
508
  await gapi.client.directory.users.patch({ userKey: "userKey", });
509
509
 
package/tests.ts CHANGED
@@ -3,7 +3,7 @@
3
3
  // This file was generated by https://github.com/Maxim-Mazurok/google-api-typings-generator. Please do not edit it manually.
4
4
  // In case of any problems please post issue to https://github.com/Maxim-Mazurok/google-api-typings-generator
5
5
 
6
- // Revision: 20230110
6
+ // Revision: 20230124
7
7
 
8
8
  gapi.load('client', async () => {
9
9
  /** now we can use gapi.client */
@@ -1553,8 +1553,9 @@ gapi.load('client', async () => {
1553
1553
  status: true,
1554
1554
  });
1555
1555
  /**
1556
- * Updates a user using patch semantics. The update method should be used instead, since it also supports patch semantics and has better performance. This method is unable to clear fields
1557
- * that contain repeated objects (`addresses`, `phones`, etc). Use the update method instead.
1556
+ * Updates a user using patch semantics. The update method should be used instead, because it also supports patch semantics and has better performance. If you're mapping an external
1557
+ * identity to a Google identity, use the [`update`](https://developers.google.com/admin-sdk/directory/v1/reference/users/update) method instead of the `patch` method. This method is
1558
+ * unable to clear fields that contain repeated objects (`addresses`, `phones`, etc). Use the update method instead.
1558
1559
  */
1559
1560
  await gapi.client.directory.users.patch({
1560
1561
  userKey: "Test string",