huaweicloudsdkcae 3.1.47__py2.py3-none-any.whl → 3.1.49__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 huaweicloudsdkcae might be problematic. Click here for more details.
- huaweicloudsdkcae/v1/__init__.py +57 -13
- huaweicloudsdkcae/v1/cae_async_client.py +1049 -311
- huaweicloudsdkcae/v1/cae_client.py +1037 -311
- huaweicloudsdkcae/v1/model/__init__.py +56 -11
- huaweicloudsdkcae/v1/model/access.py +6 -6
- huaweicloudsdkcae/v1/model/action_on_component_source.py +198 -0
- huaweicloudsdkcae/v1/model/action_on_component_spec.py +7 -7
- huaweicloudsdkcae/v1/model/agency.py +7 -8
- huaweicloudsdkcae/v1/model/agency_item.py +3 -3
- huaweicloudsdkcae/v1/model/agency_metadata.py +3 -3
- huaweicloudsdkcae/v1/model/{log_strategy.py → app_info.py} +42 -42
- huaweicloudsdkcae/v1/model/application_item.py +96 -9
- huaweicloudsdkcae/v1/model/application_metadata.py +9 -9
- huaweicloudsdkcae/v1/model/archive.py +3 -3
- huaweicloudsdkcae/v1/model/build.py +5 -1
- huaweicloudsdkcae/v1/model/cert_item.py +136 -0
- huaweicloudsdkcae/v1/model/cert_req.py +190 -0
- huaweicloudsdkcae/v1/model/component_execution_result.py +202 -0
- huaweicloudsdkcae/v1/model/component_info.py +144 -0
- huaweicloudsdkcae/v1/model/component_item.py +62 -33
- huaweicloudsdkcae/v1/model/component_snapshot_context.py +724 -0
- huaweicloudsdkcae/v1/model/component_snapshot_item.py +70 -74
- huaweicloudsdkcae/v1/model/component_spec.py +126 -97
- huaweicloudsdkcae/v1/model/configuration.py +9 -9
- huaweicloudsdkcae/v1/model/configuration_item.py +6 -6
- huaweicloudsdkcae/v1/model/create_application_request.py +32 -32
- huaweicloudsdkcae/v1/model/create_application_request_body.py +6 -6
- huaweicloudsdkcae/v1/model/create_application_request_body_metadata.py +6 -6
- huaweicloudsdkcae/v1/model/create_application_response.py +6 -6
- huaweicloudsdkcae/v1/model/create_certificate_request.py +168 -0
- huaweicloudsdkcae/v1/model/create_certificate_response.py +174 -0
- huaweicloudsdkcae/v1/model/create_component_configuration_request.py +53 -53
- huaweicloudsdkcae/v1/model/create_component_configuration_request_body.py +6 -6
- huaweicloudsdkcae/v1/model/create_component_request.py +40 -40
- huaweicloudsdkcae/v1/model/create_component_request_body.py +6 -6
- huaweicloudsdkcae/v1/model/create_component_request_body_metadata.py +4 -5
- huaweicloudsdkcae/v1/model/create_component_request_body_spec.py +6 -6
- huaweicloudsdkcae/v1/model/create_component_response.py +10 -10
- huaweicloudsdkcae/v1/model/create_component_spec.py +306 -0
- huaweicloudsdkcae/v1/model/create_domain_req.py +166 -0
- huaweicloudsdkcae/v1/model/create_domain_request.py +168 -0
- huaweicloudsdkcae/v1/model/create_domain_response.py +174 -0
- huaweicloudsdkcae/v1/model/create_environment_request.py +3 -3
- huaweicloudsdkcae/v1/model/create_environment_request_body.py +6 -6
- huaweicloudsdkcae/v1/model/create_environment_request_body_metadata.py +6 -34
- huaweicloudsdkcae/v1/model/create_environment_response.py +20 -74
- huaweicloudsdkcae/v1/model/create_meta_cert.py +114 -0
- huaweicloudsdkcae/v1/model/create_meta_domain.py +114 -0
- huaweicloudsdkcae/v1/model/create_spec_cert.py +170 -0
- huaweicloudsdkcae/v1/model/create_timer_rule_req.py +169 -0
- huaweicloudsdkcae/v1/model/create_timer_rule_request.py +168 -0
- huaweicloudsdkcae/v1/model/create_timer_rule_response.py +170 -0
- huaweicloudsdkcae/v1/model/create_volume_req.py +6 -6
- huaweicloudsdkcae/v1/model/create_volume_request.py +32 -32
- huaweicloudsdkcae/v1/model/delete_application_request.py +37 -37
- huaweicloudsdkcae/v1/model/delete_certificate_request.py +171 -0
- huaweicloudsdkcae/v1/model/delete_certificate_response.py +85 -0
- huaweicloudsdkcae/v1/model/delete_component_configuration_request.py +53 -53
- huaweicloudsdkcae/v1/model/delete_component_request.py +53 -53
- huaweicloudsdkcae/v1/model/delete_domain_request.py +171 -0
- huaweicloudsdkcae/v1/model/delete_domain_response.py +85 -0
- huaweicloudsdkcae/v1/model/delete_environment_request.py +6 -6
- huaweicloudsdkcae/v1/model/delete_environment_response.py +3 -3
- huaweicloudsdkcae/v1/model/delete_timer_rule_request.py +171 -0
- huaweicloudsdkcae/v1/model/delete_timer_rule_response.py +85 -0
- huaweicloudsdkcae/v1/model/delete_volume_request.py +37 -37
- huaweicloudsdkcae/v1/model/delete_volume_response.py +9 -9
- huaweicloudsdkcae/v1/model/domain_item.py +111 -0
- huaweicloudsdkcae/v1/model/environment_item.py +13 -42
- huaweicloudsdkcae/v1/model/event_item.py +36 -7
- huaweicloudsdkcae/v1/model/execute_action_request.py +53 -53
- huaweicloudsdkcae/v1/model/execute_action_request_body.py +6 -6
- huaweicloudsdkcae/v1/model/execute_action_request_body_metadata.py +3 -3
- huaweicloudsdkcae/v1/model/execute_action_response.py +3 -3
- huaweicloudsdkcae/v1/model/execution_details.py +144 -0
- huaweicloudsdkcae/v1/model/instance.py +3 -3
- huaweicloudsdkcae/v1/model/job_spec.py +36 -7
- huaweicloudsdkcae/v1/model/{show_agency_request.py → list_agencies_request.py} +3 -3
- huaweicloudsdkcae/v1/model/list_agencies_response.py +174 -0
- huaweicloudsdkcae/v1/model/list_applications_request.py +34 -34
- huaweicloudsdkcae/v1/model/list_applications_response.py +6 -6
- huaweicloudsdkcae/v1/model/{list_events_request.py → list_certificates_request.py} +29 -85
- huaweicloudsdkcae/v1/model/list_certificates_response.py +174 -0
- huaweicloudsdkcae/v1/model/list_component_configurations_request.py +199 -0
- huaweicloudsdkcae/v1/model/{list_configurations_response.py → list_component_configurations_response.py} +22 -22
- huaweicloudsdkcae/v1/model/list_component_events_request.py +199 -0
- huaweicloudsdkcae/v1/model/{list_events_response.py → list_component_events_response.py} +22 -22
- huaweicloudsdkcae/v1/model/list_component_instances_request.py +199 -0
- huaweicloudsdkcae/v1/model/{list_instances_response.py → list_component_instances_response.py} +22 -22
- huaweicloudsdkcae/v1/model/list_component_snapshots_request.py +53 -53
- huaweicloudsdkcae/v1/model/list_component_snapshots_response.py +6 -6
- huaweicloudsdkcae/v1/model/list_components_request.py +52 -52
- huaweicloudsdkcae/v1/model/list_components_response.py +6 -6
- huaweicloudsdkcae/v1/model/{list_configurations_request.py → list_domains_request.py} +29 -85
- huaweicloudsdkcae/v1/model/list_domains_response.py +174 -0
- huaweicloudsdkcae/v1/model/list_environments_request.py +3 -3
- huaweicloudsdkcae/v1/model/list_environments_response.py +9 -9
- huaweicloudsdkcae/v1/model/{list_instances_request.py → list_timer_rules_request.py} +29 -85
- huaweicloudsdkcae/v1/model/{show_agency_response.py → list_timer_rules_response.py} +27 -31
- huaweicloudsdkcae/v1/model/list_volumes_request.py +35 -35
- huaweicloudsdkcae/v1/model/list_volumes_response.py +9 -9
- huaweicloudsdkcae/v1/model/meta_cert.py +144 -0
- huaweicloudsdkcae/v1/model/meta_domain.py +231 -0
- huaweicloudsdkcae/v1/model/metadata_response.py +46 -133
- huaweicloudsdkcae/v1/model/mount_component.py +9 -9
- huaweicloudsdkcae/v1/model/repo.py +6 -6
- huaweicloudsdkcae/v1/model/retry_job_request.py +63 -6
- huaweicloudsdkcae/v1/model/show_application_request.py +37 -37
- huaweicloudsdkcae/v1/model/show_application_response.py +6 -6
- huaweicloudsdkcae/v1/model/show_component_request.py +53 -53
- huaweicloudsdkcae/v1/model/show_component_response.py +6 -6
- huaweicloudsdkcae/v1/model/show_execution_result_request.py +171 -0
- huaweicloudsdkcae/v1/model/show_execution_result_response.py +170 -0
- huaweicloudsdkcae/v1/model/show_job_request.py +37 -9
- huaweicloudsdkcae/v1/model/show_job_response.py +6 -6
- huaweicloudsdkcae/v1/model/source.py +9 -9
- huaweicloudsdkcae/v1/model/spec_cert.py +202 -0
- huaweicloudsdkcae/v1/model/task.py +68 -68
- huaweicloudsdkcae/v1/model/timer_rule_details.py +434 -0
- huaweicloudsdkcae/v1/model/update_cert_req.py +166 -0
- huaweicloudsdkcae/v1/model/update_certificate_request.py +196 -0
- huaweicloudsdkcae/v1/model/update_certificate_response.py +85 -0
- huaweicloudsdkcae/v1/model/update_component_request.py +53 -53
- huaweicloudsdkcae/v1/model/update_component_request_body.py +10 -10
- huaweicloudsdkcae/v1/model/update_component_request_metadata.py +143 -0
- huaweicloudsdkcae/v1/model/update_component_request_spec.py +52 -19
- huaweicloudsdkcae/v1/model/update_spec_cert.py +170 -0
- huaweicloudsdkcae/v1/model/update_timer_rule_details.py +312 -0
- huaweicloudsdkcae/v1/model/update_timer_rule_req.py +166 -0
- huaweicloudsdkcae/v1/model/update_timer_rule_request.py +196 -0
- huaweicloudsdkcae/v1/model/update_timer_rule_response.py +85 -0
- huaweicloudsdkcae/v1/model/volume.py +15 -15
- huaweicloudsdkcae/v1/model/volume_spec.py +3 -3
- huaweicloudsdkcae/v1/region/cae_region.py +3 -0
- {huaweicloudsdkcae-3.1.47.dist-info → huaweicloudsdkcae-3.1.49.dist-info}/LICENSE +0 -0
- {huaweicloudsdkcae-3.1.47.dist-info → huaweicloudsdkcae-3.1.49.dist-info}/METADATA +2 -2
- huaweicloudsdkcae-3.1.49.dist-info/RECORD +152 -0
- huaweicloudsdkcae/v1/model/environment_metadata.py +0 -318
- huaweicloudsdkcae/v1/model/metadata.py +0 -317
- huaweicloudsdkcae-3.1.47.dist-info/RECORD +0 -107
- {huaweicloudsdkcae-3.1.47.dist-info → huaweicloudsdkcae-3.1.49.dist-info}/WHEEL +0 -0
- {huaweicloudsdkcae-3.1.47.dist-info → huaweicloudsdkcae-3.1.49.dist-info}/top_level.txt +0 -0
|
@@ -0,0 +1,312 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
import six
|
|
4
|
+
|
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
class UpdateTimerRuleDetails:
|
|
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
|
+
'name': 'str',
|
|
21
|
+
'type': 'str',
|
|
22
|
+
'status': 'str',
|
|
23
|
+
'apps': 'list[AppInfo]',
|
|
24
|
+
'components': 'list[ComponentInfo]',
|
|
25
|
+
'cron': 'str',
|
|
26
|
+
'effective_range': 'str',
|
|
27
|
+
'effective_policy': 'str'
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
attribute_map = {
|
|
31
|
+
'name': 'name',
|
|
32
|
+
'type': 'type',
|
|
33
|
+
'status': 'status',
|
|
34
|
+
'apps': 'apps',
|
|
35
|
+
'components': 'components',
|
|
36
|
+
'cron': 'cron',
|
|
37
|
+
'effective_range': 'effective_range',
|
|
38
|
+
'effective_policy': 'effective_policy'
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
def __init__(self, name=None, type=None, status=None, apps=None, components=None, cron=None, effective_range=None, effective_policy=None):
|
|
42
|
+
"""UpdateTimerRuleDetails
|
|
43
|
+
|
|
44
|
+
The model defined in huaweicloud sdk
|
|
45
|
+
|
|
46
|
+
:param name: 定时启停规则名称。
|
|
47
|
+
:type name: str
|
|
48
|
+
:param type: 定时启停规则的类型:stop/start。
|
|
49
|
+
:type type: str
|
|
50
|
+
:param status: 定时启停规则状态(是否开启):on/off。
|
|
51
|
+
:type status: str
|
|
52
|
+
:param apps: 定时启停规则所包含的所有应用,只在生效范围为application的时候需要填写。
|
|
53
|
+
:type apps: list[:class:`huaweicloudsdkcae.v1.AppInfo`]
|
|
54
|
+
:param components: 在定时启停规则所包含的所有组件,只在生效范围为component的时候需要填写。
|
|
55
|
+
:type components: list[:class:`huaweicloudsdkcae.v1.ComponentInfo`]
|
|
56
|
+
:param cron: cron表达式。
|
|
57
|
+
:type cron: str
|
|
58
|
+
:param effective_range: 定时启停规则生效范围: component/application/environment。
|
|
59
|
+
:type effective_range: str
|
|
60
|
+
:param effective_policy: 定时启停规则的定时类别: onetime/periodic。
|
|
61
|
+
:type effective_policy: str
|
|
62
|
+
"""
|
|
63
|
+
|
|
64
|
+
|
|
65
|
+
|
|
66
|
+
self._name = None
|
|
67
|
+
self._type = None
|
|
68
|
+
self._status = None
|
|
69
|
+
self._apps = None
|
|
70
|
+
self._components = None
|
|
71
|
+
self._cron = None
|
|
72
|
+
self._effective_range = None
|
|
73
|
+
self._effective_policy = None
|
|
74
|
+
self.discriminator = None
|
|
75
|
+
|
|
76
|
+
self.name = name
|
|
77
|
+
self.type = type
|
|
78
|
+
self.status = status
|
|
79
|
+
if apps is not None:
|
|
80
|
+
self.apps = apps
|
|
81
|
+
if components is not None:
|
|
82
|
+
self.components = components
|
|
83
|
+
self.cron = cron
|
|
84
|
+
self.effective_range = effective_range
|
|
85
|
+
self.effective_policy = effective_policy
|
|
86
|
+
|
|
87
|
+
@property
|
|
88
|
+
def name(self):
|
|
89
|
+
"""Gets the name of this UpdateTimerRuleDetails.
|
|
90
|
+
|
|
91
|
+
定时启停规则名称。
|
|
92
|
+
|
|
93
|
+
:return: The name of this UpdateTimerRuleDetails.
|
|
94
|
+
:rtype: str
|
|
95
|
+
"""
|
|
96
|
+
return self._name
|
|
97
|
+
|
|
98
|
+
@name.setter
|
|
99
|
+
def name(self, name):
|
|
100
|
+
"""Sets the name of this UpdateTimerRuleDetails.
|
|
101
|
+
|
|
102
|
+
定时启停规则名称。
|
|
103
|
+
|
|
104
|
+
:param name: The name of this UpdateTimerRuleDetails.
|
|
105
|
+
:type name: str
|
|
106
|
+
"""
|
|
107
|
+
self._name = name
|
|
108
|
+
|
|
109
|
+
@property
|
|
110
|
+
def type(self):
|
|
111
|
+
"""Gets the type of this UpdateTimerRuleDetails.
|
|
112
|
+
|
|
113
|
+
定时启停规则的类型:stop/start。
|
|
114
|
+
|
|
115
|
+
:return: The type of this UpdateTimerRuleDetails.
|
|
116
|
+
:rtype: str
|
|
117
|
+
"""
|
|
118
|
+
return self._type
|
|
119
|
+
|
|
120
|
+
@type.setter
|
|
121
|
+
def type(self, type):
|
|
122
|
+
"""Sets the type of this UpdateTimerRuleDetails.
|
|
123
|
+
|
|
124
|
+
定时启停规则的类型:stop/start。
|
|
125
|
+
|
|
126
|
+
:param type: The type of this UpdateTimerRuleDetails.
|
|
127
|
+
:type type: str
|
|
128
|
+
"""
|
|
129
|
+
self._type = type
|
|
130
|
+
|
|
131
|
+
@property
|
|
132
|
+
def status(self):
|
|
133
|
+
"""Gets the status of this UpdateTimerRuleDetails.
|
|
134
|
+
|
|
135
|
+
定时启停规则状态(是否开启):on/off。
|
|
136
|
+
|
|
137
|
+
:return: The status of this UpdateTimerRuleDetails.
|
|
138
|
+
:rtype: str
|
|
139
|
+
"""
|
|
140
|
+
return self._status
|
|
141
|
+
|
|
142
|
+
@status.setter
|
|
143
|
+
def status(self, status):
|
|
144
|
+
"""Sets the status of this UpdateTimerRuleDetails.
|
|
145
|
+
|
|
146
|
+
定时启停规则状态(是否开启):on/off。
|
|
147
|
+
|
|
148
|
+
:param status: The status of this UpdateTimerRuleDetails.
|
|
149
|
+
:type status: str
|
|
150
|
+
"""
|
|
151
|
+
self._status = status
|
|
152
|
+
|
|
153
|
+
@property
|
|
154
|
+
def apps(self):
|
|
155
|
+
"""Gets the apps of this UpdateTimerRuleDetails.
|
|
156
|
+
|
|
157
|
+
定时启停规则所包含的所有应用,只在生效范围为application的时候需要填写。
|
|
158
|
+
|
|
159
|
+
:return: The apps of this UpdateTimerRuleDetails.
|
|
160
|
+
:rtype: list[:class:`huaweicloudsdkcae.v1.AppInfo`]
|
|
161
|
+
"""
|
|
162
|
+
return self._apps
|
|
163
|
+
|
|
164
|
+
@apps.setter
|
|
165
|
+
def apps(self, apps):
|
|
166
|
+
"""Sets the apps of this UpdateTimerRuleDetails.
|
|
167
|
+
|
|
168
|
+
定时启停规则所包含的所有应用,只在生效范围为application的时候需要填写。
|
|
169
|
+
|
|
170
|
+
:param apps: The apps of this UpdateTimerRuleDetails.
|
|
171
|
+
:type apps: list[:class:`huaweicloudsdkcae.v1.AppInfo`]
|
|
172
|
+
"""
|
|
173
|
+
self._apps = apps
|
|
174
|
+
|
|
175
|
+
@property
|
|
176
|
+
def components(self):
|
|
177
|
+
"""Gets the components of this UpdateTimerRuleDetails.
|
|
178
|
+
|
|
179
|
+
在定时启停规则所包含的所有组件,只在生效范围为component的时候需要填写。
|
|
180
|
+
|
|
181
|
+
:return: The components of this UpdateTimerRuleDetails.
|
|
182
|
+
:rtype: list[:class:`huaweicloudsdkcae.v1.ComponentInfo`]
|
|
183
|
+
"""
|
|
184
|
+
return self._components
|
|
185
|
+
|
|
186
|
+
@components.setter
|
|
187
|
+
def components(self, components):
|
|
188
|
+
"""Sets the components of this UpdateTimerRuleDetails.
|
|
189
|
+
|
|
190
|
+
在定时启停规则所包含的所有组件,只在生效范围为component的时候需要填写。
|
|
191
|
+
|
|
192
|
+
:param components: The components of this UpdateTimerRuleDetails.
|
|
193
|
+
:type components: list[:class:`huaweicloudsdkcae.v1.ComponentInfo`]
|
|
194
|
+
"""
|
|
195
|
+
self._components = components
|
|
196
|
+
|
|
197
|
+
@property
|
|
198
|
+
def cron(self):
|
|
199
|
+
"""Gets the cron of this UpdateTimerRuleDetails.
|
|
200
|
+
|
|
201
|
+
cron表达式。
|
|
202
|
+
|
|
203
|
+
:return: The cron of this UpdateTimerRuleDetails.
|
|
204
|
+
:rtype: str
|
|
205
|
+
"""
|
|
206
|
+
return self._cron
|
|
207
|
+
|
|
208
|
+
@cron.setter
|
|
209
|
+
def cron(self, cron):
|
|
210
|
+
"""Sets the cron of this UpdateTimerRuleDetails.
|
|
211
|
+
|
|
212
|
+
cron表达式。
|
|
213
|
+
|
|
214
|
+
:param cron: The cron of this UpdateTimerRuleDetails.
|
|
215
|
+
:type cron: str
|
|
216
|
+
"""
|
|
217
|
+
self._cron = cron
|
|
218
|
+
|
|
219
|
+
@property
|
|
220
|
+
def effective_range(self):
|
|
221
|
+
"""Gets the effective_range of this UpdateTimerRuleDetails.
|
|
222
|
+
|
|
223
|
+
定时启停规则生效范围: component/application/environment。
|
|
224
|
+
|
|
225
|
+
:return: The effective_range of this UpdateTimerRuleDetails.
|
|
226
|
+
:rtype: str
|
|
227
|
+
"""
|
|
228
|
+
return self._effective_range
|
|
229
|
+
|
|
230
|
+
@effective_range.setter
|
|
231
|
+
def effective_range(self, effective_range):
|
|
232
|
+
"""Sets the effective_range of this UpdateTimerRuleDetails.
|
|
233
|
+
|
|
234
|
+
定时启停规则生效范围: component/application/environment。
|
|
235
|
+
|
|
236
|
+
:param effective_range: The effective_range of this UpdateTimerRuleDetails.
|
|
237
|
+
:type effective_range: str
|
|
238
|
+
"""
|
|
239
|
+
self._effective_range = effective_range
|
|
240
|
+
|
|
241
|
+
@property
|
|
242
|
+
def effective_policy(self):
|
|
243
|
+
"""Gets the effective_policy of this UpdateTimerRuleDetails.
|
|
244
|
+
|
|
245
|
+
定时启停规则的定时类别: onetime/periodic。
|
|
246
|
+
|
|
247
|
+
:return: The effective_policy of this UpdateTimerRuleDetails.
|
|
248
|
+
:rtype: str
|
|
249
|
+
"""
|
|
250
|
+
return self._effective_policy
|
|
251
|
+
|
|
252
|
+
@effective_policy.setter
|
|
253
|
+
def effective_policy(self, effective_policy):
|
|
254
|
+
"""Sets the effective_policy of this UpdateTimerRuleDetails.
|
|
255
|
+
|
|
256
|
+
定时启停规则的定时类别: onetime/periodic。
|
|
257
|
+
|
|
258
|
+
:param effective_policy: The effective_policy of this UpdateTimerRuleDetails.
|
|
259
|
+
:type effective_policy: str
|
|
260
|
+
"""
|
|
261
|
+
self._effective_policy = effective_policy
|
|
262
|
+
|
|
263
|
+
def to_dict(self):
|
|
264
|
+
"""Returns the model properties as a dict"""
|
|
265
|
+
result = {}
|
|
266
|
+
|
|
267
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
|
268
|
+
value = getattr(self, attr)
|
|
269
|
+
if isinstance(value, list):
|
|
270
|
+
result[attr] = list(map(
|
|
271
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
272
|
+
value
|
|
273
|
+
))
|
|
274
|
+
elif hasattr(value, "to_dict"):
|
|
275
|
+
result[attr] = value.to_dict()
|
|
276
|
+
elif isinstance(value, dict):
|
|
277
|
+
result[attr] = dict(map(
|
|
278
|
+
lambda item: (item[0], item[1].to_dict())
|
|
279
|
+
if hasattr(item[1], "to_dict") else item,
|
|
280
|
+
value.items()
|
|
281
|
+
))
|
|
282
|
+
else:
|
|
283
|
+
if attr in self.sensitive_list:
|
|
284
|
+
result[attr] = "****"
|
|
285
|
+
else:
|
|
286
|
+
result[attr] = value
|
|
287
|
+
|
|
288
|
+
return result
|
|
289
|
+
|
|
290
|
+
def to_str(self):
|
|
291
|
+
"""Returns the string representation of the model"""
|
|
292
|
+
import simplejson as json
|
|
293
|
+
if six.PY2:
|
|
294
|
+
import sys
|
|
295
|
+
reload(sys)
|
|
296
|
+
sys.setdefaultencoding("utf-8")
|
|
297
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
|
298
|
+
|
|
299
|
+
def __repr__(self):
|
|
300
|
+
"""For `print`"""
|
|
301
|
+
return self.to_str()
|
|
302
|
+
|
|
303
|
+
def __eq__(self, other):
|
|
304
|
+
"""Returns true if both objects are equal"""
|
|
305
|
+
if not isinstance(other, UpdateTimerRuleDetails):
|
|
306
|
+
return False
|
|
307
|
+
|
|
308
|
+
return self.__dict__ == other.__dict__
|
|
309
|
+
|
|
310
|
+
def __ne__(self, other):
|
|
311
|
+
"""Returns true if both objects are not equal"""
|
|
312
|
+
return not self == other
|
|
@@ -0,0 +1,166 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
import six
|
|
4
|
+
|
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
class UpdateTimerRuleReq:
|
|
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
|
+
'api_version': 'str',
|
|
21
|
+
'kind': 'str',
|
|
22
|
+
'spec': 'UpdateTimerRuleDetails'
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
attribute_map = {
|
|
26
|
+
'api_version': 'api_version',
|
|
27
|
+
'kind': 'kind',
|
|
28
|
+
'spec': 'spec'
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
def __init__(self, api_version=None, kind=None, spec=None):
|
|
32
|
+
"""UpdateTimerRuleReq
|
|
33
|
+
|
|
34
|
+
The model defined in huaweicloud sdk
|
|
35
|
+
|
|
36
|
+
:param api_version: API版本,固定值“v1”,该值不可修改。
|
|
37
|
+
:type api_version: str
|
|
38
|
+
:param kind: 资源种类。
|
|
39
|
+
:type kind: str
|
|
40
|
+
:param spec:
|
|
41
|
+
:type spec: :class:`huaweicloudsdkcae.v1.UpdateTimerRuleDetails`
|
|
42
|
+
"""
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
self._api_version = None
|
|
47
|
+
self._kind = None
|
|
48
|
+
self._spec = None
|
|
49
|
+
self.discriminator = None
|
|
50
|
+
|
|
51
|
+
self.api_version = api_version
|
|
52
|
+
self.kind = kind
|
|
53
|
+
self.spec = spec
|
|
54
|
+
|
|
55
|
+
@property
|
|
56
|
+
def api_version(self):
|
|
57
|
+
"""Gets the api_version of this UpdateTimerRuleReq.
|
|
58
|
+
|
|
59
|
+
API版本,固定值“v1”,该值不可修改。
|
|
60
|
+
|
|
61
|
+
:return: The api_version of this UpdateTimerRuleReq.
|
|
62
|
+
:rtype: str
|
|
63
|
+
"""
|
|
64
|
+
return self._api_version
|
|
65
|
+
|
|
66
|
+
@api_version.setter
|
|
67
|
+
def api_version(self, api_version):
|
|
68
|
+
"""Sets the api_version of this UpdateTimerRuleReq.
|
|
69
|
+
|
|
70
|
+
API版本,固定值“v1”,该值不可修改。
|
|
71
|
+
|
|
72
|
+
:param api_version: The api_version of this UpdateTimerRuleReq.
|
|
73
|
+
:type api_version: str
|
|
74
|
+
"""
|
|
75
|
+
self._api_version = api_version
|
|
76
|
+
|
|
77
|
+
@property
|
|
78
|
+
def kind(self):
|
|
79
|
+
"""Gets the kind of this UpdateTimerRuleReq.
|
|
80
|
+
|
|
81
|
+
资源种类。
|
|
82
|
+
|
|
83
|
+
:return: The kind of this UpdateTimerRuleReq.
|
|
84
|
+
:rtype: str
|
|
85
|
+
"""
|
|
86
|
+
return self._kind
|
|
87
|
+
|
|
88
|
+
@kind.setter
|
|
89
|
+
def kind(self, kind):
|
|
90
|
+
"""Sets the kind of this UpdateTimerRuleReq.
|
|
91
|
+
|
|
92
|
+
资源种类。
|
|
93
|
+
|
|
94
|
+
:param kind: The kind of this UpdateTimerRuleReq.
|
|
95
|
+
:type kind: str
|
|
96
|
+
"""
|
|
97
|
+
self._kind = kind
|
|
98
|
+
|
|
99
|
+
@property
|
|
100
|
+
def spec(self):
|
|
101
|
+
"""Gets the spec of this UpdateTimerRuleReq.
|
|
102
|
+
|
|
103
|
+
:return: The spec of this UpdateTimerRuleReq.
|
|
104
|
+
:rtype: :class:`huaweicloudsdkcae.v1.UpdateTimerRuleDetails`
|
|
105
|
+
"""
|
|
106
|
+
return self._spec
|
|
107
|
+
|
|
108
|
+
@spec.setter
|
|
109
|
+
def spec(self, spec):
|
|
110
|
+
"""Sets the spec of this UpdateTimerRuleReq.
|
|
111
|
+
|
|
112
|
+
:param spec: The spec of this UpdateTimerRuleReq.
|
|
113
|
+
:type spec: :class:`huaweicloudsdkcae.v1.UpdateTimerRuleDetails`
|
|
114
|
+
"""
|
|
115
|
+
self._spec = spec
|
|
116
|
+
|
|
117
|
+
def to_dict(self):
|
|
118
|
+
"""Returns the model properties as a dict"""
|
|
119
|
+
result = {}
|
|
120
|
+
|
|
121
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
|
122
|
+
value = getattr(self, attr)
|
|
123
|
+
if isinstance(value, list):
|
|
124
|
+
result[attr] = list(map(
|
|
125
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
126
|
+
value
|
|
127
|
+
))
|
|
128
|
+
elif hasattr(value, "to_dict"):
|
|
129
|
+
result[attr] = value.to_dict()
|
|
130
|
+
elif isinstance(value, dict):
|
|
131
|
+
result[attr] = dict(map(
|
|
132
|
+
lambda item: (item[0], item[1].to_dict())
|
|
133
|
+
if hasattr(item[1], "to_dict") else item,
|
|
134
|
+
value.items()
|
|
135
|
+
))
|
|
136
|
+
else:
|
|
137
|
+
if attr in self.sensitive_list:
|
|
138
|
+
result[attr] = "****"
|
|
139
|
+
else:
|
|
140
|
+
result[attr] = value
|
|
141
|
+
|
|
142
|
+
return result
|
|
143
|
+
|
|
144
|
+
def to_str(self):
|
|
145
|
+
"""Returns the string representation of the model"""
|
|
146
|
+
import simplejson as json
|
|
147
|
+
if six.PY2:
|
|
148
|
+
import sys
|
|
149
|
+
reload(sys)
|
|
150
|
+
sys.setdefaultencoding("utf-8")
|
|
151
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
|
152
|
+
|
|
153
|
+
def __repr__(self):
|
|
154
|
+
"""For `print`"""
|
|
155
|
+
return self.to_str()
|
|
156
|
+
|
|
157
|
+
def __eq__(self, other):
|
|
158
|
+
"""Returns true if both objects are equal"""
|
|
159
|
+
if not isinstance(other, UpdateTimerRuleReq):
|
|
160
|
+
return False
|
|
161
|
+
|
|
162
|
+
return self.__dict__ == other.__dict__
|
|
163
|
+
|
|
164
|
+
def __ne__(self, other):
|
|
165
|
+
"""Returns true if both objects are not equal"""
|
|
166
|
+
return not self == other
|
|
@@ -0,0 +1,196 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
import six
|
|
4
|
+
|
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
class UpdateTimerRuleRequest:
|
|
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
|
+
'x_enterprise_project_id': 'str',
|
|
21
|
+
'x_environment_id': 'str',
|
|
22
|
+
'timer_rule_id': 'str',
|
|
23
|
+
'body': 'UpdateTimerRuleReq'
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
attribute_map = {
|
|
27
|
+
'x_enterprise_project_id': 'X-Enterprise-Project-ID',
|
|
28
|
+
'x_environment_id': 'X-Environment-ID',
|
|
29
|
+
'timer_rule_id': 'timer_rule_id',
|
|
30
|
+
'body': 'body'
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
def __init__(self, x_enterprise_project_id=None, x_environment_id=None, timer_rule_id=None, body=None):
|
|
34
|
+
"""UpdateTimerRuleRequest
|
|
35
|
+
|
|
36
|
+
The model defined in huaweicloud sdk
|
|
37
|
+
|
|
38
|
+
:param x_enterprise_project_id: 企业项目ID。 - 创建环境时,环境会绑定企业项目ID。 - 最大长度36字节,带“-”连字符的UUID格式,或者是字符串“0”。 - 该字段不传(或传为字符串“0”)时,则查询默认企业项目下的资源。 > 关于企业项目ID的获取及企业项目特性的详细信息,请参见《[企业管理服务用户指南](https://support.huaweicloud.com/usermanual-em/zh-cn_topic_0126101490.html)》。
|
|
39
|
+
:type x_enterprise_project_id: str
|
|
40
|
+
:param x_environment_id: 环境ID。 - 获取环境ID,通过《[云应用引擎API参考](https://support.huaweicloud.com/api-cae/ListEnvironments.html)》的“获取环境列表”章节获取环境信息。 - 请求响应成功后在响应体的items数组中的一个元素即为一个环境的信息,其中id字段即是环境ID。
|
|
41
|
+
:type x_environment_id: str
|
|
42
|
+
:param timer_rule_id: 定时启停规则ID。
|
|
43
|
+
:type timer_rule_id: str
|
|
44
|
+
:param body: Body of the UpdateTimerRuleRequest
|
|
45
|
+
:type body: :class:`huaweicloudsdkcae.v1.UpdateTimerRuleReq`
|
|
46
|
+
"""
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
|
|
50
|
+
self._x_enterprise_project_id = None
|
|
51
|
+
self._x_environment_id = None
|
|
52
|
+
self._timer_rule_id = None
|
|
53
|
+
self._body = None
|
|
54
|
+
self.discriminator = None
|
|
55
|
+
|
|
56
|
+
if x_enterprise_project_id is not None:
|
|
57
|
+
self.x_enterprise_project_id = x_enterprise_project_id
|
|
58
|
+
self.x_environment_id = x_environment_id
|
|
59
|
+
self.timer_rule_id = timer_rule_id
|
|
60
|
+
if body is not None:
|
|
61
|
+
self.body = body
|
|
62
|
+
|
|
63
|
+
@property
|
|
64
|
+
def x_enterprise_project_id(self):
|
|
65
|
+
"""Gets the x_enterprise_project_id of this UpdateTimerRuleRequest.
|
|
66
|
+
|
|
67
|
+
企业项目ID。 - 创建环境时,环境会绑定企业项目ID。 - 最大长度36字节,带“-”连字符的UUID格式,或者是字符串“0”。 - 该字段不传(或传为字符串“0”)时,则查询默认企业项目下的资源。 > 关于企业项目ID的获取及企业项目特性的详细信息,请参见《[企业管理服务用户指南](https://support.huaweicloud.com/usermanual-em/zh-cn_topic_0126101490.html)》。
|
|
68
|
+
|
|
69
|
+
:return: The x_enterprise_project_id of this UpdateTimerRuleRequest.
|
|
70
|
+
:rtype: str
|
|
71
|
+
"""
|
|
72
|
+
return self._x_enterprise_project_id
|
|
73
|
+
|
|
74
|
+
@x_enterprise_project_id.setter
|
|
75
|
+
def x_enterprise_project_id(self, x_enterprise_project_id):
|
|
76
|
+
"""Sets the x_enterprise_project_id of this UpdateTimerRuleRequest.
|
|
77
|
+
|
|
78
|
+
企业项目ID。 - 创建环境时,环境会绑定企业项目ID。 - 最大长度36字节,带“-”连字符的UUID格式,或者是字符串“0”。 - 该字段不传(或传为字符串“0”)时,则查询默认企业项目下的资源。 > 关于企业项目ID的获取及企业项目特性的详细信息,请参见《[企业管理服务用户指南](https://support.huaweicloud.com/usermanual-em/zh-cn_topic_0126101490.html)》。
|
|
79
|
+
|
|
80
|
+
:param x_enterprise_project_id: The x_enterprise_project_id of this UpdateTimerRuleRequest.
|
|
81
|
+
:type x_enterprise_project_id: str
|
|
82
|
+
"""
|
|
83
|
+
self._x_enterprise_project_id = x_enterprise_project_id
|
|
84
|
+
|
|
85
|
+
@property
|
|
86
|
+
def x_environment_id(self):
|
|
87
|
+
"""Gets the x_environment_id of this UpdateTimerRuleRequest.
|
|
88
|
+
|
|
89
|
+
环境ID。 - 获取环境ID,通过《[云应用引擎API参考](https://support.huaweicloud.com/api-cae/ListEnvironments.html)》的“获取环境列表”章节获取环境信息。 - 请求响应成功后在响应体的items数组中的一个元素即为一个环境的信息,其中id字段即是环境ID。
|
|
90
|
+
|
|
91
|
+
:return: The x_environment_id of this UpdateTimerRuleRequest.
|
|
92
|
+
:rtype: str
|
|
93
|
+
"""
|
|
94
|
+
return self._x_environment_id
|
|
95
|
+
|
|
96
|
+
@x_environment_id.setter
|
|
97
|
+
def x_environment_id(self, x_environment_id):
|
|
98
|
+
"""Sets the x_environment_id of this UpdateTimerRuleRequest.
|
|
99
|
+
|
|
100
|
+
环境ID。 - 获取环境ID,通过《[云应用引擎API参考](https://support.huaweicloud.com/api-cae/ListEnvironments.html)》的“获取环境列表”章节获取环境信息。 - 请求响应成功后在响应体的items数组中的一个元素即为一个环境的信息,其中id字段即是环境ID。
|
|
101
|
+
|
|
102
|
+
:param x_environment_id: The x_environment_id of this UpdateTimerRuleRequest.
|
|
103
|
+
:type x_environment_id: str
|
|
104
|
+
"""
|
|
105
|
+
self._x_environment_id = x_environment_id
|
|
106
|
+
|
|
107
|
+
@property
|
|
108
|
+
def timer_rule_id(self):
|
|
109
|
+
"""Gets the timer_rule_id of this UpdateTimerRuleRequest.
|
|
110
|
+
|
|
111
|
+
定时启停规则ID。
|
|
112
|
+
|
|
113
|
+
:return: The timer_rule_id of this UpdateTimerRuleRequest.
|
|
114
|
+
:rtype: str
|
|
115
|
+
"""
|
|
116
|
+
return self._timer_rule_id
|
|
117
|
+
|
|
118
|
+
@timer_rule_id.setter
|
|
119
|
+
def timer_rule_id(self, timer_rule_id):
|
|
120
|
+
"""Sets the timer_rule_id of this UpdateTimerRuleRequest.
|
|
121
|
+
|
|
122
|
+
定时启停规则ID。
|
|
123
|
+
|
|
124
|
+
:param timer_rule_id: The timer_rule_id of this UpdateTimerRuleRequest.
|
|
125
|
+
:type timer_rule_id: str
|
|
126
|
+
"""
|
|
127
|
+
self._timer_rule_id = timer_rule_id
|
|
128
|
+
|
|
129
|
+
@property
|
|
130
|
+
def body(self):
|
|
131
|
+
"""Gets the body of this UpdateTimerRuleRequest.
|
|
132
|
+
|
|
133
|
+
:return: The body of this UpdateTimerRuleRequest.
|
|
134
|
+
:rtype: :class:`huaweicloudsdkcae.v1.UpdateTimerRuleReq`
|
|
135
|
+
"""
|
|
136
|
+
return self._body
|
|
137
|
+
|
|
138
|
+
@body.setter
|
|
139
|
+
def body(self, body):
|
|
140
|
+
"""Sets the body of this UpdateTimerRuleRequest.
|
|
141
|
+
|
|
142
|
+
:param body: The body of this UpdateTimerRuleRequest.
|
|
143
|
+
:type body: :class:`huaweicloudsdkcae.v1.UpdateTimerRuleReq`
|
|
144
|
+
"""
|
|
145
|
+
self._body = body
|
|
146
|
+
|
|
147
|
+
def to_dict(self):
|
|
148
|
+
"""Returns the model properties as a dict"""
|
|
149
|
+
result = {}
|
|
150
|
+
|
|
151
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
|
152
|
+
value = getattr(self, attr)
|
|
153
|
+
if isinstance(value, list):
|
|
154
|
+
result[attr] = list(map(
|
|
155
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
156
|
+
value
|
|
157
|
+
))
|
|
158
|
+
elif hasattr(value, "to_dict"):
|
|
159
|
+
result[attr] = value.to_dict()
|
|
160
|
+
elif isinstance(value, dict):
|
|
161
|
+
result[attr] = dict(map(
|
|
162
|
+
lambda item: (item[0], item[1].to_dict())
|
|
163
|
+
if hasattr(item[1], "to_dict") else item,
|
|
164
|
+
value.items()
|
|
165
|
+
))
|
|
166
|
+
else:
|
|
167
|
+
if attr in self.sensitive_list:
|
|
168
|
+
result[attr] = "****"
|
|
169
|
+
else:
|
|
170
|
+
result[attr] = value
|
|
171
|
+
|
|
172
|
+
return result
|
|
173
|
+
|
|
174
|
+
def to_str(self):
|
|
175
|
+
"""Returns the string representation of the model"""
|
|
176
|
+
import simplejson as json
|
|
177
|
+
if six.PY2:
|
|
178
|
+
import sys
|
|
179
|
+
reload(sys)
|
|
180
|
+
sys.setdefaultencoding("utf-8")
|
|
181
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
|
182
|
+
|
|
183
|
+
def __repr__(self):
|
|
184
|
+
"""For `print`"""
|
|
185
|
+
return self.to_str()
|
|
186
|
+
|
|
187
|
+
def __eq__(self, other):
|
|
188
|
+
"""Returns true if both objects are equal"""
|
|
189
|
+
if not isinstance(other, UpdateTimerRuleRequest):
|
|
190
|
+
return False
|
|
191
|
+
|
|
192
|
+
return self.__dict__ == other.__dict__
|
|
193
|
+
|
|
194
|
+
def __ne__(self, other):
|
|
195
|
+
"""Returns true if both objects are not equal"""
|
|
196
|
+
return not self == other
|