google-apis-drive_v3 0.14.0 → 0.18.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: eb090ec2825694630a24aa611e77e2ce15365221691defa7f19495d8a915089e
4
- data.tar.gz: cb3c77f918c63c43790ec25c59cbfb3671f4610777f574e0ca49037e991a1f09
3
+ metadata.gz: 58bc664f2655993b698c0e0159292d9e3f6a46706861b89bc3d09618e2735ddf
4
+ data.tar.gz: edb38c79cb6e46a81300ee48952930942568c0084edebdec86ef3184f72b9594
5
5
  SHA512:
6
- metadata.gz: 131a0f2de2f61c2be192b3195ffb8f0e9b4d3dd79bbac1f3360c257d2fe2ed1f6449c51b985df0bacf7082dd9a1adc5fc7ccd8967bfe751beb377a03f41d4508
7
- data.tar.gz: 3447b573f85d98b435061bb362afc999f10c5c7d9b5157225abc4d6950ecf30b099e752c2d4cb3170fcc64b372bfd63a93c416cf40a65f403546580bfc745068
6
+ metadata.gz: 4fa0849ff9282566dc531be23bcacbbf58bbc1aff0fa29e07b8a0f6bf36964b8736efac91259a83c78412b08541ce37f7ea465effd533c7dc647555bb082c5b9
7
+ data.tar.gz: 96e8e209f5f3f2b51d86abebfcfbaa8982337a4ec15c54146ea675704252f28d16a39ac8f9cf3aac4d85a6b6327a5f535f5eddb9e2f3f794418d75fbb1567190
data/CHANGELOG.md CHANGED
@@ -1,5 +1,23 @@
1
1
  # Release history for google-apis-drive_v3
2
2
 
3
+ ### v0.18.0 (2022-01-13)
4
+
5
+ * Regenerated from discovery document revision 20220110
6
+ * Regenerated using generator version 0.4.1
7
+
8
+ ### v0.17.0 (2021-12-14)
9
+
10
+ * Unspecified changes
11
+
12
+ ### v0.16.0 (2021-11-11)
13
+
14
+ * Regenerated from discovery document revision 20211107
15
+
16
+ ### v0.15.0 (2021-10-21)
17
+
18
+ * Regenerated from discovery document revision 20211017
19
+ * Unspecified changes
20
+
3
21
  ### v0.14.0 (2021-09-24)
4
22
 
5
23
  * Regenerated from discovery document revision 20210919
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.
@@ -60,8 +60,8 @@ See the class reference docs for information on the methods you can call from a
60
60
 
61
61
  More detailed descriptions of the Google simple REST clients are available in two documents.
62
62
 
63
- * The [Usage Guide](https://github.com/googleapis/google-api-ruby-client/blob/master/docs/usage-guide.md) discusses how to make API calls, how to use the provided data structures, and how to work the various features of the client library, including media upload and download, error handling, retries, pagination, and logging.
64
- * The [Auth Guide](https://github.com/googleapis/google-api-ruby-client/blob/master/docs/auth-guide.md) discusses authentication in the client libraries, including API keys, OAuth 2.0, service accounts, and environment variables.
63
+ * The [Usage Guide](https://github.com/googleapis/google-api-ruby-client/blob/main/docs/usage-guide.md) discusses how to make API calls, how to use the provided data structures, and how to work the various features of the client library, including media upload and download, error handling, retries, pagination, and logging.
64
+ * The [Auth Guide](https://github.com/googleapis/google-api-ruby-client/blob/main/docs/auth-guide.md) discusses authentication in the client libraries, including API keys, OAuth 2.0, service accounts, and environment variables.
65
65
 
66
66
  (Note: the above documents are written for the simple REST clients in general, and their examples may not reflect the Drive service in particular.)
67
67
 
@@ -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.14.0"
19
+ GEM_VERSION = "0.18.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 = "20210919"
25
+ REVISION = "20220110"
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'
@@ -996,8 +996,8 @@ module Google
996
996
  execute_or_queue_command(command, &block)
997
997
  end
998
998
 
999
- # Exports a Google Doc to the requested MIME type and returns the exported
1000
- # content. Please note that the exported content is limited to 10MB.
999
+ # Exports a Google Workspace document to the requested MIME type and returns
1000
+ # exported byte content. Note that the exported content is limited to 10MB.
1001
1001
  # @param [String] file_id
1002
1002
  # The ID of the file.
1003
1003
  # @param [String] mime_type
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.14.0
4
+ version: 0.18.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-09-27 00:00:00.000000000 Z
11
+ date: 2022-01-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-apis-core
@@ -57,9 +57,9 @@ licenses:
57
57
  - Apache-2.0
58
58
  metadata:
59
59
  bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
60
- changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/master/generated/google-apis-drive_v3/CHANGELOG.md
61
- documentation_uri: https://googleapis.dev/ruby/google-apis-drive_v3/v0.14.0
62
- source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/master/generated/google-apis-drive_v3
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.18.0
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: []
65
65
  require_paths:
@@ -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