@@ -26,9 +26,9 @@ def as_dict(self) -> dict:
2626 """Serializes the AddBlock into a dictionary suitable for use as a JSON request body."""
2727 body = {}
2828 if self .data is not None :
29- body ["{ data} " ] = self .data
29+ body ["data" ] = self .data
3030 if self .handle is not None :
31- body ["{ handle} " ] = self .handle
31+ body ["handle" ] = self .handle
3232 return body
3333
3434 def as_shallow_dict (self ) -> dict :
@@ -73,7 +73,7 @@ def as_dict(self) -> dict:
7373 """Serializes the Close into a dictionary suitable for use as a JSON request body."""
7474 body = {}
7575 if self .handle is not None :
76- body ["{ handle} " ] = self .handle
76+ body ["handle" ] = self .handle
7777 return body
7878
7979 def as_shallow_dict (self ) -> dict :
@@ -119,9 +119,9 @@ def as_dict(self) -> dict:
119119 """Serializes the Create into a dictionary suitable for use as a JSON request body."""
120120 body = {}
121121 if self .overwrite is not None :
122- body ["{ overwrite} " ] = self .overwrite
122+ body ["overwrite" ] = self .overwrite
123123 if self .path is not None :
124- body ["{ path} " ] = self .path
124+ body ["path" ] = self .path
125125 return body
126126
127127 def as_shallow_dict (self ) -> dict :
@@ -167,7 +167,7 @@ def as_dict(self) -> dict:
167167 """Serializes the CreateResponse into a dictionary suitable for use as a JSON request body."""
168168 body = {}
169169 if self .handle is not None :
170- body ["{ handle} " ] = self .handle
170+ body ["handle" ] = self .handle
171171 return body
172172
173173 def as_shallow_dict (self ) -> dict :
@@ -196,9 +196,9 @@ def as_dict(self) -> dict:
196196 """Serializes the Delete into a dictionary suitable for use as a JSON request body."""
197197 body = {}
198198 if self .path is not None :
199- body ["{ path} " ] = self .path
199+ body ["path" ] = self .path
200200 if self .recursive is not None :
201- body ["{ recursive} " ] = self .recursive
201+ body ["recursive" ] = self .recursive
202202 return body
203203
204204 def as_shallow_dict (self ) -> dict :
@@ -273,15 +273,15 @@ def as_dict(self) -> dict:
273273 """Serializes the DirectoryEntry into a dictionary suitable for use as a JSON request body."""
274274 body = {}
275275 if self .file_size is not None :
276- body ["{ file_size} " ] = self .file_size
276+ body ["file_size" ] = self .file_size
277277 if self .is_directory is not None :
278- body ["{ is_directory} " ] = self .is_directory
278+ body ["is_directory" ] = self .is_directory
279279 if self .last_modified is not None :
280- body ["{ last_modified} " ] = self .last_modified
280+ body ["last_modified" ] = self .last_modified
281281 if self .name is not None :
282- body ["{ name} " ] = self .name
282+ body ["name" ] = self .name
283283 if self .path is not None :
284- body ["{ path} " ] = self .path
284+ body ["path" ] = self .path
285285 return body
286286
287287 def as_shallow_dict (self ) -> dict :
@@ -327,13 +327,13 @@ def as_dict(self) -> dict:
327327 """Serializes the DownloadResponse into a dictionary suitable for use as a JSON request body."""
328328 body = {}
329329 if self .content_length is not None :
330- body ["{content_length} " ] = self .content_length
330+ body ["content-length " ] = self .content_length
331331 if self .content_type is not None :
332- body ["{content_type} " ] = self .content_type
332+ body ["content-type " ] = self .content_type
333333 if self .contents :
334- body ["{ contents} " ] = self .contents
334+ body ["contents" ] = self .contents
335335 if self .last_modified is not None :
336- body ["{last_modified} " ] = self .last_modified
336+ body ["last-modified " ] = self .last_modified
337337 return body
338338
339339 def as_shallow_dict (self ) -> dict :
@@ -378,13 +378,13 @@ def as_dict(self) -> dict:
378378 """Serializes the FileInfo into a dictionary suitable for use as a JSON request body."""
379379 body = {}
380380 if self .file_size is not None :
381- body ["{ file_size} " ] = self .file_size
381+ body ["file_size" ] = self .file_size
382382 if self .is_dir is not None :
383- body ["{ is_dir} " ] = self .is_dir
383+ body ["is_dir" ] = self .is_dir
384384 if self .modification_time is not None :
385- body ["{ modification_time} " ] = self .modification_time
385+ body ["modification_time" ] = self .modification_time
386386 if self .path is not None :
387- body ["{ path} " ] = self .path
387+ body ["path" ] = self .path
388388 return body
389389
390390 def as_shallow_dict (self ) -> dict :
@@ -443,11 +443,11 @@ def as_dict(self) -> dict:
443443 """Serializes the GetMetadataResponse into a dictionary suitable for use as a JSON request body."""
444444 body = {}
445445 if self .content_length is not None :
446- body ["{content_length} " ] = self .content_length
446+ body ["content-length " ] = self .content_length
447447 if self .content_type is not None :
448- body ["{content_type} " ] = self .content_type
448+ body ["content-type " ] = self .content_type
449449 if self .last_modified is not None :
450- body ["{last_modified} " ] = self .last_modified
450+ body ["last-modified " ] = self .last_modified
451451 return body
452452
453453 def as_shallow_dict (self ) -> dict :
@@ -483,9 +483,9 @@ def as_dict(self) -> dict:
483483 """Serializes the ListDirectoryResponse into a dictionary suitable for use as a JSON request body."""
484484 body = {}
485485 if self .contents :
486- body ["{ contents} " ] = [v .as_dict () for v in self .contents ]
486+ body ["contents" ] = [v .as_dict () for v in self .contents ]
487487 if self .next_page_token is not None :
488- body ["{ next_page_token} " ] = self .next_page_token
488+ body ["next_page_token" ] = self .next_page_token
489489 return body
490490
491491 def as_shallow_dict (self ) -> dict :
@@ -514,7 +514,7 @@ def as_dict(self) -> dict:
514514 """Serializes the ListStatusResponse into a dictionary suitable for use as a JSON request body."""
515515 body = {}
516516 if self .files :
517- body ["{ files} " ] = [v .as_dict () for v in self .files ]
517+ body ["files" ] = [v .as_dict () for v in self .files ]
518518 return body
519519
520520 def as_shallow_dict (self ) -> dict :
@@ -539,7 +539,7 @@ def as_dict(self) -> dict:
539539 """Serializes the MkDirs into a dictionary suitable for use as a JSON request body."""
540540 body = {}
541541 if self .path is not None :
542- body ["{ path} " ] = self .path
542+ body ["path" ] = self .path
543543 return body
544544
545545 def as_shallow_dict (self ) -> dict :
@@ -585,9 +585,9 @@ def as_dict(self) -> dict:
585585 """Serializes the Move into a dictionary suitable for use as a JSON request body."""
586586 body = {}
587587 if self .destination_path is not None :
588- body ["{ destination_path} " ] = self .destination_path
588+ body ["destination_path" ] = self .destination_path
589589 if self .source_path is not None :
590- body ["{ source_path} " ] = self .source_path
590+ body ["source_path" ] = self .source_path
591591 return body
592592
593593 def as_shallow_dict (self ) -> dict :
@@ -638,11 +638,11 @@ def as_dict(self) -> dict:
638638 """Serializes the Put into a dictionary suitable for use as a JSON request body."""
639639 body = {}
640640 if self .contents is not None :
641- body ["{ contents} " ] = self .contents
641+ body ["contents" ] = self .contents
642642 if self .overwrite is not None :
643- body ["{ overwrite} " ] = self .overwrite
643+ body ["overwrite" ] = self .overwrite
644644 if self .path is not None :
645- body ["{ path} " ] = self .path
645+ body ["path" ] = self .path
646646 return body
647647
648648 def as_shallow_dict (self ) -> dict :
@@ -693,9 +693,9 @@ def as_dict(self) -> dict:
693693 """Serializes the ReadResponse into a dictionary suitable for use as a JSON request body."""
694694 body = {}
695695 if self .bytes_read is not None :
696- body ["{ bytes_read} " ] = self .bytes_read
696+ body ["bytes_read" ] = self .bytes_read
697697 if self .data is not None :
698- body ["{ data} " ] = self .data
698+ body ["data" ] = self .data
699699 return body
700700
701701 def as_shallow_dict (self ) -> dict :
0 commit comments