ó
    €Ï¿  ã                   ó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\R                  5      rg	)
z-The gcloud datastore operations list command.é    )Ú
operations)Úrewrite_backend)Úbase)Ú
properties)Úresource_projection_specc                   ó4   • \ rS rSrSr\S 5       rS rS rSr	g)ÚListé   a¯  List pending Cloud Datastore admin operations and their status.

Filters are case-sensitive and have the following syntax:

  field = value [AND [field = value]] ...

where `field` is one of `kind`, `namespace`, `type`, or `labels.[KEY]`, and
`[KEY]` is a label key. `kind` and `namespace` may be `*` to query for
operations on all kinds and/or all namespaces. `type` may be one of
`export_entities` or `import_entities`.

Only the logical `AND` operator is
supported; space-separated items are treated as having an implicit `AND`
operator.

## EXAMPLES

To see the list of all operations, run:

  $ {command}

To see the list of all export operations, run:

  $ {command} --filter='type:export_entities'

To see the list of all export operations for kind 'MyKind', run:

  $ {command} --filter='type:export_entities AND kind:MyKind'

To see the list of all operations with particular labels, run:

  $ {command} --filter='labels.run = daily'
c                 ó¼   • [         R                  R                  U [        R                  5        [         R
                  R                  U [        R                  5        g)z Register flags for this command.N)r   ÚPAGE_SIZE_FLAGÚ
SetDefaultr   ÚDEFAULT_PAGE_SIZEÚ
LIMIT_FLAG)Úparsers    Ú(lib/surface/datastore/operations/list.pyÚArgsÚ	List.Args<   s:   € ô 	×Ñ×"Ñ" 6¬:×+GÑ+GÔHÜ‡OO×Ñ˜v¤z×'CÑ'CÕDó    c                 óè   • U R                  UR                  U5      u  p#X!l        [        R                  " [        R
                  R                  R                  R                  SS9UR                  US9$ )NT)Úrequired)ÚprojectÚlimitÚoperation_filter)
Ú_ConvertFilterÚfilterr   ÚListOperationsr   ÚVALUESÚcorer   ÚGetr   )ÚselfÚargsÚfrontend_filterÚbackend_filters       r   ÚRunÚList.RunB   s`   € Ø&*×&9Ñ&9¸$¿+¹+ÀtÓ&LÑ#€Oà!„KÜ×$Ò$Ü×!Ñ!×&Ñ&×.Ñ.×2Ñ2¸DÐ2ÐAØj‰jØ'ñ)ð )r   c                 ó¼   • [         R                  " 5       nUR                  5       n[        R                  " UR
                  UR                  S9nUR                  XS9$ )a8  Translates user-provided filter spec into one our backend understands.

Args:
  expression: a filter spec to translate
  args: the args namespace object
Returns:
  A tuple of string filter specs. The first is the frontend spec for post
  filtering, the second is a spec that the Datastore Admin API understands.
)ÚsymbolsÚaliases)Údefaults)r   ÚOperationsRewriteBackendÚGetDisplayInfor   ÚProjectionSpecÚ
transformsr(   ÚRewrite)r    Ú
expressionr!   Úoperation_rewrite_backendÚdisplay_infor)   s         r   r   ÚList._ConvertFilterK   sW   € ô !0× HÒ HÓ JÐØ×&Ñ&Ó(€LÜ'×6Ò6Ø×'Ñ'°×1EÑ1EñG€Hà$×,Ñ,¨ZÐ,ÐKÐKr   © N)
Ú__name__Ú
__module__Ú__qualname__Ú__firstlineno__Ú__doc__Ústaticmethodr   r$   r   Ú__static_attributes__r3   r   r   r	   r	      s)   † ñ ðD ñEó ðEò
)õLr   r	   N)r8   Ú googlecloudsdk.api_lib.datastorer   r   Úgooglecloudsdk.callioper   Úgooglecloudsdk.corer   Úgooglecloudsdk.core.resourcer   ÚListCommandr	   r3   r   r   Ú<module>r@      s1   ðñ 4õ 8Ý <Ý (Ý *Ý Aô@Lˆ4×Ñõ @Lr   