huaweicloudsdkgeip 3.1.89__py2.py3-none-any.whl → 3.1.91__py2.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.

Potentially problematic release.


This version of huaweicloudsdkgeip might be problematic. Click here for more details.

@@ -1,738 +0,0 @@
1
- # coding: utf-8
2
-
3
- import six
4
-
5
- from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
-
7
-
8
- class BatchCreateGlobalEip:
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
- sensitive_list = []
18
-
19
- openapi_types = {
20
- 'id': 'str',
21
- 'name': 'str',
22
- 'description': 'str',
23
- 'domain_id': 'str',
24
- 'access_site': 'str',
25
- 'geip_pool_name': 'str',
26
- 'isp': 'str',
27
- 'ip_version': 'int',
28
- 'ip_address': 'str',
29
- 'ipv6_address': 'str',
30
- 'freezen': 'bool',
31
- 'freezen_info': 'str',
32
- 'polluted': 'bool',
33
- 'status': 'str',
34
- 'created_at': 'datetime',
35
- 'updated_at': 'datetime',
36
- 'internet_bandwidth_info': 'InternetBandwidthInfo',
37
- 'global_connection_bandwidth_info': 'GlobalConnectionBandwidthInfo',
38
- 'associate_instance_info': 'InstanceInfo',
39
- 'is_pre_paid': 'bool',
40
- 'tags': 'list[Tag]',
41
- 'sys_tags': 'list[Tag]',
42
- 'enterprise_project_id': 'str'
43
- }
44
-
45
- attribute_map = {
46
- 'id': 'id',
47
- 'name': 'name',
48
- 'description': 'description',
49
- 'domain_id': 'domain_id',
50
- 'access_site': 'access_site',
51
- 'geip_pool_name': 'geip_pool_name',
52
- 'isp': 'isp',
53
- 'ip_version': 'ip_version',
54
- 'ip_address': 'ip_address',
55
- 'ipv6_address': 'ipv6_address',
56
- 'freezen': 'freezen',
57
- 'freezen_info': 'freezen_info',
58
- 'polluted': 'polluted',
59
- 'status': 'status',
60
- 'created_at': 'created_at',
61
- 'updated_at': 'updated_at',
62
- 'internet_bandwidth_info': 'internet_bandwidth_info',
63
- 'global_connection_bandwidth_info': 'global_connection_bandwidth_info',
64
- 'associate_instance_info': 'associate_instance_info',
65
- 'is_pre_paid': 'is_pre_paid',
66
- 'tags': 'tags',
67
- 'sys_tags': 'sys_tags',
68
- 'enterprise_project_id': 'enterprise_project_id'
69
- }
70
-
71
- def __init__(self, id=None, name=None, description=None, domain_id=None, access_site=None, geip_pool_name=None, isp=None, ip_version=None, ip_address=None, ipv6_address=None, freezen=None, freezen_info=None, polluted=None, status=None, created_at=None, updated_at=None, internet_bandwidth_info=None, global_connection_bandwidth_info=None, associate_instance_info=None, is_pre_paid=None, tags=None, sys_tags=None, enterprise_project_id=None):
72
- """BatchCreateGlobalEip
73
-
74
- The model defined in huaweicloud sdk
75
-
76
- :param id: 全域弹性公网IP的ID
77
- :type id: str
78
- :param name: - 功能说明:全域弹性公网IP名称 - 取值范围:1-64,支持数字、字母、中文、_(下划线)、-(中划线)、.(点)
79
- :type name: str
80
- :param description: - 功能说明:用户自定义的资源描述 - 约束: - 值的长度最大512字符,由数字、字母、中文、_(下划线)、-(中划线)、.(点)组成。
81
- :type description: str
82
- :param domain_id: - 租户账号ID,获取租户账号ID请参见[租户账号ID](https://support.huaweicloud.com/api-iam/iam_17_0002.html)
83
- :type domain_id: str
84
- :param access_site: 接入点信息
85
- :type access_site: str
86
- :param geip_pool_name: 全域弹性公网IP池子名称
87
- :type geip_pool_name: str
88
- :param isp: 全域弹性公网IP所属线路
89
- :type isp: str
90
- :param ip_version: - 功能说明:全域弹性公网IP的版本 - 取值范围:4、6
91
- :type ip_version: int
92
- :param ip_address: IPv4地址
93
- :type ip_address: str
94
- :param ipv6_address: IPv6地址
95
- :type ipv6_address: str
96
- :param freezen: 是否冻结
97
- :type freezen: bool
98
- :param freezen_info: 冻结原因
99
- :type freezen_info: str
100
- :param polluted: 是否污染
101
- :type polluted: bool
102
- :param status: 状态
103
- :type status: str
104
- :param created_at: 创建时间
105
- :type created_at: datetime
106
- :param updated_at: 更新时间
107
- :type updated_at: datetime
108
- :param internet_bandwidth_info:
109
- :type internet_bandwidth_info: :class:`huaweicloudsdkgeip.v3.InternetBandwidthInfo`
110
- :param global_connection_bandwidth_info:
111
- :type global_connection_bandwidth_info: :class:`huaweicloudsdkgeip.v3.GlobalConnectionBandwidthInfo`
112
- :param associate_instance_info:
113
- :type associate_instance_info: :class:`huaweicloudsdkgeip.v3.InstanceInfo`
114
- :param is_pre_paid: 是否包周期
115
- :type is_pre_paid: bool
116
- :param tags: 全域弹性公网IP标签
117
- :type tags: list[:class:`huaweicloudsdkgeip.v3.Tag`]
118
- :param sys_tags: 系统标签
119
- :type sys_tags: list[:class:`huaweicloudsdkgeip.v3.Tag`]
120
- :param enterprise_project_id: - 企业项目ID。最大长度36字节,带“-”连字符的UUID格式,或者是字符串“0”。 - 创建全域弹性公网IP时,给全域弹性公网IP绑定企业项目ID。 - 不指定该参数时,默认值是 0 - 关于企业项目ID的获取及企业项目特性的详细信息,请参见[《企业管理用户指南》](https://support.huaweicloud.com/usermanual-em/zh-cn_topic_0126101490.html)。
121
- :type enterprise_project_id: str
122
- """
123
-
124
-
125
-
126
- self._id = None
127
- self._name = None
128
- self._description = None
129
- self._domain_id = None
130
- self._access_site = None
131
- self._geip_pool_name = None
132
- self._isp = None
133
- self._ip_version = None
134
- self._ip_address = None
135
- self._ipv6_address = None
136
- self._freezen = None
137
- self._freezen_info = None
138
- self._polluted = None
139
- self._status = None
140
- self._created_at = None
141
- self._updated_at = None
142
- self._internet_bandwidth_info = None
143
- self._global_connection_bandwidth_info = None
144
- self._associate_instance_info = None
145
- self._is_pre_paid = None
146
- self._tags = None
147
- self._sys_tags = None
148
- self._enterprise_project_id = None
149
- self.discriminator = None
150
-
151
- if id is not None:
152
- self.id = id
153
- if name is not None:
154
- self.name = name
155
- if description is not None:
156
- self.description = description
157
- if domain_id is not None:
158
- self.domain_id = domain_id
159
- self.access_site = access_site
160
- self.geip_pool_name = geip_pool_name
161
- if isp is not None:
162
- self.isp = isp
163
- if ip_version is not None:
164
- self.ip_version = ip_version
165
- if ip_address is not None:
166
- self.ip_address = ip_address
167
- if ipv6_address is not None:
168
- self.ipv6_address = ipv6_address
169
- if freezen is not None:
170
- self.freezen = freezen
171
- if freezen_info is not None:
172
- self.freezen_info = freezen_info
173
- if polluted is not None:
174
- self.polluted = polluted
175
- if status is not None:
176
- self.status = status
177
- if created_at is not None:
178
- self.created_at = created_at
179
- if updated_at is not None:
180
- self.updated_at = updated_at
181
- self.internet_bandwidth_info = internet_bandwidth_info
182
- if global_connection_bandwidth_info is not None:
183
- self.global_connection_bandwidth_info = global_connection_bandwidth_info
184
- if associate_instance_info is not None:
185
- self.associate_instance_info = associate_instance_info
186
- if is_pre_paid is not None:
187
- self.is_pre_paid = is_pre_paid
188
- if tags is not None:
189
- self.tags = tags
190
- if sys_tags is not None:
191
- self.sys_tags = sys_tags
192
- if enterprise_project_id is not None:
193
- self.enterprise_project_id = enterprise_project_id
194
-
195
- @property
196
- def id(self):
197
- """Gets the id of this BatchCreateGlobalEip.
198
-
199
- 全域弹性公网IP的ID
200
-
201
- :return: The id of this BatchCreateGlobalEip.
202
- :rtype: str
203
- """
204
- return self._id
205
-
206
- @id.setter
207
- def id(self, id):
208
- """Sets the id of this BatchCreateGlobalEip.
209
-
210
- 全域弹性公网IP的ID
211
-
212
- :param id: The id of this BatchCreateGlobalEip.
213
- :type id: str
214
- """
215
- self._id = id
216
-
217
- @property
218
- def name(self):
219
- """Gets the name of this BatchCreateGlobalEip.
220
-
221
- - 功能说明:全域弹性公网IP名称 - 取值范围:1-64,支持数字、字母、中文、_(下划线)、-(中划线)、.(点)
222
-
223
- :return: The name of this BatchCreateGlobalEip.
224
- :rtype: str
225
- """
226
- return self._name
227
-
228
- @name.setter
229
- def name(self, name):
230
- """Sets the name of this BatchCreateGlobalEip.
231
-
232
- - 功能说明:全域弹性公网IP名称 - 取值范围:1-64,支持数字、字母、中文、_(下划线)、-(中划线)、.(点)
233
-
234
- :param name: The name of this BatchCreateGlobalEip.
235
- :type name: str
236
- """
237
- self._name = name
238
-
239
- @property
240
- def description(self):
241
- """Gets the description of this BatchCreateGlobalEip.
242
-
243
- - 功能说明:用户自定义的资源描述 - 约束: - 值的长度最大512字符,由数字、字母、中文、_(下划线)、-(中划线)、.(点)组成。
244
-
245
- :return: The description of this BatchCreateGlobalEip.
246
- :rtype: str
247
- """
248
- return self._description
249
-
250
- @description.setter
251
- def description(self, description):
252
- """Sets the description of this BatchCreateGlobalEip.
253
-
254
- - 功能说明:用户自定义的资源描述 - 约束: - 值的长度最大512字符,由数字、字母、中文、_(下划线)、-(中划线)、.(点)组成。
255
-
256
- :param description: The description of this BatchCreateGlobalEip.
257
- :type description: str
258
- """
259
- self._description = description
260
-
261
- @property
262
- def domain_id(self):
263
- """Gets the domain_id of this BatchCreateGlobalEip.
264
-
265
- - 租户账号ID,获取租户账号ID请参见[租户账号ID](https://support.huaweicloud.com/api-iam/iam_17_0002.html)
266
-
267
- :return: The domain_id of this BatchCreateGlobalEip.
268
- :rtype: str
269
- """
270
- return self._domain_id
271
-
272
- @domain_id.setter
273
- def domain_id(self, domain_id):
274
- """Sets the domain_id of this BatchCreateGlobalEip.
275
-
276
- - 租户账号ID,获取租户账号ID请参见[租户账号ID](https://support.huaweicloud.com/api-iam/iam_17_0002.html)
277
-
278
- :param domain_id: The domain_id of this BatchCreateGlobalEip.
279
- :type domain_id: str
280
- """
281
- self._domain_id = domain_id
282
-
283
- @property
284
- def access_site(self):
285
- """Gets the access_site of this BatchCreateGlobalEip.
286
-
287
- 接入点信息
288
-
289
- :return: The access_site of this BatchCreateGlobalEip.
290
- :rtype: str
291
- """
292
- return self._access_site
293
-
294
- @access_site.setter
295
- def access_site(self, access_site):
296
- """Sets the access_site of this BatchCreateGlobalEip.
297
-
298
- 接入点信息
299
-
300
- :param access_site: The access_site of this BatchCreateGlobalEip.
301
- :type access_site: str
302
- """
303
- self._access_site = access_site
304
-
305
- @property
306
- def geip_pool_name(self):
307
- """Gets the geip_pool_name of this BatchCreateGlobalEip.
308
-
309
- 全域弹性公网IP池子名称
310
-
311
- :return: The geip_pool_name of this BatchCreateGlobalEip.
312
- :rtype: str
313
- """
314
- return self._geip_pool_name
315
-
316
- @geip_pool_name.setter
317
- def geip_pool_name(self, geip_pool_name):
318
- """Sets the geip_pool_name of this BatchCreateGlobalEip.
319
-
320
- 全域弹性公网IP池子名称
321
-
322
- :param geip_pool_name: The geip_pool_name of this BatchCreateGlobalEip.
323
- :type geip_pool_name: str
324
- """
325
- self._geip_pool_name = geip_pool_name
326
-
327
- @property
328
- def isp(self):
329
- """Gets the isp of this BatchCreateGlobalEip.
330
-
331
- 全域弹性公网IP所属线路
332
-
333
- :return: The isp of this BatchCreateGlobalEip.
334
- :rtype: str
335
- """
336
- return self._isp
337
-
338
- @isp.setter
339
- def isp(self, isp):
340
- """Sets the isp of this BatchCreateGlobalEip.
341
-
342
- 全域弹性公网IP所属线路
343
-
344
- :param isp: The isp of this BatchCreateGlobalEip.
345
- :type isp: str
346
- """
347
- self._isp = isp
348
-
349
- @property
350
- def ip_version(self):
351
- """Gets the ip_version of this BatchCreateGlobalEip.
352
-
353
- - 功能说明:全域弹性公网IP的版本 - 取值范围:4、6
354
-
355
- :return: The ip_version of this BatchCreateGlobalEip.
356
- :rtype: int
357
- """
358
- return self._ip_version
359
-
360
- @ip_version.setter
361
- def ip_version(self, ip_version):
362
- """Sets the ip_version of this BatchCreateGlobalEip.
363
-
364
- - 功能说明:全域弹性公网IP的版本 - 取值范围:4、6
365
-
366
- :param ip_version: The ip_version of this BatchCreateGlobalEip.
367
- :type ip_version: int
368
- """
369
- self._ip_version = ip_version
370
-
371
- @property
372
- def ip_address(self):
373
- """Gets the ip_address of this BatchCreateGlobalEip.
374
-
375
- IPv4地址
376
-
377
- :return: The ip_address of this BatchCreateGlobalEip.
378
- :rtype: str
379
- """
380
- return self._ip_address
381
-
382
- @ip_address.setter
383
- def ip_address(self, ip_address):
384
- """Sets the ip_address of this BatchCreateGlobalEip.
385
-
386
- IPv4地址
387
-
388
- :param ip_address: The ip_address of this BatchCreateGlobalEip.
389
- :type ip_address: str
390
- """
391
- self._ip_address = ip_address
392
-
393
- @property
394
- def ipv6_address(self):
395
- """Gets the ipv6_address of this BatchCreateGlobalEip.
396
-
397
- IPv6地址
398
-
399
- :return: The ipv6_address of this BatchCreateGlobalEip.
400
- :rtype: str
401
- """
402
- return self._ipv6_address
403
-
404
- @ipv6_address.setter
405
- def ipv6_address(self, ipv6_address):
406
- """Sets the ipv6_address of this BatchCreateGlobalEip.
407
-
408
- IPv6地址
409
-
410
- :param ipv6_address: The ipv6_address of this BatchCreateGlobalEip.
411
- :type ipv6_address: str
412
- """
413
- self._ipv6_address = ipv6_address
414
-
415
- @property
416
- def freezen(self):
417
- """Gets the freezen of this BatchCreateGlobalEip.
418
-
419
- 是否冻结
420
-
421
- :return: The freezen of this BatchCreateGlobalEip.
422
- :rtype: bool
423
- """
424
- return self._freezen
425
-
426
- @freezen.setter
427
- def freezen(self, freezen):
428
- """Sets the freezen of this BatchCreateGlobalEip.
429
-
430
- 是否冻结
431
-
432
- :param freezen: The freezen of this BatchCreateGlobalEip.
433
- :type freezen: bool
434
- """
435
- self._freezen = freezen
436
-
437
- @property
438
- def freezen_info(self):
439
- """Gets the freezen_info of this BatchCreateGlobalEip.
440
-
441
- 冻结原因
442
-
443
- :return: The freezen_info of this BatchCreateGlobalEip.
444
- :rtype: str
445
- """
446
- return self._freezen_info
447
-
448
- @freezen_info.setter
449
- def freezen_info(self, freezen_info):
450
- """Sets the freezen_info of this BatchCreateGlobalEip.
451
-
452
- 冻结原因
453
-
454
- :param freezen_info: The freezen_info of this BatchCreateGlobalEip.
455
- :type freezen_info: str
456
- """
457
- self._freezen_info = freezen_info
458
-
459
- @property
460
- def polluted(self):
461
- """Gets the polluted of this BatchCreateGlobalEip.
462
-
463
- 是否污染
464
-
465
- :return: The polluted of this BatchCreateGlobalEip.
466
- :rtype: bool
467
- """
468
- return self._polluted
469
-
470
- @polluted.setter
471
- def polluted(self, polluted):
472
- """Sets the polluted of this BatchCreateGlobalEip.
473
-
474
- 是否污染
475
-
476
- :param polluted: The polluted of this BatchCreateGlobalEip.
477
- :type polluted: bool
478
- """
479
- self._polluted = polluted
480
-
481
- @property
482
- def status(self):
483
- """Gets the status of this BatchCreateGlobalEip.
484
-
485
- 状态
486
-
487
- :return: The status of this BatchCreateGlobalEip.
488
- :rtype: str
489
- """
490
- return self._status
491
-
492
- @status.setter
493
- def status(self, status):
494
- """Sets the status of this BatchCreateGlobalEip.
495
-
496
- 状态
497
-
498
- :param status: The status of this BatchCreateGlobalEip.
499
- :type status: str
500
- """
501
- self._status = status
502
-
503
- @property
504
- def created_at(self):
505
- """Gets the created_at of this BatchCreateGlobalEip.
506
-
507
- 创建时间
508
-
509
- :return: The created_at of this BatchCreateGlobalEip.
510
- :rtype: datetime
511
- """
512
- return self._created_at
513
-
514
- @created_at.setter
515
- def created_at(self, created_at):
516
- """Sets the created_at of this BatchCreateGlobalEip.
517
-
518
- 创建时间
519
-
520
- :param created_at: The created_at of this BatchCreateGlobalEip.
521
- :type created_at: datetime
522
- """
523
- self._created_at = created_at
524
-
525
- @property
526
- def updated_at(self):
527
- """Gets the updated_at of this BatchCreateGlobalEip.
528
-
529
- 更新时间
530
-
531
- :return: The updated_at of this BatchCreateGlobalEip.
532
- :rtype: datetime
533
- """
534
- return self._updated_at
535
-
536
- @updated_at.setter
537
- def updated_at(self, updated_at):
538
- """Sets the updated_at of this BatchCreateGlobalEip.
539
-
540
- 更新时间
541
-
542
- :param updated_at: The updated_at of this BatchCreateGlobalEip.
543
- :type updated_at: datetime
544
- """
545
- self._updated_at = updated_at
546
-
547
- @property
548
- def internet_bandwidth_info(self):
549
- """Gets the internet_bandwidth_info of this BatchCreateGlobalEip.
550
-
551
- :return: The internet_bandwidth_info of this BatchCreateGlobalEip.
552
- :rtype: :class:`huaweicloudsdkgeip.v3.InternetBandwidthInfo`
553
- """
554
- return self._internet_bandwidth_info
555
-
556
- @internet_bandwidth_info.setter
557
- def internet_bandwidth_info(self, internet_bandwidth_info):
558
- """Sets the internet_bandwidth_info of this BatchCreateGlobalEip.
559
-
560
- :param internet_bandwidth_info: The internet_bandwidth_info of this BatchCreateGlobalEip.
561
- :type internet_bandwidth_info: :class:`huaweicloudsdkgeip.v3.InternetBandwidthInfo`
562
- """
563
- self._internet_bandwidth_info = internet_bandwidth_info
564
-
565
- @property
566
- def global_connection_bandwidth_info(self):
567
- """Gets the global_connection_bandwidth_info of this BatchCreateGlobalEip.
568
-
569
- :return: The global_connection_bandwidth_info of this BatchCreateGlobalEip.
570
- :rtype: :class:`huaweicloudsdkgeip.v3.GlobalConnectionBandwidthInfo`
571
- """
572
- return self._global_connection_bandwidth_info
573
-
574
- @global_connection_bandwidth_info.setter
575
- def global_connection_bandwidth_info(self, global_connection_bandwidth_info):
576
- """Sets the global_connection_bandwidth_info of this BatchCreateGlobalEip.
577
-
578
- :param global_connection_bandwidth_info: The global_connection_bandwidth_info of this BatchCreateGlobalEip.
579
- :type global_connection_bandwidth_info: :class:`huaweicloudsdkgeip.v3.GlobalConnectionBandwidthInfo`
580
- """
581
- self._global_connection_bandwidth_info = global_connection_bandwidth_info
582
-
583
- @property
584
- def associate_instance_info(self):
585
- """Gets the associate_instance_info of this BatchCreateGlobalEip.
586
-
587
- :return: The associate_instance_info of this BatchCreateGlobalEip.
588
- :rtype: :class:`huaweicloudsdkgeip.v3.InstanceInfo`
589
- """
590
- return self._associate_instance_info
591
-
592
- @associate_instance_info.setter
593
- def associate_instance_info(self, associate_instance_info):
594
- """Sets the associate_instance_info of this BatchCreateGlobalEip.
595
-
596
- :param associate_instance_info: The associate_instance_info of this BatchCreateGlobalEip.
597
- :type associate_instance_info: :class:`huaweicloudsdkgeip.v3.InstanceInfo`
598
- """
599
- self._associate_instance_info = associate_instance_info
600
-
601
- @property
602
- def is_pre_paid(self):
603
- """Gets the is_pre_paid of this BatchCreateGlobalEip.
604
-
605
- 是否包周期
606
-
607
- :return: The is_pre_paid of this BatchCreateGlobalEip.
608
- :rtype: bool
609
- """
610
- return self._is_pre_paid
611
-
612
- @is_pre_paid.setter
613
- def is_pre_paid(self, is_pre_paid):
614
- """Sets the is_pre_paid of this BatchCreateGlobalEip.
615
-
616
- 是否包周期
617
-
618
- :param is_pre_paid: The is_pre_paid of this BatchCreateGlobalEip.
619
- :type is_pre_paid: bool
620
- """
621
- self._is_pre_paid = is_pre_paid
622
-
623
- @property
624
- def tags(self):
625
- """Gets the tags of this BatchCreateGlobalEip.
626
-
627
- 全域弹性公网IP标签
628
-
629
- :return: The tags of this BatchCreateGlobalEip.
630
- :rtype: list[:class:`huaweicloudsdkgeip.v3.Tag`]
631
- """
632
- return self._tags
633
-
634
- @tags.setter
635
- def tags(self, tags):
636
- """Sets the tags of this BatchCreateGlobalEip.
637
-
638
- 全域弹性公网IP标签
639
-
640
- :param tags: The tags of this BatchCreateGlobalEip.
641
- :type tags: list[:class:`huaweicloudsdkgeip.v3.Tag`]
642
- """
643
- self._tags = tags
644
-
645
- @property
646
- def sys_tags(self):
647
- """Gets the sys_tags of this BatchCreateGlobalEip.
648
-
649
- 系统标签
650
-
651
- :return: The sys_tags of this BatchCreateGlobalEip.
652
- :rtype: list[:class:`huaweicloudsdkgeip.v3.Tag`]
653
- """
654
- return self._sys_tags
655
-
656
- @sys_tags.setter
657
- def sys_tags(self, sys_tags):
658
- """Sets the sys_tags of this BatchCreateGlobalEip.
659
-
660
- 系统标签
661
-
662
- :param sys_tags: The sys_tags of this BatchCreateGlobalEip.
663
- :type sys_tags: list[:class:`huaweicloudsdkgeip.v3.Tag`]
664
- """
665
- self._sys_tags = sys_tags
666
-
667
- @property
668
- def enterprise_project_id(self):
669
- """Gets the enterprise_project_id of this BatchCreateGlobalEip.
670
-
671
- - 企业项目ID。最大长度36字节,带“-”连字符的UUID格式,或者是字符串“0”。 - 创建全域弹性公网IP时,给全域弹性公网IP绑定企业项目ID。 - 不指定该参数时,默认值是 0 - 关于企业项目ID的获取及企业项目特性的详细信息,请参见[《企业管理用户指南》](https://support.huaweicloud.com/usermanual-em/zh-cn_topic_0126101490.html)。
672
-
673
- :return: The enterprise_project_id of this BatchCreateGlobalEip.
674
- :rtype: str
675
- """
676
- return self._enterprise_project_id
677
-
678
- @enterprise_project_id.setter
679
- def enterprise_project_id(self, enterprise_project_id):
680
- """Sets the enterprise_project_id of this BatchCreateGlobalEip.
681
-
682
- - 企业项目ID。最大长度36字节,带“-”连字符的UUID格式,或者是字符串“0”。 - 创建全域弹性公网IP时,给全域弹性公网IP绑定企业项目ID。 - 不指定该参数时,默认值是 0 - 关于企业项目ID的获取及企业项目特性的详细信息,请参见[《企业管理用户指南》](https://support.huaweicloud.com/usermanual-em/zh-cn_topic_0126101490.html)。
683
-
684
- :param enterprise_project_id: The enterprise_project_id of this BatchCreateGlobalEip.
685
- :type enterprise_project_id: str
686
- """
687
- self._enterprise_project_id = enterprise_project_id
688
-
689
- def to_dict(self):
690
- """Returns the model properties as a dict"""
691
- result = {}
692
-
693
- for attr, _ in six.iteritems(self.openapi_types):
694
- value = getattr(self, attr)
695
- if isinstance(value, list):
696
- result[attr] = list(map(
697
- lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
698
- value
699
- ))
700
- elif hasattr(value, "to_dict"):
701
- result[attr] = value.to_dict()
702
- elif isinstance(value, dict):
703
- result[attr] = dict(map(
704
- lambda item: (item[0], item[1].to_dict())
705
- if hasattr(item[1], "to_dict") else item,
706
- value.items()
707
- ))
708
- else:
709
- if attr in self.sensitive_list:
710
- result[attr] = "****"
711
- else:
712
- result[attr] = value
713
-
714
- return result
715
-
716
- def to_str(self):
717
- """Returns the string representation of the model"""
718
- import simplejson as json
719
- if six.PY2:
720
- import sys
721
- reload(sys)
722
- sys.setdefaultencoding("utf-8")
723
- return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
724
-
725
- def __repr__(self):
726
- """For `print`"""
727
- return self.to_str()
728
-
729
- def __eq__(self, other):
730
- """Returns true if both objects are equal"""
731
- if not isinstance(other, BatchCreateGlobalEip):
732
- return False
733
-
734
- return self.__dict__ == other.__dict__
735
-
736
- def __ne__(self, other):
737
- """Returns true if both objects are not equal"""
738
- return not self == other