
                         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)z4Command for creating interconnect attachment groups.    )absolute_import)division)unicode_literals)base_classes)client)base)flags)
propertiesa          *{command}* is used to create interconnect attachment groups. An
        interconnect attachment group connects a set of redundant interconnect
        attachments between Google and the customer.

        For an example, refer to the *EXAMPLES* section below.
        a          To create an interconnect attachment group capable of
        PRODUCTION_CRITICAL, run:

          $ {command} example-attachment-group
          --intended-availability-sla=PRODUCTION_CRITICAL
          --description="Example interconnect attachment group"

        It is easy to add members to an existing interconnect attachment group
        after creation using the *add-members* command.

        To create an interconnect attachment group capable of
        PRODUCTION_NON_CRITICAL, with two members at creation time, run:

          $ {command} example-attachment-group
          --intended-availability-sla=PRODUCTION_NON_CRITICAL
          --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)Create8   zCreate a Compute Engine interconnect attachment group.

*{command}* is used to create interconnect attachment groups. An interconnect
attachment group connects a set of redundant interconnect attachments between
Google and the customer.
Nc                     [         R                  " SS9U l        U R                  R                  USS9  [         R                  " U5        [         R
                  " U5        [         R                  " U5        g )NF)pluralcreate)operation_type)r	   #InterconnectAttachmentGroupArgumentATTACHMENT_GROUP_ARGAddArgumentAddDescription#AddIntendedAvailabilitySlaForCreate)GetMemberInterconnectAttachmentsForCreate)clsparsers     >lib/surface/compute/interconnects/attachments/groups/create.pyArgsCreate.ArgsF   s]    $HH C (((I	 	--f5	33F;    c                     g)Nz$compute.interconnectAttachmentGroups )selfs    r   
CollectionCreate.CollectionP   s    1r   c                 ,   [         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[        R                  " UR                  R                  UR                   5      n[        R"                  " UR$                  5      nUR'                  UR(                  UUS9$ )N)compute_client	resources)descriptionavailability_slaattachments)r   ComputeApiHolderReleaseTrackr   ResolveAsResourcer'   r
   VALUEScoreproject	GetOrFailr   InterconnectAttachmentGroupr	   GetIntendedAvailabilitySlamessagesintended_availability_slaParseAttachmentsr*   r   r(   )r"   argsholderrefr0   attachment_groupr)   r*   s           r   Run
Create.RunS   s    **4+<+<+>?F

#
#
5
5d<L<L
MC$$,,668G99V]]f>N>N 77 > > (()9)9:K""$$) #  r   r!   )__name__
__module____qualname____firstlineno____doc__r   classmethodr   r#   r;   __static_attributes__r!   r   r   r   r   8   s+    
 < <2r   r   N)rA   
__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CreateCommandr   detailed_helpr!   r   r   <module>rR      s    ; &  ' 7 R ( U *: T..33T5F5F5I5I'T ' 'T % r   