google-apis-drive_v2 0.18.0 → 0.21.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: bc8ec002e86db3fa6dff1835ecee59f70b56231c1e535080e41e2657cfbc5016
4
- data.tar.gz: 36e612ddc45f6537cf120adc222c4e19a5e028bdae4230efaf0ae62eaf4403da
3
+ metadata.gz: cb72a6ccd10e131c34bc02e9675d78c19f8ace9217a2eb1257f5223e7b66f89a
4
+ data.tar.gz: 3ba99a5510d264453ce0f0ca279ac7a3eef8c510861f731319224996a9f7232e
5
5
  SHA512:
6
- metadata.gz: be8991cff866cecaf1790fc39007d38c874d586b35dffb9e59758758882b58b136846048bb21857ca6821ef28fd4a6ac1a7916797d4889431f3390c1b994772d
7
- data.tar.gz: b48918624e343966cd749ed995d8939603082df5ffce569726cf53b4e426f8452b1180f50a69dcd59f7da4a3aa97334cdb22fe80ed1670fa950cf49ab44eecf2
6
+ metadata.gz: 45c51d0f17190cec767fce954fbe15da66b9c5c181d592c4adfc09886a1a29d0bd18c773b06d658ba45ff8fdea411eb3688b74c0066d26bd6b6834b2de8aafa6
7
+ data.tar.gz: 0ab6f49317624834569ebe32ef91d4138458fd7a70a9da0b0774b8449f12109a9837afa444f1956c9c4e924e13694ae9d18222d3a9bec9d0f6b200510228d5b1
data/CHANGELOG.md CHANGED
@@ -1,5 +1,18 @@
1
1
  # Release history for google-apis-drive_v2
2
2
 
3
+ ### v0.21.0 (2022-04-21)
4
+
5
+ * Regenerated from discovery document revision 20220417
6
+
7
+ ### v0.20.0 (2022-04-14)
8
+
9
+ * Regenerated from discovery document revision 20220410
10
+
11
+ ### v0.19.0 (2022-01-13)
12
+
13
+ * Regenerated from discovery document revision 20220110
14
+ * Regenerated using generator version 0.4.1
15
+
3
16
  ### v0.18.0 (2021-12-14)
4
17
 
5
18
  * Unspecified changes
@@ -1446,6 +1446,12 @@ module Google
1446
1446
  # @return [String]
1447
1447
  attr_accessor :name
1448
1448
 
1449
+ # The organizational unit of this shared drive. This field is only populated on
1450
+ # drives.list responses when the useDomainAdminAccess parameter is set to true.
1451
+ # Corresponds to the JSON property `orgUnitId`
1452
+ # @return [String]
1453
+ attr_accessor :org_unit_id
1454
+
1449
1455
  # A set of restrictions that apply to this shared drive or items inside this
1450
1456
  # shared drive.
1451
1457
  # Corresponds to the JSON property `restrictions`
@@ -1476,6 +1482,7 @@ module Google
1476
1482
  @id = args[:id] if args.key?(:id)
1477
1483
  @kind = args[:kind] if args.key?(:kind)
1478
1484
  @name = args[:name] if args.key?(:name)
1485
+ @org_unit_id = args[:org_unit_id] if args.key?(:org_unit_id)
1479
1486
  @restrictions = args[:restrictions] if args.key?(:restrictions)
1480
1487
  @theme_id = args[:theme_id] if args.key?(:theme_id)
1481
1488
  end
@@ -3820,6 +3827,12 @@ module Google
3820
3827
  # @return [String]
3821
3828
  attr_accessor :name
3822
3829
 
3830
+ # The organizational unit of this shared drive. This field is only populated on
3831
+ # drives.list responses when the useDomainAdminAccess parameter is set to true.
3832
+ # Corresponds to the JSON property `orgUnitId`
3833
+ # @return [String]
3834
+ attr_accessor :org_unit_id
3835
+
3823
3836
  # A set of restrictions that apply to this Team Drive or items inside this Team
3824
3837
  # Drive.
3825
3838
  # Corresponds to the JSON property `restrictions`
@@ -3850,6 +3863,7 @@ module Google
3850
3863
  @id = args[:id] if args.key?(:id)
3851
3864
  @kind = args[:kind] if args.key?(:kind)
3852
3865
  @name = args[:name] if args.key?(:name)
3866
+ @org_unit_id = args[:org_unit_id] if args.key?(:org_unit_id)
3853
3867
  @restrictions = args[:restrictions] if args.key?(:restrictions)
3854
3868
  @theme_id = args[:theme_id] if args.key?(:theme_id)
3855
3869
  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.18.0"
19
+ GEM_VERSION = "0.21.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 = "20211205"
25
+ REVISION = "20220417"
26
26
  end
27
27
  end
28
28
  end
@@ -733,6 +733,7 @@ module Google
733
733
  property :id, as: 'id'
734
734
  property :kind, as: 'kind'
735
735
  property :name, as: 'name'
736
+ property :org_unit_id, as: 'orgUnitId'
736
737
  property :restrictions, as: 'restrictions', class: Google::Apis::DriveV2::Drive::Restrictions, decorator: Google::Apis::DriveV2::Drive::Restrictions::Representation
737
738
 
738
739
  property :theme_id, as: 'themeId'
@@ -1226,6 +1227,7 @@ module Google
1226
1227
  property :id, as: 'id'
1227
1228
  property :kind, as: 'kind'
1228
1229
  property :name, as: 'name'
1230
+ property :org_unit_id, as: 'orgUnitId'
1229
1231
  property :restrictions, as: 'restrictions', class: Google::Apis::DriveV2::TeamDrive::Restrictions, decorator: Google::Apis::DriveV2::TeamDrive::Restrictions::Representation
1230
1232
 
1231
1233
  property :theme_id, as: 'themeId'
@@ -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?
@@ -1957,7 +1966,9 @@ module Google
1957
1966
  execute_or_queue_command(command, &block)
1958
1967
  end
1959
1968
 
1960
- # Subscribe to changes on a file
1969
+ # Subscribes to changes to a file. While you can establish a channel for changes
1970
+ # to a file on a shared drive, a change to a shared drive file won't create a
1971
+ # notification.
1961
1972
  # @param [String] file_id
1962
1973
  # The ID for the file in question.
1963
1974
  # @param [Google::Apis::DriveV2::Channel] channel_object
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.18.0
4
+ version: 0.21.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-01-10 00:00:00.000000000 Z
11
+ date: 2022-04-25 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_v2/CHANGELOG.md
61
- documentation_uri: https://googleapis.dev/ruby/google-apis-drive_v2/v0.18.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-drive_v2/v0.21.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.4
78
+ rubygems_version: 3.3.5
79
79
  signing_key:
80
80
  specification_version: 4
81
81
  summary: Simple REST client for Drive API V2