@@ -66,7 +66,8 @@ class MigrationStat(object):
66
66
'step' : 'str' ,
67
67
'total_upload' : 'int' ,
68
68
'uploading_bytes_per_second' : 'float' ,
69
- 'uploading_objects_per_second' : 'float'
69
+ 'uploading_objects_per_second' : 'float' ,
70
+ 'wait_reason' : 'str'
70
71
}
71
72
72
73
attribute_map = {
@@ -103,10 +104,11 @@ class MigrationStat(object):
103
104
'step' : 'step' ,
104
105
'total_upload' : 'totalUpload' ,
105
106
'uploading_bytes_per_second' : 'uploadingBytesPerSecond' ,
106
- 'uploading_objects_per_second' : 'uploadingObjectsPerSecond'
107
+ 'uploading_objects_per_second' : 'uploadingObjectsPerSecond' ,
108
+ 'wait_reason' : 'waitReason'
107
109
}
108
110
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
110
112
"""MigrationStat - a model defined in Swagger""" # noqa: E501
111
113
if _configuration is None :
112
114
_configuration = Configuration ()
@@ -146,6 +148,7 @@ def __init__(self, active_engines=None, active_slots=None, active_streams=None,
146
148
self ._total_upload = None
147
149
self ._uploading_bytes_per_second = None
148
150
self ._uploading_objects_per_second = None
151
+ self ._wait_reason = None
149
152
self .discriminator = None
150
153
151
154
if active_engines is not None :
@@ -216,6 +219,8 @@ def __init__(self, active_engines=None, active_slots=None, active_streams=None,
216
219
self .uploading_bytes_per_second = uploading_bytes_per_second
217
220
if uploading_objects_per_second is not None :
218
221
self .uploading_objects_per_second = uploading_objects_per_second
222
+ if wait_reason is not None :
223
+ self .wait_reason = wait_reason
219
224
220
225
@property
221
226
def active_engines (self ):
@@ -975,6 +980,36 @@ def uploading_objects_per_second(self, uploading_objects_per_second):
975
980
976
981
self ._uploading_objects_per_second = uploading_objects_per_second
977
982
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
+
978
1013
def to_dict (self ):
979
1014
"""Returns the model properties as a dict"""
980
1015
result = {}
0 commit comments