google-apis-drive_v3 0.35.0 → 0.37.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: c0c45f85fa4a91003907e3c25f2a775fe9d90eb192b345d29582bea9e6947eba
4
- data.tar.gz: 5a3e90157b789d0c8e56c46127e5d62c9e470c7e20c00d5c504fa7196f607c96
3
+ metadata.gz: abe984d9bbffc75ee70112d359eb775262782201378c5b83b6140b9d1976efea
4
+ data.tar.gz: 42c506b2dc8cdd7fb66ae16e70683e14e48c5c42924d3b15740058f1670b70f8
5
5
  SHA512:
6
- metadata.gz: de70fcd30e86f0a1c6aae256ae50af8310b37726109eb8a6d34a0a0e77a010dd35c4e52268b71cd76a9b4fa315419a8402b090f6e03fbe41ddadbc7a7f7e723a
7
- data.tar.gz: 4381919ccec1740dfc542a172574b85dd174f2e674f549fe07f46ac3f2641df580656ded10012ab86526e5de316b91d889bb6f973385afa0716e3975d25f54d7
6
+ metadata.gz: 04e03845dd4403ccfb08b4ee53575f99209fcb289f032cd8f6cc0799b3e0c1b35d7a7d0689a9567d18900ac3e2316839c8b119966f21e628b87a45dee80bf5da
7
+ data.tar.gz: 6c1a6b652c3ebabc0d7123ae77e015dba2304391a46459f3fda4c08ba613103fd2ad363c5711957e99a00ce34659a4b1d4caedc74b738594830a7f44d79cf3b1
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Release history for google-apis-drive_v3
2
2
 
3
+ ### v0.37.0 (2023-03-12)
4
+
5
+ * Regenerated from discovery document revision 20230306
6
+
7
+ ### v0.36.0 (2023-02-26)
8
+
9
+ * Regenerated from discovery document revision 20230219
10
+
3
11
  ### v0.35.0 (2023-02-15)
4
12
 
5
13
  * Regenerated using generator version 0.12.0
@@ -633,7 +633,7 @@ module Google
633
633
  include Google::Apis::Core::Hashable
634
634
 
635
635
  # An image file and cropping parameters from which a background image for this
636
- # shared drive is set. This is a write only field; it can only be set on drive.
636
+ # shared drive is set. This is a write-only field; it can only be set on drive.
637
637
  # drives.update requests that don't set themeId. When specified, all fields of
638
638
  # the backgroundImageFile must be set.
639
639
  # Corresponds to the JSON property `backgroundImageFile`
@@ -650,8 +650,8 @@ module Google
650
650
  # @return [Google::Apis::DriveV3::Drive::Capabilities]
651
651
  attr_accessor :capabilities
652
652
 
653
- # The color of this shared drive as an RGB hex string. It can only be set on a
654
- # drive.drives.update request that does not set themeId.
653
+ # The color of this shared drive as an RGB hex string. It can only be set on
654
+ # drive.drives.update requests that don't set themeId.
655
655
  # Corresponds to the JSON property `colorRgb`
656
656
  # @return [String]
657
657
  attr_accessor :color_rgb
@@ -696,11 +696,11 @@ module Google
696
696
  # @return [Google::Apis::DriveV3::Drive::Restrictions]
697
697
  attr_accessor :restrictions
698
698
 
699
- # The ID of the theme from which the background image and color will be set. The
700
- # set of possible driveThemes can be retrieved from a drive.about.get response.
701
- # When not specified on a drive.drives.create request, a random theme is chosen
702
- # from which the background image and color are set. This is a write-only field;
703
- # it can only be set on requests that don't set colorRgb or backgroundImageFile.
699
+ # The ID of the theme from which the background image and color are set. The set
700
+ # of possible driveThemes can be retrieved from a drive.about.get response. When
701
+ # not specified on a drive.drives.create request, a random theme is chosen from
702
+ # which the background image and color are set. This is a write-only field; it
703
+ # can only be set on requests that don't set colorRgb or backgroundImageFile.
704
704
  # Corresponds to the JSON property `themeId`
705
705
  # @return [String]
706
706
  attr_accessor :theme_id
@@ -726,7 +726,7 @@ module Google
726
726
  end
727
727
 
728
728
  # An image file and cropping parameters from which a background image for this
729
- # shared drive is set. This is a write only field; it can only be set on drive.
729
+ # shared drive is set. This is a write-only field; it can only be set on drive.
730
730
  # drives.update requests that don't set themeId. When specified, all fields of
731
731
  # the backgroundImageFile must be set.
732
732
  class BackgroundImageFile
@@ -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 account, such as "Joe
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 "thecompany.com."
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 a year in the future
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 are not in a shared drive.
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 which is present only for
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 a anyone type.
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 possible:
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 possible:
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.35.0"
19
+ GEM_VERSION = "0.37.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 = "20230206"
25
+ REVISION = "20230306"
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
@@ -756,14 +757,14 @@ module Google
756
757
  execute_or_queue_command(command, &block)
757
758
  end
758
759
 
759
- # Updates the metadate for a shared drive.
760
+ # Updates the metadata for a shared drive.
760
761
  # @param [String] drive_id
761
762
  # The ID of the shared drive.
762
763
  # @param [Google::Apis::DriveV3::Drive] drive_object
763
764
  # @param [Boolean] use_domain_admin_access
764
- # Issue the request as a domain administrator; if set to true, then the
765
- # requester will be granted access if they are an administrator of the domain to
766
- # which the shared drive belongs.
765
+ # Issue the request as a domain administrator. If set to true, then the
766
+ # requester is granted access if they're an administrator of the domain to which
767
+ # the shared drive belongs.
767
768
  # @param [String] fields
768
769
  # Selector specifying which fields to include in a partial response.
769
770
  # @param [String] quota_user
@@ -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.35.0
4
+ version: 0.37.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-19 00:00:00.000000000 Z
11
+ date: 2023-03-12 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.35.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-drive_v3/v0.37.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: []