
    Q                     >   S r SSKJr  SSKJr  SSKJr  SSK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Qr\R&                  " \R(                  R*                  \R(                  R,                  5       " S S\R.                  5      5       rSSS.\l        g)z@Command for configuring autoscaling of a managed instance group.    )absolute_import)division)unicode_literalsN)encoding)base_classes)managed_instance_groups_utils)base)flags)files)
creationTimestampidkindnameregionselfLinkstatusstatusDetailstargetzonec                   .    \ rS rSrSr\S 5       rS rSrg)ExportAutoscaling#   zBExport autoscaling parameters of a managed instance group to JSON.c                 f    [         R                  R                  U 5        U R                  SSSSS9  g )Nz--autoscaling-filePATHTzDPath of the file to which autoscaling configuration will be written.)metavarrequiredhelp)instance_groups_flags%MULTISCOPE_INSTANCE_GROUP_MANAGER_ARGAddArgumentadd_argument)parsers    Alib/surface/compute/instance_groups/managed/export_autoscaling.pyArgsExportAutoscaling.Args'   s:    ??KK
	      c                    [         R                  " U R                  5       5      nUR                  n[        R
                  " X2R                  U5      n[        R                  " X2R                  U5      nU(       a-  [        R                  " U5      n[         H  nXv;   d  M
  Xg	 M     OS n[        R                  " UR                  [        R                   " U5      5        g )N)r   ComputeApiHolderReleaseTrackclientr   CreateGroupReference	resourcesr   AutoscalerForMigByRefr   MessageToDict_IGNORED_FIELDSr   WriteFileContentsautoscaling_filejsondumps)selfargsholderr*   igm_ref
autoscalerautoscaler_dictfs           r#   RunExportAutoscaling.Run2   s    **4+<+<+>?F]]F#88  $(G /DD  '+J ..z:o!   o	D114::o3NOr&    N)	__name__
__module____qualname____firstlineno____doc__staticmethodr$   r;   __static_attributes__r=   r&   r#   r   r   #   s    J Pr&   r   z9Export autoscaling parameters of a managed instance groupa*  
        *{command}* exports the autoscaling parameters of the specified managed
instance group.

Autoscalers can use one or more autoscaling signals. Information on using
multiple autoscaling signals can be found here: [](https://cloud.google.com/compute/docs/autoscaler/multiple-signals)
        )briefDESCRIPTION)rB   
__future__r   r   r   r2   apitools.base.pyr   googlecloudsdk.api_lib.computer   r   googlecloudsdk.callioper	   2googlecloudsdk.command_lib.compute.instance_groupsr
   r   googlecloudsdk.core.utilr   r/   ReleaseTracksr)   BETAALPHACommandr   detailed_helpr=   r&   r#   <module>rR      s    G &  '  % 7 H ( ] *L D%%**D,=,=,C,CDP P EPF I	#  r&   