baiducloud-python-sdk-vdb 0.0.1__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.
Files changed (74) hide show
  1. baiducloud_python_sdk_vdb/__init__.py +5 -0
  2. baiducloud_python_sdk_vdb/api/__init__.py +0 -0
  3. baiducloud_python_sdk_vdb/api/vdb_client.py +1126 -0
  4. baiducloud_python_sdk_vdb/models/__init__.py +69 -0
  5. baiducloud_python_sdk_vdb/models/account.py +58 -0
  6. baiducloud_python_sdk_vdb/models/account_list_using_get_request.py +64 -0
  7. baiducloud_python_sdk_vdb/models/account_list_using_get_response.py +62 -0
  8. baiducloud_python_sdk_vdb/models/az_info.py +74 -0
  9. baiducloud_python_sdk_vdb/models/batch_record.py +124 -0
  10. baiducloud_python_sdk_vdb/models/bind_eip_using_post_request.py +72 -0
  11. baiducloud_python_sdk_vdb/models/create_instance_using_post_request.py +58 -0
  12. baiducloud_python_sdk_vdb/models/create_instance_using_post_response.py +77 -0
  13. baiducloud_python_sdk_vdb/models/data_node.py +90 -0
  14. baiducloud_python_sdk_vdb/models/delete_instance_using_delete_request.py +64 -0
  15. baiducloud_python_sdk_vdb/models/delete_record_using_delete_request.py +76 -0
  16. baiducloud_python_sdk_vdb/models/delete_recycler_instance_request.py +64 -0
  17. baiducloud_python_sdk_vdb/models/describe_instance_configs_request.py +58 -0
  18. baiducloud_python_sdk_vdb/models/get_config_using_get_request.py +64 -0
  19. baiducloud_python_sdk_vdb/models/get_config_using_get_response.py +77 -0
  20. baiducloud_python_sdk_vdb/models/get_free_instance_quota_response.py +61 -0
  21. baiducloud_python_sdk_vdb/models/get_instance_list_using_get_request.py +64 -0
  22. baiducloud_python_sdk_vdb/models/get_instance_list_using_get_response.py +62 -0
  23. baiducloud_python_sdk_vdb/models/get_node_spec_list_using_get_request.py +58 -0
  24. baiducloud_python_sdk_vdb/models/get_price_using_post_request.py +58 -0
  25. baiducloud_python_sdk_vdb/models/get_price_using_post_response.py +110 -0
  26. baiducloud_python_sdk_vdb/models/get_quota_using_get_request.py +64 -0
  27. baiducloud_python_sdk_vdb/models/get_quota_using_get_response.py +61 -0
  28. baiducloud_python_sdk_vdb/models/get_tls_certificate_using_get_request.py +64 -0
  29. baiducloud_python_sdk_vdb/models/get_tls_certificate_using_get_response.py +61 -0
  30. baiducloud_python_sdk_vdb/models/get_tls_info_using_get_request.py +64 -0
  31. baiducloud_python_sdk_vdb/models/get_tls_info_using_get_response.py +85 -0
  32. baiducloud_python_sdk_vdb/models/getinstancelistusingget1_request.py +58 -0
  33. baiducloud_python_sdk_vdb/models/getinstancelistusingget1_response.py +64 -0
  34. baiducloud_python_sdk_vdb/models/instance.py +504 -0
  35. baiducloud_python_sdk_vdb/models/instance_config_user_config.py +66 -0
  36. baiducloud_python_sdk_vdb/models/instance_detail_using_get_request.py +64 -0
  37. baiducloud_python_sdk_vdb/models/instance_detail_using_get_response.py +497 -0
  38. baiducloud_python_sdk_vdb/models/list_records_using_get_request.py +82 -0
  39. baiducloud_python_sdk_vdb/models/list_records_using_get_response.py +70 -0
  40. baiducloud_python_sdk_vdb/models/log_service.py +82 -0
  41. baiducloud_python_sdk_vdb/models/logging_service.py +82 -0
  42. baiducloud_python_sdk_vdb/models/manual_backup_using_post_request.py +72 -0
  43. baiducloud_python_sdk_vdb/models/milvus_component.py +82 -0
  44. baiducloud_python_sdk_vdb/models/milvus_node.py +115 -0
  45. baiducloud_python_sdk_vdb/models/modify_instance_config_request.py +77 -0
  46. baiducloud_python_sdk_vdb/models/modify_password_using_post_request.py +88 -0
  47. baiducloud_python_sdk_vdb/models/modify_public_access_request.py +66 -0
  48. baiducloud_python_sdk_vdb/models/modify_tls_using_put_request.py +74 -0
  49. baiducloud_python_sdk_vdb/models/multi_year_result.py +66 -0
  50. baiducloud_python_sdk_vdb/models/password_using_get_request.py +70 -0
  51. baiducloud_python_sdk_vdb/models/password_using_get_response.py +69 -0
  52. baiducloud_python_sdk_vdb/models/proxy.py +90 -0
  53. baiducloud_python_sdk_vdb/models/record.py +144 -0
  54. baiducloud_python_sdk_vdb/models/recover_instance_using_post_request.py +64 -0
  55. baiducloud_python_sdk_vdb/models/recover_using_post_request.py +88 -0
  56. baiducloud_python_sdk_vdb/models/resize_instance_using_post_request.py +179 -0
  57. baiducloud_python_sdk_vdb/models/resize_instance_using_post_response.py +61 -0
  58. baiducloud_python_sdk_vdb/models/set_comment_using_post_request.py +88 -0
  59. baiducloud_python_sdk_vdb/models/set_config_using_post_request.py +90 -0
  60. baiducloud_python_sdk_vdb/models/subnet.py +90 -0
  61. baiducloud_python_sdk_vdb/models/target_package.py +74 -0
  62. baiducloud_python_sdk_vdb/models/unbind_eip_using_post_request.py +64 -0
  63. baiducloud_python_sdk_vdb/models/update_instance_domain_request.py +72 -0
  64. baiducloud_python_sdk_vdb/models/update_instance_name_request.py +72 -0
  65. baiducloud_python_sdk_vdb/models/vdb_auto_renew_rule.py +66 -0
  66. baiducloud_python_sdk_vdb/models/vdb_pricing_query_response.py +166 -0
  67. baiducloud_python_sdk_vdb/models/zone_detail.py +133 -0
  68. baiducloud_python_sdk_vdb/models/zone_list_using_get_request.py +64 -0
  69. baiducloud_python_sdk_vdb/models/zone_list_using_get_response.py +62 -0
  70. baiducloud_python_sdk_vdb-0.0.1.dist-info/LICENSE +177 -0
  71. baiducloud_python_sdk_vdb-0.0.1.dist-info/METADATA +76 -0
  72. baiducloud_python_sdk_vdb-0.0.1.dist-info/RECORD +74 -0
  73. baiducloud_python_sdk_vdb-0.0.1.dist-info/WHEEL +5 -0
  74. baiducloud_python_sdk_vdb-0.0.1.dist-info/top_level.txt +1 -0
@@ -0,0 +1,58 @@
1
+ """
2
+ Request entity for GetNodeSpecListUsingGetRequest information.
3
+ """
4
+
5
+ from baiducloud_python_sdk_core.abstract_model import AbstractModel
6
+
7
+
8
+ class GetNodeSpecListUsingGetRequest(AbstractModel):
9
+ """
10
+ Request entity for GetNodeSpecListUsingGetRequest operation.
11
+
12
+ This class encapsulates all parameters for the API request.
13
+ """
14
+
15
+ def __init__(self, engine_type=None):
16
+ """
17
+ Initialize GetNodeSpecListUsingGetRequest request entity.
18
+
19
+ :param engine_type: engine_type parameter
20
+ :type engine_type: str (optional)
21
+ """
22
+ super().__init__()
23
+ self.engine_type = engine_type
24
+
25
+ def to_dict(self):
26
+ """
27
+ Convert the request entity to a dictionary representation.
28
+
29
+ Nested model objects are recursively converted to dictionaries.
30
+
31
+ :return: Dictionary representation of the request
32
+ :rtype: dict
33
+ """
34
+ _map = super().to_dict()
35
+ if _map is not None:
36
+ return _map
37
+ result = dict()
38
+ return result
39
+
40
+ def from_dict(self, m):
41
+ """
42
+ Populate the request entity from a dictionary.
43
+
44
+ Nested dictionaries are recursively converted to model objects.
45
+
46
+ :param m: Dictionary containing request data
47
+ :type m: dict
48
+
49
+ :return: Self reference for method chaining
50
+ :rtype: GetNodeSpecListUsingGetRequest
51
+
52
+ :raises TypeError: If input is not a dictionary or field type mismatch
53
+ :raises ValueError: If nested model conversion fails
54
+ """
55
+ m = m or dict()
56
+ if m.get('engineType') is not None:
57
+ self.engine_type = m.get('engineType')
58
+ return self
@@ -0,0 +1,58 @@
1
+ """
2
+ Request entity for GetPriceUsingPostRequest information.
3
+ """
4
+
5
+ from baiducloud_python_sdk_core.abstract_model import AbstractModel
6
+
7
+
8
+ class GetPriceUsingPostRequest(AbstractModel):
9
+ """
10
+ Request entity for GetPriceUsingPostRequest operation.
11
+
12
+ This class encapsulates all parameters for the API request.
13
+ """
14
+
15
+ def __init__(self, engine_type=None):
16
+ """
17
+ Initialize GetPriceUsingPostRequest request entity.
18
+
19
+ :param engine_type: engine_type parameter
20
+ :type engine_type: str (optional)
21
+ """
22
+ super().__init__()
23
+ self.engine_type = engine_type
24
+
25
+ def to_dict(self):
26
+ """
27
+ Convert the request entity to a dictionary representation.
28
+
29
+ Nested model objects are recursively converted to dictionaries.
30
+
31
+ :return: Dictionary representation of the request
32
+ :rtype: dict
33
+ """
34
+ _map = super().to_dict()
35
+ if _map is not None:
36
+ return _map
37
+ result = dict()
38
+ return result
39
+
40
+ def from_dict(self, m):
41
+ """
42
+ Populate the request entity from a dictionary.
43
+
44
+ Nested dictionaries are recursively converted to model objects.
45
+
46
+ :param m: Dictionary containing request data
47
+ :type m: dict
48
+
49
+ :return: Self reference for method chaining
50
+ :rtype: GetPriceUsingPostRequest
51
+
52
+ :raises TypeError: If input is not a dictionary or field type mismatch
53
+ :raises ValueError: If nested model conversion fails
54
+ """
55
+ m = m or dict()
56
+ if m.get('engineType') is not None:
57
+ self.engine_type = m.get('engineType')
58
+ return self
@@ -0,0 +1,110 @@
1
+ """
2
+ Request entity for GetPriceUsingPOSTResponse information.
3
+ """
4
+
5
+ from baiducloud_python_sdk_core.bce_response import BceResponse
6
+ from baiducloud_python_sdk_vdb.models.vdb_pricing_query_response import VdbPricingQueryResponse
7
+
8
+
9
+ class GetPriceUsingPOSTResponse(BceResponse):
10
+ """
11
+ GetPriceUsingPOSTResponse
12
+ """
13
+
14
+ def __init__(
15
+ self,
16
+ catalog_price=None,
17
+ discount=None,
18
+ discount_type=None,
19
+ price=None,
20
+ price_details=None,
21
+ real_catalog_price=None,
22
+ ):
23
+ """
24
+ Initialize GetPriceUsingPOSTResponse response.
25
+
26
+ :param catalog_price: catalog_price field
27
+ :type catalog_price: float (optional)
28
+
29
+ :param discount: discount field
30
+ :type discount: float (optional)
31
+
32
+ :param discount_type: discount_type field
33
+ :type discount_type: str (optional)
34
+
35
+ :param price: price field
36
+ :type price: float (optional)
37
+
38
+ :param price_details: price_details field
39
+ :type price_details: List[VdbPricingQueryResponse] (optional)
40
+
41
+ :param real_catalog_price: real_catalog_price field
42
+ :type real_catalog_price: float (optional)
43
+ """
44
+ super().__init__()
45
+ self.catalog_price = catalog_price
46
+ self.discount = discount
47
+ self.discount_type = discount_type
48
+ self.price = price
49
+ self.price_details = price_details
50
+ self.real_catalog_price = real_catalog_price
51
+
52
+ def to_dict(self):
53
+ """
54
+ Convert the response instance to a dictionary representation.
55
+
56
+ Includes metadata from the parent BceResponse class.
57
+ Nested model objects are recursively converted to dictionaries.
58
+
59
+ :return: Dictionary representation of the response
60
+ :rtype: dict
61
+ """
62
+ _map = super().to_dict()
63
+ if _map is not None:
64
+ return _map
65
+ result = dict()
66
+ if self.metadata is not None:
67
+ result['metadata'] = dict(self.metadata)
68
+ if self.catalog_price is not None:
69
+ result['catalogPrice'] = self.catalog_price
70
+ if self.discount is not None:
71
+ result['discount'] = self.discount
72
+ if self.discount_type is not None:
73
+ result['discountType'] = self.discount_type
74
+ if self.price is not None:
75
+ result['price'] = self.price
76
+ if self.price_details is not None:
77
+ result['priceDetails'] = [i.to_dict() for i in self.price_details]
78
+ if self.real_catalog_price is not None:
79
+ result['realCatalogPrice'] = self.real_catalog_price
80
+ return result
81
+
82
+ def from_dict(self, m):
83
+ """
84
+ Populate the response instance from a dictionary.
85
+
86
+ Nested dictionaries are recursively converted to model objects.
87
+
88
+ :param m: Dictionary containing response data
89
+ :type m: dict
90
+
91
+ :return: Self reference for method chaining
92
+ :rtype: GetPriceUsingPOSTResponse
93
+
94
+ :raises TypeError: If input is not a dictionary or field type mismatch
95
+ :raises ValueError: If nested model conversion fails
96
+ """
97
+ m = m or dict()
98
+ if m.get('catalogPrice') is not None:
99
+ self.catalog_price = m.get('catalogPrice')
100
+ if m.get('discount') is not None:
101
+ self.discount = m.get('discount')
102
+ if m.get('discountType') is not None:
103
+ self.discount_type = m.get('discountType')
104
+ if m.get('price') is not None:
105
+ self.price = m.get('price')
106
+ if m.get('priceDetails') is not None:
107
+ self.price_details = [VdbPricingQueryResponse().from_dict(i) for i in m.get('priceDetails')]
108
+ if m.get('realCatalogPrice') is not None:
109
+ self.real_catalog_price = m.get('realCatalogPrice')
110
+ return self
@@ -0,0 +1,64 @@
1
+ """
2
+ Request entity for GetQuotaUsingGetRequest information.
3
+ """
4
+
5
+ from baiducloud_python_sdk_core.abstract_model import AbstractModel
6
+
7
+
8
+ class GetQuotaUsingGetRequest(AbstractModel):
9
+ """
10
+ Request entity for GetQuotaUsingGetRequest operation.
11
+
12
+ This class encapsulates all parameters for the API request.
13
+ """
14
+
15
+ def __init__(self, instance_id, engine_type=None):
16
+ """
17
+ Initialize GetQuotaUsingGetRequest request entity.
18
+
19
+ :param instance_id: instance_id parameter
20
+ :type instance_id: str (required)
21
+
22
+ :param engine_type: engine_type parameter
23
+ :type engine_type: str (optional)
24
+ """
25
+ super().__init__()
26
+ self.instance_id = instance_id
27
+ self.engine_type = engine_type
28
+
29
+ def to_dict(self):
30
+ """
31
+ Convert the request entity to a dictionary representation.
32
+
33
+ Nested model objects are recursively converted to dictionaries.
34
+
35
+ :return: Dictionary representation of the request
36
+ :rtype: dict
37
+ """
38
+ _map = super().to_dict()
39
+ if _map is not None:
40
+ return _map
41
+ result = dict()
42
+ return result
43
+
44
+ def from_dict(self, m):
45
+ """
46
+ Populate the request entity from a dictionary.
47
+
48
+ Nested dictionaries are recursively converted to model objects.
49
+
50
+ :param m: Dictionary containing request data
51
+ :type m: dict
52
+
53
+ :return: Self reference for method chaining
54
+ :rtype: GetQuotaUsingGetRequest
55
+
56
+ :raises TypeError: If input is not a dictionary or field type mismatch
57
+ :raises ValueError: If nested model conversion fails
58
+ """
59
+ m = m or dict()
60
+ if m.get('instanceId') is not None:
61
+ self.instance_id = m.get('instanceId')
62
+ if m.get('engineType') is not None:
63
+ self.engine_type = m.get('engineType')
64
+ return self
@@ -0,0 +1,61 @@
1
+ """
2
+ Request entity for GetQuotaUsingGETResponse information.
3
+ """
4
+
5
+ from baiducloud_python_sdk_core.bce_response import BceResponse
6
+
7
+
8
+ class GetQuotaUsingGETResponse(BceResponse):
9
+ """
10
+ GetQuotaUsingGETResponse
11
+ """
12
+
13
+ def __init__(self, quota=None):
14
+ """
15
+ Initialize GetQuotaUsingGETResponse response.
16
+
17
+ :param quota: quota field
18
+ :type quota: int (optional)
19
+ """
20
+ super().__init__()
21
+ self.quota = quota
22
+
23
+ def to_dict(self):
24
+ """
25
+ Convert the response instance to a dictionary representation.
26
+
27
+ Includes metadata from the parent BceResponse class.
28
+ Nested model objects are recursively converted to dictionaries.
29
+
30
+ :return: Dictionary representation of the response
31
+ :rtype: dict
32
+ """
33
+ _map = super().to_dict()
34
+ if _map is not None:
35
+ return _map
36
+ result = dict()
37
+ if self.metadata is not None:
38
+ result['metadata'] = dict(self.metadata)
39
+ if self.quota is not None:
40
+ result['quota'] = self.quota
41
+ return result
42
+
43
+ def from_dict(self, m):
44
+ """
45
+ Populate the response instance from a dictionary.
46
+
47
+ Nested dictionaries are recursively converted to model objects.
48
+
49
+ :param m: Dictionary containing response data
50
+ :type m: dict
51
+
52
+ :return: Self reference for method chaining
53
+ :rtype: GetQuotaUsingGETResponse
54
+
55
+ :raises TypeError: If input is not a dictionary or field type mismatch
56
+ :raises ValueError: If nested model conversion fails
57
+ """
58
+ m = m or dict()
59
+ if m.get('quota') is not None:
60
+ self.quota = m.get('quota')
61
+ return self
@@ -0,0 +1,64 @@
1
+ """
2
+ Request entity for GetTlsCertificateUsingGetRequest information.
3
+ """
4
+
5
+ from baiducloud_python_sdk_core.abstract_model import AbstractModel
6
+
7
+
8
+ class GetTlsCertificateUsingGetRequest(AbstractModel):
9
+ """
10
+ Request entity for GetTlsCertificateUsingGetRequest operation.
11
+
12
+ This class encapsulates all parameters for the API request.
13
+ """
14
+
15
+ def __init__(self, instance_id, engine_type=None):
16
+ """
17
+ Initialize GetTlsCertificateUsingGetRequest request entity.
18
+
19
+ :param instance_id: instance_id parameter
20
+ :type instance_id: str (required)
21
+
22
+ :param engine_type: engine_type parameter
23
+ :type engine_type: str (optional)
24
+ """
25
+ super().__init__()
26
+ self.instance_id = instance_id
27
+ self.engine_type = engine_type
28
+
29
+ def to_dict(self):
30
+ """
31
+ Convert the request entity to a dictionary representation.
32
+
33
+ Nested model objects are recursively converted to dictionaries.
34
+
35
+ :return: Dictionary representation of the request
36
+ :rtype: dict
37
+ """
38
+ _map = super().to_dict()
39
+ if _map is not None:
40
+ return _map
41
+ result = dict()
42
+ return result
43
+
44
+ def from_dict(self, m):
45
+ """
46
+ Populate the request entity from a dictionary.
47
+
48
+ Nested dictionaries are recursively converted to model objects.
49
+
50
+ :param m: Dictionary containing request data
51
+ :type m: dict
52
+
53
+ :return: Self reference for method chaining
54
+ :rtype: GetTlsCertificateUsingGetRequest
55
+
56
+ :raises TypeError: If input is not a dictionary or field type mismatch
57
+ :raises ValueError: If nested model conversion fails
58
+ """
59
+ m = m or dict()
60
+ if m.get('instanceId') is not None:
61
+ self.instance_id = m.get('instanceId')
62
+ if m.get('engineType') is not None:
63
+ self.engine_type = m.get('engineType')
64
+ return self
@@ -0,0 +1,61 @@
1
+ """
2
+ Request entity for GetTLSCertificateUsingGETResponse information.
3
+ """
4
+
5
+ from baiducloud_python_sdk_core.bce_response import BceResponse
6
+
7
+
8
+ class GetTLSCertificateUsingGETResponse(BceResponse):
9
+ """
10
+ GetTLSCertificateUsingGETResponse
11
+ """
12
+
13
+ def __init__(self, ca_content=None):
14
+ """
15
+ Initialize GetTLSCertificateUsingGETResponse response.
16
+
17
+ :param ca_content: ca_content field
18
+ :type ca_content: str (optional)
19
+ """
20
+ super().__init__()
21
+ self.ca_content = ca_content
22
+
23
+ def to_dict(self):
24
+ """
25
+ Convert the response instance to a dictionary representation.
26
+
27
+ Includes metadata from the parent BceResponse class.
28
+ Nested model objects are recursively converted to dictionaries.
29
+
30
+ :return: Dictionary representation of the response
31
+ :rtype: dict
32
+ """
33
+ _map = super().to_dict()
34
+ if _map is not None:
35
+ return _map
36
+ result = dict()
37
+ if self.metadata is not None:
38
+ result['metadata'] = dict(self.metadata)
39
+ if self.ca_content is not None:
40
+ result['caContent'] = self.ca_content
41
+ return result
42
+
43
+ def from_dict(self, m):
44
+ """
45
+ Populate the response instance from a dictionary.
46
+
47
+ Nested dictionaries are recursively converted to model objects.
48
+
49
+ :param m: Dictionary containing response data
50
+ :type m: dict
51
+
52
+ :return: Self reference for method chaining
53
+ :rtype: GetTLSCertificateUsingGETResponse
54
+
55
+ :raises TypeError: If input is not a dictionary or field type mismatch
56
+ :raises ValueError: If nested model conversion fails
57
+ """
58
+ m = m or dict()
59
+ if m.get('caContent') is not None:
60
+ self.ca_content = m.get('caContent')
61
+ return self
@@ -0,0 +1,64 @@
1
+ """
2
+ Request entity for GetTlsInfoUsingGetRequest information.
3
+ """
4
+
5
+ from baiducloud_python_sdk_core.abstract_model import AbstractModel
6
+
7
+
8
+ class GetTlsInfoUsingGetRequest(AbstractModel):
9
+ """
10
+ Request entity for GetTlsInfoUsingGetRequest operation.
11
+
12
+ This class encapsulates all parameters for the API request.
13
+ """
14
+
15
+ def __init__(self, instance_id, engine_type=None):
16
+ """
17
+ Initialize GetTlsInfoUsingGetRequest request entity.
18
+
19
+ :param instance_id: instance_id parameter
20
+ :type instance_id: str (required)
21
+
22
+ :param engine_type: engine_type parameter
23
+ :type engine_type: str (optional)
24
+ """
25
+ super().__init__()
26
+ self.instance_id = instance_id
27
+ self.engine_type = engine_type
28
+
29
+ def to_dict(self):
30
+ """
31
+ Convert the request entity to a dictionary representation.
32
+
33
+ Nested model objects are recursively converted to dictionaries.
34
+
35
+ :return: Dictionary representation of the request
36
+ :rtype: dict
37
+ """
38
+ _map = super().to_dict()
39
+ if _map is not None:
40
+ return _map
41
+ result = dict()
42
+ return result
43
+
44
+ def from_dict(self, m):
45
+ """
46
+ Populate the request entity from a dictionary.
47
+
48
+ Nested dictionaries are recursively converted to model objects.
49
+
50
+ :param m: Dictionary containing request data
51
+ :type m: dict
52
+
53
+ :return: Self reference for method chaining
54
+ :rtype: GetTlsInfoUsingGetRequest
55
+
56
+ :raises TypeError: If input is not a dictionary or field type mismatch
57
+ :raises ValueError: If nested model conversion fails
58
+ """
59
+ m = m or dict()
60
+ if m.get('instanceId') is not None:
61
+ self.instance_id = m.get('instanceId')
62
+ if m.get('engineType') is not None:
63
+ self.engine_type = m.get('engineType')
64
+ return self
@@ -0,0 +1,85 @@
1
+ """
2
+ Request entity for GetTLSInfoUsingGETResponse information.
3
+ """
4
+
5
+ from baiducloud_python_sdk_core.bce_response import BceResponse
6
+
7
+
8
+ class GetTLSInfoUsingGETResponse(BceResponse):
9
+ """
10
+ GetTLSInfoUsingGETResponse
11
+ """
12
+
13
+ def __init__(self, tls_expired_date=None, tls_issued_date=None, tls_status=None, tls_valid_days=None):
14
+ """
15
+ Initialize GetTLSInfoUsingGETResponse response.
16
+
17
+ :param tls_expired_date: tls_expired_date field
18
+ :type tls_expired_date: str (optional)
19
+
20
+ :param tls_issued_date: tls_issued_date field
21
+ :type tls_issued_date: str (optional)
22
+
23
+ :param tls_status: tls_status field
24
+ :type tls_status: str (optional)
25
+
26
+ :param tls_valid_days: tls_valid_days field
27
+ :type tls_valid_days: int (optional)
28
+ """
29
+ super().__init__()
30
+ self.tls_expired_date = tls_expired_date
31
+ self.tls_issued_date = tls_issued_date
32
+ self.tls_status = tls_status
33
+ self.tls_valid_days = tls_valid_days
34
+
35
+ def to_dict(self):
36
+ """
37
+ Convert the response instance to a dictionary representation.
38
+
39
+ Includes metadata from the parent BceResponse class.
40
+ Nested model objects are recursively converted to dictionaries.
41
+
42
+ :return: Dictionary representation of the response
43
+ :rtype: dict
44
+ """
45
+ _map = super().to_dict()
46
+ if _map is not None:
47
+ return _map
48
+ result = dict()
49
+ if self.metadata is not None:
50
+ result['metadata'] = dict(self.metadata)
51
+ if self.tls_expired_date is not None:
52
+ result['tlsExpiredDate'] = self.tls_expired_date
53
+ if self.tls_issued_date is not None:
54
+ result['tlsIssuedDate'] = self.tls_issued_date
55
+ if self.tls_status is not None:
56
+ result['tlsStatus'] = self.tls_status
57
+ if self.tls_valid_days is not None:
58
+ result['tlsValidDays'] = self.tls_valid_days
59
+ return result
60
+
61
+ def from_dict(self, m):
62
+ """
63
+ Populate the response instance from a dictionary.
64
+
65
+ Nested dictionaries are recursively converted to model objects.
66
+
67
+ :param m: Dictionary containing response data
68
+ :type m: dict
69
+
70
+ :return: Self reference for method chaining
71
+ :rtype: GetTLSInfoUsingGETResponse
72
+
73
+ :raises TypeError: If input is not a dictionary or field type mismatch
74
+ :raises ValueError: If nested model conversion fails
75
+ """
76
+ m = m or dict()
77
+ if m.get('tlsExpiredDate') is not None:
78
+ self.tls_expired_date = m.get('tlsExpiredDate')
79
+ if m.get('tlsIssuedDate') is not None:
80
+ self.tls_issued_date = m.get('tlsIssuedDate')
81
+ if m.get('tlsStatus') is not None:
82
+ self.tls_status = m.get('tlsStatus')
83
+ if m.get('tlsValidDays') is not None:
84
+ self.tls_valid_days = m.get('tlsValidDays')
85
+ return self
@@ -0,0 +1,58 @@
1
+ """
2
+ Request entity for Getinstancelistusingget1Request information.
3
+ """
4
+
5
+ from baiducloud_python_sdk_core.abstract_model import AbstractModel
6
+
7
+
8
+ class Getinstancelistusingget1Request(AbstractModel):
9
+ """
10
+ Request entity for Getinstancelistusingget1Request operation.
11
+
12
+ This class encapsulates all parameters for the API request.
13
+ """
14
+
15
+ def __init__(self, engine_type=None):
16
+ """
17
+ Initialize Getinstancelistusingget1Request request entity.
18
+
19
+ :param engine_type: engine_type parameter
20
+ :type engine_type: str (optional)
21
+ """
22
+ super().__init__()
23
+ self.engine_type = engine_type
24
+
25
+ def to_dict(self):
26
+ """
27
+ Convert the request entity to a dictionary representation.
28
+
29
+ Nested model objects are recursively converted to dictionaries.
30
+
31
+ :return: Dictionary representation of the request
32
+ :rtype: dict
33
+ """
34
+ _map = super().to_dict()
35
+ if _map is not None:
36
+ return _map
37
+ result = dict()
38
+ return result
39
+
40
+ def from_dict(self, m):
41
+ """
42
+ Populate the request entity from a dictionary.
43
+
44
+ Nested dictionaries are recursively converted to model objects.
45
+
46
+ :param m: Dictionary containing request data
47
+ :type m: dict
48
+
49
+ :return: Self reference for method chaining
50
+ :rtype: Getinstancelistusingget1Request
51
+
52
+ :raises TypeError: If input is not a dictionary or field type mismatch
53
+ :raises ValueError: If nested model conversion fails
54
+ """
55
+ m = m or dict()
56
+ if m.get('engineType') is not None:
57
+ self.engine_type = m.get('engineType')
58
+ return self