
                            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KJ
r  S
SS.r\R"                  " \R$                  R&                  5      \R(                   " S S\R*                  5      5       5       rg)z?Command to create connection profiles for a database migration.    )absolute_import)division)unicode_literals)resource_args)base)flags)alloydb_flags)create_helperzCreate a Database Migration Service destination connection profile for AlloyDB. This will create an AlloyDB cluster and primary instance.z          To create a connection profile for AlloyDB:

              $ {command} my-profile --region=us-central1 \
              --password=my_password \
              --primary-id=my-primary \
              --cpu-count=2
        )DESCRIPTIONEXAMPLESc                   2    \ rS rSrSr\r\S 5       rS r	Sr
g)AlloyDB,   zCCreate a Database Migration Service connection profile for AlloyDB.c                    [         R                  " U S5        [        R                  " U 5        [        R                  " U 5        [        R
                  " U 5        [        R                  " U 5        [        R                  " U 5        [        R                  " U 5        [        R                  " U 5        [        R                  " U 5        [        R                  " U 5        [        R                  " U 5        [        R                  " U 5        [        R                  " U 5        [        R                   " U 5        [        R"                  " U 5        [$        R&                  " U 5        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.
z	to createN)r   'AddAlloyDBConnectionProfileResourceArgscp_flagsAddNoAsyncFlagAddDisplayNameFlagAddRoleFlagad_flagsAddPasswordFlagAddNetworkFlagAddClusterLabelsFlagAddPrimaryIdFlagAddCpuCountFlagAddDatabaseFlagsFlagAddPrimaryLabelsFlagAddDatabaseVersionFlagAddEnablePublicIpFlagAddEnableOutboundPublicIpFlag"AddAuthorizedNetworkCidrRangesFlagr   AddLabelsCreateFlags)parsers    Dlib/surface/database_migration/connection_profiles/create/alloydb.pyArgsAlloyDB.Args3   s     99&+NF#' V$F#!!&)f%V$!!&)!!&)##F+""6***62//7	v&    c                     UR                   R                  R                  5       nUR                  5       R	                  5       n[
        R                  " 5       nUR                  U R                  5       UX!S5      $ )a  Create a Database Migration Service connection profile for AlloyDB.

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

Returns:
  A dict object representing the operations resource describing the create
  operation if the create was successful.
ALLOYDB)	CONCEPTSconnection_profileParseParentRelativeNamer
   CreateHelpercreateReleaseTrack)selfargsconnection_profile_ref
parent_refhelpers        r$   RunAlloyDB.RunM   sg     "]]==CCE'..0==?J'')F==**,j/yB Br'    N)__name__
__module____qualname____firstlineno____doc__DETAILED_HELPdetailed_helpstaticmethodr%   r7   __static_attributes__r9   r'   r$   r   r   ,   s%     L-' '2Br'   r   N)r>   
__future__r   r   r   )googlecloudsdk.api_lib.database_migrationr   googlecloudsdk.callioper   -googlecloudsdk.command_lib.database_migrationr   Agooglecloudsdk.command_lib.database_migration.connection_profilesr	   r   r
   r   r?   ReleaseTracksr1   GADefaultUniverseOnlyCommandr   r9   r'   r$   <module>rL      s    F &  ' C ( ? g [ _	Q	  D%%(()/Bdll /B  */Br'   