google-apis-drive_v3 0.41.0 → 0.43.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 +57 -15
- data/lib/google/apis/drive_v3/gem_version.rb +2 -2
- data/lib/google/apis/drive_v3/representations.rb +4 -0
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 61d287c235241f9c6f3ddd6067c5e8bf037046b84dd24f65caa94470769818e8
|
4
|
+
data.tar.gz: 7f814a90d1dea58a8955c765580658250be94c945a3c1c58c0757ac775b11a65
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 66ef2c50a40ed2128d7da658a3601974ef431b5ecbc79caff68a8001356ae0acb9b764d03349857e929fbf2cb09920d0961732a0ed3a86a0f3da51c6a6c6a39a
|
7
|
+
data.tar.gz: 76c8cf9c10d1c539f1666a20180f94efb6e1044031e5706478848552705f363a5ee80bf507f5ccfb926b3edcc9bba17433d8997d0ba0e9e24b97c7b619d89559
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,13 @@
|
|
1
1
|
# Release history for google-apis-drive_v3
|
2
2
|
|
3
|
+
### v0.43.0 (2023-07-23)
|
4
|
+
|
5
|
+
* Regenerated from discovery document revision 20230714
|
6
|
+
|
7
|
+
### v0.42.0 (2023-06-18)
|
8
|
+
|
9
|
+
* Regenerated from discovery document revision 20230610
|
10
|
+
|
3
11
|
### v0.41.0 (2023-06-11)
|
4
12
|
|
5
13
|
* Regenerated from discovery document revision 20230603
|
@@ -316,15 +316,14 @@ module Google
|
|
316
316
|
attr_accessor :kind
|
317
317
|
|
318
318
|
# The starting page token for future changes. This will be present only if the
|
319
|
-
# end of the current changes list has been reached.
|
319
|
+
# end of the current changes list has been reached. The page token doesn't
|
320
|
+
# expire.
|
320
321
|
# Corresponds to the JSON property `newStartPageToken`
|
321
322
|
# @return [String]
|
322
323
|
attr_accessor :new_start_page_token
|
323
324
|
|
324
325
|
# The page token for the next page of changes. This will be absent if the end of
|
325
|
-
# the changes list has been reached.
|
326
|
-
# should be discarded, and pagination should be restarted from the first page of
|
327
|
-
# results.
|
326
|
+
# the changes list has been reached. The page token doesn't expire.
|
328
327
|
# Corresponds to the JSON property `nextPageToken`
|
329
328
|
# @return [String]
|
330
329
|
attr_accessor :next_page_token
|
@@ -562,7 +561,8 @@ module Google
|
|
562
561
|
# The page token for the next page of comments. This will be absent if the end
|
563
562
|
# of the comments list has been reached. If the token is rejected for any reason,
|
564
563
|
# it should be discarded, and pagination should be restarted from the first
|
565
|
-
# page of results.
|
564
|
+
# page of results. The page token is typically valid for several hours. However,
|
565
|
+
# if new items are added or removed, your expected results might differ.
|
566
566
|
# Corresponds to the JSON property `nextPageToken`
|
567
567
|
# @return [String]
|
568
568
|
attr_accessor :next_page_token
|
@@ -583,6 +583,14 @@ module Google
|
|
583
583
|
class ContentRestriction
|
584
584
|
include Google::Apis::Core::Hashable
|
585
585
|
|
586
|
+
# Whether the content restriction can only be modified or removed by a user who
|
587
|
+
# owns the file. For files in shared drives, any user with `organizer`
|
588
|
+
# capabilities can modify or remove this content restriction.
|
589
|
+
# Corresponds to the JSON property `ownerRestricted`
|
590
|
+
# @return [Boolean]
|
591
|
+
attr_accessor :owner_restricted
|
592
|
+
alias_method :owner_restricted?, :owner_restricted
|
593
|
+
|
586
594
|
# Whether the content of the file is read-only. If a file is read-only, a new
|
587
595
|
# revision of the file may not be added, comments may not be added or modified,
|
588
596
|
# and the title of the file may not be modified.
|
@@ -620,6 +628,7 @@ module Google
|
|
620
628
|
|
621
629
|
# Update properties of this object
|
622
630
|
def update!(**args)
|
631
|
+
@owner_restricted = args[:owner_restricted] if args.key?(:owner_restricted)
|
623
632
|
@read_only = args[:read_only] if args.key?(:read_only)
|
624
633
|
@reason = args[:reason] if args.key?(:reason)
|
625
634
|
@restricting_user = args[:restricting_user] if args.key?(:restricting_user)
|
@@ -1024,7 +1033,8 @@ module Google
|
|
1024
1033
|
# The page token for the next page of shared drives. This will be absent if the
|
1025
1034
|
# end of the list has been reached. If the token is rejected for any reason, it
|
1026
1035
|
# should be discarded, and pagination should be restarted from the first page of
|
1027
|
-
# results.
|
1036
|
+
# results. The page token is typically valid for several hours. However, if new
|
1037
|
+
# items are added or removed, your expected results might differ.
|
1028
1038
|
# Corresponds to the JSON property `nextPageToken`
|
1029
1039
|
# @return [String]
|
1030
1040
|
attr_accessor :next_page_token
|
@@ -1614,19 +1624,33 @@ module Google
|
|
1614
1624
|
attr_accessor :can_modify_content
|
1615
1625
|
alias_method :can_modify_content?, :can_modify_content
|
1616
1626
|
|
1617
|
-
# Output only.
|
1618
|
-
#
|
1627
|
+
# Deprecated: Output only. Use one of `canModifyEditorContentRestriction`, `
|
1628
|
+
# canModifyOwnerContentRestriction` or `canRemoveContentRestriction`.
|
1619
1629
|
# Corresponds to the JSON property `canModifyContentRestriction`
|
1620
1630
|
# @return [Boolean]
|
1621
1631
|
attr_accessor :can_modify_content_restriction
|
1622
1632
|
alias_method :can_modify_content_restriction?, :can_modify_content_restriction
|
1623
1633
|
|
1634
|
+
# Output only. Whether the current user can add or modify content restrictions
|
1635
|
+
# on the file which are editor restricted.
|
1636
|
+
# Corresponds to the JSON property `canModifyEditorContentRestriction`
|
1637
|
+
# @return [Boolean]
|
1638
|
+
attr_accessor :can_modify_editor_content_restriction
|
1639
|
+
alias_method :can_modify_editor_content_restriction?, :can_modify_editor_content_restriction
|
1640
|
+
|
1624
1641
|
# Output only. Whether the current user can modify the labels on the file.
|
1625
1642
|
# Corresponds to the JSON property `canModifyLabels`
|
1626
1643
|
# @return [Boolean]
|
1627
1644
|
attr_accessor :can_modify_labels
|
1628
1645
|
alias_method :can_modify_labels?, :can_modify_labels
|
1629
1646
|
|
1647
|
+
# Output only. Whether the current user can add or modify content restrictions
|
1648
|
+
# which are owner restricted.
|
1649
|
+
# Corresponds to the JSON property `canModifyOwnerContentRestriction`
|
1650
|
+
# @return [Boolean]
|
1651
|
+
attr_accessor :can_modify_owner_content_restriction
|
1652
|
+
alias_method :can_modify_owner_content_restriction?, :can_modify_owner_content_restriction
|
1653
|
+
|
1630
1654
|
# Output only. Whether the current user can move children of this folder outside
|
1631
1655
|
# of the shared drive. This is false when the item is not a folder. Only
|
1632
1656
|
# populated for items in shared drives.
|
@@ -1732,6 +1756,13 @@ module Google
|
|
1732
1756
|
attr_accessor :can_remove_children
|
1733
1757
|
alias_method :can_remove_children?, :can_remove_children
|
1734
1758
|
|
1759
|
+
# Output only. Whether there is a content restriction on the file that can be
|
1760
|
+
# removed by the current user.
|
1761
|
+
# Corresponds to the JSON property `canRemoveContentRestriction`
|
1762
|
+
# @return [Boolean]
|
1763
|
+
attr_accessor :can_remove_content_restriction
|
1764
|
+
alias_method :can_remove_content_restriction?, :can_remove_content_restriction
|
1765
|
+
|
1735
1766
|
# Output only. Whether the current user can remove a parent from the item
|
1736
1767
|
# without adding another parent in the same request. Not populated for shared
|
1737
1768
|
# drive files.
|
@@ -1795,7 +1826,9 @@ module Google
|
|
1795
1826
|
@can_list_children = args[:can_list_children] if args.key?(:can_list_children)
|
1796
1827
|
@can_modify_content = args[:can_modify_content] if args.key?(:can_modify_content)
|
1797
1828
|
@can_modify_content_restriction = args[:can_modify_content_restriction] if args.key?(:can_modify_content_restriction)
|
1829
|
+
@can_modify_editor_content_restriction = args[:can_modify_editor_content_restriction] if args.key?(:can_modify_editor_content_restriction)
|
1798
1830
|
@can_modify_labels = args[:can_modify_labels] if args.key?(:can_modify_labels)
|
1831
|
+
@can_modify_owner_content_restriction = args[:can_modify_owner_content_restriction] if args.key?(:can_modify_owner_content_restriction)
|
1799
1832
|
@can_move_children_out_of_drive = args[:can_move_children_out_of_drive] if args.key?(:can_move_children_out_of_drive)
|
1800
1833
|
@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)
|
1801
1834
|
@can_move_children_within_drive = args[:can_move_children_within_drive] if args.key?(:can_move_children_within_drive)
|
@@ -1811,6 +1844,7 @@ module Google
|
|
1811
1844
|
@can_read_revisions = args[:can_read_revisions] if args.key?(:can_read_revisions)
|
1812
1845
|
@can_read_team_drive = args[:can_read_team_drive] if args.key?(:can_read_team_drive)
|
1813
1846
|
@can_remove_children = args[:can_remove_children] if args.key?(:can_remove_children)
|
1847
|
+
@can_remove_content_restriction = args[:can_remove_content_restriction] if args.key?(:can_remove_content_restriction)
|
1814
1848
|
@can_remove_my_drive_parent = args[:can_remove_my_drive_parent] if args.key?(:can_remove_my_drive_parent)
|
1815
1849
|
@can_rename = args[:can_rename] if args.key?(:can_rename)
|
1816
1850
|
@can_share = args[:can_share] if args.key?(:can_share)
|
@@ -2192,7 +2226,8 @@ module Google
|
|
2192
2226
|
# The page token for the next page of files. This will be absent if the end of
|
2193
2227
|
# the files list has been reached. If the token is rejected for any reason, it
|
2194
2228
|
# should be discarded, and pagination should be restarted from the first page of
|
2195
|
-
# results.
|
2229
|
+
# results. The page token is typically valid for several hours. However, if new
|
2230
|
+
# items are added or removed, your expected results might differ.
|
2196
2231
|
# Corresponds to the JSON property `nextPageToken`
|
2197
2232
|
# @return [String]
|
2198
2233
|
attr_accessor :next_page_token
|
@@ -2423,7 +2458,8 @@ module Google
|
|
2423
2458
|
# The page token for the next page of labels. This field will be absent if the
|
2424
2459
|
# end of the list has been reached. If the token is rejected for any reason, it
|
2425
2460
|
# should be discarded, and pagination should be restarted from the first page of
|
2426
|
-
# results.
|
2461
|
+
# results. The page token is typically valid for several hours. However, if new
|
2462
|
+
# items are added or removed, your expected results might differ.
|
2427
2463
|
# Corresponds to the JSON property `nextPageToken`
|
2428
2464
|
# @return [String]
|
2429
2465
|
attr_accessor :next_page_token
|
@@ -2756,7 +2792,9 @@ module Google
|
|
2756
2792
|
# The page token for the next page of permissions. This field will be absent if
|
2757
2793
|
# the end of the permissions list has been reached. If the token is rejected for
|
2758
2794
|
# any reason, it should be discarded, and pagination should be restarted from
|
2759
|
-
# the first page of results.
|
2795
|
+
# the first page of results. The page token is typically valid for several hours.
|
2796
|
+
# However, if new items are added or removed, your expected results might
|
2797
|
+
# differ.
|
2760
2798
|
# Corresponds to the JSON property `nextPageToken`
|
2761
2799
|
# @return [String]
|
2762
2800
|
attr_accessor :next_page_token
|
@@ -2865,7 +2903,8 @@ module Google
|
|
2865
2903
|
# The page token for the next page of replies. This will be absent if the end of
|
2866
2904
|
# the replies list has been reached. If the token is rejected for any reason, it
|
2867
2905
|
# should be discarded, and pagination should be restarted from the first page of
|
2868
|
-
# results.
|
2906
|
+
# results. The page token is typically valid for several hours. However, if new
|
2907
|
+
# items are added or removed, your expected results might differ.
|
2869
2908
|
# Corresponds to the JSON property `nextPageToken`
|
2870
2909
|
# @return [String]
|
2871
2910
|
attr_accessor :next_page_token
|
@@ -3013,7 +3052,8 @@ module Google
|
|
3013
3052
|
# The page token for the next page of revisions. This will be absent if the end
|
3014
3053
|
# of the revisions list has been reached. If the token is rejected for any
|
3015
3054
|
# reason, it should be discarded, and pagination should be restarted from the
|
3016
|
-
# first page of results.
|
3055
|
+
# first page of results. The page token is typically valid for several hours.
|
3056
|
+
# However, if new items are added or removed, your expected results might differ.
|
3017
3057
|
# Corresponds to the JSON property `nextPageToken`
|
3018
3058
|
# @return [String]
|
3019
3059
|
attr_accessor :next_page_token
|
@@ -3046,7 +3086,8 @@ module Google
|
|
3046
3086
|
# @return [String]
|
3047
3087
|
attr_accessor :kind
|
3048
3088
|
|
3049
|
-
# The starting page token for listing changes.
|
3089
|
+
# The starting page token for listing future changes. The page token doesn't
|
3090
|
+
# expire.
|
3050
3091
|
# Corresponds to the JSON property `startPageToken`
|
3051
3092
|
# @return [String]
|
3052
3093
|
attr_accessor :start_page_token
|
@@ -3443,7 +3484,8 @@ module Google
|
|
3443
3484
|
# The page token for the next page of Team Drives. This will be absent if the
|
3444
3485
|
# end of the Team Drives list has been reached. If the token is rejected for any
|
3445
3486
|
# reason, it should be discarded, and pagination should be restarted from the
|
3446
|
-
# first page of results.
|
3487
|
+
# first page of results. The page token is typically valid for several hours.
|
3488
|
+
# However, if new items are added or removed, your expected results might differ.
|
3447
3489
|
# Corresponds to the JSON property `nextPageToken`
|
3448
3490
|
# @return [String]
|
3449
3491
|
attr_accessor :next_page_token
|
@@ -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.43.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 = "20230714"
|
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'
|
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.43.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-07-23 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.43.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: []
|