Skip to content

Commit 5cb137c

Browse files
feat: Automated regeneration of drive v3 client (googleapis#26233)
Auto-created at 2026-04-19 11:47:16 +0000 using the toys pull request generator.
1 parent 5347997 commit 5cb137c

6 files changed

Lines changed: 297 additions & 40 deletions

File tree

api_names_out.yaml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -267660,6 +267660,9 @@
267660267660
"/drive:v3/Channel/resourceUri": resource_uri
267661267661
"/drive:v3/Channel/token": token
267662267662
"/drive:v3/Channel/type": type
267663+
"/drive:v3/ClientEncryptionDetails": client_encryption_details
267664+
"/drive:v3/ClientEncryptionDetails/decryptionMetadata": decryption_metadata
267665+
"/drive:v3/ClientEncryptionDetails/encryptionState": encryption_state
267663267666
"/drive:v3/Comment": comment
267664267667
"/drive:v3/Comment/anchor": anchor
267665267668
"/drive:v3/Comment/assigneeEmailAddress": assignee_email_address
@@ -267692,6 +267695,14 @@
267692267695
"/drive:v3/ContentRestriction/restrictionTime": restriction_time
267693267696
"/drive:v3/ContentRestriction/systemRestricted": system_restricted
267694267697
"/drive:v3/ContentRestriction/type": type
267698+
"/drive:v3/DecryptionMetadata": decryption_metadata
267699+
"/drive:v3/DecryptionMetadata/aes256GcmChunkSize": aes256_gcm_chunk_size
267700+
"/drive:v3/DecryptionMetadata/encryptionResourceKeyHash": encryption_resource_key_hash
267701+
"/drive:v3/DecryptionMetadata/jwt": jwt
267702+
"/drive:v3/DecryptionMetadata/kaclsId": kacls_id
267703+
"/drive:v3/DecryptionMetadata/kaclsName": kacls_name
267704+
"/drive:v3/DecryptionMetadata/keyFormat": key_format
267705+
"/drive:v3/DecryptionMetadata/wrappedKey": wrapped_key
267695267706
"/drive:v3/DownloadRestriction": download_restriction
267696267707
"/drive:v3/DownloadRestriction/restrictedForReaders": restricted_for_readers
267697267708
"/drive:v3/DownloadRestriction/restrictedForWriters": restricted_for_writers
@@ -267796,6 +267807,7 @@
267796267807
"/drive:v3/File/capabilities/canTrash": can_trash
267797267808
"/drive:v3/File/capabilities/canTrashChildren": can_trash_children
267798267809
"/drive:v3/File/capabilities/canUntrash": can_untrash
267810+
"/drive:v3/File/clientEncryptionDetails": client_encryption_details
267799267811
"/drive:v3/File/contentHints": content_hints
267800267812
"/drive:v3/File/contentHints/indexableText": indexable_text
267801267813
"/drive:v3/File/contentHints/thumbnail": thumbnail
@@ -267910,6 +267922,12 @@
267910267922
"/drive:v3/FileList/incompleteSearch": incomplete_search
267911267923
"/drive:v3/FileList/kind": kind
267912267924
"/drive:v3/FileList/nextPageToken": next_page_token
267925+
"/drive:v3/GenerateCseTokenResponse": generate_cse_token_response
267926+
"/drive:v3/GenerateCseTokenResponse/currentKaclsId": current_kacls_id
267927+
"/drive:v3/GenerateCseTokenResponse/currentKaclsName": current_kacls_name
267928+
"/drive:v3/GenerateCseTokenResponse/fileId": file_id
267929+
"/drive:v3/GenerateCseTokenResponse/jwt": jwt
267930+
"/drive:v3/GenerateCseTokenResponse/kind": kind
267913267931
"/drive:v3/GeneratedIds": generated_ids
267914267932
"/drive:v3/GeneratedIds/ids": ids
267915267933
"/drive:v3/GeneratedIds/ids/id": id
@@ -268276,6 +268294,9 @@
268276268294
"/drive:v3/drive.files.export": export_file
268277268295
"/drive:v3/drive.files.export/fileId": file_id
268278268296
"/drive:v3/drive.files.export/mimeType": mime_type
268297+
"/drive:v3/drive.files.generateCseToken": generate_file_cse_token
268298+
"/drive:v3/drive.files.generateCseToken/fileId": file_id
268299+
"/drive:v3/drive.files.generateCseToken/parent": parent
268279268300
"/drive:v3/drive.files.generateIds": generate_file_ids
268280268301
"/drive:v3/drive.files.generateIds/count": count
268281268302
"/drive:v3/drive.files.generateIds/space": space

generated/google-apis-drive_v3/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Release history for google-apis-drive_v3
22

3+
### v0.80.0 (2026-04-19)
4+
5+
* Regenerated from discovery document revision 20260405
6+
37
### v0.79.0 (2026-03-15)
48

59
* Regenerated from discovery document revision 20260305

generated/google-apis-drive_v3/lib/google/apis/drive_v3/classes.rb

Lines changed: 139 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -877,6 +877,32 @@ def update!(**args)
877877
end
878878
end
879879

880+
# Details about the client-side encryption applied to the file.
881+
class ClientEncryptionDetails
882+
include Google::Apis::Core::Hashable
883+
884+
# Representation of the CSE DecryptionMetadata.
885+
# Corresponds to the JSON property `decryptionMetadata`
886+
# @return [Google::Apis::DriveV3::DecryptionMetadata]
887+
attr_accessor :decryption_metadata
888+
889+
# The encryption state of the file. The values expected here are: - encrypted -
890+
# unencrypted
891+
# Corresponds to the JSON property `encryptionState`
892+
# @return [String]
893+
attr_accessor :encryption_state
894+
895+
def initialize(**args)
896+
update!(**args)
897+
end
898+
899+
# Update properties of this object
900+
def update!(**args)
901+
@decryption_metadata = args[:decryption_metadata] if args.key?(:decryption_metadata)
902+
@encryption_state = args[:encryption_state] if args.key?(:encryption_state)
903+
end
904+
end
905+
880906
# A comment on a file. Some resource methods (such as `comments.update`) require
881907
# a `commentId`. Use the `comments.list` method to retrieve the ID for a comment
882908
# in a file.
@@ -1120,6 +1146,67 @@ def update!(**args)
11201146
end
11211147
end
11221148

1149+
# Representation of the CSE DecryptionMetadata.
1150+
class DecryptionMetadata
1151+
include Google::Apis::Core::Hashable
1152+
1153+
# Chunk size used if content was encrypted with the AES 256 GCM Cipher. Possible
1154+
# values are: - default - small
1155+
# Corresponds to the JSON property `aes256GcmChunkSize`
1156+
# @return [String]
1157+
attr_accessor :aes256_gcm_chunk_size
1158+
1159+
# The URL-safe Base64 encoded HMAC-SHA256 digest of the resource metadata with
1160+
# its DEK (Data Encryption Key); see https://developers.google.com/workspace/cse/
1161+
# reference
1162+
# Corresponds to the JSON property `encryptionResourceKeyHash`
1163+
# @return [String]
1164+
attr_accessor :encryption_resource_key_hash
1165+
1166+
# The signed JSON Web Token (JWT) which can be used to authorize the requesting
1167+
# user with the Key ACL Service (KACLS). The JWT asserts that the requesting
1168+
# user has at least read permissions on the file.
1169+
# Corresponds to the JSON property `jwt`
1170+
# @return [String]
1171+
attr_accessor :jwt
1172+
1173+
# The ID of the KACLS (Key ACL Service) used to encrypt the file.
1174+
# Corresponds to the JSON property `kaclsId`
1175+
# @return [Fixnum]
1176+
attr_accessor :kacls_id
1177+
1178+
# The name of the KACLS (Key ACL Service) used to encrypt the file.
1179+
# Corresponds to the JSON property `kaclsName`
1180+
# @return [String]
1181+
attr_accessor :kacls_name
1182+
1183+
# Key format for the unwrapped key. Must be `tinkAesGcmKey`.
1184+
# Corresponds to the JSON property `keyFormat`
1185+
# @return [String]
1186+
attr_accessor :key_format
1187+
1188+
# The URL-safe Base64 encoded wrapped key used to encrypt the contents of the
1189+
# file.
1190+
# Corresponds to the JSON property `wrappedKey`
1191+
# @return [String]
1192+
attr_accessor :wrapped_key
1193+
1194+
def initialize(**args)
1195+
update!(**args)
1196+
end
1197+
1198+
# Update properties of this object
1199+
def update!(**args)
1200+
@aes256_gcm_chunk_size = args[:aes256_gcm_chunk_size] if args.key?(:aes256_gcm_chunk_size)
1201+
@encryption_resource_key_hash = args[:encryption_resource_key_hash] if args.key?(:encryption_resource_key_hash)
1202+
@jwt = args[:jwt] if args.key?(:jwt)
1203+
@kacls_id = args[:kacls_id] if args.key?(:kacls_id)
1204+
@kacls_name = args[:kacls_name] if args.key?(:kacls_name)
1205+
@key_format = args[:key_format] if args.key?(:key_format)
1206+
@wrapped_key = args[:wrapped_key] if args.key?(:wrapped_key)
1207+
end
1208+
end
1209+
11231210
# A restriction for copy and download of the file.
11241211
class DownloadRestriction
11251212
include Google::Apis::Core::Hashable
@@ -1630,6 +1717,11 @@ class File
16301717
# @return [Google::Apis::DriveV3::File::Capabilities]
16311718
attr_accessor :capabilities
16321719

1720+
# Details about the client-side encryption applied to the file.
1721+
# Corresponds to the JSON property `clientEncryptionDetails`
1722+
# @return [Google::Apis::DriveV3::ClientEncryptionDetails]
1723+
attr_accessor :client_encryption_details
1724+
16331725
# Additional information about the content of the file. These fields are never
16341726
# populated in responses.
16351727
# Corresponds to the JSON property `contentHints`
@@ -1955,8 +2047,8 @@ class File
19552047
attr_accessor :thumbnail_version
19562048

19572049
# Whether the file has been trashed, either explicitly or from a trashed parent
1958-
# folder. Only the owner may trash a file, and other users cannot see files in
1959-
# the owner's trash.
2050+
# folder. Only the owner may trash a file, but other users can still access the
2051+
# file in the owner's trash until it's permanently deleted.
19602052
# Corresponds to the JSON property `trashed`
19612053
# @return [Boolean]
19622054
attr_accessor :trashed
@@ -2030,6 +2122,7 @@ def initialize(**args)
20302122
def update!(**args)
20312123
@app_properties = args[:app_properties] if args.key?(:app_properties)
20322124
@capabilities = args[:capabilities] if args.key?(:capabilities)
2125+
@client_encryption_details = args[:client_encryption_details] if args.key?(:client_encryption_details)
20332126
@content_hints = args[:content_hints] if args.key?(:content_hints)
20342127
@content_restrictions = args[:content_restrictions] if args.key?(:content_restrictions)
20352128
@copy_requires_writer_permission = args[:copy_requires_writer_permission] if args.key?(:copy_requires_writer_permission)
@@ -2852,6 +2945,50 @@ def update!(**args)
28522945
end
28532946
end
28542947

2948+
# JWT and associated metadata used to generate CSE files.
2949+
class GenerateCseTokenResponse
2950+
include Google::Apis::Core::Hashable
2951+
2952+
# The current Key ACL Service (KACLS) ID associated with the JWT.
2953+
# Corresponds to the JSON property `currentKaclsId`
2954+
# @return [Fixnum]
2955+
attr_accessor :current_kacls_id
2956+
2957+
# Name of the KACLs that the returned KACLs ID points to.
2958+
# Corresponds to the JSON property `currentKaclsName`
2959+
# @return [String]
2960+
attr_accessor :current_kacls_name
2961+
2962+
# The fileId for which the JWT was generated.
2963+
# Corresponds to the JSON property `fileId`
2964+
# @return [String]
2965+
attr_accessor :file_id
2966+
2967+
# The signed JSON Web Token (JWT) for the file.
2968+
# Corresponds to the JSON property `jwt`
2969+
# @return [String]
2970+
attr_accessor :jwt
2971+
2972+
# Output only. Identifies what kind of resource this is. Value: the fixed string
2973+
# `"drive#generateCseTokenResponse"`.
2974+
# Corresponds to the JSON property `kind`
2975+
# @return [String]
2976+
attr_accessor :kind
2977+
2978+
def initialize(**args)
2979+
update!(**args)
2980+
end
2981+
2982+
# Update properties of this object
2983+
def update!(**args)
2984+
@current_kacls_id = args[:current_kacls_id] if args.key?(:current_kacls_id)
2985+
@current_kacls_name = args[:current_kacls_name] if args.key?(:current_kacls_name)
2986+
@file_id = args[:file_id] if args.key?(:file_id)
2987+
@jwt = args[:jwt] if args.key?(:jwt)
2988+
@kind = args[:kind] if args.key?(:kind)
2989+
end
2990+
end
2991+
28552992
# A list of generated file IDs which can be provided in create requests.
28562993
class GeneratedIds
28572994
include Google::Apis::Core::Hashable

generated/google-apis-drive_v3/lib/google/apis/drive_v3/gem_version.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,13 @@ module Google
1616
module Apis
1717
module DriveV3
1818
# Version of the google-apis-drive_v3 gem
19-
GEM_VERSION = "0.79.0"
19+
GEM_VERSION = "0.80.0"
2020

2121
# Version of the code generator used to generate this client
2222
GENERATOR_VERSION = "0.18.0"
2323

2424
# Revision of the discovery document this client was generated from
25-
REVISION = "20260305"
25+
REVISION = "20260405"
2626
end
2727
end
2828
end

generated/google-apis-drive_v3/lib/google/apis/drive_v3/representations.rb

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,12 @@ class Representation < Google::Apis::Core::JsonRepresentation; end
106106
include Google::Apis::Core::JsonObjectSupport
107107
end
108108

109+
class ClientEncryptionDetails
110+
class Representation < Google::Apis::Core::JsonRepresentation; end
111+
112+
include Google::Apis::Core::JsonObjectSupport
113+
end
114+
109115
class Comment
110116
class Representation < Google::Apis::Core::JsonRepresentation; end
111117

@@ -130,6 +136,12 @@ class Representation < Google::Apis::Core::JsonRepresentation; end
130136
include Google::Apis::Core::JsonObjectSupport
131137
end
132138

139+
class DecryptionMetadata
140+
class Representation < Google::Apis::Core::JsonRepresentation; end
141+
142+
include Google::Apis::Core::JsonObjectSupport
143+
end
144+
133145
class DownloadRestriction
134146
class Representation < Google::Apis::Core::JsonRepresentation; end
135147

@@ -238,6 +250,12 @@ class Representation < Google::Apis::Core::JsonRepresentation; end
238250
include Google::Apis::Core::JsonObjectSupport
239251
end
240252

253+
class GenerateCseTokenResponse
254+
class Representation < Google::Apis::Core::JsonRepresentation; end
255+
256+
include Google::Apis::Core::JsonObjectSupport
257+
end
258+
241259
class GeneratedIds
242260
class Representation < Google::Apis::Core::JsonRepresentation; end
243261

@@ -614,6 +632,15 @@ class Representation < Google::Apis::Core::JsonRepresentation
614632
end
615633
end
616634

635+
class ClientEncryptionDetails
636+
# @private
637+
class Representation < Google::Apis::Core::JsonRepresentation
638+
property :decryption_metadata, as: 'decryptionMetadata', class: Google::Apis::DriveV3::DecryptionMetadata, decorator: Google::Apis::DriveV3::DecryptionMetadata::Representation
639+
640+
property :encryption_state, as: 'encryptionState'
641+
end
642+
end
643+
617644
class Comment
618645
# @private
619646
class Representation < Google::Apis::Core::JsonRepresentation
@@ -672,6 +699,19 @@ class Representation < Google::Apis::Core::JsonRepresentation
672699
end
673700
end
674701

702+
class DecryptionMetadata
703+
# @private
704+
class Representation < Google::Apis::Core::JsonRepresentation
705+
property :aes256_gcm_chunk_size, as: 'aes256GcmChunkSize'
706+
property :encryption_resource_key_hash, as: 'encryptionResourceKeyHash'
707+
property :jwt, as: 'jwt'
708+
property :kacls_id, :numeric_string => true, as: 'kaclsId'
709+
property :kacls_name, as: 'kaclsName'
710+
property :key_format, as: 'keyFormat'
711+
property :wrapped_key, as: 'wrappedKey'
712+
end
713+
end
714+
675715
class DownloadRestriction
676716
# @private
677717
class Representation < Google::Apis::Core::JsonRepresentation
@@ -778,6 +818,8 @@ class Representation < Google::Apis::Core::JsonRepresentation
778818
hash :app_properties, as: 'appProperties'
779819
property :capabilities, as: 'capabilities', class: Google::Apis::DriveV3::File::Capabilities, decorator: Google::Apis::DriveV3::File::Capabilities::Representation
780820

821+
property :client_encryption_details, as: 'clientEncryptionDetails', class: Google::Apis::DriveV3::ClientEncryptionDetails, decorator: Google::Apis::DriveV3::ClientEncryptionDetails::Representation
822+
781823
property :content_hints, as: 'contentHints', class: Google::Apis::DriveV3::File::ContentHints, decorator: Google::Apis::DriveV3::File::ContentHints::Representation
782824

783825
collection :content_restrictions, as: 'contentRestrictions', class: Google::Apis::DriveV3::ContentRestriction, decorator: Google::Apis::DriveV3::ContentRestriction::Representation
@@ -1011,6 +1053,17 @@ class Representation < Google::Apis::Core::JsonRepresentation
10111053
end
10121054
end
10131055

1056+
class GenerateCseTokenResponse
1057+
# @private
1058+
class Representation < Google::Apis::Core::JsonRepresentation
1059+
property :current_kacls_id, :numeric_string => true, as: 'currentKaclsId'
1060+
property :current_kacls_name, as: 'currentKaclsName'
1061+
property :file_id, as: 'fileId'
1062+
property :jwt, as: 'jwt'
1063+
property :kind, as: 'kind'
1064+
end
1065+
end
1066+
10141067
class GeneratedIds
10151068
# @private
10161069
class Representation < Google::Apis::Core::JsonRepresentation

0 commit comments

Comments
 (0)