
    (ph%                       S r SSKJr  Sr/ SQrSSKJr  SSKrSSKrSSK	J
r
  SSKJr  SS	KJr  SSKJr  SSKrSSKrSSKrSSKrSSKrSSKrSSKrSSKrSSKrSS
KJr  SSKJr  SSK J!r!  SSK"r"SSK#r# SSK$r$ SSK&J'r'  Sr(SSK)J*r*J+r+  SSK,J-r-J.r.  SSK/J0r0J1r1J2r2J3r3J4r4J5r5  SSK6J7r7J8r8J9r9J:r:J;r;J<r<J=r=  SSK>J?r?J@r@JArA  SSKBJCrC  S\"lD        \R                  " \F5      rG\R                  " S5      rI\R                  " S5      rJSrK\KrLSrMSrN\O" / SQ5      rPSSSS S!.rQS"S#S$.rRS%S&SS'.rSS(S&SS'.rTS)rUS*rVS+rWS,rXS-rY\O" / S.Q5      rZS&S/S0.r[ " S1 S2\\5      r]\O" S3/5      r^ " S4 S5\
5      r_S6 r`S7 ra\." S85      SSSS\:SSSSSSSSS4S9 j5       rbS: rc    SNS; jrdS< re\." S5      SSSSS\:SSSSS4S= j5       rfS> rgS? rhS@ riSA rjSB rkSC rlSD rmSE rn " SF SG\o5      rpSH rq   SOSI jrr " SJ SK\o5      rsSL rtSM rug! \% a    Sr$ GNf = f! \% a    Sr( GNf = f)PzVClient for discovery based APIs.

A client library for Google's discovery based APIs.
    )absolute_importz$jcgregorio@google.com (Joe Gregorio))buildbuild_from_documentfix_method_name	key2param)OrderedDictN)BytesGenerator)MIMEMultipart)MIMENonMultipart)MutualTLSChannelError)mtls)service_account)universeTF)_auth	mimeparse)_add_query_parameter
positional)	HttpErrorInvalidJsonErrorMediaUploadSizeErrorUnacceptableMimeTypeErrorUnknownApiNameOrVersionUnknownFileType)BatchHttpRequestHttpMockHttpMockSequenceHttpRequestMediaFileUploadMediaUpload
build_http)	JsonModel
MediaModelRawModel)Schemas   z{[^}]*}z[a-zA-Z0-9_-]+zDhttps://www.googleapis.com/discovery/v1/apis/{api}/{apiVersion}/restzAhttps://{api}.googleapis.com/$discovery/rest?version={apiVersion}z)A description of how to use this function)PUTPOSTPATCH
         (   )KBMBGBTBzThe request body.object)descriptiontypezOThe filename of the media request body, or an instance of a MediaUpload object.string)r2   r3   requiredzPThe MIME type of the media request body, or an instance of a MediaUpload object.)	pageTokennextPageToken!GOOGLE_API_USE_CLIENT_CERTIFICATEGOOGLE_API_USE_MTLS_ENDPOINTGOOGLE_CLOUD_UNIVERSE_DOMAINzgoogleapis.com)traceppuseripstrictquery)r3   locationc                   (   ^  \ rS rSrU 4S jrSrU =r$ )APICoreVersionError   c                 (   > Sn[         TU ]  U5        g )NzIgoogle-api-core >= 2.18.0 is required to use the universe domain feature.)super__init__)selfmessage	__class__s     L/var/www/html/venv/lib/python3.13/site-packages/googleapiclient/discovery.pyrF   APICoreVersionError.__init__   s    W 	 	!     )__name__
__module____qualname____firstlineno__rF   __static_attributes____classcell__)rI   s   @rJ   rB   rB      s    " "rL   rB   bodyc                   ,    \ rS rSr\R
                  rSrg)_BytesGenerator   rM   N)rN   rO   rP   rQ   r	   write_write_linesrR   rM   rL   rJ   rV   rV      s    !''LrL   rV   c                     U R                  SS5      R                  SS5      n [        R                  " U 5      (       d
  U [        ;   a  U S-   $ U $ )zFix method names to avoid '$' characters and reserved word conflicts.

Args:
  name: string, method name.

Returns:
  The name with '_' appended if the name is a reserved word and '$' and '-'
  replaced with '_'.
$_-)replacekeyword	iskeywordRESERVED_WORDS)names    rJ   r   r      sH     <<S!))#s3D$."8czrL   c                    / n[        U 5      n U S   R                  5       (       d  UR                  S5        U  H<  nUR                  5       (       a  UR                  U5        M+  UR                  S5        M>     SR	                  U5      $ )zConverts key names into parameter names.

For example, converting "max-results" -> "max_results"

Args:
  key: string, the method key name.

Returns:
  A safe method name based on the key name.
r   xr\    )listisalphaappendisalnumjoin)keyresultcs      rJ   r   r      sl     F
s)Cq6>>c99;;MM!MM#	  776?rL      c                    XS.nUc  Uc  SnOSnUc  [        5       nOUnSn[        X15       H?  n[        R                  " UU5      n [	        UUUU UU	UUUS9	n[        UUUUUUUU
UUUS9n  O   Uc  UR                  5         Uc  [        SU < SU< 35      eU$ ! [         a5  nUR                  R                  [        R                  :X  a   SnAM  UeSnAff = f)	a-  Construct a Resource for interacting with an API.

Construct a Resource object for interacting with an API. The serviceName and
version are the names from the Discovery service.

Args:
  serviceName: string, name of the service.
  version: string, the version of the service.
  http: httplib2.Http, An instance of httplib2.Http or something that acts
    like it that HTTP requests will be made through.
  discoveryServiceUrl: string, a URI Template that points to the location of
    the discovery service. It should have two parameters {api} and
    {apiVersion} that when filled in produce an absolute URI to the discovery
    document for that service.
  developerKey: string, key obtained from
    https://code.google.com/apis/console.
  model: googleapiclient.Model, converts to and from the wire format.
  requestBuilder: googleapiclient.http.HttpRequest, encapsulator for an HTTP
    request.
  credentials: oauth2client.Credentials or
    google.auth.credentials.Credentials, credentials to be used for
    authentication.
  cache_discovery: Boolean, whether or not to cache the discovery doc.
  cache: googleapiclient.discovery_cache.base.CacheBase, an optional
    cache object for the discovery documents.
  client_options: Mapping object or google.api_core.client_options, client
    options to set user options on the client.
    (1) The API endpoint should be set through client_options. If API endpoint
    is not set, `GOOGLE_API_USE_MTLS_ENDPOINT` environment variable can be used
    to control which endpoint to use.
    (2) client_cert_source is not supported, client cert should be provided using
    client_encrypted_cert_source instead. In order to use the provided client
    cert, `GOOGLE_API_USE_CLIENT_CERTIFICATE` environment variable must be
    set to `true`.
    More details on the environment variables are here:
    https://google.aip.dev/auth/4114
  adc_cert_path: str, client certificate file path to save the application
    default client certificate for mTLS. This field is required if you want to
    use the default client certificate. `GOOGLE_API_USE_CLIENT_CERTIFICATE`
    environment variable must be set to `true` in order to use this field,
    otherwise this field doesn't nothing.
    More details on the environment variables are here:
    https://google.aip.dev/auth/4114
  adc_key_path: str, client encrypted private key file path to save the
    application default client encrypted private key for mTLS. This field is
    required if you want to use the default client certificate.
    `GOOGLE_API_USE_CLIENT_CERTIFICATE` environment variable must be set to
    `true` in order to use this field, otherwise this field doesn't nothing.
    More details on the environment variables are here:
    https://google.aip.dev/auth/4114
  num_retries: Integer, number of times to retry discovery with
    randomized exponential backoff in case of intermittent/connection issues.
  static_discovery: Boolean, whether or not to use the static discovery docs
    included in the library. The default value for `static_discovery` depends
    on the value of `discoveryServiceUrl`. `static_discovery` will default to
    `True` when `discoveryServiceUrl` is also not provided, otherwise it will
    default to `False`.
  always_use_jwt_access: Boolean, whether always use self signed JWT for service
    account credentials. This only applies to
    google.oauth2.service_account.Credentials.

Returns:
  A Resource object with methods for interacting with the service.

Raises:
  google.auth.exceptions.MutualTLSChannelError: if there are any problems
    setting up mutual TLS channel.
)api
apiVersionNTF)num_retriesstatic_discovery)
basehttpdeveloperKeymodelrequestBuildercredentialsclient_optionsadc_cert_pathadc_key_pathalways_use_jwt_accessname:   version: )r    _discovery_service_uri_optionsuritemplateexpand_retrieve_discovery_docr   r   respstatushttp_client	NOT_FOUNDcloser   )serviceNameversionru   discoveryServiceUrlrv   rw   rx   ry   cache_discoverycacherz   r{   r|   rr   rs   r}   paramsdiscovery_httpservicediscovery_urlrequested_urlcontentes                          rJ   r   r      s   n !8F &#$|#G78KU#**=&A	-'!1
G *")-'-+)&;G 9 VJ |%g&VWW  	vv}} 5 55		s   $B
C%(CCCc                 d    U b  U /$ Uc  [         R                  S5        [        /$ [        [        /$ )a6  
  Returns Discovery URIs to be used for attempting to build the API Resource.

Args:
  discoveryServiceUrl:
      string, the Original Discovery Service URL preferred by the customer.
  version:
      string, API Version requested

Returns:
    A list of URIs to be tried for the Service Discovery, in order.
zADiscovery V1 does not support empty versions. Defaulting to V2...)loggerwarningV2_DISCOVERY_URIDISCOVERY_URI)r   r   s     rJ   r   r   Z  s>     &#$$O	
 !!!/00rL   c	                    SSK Jn	  U(       a4  Uc  U	R                  5       nU(       a  UR                  U 5      n
U
(       a  U
$ U(       a-  U	R	                  X45      n
U
(       a  U
$ [        SU< SU< 35      eU nS[        R                  ;   a  [        U S[        R                  S   5      nU(       a  [        U SU5      n[        R                  S	U5        [        U[        R                  U5      nUR                  US
9u  p U
R                  S5      n
 [         R"                  " U
5      nU(       a  U(       a  UR+                  X
5        U
$ ! [         a     NDf = f! [$         a'  n[        R'                  SU
-   5        [)        5       eSnAff = f)a  Retrieves the discovery_doc from cache or the internet.

Args:
  url: string, the URL of the discovery document.
  http: httplib2.Http, An instance of httplib2.Http or something that acts
    like it through which HTTP requests will be made.
  cache_discovery: Boolean, whether or not to cache the discovery doc.
  serviceName: string, name of the service.
  version: string, the version of the service.
  cache: googleapiclient.discovery_cache.base.Cache, an optional cache
    object for the discovery documents.
  developerKey: string, Key for controlling API usage, generated
    from the API Console.
  num_retries: Integer, number of times to retry discovery with
    randomized exponential backoff in case of intermittent/connection issues.
  static_discovery: Boolean, whether or not to use the static discovery docs
    included in the library.

Returns:
  A unicode string representation of the discovery document.
r%   )discovery_cacheNr~   r   REMOTE_ADDRuserIprk   zURL being requested: GET %s)rr   utf-8zFailed to parse as JSON: )re   r   
autodetectgetget_static_docr   osenvironr   r   debugr   null_postprocexecutedecodeAttributeErrorjsonloads
ValueErrorerrorr   set)urlru   r   r   r   r   rv   rr   rs   r   r   
actual_urlreqr   r   r   s                   rJ   r   r   t  sZ   @ "=#..0EiinG !00FN)+6@  J
 

")#xM9RS
)#ulC

LL.
; dK55z
BCKKKK8MD..)!**W% 5		#N  
  !07:;  !s*   E
 E 

EE
F$"FFc                 f    [         (       d&  [        U SS 5      nU(       a  U[        :w  a  [        eg g g )Nuniverse_domain)HAS_UNIVERSEgetattrDEFAULT_UNIVERSErB   )ry   credentials_universes     rJ   4_check_api_core_compatible_with_credentials_universer     s7    <&{4EtL$8<L$L%% %M rL   c                    Uc(  [         R                  R                  R                  5       n[	        U[
        R                  R                  5      (       a)  [         R                  R                  R                  U5      nUb:  US4UR                  S4/nU H"  u  pUc  M
  [        SR                  U5      5      e   [	        U [        5      (       a  [        R                  " U 5      n O:[	        U [        5      (       a%  [        R                  " U R!                  S5      5      n SU ;  a:  [	        U["        [$        45      (       a  [&        R)                  S5        [+        5       e[,        R.                  R1                  U S   U S   5      nSn[2        (       a]  [4        R6                  " [8        S5      n[:        R<                  " UR>                  U5      nURA                  [:        RB                  U5      nO[E        US	S5      nU(       a  [F        eUnURH                  (       a  URH                  n[K        U 5      nUGc  [M        U RO                  S
0 5      RO                  S0 5      RO                  S0 5      RQ                  5       5      nU(       a  U(       d  UR                  (       a0  U(       a)  [         R                  RR                  RU                  S5      eUR                  (       a4  [V        RX                  " UR                  URZ                  UR\                  S9nUc)  [V        R^                  " URZ                  UR\                  S9n[a        U5        URZ                  (       d  [V        Rb                  " UU5      nU(       ag  [	        U[d        Rf                  5      (       aH  U(       aA  [i        [d        Rf                  S5      (       a"  URk                  U5      nURm                  U5        U(       a  [V        Rn                  " U5      nO
[q        5       nSn[4        R6                  " [r        S5      nUS;  a  [u        S5      eU(       a  URv                  (       a  [u        S5      eUS:X  at  U(       a/  [i        US5      (       a  URx                  (       a  URx                  nO>U	(       a7  U
(       a0  [z        R|                  " 5       (       a  [z        R~                  " X5      nU(       aW  U" 5       u  nnn[        (       a+  [	        U[        R                  5      (       a  UR                  OUnUR                  UUSU5        SU ;   a  U(       a  URH                  (       d  [,        R.                  R1                  U S   U S   5      n[4        R6                  " [        S5      nUS;  a  [u        S5      eUS:X  d  US:X  aE  U(       a>  [2        (       a1  U[:        RB                  :w  a  [u        S[:        RB                   S35      eUnO[E        USS5      n[a        U5        Uc   U RO                  S/ 5      n[        SU;   5      n[        UUUUUU U UUS 9	$ )!a	  Create a Resource for interacting with an API.

Same as `build()`, but constructs the Resource object from a discovery
document that is it given, as opposed to retrieving one over HTTP.

Args:
  service: string or object, the JSON discovery document describing the API.
    The value passed in may either be the JSON string or the deserialized
    JSON.
  base: string, base URI for all HTTP requests, usually the discovery URI.
    This parameter is no longer used as rootUrl and servicePath are included
    within the discovery document. (deprecated)
  future: string, discovery document with future capabilities (deprecated).
  http: httplib2.Http, An instance of httplib2.Http or something that acts
    like it that HTTP requests will be made through.
  developerKey: string, Key for controlling API usage, generated
    from the API Console.
  model: Model class instance that serializes and de-serializes requests and
    responses.
  requestBuilder: Takes an http request and packages it up to be executed.
  credentials: oauth2client.Credentials or
    google.auth.credentials.Credentials, credentials to be used for
    authentication.
  client_options: Mapping object or google.api_core.client_options, client
    options to set user options on the client.
    (1) The API endpoint should be set through client_options. If API endpoint
    is not set, `GOOGLE_API_USE_MTLS_ENDPOINT` environment variable can be used
    to control which endpoint to use.
    (2) client_cert_source is not supported, client cert should be provided using
    client_encrypted_cert_source instead. In order to use the provided client
    cert, `GOOGLE_API_USE_CLIENT_CERTIFICATE` environment variable must be
    set to `true`.
    More details on the environment variables are here:
    https://google.aip.dev/auth/4114
  adc_cert_path: str, client certificate file path to save the application
    default client certificate for mTLS. This field is required if you want to
    use the default client certificate. `GOOGLE_API_USE_CLIENT_CERTIFICATE`
    environment variable must be set to `true` in order to use this field,
    otherwise this field doesn't nothing.
    More details on the environment variables are here:
    https://google.aip.dev/auth/4114
  adc_key_path: str, client encrypted private key file path to save the
    application default client encrypted private key for mTLS. This field is
    required if you want to use the default client certificate.
    `GOOGLE_API_USE_CLIENT_CERTIFICATE` environment variable must be set to
    `true` in order to use this field, otherwise this field doesn't nothing.
    More details on the environment variables are here:
    https://google.aip.dev/auth/4114
  always_use_jwt_access: Boolean, whether always use self signed JWT for service
    account credentials. This only applies to
    google.oauth2.service_account.Credentials.

Returns:
  A Resource object with methods for interacting with the service.

Raises:
  google.auth.exceptions.MutualTLSChannelError: if there are any problems
    setting up mutual TLS channel.
Nry   zclient_options.credentials_filez,Arguments http and {} are mutually exclusiver   rootUrlzYou are using HttpMock or HttpMockSequence withouthaving the service discovery doc in cache. Try calling build() without mocking once first to populate the cache.servicePathr   authoauth2scopeszGclient_options.credentials_file and credentials are mutually exclusive.)r   quota_project_idwith_always_use_jwt_accessfalse)truer   zQUnsupported GOOGLE_API_USE_CLIENT_CERTIFICATE value. Accepted values: true, falseziClientOptions.client_cert_source is not supported, please use ClientOptions.client_encrypted_cert_source.r   client_encrypted_cert_sourcere   mtlsRootUrlauto)neverr   alwayszTUnsupported GOOGLE_API_USE_MTLS_ENDPOINT value. Accepted values: never, auto, alwaysr   z1mTLS is not supported in any universe other than .featuresdataWrapper	ru   baseUrlrw   rv   rx   resourceDescrootDescschemar   )Ggoogleapi_corerz   ClientOptions
isinstancecollectionsabcMapping	from_dictcredentials_filer   formatstrr   r   bytesr   r   r   r   r   r   urllibparseurljoinr   r   getenvr:   r   determine_domainr   r^   r   r   rB   api_endpointr$   rf   r   keys
exceptionsDuplicateCredentialArgsr   credentials_from_filer   r   default_credentialsr   with_scopesr   Credentialshasattrr   _create_self_signed_jwtauthorized_httpr    r8   r   client_cert_sourcer   r   has_default_client_cert_source$default_client_encrypted_cert_sourcegoogle_auth_httplib2AuthorizedHttpru   add_certificater9   r!   Resource)r   rt   futureru   rv   rw   rx   ry   rz   r{   r|   r}   banned_optionsoptionrb   r   universe_domain_envclient_universeaudience_for_self_signed_jwtr   r   client_cert_to_useuse_client_cert	cert_pathkey_path
passphrasehttp_channelmtls_endpointuse_mtls_endpointhttp_credentialsr   s                                  rJ   r   r     sQ   V 77EEG.+//"9"9::77AA.Q -(,,.OP
 +LF! BII$O  + '3**W%	GU	#	#**W^^G45Jth@P5Q$R$R	
    <<	 2GM4JKDO| ii(DdK"33**,?
 ||H55G!.2CTJ%%#' ""**WF
 |KK#''"599(BGLLN
 ,..;oo00HH]  ..#99"33)00%3%D%D "#77)00%3%D%D AM "((#//VD
 ;(C(CDD%335QRR%@@AVWK//0LM ((5D
 <D "))$EwO"33'c  n??'{  f$N,JKK"??%3%P%P",43V3V3X3X%)%N%N!&" .@.B+Ix ('t%9%H%HII 		 	  ((9b*M G#n&A&A"LL00&(>M !#		*F O$(CC+j  !H,!V+0B<Ox7P7P$P/KHLeLeKffgh  % #4=<=MN};;z2.-834!%'
 
rL   c                    US:X  a=  [        U 5      [        S5      :X  d  [        U 5      [        S5      :X  a  U $ [        U 5      $ US:X  a  [        [        U 5      5      $ US:X  a  [        [        U 5      5      $ US:X  a"  [        [	        U 5      5      R                  5       $ [        U 5      [        S5      :X  d  [        U 5      [        S5      :X  a  U $ [        U 5      $ )aF  Convert value to a string based on JSON Schema type.

See http://tools.ietf.org/html/draft-zyp-json-schema-03 for more details on
JSON Schema.

Args:
  value: any, the value to convert
  schema_type: string, the type that value should be interpreted as

Returns:
  A string representation of 'value' based on the schema_type.
r4   re   integernumberboolean)r3   r   intfloatboollower)valueschema_types     rJ   _castr    s     h;$r("d5kT"X&=Lu:			!3u:		 5<  			!4;%%'';$r("d5kT"X&=Lu:rL   c                     [        U 5      S:  a  gU SS R                  5       n[        R                  U5      nUb  [	        U SS 5      U-  $ [	        U 5      $ )zConvert a string media size, such as 10GB or 3TB into an integer.

Args:
  maxSize: string, size as a string, such as 2MB or 7GB.

Returns:
  The size as an integer value.
rn   r   N)lenupper_MEDIA_SIZE_BIT_SHIFTSr   r  )maxSizeunits	bit_shifts      rJ   _media_size_to_longr    s]     7|aBCL E&**51I73B< I--7|rL   c                      SU S   U S   US.-  $ )a  Creates an absolute media path URL.

Constructed using the API root URI and service path from the discovery
document and the relative path for the API method.

Args:
  root_desc: Dictionary; the entire original deserialized discovery document.
  path_url: String; the relative URL for the API method. Relative to the API
      root, which is specified in the discovery document.

Returns:
  String; the absolute URI for media upload for the API method.
z'%(root)supload/%(service_path)s%(path)sr   r   )rootservice_pathpathrM   )	root_descpath_urls     rJ   _media_path_url_from_infor    s)     5)$!-08  rL   c                 B   U R                  S0 5      nUR                  S0 5      R                  5        H	  u  pVXdU'   M     [         H  n[        R                  5       XE'   M     U[        ;   a2  SU ;   a,  [        R                  5       nUR                  U S   5        XtS'   U$ )a  Updates parameters of an API method with values specific to this library.

Specifically, adds whatever global parameters are specified by the API to the
parameters for the individual method. Also adds parameters which don't
appear in the discovery document, but are available to all discovery based
APIs (these are listed in STACK_QUERY_PARAMETERS).

SIDE EFFECTS: This updates the parameters dictionary object in the method
description.

Args:
  method_desc: Dictionary with metadata describing an API method. Value comes
      from the dictionary of methods stored in the 'methods' key in the
      deserialized discovery document.
  root_desc: Dictionary; the entire original deserialized discovery document.
  http_method: String; the HTTP method used to call the API method described
      in method_desc.
  schema: Object, mapping of schema names to schema descriptions.

Returns:
  The updated Dictionary stored in the 'parameters' key of the method
      description dictionary.

parametersrequestrT   )	
setdefaultr   itemsSTACK_QUERY_PARAMETERS#STACK_QUERY_PARAMETER_DEFAULT_VALUEcopyHTTP_PAYLOAD_METHODSBODY_PARAMETER_DEFAULT_VALUEupdate)method_descr  http_methodr   r  rb   r2   rT   s           rJ   _fix_up_parametersr)  &  s    0 ''b9J ']]<<BBD&4 E '>CCE
 '
 **yK/G+002K	*+!6rL   c                    U R                  S0 5      nUR                  S/ 5      n[        UR                  SS5      5      nSnU(       a9  [        X5      n[        R	                  5       US'   [
        R	                  5       US'   XVU4$ )a:  Adds 'media_body' and 'media_mime_type' parameters if supported by method.

SIDE EFFECTS: If there is a 'mediaUpload' in the method description, adds
'media_upload' key to parameters.

Args:
  method_desc: Dictionary with metadata describing an API method. Value comes
      from the dictionary of methods stored in the 'methods' key in the
      deserialized discovery document.
  root_desc: Dictionary; the entire original deserialized discovery document.
  path_url: String; the relative URL for the API method. Relative to the API
      root, which is specified in the discovery document.
  parameters: A dictionary describing method parameters for method described
      in method_desc.

Returns:
  Triple (accept, max_size, media_path_url) where:
    - accept is a list of strings representing what content types are
      accepted for media upload. Defaults to empty list if not in the
      discovery document.
    - max_size is a long representing the max size in bytes allowed for a
      media upload. Defaults to 0L if not in the discovery document.
    - media_path_url is a String; the absolute URI for media upload for the
      API method. Constructed using the API root URI and service path from
      the discovery document and the relative path for the API method. If
      media upload is not supported, this is None.
mediaUploadacceptr  re   N
media_bodymedia_mime_type)r   r  r  "MEDIA_BODY_PARAMETER_DEFAULT_VALUEr#  'MEDIA_MIME_TYPE_PARAMETER_DEFAULT_VALUE)r'  r  r  r  media_uploadr,  max_sizemedia_path_urls           rJ   _fix_up_media_uploadr4  R  s    8 ??="5Lh+F"<#3#3Ir#BCHN29G#E#J#J#L
< (O(T(T(V
$%^++rL   c                 `    U S   nU S   nU S   n[        XXB5      n[        XX65      u  pxn	X4XWX4$ )aA  Updates a method description in a discovery document.

SIDE EFFECTS: Changes the parameters dictionary in the method description with
extra parameters which are used locally.

Args:
  method_desc: Dictionary with metadata describing an API method. Value comes
      from the dictionary of methods stored in the 'methods' key in the
      deserialized discovery document.
  root_desc: Dictionary; the entire original deserialized discovery document.
  schema: Object, mapping of schema names to schema descriptions.

Returns:
  Tuple (path_url, http_method, method_id, accept, max_size, media_path_url)
  where:
    - path_url is a String; the relative URL for the API method. Relative to
      the API root, which is specified in the discovery document.
    - http_method is a String; the HTTP method used to call the API method
      described in the method description.
    - method_id is a String; the name of the RPC method associated with the
      API method, and is in the method description in the 'id' key.
    - accept is a list of strings representing what content types are
      accepted for media upload. Defaults to empty list if not in the
      discovery document.
    - max_size is a long representing the max size in bytes allowed for a
      media upload. Defaults to 0L if not in the discovery document.
    - media_path_url is a String; the absolute URI for media upload for the
      API method. Constructed using the API root URI and service path from
      the discovery document and the relative path for the API method. If
      media upload is not supported, this is None.
r  
httpMethodid)r)  r4  )
r'  r  r   r  r(  	method_idr  r,  r2  r3  s
             rJ   _fix_up_method_descriptionr9  {  sT    @ 6"Hl+KD!I#KKPJ (<($Fn )XMMrL   c                 "   [         R                  R                  U 5      n[         R                  R                  U5      nUR                  UR                  :X  a  U $ [         R                  R	                  UR                  UR                  S95      $ )ap  
Update the media upload base url if its netloc doesn't match base url netloc.

This can happen in case the base url was overridden by
client_options.api_endpoint.

Args:
  media_path_url: String; the absolute URI for media upload.
  base_url: string, base URL for the API. All requests are relative to this URI.

Returns:
  String; the absolute URI for media upload.
)netloc)r   r   urlparser;  
urlunparse_replace)r3  base_urlparsed_media_urlparsed_base_urls       rJ   _fix_up_media_path_base_urlrB    su     ||,,^<ll++H5O/"8"88<<""!!)?)?!@ rL   c                    UR                  S5      (       d  UR                  S5      (       a  [        R                  R                  X5      $ U R	                  S5      (       a  U OU S-   nUR                  S5      (       a  USS OUnX#-   $ )z8Custom urljoin replacement supporting : before / in url.zhttp://zhttps:///r%   N)
startswithr   r   r   endswith)rt   r   new_basenew_urls       rJ   _urljoinrI    ss     ~~i  CNN:$>$>||##D..}}S))ttczH,,c!"g#GrL   c                   $    \ rS rSrSrS rS rSrg)ResourceMethodParametersi  a  Represents the parameters associated with a method.

Attributes:
  argmap: Map from method parameter name (string) to query parameter name
      (string).
  required_params: List of required parameters (represented by parameter
      name as string).
  repeated_params: List of repeated parameters (represented by parameter
      name as string).
  pattern_params: Map from method parameter name (string) to regular
      expression (as a string). If the pattern is set for a parameter, the
      value for that parameter must match the regular expression.
  query_params: List of parameters (represented by parameter name as string)
      that will be used in the query string.
  path_params: Set of parameters (represented by parameter name as string)
      that will be used in the base URL path.
  param_types: Map from method parameter name (string) to parameter type. Type
      can be any valid JSON schema type; valid values are 'any', 'array',
      'boolean', 'integer', 'number', 'object', or 'string'. Reference:
      http://tools.ietf.org/html/draft-zyp-json-schema-03#section-5.1
  enum_params: Map from method parameter name (string) to list of strings,
     where each list of strings is the list of acceptable enum values.
c                     0 U l         / U l        / U l        0 U l        / U l        [        5       U l        0 U l        0 U l        U R                  U5        g)a-  Constructor for ResourceMethodParameters.

Sets default values and defers to set_parameters to populate.

Args:
  method_desc: Dictionary with metadata describing an API method. Value
      comes from the dictionary of methods stored in the 'methods' key in
      the deserialized discovery document.
N)
argmaprequired_paramsrepeated_paramspattern_paramsquery_paramsr   path_paramsparam_typesenum_paramsset_parameters)rG   r'  s     rJ   rF   !ResourceMethodParameters.__init__  sU     !!  5K(rL   c                    UR                  S0 5      n[        [        UR                  5       5      5      nUR                  5        GHP  u  pE[	        U5      nX@R
                  U'   UR                  S5      (       a  US   U R                  U'   UR                  S5      (       a  US   U R                  U'   UR                  S5      (       a  U R                  R                  U5        UR                  S5      (       a  U R                  R                  U5        UR                  S5      S:X  a  U R                  R                  U5        UR                  S5      S:X  a  U R                  R                  U5        UR                  S	S
5      U R                  U'   GMS     [        R!                  US   5       H  n["        R!                  UR%                  S5      5       Hd  n[	        UR%                  S5      5      n	U R                  R                  U	5        XR                  ;   d  MI  U R                  R'                  U	5        Mf     M     g)a_  Populates maps and lists based on method description.

Iterates through each parameter for the method and parses the values from
the parameter dictionary.

Args:
  method_desc: Dictionary with metadata describing an API method. Value
      comes from the dictionary of methods stored in the 'methods' key in
      the deserialized discovery document.
r  patternenumr5   repeatedr@   r?   r  r3   r4   r   N)r   r   sortedr   r   rM  rP  rT  rN  rh   rO  rQ  rR  addrS  URITEMPLATEfinditerVARNAMEgroupremove)
rG   r'  r  sorted_parametersargdescparammatch	namematchrb   s
             rJ   rU  'ResourceMethodParameters.set_parameters  s    !__\26
'z/?/?/A(BC*002ICcNE!$KKxx	""-1)_##E*xx*.v,  'xx
##$$++E2xx
##$$++E2xx
#w.!!((/xx
#v-  $$U+&*hhvx&@DU#! 3* !))+f*=>E$--ekk!n=	 !34  $$T*,,,%%,,T2	 > ?rL   )rM  rT  rS  rR  rP  rQ  rO  rN  N)rN   rO   rP   rQ   __doc__rF   rU  rR   rM   rL   rJ   rK  rK    s    0).'3rL   rK  c                 L  ^ ^^^^^^^^^ [        T 5      m [        TUT5      u  mmmmmm[        T5      mUUUUUUU UUU4
S jnTR                  S[        5      S/n[        TR                  5      S:  a  UR                  S5        [        UR                  S0 5      R                  5       5      nUR                  [        5        [        TR                  R                  5       5      nTR                  S/ 5       Vs/ s H  n[        U5      PM     n	nSU;   a  U	R                  S5        [        U5       H  n
X;  d  M
  U	R                  U
5        M     U	 GHE  nX;   a  M  S	nUTR                  ;   a  S
nS	nUTR                  ;   a  SnTS   TR                  U      nUR                  SS5      nSU;   a7  UR                  SU< SU< U< U< STR!                  US   5      < S3	5        O6UR                  SS5      nUR                  SU< SU< SU< U< U< S3	5        UR                  S/ 5      nUR                  S/ 5      nU(       d  M  U(       d  GM  UR                  S5        [#        UU5       H   u  n
nUR                  SU
< SU< S35        M"     GMH     ST;   a\  T R%                  S5      (       a  UR                  S5        O4UR                  S5        UR                  TR'                  TS   5      5        [)        USS	R+                  U5      5        T U4$ s  snf ) aI  Creates a method for attaching to a Resource.

Args:
  methodName: string, name of the method to use.
  methodDesc: object, fragment of deserialized discovery document that
    describes the method.
  rootDesc: object, the entire deserialized discovery document.
  schema: object, mapping of schema names to schema descriptions.
c                   >
 U R                  5         U H-  nUT+R                  ;  d  M  [        SR                  U5      5      e   [	        UR                  5       5      nU H  nX   b  M
  X	 M     T+R                   H=  nX!;  d  M
  U[        ;  d  [        [        T(T-S5      5      (       d  M1  [        SU-  5      e   T+R                  R                  5        He  u  p$X!;   d  M  [        X   [        5      (       a  X   /nOX   nU H2  n[        R                  " XF5      b  M  [        SU< SU< SU< S35      e   Mg     T+R                   R                  5        Hl  u  p'X!;   d  M  UT+R"                  ;   a  [        X   [        5      (       d  X   nOX   /nU H)  n	X;  d  M
  [        SU< SU	< S[        U5      < S35      e   Mn     0 n
0 nUR                  5        H  u  pT+R$                  R'                  US	5      nUT+R"                  ;   a4  [)        U	5      [)        / 5      :X  a  U	 Vs/ s H  n[+        X5      PM     nnO[+        X5      nUT+R,                  ;   a  XT+R                  U   '   UT+R.                  ;   d  M  XT+R                  U   '   M     UR'                  S
S 5      nUR'                  SS 5      nUR'                  SS 5      nU R0                  (       a  U R0                  U
S'   U R2                  nT*R5                  S5      (       a  [7        5       nOST(;  a
  [9        5       nT(R'                  SS 5      n0 nUR;                  UXUU5      u  nnnn[<        R>                  " T,U5      n[A        U RB                  UU-   5      nS nSnU(       Ga  [        U[        5      (       a  Uc/  [D        RG                  SU5        [H        RJ                  " U5      u  nnUc  [M        U5      e[N        RP                  " U/SRS                  T$5      5      (       d  [U        U5      e[W        UUS9nO#[        U[X        5      (       a  UnO[        S5      eUR[                  5       b,  UR[                  5       T&s=:  a  S:  a  O  O[]        ST&-  5      e[<        R>                  " T'U5      n[A        U RB                  UU-   5      n[_        UU RB                  5      nURa                  5       (       a  [c        USS5      nURa                  5       (       a  UnGOjUcB  URe                  5       US'   URg                  SUR[                  5       5      n[c        USS5      nGO%[i        S5      n[k        USS 5        [m        US   Ro                  S5      6 n U Rq                  U5        URs                  U 5        [m        URe                  5       Ro                  S5      6 n SU S '   URg                  SUR[                  5       5      n!U Rq                  U!5        URs                  U 5        [t        Rv                  " 5       n"[y        U"S!S"9n#U#R{                  US!S#9  U"R}                  5       nUR                  5       nS$U-  US'   [c        USS%5      n[D        R                  S&T%< S'U< 35        U R                  U R                  UR                  UT%UUT)US(9$ s  snf ))Nz%Got an unexpected keyword argument {}responsezMissing required parameter "%s"zParameter "z	" value "z" does not match the pattern ""z" is not an allowed value in "r4   rT   r-  r.  rk   _mediarq   re   zDmedia_mime_type argument not specified: trying to auto-detect for %s,)mimetypez*media_filename must be str or MediaUpload.r   zMedia larger than: %s
uploadType	resumablezcontent-typemediarelated_write_headersc                     g NrM   rG   s    rJ   <lambda>.createMethod.<locals>.method.<locals>.<lambda>  s    DrL   rD  binaryzContent-Transfer-EncodingF)mangle_from_)unixfromz multipart/related; boundary="%s"	multipartzURL being requested:  )methodrT   headersmethodIdrr  )D_validate_credentialsrM  	TypeErrorr   rf   r   rN  _PAGE_TOKEN_NAMES_findPageTokenName_methodPropertiesrP  r   r   r   rerf  rT  rO  rS  r   r3   r  rQ  rR  _developerKey_modelrF  r"   r#   r  r   r   rI  _baseUrlr   r   	mimetypes
guess_typer   r   
best_matchrj   r   r   r   sizer   rB  rr  r   rp  getbytesr
   setattrr   splitset_payloadattachioBytesIOrV   flattengetvalueget_boundaryr   _requestBuilder_httprl  ).rG   kwargsrb   r   regexpvaluespvalueenumsvaluesr	  actual_query_paramsactual_path_paramsrk   to_typerd   
cast_value
body_valuemedia_filenamer.  rw   api_versionr  r   r?   rT   expanded_urlr   rr  multipart_boundaryr\   r1  msgRootmsgpayloadfpgr,  r6  r  mediaPathUrl
methodDescr  
methodNamer  pathUrlr   s.                                       rJ   r  createMethod.<locals>.methodC  s>    	""$D:,,, G N Nt TUU 
 FKKM"D|#L  ..D! 004F%j&*E5 5 $$E$LMM / &44::<KD~flC00%|nG$lG%Fxx.6'#VU4  & = &11779KD~ :555jL#? ? $\F$l^F#E)'#UCJ8  $ :$ ! ,,.JC ,,00h?Gj000T%[DH5L9>?AeA/
?
"52
j--->HJ$5$5c$:;j,,,=G:#4#4S#9: ) ZZ-
L$7 **%6=)-););&x((LEz)JE nn\48',}}'j+(
$ #))'6:t}}lU&:;	.#.."*NN^& *3)=)=n)M&OQ"*).99 ++_,=sxx?OPP3ODD.~XNK88- LMM   ".<3D3D3F3TST3T*+BW+LMM '--lFCL4==,*>?C-c4==AC%%''*3kJ%%'' )	 <.:.C.C.EGN+'00L4E4E4GHD.sL'JC ,I6GG%57HI +GN,C,I,I#,NOCOOD)NN3' +L,A,A,C,I,I#,NOC7?C34*33A|7H7H7JKGOOG,NN3' B'?AIIgI6;;=D)0)=)=)?&=*/+GN+ /sL+NCZEF##JJNN $ 	
 		
U @s   +Z;r2   z

r   zArgs:
r  parameterOrderrT   re   z (repeated)z (required)zA parameter$refz  z
: object, z$
    The object takes the form of:

r3   r4   z: z, 
rY  enumDescriptionsz    Allowed values
z      z - rl  rn  z/
Returns:
  The media object as a string.

    z(
Returns:
  An object of the form:

    ri  )r   r9  rK  r   DEFAULT_METHOD_DOCr  rM  rh   rf   r   extendr!  r   r[  rO  rN  prettyPrintByNameziprF  prettyPrintSchemar  rj   )r  r  r   r   r  docsskip_parametersall_argssargs_orderedrb   rc  rZ  r5   	paramdescparamdoc	paramtyperY  enumDescrd  r,  r6  r  r  r  r  r  s   `` `                @@@@@@@rJ   createMethodr  -  s    !,J 	#:x@ **5Jq
 q
f NN=*<=vFD
:!I 8<<b9>>@AO12J%%**,-H*4..9I2*NO*NQIaL*NLO F#x #% ! !*,,,$H*,,,$H|,Z->->s-CD	==>YKK ,,Yv->?	 "fh7IKK(+Y(HU }}VR(==!3R84HHKK./ #D( 3tt<= !4A D Zx((KKMNKKFGKK00J1GHIFIrwwt}-i Ps   ;L!c                 :   ^ ^^^ [        T 5      m UU UU4S jnT U4$ )a  Creates any _next methods for attaching to a Resource.

The _next methods allow for easy iteration through list() responses.

Args:
  methodName: string, name of the method to use.
  pageTokenName: string, name of request page token field.
  nextPageTokenName: string, name of response page token field.
  isPageTokenParameter: Boolean, True if request page token is a query
      parameter, False if request page token is a field of the request body.
c                 *  > UR                  T	S5      nU(       d  g[        R                  " U5      nT(       aE  [        UR                  T
U5      Ul        [        R                  ST< SUR                  < 35        U$ U R                  nUR                  UR                  5      nX6T
'   UR                  U5      Ul        [        UR                  5      Ul        SUR                  ;   a  UR                  S	 [        R                  ST< SU< 35        U$ )aW  Retrieves the next page of results.

Args:
  previous_request: The request for the previous page. (required)
  previous_response: The response from the request for the previous page. (required)

Returns:
  A request object that you can call 'execute()' on to request the next
  page. Returns None if there are no more items in the collection.
NzNext page request URL: r  zcontent-lengthzNext page request body: )r   r#  r   urir   r   r  deserializerT   	serializer  	body_sizer  )rG   previous_requestprevious_responser7   r  rw   rT   isPageTokenParameterr  nextPageTokenNamepageTokenNames          rJ   
methodNext$createNextMethod.<locals>.methodNextI  s     *--.?F)),-.]MGK LL:w{{ST  KKE$$W\\2D"/ ??40GL #GLL 1G7??2OO$45LLJMNrL   )r   )r  r  r  r  r  s   ```` rJ   createNextMethodr  6  s'    " !,J% %N 
##rL   c                       \ rS rSrSr\(       a  \R                  OS4S j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)r   is  z(A class for interacting with a resource.re   c
                     / U l         Xl        X l        X0l        XPl        X@l        X`l        Xpl        Xl        Xl	        SU l
        U R                  5         g)aR  Build a Resource from the API description.

Args:
  http: httplib2.Http, Object to make http requests with.
  baseUrl: string, base URL for the API. All requests are relative to this
      URI.
  model: googleapiclient.Model, converts to and from the wire format.
  requestBuilder: class or callable that instantiates an
      googleapiclient.HttpRequest object.
  developerKey: string, key obtained from
      https://code.google.com/apis/console
  resourceDesc: object, section of deserialized discovery document that
      describes a resource. Note that the top level discovery document
      is considered a resource.
  rootDesc: object, the entire deserialized discovery document.
  schema: object, mapping of schema names to schema descriptions.
  universe_domain: string, the universe for the API. The default universe
  is "googleapis.com".
FN)_dynamic_attrsr  r  r  r  r  _resourceDesc	_rootDesc_schema_universe_domain_credentials_validated_set_service_methods)
rG   ru   r   rw   rx   rv   r   r   r   r   s
             rJ   rF   Resource.__init__v  sQ    > !
)-)! /&+#!!#rL   c                 V    U R                   R                  U5        X R                  U'   g)zSets an instance attribute and tracks it in a list of dynamic attributes.

Args:
  attr_name: string; The name of the attribute to be set
  value: The value being set on the object and tracked in the dynamic cache.
N)r  rh   __dict__)rG   	attr_namer	  s      rJ   _set_dynamic_attrResource._set_dynamic_attr  s$     	""9-#(i rL   c                 v    [         R                   " U R                  5      nU R                   H  nX	 M     US	 U$ )zTrim the state down to something that can be pickled.

Uses the fact that the instance variable _dynamic_attrs holds attrs that
will be wiped and restored on pickle serialization.
r  )r#  r  r  )rG   
state_dictdynamic_attrs      rJ   __getstate__Resource.__getstate__  s;     YYt}}-
 //L( 0'(rL   c                 h    U R                   R                  U5        / U l        U R                  5         g)zReconstitute the state of the object from being pickled.

Uses the fact that the instance variable _dynamic_attrs holds attrs that
will be wiped and restored on pickle serialization.
N)r  r&  r  r  )rG   states     rJ   __setstate__Resource.__setstate__  s*     	U# !!#rL   c                     U $ rw  rM   rx  s    rJ   	__enter__Resource.__enter__  s    rL   c                 $    U R                  5         g rw  )r   )rG   exc_typeexcexc_tbs       rJ   __exit__Resource.__exit__  s    

rL   c                 8    U R                   R                  5         g)zClose httplib2 connections.N)r  r   rx  s    rJ   r   Resource.close  s    
 	

rL   c                    U R                  U R                  U R                  U R                  5        U R	                  U R                  U R                  U R                  5        U R                  U R                  U R                  5        g rw  )_add_basic_methodsr  r  r  _add_nested_resources_add_next_methodsrx  s    rJ   r  Resource._set_service_methods  s\     2 2DNNDLLQ""4#5#5t~~t||Tt114<<@rL   c                   ^	 X:X  a5  US   < UR                  SS5      < 3m	S
U	4S jjnU R                  SU5        SU;   a  US   R                  5        H  u  pV[        XVX#5      u  pxU R                  XxR	                  X R
                  5      5        UR                  SS5      (       d  MV  [        US	-   XbU5      u  pxU R                  XxR	                  X R
                  5      5        M     g g )Nr   	batchPathbatchc                    > [        U TS9$ )a  Create a BatchHttpRequest object based on the discovery document.

Args:
  callback: callable, A callback to be called for each response, of the
    form callback(id, response, exception). The first parameter is the
    request id, and the second is the deserialized response object. The
    third is an apiclient.errors.HttpError exception object if an HTTP
    error occurred while processing the request, or None if no error
    occurred.

Returns:
  A BatchHttpRequest object based on the discovery document.
callback	batch_uri)r   r  s    rJ   new_batch_http_request;Resource._add_basic_methods.<locals>.new_batch_http_request  s     (YOOrL   r  methodssupportsMediaDownloadFrn  rw  )r   r  r   r  __get__rI   )
rG   r   r   r   r  r  r  fixedMethodNamer  r  s
            @rJ   r  Resource._add_basic_methods  s    ##['2I
P  ""#;=ST $*6y*A*G*G*I&
*6H+' &&#^^D..%I
 >>"95AA.:"X-zV/+O **'nn)M +J %rL   c                    ^^ SU;   aX  UU4S jnUS   R                  5        H9  u  pVU" XV5      u  pxU R                  XxR                  X R                  5      5        M;     g g )N	resourcesc                 f   >^ [        U 5      n UUU4S jn[        USS5        [        USS5        X4$ )zCreate a method on the Resource to access a nested Resource.

Args:
  methodName: string, name of the method to use.
  methodDesc: object, fragment of deserialized discovery document that
    describes the method.
c                    > [        U R                  U R                  U R                  U R                  U R
                  TTTU R                  S9	$ )Nr   )r   r  r  r  r  r  r  )rG   r  r   r   s    rJ   methodResourceTResource._add_nested_resources.<locals>.createResourceMethod.<locals>.methodResource  sI    #!ZZ $"kk%)%7%7'+';';%/!)%(,(=(=
 
rL   ri  zA collection resource.__is_resource__T)r   r  )r  r  r  r   r   s    ` rJ   createResourceMethod<Resource._add_nested_resources.<locals>.createResourceMethod  s9     -Z8
 	3KL(94@"33rL   )r   r  r	  rI   )	rG   r   r   r   r  r  r  r
  r  s	     ``     rJ   r  Resource._add_nested_resources  s^    ,&48 +7{*C*I*I*K&
*>z*V'&&#^^D..%I +L= 'rL   c                    SU;  a  g US   R                  5        H  u  p4[        [        XBS5      5      nU(       d  M#  Sn[        UR                  S0 5      5      nU(       d  Sn[        [        XBS5      5      nU(       d  Mg  [	        US-   UUU5      u  pU R                  XR                  X R                  5      5        M     g )Nr  rl  Tr  Fr  _next)r   r  r  r   r  r  r	  rI   )
rG   r   r   r  r  r  r  r  r
  r  s
             rJ   r  Resource._add_next_methods)  s     L(&29&=&C&C&E"J 2!*jA! %#' .z~~lB/OPM ',$ 2%j)D! !&6W$!$	'#O ""nn!E+ 'FrL   c                     [        U R                  SS5      n[        (       a4  U R                  =(       d!    [        R
                  " U R                  U5      OSU l        U R                  $ )zValidates client's and credentials' universe domains are consistent.

Returns:
    bool: True iff the configured universe domain is valid.

Raises:
    UniverseMismatchError: If the configured universe domain is not valid.
ry   NT)r   r  r   r  r   compare_domainsr  )rG   ry   s     rJ   r  Resource._validate_credentialsH  s`     djj-> | ++ P++D,A,A;O  	# ***rL   )r  r  r  r  r  r  r  r  r  r  r  N)rN   rO   rP   rQ   ri  r   r   r   rF   r  r  r  r  r  r   r  r  r  r  r  rR   rM   rL   rJ   r   r   s  sU    2 6B11r,$\)
$A
+Z$L>+rL   r   c                 8   ^  [        U 4S j[         5       S5      $ )zSearch field names for one like a page token.

Args:
  fields: container of string, names of fields.

Returns:
  First name that is either 'pageToken' or 'nextPageToken' if one exists,
  otherwise None.
c              3   6   >#    U  H  oT;   d  M
  Uv   M     g 7frw  rM   ).0	tokenNamefieldss     rJ   	<genexpr>%_findPageTokenName.<locals>.<genexpr>i  s     M$5yf9L$5s   		N)nextr  )r   s   `rJ   r  r  ^  s     M$5Mt rL   c                     U R                  U0 5      nSU;   a  UR                  US   0 5      nUR                  S0 5      $ )a  Get properties of a field in a method description.

Args:
  methodDesc: object, fragment of deserialized discovery document that
    describes the method.
  schema: object, mapping of schema names to schema descriptions.
  name: string, name of top-level field in method description.

Returns:
  Object representing fragment of deserialized discovery document
  corresponding to 'properties' field of object corresponding to named field
  in method description, if it exists, otherwise empty dict.
r  
properties)r   )r  r   rb   rd  s       rJ   r  r  m  s@     >>$#D~zz$v,+88L"%%rL   )NNr%   T)r6   r7   T)vri  
__future__r   
__author____all__r   r   collections.abcr#  email.generatorr	   email.mime.multipartr
   email.mime.nonmultipartr   http.clientclientr   r  r   r_   loggingr  r   r  r   google.api_core.client_optionsr   google.auth.exceptionsr   google.auth.transportr   google.oauth2r   httplib2r   r   ImportErrorgoogle.api_corer   r   googleapiclientr   r   googleapiclient._helpersr   r   googleapiclient.errorsr   r   r   r   r   r   googleapiclient.httpr   r   r   r   r   r   r    googleapiclient.modelr!   r"   r#   googleapiclient.schemar$   RETRIES	getLoggerrN   r   compiler]  r_  r   V1_DISCOVERY_URIr   r  	frozensetr$  r  r%  r/  r0  r  r8   r9   r:   r   r!  r"  r   rB   ra   rV   r   r   r   r   r   r   r   r  r  r  r)  r4  r9  rB  rI  r1   rK  r  r  r   r  r  rM   rL   rJ   <module>rB     s   '3

J #   * . 4 ! 	     	 	  % 8 & )   (L
 - E    B A *  			8	$jj#
**%
&M  ! J  A  !9:  ""BbA /BHU 	# & "	# + ' 3  %H != = #  ##FG /7W&M #"* " F8$(n ("0 A 


!V Vr1@ Qh& A 
	
L L^>&*)X&,R,N^.$W3v W3tF V %	:$zh+v h+V&q1      Ls$   4G0 9G? 0G<;G<?H
H