Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion alibabacloud_oss_v2/checkpoint.py
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,7 @@ def __init__(
h.update(absfilepath.encode())
src_hash = h.hexdigest()

if len(basedir) == 0:
if basedir is None or len(basedir) == 0:
dirbase = gettempdir()
else:
dirbase = os.path.dirname(basedir)
Expand Down
6 changes: 3 additions & 3 deletions alibabacloud_oss_v2/models/access_point.py
Original file line number Diff line number Diff line change
Expand Up @@ -442,21 +442,21 @@ class PutAccessPointPolicyRequest(serde.RequestModel):
"""

_attribute_map = {
'bucket': {'tag': 'input', 'position': 'host', 'rename': 'bucket', 'type': 'str'},
'bucket': {'tag': 'input', 'position': 'host', 'rename': 'bucket', 'type': 'str', 'required': True},
'access_point_name': {'tag': 'input', 'position': 'header', 'rename': 'x-oss-access-point-name', 'type': 'str'},
'body': {'tag': 'input', 'position': 'body', 'rename': 'nop'},
}

def __init__(
self,
bucket: Optional[str] = None,
bucket: str = None,
access_point_name: Optional[str] = None,
body: Optional[BodyType] = None,
**kwargs: Any
) -> None:
"""
Args:
bucket (str, optional): The name of the bucket.
bucket (str, required): The name of the bucket.
access_point_name (str, optional): The name of the access point.
body (BodyType, optional): The configurations of the access point policy.
"""
Expand Down
12 changes: 6 additions & 6 deletions alibabacloud_oss_v2/models/access_point_public_access_block.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,19 +71,19 @@ class GetAccessPointPublicAccessBlockRequest(serde.RequestModel):
"""

_attribute_map = {
'bucket': {'tag': 'input', 'position': 'host', 'rename': 'bucket', 'type': 'str'},
'bucket': {'tag': 'input', 'position': 'host', 'rename': 'bucket', 'type': 'str', 'required': True},
'access_point_name': {'tag': 'input', 'position': 'query', 'rename': 'x-oss-access-point-name', 'type': 'str'},
}

def __init__(
self,
bucket: Optional[str] = None,
bucket: str = None,
access_point_name: Optional[str] = None,
**kwargs: Any
) -> None:
"""
Args:
bucket (str, optional): The name of the bucket.
bucket (str, required): The name of the bucket.
access_point_name (str, optional): The name of the access point.
"""
super().__init__(**kwargs)
Expand Down Expand Up @@ -123,19 +123,19 @@ class DeleteAccessPointPublicAccessBlockRequest(serde.RequestModel):
"""

_attribute_map = {
'bucket': {'tag': 'input', 'position': 'host', 'rename': 'bucket', 'type': 'str'},
'bucket': {'tag': 'input', 'position': 'host', 'rename': 'bucket', 'type': 'str', 'required': True},
'access_point_name': {'tag': 'input', 'position': 'query', 'rename': 'x-oss-access-point-name', 'type': 'str'},
}

def __init__(
self,
bucket: Optional[str] = None,
bucket: str = None,
access_point_name: Optional[str] = None,
**kwargs: Any
) -> None:
"""
Args:
bucket (str, optional): The name of the bucket.
bucket (str, required): The name of the bucket.
access_point_name (str, optional): The name of the access point.
"""
super().__init__(**kwargs)
Expand Down
2 changes: 1 addition & 1 deletion alibabacloud_oss_v2/models/bucket_basic.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ class DeleteBucketRequest(serde.RequestModel):

def __init__(
self,
bucket: Optional[str] = None,
bucket: str = None,
**kwargs: Any
) -> None:
"""
Expand Down
6 changes: 3 additions & 3 deletions alibabacloud_oss_v2/models/bucket_logging.py
Original file line number Diff line number Diff line change
Expand Up @@ -344,17 +344,17 @@ class DeleteUserDefinedLogFieldsConfigRequest(serde.RequestModel):
"""

_attribute_map = {
'bucket': {'tag': 'input', 'position': 'host', 'rename': 'bucket', 'type': 'str'},
'bucket': {'tag': 'input', 'position': 'host', 'rename': 'bucket', 'type': 'str', 'required': True},
}

def __init__(
self,
bucket: Optional[str] = None,
bucket: str = None,
**kwargs: Any
) -> None:
"""
Args:
bucket (str, optional):
bucket (str, required):
"""
super().__init__(**kwargs)
self.bucket = bucket
Expand Down
6 changes: 3 additions & 3 deletions alibabacloud_oss_v2/models/bucket_policy.py
Original file line number Diff line number Diff line change
Expand Up @@ -137,17 +137,17 @@ class GetBucketPolicyStatusRequest(serde.RequestModel):
"""

_attribute_map = {
'bucket': {'tag': 'input', 'position': 'host', 'rename': 'bucket', 'type': 'str'},
'bucket': {'tag': 'input', 'position': 'host', 'rename': 'bucket', 'type': 'str', 'required': True},
}

def __init__(
self,
bucket: Optional[str] = None,
bucket: str = None,
**kwargs: Any
) -> None:
"""
Args:
bucket (str, optional): The name of the bucket.
bucket (str, required): The name of the bucket.
"""
super().__init__(**kwargs)
self.bucket = bucket
Expand Down
18 changes: 9 additions & 9 deletions alibabacloud_oss_v2/models/bucket_public_access_block.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,17 +37,17 @@ class GetBucketPublicAccessBlockRequest(serde.RequestModel):
"""

_attribute_map = {
'bucket': {'tag': 'input', 'position': 'host', 'rename': 'bucket', 'type': 'str'},
'bucket': {'tag': 'input', 'position': 'host', 'rename': 'bucket', 'type': 'str', 'required': True},
}

def __init__(
self,
bucket: Optional[str] = None,
bucket: str = None,
**kwargs: Any
) -> None:
"""
Args:
bucket (str, optional):
bucket (str, required):
"""
super().__init__(**kwargs)
self.bucket = bucket
Expand Down Expand Up @@ -84,19 +84,19 @@ class PutBucketPublicAccessBlockRequest(serde.RequestModel):
"""

_attribute_map = {
'bucket': {'tag': 'input', 'position': 'host', 'rename': 'bucket', 'type': 'str'},
'bucket': {'tag': 'input', 'position': 'host', 'rename': 'bucket', 'type': 'str', 'required': True},
'public_access_block_configuration': {'tag': 'input', 'position': 'body', 'rename': 'PublicAccessBlockConfiguration', 'type': 'xml'},
}

def __init__(
self,
bucket: Optional[str] = None,
bucket: str = None,
public_access_block_configuration: Optional[PublicAccessBlockConfiguration] = None,
**kwargs: Any
) -> None:
"""
Args:
bucket (str, optional): The name of the bucket.
bucket (str, required): The name of the bucket.
public_access_block_configuration (PublicAccessBlockConfiguration, optional): Request body.
"""
super().__init__(**kwargs)
Expand All @@ -115,17 +115,17 @@ class DeleteBucketPublicAccessBlockRequest(serde.RequestModel):
"""

_attribute_map = {
'bucket': {'tag': 'input', 'position': 'host', 'rename': 'bucket', 'type': 'str'},
'bucket': {'tag': 'input', 'position': 'host', 'rename': 'bucket', 'type': 'str', 'required': True},
}

def __init__(
self,
bucket: Optional[str] = None,
bucket: str = None,
**kwargs: Any
) -> None:
"""
Args:
bucket (str, optional): The name of the bucket.
bucket (str, required): The name of the bucket.
"""
super().__init__(**kwargs)
self.bucket = bucket
Expand Down
6 changes: 3 additions & 3 deletions alibabacloud_oss_v2/models/bucket_resource_group.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,19 +84,19 @@ class PutBucketResourceGroupRequest(serde.RequestModel):
"""

_attribute_map = {
'bucket': {'tag': 'input', 'position': 'host', 'rename': 'bucket', 'type': 'str'},
'bucket': {'tag': 'input', 'position': 'host', 'rename': 'bucket', 'type': 'str', 'required': True},
'bucket_resource_group_configuration': {'tag': 'input', 'position': 'body', 'rename': 'BucketResourceGroupConfiguration', 'type': 'xml'},
}

def __init__(
self,
bucket: Optional[str] = None,
bucket: str = None,
bucket_resource_group_configuration: Optional[BucketResourceGroupConfiguration] = None,
**kwargs: Any
) -> None:
"""
Args:
bucket (str, optional): The bucket for which you want to modify the ID of the resource group.
bucket (str, required): The bucket for which you want to modify the ID of the resource group.
bucket_resource_group_configuration (BucketResourceGroupConfiguration, optional): The request body schema.
"""
super().__init__(**kwargs)
Expand Down
6 changes: 3 additions & 3 deletions alibabacloud_oss_v2/models/bucket_style.py
Original file line number Diff line number Diff line change
Expand Up @@ -144,17 +144,17 @@ class ListStyleRequest(serde.RequestModel):
"""

_attribute_map = {
'bucket': {'tag': 'input', 'position': 'host', 'rename': 'bucket', 'type': 'str'},
'bucket': {'tag': 'input', 'position': 'host', 'rename': 'bucket', 'type': 'str', 'required': True},
}

def __init__(
self,
bucket: Optional[str] = None,
bucket: str = None,
**kwargs: Any
) -> None:
"""
Args:
bucket (str, optional): The name of the bucket.
bucket (str, required): The name of the bucket.
"""
super().__init__(**kwargs)
self.bucket = bucket
Expand Down
Loading
Loading