
    
                         S r SSKJr  SSKJr  SSKJr  SSKJr  SSKJr  SSK	J
r
  SSK	Jr  SS	KJr   " S
 S\R                  5      rg)z,service-management configs describe command.    )absolute_import)division)unicode_literals)services_util)base)arg_parsers)common_flags)	resourcesc                   4    \ rS rSrSr\S 5       rS rS rSr	g)Describe   a  Describes the configuration for a given version of a service.

This command prints out the configuration for the given version of a
given service. You specify the name of the service and the ID of the
configuration, and the command will print out the specified config.

## EXAMPLES

To print the configuration with ID ``2017-01-01R0'' for the service
called ``my-service'', run:

  $ {command} --service=my-service 2017-01-01R0
c                 l    [         R                  " SSS9R                  U 5        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.
	--servicez)from which to retrieve the configuration.)	flag_namesuffix	config_idz!The configuration ID to retrieve.)helpN)r	   producer_service_flagAddToParseradd_argument)parsers    )lib/surface/endpoints/configs/describe.pyArgsDescribe.Args,   s;     &&:<<GK<O
@  B    c                    ^ U4S jn[         R                  R                  TR                  SU0SS9nU R	                  UR
                  UR                  5      $ )zRun 'service-management configs describe'.

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

Returns:
  The response from the Get API call.
c                  X   > [         R                  " T R                  S5      " 5       5      $ )Nr   )r   GetServiceNameFromArgMakeGetOrRaise)argss   r   _GetServiceName%Describe.Run.<locals>._GetServiceNameG   s'    ..


k
*
,. .r   serviceNamez"servicemanagement.services.configs)params
collection)r
   REGISTRYParser   
_GetConfigr#   configId)selfr    r!   
config_refs    `  r   RunDescribe.Run<   sV    . ##))/7 * 9J ??:11:3F3FGGr   c                     [         R                  " 5       n[         R                  " 5       nUR                  XS9nUR                  R                  U5      $ )N)r#   r)   )r   GetMessagesModuleGetClientInstance*ServicemanagementServicesConfigsGetRequestservices_configsGet)r*   servicer   messagesclientrequests         r   r(   Describe._GetConfigS   sN    ..0H,,.FAA B 1G""&&w//r    N)
__name__
__module____qualname____firstlineno____doc__staticmethodr   r,   r(   __static_attributes__r9   r   r   r   r      s(     B BH.0r   r   N)r>   
__future__r   r   r    googlecloudsdk.api_lib.endpointsr   googlecloudsdk.callioper   $googlecloudsdk.command_lib.endpointsr   r	   googlecloudsdk.corer
   DescribeCommandr   r9   r   r   <module>rG      s4     3 &  ' : ( < = )<0t## <0r   