
    g                         S r S rS rg)a  Fleet resource transforms.

A resource transform function converts a JSON-serializable resource to a string
value. This module contains built-in transform functions that may be used in
resource projection and filter expressions.

NOTICE: Unlike transforms of top-level command groups like 'container', the
transform functions in this module are not publicly documented under
'gcloud topic projections'.
c                    ^ ^ U U4S jnU$ )a  Returns projection for MembershipFeatureSpec's origin.type value.

Args:
  client: Fleet API client.
  fleet_default_exists (bool): Whether the fleetDefaultMemberConfig exists on
    the Feature in question.
Returns:
  A projection transform function that accepts the origin.type value and
  returns a string representation of whether the Membership's spec is synced
  to the Feature's Fleet-default Membership configuration.
c                 v  > T(       d  gU (       d  gU [        TR                  R                  R                  R                  5      :X  a  gU [        TR                  R                  R                  R
                  5      :X  d7  U [        TR                  R                  R                  R                  5      :X  a  gU $ )zVReturns formatted origin.

Args:
  r: The JSON-serializable origin.type value string.
FLEET_DEFAULT_NOT_CONFIGUREDUNKNOWNYESNO)strmessagesOriginTypeValueValuesEnumFLEETUSERFLEET_OUT_OF_SYNC)rclientfleet_default_existss    8lib/googlecloudsdk/api_lib/container/fleet/transforms.py(transform_feature_membership_spec_originLconstruct_origin_transform.<locals>.transform_feature_membership_spec_origin(   s      +C&&::@@AA	S'';;@@AA	S'';;MMNNH     )r   r   r   s   `` r   construct_origin_transformr      s    " 
21r   c                     S[        X5      0$ )a  Returns the Fleet-specific resource transform symbol table.

Format strings, either set by the user or the default set in the command, may
call the transform functions in the table by the associated table keys. Format
strings call the functions on resource fields returned by commands to change
the displayed value of that field.

Args:
  client: Fleet API client.
  fleet_default_exists (bool): Whether the fleetDefaultMemberConfig exists on
    the Feature in question.
Returns:
  A dictionary of transform names to functions.
synced_to_fleet_default)r   )r   r   s     r   get_transformsr   <   s       
$V
B
 r   N)__doc__r   r   r   r   r   <module>r      s    	2@r   