google-apis-drive_v3 0.5.0 → 0.13.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: 3f76b993262e8bca6a2292f36a059da13c6c4defbf6ef86ebe944929a73c05c3
4
- data.tar.gz: 3160e370be7ae9a61cb900d83ca6b5fed15d773405e28e70a439edd470052fb8
3
+ metadata.gz: 907390030195c21c638f7c48cbc6ea94c4c85ea4a984a34f01b80e4fceaa24ba
4
+ data.tar.gz: c2bb64b5837d022e3f66fa5fa149e3d5ebe2ef3c14380870ab0f836050c1af20
5
5
  SHA512:
6
- metadata.gz: 4785fa306f4d0386fe8281312efae50704cbe124b1d6466836b26cb3d3a2cb10261fabcf1e70ebc2aec185f5aa56862b60bc8b724a3852fe034602a9802451e5
7
- data.tar.gz: 79c56af8864d7c604d8188fa6fff824343ee945b38730ce2aace0d2023e3cbf3ef2ac3c58d6379b0b90c8df1cbb0b6f0db6d74d812d1a8470a55f64abfc9c91f
6
+ metadata.gz: cf61b823198451a415914e663b7166389bec5a87325c66b76110772980dbbe89eac957642a1699b0699d07e7a2af35c2c86153b87b2b8d7d2f878773d5d91a01
7
+ data.tar.gz: 3af1d87bb7690318dcdb6f88aa40f59305df4ef6a29bdac78d04ab66e343984c59bef77f095ff29fdcce52eb94185d213e0d67d2746ec57b4b1b1e6afdbbe504
data/CHANGELOG.md CHANGED
@@ -1,5 +1,39 @@
1
1
  # Release history for google-apis-drive_v3
2
2
 
3
+ ### v0.13.0 (2021-07-29)
4
+
5
+ * Regenerated from discovery document revision 20210725
6
+
7
+ ### v0.12.0 (2021-07-13)
8
+
9
+ * Regenerated from discovery document revision 20210707
10
+
11
+ ### v0.11.0 (2021-07-01)
12
+
13
+ * Regenerated from discovery document revision 20210628
14
+ * Regenerated using generator version 0.4.0
15
+
16
+ ### v0.10.0 (2021-06-24)
17
+
18
+ * Unspecified changes
19
+
20
+ ### v0.9.0 (2021-06-17)
21
+
22
+ * Regenerated from discovery document revision 20210612
23
+ * Regenerated using generator version 0.3.0
24
+
25
+ ### v0.8.0 (2021-05-28)
26
+
27
+ * Regenerated from discovery document revision 20210524
28
+
29
+ ### v0.7.0 (2021-05-19)
30
+
31
+ * Unspecified changes
32
+
33
+ ### v0.6.0 (2021-05-13)
34
+
35
+ * Regenerated from discovery document revision 20210509
36
+
3
37
  ### v0.5.0 (2021-03-18)
4
38
 
5
39
  * Regenerated from discovery document revision 20210315
@@ -426,8 +426,8 @@ module Google
426
426
  class Comment
427
427
  include Google::Apis::Core::Hashable
428
428
 
429
- # A region of the document represented as a JSON string. See anchor
430
- # documentation for details on how to define and interpret anchor properties.
429
+ # A region of the document represented as a JSON string. For details on defining
430
+ # anchor properties, refer to Add comments and replies.
431
431
  # Corresponds to the JSON property `anchor`
432
432
  # @return [String]
433
433
  attr_accessor :anchor
@@ -1073,8 +1073,9 @@ module Google
1073
1073
  # @return [String]
1074
1074
  attr_accessor :file_extension
1075
1075
 
1076
- # The color for a folder as an RGB hex string. The supported colors are
1077
- # published in the folderColorPalette field of the About resource.
1076
+ # The color for a folder or shortcut to a folder as an RGB hex string. The
1077
+ # supported colors are published in the folderColorPalette field of the About
1078
+ # resource.
1078
1079
  # If an unsupported color is specified, the closest color in the palette will be
1079
1080
  # used instead.
1080
1081
  # Corresponds to the JSON property `folderColorRgb`
@@ -1142,6 +1143,12 @@ module Google
1142
1143
  # @return [Google::Apis::DriveV3::User]
1143
1144
  attr_accessor :last_modifying_user
1144
1145
 
1146
+ # Contains details about the link URLs that clients are using to refer to this
1147
+ # item.
1148
+ # Corresponds to the JSON property `linkShareMetadata`
1149
+ # @return [Google::Apis::DriveV3::File::LinkShareMetadata]
1150
+ attr_accessor :link_share_metadata
1151
+
1145
1152
  # The MD5 checksum for the content of the file. This is only applicable to files
1146
1153
  # with binary content in Google Drive.
1147
1154
  # Corresponds to the JSON property `md5Checksum`
@@ -1196,8 +1203,8 @@ module Google
1196
1203
  attr_accessor :owned_by_me
1197
1204
  alias_method :owned_by_me?, :owned_by_me
1198
1205
 
1199
- # The owners of the file. Currently, only certain legacy files may have more
1200
- # than one owner. Not populated for items in shared drives.
1206
+ # The owner of this file. Only certain legacy files may have more than one owner.
1207
+ # This field isn't populated for items in shared drives.
1201
1208
  # Corresponds to the JSON property `owners`
1202
1209
  # @return [Array<Google::Apis::DriveV3::User>]
1203
1210
  attr_accessor :owners
@@ -1235,6 +1242,11 @@ module Google
1235
1242
  # @return [Fixnum]
1236
1243
  attr_accessor :quota_bytes_used
1237
1244
 
1245
+ # A key needed to access the item via a shared link.
1246
+ # Corresponds to the JSON property `resourceKey`
1247
+ # @return [String]
1248
+ attr_accessor :resource_key
1249
+
1238
1250
  # Whether the file has been shared. Not populated for items in shared drives.
1239
1251
  # Corresponds to the JSON property `shared`
1240
1252
  # @return [Boolean]
@@ -1390,6 +1402,7 @@ module Google
1390
1402
  @is_app_authorized = args[:is_app_authorized] if args.key?(:is_app_authorized)
1391
1403
  @kind = args[:kind] if args.key?(:kind)
1392
1404
  @last_modifying_user = args[:last_modifying_user] if args.key?(:last_modifying_user)
1405
+ @link_share_metadata = args[:link_share_metadata] if args.key?(:link_share_metadata)
1393
1406
  @md5_checksum = args[:md5_checksum] if args.key?(:md5_checksum)
1394
1407
  @mime_type = args[:mime_type] if args.key?(:mime_type)
1395
1408
  @modified_by_me = args[:modified_by_me] if args.key?(:modified_by_me)
@@ -1404,6 +1417,7 @@ module Google
1404
1417
  @permissions = args[:permissions] if args.key?(:permissions)
1405
1418
  @properties = args[:properties] if args.key?(:properties)
1406
1419
  @quota_bytes_used = args[:quota_bytes_used] if args.key?(:quota_bytes_used)
1420
+ @resource_key = args[:resource_key] if args.key?(:resource_key)
1407
1421
  @shared = args[:shared] if args.key?(:shared)
1408
1422
  @shared_with_me_time = args[:shared_with_me_time] if args.key?(:shared_with_me_time)
1409
1423
  @sharing_user = args[:sharing_user] if args.key?(:sharing_user)
@@ -1461,6 +1475,13 @@ module Google
1461
1475
  attr_accessor :can_change_copy_requires_writer_permission
1462
1476
  alias_method :can_change_copy_requires_writer_permission?, :can_change_copy_requires_writer_permission
1463
1477
 
1478
+ # Whether the current user can change the securityUpdateEnabled field on link
1479
+ # share metadata.
1480
+ # Corresponds to the JSON property `canChangeSecurityUpdateEnabled`
1481
+ # @return [Boolean]
1482
+ attr_accessor :can_change_security_update_enabled
1483
+ alias_method :can_change_security_update_enabled?, :can_change_security_update_enabled
1484
+
1464
1485
  # Deprecated
1465
1486
  # Corresponds to the JSON property `canChangeViewersCanCopyContent`
1466
1487
  # @return [Boolean]
@@ -1673,6 +1694,7 @@ module Google
1673
1694
  @can_add_folder_from_another_drive = args[:can_add_folder_from_another_drive] if args.key?(:can_add_folder_from_another_drive)
1674
1695
  @can_add_my_drive_parent = args[:can_add_my_drive_parent] if args.key?(:can_add_my_drive_parent)
1675
1696
  @can_change_copy_requires_writer_permission = args[:can_change_copy_requires_writer_permission] if args.key?(:can_change_copy_requires_writer_permission)
1697
+ @can_change_security_update_enabled = args[:can_change_security_update_enabled] if args.key?(:can_change_security_update_enabled)
1676
1698
  @can_change_viewers_can_copy_content = args[:can_change_viewers_can_copy_content] if args.key?(:can_change_viewers_can_copy_content)
1677
1699
  @can_comment = args[:can_comment] if args.key?(:can_comment)
1678
1700
  @can_copy = args[:can_copy] if args.key?(:can_copy)
@@ -1934,6 +1956,34 @@ module Google
1934
1956
  end
1935
1957
  end
1936
1958
 
1959
+ # Contains details about the link URLs that clients are using to refer to this
1960
+ # item.
1961
+ class LinkShareMetadata
1962
+ include Google::Apis::Core::Hashable
1963
+
1964
+ # Whether the file is eligible for security update.
1965
+ # Corresponds to the JSON property `securityUpdateEligible`
1966
+ # @return [Boolean]
1967
+ attr_accessor :security_update_eligible
1968
+ alias_method :security_update_eligible?, :security_update_eligible
1969
+
1970
+ # Whether the security update is enabled for this file.
1971
+ # Corresponds to the JSON property `securityUpdateEnabled`
1972
+ # @return [Boolean]
1973
+ attr_accessor :security_update_enabled
1974
+ alias_method :security_update_enabled?, :security_update_enabled
1975
+
1976
+ def initialize(**args)
1977
+ update!(**args)
1978
+ end
1979
+
1980
+ # Update properties of this object
1981
+ def update!(**args)
1982
+ @security_update_eligible = args[:security_update_eligible] if args.key?(:security_update_eligible)
1983
+ @security_update_enabled = args[:security_update_enabled] if args.key?(:security_update_enabled)
1984
+ end
1985
+ end
1986
+
1937
1987
  # Shortcut file details. Only populated for shortcut files, which have the
1938
1988
  # mimeType field set to application/vnd.google-apps.shortcut.
1939
1989
  class ShortcutDetails
@@ -1951,6 +2001,11 @@ module Google
1951
2001
  # @return [String]
1952
2002
  attr_accessor :target_mime_type
1953
2003
 
2004
+ # The ResourceKey for the target file.
2005
+ # Corresponds to the JSON property `targetResourceKey`
2006
+ # @return [String]
2007
+ attr_accessor :target_resource_key
2008
+
1954
2009
  def initialize(**args)
1955
2010
  update!(**args)
1956
2011
  end
@@ -1959,6 +2014,7 @@ module Google
1959
2014
  def update!(**args)
1960
2015
  @target_id = args[:target_id] if args.key?(:target_id)
1961
2016
  @target_mime_type = args[:target_mime_type] if args.key?(:target_mime_type)
2017
+ @target_resource_key = args[:target_resource_key] if args.key?(:target_resource_key)
1962
2018
  end
1963
2019
  end
1964
2020
 
@@ -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.5.0"
19
+ GEM_VERSION = "0.13.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
- GENERATOR_VERSION = "0.2.0"
22
+ GENERATOR_VERSION = "0.4.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20210315"
25
+ REVISION = "20210725"
26
26
  end
27
27
  end
28
28
  end
@@ -151,6 +151,12 @@ module Google
151
151
  include Google::Apis::Core::JsonObjectSupport
152
152
  end
153
153
 
154
+ class LinkShareMetadata
155
+ class Representation < Google::Apis::Core::JsonRepresentation; end
156
+
157
+ include Google::Apis::Core::JsonObjectSupport
158
+ end
159
+
154
160
  class ShortcutDetails
155
161
  class Representation < Google::Apis::Core::JsonRepresentation; end
156
162
 
@@ -535,6 +541,8 @@ module Google
535
541
  property :kind, as: 'kind'
536
542
  property :last_modifying_user, as: 'lastModifyingUser', class: Google::Apis::DriveV3::User, decorator: Google::Apis::DriveV3::User::Representation
537
543
 
544
+ property :link_share_metadata, as: 'linkShareMetadata', class: Google::Apis::DriveV3::File::LinkShareMetadata, decorator: Google::Apis::DriveV3::File::LinkShareMetadata::Representation
545
+
538
546
  property :md5_checksum, as: 'md5Checksum'
539
547
  property :mime_type, as: 'mimeType'
540
548
  property :modified_by_me, as: 'modifiedByMe'
@@ -553,6 +561,7 @@ module Google
553
561
 
554
562
  hash :properties, as: 'properties'
555
563
  property :quota_bytes_used, :numeric_string => true, as: 'quotaBytesUsed'
564
+ property :resource_key, as: 'resourceKey'
556
565
  property :shared, as: 'shared'
557
566
  property :shared_with_me_time, as: 'sharedWithMeTime', type: DateTime
558
567
 
@@ -590,6 +599,7 @@ module Google
590
599
  property :can_add_folder_from_another_drive, as: 'canAddFolderFromAnotherDrive'
591
600
  property :can_add_my_drive_parent, as: 'canAddMyDriveParent'
592
601
  property :can_change_copy_requires_writer_permission, as: 'canChangeCopyRequiresWriterPermission'
602
+ property :can_change_security_update_enabled, as: 'canChangeSecurityUpdateEnabled'
593
603
  property :can_change_viewers_can_copy_content, as: 'canChangeViewersCanCopyContent'
594
604
  property :can_comment, as: 'canComment'
595
605
  property :can_copy, as: 'canCopy'
@@ -677,11 +687,20 @@ module Google
677
687
  end
678
688
  end
679
689
 
690
+ class LinkShareMetadata
691
+ # @private
692
+ class Representation < Google::Apis::Core::JsonRepresentation
693
+ property :security_update_eligible, as: 'securityUpdateEligible'
694
+ property :security_update_enabled, as: 'securityUpdateEnabled'
695
+ end
696
+ end
697
+
680
698
  class ShortcutDetails
681
699
  # @private
682
700
  class Representation < Google::Apis::Core::JsonRepresentation
683
701
  property :target_id, as: 'targetId'
684
702
  property :target_mime_type, as: 'targetMimeType'
703
+ property :target_resource_key, as: 'targetResourceKey'
685
704
  end
686
705
  end
687
706
 
@@ -665,7 +665,7 @@ module Google
665
665
 
666
666
  # Lists the user's shared drives.
667
667
  # @param [Fixnum] page_size
668
- # Maximum number of shared drives to return.
668
+ # Maximum number of shared drives to return per page.
669
669
  # @param [String] page_token
670
670
  # Page token for shared drives.
671
671
  # @param [String] q
@@ -1043,7 +1043,11 @@ module Google
1043
1043
  # The number of IDs to return.
1044
1044
  # @param [String] space
1045
1045
  # The space in which the IDs can be used to create new files. Supported values
1046
- # are 'drive' and 'appDataFolder'.
1046
+ # are 'drive' and 'appDataFolder'. (Default: 'drive')
1047
+ # @param [String] type
1048
+ # The type of items which the IDs can be used for. Supported values are 'files'
1049
+ # and 'shortcuts'. Note that 'shortcuts' are only supported in the drive 'space'.
1050
+ # (Default: 'files')
1047
1051
  # @param [String] fields
1048
1052
  # Selector specifying which fields to include in a partial response.
1049
1053
  # @param [String] quota_user
@@ -1063,12 +1067,13 @@ module Google
1063
1067
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1064
1068
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1065
1069
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1066
- def generate_file_ids(count: nil, space: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1070
+ def generate_file_ids(count: nil, space: nil, type: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1067
1071
  command = make_simple_command(:get, 'files/generateIds', options)
1068
1072
  command.response_representation = Google::Apis::DriveV3::GeneratedIds::Representation
1069
1073
  command.response_class = Google::Apis::DriveV3::GeneratedIds
1070
1074
  command.query['count'] = count unless count.nil?
1071
1075
  command.query['space'] = space unless space.nil?
1076
+ command.query['type'] = type unless type.nil?
1072
1077
  command.query['fields'] = fields unless fields.nil?
1073
1078
  command.query['quotaUser'] = quota_user unless quota_user.nil?
1074
1079
  command.query['userIp'] = user_ip unless user_ip.nil?
@@ -1167,7 +1172,7 @@ module Google
1167
1172
  # supported syntax.
1168
1173
  # @param [String] spaces
1169
1174
  # A comma-separated list of spaces to query within the corpus. Supported values
1170
- # are 'drive', 'appDataFolder' and 'photos'.
1175
+ # are 'drive' and 'appDataFolder'.
1171
1176
  # @param [Boolean] supports_all_drives
1172
1177
  # Whether the requesting application supports both My Drives and shared drives.
1173
1178
  # @param [Boolean] supports_team_drives
@@ -1376,7 +1381,11 @@ module Google
1376
1381
  # @param [Boolean] transfer_ownership
1377
1382
  # Whether to transfer ownership to the specified user and downgrade the current
1378
1383
  # owner to a writer. This parameter is required as an acknowledgement of the
1379
- # side effect.
1384
+ # side effect. File owners can only transfer ownership of files existing on My
1385
+ # Drive. Files existing in a shared drive are owned by the organization that
1386
+ # owns that shared drive. Ownership transfers are not supported for files and
1387
+ # folders in shared drives. Organizers of a shared drive can move items from
1388
+ # that shared drive into their My Drive which transfers the ownership to them.
1380
1389
  # @param [Boolean] use_domain_admin_access
1381
1390
  # Issue the request as a domain administrator; if set to true, then the
1382
1391
  # requester will be granted access if the file ID parameter refers to a shared
@@ -1589,7 +1598,11 @@ module Google
1589
1598
  # @param [Boolean] transfer_ownership
1590
1599
  # Whether to transfer ownership to the specified user and downgrade the current
1591
1600
  # owner to a writer. This parameter is required as an acknowledgement of the
1592
- # side effect.
1601
+ # side effect. File owners can only transfer ownership of files existing on My
1602
+ # Drive. Files existing in a shared drive are owned by the organization that
1603
+ # owns that shared drive. Ownership transfers are not supported for files and
1604
+ # folders in shared drives. Organizers of a shared drive can move items from
1605
+ # that shared drive into their My Drive which transfers the ownership to them.
1593
1606
  # @param [Boolean] use_domain_admin_access
1594
1607
  # Issue the request as a domain administrator; if set to true, then the
1595
1608
  # requester will be granted access if the file ID parameter refers to a shared
metadata CHANGED
@@ -1,29 +1,35 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-drive_v3
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.0
4
+ version: 0.13.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-03-22 00:00:00.000000000 Z
11
+ date: 2021-08-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-apis-core
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - "~>"
17
+ - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: '0.1'
19
+ version: '0.4'
20
+ - - "<"
21
+ - !ruby/object:Gem::Version
22
+ version: 2.a
20
23
  type: :runtime
21
24
  prerelease: false
22
25
  version_requirements: !ruby/object:Gem::Requirement
23
26
  requirements:
24
- - - "~>"
27
+ - - ">="
28
+ - !ruby/object:Gem::Version
29
+ version: '0.4'
30
+ - - "<"
25
31
  - !ruby/object:Gem::Version
26
- version: '0.1'
32
+ version: 2.a
27
33
  description: This is the simple REST client for Drive API V3. Simple REST clients
28
34
  are Ruby client libraries that provide access to Google services via their HTTP
29
35
  REST API endpoints. These libraries are generated and updated automatically based
@@ -52,7 +58,7 @@ licenses:
52
58
  metadata:
53
59
  bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
54
60
  changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/master/generated/google-apis-drive_v3/CHANGELOG.md
55
- documentation_uri: https://googleapis.dev/ruby/google-apis-drive_v3/v0.5.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-drive_v3/v0.13.0
56
62
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/master/generated/google-apis-drive_v3
57
63
  post_install_message:
58
64
  rdoc_options: []
@@ -69,7 +75,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
69
75
  - !ruby/object:Gem::Version
70
76
  version: '0'
71
77
  requirements: []
72
- rubygems_version: 3.2.13
78
+ rubygems_version: 3.2.17
73
79
  signing_key:
74
80
  specification_version: 4
75
81
  summary: Simple REST client for Drive API V3