
    Y                     T    S r SSKrSSKJr   " S S\R                  5      r  SS jrg)z-General utilities for cloud deploy resources.    N)resource_propertyc                   <    \ rS rSrSrSrSrSrSrSr	Sr
S	rS
rSrSrg)ResourceType   zBIndicates the cloud deploy resource type defined in the API proto.DeliveryPipelineTargetReleaseRollout
AutomationCustomTargetTypeDeployPolicyDeliveryPipelineAttributeTargetAttribute N)__name__
__module____qualname____firstlineno____doc__DELIVERY_PIPELINETARGETRELEASEROLLOUT
AUTOMATIONCUSTOM_TARGET_TYPEDEPLOY_POLICYPIPELINE_ATTRIBUTETARGET_ATTRIBUTE__static_attributes__r       4lib/googlecloudsdk/command_lib/deploy/deploy_util.pyr   r      s6    J(&''*) -2&r    r   c                    U(       an  [        U UR                  5      R                  nU" 5       nUR                  5        H-  u  pxUR                  R                  UR                  XxS95        M/     Xal        U(       a  [        XR                  5      R                  n	U	" 5       n
UR                  5        HB  u  pxU
R                  R                  U	R                  [        R                  " U5      US95        MD     Xl        gg)a  Sets the metadata of a cloud deploy resource message.

Args:
 messages: module containing the definitions of messages for Cloud Deploy.
 message: message in googlecloudsdk.generated_clients.apis.clouddeploy.
 resource_type: ResourceType enum, the type of the resource to be updated,
   which is defined in the API proto.
 annotations: dict[str,str], a dict of annotation (key,value) pairs that allow
   clients to store small amounts of arbitrary data in cloud deploy resources.
 labels: dict[str,str], a dict of label (key,value) pairs that can be used to
   select cloud deploy resources and to find collections of cloud deploy
   resources that satisfy certain conditions.
)keyvalueN)getattrr$   AnnotationsValueitemsadditionalPropertiesappendAdditionalPropertyannotationsLabelsValuer   ConvertToSnakeCaselabels)messagesmessageresource_typer+   r.   annotations_value_msgannotations_valuer#   r$   labels_value_msglabels_values              r!   SetMetadatar6   #   s    & #H$1$7$799I9I -/!'')
,,33

2
2s
2
HJ * ,x)<)<=II#%Llln
''..

-
- $66s;	 .  % "N r    )NN)r   enumgooglecloudsdk.core.resourcer   Enumr   r6   r   r    r!   <module>r:      s/    4  :
'499 
'  !	("r    