google-apis-drive_v2 0.20.0 → 0.23.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: c17e85d40a0d4ade881aa613933c510ffbe9344377705bb141b1821a127b5586
4
- data.tar.gz: 27582843db7a21e4628040bac68b64b39a804e2e114ad7fbf5dd13c65f00c850
3
+ metadata.gz: 620d9526997e3d01adac0b2021c086e3ea6f98cab89b61c5b81740ad569a65ce
4
+ data.tar.gz: f31636af9d63420d5f417442d335d75686cfba86e3e3ae25cf86cef83cc3e319
5
5
  SHA512:
6
- metadata.gz: c170326c1bf1b8c6a941b56b779e749ca203c9bbf6e62359cc74030b1fbbc0f75ebe8c8a44a4055f5a27317e092bb64c2bcf8d57b26004bec13960d260f024fb
7
- data.tar.gz: 93cfd52b73f8294a4eb59574bdf0cf8d22af8cfc79d87a9adbdbba4c02a3d9e5c4889c32156743fae5ffafe8e5aeb4ef97533745b5838a5c2c346e53dbfcaea5
6
+ metadata.gz: 3258622f83962bf772fe091e1bea23d1c6c7e31011b446594a5bd4a6ea9e9e2378e95c6e833aebf973c7b05155f6a0617250d031c9039a287e3743631f8a478a
7
+ data.tar.gz: 01362fb15c4aab70e5ce33b8f2492b368f47874fabc3570dfd66b88cdd8faf30bcb2b6b5897efe893e18c8f247f14b8ec73a42cf21c32f54c11693908149b16f
data/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # Release history for google-apis-drive_v2
2
2
 
3
+ ### v0.23.0 (2022-06-06)
4
+
5
+ * Regenerated using generator version 0.5.0
6
+
7
+ ### v0.22.0 (2022-05-12)
8
+
9
+ * Regenerated from discovery document revision 20220508
10
+
11
+ ### v0.21.0 (2022-04-21)
12
+
13
+ * Regenerated from discovery document revision 20220417
14
+
3
15
  ### v0.20.0 (2022-04-14)
4
16
 
5
17
  * Regenerated from discovery document revision 20220410
@@ -1644,6 +1644,12 @@ module Google
1644
1644
  attr_accessor :can_rename_drive
1645
1645
  alias_method :can_rename_drive?, :can_rename_drive
1646
1646
 
1647
+ # Whether the current user can reset the shared drive restrictions to defaults.
1648
+ # Corresponds to the JSON property `canResetDriveRestrictions`
1649
+ # @return [Boolean]
1650
+ attr_accessor :can_reset_drive_restrictions
1651
+ alias_method :can_reset_drive_restrictions?, :can_reset_drive_restrictions
1652
+
1647
1653
  # Whether the current user can share files or folders in this shared drive.
1648
1654
  # Corresponds to the JSON property `canShare`
1649
1655
  # @return [Boolean]
@@ -1678,6 +1684,7 @@ module Google
1678
1684
  @can_read_revisions = args[:can_read_revisions] if args.key?(:can_read_revisions)
1679
1685
  @can_rename = args[:can_rename] if args.key?(:can_rename)
1680
1686
  @can_rename_drive = args[:can_rename_drive] if args.key?(:can_rename_drive)
1687
+ @can_reset_drive_restrictions = args[:can_reset_drive_restrictions] if args.key?(:can_reset_drive_restrictions)
1681
1688
  @can_share = args[:can_share] if args.key?(:can_share)
1682
1689
  @can_trash_children = args[:can_trash_children] if args.key?(:can_trash_children)
1683
1690
  end
@@ -4030,6 +4037,12 @@ module Google
4030
4037
  attr_accessor :can_rename_team_drive
4031
4038
  alias_method :can_rename_team_drive?, :can_rename_team_drive
4032
4039
 
4040
+ # Whether the current user can reset the Team Drive restrictions to defaults.
4041
+ # Corresponds to the JSON property `canResetTeamDriveRestrictions`
4042
+ # @return [Boolean]
4043
+ attr_accessor :can_reset_team_drive_restrictions
4044
+ alias_method :can_reset_team_drive_restrictions?, :can_reset_team_drive_restrictions
4045
+
4033
4046
  # Whether the current user can share files or folders in this Team Drive.
4034
4047
  # Corresponds to the JSON property `canShare`
4035
4048
  # @return [Boolean]
@@ -4065,6 +4078,7 @@ module Google
4065
4078
  @can_remove_children = args[:can_remove_children] if args.key?(:can_remove_children)
4066
4079
  @can_rename = args[:can_rename] if args.key?(:can_rename)
4067
4080
  @can_rename_team_drive = args[:can_rename_team_drive] if args.key?(:can_rename_team_drive)
4081
+ @can_reset_team_drive_restrictions = args[:can_reset_team_drive_restrictions] if args.key?(:can_reset_team_drive_restrictions)
4068
4082
  @can_share = args[:can_share] if args.key?(:can_share)
4069
4083
  @can_trash_children = args[:can_trash_children] if args.key?(:can_trash_children)
4070
4084
  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.20.0"
19
+ GEM_VERSION = "0.23.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
- GENERATOR_VERSION = "0.4.1"
22
+ GENERATOR_VERSION = "0.5.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20220410"
25
+ REVISION = "20220508"
26
26
  end
27
27
  end
28
28
  end
@@ -768,6 +768,7 @@ module Google
768
768
  property :can_read_revisions, as: 'canReadRevisions'
769
769
  property :can_rename, as: 'canRename'
770
770
  property :can_rename_drive, as: 'canRenameDrive'
771
+ property :can_reset_drive_restrictions, as: 'canResetDriveRestrictions'
771
772
  property :can_share, as: 'canShare'
772
773
  property :can_trash_children, as: 'canTrashChildren'
773
774
  end
@@ -1263,6 +1264,7 @@ module Google
1263
1264
  property :can_remove_children, as: 'canRemoveChildren'
1264
1265
  property :can_rename, as: 'canRename'
1265
1266
  property :can_rename_team_drive, as: 'canRenameTeamDrive'
1267
+ property :can_reset_team_drive_restrictions, as: 'canResetTeamDriveRestrictions'
1266
1268
  property :can_share, as: 'canShare'
1267
1269
  property :can_trash_children, as: 'canTrashChildren'
1268
1270
  end
@@ -879,6 +879,13 @@ module Google
879
879
  # shared drive cannot contain any untrashed items.
880
880
  # @param [String] drive_id
881
881
  # The ID of the shared drive.
882
+ # @param [Boolean] allow_item_deletion
883
+ # Whether any items inside the shared drive should also be deleted. This option
884
+ # is only supported when useDomainAdminAccess is also set to true.
885
+ # @param [Boolean] use_domain_admin_access
886
+ # Issue the request as a domain administrator; if set to true, then the
887
+ # requester will be granted access if they are an administrator of the domain to
888
+ # which the shared drive belongs.
882
889
  # @param [String] fields
883
890
  # Selector specifying which fields to include in a partial response.
884
891
  # @param [String] quota_user
@@ -898,9 +905,11 @@ module Google
898
905
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
899
906
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
900
907
  # @raise [Google::Apis::AuthorizationError] Authorization is required
901
- def delete_drive(drive_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
908
+ def delete_drive(drive_id, allow_item_deletion: nil, use_domain_admin_access: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
902
909
  command = make_simple_command(:delete, 'drives/{driveId}', options)
903
910
  command.params['driveId'] = drive_id unless drive_id.nil?
911
+ command.query['allowItemDeletion'] = allow_item_deletion unless allow_item_deletion.nil?
912
+ command.query['useDomainAdminAccess'] = use_domain_admin_access unless use_domain_admin_access.nil?
904
913
  command.query['fields'] = fields unless fields.nil?
905
914
  command.query['quotaUser'] = quota_user unless quota_user.nil?
906
915
  command.query['userIp'] = user_ip unless user_ip.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.20.0
4
+ version: 0.23.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-04-18 00:00:00.000000000 Z
11
+ date: 2022-06-13 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.4'
19
+ version: '0.5'
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.4'
29
+ version: '0.5'
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.20.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-drive_v2/v0.23.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.5
78
+ rubygems_version: 3.3.14
79
79
  signing_key:
80
80
  specification_version: 4
81
81
  summary: Simple REST client for Drive API V2