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 |
---|
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(String scriptId)
Gets a script project's metadata.
|
Script.Projects.GetContent |
getContent(String scriptId)
Gets the content of the script project, including the code source and metadata for each script
file.
|
Script.Projects.GetMetrics |
getMetrics(String scriptId)
Get metrics data for scripts, such as number of executions and active users.
|
Script.Projects.UpdateContent |
updateContent(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 IOException
AbstractGoogleClientRequest.execute()
method to invoke the remote operation.content
- the CreateProjectRequest
IOException
public Script.Projects.Get get(String scriptId) throws IOException
AbstractGoogleClientRequest.execute()
method to invoke the remote operation.scriptId
- The script project's Drive ID.IOException
public Script.Projects.GetContent getContent(String scriptId) throws IOException
AbstractGoogleClientRequest.execute()
method to invoke the remote operation.scriptId
- The script project's Drive ID.IOException
public Script.Projects.GetMetrics getMetrics(String scriptId) throws IOException
AbstractGoogleClientRequest.execute()
method to invoke the remote operation.scriptId
- Required field indicating the script to get metrics for.IOException
public Script.Projects.UpdateContent updateContent(String scriptId, Content content) throws IOException
AbstractGoogleClientRequest.execute()
method to invoke the remote operation.scriptId
- The script project's Drive ID.content
- the Content
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 ...)
Copyright © 2011–2024 Google. All rights reserved.