Package com.google.cloud.tools.project
Class AppYaml
- java.lang.Object
-
- com.google.cloud.tools.project.AppYaml
-
public class AppYaml extends Object
Tools for readingapp.yaml
.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getApiVersion()
Return the content of theapplication
field, which identifies the App Engine API version used by this app.String
getEntrypoint()
Return the content of theentrypoint
field, which defines this app's entrypoint.String
getEnvironmentType()
Return the content of theenvironment
field, which defines this app's required App Engine environment.Map<String,?>
getEnvironmentVariables()
Return the content of theenv_variables
field, which defines environment variables.String
getProjectId()
Return the content of theapplication
field, which identifies the Project ID.String
getProjectVersion()
Return the content of theversion
field, which identifies the Project version.String
getRuntime()
Return the content of theruntime
field, which defines this app's expected runtime.String
getServiceId()
Return the content of theservice
field or the now-deprecatedmodule
field, which identifies the Service ID.static AppYaml
parse(InputStream input)
Parse an app.yaml file to an AppYaml object.
-
-
-
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 anapp.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 theenvironment
field, which defines this app's required App Engine environment.
-
getRuntime
@Nullable public String getRuntime()
Return the content of theruntime
field, which defines this app's expected runtime.
-
getEntrypoint
@Nullable public String getEntrypoint()
Return the content of theentrypoint
field, which defines this app's entrypoint.
-
getApiVersion
@Nullable public String getApiVersion()
Return the content of theapplication
field, which identifies the App Engine API version used by this app.
-
getProjectId
@Nullable public String getProjectId()
Return the content of theapplication
field, which identifies the Project ID.
-
getProjectVersion
@Nullable public String getProjectVersion()
Return the content of theversion
field, which identifies the Project version.
-
getServiceId
@Nullable public String getServiceId()
Return the content of theservice
field or the now-deprecatedmodule
field, which identifies the Service ID.
-
-