Skip to content

Commit b012f2e

Browse files
mark the bucket parameter as required
1 parent 46b21ca commit b012f2e

File tree

11 files changed

+58
-58
lines changed

11 files changed

+58
-58
lines changed

alibabacloud_oss_v2/models/access_point.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -442,21 +442,21 @@ class PutAccessPointPolicyRequest(serde.RequestModel):
442442
"""
443443

444444
_attribute_map = {
445-
'bucket': {'tag': 'input', 'position': 'host', 'rename': 'bucket', 'type': 'str'},
445+
'bucket': {'tag': 'input', 'position': 'host', 'rename': 'bucket', 'type': 'str', 'required': True},
446446
'access_point_name': {'tag': 'input', 'position': 'header', 'rename': 'x-oss-access-point-name', 'type': 'str'},
447447
'body': {'tag': 'input', 'position': 'body', 'rename': 'nop'},
448448
}
449449

450450
def __init__(
451451
self,
452-
bucket: Optional[str] = None,
452+
bucket: str = None,
453453
access_point_name: Optional[str] = None,
454454
body: Optional[BodyType] = None,
455455
**kwargs: Any
456456
) -> None:
457457
"""
458458
Args:
459-
bucket (str, optional): The name of the bucket.
459+
bucket (str, required): The name of the bucket.
460460
access_point_name (str, optional): The name of the access point.
461461
body (BodyType, optional): The configurations of the access point policy.
462462
"""

alibabacloud_oss_v2/models/access_point_public_access_block.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -71,19 +71,19 @@ class GetAccessPointPublicAccessBlockRequest(serde.RequestModel):
7171
"""
7272

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

7878
def __init__(
7979
self,
80-
bucket: Optional[str] = None,
80+
bucket: str = None,
8181
access_point_name: Optional[str] = None,
8282
**kwargs: Any
8383
) -> None:
8484
"""
8585
Args:
86-
bucket (str, optional): The name of the bucket.
86+
bucket (str, required): The name of the bucket.
8787
access_point_name (str, optional): The name of the access point.
8888
"""
8989
super().__init__(**kwargs)
@@ -123,19 +123,19 @@ class DeleteAccessPointPublicAccessBlockRequest(serde.RequestModel):
123123
"""
124124

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

130130
def __init__(
131131
self,
132-
bucket: Optional[str] = None,
132+
bucket: str = None,
133133
access_point_name: Optional[str] = None,
134134
**kwargs: Any
135135
) -> None:
136136
"""
137137
Args:
138-
bucket (str, optional): The name of the bucket.
138+
bucket (str, required): The name of the bucket.
139139
access_point_name (str, optional): The name of the access point.
140140
"""
141141
super().__init__(**kwargs)

alibabacloud_oss_v2/models/bucket_basic.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ class DeleteBucketRequest(serde.RequestModel):
8484

8585
def __init__(
8686
self,
87-
bucket: Optional[str] = None,
87+
bucket: str = None,
8888
**kwargs: Any
8989
) -> None:
9090
"""

alibabacloud_oss_v2/models/bucket_logging.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -344,17 +344,17 @@ class DeleteUserDefinedLogFieldsConfigRequest(serde.RequestModel):
344344
"""
345345

346346
_attribute_map = {
347-
'bucket': {'tag': 'input', 'position': 'host', 'rename': 'bucket', 'type': 'str'},
347+
'bucket': {'tag': 'input', 'position': 'host', 'rename': 'bucket', 'type': 'str', 'required': True},
348348
}
349349

350350
def __init__(
351351
self,
352-
bucket: Optional[str] = None,
352+
bucket: str = None,
353353
**kwargs: Any
354354
) -> None:
355355
"""
356356
Args:
357-
bucket (str, optional):
357+
bucket (str, required):
358358
"""
359359
super().__init__(**kwargs)
360360
self.bucket = bucket

alibabacloud_oss_v2/models/bucket_policy.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -137,17 +137,17 @@ class GetBucketPolicyStatusRequest(serde.RequestModel):
137137
"""
138138

139139
_attribute_map = {
140-
'bucket': {'tag': 'input', 'position': 'host', 'rename': 'bucket', 'type': 'str'},
140+
'bucket': {'tag': 'input', 'position': 'host', 'rename': 'bucket', 'type': 'str', 'required': True},
141141
}
142142

143143
def __init__(
144144
self,
145-
bucket: Optional[str] = None,
145+
bucket: str = None,
146146
**kwargs: Any
147147
) -> None:
148148
"""
149149
Args:
150-
bucket (str, optional): The name of the bucket.
150+
bucket (str, required): The name of the bucket.
151151
"""
152152
super().__init__(**kwargs)
153153
self.bucket = bucket

alibabacloud_oss_v2/models/bucket_public_access_block.py

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -37,17 +37,17 @@ class GetBucketPublicAccessBlockRequest(serde.RequestModel):
3737
"""
3838

3939
_attribute_map = {
40-
'bucket': {'tag': 'input', 'position': 'host', 'rename': 'bucket', 'type': 'str'},
40+
'bucket': {'tag': 'input', 'position': 'host', 'rename': 'bucket', 'type': 'str', 'required': True},
4141
}
4242

4343
def __init__(
4444
self,
45-
bucket: Optional[str] = None,
45+
bucket: str = None,
4646
**kwargs: Any
4747
) -> None:
4848
"""
4949
Args:
50-
bucket (str, optional):
50+
bucket (str, required):
5151
"""
5252
super().__init__(**kwargs)
5353
self.bucket = bucket
@@ -84,19 +84,19 @@ class PutBucketPublicAccessBlockRequest(serde.RequestModel):
8484
"""
8585

8686
_attribute_map = {
87-
'bucket': {'tag': 'input', 'position': 'host', 'rename': 'bucket', 'type': 'str'},
87+
'bucket': {'tag': 'input', 'position': 'host', 'rename': 'bucket', 'type': 'str', 'required': True},
8888
'public_access_block_configuration': {'tag': 'input', 'position': 'body', 'rename': 'PublicAccessBlockConfiguration', 'type': 'xml'},
8989
}
9090

9191
def __init__(
9292
self,
93-
bucket: Optional[str] = None,
93+
bucket: str = None,
9494
public_access_block_configuration: Optional[PublicAccessBlockConfiguration] = None,
9595
**kwargs: Any
9696
) -> None:
9797
"""
9898
Args:
99-
bucket (str, optional): The name of the bucket.
99+
bucket (str, required): The name of the bucket.
100100
public_access_block_configuration (PublicAccessBlockConfiguration, optional): Request body.
101101
"""
102102
super().__init__(**kwargs)
@@ -115,17 +115,17 @@ class DeleteBucketPublicAccessBlockRequest(serde.RequestModel):
115115
"""
116116

117117
_attribute_map = {
118-
'bucket': {'tag': 'input', 'position': 'host', 'rename': 'bucket', 'type': 'str'},
118+
'bucket': {'tag': 'input', 'position': 'host', 'rename': 'bucket', 'type': 'str', 'required': True},
119119
}
120120

121121
def __init__(
122122
self,
123-
bucket: Optional[str] = None,
123+
bucket: str = None,
124124
**kwargs: Any
125125
) -> None:
126126
"""
127127
Args:
128-
bucket (str, optional): The name of the bucket.
128+
bucket (str, required): The name of the bucket.
129129
"""
130130
super().__init__(**kwargs)
131131
self.bucket = bucket

alibabacloud_oss_v2/models/bucket_resource_group.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -84,19 +84,19 @@ class PutBucketResourceGroupRequest(serde.RequestModel):
8484
"""
8585

8686
_attribute_map = {
87-
'bucket': {'tag': 'input', 'position': 'host', 'rename': 'bucket', 'type': 'str'},
87+
'bucket': {'tag': 'input', 'position': 'host', 'rename': 'bucket', 'type': 'str', 'required': True},
8888
'bucket_resource_group_configuration': {'tag': 'input', 'position': 'body', 'rename': 'BucketResourceGroupConfiguration', 'type': 'xml'},
8989
}
9090

9191
def __init__(
9292
self,
93-
bucket: Optional[str] = None,
93+
bucket: str = None,
9494
bucket_resource_group_configuration: Optional[BucketResourceGroupConfiguration] = None,
9595
**kwargs: Any
9696
) -> None:
9797
"""
9898
Args:
99-
bucket (str, optional): The bucket for which you want to modify the ID of the resource group.
99+
bucket (str, required): The bucket for which you want to modify the ID of the resource group.
100100
bucket_resource_group_configuration (BucketResourceGroupConfiguration, optional): The request body schema.
101101
"""
102102
super().__init__(**kwargs)

alibabacloud_oss_v2/models/bucket_style.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -144,17 +144,17 @@ class ListStyleRequest(serde.RequestModel):
144144
"""
145145

146146
_attribute_map = {
147-
'bucket': {'tag': 'input', 'position': 'host', 'rename': 'bucket', 'type': 'str'},
147+
'bucket': {'tag': 'input', 'position': 'host', 'rename': 'bucket', 'type': 'str', 'required': True},
148148
}
149149

150150
def __init__(
151151
self,
152-
bucket: Optional[str] = None,
152+
bucket: str = None,
153153
**kwargs: Any
154154
) -> None:
155155
"""
156156
Args:
157-
bucket (str, optional): The name of the bucket.
157+
bucket (str, required): The name of the bucket.
158158
"""
159159
super().__init__(**kwargs)
160160
self.bucket = bucket

alibabacloud_oss_v2/vectors/models/bucket_basic.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ class DeleteVectorBucketRequest(serde.RequestModel):
136136

137137
def __init__(
138138
self,
139-
bucket: Optional[str] = None,
139+
bucket: str = None,
140140
**kwargs: Any
141141
) -> None:
142142
"""

alibabacloud_oss_v2/vectors/models/index_basic.py

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ class PutVectorIndexRequest(serde.RequestModel):
2121

2222
def __init__(
2323
self,
24-
bucket: Optional[str] = None,
24+
bucket: str = None,
2525
data_type: Optional[str] = None,
2626
dimension: Optional[int] = None,
2727
distance_metric: Optional[str] = None,
@@ -31,7 +31,7 @@ def __init__(
3131
) -> None:
3232
"""
3333
Args:
34-
bucket (str, optional): The name of the bucket.
34+
bucket (str, required): The name of the bucket.
3535
data_type (str, optional): The type of data for the vector index.
3636
dimension (int, optional): The dimension of the vector data.
3737
distance_metric (str, optional): The distance measurement function has the following optional values:
@@ -62,19 +62,19 @@ class GetVectorIndexRequest(serde.RequestModel):
6262
"""
6363

6464
_attribute_map = {
65-
'bucket': {'tag': 'input', 'position': 'path', 'rename': 'bucket', 'type': 'str'},
65+
'bucket': {'tag': 'input', 'position': 'path', 'rename': 'bucket', 'type': 'str', "required": True},
6666
'index_name': {'tag': 'input', 'position': 'body', 'rename': 'indexName', 'type': 'str'},
6767
}
6868

6969
def __init__(
7070
self,
71-
bucket: Optional[str] = None,
71+
bucket: str = None,
7272
index_name: Optional[str] = None,
7373
**kwargs: Any
7474
) -> None:
7575
"""
7676
Args:
77-
bucket (str, optional): The name of the bucket.
77+
bucket (str, required): The name of the bucket.
7878
index_name (str, optional): The name of the index.
7979
"""
8080
super().__init__(**kwargs)
@@ -112,23 +112,23 @@ class ListVectorIndexesRequest(serde.RequestModel):
112112
"""
113113

114114
_attribute_map = {
115-
'bucket': {'tag': 'input', 'position': 'path', 'rename': 'bucket', 'type': 'str'},
115+
'bucket': {'tag': 'input', 'position': 'path', 'rename': 'bucket', 'type': 'str', "required": True},
116116
'max_results': {'tag': 'input', 'position': 'body', 'rename': 'maxResults', 'type': 'int'},
117117
'next_token': {'tag': 'input', 'position': 'body', 'rename': 'nextToken', 'type': 'str'},
118118
'prefix': {'tag': 'input', 'position': 'body', 'rename': 'prefix', 'type': 'str'},
119119
}
120120

121121
def __init__(
122122
self,
123-
bucket: Optional[str] = None,
123+
bucket: str = None,
124124
max_results: Optional[int] = None,
125125
next_token: Optional[str] = None,
126126
prefix: Optional[str] = None,
127127
**kwargs: Any
128128
) -> None:
129129
"""
130130
Args:
131-
bucket (str, optional): The name of the bucket.
131+
bucket (str, required): The name of the bucket.
132132
max_results (int, optional): The maximum number of indexes to return.
133133
next_token (str, optional): The token for the next page of indexes.
134134
prefix (str, optional): The prefix to filter indexes by name.
@@ -174,19 +174,19 @@ class DeleteVectorIndexRequest(serde.RequestModel):
174174
"""
175175

176176
_attribute_map = {
177-
'bucket': {'tag': 'input', 'position': 'path', 'rename': 'bucket', 'type': 'str'},
177+
'bucket': {'tag': 'input', 'position': 'path', 'rename': 'bucket', 'type': 'str', "required": True},
178178
'index_name': {'tag': 'input', 'position': 'body', 'rename': 'indexName', 'type': 'str'},
179179
}
180180

181181
def __init__(
182182
self,
183-
bucket: Optional[str] = None,
183+
bucket: str = None,
184184
index_name: Optional[str] = None,
185185
**kwargs: Any
186186
) -> None:
187187
"""
188188
Args:
189-
bucket (str, optional): The name of the bucket.
189+
bucket (str, required): The name of the bucket.
190190
index_name (str, optional): The name of the index to delete.
191191
"""
192192
super().__init__(**kwargs)

0 commit comments

Comments
 (0)