@maxim_mazurok/gapi.client.drive-v3 0.1.20251007 → 0.1.20251024
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 +41 -33
- package/package.json +1 -1
- package/readme.md +5 -5
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://www.googleapis.com/discovery/v1/apis/drive/v3/rest
|
|
12
|
-
// Revision:
|
|
12
|
+
// Revision: 20251024
|
|
13
13
|
|
|
14
14
|
/// <reference types="gapi.client" />
|
|
15
15
|
|
|
@@ -224,6 +224,8 @@ declare namespace gapi.client {
|
|
|
224
224
|
interface Comment {
|
|
225
225
|
/** A region of the document represented as a JSON string. For details on defining anchor properties, refer to [Manage comments and replies](https://developers.google.com/workspace/drive/api/v3/manage-comments). */
|
|
226
226
|
anchor?: string;
|
|
227
|
+
/** Output only. The email of the user who is assigned to this comment, if none is assigned this will be unset. */
|
|
228
|
+
assigneeEmailAddress?: string;
|
|
227
229
|
/** Output only. The author of the comment. The author's email address and permission ID will not be populated. */
|
|
228
230
|
author?: User;
|
|
229
231
|
/** The plain text content of the comment. This field is used for setting the content, while `htmlContent` should be displayed. */
|
|
@@ -238,6 +240,8 @@ declare namespace gapi.client {
|
|
|
238
240
|
id?: string;
|
|
239
241
|
/** Output only. Identifies what kind of resource this is. Value: the fixed string `"drive#comment"`. */
|
|
240
242
|
kind?: string;
|
|
243
|
+
/** Output only. The emails of the users who were mentioned in this comment, if none were mentioned this will be an empty list. */
|
|
244
|
+
mentionedEmailAddresses?: string[];
|
|
241
245
|
/** The last time the comment or any of its replies was modified (RFC 3339 date-time). */
|
|
242
246
|
modifiedTime?: string;
|
|
243
247
|
/** The file content to which the comment refers, typically within the anchor region. For a text file, for example, this would be the text at the location of the comment. */
|
|
@@ -809,9 +813,9 @@ declare namespace gapi.client {
|
|
|
809
813
|
interface Permission {
|
|
810
814
|
/** Whether the permission allows the file to be discovered through search. This is only applicable for permissions of type `domain` or `anyone`. */
|
|
811
815
|
allowFileDiscovery?: boolean;
|
|
812
|
-
/** Output only. Whether the account associated with this permission has been deleted. This field only pertains to user
|
|
816
|
+
/** Output only. Whether the account associated with this permission has been deleted. This field only pertains to permissions of type `user` or `group`. */
|
|
813
817
|
deleted?: boolean;
|
|
814
|
-
/** Output only. The "pretty" name of the value of the permission. The following is a list of examples for each type of permission: * `user` - User's full name, as defined for their Google
|
|
818
|
+
/** Output only. The "pretty" name of the value of the permission. The following is a list of examples for each type of permission: * `user` - User's full name, as defined for their Google Account, such as "Dana A." * `group` - Name of the Google Group, such as "The Company Administrators." * `domain` - String domain name, such as "cymbalgroup.com." * `anyone` - No `displayName` is present. */
|
|
815
819
|
displayName?: string;
|
|
816
820
|
/** The domain to which this permission refers. */
|
|
817
821
|
domain?: string;
|
|
@@ -819,28 +823,28 @@ declare namespace gapi.client {
|
|
|
819
823
|
emailAddress?: string;
|
|
820
824
|
/** The time at which this permission will expire (RFC 3339 date-time). Expiration times have the following restrictions: - They can only be set on user and group permissions - The time must be in the future - The time cannot be more than a year in the future */
|
|
821
825
|
expirationTime?: string;
|
|
822
|
-
/** Output only. The ID of this permission. This is a unique identifier for the grantee, and is published in User
|
|
826
|
+
/** Output only. The ID of this permission. This is a unique identifier for the grantee, and is published in the [User resource](https://developers.google.com/workspace/drive/api/reference/rest/v3/User) as `permissionId`. IDs should be treated as opaque values. */
|
|
823
827
|
id?: string;
|
|
824
|
-
/** When true
|
|
828
|
+
/** When `true`, only organizers, owners, and users with permissions added directly on the item can access it. */
|
|
825
829
|
inheritedPermissionsDisabled?: boolean;
|
|
826
830
|
/** Output only. Identifies what kind of resource this is. Value: the fixed string `"drive#permission"`. */
|
|
827
831
|
kind?: string;
|
|
828
|
-
/** Whether the account associated with this permission is a pending owner. Only populated for `user`
|
|
832
|
+
/** Whether the account associated with this permission is a pending owner. Only populated for permissions of type `user` for files that aren't in a shared drive. */
|
|
829
833
|
pendingOwner?: boolean;
|
|
830
|
-
/** Output only. Details of whether the permissions on this item are inherited or directly on this item. */
|
|
834
|
+
/** Output only. Details of whether the permissions on this item are inherited or are directly on this item. */
|
|
831
835
|
permissionDetails?: Array<{
|
|
832
836
|
/** Output only. Whether this permission is inherited. This field is always populated. This is an output-only field. */
|
|
833
837
|
inherited?: boolean;
|
|
834
838
|
/** Output only. The ID of the item from which this permission is inherited. This is only populated for items in shared drives. */
|
|
835
839
|
inheritedFrom?: string;
|
|
836
|
-
/** Output only. The permission type for this user.
|
|
840
|
+
/** Output only. The permission type for this user. Supported values include: * `file` * `member` */
|
|
837
841
|
permissionType?: string;
|
|
838
|
-
/** Output only. The primary role for this user.
|
|
842
|
+
/** Output only. The primary role for this user. Supported values include: * `owner` * `organizer` * `fileOrganizer` * `writer` * `commenter` * `reader` For more information, see [Roles and permissions](https://developers.google.com/workspace/drive/api/guides/ref-roles). */
|
|
839
843
|
role?: string;
|
|
840
844
|
}>;
|
|
841
845
|
/** Output only. A link to the user's profile photo, if available. */
|
|
842
846
|
photoLink?: string;
|
|
843
|
-
/** The role granted by this permission.
|
|
847
|
+
/** The role granted by this permission. Supported values include: * `owner` * `organizer` * `fileOrganizer` * `writer` * `commenter` * `reader` For more information, see [Roles and permissions](https://developers.google.com/workspace/drive/api/guides/ref-roles). */
|
|
844
848
|
role?: string;
|
|
845
849
|
/** Output only. Deprecated: Output only. Use `permissionDetails` instead. */
|
|
846
850
|
teamDrivePermissionDetails?: Array<{
|
|
@@ -853,9 +857,9 @@ declare namespace gapi.client {
|
|
|
853
857
|
/** Deprecated: Output only. Use `permissionDetails/permissionType` instead. */
|
|
854
858
|
teamDrivePermissionType?: string;
|
|
855
859
|
}>;
|
|
856
|
-
/** The type of the grantee.
|
|
860
|
+
/** The type of the grantee. Supported values include: * `user` * `group` * `domain` * `anyone` When creating a permission, if `type` is `user` or `group`, you must provide an `emailAddress` for the user or group. If `type` is `domain`, you must provide a `domain`. If `type` is `anyone`, no extra information is required. */
|
|
857
861
|
type?: string;
|
|
858
|
-
/** Indicates the view for this permission. Only populated for permissions that belong to a view.
|
|
862
|
+
/** Indicates the view for this permission. Only populated for permissions that belong to a view. The only supported values are `published` and `metadata`: * `published`: The permission's role is `publishedReader`. * `metadata`: The item is only visible to the `metadata` view because the item has limited access and the scope has at least read access to the parent. The `metadata` view is only supported on folders. For more information, see [Views](https://developers.google.com/workspace/drive/api/guides/ref-roles#views). */
|
|
859
863
|
view?: string;
|
|
860
864
|
}
|
|
861
865
|
interface PermissionList {
|
|
@@ -863,12 +867,14 @@ declare namespace gapi.client {
|
|
|
863
867
|
kind?: string;
|
|
864
868
|
/** The page token for the next page of permissions. This field will be absent if the end of the permissions list has been reached. If the token is rejected for any reason, it should be discarded, and pagination should be restarted from the first page of results. The page token is typically valid for several hours. However, if new items are added or removed, your expected results might differ. */
|
|
865
869
|
nextPageToken?: string;
|
|
866
|
-
/** The list of permissions. If nextPageToken is populated, then this list may be incomplete and an additional page of results should be fetched. */
|
|
870
|
+
/** The list of permissions. If `nextPageToken` is populated, then this list may be incomplete and an additional page of results should be fetched. */
|
|
867
871
|
permissions?: Permission[];
|
|
868
872
|
}
|
|
869
873
|
interface Reply {
|
|
870
874
|
/** The action the reply performed to the parent comment. Valid values are: * `resolve` * `reopen` */
|
|
871
875
|
action?: string;
|
|
876
|
+
/** Output only. The email of the user who is assigned to this reply, if none is assigned this will be unset. */
|
|
877
|
+
assigneeEmailAddress?: string;
|
|
872
878
|
/** Output only. The author of the reply. The author's email address and permission ID will not be populated. */
|
|
873
879
|
author?: User;
|
|
874
880
|
/** The plain text content of the reply. This field is used for setting the content, while `htmlContent` should be displayed. This is required on creates if no `action` is specified. */
|
|
@@ -883,6 +889,8 @@ declare namespace gapi.client {
|
|
|
883
889
|
id?: string;
|
|
884
890
|
/** Output only. Identifies what kind of resource this is. Value: the fixed string `"drive#reply"`. */
|
|
885
891
|
kind?: string;
|
|
892
|
+
/** Output only. The emails of the users who were mentioned in this reply, if none were mentioned this will be an empty list. */
|
|
893
|
+
mentionedEmailAddresses?: string[];
|
|
886
894
|
/** The last time the reply was modified (RFC 3339 date-time). */
|
|
887
895
|
modifiedTime?: string;
|
|
888
896
|
}
|
|
@@ -2742,7 +2750,7 @@ declare namespace gapi.client {
|
|
|
2742
2750
|
}): Request<Operation>;
|
|
2743
2751
|
}
|
|
2744
2752
|
interface PermissionsResource {
|
|
2745
|
-
/** Creates a permission for a file or shared drive. **Warning:** Concurrent permissions operations on the same file
|
|
2753
|
+
/** Creates a permission for a file or shared drive. For more information, see [Share files, folders, and drives](https://developers.google.com/workspace/drive/api/guides/manage-sharing). **Warning:** Concurrent permissions operations on the same file aren't supported; only the last update is applied. */
|
|
2746
2754
|
create(request: {
|
|
2747
2755
|
/** V1 error format. */
|
|
2748
2756
|
'$.xgafv'?: string;
|
|
@@ -2764,7 +2772,7 @@ declare namespace gapi.client {
|
|
|
2764
2772
|
fileId: string;
|
|
2765
2773
|
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
2766
2774
|
key?: string;
|
|
2767
|
-
/** This parameter
|
|
2775
|
+
/** This parameter only takes effect if the item isn't in a shared drive and the request is attempting to transfer the ownership of the item. If set to `true`, the item is moved to the new owner's My Drive root folder and all prior parents removed. If set to `false`, parents aren't changed. */
|
|
2768
2776
|
moveToNewOwnersRoot?: boolean;
|
|
2769
2777
|
/** OAuth 2.0 token for the current user. */
|
|
2770
2778
|
oauth_token?: string;
|
|
@@ -2778,13 +2786,13 @@ declare namespace gapi.client {
|
|
|
2778
2786
|
supportsAllDrives?: boolean;
|
|
2779
2787
|
/** Deprecated: Use `supportsAllDrives` instead. */
|
|
2780
2788
|
supportsTeamDrives?: boolean;
|
|
2781
|
-
/** Whether to transfer ownership to the specified user and downgrade the current owner to a writer. This parameter is required as an acknowledgement of the side effect. */
|
|
2789
|
+
/** Whether to transfer ownership to the specified user and downgrade the current owner to a writer. This parameter is required as an acknowledgement of the side effect. For more information, see [Transfer file ownership](https://developers.google.com/workspace/drive/api/guides/transfer-file). */
|
|
2782
2790
|
transferOwnership?: boolean;
|
|
2783
2791
|
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
2784
2792
|
upload_protocol?: string;
|
|
2785
2793
|
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
2786
2794
|
uploadType?: string;
|
|
2787
|
-
/** Issue the request as a domain administrator
|
|
2795
|
+
/** Issue the request as a domain administrator. If set to `true`, and if the following additional conditions are met, the requester is granted access: 1. The file ID parameter refers to a shared drive. 2. The requester is an administrator of the domain to which the shared drive belongs. For more information, see [Manage shared drives as domain administrators](https://developers.google.com/workspace/drive/api/guides/manage-shareddrives#manage-administrators). */
|
|
2788
2796
|
useDomainAdminAccess?: boolean;
|
|
2789
2797
|
/** Request body */
|
|
2790
2798
|
resource: Permission;
|
|
@@ -2811,7 +2819,7 @@ declare namespace gapi.client {
|
|
|
2811
2819
|
fileId: string;
|
|
2812
2820
|
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
2813
2821
|
key?: string;
|
|
2814
|
-
/** This parameter
|
|
2822
|
+
/** This parameter only takes effect if the item isn't in a shared drive and the request is attempting to transfer the ownership of the item. If set to `true`, the item is moved to the new owner's My Drive root folder and all prior parents removed. If set to `false`, parents aren't changed. */
|
|
2815
2823
|
moveToNewOwnersRoot?: boolean;
|
|
2816
2824
|
/** OAuth 2.0 token for the current user. */
|
|
2817
2825
|
oauth_token?: string;
|
|
@@ -2825,18 +2833,18 @@ declare namespace gapi.client {
|
|
|
2825
2833
|
supportsAllDrives?: boolean;
|
|
2826
2834
|
/** Deprecated: Use `supportsAllDrives` instead. */
|
|
2827
2835
|
supportsTeamDrives?: boolean;
|
|
2828
|
-
/** Whether to transfer ownership to the specified user and downgrade the current owner to a writer. This parameter is required as an acknowledgement of the side effect. */
|
|
2836
|
+
/** Whether to transfer ownership to the specified user and downgrade the current owner to a writer. This parameter is required as an acknowledgement of the side effect. For more information, see [Transfer file ownership](https://developers.google.com/workspace/drive/api/guides/transfer-file). */
|
|
2829
2837
|
transferOwnership?: boolean;
|
|
2830
2838
|
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
2831
2839
|
upload_protocol?: string;
|
|
2832
2840
|
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
2833
2841
|
uploadType?: string;
|
|
2834
|
-
/** Issue the request as a domain administrator
|
|
2842
|
+
/** Issue the request as a domain administrator. If set to `true`, and if the following additional conditions are met, the requester is granted access: 1. The file ID parameter refers to a shared drive. 2. The requester is an administrator of the domain to which the shared drive belongs. For more information, see [Manage shared drives as domain administrators](https://developers.google.com/workspace/drive/api/guides/manage-shareddrives#manage-administrators). */
|
|
2835
2843
|
useDomainAdminAccess?: boolean;
|
|
2836
2844
|
},
|
|
2837
2845
|
body: Permission,
|
|
2838
2846
|
): Request<Permission>;
|
|
2839
|
-
/** Deletes a permission. **Warning:** Concurrent permissions operations on the same file
|
|
2847
|
+
/** Deletes a permission. For more information, see [Share files, folders, and drives](https://developers.google.com/workspace/drive/api/guides/manage-sharing). **Warning:** Concurrent permissions operations on the same file aren't supported; only the last update is applied. */
|
|
2840
2848
|
delete(request?: {
|
|
2841
2849
|
/** V1 error format. */
|
|
2842
2850
|
'$.xgafv'?: string;
|
|
@@ -2870,10 +2878,10 @@ declare namespace gapi.client {
|
|
|
2870
2878
|
upload_protocol?: string;
|
|
2871
2879
|
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
2872
2880
|
uploadType?: string;
|
|
2873
|
-
/** Issue the request as a domain administrator
|
|
2881
|
+
/** Issue the request as a domain administrator. If set to `true`, and if the following additional conditions are met, the requester is granted access: 1. The file ID parameter refers to a shared drive. 2. The requester is an administrator of the domain to which the shared drive belongs. For more information, see [Manage shared drives as domain administrators](https://developers.google.com/workspace/drive/api/guides/manage-shareddrives#manage-administrators). */
|
|
2874
2882
|
useDomainAdminAccess?: boolean;
|
|
2875
2883
|
}): Request<void>;
|
|
2876
|
-
/** Gets a permission by ID. */
|
|
2884
|
+
/** Gets a permission by ID. For more information, see [Share files, folders, and drives](https://developers.google.com/workspace/drive/api/guides/manage-sharing). */
|
|
2877
2885
|
get(request?: {
|
|
2878
2886
|
/** V1 error format. */
|
|
2879
2887
|
'$.xgafv'?: string;
|
|
@@ -2905,10 +2913,10 @@ declare namespace gapi.client {
|
|
|
2905
2913
|
upload_protocol?: string;
|
|
2906
2914
|
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
2907
2915
|
uploadType?: string;
|
|
2908
|
-
/** Issue the request as a domain administrator
|
|
2916
|
+
/** Issue the request as a domain administrator. If set to `true`, and if the following additional conditions are met, the requester is granted access: 1. The file ID parameter refers to a shared drive. 2. The requester is an administrator of the domain to which the shared drive belongs. For more information, see [Manage shared drives as domain administrators](https://developers.google.com/workspace/drive/api/guides/manage-shareddrives#manage-administrators). */
|
|
2909
2917
|
useDomainAdminAccess?: boolean;
|
|
2910
2918
|
}): Request<Permission>;
|
|
2911
|
-
/** Lists a file's or shared drive's permissions. */
|
|
2919
|
+
/** Lists a file's or shared drive's permissions. For more information, see [Share files, folders, and drives](https://developers.google.com/workspace/drive/api/guides/manage-sharing). */
|
|
2912
2920
|
list(request?: {
|
|
2913
2921
|
/** V1 error format. */
|
|
2914
2922
|
'$.xgafv'?: string;
|
|
@@ -2922,7 +2930,7 @@ declare namespace gapi.client {
|
|
|
2922
2930
|
fields?: string;
|
|
2923
2931
|
/** The ID of the file or shared drive. */
|
|
2924
2932
|
fileId: string;
|
|
2925
|
-
/** Specifies which additional view's permissions to include in the response. Only
|
|
2933
|
+
/** Specifies which additional view's permissions to include in the response. Only `published` is supported. */
|
|
2926
2934
|
includePermissionsForView?: string;
|
|
2927
2935
|
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
2928
2936
|
key?: string;
|
|
@@ -2930,7 +2938,7 @@ declare namespace gapi.client {
|
|
|
2930
2938
|
oauth_token?: string;
|
|
2931
2939
|
/** The maximum number of permissions to return per page. When not set for files in a shared drive, at most 100 results will be returned. When not set for files that are not in a shared drive, the entire list will be returned. */
|
|
2932
2940
|
pageSize?: number;
|
|
2933
|
-
/** The token for continuing a previous list request on the next page. This should be set to the value of
|
|
2941
|
+
/** The token for continuing a previous list request on the next page. This should be set to the value of `nextPageToken` from the previous response. */
|
|
2934
2942
|
pageToken?: string;
|
|
2935
2943
|
/** Returns response with indentations and line breaks. */
|
|
2936
2944
|
prettyPrint?: boolean;
|
|
@@ -2944,10 +2952,10 @@ declare namespace gapi.client {
|
|
|
2944
2952
|
upload_protocol?: string;
|
|
2945
2953
|
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
2946
2954
|
uploadType?: string;
|
|
2947
|
-
/** Issue the request as a domain administrator
|
|
2955
|
+
/** Issue the request as a domain administrator. If set to `true`, and if the following additional conditions are met, the requester is granted access: 1. The file ID parameter refers to a shared drive. 2. The requester is an administrator of the domain to which the shared drive belongs. For more information, see [Manage shared drives as domain administrators](https://developers.google.com/workspace/drive/api/guides/manage-shareddrives#manage-administrators). */
|
|
2948
2956
|
useDomainAdminAccess?: boolean;
|
|
2949
2957
|
}): Request<PermissionList>;
|
|
2950
|
-
/** Updates a permission with patch semantics. **Warning:** Concurrent permissions operations on the same file
|
|
2958
|
+
/** Updates a permission with patch semantics. For more information, see [Share files, folders, and drives](https://developers.google.com/workspace/drive/api/guides/manage-sharing). **Warning:** Concurrent permissions operations on the same file aren't supported; only the last update is applied. */
|
|
2951
2959
|
update(request: {
|
|
2952
2960
|
/** V1 error format. */
|
|
2953
2961
|
'$.xgafv'?: string;
|
|
@@ -2979,13 +2987,13 @@ declare namespace gapi.client {
|
|
|
2979
2987
|
supportsAllDrives?: boolean;
|
|
2980
2988
|
/** Deprecated: Use `supportsAllDrives` instead. */
|
|
2981
2989
|
supportsTeamDrives?: boolean;
|
|
2982
|
-
/** Whether to transfer ownership to the specified user and downgrade the current owner to a writer. This parameter is required as an acknowledgement of the side effect. */
|
|
2990
|
+
/** Whether to transfer ownership to the specified user and downgrade the current owner to a writer. This parameter is required as an acknowledgement of the side effect. For more information, see [Transfer file ownership](https://developers.google.com//workspace/drive/api/guides/transfer-file). */
|
|
2983
2991
|
transferOwnership?: boolean;
|
|
2984
2992
|
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
2985
2993
|
upload_protocol?: string;
|
|
2986
2994
|
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
2987
2995
|
uploadType?: string;
|
|
2988
|
-
/** Issue the request as a domain administrator
|
|
2996
|
+
/** Issue the request as a domain administrator. If set to `true`, and if the following additional conditions are met, the requester is granted access: 1. The file ID parameter refers to a shared drive. 2. The requester is an administrator of the domain to which the shared drive belongs. For more information, see [Manage shared drives as domain administrators](https://developers.google.com/workspace/drive/api/guides/manage-shareddrives#manage-administrators). */
|
|
2989
2997
|
useDomainAdminAccess?: boolean;
|
|
2990
2998
|
/** Request body */
|
|
2991
2999
|
resource: Permission;
|
|
@@ -3022,13 +3030,13 @@ declare namespace gapi.client {
|
|
|
3022
3030
|
supportsAllDrives?: boolean;
|
|
3023
3031
|
/** Deprecated: Use `supportsAllDrives` instead. */
|
|
3024
3032
|
supportsTeamDrives?: boolean;
|
|
3025
|
-
/** Whether to transfer ownership to the specified user and downgrade the current owner to a writer. This parameter is required as an acknowledgement of the side effect. */
|
|
3033
|
+
/** Whether to transfer ownership to the specified user and downgrade the current owner to a writer. This parameter is required as an acknowledgement of the side effect. For more information, see [Transfer file ownership](https://developers.google.com//workspace/drive/api/guides/transfer-file). */
|
|
3026
3034
|
transferOwnership?: boolean;
|
|
3027
3035
|
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
3028
3036
|
upload_protocol?: string;
|
|
3029
3037
|
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
3030
3038
|
uploadType?: string;
|
|
3031
|
-
/** Issue the request as a domain administrator
|
|
3039
|
+
/** Issue the request as a domain administrator. If set to `true`, and if the following additional conditions are met, the requester is granted access: 1. The file ID parameter refers to a shared drive. 2. The requester is an administrator of the domain to which the shared drive belongs. For more information, see [Manage shared drives as domain administrators](https://developers.google.com/workspace/drive/api/guides/manage-shareddrives#manage-administrators). */
|
|
3032
3040
|
useDomainAdminAccess?: boolean;
|
|
3033
3041
|
},
|
|
3034
3042
|
body: Permission,
|
package/package.json
CHANGED
package/readme.md
CHANGED
|
@@ -278,27 +278,27 @@ Gets the latest state of a long-running operation. Clients can use this method t
|
|
|
278
278
|
await gapi.client.drive.operations.get({ name: "name", });
|
|
279
279
|
|
|
280
280
|
/*
|
|
281
|
-
Creates a permission for a file or shared drive. **Warning:** Concurrent permissions operations on the same file
|
|
281
|
+
Creates a permission for a file or shared drive. For more information, see [Share files, folders, and drives](https://developers.google.com/workspace/drive/api/guides/manage-sharing). **Warning:** Concurrent permissions operations on the same file aren't supported; only the last update is applied.
|
|
282
282
|
*/
|
|
283
283
|
await gapi.client.drive.permissions.create({ fileId: "fileId", });
|
|
284
284
|
|
|
285
285
|
/*
|
|
286
|
-
Deletes a permission. **Warning:** Concurrent permissions operations on the same file
|
|
286
|
+
Deletes a permission. For more information, see [Share files, folders, and drives](https://developers.google.com/workspace/drive/api/guides/manage-sharing). **Warning:** Concurrent permissions operations on the same file aren't supported; only the last update is applied.
|
|
287
287
|
*/
|
|
288
288
|
await gapi.client.drive.permissions.delete({ fileId: "fileId", permissionId: "permissionId", });
|
|
289
289
|
|
|
290
290
|
/*
|
|
291
|
-
Gets a permission by ID.
|
|
291
|
+
Gets a permission by ID. For more information, see [Share files, folders, and drives](https://developers.google.com/workspace/drive/api/guides/manage-sharing).
|
|
292
292
|
*/
|
|
293
293
|
await gapi.client.drive.permissions.get({ fileId: "fileId", permissionId: "permissionId", });
|
|
294
294
|
|
|
295
295
|
/*
|
|
296
|
-
Lists a file's or shared drive's permissions.
|
|
296
|
+
Lists a file's or shared drive's permissions. For more information, see [Share files, folders, and drives](https://developers.google.com/workspace/drive/api/guides/manage-sharing).
|
|
297
297
|
*/
|
|
298
298
|
await gapi.client.drive.permissions.list({ fileId: "fileId", });
|
|
299
299
|
|
|
300
300
|
/*
|
|
301
|
-
Updates a permission with patch semantics. **Warning:** Concurrent permissions operations on the same file
|
|
301
|
+
Updates a permission with patch semantics. For more information, see [Share files, folders, and drives](https://developers.google.com/workspace/drive/api/guides/manage-sharing). **Warning:** Concurrent permissions operations on the same file aren't supported; only the last update is applied.
|
|
302
302
|
*/
|
|
303
303
|
await gapi.client.drive.permissions.update({ fileId: "fileId", permissionId: "permissionId", });
|
|
304
304
|
|