google-apis-drive_v3 0.66.0 → 0.67.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: 7f0891779a528c244c8d8fef0e1f803af46287e4e463bd17c30bf9458e72badb
4
- data.tar.gz: 6884fc2b7ea909d59aeec248680ae8c294a4b5819c9b2bda883a518cbea5d766
3
+ metadata.gz: ab9f498c529c78001003ca0c9cf3e04036a217ee44b5157902d0e78c052dc83d
4
+ data.tar.gz: 4d0a1212a89329500923a4eb393f0b7f8f238df632488932859e6ca86467a1ce
5
5
  SHA512:
6
- metadata.gz: d8d34cb45924ad4d9448897e60b51fa7204b92e72920a84a24117757c702238f385fd4907a4d778596e985a254fe5394d8f68ae21e2d77a6d34b80a42c6bfc28
7
- data.tar.gz: 74f45ec9f9de014cf1410ab5c24ad2a089e6b478b7cd6206806f25f7b8b055d94e2a1e4676247f98365da15926580459e89dcad7ac5720b763d2abe8c1c876ee
6
+ metadata.gz: 241604e4323fd7102fa523b52c37b811224232f477ed3375bae0c532ca890b5b5205e54191a0b80d5805237b35865fe4679bcc0097802b61583f7b545fd2f620
7
+ data.tar.gz: 416fe185030a47a0fddbedf3f4167e318b5ddd63f1a7a389986df9c01eb563dc8093bca1b66650816dfac6356ae667a770d299a971c450fb1d0bd6c3b51c8169
data/CHANGELOG.md CHANGED
@@ -1,5 +1,10 @@
1
1
  # Release history for google-apis-drive_v3
2
2
 
3
+ ### v0.67.0 (2025-07-06)
4
+
5
+ * Regenerated from discovery document revision 20250701
6
+ * Regenerated using generator version 0.18.0
7
+
3
8
  ### v0.66.0 (2025-05-18)
4
9
 
5
10
  * Regenerated from discovery document revision 20250511
@@ -1021,6 +1021,31 @@ module Google
1021
1021
  end
1022
1022
  end
1023
1023
 
1024
+ # Download restrictions applied to the file.
1025
+ class DownloadRestrictionsMetadata
1026
+ include Google::Apis::Core::Hashable
1027
+
1028
+ # A restriction for copy and download of the file.
1029
+ # Corresponds to the JSON property `effectiveDownloadRestrictionWithContext`
1030
+ # @return [Google::Apis::DriveV3::DownloadRestriction]
1031
+ attr_accessor :effective_download_restriction_with_context
1032
+
1033
+ # A restriction for copy and download of the file.
1034
+ # Corresponds to the JSON property `itemDownloadRestriction`
1035
+ # @return [Google::Apis::DriveV3::DownloadRestriction]
1036
+ attr_accessor :item_download_restriction
1037
+
1038
+ def initialize(**args)
1039
+ update!(**args)
1040
+ end
1041
+
1042
+ # Update properties of this object
1043
+ def update!(**args)
1044
+ @effective_download_restriction_with_context = args[:effective_download_restriction_with_context] if args.key?(:effective_download_restriction_with_context)
1045
+ @item_download_restriction = args[:item_download_restriction] if args.key?(:item_download_restriction)
1046
+ end
1047
+ end
1048
+
1024
1049
  # Representation of a shared drive. Some resource methods (such as `drives.
1025
1050
  # update`) require a `driveId`. Use the `drives.list` method to retrieve the ID
1026
1051
  # for a shared drive.
@@ -1199,6 +1224,13 @@ module Google
1199
1224
  attr_accessor :can_change_domain_users_only_restriction
1200
1225
  alias_method :can_change_domain_users_only_restriction?, :can_change_domain_users_only_restriction
1201
1226
 
1227
+ # Output only. Whether the current user can change organizer-applied download
1228
+ # restrictions of this shared drive.
1229
+ # Corresponds to the JSON property `canChangeDownloadRestriction`
1230
+ # @return [Boolean]
1231
+ attr_accessor :can_change_download_restriction
1232
+ alias_method :can_change_download_restriction?, :can_change_download_restriction
1233
+
1202
1234
  # Output only. Whether the current user can change the background of this shared
1203
1235
  # drive.
1204
1236
  # Corresponds to the JSON property `canChangeDriveBackground`
@@ -1324,6 +1356,7 @@ module Google
1324
1356
  @can_add_children = args[:can_add_children] if args.key?(:can_add_children)
1325
1357
  @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)
1326
1358
  @can_change_domain_users_only_restriction = args[:can_change_domain_users_only_restriction] if args.key?(:can_change_domain_users_only_restriction)
1359
+ @can_change_download_restriction = args[:can_change_download_restriction] if args.key?(:can_change_download_restriction)
1327
1360
  @can_change_drive_background = args[:can_change_drive_background] if args.key?(:can_change_drive_background)
1328
1361
  @can_change_drive_members_only_restriction = args[:can_change_drive_members_only_restriction] if args.key?(:can_change_drive_members_only_restriction)
1329
1362
  @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)
@@ -1497,6 +1530,11 @@ module Google
1497
1530
  # @return [String]
1498
1531
  attr_accessor :description
1499
1532
 
1533
+ # Download restrictions applied to the file.
1534
+ # Corresponds to the JSON property `downloadRestrictions`
1535
+ # @return [Google::Apis::DriveV3::DownloadRestrictionsMetadata]
1536
+ attr_accessor :download_restrictions
1537
+
1500
1538
  # Output only. ID of the shared drive the file resides in. Only populated for
1501
1539
  # items in shared drives.
1502
1540
  # Corresponds to the JSON property `driveId`
@@ -1866,6 +1904,7 @@ module Google
1866
1904
  @copy_requires_writer_permission = args[:copy_requires_writer_permission] if args.key?(:copy_requires_writer_permission)
1867
1905
  @created_time = args[:created_time] if args.key?(:created_time)
1868
1906
  @description = args[:description] if args.key?(:description)
1907
+ @download_restrictions = args[:download_restrictions] if args.key?(:download_restrictions)
1869
1908
  @drive_id = args[:drive_id] if args.key?(:drive_id)
1870
1909
  @explicitly_trashed = args[:explicitly_trashed] if args.key?(:explicitly_trashed)
1871
1910
  @export_links = args[:export_links] if args.key?(:export_links)
@@ -1966,6 +2005,13 @@ module Google
1966
2005
  attr_accessor :can_change_copy_requires_writer_permission
1967
2006
  alias_method :can_change_copy_requires_writer_permission?, :can_change_copy_requires_writer_permission
1968
2007
 
2008
+ # Output only. Whether the current user can change the owner-applied download
2009
+ # restrictions of the file.
2010
+ # Corresponds to the JSON property `canChangeItemDownloadRestriction`
2011
+ # @return [Boolean]
2012
+ attr_accessor :can_change_item_download_restriction
2013
+ alias_method :can_change_item_download_restriction?, :can_change_item_download_restriction
2014
+
1969
2015
  # Output only. Whether the current user can change the securityUpdateEnabled
1970
2016
  # field on link share metadata.
1971
2017
  # Corresponds to the JSON property `canChangeSecurityUpdateEnabled`
@@ -2237,6 +2283,7 @@ module Google
2237
2283
  @can_add_folder_from_another_drive = args[:can_add_folder_from_another_drive] if args.key?(:can_add_folder_from_another_drive)
2238
2284
  @can_add_my_drive_parent = args[:can_add_my_drive_parent] if args.key?(:can_add_my_drive_parent)
2239
2285
  @can_change_copy_requires_writer_permission = args[:can_change_copy_requires_writer_permission] if args.key?(:can_change_copy_requires_writer_permission)
2286
+ @can_change_item_download_restriction = args[:can_change_item_download_restriction] if args.key?(:can_change_item_download_restriction)
2240
2287
  @can_change_security_update_enabled = args[:can_change_security_update_enabled] if args.key?(:can_change_security_update_enabled)
2241
2288
  @can_change_viewers_can_copy_content = args[:can_change_viewers_can_copy_content] if args.key?(:can_change_viewers_can_copy_content)
2242
2289
  @can_comment = args[:can_comment] if args.key?(:can_comment)
@@ -3910,6 +3957,13 @@ module Google
3910
3957
  attr_accessor :can_change_domain_users_only_restriction
3911
3958
  alias_method :can_change_domain_users_only_restriction?, :can_change_domain_users_only_restriction
3912
3959
 
3960
+ # Whether the current user can change organizer-applied download restrictions of
3961
+ # this shared drive.
3962
+ # Corresponds to the JSON property `canChangeDownloadRestriction`
3963
+ # @return [Boolean]
3964
+ attr_accessor :can_change_download_restriction
3965
+ alias_method :can_change_download_restriction?, :can_change_download_restriction
3966
+
3913
3967
  # Whether the current user can change the `
3914
3968
  # sharingFoldersRequiresOrganizerPermission` restriction of this Team Drive.
3915
3969
  # Corresponds to the JSON property `canChangeSharingFoldersRequiresOrganizerPermissionRestriction`
@@ -4032,6 +4086,7 @@ module Google
4032
4086
  @can_add_children = args[:can_add_children] if args.key?(:can_add_children)
4033
4087
  @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)
4034
4088
  @can_change_domain_users_only_restriction = args[:can_change_domain_users_only_restriction] if args.key?(:can_change_domain_users_only_restriction)
4089
+ @can_change_download_restriction = args[:can_change_download_restriction] if args.key?(:can_change_download_restriction)
4035
4090
  @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)
4036
4091
  @can_change_team_drive_background = args[:can_change_team_drive_background] if args.key?(:can_change_team_drive_background)
4037
4092
  @can_change_team_members_only_restriction = args[:can_change_team_members_only_restriction] if args.key?(:can_change_team_members_only_restriction)
@@ -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.66.0"
19
+ GEM_VERSION = "0.67.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
- GENERATOR_VERSION = "0.17.0"
22
+ GENERATOR_VERSION = "0.18.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20250511"
25
+ REVISION = "20250701"
26
26
  end
27
27
  end
28
28
  end
@@ -124,6 +124,12 @@ module Google
124
124
  include Google::Apis::Core::JsonObjectSupport
125
125
  end
126
126
 
127
+ class DownloadRestrictionsMetadata
128
+ class Representation < Google::Apis::Core::JsonRepresentation; end
129
+
130
+ include Google::Apis::Core::JsonObjectSupport
131
+ end
132
+
127
133
  class Drive
128
134
  class Representation < Google::Apis::Core::JsonRepresentation; end
129
135
 
@@ -632,6 +638,16 @@ module Google
632
638
  end
633
639
  end
634
640
 
641
+ class DownloadRestrictionsMetadata
642
+ # @private
643
+ class Representation < Google::Apis::Core::JsonRepresentation
644
+ property :effective_download_restriction_with_context, as: 'effectiveDownloadRestrictionWithContext', class: Google::Apis::DriveV3::DownloadRestriction, decorator: Google::Apis::DriveV3::DownloadRestriction::Representation
645
+
646
+ property :item_download_restriction, as: 'itemDownloadRestriction', class: Google::Apis::DriveV3::DownloadRestriction, decorator: Google::Apis::DriveV3::DownloadRestriction::Representation
647
+
648
+ end
649
+ end
650
+
635
651
  class Drive
636
652
  # @private
637
653
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -669,6 +685,7 @@ module Google
669
685
  property :can_add_children, as: 'canAddChildren'
670
686
  property :can_change_copy_requires_writer_permission_restriction, as: 'canChangeCopyRequiresWriterPermissionRestriction'
671
687
  property :can_change_domain_users_only_restriction, as: 'canChangeDomainUsersOnlyRestriction'
688
+ property :can_change_download_restriction, as: 'canChangeDownloadRestriction'
672
689
  property :can_change_drive_background, as: 'canChangeDriveBackground'
673
690
  property :can_change_drive_members_only_restriction, as: 'canChangeDriveMembersOnlyRestriction'
674
691
  property :can_change_sharing_folders_requires_organizer_permission_restriction, as: 'canChangeSharingFoldersRequiresOrganizerPermissionRestriction'
@@ -727,6 +744,8 @@ module Google
727
744
  property :created_time, as: 'createdTime', type: DateTime
728
745
 
729
746
  property :description, as: 'description'
747
+ property :download_restrictions, as: 'downloadRestrictions', class: Google::Apis::DriveV3::DownloadRestrictionsMetadata, decorator: Google::Apis::DriveV3::DownloadRestrictionsMetadata::Representation
748
+
730
749
  property :drive_id, as: 'driveId'
731
750
  property :explicitly_trashed, as: 'explicitlyTrashed'
732
751
  hash :export_links, as: 'exportLinks'
@@ -808,6 +827,7 @@ module Google
808
827
  property :can_add_folder_from_another_drive, as: 'canAddFolderFromAnotherDrive'
809
828
  property :can_add_my_drive_parent, as: 'canAddMyDriveParent'
810
829
  property :can_change_copy_requires_writer_permission, as: 'canChangeCopyRequiresWriterPermission'
830
+ property :can_change_item_download_restriction, as: 'canChangeItemDownloadRestriction'
811
831
  property :can_change_security_update_enabled, as: 'canChangeSecurityUpdateEnabled'
812
832
  property :can_change_viewers_can_copy_content, as: 'canChangeViewersCanCopyContent'
813
833
  property :can_comment, as: 'canComment'
@@ -1247,6 +1267,7 @@ module Google
1247
1267
  property :can_add_children, as: 'canAddChildren'
1248
1268
  property :can_change_copy_requires_writer_permission_restriction, as: 'canChangeCopyRequiresWriterPermissionRestriction'
1249
1269
  property :can_change_domain_users_only_restriction, as: 'canChangeDomainUsersOnlyRestriction'
1270
+ property :can_change_download_restriction, as: 'canChangeDownloadRestriction'
1250
1271
  property :can_change_sharing_folders_requires_organizer_permission_restriction, as: 'canChangeSharingFoldersRequiresOrganizerPermissionRestriction'
1251
1272
  property :can_change_team_drive_background, as: 'canChangeTeamDriveBackground'
1252
1273
  property :can_change_team_members_only_restriction, as: 'canChangeTeamMembersOnlyRestriction'
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-drive_v3
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.66.0
4
+ version: 0.67.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
@@ -57,7 +57,7 @@ licenses:
57
57
  metadata:
58
58
  bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
59
59
  changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-drive_v3/CHANGELOG.md
60
- documentation_uri: https://googleapis.dev/ruby/google-apis-drive_v3/v0.66.0
60
+ documentation_uri: https://googleapis.dev/ruby/google-apis-drive_v3/v0.67.0
61
61
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-drive_v3
62
62
  rdoc_options: []
63
63
  require_paths:
@@ -73,7 +73,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
73
73
  - !ruby/object:Gem::Version
74
74
  version: '0'
75
75
  requirements: []
76
- rubygems_version: 3.6.8
76
+ rubygems_version: 3.6.9
77
77
  specification_version: 4
78
78
  summary: Simple REST client for Google Drive API V3
79
79
  test_files: []