
    xh                     "     G d  de           ZdS )c                   v   e Zd ZdZ	 	 	 	 	 	 ddZd Zed             Zej        d             Zed             Z	e	j        d             Z	ed	             Z
e
j        d
             Z
ed             Zej        d             Zed             Zej        d             Zed             Zej        d             Zd ZdS )
Ganalyticsz;Allows you to enable tracking provided by Google Analytics.Nc                 b   d| _         d| _        d| _        d| _        d| _        d| _        |                     d|           |                     d|           |                     d|           |                     d|           |                     d|           |                     d|           dS )a  Create a GAnalytics to enable, customize Google Analytics tracking.

        :param enable: If this setting is enabled.
        :type enable: boolean, optional
        :param utm_source: Name of the referrer source.
        :type utm_source: string, optional
        :param utm_medium: Name of the marketing medium (e.g. "Email").
        :type utm_medium: string, optional
        :param utm_term: Used to identify paid keywords.
        :type utm_term: string, optional
        :param utm_content: Used to differentiate your campaign from ads.
        :type utm_content: string, optional
        :param utm_campaign: The name of the campaign.
        :type utm_campaign: string, optional
        Nenable
utm_source
utm_mediumutm_termutm_contentutm_campaign)_enable_utm_source_utm_medium	_utm_term_utm_content_utm_campaign_Ganalytics__set_field)selfr   r   r   r   r	   r
   s          S/var/www/html/what/lib/python3.11/site-packages/sendgrid/helpers/mail/ganalytics.py__init__zGanalytics.__init__   s    ,  !6***z222z222X...44466666    c                 0    |t          | ||           dS dS )z Sets a field to the provided value if value is not None

        :param field: Name of the field
        :type field: string
        :param value: Value to be set, ignored if None
        :type value: Any
        N)setattr)r   fieldvalues      r   __set_fieldzGanalytics.__set_field(   s*     D%''''' r   c                     | j         S )zGIndicates if this setting is enabled.

        :rtype: boolean
        r   r   s    r   r   zGanalytics.enable3   s     |r   c                     || _         dS )zIndicates if this setting is enabled.

        :param value: Indicates if this setting is enabled.
        :type value: boolean
        Nr   r   r   s     r   r   zGanalytics.enable;   s     r   c                     | j         S )zuName of the referrer source.
        e.g. Google, SomeDomain.com, or Marketing Email

        :rtype: string
        r   r   s    r   r   zGanalytics.utm_sourceD   s     r   c                     || _         dS )zName of the referrer source.
        e.g. Google, SomeDomain.com, or Marketing Email

        :param value: Name of the referrer source.
        e.g. Google, SomeDomain.com, or Marketing Email
        :type value: string
        Nr!   r   s     r   r   zGanalytics.utm_sourceM   s     !r   c                     | j         S )zKName of the marketing medium (e.g. Email).

        :rtype: string
        r   r   s    r   r   zGanalytics.utm_mediumX   s     r   c                     || _         dS )zName of the marketing medium (e.g. Email).

        :param value: Name of the marketing medium (e.g. Email).
        :type value: string
        Nr$   r   s     r   r   zGanalytics.utm_medium`   s     !r   c                     | j         S )zDUsed to identify any paid keywords.

        :rtype: string
        r   r   s    r   r   zGanalytics.utm_termi   s     ~r   c                     || _         dS )zUsed to identify any paid keywords.

        :param value: Used to identify any paid keywords.
        :type value: string
        Nr'   r   s     r   r   zGanalytics.utm_termq   s     r   c                     | j         S )zYUsed to differentiate your campaign from advertisements.

        :rtype: string
        r   r   s    r   r	   zGanalytics.utm_contentz   s       r   c                     || _         dS )zUsed to differentiate your campaign from advertisements.

        :param value: Used to differentiate your campaign from advertisements.
        :type value: string
        Nr*   r   s     r   r	   zGanalytics.utm_content   s     "r   c                     | j         S )z:The name of the campaign.

        :rtype: string
        r   r   s    r   r
   zGanalytics.utm_campaign   s     !!r   c                     || _         dS )zoThe name of the campaign.

        :param value: The name of the campaign.
        :type value: string
        Nr-   r   s     r   r
   zGanalytics.utm_campaign   s     #r   c                     g d}i }|D ]\}t          | |d          }|Gt          |t                    st          |t                    r|||<   E|                                ||<   ]|S )z
        Get a JSON-ready representation of this Ganalytics.

        :returns: This Ganalytics, ready for use in a request body.
        :rtype: dict
        )r   r   r   r   r	   r
   N)getattr
isinstanceboolstrget)r   keys
ganalyticskeyr   s        r   r4   zGanalytics.get   s    / / / 
 	2 	2CD#t,,E eT** 2j.D.D 2&+JsOO&+iikkJsOr   )NNNNNN)__name__
__module____qualname____doc__r   r   propertyr   setterr   r   r   r	   r
   r4    r   r   r   r      s       EE   !""7 "7 "7 "7H	( 	( 	(   X ]  ]     X  ! ! !     X  ! ! !   X _  _ ! ! X! " " " " " X" # # #    r   r   N)objectr   r>   r   r   <module>r@      sC   o o o o o o o o o or   