huaweicloudsdkcae 3.1.61__py2.py3-none-any.whl → 3.1.63__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 +2 -1
- huaweicloudsdkcae/v1/cae_async_client.py +8 -5
- huaweicloudsdkcae/v1/cae_client.py +8 -5
- huaweicloudsdkcae/v1/model/__init__.py +2 -1
- huaweicloudsdkcae/v1/model/access_control.py +8 -8
- huaweicloudsdkcae/v1/model/action_on_component_build.py +3 -3
- huaweicloudsdkcae/v1/model/build.py +3 -3
- huaweicloudsdkcae/v1/model/configuration_data_spec.py +104 -104
- huaweicloudsdkcae/v1/model/configuration_item.py +27 -27
- huaweicloudsdkcae/v1/model/{scale_configuration_data_trigger_metadata.py → cron_trigger_scheduler.py} +43 -43
- huaweicloudsdkcae/v1/model/health_check_configuration_exec.py +4 -4
- huaweicloudsdkcae/v1/model/life_cycle_configuration_exec.py +4 -4
- huaweicloudsdkcae/v1/model/scale_configuration_data_trigger.py +7 -7
- huaweicloudsdkcae/v1/model/scaling_trigger_meta.py +202 -0
- {huaweicloudsdkcae-3.1.61.dist-info → huaweicloudsdkcae-3.1.63.dist-info}/METADATA +2 -2
- {huaweicloudsdkcae-3.1.61.dist-info → huaweicloudsdkcae-3.1.63.dist-info}/RECORD +19 -18
- {huaweicloudsdkcae-3.1.61.dist-info → huaweicloudsdkcae-3.1.63.dist-info}/LICENSE +0 -0
- {huaweicloudsdkcae-3.1.61.dist-info → huaweicloudsdkcae-3.1.63.dist-info}/WHEEL +0 -0
- {huaweicloudsdkcae-3.1.61.dist-info → huaweicloudsdkcae-3.1.63.dist-info}/top_level.txt +0 -0
|
@@ -17,52 +17,34 @@ class ConfigurationItem:
|
|
|
17
17
|
sensitive_list = []
|
|
18
18
|
|
|
19
19
|
openapi_types = {
|
|
20
|
-
'
|
|
21
|
-
'
|
|
20
|
+
'type': 'str',
|
|
21
|
+
'data': 'ConfigurationData'
|
|
22
22
|
}
|
|
23
23
|
|
|
24
24
|
attribute_map = {
|
|
25
|
-
'
|
|
26
|
-
'
|
|
25
|
+
'type': 'type',
|
|
26
|
+
'data': 'data'
|
|
27
27
|
}
|
|
28
28
|
|
|
29
|
-
def __init__(self,
|
|
29
|
+
def __init__(self, type=None, data=None):
|
|
30
30
|
"""ConfigurationItem
|
|
31
31
|
|
|
32
32
|
The model defined in huaweicloud sdk
|
|
33
33
|
|
|
34
|
-
:param data:
|
|
35
|
-
:type data: :class:`huaweicloudsdkcae.v1.ConfigurationData`
|
|
36
34
|
:param type: 组件配置类型,当前CAE支持组件配置如下11类。 - rds:云数据库RDS。 - cse:微服务引擎CSE。 - env:环境变量。 - access:访问方式。 - scaling:伸缩策略。 - volume:云存储配置。 - healthCheck:健康检查。 - lifecycle:生命周期管理。 - apm2:性能管理。 - log: 自定义日志路径。 - customMetric: 自定义监控指标。
|
|
37
35
|
:type type: str
|
|
36
|
+
:param data:
|
|
37
|
+
:type data: :class:`huaweicloudsdkcae.v1.ConfigurationData`
|
|
38
38
|
"""
|
|
39
39
|
|
|
40
40
|
|
|
41
41
|
|
|
42
|
-
self._data = None
|
|
43
42
|
self._type = None
|
|
43
|
+
self._data = None
|
|
44
44
|
self.discriminator = None
|
|
45
45
|
|
|
46
|
-
self.data = data
|
|
47
46
|
self.type = type
|
|
48
|
-
|
|
49
|
-
@property
|
|
50
|
-
def data(self):
|
|
51
|
-
"""Gets the data of this ConfigurationItem.
|
|
52
|
-
|
|
53
|
-
:return: The data of this ConfigurationItem.
|
|
54
|
-
:rtype: :class:`huaweicloudsdkcae.v1.ConfigurationData`
|
|
55
|
-
"""
|
|
56
|
-
return self._data
|
|
57
|
-
|
|
58
|
-
@data.setter
|
|
59
|
-
def data(self, data):
|
|
60
|
-
"""Sets the data of this ConfigurationItem.
|
|
61
|
-
|
|
62
|
-
:param data: The data of this ConfigurationItem.
|
|
63
|
-
:type data: :class:`huaweicloudsdkcae.v1.ConfigurationData`
|
|
64
|
-
"""
|
|
65
|
-
self._data = data
|
|
47
|
+
self.data = data
|
|
66
48
|
|
|
67
49
|
@property
|
|
68
50
|
def type(self):
|
|
@@ -86,6 +68,24 @@ class ConfigurationItem:
|
|
|
86
68
|
"""
|
|
87
69
|
self._type = type
|
|
88
70
|
|
|
71
|
+
@property
|
|
72
|
+
def data(self):
|
|
73
|
+
"""Gets the data of this ConfigurationItem.
|
|
74
|
+
|
|
75
|
+
:return: The data of this ConfigurationItem.
|
|
76
|
+
:rtype: :class:`huaweicloudsdkcae.v1.ConfigurationData`
|
|
77
|
+
"""
|
|
78
|
+
return self._data
|
|
79
|
+
|
|
80
|
+
@data.setter
|
|
81
|
+
def data(self, data):
|
|
82
|
+
"""Sets the data of this ConfigurationItem.
|
|
83
|
+
|
|
84
|
+
:param data: The data of this ConfigurationItem.
|
|
85
|
+
:type data: :class:`huaweicloudsdkcae.v1.ConfigurationData`
|
|
86
|
+
"""
|
|
87
|
+
self._data = data
|
|
88
|
+
|
|
89
89
|
def to_dict(self):
|
|
90
90
|
"""Returns the model properties as a dict"""
|
|
91
91
|
result = {}
|
|
@@ -5,7 +5,7 @@ import six
|
|
|
5
5
|
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
class
|
|
8
|
+
class CronTriggerScheduler:
|
|
9
9
|
|
|
10
10
|
"""
|
|
11
11
|
Attributes:
|
|
@@ -17,80 +17,80 @@ class ScaleConfigurationDataTriggerMetadata:
|
|
|
17
17
|
sensitive_list = []
|
|
18
18
|
|
|
19
19
|
openapi_types = {
|
|
20
|
-
'
|
|
21
|
-
'
|
|
20
|
+
'cron': 'str',
|
|
21
|
+
'target_replica': 'int'
|
|
22
22
|
}
|
|
23
23
|
|
|
24
24
|
attribute_map = {
|
|
25
|
-
'
|
|
26
|
-
'
|
|
25
|
+
'cron': 'cron',
|
|
26
|
+
'target_replica': 'target_replica'
|
|
27
27
|
}
|
|
28
28
|
|
|
29
|
-
def __init__(self,
|
|
30
|
-
"""
|
|
29
|
+
def __init__(self, cron=None, target_replica=None):
|
|
30
|
+
"""CronTriggerScheduler
|
|
31
31
|
|
|
32
32
|
The model defined in huaweicloud sdk
|
|
33
33
|
|
|
34
|
-
:param
|
|
35
|
-
:type
|
|
36
|
-
:param
|
|
37
|
-
:type
|
|
34
|
+
:param cron: 触发触发时间点,以五位cron表达式表示。
|
|
35
|
+
:type cron: str
|
|
36
|
+
:param target_replica: 要求达到的实例数。
|
|
37
|
+
:type target_replica: int
|
|
38
38
|
"""
|
|
39
39
|
|
|
40
40
|
|
|
41
41
|
|
|
42
|
-
self.
|
|
43
|
-
self.
|
|
42
|
+
self._cron = None
|
|
43
|
+
self._target_replica = None
|
|
44
44
|
self.discriminator = None
|
|
45
45
|
|
|
46
|
-
if
|
|
47
|
-
self.
|
|
48
|
-
if
|
|
49
|
-
self.
|
|
46
|
+
if cron is not None:
|
|
47
|
+
self.cron = cron
|
|
48
|
+
if target_replica is not None:
|
|
49
|
+
self.target_replica = target_replica
|
|
50
50
|
|
|
51
51
|
@property
|
|
52
|
-
def
|
|
53
|
-
"""Gets the
|
|
52
|
+
def cron(self):
|
|
53
|
+
"""Gets the cron of this CronTriggerScheduler.
|
|
54
54
|
|
|
55
|
-
|
|
55
|
+
触发触发时间点,以五位cron表达式表示。
|
|
56
56
|
|
|
57
|
-
:return: The
|
|
57
|
+
:return: The cron of this CronTriggerScheduler.
|
|
58
58
|
:rtype: str
|
|
59
59
|
"""
|
|
60
|
-
return self.
|
|
60
|
+
return self._cron
|
|
61
61
|
|
|
62
|
-
@
|
|
63
|
-
def
|
|
64
|
-
"""Sets the
|
|
62
|
+
@cron.setter
|
|
63
|
+
def cron(self, cron):
|
|
64
|
+
"""Sets the cron of this CronTriggerScheduler.
|
|
65
65
|
|
|
66
|
-
|
|
66
|
+
触发触发时间点,以五位cron表达式表示。
|
|
67
67
|
|
|
68
|
-
:param
|
|
69
|
-
:type
|
|
68
|
+
:param cron: The cron of this CronTriggerScheduler.
|
|
69
|
+
:type cron: str
|
|
70
70
|
"""
|
|
71
|
-
self.
|
|
71
|
+
self._cron = cron
|
|
72
72
|
|
|
73
73
|
@property
|
|
74
|
-
def
|
|
75
|
-
"""Gets the
|
|
74
|
+
def target_replica(self):
|
|
75
|
+
"""Gets the target_replica of this CronTriggerScheduler.
|
|
76
76
|
|
|
77
|
-
|
|
77
|
+
要求达到的实例数。
|
|
78
78
|
|
|
79
|
-
:return: The
|
|
80
|
-
:rtype:
|
|
79
|
+
:return: The target_replica of this CronTriggerScheduler.
|
|
80
|
+
:rtype: int
|
|
81
81
|
"""
|
|
82
|
-
return self.
|
|
82
|
+
return self._target_replica
|
|
83
83
|
|
|
84
|
-
@
|
|
85
|
-
def
|
|
86
|
-
"""Sets the
|
|
84
|
+
@target_replica.setter
|
|
85
|
+
def target_replica(self, target_replica):
|
|
86
|
+
"""Sets the target_replica of this CronTriggerScheduler.
|
|
87
87
|
|
|
88
|
-
|
|
88
|
+
要求达到的实例数。
|
|
89
89
|
|
|
90
|
-
:param
|
|
91
|
-
:type
|
|
90
|
+
:param target_replica: The target_replica of this CronTriggerScheduler.
|
|
91
|
+
:type target_replica: int
|
|
92
92
|
"""
|
|
93
|
-
self.
|
|
93
|
+
self._target_replica = target_replica
|
|
94
94
|
|
|
95
95
|
def to_dict(self):
|
|
96
96
|
"""Returns the model properties as a dict"""
|
|
@@ -134,7 +134,7 @@ class ScaleConfigurationDataTriggerMetadata:
|
|
|
134
134
|
|
|
135
135
|
def __eq__(self, other):
|
|
136
136
|
"""Returns true if both objects are equal"""
|
|
137
|
-
if not isinstance(other,
|
|
137
|
+
if not isinstance(other, CronTriggerScheduler):
|
|
138
138
|
return False
|
|
139
139
|
|
|
140
140
|
return self.__dict__ == other.__dict__
|
|
@@ -17,7 +17,7 @@ class HealthCheckConfigurationExec:
|
|
|
17
17
|
sensitive_list = []
|
|
18
18
|
|
|
19
19
|
openapi_types = {
|
|
20
|
-
'command': 'list[
|
|
20
|
+
'command': 'list[str]'
|
|
21
21
|
}
|
|
22
22
|
|
|
23
23
|
attribute_map = {
|
|
@@ -30,7 +30,7 @@ class HealthCheckConfigurationExec:
|
|
|
30
30
|
The model defined in huaweicloud sdk
|
|
31
31
|
|
|
32
32
|
:param command: shell语句。
|
|
33
|
-
:type command: list[
|
|
33
|
+
:type command: list[str]
|
|
34
34
|
"""
|
|
35
35
|
|
|
36
36
|
|
|
@@ -48,7 +48,7 @@ class HealthCheckConfigurationExec:
|
|
|
48
48
|
shell语句。
|
|
49
49
|
|
|
50
50
|
:return: The command of this HealthCheckConfigurationExec.
|
|
51
|
-
:rtype: list[
|
|
51
|
+
:rtype: list[str]
|
|
52
52
|
"""
|
|
53
53
|
return self._command
|
|
54
54
|
|
|
@@ -59,7 +59,7 @@ class HealthCheckConfigurationExec:
|
|
|
59
59
|
shell语句。
|
|
60
60
|
|
|
61
61
|
:param command: The command of this HealthCheckConfigurationExec.
|
|
62
|
-
:type command: list[
|
|
62
|
+
:type command: list[str]
|
|
63
63
|
"""
|
|
64
64
|
self._command = command
|
|
65
65
|
|
|
@@ -17,7 +17,7 @@ class LifeCycleConfigurationExec:
|
|
|
17
17
|
sensitive_list = []
|
|
18
18
|
|
|
19
19
|
openapi_types = {
|
|
20
|
-
'command': 'list[
|
|
20
|
+
'command': 'list[str]'
|
|
21
21
|
}
|
|
22
22
|
|
|
23
23
|
attribute_map = {
|
|
@@ -30,7 +30,7 @@ class LifeCycleConfigurationExec:
|
|
|
30
30
|
The model defined in huaweicloud sdk
|
|
31
31
|
|
|
32
32
|
:param command: shell语句。
|
|
33
|
-
:type command: list[
|
|
33
|
+
:type command: list[str]
|
|
34
34
|
"""
|
|
35
35
|
|
|
36
36
|
|
|
@@ -48,7 +48,7 @@ class LifeCycleConfigurationExec:
|
|
|
48
48
|
shell语句。
|
|
49
49
|
|
|
50
50
|
:return: The command of this LifeCycleConfigurationExec.
|
|
51
|
-
:rtype: list[
|
|
51
|
+
:rtype: list[str]
|
|
52
52
|
"""
|
|
53
53
|
return self._command
|
|
54
54
|
|
|
@@ -59,7 +59,7 @@ class LifeCycleConfigurationExec:
|
|
|
59
59
|
shell语句。
|
|
60
60
|
|
|
61
61
|
:param command: The command of this LifeCycleConfigurationExec.
|
|
62
|
-
:type command: list[
|
|
62
|
+
:type command: list[str]
|
|
63
63
|
"""
|
|
64
64
|
self._command = command
|
|
65
65
|
|
|
@@ -18,7 +18,7 @@ class ScaleConfigurationDataTrigger:
|
|
|
18
18
|
|
|
19
19
|
openapi_types = {
|
|
20
20
|
'type': 'str',
|
|
21
|
-
'metadata': '
|
|
21
|
+
'metadata': 'ScalingTriggerMeta'
|
|
22
22
|
}
|
|
23
23
|
|
|
24
24
|
attribute_map = {
|
|
@@ -31,10 +31,10 @@ class ScaleConfigurationDataTrigger:
|
|
|
31
31
|
|
|
32
32
|
The model defined in huaweicloud sdk
|
|
33
33
|
|
|
34
|
-
:param type: 指标类型,支持cpu、memory。
|
|
34
|
+
:param type: 指标类型,支持cpu、memory、cron。
|
|
35
35
|
:type type: str
|
|
36
36
|
:param metadata:
|
|
37
|
-
:type metadata: :class:`huaweicloudsdkcae.v1.
|
|
37
|
+
:type metadata: :class:`huaweicloudsdkcae.v1.ScalingTriggerMeta`
|
|
38
38
|
"""
|
|
39
39
|
|
|
40
40
|
|
|
@@ -52,7 +52,7 @@ class ScaleConfigurationDataTrigger:
|
|
|
52
52
|
def type(self):
|
|
53
53
|
"""Gets the type of this ScaleConfigurationDataTrigger.
|
|
54
54
|
|
|
55
|
-
指标类型,支持cpu、memory。
|
|
55
|
+
指标类型,支持cpu、memory、cron。
|
|
56
56
|
|
|
57
57
|
:return: The type of this ScaleConfigurationDataTrigger.
|
|
58
58
|
:rtype: str
|
|
@@ -63,7 +63,7 @@ class ScaleConfigurationDataTrigger:
|
|
|
63
63
|
def type(self, type):
|
|
64
64
|
"""Sets the type of this ScaleConfigurationDataTrigger.
|
|
65
65
|
|
|
66
|
-
指标类型,支持cpu、memory。
|
|
66
|
+
指标类型,支持cpu、memory、cron。
|
|
67
67
|
|
|
68
68
|
:param type: The type of this ScaleConfigurationDataTrigger.
|
|
69
69
|
:type type: str
|
|
@@ -75,7 +75,7 @@ class ScaleConfigurationDataTrigger:
|
|
|
75
75
|
"""Gets the metadata of this ScaleConfigurationDataTrigger.
|
|
76
76
|
|
|
77
77
|
:return: The metadata of this ScaleConfigurationDataTrigger.
|
|
78
|
-
:rtype: :class:`huaweicloudsdkcae.v1.
|
|
78
|
+
:rtype: :class:`huaweicloudsdkcae.v1.ScalingTriggerMeta`
|
|
79
79
|
"""
|
|
80
80
|
return self._metadata
|
|
81
81
|
|
|
@@ -84,7 +84,7 @@ class ScaleConfigurationDataTrigger:
|
|
|
84
84
|
"""Sets the metadata of this ScaleConfigurationDataTrigger.
|
|
85
85
|
|
|
86
86
|
:param metadata: The metadata of this ScaleConfigurationDataTrigger.
|
|
87
|
-
:type metadata: :class:`huaweicloudsdkcae.v1.
|
|
87
|
+
:type metadata: :class:`huaweicloudsdkcae.v1.ScalingTriggerMeta`
|
|
88
88
|
"""
|
|
89
89
|
self._metadata = metadata
|
|
90
90
|
|
|
@@ -0,0 +1,202 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
import six
|
|
4
|
+
|
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
class ScalingTriggerMeta:
|
|
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
|
+
'type': 'str',
|
|
21
|
+
'value': 'str',
|
|
22
|
+
'period_type': 'str',
|
|
23
|
+
'schedulers': 'list[CronTriggerScheduler]'
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
attribute_map = {
|
|
27
|
+
'type': 'type',
|
|
28
|
+
'value': 'value',
|
|
29
|
+
'period_type': 'period_type',
|
|
30
|
+
'schedulers': 'schedulers'
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
def __init__(self, type=None, value=None, period_type=None, schedulers=None):
|
|
34
|
+
"""ScalingTriggerMeta
|
|
35
|
+
|
|
36
|
+
The model defined in huaweicloud sdk
|
|
37
|
+
|
|
38
|
+
:param type: - type为\"cpu、memory\"时,配置此参数。 - 参数含义:数据类型,当前只支持利用率,默认值为Utilization。
|
|
39
|
+
:type type: str
|
|
40
|
+
:param value: - type为\"cpu、memory\"时,配置此参数。 - 参数含义:触发指标的期望值。
|
|
41
|
+
:type value: str
|
|
42
|
+
:param period_type: - type为\"cron\"时,配置此参数。 - 参数含义:生效周期,只支持day、week、month。
|
|
43
|
+
:type period_type: str
|
|
44
|
+
:param schedulers: - type为\"cron\"时,配置此参数。 - 参数含义:每个周期内触发的时间点和实例数。
|
|
45
|
+
:type schedulers: list[:class:`huaweicloudsdkcae.v1.CronTriggerScheduler`]
|
|
46
|
+
"""
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
|
|
50
|
+
self._type = None
|
|
51
|
+
self._value = None
|
|
52
|
+
self._period_type = None
|
|
53
|
+
self._schedulers = None
|
|
54
|
+
self.discriminator = None
|
|
55
|
+
|
|
56
|
+
if type is not None:
|
|
57
|
+
self.type = type
|
|
58
|
+
if value is not None:
|
|
59
|
+
self.value = value
|
|
60
|
+
if period_type is not None:
|
|
61
|
+
self.period_type = period_type
|
|
62
|
+
if schedulers is not None:
|
|
63
|
+
self.schedulers = schedulers
|
|
64
|
+
|
|
65
|
+
@property
|
|
66
|
+
def type(self):
|
|
67
|
+
"""Gets the type of this ScalingTriggerMeta.
|
|
68
|
+
|
|
69
|
+
- type为\"cpu、memory\"时,配置此参数。 - 参数含义:数据类型,当前只支持利用率,默认值为Utilization。
|
|
70
|
+
|
|
71
|
+
:return: The type of this ScalingTriggerMeta.
|
|
72
|
+
:rtype: str
|
|
73
|
+
"""
|
|
74
|
+
return self._type
|
|
75
|
+
|
|
76
|
+
@type.setter
|
|
77
|
+
def type(self, type):
|
|
78
|
+
"""Sets the type of this ScalingTriggerMeta.
|
|
79
|
+
|
|
80
|
+
- type为\"cpu、memory\"时,配置此参数。 - 参数含义:数据类型,当前只支持利用率,默认值为Utilization。
|
|
81
|
+
|
|
82
|
+
:param type: The type of this ScalingTriggerMeta.
|
|
83
|
+
:type type: str
|
|
84
|
+
"""
|
|
85
|
+
self._type = type
|
|
86
|
+
|
|
87
|
+
@property
|
|
88
|
+
def value(self):
|
|
89
|
+
"""Gets the value of this ScalingTriggerMeta.
|
|
90
|
+
|
|
91
|
+
- type为\"cpu、memory\"时,配置此参数。 - 参数含义:触发指标的期望值。
|
|
92
|
+
|
|
93
|
+
:return: The value of this ScalingTriggerMeta.
|
|
94
|
+
:rtype: str
|
|
95
|
+
"""
|
|
96
|
+
return self._value
|
|
97
|
+
|
|
98
|
+
@value.setter
|
|
99
|
+
def value(self, value):
|
|
100
|
+
"""Sets the value of this ScalingTriggerMeta.
|
|
101
|
+
|
|
102
|
+
- type为\"cpu、memory\"时,配置此参数。 - 参数含义:触发指标的期望值。
|
|
103
|
+
|
|
104
|
+
:param value: The value of this ScalingTriggerMeta.
|
|
105
|
+
:type value: str
|
|
106
|
+
"""
|
|
107
|
+
self._value = value
|
|
108
|
+
|
|
109
|
+
@property
|
|
110
|
+
def period_type(self):
|
|
111
|
+
"""Gets the period_type of this ScalingTriggerMeta.
|
|
112
|
+
|
|
113
|
+
- type为\"cron\"时,配置此参数。 - 参数含义:生效周期,只支持day、week、month。
|
|
114
|
+
|
|
115
|
+
:return: The period_type of this ScalingTriggerMeta.
|
|
116
|
+
:rtype: str
|
|
117
|
+
"""
|
|
118
|
+
return self._period_type
|
|
119
|
+
|
|
120
|
+
@period_type.setter
|
|
121
|
+
def period_type(self, period_type):
|
|
122
|
+
"""Sets the period_type of this ScalingTriggerMeta.
|
|
123
|
+
|
|
124
|
+
- type为\"cron\"时,配置此参数。 - 参数含义:生效周期,只支持day、week、month。
|
|
125
|
+
|
|
126
|
+
:param period_type: The period_type of this ScalingTriggerMeta.
|
|
127
|
+
:type period_type: str
|
|
128
|
+
"""
|
|
129
|
+
self._period_type = period_type
|
|
130
|
+
|
|
131
|
+
@property
|
|
132
|
+
def schedulers(self):
|
|
133
|
+
"""Gets the schedulers of this ScalingTriggerMeta.
|
|
134
|
+
|
|
135
|
+
- type为\"cron\"时,配置此参数。 - 参数含义:每个周期内触发的时间点和实例数。
|
|
136
|
+
|
|
137
|
+
:return: The schedulers of this ScalingTriggerMeta.
|
|
138
|
+
:rtype: list[:class:`huaweicloudsdkcae.v1.CronTriggerScheduler`]
|
|
139
|
+
"""
|
|
140
|
+
return self._schedulers
|
|
141
|
+
|
|
142
|
+
@schedulers.setter
|
|
143
|
+
def schedulers(self, schedulers):
|
|
144
|
+
"""Sets the schedulers of this ScalingTriggerMeta.
|
|
145
|
+
|
|
146
|
+
- type为\"cron\"时,配置此参数。 - 参数含义:每个周期内触发的时间点和实例数。
|
|
147
|
+
|
|
148
|
+
:param schedulers: The schedulers of this ScalingTriggerMeta.
|
|
149
|
+
:type schedulers: list[:class:`huaweicloudsdkcae.v1.CronTriggerScheduler`]
|
|
150
|
+
"""
|
|
151
|
+
self._schedulers = schedulers
|
|
152
|
+
|
|
153
|
+
def to_dict(self):
|
|
154
|
+
"""Returns the model properties as a dict"""
|
|
155
|
+
result = {}
|
|
156
|
+
|
|
157
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
|
158
|
+
value = getattr(self, attr)
|
|
159
|
+
if isinstance(value, list):
|
|
160
|
+
result[attr] = list(map(
|
|
161
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
162
|
+
value
|
|
163
|
+
))
|
|
164
|
+
elif hasattr(value, "to_dict"):
|
|
165
|
+
result[attr] = value.to_dict()
|
|
166
|
+
elif isinstance(value, dict):
|
|
167
|
+
result[attr] = dict(map(
|
|
168
|
+
lambda item: (item[0], item[1].to_dict())
|
|
169
|
+
if hasattr(item[1], "to_dict") else item,
|
|
170
|
+
value.items()
|
|
171
|
+
))
|
|
172
|
+
else:
|
|
173
|
+
if attr in self.sensitive_list:
|
|
174
|
+
result[attr] = "****"
|
|
175
|
+
else:
|
|
176
|
+
result[attr] = value
|
|
177
|
+
|
|
178
|
+
return result
|
|
179
|
+
|
|
180
|
+
def to_str(self):
|
|
181
|
+
"""Returns the string representation of the model"""
|
|
182
|
+
import simplejson as json
|
|
183
|
+
if six.PY2:
|
|
184
|
+
import sys
|
|
185
|
+
reload(sys)
|
|
186
|
+
sys.setdefaultencoding("utf-8")
|
|
187
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
|
188
|
+
|
|
189
|
+
def __repr__(self):
|
|
190
|
+
"""For `print`"""
|
|
191
|
+
return self.to_str()
|
|
192
|
+
|
|
193
|
+
def __eq__(self, other):
|
|
194
|
+
"""Returns true if both objects are equal"""
|
|
195
|
+
if not isinstance(other, ScalingTriggerMeta):
|
|
196
|
+
return False
|
|
197
|
+
|
|
198
|
+
return self.__dict__ == other.__dict__
|
|
199
|
+
|
|
200
|
+
def __ne__(self, other):
|
|
201
|
+
"""Returns true if both objects are not equal"""
|
|
202
|
+
return not self == other
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: huaweicloudsdkcae
|
|
3
|
-
Version: 3.1.
|
|
3
|
+
Version: 3.1.63
|
|
4
4
|
Summary: CAE
|
|
5
5
|
Home-page: https://github.com/huaweicloud/huaweicloud-sdk-python-v3
|
|
6
6
|
Author: HuaweiCloud SDK
|
|
@@ -22,6 +22,6 @@ Classifier: Topic :: Software Development
|
|
|
22
22
|
Requires-Python: >=2.7,!=3.0.*,!=3.1.*,!=3.2.*
|
|
23
23
|
Description-Content-Type: text/markdown
|
|
24
24
|
License-File: LICENSE
|
|
25
|
-
Requires-Dist: huaweicloudsdkcore >=3.1.
|
|
25
|
+
Requires-Dist: huaweicloudsdkcore >=3.1.63
|
|
26
26
|
|
|
27
27
|
See detailed information in [huaweicloud-sdk-python-v3](https://github.com/huaweicloud/huaweicloud-sdk-python-v3).
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
huaweicloudsdkcae/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
2
|
-
huaweicloudsdkcae/v1/__init__.py,sha256=
|
|
3
|
-
huaweicloudsdkcae/v1/cae_async_client.py,sha256=
|
|
4
|
-
huaweicloudsdkcae/v1/cae_client.py,sha256=
|
|
5
|
-
huaweicloudsdkcae/v1/model/__init__.py,sha256=
|
|
2
|
+
huaweicloudsdkcae/v1/__init__.py,sha256=9AT9BSHvY4sFNV2Yvl1eb5RxkXJR4q4yMUiCcP3Woio,16258
|
|
3
|
+
huaweicloudsdkcae/v1/cae_async_client.py,sha256=bxwkObnRdbzyDgnp8tUzgsQXSZhGA4b34Vc42Dj9IZI,87265
|
|
4
|
+
huaweicloudsdkcae/v1/cae_client.py,sha256=k9Vlzxsbw-YXrWD1JpYy52IfAsI4c7mV2847_s3OzcU,86928
|
|
5
|
+
huaweicloudsdkcae/v1/model/__init__.py,sha256=OoTdVkRgiNIhC9c05rxmKz0VJY4A_i0uBJJvoxmlVec,16172
|
|
6
6
|
huaweicloudsdkcae/v1/model/access.py,sha256=0xqNmw_Fm4AGwHLp9NS0NKl4sI0uvoEVIOe5aW9-Gr0,3611
|
|
7
7
|
huaweicloudsdkcae/v1/model/access_configuration_data_items.py,sha256=1GeGYqyVEW5wIHBiPWicE_DmyG-r6UHNnuGHJb0Gc18,6111
|
|
8
8
|
huaweicloudsdkcae/v1/model/access_configuration_http_path.py,sha256=EHJjhTkSlZCcXpeBtHApu36hG7Toj10HLNDKemMkQyw,5037
|
|
9
9
|
huaweicloudsdkcae/v1/model/access_configuration_port.py,sha256=-Bz_rknyMXOo5o7Ec7LsWmq1rby5w5SzKetSY1xkE9g,8415
|
|
10
|
-
huaweicloudsdkcae/v1/model/access_control.py,sha256=
|
|
10
|
+
huaweicloudsdkcae/v1/model/access_control.py,sha256=IyR55rLtu-rUDCCPWhy-9DQDiChtFOw_FLYAnKC6ocE,4397
|
|
11
11
|
huaweicloudsdkcae/v1/model/action_kind_obj.py,sha256=02B38ZXy_d827GXGuxGyE1rF4NDSMNpRYHCIaFbcZlE,2358
|
|
12
|
-
huaweicloudsdkcae/v1/model/action_on_component_build.py,sha256=
|
|
12
|
+
huaweicloudsdkcae/v1/model/action_on_component_build.py,sha256=0z-dm4bR2v0wYcwq60SAoTS350pZOd5wRg5k5x-IuAw,4848
|
|
13
13
|
huaweicloudsdkcae/v1/model/action_on_component_source.py,sha256=fjDxORrFTSxoiSsx7JTozy6ASWdmXmv332LKISXu6To,6456
|
|
14
14
|
huaweicloudsdkcae/v1/model/action_on_component_spec.py,sha256=ou-1UVHvldMfqgwzm_Tg3Yfa_x9ZAM0lnDrdu8jQH7o,6650
|
|
15
15
|
huaweicloudsdkcae/v1/model/agency.py,sha256=bhloj-_yYILkzFrq1w7-o_w_ZnIGmHACeO-_74LZlRU,4490
|
|
@@ -22,7 +22,7 @@ huaweicloudsdkcae/v1/model/application_item.py,sha256=81f_EiDOeBwg1VxoX-lt5CBytb
|
|
|
22
22
|
huaweicloudsdkcae/v1/model/application_kind_obj.py,sha256=O-o2dvZlvdSR4ixFRbaoU8-8XGkUbU-tCnL0Y3yAxg8,2383
|
|
23
23
|
huaweicloudsdkcae/v1/model/application_metadata.py,sha256=n9290w_L1OR6vuOdlUp_eNsfwlPNJ4haXjoiOhI6K_Y,5237
|
|
24
24
|
huaweicloudsdkcae/v1/model/archive.py,sha256=R2ttz3cxqHXS1xkpFYgWNaKDMlhTO9gkkGPg4BUGS-U,3256
|
|
25
|
-
huaweicloudsdkcae/v1/model/build.py,sha256=
|
|
25
|
+
huaweicloudsdkcae/v1/model/build.py,sha256=S97MsBY0Ru35G6avkYKP9HK4KzGmyWI3evAqu8En6no,4586
|
|
26
26
|
huaweicloudsdkcae/v1/model/cert_item.py,sha256=dVoCx-aWPUmoq2S46gm1TV_LnbEw8DI-oNnSxzR9dNg,3728
|
|
27
27
|
huaweicloudsdkcae/v1/model/cert_req.py,sha256=ksRLqKvUeIzc67LX2SA-wFWfaoeLV1haKc--HIa3Jk8,5189
|
|
28
28
|
huaweicloudsdkcae/v1/model/certificate_kind_obj.py,sha256=yQep89AloheRy1n-_flGLaAJvrXw4cZ95y4o9QjOab0,2383
|
|
@@ -39,10 +39,10 @@ huaweicloudsdkcae/v1/model/component_spec.py,sha256=DewnaEad_tCzdXQIDn7yC4QTIwls
|
|
|
39
39
|
huaweicloudsdkcae/v1/model/configuration.py,sha256=pygcUCaChnNIzhr8BHGZTyRHfuNuaLNhSvmBKa-Acts,7455
|
|
40
40
|
huaweicloudsdkcae/v1/model/configuration_data.py,sha256=-kOI7thgIl2D7_BRgJxTWNLxmvMuUFkv4qRIqk_Er0w,3947
|
|
41
41
|
huaweicloudsdkcae/v1/model/configuration_data_metadata.py,sha256=Idnq5quAtextmGDiA-ypM8nj71L1JCrAsZWVMd9eq5E,3836
|
|
42
|
-
huaweicloudsdkcae/v1/model/configuration_data_spec.py,sha256=
|
|
42
|
+
huaweicloudsdkcae/v1/model/configuration_data_spec.py,sha256=KUlZq9ScyzhCSkSwlAkLmag7BuDACDRGNWatZO6fR7w,33746
|
|
43
43
|
huaweicloudsdkcae/v1/model/configuration_data_spec_post_start.py,sha256=vlS4SIQ4F4CpkUhVdHo2gsSyLVEJyrC9bpfxDgLCPsw,3207
|
|
44
44
|
huaweicloudsdkcae/v1/model/configuration_data_spec_pre_stop.py,sha256=1n0B2AfdK26emDcjCLYjWCjPKSuja-bY-OU3WXiZwz4,3193
|
|
45
|
-
huaweicloudsdkcae/v1/model/configuration_item.py,sha256=
|
|
45
|
+
huaweicloudsdkcae/v1/model/configuration_item.py,sha256=u0v5ZGB2MCs1K1uZ5VyNPRtEYgG4rVkM2VBl5E-bpKM,4830
|
|
46
46
|
huaweicloudsdkcae/v1/model/create_agency_request.py,sha256=JCywZuSwrxA7vZMIUu5djNeVBXb0xdxtFHmRKPg-Of4,3059
|
|
47
47
|
huaweicloudsdkcae/v1/model/create_agency_response.py,sha256=V9jh2H7ZsF7PxJe5uU0hWpZesnOnAq1f49y_KdVc-C8,2431
|
|
48
48
|
huaweicloudsdkcae/v1/model/create_application_request.py,sha256=NKtgYofnPwo9WuWAdZPsbwjmuTufYTrHRe1YohhpEgw,7521
|
|
@@ -76,6 +76,7 @@ huaweicloudsdkcae/v1/model/create_timer_rule_response.py,sha256=MTZzJfi4Lv90E7J4
|
|
|
76
76
|
huaweicloudsdkcae/v1/model/create_volume_req.py,sha256=_WYPMtmt6bLDWkbx7SptvdZtzITB3Ft-yAqXz-8GPl8,4521
|
|
77
77
|
huaweicloudsdkcae/v1/model/create_volume_request.py,sha256=yoaZ8jJ0MwAzwArlhPnhkIIsha3E6qjHV-RW2pO4DDg,7389
|
|
78
78
|
huaweicloudsdkcae/v1/model/create_volume_response.py,sha256=xPmAORqgFAA7d1Jvj5U9VXzcW701yKDWgPhj7SrrKuc,2431
|
|
79
|
+
huaweicloudsdkcae/v1/model/cron_trigger_scheduler.py,sha256=7_UnOqjVMMMVgbIxlalt8AB6QrLtN8ifHnBtJCHBaFU,4064
|
|
79
80
|
huaweicloudsdkcae/v1/model/delete_application_request.py,sha256=BE_BFzemflm2ZfXDX3o-6qkLw5ya7e43zUt5a2KLNro,7535
|
|
80
81
|
huaweicloudsdkcae/v1/model/delete_application_response.py,sha256=23OrrDPSmUs3LnzLMQcr_4BGBVQvNIDsjur8rSMXDyc,2451
|
|
81
82
|
huaweicloudsdkcae/v1/model/delete_certificate_request.py,sha256=NlWzbeAp5arwbnM3zTXsFupi2f7sG3pNHVUsz19RDKc,7535
|
|
@@ -103,7 +104,7 @@ huaweicloudsdkcae/v1/model/execute_action_request_body.py,sha256=EvvkvX-9dG7vyRi
|
|
|
103
104
|
huaweicloudsdkcae/v1/model/execute_action_request_body_metadata.py,sha256=iWi8i2l7os54aI5FiLka5HIBcw62HoZNrsitzGwyUaQ,4576
|
|
104
105
|
huaweicloudsdkcae/v1/model/execute_action_response.py,sha256=cAXATWnLZYo3NyM2Ku_2a-EA0S1K9GQqbx0AGqgk2Hs,3153
|
|
105
106
|
huaweicloudsdkcae/v1/model/execution_details.py,sha256=0QdmtEZeCnBUbGrqT7aDZVlH4Mhmvk8Rj6FvUc8ycGE,4308
|
|
106
|
-
huaweicloudsdkcae/v1/model/health_check_configuration_exec.py,sha256=
|
|
107
|
+
huaweicloudsdkcae/v1/model/health_check_configuration_exec.py,sha256=MtBbfh0ppmxjL6_C2G_x7i6YhVEqRc3LQ5d3pKoIWGA,3144
|
|
107
108
|
huaweicloudsdkcae/v1/model/health_check_configuration_http_get.py,sha256=autRIzXCgu9ZntOeIh9Jd23zXODg85KHF-VZJnYKr0g,4587
|
|
108
109
|
huaweicloudsdkcae/v1/model/health_check_configuration_liveness_probe.py,sha256=6pid1R_Uevga5Jrzo4pOa6bOoBl1tljbMxXLOP_oj9M,10611
|
|
109
110
|
huaweicloudsdkcae/v1/model/health_check_configuration_readiness_probe.py,sha256=yZKXV4GB-XChPY3pJ4K4nWHOXXjlhFz2udczRk3mrCU,10646
|
|
@@ -112,7 +113,7 @@ huaweicloudsdkcae/v1/model/health_check_configuration_tcp_socket.py,sha256=8LumU
|
|
|
112
113
|
huaweicloudsdkcae/v1/model/instance.py,sha256=d1O7QK1qKT5JGgurxB20J1zaWOmaZLbWYi1dAOmSQVM,4166
|
|
113
114
|
huaweicloudsdkcae/v1/model/job_kind_obj.py,sha256=dcPL5EY7Jb4XOehOyJZ6uD9mCym_5BgBYWRquiXmJbc,2343
|
|
114
115
|
huaweicloudsdkcae/v1/model/job_spec.py,sha256=52bt5yUf8hNDJQQ6UZQTWAo332pafsSmFxjj-D5k7mc,4441
|
|
115
|
-
huaweicloudsdkcae/v1/model/life_cycle_configuration_exec.py,sha256=
|
|
116
|
+
huaweicloudsdkcae/v1/model/life_cycle_configuration_exec.py,sha256=2jBFT9spg-T46zNQKvQIIY6T92FyxNZ9asa9cRaUegI,3130
|
|
116
117
|
huaweicloudsdkcae/v1/model/list_agencies_request.py,sha256=ZKKOY7EuEbfYU3xE5qxTDcX2Lo_R0bPO1n-kacuK6QY,2315
|
|
117
118
|
huaweicloudsdkcae/v1/model/list_agencies_response.py,sha256=lTpeLiK6XBJYi-D-UexdwuVXSAkaqCqAUA7UNO6ucWM,4996
|
|
118
119
|
huaweicloudsdkcae/v1/model/list_applications_request.py,sha256=0FVlTvi6Fq3Y4KLNzLw4Rm9KG4g5pBk0vS5Zaq0Ttn4,6653
|
|
@@ -152,8 +153,8 @@ huaweicloudsdkcae/v1/model/resource_limit.py,sha256=fFAeQEF2g3emV2pX_y5oDy0QVpIT
|
|
|
152
153
|
huaweicloudsdkcae/v1/model/resource_limit_for_upgrade.py,sha256=4YkfmiI6hRWOvLa6pCnazkJzMntJ9DmE9Ex2SY1Pqbk,4001
|
|
153
154
|
huaweicloudsdkcae/v1/model/retry_job_request.py,sha256=sOIXwmF8Kr8jcc501QPD9a9cw0jBCdX_SFh_G3it9Kc,7224
|
|
154
155
|
huaweicloudsdkcae/v1/model/retry_job_response.py,sha256=AW9sEzz-jOFHK4US4IICgdI5pkfe4ds8H8LA0yq_Kkg,2415
|
|
155
|
-
huaweicloudsdkcae/v1/model/scale_configuration_data_trigger.py,sha256=
|
|
156
|
-
huaweicloudsdkcae/v1/model/
|
|
156
|
+
huaweicloudsdkcae/v1/model/scale_configuration_data_trigger.py,sha256=djp1TTD40f4YwINYhw2LOJRUI5YE_Xx-RuUhM81Aglc,4038
|
|
157
|
+
huaweicloudsdkcae/v1/model/scaling_trigger_meta.py,sha256=fZFBXzO5CCdRSOdRKsecT0JJYFD97mqMVVOscMJ2iIc,6684
|
|
157
158
|
huaweicloudsdkcae/v1/model/show_application_request.py,sha256=t7o2_z-1mJxfzcGapO806PFU_XnpL7RBrJ6_Ec8jgtw,7505
|
|
158
159
|
huaweicloudsdkcae/v1/model/show_application_response.py,sha256=VAcT_aegDnaNYFhwneObXBikKO5v-JdUbeS56EDwp-E,5011
|
|
159
160
|
huaweicloudsdkcae/v1/model/show_component_request.py,sha256=O4-tyyOEHui1Hn9LjlWKcwr71QNxwEhJ4a1u5tcAWYY,8286
|
|
@@ -193,8 +194,8 @@ huaweicloudsdkcae/v1/model/volume_kind_obj.py,sha256=6duZL5W4P8ygOYI7wdi0t2jM6C2
|
|
|
193
194
|
huaweicloudsdkcae/v1/model/volume_spec.py,sha256=jdnhb3qUHD_OeFEUgtjJa6BJCFksoB8HDL_Rl1SSUEs,5051
|
|
194
195
|
huaweicloudsdkcae/v1/region/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
195
196
|
huaweicloudsdkcae/v1/region/cae_region.py,sha256=WLiBOkmz86w9yXiYZNjIrBHbdfTrgQvxcsl4OqVuz8I,1177
|
|
196
|
-
huaweicloudsdkcae-3.1.
|
|
197
|
-
huaweicloudsdkcae-3.1.
|
|
198
|
-
huaweicloudsdkcae-3.1.
|
|
199
|
-
huaweicloudsdkcae-3.1.
|
|
200
|
-
huaweicloudsdkcae-3.1.
|
|
197
|
+
huaweicloudsdkcae-3.1.63.dist-info/LICENSE,sha256=4_VSTLuxcsybRG9N4Isktlj1rAIBBsfl0Tjc0gBTijo,604
|
|
198
|
+
huaweicloudsdkcae-3.1.63.dist-info/METADATA,sha256=5kdAa5Tl2D0OeJ_XwSZVcHUfGw7J7Q6Ic67hezkJCZI,1134
|
|
199
|
+
huaweicloudsdkcae-3.1.63.dist-info/WHEEL,sha256=iYlv5fX357PQyRT2o6tw1bN-YcKFFHKqB_LwHO5wP-g,110
|
|
200
|
+
huaweicloudsdkcae-3.1.63.dist-info/top_level.txt,sha256=bSiBgsEXtNwy-Yv8143HEaMChUEIffdz2t9FM-26QjM,18
|
|
201
|
+
huaweicloudsdkcae-3.1.63.dist-info/RECORD,,
|