public class Script.Projects
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
class |
Script.Projects.Create |
class |
Script.Projects.Deployments
The "deployments" collection of methods.
|
class |
Script.Projects.Get |
class |
Script.Projects.GetContent |
class |
Script.Projects.GetMetrics |
class |
Script.Projects.UpdateContent |
class |
Script.Projects.Versions
The "versions" collection of methods.
|
Constructor and Description |
---|
Script.Projects() |
Modifier and Type | Method and Description |
---|---|
Script.Projects.Create |
create(CreateProjectRequest content)
Creates a new, empty script project with no script files and a base manifest file.
|
Script.Projects.Deployments |
deployments()
An accessor for creating requests from the Deployments collection.
|
Script.Projects.Get |
get(java.lang.String scriptId)
Gets a script project's metadata.
|
Script.Projects.GetContent |
getContent(java.lang.String scriptId)
Gets the content of the script project, including the code source and metadata for each script
file.
|
Script.Projects.GetMetrics |
getMetrics(java.lang.String scriptId)
Get metrics data for scripts, such as number of executions and active users.
|
Script.Projects.UpdateContent |
updateContent(java.lang.String scriptId,
Content content)
Updates the content of the specified script project.
|
Script.Projects.Versions |
versions()
An accessor for creating requests from the Versions collection.
|
public Script.Projects.Create create(CreateProjectRequest content) throws java.io.IOException
AbstractGoogleClientRequest.execute()
method to invoke the remote operation.content
- the CreateProjectRequest
java.io.IOException
public Script.Projects.Get get(java.lang.String scriptId) throws java.io.IOException
AbstractGoogleClientRequest.execute()
method to invoke the remote operation.scriptId
- The script project's Drive ID.java.io.IOException
public Script.Projects.GetContent getContent(java.lang.String scriptId) throws java.io.IOException
AbstractGoogleClientRequest.execute()
method to invoke the remote operation.scriptId
- The script project's Drive ID.java.io.IOException
public Script.Projects.GetMetrics getMetrics(java.lang.String scriptId) throws java.io.IOException
AbstractGoogleClientRequest.execute()
method to invoke the remote operation.scriptId
- Required field indicating the script to get metrics for.java.io.IOException
public Script.Projects.UpdateContent updateContent(java.lang.String scriptId, Content content) throws java.io.IOException
AbstractGoogleClientRequest.execute()
method to invoke the remote operation.scriptId
- The script project's Drive ID.content
- the Content
java.io.IOException
public Script.Projects.Deployments deployments()
The typical use is:
Script script = new Script(...);
Script.Deployments.List request = script.deployments().list(parameters ...)
public Script.Projects.Versions versions()
The typical use is:
Script script = new Script(...);
Script.Versions.List request = script.versions().list(parameters ...)