
    
                     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  \R                   " SSSS9\	R"                  " \	R$                  R&                  \	R$                  R(                  5       " S S\	R*                  5      5       5       rg)z$Command to create a fleet namespace.    )absolute_import)division)unicode_literals)client)util)base)deprecation_utils)	resources)	arg_utilsz447.0.0Tz%gcloud fleet scopes namespaces create)remove_versionremovealt_commandc                   .    \ rS rSrSr\S 5       rS rSrg)Create   a  Create a fleet namespace.

This command can fail for the following reasons:
* The project specified does not exist.
* The project has a fleet namespace with the same name.
* The caller does not have permission to access the given project.

## EXAMPLES

To create a fleet namespace with name `NAMESPACE` in the active project, run:

  $ {command} NAMESPACE

To create a fleet namespace in fleet scope `SCOPE` in project `PROJECT_ID`
with name
`NAMESPACE`, run:

  $ {command} NAMESPACE --scope=SCOPE --project=PROJECT_ID
c                     UR                  S[        SS9  [        R                  " US[        R
                  U R                  5          SS9  g )NNAMEzpName of the fleet namespace to be created. Must comply with RFC 1123 (up to 63 characters, alphanumeric and '-'))typehelpz--scopez9Name of the fleet scope to create the fleet namespace in.)
scope_help)add_argumentstrr
   AddScopeResourceArgr   VERSION_MAPReleaseTrack)clsparsers     0lib/surface/container/fleet/namespaces/create.pyArgsCreate.Args8   sR    
B  C
 !!))+,N	    c                    S nUR                   R                  R                  5       nUb  UR                  5       n[        R
                  " USSS9n[        R                  " U R                  5       S9nUR                  UR                  X$5      $ )Nz	--projectT)use_defaults)release_track)CONCEPTSscopeParseRelativeNamer   GetFromNamespacer   FleetClientr   CreateNamespacer   )selfargsr&   	scope_argprojectfleetclients         r   Run
Create.RunF   sw    E##))+I$$&e(({NG$$43D3D3FGK&&tyy%AAr!    N)	__name__
__module____qualname____firstlineno____doc__classmethodr   r1   __static_attributes__r3   r!   r   r   r      s!    (  Br!   r   N)r8   
__future__r   r   r   &googlecloudsdk.api_lib.container.fleetr   r   googlecloudsdk.callioper   googlecloudsdk.command_libr	   *googlecloudsdk.command_lib.container.fleetr
   $googlecloudsdk.command_lib.util.apisr   DeprecateCommandAtVersionReleaseTracksr   ALPHABETACreateCommandr   r3   r!   r   <module>rF      s    + &  ' 9 7 ( 8 @ : ,,7
 D%%++T->->-C-CD*BT *B E*Br!   