Class AppYaml


  • public class AppYaml
    extends Object
    Tools for reading app.yaml.
    • Method Detail

      • parse

        public static AppYaml parse​(InputStream input)
                             throws AppEngineException
        Parse an app.yaml file to an AppYaml object.
        Parameters:
        input - the input, typically the contents of an app.yaml file
        Throws:
        AppEngineException - if reading app.yaml fails while scanning such as due to malformed YAML
      • getEnvironmentType

        @Nullable
        public String getEnvironmentType()
        Return the content of the environment field, which defines this app's required App Engine environment.
      • getRuntime

        @Nullable
        public String getRuntime()
        Return the content of the runtime field, which defines this app's expected runtime.
      • getEntrypoint

        @Nullable
        public String getEntrypoint()
        Return the content of the entrypoint field, which defines this app's entrypoint.
      • getApiVersion

        @Nullable
        public String getApiVersion()
        Return the content of the application field, which identifies the App Engine API version used by this app.
      • getProjectId

        @Nullable
        public String getProjectId()
        Return the content of the application field, which identifies the Project ID.
      • getProjectVersion

        @Nullable
        public String getProjectVersion()
        Return the content of the version field, which identifies the Project version.
      • getServiceId

        @Nullable
        public String getServiceId()
        Return the content of the service field or the now-deprecated module field, which identifies the Service ID.
      • getEnvironmentVariables

        @Nullable
        public Map<String,​?> getEnvironmentVariables()
        Return the content of the env_variables field, which defines environment variables.