Skip to content

Commit a378ed1

Browse files
author
Flexify
committed
v2.14.0-SNAPSHOT build 1384
1 parent 3ec6138 commit a378ed1

File tree

4 files changed

+78
-6
lines changed

4 files changed

+78
-6
lines changed

docs/MappingStat.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ Name | Type | Description | Notes
3636
**total_upload** | **int** | | [optional]
3737
**uploading_bytes_per_second** | **float** | | [optional]
3838
**uploading_objects_per_second** | **float** | | [optional]
39+
**wait_reason** | **str** | The reason why this mapping is in the WAITING state | [optional]
3940

4041
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
4142

docs/MigrationStat.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ Name | Type | Description | Notes
3737
**total_upload** | **int** | | [optional]
3838
**uploading_bytes_per_second** | **float** | | [optional]
3939
**uploading_objects_per_second** | **float** | | [optional]
40+
**wait_reason** | **str** | The reason why this mapping is in the WAITING state | [optional]
4041

4142
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
4243

flexify_api/models/mapping_stat.py

Lines changed: 38 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,8 @@ class MappingStat(object):
6565
'step': 'str',
6666
'total_upload': 'int',
6767
'uploading_bytes_per_second': 'float',
68-
'uploading_objects_per_second': 'float'
68+
'uploading_objects_per_second': 'float',
69+
'wait_reason': 'str'
6970
}
7071

7172
attribute_map = {
@@ -101,10 +102,11 @@ class MappingStat(object):
101102
'step': 'step',
102103
'total_upload': 'totalUpload',
103104
'uploading_bytes_per_second': 'uploadingBytesPerSecond',
104-
'uploading_objects_per_second': 'uploadingObjectsPerSecond'
105+
'uploading_objects_per_second': 'uploadingObjectsPerSecond',
106+
'wait_reason': 'waitReason'
105107
}
106108

107-
def __init__(self, active_engines=None, active_slots=None, active_streams=None, bytes_failed=None, bytes_glacier_restore_started=None, bytes_not_matching_pattern=None, bytes_processed=None, bytes_skipped=None, bytes_skipped_glacier=None, bytes_uploaded=None, cleanup=None, dst_region=None, estimated=None, finished=None, initial_bytes=None, initial_objects=None, objects_failed=None, objects_glacier_restore_started=None, objects_not_matching_pattern=None, objects_processed=None, objects_skipped=None, objects_skipped_glacier=None, objects_uploaded=None, processing_objects_per_second=None, progress=None, retried=None, src_region=None, started=None, state=None, step=None, total_upload=None, uploading_bytes_per_second=None, uploading_objects_per_second=None, _configuration=None): # noqa: E501
109+
def __init__(self, active_engines=None, active_slots=None, active_streams=None, bytes_failed=None, bytes_glacier_restore_started=None, bytes_not_matching_pattern=None, bytes_processed=None, bytes_skipped=None, bytes_skipped_glacier=None, bytes_uploaded=None, cleanup=None, dst_region=None, estimated=None, finished=None, initial_bytes=None, initial_objects=None, objects_failed=None, objects_glacier_restore_started=None, objects_not_matching_pattern=None, objects_processed=None, objects_skipped=None, objects_skipped_glacier=None, objects_uploaded=None, processing_objects_per_second=None, progress=None, retried=None, src_region=None, started=None, state=None, step=None, total_upload=None, uploading_bytes_per_second=None, uploading_objects_per_second=None, wait_reason=None, _configuration=None): # noqa: E501
108110
"""MappingStat - a model defined in Swagger""" # noqa: E501
109111
if _configuration is None:
110112
_configuration = Configuration()
@@ -143,6 +145,7 @@ def __init__(self, active_engines=None, active_slots=None, active_streams=None,
143145
self._total_upload = None
144146
self._uploading_bytes_per_second = None
145147
self._uploading_objects_per_second = None
148+
self._wait_reason = None
146149
self.discriminator = None
147150

148151
if active_engines is not None:
@@ -211,6 +214,8 @@ def __init__(self, active_engines=None, active_slots=None, active_streams=None,
211214
self.uploading_bytes_per_second = uploading_bytes_per_second
212215
if uploading_objects_per_second is not None:
213216
self.uploading_objects_per_second = uploading_objects_per_second
217+
if wait_reason is not None:
218+
self.wait_reason = wait_reason
214219

215220
@property
216221
def active_engines(self):
@@ -947,6 +952,36 @@ def uploading_objects_per_second(self, uploading_objects_per_second):
947952

948953
self._uploading_objects_per_second = uploading_objects_per_second
949954

955+
@property
956+
def wait_reason(self):
957+
"""Gets the wait_reason of this MappingStat. # noqa: E501
958+
959+
The reason why this mapping is in the WAITING state # noqa: E501
960+
961+
:return: The wait_reason of this MappingStat. # noqa: E501
962+
:rtype: str
963+
"""
964+
return self._wait_reason
965+
966+
@wait_reason.setter
967+
def wait_reason(self, wait_reason):
968+
"""Sets the wait_reason of this MappingStat.
969+
970+
The reason why this mapping is in the WAITING state # noqa: E501
971+
972+
:param wait_reason: The wait_reason of this MappingStat. # noqa: E501
973+
:type: str
974+
"""
975+
allowed_values = ["MIGRATION_QUEUED", "NO_ENGINES", "NO_ENGINE_RESOURCES"] # noqa: E501
976+
if (self._configuration.client_side_validation and
977+
wait_reason not in allowed_values):
978+
raise ValueError(
979+
"Invalid value for `wait_reason` ({0}), must be one of {1}" # noqa: E501
980+
.format(wait_reason, allowed_values)
981+
)
982+
983+
self._wait_reason = wait_reason
984+
950985
def to_dict(self):
951986
"""Returns the model properties as a dict"""
952987
result = {}

flexify_api/models/migration_stat.py

Lines changed: 38 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,8 @@ class MigrationStat(object):
6666
'step': 'str',
6767
'total_upload': 'int',
6868
'uploading_bytes_per_second': 'float',
69-
'uploading_objects_per_second': 'float'
69+
'uploading_objects_per_second': 'float',
70+
'wait_reason': 'str'
7071
}
7172

7273
attribute_map = {
@@ -103,10 +104,11 @@ class MigrationStat(object):
103104
'step': 'step',
104105
'total_upload': 'totalUpload',
105106
'uploading_bytes_per_second': 'uploadingBytesPerSecond',
106-
'uploading_objects_per_second': 'uploadingObjectsPerSecond'
107+
'uploading_objects_per_second': 'uploadingObjectsPerSecond',
108+
'wait_reason': 'waitReason'
107109
}
108110

109-
def __init__(self, active_engines=None, active_slots=None, active_streams=None, bytes_failed=None, bytes_glacier_restore_started=None, bytes_not_matching_pattern=None, bytes_processed=None, bytes_skipped=None, bytes_skipped_glacier=None, bytes_uploaded=None, cleanup=None, created=None, dst_region=None, estimated=None, finished=None, initial_bytes=None, initial_objects=None, objects_failed=None, objects_glacier_restore_started=None, objects_not_matching_pattern=None, objects_processed=None, objects_skipped=None, objects_skipped_glacier=None, objects_uploaded=None, processing_objects_per_second=None, progress=None, retried=None, src_region=None, started=None, state=None, step=None, total_upload=None, uploading_bytes_per_second=None, uploading_objects_per_second=None, _configuration=None): # noqa: E501
111+
def __init__(self, active_engines=None, active_slots=None, active_streams=None, bytes_failed=None, bytes_glacier_restore_started=None, bytes_not_matching_pattern=None, bytes_processed=None, bytes_skipped=None, bytes_skipped_glacier=None, bytes_uploaded=None, cleanup=None, created=None, dst_region=None, estimated=None, finished=None, initial_bytes=None, initial_objects=None, objects_failed=None, objects_glacier_restore_started=None, objects_not_matching_pattern=None, objects_processed=None, objects_skipped=None, objects_skipped_glacier=None, objects_uploaded=None, processing_objects_per_second=None, progress=None, retried=None, src_region=None, started=None, state=None, step=None, total_upload=None, uploading_bytes_per_second=None, uploading_objects_per_second=None, wait_reason=None, _configuration=None): # noqa: E501
110112
"""MigrationStat - a model defined in Swagger""" # noqa: E501
111113
if _configuration is None:
112114
_configuration = Configuration()
@@ -146,6 +148,7 @@ def __init__(self, active_engines=None, active_slots=None, active_streams=None,
146148
self._total_upload = None
147149
self._uploading_bytes_per_second = None
148150
self._uploading_objects_per_second = None
151+
self._wait_reason = None
149152
self.discriminator = None
150153

151154
if active_engines is not None:
@@ -216,6 +219,8 @@ def __init__(self, active_engines=None, active_slots=None, active_streams=None,
216219
self.uploading_bytes_per_second = uploading_bytes_per_second
217220
if uploading_objects_per_second is not None:
218221
self.uploading_objects_per_second = uploading_objects_per_second
222+
if wait_reason is not None:
223+
self.wait_reason = wait_reason
219224

220225
@property
221226
def active_engines(self):
@@ -975,6 +980,36 @@ def uploading_objects_per_second(self, uploading_objects_per_second):
975980

976981
self._uploading_objects_per_second = uploading_objects_per_second
977982

983+
@property
984+
def wait_reason(self):
985+
"""Gets the wait_reason of this MigrationStat. # noqa: E501
986+
987+
The reason why this mapping is in the WAITING state # noqa: E501
988+
989+
:return: The wait_reason of this MigrationStat. # noqa: E501
990+
:rtype: str
991+
"""
992+
return self._wait_reason
993+
994+
@wait_reason.setter
995+
def wait_reason(self, wait_reason):
996+
"""Sets the wait_reason of this MigrationStat.
997+
998+
The reason why this mapping is in the WAITING state # noqa: E501
999+
1000+
:param wait_reason: The wait_reason of this MigrationStat. # noqa: E501
1001+
:type: str
1002+
"""
1003+
allowed_values = ["MIGRATION_QUEUED", "NO_ENGINES", "NO_ENGINE_RESOURCES"] # noqa: E501
1004+
if (self._configuration.client_side_validation and
1005+
wait_reason not in allowed_values):
1006+
raise ValueError(
1007+
"Invalid value for `wait_reason` ({0}), must be one of {1}" # noqa: E501
1008+
.format(wait_reason, allowed_values)
1009+
)
1010+
1011+
self._wait_reason = wait_reason
1012+
9781013
def to_dict(self):
9791014
"""Returns the model properties as a dict"""
9801015
result = {}

0 commit comments

Comments
 (0)