google-apis-drive_v3 0.69.0 → 0.71.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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +8 -0
- data/lib/google/apis/drive_v3/classes.rb +89 -77
- data/lib/google/apis/drive_v3/gem_version.rb +2 -2
- data/lib/google/apis/drive_v3/service.rb +128 -93
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f50c4bbb21b7d3fffee4a9d33ae65217db09abecf37ceb9f8032cc76100840d5
|
4
|
+
data.tar.gz: cc220f450b65c597806fd98cc1daf774ce06bdc1951dc55164bee1f61189433f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f425b7ae19279904245a205a16d73530fb5883ccdfe3a97b78dd02bbf1ffb44e992fc908fd7a04a54b7fbd7b37ff9d338f016f471212c77ef6639feed9ec3e01
|
7
|
+
data.tar.gz: 23fe66999ef8724df649c6edb3bec613f953fa5f0a9715108943eda92e763e2e67bf1068fd8035e494bf29afdc2c4bef49cf2617fae4c9b019060e8530c9448e
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,13 @@
|
|
1
1
|
# Release history for google-apis-drive_v3
|
2
2
|
|
3
|
+
### v0.71.0 (2025-09-21)
|
4
|
+
|
5
|
+
* Regenerated from discovery document revision 20250910
|
6
|
+
|
7
|
+
### v0.70.0 (2025-09-07)
|
8
|
+
|
9
|
+
* Regenerated from discovery document revision 20250829
|
10
|
+
|
3
11
|
### v0.69.0 (2025-08-24)
|
4
12
|
|
5
13
|
* Regenerated from discovery document revision 20250819
|
@@ -227,41 +227,43 @@ module Google
|
|
227
227
|
end
|
228
228
|
end
|
229
229
|
|
230
|
-
#
|
230
|
+
# Manage outstanding access proposals on a file.
|
231
231
|
class AccessProposal
|
232
232
|
include Google::Apis::Core::Hashable
|
233
233
|
|
234
|
-
# The creation time
|
234
|
+
# The creation time.
|
235
235
|
# Corresponds to the JSON property `createTime`
|
236
236
|
# @return [String]
|
237
237
|
attr_accessor :create_time
|
238
238
|
|
239
|
-
# The file
|
239
|
+
# The file ID that the proposal for access is on.
|
240
240
|
# Corresponds to the JSON property `fileId`
|
241
241
|
# @return [String]
|
242
242
|
attr_accessor :file_id
|
243
243
|
|
244
|
-
# The
|
244
|
+
# The ID of the access proposal.
|
245
245
|
# Corresponds to the JSON property `proposalId`
|
246
246
|
# @return [String]
|
247
247
|
attr_accessor :proposal_id
|
248
248
|
|
249
|
-
# The email address of the user that will receive permissions if accepted
|
249
|
+
# The email address of the user that will receive permissions, if accepted.
|
250
250
|
# Corresponds to the JSON property `recipientEmailAddress`
|
251
251
|
# @return [String]
|
252
252
|
attr_accessor :recipient_email_address
|
253
253
|
|
254
|
-
# The message that the requester added to the proposal
|
254
|
+
# The message that the requester added to the proposal.
|
255
255
|
# Corresponds to the JSON property `requestMessage`
|
256
256
|
# @return [String]
|
257
257
|
attr_accessor :request_message
|
258
258
|
|
259
|
-
# The email address of the requesting user
|
259
|
+
# The email address of the requesting user.
|
260
260
|
# Corresponds to the JSON property `requesterEmailAddress`
|
261
261
|
# @return [String]
|
262
262
|
attr_accessor :requester_email_address
|
263
263
|
|
264
|
-
# A wrapper for the role and view of an access proposal.
|
264
|
+
# A wrapper for the role and view of an access proposal. For more information,
|
265
|
+
# see [Roles and permissions](https://developers.google.com/workspace/drive/api/
|
266
|
+
# guides/ref-roles).
|
265
267
|
# Corresponds to the JSON property `rolesAndViews`
|
266
268
|
# @return [Array<Google::Apis::DriveV3::AccessProposalRoleAndView>]
|
267
269
|
attr_accessor :roles_and_views
|
@@ -282,19 +284,20 @@ module Google
|
|
282
284
|
end
|
283
285
|
end
|
284
286
|
|
285
|
-
# A wrapper for the role and view of an access proposal.
|
287
|
+
# A wrapper for the role and view of an access proposal. For more information,
|
288
|
+
# see [Roles and permissions](https://developers.google.com/workspace/drive/api/
|
289
|
+
# guides/ref-roles).
|
286
290
|
class AccessProposalRoleAndView
|
287
291
|
include Google::Apis::Core::Hashable
|
288
292
|
|
289
|
-
# The role that was proposed by the requester
|
290
|
-
#
|
291
|
-
# reader`
|
293
|
+
# The role that was proposed by the requester. The supported values are: * `
|
294
|
+
# writer` * `commenter` * `reader`
|
292
295
|
# Corresponds to the JSON property `role`
|
293
296
|
# @return [String]
|
294
297
|
attr_accessor :role
|
295
298
|
|
296
299
|
# Indicates the view for this access proposal. Only populated for proposals that
|
297
|
-
# belong to a view. `published` is
|
300
|
+
# belong to a view. Only `published` is supported.
|
298
301
|
# Corresponds to the JSON property `view`
|
299
302
|
# @return [String]
|
300
303
|
attr_accessor :view
|
@@ -1003,8 +1006,8 @@ module Google
|
|
1003
1006
|
attr_accessor :restricted_for_readers
|
1004
1007
|
alias_method :restricted_for_readers?, :restricted_for_readers
|
1005
1008
|
|
1006
|
-
# Whether download and copy is restricted for writers. If true
|
1007
|
-
# restricted for readers.
|
1009
|
+
# Whether download and copy is restricted for writers. If `true`, download is
|
1010
|
+
# also restricted for readers.
|
1008
1011
|
# Corresponds to the JSON property `restrictedForWriters`
|
1009
1012
|
# @return [Boolean]
|
1010
1013
|
attr_accessor :restricted_for_writers
|
@@ -1496,7 +1499,9 @@ module Google
|
|
1496
1499
|
attr_accessor :app_properties
|
1497
1500
|
|
1498
1501
|
# Output only. Capabilities the current user has on this file. Each capability
|
1499
|
-
# corresponds to a fine-grained action that a user may take.
|
1502
|
+
# corresponds to a fine-grained action that a user may take. For more
|
1503
|
+
# information, see [Understand file capabilities](https://developers.google.com/
|
1504
|
+
# workspace/drive/api/guides/manage-sharing#capabilities).
|
1500
1505
|
# Corresponds to the JSON property `capabilities`
|
1501
1506
|
# @return [Google::Apis::DriveV3::File::Capabilities]
|
1502
1507
|
attr_accessor :capabilities
|
@@ -1513,7 +1518,7 @@ module Google
|
|
1513
1518
|
# @return [Array<Google::Apis::DriveV3::ContentRestriction>]
|
1514
1519
|
attr_accessor :content_restrictions
|
1515
1520
|
|
1516
|
-
# Whether the options to copy, print, or download this file
|
1521
|
+
# Whether the options to copy, print, or download this file should be disabled
|
1517
1522
|
# for readers and commenters.
|
1518
1523
|
# Corresponds to the JSON property `copyRequiresWriterPermission`
|
1519
1524
|
# @return [Boolean]
|
@@ -1560,9 +1565,10 @@ module Google
|
|
1560
1565
|
attr_accessor :file_extension
|
1561
1566
|
|
1562
1567
|
# The color for a folder or a shortcut to a folder as an RGB hex string. The
|
1563
|
-
# supported colors are published in the `folderColorPalette` field of the
|
1564
|
-
# resource. If an
|
1565
|
-
# palette is used
|
1568
|
+
# supported colors are published in the `folderColorPalette` field of the [`
|
1569
|
+
# about`](/workspace/drive/api/reference/rest/v3/about) resource. If an
|
1570
|
+
# unsupported color is specified, the closest color in the palette is used
|
1571
|
+
# instead.
|
1566
1572
|
# Corresponds to the JSON property `folderColorRgb`
|
1567
1573
|
# @return [String]
|
1568
1574
|
attr_accessor :folder_color_rgb
|
@@ -1570,8 +1576,8 @@ module Google
|
|
1570
1576
|
# Output only. The full file extension extracted from the `name` field. May
|
1571
1577
|
# contain multiple concatenated extensions, such as "tar.gz". This is only
|
1572
1578
|
# available for files with binary content in Google Drive. This is automatically
|
1573
|
-
# updated when the `name` field changes, however it
|
1574
|
-
# name
|
1579
|
+
# updated when the `name` field changes, however it's not cleared if the new
|
1580
|
+
# name doesn't contain a valid extension.
|
1575
1581
|
# Corresponds to the JSON property `fullFileExtension`
|
1576
1582
|
# @return [String]
|
1577
1583
|
attr_accessor :full_file_extension
|
@@ -1583,7 +1589,7 @@ module Google
|
|
1583
1589
|
attr_accessor :has_augmented_permissions
|
1584
1590
|
alias_method :has_augmented_permissions?, :has_augmented_permissions
|
1585
1591
|
|
1586
|
-
# Output only. Whether this file has a thumbnail. This
|
1592
|
+
# Output only. Whether this file has a thumbnail. This doesn't indicate whether
|
1587
1593
|
# the requesting app has access to the thumbnail. To check access, look for the
|
1588
1594
|
# presence of the thumbnailLink field.
|
1589
1595
|
# Corresponds to the JSON property `hasThumbnail`
|
@@ -1657,7 +1663,8 @@ module Google
|
|
1657
1663
|
# appropriate value from uploaded content, if no value is provided. The value
|
1658
1664
|
# cannot be changed unless a new revision is uploaded. If a file is created with
|
1659
1665
|
# a Google Doc MIME type, the uploaded content is imported, if possible. The
|
1660
|
-
# supported import formats are published in the
|
1666
|
+
# supported import formats are published in the [`about`](/workspace/drive/api/
|
1667
|
+
# reference/rest/v3/about) resource.
|
1661
1668
|
# Corresponds to the JSON property `mimeType`
|
1662
1669
|
# @return [String]
|
1663
1670
|
attr_accessor :mime_type
|
@@ -1679,9 +1686,9 @@ module Google
|
|
1679
1686
|
# @return [DateTime]
|
1680
1687
|
attr_accessor :modified_time
|
1681
1688
|
|
1682
|
-
# The name of the file. This
|
1683
|
-
#
|
1684
|
-
# Drive root folder, and Application Data folder the name is constant.
|
1689
|
+
# The name of the file. This isn't necessarily unique within a folder. Note that
|
1690
|
+
# for immutable items such as the top-level folders of shared drives, the My
|
1691
|
+
# Drive root folder, and the Application Data folder, the name is constant.
|
1685
1692
|
# Corresponds to the JSON property `name`
|
1686
1693
|
# @return [String]
|
1687
1694
|
attr_accessor :name
|
@@ -1746,14 +1753,14 @@ module Google
|
|
1746
1753
|
attr_accessor :resource_key
|
1747
1754
|
|
1748
1755
|
# Output only. The SHA1 checksum associated with this file, if available. This
|
1749
|
-
# field is only populated for files with content stored in Google Drive; it
|
1756
|
+
# field is only populated for files with content stored in Google Drive; it's
|
1750
1757
|
# not populated for Docs Editors or shortcut files.
|
1751
1758
|
# Corresponds to the JSON property `sha1Checksum`
|
1752
1759
|
# @return [String]
|
1753
1760
|
attr_accessor :sha1_checksum
|
1754
1761
|
|
1755
1762
|
# Output only. The SHA256 checksum associated with this file, if available. This
|
1756
|
-
# field is only populated for files with content stored in Google Drive; it
|
1763
|
+
# field is only populated for files with content stored in Google Drive; it's
|
1757
1764
|
# not populated for Docs Editors or shortcut files.
|
1758
1765
|
# Corresponds to the JSON property `sha256Checksum`
|
1759
1766
|
# @return [String]
|
@@ -1784,14 +1791,14 @@ module Google
|
|
1784
1791
|
# @return [Google::Apis::DriveV3::File::ShortcutDetails]
|
1785
1792
|
attr_accessor :shortcut_details
|
1786
1793
|
|
1787
|
-
# Output only. Size in bytes of blobs and
|
1788
|
-
# populated for files that have no size, like shortcuts and folders.
|
1794
|
+
# Output only. Size in bytes of blobs and Google Workspace editor files. Won't
|
1795
|
+
# be populated for files that have no size, like shortcuts and folders.
|
1789
1796
|
# Corresponds to the JSON property `size`
|
1790
1797
|
# @return [Fixnum]
|
1791
1798
|
attr_accessor :size
|
1792
1799
|
|
1793
1800
|
# Output only. The list of spaces which contain the file. The currently
|
1794
|
-
# supported values are
|
1801
|
+
# supported values are `drive`, `appDataFolder`, and `photos`.
|
1795
1802
|
# Corresponds to the JSON property `spaces`
|
1796
1803
|
# @return [Array<String>]
|
1797
1804
|
attr_accessor :spaces
|
@@ -1810,9 +1817,9 @@ module Google
|
|
1810
1817
|
# Output only. A short-lived link to the file's thumbnail, if available.
|
1811
1818
|
# Typically lasts on the order of hours. Not intended for direct usage on web
|
1812
1819
|
# applications due to [Cross-Origin Resource Sharing (CORS)](https://developer.
|
1813
|
-
# mozilla.org/en-US/docs/Web/HTTP/CORS) policies
|
1820
|
+
# mozilla.org/en-US/docs/Web/HTTP/CORS) policies. Consider using a proxy server.
|
1814
1821
|
# Only populated when the requesting app can access the file's content. If the
|
1815
|
-
# file isn't shared publicly, the URL returned in `
|
1822
|
+
# file isn't shared publicly, the URL returned in `files.thumbnailLink` must be
|
1816
1823
|
# fetched using a credentialed request.
|
1817
1824
|
# Corresponds to the JSON property `thumbnailLink`
|
1818
1825
|
# @return [String]
|
@@ -1964,7 +1971,9 @@ module Google
|
|
1964
1971
|
end
|
1965
1972
|
|
1966
1973
|
# Output only. Capabilities the current user has on this file. Each capability
|
1967
|
-
# corresponds to a fine-grained action that a user may take.
|
1974
|
+
# corresponds to a fine-grained action that a user may take. For more
|
1975
|
+
# information, see [Understand file capabilities](https://developers.google.com/
|
1976
|
+
# workspace/drive/api/guides/manage-sharing#capabilities).
|
1968
1977
|
class Capabilities
|
1969
1978
|
include Google::Apis::Core::Hashable
|
1970
1979
|
|
@@ -1976,15 +1985,15 @@ module Google
|
|
1976
1985
|
alias_method :can_accept_ownership?, :can_accept_ownership
|
1977
1986
|
|
1978
1987
|
# Output only. Whether the current user can add children to this folder. This is
|
1979
|
-
# always false when the item
|
1988
|
+
# always `false` when the item isn't a folder.
|
1980
1989
|
# Corresponds to the JSON property `canAddChildren`
|
1981
1990
|
# @return [Boolean]
|
1982
1991
|
attr_accessor :can_add_children
|
1983
1992
|
alias_method :can_add_children?, :can_add_children
|
1984
1993
|
|
1985
1994
|
# Output only. Whether the current user can add a folder from another drive (
|
1986
|
-
# different shared drive or My Drive) to this folder. This is false when the
|
1987
|
-
# item
|
1995
|
+
# different shared drive or My Drive) to this folder. This is `false` when the
|
1996
|
+
# item isn't a folder. Only populated for items in shared drives.
|
1988
1997
|
# Corresponds to the JSON property `canAddFolderFromAnotherDrive`
|
1989
1998
|
# @return [Boolean]
|
1990
1999
|
attr_accessor :can_add_folder_from_another_drive
|
@@ -2012,7 +2021,7 @@ module Google
|
|
2012
2021
|
attr_accessor :can_change_item_download_restriction
|
2013
2022
|
alias_method :can_change_item_download_restriction?, :can_change_item_download_restriction
|
2014
2023
|
|
2015
|
-
# Output only. Whether the current user can change the securityUpdateEnabled
|
2024
|
+
# Output only. Whether the current user can change the `securityUpdateEnabled`
|
2016
2025
|
# field on link share metadata.
|
2017
2026
|
# Corresponds to the JSON property `canChangeSecurityUpdateEnabled`
|
2018
2027
|
# @return [Boolean]
|
@@ -2033,7 +2042,7 @@ module Google
|
|
2033
2042
|
|
2034
2043
|
# Output only. Whether the current user can copy this file. For an item in a
|
2035
2044
|
# shared drive, whether the current user can copy non-folder descendants of this
|
2036
|
-
# item, or this item
|
2045
|
+
# item, or this item if it's not a folder.
|
2037
2046
|
# Corresponds to the JSON property `canCopy`
|
2038
2047
|
# @return [Boolean]
|
2039
2048
|
attr_accessor :can_copy
|
@@ -2046,7 +2055,7 @@ module Google
|
|
2046
2055
|
alias_method :can_delete?, :can_delete
|
2047
2056
|
|
2048
2057
|
# Output only. Whether the current user can delete children of this folder. This
|
2049
|
-
# is false when the item
|
2058
|
+
# is `false` when the item isn't a folder. Only populated for items in shared
|
2050
2059
|
# drives.
|
2051
2060
|
# Corresponds to the JSON property `canDeleteChildren`
|
2052
2061
|
# @return [Boolean]
|
@@ -2080,7 +2089,7 @@ module Google
|
|
2080
2089
|
alias_method :can_enable_inherited_permissions?, :can_enable_inherited_permissions
|
2081
2090
|
|
2082
2091
|
# Output only. Whether the current user can list the children of this folder.
|
2083
|
-
# This is always false when the item
|
2092
|
+
# This is always `false` when the item isn't a folder.
|
2084
2093
|
# Corresponds to the JSON property `canListChildren`
|
2085
2094
|
# @return [Boolean]
|
2086
2095
|
attr_accessor :can_list_children
|
@@ -2093,7 +2102,7 @@ module Google
|
|
2093
2102
|
alias_method :can_modify_content?, :can_modify_content
|
2094
2103
|
|
2095
2104
|
# Deprecated: Output only. Use one of `canModifyEditorContentRestriction`, `
|
2096
|
-
# canModifyOwnerContentRestriction
|
2105
|
+
# canModifyOwnerContentRestriction`, or `canRemoveContentRestriction`.
|
2097
2106
|
# Corresponds to the JSON property `canModifyContentRestriction`
|
2098
2107
|
# @return [Boolean]
|
2099
2108
|
attr_accessor :can_modify_content_restriction
|
@@ -2120,7 +2129,7 @@ module Google
|
|
2120
2129
|
alias_method :can_modify_owner_content_restriction?, :can_modify_owner_content_restriction
|
2121
2130
|
|
2122
2131
|
# Output only. Whether the current user can move children of this folder outside
|
2123
|
-
# of the shared drive. This is false when the item
|
2132
|
+
# of the shared drive. This is `false` when the item isn't a folder. Only
|
2124
2133
|
# populated for items in shared drives.
|
2125
2134
|
# Corresponds to the JSON property `canMoveChildrenOutOfDrive`
|
2126
2135
|
# @return [Boolean]
|
@@ -2134,7 +2143,7 @@ module Google
|
|
2134
2143
|
alias_method :can_move_children_out_of_team_drive?, :can_move_children_out_of_team_drive
|
2135
2144
|
|
2136
2145
|
# Output only. Whether the current user can move children of this folder within
|
2137
|
-
# this drive. This is false when the item
|
2146
|
+
# this drive. This is `false` when the item isn't a folder. Note that a request
|
2138
2147
|
# to move the child may still fail depending on the current user's access to the
|
2139
2148
|
# child and to the destination folder.
|
2140
2149
|
# Corresponds to the JSON property `canMoveChildrenWithinDrive`
|
@@ -2156,7 +2165,7 @@ module Google
|
|
2156
2165
|
|
2157
2166
|
# Output only. Whether the current user can move this item outside of this drive
|
2158
2167
|
# by changing its parent. Note that a request to change the parent of the item
|
2159
|
-
# may still fail depending on the new parent that
|
2168
|
+
# may still fail depending on the new parent that's being added.
|
2160
2169
|
# Corresponds to the JSON property `canMoveItemOutOfDrive`
|
2161
2170
|
# @return [Boolean]
|
2162
2171
|
attr_accessor :can_move_item_out_of_drive
|
@@ -2170,7 +2179,7 @@ module Google
|
|
2170
2179
|
|
2171
2180
|
# Output only. Whether the current user can move this item within this drive.
|
2172
2181
|
# Note that a request to change the parent of the item may still fail depending
|
2173
|
-
# on the new parent that
|
2182
|
+
# on the new parent that's being added and the parent that is being removed.
|
2174
2183
|
# Corresponds to the JSON property `canMoveItemWithinDrive`
|
2175
2184
|
# @return [Boolean]
|
2176
2185
|
attr_accessor :can_move_item_within_drive
|
@@ -2204,7 +2213,7 @@ module Google
|
|
2204
2213
|
|
2205
2214
|
# Output only. Whether the current user can read the revisions resource of this
|
2206
2215
|
# file. For a shared drive item, whether revisions of non-folder descendants of
|
2207
|
-
# this item, or this item
|
2216
|
+
# this item, or this item if it's not a folder, can be read.
|
2208
2217
|
# Corresponds to the JSON property `canReadRevisions`
|
2209
2218
|
# @return [Boolean]
|
2210
2219
|
attr_accessor :can_read_revisions
|
@@ -2217,14 +2226,14 @@ module Google
|
|
2217
2226
|
alias_method :can_read_team_drive?, :can_read_team_drive
|
2218
2227
|
|
2219
2228
|
# Output only. Whether the current user can remove children from this folder.
|
2220
|
-
# This is always false when the item
|
2229
|
+
# This is always `false` when the item isn't a folder. For a folder in a shared
|
2221
2230
|
# drive, use `canDeleteChildren` or `canTrashChildren` instead.
|
2222
2231
|
# Corresponds to the JSON property `canRemoveChildren`
|
2223
2232
|
# @return [Boolean]
|
2224
2233
|
attr_accessor :can_remove_children
|
2225
2234
|
alias_method :can_remove_children?, :can_remove_children
|
2226
2235
|
|
2227
|
-
# Output only. Whether there
|
2236
|
+
# Output only. Whether there's a content restriction on the file that can be
|
2228
2237
|
# removed by the current user.
|
2229
2238
|
# Corresponds to the JSON property `canRemoveContentRestriction`
|
2230
2239
|
# @return [Boolean]
|
@@ -2259,7 +2268,7 @@ module Google
|
|
2259
2268
|
alias_method :can_trash?, :can_trash
|
2260
2269
|
|
2261
2270
|
# Output only. Whether the current user can trash children of this folder. This
|
2262
|
-
# is false when the item
|
2271
|
+
# is `false` when the item isn't a folder. Only populated for items in shared
|
2263
2272
|
# drives.
|
2264
2273
|
# Corresponds to the JSON property `canTrashChildren`
|
2265
2274
|
# @return [Boolean]
|
@@ -2331,7 +2340,7 @@ module Google
|
|
2331
2340
|
include Google::Apis::Core::Hashable
|
2332
2341
|
|
2333
2342
|
# Text to be indexed for the file to improve fullText queries. This is limited
|
2334
|
-
# to
|
2343
|
+
# to 128 KB in length and may contain HTML elements.
|
2335
2344
|
# Corresponds to the JSON property `indexableText`
|
2336
2345
|
# @return [String]
|
2337
2346
|
attr_accessor :indexable_text
|
@@ -2357,7 +2366,8 @@ module Google
|
|
2357
2366
|
class Thumbnail
|
2358
2367
|
include Google::Apis::Core::Hashable
|
2359
2368
|
|
2360
|
-
# The thumbnail data encoded with URL-safe Base64 (RFC 4648 section 5
|
2369
|
+
# The thumbnail data encoded with URL-safe Base64 ([RFC 4648 section 5](https://
|
2370
|
+
# datatracker.ietf.org/doc/html/rfc4648#section-5)).
|
2361
2371
|
# Corresponds to the JSON property `image`
|
2362
2372
|
# NOTE: Values are automatically base64 encoded/decoded in the client library.
|
2363
2373
|
# @return [String]
|
@@ -2620,7 +2630,7 @@ module Google
|
|
2620
2630
|
# @return [String]
|
2621
2631
|
attr_accessor :target_mime_type
|
2622
2632
|
|
2623
|
-
# Output only. The
|
2633
|
+
# Output only. The `resourceKey` for the target file.
|
2624
2634
|
# Corresponds to the JSON property `targetResourceKey`
|
2625
2635
|
# @return [String]
|
2626
2636
|
attr_accessor :target_resource_key
|
@@ -2674,7 +2684,7 @@ module Google
|
|
2674
2684
|
class FileList
|
2675
2685
|
include Google::Apis::Core::Hashable
|
2676
2686
|
|
2677
|
-
# The list of files. If nextPageToken is populated, then this list may be
|
2687
|
+
# The list of files. If `nextPageToken` is populated, then this list may be
|
2678
2688
|
# incomplete and an additional page of results should be fetched.
|
2679
2689
|
# Corresponds to the JSON property `files`
|
2680
2690
|
# @return [Array<Google::Apis::DriveV3::File>]
|
@@ -2682,9 +2692,9 @@ module Google
|
|
2682
2692
|
|
2683
2693
|
# Whether the search process was incomplete. If true, then some search results
|
2684
2694
|
# might be missing, since all documents were not searched. This can occur when
|
2685
|
-
# searching multiple drives with the
|
2695
|
+
# searching multiple drives with the `allDrives` corpora, but all corpora couldn'
|
2686
2696
|
# t be searched. When this happens, it's suggested that clients narrow their
|
2687
|
-
# query by choosing a different corpus such as
|
2697
|
+
# query by choosing a different corpus such as `user` or `drive`.
|
2688
2698
|
# Corresponds to the JSON property `incompleteSearch`
|
2689
2699
|
# @return [Boolean]
|
2690
2700
|
attr_accessor :incomplete_search
|
@@ -2859,7 +2869,7 @@ module Google
|
|
2859
2869
|
# @return [String]
|
2860
2870
|
attr_accessor :field_id
|
2861
2871
|
|
2862
|
-
# This is always drive#labelFieldModification
|
2872
|
+
# This is always `"drive#labelFieldModification"`.
|
2863
2873
|
# Corresponds to the JSON property `kind`
|
2864
2874
|
# @return [String]
|
2865
2875
|
attr_accessor :kind
|
@@ -2885,8 +2895,8 @@ module Google
|
|
2885
2895
|
# @return [Array<String>]
|
2886
2896
|
attr_accessor :set_text_values
|
2887
2897
|
|
2888
|
-
# Replaces a `user` field with these new values. The values must be valid
|
2889
|
-
# addresses.
|
2898
|
+
# Replaces a `user` field with these new values. The values must be a valid
|
2899
|
+
# email addresses.
|
2890
2900
|
# Corresponds to the JSON property `setUserValues`
|
2891
2901
|
# @return [Array<String>]
|
2892
2902
|
attr_accessor :set_user_values
|
@@ -2918,7 +2928,7 @@ module Google
|
|
2918
2928
|
class LabelList
|
2919
2929
|
include Google::Apis::Core::Hashable
|
2920
2930
|
|
2921
|
-
# This is always drive#labelList
|
2931
|
+
# This is always `"drive#labelList"`.
|
2922
2932
|
# Corresponds to the JSON property `kind`
|
2923
2933
|
# @return [String]
|
2924
2934
|
attr_accessor :kind
|
@@ -2949,9 +2959,9 @@ module Google
|
|
2949
2959
|
end
|
2950
2960
|
end
|
2951
2961
|
|
2952
|
-
# A modification to a label on a file. A LabelModification can be used to
|
2953
|
-
# a label to a file, update an existing label on a file, or remove a label
|
2954
|
-
# a file.
|
2962
|
+
# A modification to a label on a file. A `LabelModification` can be used to
|
2963
|
+
# apply a label to a file, update an existing label on a file, or remove a label
|
2964
|
+
# from a file.
|
2955
2965
|
class LabelModification
|
2956
2966
|
include Google::Apis::Core::Hashable
|
2957
2967
|
|
@@ -2960,7 +2970,7 @@ module Google
|
|
2960
2970
|
# @return [Array<Google::Apis::DriveV3::LabelFieldModification>]
|
2961
2971
|
attr_accessor :field_modifications
|
2962
2972
|
|
2963
|
-
# This is always drive#labelModification
|
2973
|
+
# This is always `"drive#labelModification"`.
|
2964
2974
|
# Corresponds to the JSON property `kind`
|
2965
2975
|
# @return [String]
|
2966
2976
|
attr_accessor :kind
|
@@ -2989,11 +2999,11 @@ module Google
|
|
2989
2999
|
end
|
2990
3000
|
end
|
2991
3001
|
|
2992
|
-
# The response to an
|
3002
|
+
# The response to an access proposal list request.
|
2993
3003
|
class ListAccessProposalsResponse
|
2994
3004
|
include Google::Apis::Core::Hashable
|
2995
3005
|
|
2996
|
-
# The list of
|
3006
|
+
# The list of access proposals. This field is only populated in Drive API v3.
|
2997
3007
|
# Corresponds to the JSON property `accessProposals`
|
2998
3008
|
# @return [Array<Google::Apis::DriveV3::AccessProposal>]
|
2999
3009
|
attr_accessor :access_proposals
|
@@ -3022,7 +3032,7 @@ module Google
|
|
3022
3032
|
class ModifyLabelsRequest
|
3023
3033
|
include Google::Apis::Core::Hashable
|
3024
3034
|
|
3025
|
-
# This is always drive#modifyLabelsRequest
|
3035
|
+
# This is always `"drive#modifyLabelsRequest"`.
|
3026
3036
|
# Corresponds to the JSON property `kind`
|
3027
3037
|
# @return [String]
|
3028
3038
|
attr_accessor :kind
|
@@ -3043,12 +3053,12 @@ module Google
|
|
3043
3053
|
end
|
3044
3054
|
end
|
3045
3055
|
|
3046
|
-
# Response to a ModifyLabels request. This contains only those labels which
|
3047
|
-
# added or updated by the request.
|
3056
|
+
# Response to a `ModifyLabels` request. This contains only those labels which
|
3057
|
+
# were added or updated by the request.
|
3048
3058
|
class ModifyLabelsResponse
|
3049
3059
|
include Google::Apis::Core::Hashable
|
3050
3060
|
|
3051
|
-
# This is always drive#modifyLabelsResponse
|
3061
|
+
# This is always `"drive#modifyLabelsResponse"`.
|
3052
3062
|
# Corresponds to the JSON property `kind`
|
3053
3063
|
# @return [String]
|
3054
3064
|
attr_accessor :kind
|
@@ -3512,26 +3522,28 @@ module Google
|
|
3512
3522
|
class ResolveAccessProposalRequest
|
3513
3523
|
include Google::Apis::Core::Hashable
|
3514
3524
|
|
3515
|
-
# Required. The action to take on the
|
3525
|
+
# Required. The action to take on the access proposal.
|
3516
3526
|
# Corresponds to the JSON property `action`
|
3517
3527
|
# @return [String]
|
3518
3528
|
attr_accessor :action
|
3519
3529
|
|
3520
|
-
# Optional. The roles the approver has allowed, if any.
|
3521
|
-
#
|
3530
|
+
# Optional. The roles that the approver has allowed, if any. For more
|
3531
|
+
# information, see [Roles and permissions](https://developers.google.com/
|
3532
|
+
# workspace/drive/api/guides/ref-roles). Note: This field is required for the `
|
3533
|
+
# ACCEPT` action.
|
3522
3534
|
# Corresponds to the JSON property `role`
|
3523
3535
|
# @return [Array<String>]
|
3524
3536
|
attr_accessor :role
|
3525
3537
|
|
3526
|
-
# Optional. Whether to send an email to the requester when the
|
3527
|
-
# denied or accepted.
|
3538
|
+
# Optional. Whether to send an email to the requester when the access proposal
|
3539
|
+
# is denied or accepted.
|
3528
3540
|
# Corresponds to the JSON property `sendNotification`
|
3529
3541
|
# @return [Boolean]
|
3530
3542
|
attr_accessor :send_notification
|
3531
3543
|
alias_method :send_notification?, :send_notification
|
3532
3544
|
|
3533
3545
|
# Optional. Indicates the view for this access proposal. This should only be set
|
3534
|
-
# when the proposal belongs to a view. `published` is
|
3546
|
+
# when the proposal belongs to a view. Only `published` is supported.
|
3535
3547
|
# Corresponds to the JSON property `view`
|
3536
3548
|
# @return [String]
|
3537
3549
|
attr_accessor :view
|
@@ -16,13 +16,13 @@ module Google
|
|
16
16
|
module Apis
|
17
17
|
module DriveV3
|
18
18
|
# Version of the google-apis-drive_v3 gem
|
19
|
-
GEM_VERSION = "0.
|
19
|
+
GEM_VERSION = "0.71.0"
|
20
20
|
|
21
21
|
# Version of the code generator used to generate this client
|
22
22
|
GENERATOR_VERSION = "0.18.0"
|
23
23
|
|
24
24
|
# Revision of the discovery document this client was generated from
|
25
|
-
REVISION = "
|
25
|
+
REVISION = "20250910"
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|
@@ -82,11 +82,13 @@ module Google
|
|
82
82
|
execute_or_queue_command(command, &block)
|
83
83
|
end
|
84
84
|
|
85
|
-
# Retrieves an
|
85
|
+
# Retrieves an access proposal by ID. For more information, see [Manage pending
|
86
|
+
# access proposals](https://developers.google.com/workspace/drive/api/guides/
|
87
|
+
# pending-access).
|
86
88
|
# @param [String] file_id
|
87
|
-
# Required. The
|
89
|
+
# Required. The ID of the item the request is on.
|
88
90
|
# @param [String] proposal_id
|
89
|
-
# Required. The
|
91
|
+
# Required. The ID of the access proposal to resolve.
|
90
92
|
# @param [String] fields
|
91
93
|
# Selector specifying which fields to include in a partial response.
|
92
94
|
# @param [String] quota_user
|
@@ -115,12 +117,14 @@ module Google
|
|
115
117
|
execute_or_queue_command(command, &block)
|
116
118
|
end
|
117
119
|
|
118
|
-
# List the
|
119
|
-
#
|
120
|
+
# List the access proposals on a file. For more information, see [Manage pending
|
121
|
+
# access proposals](https://developers.google.com/workspace/drive/api/guides/
|
122
|
+
# pending-access). Note: Only approvers are able to list access proposals on a
|
123
|
+
# file. If the user isn't an approver, a 403 error is returned.
|
120
124
|
# @param [String] file_id
|
121
|
-
# Required. The
|
125
|
+
# Required. The ID of the item the request is on.
|
122
126
|
# @param [Fixnum] page_size
|
123
|
-
# Optional. The number of results per page
|
127
|
+
# Optional. The number of results per page.
|
124
128
|
# @param [String] page_token
|
125
129
|
# Optional. The continuation token on the list of access requests.
|
126
130
|
# @param [String] fields
|
@@ -152,11 +156,13 @@ module Google
|
|
152
156
|
execute_or_queue_command(command, &block)
|
153
157
|
end
|
154
158
|
|
155
|
-
#
|
159
|
+
# Approves or denies an access proposal. For more information, see [Manage
|
160
|
+
# pending access proposals](https://developers.google.com/workspace/drive/api/
|
161
|
+
# guides/pending-access).
|
156
162
|
# @param [String] file_id
|
157
|
-
# Required. The
|
163
|
+
# Required. The ID of the item the request is on.
|
158
164
|
# @param [String] proposal_id
|
159
|
-
# Required. The
|
165
|
+
# Required. The ID of the access proposal to resolve.
|
160
166
|
# @param [Google::Apis::DriveV3::ResolveAccessProposalRequest] resolve_access_proposal_request_object
|
161
167
|
# @param [String] fields
|
162
168
|
# Selector specifying which fields to include in a partial response.
|
@@ -966,12 +972,13 @@ module Google
|
|
966
972
|
end
|
967
973
|
|
968
974
|
# Creates a copy of a file and applies any requested updates with patch
|
969
|
-
# semantics.
|
975
|
+
# semantics. For more information, see [Create and manage files](https://
|
976
|
+
# developers.google.com/workspace/drive/api/guides/create-file).
|
970
977
|
# @param [String] file_id
|
971
978
|
# The ID of the file.
|
972
979
|
# @param [Google::Apis::DriveV3::File] file_object
|
973
980
|
# @param [Boolean] enforce_single_parent
|
974
|
-
# Deprecated
|
981
|
+
# Deprecated: Copying files into multiple folders is no longer supported. Use
|
975
982
|
# shortcuts instead.
|
976
983
|
# @param [Boolean] ignore_default_visibility
|
977
984
|
# Whether to ignore the domain's default visibility settings for the created
|
@@ -983,9 +990,9 @@ module Google
|
|
983
990
|
# the response.
|
984
991
|
# @param [String] include_permissions_for_view
|
985
992
|
# Specifies which additional view's permissions to include in the response. Only
|
986
|
-
#
|
993
|
+
# `published` is supported.
|
987
994
|
# @param [Boolean] keep_revision_forever
|
988
|
-
# Whether to set the
|
995
|
+
# Whether to set the `keepForever` field in the new head revision. This is only
|
989
996
|
# applicable to files with binary content in Google Drive. Only 200 revisions
|
990
997
|
# for the file can be kept forever. If the limit is reached, try deleting pinned
|
991
998
|
# revisions.
|
@@ -1032,26 +1039,28 @@ module Google
|
|
1032
1039
|
execute_or_queue_command(command, &block)
|
1033
1040
|
end
|
1034
1041
|
|
1035
|
-
# Creates a
|
1036
|
-
#
|
1037
|
-
#
|
1038
|
-
#
|
1039
|
-
#
|
1040
|
-
#
|
1041
|
-
#
|
1042
|
-
#
|
1043
|
-
#
|
1044
|
-
#
|
1045
|
-
#
|
1046
|
-
#
|
1047
|
-
#
|
1048
|
-
#
|
1049
|
-
#
|
1050
|
-
#
|
1051
|
-
#
|
1042
|
+
# Creates a file. For more information, see [Create and manage files](/
|
1043
|
+
# workspace/drive/api/guides/create-file). This method supports an */upload* URI
|
1044
|
+
# and accepts uploaded media with the following characteristics: - *Maximum file
|
1045
|
+
# size:* 5,120 GB - *Accepted Media MIME types:* `*/*` (Specify a valid MIME
|
1046
|
+
# type, rather than the literal `*/*` value. The literal `*/*` is only used to
|
1047
|
+
# indicate that any valid MIME type can be uploaded. For more information, see [
|
1048
|
+
# Google Workspace and Google Drive supported MIME types](/workspace/drive/api/
|
1049
|
+
# guides/mime-types).) For more information on uploading files, see [Upload file
|
1050
|
+
# data](/workspace/drive/api/guides/manage-uploads). Apps creating shortcuts
|
1051
|
+
# with the `create` method must specify the MIME type `application/vnd.google-
|
1052
|
+
# apps.shortcut`. Apps should specify a file extension in the `name` property
|
1053
|
+
# when inserting files with the API. For example, an operation to insert a JPEG
|
1054
|
+
# file should specify something like `"name": "cat.jpg"` in the metadata.
|
1055
|
+
# Subsequent `GET` requests include the read-only `fileExtension` property
|
1056
|
+
# populated with the extension originally specified in the `name` property. When
|
1057
|
+
# a Google Drive user requests to download a file, or when the file is
|
1058
|
+
# downloaded through the sync client, Drive builds a full filename (with
|
1059
|
+
# extension) based on the name. In cases where the extension is missing, Drive
|
1060
|
+
# attempts to determine the extension based on the file's MIME type.
|
1052
1061
|
# @param [Google::Apis::DriveV3::File] file_object
|
1053
1062
|
# @param [Boolean] enforce_single_parent
|
1054
|
-
# Deprecated
|
1063
|
+
# Deprecated: Creating files in multiple folders is no longer supported.
|
1055
1064
|
# @param [Boolean] ignore_default_visibility
|
1056
1065
|
# Whether to ignore the domain's default visibility settings for the created
|
1057
1066
|
# file. Domain administrators can choose to make all uploaded files visible to
|
@@ -1062,9 +1071,9 @@ module Google
|
|
1062
1071
|
# the response.
|
1063
1072
|
# @param [String] include_permissions_for_view
|
1064
1073
|
# Specifies which additional view's permissions to include in the response. Only
|
1065
|
-
#
|
1074
|
+
# `published` is supported.
|
1066
1075
|
# @param [Boolean] keep_revision_forever
|
1067
|
-
# Whether to set the
|
1076
|
+
# Whether to set the `keepForever` field in the new head revision. This is only
|
1068
1077
|
# applicable to files with binary content in Google Drive. Only 200 revisions
|
1069
1078
|
# for the file can be kept forever. If the limit is reached, try deleting pinned
|
1070
1079
|
# revisions.
|
@@ -1124,14 +1133,15 @@ module Google
|
|
1124
1133
|
end
|
1125
1134
|
|
1126
1135
|
# Permanently deletes a file owned by the user without moving it to the trash.
|
1127
|
-
#
|
1128
|
-
#
|
1129
|
-
#
|
1136
|
+
# For more information, see [Trash or delete files and folders](https://
|
1137
|
+
# developers.google.com/workspace/drive/api/guides/delete). If the file belongs
|
1138
|
+
# to a shared drive, the user must be an `organizer` on the parent folder. If
|
1139
|
+
# the target is a folder, all descendants owned by the user are also deleted.
|
1130
1140
|
# @param [String] file_id
|
1131
1141
|
# The ID of the file.
|
1132
1142
|
# @param [Boolean] enforce_single_parent
|
1133
|
-
# Deprecated: If an item
|
1134
|
-
# but the item itself
|
1143
|
+
# Deprecated: If an item isn't in a shared drive and its last parent is deleted
|
1144
|
+
# but the item itself isn't, the item will be placed under its owner's root.
|
1135
1145
|
# @param [Boolean] supports_all_drives
|
1136
1146
|
# Whether the requesting application supports both My Drives and shared drives.
|
1137
1147
|
# @param [Boolean] supports_team_drives
|
@@ -1164,16 +1174,18 @@ module Google
|
|
1164
1174
|
execute_or_queue_command(command, &block)
|
1165
1175
|
end
|
1166
1176
|
|
1167
|
-
# Downloads content of a file.
|
1168
|
-
#
|
1177
|
+
# Downloads the content of a file. For more information, see [Download and
|
1178
|
+
# export files](https://developers.google.com/workspace/drive/api/guides/manage-
|
1179
|
+
# downloads). Operations are valid for 24 hours from the time of creation.
|
1169
1180
|
# @param [String] file_id
|
1170
1181
|
# Required. The ID of the file to download.
|
1171
1182
|
# @param [String] mime_type
|
1172
1183
|
# Optional. The MIME type the file should be downloaded as. This field can only
|
1173
|
-
# be set when downloading Google Workspace documents.
|
1174
|
-
# Google Workspace documents](/
|
1175
|
-
#
|
1176
|
-
# with a default MIME type. The default MIME type might change in
|
1184
|
+
# be set when downloading Google Workspace documents. For a list of supported
|
1185
|
+
# MIME types, see [Export MIME types for Google Workspace documents](/workspace/
|
1186
|
+
# drive/api/guides/ref-export-formats). If not set, a Google Workspace document
|
1187
|
+
# is downloaded with a default MIME type. The default MIME type might change in
|
1188
|
+
# the future.
|
1177
1189
|
# @param [String] revision_id
|
1178
1190
|
# Optional. The revision ID of the file to download. This field can only be set
|
1179
1191
|
# when downloading blob files, Google Docs, and Google Sheets. Returns `
|
@@ -1208,12 +1220,14 @@ module Google
|
|
1208
1220
|
execute_or_queue_command(command, &block)
|
1209
1221
|
end
|
1210
1222
|
|
1211
|
-
# Permanently deletes all of the user's trashed files.
|
1223
|
+
# Permanently deletes all of the user's trashed files. For more information, see
|
1224
|
+
# [Trash or delete files and folders](https://developers.google.com/workspace/
|
1225
|
+
# drive/api/guides/delete).
|
1212
1226
|
# @param [String] drive_id
|
1213
1227
|
# If set, empties the trash of the provided shared drive.
|
1214
1228
|
# @param [Boolean] enforce_single_parent
|
1215
|
-
# Deprecated: If an item
|
1216
|
-
# but the item itself
|
1229
|
+
# Deprecated: If an item isn't in a shared drive and its last parent is deleted
|
1230
|
+
# but the item itself isn't, the item will be placed under its owner's root.
|
1217
1231
|
# @param [String] fields
|
1218
1232
|
# Selector specifying which fields to include in a partial response.
|
1219
1233
|
# @param [String] quota_user
|
@@ -1241,11 +1255,15 @@ module Google
|
|
1241
1255
|
end
|
1242
1256
|
|
1243
1257
|
# Exports a Google Workspace document to the requested MIME type and returns
|
1244
|
-
# exported byte content.
|
1258
|
+
# exported byte content. For more information, see [Download and export files](
|
1259
|
+
# https://developers.google.com/workspace/drive/api/guides/manage-downloads).
|
1260
|
+
# Note that the exported content is limited to 10 MB.
|
1245
1261
|
# @param [String] file_id
|
1246
1262
|
# The ID of the file.
|
1247
1263
|
# @param [String] mime_type
|
1248
|
-
# Required. The MIME type of the format requested for this export.
|
1264
|
+
# Required. The MIME type of the format requested for this export. For a list of
|
1265
|
+
# supported MIME types, see [Export MIME types for Google Workspace documents](/
|
1266
|
+
# workspace/drive/api/guides/ref-export-formats).
|
1249
1267
|
# @param [String] fields
|
1250
1268
|
# Selector specifying which fields to include in a partial response.
|
1251
1269
|
# @param [String] quota_user
|
@@ -1280,15 +1298,21 @@ module Google
|
|
1280
1298
|
end
|
1281
1299
|
|
1282
1300
|
# Generates a set of file IDs which can be provided in create or copy requests.
|
1301
|
+
# For more information, see [Create and manage files](https://developers.google.
|
1302
|
+
# com/workspace/drive/api/guides/create-file).
|
1283
1303
|
# @param [Fixnum] count
|
1284
1304
|
# The number of IDs to return.
|
1285
1305
|
# @param [String] space
|
1286
|
-
# The space in which the IDs can be used to create
|
1287
|
-
#
|
1306
|
+
# The space in which the IDs can be used to create files. Supported values are `
|
1307
|
+
# drive` and `appDataFolder`. (Default: `drive`.) For more information, see [
|
1308
|
+
# File organization](https://developers.google.com/workspace/drive/api/guides/
|
1309
|
+
# about-files#file-organization).
|
1288
1310
|
# @param [String] type
|
1289
|
-
# The type of items which the IDs can be used for. Supported values are
|
1290
|
-
# and
|
1291
|
-
# space
|
1311
|
+
# The type of items which the IDs can be used for. Supported values are `files`
|
1312
|
+
# and `shortcuts`. Note that `shortcuts` are only supported in the `drive` `
|
1313
|
+
# space`. (Default: `files`.) For more information, see [File organization](
|
1314
|
+
# https://developers.google.com/workspace/drive/api/guides/about-files#file-
|
1315
|
+
# organization).
|
1292
1316
|
# @param [String] fields
|
1293
1317
|
# Selector specifying which fields to include in a partial response.
|
1294
1318
|
# @param [String] quota_user
|
@@ -1318,12 +1342,14 @@ module Google
|
|
1318
1342
|
execute_or_queue_command(command, &block)
|
1319
1343
|
end
|
1320
1344
|
|
1321
|
-
# Gets a file's metadata or content by ID.
|
1322
|
-
#
|
1323
|
-
#
|
1324
|
-
#
|
1325
|
-
#
|
1326
|
-
#
|
1345
|
+
# Gets a file's metadata or content by ID. For more information, see [Search
|
1346
|
+
# for files and folders](/workspace/drive/api/guides/search-files). If you
|
1347
|
+
# provide the URL parameter `alt=media`, then the response includes the file
|
1348
|
+
# contents in the response body. Downloading content with `alt=media` only works
|
1349
|
+
# if the file is stored in Drive. To download Google Docs, Sheets, and Slides
|
1350
|
+
# use [`files.export`](/workspace/drive/api/reference/rest/v3/files/export)
|
1351
|
+
# instead. For more information, see [Download and export files](/workspace/
|
1352
|
+
# drive/api/guides/manage-downloads).
|
1327
1353
|
# @param [String] file_id
|
1328
1354
|
# The ID of the file.
|
1329
1355
|
# @param [Boolean] acknowledge_abuse
|
@@ -1336,7 +1362,7 @@ module Google
|
|
1336
1362
|
# the response.
|
1337
1363
|
# @param [String] include_permissions_for_view
|
1338
1364
|
# Specifies which additional view's permissions to include in the response. Only
|
1339
|
-
#
|
1365
|
+
# `published` is supported.
|
1340
1366
|
# @param [Boolean] supports_all_drives
|
1341
1367
|
# Whether the requesting application supports both My Drives and shared drives.
|
1342
1368
|
# @param [Boolean] supports_team_drives
|
@@ -1380,19 +1406,21 @@ module Google
|
|
1380
1406
|
execute_or_queue_command(command, &block)
|
1381
1407
|
end
|
1382
1408
|
|
1383
|
-
# Lists the user's files.
|
1384
|
-
# search
|
1385
|
-
#
|
1386
|
-
#
|
1387
|
-
#
|
1388
|
-
#
|
1409
|
+
# Lists the user's files. For more information, see [Search for files and
|
1410
|
+
# folders](/workspace/drive/api/guides/search-files). This method accepts the `q`
|
1411
|
+
# parameter, which is a search query combining one or more search terms. This
|
1412
|
+
# method returns *all* files by default, including trashed files. If you don't
|
1413
|
+
# want trashed files to appear in the list, use the `trashed=false` query
|
1414
|
+
# parameter to remove trashed files from the results.
|
1389
1415
|
# @param [String] corpora
|
1390
|
-
# Bodies of items (files
|
1391
|
-
# are
|
1392
|
-
# allDrives
|
1393
|
-
# can change depending on the filter set through the
|
1416
|
+
# Bodies of items (files or documents) to which the query applies. Supported
|
1417
|
+
# bodies are: * `user` * `domain` * `drive` * `allDrives` Prefer `user` or `
|
1418
|
+
# drive` to `allDrives` for efficiency. By default, corpora is set to `user`.
|
1419
|
+
# However, this can change depending on the filter set through the `q` parameter.
|
1420
|
+
# For more information, see [File organization](https://developers.google.com/
|
1421
|
+
# workspace/drive/api/guides/about-files#file-organization).
|
1394
1422
|
# @param [String] corpus
|
1395
|
-
# Deprecated: The source of files to list. Use
|
1423
|
+
# Deprecated: The source of files to list. Use `corpora` instead.
|
1396
1424
|
# @param [String] drive_id
|
1397
1425
|
# ID of the shared drive to search.
|
1398
1426
|
# @param [Boolean] include_items_from_all_drives
|
@@ -1402,7 +1430,7 @@ module Google
|
|
1402
1430
|
# the response.
|
1403
1431
|
# @param [String] include_permissions_for_view
|
1404
1432
|
# Specifies which additional view's permissions to include in the response. Only
|
1405
|
-
#
|
1433
|
+
# `published` is supported.
|
1406
1434
|
# @param [Boolean] include_team_drive_items
|
1407
1435
|
# Deprecated: Use `includeItemsFromAllDrives` instead.
|
1408
1436
|
# @param [String] order_by
|
@@ -1418,20 +1446,22 @@ module Google
|
|
1418
1446
|
# sharedWithMeTime`: When the file was shared with the user, if applicable. * `
|
1419
1447
|
# starred`: Whether the user has starred the file. * `viewedByMeTime`: The last
|
1420
1448
|
# time the file was viewed by the user. Each key sorts ascending by default, but
|
1421
|
-
# can be reversed with the
|
1449
|
+
# can be reversed with the `desc` modifier. Example usage: `?orderBy=folder,
|
1422
1450
|
# modifiedTime desc,name`.
|
1423
1451
|
# @param [Fixnum] page_size
|
1424
1452
|
# The maximum number of files to return per page. Partial or empty result pages
|
1425
1453
|
# are possible even before the end of the files list has been reached.
|
1426
1454
|
# @param [String] page_token
|
1427
1455
|
# The token for continuing a previous list request on the next page. This should
|
1428
|
-
# be set to the value of
|
1456
|
+
# be set to the value of `nextPageToken` from the previous response.
|
1429
1457
|
# @param [String] q
|
1430
|
-
# A query for filtering the file results.
|
1431
|
-
#
|
1458
|
+
# A query for filtering the file results. For supported syntax, see [Search for
|
1459
|
+
# files and folders](/workspace/drive/api/guides/search-files).
|
1432
1460
|
# @param [String] spaces
|
1433
1461
|
# A comma-separated list of spaces to query within the corpora. Supported values
|
1434
|
-
# are
|
1462
|
+
# are `drive` and `appDataFolder`. For more information, see [File organization](
|
1463
|
+
# https://developers.google.com/workspace/drive/api/guides/about-files#file-
|
1464
|
+
# organization).
|
1435
1465
|
# @param [Boolean] supports_all_drives
|
1436
1466
|
# Whether the requesting application supports both My Drives and shared drives.
|
1437
1467
|
# @param [Boolean] supports_team_drives
|
@@ -1479,14 +1509,15 @@ module Google
|
|
1479
1509
|
execute_or_queue_command(command, &block)
|
1480
1510
|
end
|
1481
1511
|
|
1482
|
-
# Lists the labels on a file.
|
1512
|
+
# Lists the labels on a file. For more information, see [List labels on a file](
|
1513
|
+
# https://developers.google.com/workspace/drive/api/guides/list-labels).
|
1483
1514
|
# @param [String] file_id
|
1484
1515
|
# The ID for the file.
|
1485
1516
|
# @param [Fixnum] max_results
|
1486
1517
|
# The maximum number of labels to return per page. When not set, defaults to 100.
|
1487
1518
|
# @param [String] page_token
|
1488
1519
|
# The token for continuing a previous list request on the next page. This should
|
1489
|
-
# be set to the value of
|
1520
|
+
# be set to the value of `nextPageToken` from the previous response.
|
1490
1521
|
# @param [String] fields
|
1491
1522
|
# Selector specifying which fields to include in a partial response.
|
1492
1523
|
# @param [String] quota_user
|
@@ -1516,8 +1547,9 @@ module Google
|
|
1516
1547
|
execute_or_queue_command(command, &block)
|
1517
1548
|
end
|
1518
1549
|
|
1519
|
-
# Modifies the set of labels applied to a file.
|
1520
|
-
#
|
1550
|
+
# Modifies the set of labels applied to a file. For more information, see [Set a
|
1551
|
+
# label field on a file](https://developers.google.com/workspace/drive/api/
|
1552
|
+
# guides/set-label). Returns a list of the labels that were added or modified.
|
1521
1553
|
# @param [String] file_id
|
1522
1554
|
# The ID of the file to which the labels belong.
|
1523
1555
|
# @param [Google::Apis::DriveV3::ModifyLabelsRequest] modify_labels_request_object
|
@@ -1550,16 +1582,17 @@ module Google
|
|
1550
1582
|
execute_or_queue_command(command, &block)
|
1551
1583
|
end
|
1552
1584
|
|
1553
|
-
# Updates a file's metadata
|
1585
|
+
# Updates a file's metadata, content, or both. When calling this method, only
|
1554
1586
|
# populate fields in the request that you want to modify. When updating fields,
|
1555
1587
|
# some fields might be changed automatically, such as `modifiedDate`. This
|
1556
1588
|
# method supports patch semantics. This method supports an */upload* URI and
|
1557
1589
|
# accepts uploaded media with the following characteristics: - *Maximum file
|
1558
|
-
# size:* 5,120 GB - *Accepted Media MIME types
|
1590
|
+
# size:* 5,120 GB - *Accepted Media MIME types:* `*/*` (Specify a valid MIME
|
1559
1591
|
# type, rather than the literal `*/*` value. The literal `*/*` is only used to
|
1560
|
-
# indicate that any valid MIME type can be uploaded. For more information
|
1561
|
-
#
|
1562
|
-
#
|
1592
|
+
# indicate that any valid MIME type can be uploaded. For more information, see [
|
1593
|
+
# Google Workspace and Google Drive supported MIME types](/workspace/drive/api/
|
1594
|
+
# guides/mime-types).) For more information on uploading files, see [Upload file
|
1595
|
+
# data](/workspace/drive/api/guides/manage-uploads).
|
1563
1596
|
# @param [String] file_id
|
1564
1597
|
# The ID of the file.
|
1565
1598
|
# @param [Google::Apis::DriveV3::File] file_object
|
@@ -1573,9 +1606,9 @@ module Google
|
|
1573
1606
|
# the response.
|
1574
1607
|
# @param [String] include_permissions_for_view
|
1575
1608
|
# Specifies which additional view's permissions to include in the response. Only
|
1576
|
-
#
|
1609
|
+
# `published` is supported.
|
1577
1610
|
# @param [Boolean] keep_revision_forever
|
1578
|
-
# Whether to set the
|
1611
|
+
# Whether to set the `keepForever` field in the new head revision. This is only
|
1579
1612
|
# applicable to files with binary content in Google Drive. Only 200 revisions
|
1580
1613
|
# for the file can be kept forever. If the limit is reached, try deleting pinned
|
1581
1614
|
# revisions.
|
@@ -1638,7 +1671,9 @@ module Google
|
|
1638
1671
|
execute_or_queue_command(command, &block)
|
1639
1672
|
end
|
1640
1673
|
|
1641
|
-
# Subscribes to changes to a file.
|
1674
|
+
# Subscribes to changes to a file. For more information, see [Notifications for
|
1675
|
+
# resource changes](https://developers.google.com/workspace/drive/api/guides/
|
1676
|
+
# push).
|
1642
1677
|
# @param [String] file_id
|
1643
1678
|
# The ID of the file.
|
1644
1679
|
# @param [Google::Apis::DriveV3::Channel] channel_object
|
@@ -1652,7 +1687,7 @@ module Google
|
|
1652
1687
|
# the response.
|
1653
1688
|
# @param [String] include_permissions_for_view
|
1654
1689
|
# Specifies which additional view's permissions to include in the response. Only
|
1655
|
-
#
|
1690
|
+
# `published` is supported.
|
1656
1691
|
# @param [Boolean] supports_all_drives
|
1657
1692
|
# Whether the requesting application supports both My Drives and shared drives.
|
1658
1693
|
# @param [Boolean] supports_team_drives
|
@@ -1741,7 +1776,7 @@ module Google
|
|
1741
1776
|
# prior parents removed. If set to `false`, parents are not changed.
|
1742
1777
|
# @param [Boolean] send_notification_email
|
1743
1778
|
# Whether to send a notification email when sharing to users or groups. This
|
1744
|
-
# defaults to true for users and groups, and is not allowed for other requests.
|
1779
|
+
# defaults to `true` for users and groups, and is not allowed for other requests.
|
1745
1780
|
# It must not be disabled for ownership transfers.
|
1746
1781
|
# @param [Boolean] supports_all_drives
|
1747
1782
|
# Whether the requesting application supports both My Drives and shared drives.
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-apis-drive_v3
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.71.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Google LLC
|
@@ -57,7 +57,7 @@ licenses:
|
|
57
57
|
metadata:
|
58
58
|
bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
|
59
59
|
changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-drive_v3/CHANGELOG.md
|
60
|
-
documentation_uri: https://googleapis.dev/ruby/google-apis-drive_v3/v0.
|
60
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-drive_v3/v0.71.0
|
61
61
|
source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-drive_v3
|
62
62
|
rdoc_options: []
|
63
63
|
require_paths:
|