
                         b    S 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)	zIWraps a Cloud Run Route message, making fields more convenient to access.    )absolute_import)division)unicode_literals)
k8s_objectc                   t    \ rS rSrSrSrS r\S 5       r\R                  S 5       r\S 5       r
\S 5       rSrg	)
Route   zWraps a Cloud Run Route message, making fields more convenient to access.

Setting properties on a Route (where possible) writes through to the nested
Kubernetes-style fields.
zserving.knative.devc                 B    U R                   R                  R                  $ N_mspectrafficselfs    'lib/googlecloudsdk/api_lib/run/route.pyr   Route.traffic"   s    77<<    c                 8    XR                   R                  l        g r   r   )r   values     r   r   r   &   s     GGLLr   c                     U R                   R                  R                  =(       d     U R                   R                  R                  $ r   )r   statusurldomainr   s    r   r   Route.domain*   s)    77>>6!6!66r   c                     0 nU R                   R                  R                   H.  nUR                  (       d  M  UR                  XR                  '   M0     U$ )z6Return the revisions whose traffic target is positive.)r   r   r   percentrevisionName)r   	revisionstraffic_targets      r   active_revisionsRoute.active_revisions.   sI     I''..00				1?1G1G	--. 1 r    N)__name__
__module____qualname____firstlineno____doc__API_CATEGORYKINDpropertyr   setterr   r!   __static_attributes__r#   r   r   r   r      se     ',	$    >>! ! 7 7  r   r   N)	r(   
__future__r   r   r   googlecloudsdk.api_lib.runr   KubernetesObjectr   r#   r   r   <module>r1      s)    P &  ' 1J'' r   