
    
                     V    S r SSKJr  SSKJr  SSKJr   " S S\R                  5      rg)zThe configs create command.    )util)base)logc                   6    \ rS rSrSrSS0r\S 5       rS rSr	g)	Create   zCreate runtime-config resources.

This command creates a new runtime-config resource with the specified name
and optional description.
EXAMPLESa   
          To create a runtime-config resource named "my-config", run:

            $ {command} my-config

          To create a runtime-config resource named "my-config" with a
          description, run:

            $ {command} --description="my new configuration" my-config
          c                 D    U R                  SSS9  U R                  SSS9  g)zArgs is called by calliope to gather arguments for this command.

Args:
  parser: An argparse parser that you can use to add arguments that go
      on the command line after this command. Positional arguments are
      allowed.
z--descriptionz4Optional description of the runtime-config resource.)helpnamez!The runtime-config resource name.N)add_argument)parsers    ,lib/surface/runtime_config/configs/create.pyArgsCreate.Args,   s4     C  E %HI    c           
         [         R                  " 5       n[         R                  " 5       n[         R                  " UR                  5      nUR
                  nUR                  UR                  [         R                  " U5      UR                  UR                  5       UR                  S9S95      n[        R                  " U5        [         R                  " U5      $ )a  Run 'runtime-configs create'.

Args:
  args: argparse.Namespace, The arguments that this command was invoked
      with.

Returns:
  The new runtime-config resource.

Raises:
  HttpException: An http error response was received while executing api
      request.
)r   description)parentruntimeConfig)r   ConfigClientMessagesParseConfigNamer   
projectsIdr   )RuntimeconfigProjectsConfigsCreateRequestProjectPathRuntimeConfigRelativeNamer   r   CreatedResourceFormatConfig)selfargsconfig_clientmessagesconfig_resourceprojectresults          r   Run
Create.Run;   s     %%'M}}H**4995O((G!!::##G,"00$113 ,, 1  	; 	
F (V$$r    N)
__name__
__module____qualname____firstlineno____doc__detailed_helpstaticmethodr   r(   __static_attributes__r*   r   r   r   r      s3      	- J J%r   r   N)	r/   %googlecloudsdk.api_lib.runtime_configr   googlecloudsdk.callioper   googlecloudsdk.corer   CreateCommandr   r*   r   r   <module>r7      s)     " 7 ( #B%T B%r   