
    -                     P    S r SSKJr  SSKJr  S rS rS rSS jrSS jr	SS	 jr
g
)z"Common flags for BigLake commands.    )concepts)concept_parsersc            	      v    [         R                  " SS[         R                  [         R                  " SS5      S9$ )z5Gets the resource spec for a BigLake Iceberg catalog.z3biglake.iceberg.v1.restcatalog.v1.projects.catalogscatalog%The Iceberg Catalog for the resource.)resource_name
projectsId
catalogsIdr   ResourceSpec DEFAULT_PROJECT_ATTRIBUTE_CONFIG ResourceParameterAttributeConfig     /lib/googlecloudsdk/command_lib/biglake/flags.pyGetCatalogResourceSpecr      s8    			;::::
<	
 r   c            
          [         R                  " SS[         R                  [         R                  " SS5      [         R                  " SS5      S9$ )z7Gets the resource spec for a BigLake Iceberg namespace.z>biglake.iceberg.v1.restcatalog.v1.projects.catalogs.namespaces	namespacer   r   'The Iceberg Namespace for the resource.)r   r	   r
   namespacesIdr   r   r   r   GetNamespaceResourceSpecr   #   sN    			F::::
< <<
@

 
r   c                      [         R                  " SS[         R                  [         R                  " SS5      [         R                  " SS5      [         R                  " SS5      S9$ )	z3Gets the resource spec for a BigLake Iceberg table.zEbiglake.iceberg.v1.restcatalog.v1.projects.catalogs.namespaces.tablestabler   r   r   r   z#The Iceberg Table for the resource.)r   r	   r
   r   tablesIdr   r   r   r   GetTableResourceSpecr   2   sd    			M::::
< <<
@ 88
8
 r   c                     [         R                  R                  U(       a  SOS[        5       SU S3SS9R	                  U 5        g)zAdds a resource argument for a BigLake Iceberg catalog.

Args:
  parser: The argparse parser.
  verb: The verb to describe the resource, e.g., "to list catalogs from".
  positional: Whether the argument should be positional or a flag.
r   z	--catalogzThe Iceberg Catalog .TrequiredN)r   ConceptParserForResourcer   AddToParserparserverb
positionals      r   AddCatalogResourceArgr'   D   sE     ++i;TF!$	 , 
 Kr   c                     [         R                  R                  U(       a  SOS[        5       SU S3SS9R	                  U 5        g)zAdds a resource argument for a BigLake Iceberg namespace.

Args:
  parser: The argparse parser.
  verb: The verb to describe the resource, e.g., "to list namespaces from".
  positional: Whether the argument should be positional or a flag.
r   z--namespacezThe Iceberg Namespace r   Tr   N)r   r    r!   r   r"   r#   s      r   AddNamespaceResourceArgr)   T   sE     ++k] tfA&	 , 
 Kr   c                     [         R                  R                  U(       a  SOS[        5       SU S3SS9R	                  U 5        g)zAdds a resource argument for a BigLake Iceberg table.

Args:
  parser: The argparse parser.
  verb: The verb to describe the resource, e.g., "to list tables from".
  positional: Whether the argument should be positional or a flag.
r   z--tablezThe Iceberg Table r   Tr   N)r   r    r!   r   r"   r#   s      r   AddTableResourceArgr+   d   sE     ++g4&"	 , 
 Kr   N)T)__doc__ googlecloudsdk.calliope.conceptsr   (googlecloudsdk.command_lib.util.conceptsr   r   r   r   r'   r)   r+   r   r   r   <module>r/      s.    ) 5 D
	$  r   