class RelocationBatchJobStatus(async_.PollResultBase): (source)
This class acts as a tagged union. Only one of the ``is_*`` methods will return true. To get the associated value of a tag (if one exists), use the corresponding ``get_*`` method. :ivar RelocationBatchResult RelocationBatchJobStatus.complete: The copy or move batch job has finished. :ivar RelocationBatchError RelocationBatchJobStatus.failed: The copy or move batch job has failed with exception.
Class Method | complete |
Create an instance of this class set to the ``complete`` tag with value ``val``. |
Class Method | failed |
Create an instance of this class set to the ``failed`` tag with value ``val``. |
Method | get |
The copy or move batch job has finished. |
Method | get |
The copy or move batch job has failed with exception. |
Method | is |
Check if the union tag is ``complete``. |
Method | is |
Check if the union tag is ``failed``. |
Method | _process |
Undocumented |
Inherited from PollResultBase
:
Method | is |
Check if the union tag is ``in_progress``. |
Class Variable | in |
Undocumented |
Class Variable | _catch |
Undocumented |
Create an instance of this class set to the ``complete`` tag with value ``val``. :param RelocationBatchResult val: :rtype: RelocationBatchJobStatus
Create an instance of this class set to the ``failed`` tag with value ``val``. :param RelocationBatchError val: :rtype: RelocationBatchJobStatus
The copy or move batch job has finished. Only call this if :meth:`is_complete` is true. :rtype: RelocationBatchResult
The copy or move batch job has failed with exception. Only call this if :meth:`is_failed` is true. :rtype: RelocationBatchError