Show / Hide Table of Contents

Class ProjectsResource

The "projects" collection of methods.

Inheritance
object
ProjectsResource
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: Google.Apis.Script.v1
Assembly: Google.Apis.Script.v1.dll
Syntax
public class ProjectsResource

Constructors

ProjectsResource(IClientService)

Constructs a new resource.

Declaration
public ProjectsResource(IClientService service)
Parameters
Type Name Description
IClientService service

Properties

Deployments

Gets the Deployments resource.

Declaration
public virtual ProjectsResource.DeploymentsResource Deployments { get; }
Property Value
Type Description
ProjectsResource.DeploymentsResource

Versions

Gets the Versions resource.

Declaration
public virtual ProjectsResource.VersionsResource Versions { get; }
Property Value
Type Description
ProjectsResource.VersionsResource

Methods

Create(CreateProjectRequest)

Creates a new, empty script project with no script files and a base manifest file.

Declaration
public virtual ProjectsResource.CreateRequest Create(CreateProjectRequest body)
Parameters
Type Name Description
CreateProjectRequest body

The body of the request.

Returns
Type Description
ProjectsResource.CreateRequest

Get(string)

Gets a script project's metadata.

Declaration
public virtual ProjectsResource.GetRequest Get(string scriptId)
Parameters
Type Name Description
string scriptId

The script project's Drive ID.

Returns
Type Description
ProjectsResource.GetRequest

GetContent(string)

Gets the content of the script project, including the code source and metadata for each script file.

Declaration
public virtual ProjectsResource.GetContentRequest GetContent(string scriptId)
Parameters
Type Name Description
string scriptId

The script project's Drive ID.

Returns
Type Description
ProjectsResource.GetContentRequest

GetMetrics(string)

Get metrics data for scripts, such as number of executions and active users.

Declaration
public virtual ProjectsResource.GetMetricsRequest GetMetrics(string scriptId)
Parameters
Type Name Description
string scriptId

Required field indicating the script to get metrics for.

Returns
Type Description
ProjectsResource.GetMetricsRequest

UpdateContent(Content, string)

Updates the content of the specified script project. This content is stored as the HEAD version, and is used when the script is executed as a trigger, in the script editor, in add-on preview mode, or as a web app or Apps Script API in development mode. This clears all the existing files in the project.

Declaration
public virtual ProjectsResource.UpdateContentRequest UpdateContent(Content body, string scriptId)
Parameters
Type Name Description
Content body

The body of the request.

string scriptId

The script project's Drive ID.

Returns
Type Description
ProjectsResource.UpdateContentRequest
In this article
Back to top Generated by DocFX