original_docstring: You can use the ModifyQoSPolicy method to modify an existing QoSPolicy on the system.
docstring: You can use the ModifyQoSPolicy method to modify an existing QoSPolicy on the system.
docstring_tokens: You can use the ModifyQoSPolicy method to modify an existing QoSPolicy on the system .
code: def modifyqospolicy(ctx,
             # Mandatory main parameter
             qospolicyid,
             # Optional main parameter
             name = None,
             # Optional subparameter of optional main parameter.
             miniops = None,
             # Optional subparameter of optional main parameter.
             maxiops = None,
             # Optional subparameter of optional main parameter.
             burstiops = None,
             # Optional subparameter of optional main parameter.
             bursttime = None,
             # Optional subparameter of optional main parameter.
             curve = None):
      """You can use the ModifyQoSPolicy method to modify an existing QoSPolicy on the system."""
  
      
  
      cli_utils.establish_connection(ctx)
      
      
      
  
      qos = None
      if(miniops is not None or
         maxiops is not None or
         burstiops is not None or
         bursttime is not None or
         curve is not None or
         False):
          if not ( True):
              ctx.logger.error("""If you choose to provide , you must include all of the following parameters:
  """)
          kwargsDict = dict()
          kwargsDict["min_iops"] = miniops
          kwargsDict["max_iops"] = maxiops
          kwargsDict["burst_iops"] = burstiops
          kwargsDict["burst_time"] = bursttime
          kwargsDict["curve"] = curve
  
          qos = QoS(**kwargsDict)
      
  
      
  
      ctx.logger.info(""": """"""qospolicyid = """ + str(qospolicyid)+";" + """name = """+str(name)+";" + """qos = """+str(qos)+""";"""+"")
      try:
          _ModifyQoSPolicyResult = ctx.element.modify_qos_policy(qos_policy_id=qospolicyid, name=name, qos=qos)
      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(_ModifyQoSPolicyResult), indent=4))
          return
      else:
          cli_utils.print_result(_ModifyQoSPolicyResult, ctx.logger, as_json=ctx.json, as_pickle=ctx.pickle, depth=ctx.depth, filter_tree=ctx.filter_tree)
code_tokens: def modifyqospolicy ( ctx , qospolicyid , name = None , miniops = None , maxiops = None , burstiops = None , bursttime = None , curve = None ) : cli_utils . establish_connection ( ctx ) qos = None if ( miniops is not None or maxiops is not None or burstiops is not None or bursttime is not None or curve is not None or False ) : if not ( True ) : ctx . logger . error ( """If you choose to provide , you must include all of the following parameters:
  """ ) kwargsDict = dict ( ) kwargsDict [ "min_iops" ] = miniops kwargsDict [ "max_iops" ] = maxiops kwargsDict [ "burst_iops" ] = burstiops kwargsDict [ "burst_time" ] = bursttime kwargsDict [ "curve" ] = curve qos = QoS ( ** kwargsDict ) ctx . logger . info ( """: """ """qospolicyid = """ + str ( qospolicyid ) + ";" + """name = """ + str ( name ) + ";" + """qos = """ + str ( qos ) + """;""" + "" ) try : _ModifyQoSPolicyResult = ctx . element . modify_qos_policy ( qos_policy_id = qospolicyid , name = name , qos = qos ) 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 ( _ModifyQoSPolicyResult ) , indent = 4 ) ) return else : cli_utils . print_result ( _ModifyQoSPolicyResult , ctx . logger , as_json = ctx . json , as_pickle = ctx . pickle , depth = ctx . depth , filter_tree = ctx . filter_tree )
short_docstring: You can use the ModifyQoSPolicy method to modify an existing QoSPolicy on the system.
short_docstring_tokens: You can use the ModifyQoSPolicy method to modify an existing QoSPolicy on the system .
comment: # Mandatory main parameter$SEP$# Optional main parameter$SEP$# Optional subparameter of optional main parameter.$SEP$# Optional subparameter of optional main parameter.$SEP$# Optional subparameter of optional main parameter.$SEP$# Optional subparameter of optional main parameter.$SEP$# Optional subparameter of optional main parameter.$SEP$"""You can use the ModifyQoSPolicy method to modify an existing QoSPolicy on the system."""