huaweicloudsdkaom 3.1.118__py2.py3-none-any.whl → 3.1.120__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 huaweicloudsdkaom might be problematic. Click here for more details.
- huaweicloudsdkaom/v4/__init__.py +21 -0
- huaweicloudsdkaom/v4/aom_async_client.py +279 -0
- huaweicloudsdkaom/v4/aom_client.py +276 -0
- huaweicloudsdkaom/v4/model/__init__.py +18 -0
- huaweicloudsdkaom/v4/model/agent_batch_import_param_new.py +280 -0
- huaweicloudsdkaom/v4/model/agent_import_param_new.py +313 -0
- huaweicloudsdkaom/v4/model/agent_info_param.py +231 -0
- huaweicloudsdkaom/v4/model/agent_info_result.py +463 -0
- huaweicloudsdkaom/v4/model/agent_upgrade_param.py +142 -0
- huaweicloudsdkaom/v4/model/batch_import_agent_request.py +139 -0
- huaweicloudsdkaom/v4/model/batch_import_agent_response.py +116 -0
- huaweicloudsdkaom/v4/model/batch_update_agent_request.py +111 -0
- huaweicloudsdkaom/v4/model/batch_update_agent_response.py +116 -0
- huaweicloudsdkaom/v4/model/plugin_install_basic_param.py +173 -0
- huaweicloudsdkaom/v4/model/show_agent_infos_request.py +111 -0
- huaweicloudsdkaom/v4/model/show_agent_infos_response.py +203 -0
- huaweicloudsdkaom/v4/model/single_agent_param.py +142 -0
- huaweicloudsdkaom/v4/region/__init__.py +0 -0
- huaweicloudsdkaom/v4/region/aom_region.py +100 -0
- {huaweicloudsdkaom-3.1.118.dist-info → huaweicloudsdkaom-3.1.120.dist-info}/METADATA +2 -2
- {huaweicloudsdkaom-3.1.118.dist-info → huaweicloudsdkaom-3.1.120.dist-info}/RECORD +24 -5
- {huaweicloudsdkaom-3.1.118.dist-info → huaweicloudsdkaom-3.1.120.dist-info}/LICENSE +0 -0
- {huaweicloudsdkaom-3.1.118.dist-info → huaweicloudsdkaom-3.1.120.dist-info}/WHEEL +0 -0
- {huaweicloudsdkaom-3.1.118.dist-info → huaweicloudsdkaom-3.1.120.dist-info}/top_level.txt +0 -0
|
@@ -0,0 +1,142 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
import six
|
|
4
|
+
|
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
class AgentUpgradeParam:
|
|
9
|
+
|
|
10
|
+
"""
|
|
11
|
+
Attributes:
|
|
12
|
+
openapi_types (dict): The key is attribute name
|
|
13
|
+
and the value is attribute type.
|
|
14
|
+
attribute_map (dict): The key is attribute name
|
|
15
|
+
and the value is json key in definition.
|
|
16
|
+
"""
|
|
17
|
+
sensitive_list = []
|
|
18
|
+
|
|
19
|
+
openapi_types = {
|
|
20
|
+
'version': 'str',
|
|
21
|
+
'agent_list': 'list[SingleAgentParam]'
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
attribute_map = {
|
|
25
|
+
'version': 'version',
|
|
26
|
+
'agent_list': 'agent_list'
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
def __init__(self, version=None, agent_list=None):
|
|
30
|
+
"""AgentUpgradeParam
|
|
31
|
+
|
|
32
|
+
The model defined in huaweicloud sdk
|
|
33
|
+
|
|
34
|
+
:param version: UniAgent升级的版本号。
|
|
35
|
+
:type version: str
|
|
36
|
+
:param agent_list: UniAgent主机列表信息。
|
|
37
|
+
:type agent_list: list[:class:`huaweicloudsdkaom.v4.SingleAgentParam`]
|
|
38
|
+
"""
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
self._version = None
|
|
43
|
+
self._agent_list = None
|
|
44
|
+
self.discriminator = None
|
|
45
|
+
|
|
46
|
+
self.version = version
|
|
47
|
+
self.agent_list = agent_list
|
|
48
|
+
|
|
49
|
+
@property
|
|
50
|
+
def version(self):
|
|
51
|
+
"""Gets the version of this AgentUpgradeParam.
|
|
52
|
+
|
|
53
|
+
UniAgent升级的版本号。
|
|
54
|
+
|
|
55
|
+
:return: The version of this AgentUpgradeParam.
|
|
56
|
+
:rtype: str
|
|
57
|
+
"""
|
|
58
|
+
return self._version
|
|
59
|
+
|
|
60
|
+
@version.setter
|
|
61
|
+
def version(self, version):
|
|
62
|
+
"""Sets the version of this AgentUpgradeParam.
|
|
63
|
+
|
|
64
|
+
UniAgent升级的版本号。
|
|
65
|
+
|
|
66
|
+
:param version: The version of this AgentUpgradeParam.
|
|
67
|
+
:type version: str
|
|
68
|
+
"""
|
|
69
|
+
self._version = version
|
|
70
|
+
|
|
71
|
+
@property
|
|
72
|
+
def agent_list(self):
|
|
73
|
+
"""Gets the agent_list of this AgentUpgradeParam.
|
|
74
|
+
|
|
75
|
+
UniAgent主机列表信息。
|
|
76
|
+
|
|
77
|
+
:return: The agent_list of this AgentUpgradeParam.
|
|
78
|
+
:rtype: list[:class:`huaweicloudsdkaom.v4.SingleAgentParam`]
|
|
79
|
+
"""
|
|
80
|
+
return self._agent_list
|
|
81
|
+
|
|
82
|
+
@agent_list.setter
|
|
83
|
+
def agent_list(self, agent_list):
|
|
84
|
+
"""Sets the agent_list of this AgentUpgradeParam.
|
|
85
|
+
|
|
86
|
+
UniAgent主机列表信息。
|
|
87
|
+
|
|
88
|
+
:param agent_list: The agent_list of this AgentUpgradeParam.
|
|
89
|
+
:type agent_list: list[:class:`huaweicloudsdkaom.v4.SingleAgentParam`]
|
|
90
|
+
"""
|
|
91
|
+
self._agent_list = agent_list
|
|
92
|
+
|
|
93
|
+
def to_dict(self):
|
|
94
|
+
"""Returns the model properties as a dict"""
|
|
95
|
+
result = {}
|
|
96
|
+
|
|
97
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
|
98
|
+
value = getattr(self, attr)
|
|
99
|
+
if isinstance(value, list):
|
|
100
|
+
result[attr] = list(map(
|
|
101
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
102
|
+
value
|
|
103
|
+
))
|
|
104
|
+
elif hasattr(value, "to_dict"):
|
|
105
|
+
result[attr] = value.to_dict()
|
|
106
|
+
elif isinstance(value, dict):
|
|
107
|
+
result[attr] = dict(map(
|
|
108
|
+
lambda item: (item[0], item[1].to_dict())
|
|
109
|
+
if hasattr(item[1], "to_dict") else item,
|
|
110
|
+
value.items()
|
|
111
|
+
))
|
|
112
|
+
else:
|
|
113
|
+
if attr in self.sensitive_list:
|
|
114
|
+
result[attr] = "****"
|
|
115
|
+
else:
|
|
116
|
+
result[attr] = value
|
|
117
|
+
|
|
118
|
+
return result
|
|
119
|
+
|
|
120
|
+
def to_str(self):
|
|
121
|
+
"""Returns the string representation of the model"""
|
|
122
|
+
import simplejson as json
|
|
123
|
+
if six.PY2:
|
|
124
|
+
import sys
|
|
125
|
+
reload(sys)
|
|
126
|
+
sys.setdefaultencoding("utf-8")
|
|
127
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
|
128
|
+
|
|
129
|
+
def __repr__(self):
|
|
130
|
+
"""For `print`"""
|
|
131
|
+
return self.to_str()
|
|
132
|
+
|
|
133
|
+
def __eq__(self, other):
|
|
134
|
+
"""Returns true if both objects are equal"""
|
|
135
|
+
if not isinstance(other, AgentUpgradeParam):
|
|
136
|
+
return False
|
|
137
|
+
|
|
138
|
+
return self.__dict__ == other.__dict__
|
|
139
|
+
|
|
140
|
+
def __ne__(self, other):
|
|
141
|
+
"""Returns true if both objects are not equal"""
|
|
142
|
+
return not self == other
|
|
@@ -0,0 +1,139 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
import six
|
|
4
|
+
|
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
class BatchImportAgentRequest:
|
|
9
|
+
|
|
10
|
+
"""
|
|
11
|
+
Attributes:
|
|
12
|
+
openapi_types (dict): The key is attribute name
|
|
13
|
+
and the value is attribute type.
|
|
14
|
+
attribute_map (dict): The key is attribute name
|
|
15
|
+
and the value is json key in definition.
|
|
16
|
+
"""
|
|
17
|
+
sensitive_list = []
|
|
18
|
+
|
|
19
|
+
openapi_types = {
|
|
20
|
+
'region': 'str',
|
|
21
|
+
'body': 'AgentBatchImportParamNew'
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
attribute_map = {
|
|
25
|
+
'region': 'region',
|
|
26
|
+
'body': 'body'
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
def __init__(self, region=None, body=None):
|
|
30
|
+
"""BatchImportAgentRequest
|
|
31
|
+
|
|
32
|
+
The model defined in huaweicloud sdk
|
|
33
|
+
|
|
34
|
+
:param region: region id,例如:cn-north-7
|
|
35
|
+
:type region: str
|
|
36
|
+
:param body: Body of the BatchImportAgentRequest
|
|
37
|
+
:type body: :class:`huaweicloudsdkaom.v4.AgentBatchImportParamNew`
|
|
38
|
+
"""
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
self._region = None
|
|
43
|
+
self._body = None
|
|
44
|
+
self.discriminator = None
|
|
45
|
+
|
|
46
|
+
self.region = region
|
|
47
|
+
if body is not None:
|
|
48
|
+
self.body = body
|
|
49
|
+
|
|
50
|
+
@property
|
|
51
|
+
def region(self):
|
|
52
|
+
"""Gets the region of this BatchImportAgentRequest.
|
|
53
|
+
|
|
54
|
+
region id,例如:cn-north-7
|
|
55
|
+
|
|
56
|
+
:return: The region of this BatchImportAgentRequest.
|
|
57
|
+
:rtype: str
|
|
58
|
+
"""
|
|
59
|
+
return self._region
|
|
60
|
+
|
|
61
|
+
@region.setter
|
|
62
|
+
def region(self, region):
|
|
63
|
+
"""Sets the region of this BatchImportAgentRequest.
|
|
64
|
+
|
|
65
|
+
region id,例如:cn-north-7
|
|
66
|
+
|
|
67
|
+
:param region: The region of this BatchImportAgentRequest.
|
|
68
|
+
:type region: str
|
|
69
|
+
"""
|
|
70
|
+
self._region = region
|
|
71
|
+
|
|
72
|
+
@property
|
|
73
|
+
def body(self):
|
|
74
|
+
"""Gets the body of this BatchImportAgentRequest.
|
|
75
|
+
|
|
76
|
+
:return: The body of this BatchImportAgentRequest.
|
|
77
|
+
:rtype: :class:`huaweicloudsdkaom.v4.AgentBatchImportParamNew`
|
|
78
|
+
"""
|
|
79
|
+
return self._body
|
|
80
|
+
|
|
81
|
+
@body.setter
|
|
82
|
+
def body(self, body):
|
|
83
|
+
"""Sets the body of this BatchImportAgentRequest.
|
|
84
|
+
|
|
85
|
+
:param body: The body of this BatchImportAgentRequest.
|
|
86
|
+
:type body: :class:`huaweicloudsdkaom.v4.AgentBatchImportParamNew`
|
|
87
|
+
"""
|
|
88
|
+
self._body = body
|
|
89
|
+
|
|
90
|
+
def to_dict(self):
|
|
91
|
+
"""Returns the model properties as a dict"""
|
|
92
|
+
result = {}
|
|
93
|
+
|
|
94
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
|
95
|
+
value = getattr(self, attr)
|
|
96
|
+
if isinstance(value, list):
|
|
97
|
+
result[attr] = list(map(
|
|
98
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
99
|
+
value
|
|
100
|
+
))
|
|
101
|
+
elif hasattr(value, "to_dict"):
|
|
102
|
+
result[attr] = value.to_dict()
|
|
103
|
+
elif isinstance(value, dict):
|
|
104
|
+
result[attr] = dict(map(
|
|
105
|
+
lambda item: (item[0], item[1].to_dict())
|
|
106
|
+
if hasattr(item[1], "to_dict") else item,
|
|
107
|
+
value.items()
|
|
108
|
+
))
|
|
109
|
+
else:
|
|
110
|
+
if attr in self.sensitive_list:
|
|
111
|
+
result[attr] = "****"
|
|
112
|
+
else:
|
|
113
|
+
result[attr] = value
|
|
114
|
+
|
|
115
|
+
return result
|
|
116
|
+
|
|
117
|
+
def to_str(self):
|
|
118
|
+
"""Returns the string representation of the model"""
|
|
119
|
+
import simplejson as json
|
|
120
|
+
if six.PY2:
|
|
121
|
+
import sys
|
|
122
|
+
reload(sys)
|
|
123
|
+
sys.setdefaultencoding("utf-8")
|
|
124
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
|
125
|
+
|
|
126
|
+
def __repr__(self):
|
|
127
|
+
"""For `print`"""
|
|
128
|
+
return self.to_str()
|
|
129
|
+
|
|
130
|
+
def __eq__(self, other):
|
|
131
|
+
"""Returns true if both objects are equal"""
|
|
132
|
+
if not isinstance(other, BatchImportAgentRequest):
|
|
133
|
+
return False
|
|
134
|
+
|
|
135
|
+
return self.__dict__ == other.__dict__
|
|
136
|
+
|
|
137
|
+
def __ne__(self, other):
|
|
138
|
+
"""Returns true if both objects are not equal"""
|
|
139
|
+
return not self == other
|
|
@@ -0,0 +1,116 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
import six
|
|
4
|
+
|
|
5
|
+
from huaweicloudsdkcore.sdk_response import SdkResponse
|
|
6
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
class BatchImportAgentResponse(SdkResponse):
|
|
10
|
+
|
|
11
|
+
"""
|
|
12
|
+
Attributes:
|
|
13
|
+
openapi_types (dict): The key is attribute name
|
|
14
|
+
and the value is attribute type.
|
|
15
|
+
attribute_map (dict): The key is attribute name
|
|
16
|
+
and the value is json key in definition.
|
|
17
|
+
"""
|
|
18
|
+
sensitive_list = []
|
|
19
|
+
|
|
20
|
+
openapi_types = {
|
|
21
|
+
'state': 'bool'
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
attribute_map = {
|
|
25
|
+
'state': 'state'
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
def __init__(self, state=None):
|
|
29
|
+
"""BatchImportAgentResponse
|
|
30
|
+
|
|
31
|
+
The model defined in huaweicloud sdk
|
|
32
|
+
|
|
33
|
+
:param state: 执行状态: - true:成功下发任务。 - false:失败下发任务。
|
|
34
|
+
:type state: bool
|
|
35
|
+
"""
|
|
36
|
+
|
|
37
|
+
super(BatchImportAgentResponse, self).__init__()
|
|
38
|
+
|
|
39
|
+
self._state = None
|
|
40
|
+
self.discriminator = None
|
|
41
|
+
|
|
42
|
+
if state is not None:
|
|
43
|
+
self.state = state
|
|
44
|
+
|
|
45
|
+
@property
|
|
46
|
+
def state(self):
|
|
47
|
+
"""Gets the state of this BatchImportAgentResponse.
|
|
48
|
+
|
|
49
|
+
执行状态: - true:成功下发任务。 - false:失败下发任务。
|
|
50
|
+
|
|
51
|
+
:return: The state of this BatchImportAgentResponse.
|
|
52
|
+
:rtype: bool
|
|
53
|
+
"""
|
|
54
|
+
return self._state
|
|
55
|
+
|
|
56
|
+
@state.setter
|
|
57
|
+
def state(self, state):
|
|
58
|
+
"""Sets the state of this BatchImportAgentResponse.
|
|
59
|
+
|
|
60
|
+
执行状态: - true:成功下发任务。 - false:失败下发任务。
|
|
61
|
+
|
|
62
|
+
:param state: The state of this BatchImportAgentResponse.
|
|
63
|
+
:type state: bool
|
|
64
|
+
"""
|
|
65
|
+
self._state = state
|
|
66
|
+
|
|
67
|
+
def to_dict(self):
|
|
68
|
+
"""Returns the model properties as a dict"""
|
|
69
|
+
result = {}
|
|
70
|
+
|
|
71
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
|
72
|
+
value = getattr(self, attr)
|
|
73
|
+
if isinstance(value, list):
|
|
74
|
+
result[attr] = list(map(
|
|
75
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
76
|
+
value
|
|
77
|
+
))
|
|
78
|
+
elif hasattr(value, "to_dict"):
|
|
79
|
+
result[attr] = value.to_dict()
|
|
80
|
+
elif isinstance(value, dict):
|
|
81
|
+
result[attr] = dict(map(
|
|
82
|
+
lambda item: (item[0], item[1].to_dict())
|
|
83
|
+
if hasattr(item[1], "to_dict") else item,
|
|
84
|
+
value.items()
|
|
85
|
+
))
|
|
86
|
+
else:
|
|
87
|
+
if attr in self.sensitive_list:
|
|
88
|
+
result[attr] = "****"
|
|
89
|
+
else:
|
|
90
|
+
result[attr] = value
|
|
91
|
+
|
|
92
|
+
return result
|
|
93
|
+
|
|
94
|
+
def to_str(self):
|
|
95
|
+
"""Returns the string representation of the model"""
|
|
96
|
+
import simplejson as json
|
|
97
|
+
if six.PY2:
|
|
98
|
+
import sys
|
|
99
|
+
reload(sys)
|
|
100
|
+
sys.setdefaultencoding("utf-8")
|
|
101
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
|
102
|
+
|
|
103
|
+
def __repr__(self):
|
|
104
|
+
"""For `print`"""
|
|
105
|
+
return self.to_str()
|
|
106
|
+
|
|
107
|
+
def __eq__(self, other):
|
|
108
|
+
"""Returns true if both objects are equal"""
|
|
109
|
+
if not isinstance(other, BatchImportAgentResponse):
|
|
110
|
+
return False
|
|
111
|
+
|
|
112
|
+
return self.__dict__ == other.__dict__
|
|
113
|
+
|
|
114
|
+
def __ne__(self, other):
|
|
115
|
+
"""Returns true if both objects are not equal"""
|
|
116
|
+
return not self == other
|
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
import six
|
|
4
|
+
|
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
class BatchUpdateAgentRequest:
|
|
9
|
+
|
|
10
|
+
"""
|
|
11
|
+
Attributes:
|
|
12
|
+
openapi_types (dict): The key is attribute name
|
|
13
|
+
and the value is attribute type.
|
|
14
|
+
attribute_map (dict): The key is attribute name
|
|
15
|
+
and the value is json key in definition.
|
|
16
|
+
"""
|
|
17
|
+
sensitive_list = []
|
|
18
|
+
|
|
19
|
+
openapi_types = {
|
|
20
|
+
'body': 'AgentUpgradeParam'
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
attribute_map = {
|
|
24
|
+
'body': 'body'
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
def __init__(self, body=None):
|
|
28
|
+
"""BatchUpdateAgentRequest
|
|
29
|
+
|
|
30
|
+
The model defined in huaweicloud sdk
|
|
31
|
+
|
|
32
|
+
:param body: Body of the BatchUpdateAgentRequest
|
|
33
|
+
:type body: :class:`huaweicloudsdkaom.v4.AgentUpgradeParam`
|
|
34
|
+
"""
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
self._body = None
|
|
39
|
+
self.discriminator = None
|
|
40
|
+
|
|
41
|
+
if body is not None:
|
|
42
|
+
self.body = body
|
|
43
|
+
|
|
44
|
+
@property
|
|
45
|
+
def body(self):
|
|
46
|
+
"""Gets the body of this BatchUpdateAgentRequest.
|
|
47
|
+
|
|
48
|
+
:return: The body of this BatchUpdateAgentRequest.
|
|
49
|
+
:rtype: :class:`huaweicloudsdkaom.v4.AgentUpgradeParam`
|
|
50
|
+
"""
|
|
51
|
+
return self._body
|
|
52
|
+
|
|
53
|
+
@body.setter
|
|
54
|
+
def body(self, body):
|
|
55
|
+
"""Sets the body of this BatchUpdateAgentRequest.
|
|
56
|
+
|
|
57
|
+
:param body: The body of this BatchUpdateAgentRequest.
|
|
58
|
+
:type body: :class:`huaweicloudsdkaom.v4.AgentUpgradeParam`
|
|
59
|
+
"""
|
|
60
|
+
self._body = body
|
|
61
|
+
|
|
62
|
+
def to_dict(self):
|
|
63
|
+
"""Returns the model properties as a dict"""
|
|
64
|
+
result = {}
|
|
65
|
+
|
|
66
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
|
67
|
+
value = getattr(self, attr)
|
|
68
|
+
if isinstance(value, list):
|
|
69
|
+
result[attr] = list(map(
|
|
70
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
71
|
+
value
|
|
72
|
+
))
|
|
73
|
+
elif hasattr(value, "to_dict"):
|
|
74
|
+
result[attr] = value.to_dict()
|
|
75
|
+
elif isinstance(value, dict):
|
|
76
|
+
result[attr] = dict(map(
|
|
77
|
+
lambda item: (item[0], item[1].to_dict())
|
|
78
|
+
if hasattr(item[1], "to_dict") else item,
|
|
79
|
+
value.items()
|
|
80
|
+
))
|
|
81
|
+
else:
|
|
82
|
+
if attr in self.sensitive_list:
|
|
83
|
+
result[attr] = "****"
|
|
84
|
+
else:
|
|
85
|
+
result[attr] = value
|
|
86
|
+
|
|
87
|
+
return result
|
|
88
|
+
|
|
89
|
+
def to_str(self):
|
|
90
|
+
"""Returns the string representation of the model"""
|
|
91
|
+
import simplejson as json
|
|
92
|
+
if six.PY2:
|
|
93
|
+
import sys
|
|
94
|
+
reload(sys)
|
|
95
|
+
sys.setdefaultencoding("utf-8")
|
|
96
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
|
97
|
+
|
|
98
|
+
def __repr__(self):
|
|
99
|
+
"""For `print`"""
|
|
100
|
+
return self.to_str()
|
|
101
|
+
|
|
102
|
+
def __eq__(self, other):
|
|
103
|
+
"""Returns true if both objects are equal"""
|
|
104
|
+
if not isinstance(other, BatchUpdateAgentRequest):
|
|
105
|
+
return False
|
|
106
|
+
|
|
107
|
+
return self.__dict__ == other.__dict__
|
|
108
|
+
|
|
109
|
+
def __ne__(self, other):
|
|
110
|
+
"""Returns true if both objects are not equal"""
|
|
111
|
+
return not self == other
|
|
@@ -0,0 +1,116 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
import six
|
|
4
|
+
|
|
5
|
+
from huaweicloudsdkcore.sdk_response import SdkResponse
|
|
6
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
class BatchUpdateAgentResponse(SdkResponse):
|
|
10
|
+
|
|
11
|
+
"""
|
|
12
|
+
Attributes:
|
|
13
|
+
openapi_types (dict): The key is attribute name
|
|
14
|
+
and the value is attribute type.
|
|
15
|
+
attribute_map (dict): The key is attribute name
|
|
16
|
+
and the value is json key in definition.
|
|
17
|
+
"""
|
|
18
|
+
sensitive_list = []
|
|
19
|
+
|
|
20
|
+
openapi_types = {
|
|
21
|
+
'state': 'bool'
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
attribute_map = {
|
|
25
|
+
'state': 'state'
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
def __init__(self, state=None):
|
|
29
|
+
"""BatchUpdateAgentResponse
|
|
30
|
+
|
|
31
|
+
The model defined in huaweicloud sdk
|
|
32
|
+
|
|
33
|
+
:param state: 执行状态: - true:成功下发任务。 - false:失败下发任务。
|
|
34
|
+
:type state: bool
|
|
35
|
+
"""
|
|
36
|
+
|
|
37
|
+
super(BatchUpdateAgentResponse, self).__init__()
|
|
38
|
+
|
|
39
|
+
self._state = None
|
|
40
|
+
self.discriminator = None
|
|
41
|
+
|
|
42
|
+
if state is not None:
|
|
43
|
+
self.state = state
|
|
44
|
+
|
|
45
|
+
@property
|
|
46
|
+
def state(self):
|
|
47
|
+
"""Gets the state of this BatchUpdateAgentResponse.
|
|
48
|
+
|
|
49
|
+
执行状态: - true:成功下发任务。 - false:失败下发任务。
|
|
50
|
+
|
|
51
|
+
:return: The state of this BatchUpdateAgentResponse.
|
|
52
|
+
:rtype: bool
|
|
53
|
+
"""
|
|
54
|
+
return self._state
|
|
55
|
+
|
|
56
|
+
@state.setter
|
|
57
|
+
def state(self, state):
|
|
58
|
+
"""Sets the state of this BatchUpdateAgentResponse.
|
|
59
|
+
|
|
60
|
+
执行状态: - true:成功下发任务。 - false:失败下发任务。
|
|
61
|
+
|
|
62
|
+
:param state: The state of this BatchUpdateAgentResponse.
|
|
63
|
+
:type state: bool
|
|
64
|
+
"""
|
|
65
|
+
self._state = state
|
|
66
|
+
|
|
67
|
+
def to_dict(self):
|
|
68
|
+
"""Returns the model properties as a dict"""
|
|
69
|
+
result = {}
|
|
70
|
+
|
|
71
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
|
72
|
+
value = getattr(self, attr)
|
|
73
|
+
if isinstance(value, list):
|
|
74
|
+
result[attr] = list(map(
|
|
75
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
76
|
+
value
|
|
77
|
+
))
|
|
78
|
+
elif hasattr(value, "to_dict"):
|
|
79
|
+
result[attr] = value.to_dict()
|
|
80
|
+
elif isinstance(value, dict):
|
|
81
|
+
result[attr] = dict(map(
|
|
82
|
+
lambda item: (item[0], item[1].to_dict())
|
|
83
|
+
if hasattr(item[1], "to_dict") else item,
|
|
84
|
+
value.items()
|
|
85
|
+
))
|
|
86
|
+
else:
|
|
87
|
+
if attr in self.sensitive_list:
|
|
88
|
+
result[attr] = "****"
|
|
89
|
+
else:
|
|
90
|
+
result[attr] = value
|
|
91
|
+
|
|
92
|
+
return result
|
|
93
|
+
|
|
94
|
+
def to_str(self):
|
|
95
|
+
"""Returns the string representation of the model"""
|
|
96
|
+
import simplejson as json
|
|
97
|
+
if six.PY2:
|
|
98
|
+
import sys
|
|
99
|
+
reload(sys)
|
|
100
|
+
sys.setdefaultencoding("utf-8")
|
|
101
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
|
102
|
+
|
|
103
|
+
def __repr__(self):
|
|
104
|
+
"""For `print`"""
|
|
105
|
+
return self.to_str()
|
|
106
|
+
|
|
107
|
+
def __eq__(self, other):
|
|
108
|
+
"""Returns true if both objects are equal"""
|
|
109
|
+
if not isinstance(other, BatchUpdateAgentResponse):
|
|
110
|
+
return False
|
|
111
|
+
|
|
112
|
+
return self.__dict__ == other.__dict__
|
|
113
|
+
|
|
114
|
+
def __ne__(self, other):
|
|
115
|
+
"""Returns true if both objects are not equal"""
|
|
116
|
+
return not self == other
|