original_docstring: You can use the CreateQoSPolicy method to create a QoSPolicy object that you can later apply to a volume upon creation or modification. A QoS policy has a unique ID, a name, and QoS settings.
docstring: You can use the CreateQoSPolicy method to create a QoSPolicy object that you can later apply to a volume upon creation or modification. A QoS policy has a unique ID, a name, and QoS settings.
docstring_tokens: You can use the CreateQoSPolicy method to create a QoSPolicy object that you can later apply to a volume upon creation or modification . A QoS policy has a unique ID a name and QoS settings .
code: def createqospolicy(ctx,
             # Mandatory main parameter
             name,
             # Non mandatory subparameter of a mandatory main parameter (not fully decomposed)
             miniops = None,
             # Non mandatory subparameter of a mandatory main parameter (not fully decomposed)
             maxiops = None,
             # Non mandatory subparameter of a mandatory main parameter (not fully decomposed)
             burstiops = None,
             # Non mandatory subparameter of a mandatory main parameter (not fully decomposed)
             bursttime = None,
             # Non mandatory subparameter of a mandatory main parameter (not fully decomposed)
             curve = None):
      """You can use the CreateQoSPolicy method to create a QoSPolicy object that you can later apply to a volume upon creation or modification. A QoS policy has a unique ID, a name, and QoS settings."""
  
      
  
      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(""": """"""name = """ + str(name)+";"+"""qos = """ + str(qos)+""";"""+"")
      try:
          _CreateQoSPolicyResult = ctx.element.create_qos_policy(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(_CreateQoSPolicyResult), indent=4))
          return
      else:
          cli_utils.print_result(_CreateQoSPolicyResult, ctx.logger, as_json=ctx.json, as_pickle=ctx.pickle, depth=ctx.depth, filter_tree=ctx.filter_tree)
code_tokens: def createqospolicy ( ctx , name , 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 ( """: """ """name = """ + str ( name ) + ";" + """qos = """ + str ( qos ) + """;""" + "" ) try : _CreateQoSPolicyResult = ctx . element . create_qos_policy ( 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 ( _CreateQoSPolicyResult ) , indent = 4 ) ) return else : cli_utils . print_result ( _CreateQoSPolicyResult , ctx . logger , as_json = ctx . json , as_pickle = ctx . pickle , depth = ctx . depth , filter_tree = ctx . filter_tree )
short_docstring: You can use the CreateQoSPolicy method to create a QoSPolicy object that you can later apply to a volume upon creation or modification.
short_docstring_tokens: You can use the CreateQoSPolicy method to create a QoSPolicy object that you can later apply to a volume upon creation or modification .
comment: # Mandatory main parameter$SEP$# Non mandatory subparameter of a mandatory main parameter (not fully decomposed)$SEP$# Non mandatory subparameter of a mandatory main parameter (not fully decomposed)$SEP$# Non mandatory subparameter of a mandatory main parameter (not fully decomposed)$SEP$# Non mandatory subparameter of a mandatory main parameter (not fully decomposed)$SEP$# Non mandatory subparameter of a mandatory main parameter (not fully decomposed)$SEP$"""You can use the CreateQoSPolicy method to create a QoSPolicy object that you can later apply to a volume upon creation or modification. A QoS policy has a unique ID, a name, and QoS settings."""