google-apis-drive_v3 0.15.0 → 0.19.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: aa5fb9cc8027f14850ce693d19fafa03ffd104349e56607db3493220cbc7b38e
4
- data.tar.gz: 7e9dcb82975c552808ba0264669ae92f5811a9f1f632596a9232b4a505ab3dc3
3
+ metadata.gz: d79cef3a462e599407c5b03784c56c353b18f62ecfb6bdb31fde79379b05b6cc
4
+ data.tar.gz: ee796106c30311e69091907fbbbedff9cf6e9d8839c04ac6d7d18c8a7bfd7bc1
5
5
  SHA512:
6
- metadata.gz: 7e303e5411b48fbead4a68fbd8fdc7cf8b498ba16ddc54cbed5843abdd3c41e4795092bca6e43bad457977e3d63604c403446a6aa59a893b389b299ed7b0bc8d
7
- data.tar.gz: 4476623e96a3fabe1daeb4c9b7ede59d58819585d14f077ee0ee7e4fdf8c65d6a9289af556831ecd65e2ea892c96c246574472c1b2c31fb5f29c70208b288ff8
6
+ metadata.gz: 6e91c2192a1b27e7cce5d9f8b80010797185a71e6211246002d7211ae4f73baba97a7c40a45c85f0109f4e74d8cb85d74215f637f10dbe39488a4ae52ddb449b
7
+ data.tar.gz: 61e80c392e10c418bcf46df37bd3fcd32485acf2949150084ac0cae5abbbe5712f91a2cf2cec7b29e174882e4d07d2efc3af72e86b86c7af43dfea6e82c91903
data/CHANGELOG.md CHANGED
@@ -1,5 +1,22 @@
1
1
  # Release history for google-apis-drive_v3
2
2
 
3
+ ### v0.19.0 (2022-02-17)
4
+
5
+ * Regenerated from discovery document revision 20220214
6
+
7
+ ### v0.18.0 (2022-01-13)
8
+
9
+ * Regenerated from discovery document revision 20220110
10
+ * Regenerated using generator version 0.4.1
11
+
12
+ ### v0.17.0 (2021-12-14)
13
+
14
+ * Unspecified changes
15
+
16
+ ### v0.16.0 (2021-11-11)
17
+
18
+ * Regenerated from discovery document revision 20211107
19
+
3
20
  ### v0.15.0 (2021-10-21)
4
21
 
5
22
  * Regenerated from discovery document revision 20211017
data/OVERVIEW.md CHANGED
@@ -51,7 +51,7 @@ require "google/apis/drive_v3"
51
51
  client = Google::Apis::DriveV3::DriveService.new
52
52
 
53
53
  # Authenticate calls
54
- client.authentication = # ... use the googleauth gem to create credentials
54
+ client.authorization = # ... use the googleauth gem to create credentials
55
55
  ```
56
56
 
57
57
  See the class reference docs for information on the methods you can call from a client.
@@ -684,6 +684,12 @@ module Google
684
684
  # @return [String]
685
685
  attr_accessor :name
686
686
 
687
+ # The organizational unit of this shared drive. This field is only populated on
688
+ # drives.list responses when the useDomainAdminAccess parameter is set to true.
689
+ # Corresponds to the JSON property `orgUnitId`
690
+ # @return [String]
691
+ attr_accessor :org_unit_id
692
+
687
693
  # A set of restrictions that apply to this shared drive or items inside this
688
694
  # shared drive.
689
695
  # Corresponds to the JSON property `restrictions`
@@ -714,6 +720,7 @@ module Google
714
720
  @id = args[:id] if args.key?(:id)
715
721
  @kind = args[:kind] if args.key?(:kind)
716
722
  @name = args[:name] if args.key?(:name)
723
+ @org_unit_id = args[:org_unit_id] if args.key?(:org_unit_id)
717
724
  @restrictions = args[:restrictions] if args.key?(:restrictions)
718
725
  @theme_id = args[:theme_id] if args.key?(:theme_id)
719
726
  end
@@ -1446,6 +1453,13 @@ module Google
1446
1453
  class Capabilities
1447
1454
  include Google::Apis::Core::Hashable
1448
1455
 
1456
+ # Whether the current user is the pending owner of the file. Not populated for
1457
+ # shared drive files.
1458
+ # Corresponds to the JSON property `canAcceptOwnership`
1459
+ # @return [Boolean]
1460
+ attr_accessor :can_accept_ownership
1461
+ alias_method :can_accept_ownership?, :can_accept_ownership
1462
+
1449
1463
  # Whether the current user can add children to this folder. This is always false
1450
1464
  # when the item is not a folder.
1451
1465
  # Corresponds to the JSON property `canAddChildren`
@@ -1690,6 +1704,7 @@ module Google
1690
1704
 
1691
1705
  # Update properties of this object
1692
1706
  def update!(**args)
1707
+ @can_accept_ownership = args[:can_accept_ownership] if args.key?(:can_accept_ownership)
1693
1708
  @can_add_children = args[:can_add_children] if args.key?(:can_add_children)
1694
1709
  @can_add_folder_from_another_drive = args[:can_add_folder_from_another_drive] if args.key?(:can_add_folder_from_another_drive)
1695
1710
  @can_add_my_drive_parent = args[:can_add_my_drive_parent] if args.key?(:can_add_my_drive_parent)
@@ -2192,6 +2207,13 @@ module Google
2192
2207
  # @return [String]
2193
2208
  attr_accessor :kind
2194
2209
 
2210
+ # Whether the account associated with this permission is a pending owner. Only
2211
+ # populated for user type permissions for files that are not in a shared drive.
2212
+ # Corresponds to the JSON property `pendingOwner`
2213
+ # @return [Boolean]
2214
+ attr_accessor :pending_owner
2215
+ alias_method :pending_owner?, :pending_owner
2216
+
2195
2217
  # Details of whether the permissions on this shared drive item are inherited or
2196
2218
  # directly on this item. This is an output-only field which is present only for
2197
2219
  # shared drive items.
@@ -2252,6 +2274,7 @@ module Google
2252
2274
  @expiration_time = args[:expiration_time] if args.key?(:expiration_time)
2253
2275
  @id = args[:id] if args.key?(:id)
2254
2276
  @kind = args[:kind] if args.key?(:kind)
2277
+ @pending_owner = args[:pending_owner] if args.key?(:pending_owner)
2255
2278
  @permission_details = args[:permission_details] if args.key?(:permission_details)
2256
2279
  @photo_link = args[:photo_link] if args.key?(:photo_link)
2257
2280
  @role = args[:role] if args.key?(:role)
@@ -2718,6 +2741,12 @@ module Google
2718
2741
  # @return [String]
2719
2742
  attr_accessor :name
2720
2743
 
2744
+ # The organizational unit of this shared drive. This field is only populated on
2745
+ # drives.list responses when the useDomainAdminAccess parameter is set to true.
2746
+ # Corresponds to the JSON property `orgUnitId`
2747
+ # @return [String]
2748
+ attr_accessor :org_unit_id
2749
+
2721
2750
  # A set of restrictions that apply to this Team Drive or items inside this Team
2722
2751
  # Drive.
2723
2752
  # Corresponds to the JSON property `restrictions`
@@ -2748,6 +2777,7 @@ module Google
2748
2777
  @id = args[:id] if args.key?(:id)
2749
2778
  @kind = args[:kind] if args.key?(:kind)
2750
2779
  @name = args[:name] if args.key?(:name)
2780
+ @org_unit_id = args[:org_unit_id] if args.key?(:org_unit_id)
2751
2781
  @restrictions = args[:restrictions] if args.key?(:restrictions)
2752
2782
  @theme_id = args[:theme_id] if args.key?(:theme_id)
2753
2783
  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.15.0"
19
+ GEM_VERSION = "0.19.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
- GENERATOR_VERSION = "0.4.0"
22
+ GENERATOR_VERSION = "0.4.1"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20211017"
25
+ REVISION = "20220214"
26
26
  end
27
27
  end
28
28
  end
@@ -450,6 +450,7 @@ module Google
450
450
  property :id, as: 'id'
451
451
  property :kind, as: 'kind'
452
452
  property :name, as: 'name'
453
+ property :org_unit_id, as: 'orgUnitId'
453
454
  property :restrictions, as: 'restrictions', class: Google::Apis::DriveV3::Drive::Restrictions, decorator: Google::Apis::DriveV3::Drive::Restrictions::Representation
454
455
 
455
456
  property :theme_id, as: 'themeId'
@@ -595,6 +596,7 @@ module Google
595
596
  class Capabilities
596
597
  # @private
597
598
  class Representation < Google::Apis::Core::JsonRepresentation
599
+ property :can_accept_ownership, as: 'canAcceptOwnership'
598
600
  property :can_add_children, as: 'canAddChildren'
599
601
  property :can_add_folder_from_another_drive, as: 'canAddFolderFromAnotherDrive'
600
602
  property :can_add_my_drive_parent, as: 'canAddMyDriveParent'
@@ -746,6 +748,7 @@ module Google
746
748
 
747
749
  property :id, as: 'id'
748
750
  property :kind, as: 'kind'
751
+ property :pending_owner, as: 'pendingOwner'
749
752
  collection :permission_details, as: 'permissionDetails', class: Google::Apis::DriveV3::Permission::PermissionDetail, decorator: Google::Apis::DriveV3::Permission::PermissionDetail::Representation
750
753
 
751
754
  property :photo_link, as: 'photoLink'
@@ -869,6 +872,7 @@ module Google
869
872
  property :id, as: 'id'
870
873
  property :kind, as: 'kind'
871
874
  property :name, as: 'name'
875
+ property :org_unit_id, as: 'orgUnitId'
872
876
  property :restrictions, as: 'restrictions', class: Google::Apis::DriveV3::TeamDrive::Restrictions, decorator: Google::Apis::DriveV3::TeamDrive::Restrictions::Representation
873
877
 
874
878
  property :theme_id, as: 'themeId'
@@ -1303,7 +1303,9 @@ module Google
1303
1303
  execute_or_queue_command(command, &block)
1304
1304
  end
1305
1305
 
1306
- # Subscribes to changes to a file
1306
+ # Subscribes to changes to a file. While you can establish a channel forchanges
1307
+ # to a file on a shared drive, a change to a shared drive file won't create a
1308
+ # notification.
1307
1309
  # @param [String] file_id
1308
1310
  # The ID of the file.
1309
1311
  # @param [Google::Apis::DriveV3::Channel] channel_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.15.0
4
+ version: 0.19.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: 2021-10-27 00:00:00.000000000 Z
11
+ date: 2022-02-21 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.15.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-drive_v3/v0.19.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.2.17
78
+ rubygems_version: 3.3.5
79
79
  signing_key:
80
80
  specification_version: 4
81
81
  summary: Simple REST client for Drive API V3