google-apis-drive_v3 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: 867b47b3434bd5ca2eed51d510faa7db3681dba77485ac10a89e5b1d9611b00a
4
- data.tar.gz: df34c5e1bf64bbe3a7482cee7d5da87964afb06895e14bd6a77ae8138c052ba6
3
+ metadata.gz: 5dc88c2a8f288657c1dc0fc81af35f52d2e9b6b1205ff09f5de5b7f8732a76ca
4
+ data.tar.gz: 991e90c86063b4116f5cb3d5f6aacc2cb501c1c9d8cbc2391c782813d2ccebc8
5
5
  SHA512:
6
- metadata.gz: 7eb4eef87c887ac2d8ba57fb5f39a4d72d25122a6fa4a726fe8d6bd700aa98ebaecd6beeb290089df897b1388154be32868a6ad45165110542bfc3224e7eaeb7
7
- data.tar.gz: 3f2293ba349b58249e485471573715e7f51fce44b02e9507f598591eb9795a971e959523f9210bde25acbe479da366f475184cf9cffa6a7ec29fa867d4e40188
6
+ metadata.gz: b2225a84a69822492496039fc22010fb8dba3a2061a2d4c0ba36784334e07fe0157c12c8a8b85ba588040e2801b8acdae26efc299ad7c442914328c27a51417f
7
+ data.tar.gz: fc06f065f7abd85e343c694f6c5335b6358612f8625d91bef5ac5ebe8f13a48bf7744660b3434daf8efcd41042d7b93c03f2d5e3ff66dbf5ad8a2796dd55fcf2
data/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # Release history for google-apis-drive_v3
2
2
 
3
+ ### v0.23.0 (2022-06-05)
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
@@ -882,6 +882,12 @@ module Google
882
882
  attr_accessor :can_rename_drive
883
883
  alias_method :can_rename_drive?, :can_rename_drive
884
884
 
885
+ # Whether the current user can reset the shared drive restrictions to defaults.
886
+ # Corresponds to the JSON property `canResetDriveRestrictions`
887
+ # @return [Boolean]
888
+ attr_accessor :can_reset_drive_restrictions
889
+ alias_method :can_reset_drive_restrictions?, :can_reset_drive_restrictions
890
+
885
891
  # Whether the current user can share files or folders in this shared drive.
886
892
  # Corresponds to the JSON property `canShare`
887
893
  # @return [Boolean]
@@ -916,6 +922,7 @@ module Google
916
922
  @can_read_revisions = args[:can_read_revisions] if args.key?(:can_read_revisions)
917
923
  @can_rename = args[:can_rename] if args.key?(:can_rename)
918
924
  @can_rename_drive = args[:can_rename_drive] if args.key?(:can_rename_drive)
925
+ @can_reset_drive_restrictions = args[:can_reset_drive_restrictions] if args.key?(:can_reset_drive_restrictions)
919
926
  @can_share = args[:can_share] if args.key?(:can_share)
920
927
  @can_trash_children = args[:can_trash_children] if args.key?(:can_trash_children)
921
928
  end
@@ -2944,6 +2951,12 @@ module Google
2944
2951
  attr_accessor :can_rename_team_drive
2945
2952
  alias_method :can_rename_team_drive?, :can_rename_team_drive
2946
2953
 
2954
+ # Whether the current user can reset the Team Drive restrictions to defaults.
2955
+ # Corresponds to the JSON property `canResetTeamDriveRestrictions`
2956
+ # @return [Boolean]
2957
+ attr_accessor :can_reset_team_drive_restrictions
2958
+ alias_method :can_reset_team_drive_restrictions?, :can_reset_team_drive_restrictions
2959
+
2947
2960
  # Whether the current user can share files or folders in this Team Drive.
2948
2961
  # Corresponds to the JSON property `canShare`
2949
2962
  # @return [Boolean]
@@ -2979,6 +2992,7 @@ module Google
2979
2992
  @can_remove_children = args[:can_remove_children] if args.key?(:can_remove_children)
2980
2993
  @can_rename = args[:can_rename] if args.key?(:can_rename)
2981
2994
  @can_rename_team_drive = args[:can_rename_team_drive] if args.key?(:can_rename_team_drive)
2995
+ @can_reset_team_drive_restrictions = args[:can_reset_team_drive_restrictions] if args.key?(:can_reset_team_drive_restrictions)
2982
2996
  @can_share = args[:can_share] if args.key?(:can_share)
2983
2997
  @can_trash_children = args[:can_trash_children] if args.key?(:can_trash_children)
2984
2998
  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.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
@@ -485,6 +485,7 @@ module Google
485
485
  property :can_read_revisions, as: 'canReadRevisions'
486
486
  property :can_rename, as: 'canRename'
487
487
  property :can_rename_drive, as: 'canRenameDrive'
488
+ property :can_reset_drive_restrictions, as: 'canResetDriveRestrictions'
488
489
  property :can_share, as: 'canShare'
489
490
  property :can_trash_children, as: 'canTrashChildren'
490
491
  end
@@ -908,6 +909,7 @@ module Google
908
909
  property :can_remove_children, as: 'canRemoveChildren'
909
910
  property :can_rename, as: 'canRename'
910
911
  property :can_rename_team_drive, as: 'canRenameTeamDrive'
912
+ property :can_reset_team_drive_restrictions, as: 'canResetTeamDriveRestrictions'
911
913
  property :can_share, as: 'canShare'
912
914
  property :can_trash_children, as: 'canTrashChildren'
913
915
  end
@@ -564,6 +564,13 @@ module Google
564
564
  # shared drive cannot contain any untrashed items.
565
565
  # @param [String] drive_id
566
566
  # The ID of the shared drive.
567
+ # @param [Boolean] allow_item_deletion
568
+ # Whether any items inside the shared drive should also be deleted. This option
569
+ # is only supported when useDomainAdminAccess is also set to true.
570
+ # @param [Boolean] use_domain_admin_access
571
+ # Issue the request as a domain administrator; if set to true, then the
572
+ # requester will be granted access if they are an administrator of the domain to
573
+ # which the shared drive belongs.
567
574
  # @param [String] fields
568
575
  # Selector specifying which fields to include in a partial response.
569
576
  # @param [String] quota_user
@@ -583,9 +590,11 @@ module Google
583
590
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
584
591
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
585
592
  # @raise [Google::Apis::AuthorizationError] Authorization is required
586
- def delete_drive(drive_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
593
+ 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)
587
594
  command = make_simple_command(:delete, 'drives/{driveId}', options)
588
595
  command.params['driveId'] = drive_id unless drive_id.nil?
596
+ command.query['allowItemDeletion'] = allow_item_deletion unless allow_item_deletion.nil?
597
+ command.query['useDomainAdminAccess'] = use_domain_admin_access unless use_domain_admin_access.nil?
589
598
  command.query['fields'] = fields unless fields.nil?
590
599
  command.query['quotaUser'] = quota_user unless quota_user.nil?
591
600
  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_v3
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_v3/CHANGELOG.md
61
- documentation_uri: https://googleapis.dev/ruby/google-apis-drive_v3/v0.20.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-drive_v3/v0.23.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: []
@@ -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 V3