|
9 | 9 |
|
10 | 10 | class AccountPhotoGetArg(bb.Struct): |
11 | 11 | """ |
12 | | - :ivar account.AccountPhotoGetArg.dbx_account_id: Encoded ID of the user. |
13 | | - Must start either with 'dbid:' or 'dbaphid:'. |
14 | | - :ivar account.AccountPhotoGetArg.size: A string representing the size of the |
15 | | - photo. |
16 | | - :ivar account.AccountPhotoGetArg.circle_crop: True if the photo should be |
17 | | - cropped and false otherwise. |
18 | | - :ivar account.AccountPhotoGetArg.expect_account_photo: True if we expect |
19 | | - account photo to exist. |
| 12 | + :ivar AccountPhotoGetArg.dbx_account_id: |
| 13 | + Encoded ID of the user. Must start either with 'dbid:' or 'dbaphid:'. |
| 14 | + :ivar AccountPhotoGetArg.size: |
| 15 | + A string representing the size of the photo. |
| 16 | + :ivar AccountPhotoGetArg.circle_crop: |
| 17 | + True if the photo should be cropped and false otherwise. |
| 18 | + :ivar AccountPhotoGetArg.expect_account_photo: |
| 19 | + True if we expect account photo to exist. |
20 | 20 | """ |
21 | 21 |
|
22 | 22 | __slots__ = [ |
@@ -69,12 +69,13 @@ class AccountPhotoGetError(bb.Union): |
69 | 69 | return true. To get the associated value of a tag (if one exists), use the |
70 | 70 | corresponding ``get_*`` method. |
71 | 71 |
|
72 | | - :ivar ThumbnailError AccountPhotoGetError.thumbnail_error: Indicates |
73 | | - infrastructural failure. |
74 | | - :ivar account.AccountPhotoGetError.account_photo_missing: Account photo is |
75 | | - missing (but we did not expect it to exist). |
76 | | - :ivar account.AccountPhotoGetError.expected_account_photo_missing: Account |
77 | | - photo was expected to exist, but it's missing. |
| 72 | + :ivar AccountPhotoGetError.thumbnail_error: |
| 73 | + Indicates infrastructural failure. |
| 74 | + :vartype AccountPhotoGetError.thumbnail_error: ThumbnailError |
| 75 | + :ivar AccountPhotoGetError.account_photo_missing: |
| 76 | + Account photo is missing (but we did not expect it to exist). |
| 77 | + :ivar AccountPhotoGetError.expected_account_photo_missing: |
| 78 | + Account photo was expected to exist, but it's missing. |
78 | 79 | """ |
79 | 80 |
|
80 | 81 | _catch_all = 'other' |
@@ -147,8 +148,8 @@ def _process_custom_annotations(self, annotation_type, field_path, processor): |
147 | 148 |
|
148 | 149 | class AccountPhotoGetResult(bb.Struct): |
149 | 150 | """ |
150 | | - :ivar account.AccountPhotoGetResult.content_type: The data returned by |
151 | | - get_photo. |
| 151 | + :ivar AccountPhotoGetResult.content_type: |
| 152 | + The data returned by get_photo. |
152 | 153 | """ |
153 | 154 |
|
154 | 155 | __slots__ = [ |
@@ -242,8 +243,9 @@ class PhotoSourceArg(bb.Union): |
242 | 243 | return true. To get the associated value of a tag (if one exists), use the |
243 | 244 | corresponding ``get_*`` method. |
244 | 245 |
|
245 | | - :ivar str account.PhotoSourceArg.base64_data: Image data in base64-encoded |
246 | | - bytes. |
| 246 | + :ivar PhotoSourceArg.base64_data: |
| 247 | + Image data in base64-encoded bytes. |
| 248 | + :vartype PhotoSourceArg.base64_data: str |
247 | 249 | """ |
248 | 250 |
|
249 | 251 | _catch_all = 'other' |
@@ -296,8 +298,8 @@ def _process_custom_annotations(self, annotation_type, field_path, processor): |
296 | 298 |
|
297 | 299 | class SetProfilePhotoArg(bb.Struct): |
298 | 300 | """ |
299 | | - :ivar account.SetProfilePhotoArg.photo: Image to set as the user's new |
300 | | - profile photo. |
| 301 | + :ivar SetProfilePhotoArg.photo: |
| 302 | + Image to set as the user's new profile photo. |
301 | 303 | """ |
302 | 304 |
|
303 | 305 | __slots__ = [ |
@@ -326,16 +328,16 @@ class SetProfilePhotoError(bb.Union): |
326 | 328 | return true. To get the associated value of a tag (if one exists), use the |
327 | 329 | corresponding ``get_*`` method. |
328 | 330 |
|
329 | | - :ivar account.SetProfilePhotoError.file_type_error: File cannot be set as |
330 | | - profile photo. |
331 | | - :ivar account.SetProfilePhotoError.file_size_error: File cannot exceed 10 |
332 | | - MB. |
333 | | - :ivar account.SetProfilePhotoError.dimension_error: Image must be larger |
334 | | - than 128 x 128. |
335 | | - :ivar account.SetProfilePhotoError.thumbnail_error: Image could not be |
336 | | - thumbnailed. |
337 | | - :ivar account.SetProfilePhotoError.transient_error: Temporary infrastructure |
338 | | - failure, please retry. |
| 331 | + :ivar SetProfilePhotoError.file_type_error: |
| 332 | + File cannot be set as profile photo. |
| 333 | + :ivar SetProfilePhotoError.file_size_error: |
| 334 | + File cannot exceed 10 MB. |
| 335 | + :ivar SetProfilePhotoError.dimension_error: |
| 336 | + Image must be larger than 128 x 128. |
| 337 | + :ivar SetProfilePhotoError.thumbnail_error: |
| 338 | + Image could not be thumbnailed. |
| 339 | + :ivar SetProfilePhotoError.transient_error: |
| 340 | + Temporary infrastructure failure, please retry. |
339 | 341 | """ |
340 | 342 |
|
341 | 343 | _catch_all = 'other' |
@@ -407,8 +409,8 @@ def _process_custom_annotations(self, annotation_type, field_path, processor): |
407 | 409 |
|
408 | 410 | class SetProfilePhotoResult(bb.Struct): |
409 | 411 | """ |
410 | | - :ivar account.SetProfilePhotoResult.profile_photo_url: URL for the photo |
411 | | - representing the user, if one is set. |
| 412 | + :ivar SetProfilePhotoResult.profile_photo_url: |
| 413 | + URL for the photo representing the user, if one is set. |
412 | 414 | """ |
413 | 415 |
|
414 | 416 | __slots__ = [ |
@@ -437,10 +439,10 @@ class ThumbnailError(bb.Union): |
437 | 439 | return true. To get the associated value of a tag (if one exists), use the |
438 | 440 | corresponding ``get_*`` method. |
439 | 441 |
|
440 | | - :ivar account.ThumbnailError.permanent_failure: Indicates permanent |
441 | | - infrastructural failure. |
442 | | - :ivar account.ThumbnailError.temporary_failure: Indicates temporary |
443 | | - infrastructural failure. |
| 442 | + :ivar ThumbnailError.permanent_failure: |
| 443 | + Indicates permanent infrastructural failure. |
| 444 | + :ivar ThumbnailError.temporary_failure: |
| 445 | + Indicates temporary infrastructural failure. |
444 | 446 | """ |
445 | 447 |
|
446 | 448 | _catch_all = 'other' |
|
0 commit comments