<s> """<STR_LIT>""" <EOL> from base import CliTask <EOL> from . . account . service import AzureAccount <EOL> from . . utils . collector import DataCollector <EOL> from . . utils . output import DataOutput <EOL> from . . management . request_result import RequestResult <EOL> from . . help import Help <EOL> class ComputeRequestTask ( CliTask ) : <EOL> """<STR_LIT>""" <EOL> def process ( self ) : <EOL> self . manual = Help ( ) <EOL> if self . __help ( ) : <EOL> return <EOL> self . result = DataCollector ( ) <EOL> self . out = DataOutput ( <EOL> self . result , <EOL> self . global_args [ '<STR_LIT>' ] , <EOL> self . global_args [ '<STR_LIT>' ] <EOL> ) <EOL> self . load_config ( ) <EOL> self . account = AzureAccount ( self . config ) <EOL> self . service = self . account . get_management_service ( ) <EOL> self . request_result = RequestResult ( <EOL> self . command_args [ '<STR_LIT>' ] <EOL> ) <EOL> if self . command_args [ '<STR_LIT:status>' ] : <EOL> self . result . add ( <EOL> '<STR_LIT>' + format ( self . command_args [ '<STR_LIT>' ] ) , <EOL> format ( self . __get_status ( ) ) <EOL> ) <EOL> self . out . display ( ) <EOL> elif self . command_args [ '<STR_LIT>' ] : <EOL> self . __wait_for_request_to_complete ( ) <EOL> def __get_status ( self ) : <EOL> return self . request_result . status ( <EOL> self . service <EOL> ) <EOL> def __wait_for_request_to_complete ( self ) : <EOL> self . request_result . wait_for_request_completion ( <EOL> self . service <EOL> ) <EOL> def __help ( self ) : <EOL> if self . command_args [ '<STR_LIT>' ] : <EOL> self . manual . show ( '<STR_LIT>' ) <EOL> else : <EOL> return False <EOL> return self . manual </s>
