original_docstring: You can use UpdateBulkVolumeStatus in a script to update the status of a bulk volume job that you started with the
docstring: You can use UpdateBulkVolumeStatus in a script to update the status of a bulk volume job that you started with the
docstring_tokens: You can use UpdateBulkVolumeStatus in a script to update the status of a bulk volume job that you started with the
code: def updatebulkstatus(ctx,
             # Mandatory main parameter
             key,
             # Mandatory main parameter
             status,
             # Optional main parameter
             percentcomplete = None,
             # Optional main parameter
             message = None,
             # Optional main parameter
             attributes = None):
      """You can use UpdateBulkVolumeStatus in a script to update the status of a bulk volume job that you started with the"""
      """StartBulkVolumeRead or StartBulkVolumeWrite methods."""
  
      
  
      cli_utils.establish_connection(ctx)
      
      
      
      
      
  
      kwargsDict = None
      if(attributes is not None and attributes != ()):
          try:
              kwargsDict = simplejson.loads(attributes)
          except Exception as e:
              ctx.logger.error(e.__str__())
              exit(1)
      
  
      
  
      ctx.logger.info(""": """"""key = """ + str(key)+";"+"""status = """ + str(status)+";" + """percentcomplete = """+str(percentcomplete)+";" + """message = """+str(message)+";" + """attributes = """+str(kwargsDict)+""";"""+"")
      try:
          _UpdateBulkVolumeStatusResult = ctx.element.update_bulk_volume_status(key=key, status=status, percent_complete=percentcomplete, message=message, attributes=kwargsDict)
      except common.ApiServerError as e:
          ctx.logger.error(e.message)
          exit()
      except BaseException as e:
          ctx.logger.error(e.__str__())
          exit()
      if ctx.json:
          print(simplejson.dumps(simplejson.loads(_UpdateBulkVolumeStatusResult), indent=4))
          return
      else:
          cli_utils.print_result(_UpdateBulkVolumeStatusResult, ctx.logger, as_json=ctx.json, as_pickle=ctx.pickle, depth=ctx.depth, filter_tree=ctx.filter_tree)
code_tokens: def updatebulkstatus ( ctx , key , status , percentcomplete = None , message = None , attributes = None ) : """StartBulkVolumeRead or StartBulkVolumeWrite methods.""" cli_utils . establish_connection ( ctx ) kwargsDict = None if ( attributes is not None and attributes != ( ) ) : try : kwargsDict = simplejson . loads ( attributes ) except Exception as e : ctx . logger . error ( e . __str__ ( ) ) exit ( 1 ) ctx . logger . info ( """: """ """key = """ + str ( key ) + ";" + """status = """ + str ( status ) + ";" + """percentcomplete = """ + str ( percentcomplete ) + ";" + """message = """ + str ( message ) + ";" + """attributes = """ + str ( kwargsDict ) + """;""" + "" ) try : _UpdateBulkVolumeStatusResult = ctx . element . update_bulk_volume_status ( key = key , status = status , percent_complete = percentcomplete , message = message , attributes = kwargsDict ) except common . ApiServerError as e : ctx . logger . error ( e . message ) exit ( ) except BaseException as e : ctx . logger . error ( e . __str__ ( ) ) exit ( ) if ctx . json : print ( simplejson . dumps ( simplejson . loads ( _UpdateBulkVolumeStatusResult ) , indent = 4 ) ) return else : cli_utils . print_result ( _UpdateBulkVolumeStatusResult , ctx . logger , as_json = ctx . json , as_pickle = ctx . pickle , depth = ctx . depth , filter_tree = ctx . filter_tree )
short_docstring: You can use UpdateBulkVolumeStatus in a script to update the status of a bulk volume job that you started with the
short_docstring_tokens: You can use UpdateBulkVolumeStatus in a script to update the status of a bulk volume job that you started with the
comment: # Mandatory main parameter$SEP$# Mandatory main parameter$SEP$# Optional main parameter$SEP$# Optional main parameter$SEP$# Optional main parameter$SEP$"""You can use UpdateBulkVolumeStatus in a script to update the status of a bulk volume job that you started with the"""$SEP$"""StartBulkVolumeRead or StartBulkVolumeWrite methods."""