google-apis-drive_v3 0.34.0 → 0.36.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: 2a8e9ee034a138adf347aef950c58dee504e2c114144e5753f716592e3663739
|
4
|
+
data.tar.gz: b83951624906fe76b14acdf7687a79d99660066a43f8e6adff043bc6fac72bc9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 70156f0f7d44c8ba21270ed07564921a5c64839af2668c65a2d56f9a1295305a4e11e587ef2e92890f7a85a4c993af7b6812a5e4d1395d1dca1cc59c90ab0003
|
7
|
+
data.tar.gz: 5f3e93df1bfe42374edfd761ef38dc4cb7d0779e3fb13fa92e8e0b24cc6c5d104f8c69d29f1e45bad5dfe2885dbdf74b3d662319d4fef6c79becf34b0198a0e6
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,13 @@
|
|
1
1
|
# Release history for google-apis-drive_v3
|
2
2
|
|
3
|
+
### v0.36.0 (2023-02-26)
|
4
|
+
|
5
|
+
* Regenerated from discovery document revision 20230219
|
6
|
+
|
7
|
+
### v0.35.0 (2023-02-15)
|
8
|
+
|
9
|
+
* Regenerated using generator version 0.12.0
|
10
|
+
|
3
11
|
### v0.34.0 (2023-02-12)
|
4
12
|
|
5
13
|
* Regenerated from discovery document revision 20230206
|
@@ -812,6 +812,13 @@ module Google
|
|
812
812
|
attr_accessor :can_change_drive_members_only_restriction
|
813
813
|
alias_method :can_change_drive_members_only_restriction?, :can_change_drive_members_only_restriction
|
814
814
|
|
815
|
+
# Whether the current user can change the
|
816
|
+
# sharingFoldersRequiresOrganizerPermission restriction of this shared drive.
|
817
|
+
# Corresponds to the JSON property `canChangeSharingFoldersRequiresOrganizerPermissionRestriction`
|
818
|
+
# @return [Boolean]
|
819
|
+
attr_accessor :can_change_sharing_folders_requires_organizer_permission_restriction
|
820
|
+
alias_method :can_change_sharing_folders_requires_organizer_permission_restriction?, :can_change_sharing_folders_requires_organizer_permission_restriction
|
821
|
+
|
815
822
|
# Whether the current user can comment on files in this shared drive.
|
816
823
|
# Corresponds to the JSON property `canComment`
|
817
824
|
# @return [Boolean]
|
@@ -911,6 +918,7 @@ module Google
|
|
911
918
|
@can_change_domain_users_only_restriction = args[:can_change_domain_users_only_restriction] if args.key?(:can_change_domain_users_only_restriction)
|
912
919
|
@can_change_drive_background = args[:can_change_drive_background] if args.key?(:can_change_drive_background)
|
913
920
|
@can_change_drive_members_only_restriction = args[:can_change_drive_members_only_restriction] if args.key?(:can_change_drive_members_only_restriction)
|
921
|
+
@can_change_sharing_folders_requires_organizer_permission_restriction = args[:can_change_sharing_folders_requires_organizer_permission_restriction] if args.key?(:can_change_sharing_folders_requires_organizer_permission_restriction)
|
914
922
|
@can_comment = args[:can_comment] if args.key?(:can_comment)
|
915
923
|
@can_copy = args[:can_copy] if args.key?(:can_copy)
|
916
924
|
@can_delete_children = args[:can_delete_children] if args.key?(:can_delete_children)
|
@@ -964,6 +972,13 @@ module Google
|
|
964
972
|
attr_accessor :drive_members_only
|
965
973
|
alias_method :drive_members_only?, :drive_members_only
|
966
974
|
|
975
|
+
# If true, only users with the organizer role can share folders. If false, users
|
976
|
+
# with either the organizer role or the file organizer role can share folders.
|
977
|
+
# Corresponds to the JSON property `sharingFoldersRequiresOrganizerPermission`
|
978
|
+
# @return [Boolean]
|
979
|
+
attr_accessor :sharing_folders_requires_organizer_permission
|
980
|
+
alias_method :sharing_folders_requires_organizer_permission?, :sharing_folders_requires_organizer_permission
|
981
|
+
|
967
982
|
def initialize(**args)
|
968
983
|
update!(**args)
|
969
984
|
end
|
@@ -974,6 +989,7 @@ module Google
|
|
974
989
|
@copy_requires_writer_permission = args[:copy_requires_writer_permission] if args.key?(:copy_requires_writer_permission)
|
975
990
|
@domain_users_only = args[:domain_users_only] if args.key?(:domain_users_only)
|
976
991
|
@drive_members_only = args[:drive_members_only] if args.key?(:drive_members_only)
|
992
|
+
@sharing_folders_requires_organizer_permission = args[:sharing_folders_requires_organizer_permission] if args.key?(:sharing_folders_requires_organizer_permission)
|
977
993
|
end
|
978
994
|
end
|
979
995
|
end
|
@@ -2504,7 +2520,7 @@ module Google
|
|
2504
2520
|
end
|
2505
2521
|
end
|
2506
2522
|
|
2507
|
-
# A permission for a file. A permission grants a user, group, domain or the
|
2523
|
+
# A permission for a file. A permission grants a user, group, domain, or the
|
2508
2524
|
# world access to a file or a folder hierarchy.
|
2509
2525
|
class Permission
|
2510
2526
|
include Google::Apis::Core::Hashable
|
@@ -2525,16 +2541,19 @@ module Google
|
|
2525
2541
|
|
2526
2542
|
# The "pretty" name of the value of the permission. The following is a list of
|
2527
2543
|
# examples for each type of permission:
|
2528
|
-
# - user - User's full name, as defined for their Google
|
2544
|
+
# - user - User's full name, as defined for their Google Account, such as "Joe
|
2529
2545
|
# Smith."
|
2530
2546
|
# - group - Name of the Google Group, such as "The Company Administrators."
|
2531
|
-
# - domain - String domain name, such as "
|
2547
|
+
# - domain - String domain name, such as "your-company.com."
|
2532
2548
|
# - anyone - No displayName is present.
|
2533
2549
|
# Corresponds to the JSON property `displayName`
|
2534
2550
|
# @return [String]
|
2535
2551
|
attr_accessor :display_name
|
2536
2552
|
|
2537
|
-
# The domain to which this permission refers.
|
2553
|
+
# The domain to which this permission refers. The following options are
|
2554
|
+
# currently allowed:
|
2555
|
+
# - The entire domain, such as "your-company.com."
|
2556
|
+
# - A target audience, such as "ID.audience.googledomains.com."
|
2538
2557
|
# Corresponds to the JSON property `domain`
|
2539
2558
|
# @return [String]
|
2540
2559
|
attr_accessor :domain
|
@@ -2546,10 +2565,10 @@ module Google
|
|
2546
2565
|
|
2547
2566
|
# The time at which this permission will expire (RFC 3339 date-time). Expiration
|
2548
2567
|
# times have the following restrictions:
|
2549
|
-
# - They cannot be set on shared drive items
|
2550
|
-
# - They can only be set on user and group permissions
|
2551
|
-
# - The time must be in the future
|
2552
|
-
# - The time cannot be more than
|
2568
|
+
# - They cannot be set on shared drive items.
|
2569
|
+
# - They can only be set on user and group permissions.
|
2570
|
+
# - The time must be in the future.
|
2571
|
+
# - The time cannot be more than one year in the future.
|
2553
2572
|
# Corresponds to the JSON property `expirationTime`
|
2554
2573
|
# @return [DateTime]
|
2555
2574
|
attr_accessor :expiration_time
|
@@ -2568,15 +2587,15 @@ module Google
|
|
2568
2587
|
attr_accessor :kind
|
2569
2588
|
|
2570
2589
|
# Whether the account associated with this permission is a pending owner. Only
|
2571
|
-
# populated for user type permissions for files that
|
2590
|
+
# populated for user type permissions for files that aren't in a shared drive.
|
2572
2591
|
# Corresponds to the JSON property `pendingOwner`
|
2573
2592
|
# @return [Boolean]
|
2574
2593
|
attr_accessor :pending_owner
|
2575
2594
|
alias_method :pending_owner?, :pending_owner
|
2576
2595
|
|
2577
2596
|
# Details of whether the permissions on this shared drive item are inherited or
|
2578
|
-
# directly on this item. This is an output-only field
|
2579
|
-
# shared drive items.
|
2597
|
+
# are directly on this item. This is an output-only field that's present only
|
2598
|
+
# for shared drive items.
|
2580
2599
|
# Corresponds to the JSON property `permissionDetails`
|
2581
2600
|
# @return [Array<Google::Apis::DriveV3::Permission::PermissionDetail>]
|
2582
2601
|
attr_accessor :permission_details
|
@@ -2609,7 +2628,7 @@ module Google
|
|
2609
2628
|
# - domain
|
2610
2629
|
# - anyone When creating a permission, if type is user or group, you must
|
2611
2630
|
# provide an emailAddress for the user or group. When type is domain, you must
|
2612
|
-
# provide a domain. There isn't extra information required for
|
2631
|
+
# provide a domain. There isn't extra information required for the anyone type.
|
2613
2632
|
# Corresponds to the JSON property `type`
|
2614
2633
|
# @return [String]
|
2615
2634
|
attr_accessor :type
|
@@ -2661,7 +2680,7 @@ module Google
|
|
2661
2680
|
attr_accessor :inherited_from
|
2662
2681
|
|
2663
2682
|
# The permission type for this user. While new values may be added in future,
|
2664
|
-
# the following are currently
|
2683
|
+
# the following are currently allowed:
|
2665
2684
|
# - file
|
2666
2685
|
# - member
|
2667
2686
|
# Corresponds to the JSON property `permissionType`
|
@@ -2669,7 +2688,7 @@ module Google
|
|
2669
2688
|
attr_accessor :permission_type
|
2670
2689
|
|
2671
2690
|
# The primary role for this user. While new values may be added in the future,
|
2672
|
-
# the following are currently
|
2691
|
+
# the following are currently allowed:
|
2673
2692
|
# - organizer
|
2674
2693
|
# - fileOrganizer
|
2675
2694
|
# - writer
|
@@ -3216,6 +3235,13 @@ module Google
|
|
3216
3235
|
attr_accessor :can_change_domain_users_only_restriction
|
3217
3236
|
alias_method :can_change_domain_users_only_restriction?, :can_change_domain_users_only_restriction
|
3218
3237
|
|
3238
|
+
# Whether the current user can change the
|
3239
|
+
# sharingFoldersRequiresOrganizerPermission restriction of this Team Drive.
|
3240
|
+
# Corresponds to the JSON property `canChangeSharingFoldersRequiresOrganizerPermissionRestriction`
|
3241
|
+
# @return [Boolean]
|
3242
|
+
attr_accessor :can_change_sharing_folders_requires_organizer_permission_restriction
|
3243
|
+
alias_method :can_change_sharing_folders_requires_organizer_permission_restriction?, :can_change_sharing_folders_requires_organizer_permission_restriction
|
3244
|
+
|
3219
3245
|
# Whether the current user can change the background of this Team Drive.
|
3220
3246
|
# Corresponds to the JSON property `canChangeTeamDriveBackground`
|
3221
3247
|
# @return [Boolean]
|
@@ -3331,6 +3357,7 @@ module Google
|
|
3331
3357
|
@can_add_children = args[:can_add_children] if args.key?(:can_add_children)
|
3332
3358
|
@can_change_copy_requires_writer_permission_restriction = args[:can_change_copy_requires_writer_permission_restriction] if args.key?(:can_change_copy_requires_writer_permission_restriction)
|
3333
3359
|
@can_change_domain_users_only_restriction = args[:can_change_domain_users_only_restriction] if args.key?(:can_change_domain_users_only_restriction)
|
3360
|
+
@can_change_sharing_folders_requires_organizer_permission_restriction = args[:can_change_sharing_folders_requires_organizer_permission_restriction] if args.key?(:can_change_sharing_folders_requires_organizer_permission_restriction)
|
3334
3361
|
@can_change_team_drive_background = args[:can_change_team_drive_background] if args.key?(:can_change_team_drive_background)
|
3335
3362
|
@can_change_team_members_only_restriction = args[:can_change_team_members_only_restriction] if args.key?(:can_change_team_members_only_restriction)
|
3336
3363
|
@can_comment = args[:can_comment] if args.key?(:can_comment)
|
@@ -3381,6 +3408,13 @@ module Google
|
|
3381
3408
|
attr_accessor :domain_users_only
|
3382
3409
|
alias_method :domain_users_only?, :domain_users_only
|
3383
3410
|
|
3411
|
+
# If true, only users with the organizer role can share folders. If false, users
|
3412
|
+
# with either the organizer role or the file organizer role can share folders.
|
3413
|
+
# Corresponds to the JSON property `sharingFoldersRequiresOrganizerPermission`
|
3414
|
+
# @return [Boolean]
|
3415
|
+
attr_accessor :sharing_folders_requires_organizer_permission
|
3416
|
+
alias_method :sharing_folders_requires_organizer_permission?, :sharing_folders_requires_organizer_permission
|
3417
|
+
|
3384
3418
|
# Whether access to items inside this Team Drive is restricted to members of
|
3385
3419
|
# this Team Drive.
|
3386
3420
|
# Corresponds to the JSON property `teamMembersOnly`
|
@@ -3397,6 +3431,7 @@ module Google
|
|
3397
3431
|
@admin_managed_restrictions = args[:admin_managed_restrictions] if args.key?(:admin_managed_restrictions)
|
3398
3432
|
@copy_requires_writer_permission = args[:copy_requires_writer_permission] if args.key?(:copy_requires_writer_permission)
|
3399
3433
|
@domain_users_only = args[:domain_users_only] if args.key?(:domain_users_only)
|
3434
|
+
@sharing_folders_requires_organizer_permission = args[:sharing_folders_requires_organizer_permission] if args.key?(:sharing_folders_requires_organizer_permission)
|
3400
3435
|
@team_members_only = args[:team_members_only] if args.key?(:team_members_only)
|
3401
3436
|
end
|
3402
3437
|
end
|
@@ -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.36.0"
|
20
20
|
|
21
21
|
# Version of the code generator used to generate this client
|
22
|
-
GENERATOR_VERSION = "0.
|
22
|
+
GENERATOR_VERSION = "0.12.0"
|
23
23
|
|
24
24
|
# Revision of the discovery document this client was generated from
|
25
|
-
REVISION = "
|
25
|
+
REVISION = "20230219"
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|
@@ -522,6 +522,7 @@ module Google
|
|
522
522
|
property :can_change_domain_users_only_restriction, as: 'canChangeDomainUsersOnlyRestriction'
|
523
523
|
property :can_change_drive_background, as: 'canChangeDriveBackground'
|
524
524
|
property :can_change_drive_members_only_restriction, as: 'canChangeDriveMembersOnlyRestriction'
|
525
|
+
property :can_change_sharing_folders_requires_organizer_permission_restriction, as: 'canChangeSharingFoldersRequiresOrganizerPermissionRestriction'
|
525
526
|
property :can_comment, as: 'canComment'
|
526
527
|
property :can_copy, as: 'canCopy'
|
527
528
|
property :can_delete_children, as: 'canDeleteChildren'
|
@@ -546,6 +547,7 @@ module Google
|
|
546
547
|
property :copy_requires_writer_permission, as: 'copyRequiresWriterPermission'
|
547
548
|
property :domain_users_only, as: 'domainUsersOnly'
|
548
549
|
property :drive_members_only, as: 'driveMembersOnly'
|
550
|
+
property :sharing_folders_requires_organizer_permission, as: 'sharingFoldersRequiresOrganizerPermission'
|
549
551
|
end
|
550
552
|
end
|
551
553
|
end
|
@@ -1038,6 +1040,7 @@ module Google
|
|
1038
1040
|
property :can_add_children, as: 'canAddChildren'
|
1039
1041
|
property :can_change_copy_requires_writer_permission_restriction, as: 'canChangeCopyRequiresWriterPermissionRestriction'
|
1040
1042
|
property :can_change_domain_users_only_restriction, as: 'canChangeDomainUsersOnlyRestriction'
|
1043
|
+
property :can_change_sharing_folders_requires_organizer_permission_restriction, as: 'canChangeSharingFoldersRequiresOrganizerPermissionRestriction'
|
1041
1044
|
property :can_change_team_drive_background, as: 'canChangeTeamDriveBackground'
|
1042
1045
|
property :can_change_team_members_only_restriction, as: 'canChangeTeamMembersOnlyRestriction'
|
1043
1046
|
property :can_comment, as: 'canComment'
|
@@ -1064,6 +1067,7 @@ module Google
|
|
1064
1067
|
property :admin_managed_restrictions, as: 'adminManagedRestrictions'
|
1065
1068
|
property :copy_requires_writer_permission, as: 'copyRequiresWriterPermission'
|
1066
1069
|
property :domain_users_only, as: 'domainUsersOnly'
|
1070
|
+
property :sharing_folders_requires_organizer_permission, as: 'sharingFoldersRequiresOrganizerPermission'
|
1067
1071
|
property :team_members_only, as: 'teamMembersOnly'
|
1068
1072
|
end
|
1069
1073
|
end
|
@@ -212,7 +212,8 @@ module Google
|
|
212
212
|
execute_or_queue_command(command, &block)
|
213
213
|
end
|
214
214
|
|
215
|
-
# Subscribes to changes for a user.
|
215
|
+
# Subscribes to changes for a user. To use this method, you must include the
|
216
|
+
# pageToken query parameter.
|
216
217
|
# @param [String] page_token
|
217
218
|
# The token for continuing a previous list request on the next page. This should
|
218
219
|
# be set to the value of 'nextPageToken' from the previous response or to the
|
@@ -1480,7 +1481,8 @@ module Google
|
|
1480
1481
|
execute_or_queue_command(command, &block)
|
1481
1482
|
end
|
1482
1483
|
|
1483
|
-
# Creates a permission for a file or shared drive.
|
1484
|
+
# Creates a permission for a file or shared drive. For more information on
|
1485
|
+
# creating permissions, see Share files, folders & drives.
|
1484
1486
|
# @param [String] file_id
|
1485
1487
|
# The ID of the file or shared drive.
|
1486
1488
|
# @param [Google::Apis::DriveV3::Permission] permission_object
|
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.36.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-02-
|
11
|
+
date: 2023-02-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: google-apis-core
|
@@ -16,7 +16,7 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 0.
|
19
|
+
version: 0.11.0
|
20
20
|
- - "<"
|
21
21
|
- !ruby/object:Gem::Version
|
22
22
|
version: 2.a
|
@@ -26,7 +26,7 @@ dependencies:
|
|
26
26
|
requirements:
|
27
27
|
- - ">="
|
28
28
|
- !ruby/object:Gem::Version
|
29
|
-
version: 0.
|
29
|
+
version: 0.11.0
|
30
30
|
- - "<"
|
31
31
|
- !ruby/object:Gem::Version
|
32
32
|
version: 2.a
|
@@ -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.36.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: []
|