google-apis-drive_v3 0.5.0 → 0.10.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: 1277c3f6abf34a6b60a4660852254e868f9c4917ca779bfe6a83dfe96f74781f
4
+ data.tar.gz: c161d09f0a15bcccd0fa73c7ac36d2c21e77b735c64fc0d1defbfe8723aa957d
5
5
  SHA512:
6
- metadata.gz: 4785fa306f4d0386fe8281312efae50704cbe124b1d6466836b26cb3d3a2cb10261fabcf1e70ebc2aec185f5aa56862b60bc8b724a3852fe034602a9802451e5
7
- data.tar.gz: 79c56af8864d7c604d8188fa6fff824343ee945b38730ce2aace0d2023e3cbf3ef2ac3c58d6379b0b90c8df1cbb0b6f0db6d74d812d1a8470a55f64abfc9c91f
6
+ metadata.gz: 9c08396d456f246d367bb90a3ae71744f16c6604862778ef422bb32db43bab050660cfc4ca4d3dbb8e81646b65955ba1e38c13ba8345ca5201f582c6534a44ff
7
+ data.tar.gz: b338b591268701a5e8be871b39d351a60d2afc9e1bf89ccd21f4b3c2d717af9466f380ff56fc5a4770679ed392c650e7d4effc0639af31f6c9c8834628971178
data/CHANGELOG.md CHANGED
@@ -1,5 +1,26 @@
1
1
  # Release history for google-apis-drive_v3
2
2
 
3
+ ### v0.10.0 (2021-06-24)
4
+
5
+ * Unspecified changes
6
+
7
+ ### v0.9.0 (2021-06-17)
8
+
9
+ * Regenerated from discovery document revision 20210612
10
+ * Regenerated using generator version 0.3.0
11
+
12
+ ### v0.8.0 (2021-05-28)
13
+
14
+ * Regenerated from discovery document revision 20210524
15
+
16
+ ### v0.7.0 (2021-05-19)
17
+
18
+ * Unspecified changes
19
+
20
+ ### v0.6.0 (2021-05-13)
21
+
22
+ * Regenerated from discovery document revision 20210509
23
+
3
24
  ### v0.5.0 (2021-03-18)
4
25
 
5
26
  * 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
@@ -1142,6 +1142,12 @@ module Google
1142
1142
  # @return [Google::Apis::DriveV3::User]
1143
1143
  attr_accessor :last_modifying_user
1144
1144
 
1145
+ # Contains details about the link URLs that clients are using to refer to this
1146
+ # item.
1147
+ # Corresponds to the JSON property `linkShareMetadata`
1148
+ # @return [Google::Apis::DriveV3::File::LinkShareMetadata]
1149
+ attr_accessor :link_share_metadata
1150
+
1145
1151
  # The MD5 checksum for the content of the file. This is only applicable to files
1146
1152
  # with binary content in Google Drive.
1147
1153
  # Corresponds to the JSON property `md5Checksum`
@@ -1196,8 +1202,8 @@ module Google
1196
1202
  attr_accessor :owned_by_me
1197
1203
  alias_method :owned_by_me?, :owned_by_me
1198
1204
 
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.
1205
+ # The owner of this file. Only certain legacy files may have more than one owner.
1206
+ # This field isn't populated for items in shared drives.
1201
1207
  # Corresponds to the JSON property `owners`
1202
1208
  # @return [Array<Google::Apis::DriveV3::User>]
1203
1209
  attr_accessor :owners
@@ -1235,6 +1241,11 @@ module Google
1235
1241
  # @return [Fixnum]
1236
1242
  attr_accessor :quota_bytes_used
1237
1243
 
1244
+ # A key needed to access the item via a shared link.
1245
+ # Corresponds to the JSON property `resourceKey`
1246
+ # @return [String]
1247
+ attr_accessor :resource_key
1248
+
1238
1249
  # Whether the file has been shared. Not populated for items in shared drives.
1239
1250
  # Corresponds to the JSON property `shared`
1240
1251
  # @return [Boolean]
@@ -1390,6 +1401,7 @@ module Google
1390
1401
  @is_app_authorized = args[:is_app_authorized] if args.key?(:is_app_authorized)
1391
1402
  @kind = args[:kind] if args.key?(:kind)
1392
1403
  @last_modifying_user = args[:last_modifying_user] if args.key?(:last_modifying_user)
1404
+ @link_share_metadata = args[:link_share_metadata] if args.key?(:link_share_metadata)
1393
1405
  @md5_checksum = args[:md5_checksum] if args.key?(:md5_checksum)
1394
1406
  @mime_type = args[:mime_type] if args.key?(:mime_type)
1395
1407
  @modified_by_me = args[:modified_by_me] if args.key?(:modified_by_me)
@@ -1404,6 +1416,7 @@ module Google
1404
1416
  @permissions = args[:permissions] if args.key?(:permissions)
1405
1417
  @properties = args[:properties] if args.key?(:properties)
1406
1418
  @quota_bytes_used = args[:quota_bytes_used] if args.key?(:quota_bytes_used)
1419
+ @resource_key = args[:resource_key] if args.key?(:resource_key)
1407
1420
  @shared = args[:shared] if args.key?(:shared)
1408
1421
  @shared_with_me_time = args[:shared_with_me_time] if args.key?(:shared_with_me_time)
1409
1422
  @sharing_user = args[:sharing_user] if args.key?(:sharing_user)
@@ -1461,6 +1474,13 @@ module Google
1461
1474
  attr_accessor :can_change_copy_requires_writer_permission
1462
1475
  alias_method :can_change_copy_requires_writer_permission?, :can_change_copy_requires_writer_permission
1463
1476
 
1477
+ # Whether the current user can change the securityUpdateEnabled field on link
1478
+ # share metadata.
1479
+ # Corresponds to the JSON property `canChangeSecurityUpdateEnabled`
1480
+ # @return [Boolean]
1481
+ attr_accessor :can_change_security_update_enabled
1482
+ alias_method :can_change_security_update_enabled?, :can_change_security_update_enabled
1483
+
1464
1484
  # Deprecated
1465
1485
  # Corresponds to the JSON property `canChangeViewersCanCopyContent`
1466
1486
  # @return [Boolean]
@@ -1673,6 +1693,7 @@ module Google
1673
1693
  @can_add_folder_from_another_drive = args[:can_add_folder_from_another_drive] if args.key?(:can_add_folder_from_another_drive)
1674
1694
  @can_add_my_drive_parent = args[:can_add_my_drive_parent] if args.key?(:can_add_my_drive_parent)
1675
1695
  @can_change_copy_requires_writer_permission = args[:can_change_copy_requires_writer_permission] if args.key?(:can_change_copy_requires_writer_permission)
1696
+ @can_change_security_update_enabled = args[:can_change_security_update_enabled] if args.key?(:can_change_security_update_enabled)
1676
1697
  @can_change_viewers_can_copy_content = args[:can_change_viewers_can_copy_content] if args.key?(:can_change_viewers_can_copy_content)
1677
1698
  @can_comment = args[:can_comment] if args.key?(:can_comment)
1678
1699
  @can_copy = args[:can_copy] if args.key?(:can_copy)
@@ -1934,6 +1955,34 @@ module Google
1934
1955
  end
1935
1956
  end
1936
1957
 
1958
+ # Contains details about the link URLs that clients are using to refer to this
1959
+ # item.
1960
+ class LinkShareMetadata
1961
+ include Google::Apis::Core::Hashable
1962
+
1963
+ # Whether the file is eligible for security update.
1964
+ # Corresponds to the JSON property `securityUpdateEligible`
1965
+ # @return [Boolean]
1966
+ attr_accessor :security_update_eligible
1967
+ alias_method :security_update_eligible?, :security_update_eligible
1968
+
1969
+ # Whether the security update is enabled for this file.
1970
+ # Corresponds to the JSON property `securityUpdateEnabled`
1971
+ # @return [Boolean]
1972
+ attr_accessor :security_update_enabled
1973
+ alias_method :security_update_enabled?, :security_update_enabled
1974
+
1975
+ def initialize(**args)
1976
+ update!(**args)
1977
+ end
1978
+
1979
+ # Update properties of this object
1980
+ def update!(**args)
1981
+ @security_update_eligible = args[:security_update_eligible] if args.key?(:security_update_eligible)
1982
+ @security_update_enabled = args[:security_update_enabled] if args.key?(:security_update_enabled)
1983
+ end
1984
+ end
1985
+
1937
1986
  # Shortcut file details. Only populated for shortcut files, which have the
1938
1987
  # mimeType field set to application/vnd.google-apps.shortcut.
1939
1988
  class ShortcutDetails
@@ -1951,6 +2000,11 @@ module Google
1951
2000
  # @return [String]
1952
2001
  attr_accessor :target_mime_type
1953
2002
 
2003
+ # The ResourceKey for the target file.
2004
+ # Corresponds to the JSON property `targetResourceKey`
2005
+ # @return [String]
2006
+ attr_accessor :target_resource_key
2007
+
1954
2008
  def initialize(**args)
1955
2009
  update!(**args)
1956
2010
  end
@@ -1959,6 +2013,7 @@ module Google
1959
2013
  def update!(**args)
1960
2014
  @target_id = args[:target_id] if args.key?(:target_id)
1961
2015
  @target_mime_type = args[:target_mime_type] if args.key?(:target_mime_type)
2016
+ @target_resource_key = args[:target_resource_key] if args.key?(:target_resource_key)
1962
2017
  end
1963
2018
  end
1964
2019
 
@@ -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.10.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.3.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20210315"
25
+ REVISION = "20210612"
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
 
@@ -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?
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.10.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-06-28 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.3'
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.3'
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.10.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