google-apis-drive_v2 0.32.0 → 0.34.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: 3a43da247d3870c3ae64649ba512ac0034688ca48825039e35cb94c73b865274
4
- data.tar.gz: 1a8543802243ef72135fcf5641dc7aca0c06b98c1f4a3413c4b2b22c30430334
3
+ metadata.gz: 34d6abe280eb3dbbfb4d91ded9ddaccf139d97b59e1c573f3f95b9961fe6a402
4
+ data.tar.gz: d4e6fba10474a92cb5900a8e4f1ff5e8a457c265f03e0bc382e2c9bd2b25b4a9
5
5
  SHA512:
6
- metadata.gz: ab8785c56dabc20157ab495d22b36bb1f93ffd89842cb331e4591d328e3e5b34ed70a902fb5f59e1254c92c978129fc399ef9985008b29bb96c5c077880f9dab
7
- data.tar.gz: 477099d8a02bfe6fa7e022f86f083f2ba178c641951447eb2cbb4346ec46a17cbe7c8f810b5296c876674b847249fec8d7c80d6c8850844c8c805e09d5048756
6
+ metadata.gz: 03f359cec3967b3c594d4a691b1350df4df3398f4e8e6734cf13fff1b8f1d44ee749e79e00b4f4c2feda3245ae557633bbcc0a7b828ebe1b5b4d269e655f7f32
7
+ data.tar.gz: 28fd38eb6110fc0b151efc8b8834ccd790b77e84dce91df18c8a5617c436baaff60618b0a6109b8d44a33c095db65a781324fae927c730053feb6cacaf3e93f8
data/CHANGELOG.md CHANGED
@@ -1,5 +1,15 @@
1
1
  # Release history for google-apis-drive_v2
2
2
 
3
+ ### v0.34.0 (2023-02-19)
4
+
5
+ * Regenerated from discovery document revision 20230212
6
+ * Regenerated using generator version 0.12.0
7
+
8
+ ### v0.33.0 (2023-02-12)
9
+
10
+ * Regenerated from discovery document revision 20230206
11
+ * Regenerated using generator version 0.11.1
12
+
3
13
  ### v0.32.0 (2022-11-02)
4
14
 
5
15
  * Regenerated from discovery document revision 20221023
@@ -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
@@ -1892,9 +1908,9 @@ module Google
1892
1908
  # @return [String]
1893
1909
  attr_accessor :file_extension
1894
1910
 
1895
- # The size of the file in bytes. This field is populated for files with content
1896
- # stored in Google Drive and for files in Docs Editors; it isn't populated for
1897
- # shortcut files.
1911
+ # The size of the file's content in bytes. This field is populated for files
1912
+ # with binary content stored in Google Drive and for Docs Editors files; it is
1913
+ # not populated for shortcuts or folders.
1898
1914
  # Corresponds to the JSON property `fileSize`
1899
1915
  # @return [Fixnum]
1900
1916
  attr_accessor :file_size
@@ -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.32.0"
19
+ GEM_VERSION = "0.34.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
- GENERATOR_VERSION = "0.11.0"
22
+ GENERATOR_VERSION = "0.12.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20221023"
25
+ REVISION = "20230212"
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
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.32.0
4
+ version: 0.34.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: 2022-11-07 00:00:00.000000000 Z
11
+ date: 2023-02-19 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.32.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-drive_v2/v0.34.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: []
@@ -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.3.14
78
+ rubygems_version: 3.4.2
79
79
  signing_key:
80
80
  specification_version: 4
81
81
  summary: Simple REST client for Drive API V2