|
1 | 1 | import io |
2 | 2 | from typing import Optional, List, Any |
3 | | -from .. import serde |
| 3 | +from .. import serde, BodyType |
4 | 4 |
|
5 | 5 |
|
6 | 6 | class AccessPointVpcConfiguration(serde.Model): |
@@ -432,20 +432,20 @@ class PutAccessPointPolicyRequest(serde.RequestModel): |
432 | 432 | _attribute_map = { |
433 | 433 | 'bucket': {'tag': 'input', 'position': 'host', 'rename': 'bucket', 'type': 'str'}, |
434 | 434 | 'access_point_name': {'tag': 'input', 'position': 'header', 'rename': 'x-oss-access-point-name', 'type': 'str'}, |
435 | | - 'body': {'tag': 'input', 'position': 'body', 'rename': 'nop', 'type': 'str'}, |
| 435 | + 'body': {'tag': 'input', 'position': 'body', 'rename': 'nop'}, |
436 | 436 | } |
437 | 437 |
|
438 | 438 | def __init__( |
439 | 439 | self, |
440 | 440 | bucket: Optional[str] = None, |
441 | 441 | access_point_name: Optional[str] = None, |
442 | | - body: Optional[str] = None, |
| 442 | + body: Optional[BodyType] = None, |
443 | 443 | **kwargs: Any |
444 | 444 | ) -> None: |
445 | 445 | """ |
446 | 446 | bucket (str, optional): The name of the bucket. |
447 | 447 | access_point_name (str, optional): The name of the access point. |
448 | | - body (str, optional): The configurations of the access point policy. |
| 448 | + body (BodyType, optional): The configurations of the access point policy. |
449 | 449 | """ |
450 | 450 | super().__init__(**kwargs) |
451 | 451 | self.bucket = bucket |
|
0 commit comments