tencentcloud-sdk-python-intl-en 3.0.1147__py2.py3-none-any.whl → 3.0.1148__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 tencentcloud-sdk-python-intl-en might be problematic. Click here for more details.

@@ -0,0 +1,3221 @@
1
+ # -*- coding: utf8 -*-
2
+ # Copyright (c) 2017-2021 THL A29 Limited, a Tencent company. All Rights Reserved.
3
+ #
4
+ # Licensed under the Apache License, Version 2.0 (the "License");
5
+ # you may not use this file except in compliance with the License.
6
+ # You may obtain a copy of the License at
7
+ #
8
+ # http://www.apache.org/licenses/LICENSE-2.0
9
+ #
10
+ # Unless required by applicable law or agreed to in writing, software
11
+ # distributed under the License is distributed on an "AS IS" BASIS,
12
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ # See the License for the specific language governing permissions and
14
+ # limitations under the License.
15
+
16
+ import warnings
17
+
18
+ from tencentcloud.common.abstract_model import AbstractModel
19
+
20
+
21
+ class AccessInfo(AbstractModel):
22
+ """Access information.
23
+
24
+ """
25
+
26
+ def __init__(self):
27
+ r"""
28
+ :param _Address: Address.
29
+ Note: This field may return null, indicating that no valid values can be obtained.
30
+ :type Address: str
31
+ :param _Protocol: Protocol.
32
+ Note: This field may return null, indicating that no valid values can be obtained.
33
+ :type Protocol: str
34
+ """
35
+ self._Address = None
36
+ self._Protocol = None
37
+
38
+ @property
39
+ def Address(self):
40
+ """Address.
41
+ Note: This field may return null, indicating that no valid values can be obtained.
42
+ :rtype: str
43
+ """
44
+ return self._Address
45
+
46
+ @Address.setter
47
+ def Address(self, Address):
48
+ self._Address = Address
49
+
50
+ @property
51
+ def Protocol(self):
52
+ """Protocol.
53
+ Note: This field may return null, indicating that no valid values can be obtained.
54
+ :rtype: str
55
+ """
56
+ return self._Protocol
57
+
58
+ @Protocol.setter
59
+ def Protocol(self, Protocol):
60
+ self._Protocol = Protocol
61
+
62
+
63
+ def _deserialize(self, params):
64
+ self._Address = params.get("Address")
65
+ self._Protocol = params.get("Protocol")
66
+ memeber_set = set(params.keys())
67
+ for name, value in vars(self).items():
68
+ property_name = name[1:]
69
+ if property_name in memeber_set:
70
+ memeber_set.remove(property_name)
71
+ if len(memeber_set) > 0:
72
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
73
+
74
+
75
+
76
+ class CBSSpec(AbstractModel):
77
+ """Disk specifications.
78
+
79
+ """
80
+
81
+ def __init__(self):
82
+ r"""
83
+ :param _DiskType: Disk type.
84
+ :type DiskType: str
85
+ :param _DiskSize: Size.
86
+ :type DiskSize: int
87
+ :param _DiskCount: Number.
88
+ :type DiskCount: int
89
+ """
90
+ self._DiskType = None
91
+ self._DiskSize = None
92
+ self._DiskCount = None
93
+
94
+ @property
95
+ def DiskType(self):
96
+ """Disk type.
97
+ :rtype: str
98
+ """
99
+ return self._DiskType
100
+
101
+ @DiskType.setter
102
+ def DiskType(self, DiskType):
103
+ self._DiskType = DiskType
104
+
105
+ @property
106
+ def DiskSize(self):
107
+ """Size.
108
+ :rtype: int
109
+ """
110
+ return self._DiskSize
111
+
112
+ @DiskSize.setter
113
+ def DiskSize(self, DiskSize):
114
+ self._DiskSize = DiskSize
115
+
116
+ @property
117
+ def DiskCount(self):
118
+ """Number.
119
+ :rtype: int
120
+ """
121
+ return self._DiskCount
122
+
123
+ @DiskCount.setter
124
+ def DiskCount(self, DiskCount):
125
+ self._DiskCount = DiskCount
126
+
127
+
128
+ def _deserialize(self, params):
129
+ self._DiskType = params.get("DiskType")
130
+ self._DiskSize = params.get("DiskSize")
131
+ self._DiskCount = params.get("DiskCount")
132
+ memeber_set = set(params.keys())
133
+ for name, value in vars(self).items():
134
+ property_name = name[1:]
135
+ if property_name in memeber_set:
136
+ memeber_set.remove(property_name)
137
+ if len(memeber_set) > 0:
138
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
139
+
140
+
141
+
142
+ class CBSSpecInfo(AbstractModel):
143
+ """Disk information.
144
+
145
+ """
146
+
147
+ def __init__(self):
148
+ r"""
149
+ :param _DiskType: Disk type.Note: This field may return null, indicating that no valid values can be obtained.
150
+ :type DiskType: str
151
+ :param _DiskSize: Size.
152
+ Note: This field may return null, indicating that no valid values can be obtained.
153
+ :type DiskSize: int
154
+ :param _DiskCount: Number.Note: This field may return null, indicating that no valid values can be obtained.
155
+ :type DiskCount: int
156
+ """
157
+ self._DiskType = None
158
+ self._DiskSize = None
159
+ self._DiskCount = None
160
+
161
+ @property
162
+ def DiskType(self):
163
+ """Disk type.Note: This field may return null, indicating that no valid values can be obtained.
164
+ :rtype: str
165
+ """
166
+ return self._DiskType
167
+
168
+ @DiskType.setter
169
+ def DiskType(self, DiskType):
170
+ self._DiskType = DiskType
171
+
172
+ @property
173
+ def DiskSize(self):
174
+ """Size.
175
+ Note: This field may return null, indicating that no valid values can be obtained.
176
+ :rtype: int
177
+ """
178
+ return self._DiskSize
179
+
180
+ @DiskSize.setter
181
+ def DiskSize(self, DiskSize):
182
+ self._DiskSize = DiskSize
183
+
184
+ @property
185
+ def DiskCount(self):
186
+ """Number.Note: This field may return null, indicating that no valid values can be obtained.
187
+ :rtype: int
188
+ """
189
+ return self._DiskCount
190
+
191
+ @DiskCount.setter
192
+ def DiskCount(self, DiskCount):
193
+ self._DiskCount = DiskCount
194
+
195
+
196
+ def _deserialize(self, params):
197
+ self._DiskType = params.get("DiskType")
198
+ self._DiskSize = params.get("DiskSize")
199
+ self._DiskCount = params.get("DiskCount")
200
+ memeber_set = set(params.keys())
201
+ for name, value in vars(self).items():
202
+ property_name = name[1:]
203
+ if property_name in memeber_set:
204
+ memeber_set.remove(property_name)
205
+ if len(memeber_set) > 0:
206
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
207
+
208
+
209
+
210
+ class ChargeProperties(AbstractModel):
211
+ """Billing time parameter.
212
+
213
+ """
214
+
215
+ def __init__(self):
216
+ r"""
217
+ :param _RenewFlag: 1: requires auto-renewal.
218
+ Note: This field may return null, indicating that no valid values can be obtained.
219
+ :type RenewFlag: int
220
+ :param _TimeSpan: Order time range.
221
+ Note: This field may return null, indicating that no valid values can be obtained.
222
+ :type TimeSpan: int
223
+ :param _TimeUnit: Time unit. Valid values: h and m.
224
+ Note: This field may return null, indicating that no valid values can be obtained.
225
+ :type TimeUnit: str
226
+ :param _PayMode: Billing type: 0 indicates pay-as-you-go and 1 indicates monthly subscription.
227
+ Note: This field may return null, indicating that no valid values can be obtained.
228
+ :type PayMode: int
229
+ :param _ChargeType: PREPAID and POSTPAID_BY_HOUR
230
+ Note: This field may return null, indicating that no valid values can be obtained.
231
+ :type ChargeType: str
232
+ """
233
+ self._RenewFlag = None
234
+ self._TimeSpan = None
235
+ self._TimeUnit = None
236
+ self._PayMode = None
237
+ self._ChargeType = None
238
+
239
+ @property
240
+ def RenewFlag(self):
241
+ """1: requires auto-renewal.
242
+ Note: This field may return null, indicating that no valid values can be obtained.
243
+ :rtype: int
244
+ """
245
+ return self._RenewFlag
246
+
247
+ @RenewFlag.setter
248
+ def RenewFlag(self, RenewFlag):
249
+ self._RenewFlag = RenewFlag
250
+
251
+ @property
252
+ def TimeSpan(self):
253
+ """Order time range.
254
+ Note: This field may return null, indicating that no valid values can be obtained.
255
+ :rtype: int
256
+ """
257
+ return self._TimeSpan
258
+
259
+ @TimeSpan.setter
260
+ def TimeSpan(self, TimeSpan):
261
+ self._TimeSpan = TimeSpan
262
+
263
+ @property
264
+ def TimeUnit(self):
265
+ """Time unit. Valid values: h and m.
266
+ Note: This field may return null, indicating that no valid values can be obtained.
267
+ :rtype: str
268
+ """
269
+ return self._TimeUnit
270
+
271
+ @TimeUnit.setter
272
+ def TimeUnit(self, TimeUnit):
273
+ self._TimeUnit = TimeUnit
274
+
275
+ @property
276
+ def PayMode(self):
277
+ """Billing type: 0 indicates pay-as-you-go and 1 indicates monthly subscription.
278
+ Note: This field may return null, indicating that no valid values can be obtained.
279
+ :rtype: int
280
+ """
281
+ return self._PayMode
282
+
283
+ @PayMode.setter
284
+ def PayMode(self, PayMode):
285
+ self._PayMode = PayMode
286
+
287
+ @property
288
+ def ChargeType(self):
289
+ """PREPAID and POSTPAID_BY_HOUR
290
+ Note: This field may return null, indicating that no valid values can be obtained.
291
+ :rtype: str
292
+ """
293
+ return self._ChargeType
294
+
295
+ @ChargeType.setter
296
+ def ChargeType(self, ChargeType):
297
+ self._ChargeType = ChargeType
298
+
299
+
300
+ def _deserialize(self, params):
301
+ self._RenewFlag = params.get("RenewFlag")
302
+ self._TimeSpan = params.get("TimeSpan")
303
+ self._TimeUnit = params.get("TimeUnit")
304
+ self._PayMode = params.get("PayMode")
305
+ self._ChargeType = params.get("ChargeType")
306
+ memeber_set = set(params.keys())
307
+ for name, value in vars(self).items():
308
+ property_name = name[1:]
309
+ if property_name in memeber_set:
310
+ memeber_set.remove(property_name)
311
+ if len(memeber_set) > 0:
312
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
313
+
314
+
315
+
316
+ class CreateInstanceByApiRequest(AbstractModel):
317
+ """CreateInstanceByApi request structure.
318
+
319
+ """
320
+
321
+ def __init__(self):
322
+ r"""
323
+ :param _InstanceName: Instance name.
324
+ :type InstanceName: str
325
+ :param _Zone: Availability zone.
326
+ :type Zone: str
327
+ :param _UserVPCId: Virtual Private Cloud (VPC).
328
+ :type UserVPCId: str
329
+ :param _UserSubnetId: Subnet.
330
+ :type UserSubnetId: str
331
+ :param _ChargeProperties: Billing method.
332
+ :type ChargeProperties: :class:`tencentcloud.cdwpg.v20201230.models.ChargeProperties`
333
+ :param _AdminPassword: Instance password.
334
+ :type AdminPassword: str
335
+ :param _Resources: Resource information.
336
+ :type Resources: list of ResourceSpecNew
337
+ :param _Tags: Tag list.
338
+ :type Tags: :class:`tencentcloud.cdwpg.v20201230.models.Tag`
339
+ :param _ProductVersion: Version.
340
+ :type ProductVersion: str
341
+ """
342
+ self._InstanceName = None
343
+ self._Zone = None
344
+ self._UserVPCId = None
345
+ self._UserSubnetId = None
346
+ self._ChargeProperties = None
347
+ self._AdminPassword = None
348
+ self._Resources = None
349
+ self._Tags = None
350
+ self._ProductVersion = None
351
+
352
+ @property
353
+ def InstanceName(self):
354
+ """Instance name.
355
+ :rtype: str
356
+ """
357
+ return self._InstanceName
358
+
359
+ @InstanceName.setter
360
+ def InstanceName(self, InstanceName):
361
+ self._InstanceName = InstanceName
362
+
363
+ @property
364
+ def Zone(self):
365
+ """Availability zone.
366
+ :rtype: str
367
+ """
368
+ return self._Zone
369
+
370
+ @Zone.setter
371
+ def Zone(self, Zone):
372
+ self._Zone = Zone
373
+
374
+ @property
375
+ def UserVPCId(self):
376
+ """Virtual Private Cloud (VPC).
377
+ :rtype: str
378
+ """
379
+ return self._UserVPCId
380
+
381
+ @UserVPCId.setter
382
+ def UserVPCId(self, UserVPCId):
383
+ self._UserVPCId = UserVPCId
384
+
385
+ @property
386
+ def UserSubnetId(self):
387
+ """Subnet.
388
+ :rtype: str
389
+ """
390
+ return self._UserSubnetId
391
+
392
+ @UserSubnetId.setter
393
+ def UserSubnetId(self, UserSubnetId):
394
+ self._UserSubnetId = UserSubnetId
395
+
396
+ @property
397
+ def ChargeProperties(self):
398
+ """Billing method.
399
+ :rtype: :class:`tencentcloud.cdwpg.v20201230.models.ChargeProperties`
400
+ """
401
+ return self._ChargeProperties
402
+
403
+ @ChargeProperties.setter
404
+ def ChargeProperties(self, ChargeProperties):
405
+ self._ChargeProperties = ChargeProperties
406
+
407
+ @property
408
+ def AdminPassword(self):
409
+ """Instance password.
410
+ :rtype: str
411
+ """
412
+ return self._AdminPassword
413
+
414
+ @AdminPassword.setter
415
+ def AdminPassword(self, AdminPassword):
416
+ self._AdminPassword = AdminPassword
417
+
418
+ @property
419
+ def Resources(self):
420
+ """Resource information.
421
+ :rtype: list of ResourceSpecNew
422
+ """
423
+ return self._Resources
424
+
425
+ @Resources.setter
426
+ def Resources(self, Resources):
427
+ self._Resources = Resources
428
+
429
+ @property
430
+ def Tags(self):
431
+ """Tag list.
432
+ :rtype: :class:`tencentcloud.cdwpg.v20201230.models.Tag`
433
+ """
434
+ return self._Tags
435
+
436
+ @Tags.setter
437
+ def Tags(self, Tags):
438
+ self._Tags = Tags
439
+
440
+ @property
441
+ def ProductVersion(self):
442
+ """Version.
443
+ :rtype: str
444
+ """
445
+ return self._ProductVersion
446
+
447
+ @ProductVersion.setter
448
+ def ProductVersion(self, ProductVersion):
449
+ self._ProductVersion = ProductVersion
450
+
451
+
452
+ def _deserialize(self, params):
453
+ self._InstanceName = params.get("InstanceName")
454
+ self._Zone = params.get("Zone")
455
+ self._UserVPCId = params.get("UserVPCId")
456
+ self._UserSubnetId = params.get("UserSubnetId")
457
+ if params.get("ChargeProperties") is not None:
458
+ self._ChargeProperties = ChargeProperties()
459
+ self._ChargeProperties._deserialize(params.get("ChargeProperties"))
460
+ self._AdminPassword = params.get("AdminPassword")
461
+ if params.get("Resources") is not None:
462
+ self._Resources = []
463
+ for item in params.get("Resources"):
464
+ obj = ResourceSpecNew()
465
+ obj._deserialize(item)
466
+ self._Resources.append(obj)
467
+ if params.get("Tags") is not None:
468
+ self._Tags = Tag()
469
+ self._Tags._deserialize(params.get("Tags"))
470
+ self._ProductVersion = params.get("ProductVersion")
471
+ memeber_set = set(params.keys())
472
+ for name, value in vars(self).items():
473
+ property_name = name[1:]
474
+ if property_name in memeber_set:
475
+ memeber_set.remove(property_name)
476
+ if len(memeber_set) > 0:
477
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
478
+
479
+
480
+
481
+ class CreateInstanceByApiResponse(AbstractModel):
482
+ """CreateInstanceByApi response structure.
483
+
484
+ """
485
+
486
+ def __init__(self):
487
+ r"""
488
+ :param _FlowId: Process ID.Note: This field may return null, indicating that no valid values can be obtained.
489
+ :type FlowId: str
490
+ :param _InstanceId: Instance ID.
491
+ Note: This field may return null, indicating that no valid values can be obtained.
492
+ :type InstanceId: str
493
+ :param _ErrorMsg: Error message.
494
+ Note: This field may return null, indicating that no valid values can be obtained.
495
+ :type ErrorMsg: str
496
+ :param _RequestId: The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
497
+ :type RequestId: str
498
+ """
499
+ self._FlowId = None
500
+ self._InstanceId = None
501
+ self._ErrorMsg = None
502
+ self._RequestId = None
503
+
504
+ @property
505
+ def FlowId(self):
506
+ """Process ID.Note: This field may return null, indicating that no valid values can be obtained.
507
+ :rtype: str
508
+ """
509
+ return self._FlowId
510
+
511
+ @FlowId.setter
512
+ def FlowId(self, FlowId):
513
+ self._FlowId = FlowId
514
+
515
+ @property
516
+ def InstanceId(self):
517
+ """Instance ID.
518
+ Note: This field may return null, indicating that no valid values can be obtained.
519
+ :rtype: str
520
+ """
521
+ return self._InstanceId
522
+
523
+ @InstanceId.setter
524
+ def InstanceId(self, InstanceId):
525
+ self._InstanceId = InstanceId
526
+
527
+ @property
528
+ def ErrorMsg(self):
529
+ """Error message.
530
+ Note: This field may return null, indicating that no valid values can be obtained.
531
+ :rtype: str
532
+ """
533
+ return self._ErrorMsg
534
+
535
+ @ErrorMsg.setter
536
+ def ErrorMsg(self, ErrorMsg):
537
+ self._ErrorMsg = ErrorMsg
538
+
539
+ @property
540
+ def RequestId(self):
541
+ """The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
542
+ :rtype: str
543
+ """
544
+ return self._RequestId
545
+
546
+ @RequestId.setter
547
+ def RequestId(self, RequestId):
548
+ self._RequestId = RequestId
549
+
550
+
551
+ def _deserialize(self, params):
552
+ self._FlowId = params.get("FlowId")
553
+ self._InstanceId = params.get("InstanceId")
554
+ self._ErrorMsg = params.get("ErrorMsg")
555
+ self._RequestId = params.get("RequestId")
556
+
557
+
558
+ class DescribeInstanceInfoRequest(AbstractModel):
559
+ """DescribeInstanceInfo request structure.
560
+
561
+ """
562
+
563
+ def __init__(self):
564
+ r"""
565
+ :param _InstanceId: instance ID.
566
+ :type InstanceId: str
567
+ """
568
+ self._InstanceId = None
569
+
570
+ @property
571
+ def InstanceId(self):
572
+ """instance ID.
573
+ :rtype: str
574
+ """
575
+ return self._InstanceId
576
+
577
+ @InstanceId.setter
578
+ def InstanceId(self, InstanceId):
579
+ self._InstanceId = InstanceId
580
+
581
+
582
+ def _deserialize(self, params):
583
+ self._InstanceId = params.get("InstanceId")
584
+ memeber_set = set(params.keys())
585
+ for name, value in vars(self).items():
586
+ property_name = name[1:]
587
+ if property_name in memeber_set:
588
+ memeber_set.remove(property_name)
589
+ if len(memeber_set) > 0:
590
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
591
+
592
+
593
+
594
+ class DescribeInstanceInfoResponse(AbstractModel):
595
+ """DescribeInstanceInfo response structure.
596
+
597
+ """
598
+
599
+ def __init__(self):
600
+ r"""
601
+ :param _SimpleInstanceInfo: Instance simple information
602
+ :type SimpleInstanceInfo: :class:`tencentcloud.cdwpg.v20201230.models.SimpleInstanceInfo`
603
+ :param _ErrorMsg: Error Message
604
+ :type ErrorMsg: str
605
+ :param _RequestId: The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
606
+ :type RequestId: str
607
+ """
608
+ self._SimpleInstanceInfo = None
609
+ self._ErrorMsg = None
610
+ self._RequestId = None
611
+
612
+ @property
613
+ def SimpleInstanceInfo(self):
614
+ """Instance simple information
615
+ :rtype: :class:`tencentcloud.cdwpg.v20201230.models.SimpleInstanceInfo`
616
+ """
617
+ return self._SimpleInstanceInfo
618
+
619
+ @SimpleInstanceInfo.setter
620
+ def SimpleInstanceInfo(self, SimpleInstanceInfo):
621
+ self._SimpleInstanceInfo = SimpleInstanceInfo
622
+
623
+ @property
624
+ def ErrorMsg(self):
625
+ """Error Message
626
+ :rtype: str
627
+ """
628
+ return self._ErrorMsg
629
+
630
+ @ErrorMsg.setter
631
+ def ErrorMsg(self, ErrorMsg):
632
+ self._ErrorMsg = ErrorMsg
633
+
634
+ @property
635
+ def RequestId(self):
636
+ """The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
637
+ :rtype: str
638
+ """
639
+ return self._RequestId
640
+
641
+ @RequestId.setter
642
+ def RequestId(self, RequestId):
643
+ self._RequestId = RequestId
644
+
645
+
646
+ def _deserialize(self, params):
647
+ if params.get("SimpleInstanceInfo") is not None:
648
+ self._SimpleInstanceInfo = SimpleInstanceInfo()
649
+ self._SimpleInstanceInfo._deserialize(params.get("SimpleInstanceInfo"))
650
+ self._ErrorMsg = params.get("ErrorMsg")
651
+ self._RequestId = params.get("RequestId")
652
+
653
+
654
+ class DescribeInstanceRequest(AbstractModel):
655
+ """DescribeInstance request structure.
656
+
657
+ """
658
+
659
+ def __init__(self):
660
+ r"""
661
+ :param _InstanceId: instance ID.
662
+ :type InstanceId: str
663
+ """
664
+ self._InstanceId = None
665
+
666
+ @property
667
+ def InstanceId(self):
668
+ """instance ID.
669
+ :rtype: str
670
+ """
671
+ return self._InstanceId
672
+
673
+ @InstanceId.setter
674
+ def InstanceId(self, InstanceId):
675
+ self._InstanceId = InstanceId
676
+
677
+
678
+ def _deserialize(self, params):
679
+ self._InstanceId = params.get("InstanceId")
680
+ memeber_set = set(params.keys())
681
+ for name, value in vars(self).items():
682
+ property_name = name[1:]
683
+ if property_name in memeber_set:
684
+ memeber_set.remove(property_name)
685
+ if len(memeber_set) > 0:
686
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
687
+
688
+
689
+
690
+ class DescribeInstanceResponse(AbstractModel):
691
+ """DescribeInstance response structure.
692
+
693
+ """
694
+
695
+ def __init__(self):
696
+ r"""
697
+ :param _InstanceInfo: Instance description information.
698
+ :type InstanceInfo: :class:`tencentcloud.cdwpg.v20201230.models.InstanceInfo`
699
+ :param _RequestId: The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
700
+ :type RequestId: str
701
+ """
702
+ self._InstanceInfo = None
703
+ self._RequestId = None
704
+
705
+ @property
706
+ def InstanceInfo(self):
707
+ """Instance description information.
708
+ :rtype: :class:`tencentcloud.cdwpg.v20201230.models.InstanceInfo`
709
+ """
710
+ return self._InstanceInfo
711
+
712
+ @InstanceInfo.setter
713
+ def InstanceInfo(self, InstanceInfo):
714
+ self._InstanceInfo = InstanceInfo
715
+
716
+ @property
717
+ def RequestId(self):
718
+ """The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
719
+ :rtype: str
720
+ """
721
+ return self._RequestId
722
+
723
+ @RequestId.setter
724
+ def RequestId(self, RequestId):
725
+ self._RequestId = RequestId
726
+
727
+
728
+ def _deserialize(self, params):
729
+ if params.get("InstanceInfo") is not None:
730
+ self._InstanceInfo = InstanceInfo()
731
+ self._InstanceInfo._deserialize(params.get("InstanceInfo"))
732
+ self._RequestId = params.get("RequestId")
733
+
734
+
735
+ class DescribeInstanceStateRequest(AbstractModel):
736
+ """DescribeInstanceState request structure.
737
+
738
+ """
739
+
740
+ def __init__(self):
741
+ r"""
742
+ :param _InstanceId: Instance id
743
+ :type InstanceId: str
744
+ """
745
+ self._InstanceId = None
746
+
747
+ @property
748
+ def InstanceId(self):
749
+ """ Instance id
750
+ :rtype: str
751
+ """
752
+ return self._InstanceId
753
+
754
+ @InstanceId.setter
755
+ def InstanceId(self, InstanceId):
756
+ self._InstanceId = InstanceId
757
+
758
+
759
+ def _deserialize(self, params):
760
+ self._InstanceId = params.get("InstanceId")
761
+ memeber_set = set(params.keys())
762
+ for name, value in vars(self).items():
763
+ property_name = name[1:]
764
+ if property_name in memeber_set:
765
+ memeber_set.remove(property_name)
766
+ if len(memeber_set) > 0:
767
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
768
+
769
+
770
+
771
+ class DescribeInstanceStateResponse(AbstractModel):
772
+ """DescribeInstanceState response structure.
773
+
774
+ """
775
+
776
+ def __init__(self):
777
+ r"""
778
+ :param _InstanceState: Instance status. Example: serving.
779
+ :type InstanceState: str
780
+ :param _FlowCreateTime: Creation time of instance operation.Note: This field may return null, indicating that no valid values can be obtained.
781
+ :type FlowCreateTime: str
782
+ :param _FlowName: Instance operation name.Note: This field may return null, indicating that no valid values can be obtained.
783
+ :type FlowName: str
784
+ :param _FlowProgress: Instance operation progress.Note: This field may return null, indicating that no valid values can be obtained.
785
+ :type FlowProgress: float
786
+ :param _InstanceStateDesc: Cluster status description. Example: running.Note: This field may return null, indicating that no valid values can be obtained.
787
+ :type InstanceStateDesc: str
788
+ :param _FlowMsg: Instance process error messages. Example: "Creation failed, insufficient resources."
789
+ Note: This field may return null, indicating that no valid values can be obtained.
790
+ :type FlowMsg: str
791
+ :param _ProcessName: The name of the current step. Example: "Purchasing resources."Note: This field may return null, indicating that no valid values can be obtained.
792
+ :type ProcessName: str
793
+ :param _BackupStatus: Enabling status of the instance backup task.Note: This field may return null, indicating that no valid values can be obtained.
794
+ :type BackupStatus: int
795
+ :param _RequestId: The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
796
+ :type RequestId: str
797
+ """
798
+ self._InstanceState = None
799
+ self._FlowCreateTime = None
800
+ self._FlowName = None
801
+ self._FlowProgress = None
802
+ self._InstanceStateDesc = None
803
+ self._FlowMsg = None
804
+ self._ProcessName = None
805
+ self._BackupStatus = None
806
+ self._RequestId = None
807
+
808
+ @property
809
+ def InstanceState(self):
810
+ """Instance status. Example: serving.
811
+ :rtype: str
812
+ """
813
+ return self._InstanceState
814
+
815
+ @InstanceState.setter
816
+ def InstanceState(self, InstanceState):
817
+ self._InstanceState = InstanceState
818
+
819
+ @property
820
+ def FlowCreateTime(self):
821
+ """Creation time of instance operation.Note: This field may return null, indicating that no valid values can be obtained.
822
+ :rtype: str
823
+ """
824
+ return self._FlowCreateTime
825
+
826
+ @FlowCreateTime.setter
827
+ def FlowCreateTime(self, FlowCreateTime):
828
+ self._FlowCreateTime = FlowCreateTime
829
+
830
+ @property
831
+ def FlowName(self):
832
+ """Instance operation name.Note: This field may return null, indicating that no valid values can be obtained.
833
+ :rtype: str
834
+ """
835
+ return self._FlowName
836
+
837
+ @FlowName.setter
838
+ def FlowName(self, FlowName):
839
+ self._FlowName = FlowName
840
+
841
+ @property
842
+ def FlowProgress(self):
843
+ """Instance operation progress.Note: This field may return null, indicating that no valid values can be obtained.
844
+ :rtype: float
845
+ """
846
+ return self._FlowProgress
847
+
848
+ @FlowProgress.setter
849
+ def FlowProgress(self, FlowProgress):
850
+ self._FlowProgress = FlowProgress
851
+
852
+ @property
853
+ def InstanceStateDesc(self):
854
+ """Cluster status description. Example: running.Note: This field may return null, indicating that no valid values can be obtained.
855
+ :rtype: str
856
+ """
857
+ return self._InstanceStateDesc
858
+
859
+ @InstanceStateDesc.setter
860
+ def InstanceStateDesc(self, InstanceStateDesc):
861
+ self._InstanceStateDesc = InstanceStateDesc
862
+
863
+ @property
864
+ def FlowMsg(self):
865
+ """Instance process error messages. Example: "Creation failed, insufficient resources."
866
+ Note: This field may return null, indicating that no valid values can be obtained.
867
+ :rtype: str
868
+ """
869
+ return self._FlowMsg
870
+
871
+ @FlowMsg.setter
872
+ def FlowMsg(self, FlowMsg):
873
+ self._FlowMsg = FlowMsg
874
+
875
+ @property
876
+ def ProcessName(self):
877
+ """The name of the current step. Example: "Purchasing resources."Note: This field may return null, indicating that no valid values can be obtained.
878
+ :rtype: str
879
+ """
880
+ return self._ProcessName
881
+
882
+ @ProcessName.setter
883
+ def ProcessName(self, ProcessName):
884
+ self._ProcessName = ProcessName
885
+
886
+ @property
887
+ def BackupStatus(self):
888
+ """Enabling status of the instance backup task.Note: This field may return null, indicating that no valid values can be obtained.
889
+ :rtype: int
890
+ """
891
+ return self._BackupStatus
892
+
893
+ @BackupStatus.setter
894
+ def BackupStatus(self, BackupStatus):
895
+ self._BackupStatus = BackupStatus
896
+
897
+ @property
898
+ def RequestId(self):
899
+ """The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
900
+ :rtype: str
901
+ """
902
+ return self._RequestId
903
+
904
+ @RequestId.setter
905
+ def RequestId(self, RequestId):
906
+ self._RequestId = RequestId
907
+
908
+
909
+ def _deserialize(self, params):
910
+ self._InstanceState = params.get("InstanceState")
911
+ self._FlowCreateTime = params.get("FlowCreateTime")
912
+ self._FlowName = params.get("FlowName")
913
+ self._FlowProgress = params.get("FlowProgress")
914
+ self._InstanceStateDesc = params.get("InstanceStateDesc")
915
+ self._FlowMsg = params.get("FlowMsg")
916
+ self._ProcessName = params.get("ProcessName")
917
+ self._BackupStatus = params.get("BackupStatus")
918
+ self._RequestId = params.get("RequestId")
919
+
920
+
921
+ class DescribeInstancesRequest(AbstractModel):
922
+ """DescribeInstances request structure.
923
+
924
+ """
925
+
926
+ def __init__(self):
927
+ r"""
928
+ :param _SearchInstanceId: The name of the Instance ID for the search.
929
+ :type SearchInstanceId: str
930
+ :param _SearchInstanceName: The instance name for the search.
931
+ :type SearchInstanceName: str
932
+ :param _Offset: Pagination parameter. The first page is 0, and the second page is 10.
933
+ :type Offset: int
934
+ :param _Limit: Pagination parameter. Pagination step length. It is 10 by default.
935
+ :type Limit: int
936
+ :param _SearchTags: Searched tag list.
937
+ :type SearchTags: list of SearchTags
938
+ """
939
+ self._SearchInstanceId = None
940
+ self._SearchInstanceName = None
941
+ self._Offset = None
942
+ self._Limit = None
943
+ self._SearchTags = None
944
+
945
+ @property
946
+ def SearchInstanceId(self):
947
+ """The name of the Instance ID for the search.
948
+ :rtype: str
949
+ """
950
+ return self._SearchInstanceId
951
+
952
+ @SearchInstanceId.setter
953
+ def SearchInstanceId(self, SearchInstanceId):
954
+ self._SearchInstanceId = SearchInstanceId
955
+
956
+ @property
957
+ def SearchInstanceName(self):
958
+ """The instance name for the search.
959
+ :rtype: str
960
+ """
961
+ return self._SearchInstanceName
962
+
963
+ @SearchInstanceName.setter
964
+ def SearchInstanceName(self, SearchInstanceName):
965
+ self._SearchInstanceName = SearchInstanceName
966
+
967
+ @property
968
+ def Offset(self):
969
+ """Pagination parameter. The first page is 0, and the second page is 10.
970
+ :rtype: int
971
+ """
972
+ return self._Offset
973
+
974
+ @Offset.setter
975
+ def Offset(self, Offset):
976
+ self._Offset = Offset
977
+
978
+ @property
979
+ def Limit(self):
980
+ """Pagination parameter. Pagination step length. It is 10 by default.
981
+ :rtype: int
982
+ """
983
+ return self._Limit
984
+
985
+ @Limit.setter
986
+ def Limit(self, Limit):
987
+ self._Limit = Limit
988
+
989
+ @property
990
+ def SearchTags(self):
991
+ """Searched tag list.
992
+ :rtype: list of SearchTags
993
+ """
994
+ return self._SearchTags
995
+
996
+ @SearchTags.setter
997
+ def SearchTags(self, SearchTags):
998
+ self._SearchTags = SearchTags
999
+
1000
+
1001
+ def _deserialize(self, params):
1002
+ self._SearchInstanceId = params.get("SearchInstanceId")
1003
+ self._SearchInstanceName = params.get("SearchInstanceName")
1004
+ self._Offset = params.get("Offset")
1005
+ self._Limit = params.get("Limit")
1006
+ if params.get("SearchTags") is not None:
1007
+ self._SearchTags = []
1008
+ for item in params.get("SearchTags"):
1009
+ obj = SearchTags()
1010
+ obj._deserialize(item)
1011
+ self._SearchTags.append(obj)
1012
+ memeber_set = set(params.keys())
1013
+ for name, value in vars(self).items():
1014
+ property_name = name[1:]
1015
+ if property_name in memeber_set:
1016
+ memeber_set.remove(property_name)
1017
+ if len(memeber_set) > 0:
1018
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
1019
+
1020
+
1021
+
1022
+ class DescribeInstancesResponse(AbstractModel):
1023
+ """DescribeInstances response structure.
1024
+
1025
+ """
1026
+
1027
+ def __init__(self):
1028
+ r"""
1029
+ :param _TotalCount: Total number of instances.
1030
+ Note: This field may return null, indicating that no valid values can be obtained.
1031
+ :type TotalCount: int
1032
+ :param _InstancesList: Instance array.
1033
+ Note: This field may return null, indicating that no valid values can be obtained.
1034
+ :type InstancesList: list of InstanceInfo
1035
+ :param _ErrorMsg: -Note: This field may return null, indicating that no valid values can be obtained.
1036
+ :type ErrorMsg: str
1037
+ :param _RequestId: The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
1038
+ :type RequestId: str
1039
+ """
1040
+ self._TotalCount = None
1041
+ self._InstancesList = None
1042
+ self._ErrorMsg = None
1043
+ self._RequestId = None
1044
+
1045
+ @property
1046
+ def TotalCount(self):
1047
+ """Total number of instances.
1048
+ Note: This field may return null, indicating that no valid values can be obtained.
1049
+ :rtype: int
1050
+ """
1051
+ return self._TotalCount
1052
+
1053
+ @TotalCount.setter
1054
+ def TotalCount(self, TotalCount):
1055
+ self._TotalCount = TotalCount
1056
+
1057
+ @property
1058
+ def InstancesList(self):
1059
+ """Instance array.
1060
+ Note: This field may return null, indicating that no valid values can be obtained.
1061
+ :rtype: list of InstanceInfo
1062
+ """
1063
+ return self._InstancesList
1064
+
1065
+ @InstancesList.setter
1066
+ def InstancesList(self, InstancesList):
1067
+ self._InstancesList = InstancesList
1068
+
1069
+ @property
1070
+ def ErrorMsg(self):
1071
+ """ -Note: This field may return null, indicating that no valid values can be obtained.
1072
+ :rtype: str
1073
+ """
1074
+ return self._ErrorMsg
1075
+
1076
+ @ErrorMsg.setter
1077
+ def ErrorMsg(self, ErrorMsg):
1078
+ self._ErrorMsg = ErrorMsg
1079
+
1080
+ @property
1081
+ def RequestId(self):
1082
+ """The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
1083
+ :rtype: str
1084
+ """
1085
+ return self._RequestId
1086
+
1087
+ @RequestId.setter
1088
+ def RequestId(self, RequestId):
1089
+ self._RequestId = RequestId
1090
+
1091
+
1092
+ def _deserialize(self, params):
1093
+ self._TotalCount = params.get("TotalCount")
1094
+ if params.get("InstancesList") is not None:
1095
+ self._InstancesList = []
1096
+ for item in params.get("InstancesList"):
1097
+ obj = InstanceInfo()
1098
+ obj._deserialize(item)
1099
+ self._InstancesList.append(obj)
1100
+ self._ErrorMsg = params.get("ErrorMsg")
1101
+ self._RequestId = params.get("RequestId")
1102
+
1103
+
1104
+ class DescribeSimpleInstancesRequest(AbstractModel):
1105
+ """DescribeSimpleInstances request structure.
1106
+
1107
+ """
1108
+
1109
+ def __init__(self):
1110
+ r"""
1111
+ :param _SearchInstanceId: Search Instance Id
1112
+ :type SearchInstanceId: str
1113
+ :param _SearchInstanceName: Search Instance Name
1114
+ :type SearchInstanceName: str
1115
+ :param _Offset:
1116
+ Offset
1117
+ :type Offset: int
1118
+ :param _Limit: Limit
1119
+ :type Limit: int
1120
+ :param _SearchTags: Search Tags
1121
+ :type SearchTags: list of str
1122
+ """
1123
+ self._SearchInstanceId = None
1124
+ self._SearchInstanceName = None
1125
+ self._Offset = None
1126
+ self._Limit = None
1127
+ self._SearchTags = None
1128
+
1129
+ @property
1130
+ def SearchInstanceId(self):
1131
+ """Search Instance Id
1132
+ :rtype: str
1133
+ """
1134
+ return self._SearchInstanceId
1135
+
1136
+ @SearchInstanceId.setter
1137
+ def SearchInstanceId(self, SearchInstanceId):
1138
+ self._SearchInstanceId = SearchInstanceId
1139
+
1140
+ @property
1141
+ def SearchInstanceName(self):
1142
+ """Search Instance Name
1143
+ :rtype: str
1144
+ """
1145
+ return self._SearchInstanceName
1146
+
1147
+ @SearchInstanceName.setter
1148
+ def SearchInstanceName(self, SearchInstanceName):
1149
+ self._SearchInstanceName = SearchInstanceName
1150
+
1151
+ @property
1152
+ def Offset(self):
1153
+ """
1154
+ Offset
1155
+ :rtype: int
1156
+ """
1157
+ return self._Offset
1158
+
1159
+ @Offset.setter
1160
+ def Offset(self, Offset):
1161
+ self._Offset = Offset
1162
+
1163
+ @property
1164
+ def Limit(self):
1165
+ """Limit
1166
+ :rtype: int
1167
+ """
1168
+ return self._Limit
1169
+
1170
+ @Limit.setter
1171
+ def Limit(self, Limit):
1172
+ self._Limit = Limit
1173
+
1174
+ @property
1175
+ def SearchTags(self):
1176
+ """Search Tags
1177
+ :rtype: list of str
1178
+ """
1179
+ return self._SearchTags
1180
+
1181
+ @SearchTags.setter
1182
+ def SearchTags(self, SearchTags):
1183
+ self._SearchTags = SearchTags
1184
+
1185
+
1186
+ def _deserialize(self, params):
1187
+ self._SearchInstanceId = params.get("SearchInstanceId")
1188
+ self._SearchInstanceName = params.get("SearchInstanceName")
1189
+ self._Offset = params.get("Offset")
1190
+ self._Limit = params.get("Limit")
1191
+ self._SearchTags = params.get("SearchTags")
1192
+ memeber_set = set(params.keys())
1193
+ for name, value in vars(self).items():
1194
+ property_name = name[1:]
1195
+ if property_name in memeber_set:
1196
+ memeber_set.remove(property_name)
1197
+ if len(memeber_set) > 0:
1198
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
1199
+
1200
+
1201
+
1202
+ class DescribeSimpleInstancesResponse(AbstractModel):
1203
+ """DescribeSimpleInstances response structure.
1204
+
1205
+ """
1206
+
1207
+ def __init__(self):
1208
+ r"""
1209
+ :param _TotalCount: Total Count
1210
+ Note: This field may return null, indicating that no valid values can be obtained.
1211
+ :type TotalCount: int
1212
+ :param _InstancesList: Instances List
1213
+ Note: This field may return null, indicating that no valid values can be obtained.
1214
+ :type InstancesList: list of InstanceSimpleInfoNew
1215
+ :param _ErrorMsg: Error Message
1216
+ Note: This field may return null, indicating that no valid values can be obtained.
1217
+ :type ErrorMsg: str
1218
+ :param _RequestId: The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
1219
+ :type RequestId: str
1220
+ """
1221
+ self._TotalCount = None
1222
+ self._InstancesList = None
1223
+ self._ErrorMsg = None
1224
+ self._RequestId = None
1225
+
1226
+ @property
1227
+ def TotalCount(self):
1228
+ """Total Count
1229
+ Note: This field may return null, indicating that no valid values can be obtained.
1230
+ :rtype: int
1231
+ """
1232
+ return self._TotalCount
1233
+
1234
+ @TotalCount.setter
1235
+ def TotalCount(self, TotalCount):
1236
+ self._TotalCount = TotalCount
1237
+
1238
+ @property
1239
+ def InstancesList(self):
1240
+ """Instances List
1241
+ Note: This field may return null, indicating that no valid values can be obtained.
1242
+ :rtype: list of InstanceSimpleInfoNew
1243
+ """
1244
+ return self._InstancesList
1245
+
1246
+ @InstancesList.setter
1247
+ def InstancesList(self, InstancesList):
1248
+ self._InstancesList = InstancesList
1249
+
1250
+ @property
1251
+ def ErrorMsg(self):
1252
+ """ Error Message
1253
+ Note: This field may return null, indicating that no valid values can be obtained.
1254
+ :rtype: str
1255
+ """
1256
+ return self._ErrorMsg
1257
+
1258
+ @ErrorMsg.setter
1259
+ def ErrorMsg(self, ErrorMsg):
1260
+ self._ErrorMsg = ErrorMsg
1261
+
1262
+ @property
1263
+ def RequestId(self):
1264
+ """The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
1265
+ :rtype: str
1266
+ """
1267
+ return self._RequestId
1268
+
1269
+ @RequestId.setter
1270
+ def RequestId(self, RequestId):
1271
+ self._RequestId = RequestId
1272
+
1273
+
1274
+ def _deserialize(self, params):
1275
+ self._TotalCount = params.get("TotalCount")
1276
+ if params.get("InstancesList") is not None:
1277
+ self._InstancesList = []
1278
+ for item in params.get("InstancesList"):
1279
+ obj = InstanceSimpleInfoNew()
1280
+ obj._deserialize(item)
1281
+ self._InstancesList.append(obj)
1282
+ self._ErrorMsg = params.get("ErrorMsg")
1283
+ self._RequestId = params.get("RequestId")
1284
+
1285
+
1286
+ class DestroyInstanceByApiRequest(AbstractModel):
1287
+ """DestroyInstanceByApi request structure.
1288
+
1289
+ """
1290
+
1291
+ def __init__(self):
1292
+ r"""
1293
+ :param _InstanceId: Instance id. Example: "cdwpg-xxxx".
1294
+ :type InstanceId: str
1295
+ """
1296
+ self._InstanceId = None
1297
+
1298
+ @property
1299
+ def InstanceId(self):
1300
+ """Instance id. Example: "cdwpg-xxxx".
1301
+ :rtype: str
1302
+ """
1303
+ return self._InstanceId
1304
+
1305
+ @InstanceId.setter
1306
+ def InstanceId(self, InstanceId):
1307
+ self._InstanceId = InstanceId
1308
+
1309
+
1310
+ def _deserialize(self, params):
1311
+ self._InstanceId = params.get("InstanceId")
1312
+ memeber_set = set(params.keys())
1313
+ for name, value in vars(self).items():
1314
+ property_name = name[1:]
1315
+ if property_name in memeber_set:
1316
+ memeber_set.remove(property_name)
1317
+ if len(memeber_set) > 0:
1318
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
1319
+
1320
+
1321
+
1322
+ class DestroyInstanceByApiResponse(AbstractModel):
1323
+ """DestroyInstanceByApi response structure.
1324
+
1325
+ """
1326
+
1327
+ def __init__(self):
1328
+ r"""
1329
+ :param _FlowId: Destroy process ID.
1330
+ :type FlowId: str
1331
+ :param _ErrorMsg: Error message.
1332
+ :type ErrorMsg: str
1333
+ :param _RequestId: The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
1334
+ :type RequestId: str
1335
+ """
1336
+ self._FlowId = None
1337
+ self._ErrorMsg = None
1338
+ self._RequestId = None
1339
+
1340
+ @property
1341
+ def FlowId(self):
1342
+ """Destroy process ID.
1343
+ :rtype: str
1344
+ """
1345
+ return self._FlowId
1346
+
1347
+ @FlowId.setter
1348
+ def FlowId(self, FlowId):
1349
+ self._FlowId = FlowId
1350
+
1351
+ @property
1352
+ def ErrorMsg(self):
1353
+ """Error message.
1354
+ :rtype: str
1355
+ """
1356
+ return self._ErrorMsg
1357
+
1358
+ @ErrorMsg.setter
1359
+ def ErrorMsg(self, ErrorMsg):
1360
+ self._ErrorMsg = ErrorMsg
1361
+
1362
+ @property
1363
+ def RequestId(self):
1364
+ """The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
1365
+ :rtype: str
1366
+ """
1367
+ return self._RequestId
1368
+
1369
+ @RequestId.setter
1370
+ def RequestId(self, RequestId):
1371
+ self._RequestId = RequestId
1372
+
1373
+
1374
+ def _deserialize(self, params):
1375
+ self._FlowId = params.get("FlowId")
1376
+ self._ErrorMsg = params.get("ErrorMsg")
1377
+ self._RequestId = params.get("RequestId")
1378
+
1379
+
1380
+ class DiskSpecPlus(AbstractModel):
1381
+ """Disk specifications.
1382
+
1383
+ """
1384
+
1385
+ def __init__(self):
1386
+ r"""
1387
+ :param _DiskCount: Disk Count
1388
+ Note: This field may return null, indicating that no valid values can be obtained.
1389
+ :type DiskCount: int
1390
+ :param _MaxDiskSize: Max Disk Size
1391
+ Note: This field may return null, indicating that no valid values can be obtained.
1392
+ :type MaxDiskSize: int
1393
+ :param _MinDiskSize: Min Disk Size
1394
+ Note: This field may return null, indicating that no valid values can be obtained.
1395
+ :type MinDiskSize: int
1396
+ :param _DiskType: Disk Type
1397
+ Note: This field may return null, indicating that no valid values can be obtained.
1398
+ :type DiskType: str
1399
+ :param _DiskDesc: Disk Description
1400
+ Note: This field may return null, indicating that no valid values can be obtained.
1401
+ :type DiskDesc: str
1402
+ :param _CvmClass: Cvm Class
1403
+ Note: This field may return null, indicating that no valid values can be obtained.
1404
+ :type CvmClass: str
1405
+ """
1406
+ self._DiskCount = None
1407
+ self._MaxDiskSize = None
1408
+ self._MinDiskSize = None
1409
+ self._DiskType = None
1410
+ self._DiskDesc = None
1411
+ self._CvmClass = None
1412
+
1413
+ @property
1414
+ def DiskCount(self):
1415
+ """Disk Count
1416
+ Note: This field may return null, indicating that no valid values can be obtained.
1417
+ :rtype: int
1418
+ """
1419
+ return self._DiskCount
1420
+
1421
+ @DiskCount.setter
1422
+ def DiskCount(self, DiskCount):
1423
+ self._DiskCount = DiskCount
1424
+
1425
+ @property
1426
+ def MaxDiskSize(self):
1427
+ """Max Disk Size
1428
+ Note: This field may return null, indicating that no valid values can be obtained.
1429
+ :rtype: int
1430
+ """
1431
+ return self._MaxDiskSize
1432
+
1433
+ @MaxDiskSize.setter
1434
+ def MaxDiskSize(self, MaxDiskSize):
1435
+ self._MaxDiskSize = MaxDiskSize
1436
+
1437
+ @property
1438
+ def MinDiskSize(self):
1439
+ """Min Disk Size
1440
+ Note: This field may return null, indicating that no valid values can be obtained.
1441
+ :rtype: int
1442
+ """
1443
+ return self._MinDiskSize
1444
+
1445
+ @MinDiskSize.setter
1446
+ def MinDiskSize(self, MinDiskSize):
1447
+ self._MinDiskSize = MinDiskSize
1448
+
1449
+ @property
1450
+ def DiskType(self):
1451
+ """Disk Type
1452
+ Note: This field may return null, indicating that no valid values can be obtained.
1453
+ :rtype: str
1454
+ """
1455
+ return self._DiskType
1456
+
1457
+ @DiskType.setter
1458
+ def DiskType(self, DiskType):
1459
+ self._DiskType = DiskType
1460
+
1461
+ @property
1462
+ def DiskDesc(self):
1463
+ """Disk Description
1464
+ Note: This field may return null, indicating that no valid values can be obtained.
1465
+ :rtype: str
1466
+ """
1467
+ return self._DiskDesc
1468
+
1469
+ @DiskDesc.setter
1470
+ def DiskDesc(self, DiskDesc):
1471
+ self._DiskDesc = DiskDesc
1472
+
1473
+ @property
1474
+ def CvmClass(self):
1475
+ """Cvm Class
1476
+ Note: This field may return null, indicating that no valid values can be obtained.
1477
+ :rtype: str
1478
+ """
1479
+ return self._CvmClass
1480
+
1481
+ @CvmClass.setter
1482
+ def CvmClass(self, CvmClass):
1483
+ self._CvmClass = CvmClass
1484
+
1485
+
1486
+ def _deserialize(self, params):
1487
+ self._DiskCount = params.get("DiskCount")
1488
+ self._MaxDiskSize = params.get("MaxDiskSize")
1489
+ self._MinDiskSize = params.get("MinDiskSize")
1490
+ self._DiskType = params.get("DiskType")
1491
+ self._DiskDesc = params.get("DiskDesc")
1492
+ self._CvmClass = params.get("CvmClass")
1493
+ memeber_set = set(params.keys())
1494
+ for name, value in vars(self).items():
1495
+ property_name = name[1:]
1496
+ if property_name in memeber_set:
1497
+ memeber_set.remove(property_name)
1498
+ if len(memeber_set) > 0:
1499
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
1500
+
1501
+
1502
+
1503
+ class InstanceInfo(AbstractModel):
1504
+ """instance information.
1505
+
1506
+ """
1507
+
1508
+ def __init__(self):
1509
+ r"""
1510
+ :param _ID: Instance ID
1511
+ Note: This field may return null, indicating that no valid values can be obtained.
1512
+ :type ID: int
1513
+ :param _InstanceType: cn/dn or others.Note: This field may return null, indicating that no valid values can be obtained.
1514
+ :type InstanceType: str
1515
+ :param _InstanceName: Instance Name
1516
+ .Note: This field may return null, indicating that no valid values can be obtained.
1517
+ :type InstanceName: str
1518
+ :param _Status: Instance Status ,such as 2
1519
+ Note: This field may return null, indicating that no valid values can be obtained.
1520
+ :type Status: str
1521
+ :param _StatusDesc: Instance Status Description ,such as Running.
1522
+ Note: This field may return null, indicating that no valid values can be obtained.
1523
+ :type StatusDesc: str
1524
+ :param _InstanceStateInfo: Instance State Infomation
1525
+ Note: This field may return null, indicating that no valid values can be obtained.
1526
+ :type InstanceStateInfo: :class:`tencentcloud.cdwpg.v20201230.models.InstanceStateInfo`
1527
+ :param _InstanceID: Instance ID
1528
+ Note: This field may return null, indicating that no valid values can be obtained.
1529
+ :type InstanceID: str
1530
+ :param _CreateTime: CreateTime ,such as 2022-09-05 20:00:01
1531
+ Note: This field may return null, indicating that no valid values can be obtained.
1532
+ :type CreateTime: str
1533
+ :param _Region: Region ,such as ap-chongqing.Note: This field may return null, indicating that no valid values can be obtained.
1534
+ :type Region: str
1535
+ :param _Zone: Zone : This field may return null, indicating that no valid values can be obtained.
1536
+ :type Zone: str
1537
+ :param _RegionDesc: Region.Note: This field may return null, indicating that no valid values can be obtained.
1538
+ :type RegionDesc: str
1539
+ :param _ZoneDesc: Zone.Note: This field may return null, indicating that no valid values can be obtained.
1540
+ :type ZoneDesc: str
1541
+ :param _Tags: Tag.Note: This field may return null, indicating that no valid values can be obtained.
1542
+ :type Tags: list of Tag
1543
+ :param _Version: Version.Note: This field may return null, indicating that no valid values can be obtained.
1544
+ :type Version: str
1545
+ :param _Charset: Character set.
1546
+ Note: This field may return null, indicating that no valid values can be obtained.
1547
+ :type Charset: str
1548
+ :param _CNNodes: CN node list.
1549
+ Note: This field may return null, indicating that no valid values can be obtained.
1550
+ :type CNNodes: list of InstanceNodeGroup
1551
+ :param _DNNodes: DN node list.
1552
+ Note: This field may return null, indicating that no valid values can be obtained.
1553
+ :type DNNodes: list of InstanceNodeGroup
1554
+ :param _RegionId: Region Id
1555
+ Note: This field may return null, indicating that no valid values can be obtained.
1556
+ :type RegionId: int
1557
+ :param _ZoneId: Zone Id
1558
+ Note: This field may return null, indicating that no valid values can be obtained.
1559
+ :type ZoneId: int
1560
+ :param _VpcId: Vpc Id
1561
+ Note: This field may return null, indicating that no valid values can be obtained.
1562
+ :type VpcId: str
1563
+ :param _SubnetId: Subnet Id
1564
+ Note: This field may return null, indicating that no valid values can be obtained.
1565
+ :type SubnetId: str
1566
+ :param _ExpireTime: Expire Time
1567
+ Note: This field may return null, indicating that no valid values can be obtained.
1568
+ :type ExpireTime: str
1569
+ :param _PayMode: Pay Mode
1570
+ Note: This field may return null, indicating that no valid values can be obtained.
1571
+ :type PayMode: str
1572
+ :param _RenewFlag: Renew Flag
1573
+ Note: This field may return null, indicating that no valid values can be obtained.
1574
+ :type RenewFlag: bool
1575
+ :param _InstanceId: Instance Id
1576
+ Note: This field may return null, indicating that no valid values can be obtained.
1577
+ :type InstanceId: str
1578
+ :param _AccessDetails: Access information.
1579
+ Note: This field may return null, indicating that no valid values can be obtained.
1580
+ :type AccessDetails: list of AccessInfo
1581
+ """
1582
+ self._ID = None
1583
+ self._InstanceType = None
1584
+ self._InstanceName = None
1585
+ self._Status = None
1586
+ self._StatusDesc = None
1587
+ self._InstanceStateInfo = None
1588
+ self._InstanceID = None
1589
+ self._CreateTime = None
1590
+ self._Region = None
1591
+ self._Zone = None
1592
+ self._RegionDesc = None
1593
+ self._ZoneDesc = None
1594
+ self._Tags = None
1595
+ self._Version = None
1596
+ self._Charset = None
1597
+ self._CNNodes = None
1598
+ self._DNNodes = None
1599
+ self._RegionId = None
1600
+ self._ZoneId = None
1601
+ self._VpcId = None
1602
+ self._SubnetId = None
1603
+ self._ExpireTime = None
1604
+ self._PayMode = None
1605
+ self._RenewFlag = None
1606
+ self._InstanceId = None
1607
+ self._AccessDetails = None
1608
+
1609
+ @property
1610
+ def ID(self):
1611
+ """Instance ID
1612
+ Note: This field may return null, indicating that no valid values can be obtained.
1613
+ :rtype: int
1614
+ """
1615
+ return self._ID
1616
+
1617
+ @ID.setter
1618
+ def ID(self, ID):
1619
+ self._ID = ID
1620
+
1621
+ @property
1622
+ def InstanceType(self):
1623
+ """cn/dn or others.Note: This field may return null, indicating that no valid values can be obtained.
1624
+ :rtype: str
1625
+ """
1626
+ return self._InstanceType
1627
+
1628
+ @InstanceType.setter
1629
+ def InstanceType(self, InstanceType):
1630
+ self._InstanceType = InstanceType
1631
+
1632
+ @property
1633
+ def InstanceName(self):
1634
+ """Instance Name
1635
+ .Note: This field may return null, indicating that no valid values can be obtained.
1636
+ :rtype: str
1637
+ """
1638
+ return self._InstanceName
1639
+
1640
+ @InstanceName.setter
1641
+ def InstanceName(self, InstanceName):
1642
+ self._InstanceName = InstanceName
1643
+
1644
+ @property
1645
+ def Status(self):
1646
+ """Instance Status ,such as 2
1647
+ Note: This field may return null, indicating that no valid values can be obtained.
1648
+ :rtype: str
1649
+ """
1650
+ return self._Status
1651
+
1652
+ @Status.setter
1653
+ def Status(self, Status):
1654
+ self._Status = Status
1655
+
1656
+ @property
1657
+ def StatusDesc(self):
1658
+ """Instance Status Description ,such as Running.
1659
+ Note: This field may return null, indicating that no valid values can be obtained.
1660
+ :rtype: str
1661
+ """
1662
+ return self._StatusDesc
1663
+
1664
+ @StatusDesc.setter
1665
+ def StatusDesc(self, StatusDesc):
1666
+ self._StatusDesc = StatusDesc
1667
+
1668
+ @property
1669
+ def InstanceStateInfo(self):
1670
+ """Instance State Infomation
1671
+ Note: This field may return null, indicating that no valid values can be obtained.
1672
+ :rtype: :class:`tencentcloud.cdwpg.v20201230.models.InstanceStateInfo`
1673
+ """
1674
+ return self._InstanceStateInfo
1675
+
1676
+ @InstanceStateInfo.setter
1677
+ def InstanceStateInfo(self, InstanceStateInfo):
1678
+ self._InstanceStateInfo = InstanceStateInfo
1679
+
1680
+ @property
1681
+ def InstanceID(self):
1682
+ """Instance ID
1683
+ Note: This field may return null, indicating that no valid values can be obtained.
1684
+ :rtype: str
1685
+ """
1686
+ return self._InstanceID
1687
+
1688
+ @InstanceID.setter
1689
+ def InstanceID(self, InstanceID):
1690
+ self._InstanceID = InstanceID
1691
+
1692
+ @property
1693
+ def CreateTime(self):
1694
+ """CreateTime ,such as 2022-09-05 20:00:01
1695
+ Note: This field may return null, indicating that no valid values can be obtained.
1696
+ :rtype: str
1697
+ """
1698
+ return self._CreateTime
1699
+
1700
+ @CreateTime.setter
1701
+ def CreateTime(self, CreateTime):
1702
+ self._CreateTime = CreateTime
1703
+
1704
+ @property
1705
+ def Region(self):
1706
+ """Region ,such as ap-chongqing.Note: This field may return null, indicating that no valid values can be obtained.
1707
+ :rtype: str
1708
+ """
1709
+ return self._Region
1710
+
1711
+ @Region.setter
1712
+ def Region(self, Region):
1713
+ self._Region = Region
1714
+
1715
+ @property
1716
+ def Zone(self):
1717
+ """Zone : This field may return null, indicating that no valid values can be obtained.
1718
+ :rtype: str
1719
+ """
1720
+ return self._Zone
1721
+
1722
+ @Zone.setter
1723
+ def Zone(self, Zone):
1724
+ self._Zone = Zone
1725
+
1726
+ @property
1727
+ def RegionDesc(self):
1728
+ """Region.Note: This field may return null, indicating that no valid values can be obtained.
1729
+ :rtype: str
1730
+ """
1731
+ return self._RegionDesc
1732
+
1733
+ @RegionDesc.setter
1734
+ def RegionDesc(self, RegionDesc):
1735
+ self._RegionDesc = RegionDesc
1736
+
1737
+ @property
1738
+ def ZoneDesc(self):
1739
+ """Zone.Note: This field may return null, indicating that no valid values can be obtained.
1740
+ :rtype: str
1741
+ """
1742
+ return self._ZoneDesc
1743
+
1744
+ @ZoneDesc.setter
1745
+ def ZoneDesc(self, ZoneDesc):
1746
+ self._ZoneDesc = ZoneDesc
1747
+
1748
+ @property
1749
+ def Tags(self):
1750
+ """Tag.Note: This field may return null, indicating that no valid values can be obtained.
1751
+ :rtype: list of Tag
1752
+ """
1753
+ return self._Tags
1754
+
1755
+ @Tags.setter
1756
+ def Tags(self, Tags):
1757
+ self._Tags = Tags
1758
+
1759
+ @property
1760
+ def Version(self):
1761
+ """Version.Note: This field may return null, indicating that no valid values can be obtained.
1762
+ :rtype: str
1763
+ """
1764
+ return self._Version
1765
+
1766
+ @Version.setter
1767
+ def Version(self, Version):
1768
+ self._Version = Version
1769
+
1770
+ @property
1771
+ def Charset(self):
1772
+ """Character set.
1773
+ Note: This field may return null, indicating that no valid values can be obtained.
1774
+ :rtype: str
1775
+ """
1776
+ return self._Charset
1777
+
1778
+ @Charset.setter
1779
+ def Charset(self, Charset):
1780
+ self._Charset = Charset
1781
+
1782
+ @property
1783
+ def CNNodes(self):
1784
+ """CN node list.
1785
+ Note: This field may return null, indicating that no valid values can be obtained.
1786
+ :rtype: list of InstanceNodeGroup
1787
+ """
1788
+ return self._CNNodes
1789
+
1790
+ @CNNodes.setter
1791
+ def CNNodes(self, CNNodes):
1792
+ self._CNNodes = CNNodes
1793
+
1794
+ @property
1795
+ def DNNodes(self):
1796
+ """DN node list.
1797
+ Note: This field may return null, indicating that no valid values can be obtained.
1798
+ :rtype: list of InstanceNodeGroup
1799
+ """
1800
+ return self._DNNodes
1801
+
1802
+ @DNNodes.setter
1803
+ def DNNodes(self, DNNodes):
1804
+ self._DNNodes = DNNodes
1805
+
1806
+ @property
1807
+ def RegionId(self):
1808
+ """ Region Id
1809
+ Note: This field may return null, indicating that no valid values can be obtained.
1810
+ :rtype: int
1811
+ """
1812
+ return self._RegionId
1813
+
1814
+ @RegionId.setter
1815
+ def RegionId(self, RegionId):
1816
+ self._RegionId = RegionId
1817
+
1818
+ @property
1819
+ def ZoneId(self):
1820
+ """Zone Id
1821
+ Note: This field may return null, indicating that no valid values can be obtained.
1822
+ :rtype: int
1823
+ """
1824
+ return self._ZoneId
1825
+
1826
+ @ZoneId.setter
1827
+ def ZoneId(self, ZoneId):
1828
+ self._ZoneId = ZoneId
1829
+
1830
+ @property
1831
+ def VpcId(self):
1832
+ """Vpc Id
1833
+ Note: This field may return null, indicating that no valid values can be obtained.
1834
+ :rtype: str
1835
+ """
1836
+ return self._VpcId
1837
+
1838
+ @VpcId.setter
1839
+ def VpcId(self, VpcId):
1840
+ self._VpcId = VpcId
1841
+
1842
+ @property
1843
+ def SubnetId(self):
1844
+ """Subnet Id
1845
+ Note: This field may return null, indicating that no valid values can be obtained.
1846
+ :rtype: str
1847
+ """
1848
+ return self._SubnetId
1849
+
1850
+ @SubnetId.setter
1851
+ def SubnetId(self, SubnetId):
1852
+ self._SubnetId = SubnetId
1853
+
1854
+ @property
1855
+ def ExpireTime(self):
1856
+ """Expire Time
1857
+ Note: This field may return null, indicating that no valid values can be obtained.
1858
+ :rtype: str
1859
+ """
1860
+ return self._ExpireTime
1861
+
1862
+ @ExpireTime.setter
1863
+ def ExpireTime(self, ExpireTime):
1864
+ self._ExpireTime = ExpireTime
1865
+
1866
+ @property
1867
+ def PayMode(self):
1868
+ """Pay Mode
1869
+ Note: This field may return null, indicating that no valid values can be obtained.
1870
+ :rtype: str
1871
+ """
1872
+ return self._PayMode
1873
+
1874
+ @PayMode.setter
1875
+ def PayMode(self, PayMode):
1876
+ self._PayMode = PayMode
1877
+
1878
+ @property
1879
+ def RenewFlag(self):
1880
+ """Renew Flag
1881
+ Note: This field may return null, indicating that no valid values can be obtained.
1882
+ :rtype: bool
1883
+ """
1884
+ return self._RenewFlag
1885
+
1886
+ @RenewFlag.setter
1887
+ def RenewFlag(self, RenewFlag):
1888
+ self._RenewFlag = RenewFlag
1889
+
1890
+ @property
1891
+ def InstanceId(self):
1892
+ """Instance Id
1893
+ Note: This field may return null, indicating that no valid values can be obtained.
1894
+ :rtype: str
1895
+ """
1896
+ return self._InstanceId
1897
+
1898
+ @InstanceId.setter
1899
+ def InstanceId(self, InstanceId):
1900
+ self._InstanceId = InstanceId
1901
+
1902
+ @property
1903
+ def AccessDetails(self):
1904
+ """Access information.
1905
+ Note: This field may return null, indicating that no valid values can be obtained.
1906
+ :rtype: list of AccessInfo
1907
+ """
1908
+ return self._AccessDetails
1909
+
1910
+ @AccessDetails.setter
1911
+ def AccessDetails(self, AccessDetails):
1912
+ self._AccessDetails = AccessDetails
1913
+
1914
+
1915
+ def _deserialize(self, params):
1916
+ self._ID = params.get("ID")
1917
+ self._InstanceType = params.get("InstanceType")
1918
+ self._InstanceName = params.get("InstanceName")
1919
+ self._Status = params.get("Status")
1920
+ self._StatusDesc = params.get("StatusDesc")
1921
+ if params.get("InstanceStateInfo") is not None:
1922
+ self._InstanceStateInfo = InstanceStateInfo()
1923
+ self._InstanceStateInfo._deserialize(params.get("InstanceStateInfo"))
1924
+ self._InstanceID = params.get("InstanceID")
1925
+ self._CreateTime = params.get("CreateTime")
1926
+ self._Region = params.get("Region")
1927
+ self._Zone = params.get("Zone")
1928
+ self._RegionDesc = params.get("RegionDesc")
1929
+ self._ZoneDesc = params.get("ZoneDesc")
1930
+ if params.get("Tags") is not None:
1931
+ self._Tags = []
1932
+ for item in params.get("Tags"):
1933
+ obj = Tag()
1934
+ obj._deserialize(item)
1935
+ self._Tags.append(obj)
1936
+ self._Version = params.get("Version")
1937
+ self._Charset = params.get("Charset")
1938
+ if params.get("CNNodes") is not None:
1939
+ self._CNNodes = []
1940
+ for item in params.get("CNNodes"):
1941
+ obj = InstanceNodeGroup()
1942
+ obj._deserialize(item)
1943
+ self._CNNodes.append(obj)
1944
+ if params.get("DNNodes") is not None:
1945
+ self._DNNodes = []
1946
+ for item in params.get("DNNodes"):
1947
+ obj = InstanceNodeGroup()
1948
+ obj._deserialize(item)
1949
+ self._DNNodes.append(obj)
1950
+ self._RegionId = params.get("RegionId")
1951
+ self._ZoneId = params.get("ZoneId")
1952
+ self._VpcId = params.get("VpcId")
1953
+ self._SubnetId = params.get("SubnetId")
1954
+ self._ExpireTime = params.get("ExpireTime")
1955
+ self._PayMode = params.get("PayMode")
1956
+ self._RenewFlag = params.get("RenewFlag")
1957
+ self._InstanceId = params.get("InstanceId")
1958
+ if params.get("AccessDetails") is not None:
1959
+ self._AccessDetails = []
1960
+ for item in params.get("AccessDetails"):
1961
+ obj = AccessInfo()
1962
+ obj._deserialize(item)
1963
+ self._AccessDetails.append(obj)
1964
+ memeber_set = set(params.keys())
1965
+ for name, value in vars(self).items():
1966
+ property_name = name[1:]
1967
+ if property_name in memeber_set:
1968
+ memeber_set.remove(property_name)
1969
+ if len(memeber_set) > 0:
1970
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
1971
+
1972
+
1973
+
1974
+ class InstanceNodeGroup(AbstractModel):
1975
+ """Instance node information.
1976
+
1977
+ """
1978
+
1979
+ def __init__(self):
1980
+ r"""
1981
+ :param _SpecName: Spec Name
1982
+ Note: This field may return null, indicating that no valid values can be obtained.
1983
+ :type SpecName: str
1984
+ :param _DataDisk: Data Disk
1985
+ Note: This field may return null, indicating that no valid values can be obtained.
1986
+ :type DataDisk: :class:`tencentcloud.cdwpg.v20201230.models.DiskSpecPlus`
1987
+ :param _CvmCount: Cvm Count
1988
+ Note: This field may return null, indicating that no valid values can be obtained.
1989
+ :type CvmCount: int
1990
+ """
1991
+ self._SpecName = None
1992
+ self._DataDisk = None
1993
+ self._CvmCount = None
1994
+
1995
+ @property
1996
+ def SpecName(self):
1997
+ """Spec Name
1998
+ Note: This field may return null, indicating that no valid values can be obtained.
1999
+ :rtype: str
2000
+ """
2001
+ return self._SpecName
2002
+
2003
+ @SpecName.setter
2004
+ def SpecName(self, SpecName):
2005
+ self._SpecName = SpecName
2006
+
2007
+ @property
2008
+ def DataDisk(self):
2009
+ """Data Disk
2010
+ Note: This field may return null, indicating that no valid values can be obtained.
2011
+ :rtype: :class:`tencentcloud.cdwpg.v20201230.models.DiskSpecPlus`
2012
+ """
2013
+ return self._DataDisk
2014
+
2015
+ @DataDisk.setter
2016
+ def DataDisk(self, DataDisk):
2017
+ self._DataDisk = DataDisk
2018
+
2019
+ @property
2020
+ def CvmCount(self):
2021
+ """Cvm Count
2022
+ Note: This field may return null, indicating that no valid values can be obtained.
2023
+ :rtype: int
2024
+ """
2025
+ return self._CvmCount
2026
+
2027
+ @CvmCount.setter
2028
+ def CvmCount(self, CvmCount):
2029
+ self._CvmCount = CvmCount
2030
+
2031
+
2032
+ def _deserialize(self, params):
2033
+ self._SpecName = params.get("SpecName")
2034
+ if params.get("DataDisk") is not None:
2035
+ self._DataDisk = DiskSpecPlus()
2036
+ self._DataDisk._deserialize(params.get("DataDisk"))
2037
+ self._CvmCount = params.get("CvmCount")
2038
+ memeber_set = set(params.keys())
2039
+ for name, value in vars(self).items():
2040
+ property_name = name[1:]
2041
+ if property_name in memeber_set:
2042
+ memeber_set.remove(property_name)
2043
+ if len(memeber_set) > 0:
2044
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
2045
+
2046
+
2047
+
2048
+ class InstanceSimpleInfoNew(AbstractModel):
2049
+ """Simplified instance information.
2050
+
2051
+ """
2052
+
2053
+ def __init__(self):
2054
+ r"""
2055
+ :param _ID: ID
2056
+ Note: This field may return null, indicating that no valid values can be obtained.
2057
+ :type ID: int
2058
+ :param _InstanceId: Instance Id
2059
+ Note: This field may return null, indicating that no valid values can be obtained.
2060
+ :type InstanceId: str
2061
+ :param _InstanceName: Instance Name
2062
+ Note: This field may return null, indicating that no valid values can be obtained.
2063
+ :type InstanceName: str
2064
+ :param _Version: Version
2065
+ Note: This field may return null, indicating that no valid values can be obtained.
2066
+ :type Version: str
2067
+ :param _Region: Region
2068
+ Note: This field may return null, indicating that no valid values can be obtained.
2069
+ :type Region: str
2070
+ :param _RegionId: Region Id
2071
+ Note: This field may return null, indicating that no valid values can be obtained.
2072
+ :type RegionId: int
2073
+ :param _RegionDesc: Region Desc
2074
+ Note: This field may return null, indicating that no valid values can be obtained.
2075
+ :type RegionDesc: str
2076
+ :param _Zone: Zone
2077
+ Note: This field may return null, indicating that no valid values can be obtained.
2078
+ :type Zone: str
2079
+ :param _ZoneId: Zone Id
2080
+ Note: This field may return null, indicating that no valid values can be obtained.
2081
+ :type ZoneId: int
2082
+ :param _ZoneDesc: Zone Desc
2083
+ Note: This field may return null, indicating that no valid values can be obtained.
2084
+ :type ZoneDesc: str
2085
+ :param _VpcId: Vpc Id
2086
+ Note: This field may return null, indicating that no valid values can be obtained.
2087
+ :type VpcId: str
2088
+ :param _SubnetId: Subnet Id
2089
+ Note: This field may return null, indicating that no valid values can be obtained.
2090
+ :type SubnetId: str
2091
+ :param _CreateTime: CreateTime
2092
+ Note: This field may return null, indicating that no valid values can be obtained.
2093
+ :type CreateTime: str
2094
+ :param _ExpireTime: ExpireTime
2095
+ Note: This field may return null, indicating that no valid values can be obtained.
2096
+ :type ExpireTime: str
2097
+ :param _AccessInfo: Access Infomation
2098
+ Note: This field may return null, indicating that no valid values can be obtained.
2099
+ :type AccessInfo: str
2100
+ :param _PayMode: Pay Mode
2101
+ Note: This field may return null, indicating that no valid values can be obtained.
2102
+ :type PayMode: str
2103
+ :param _RenewFlag: Renew Flag
2104
+ Note: This field may return null, indicating that no valid values can be obtained.
2105
+ :type RenewFlag: bool
2106
+ """
2107
+ self._ID = None
2108
+ self._InstanceId = None
2109
+ self._InstanceName = None
2110
+ self._Version = None
2111
+ self._Region = None
2112
+ self._RegionId = None
2113
+ self._RegionDesc = None
2114
+ self._Zone = None
2115
+ self._ZoneId = None
2116
+ self._ZoneDesc = None
2117
+ self._VpcId = None
2118
+ self._SubnetId = None
2119
+ self._CreateTime = None
2120
+ self._ExpireTime = None
2121
+ self._AccessInfo = None
2122
+ self._PayMode = None
2123
+ self._RenewFlag = None
2124
+
2125
+ @property
2126
+ def ID(self):
2127
+ """ID
2128
+ Note: This field may return null, indicating that no valid values can be obtained.
2129
+ :rtype: int
2130
+ """
2131
+ return self._ID
2132
+
2133
+ @ID.setter
2134
+ def ID(self, ID):
2135
+ self._ID = ID
2136
+
2137
+ @property
2138
+ def InstanceId(self):
2139
+ """Instance Id
2140
+ Note: This field may return null, indicating that no valid values can be obtained.
2141
+ :rtype: str
2142
+ """
2143
+ return self._InstanceId
2144
+
2145
+ @InstanceId.setter
2146
+ def InstanceId(self, InstanceId):
2147
+ self._InstanceId = InstanceId
2148
+
2149
+ @property
2150
+ def InstanceName(self):
2151
+ """Instance Name
2152
+ Note: This field may return null, indicating that no valid values can be obtained.
2153
+ :rtype: str
2154
+ """
2155
+ return self._InstanceName
2156
+
2157
+ @InstanceName.setter
2158
+ def InstanceName(self, InstanceName):
2159
+ self._InstanceName = InstanceName
2160
+
2161
+ @property
2162
+ def Version(self):
2163
+ """Version
2164
+ Note: This field may return null, indicating that no valid values can be obtained.
2165
+ :rtype: str
2166
+ """
2167
+ return self._Version
2168
+
2169
+ @Version.setter
2170
+ def Version(self, Version):
2171
+ self._Version = Version
2172
+
2173
+ @property
2174
+ def Region(self):
2175
+ """Region
2176
+ Note: This field may return null, indicating that no valid values can be obtained.
2177
+ :rtype: str
2178
+ """
2179
+ return self._Region
2180
+
2181
+ @Region.setter
2182
+ def Region(self, Region):
2183
+ self._Region = Region
2184
+
2185
+ @property
2186
+ def RegionId(self):
2187
+ """Region Id
2188
+ Note: This field may return null, indicating that no valid values can be obtained.
2189
+ :rtype: int
2190
+ """
2191
+ return self._RegionId
2192
+
2193
+ @RegionId.setter
2194
+ def RegionId(self, RegionId):
2195
+ self._RegionId = RegionId
2196
+
2197
+ @property
2198
+ def RegionDesc(self):
2199
+ """Region Desc
2200
+ Note: This field may return null, indicating that no valid values can be obtained.
2201
+ :rtype: str
2202
+ """
2203
+ return self._RegionDesc
2204
+
2205
+ @RegionDesc.setter
2206
+ def RegionDesc(self, RegionDesc):
2207
+ self._RegionDesc = RegionDesc
2208
+
2209
+ @property
2210
+ def Zone(self):
2211
+ """Zone
2212
+ Note: This field may return null, indicating that no valid values can be obtained.
2213
+ :rtype: str
2214
+ """
2215
+ return self._Zone
2216
+
2217
+ @Zone.setter
2218
+ def Zone(self, Zone):
2219
+ self._Zone = Zone
2220
+
2221
+ @property
2222
+ def ZoneId(self):
2223
+ """Zone Id
2224
+ Note: This field may return null, indicating that no valid values can be obtained.
2225
+ :rtype: int
2226
+ """
2227
+ return self._ZoneId
2228
+
2229
+ @ZoneId.setter
2230
+ def ZoneId(self, ZoneId):
2231
+ self._ZoneId = ZoneId
2232
+
2233
+ @property
2234
+ def ZoneDesc(self):
2235
+ """Zone Desc
2236
+ Note: This field may return null, indicating that no valid values can be obtained.
2237
+ :rtype: str
2238
+ """
2239
+ return self._ZoneDesc
2240
+
2241
+ @ZoneDesc.setter
2242
+ def ZoneDesc(self, ZoneDesc):
2243
+ self._ZoneDesc = ZoneDesc
2244
+
2245
+ @property
2246
+ def VpcId(self):
2247
+ """Vpc Id
2248
+ Note: This field may return null, indicating that no valid values can be obtained.
2249
+ :rtype: str
2250
+ """
2251
+ return self._VpcId
2252
+
2253
+ @VpcId.setter
2254
+ def VpcId(self, VpcId):
2255
+ self._VpcId = VpcId
2256
+
2257
+ @property
2258
+ def SubnetId(self):
2259
+ """Subnet Id
2260
+ Note: This field may return null, indicating that no valid values can be obtained.
2261
+ :rtype: str
2262
+ """
2263
+ return self._SubnetId
2264
+
2265
+ @SubnetId.setter
2266
+ def SubnetId(self, SubnetId):
2267
+ self._SubnetId = SubnetId
2268
+
2269
+ @property
2270
+ def CreateTime(self):
2271
+ """CreateTime
2272
+ Note: This field may return null, indicating that no valid values can be obtained.
2273
+ :rtype: str
2274
+ """
2275
+ return self._CreateTime
2276
+
2277
+ @CreateTime.setter
2278
+ def CreateTime(self, CreateTime):
2279
+ self._CreateTime = CreateTime
2280
+
2281
+ @property
2282
+ def ExpireTime(self):
2283
+ """ExpireTime
2284
+ Note: This field may return null, indicating that no valid values can be obtained.
2285
+ :rtype: str
2286
+ """
2287
+ return self._ExpireTime
2288
+
2289
+ @ExpireTime.setter
2290
+ def ExpireTime(self, ExpireTime):
2291
+ self._ExpireTime = ExpireTime
2292
+
2293
+ @property
2294
+ def AccessInfo(self):
2295
+ """Access Infomation
2296
+ Note: This field may return null, indicating that no valid values can be obtained.
2297
+ :rtype: str
2298
+ """
2299
+ return self._AccessInfo
2300
+
2301
+ @AccessInfo.setter
2302
+ def AccessInfo(self, AccessInfo):
2303
+ self._AccessInfo = AccessInfo
2304
+
2305
+ @property
2306
+ def PayMode(self):
2307
+ """Pay Mode
2308
+ Note: This field may return null, indicating that no valid values can be obtained.
2309
+ :rtype: str
2310
+ """
2311
+ return self._PayMode
2312
+
2313
+ @PayMode.setter
2314
+ def PayMode(self, PayMode):
2315
+ self._PayMode = PayMode
2316
+
2317
+ @property
2318
+ def RenewFlag(self):
2319
+ """Renew Flag
2320
+ Note: This field may return null, indicating that no valid values can be obtained.
2321
+ :rtype: bool
2322
+ """
2323
+ return self._RenewFlag
2324
+
2325
+ @RenewFlag.setter
2326
+ def RenewFlag(self, RenewFlag):
2327
+ self._RenewFlag = RenewFlag
2328
+
2329
+
2330
+ def _deserialize(self, params):
2331
+ self._ID = params.get("ID")
2332
+ self._InstanceId = params.get("InstanceId")
2333
+ self._InstanceName = params.get("InstanceName")
2334
+ self._Version = params.get("Version")
2335
+ self._Region = params.get("Region")
2336
+ self._RegionId = params.get("RegionId")
2337
+ self._RegionDesc = params.get("RegionDesc")
2338
+ self._Zone = params.get("Zone")
2339
+ self._ZoneId = params.get("ZoneId")
2340
+ self._ZoneDesc = params.get("ZoneDesc")
2341
+ self._VpcId = params.get("VpcId")
2342
+ self._SubnetId = params.get("SubnetId")
2343
+ self._CreateTime = params.get("CreateTime")
2344
+ self._ExpireTime = params.get("ExpireTime")
2345
+ self._AccessInfo = params.get("AccessInfo")
2346
+ self._PayMode = params.get("PayMode")
2347
+ self._RenewFlag = params.get("RenewFlag")
2348
+ memeber_set = set(params.keys())
2349
+ for name, value in vars(self).items():
2350
+ property_name = name[1:]
2351
+ if property_name in memeber_set:
2352
+ memeber_set.remove(property_name)
2353
+ if len(memeber_set) > 0:
2354
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
2355
+
2356
+
2357
+
2358
+ class InstanceStateInfo(AbstractModel):
2359
+ """Instance State Information
2360
+
2361
+ """
2362
+
2363
+ def __init__(self):
2364
+ r"""
2365
+ :param _InstanceState: Instance status. Example: serving.
2366
+ Note: This field may return null, indicating that no valid values can be obtained.
2367
+ :type InstanceState: str
2368
+ :param _FlowCreateTime: Creation time of instance operation.
2369
+ Note: This field may return null, indicating that no valid values can be obtained.
2370
+ :type FlowCreateTime: str
2371
+ :param _FlowName: Instance operation name.
2372
+ Note: This field may return null, indicating that no valid values can be obtained.
2373
+ :type FlowName: str
2374
+ :param _FlowProgress: Instance operation progress.
2375
+ Note: This field may return null, indicating that no valid values can be obtained.
2376
+ :type FlowProgress: int
2377
+ :param _InstanceStateDesc: Instance status description. Example: running.
2378
+ Note: This field may return null, indicating that no valid values can be obtained.
2379
+ :type InstanceStateDesc: str
2380
+ :param _FlowMsg: Instance process error messages. Example: "Creation failed, insufficient resources."
2381
+ Note: This field may return null, indicating that no valid values can be obtained.
2382
+ :type FlowMsg: str
2383
+ :param _ProcessName: The name of the current step. Example: "Purchasing resources."
2384
+ Note: This field may return null, indicating that no valid values can be obtained.
2385
+ :type ProcessName: str
2386
+ :param _BackupStatus: Indicates whether there is a backup task in the instance. 1 indicates yes and 0 indicates no.
2387
+ Note: This field may return null, indicating that no valid values can be obtained.
2388
+ :type BackupStatus: int
2389
+ :param _RequestId: Request Id
2390
+ Note: This field may return null, indicating that no valid values can be obtained.
2391
+ :type RequestId: str
2392
+ :param _BackupOpenStatus: Backup Open Status
2393
+ Note: This field may return null, indicating that no valid values can be obtained.
2394
+ :type BackupOpenStatus: int
2395
+ """
2396
+ self._InstanceState = None
2397
+ self._FlowCreateTime = None
2398
+ self._FlowName = None
2399
+ self._FlowProgress = None
2400
+ self._InstanceStateDesc = None
2401
+ self._FlowMsg = None
2402
+ self._ProcessName = None
2403
+ self._BackupStatus = None
2404
+ self._RequestId = None
2405
+ self._BackupOpenStatus = None
2406
+
2407
+ @property
2408
+ def InstanceState(self):
2409
+ """Instance status. Example: serving.
2410
+ Note: This field may return null, indicating that no valid values can be obtained.
2411
+ :rtype: str
2412
+ """
2413
+ return self._InstanceState
2414
+
2415
+ @InstanceState.setter
2416
+ def InstanceState(self, InstanceState):
2417
+ self._InstanceState = InstanceState
2418
+
2419
+ @property
2420
+ def FlowCreateTime(self):
2421
+ """Creation time of instance operation.
2422
+ Note: This field may return null, indicating that no valid values can be obtained.
2423
+ :rtype: str
2424
+ """
2425
+ return self._FlowCreateTime
2426
+
2427
+ @FlowCreateTime.setter
2428
+ def FlowCreateTime(self, FlowCreateTime):
2429
+ self._FlowCreateTime = FlowCreateTime
2430
+
2431
+ @property
2432
+ def FlowName(self):
2433
+ """Instance operation name.
2434
+ Note: This field may return null, indicating that no valid values can be obtained.
2435
+ :rtype: str
2436
+ """
2437
+ return self._FlowName
2438
+
2439
+ @FlowName.setter
2440
+ def FlowName(self, FlowName):
2441
+ self._FlowName = FlowName
2442
+
2443
+ @property
2444
+ def FlowProgress(self):
2445
+ """Instance operation progress.
2446
+ Note: This field may return null, indicating that no valid values can be obtained.
2447
+ :rtype: int
2448
+ """
2449
+ return self._FlowProgress
2450
+
2451
+ @FlowProgress.setter
2452
+ def FlowProgress(self, FlowProgress):
2453
+ self._FlowProgress = FlowProgress
2454
+
2455
+ @property
2456
+ def InstanceStateDesc(self):
2457
+ """Instance status description. Example: running.
2458
+ Note: This field may return null, indicating that no valid values can be obtained.
2459
+ :rtype: str
2460
+ """
2461
+ return self._InstanceStateDesc
2462
+
2463
+ @InstanceStateDesc.setter
2464
+ def InstanceStateDesc(self, InstanceStateDesc):
2465
+ self._InstanceStateDesc = InstanceStateDesc
2466
+
2467
+ @property
2468
+ def FlowMsg(self):
2469
+ """Instance process error messages. Example: "Creation failed, insufficient resources."
2470
+ Note: This field may return null, indicating that no valid values can be obtained.
2471
+ :rtype: str
2472
+ """
2473
+ return self._FlowMsg
2474
+
2475
+ @FlowMsg.setter
2476
+ def FlowMsg(self, FlowMsg):
2477
+ self._FlowMsg = FlowMsg
2478
+
2479
+ @property
2480
+ def ProcessName(self):
2481
+ """The name of the current step. Example: "Purchasing resources."
2482
+ Note: This field may return null, indicating that no valid values can be obtained.
2483
+ :rtype: str
2484
+ """
2485
+ return self._ProcessName
2486
+
2487
+ @ProcessName.setter
2488
+ def ProcessName(self, ProcessName):
2489
+ self._ProcessName = ProcessName
2490
+
2491
+ @property
2492
+ def BackupStatus(self):
2493
+ """Indicates whether there is a backup task in the instance. 1 indicates yes and 0 indicates no.
2494
+ Note: This field may return null, indicating that no valid values can be obtained.
2495
+ :rtype: int
2496
+ """
2497
+ return self._BackupStatus
2498
+
2499
+ @BackupStatus.setter
2500
+ def BackupStatus(self, BackupStatus):
2501
+ self._BackupStatus = BackupStatus
2502
+
2503
+ @property
2504
+ def RequestId(self):
2505
+ """Request Id
2506
+ Note: This field may return null, indicating that no valid values can be obtained.
2507
+ :rtype: str
2508
+ """
2509
+ return self._RequestId
2510
+
2511
+ @RequestId.setter
2512
+ def RequestId(self, RequestId):
2513
+ self._RequestId = RequestId
2514
+
2515
+ @property
2516
+ def BackupOpenStatus(self):
2517
+ """Backup Open Status
2518
+ Note: This field may return null, indicating that no valid values can be obtained.
2519
+ :rtype: int
2520
+ """
2521
+ return self._BackupOpenStatus
2522
+
2523
+ @BackupOpenStatus.setter
2524
+ def BackupOpenStatus(self, BackupOpenStatus):
2525
+ self._BackupOpenStatus = BackupOpenStatus
2526
+
2527
+
2528
+ def _deserialize(self, params):
2529
+ self._InstanceState = params.get("InstanceState")
2530
+ self._FlowCreateTime = params.get("FlowCreateTime")
2531
+ self._FlowName = params.get("FlowName")
2532
+ self._FlowProgress = params.get("FlowProgress")
2533
+ self._InstanceStateDesc = params.get("InstanceStateDesc")
2534
+ self._FlowMsg = params.get("FlowMsg")
2535
+ self._ProcessName = params.get("ProcessName")
2536
+ self._BackupStatus = params.get("BackupStatus")
2537
+ self._RequestId = params.get("RequestId")
2538
+ self._BackupOpenStatus = params.get("BackupOpenStatus")
2539
+ memeber_set = set(params.keys())
2540
+ for name, value in vars(self).items():
2541
+ property_name = name[1:]
2542
+ if property_name in memeber_set:
2543
+ memeber_set.remove(property_name)
2544
+ if len(memeber_set) > 0:
2545
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
2546
+
2547
+
2548
+
2549
+ class ModifyInstanceRequest(AbstractModel):
2550
+ """ModifyInstance request structure.
2551
+
2552
+ """
2553
+
2554
+ def __init__(self):
2555
+ r"""
2556
+ :param _InstanceId: Instance ID.
2557
+ :type InstanceId: str
2558
+ :param _InstanceName: Name of the newly modified instance.
2559
+ :type InstanceName: str
2560
+ """
2561
+ self._InstanceId = None
2562
+ self._InstanceName = None
2563
+
2564
+ @property
2565
+ def InstanceId(self):
2566
+ """Instance ID.
2567
+ :rtype: str
2568
+ """
2569
+ return self._InstanceId
2570
+
2571
+ @InstanceId.setter
2572
+ def InstanceId(self, InstanceId):
2573
+ self._InstanceId = InstanceId
2574
+
2575
+ @property
2576
+ def InstanceName(self):
2577
+ """Name of the newly modified instance.
2578
+ :rtype: str
2579
+ """
2580
+ return self._InstanceName
2581
+
2582
+ @InstanceName.setter
2583
+ def InstanceName(self, InstanceName):
2584
+ self._InstanceName = InstanceName
2585
+
2586
+
2587
+ def _deserialize(self, params):
2588
+ self._InstanceId = params.get("InstanceId")
2589
+ self._InstanceName = params.get("InstanceName")
2590
+ memeber_set = set(params.keys())
2591
+ for name, value in vars(self).items():
2592
+ property_name = name[1:]
2593
+ if property_name in memeber_set:
2594
+ memeber_set.remove(property_name)
2595
+ if len(memeber_set) > 0:
2596
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
2597
+
2598
+
2599
+
2600
+ class ModifyInstanceResponse(AbstractModel):
2601
+ """ModifyInstance response structure.
2602
+
2603
+ """
2604
+
2605
+ def __init__(self):
2606
+ r"""
2607
+ :param _RequestId: The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
2608
+ :type RequestId: str
2609
+ """
2610
+ self._RequestId = None
2611
+
2612
+ @property
2613
+ def RequestId(self):
2614
+ """The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
2615
+ :rtype: str
2616
+ """
2617
+ return self._RequestId
2618
+
2619
+ @RequestId.setter
2620
+ def RequestId(self, RequestId):
2621
+ self._RequestId = RequestId
2622
+
2623
+
2624
+ def _deserialize(self, params):
2625
+ self._RequestId = params.get("RequestId")
2626
+
2627
+
2628
+ class ResourceInfo(AbstractModel):
2629
+ """Resource information.
2630
+
2631
+ """
2632
+
2633
+ def __init__(self):
2634
+ r"""
2635
+ :param _SpecName: Resource name.
2636
+ Note: This field may return null, indicating that no valid values can be obtained.
2637
+ :type SpecName: str
2638
+ :param _Count: Resource count.
2639
+ Note: This field may return null, indicating that no valid values can be obtained.
2640
+ :type Count: int
2641
+ :param _DiskSpec: Disk information.
2642
+ Note: This field may return null, indicating that no valid values can be obtained.
2643
+ :type DiskSpec: :class:`tencentcloud.cdwpg.v20201230.models.CBSSpecInfo`
2644
+ :param _Type: Resource type.
2645
+ Note: This field may return null, indicating that no valid values can be obtained.
2646
+ :type Type: str
2647
+ """
2648
+ self._SpecName = None
2649
+ self._Count = None
2650
+ self._DiskSpec = None
2651
+ self._Type = None
2652
+
2653
+ @property
2654
+ def SpecName(self):
2655
+ """Resource name.
2656
+ Note: This field may return null, indicating that no valid values can be obtained.
2657
+ :rtype: str
2658
+ """
2659
+ return self._SpecName
2660
+
2661
+ @SpecName.setter
2662
+ def SpecName(self, SpecName):
2663
+ self._SpecName = SpecName
2664
+
2665
+ @property
2666
+ def Count(self):
2667
+ """Resource count.
2668
+ Note: This field may return null, indicating that no valid values can be obtained.
2669
+ :rtype: int
2670
+ """
2671
+ return self._Count
2672
+
2673
+ @Count.setter
2674
+ def Count(self, Count):
2675
+ self._Count = Count
2676
+
2677
+ @property
2678
+ def DiskSpec(self):
2679
+ """Disk information.
2680
+ Note: This field may return null, indicating that no valid values can be obtained.
2681
+ :rtype: :class:`tencentcloud.cdwpg.v20201230.models.CBSSpecInfo`
2682
+ """
2683
+ return self._DiskSpec
2684
+
2685
+ @DiskSpec.setter
2686
+ def DiskSpec(self, DiskSpec):
2687
+ self._DiskSpec = DiskSpec
2688
+
2689
+ @property
2690
+ def Type(self):
2691
+ """Resource type.
2692
+ Note: This field may return null, indicating that no valid values can be obtained.
2693
+ :rtype: str
2694
+ """
2695
+ return self._Type
2696
+
2697
+ @Type.setter
2698
+ def Type(self, Type):
2699
+ self._Type = Type
2700
+
2701
+
2702
+ def _deserialize(self, params):
2703
+ self._SpecName = params.get("SpecName")
2704
+ self._Count = params.get("Count")
2705
+ if params.get("DiskSpec") is not None:
2706
+ self._DiskSpec = CBSSpecInfo()
2707
+ self._DiskSpec._deserialize(params.get("DiskSpec"))
2708
+ self._Type = params.get("Type")
2709
+ memeber_set = set(params.keys())
2710
+ for name, value in vars(self).items():
2711
+ property_name = name[1:]
2712
+ if property_name in memeber_set:
2713
+ memeber_set.remove(property_name)
2714
+ if len(memeber_set) > 0:
2715
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
2716
+
2717
+
2718
+
2719
+ class ResourceSpecNew(AbstractModel):
2720
+ """Resource specifications.
2721
+
2722
+ """
2723
+
2724
+ def __init__(self):
2725
+ r"""
2726
+ :param _SpecName: Resource name.
2727
+ :type SpecName: str
2728
+ :param _Count: Resource count.
2729
+ :type Count: int
2730
+ :param _DiskSpec: Disk information.
2731
+ :type DiskSpec: :class:`tencentcloud.cdwpg.v20201230.models.CBSSpec`
2732
+ :param _Type: Resource type, DATA.
2733
+ :type Type: str
2734
+ """
2735
+ self._SpecName = None
2736
+ self._Count = None
2737
+ self._DiskSpec = None
2738
+ self._Type = None
2739
+
2740
+ @property
2741
+ def SpecName(self):
2742
+ """Resource name.
2743
+ :rtype: str
2744
+ """
2745
+ return self._SpecName
2746
+
2747
+ @SpecName.setter
2748
+ def SpecName(self, SpecName):
2749
+ self._SpecName = SpecName
2750
+
2751
+ @property
2752
+ def Count(self):
2753
+ """Resource count.
2754
+ :rtype: int
2755
+ """
2756
+ return self._Count
2757
+
2758
+ @Count.setter
2759
+ def Count(self, Count):
2760
+ self._Count = Count
2761
+
2762
+ @property
2763
+ def DiskSpec(self):
2764
+ """Disk information.
2765
+ :rtype: :class:`tencentcloud.cdwpg.v20201230.models.CBSSpec`
2766
+ """
2767
+ return self._DiskSpec
2768
+
2769
+ @DiskSpec.setter
2770
+ def DiskSpec(self, DiskSpec):
2771
+ self._DiskSpec = DiskSpec
2772
+
2773
+ @property
2774
+ def Type(self):
2775
+ """Resource type, DATA.
2776
+ :rtype: str
2777
+ """
2778
+ return self._Type
2779
+
2780
+ @Type.setter
2781
+ def Type(self, Type):
2782
+ self._Type = Type
2783
+
2784
+
2785
+ def _deserialize(self, params):
2786
+ self._SpecName = params.get("SpecName")
2787
+ self._Count = params.get("Count")
2788
+ if params.get("DiskSpec") is not None:
2789
+ self._DiskSpec = CBSSpec()
2790
+ self._DiskSpec._deserialize(params.get("DiskSpec"))
2791
+ self._Type = params.get("Type")
2792
+ memeber_set = set(params.keys())
2793
+ for name, value in vars(self).items():
2794
+ property_name = name[1:]
2795
+ if property_name in memeber_set:
2796
+ memeber_set.remove(property_name)
2797
+ if len(memeber_set) > 0:
2798
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
2799
+
2800
+
2801
+
2802
+ class SearchTags(AbstractModel):
2803
+ """List of tags searched on the list page.
2804
+
2805
+ """
2806
+
2807
+ def __init__(self):
2808
+ r"""
2809
+ :param _TagKey: Tag key.
2810
+ :type TagKey: str
2811
+ :param _TagValue: Tag value.
2812
+ :type TagValue: str
2813
+ :param _AllValue: 1 means only the Tag key is entered without a value, and 0 means both the key and the value are entered.
2814
+ :type AllValue: int
2815
+ """
2816
+ self._TagKey = None
2817
+ self._TagValue = None
2818
+ self._AllValue = None
2819
+
2820
+ @property
2821
+ def TagKey(self):
2822
+ """Tag key.
2823
+ :rtype: str
2824
+ """
2825
+ return self._TagKey
2826
+
2827
+ @TagKey.setter
2828
+ def TagKey(self, TagKey):
2829
+ self._TagKey = TagKey
2830
+
2831
+ @property
2832
+ def TagValue(self):
2833
+ """Tag value.
2834
+ :rtype: str
2835
+ """
2836
+ return self._TagValue
2837
+
2838
+ @TagValue.setter
2839
+ def TagValue(self, TagValue):
2840
+ self._TagValue = TagValue
2841
+
2842
+ @property
2843
+ def AllValue(self):
2844
+ """1 means only the Tag key is entered without a value, and 0 means both the key and the value are entered.
2845
+ :rtype: int
2846
+ """
2847
+ return self._AllValue
2848
+
2849
+ @AllValue.setter
2850
+ def AllValue(self, AllValue):
2851
+ self._AllValue = AllValue
2852
+
2853
+
2854
+ def _deserialize(self, params):
2855
+ self._TagKey = params.get("TagKey")
2856
+ self._TagValue = params.get("TagValue")
2857
+ self._AllValue = params.get("AllValue")
2858
+ memeber_set = set(params.keys())
2859
+ for name, value in vars(self).items():
2860
+ property_name = name[1:]
2861
+ if property_name in memeber_set:
2862
+ memeber_set.remove(property_name)
2863
+ if len(memeber_set) > 0:
2864
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
2865
+
2866
+
2867
+
2868
+ class SimpleInstanceInfo(AbstractModel):
2869
+ """Cluster information.
2870
+
2871
+ """
2872
+
2873
+ def __init__(self):
2874
+ r"""
2875
+ :param _ID: ID
2876
+ Note: This field may return null, indicating that no valid values can be obtained.
2877
+ :type ID: int
2878
+ :param _InstanceId: Instance Id
2879
+ Note: This field may return null, indicating that no valid values can be obtained.
2880
+ :type InstanceId: str
2881
+ :param _InstanceName: Instance Name
2882
+ Note: This field may return null, indicating that no valid values can be obtained.
2883
+ :type InstanceName: str
2884
+ :param _Version: Version
2885
+ Note: This field may return null, indicating that no valid values can be obtained.
2886
+ :type Version: str
2887
+ :param _Region: Region
2888
+ Note: This field may return null, indicating that no valid values can be obtained.
2889
+ :type Region: str
2890
+ :param _Zone: Zone
2891
+ Note: This field may return null, indicating that no valid values can be obtained.
2892
+ :type Zone: str
2893
+ :param _UserVPCID: User VPC ID
2894
+ Note: This field may return null, indicating that no valid values can be obtained.
2895
+ :type UserVPCID: str
2896
+ :param _UserSubnetID: User Subnet ID
2897
+ Note: This field may return null, indicating that no valid values can be obtained.
2898
+ :type UserSubnetID: str
2899
+ :param _CreateTime: CreateTime
2900
+ Note: This field may return null, indicating that no valid values can be obtained.
2901
+ :type CreateTime: str
2902
+ :param _ExpireTime: ExpireTime
2903
+ Note: This field may return null, indicating that no valid values can be obtained.
2904
+ :type ExpireTime: str
2905
+ :param _AccessInfo: Access Infomation
2906
+ Note: This field may return null, indicating that no valid values can be obtained.
2907
+ :type AccessInfo: str
2908
+ :param _RenewFlag: Renew Flag
2909
+ Note: This field may return null, indicating that no valid values can be obtained.
2910
+ :type RenewFlag: int
2911
+ :param _ChargeProperties: Charge Properties
2912
+ Note: This field may return null, indicating that no valid values can be obtained.
2913
+ :type ChargeProperties: :class:`tencentcloud.cdwpg.v20201230.models.ChargeProperties`
2914
+ :param _Resources: Resources
2915
+ Note: This field may return null, indicating that no valid values can be obtained.
2916
+ :type Resources: list of ResourceInfo
2917
+ :param _Tags: Tags
2918
+ Note: This field may return null, indicating that no valid values can be obtained.
2919
+ :type Tags: list of Tag
2920
+ :param _Status: Status
2921
+ Note: This field may return null, indicating that no valid values can be obtained.
2922
+ :type Status: int
2923
+ """
2924
+ self._ID = None
2925
+ self._InstanceId = None
2926
+ self._InstanceName = None
2927
+ self._Version = None
2928
+ self._Region = None
2929
+ self._Zone = None
2930
+ self._UserVPCID = None
2931
+ self._UserSubnetID = None
2932
+ self._CreateTime = None
2933
+ self._ExpireTime = None
2934
+ self._AccessInfo = None
2935
+ self._RenewFlag = None
2936
+ self._ChargeProperties = None
2937
+ self._Resources = None
2938
+ self._Tags = None
2939
+ self._Status = None
2940
+
2941
+ @property
2942
+ def ID(self):
2943
+ """ID
2944
+ Note: This field may return null, indicating that no valid values can be obtained.
2945
+ :rtype: int
2946
+ """
2947
+ return self._ID
2948
+
2949
+ @ID.setter
2950
+ def ID(self, ID):
2951
+ self._ID = ID
2952
+
2953
+ @property
2954
+ def InstanceId(self):
2955
+ """Instance Id
2956
+ Note: This field may return null, indicating that no valid values can be obtained.
2957
+ :rtype: str
2958
+ """
2959
+ return self._InstanceId
2960
+
2961
+ @InstanceId.setter
2962
+ def InstanceId(self, InstanceId):
2963
+ self._InstanceId = InstanceId
2964
+
2965
+ @property
2966
+ def InstanceName(self):
2967
+ """Instance Name
2968
+ Note: This field may return null, indicating that no valid values can be obtained.
2969
+ :rtype: str
2970
+ """
2971
+ return self._InstanceName
2972
+
2973
+ @InstanceName.setter
2974
+ def InstanceName(self, InstanceName):
2975
+ self._InstanceName = InstanceName
2976
+
2977
+ @property
2978
+ def Version(self):
2979
+ """Version
2980
+ Note: This field may return null, indicating that no valid values can be obtained.
2981
+ :rtype: str
2982
+ """
2983
+ return self._Version
2984
+
2985
+ @Version.setter
2986
+ def Version(self, Version):
2987
+ self._Version = Version
2988
+
2989
+ @property
2990
+ def Region(self):
2991
+ """Region
2992
+ Note: This field may return null, indicating that no valid values can be obtained.
2993
+ :rtype: str
2994
+ """
2995
+ return self._Region
2996
+
2997
+ @Region.setter
2998
+ def Region(self, Region):
2999
+ self._Region = Region
3000
+
3001
+ @property
3002
+ def Zone(self):
3003
+ """Zone
3004
+ Note: This field may return null, indicating that no valid values can be obtained.
3005
+ :rtype: str
3006
+ """
3007
+ return self._Zone
3008
+
3009
+ @Zone.setter
3010
+ def Zone(self, Zone):
3011
+ self._Zone = Zone
3012
+
3013
+ @property
3014
+ def UserVPCID(self):
3015
+ """User VPC ID
3016
+ Note: This field may return null, indicating that no valid values can be obtained.
3017
+ :rtype: str
3018
+ """
3019
+ return self._UserVPCID
3020
+
3021
+ @UserVPCID.setter
3022
+ def UserVPCID(self, UserVPCID):
3023
+ self._UserVPCID = UserVPCID
3024
+
3025
+ @property
3026
+ def UserSubnetID(self):
3027
+ """User Subnet ID
3028
+ Note: This field may return null, indicating that no valid values can be obtained.
3029
+ :rtype: str
3030
+ """
3031
+ return self._UserSubnetID
3032
+
3033
+ @UserSubnetID.setter
3034
+ def UserSubnetID(self, UserSubnetID):
3035
+ self._UserSubnetID = UserSubnetID
3036
+
3037
+ @property
3038
+ def CreateTime(self):
3039
+ """CreateTime
3040
+ Note: This field may return null, indicating that no valid values can be obtained.
3041
+ :rtype: str
3042
+ """
3043
+ return self._CreateTime
3044
+
3045
+ @CreateTime.setter
3046
+ def CreateTime(self, CreateTime):
3047
+ self._CreateTime = CreateTime
3048
+
3049
+ @property
3050
+ def ExpireTime(self):
3051
+ """ExpireTime
3052
+ Note: This field may return null, indicating that no valid values can be obtained.
3053
+ :rtype: str
3054
+ """
3055
+ return self._ExpireTime
3056
+
3057
+ @ExpireTime.setter
3058
+ def ExpireTime(self, ExpireTime):
3059
+ self._ExpireTime = ExpireTime
3060
+
3061
+ @property
3062
+ def AccessInfo(self):
3063
+ """Access Infomation
3064
+ Note: This field may return null, indicating that no valid values can be obtained.
3065
+ :rtype: str
3066
+ """
3067
+ return self._AccessInfo
3068
+
3069
+ @AccessInfo.setter
3070
+ def AccessInfo(self, AccessInfo):
3071
+ self._AccessInfo = AccessInfo
3072
+
3073
+ @property
3074
+ def RenewFlag(self):
3075
+ """Renew Flag
3076
+ Note: This field may return null, indicating that no valid values can be obtained.
3077
+ :rtype: int
3078
+ """
3079
+ return self._RenewFlag
3080
+
3081
+ @RenewFlag.setter
3082
+ def RenewFlag(self, RenewFlag):
3083
+ self._RenewFlag = RenewFlag
3084
+
3085
+ @property
3086
+ def ChargeProperties(self):
3087
+ """Charge Properties
3088
+ Note: This field may return null, indicating that no valid values can be obtained.
3089
+ :rtype: :class:`tencentcloud.cdwpg.v20201230.models.ChargeProperties`
3090
+ """
3091
+ return self._ChargeProperties
3092
+
3093
+ @ChargeProperties.setter
3094
+ def ChargeProperties(self, ChargeProperties):
3095
+ self._ChargeProperties = ChargeProperties
3096
+
3097
+ @property
3098
+ def Resources(self):
3099
+ """Resources
3100
+ Note: This field may return null, indicating that no valid values can be obtained.
3101
+ :rtype: list of ResourceInfo
3102
+ """
3103
+ return self._Resources
3104
+
3105
+ @Resources.setter
3106
+ def Resources(self, Resources):
3107
+ self._Resources = Resources
3108
+
3109
+ @property
3110
+ def Tags(self):
3111
+ """Tags
3112
+ Note: This field may return null, indicating that no valid values can be obtained.
3113
+ :rtype: list of Tag
3114
+ """
3115
+ return self._Tags
3116
+
3117
+ @Tags.setter
3118
+ def Tags(self, Tags):
3119
+ self._Tags = Tags
3120
+
3121
+ @property
3122
+ def Status(self):
3123
+ """Status
3124
+ Note: This field may return null, indicating that no valid values can be obtained.
3125
+ :rtype: int
3126
+ """
3127
+ return self._Status
3128
+
3129
+ @Status.setter
3130
+ def Status(self, Status):
3131
+ self._Status = Status
3132
+
3133
+
3134
+ def _deserialize(self, params):
3135
+ self._ID = params.get("ID")
3136
+ self._InstanceId = params.get("InstanceId")
3137
+ self._InstanceName = params.get("InstanceName")
3138
+ self._Version = params.get("Version")
3139
+ self._Region = params.get("Region")
3140
+ self._Zone = params.get("Zone")
3141
+ self._UserVPCID = params.get("UserVPCID")
3142
+ self._UserSubnetID = params.get("UserSubnetID")
3143
+ self._CreateTime = params.get("CreateTime")
3144
+ self._ExpireTime = params.get("ExpireTime")
3145
+ self._AccessInfo = params.get("AccessInfo")
3146
+ self._RenewFlag = params.get("RenewFlag")
3147
+ if params.get("ChargeProperties") is not None:
3148
+ self._ChargeProperties = ChargeProperties()
3149
+ self._ChargeProperties._deserialize(params.get("ChargeProperties"))
3150
+ if params.get("Resources") is not None:
3151
+ self._Resources = []
3152
+ for item in params.get("Resources"):
3153
+ obj = ResourceInfo()
3154
+ obj._deserialize(item)
3155
+ self._Resources.append(obj)
3156
+ if params.get("Tags") is not None:
3157
+ self._Tags = []
3158
+ for item in params.get("Tags"):
3159
+ obj = Tag()
3160
+ obj._deserialize(item)
3161
+ self._Tags.append(obj)
3162
+ self._Status = params.get("Status")
3163
+ memeber_set = set(params.keys())
3164
+ for name, value in vars(self).items():
3165
+ property_name = name[1:]
3166
+ if property_name in memeber_set:
3167
+ memeber_set.remove(property_name)
3168
+ if len(memeber_set) > 0:
3169
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
3170
+
3171
+
3172
+
3173
+ class Tag(AbstractModel):
3174
+ """Tag description.
3175
+
3176
+ """
3177
+
3178
+ def __init__(self):
3179
+ r"""
3180
+ :param _TagKey: Tag key.
3181
+ :type TagKey: str
3182
+ :param _TagValue: Tag value.
3183
+ :type TagValue: str
3184
+ """
3185
+ self._TagKey = None
3186
+ self._TagValue = None
3187
+
3188
+ @property
3189
+ def TagKey(self):
3190
+ """Tag key.
3191
+ :rtype: str
3192
+ """
3193
+ return self._TagKey
3194
+
3195
+ @TagKey.setter
3196
+ def TagKey(self, TagKey):
3197
+ self._TagKey = TagKey
3198
+
3199
+ @property
3200
+ def TagValue(self):
3201
+ """Tag value.
3202
+ :rtype: str
3203
+ """
3204
+ return self._TagValue
3205
+
3206
+ @TagValue.setter
3207
+ def TagValue(self, TagValue):
3208
+ self._TagValue = TagValue
3209
+
3210
+
3211
+ def _deserialize(self, params):
3212
+ self._TagKey = params.get("TagKey")
3213
+ self._TagValue = params.get("TagValue")
3214
+ memeber_set = set(params.keys())
3215
+ for name, value in vars(self).items():
3216
+ property_name = name[1:]
3217
+ if property_name in memeber_set:
3218
+ memeber_set.remove(property_name)
3219
+ if len(memeber_set) > 0:
3220
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
3221
+