diff --git a/alibabacloud_oss_v2/models/access_point.py b/alibabacloud_oss_v2/models/access_point.py index bd9684f..26cefdc 100644 --- a/alibabacloud_oss_v2/models/access_point.py +++ b/alibabacloud_oss_v2/models/access_point.py @@ -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. """ diff --git a/alibabacloud_oss_v2/models/access_point_public_access_block.py b/alibabacloud_oss_v2/models/access_point_public_access_block.py index 6525716..a96b872 100644 --- a/alibabacloud_oss_v2/models/access_point_public_access_block.py +++ b/alibabacloud_oss_v2/models/access_point_public_access_block.py @@ -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) @@ -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) diff --git a/alibabacloud_oss_v2/models/bucket_basic.py b/alibabacloud_oss_v2/models/bucket_basic.py index 6b60c62..74444c1 100644 --- a/alibabacloud_oss_v2/models/bucket_basic.py +++ b/alibabacloud_oss_v2/models/bucket_basic.py @@ -84,7 +84,7 @@ class DeleteBucketRequest(serde.RequestModel): def __init__( self, - bucket: Optional[str] = None, + bucket: str = None, **kwargs: Any ) -> None: """ diff --git a/alibabacloud_oss_v2/models/bucket_logging.py b/alibabacloud_oss_v2/models/bucket_logging.py index 5499427..567438f 100644 --- a/alibabacloud_oss_v2/models/bucket_logging.py +++ b/alibabacloud_oss_v2/models/bucket_logging.py @@ -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 diff --git a/alibabacloud_oss_v2/models/bucket_policy.py b/alibabacloud_oss_v2/models/bucket_policy.py index c56ef71..e7c0c5d 100644 --- a/alibabacloud_oss_v2/models/bucket_policy.py +++ b/alibabacloud_oss_v2/models/bucket_policy.py @@ -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 diff --git a/alibabacloud_oss_v2/models/bucket_public_access_block.py b/alibabacloud_oss_v2/models/bucket_public_access_block.py index ab4237a..f55472c 100644 --- a/alibabacloud_oss_v2/models/bucket_public_access_block.py +++ b/alibabacloud_oss_v2/models/bucket_public_access_block.py @@ -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 @@ -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) @@ -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 diff --git a/alibabacloud_oss_v2/models/bucket_resource_group.py b/alibabacloud_oss_v2/models/bucket_resource_group.py index 322ec91..cf399c2 100644 --- a/alibabacloud_oss_v2/models/bucket_resource_group.py +++ b/alibabacloud_oss_v2/models/bucket_resource_group.py @@ -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) diff --git a/alibabacloud_oss_v2/models/bucket_style.py b/alibabacloud_oss_v2/models/bucket_style.py index 12a43ed..d4a67e7 100644 --- a/alibabacloud_oss_v2/models/bucket_style.py +++ b/alibabacloud_oss_v2/models/bucket_style.py @@ -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 diff --git a/alibabacloud_oss_v2/vectors/models/bucket_basic.py b/alibabacloud_oss_v2/vectors/models/bucket_basic.py index e53ea36..6e0ccbd 100644 --- a/alibabacloud_oss_v2/vectors/models/bucket_basic.py +++ b/alibabacloud_oss_v2/vectors/models/bucket_basic.py @@ -136,7 +136,7 @@ class DeleteVectorBucketRequest(serde.RequestModel): def __init__( self, - bucket: Optional[str] = None, + bucket: str = None, **kwargs: Any ) -> None: """ diff --git a/alibabacloud_oss_v2/vectors/models/index_basic.py b/alibabacloud_oss_v2/vectors/models/index_basic.py index 150c9d5..8851765 100644 --- a/alibabacloud_oss_v2/vectors/models/index_basic.py +++ b/alibabacloud_oss_v2/vectors/models/index_basic.py @@ -21,7 +21,7 @@ class PutVectorIndexRequest(serde.RequestModel): def __init__( self, - bucket: Optional[str] = None, + bucket: str = None, data_type: Optional[str] = None, dimension: Optional[int] = None, distance_metric: Optional[str] = None, @@ -31,7 +31,7 @@ def __init__( ) -> None: """ Args: - bucket (str, optional): The name of the bucket. + bucket (str, required): The name of the bucket. data_type (str, optional): The type of data for the vector index. dimension (int, optional): The dimension of the vector data. distance_metric (str, optional): The distance measurement function has the following optional values: @@ -62,19 +62,19 @@ class GetVectorIndexRequest(serde.RequestModel): """ _attribute_map = { - 'bucket': {'tag': 'input', 'position': 'path', 'rename': 'bucket', 'type': 'str'}, + 'bucket': {'tag': 'input', 'position': 'path', 'rename': 'bucket', 'type': 'str', "required": True}, 'index_name': {'tag': 'input', 'position': 'body', 'rename': 'indexName', 'type': 'str'}, } def __init__( self, - bucket: Optional[str] = None, + bucket: str = None, index_name: Optional[str] = None, **kwargs: Any ) -> None: """ Args: - bucket (str, optional): The name of the bucket. + bucket (str, required): The name of the bucket. index_name (str, optional): The name of the index. """ super().__init__(**kwargs) @@ -112,7 +112,7 @@ class ListVectorIndexesRequest(serde.RequestModel): """ _attribute_map = { - 'bucket': {'tag': 'input', 'position': 'path', 'rename': 'bucket', 'type': 'str'}, + 'bucket': {'tag': 'input', 'position': 'path', 'rename': 'bucket', 'type': 'str', "required": True}, 'max_results': {'tag': 'input', 'position': 'body', 'rename': 'maxResults', 'type': 'int'}, 'next_token': {'tag': 'input', 'position': 'body', 'rename': 'nextToken', 'type': 'str'}, 'prefix': {'tag': 'input', 'position': 'body', 'rename': 'prefix', 'type': 'str'}, @@ -120,7 +120,7 @@ class ListVectorIndexesRequest(serde.RequestModel): def __init__( self, - bucket: Optional[str] = None, + bucket: str = None, max_results: Optional[int] = None, next_token: Optional[str] = None, prefix: Optional[str] = None, @@ -128,7 +128,7 @@ def __init__( ) -> None: """ Args: - bucket (str, optional): The name of the bucket. + bucket (str, required): The name of the bucket. max_results (int, optional): The maximum number of indexes to return. next_token (str, optional): The token for the next page of indexes. prefix (str, optional): The prefix to filter indexes by name. @@ -174,19 +174,19 @@ class DeleteVectorIndexRequest(serde.RequestModel): """ _attribute_map = { - 'bucket': {'tag': 'input', 'position': 'path', 'rename': 'bucket', 'type': 'str'}, + 'bucket': {'tag': 'input', 'position': 'path', 'rename': 'bucket', 'type': 'str', "required": True}, 'index_name': {'tag': 'input', 'position': 'body', 'rename': 'indexName', 'type': 'str'}, } def __init__( self, - bucket: Optional[str] = None, + bucket: str = None, index_name: Optional[str] = None, **kwargs: Any ) -> None: """ Args: - bucket (str, optional): The name of the bucket. + bucket (str, required): The name of the bucket. index_name (str, optional): The name of the index to delete. """ super().__init__(**kwargs) diff --git a/alibabacloud_oss_v2/vectors/models/vector_basic.py b/alibabacloud_oss_v2/vectors/models/vector_basic.py index 0120b84..81ba96f 100644 --- a/alibabacloud_oss_v2/vectors/models/vector_basic.py +++ b/alibabacloud_oss_v2/vectors/models/vector_basic.py @@ -7,21 +7,21 @@ class PutVectorsRequest(serde.RequestModel): """ _attribute_map = { - 'bucket': {'tag': 'input', 'position': 'path', 'rename': 'bucket', 'type': 'str'}, + 'bucket': {'tag': 'input', 'position': 'path', 'rename': 'bucket', 'type': 'str', 'required': True}, 'index_name': {'tag': 'input', 'position': 'body', 'rename': 'indexName', 'type': 'str'}, 'vectors': {'tag': 'input', 'position': 'body', 'rename': 'vectors', 'type': '[dict]'}, } def __init__( self, - bucket: Optional[str] = None, + bucket: str = None, index_name: Optional[str] = None, vectors: Optional[List[Dict]] = None, **kwargs: Any ) -> None: """ Args: - bucket (str, optional): The name of the bucket. + bucket (str, required): The name of the bucket. index_name (str, optional): The name of the index. vectors (List[Dict], optional): The list of vectors to put. """ @@ -47,7 +47,7 @@ class GetVectorsRequest(serde.RequestModel): """ _attribute_map = { - 'bucket': {'tag': 'input', 'position': 'path', 'rename': 'bucket', 'type': 'str'}, + 'bucket': {'tag': 'input', 'position': 'path', 'rename': 'bucket', 'type': 'str', 'required': True}, 'index_name': {'tag': 'input', 'position': 'body', 'rename': 'indexName', 'type': 'str'}, 'keys': {'tag': 'input', 'position': 'body', 'rename': 'keys', 'type': '[str]'}, 'return_data': {'tag': 'input', 'position': 'body', 'rename': 'returnData', 'type': 'bool'}, @@ -56,7 +56,7 @@ class GetVectorsRequest(serde.RequestModel): def __init__( self, - bucket: Optional[str] = None, + bucket: str = None, index_name: Optional[str] = None, keys: Optional[List[str]] = None, return_data: Optional[bool] = None, @@ -65,7 +65,7 @@ def __init__( ) -> None: """ Args: - bucket (str, optional): The name of the bucket. + bucket (str, required): The name of the bucket. index_name (str, optional): The name of the index. keys (List[str], optional): The list of vector keys to retrieve. return_data (bool, optional): Whether to return vector data. @@ -108,7 +108,7 @@ class ListVectorsRequest(serde.RequestModel): """ _attribute_map = { - 'bucket': {'tag': 'input', 'position': 'path', 'rename': 'bucket', 'type': 'str'}, + 'bucket': {'tag': 'input', 'position': 'path', 'rename': 'bucket', 'type': 'str', 'required': True}, 'index_name': {'tag': 'input', 'position': 'body', 'rename': 'indexName', 'type': 'str'}, 'max_results': {'tag': 'input', 'position': 'body', 'rename': 'maxResults', 'type': 'int'}, 'next_token': {'tag': 'input', 'position': 'body', 'rename': 'nextToken', 'type': 'str'}, @@ -120,7 +120,7 @@ class ListVectorsRequest(serde.RequestModel): def __init__( self, - bucket: Optional[str] = None, + bucket: str = None, index_name: Optional[str] = None, max_results: Optional[int] = None, next_token: Optional[str] = None, @@ -132,7 +132,7 @@ def __init__( ) -> None: """ Args: - bucket (str, optional): The name of the bucket. + bucket (str, required): The name of the bucket. index_name (str, optional): The name of the index. max_results (int, optional): The maximum number of vectors to return. next_token (str, optional): The token for the next page of vectors. @@ -185,21 +185,21 @@ class DeleteVectorsRequest(serde.RequestModel): """ _attribute_map = { - 'bucket': {'tag': 'input', 'position': 'path', 'rename': 'bucket', 'type': 'str'}, + 'bucket': {'tag': 'input', 'position': 'path', 'rename': 'bucket', 'type': 'str', 'required': True}, 'index_name': {'tag': 'input', 'position': 'body', 'rename': 'indexName', 'type': 'str'}, 'keys': {'tag': 'input', 'position': 'body', 'rename': 'keys', 'type': '[str]'}, } def __init__( self, - bucket: Optional[str] = None, + bucket: str = None, index_name: Optional[str] = None, keys: Optional[List[str]] = None, **kwargs: Any ) -> None: """ Args: - bucket (str, optional): The name of the bucket. + bucket (str, required): The name of the bucket. index_name (str, optional): The name of the index. keys (List[str], optional): The list of vector keys to delete. """ @@ -222,7 +222,7 @@ class QueryVectorsRequest(serde.RequestModel): """ _attribute_map = { - 'bucket': {'tag': 'input', 'position': 'path', 'rename': 'bucket', 'type': 'str'}, + 'bucket': {'tag': 'input', 'position': 'path', 'rename': 'bucket', 'type': 'str', 'required': True}, 'filter': {'tag': 'input', 'position': 'body', 'rename': 'filter', 'type': 'dict'}, 'index_name': {'tag': 'input', 'position': 'body', 'rename': 'indexName', 'type': 'str'}, 'query_vector': {'tag': 'input', 'position': 'body', 'rename': 'queryVector', 'type': 'dict'}, @@ -233,7 +233,7 @@ class QueryVectorsRequest(serde.RequestModel): def __init__( self, - bucket: Optional[str] = None, + bucket: str = None, filter: Optional[Dict] = None, index_name: Optional[str] = None, query_vector: Optional[Dict] = None, @@ -244,7 +244,7 @@ def __init__( ) -> None: """ Args: - bucket (str, optional): The name of the bucket. + bucket (str, required): The name of the bucket. filter (Dict, optional): The filter conditions for querying vectors. index_name (str, optional): The name of the index. query_vector (Dict, optional): The query vector data.