
    N                        S r  " S S\5      r " S S\5      r " S S\5      r " S S\5      r " S	 S
\5      r " S S\5      r " S S\5      r " S S\5      r	 " S S\5      r
 " S S\5      r " S S\5      r " S S\5      r " S S\5      r " S S\5      r " S S\5      r " S S \5      r " S! S"\5      r " S# S$\5      r " S% S&\5      r " S' S(\5      r " S) S*\5      r " S+ S,\5      r " S- S.\5      r " S/ S0\5      r " S1 S2\5      r " S3 S4\5      r " S5 S6\5      r " S7 S8\5      r " S9 S:\5      r " S; S<\5      r " S= S>\5      r  " S? S@\5      r!gA)Bz>Errors used in the Python appinfo API, used by app developers.c                       \ rS rSrSrSrg)Error   zBase datastore AppInfo type. N__name__
__module____qualname____firstlineno____doc____static_attributes__r       2lib/googlecloudsdk/appengine/api/appinfo_errors.pyr   r      s    $r   r   c                       \ rS rSrSrSrg)EmptyConfigurationFile   z&Tried to load empty configuration filer   Nr   r   r   r   r   r      s    .r   r   c                       \ rS rSrSrSrg)MultipleConfigurationFile#   z>Tried to load configuration file with multiple AppInfo objectsr   Nr   r   r   r   r   r   #       Fr   r   c                       \ rS rSrSrSrg)MultipleProjectNames'   zConfiguration file had both "application:" and "project:" fields.

A configuration file can specify the project name using either the old-style
"application: name" syntax or the newer "project: name" syntax, but not both.
r   Nr   r   r   r   r   r   '       r   r   c                       \ rS rSrSrSrg)UnknownHandlerType/   z=Raised when it is not possible to determine URL mapping type.r   Nr   r   r   r   r   r   /       Er   r   c                       \ rS rSrSrSrg)UnexpectedHandlerAttribute3   zARaised when a handler type has an attribute that it does not use.r   Nr   r   r   r   r   r   3   s    Ir   r   c                       \ rS rSrSrSrg)MissingHandlerAttribute7   zCRaised when a handler is missing an attribute required by its type.r   Nr   r   r   r   r"   r"   7       Kr   r"   c                       \ rS rSrSrSrg)MissingURLMapping;   z:Raised when there are no URL mappings in external appinfo.r   Nr   r   r   r   r&   r&   ;       Br   r&   c                       \ rS rSrSrSrg)TooManyURLMappings?   z@Raised when there are too many URL mappings in external appinfo.r   Nr   r   r   r   r*   r*   ?   s    Hr   r*   c                       \ rS rSrSrSrg)PositionUsedInAppYamlHandlerC   zERaised when position attribute is used in handler in AppInfoExternal.r   Nr   r   r   r   r-   r-   C       Mr   r-   c                       \ rS rSrSrSrg)InvalidBuiltinFormatG   zHRaised when the name of the builtin in a list item cannot be identified.r   Nr   r   r   r   r1   r1   G       Pr   r1   c                       \ rS rSrSrSrg)MultipleBuiltinsSpecifiedK   zHRaised when more than one builtin is specified in a single list element.r   Nr   r   r   r   r5   r5   K   r3   r   r5   c                       \ rS rSrSrSrg)DuplicateBuiltinsSpecifiedO   zCRaised when a builtin is specified more than once in the same file.r   Nr   r   r   r   r8   r8   O   r$   r   r8   c                       \ rS rSrSrSrg)BackendNotFoundS   z4Raised when a Backend is required but not specified.r   Nr   r   r   r   r;   r;   S   s    <r   r;   c                       \ rS rSrSrSrg)DuplicateBackendW   z<Raised when a backend is found more than once in 'backends'.r   Nr   r   r   r   r>   r>   W   s    Dr   r>   c                       \ rS rSrSrSrg)MissingApiConfig[   zBRaised if an api_endpoint handler is configured but no api_config.r   Nr   r   r   r   rA   rA   [   s    Jr   rA   c                       \ rS rSrSrSrg)RuntimeDoesNotSupportLibraries_   zFRaised when 'libraries' is used in a runtime that does not support it.r   Nr   r   r   r   rD   rD   _   s    Nr   rD   c                       \ rS rSrSrSrg)DuplicateLibraryc   z=Raised when a library is found more than once in 'libraries'.r   Nr   r   r   r   rG   rG   c   r   r   rG   c                       \ rS rSrSrSrg)InvalidLibraryVersiong   z:Raised when a library uses a version that isn't supported.r   Nr   r   r   r   rJ   rJ   g   r(   r   rJ   c                       \ rS rSrSrSrg)InvalidLibraryNamek   z8Raised when a library is specified that isn't supported.r   Nr   r   r   r   rM   rM   k       @r   rM   c                       \ rS rSrSrSrg)ThreadsafeWithCgiHandlero   z?Raised when threadsafe is enabled with a CGI handler specified.r   Nr   r   r   r   rQ   rQ   o   s    Gr   rQ   c                       \ rS rSrSrSrg)MissingThreadsafes   zHRaised when the runtime needs a threadsafe declaration and it's missing.r   Nr   r   r   r   rT   rT   s   r3   r   rT   c                       \ rS rSrSrSrg)InvalidHttpHeaderNamew   a  Raised when an invalid HTTP header name is used.

This issue arrises what a static handler uses http_headers. For example, the
following would not be allowed:

  handlers:
  - url: /static
    static_dir: static
    http_headers:
      D@nger: Will Robinson
r   Nr   r   r   r   rW   rW   w       
r   rW   c                       \ rS rSrSrSrg)InvalidHttpHeaderValue   u  Raised when an invalid HTTP header value is used.

This issue arrises what a static handler uses http_headers. For example, the
following would not be allowed:

  handlers:
  - url: /static
    static_dir: static
    http_headers:
      Some-Unicode: "☨"
r   Nr   r   r   r   r[   r[      rY   r   r[   c                       \ rS rSrSrSrg)!ContentTypeSpecifiedMultipleTimes   a  Raised when mime_type and http_headers specify a mime type.

N.B. This will be raised even when both fields specify the same content type.
E.g. the following configuration (snippet) will be rejected:

  handlers:
  - url: /static
    static_dir: static
    mime_type: text/html
    http_headers:
      content-type: text/html

This only applies to static handlers i.e. a handler that specifies static_dir
or static_files.
r   Nr   r   r   r   r^   r^      s    r   r^   c                       \ rS rSrSrSrg)TooManyHttpHeaders   z{Raised when a handler specified too many HTTP headers.

The message should indicate the maximum number of headers allowed.
r   Nr   r   r   r   ra   ra      s    r   ra   c                       \ rS rSrSrSrg)TooManyScalingSettingsError   z>Raised when more than one scaling settings section is present.r   Nr   r   r   r   rd   rd      r   r   rd   c                       \ rS rSrSrSrg))TooManyAutoscalingUtilizationTargetsError   zCRaised when too many custom metric autoscaling targets are present.r   Nr   r   r   r   rg   rg      r$   r   rg   c                       \ rS rSrSrSrg)+NotEnoughAutoscalingUtilizationTargetsError   zERaised when not enough custom metric autoscaling targets are present.r   Nr   r   r   r   rj   rj      r/   r   rj   c                       \ rS rSrSrSrg)MissingRuntimeError   z8Raised when the "runtime" field is omitted for a non-vm.r   Nr   r   r   r   rm   rm      rO   r   rm   c                       \ rS rSrSrSrg)MissingEndpointsConfigId   zRaised when an Endpoints config id is expected.

An Endpoints config id is expected when the Endpoints rollout strategy is
unspecified or set to "fixed".
r   Nr   r   r   r   rp   rp      r   r   rp   c                       \ rS rSrSrSrg)UnexpectedEndpointsConfigId   zRaised when an Endpoints config id is unexpected.

An Endpoints config id is forbidden when the Endpoints rollout strategy is
set to "managed".
r   Nr   r   r   r   rs   rs      r   r   rs   N)"r   	Exceptionr   r   r   r   r   r   r"   r&   r*   r-   r1   r5   r8   r;   r>   rA   rD   rG   rJ   rM   rQ   rT   rW   r[   r^   ra   rd   rg   rj   rm   rp   rs   r   r   r   <module>rv      s   E%I %/U /G G5 F FJ JLe LC CI IN5 NQ5 QQ QL L=e =Eu EKu KOU OFu FCE CA AHu HQ QE U  $ G% GL LN% NA% Au % r   