
                         D   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KJr  \R(                  " \R*                  R,                  \R*                  R.                  5      \R0                   " S S\R2                  5      5       5       rg)z.`gcloud dataplex entry-groups create` command.    )absolute_import)division)unicode_literals)entry_group)util)
exceptions)base)resource_args)labels_util)logc                   `    \ rS rSrSrSS0r\S 5       r\R                  " S5      S 5       r
Srg	)
Create   zbCreate a Dataplex Entry Group.

Entry Group acts as a logical container used to organize Entries.
EXAMPLESai  
          To create Entry Group `test-entry-group` in project `test-dataplex` at location `us-central1`,
          with description `test description` and displayName `test display name`, run:

            $ {command} test-entry-group --location=us-central1 --project=test-project --description='test description' --display-name='test display name'

          c                 $   [         R                  " U S5        U R                  SSSS9  U R                  SSSS9  U R                  SSS	9nUR                  S
SSSS9  [        R
                  R                  U5        [        R                  " U 5        g )Nz
to create.z--descriptionFzDescription of the Entry Group.)requiredhelpz--display-namez Display name of the Entry Group.T)mutexr   z--validate-only
store_truez:Validate the create action, but don't actually perform it.)actiondefaultr   )	r
    AddDataplexEntryGroupResourceArgadd_argument	add_groupr	   
ASYNC_FLAGAddToParserr   AddCreateLabelsFlags)parserasync_groups     +lib/surface/dataplex/entry_groups/create.pyArgsCreate.Args2   s    2263?A
.  0 /  1 "" # K J	  L
 	OO,$$V,    z-Status code: {status_code}. {status_message}.c           
      :   UR                   R                  R                  5       n[        R                  " 5       nUR
                  R                  [        R                  " 5       R                  UR                  5       UR                  5       R                  5       UR                  [        R                  " U5      S95      n[        USS5      nU(       a   [        R                   R#                  S5        g [        USS5      nU(       d[  [        R$                  " U5      n[        R&                  " UR(                  SR+                  UR,                  UR.                  5      S9  U$ [        R                   R#                  SR+                  X$R(                  5      5        U$ )	N)entryGroupIdparentvalidateOnlygoogleCloudDataplexV1EntryGroupvalidate_onlyFzValidation complete.async_z8Entry Group created in project [{0}] with location [{1}])detailsz0Creating Entry Group [{0}] with operation [{1}].)CONCEPTSr   Parsedataplex_utilGetClientInstanceprojects_locations_entryGroupsr   GetMessageModule1DataplexProjectsLocationsEntryGroupsCreateRequestNameParentRelativeNamer)   "GenerateEntryGroupForCreateRequestgetattrr   statusPrintWaitForOperationCreatedResourcenameformat
projectsIdlocationsId)selfargsentry_group_refdataplex_clientcreate_req_opr)   r*   responses           r    Run
Create.RunI   sS    mm//557O#557O#BBII&& 	

;
;(--/"))+88:++,7//-004-6	 < 78M D/59M	jj-.T8U+F--m<h	
--L6/,,!--/0
 oJJ:AA//	12 r#    N)__name__
__module____qualname____firstlineno____doc__detailed_helpstaticmethodr!   gcloud_exception CatchHTTPErrorRaiseHTTPExceptionrF   __static_attributes__rH   r#   r    r   r      sN     
- - -, 44577r#   r   N)rM   
__future__r   r   r   googlecloudsdk.api_lib.dataplexr   r   r.   googlecloudsdk.api_lib.utilr   rP   googlecloudsdk.callioper	   #googlecloudsdk.command_lib.dataplexr
   $googlecloudsdk.command_lib.util.argsr   googlecloudsdk.corer   ReleaseTracksReleaseTrackALPHAGADefaultUniverseOnlyCommandr   rH   r#   r    <module>r`      s~    5 &  ' 7 A F ( = < # D%%++T->->-A-ABJT\\ J  CJr#   