huaweicloudsdkobs 3.1.160__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- huaweicloudsdkobs/__init__.py +0 -0
- huaweicloudsdkobs/v1/__init__.py +66 -0
- huaweicloudsdkobs/v1/model/__init__.py +63 -0
- huaweicloudsdkobs/v1/model/access_control_list.py +113 -0
- huaweicloudsdkobs/v1/model/bucket.py +233 -0
- huaweicloudsdkobs/v1/model/buckets.py +117 -0
- huaweicloudsdkobs/v1/model/common_prefixes.py +113 -0
- huaweicloudsdkobs/v1/model/contents.py +287 -0
- huaweicloudsdkobs/v1/model/copy_object_request.py +839 -0
- huaweicloudsdkobs/v1/model/copy_object_response.py +443 -0
- huaweicloudsdkobs/v1/model/create_bucket_request.py +605 -0
- huaweicloudsdkobs/v1/model/create_bucket_request_body.py +117 -0
- huaweicloudsdkobs/v1/model/create_bucket_response.py +239 -0
- huaweicloudsdkobs/v1/model/delete_bucket_customdomain_request.py +173 -0
- huaweicloudsdkobs/v1/model/delete_bucket_customdomain_response.py +239 -0
- huaweicloudsdkobs/v1/model/delete_bucket_request.py +145 -0
- huaweicloudsdkobs/v1/model/delete_bucket_response.py +239 -0
- huaweicloudsdkobs/v1/model/delete_object.py +146 -0
- huaweicloudsdkobs/v1/model/delete_object_request.py +202 -0
- huaweicloudsdkobs/v1/model/delete_object_response.py +289 -0
- huaweicloudsdkobs/v1/model/delete_objects_request.py +226 -0
- huaweicloudsdkobs/v1/model/delete_objects_request_body.py +171 -0
- huaweicloudsdkobs/v1/model/delete_objects_response.py +318 -0
- huaweicloudsdkobs/v1/model/delete_result_deleted.py +204 -0
- huaweicloudsdkobs/v1/model/delete_result_error.py +175 -0
- huaweicloudsdkobs/v1/model/domains.py +173 -0
- huaweicloudsdkobs/v1/model/filter_object.py +113 -0
- huaweicloudsdkobs/v1/model/filter_rule.py +146 -0
- huaweicloudsdkobs/v1/model/function_stage_configuration.py +229 -0
- huaweicloudsdkobs/v1/model/get_bucket_acl_request.py +173 -0
- huaweicloudsdkobs/v1/model/get_bucket_acl_response.py +289 -0
- huaweicloudsdkobs/v1/model/get_bucket_customdomain_request.py +173 -0
- huaweicloudsdkobs/v1/model/get_bucket_customdomain_response.py +264 -0
- huaweicloudsdkobs/v1/model/get_bucket_metadata_request.py +203 -0
- huaweicloudsdkobs/v1/model/get_bucket_metadata_response.py +539 -0
- huaweicloudsdkobs/v1/model/get_bucket_notification_request.py +173 -0
- huaweicloudsdkobs/v1/model/get_bucket_notification_response.py +264 -0
- huaweicloudsdkobs/v1/model/get_object_metadata_request.py +405 -0
- huaweicloudsdkobs/v1/model/get_object_metadata_response.py +689 -0
- huaweicloudsdkobs/v1/model/get_object_request.py +666 -0
- huaweicloudsdkobs/v1/model/get_object_response.py +489 -0
- huaweicloudsdkobs/v1/model/grant.py +171 -0
- huaweicloudsdkobs/v1/model/grantee.py +146 -0
- huaweicloudsdkobs/v1/model/list_buckets_request.py +146 -0
- huaweicloudsdkobs/v1/model/list_buckets_response.py +314 -0
- huaweicloudsdkobs/v1/model/list_objects_request.py +348 -0
- huaweicloudsdkobs/v1/model/list_objects_response.py +546 -0
- huaweicloudsdkobs/v1/model/owner.py +117 -0
- huaweicloudsdkobs/v1/model/put_object_request.py +667 -0
- huaweicloudsdkobs/v1/model/put_object_response.py +389 -0
- huaweicloudsdkobs/v1/model/set_bucket_acl_request.py +227 -0
- huaweicloudsdkobs/v1/model/set_bucket_acl_request_body.py +138 -0
- huaweicloudsdkobs/v1/model/set_bucket_acl_response.py +239 -0
- huaweicloudsdkobs/v1/model/set_bucket_custom_domain_body.py +230 -0
- huaweicloudsdkobs/v1/model/set_bucket_customedomain_request.py +198 -0
- huaweicloudsdkobs/v1/model/set_bucket_customedomain_response.py +239 -0
- huaweicloudsdkobs/v1/model/set_bucket_notification_request.py +198 -0
- huaweicloudsdkobs/v1/model/set_bucket_notification_request_body.py +138 -0
- huaweicloudsdkobs/v1/model/set_bucket_notification_response.py +239 -0
- huaweicloudsdkobs/v1/model/topic_configuration.py +200 -0
- huaweicloudsdkobs/v1/model/topic_configuration_filter.py +113 -0
- huaweicloudsdkobs/v1/obs_async_client.py +1600 -0
- huaweicloudsdkobs/v1/obs_client.py +1597 -0
- huaweicloudsdkobs/v1/obs_credentials.py +69 -0
- huaweicloudsdkobs/v1/obs_signer.py +298 -0
- huaweicloudsdkobs/v1/region/__init__.py +0 -0
- huaweicloudsdkobs/v1/region/obs_region.py +88 -0
- huaweicloudsdkobs-3.1.160.dist-info/LICENSE +13 -0
- huaweicloudsdkobs-3.1.160.dist-info/METADATA +26 -0
- huaweicloudsdkobs-3.1.160.dist-info/RECORD +72 -0
- huaweicloudsdkobs-3.1.160.dist-info/WHEEL +5 -0
- huaweicloudsdkobs-3.1.160.dist-info/top_level.txt +1 -0
@@ -0,0 +1,605 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
import six
|
4
|
+
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
6
|
+
|
7
|
+
|
8
|
+
class CreateBucketRequest:
|
9
|
+
|
10
|
+
"""
|
11
|
+
Attributes:
|
12
|
+
openapi_types (dict): The key is attribute name
|
13
|
+
and the value is attribute type.
|
14
|
+
attribute_map (dict): The key is attribute name
|
15
|
+
and the value is json key in definition.
|
16
|
+
"""
|
17
|
+
xml_name = "CreateBucketRequest"
|
18
|
+
|
19
|
+
sensitive_list = []
|
20
|
+
|
21
|
+
openapi_types = {
|
22
|
+
'bucket_name': 'str',
|
23
|
+
'date': 'str',
|
24
|
+
'x_obs_acl': 'str',
|
25
|
+
'x_obs_storage_class': 'str',
|
26
|
+
'x_obs_grant_read': 'str',
|
27
|
+
'x_obs_grant_write': 'str',
|
28
|
+
'x_obs_grant_read_acp': 'str',
|
29
|
+
'x_obs_grant_write_acp': 'str',
|
30
|
+
'x_obs_grant_full_control': 'str',
|
31
|
+
'x_obs_grant_read_delivered': 'str',
|
32
|
+
'x_obs_grant_full_control_delivered': 'str',
|
33
|
+
'x_obs_az_redundancy': 'str',
|
34
|
+
'x_obs_fs_file_interface': 'str',
|
35
|
+
'x_obs_epid': 'str',
|
36
|
+
'x_obs_cluster_type': 'str',
|
37
|
+
'x_obs_location_clustergroup_id': 'str',
|
38
|
+
'x_obs_ies_location': 'str',
|
39
|
+
'body': 'CreateBucketRequestBody'
|
40
|
+
}
|
41
|
+
|
42
|
+
attribute_map = {
|
43
|
+
'bucket_name': 'bucket_name',
|
44
|
+
'date': 'Date',
|
45
|
+
'x_obs_acl': 'x-obs-acl',
|
46
|
+
'x_obs_storage_class': 'x-obs-storage-class',
|
47
|
+
'x_obs_grant_read': 'x-obs-grant-read',
|
48
|
+
'x_obs_grant_write': 'x-obs-grant-write',
|
49
|
+
'x_obs_grant_read_acp': 'x-obs-grant-read-acp',
|
50
|
+
'x_obs_grant_write_acp': 'x-obs-grant-write-acp',
|
51
|
+
'x_obs_grant_full_control': 'x-obs-grant-full-control',
|
52
|
+
'x_obs_grant_read_delivered': 'x-obs-grant-read-delivered',
|
53
|
+
'x_obs_grant_full_control_delivered': 'x-obs-grant-full-control-delivered',
|
54
|
+
'x_obs_az_redundancy': 'x-obs-az-redundancy',
|
55
|
+
'x_obs_fs_file_interface': 'x-obs-fs-file-interface',
|
56
|
+
'x_obs_epid': 'x-obs-epid',
|
57
|
+
'x_obs_cluster_type': 'x-obs-cluster-type',
|
58
|
+
'x_obs_location_clustergroup_id': 'x-obs-location-clustergroup-id',
|
59
|
+
'x_obs_ies_location': 'x-obs-ies-location',
|
60
|
+
'body': 'body'
|
61
|
+
}
|
62
|
+
|
63
|
+
def __init__(self, bucket_name=None, date=None, x_obs_acl=None, x_obs_storage_class=None, x_obs_grant_read=None, x_obs_grant_write=None, x_obs_grant_read_acp=None, x_obs_grant_write_acp=None, x_obs_grant_full_control=None, x_obs_grant_read_delivered=None, x_obs_grant_full_control_delivered=None, x_obs_az_redundancy=None, x_obs_fs_file_interface=None, x_obs_epid=None, x_obs_cluster_type=None, x_obs_location_clustergroup_id=None, x_obs_ies_location=None, body=None):
|
64
|
+
r"""CreateBucketRequest
|
65
|
+
|
66
|
+
The model defined in huaweicloud sdk
|
67
|
+
|
68
|
+
:param bucket_name: A bucket name is part of the access domain name and needs to be resolved. The bucket name must conform to the DNS domain naming rules. When receiving a bucket creation request, OBS strictly checks the bucket name based on the following rules: + A bucket name must be unique across all accounts and regions. + The name of a deleted bucket can be reused for another bucket or a parallel file system at least 30 minutes later after the deletion. + A bucket name must be 3 to 63 characters long. Only lowercase letters, digits, hyphens (-), and periods (.) are allowed. + A bucket name cannot start or end with a period (.) or hyphen (-), and cannot contain two consecutive periods (..) or contain a period (.) and a hyphen (-) adjacent to each other. + A bucket name cannot be formatted as an IP address. Note: The SSL wildcard certificate matches only buckets without periods (.) in their names when HTTPS is used for OBS access. If you use a bucket with periods (.) in its name to access OBS, the client will display a message indicating that the bucket is risky, for example, a red alarm may be displayed in the browser security prompt. We recommend that you avoid using periods (.) in bucket names.
|
69
|
+
:type bucket_name: str
|
70
|
+
:param date: Time when a request was initiated, for example, **Wed, 27 Jun 2018 13:39:15 +0000**. Default value: none Restriction: This header is optional if the **x-obs-date** header is contained in the request, but mandatory in other circumstances.
|
71
|
+
:type date: str
|
72
|
+
:param x_obs_acl: When creating a bucket, you can add this header to configure access control policies (predefined common policies) for a bucket. Such policies include **private**, **public-read**, **public-read-write**, **public-read-delivered**, **public-read-write-delivered**, and **bucket-owner-full-control**. For details about each policy, see the ACL configuration using headers in section ACLs.
|
73
|
+
:type x_obs_acl: str
|
74
|
+
:param x_obs_storage_class: When creating a bucket, you can add this header to configure a default storage class for a bucket. The storage classes include Standard (STANDARD), Infrequent Access (WARM), Archive (COLD), and High-Performance (HIGH_PERFORMANCE). The high-performance storage is only for parallel file systems. If this header is not included, the bucket is created in the Standard storage class.
|
75
|
+
:type x_obs_storage_class: str
|
76
|
+
:param x_obs_grant_read: Grants the read permission to all users under an account. The read permission allows you to list objects, multipart uploads, and object versions in a bucket, as well as to obtain bucket metadata.
|
77
|
+
:type x_obs_grant_read: str
|
78
|
+
:param x_obs_grant_write: Grants the write permission to all users under an account. The write permission allows you to create, delete, or overwrite all objects in a bucket, and to initialize, upload, copy, and merge parts, as well as to cancel multipart uploads.
|
79
|
+
:type x_obs_grant_write: str
|
80
|
+
:param x_obs_grant_read_acp: Grants the ACL read permission to all users under an account. The ACL read permission allows you to read the bucket ACL.
|
81
|
+
:type x_obs_grant_read_acp: str
|
82
|
+
:param x_obs_grant_write_acp: Grants the ACL write permission to all users under an account. The ACL write permission allows you to modify the bucket ACL.
|
83
|
+
:type x_obs_grant_write_acp: str
|
84
|
+
:param x_obs_grant_full_control: Grants the full control access to all users under an account.
|
85
|
+
:type x_obs_grant_full_control: str
|
86
|
+
:param x_obs_grant_read_delivered: Grants the read permission to all users under an account. By default, the read permission is applied to all objects in the bucket.
|
87
|
+
:type x_obs_grant_read_delivered: str
|
88
|
+
:param x_obs_grant_full_control_delivered: Grants the full control access to all users under an account. By default, the full control access is applied to all objects in the bucket.
|
89
|
+
:type x_obs_grant_full_control_delivered: str
|
90
|
+
:param x_obs_az_redundancy: Add this header in a bucket creation request to enable the multi-AZ storage for the bucket. If this header is not carried, single-AZ storage is used for the bucket by default. If the region where you are creating the bucket does not support multi-AZ storage, even if you add this header in the request, the bucket still uses the single-AZ storage.
|
91
|
+
:type x_obs_az_redundancy: str
|
92
|
+
:param x_obs_fs_file_interface: Specifies a parallel file system during bucket creation.
|
93
|
+
:type x_obs_fs_file_interface: str
|
94
|
+
:param x_obs_epid: Enterprise project ID in **UUID** format. If you have enabled the enterprise project function, you can obtain this ID from the enterprise project service. To use the default project, set this header to **0** or do not contain this header in the request. This header is not needed if you do not enable the enterprise project function.
|
95
|
+
:type x_obs_epid: str
|
96
|
+
:param x_obs_cluster_type: Specifies the type (public or dedicated) of the cluster where a bucket is created.
|
97
|
+
:type x_obs_cluster_type: str
|
98
|
+
:param x_obs_location_clustergroup_id: Cluster group ID when a bucket is explicitly created in a cluster.
|
99
|
+
:type x_obs_location_clustergroup_id: str
|
100
|
+
:param x_obs_ies_location: ID of the AZ of the IES site where a bucket is created. This parameter cannot coexist with **x-obs-cluster-type**.
|
101
|
+
:type x_obs_ies_location: str
|
102
|
+
:param body: Body of the CreateBucketRequest
|
103
|
+
:type body: :class:`huaweicloudsdkobs.v1.CreateBucketRequestBody`
|
104
|
+
"""
|
105
|
+
|
106
|
+
|
107
|
+
|
108
|
+
self._bucket_name = None
|
109
|
+
self._date = None
|
110
|
+
self._x_obs_acl = None
|
111
|
+
self._x_obs_storage_class = None
|
112
|
+
self._x_obs_grant_read = None
|
113
|
+
self._x_obs_grant_write = None
|
114
|
+
self._x_obs_grant_read_acp = None
|
115
|
+
self._x_obs_grant_write_acp = None
|
116
|
+
self._x_obs_grant_full_control = None
|
117
|
+
self._x_obs_grant_read_delivered = None
|
118
|
+
self._x_obs_grant_full_control_delivered = None
|
119
|
+
self._x_obs_az_redundancy = None
|
120
|
+
self._x_obs_fs_file_interface = None
|
121
|
+
self._x_obs_epid = None
|
122
|
+
self._x_obs_cluster_type = None
|
123
|
+
self._x_obs_location_clustergroup_id = None
|
124
|
+
self._x_obs_ies_location = None
|
125
|
+
self._body = None
|
126
|
+
self.discriminator = None
|
127
|
+
|
128
|
+
self.bucket_name = bucket_name
|
129
|
+
if date is not None:
|
130
|
+
self.date = date
|
131
|
+
if x_obs_acl is not None:
|
132
|
+
self.x_obs_acl = x_obs_acl
|
133
|
+
if x_obs_storage_class is not None:
|
134
|
+
self.x_obs_storage_class = x_obs_storage_class
|
135
|
+
if x_obs_grant_read is not None:
|
136
|
+
self.x_obs_grant_read = x_obs_grant_read
|
137
|
+
if x_obs_grant_write is not None:
|
138
|
+
self.x_obs_grant_write = x_obs_grant_write
|
139
|
+
if x_obs_grant_read_acp is not None:
|
140
|
+
self.x_obs_grant_read_acp = x_obs_grant_read_acp
|
141
|
+
if x_obs_grant_write_acp is not None:
|
142
|
+
self.x_obs_grant_write_acp = x_obs_grant_write_acp
|
143
|
+
if x_obs_grant_full_control is not None:
|
144
|
+
self.x_obs_grant_full_control = x_obs_grant_full_control
|
145
|
+
if x_obs_grant_read_delivered is not None:
|
146
|
+
self.x_obs_grant_read_delivered = x_obs_grant_read_delivered
|
147
|
+
if x_obs_grant_full_control_delivered is not None:
|
148
|
+
self.x_obs_grant_full_control_delivered = x_obs_grant_full_control_delivered
|
149
|
+
if x_obs_az_redundancy is not None:
|
150
|
+
self.x_obs_az_redundancy = x_obs_az_redundancy
|
151
|
+
if x_obs_fs_file_interface is not None:
|
152
|
+
self.x_obs_fs_file_interface = x_obs_fs_file_interface
|
153
|
+
if x_obs_epid is not None:
|
154
|
+
self.x_obs_epid = x_obs_epid
|
155
|
+
if x_obs_cluster_type is not None:
|
156
|
+
self.x_obs_cluster_type = x_obs_cluster_type
|
157
|
+
if x_obs_location_clustergroup_id is not None:
|
158
|
+
self.x_obs_location_clustergroup_id = x_obs_location_clustergroup_id
|
159
|
+
if x_obs_ies_location is not None:
|
160
|
+
self.x_obs_ies_location = x_obs_ies_location
|
161
|
+
if body is not None:
|
162
|
+
self.body = body
|
163
|
+
|
164
|
+
@property
|
165
|
+
def bucket_name(self):
|
166
|
+
r"""Gets the bucket_name of this CreateBucketRequest.
|
167
|
+
|
168
|
+
A bucket name is part of the access domain name and needs to be resolved. The bucket name must conform to the DNS domain naming rules. When receiving a bucket creation request, OBS strictly checks the bucket name based on the following rules: + A bucket name must be unique across all accounts and regions. + The name of a deleted bucket can be reused for another bucket or a parallel file system at least 30 minutes later after the deletion. + A bucket name must be 3 to 63 characters long. Only lowercase letters, digits, hyphens (-), and periods (.) are allowed. + A bucket name cannot start or end with a period (.) or hyphen (-), and cannot contain two consecutive periods (..) or contain a period (.) and a hyphen (-) adjacent to each other. + A bucket name cannot be formatted as an IP address. Note: The SSL wildcard certificate matches only buckets without periods (.) in their names when HTTPS is used for OBS access. If you use a bucket with periods (.) in its name to access OBS, the client will display a message indicating that the bucket is risky, for example, a red alarm may be displayed in the browser security prompt. We recommend that you avoid using periods (.) in bucket names.
|
169
|
+
|
170
|
+
:return: The bucket_name of this CreateBucketRequest.
|
171
|
+
:rtype: str
|
172
|
+
"""
|
173
|
+
return self._bucket_name
|
174
|
+
|
175
|
+
@bucket_name.setter
|
176
|
+
def bucket_name(self, bucket_name):
|
177
|
+
r"""Sets the bucket_name of this CreateBucketRequest.
|
178
|
+
|
179
|
+
A bucket name is part of the access domain name and needs to be resolved. The bucket name must conform to the DNS domain naming rules. When receiving a bucket creation request, OBS strictly checks the bucket name based on the following rules: + A bucket name must be unique across all accounts and regions. + The name of a deleted bucket can be reused for another bucket or a parallel file system at least 30 minutes later after the deletion. + A bucket name must be 3 to 63 characters long. Only lowercase letters, digits, hyphens (-), and periods (.) are allowed. + A bucket name cannot start or end with a period (.) or hyphen (-), and cannot contain two consecutive periods (..) or contain a period (.) and a hyphen (-) adjacent to each other. + A bucket name cannot be formatted as an IP address. Note: The SSL wildcard certificate matches only buckets without periods (.) in their names when HTTPS is used for OBS access. If you use a bucket with periods (.) in its name to access OBS, the client will display a message indicating that the bucket is risky, for example, a red alarm may be displayed in the browser security prompt. We recommend that you avoid using periods (.) in bucket names.
|
180
|
+
|
181
|
+
:param bucket_name: The bucket_name of this CreateBucketRequest.
|
182
|
+
:type bucket_name: str
|
183
|
+
"""
|
184
|
+
self._bucket_name = bucket_name
|
185
|
+
|
186
|
+
@property
|
187
|
+
def date(self):
|
188
|
+
r"""Gets the date of this CreateBucketRequest.
|
189
|
+
|
190
|
+
Time when a request was initiated, for example, **Wed, 27 Jun 2018 13:39:15 +0000**. Default value: none Restriction: This header is optional if the **x-obs-date** header is contained in the request, but mandatory in other circumstances.
|
191
|
+
|
192
|
+
:return: The date of this CreateBucketRequest.
|
193
|
+
:rtype: str
|
194
|
+
"""
|
195
|
+
return self._date
|
196
|
+
|
197
|
+
@date.setter
|
198
|
+
def date(self, date):
|
199
|
+
r"""Sets the date of this CreateBucketRequest.
|
200
|
+
|
201
|
+
Time when a request was initiated, for example, **Wed, 27 Jun 2018 13:39:15 +0000**. Default value: none Restriction: This header is optional if the **x-obs-date** header is contained in the request, but mandatory in other circumstances.
|
202
|
+
|
203
|
+
:param date: The date of this CreateBucketRequest.
|
204
|
+
:type date: str
|
205
|
+
"""
|
206
|
+
self._date = date
|
207
|
+
|
208
|
+
@property
|
209
|
+
def x_obs_acl(self):
|
210
|
+
r"""Gets the x_obs_acl of this CreateBucketRequest.
|
211
|
+
|
212
|
+
When creating a bucket, you can add this header to configure access control policies (predefined common policies) for a bucket. Such policies include **private**, **public-read**, **public-read-write**, **public-read-delivered**, **public-read-write-delivered**, and **bucket-owner-full-control**. For details about each policy, see the ACL configuration using headers in section ACLs.
|
213
|
+
|
214
|
+
:return: The x_obs_acl of this CreateBucketRequest.
|
215
|
+
:rtype: str
|
216
|
+
"""
|
217
|
+
return self._x_obs_acl
|
218
|
+
|
219
|
+
@x_obs_acl.setter
|
220
|
+
def x_obs_acl(self, x_obs_acl):
|
221
|
+
r"""Sets the x_obs_acl of this CreateBucketRequest.
|
222
|
+
|
223
|
+
When creating a bucket, you can add this header to configure access control policies (predefined common policies) for a bucket. Such policies include **private**, **public-read**, **public-read-write**, **public-read-delivered**, **public-read-write-delivered**, and **bucket-owner-full-control**. For details about each policy, see the ACL configuration using headers in section ACLs.
|
224
|
+
|
225
|
+
:param x_obs_acl: The x_obs_acl of this CreateBucketRequest.
|
226
|
+
:type x_obs_acl: str
|
227
|
+
"""
|
228
|
+
self._x_obs_acl = x_obs_acl
|
229
|
+
|
230
|
+
@property
|
231
|
+
def x_obs_storage_class(self):
|
232
|
+
r"""Gets the x_obs_storage_class of this CreateBucketRequest.
|
233
|
+
|
234
|
+
When creating a bucket, you can add this header to configure a default storage class for a bucket. The storage classes include Standard (STANDARD), Infrequent Access (WARM), Archive (COLD), and High-Performance (HIGH_PERFORMANCE). The high-performance storage is only for parallel file systems. If this header is not included, the bucket is created in the Standard storage class.
|
235
|
+
|
236
|
+
:return: The x_obs_storage_class of this CreateBucketRequest.
|
237
|
+
:rtype: str
|
238
|
+
"""
|
239
|
+
return self._x_obs_storage_class
|
240
|
+
|
241
|
+
@x_obs_storage_class.setter
|
242
|
+
def x_obs_storage_class(self, x_obs_storage_class):
|
243
|
+
r"""Sets the x_obs_storage_class of this CreateBucketRequest.
|
244
|
+
|
245
|
+
When creating a bucket, you can add this header to configure a default storage class for a bucket. The storage classes include Standard (STANDARD), Infrequent Access (WARM), Archive (COLD), and High-Performance (HIGH_PERFORMANCE). The high-performance storage is only for parallel file systems. If this header is not included, the bucket is created in the Standard storage class.
|
246
|
+
|
247
|
+
:param x_obs_storage_class: The x_obs_storage_class of this CreateBucketRequest.
|
248
|
+
:type x_obs_storage_class: str
|
249
|
+
"""
|
250
|
+
self._x_obs_storage_class = x_obs_storage_class
|
251
|
+
|
252
|
+
@property
|
253
|
+
def x_obs_grant_read(self):
|
254
|
+
r"""Gets the x_obs_grant_read of this CreateBucketRequest.
|
255
|
+
|
256
|
+
Grants the read permission to all users under an account. The read permission allows you to list objects, multipart uploads, and object versions in a bucket, as well as to obtain bucket metadata.
|
257
|
+
|
258
|
+
:return: The x_obs_grant_read of this CreateBucketRequest.
|
259
|
+
:rtype: str
|
260
|
+
"""
|
261
|
+
return self._x_obs_grant_read
|
262
|
+
|
263
|
+
@x_obs_grant_read.setter
|
264
|
+
def x_obs_grant_read(self, x_obs_grant_read):
|
265
|
+
r"""Sets the x_obs_grant_read of this CreateBucketRequest.
|
266
|
+
|
267
|
+
Grants the read permission to all users under an account. The read permission allows you to list objects, multipart uploads, and object versions in a bucket, as well as to obtain bucket metadata.
|
268
|
+
|
269
|
+
:param x_obs_grant_read: The x_obs_grant_read of this CreateBucketRequest.
|
270
|
+
:type x_obs_grant_read: str
|
271
|
+
"""
|
272
|
+
self._x_obs_grant_read = x_obs_grant_read
|
273
|
+
|
274
|
+
@property
|
275
|
+
def x_obs_grant_write(self):
|
276
|
+
r"""Gets the x_obs_grant_write of this CreateBucketRequest.
|
277
|
+
|
278
|
+
Grants the write permission to all users under an account. The write permission allows you to create, delete, or overwrite all objects in a bucket, and to initialize, upload, copy, and merge parts, as well as to cancel multipart uploads.
|
279
|
+
|
280
|
+
:return: The x_obs_grant_write of this CreateBucketRequest.
|
281
|
+
:rtype: str
|
282
|
+
"""
|
283
|
+
return self._x_obs_grant_write
|
284
|
+
|
285
|
+
@x_obs_grant_write.setter
|
286
|
+
def x_obs_grant_write(self, x_obs_grant_write):
|
287
|
+
r"""Sets the x_obs_grant_write of this CreateBucketRequest.
|
288
|
+
|
289
|
+
Grants the write permission to all users under an account. The write permission allows you to create, delete, or overwrite all objects in a bucket, and to initialize, upload, copy, and merge parts, as well as to cancel multipart uploads.
|
290
|
+
|
291
|
+
:param x_obs_grant_write: The x_obs_grant_write of this CreateBucketRequest.
|
292
|
+
:type x_obs_grant_write: str
|
293
|
+
"""
|
294
|
+
self._x_obs_grant_write = x_obs_grant_write
|
295
|
+
|
296
|
+
@property
|
297
|
+
def x_obs_grant_read_acp(self):
|
298
|
+
r"""Gets the x_obs_grant_read_acp of this CreateBucketRequest.
|
299
|
+
|
300
|
+
Grants the ACL read permission to all users under an account. The ACL read permission allows you to read the bucket ACL.
|
301
|
+
|
302
|
+
:return: The x_obs_grant_read_acp of this CreateBucketRequest.
|
303
|
+
:rtype: str
|
304
|
+
"""
|
305
|
+
return self._x_obs_grant_read_acp
|
306
|
+
|
307
|
+
@x_obs_grant_read_acp.setter
|
308
|
+
def x_obs_grant_read_acp(self, x_obs_grant_read_acp):
|
309
|
+
r"""Sets the x_obs_grant_read_acp of this CreateBucketRequest.
|
310
|
+
|
311
|
+
Grants the ACL read permission to all users under an account. The ACL read permission allows you to read the bucket ACL.
|
312
|
+
|
313
|
+
:param x_obs_grant_read_acp: The x_obs_grant_read_acp of this CreateBucketRequest.
|
314
|
+
:type x_obs_grant_read_acp: str
|
315
|
+
"""
|
316
|
+
self._x_obs_grant_read_acp = x_obs_grant_read_acp
|
317
|
+
|
318
|
+
@property
|
319
|
+
def x_obs_grant_write_acp(self):
|
320
|
+
r"""Gets the x_obs_grant_write_acp of this CreateBucketRequest.
|
321
|
+
|
322
|
+
Grants the ACL write permission to all users under an account. The ACL write permission allows you to modify the bucket ACL.
|
323
|
+
|
324
|
+
:return: The x_obs_grant_write_acp of this CreateBucketRequest.
|
325
|
+
:rtype: str
|
326
|
+
"""
|
327
|
+
return self._x_obs_grant_write_acp
|
328
|
+
|
329
|
+
@x_obs_grant_write_acp.setter
|
330
|
+
def x_obs_grant_write_acp(self, x_obs_grant_write_acp):
|
331
|
+
r"""Sets the x_obs_grant_write_acp of this CreateBucketRequest.
|
332
|
+
|
333
|
+
Grants the ACL write permission to all users under an account. The ACL write permission allows you to modify the bucket ACL.
|
334
|
+
|
335
|
+
:param x_obs_grant_write_acp: The x_obs_grant_write_acp of this CreateBucketRequest.
|
336
|
+
:type x_obs_grant_write_acp: str
|
337
|
+
"""
|
338
|
+
self._x_obs_grant_write_acp = x_obs_grant_write_acp
|
339
|
+
|
340
|
+
@property
|
341
|
+
def x_obs_grant_full_control(self):
|
342
|
+
r"""Gets the x_obs_grant_full_control of this CreateBucketRequest.
|
343
|
+
|
344
|
+
Grants the full control access to all users under an account.
|
345
|
+
|
346
|
+
:return: The x_obs_grant_full_control of this CreateBucketRequest.
|
347
|
+
:rtype: str
|
348
|
+
"""
|
349
|
+
return self._x_obs_grant_full_control
|
350
|
+
|
351
|
+
@x_obs_grant_full_control.setter
|
352
|
+
def x_obs_grant_full_control(self, x_obs_grant_full_control):
|
353
|
+
r"""Sets the x_obs_grant_full_control of this CreateBucketRequest.
|
354
|
+
|
355
|
+
Grants the full control access to all users under an account.
|
356
|
+
|
357
|
+
:param x_obs_grant_full_control: The x_obs_grant_full_control of this CreateBucketRequest.
|
358
|
+
:type x_obs_grant_full_control: str
|
359
|
+
"""
|
360
|
+
self._x_obs_grant_full_control = x_obs_grant_full_control
|
361
|
+
|
362
|
+
@property
|
363
|
+
def x_obs_grant_read_delivered(self):
|
364
|
+
r"""Gets the x_obs_grant_read_delivered of this CreateBucketRequest.
|
365
|
+
|
366
|
+
Grants the read permission to all users under an account. By default, the read permission is applied to all objects in the bucket.
|
367
|
+
|
368
|
+
:return: The x_obs_grant_read_delivered of this CreateBucketRequest.
|
369
|
+
:rtype: str
|
370
|
+
"""
|
371
|
+
return self._x_obs_grant_read_delivered
|
372
|
+
|
373
|
+
@x_obs_grant_read_delivered.setter
|
374
|
+
def x_obs_grant_read_delivered(self, x_obs_grant_read_delivered):
|
375
|
+
r"""Sets the x_obs_grant_read_delivered of this CreateBucketRequest.
|
376
|
+
|
377
|
+
Grants the read permission to all users under an account. By default, the read permission is applied to all objects in the bucket.
|
378
|
+
|
379
|
+
:param x_obs_grant_read_delivered: The x_obs_grant_read_delivered of this CreateBucketRequest.
|
380
|
+
:type x_obs_grant_read_delivered: str
|
381
|
+
"""
|
382
|
+
self._x_obs_grant_read_delivered = x_obs_grant_read_delivered
|
383
|
+
|
384
|
+
@property
|
385
|
+
def x_obs_grant_full_control_delivered(self):
|
386
|
+
r"""Gets the x_obs_grant_full_control_delivered of this CreateBucketRequest.
|
387
|
+
|
388
|
+
Grants the full control access to all users under an account. By default, the full control access is applied to all objects in the bucket.
|
389
|
+
|
390
|
+
:return: The x_obs_grant_full_control_delivered of this CreateBucketRequest.
|
391
|
+
:rtype: str
|
392
|
+
"""
|
393
|
+
return self._x_obs_grant_full_control_delivered
|
394
|
+
|
395
|
+
@x_obs_grant_full_control_delivered.setter
|
396
|
+
def x_obs_grant_full_control_delivered(self, x_obs_grant_full_control_delivered):
|
397
|
+
r"""Sets the x_obs_grant_full_control_delivered of this CreateBucketRequest.
|
398
|
+
|
399
|
+
Grants the full control access to all users under an account. By default, the full control access is applied to all objects in the bucket.
|
400
|
+
|
401
|
+
:param x_obs_grant_full_control_delivered: The x_obs_grant_full_control_delivered of this CreateBucketRequest.
|
402
|
+
:type x_obs_grant_full_control_delivered: str
|
403
|
+
"""
|
404
|
+
self._x_obs_grant_full_control_delivered = x_obs_grant_full_control_delivered
|
405
|
+
|
406
|
+
@property
|
407
|
+
def x_obs_az_redundancy(self):
|
408
|
+
r"""Gets the x_obs_az_redundancy of this CreateBucketRequest.
|
409
|
+
|
410
|
+
Add this header in a bucket creation request to enable the multi-AZ storage for the bucket. If this header is not carried, single-AZ storage is used for the bucket by default. If the region where you are creating the bucket does not support multi-AZ storage, even if you add this header in the request, the bucket still uses the single-AZ storage.
|
411
|
+
|
412
|
+
:return: The x_obs_az_redundancy of this CreateBucketRequest.
|
413
|
+
:rtype: str
|
414
|
+
"""
|
415
|
+
return self._x_obs_az_redundancy
|
416
|
+
|
417
|
+
@x_obs_az_redundancy.setter
|
418
|
+
def x_obs_az_redundancy(self, x_obs_az_redundancy):
|
419
|
+
r"""Sets the x_obs_az_redundancy of this CreateBucketRequest.
|
420
|
+
|
421
|
+
Add this header in a bucket creation request to enable the multi-AZ storage for the bucket. If this header is not carried, single-AZ storage is used for the bucket by default. If the region where you are creating the bucket does not support multi-AZ storage, even if you add this header in the request, the bucket still uses the single-AZ storage.
|
422
|
+
|
423
|
+
:param x_obs_az_redundancy: The x_obs_az_redundancy of this CreateBucketRequest.
|
424
|
+
:type x_obs_az_redundancy: str
|
425
|
+
"""
|
426
|
+
self._x_obs_az_redundancy = x_obs_az_redundancy
|
427
|
+
|
428
|
+
@property
|
429
|
+
def x_obs_fs_file_interface(self):
|
430
|
+
r"""Gets the x_obs_fs_file_interface of this CreateBucketRequest.
|
431
|
+
|
432
|
+
Specifies a parallel file system during bucket creation.
|
433
|
+
|
434
|
+
:return: The x_obs_fs_file_interface of this CreateBucketRequest.
|
435
|
+
:rtype: str
|
436
|
+
"""
|
437
|
+
return self._x_obs_fs_file_interface
|
438
|
+
|
439
|
+
@x_obs_fs_file_interface.setter
|
440
|
+
def x_obs_fs_file_interface(self, x_obs_fs_file_interface):
|
441
|
+
r"""Sets the x_obs_fs_file_interface of this CreateBucketRequest.
|
442
|
+
|
443
|
+
Specifies a parallel file system during bucket creation.
|
444
|
+
|
445
|
+
:param x_obs_fs_file_interface: The x_obs_fs_file_interface of this CreateBucketRequest.
|
446
|
+
:type x_obs_fs_file_interface: str
|
447
|
+
"""
|
448
|
+
self._x_obs_fs_file_interface = x_obs_fs_file_interface
|
449
|
+
|
450
|
+
@property
|
451
|
+
def x_obs_epid(self):
|
452
|
+
r"""Gets the x_obs_epid of this CreateBucketRequest.
|
453
|
+
|
454
|
+
Enterprise project ID in **UUID** format. If you have enabled the enterprise project function, you can obtain this ID from the enterprise project service. To use the default project, set this header to **0** or do not contain this header in the request. This header is not needed if you do not enable the enterprise project function.
|
455
|
+
|
456
|
+
:return: The x_obs_epid of this CreateBucketRequest.
|
457
|
+
:rtype: str
|
458
|
+
"""
|
459
|
+
return self._x_obs_epid
|
460
|
+
|
461
|
+
@x_obs_epid.setter
|
462
|
+
def x_obs_epid(self, x_obs_epid):
|
463
|
+
r"""Sets the x_obs_epid of this CreateBucketRequest.
|
464
|
+
|
465
|
+
Enterprise project ID in **UUID** format. If you have enabled the enterprise project function, you can obtain this ID from the enterprise project service. To use the default project, set this header to **0** or do not contain this header in the request. This header is not needed if you do not enable the enterprise project function.
|
466
|
+
|
467
|
+
:param x_obs_epid: The x_obs_epid of this CreateBucketRequest.
|
468
|
+
:type x_obs_epid: str
|
469
|
+
"""
|
470
|
+
self._x_obs_epid = x_obs_epid
|
471
|
+
|
472
|
+
@property
|
473
|
+
def x_obs_cluster_type(self):
|
474
|
+
r"""Gets the x_obs_cluster_type of this CreateBucketRequest.
|
475
|
+
|
476
|
+
Specifies the type (public or dedicated) of the cluster where a bucket is created.
|
477
|
+
|
478
|
+
:return: The x_obs_cluster_type of this CreateBucketRequest.
|
479
|
+
:rtype: str
|
480
|
+
"""
|
481
|
+
return self._x_obs_cluster_type
|
482
|
+
|
483
|
+
@x_obs_cluster_type.setter
|
484
|
+
def x_obs_cluster_type(self, x_obs_cluster_type):
|
485
|
+
r"""Sets the x_obs_cluster_type of this CreateBucketRequest.
|
486
|
+
|
487
|
+
Specifies the type (public or dedicated) of the cluster where a bucket is created.
|
488
|
+
|
489
|
+
:param x_obs_cluster_type: The x_obs_cluster_type of this CreateBucketRequest.
|
490
|
+
:type x_obs_cluster_type: str
|
491
|
+
"""
|
492
|
+
self._x_obs_cluster_type = x_obs_cluster_type
|
493
|
+
|
494
|
+
@property
|
495
|
+
def x_obs_location_clustergroup_id(self):
|
496
|
+
r"""Gets the x_obs_location_clustergroup_id of this CreateBucketRequest.
|
497
|
+
|
498
|
+
Cluster group ID when a bucket is explicitly created in a cluster.
|
499
|
+
|
500
|
+
:return: The x_obs_location_clustergroup_id of this CreateBucketRequest.
|
501
|
+
:rtype: str
|
502
|
+
"""
|
503
|
+
return self._x_obs_location_clustergroup_id
|
504
|
+
|
505
|
+
@x_obs_location_clustergroup_id.setter
|
506
|
+
def x_obs_location_clustergroup_id(self, x_obs_location_clustergroup_id):
|
507
|
+
r"""Sets the x_obs_location_clustergroup_id of this CreateBucketRequest.
|
508
|
+
|
509
|
+
Cluster group ID when a bucket is explicitly created in a cluster.
|
510
|
+
|
511
|
+
:param x_obs_location_clustergroup_id: The x_obs_location_clustergroup_id of this CreateBucketRequest.
|
512
|
+
:type x_obs_location_clustergroup_id: str
|
513
|
+
"""
|
514
|
+
self._x_obs_location_clustergroup_id = x_obs_location_clustergroup_id
|
515
|
+
|
516
|
+
@property
|
517
|
+
def x_obs_ies_location(self):
|
518
|
+
r"""Gets the x_obs_ies_location of this CreateBucketRequest.
|
519
|
+
|
520
|
+
ID of the AZ of the IES site where a bucket is created. This parameter cannot coexist with **x-obs-cluster-type**.
|
521
|
+
|
522
|
+
:return: The x_obs_ies_location of this CreateBucketRequest.
|
523
|
+
:rtype: str
|
524
|
+
"""
|
525
|
+
return self._x_obs_ies_location
|
526
|
+
|
527
|
+
@x_obs_ies_location.setter
|
528
|
+
def x_obs_ies_location(self, x_obs_ies_location):
|
529
|
+
r"""Sets the x_obs_ies_location of this CreateBucketRequest.
|
530
|
+
|
531
|
+
ID of the AZ of the IES site where a bucket is created. This parameter cannot coexist with **x-obs-cluster-type**.
|
532
|
+
|
533
|
+
:param x_obs_ies_location: The x_obs_ies_location of this CreateBucketRequest.
|
534
|
+
:type x_obs_ies_location: str
|
535
|
+
"""
|
536
|
+
self._x_obs_ies_location = x_obs_ies_location
|
537
|
+
|
538
|
+
@property
|
539
|
+
def body(self):
|
540
|
+
r"""Gets the body of this CreateBucketRequest.
|
541
|
+
|
542
|
+
:return: The body of this CreateBucketRequest.
|
543
|
+
:rtype: :class:`huaweicloudsdkobs.v1.CreateBucketRequestBody`
|
544
|
+
"""
|
545
|
+
return self._body
|
546
|
+
|
547
|
+
@body.setter
|
548
|
+
def body(self, body):
|
549
|
+
r"""Sets the body of this CreateBucketRequest.
|
550
|
+
|
551
|
+
:param body: The body of this CreateBucketRequest.
|
552
|
+
:type body: :class:`huaweicloudsdkobs.v1.CreateBucketRequestBody`
|
553
|
+
"""
|
554
|
+
self._body = body
|
555
|
+
|
556
|
+
def to_dict(self):
|
557
|
+
"""Returns the model properties as a dict"""
|
558
|
+
result = {}
|
559
|
+
|
560
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
561
|
+
value = getattr(self, attr)
|
562
|
+
if isinstance(value, list):
|
563
|
+
result[attr] = list(map(
|
564
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
565
|
+
value
|
566
|
+
))
|
567
|
+
elif hasattr(value, "to_dict"):
|
568
|
+
result[attr] = value.to_dict()
|
569
|
+
elif isinstance(value, dict):
|
570
|
+
result[attr] = dict(map(
|
571
|
+
lambda item: (item[0], item[1].to_dict())
|
572
|
+
if hasattr(item[1], "to_dict") else item,
|
573
|
+
value.items()
|
574
|
+
))
|
575
|
+
else:
|
576
|
+
if attr in self.sensitive_list:
|
577
|
+
result[attr] = "****"
|
578
|
+
else:
|
579
|
+
result[attr] = value
|
580
|
+
|
581
|
+
return result
|
582
|
+
|
583
|
+
def to_str(self):
|
584
|
+
"""Returns the string representation of the model"""
|
585
|
+
import simplejson as json
|
586
|
+
if six.PY2:
|
587
|
+
import sys
|
588
|
+
reload(sys)
|
589
|
+
sys.setdefaultencoding("utf-8")
|
590
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
591
|
+
|
592
|
+
def __repr__(self):
|
593
|
+
"""For `print`"""
|
594
|
+
return self.to_str()
|
595
|
+
|
596
|
+
def __eq__(self, other):
|
597
|
+
"""Returns true if both objects are equal"""
|
598
|
+
if not isinstance(other, CreateBucketRequest):
|
599
|
+
return False
|
600
|
+
|
601
|
+
return self.__dict__ == other.__dict__
|
602
|
+
|
603
|
+
def __ne__(self, other):
|
604
|
+
"""Returns true if both objects are not equal"""
|
605
|
+
return not self == other
|