google-apis-drive_v2 0.48.0 → 0.49.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
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 882af9c9bb3a63188eb594db8f42fe9620c52c2b0861e795a1c619cc57021e59
|
4
|
+
data.tar.gz: c5bca4b779b2c506f3ecae9c561f1e171513d99d715d9224fa2a525e772eec27
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fd4a975a711a7bf6985e9d87e47a9d9073c488f0b4d54c118cefedc9159db89dd2690e6a8c0bcc060536dae9b82a8d5b1ded697818fe46f47fafd346d0f9fe18
|
7
|
+
data.tar.gz: 1158c3e393691a922283cd1186a1ae16f3ba7a5187d220917218ed54dfd89fd8d7d0b01fc4e1134ff0c36aad8483b17cfcdec4d479e37e0fa097878d7e043733
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,10 @@
|
|
1
1
|
# Release history for google-apis-drive_v2
|
2
2
|
|
3
|
+
### v0.49.0 (2025-02-26)
|
4
|
+
|
5
|
+
* Regenerated from discovery document revision 20250216
|
6
|
+
* Regenerated using generator version 0.16.0
|
7
|
+
|
3
8
|
### v0.48.0 (2024-12-02)
|
4
9
|
|
5
10
|
* Regenerated from discovery document revision 20240914
|
@@ -2012,6 +2012,13 @@ module Google
|
|
2012
2012
|
# @return [Google::Apis::DriveV2::File::IndexableText]
|
2013
2013
|
attr_accessor :indexable_text
|
2014
2014
|
|
2015
|
+
# Whether this file has inherited permissions disabled. Inherited permissions
|
2016
|
+
# are enabled by default.
|
2017
|
+
# Corresponds to the JSON property `inheritedPermissionsDisabled`
|
2018
|
+
# @return [Boolean]
|
2019
|
+
attr_accessor :inherited_permissions_disabled
|
2020
|
+
alias_method :inherited_permissions_disabled?, :inherited_permissions_disabled
|
2021
|
+
|
2015
2022
|
# Output only. Whether the file was created or opened by the requesting app.
|
2016
2023
|
# Corresponds to the JSON property `isAppAuthorized`
|
2017
2024
|
# @return [Boolean]
|
@@ -2331,6 +2338,7 @@ module Google
|
|
2331
2338
|
@id = args[:id] if args.key?(:id)
|
2332
2339
|
@image_media_metadata = args[:image_media_metadata] if args.key?(:image_media_metadata)
|
2333
2340
|
@indexable_text = args[:indexable_text] if args.key?(:indexable_text)
|
2341
|
+
@inherited_permissions_disabled = args[:inherited_permissions_disabled] if args.key?(:inherited_permissions_disabled)
|
2334
2342
|
@is_app_authorized = args[:is_app_authorized] if args.key?(:is_app_authorized)
|
2335
2343
|
@kind = args[:kind] if args.key?(:kind)
|
2336
2344
|
@label_info = args[:label_info] if args.key?(:label_info)
|
@@ -2462,6 +2470,12 @@ module Google
|
|
2462
2470
|
attr_accessor :can_delete_children
|
2463
2471
|
alias_method :can_delete_children?, :can_delete_children
|
2464
2472
|
|
2473
|
+
# Output only. Whether a user can disable inherited permissions.
|
2474
|
+
# Corresponds to the JSON property `canDisableInheritedPermissions`
|
2475
|
+
# @return [Boolean]
|
2476
|
+
attr_accessor :can_disable_inherited_permissions
|
2477
|
+
alias_method :can_disable_inherited_permissions?, :can_disable_inherited_permissions
|
2478
|
+
|
2465
2479
|
# Output only. Whether the current user can download this file.
|
2466
2480
|
# Corresponds to the JSON property `canDownload`
|
2467
2481
|
# @return [Boolean]
|
@@ -2476,6 +2490,12 @@ module Google
|
|
2476
2490
|
attr_accessor :can_edit
|
2477
2491
|
alias_method :can_edit?, :can_edit
|
2478
2492
|
|
2493
|
+
# Output only. Whether a user can re-enable inherited permissions.
|
2494
|
+
# Corresponds to the JSON property `canEnableInheritedPermissions`
|
2495
|
+
# @return [Boolean]
|
2496
|
+
attr_accessor :can_enable_inherited_permissions
|
2497
|
+
alias_method :can_enable_inherited_permissions?, :can_enable_inherited_permissions
|
2498
|
+
|
2479
2499
|
# Output only. Whether the current user can list the children of this folder.
|
2480
2500
|
# This is always false when the item is not a folder.
|
2481
2501
|
# Corresponds to the JSON property `canListChildren`
|
@@ -2686,8 +2706,10 @@ module Google
|
|
2686
2706
|
@can_copy = args[:can_copy] if args.key?(:can_copy)
|
2687
2707
|
@can_delete = args[:can_delete] if args.key?(:can_delete)
|
2688
2708
|
@can_delete_children = args[:can_delete_children] if args.key?(:can_delete_children)
|
2709
|
+
@can_disable_inherited_permissions = args[:can_disable_inherited_permissions] if args.key?(:can_disable_inherited_permissions)
|
2689
2710
|
@can_download = args[:can_download] if args.key?(:can_download)
|
2690
2711
|
@can_edit = args[:can_edit] if args.key?(:can_edit)
|
2712
|
+
@can_enable_inherited_permissions = args[:can_enable_inherited_permissions] if args.key?(:can_enable_inherited_permissions)
|
2691
2713
|
@can_list_children = args[:can_list_children] if args.key?(:can_list_children)
|
2692
2714
|
@can_modify_content = args[:can_modify_content] if args.key?(:can_modify_content)
|
2693
2715
|
@can_modify_content_restriction = args[:can_modify_content_restriction] if args.key?(:can_modify_content_restriction)
|
@@ -3645,6 +3667,13 @@ module Google
|
|
3645
3667
|
# @return [String]
|
3646
3668
|
attr_accessor :id
|
3647
3669
|
|
3670
|
+
# When true, only organizers, owners, and users with permissions added directly
|
3671
|
+
# on the item can access it.
|
3672
|
+
# Corresponds to the JSON property `inheritedPermissionsDisabled`
|
3673
|
+
# @return [Boolean]
|
3674
|
+
attr_accessor :inherited_permissions_disabled
|
3675
|
+
alias_method :inherited_permissions_disabled?, :inherited_permissions_disabled
|
3676
|
+
|
3648
3677
|
# Output only. This is always `drive#permission`.
|
3649
3678
|
# Corresponds to the JSON property `kind`
|
3650
3679
|
# @return [String]
|
@@ -3662,9 +3691,8 @@ module Google
|
|
3662
3691
|
attr_accessor :pending_owner
|
3663
3692
|
alias_method :pending_owner?, :pending_owner
|
3664
3693
|
|
3665
|
-
# Output only. Details of whether the permissions on this
|
3666
|
-
#
|
3667
|
-
# present only for shared drive items.
|
3694
|
+
# Output only. Details of whether the permissions on this item are inherited or
|
3695
|
+
# directly on this item.
|
3668
3696
|
# Corresponds to the JSON property `permissionDetails`
|
3669
3697
|
# @return [Array<Google::Apis::DriveV2::Permission::PermissionDetail>]
|
3670
3698
|
attr_accessor :permission_details
|
@@ -3706,7 +3734,11 @@ module Google
|
|
3706
3734
|
attr_accessor :value
|
3707
3735
|
|
3708
3736
|
# Indicates the view for this permission. Only populated for permissions that
|
3709
|
-
# belong to a view.
|
3737
|
+
# belong to a view. published and metadata are the only supported values. -
|
3738
|
+
# published: The permission's role is published_reader. - metadata: The item is
|
3739
|
+
# only visible to the metadata view because the item has limited access and the
|
3740
|
+
# scope has at least read access to the parent. Note: The metadata view is
|
3741
|
+
# currently only supported on folders.
|
3710
3742
|
# Corresponds to the JSON property `view`
|
3711
3743
|
# @return [String]
|
3712
3744
|
attr_accessor :view
|
@@ -3731,6 +3763,7 @@ module Google
|
|
3731
3763
|
@etag = args[:etag] if args.key?(:etag)
|
3732
3764
|
@expiration_date = args[:expiration_date] if args.key?(:expiration_date)
|
3733
3765
|
@id = args[:id] if args.key?(:id)
|
3766
|
+
@inherited_permissions_disabled = args[:inherited_permissions_disabled] if args.key?(:inherited_permissions_disabled)
|
3734
3767
|
@kind = args[:kind] if args.key?(:kind)
|
3735
3768
|
@name = args[:name] if args.key?(:name)
|
3736
3769
|
@pending_owner = args[:pending_owner] if args.key?(:pending_owner)
|
@@ -3756,14 +3789,14 @@ module Google
|
|
3756
3789
|
attr_accessor :additional_roles
|
3757
3790
|
|
3758
3791
|
# Output only. Whether this permission is inherited. This field is always
|
3759
|
-
# populated.
|
3792
|
+
# populated.
|
3760
3793
|
# Corresponds to the JSON property `inherited`
|
3761
3794
|
# @return [Boolean]
|
3762
3795
|
attr_accessor :inherited
|
3763
3796
|
alias_method :inherited?, :inherited
|
3764
3797
|
|
3765
3798
|
# Output only. The ID of the item from which this permission is inherited. This
|
3766
|
-
# is
|
3799
|
+
# is only populated for items in shared drives.
|
3767
3800
|
# Corresponds to the JSON property `inheritedFrom`
|
3768
3801
|
# @return [String]
|
3769
3802
|
attr_accessor :inherited_from
|
@@ -4103,8 +4136,8 @@ module Google
|
|
4103
4136
|
attr_accessor :published
|
4104
4137
|
alias_method :published?, :published
|
4105
4138
|
|
4106
|
-
# Output only. A link to the published revision. This is only populated for
|
4107
|
-
#
|
4139
|
+
# Output only. A link to the published revision. This is only populated for Docs
|
4140
|
+
# Editors files.
|
4108
4141
|
# Corresponds to the JSON property `publishedLink`
|
4109
4142
|
# @return [String]
|
4110
4143
|
attr_accessor :published_link
|
@@ -16,13 +16,13 @@ module Google
|
|
16
16
|
module Apis
|
17
17
|
module DriveV2
|
18
18
|
# Version of the google-apis-drive_v2 gem
|
19
|
-
GEM_VERSION = "0.
|
19
|
+
GEM_VERSION = "0.49.0"
|
20
20
|
|
21
21
|
# Version of the code generator used to generate this client
|
22
|
-
GENERATOR_VERSION = "0.
|
22
|
+
GENERATOR_VERSION = "0.16.0"
|
23
23
|
|
24
24
|
# Revision of the discovery document this client was generated from
|
25
|
-
REVISION = "
|
25
|
+
REVISION = "20250216"
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|
@@ -884,6 +884,7 @@ module Google
|
|
884
884
|
|
885
885
|
property :indexable_text, as: 'indexableText', class: Google::Apis::DriveV2::File::IndexableText, decorator: Google::Apis::DriveV2::File::IndexableText::Representation
|
886
886
|
|
887
|
+
property :inherited_permissions_disabled, as: 'inheritedPermissionsDisabled'
|
887
888
|
property :is_app_authorized, as: 'isAppAuthorized'
|
888
889
|
property :kind, as: 'kind'
|
889
890
|
property :label_info, as: 'labelInfo', class: Google::Apis::DriveV2::File::LabelInfo, decorator: Google::Apis::DriveV2::File::LabelInfo::Representation
|
@@ -966,8 +967,10 @@ module Google
|
|
966
967
|
property :can_copy, as: 'canCopy'
|
967
968
|
property :can_delete, as: 'canDelete'
|
968
969
|
property :can_delete_children, as: 'canDeleteChildren'
|
970
|
+
property :can_disable_inherited_permissions, as: 'canDisableInheritedPermissions'
|
969
971
|
property :can_download, as: 'canDownload'
|
970
972
|
property :can_edit, as: 'canEdit'
|
973
|
+
property :can_enable_inherited_permissions, as: 'canEnableInheritedPermissions'
|
971
974
|
property :can_list_children, as: 'canListChildren'
|
972
975
|
property :can_modify_content, as: 'canModifyContent'
|
973
976
|
property :can_modify_content_restriction, as: 'canModifyContentRestriction'
|
@@ -1236,6 +1239,7 @@ module Google
|
|
1236
1239
|
property :expiration_date, as: 'expirationDate', type: DateTime
|
1237
1240
|
|
1238
1241
|
property :id, as: 'id'
|
1242
|
+
property :inherited_permissions_disabled, as: 'inheritedPermissionsDisabled'
|
1239
1243
|
property :kind, as: 'kind'
|
1240
1244
|
property :name, as: 'name'
|
1241
1245
|
property :pending_owner, as: 'pendingOwner'
|
@@ -2220,6 +2220,8 @@ module Google
|
|
2220
2220
|
# The ID for the file or shared drive.
|
2221
2221
|
# @param [String] permission_id
|
2222
2222
|
# The ID for the permission.
|
2223
|
+
# @param [Boolean] enforce_expansive_access
|
2224
|
+
# Whether the request should enforce expansive access rules.
|
2223
2225
|
# @param [Boolean] supports_all_drives
|
2224
2226
|
# Whether the requesting application supports both My Drives and shared drives.
|
2225
2227
|
# @param [Boolean] supports_team_drives
|
@@ -2246,10 +2248,11 @@ module Google
|
|
2246
2248
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
2247
2249
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
2248
2250
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
2249
|
-
def delete_permission(file_id, permission_id, supports_all_drives: nil, supports_team_drives: nil, use_domain_admin_access: nil, fields: nil, quota_user: nil, options: nil, &block)
|
2251
|
+
def delete_permission(file_id, permission_id, enforce_expansive_access: nil, supports_all_drives: nil, supports_team_drives: nil, use_domain_admin_access: nil, fields: nil, quota_user: nil, options: nil, &block)
|
2250
2252
|
command = make_simple_command(:delete, 'files/{fileId}/permissions/{permissionId}', options)
|
2251
2253
|
command.params['fileId'] = file_id unless file_id.nil?
|
2252
2254
|
command.params['permissionId'] = permission_id unless permission_id.nil?
|
2255
|
+
command.query['enforceExpansiveAccess'] = enforce_expansive_access unless enforce_expansive_access.nil?
|
2253
2256
|
command.query['supportsAllDrives'] = supports_all_drives unless supports_all_drives.nil?
|
2254
2257
|
command.query['supportsTeamDrives'] = supports_team_drives unless supports_team_drives.nil?
|
2255
2258
|
command.query['useDomainAdminAccess'] = use_domain_admin_access unless use_domain_admin_access.nil?
|
@@ -2459,6 +2462,8 @@ module Google
|
|
2459
2462
|
# @param [String] permission_id
|
2460
2463
|
# The ID for the permission.
|
2461
2464
|
# @param [Google::Apis::DriveV2::Permission] permission_object
|
2465
|
+
# @param [Boolean] enforce_expansive_access
|
2466
|
+
# Whether the request should enforce expansive access rules.
|
2462
2467
|
# @param [Boolean] remove_expiration
|
2463
2468
|
# Whether to remove the expiration date.
|
2464
2469
|
# @param [Boolean] supports_all_drives
|
@@ -2490,7 +2495,7 @@ module Google
|
|
2490
2495
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
2491
2496
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
2492
2497
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
2493
|
-
def patch_permission(file_id, permission_id, permission_object = nil, remove_expiration: nil, supports_all_drives: nil, supports_team_drives: nil, transfer_ownership: nil, use_domain_admin_access: nil, fields: nil, quota_user: nil, options: nil, &block)
|
2498
|
+
def patch_permission(file_id, permission_id, permission_object = nil, enforce_expansive_access: nil, remove_expiration: nil, supports_all_drives: nil, supports_team_drives: nil, transfer_ownership: nil, use_domain_admin_access: nil, fields: nil, quota_user: nil, options: nil, &block)
|
2494
2499
|
command = make_simple_command(:patch, 'files/{fileId}/permissions/{permissionId}', options)
|
2495
2500
|
command.request_representation = Google::Apis::DriveV2::Permission::Representation
|
2496
2501
|
command.request_object = permission_object
|
@@ -2498,6 +2503,7 @@ module Google
|
|
2498
2503
|
command.response_class = Google::Apis::DriveV2::Permission
|
2499
2504
|
command.params['fileId'] = file_id unless file_id.nil?
|
2500
2505
|
command.params['permissionId'] = permission_id unless permission_id.nil?
|
2506
|
+
command.query['enforceExpansiveAccess'] = enforce_expansive_access unless enforce_expansive_access.nil?
|
2501
2507
|
command.query['removeExpiration'] = remove_expiration unless remove_expiration.nil?
|
2502
2508
|
command.query['supportsAllDrives'] = supports_all_drives unless supports_all_drives.nil?
|
2503
2509
|
command.query['supportsTeamDrives'] = supports_team_drives unless supports_team_drives.nil?
|
@@ -2515,6 +2521,8 @@ module Google
|
|
2515
2521
|
# @param [String] permission_id
|
2516
2522
|
# The ID for the permission.
|
2517
2523
|
# @param [Google::Apis::DriveV2::Permission] permission_object
|
2524
|
+
# @param [Boolean] enforce_expansive_access
|
2525
|
+
# Whether the request should enforce expansive access rules.
|
2518
2526
|
# @param [Boolean] remove_expiration
|
2519
2527
|
# Whether to remove the expiration date.
|
2520
2528
|
# @param [Boolean] supports_all_drives
|
@@ -2546,7 +2554,7 @@ module Google
|
|
2546
2554
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
2547
2555
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
2548
2556
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
2549
|
-
def update_permission(file_id, permission_id, permission_object = nil, remove_expiration: nil, supports_all_drives: nil, supports_team_drives: nil, transfer_ownership: nil, use_domain_admin_access: nil, fields: nil, quota_user: nil, options: nil, &block)
|
2557
|
+
def update_permission(file_id, permission_id, permission_object = nil, enforce_expansive_access: nil, remove_expiration: nil, supports_all_drives: nil, supports_team_drives: nil, transfer_ownership: nil, use_domain_admin_access: nil, fields: nil, quota_user: nil, options: nil, &block)
|
2550
2558
|
command = make_simple_command(:put, 'files/{fileId}/permissions/{permissionId}', options)
|
2551
2559
|
command.request_representation = Google::Apis::DriveV2::Permission::Representation
|
2552
2560
|
command.request_object = permission_object
|
@@ -2554,6 +2562,7 @@ module Google
|
|
2554
2562
|
command.response_class = Google::Apis::DriveV2::Permission
|
2555
2563
|
command.params['fileId'] = file_id unless file_id.nil?
|
2556
2564
|
command.params['permissionId'] = permission_id unless permission_id.nil?
|
2565
|
+
command.query['enforceExpansiveAccess'] = enforce_expansive_access unless enforce_expansive_access.nil?
|
2557
2566
|
command.query['removeExpiration'] = remove_expiration unless remove_expiration.nil?
|
2558
2567
|
command.query['supportsAllDrives'] = supports_all_drives unless supports_all_drives.nil?
|
2559
2568
|
command.query['supportsTeamDrives'] = supports_team_drives unless supports_team_drives.nil?
|
metadata
CHANGED
@@ -1,14 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-apis-drive_v2
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.49.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Google LLC
|
8
|
-
autorequire:
|
9
8
|
bindir: bin
|
10
9
|
cert_chain: []
|
11
|
-
date:
|
10
|
+
date: 2025-03-02 00:00:00.000000000 Z
|
12
11
|
dependencies:
|
13
12
|
- !ruby/object:Gem::Dependency
|
14
13
|
name: google-apis-core
|
@@ -58,9 +57,8 @@ licenses:
|
|
58
57
|
metadata:
|
59
58
|
bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
|
60
59
|
changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-drive_v2/CHANGELOG.md
|
61
|
-
documentation_uri: https://googleapis.dev/ruby/google-apis-drive_v2/v0.
|
60
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-drive_v2/v0.49.0
|
62
61
|
source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-drive_v2
|
63
|
-
post_install_message:
|
64
62
|
rdoc_options: []
|
65
63
|
require_paths:
|
66
64
|
- lib
|
@@ -75,8 +73,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
75
73
|
- !ruby/object:Gem::Version
|
76
74
|
version: '0'
|
77
75
|
requirements: []
|
78
|
-
rubygems_version: 3.5
|
79
|
-
signing_key:
|
76
|
+
rubygems_version: 3.6.5
|
80
77
|
specification_version: 4
|
81
78
|
summary: Simple REST client for Google Drive API V2
|
82
79
|
test_files: []
|