
                         n   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S.r\
R                   \
R"                  " \
R$                  R&                  \
R$                  R(                  \
R$                  R*                  5       " S S\
R,                  5      5       5       r\\l        g)zPCommand for adding interconnect attachments to an interconnect attachment group.    )absolute_import)division)unicode_literals)base_classes)client)base)flags)
propertiesz        *{command}* is used to add member interconnect attachments to an
        interconnect attachment group.

        For an example, refer to the *EXAMPLES* section below.
        z        To add attachment-1 and attachment-2 to interconnect attachment group
        example-attachment-group, run:

          $ {command} example-attachment-group
          --attachments=region-1/attachment-1,region-2/attachment-2
        )DESCRIPTIONEXAMPLESc                   8    \ rS rSrSrSr\S 5       rS rS r	Sr
g)
AddMembers-   zAdd member interconnect attachments to a Compute Engine interconnect attachment group.

*{command}* adds member interconnect attachments to a Compute Engine
interconnect attachment group.
Nc                     [         R                  " SS9U l        U R                  R                  USS9  [         R                  " U5        g )NF)pluralupdate)operation_type)r	   #InterconnectAttachmentGroupArgumentATTACHMENT_GROUP_ARGAddArgument GetMemberInterconnectAttachments)clsparsers     Clib/surface/compute/interconnects/attachments/groups/add_members.pyArgsAddMembers.Args:   sA    $HH C (((I	**62    c                     g)Nz$compute.interconnectAttachmentGroups )selfs    r   
CollectionAddMembers.CollectionB   s    1r   c           	      l   [         R                  " U R                  5       5      nU R                  R	                  XR
                  5      n[        R                  R                  R                  R                  5       n[        R                  " X4UR                  UR
                  S9n[        5       nUR                  5       R                  nUb  [        S UR                    5       5      nU[        UR                  5      -  nUR#                  [$        R&                  " [)        [+        U5      5      5      S9$ )N)compute_client	resourcesc              3   :   #    U  H  nUR                   v   M     g 7f)N)key).0propertys     r   	<genexpr>!AddMembers.Run.<locals>.<genexpr>Q   s      Kh ,,Ks   )attachments)r   ComputeApiHolderReleaseTrackr   ResolveAsResourcer%   r
   VALUEScoreproject	GetOrFailr   InterconnectAttachmentGroupsetDescriber,   additionalPropertiesPatchr	   ParseAttachmentssortedlist)r    argsholderrefr2   attachment_groupr,   attachment_group_attachmentss           r   RunAddMembers.RunE   s   **4+<+<+>?F

#
#
5
5d<L<L
MC$$,,668G99V]]f>N>N %K#3#<#<#>#J#J #/ 6KK k 3t''((K!!**6${2C+DE "  r   r   )__name__
__module____qualname____firstlineno____doc__r   classmethodr   r!   rA   __static_attributes__r   r   r   r   r   -   s+    
 3 32r   r   N)rG   
__future__r   r   r   googlecloudsdk.api_lib.computer   ?googlecloudsdk.api_lib.compute.interconnects.attachments.groupsr   googlecloudsdk.callioper   Cgooglecloudsdk.command_lib.compute.interconnects.attachments.groupsr	   googlecloudsdk.corer
   DETAILED_HELPUniverseCompatibleReleaseTracksr.   ALPHABETAGAUpdateCommandr   detailed_helpr   r   r   <module>rX      s     W &  ' 7 R ( U *" T..33T5F5F5I5I(## ( (V )
 r   