google-apis-drive_v3 0.42.0 → 0.44.0
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3d87d5f18da24b09c24ba98ce66ec651a87e07eb853b6f32b575262fafcdc3a6
|
4
|
+
data.tar.gz: 0b00b782aaf881aeaac080bbc8ae2e8ec43579dd2ab6d27f5f538ca6ab926361
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4810dcc45b68cb5a2a50caccc062fd374d59688a34efe62de15276de57ded60004d8dc552fcba3adba64e03122f32ed2ddc4df02c0382e5499a8ac05215ae93b
|
7
|
+
data.tar.gz: 6cfa28820c6bbb73fbf1bb670723171be6d4c50ae96c650a08b6a9c80f6102cec26c3b411b733237a9db38d418571bf4a034475258eb69ea29311e7fe195f979
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,13 @@
|
|
1
1
|
# Release history for google-apis-drive_v3
|
2
2
|
|
3
|
+
### v0.44.0 (2023-08-27)
|
4
|
+
|
5
|
+
* Regenerated from discovery document revision 20230822
|
6
|
+
|
7
|
+
### v0.43.0 (2023-07-23)
|
8
|
+
|
9
|
+
* Regenerated from discovery document revision 20230714
|
10
|
+
|
3
11
|
### v0.42.0 (2023-06-18)
|
4
12
|
|
5
13
|
* Regenerated from discovery document revision 20230610
|
@@ -226,7 +226,9 @@ module Google
|
|
226
226
|
# @return [String]
|
227
227
|
attr_accessor :change_type
|
228
228
|
|
229
|
-
# Representation of a shared drive.
|
229
|
+
# Representation of a shared drive. Some resource methods (such as `drives.
|
230
|
+
# update`) require a `driveId`. Use the `drives.list` method to retrieve the ID
|
231
|
+
# for a shared drive.
|
230
232
|
# Corresponds to the JSON property `drive`
|
231
233
|
# @return [Google::Apis::DriveV3::Drive]
|
232
234
|
attr_accessor :drive
|
@@ -236,7 +238,8 @@ module Google
|
|
236
238
|
# @return [String]
|
237
239
|
attr_accessor :drive_id
|
238
240
|
|
239
|
-
# The metadata for a file.
|
241
|
+
# The metadata for a file. Some resource methods (such as `files.update`)
|
242
|
+
# require a `fileId`. Use the `files.list` method to retrieve the ID for a file.
|
240
243
|
# Corresponds to the JSON property `file`
|
241
244
|
# @return [Google::Apis::DriveV3::File]
|
242
245
|
attr_accessor :file
|
@@ -419,7 +422,9 @@ module Google
|
|
419
422
|
end
|
420
423
|
end
|
421
424
|
|
422
|
-
# A comment on a file.
|
425
|
+
# A comment on a file. Some resource methods (such as `comments.update`) require
|
426
|
+
# a `commentId`. Use the `comments.list` method to retrieve the ID for a comment
|
427
|
+
# in a file.
|
423
428
|
class Comment
|
424
429
|
include Google::Apis::Core::Hashable
|
425
430
|
|
@@ -583,6 +588,14 @@ module Google
|
|
583
588
|
class ContentRestriction
|
584
589
|
include Google::Apis::Core::Hashable
|
585
590
|
|
591
|
+
# Whether the content restriction can only be modified or removed by a user who
|
592
|
+
# owns the file. For files in shared drives, any user with `organizer`
|
593
|
+
# capabilities can modify or remove this content restriction.
|
594
|
+
# Corresponds to the JSON property `ownerRestricted`
|
595
|
+
# @return [Boolean]
|
596
|
+
attr_accessor :owner_restricted
|
597
|
+
alias_method :owner_restricted?, :owner_restricted
|
598
|
+
|
586
599
|
# Whether the content of the file is read-only. If a file is read-only, a new
|
587
600
|
# revision of the file may not be added, comments may not be added or modified,
|
588
601
|
# and the title of the file may not be modified.
|
@@ -620,6 +633,7 @@ module Google
|
|
620
633
|
|
621
634
|
# Update properties of this object
|
622
635
|
def update!(**args)
|
636
|
+
@owner_restricted = args[:owner_restricted] if args.key?(:owner_restricted)
|
623
637
|
@read_only = args[:read_only] if args.key?(:read_only)
|
624
638
|
@reason = args[:reason] if args.key?(:reason)
|
625
639
|
@restricting_user = args[:restricting_user] if args.key?(:restricting_user)
|
@@ -628,7 +642,9 @@ module Google
|
|
628
642
|
end
|
629
643
|
end
|
630
644
|
|
631
|
-
# Representation of a shared drive.
|
645
|
+
# Representation of a shared drive. Some resource methods (such as `drives.
|
646
|
+
# update`) require a `driveId`. Use the `drives.list` method to retrieve the ID
|
647
|
+
# for a shared drive.
|
632
648
|
class Drive
|
633
649
|
include Google::Apis::Core::Hashable
|
634
650
|
|
@@ -1042,7 +1058,8 @@ module Google
|
|
1042
1058
|
end
|
1043
1059
|
end
|
1044
1060
|
|
1045
|
-
# The metadata for a file.
|
1061
|
+
# The metadata for a file. Some resource methods (such as `files.update`)
|
1062
|
+
# require a `fileId`. Use the `files.list` method to retrieve the ID for a file.
|
1046
1063
|
class File
|
1047
1064
|
include Google::Apis::Core::Hashable
|
1048
1065
|
|
@@ -1615,19 +1632,33 @@ module Google
|
|
1615
1632
|
attr_accessor :can_modify_content
|
1616
1633
|
alias_method :can_modify_content?, :can_modify_content
|
1617
1634
|
|
1618
|
-
# Output only.
|
1619
|
-
#
|
1635
|
+
# Deprecated: Output only. Use one of `canModifyEditorContentRestriction`, `
|
1636
|
+
# canModifyOwnerContentRestriction` or `canRemoveContentRestriction`.
|
1620
1637
|
# Corresponds to the JSON property `canModifyContentRestriction`
|
1621
1638
|
# @return [Boolean]
|
1622
1639
|
attr_accessor :can_modify_content_restriction
|
1623
1640
|
alias_method :can_modify_content_restriction?, :can_modify_content_restriction
|
1624
1641
|
|
1642
|
+
# Output only. Whether the current user can add or modify content restrictions
|
1643
|
+
# on the file which are editor restricted.
|
1644
|
+
# Corresponds to the JSON property `canModifyEditorContentRestriction`
|
1645
|
+
# @return [Boolean]
|
1646
|
+
attr_accessor :can_modify_editor_content_restriction
|
1647
|
+
alias_method :can_modify_editor_content_restriction?, :can_modify_editor_content_restriction
|
1648
|
+
|
1625
1649
|
# Output only. Whether the current user can modify the labels on the file.
|
1626
1650
|
# Corresponds to the JSON property `canModifyLabels`
|
1627
1651
|
# @return [Boolean]
|
1628
1652
|
attr_accessor :can_modify_labels
|
1629
1653
|
alias_method :can_modify_labels?, :can_modify_labels
|
1630
1654
|
|
1655
|
+
# Output only. Whether the current user can add or modify content restrictions
|
1656
|
+
# which are owner restricted.
|
1657
|
+
# Corresponds to the JSON property `canModifyOwnerContentRestriction`
|
1658
|
+
# @return [Boolean]
|
1659
|
+
attr_accessor :can_modify_owner_content_restriction
|
1660
|
+
alias_method :can_modify_owner_content_restriction?, :can_modify_owner_content_restriction
|
1661
|
+
|
1631
1662
|
# Output only. Whether the current user can move children of this folder outside
|
1632
1663
|
# of the shared drive. This is false when the item is not a folder. Only
|
1633
1664
|
# populated for items in shared drives.
|
@@ -1733,6 +1764,13 @@ module Google
|
|
1733
1764
|
attr_accessor :can_remove_children
|
1734
1765
|
alias_method :can_remove_children?, :can_remove_children
|
1735
1766
|
|
1767
|
+
# Output only. Whether there is a content restriction on the file that can be
|
1768
|
+
# removed by the current user.
|
1769
|
+
# Corresponds to the JSON property `canRemoveContentRestriction`
|
1770
|
+
# @return [Boolean]
|
1771
|
+
attr_accessor :can_remove_content_restriction
|
1772
|
+
alias_method :can_remove_content_restriction?, :can_remove_content_restriction
|
1773
|
+
|
1736
1774
|
# Output only. Whether the current user can remove a parent from the item
|
1737
1775
|
# without adding another parent in the same request. Not populated for shared
|
1738
1776
|
# drive files.
|
@@ -1796,7 +1834,9 @@ module Google
|
|
1796
1834
|
@can_list_children = args[:can_list_children] if args.key?(:can_list_children)
|
1797
1835
|
@can_modify_content = args[:can_modify_content] if args.key?(:can_modify_content)
|
1798
1836
|
@can_modify_content_restriction = args[:can_modify_content_restriction] if args.key?(:can_modify_content_restriction)
|
1837
|
+
@can_modify_editor_content_restriction = args[:can_modify_editor_content_restriction] if args.key?(:can_modify_editor_content_restriction)
|
1799
1838
|
@can_modify_labels = args[:can_modify_labels] if args.key?(:can_modify_labels)
|
1839
|
+
@can_modify_owner_content_restriction = args[:can_modify_owner_content_restriction] if args.key?(:can_modify_owner_content_restriction)
|
1800
1840
|
@can_move_children_out_of_drive = args[:can_move_children_out_of_drive] if args.key?(:can_move_children_out_of_drive)
|
1801
1841
|
@can_move_children_out_of_team_drive = args[:can_move_children_out_of_team_drive] if args.key?(:can_move_children_out_of_team_drive)
|
1802
1842
|
@can_move_children_within_drive = args[:can_move_children_within_drive] if args.key?(:can_move_children_within_drive)
|
@@ -1812,6 +1852,7 @@ module Google
|
|
1812
1852
|
@can_read_revisions = args[:can_read_revisions] if args.key?(:can_read_revisions)
|
1813
1853
|
@can_read_team_drive = args[:can_read_team_drive] if args.key?(:can_read_team_drive)
|
1814
1854
|
@can_remove_children = args[:can_remove_children] if args.key?(:can_remove_children)
|
1855
|
+
@can_remove_content_restriction = args[:can_remove_content_restriction] if args.key?(:can_remove_content_restriction)
|
1815
1856
|
@can_remove_my_drive_parent = args[:can_remove_my_drive_parent] if args.key?(:can_remove_my_drive_parent)
|
1816
1857
|
@can_rename = args[:can_rename] if args.key?(:can_rename)
|
1817
1858
|
@can_share = args[:can_share] if args.key?(:can_share)
|
@@ -2535,8 +2576,10 @@ module Google
|
|
2535
2576
|
end
|
2536
2577
|
end
|
2537
2578
|
|
2538
|
-
# A permission for a file. A permission grants a user, group, domain or the
|
2539
|
-
# world access to a file or a folder hierarchy.
|
2579
|
+
# A permission for a file. A permission grants a user, group, domain, or the
|
2580
|
+
# world access to a file or a folder hierarchy. Some resource methods (such as `
|
2581
|
+
# permissions.update`) require a `permissionId`. Use the `permissions.list`
|
2582
|
+
# method to retrieve the ID for a file, folder, or shared drive.
|
2540
2583
|
class Permission
|
2541
2584
|
include Google::Apis::Core::Hashable
|
2542
2585
|
|
@@ -2784,7 +2827,9 @@ module Google
|
|
2784
2827
|
end
|
2785
2828
|
end
|
2786
2829
|
|
2787
|
-
# A reply to a comment on a file.
|
2830
|
+
# A reply to a comment on a file. Some resource methods (such as `replies.update`
|
2831
|
+
# ) require a `replyId`. Use the `replies.list` method to retrieve the ID for a
|
2832
|
+
# reply.
|
2788
2833
|
class Reply
|
2789
2834
|
include Google::Apis::Core::Hashable
|
2790
2835
|
|
@@ -2894,7 +2939,9 @@ module Google
|
|
2894
2939
|
end
|
2895
2940
|
end
|
2896
2941
|
|
2897
|
-
# The metadata for a revision to a file.
|
2942
|
+
# The metadata for a revision to a file. Some resource methods (such as `
|
2943
|
+
# revisions.update`) require a `revisionId`. Use the `revisions.list` method to
|
2944
|
+
# retrieve the ID for a revision.
|
2898
2945
|
class Revision
|
2899
2946
|
include Google::Apis::Core::Hashable
|
2900
2947
|
|
@@ -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.44.0"
|
20
20
|
|
21
21
|
# Version of the code generator used to generate this client
|
22
22
|
GENERATOR_VERSION = "0.12.0"
|
23
23
|
|
24
24
|
# Revision of the discovery document this client was generated from
|
25
|
-
REVISION = "
|
25
|
+
REVISION = "20230822"
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|
@@ -473,6 +473,7 @@ module Google
|
|
473
473
|
class ContentRestriction
|
474
474
|
# @private
|
475
475
|
class Representation < Google::Apis::Core::JsonRepresentation
|
476
|
+
property :owner_restricted, as: 'ownerRestricted'
|
476
477
|
property :read_only, as: 'readOnly'
|
477
478
|
property :reason, as: 'reason'
|
478
479
|
property :restricting_user, as: 'restrictingUser', class: Google::Apis::DriveV3::User, decorator: Google::Apis::DriveV3::User::Representation
|
@@ -667,7 +668,9 @@ module Google
|
|
667
668
|
property :can_list_children, as: 'canListChildren'
|
668
669
|
property :can_modify_content, as: 'canModifyContent'
|
669
670
|
property :can_modify_content_restriction, as: 'canModifyContentRestriction'
|
671
|
+
property :can_modify_editor_content_restriction, as: 'canModifyEditorContentRestriction'
|
670
672
|
property :can_modify_labels, as: 'canModifyLabels'
|
673
|
+
property :can_modify_owner_content_restriction, as: 'canModifyOwnerContentRestriction'
|
671
674
|
property :can_move_children_out_of_drive, as: 'canMoveChildrenOutOfDrive'
|
672
675
|
property :can_move_children_out_of_team_drive, as: 'canMoveChildrenOutOfTeamDrive'
|
673
676
|
property :can_move_children_within_drive, as: 'canMoveChildrenWithinDrive'
|
@@ -683,6 +686,7 @@ module Google
|
|
683
686
|
property :can_read_revisions, as: 'canReadRevisions'
|
684
687
|
property :can_read_team_drive, as: 'canReadTeamDrive'
|
685
688
|
property :can_remove_children, as: 'canRemoveChildren'
|
689
|
+
property :can_remove_content_restriction, as: 'canRemoveContentRestriction'
|
686
690
|
property :can_remove_my_drive_parent, as: 'canRemoveMyDriveParent'
|
687
691
|
property :can_rename, as: 'canRename'
|
688
692
|
property :can_share, as: 'canShare'
|
@@ -530,7 +530,7 @@ module Google
|
|
530
530
|
execute_or_queue_command(command, &block)
|
531
531
|
end
|
532
532
|
|
533
|
-
# Permanently deletes a shared drive for which the user is an organizer
|
533
|
+
# Permanently deletes a shared drive for which the user is an `organizer`. The
|
534
534
|
# shared drive cannot contain any untrashed items.
|
535
535
|
# @param [String] drive_id
|
536
536
|
# The ID of the shared drive.
|
@@ -903,9 +903,9 @@ module Google
|
|
903
903
|
end
|
904
904
|
|
905
905
|
# Permanently deletes a file owned by the user without moving it to the trash.
|
906
|
-
# If the file belongs to a shared drive the user must be an organizer on the
|
907
|
-
# parent. If the target is a folder, all descendants owned by the user
|
908
|
-
# deleted.
|
906
|
+
# If the file belongs to a shared drive, the user must be an `organizer` on the
|
907
|
+
# parent folder. If the target is a folder, all descendants owned by the user
|
908
|
+
# are also deleted.
|
909
909
|
# @param [String] file_id
|
910
910
|
# The ID of the file.
|
911
911
|
# @param [Boolean] enforce_single_parent
|
@@ -1205,7 +1205,7 @@ module Google
|
|
1205
1205
|
|
1206
1206
|
# Lists the labels on a file.
|
1207
1207
|
# @param [String] file_id
|
1208
|
-
# The ID for the file
|
1208
|
+
# The ID for the file.
|
1209
1209
|
# @param [Fixnum] max_results
|
1210
1210
|
# The maximum number of labels to return per page. When not set, defaults to 100.
|
1211
1211
|
# @param [String] page_token
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
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.44.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Google LLC
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-
|
11
|
+
date: 2023-08-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: google-apis-core
|
@@ -58,7 +58,7 @@ licenses:
|
|
58
58
|
metadata:
|
59
59
|
bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
|
60
60
|
changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-drive_v3/CHANGELOG.md
|
61
|
-
documentation_uri: https://googleapis.dev/ruby/google-apis-drive_v3/v0.
|
61
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-drive_v3/v0.44.0
|
62
62
|
source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-drive_v3
|
63
63
|
post_install_message:
|
64
64
|
rdoc_options: []
|
@@ -75,7 +75,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
75
75
|
- !ruby/object:Gem::Version
|
76
76
|
version: '0'
|
77
77
|
requirements: []
|
78
|
-
rubygems_version: 3.4.
|
78
|
+
rubygems_version: 3.4.19
|
79
79
|
signing_key:
|
80
80
|
specification_version: 4
|
81
81
|
summary: Simple REST client for Google Drive API V3
|