google-apis-drive_v2 0.33.0 → 0.35.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: cee6899ab3ca6a9fdf5817558c4054918cac9ce1f8b945cb9f0e82abdf062f65
4
- data.tar.gz: 710069e350d1764e0d1b12d1ebba0eb9a12d05c22d03976d6fd0abfb22de9985
3
+ metadata.gz: 0c7876a02799bda0ccf859e702fba47e7182bd2bdbb6eb59644fe628dde2b4f8
4
+ data.tar.gz: 6aa203381ee3892186f037fc9a5a990e74d37fba1eb55497e4363bd7bfb50cfd
5
5
  SHA512:
6
- metadata.gz: e7fa767d01dd9f5257c164db1f0338fd7796a8f33badd849dd5e0af765424680ed681abc153b6f50a43fe2e74017ae680335fed0471a73ae0bdec589bf7edb5c
7
- data.tar.gz: 28384c92143df1ff473b33723f08934a8483cd5fe968116aba89fd234e10961fb98abc7cff4761e5fc94e51936ab18048322bd50f9d785b4ba989cd60b5283a5
6
+ metadata.gz: 49623a2bc492e061b2ebf4afac69e568e862df17fa4b151fdea8e5175aa57cac83c1e51d0ad5c0f0bf287d87f6fbb96e3c58dd99fb1e57e0de3b5de694599497
7
+ data.tar.gz: 50e3697faf5d2c7f2025f9172d57a8395ea898a262f2425f88c303d68c2f17f295b13cc13c88b30d57854a33cc49ef1bbec1b3ee4843a53cdfa2760dcefd34ee
data/CHANGELOG.md CHANGED
@@ -1,5 +1,14 @@
1
1
  # Release history for google-apis-drive_v2
2
2
 
3
+ ### v0.35.0 (2023-04-23)
4
+
5
+ * Regenerated from discovery document revision 20230413
6
+
7
+ ### v0.34.0 (2023-02-19)
8
+
9
+ * Regenerated from discovery document revision 20230212
10
+ * Regenerated using generator version 0.12.0
11
+
3
12
  ### v0.33.0 (2023-02-12)
4
13
 
5
14
  * Regenerated from discovery document revision 20230206
@@ -1574,6 +1574,13 @@ module Google
1574
1574
  attr_accessor :can_change_drive_members_only_restriction
1575
1575
  alias_method :can_change_drive_members_only_restriction?, :can_change_drive_members_only_restriction
1576
1576
 
1577
+ # Whether the current user can change the
1578
+ # sharingFoldersRequiresOrganizerPermission restriction of this shared drive.
1579
+ # Corresponds to the JSON property `canChangeSharingFoldersRequiresOrganizerPermissionRestriction`
1580
+ # @return [Boolean]
1581
+ attr_accessor :can_change_sharing_folders_requires_organizer_permission_restriction
1582
+ alias_method :can_change_sharing_folders_requires_organizer_permission_restriction?, :can_change_sharing_folders_requires_organizer_permission_restriction
1583
+
1577
1584
  # Whether the current user can comment on files in this shared drive.
1578
1585
  # Corresponds to the JSON property `canComment`
1579
1586
  # @return [Boolean]
@@ -1673,6 +1680,7 @@ module Google
1673
1680
  @can_change_domain_users_only_restriction = args[:can_change_domain_users_only_restriction] if args.key?(:can_change_domain_users_only_restriction)
1674
1681
  @can_change_drive_background = args[:can_change_drive_background] if args.key?(:can_change_drive_background)
1675
1682
  @can_change_drive_members_only_restriction = args[:can_change_drive_members_only_restriction] if args.key?(:can_change_drive_members_only_restriction)
1683
+ @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)
1676
1684
  @can_comment = args[:can_comment] if args.key?(:can_comment)
1677
1685
  @can_copy = args[:can_copy] if args.key?(:can_copy)
1678
1686
  @can_delete_children = args[:can_delete_children] if args.key?(:can_delete_children)
@@ -1726,6 +1734,13 @@ module Google
1726
1734
  attr_accessor :drive_members_only
1727
1735
  alias_method :drive_members_only?, :drive_members_only
1728
1736
 
1737
+ # If true, only users with the organizer role can share folders. If false, users
1738
+ # with either the organizer role or the file organizer role can share folders.
1739
+ # Corresponds to the JSON property `sharingFoldersRequiresOrganizerPermission`
1740
+ # @return [Boolean]
1741
+ attr_accessor :sharing_folders_requires_organizer_permission
1742
+ alias_method :sharing_folders_requires_organizer_permission?, :sharing_folders_requires_organizer_permission
1743
+
1729
1744
  def initialize(**args)
1730
1745
  update!(**args)
1731
1746
  end
@@ -1736,6 +1751,7 @@ module Google
1736
1751
  @copy_requires_writer_permission = args[:copy_requires_writer_permission] if args.key?(:copy_requires_writer_permission)
1737
1752
  @domain_users_only = args[:domain_users_only] if args.key?(:domain_users_only)
1738
1753
  @drive_members_only = args[:drive_members_only] if args.key?(:drive_members_only)
1754
+ @sharing_folders_requires_organizer_permission = args[:sharing_folders_requires_organizer_permission] if args.key?(:sharing_folders_requires_organizer_permission)
1739
1755
  end
1740
1756
  end
1741
1757
  end
@@ -4299,6 +4315,13 @@ module Google
4299
4315
  attr_accessor :can_change_domain_users_only_restriction
4300
4316
  alias_method :can_change_domain_users_only_restriction?, :can_change_domain_users_only_restriction
4301
4317
 
4318
+ # Whether the current user can change the
4319
+ # sharingFoldersRequiresOrganizerPermission restriction of this Team Drive.
4320
+ # Corresponds to the JSON property `canChangeSharingFoldersRequiresOrganizerPermissionRestriction`
4321
+ # @return [Boolean]
4322
+ attr_accessor :can_change_sharing_folders_requires_organizer_permission_restriction
4323
+ alias_method :can_change_sharing_folders_requires_organizer_permission_restriction?, :can_change_sharing_folders_requires_organizer_permission_restriction
4324
+
4302
4325
  # Whether the current user can change the background of this Team Drive.
4303
4326
  # Corresponds to the JSON property `canChangeTeamDriveBackground`
4304
4327
  # @return [Boolean]
@@ -4414,6 +4437,7 @@ module Google
4414
4437
  @can_add_children = args[:can_add_children] if args.key?(:can_add_children)
4415
4438
  @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)
4416
4439
  @can_change_domain_users_only_restriction = args[:can_change_domain_users_only_restriction] if args.key?(:can_change_domain_users_only_restriction)
4440
+ @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)
4417
4441
  @can_change_team_drive_background = args[:can_change_team_drive_background] if args.key?(:can_change_team_drive_background)
4418
4442
  @can_change_team_members_only_restriction = args[:can_change_team_members_only_restriction] if args.key?(:can_change_team_members_only_restriction)
4419
4443
  @can_comment = args[:can_comment] if args.key?(:can_comment)
@@ -4464,6 +4488,13 @@ module Google
4464
4488
  attr_accessor :domain_users_only
4465
4489
  alias_method :domain_users_only?, :domain_users_only
4466
4490
 
4491
+ # If true, only users with the organizer role can share folders. If false, users
4492
+ # with either the organizer role or the file organizer role can share folders.
4493
+ # Corresponds to the JSON property `sharingFoldersRequiresOrganizerPermission`
4494
+ # @return [Boolean]
4495
+ attr_accessor :sharing_folders_requires_organizer_permission
4496
+ alias_method :sharing_folders_requires_organizer_permission?, :sharing_folders_requires_organizer_permission
4497
+
4467
4498
  # Whether access to items inside this Team Drive is restricted to members of
4468
4499
  # this Team Drive.
4469
4500
  # Corresponds to the JSON property `teamMembersOnly`
@@ -4480,6 +4511,7 @@ module Google
4480
4511
  @admin_managed_restrictions = args[:admin_managed_restrictions] if args.key?(:admin_managed_restrictions)
4481
4512
  @copy_requires_writer_permission = args[:copy_requires_writer_permission] if args.key?(:copy_requires_writer_permission)
4482
4513
  @domain_users_only = args[:domain_users_only] if args.key?(:domain_users_only)
4514
+ @sharing_folders_requires_organizer_permission = args[:sharing_folders_requires_organizer_permission] if args.key?(:sharing_folders_requires_organizer_permission)
4483
4515
  @team_members_only = args[:team_members_only] if args.key?(:team_members_only)
4484
4516
  end
4485
4517
  end
@@ -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.33.0"
19
+ GEM_VERSION = "0.35.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
- GENERATOR_VERSION = "0.11.1"
22
+ GENERATOR_VERSION = "0.12.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20230206"
25
+ REVISION = "20230413"
26
26
  end
27
27
  end
28
28
  end
@@ -805,6 +805,7 @@ module Google
805
805
  property :can_change_domain_users_only_restriction, as: 'canChangeDomainUsersOnlyRestriction'
806
806
  property :can_change_drive_background, as: 'canChangeDriveBackground'
807
807
  property :can_change_drive_members_only_restriction, as: 'canChangeDriveMembersOnlyRestriction'
808
+ property :can_change_sharing_folders_requires_organizer_permission_restriction, as: 'canChangeSharingFoldersRequiresOrganizerPermissionRestriction'
808
809
  property :can_comment, as: 'canComment'
809
810
  property :can_copy, as: 'canCopy'
810
811
  property :can_delete_children, as: 'canDeleteChildren'
@@ -829,6 +830,7 @@ module Google
829
830
  property :copy_requires_writer_permission, as: 'copyRequiresWriterPermission'
830
831
  property :domain_users_only, as: 'domainUsersOnly'
831
832
  property :drive_members_only, as: 'driveMembersOnly'
833
+ property :sharing_folders_requires_organizer_permission, as: 'sharingFoldersRequiresOrganizerPermission'
832
834
  end
833
835
  end
834
836
  end
@@ -1393,6 +1395,7 @@ module Google
1393
1395
  property :can_add_children, as: 'canAddChildren'
1394
1396
  property :can_change_copy_requires_writer_permission_restriction, as: 'canChangeCopyRequiresWriterPermissionRestriction'
1395
1397
  property :can_change_domain_users_only_restriction, as: 'canChangeDomainUsersOnlyRestriction'
1398
+ property :can_change_sharing_folders_requires_organizer_permission_restriction, as: 'canChangeSharingFoldersRequiresOrganizerPermissionRestriction'
1396
1399
  property :can_change_team_drive_background, as: 'canChangeTeamDriveBackground'
1397
1400
  property :can_change_team_members_only_restriction, as: 'canChangeTeamMembersOnlyRestriction'
1398
1401
  property :can_comment, as: 'canComment'
@@ -1419,6 +1422,7 @@ module Google
1419
1422
  property :admin_managed_restrictions, as: 'adminManagedRestrictions'
1420
1423
  property :copy_requires_writer_permission, as: 'copyRequiresWriterPermission'
1421
1424
  property :domain_users_only, as: 'domainUsersOnly'
1425
+ property :sharing_folders_requires_organizer_permission, as: 'sharingFoldersRequiresOrganizerPermission'
1422
1426
  property :team_members_only, as: 'teamMembersOnly'
1423
1427
  end
1424
1428
  end
@@ -1272,6 +1272,8 @@ module Google
1272
1272
  end
1273
1273
 
1274
1274
  # Permanently deletes all of the user's trashed files.
1275
+ # @param [String] drive_id
1276
+ # If set, empties the trash of the provided shared drive.
1275
1277
  # @param [Boolean] enforce_single_parent
1276
1278
  # Deprecated. If an item is not in a shared drive and its last parent is deleted
1277
1279
  # but the item itself is not, the item will be placed under its owner's root.
@@ -1294,8 +1296,9 @@ module Google
1294
1296
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1295
1297
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1296
1298
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1297
- def empty_trash(enforce_single_parent: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1299
+ def empty_trash(drive_id: nil, enforce_single_parent: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1298
1300
  command = make_simple_command(:delete, 'files/trash', options)
1301
+ command.query['driveId'] = drive_id unless drive_id.nil?
1299
1302
  command.query['enforceSingleParent'] = enforce_single_parent unless enforce_single_parent.nil?
1300
1303
  command.query['fields'] = fields unless fields.nil?
1301
1304
  command.query['quotaUser'] = quota_user unless quota_user.nil?
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-drive_v2
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.33.0
4
+ version: 0.35.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-12 00:00:00.000000000 Z
11
+ date: 2023-04-23 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.9.1
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.9.1
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_v2/CHANGELOG.md
61
- documentation_uri: https://googleapis.dev/ruby/google-apis-drive_v2/v0.33.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-drive_v2/v0.35.0
62
62
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-drive_v2
63
63
  post_install_message:
64
64
  rdoc_options: []