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

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

          $ {command} example-interconnect-group
          --intended-topology-capability=PRODUCTION_CRITICAL
          --description="Example interconnect group"

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

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

          $ {command} example-interconnect-group
          --intended-topology-capability=PRODUCTION_NON_CRITICAL
          --interconnects=interconnect-1,interconnect-2
        )DESCRIPTIONEXAMPLESc                   8    \ rS rSrSrSr\S 5       rS rS r	Sr
g)Create7   zCreate a Compute Engine interconnect group.

*{command}* is used to create interconnect groups. An interconnect group
connects a set of redundant interconnects 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	   InterconnectGroupArgumentINTERCONNECT_GROUP_ARGAddArgumentAddDescription&AddIntendedTopologyCapabilityForCreateGetMemberInterconnectsForCreate)clsparsers     2lib/surface/compute/interconnects/groups/create.pyArgsCreate.ArgsD   sX    !&!@!@!NC**6(*K	 	008	))&1    c                     g)Nzcompute.interconnectGroups )selfs    r   
CollectionCreate.CollectionL   s    'r   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UR#                  UR$                  UUR&                  S9$ )N)compute_client	resources)descriptiontopology_capabilityinterconnects)r   ComputeApiHolderReleaseTrackr   ResolveAsResourcer'   r
   VALUEScoreproject	GetOrFailr   InterconnectGroupr	   GetTopologyCapabilitymessagesintended_topology_capabilityr   r(   r*   )r"   argsholderrefr0   interconnect_groupr)   s          r   Run
Create.RunO   s    **4+<+<+>?F

%
%
7
7>N>N
OC$$,,668G11V]]f>N>N  55 A A $$$$/(( %  r   r!   )__name__
__module____qualname____firstlineno____doc__r   classmethodr   r#   r:   __static_attributes__r!   r   r   r   r   7   s+    
  2 2(r   r   N)r@   
__future__r   r   r   googlecloudsdk.api_lib.computer   3googlecloudsdk.api_lib.compute.interconnects.groupsr   googlecloudsdk.callioper   7googlecloudsdk.command_lib.compute.interconnects.groupsr	   googlecloudsdk.corer
   DETAILED_HELPUniverseCompatibleReleaseTracksr,   ALPHABETAGACreateCommandr   detailed_helpr!   r   r   <module>rQ      s    0 &  ' 7 F ( I *8 T..33T5F5F5I5I#T # #L % r   