Class ProjectsResource.VersionsResource
The "versions" collection of methods.
Inherited Members
Namespace: Google.Apis.Script.v1
Assembly: Google.Apis.Script.v1.dll
Syntax
public class ProjectsResource.VersionsResource
Constructors
VersionsResource(IClientService)
Constructs a new resource.
Declaration
public VersionsResource(IClientService service)
Parameters
| Type | Name | Description |
|---|---|---|
| IClientService | service |
Methods
Create(Version, string)
Creates a new immutable version using the current code, with a unique version number.
Declaration
public virtual ProjectsResource.VersionsResource.CreateRequest Create(Version body, string scriptId)
Parameters
| Type | Name | Description |
|---|---|---|
| Version | body | The body of the request. |
| string | scriptId | The script project's Drive ID. |
Returns
| Type | Description |
|---|---|
| ProjectsResource.VersionsResource.CreateRequest |
Get(string, int)
Gets a version of a script project.
Declaration
public virtual ProjectsResource.VersionsResource.GetRequest Get(string scriptId, int versionNumber)
Parameters
| Type | Name | Description |
|---|---|---|
| string | scriptId | The script project's Drive ID. |
| int | versionNumber | The version number. |
Returns
| Type | Description |
|---|---|
| ProjectsResource.VersionsResource.GetRequest |
List(string)
List the versions of a script project.
Declaration
public virtual ProjectsResource.VersionsResource.ListRequest List(string scriptId)
Parameters
| Type | Name | Description |
|---|---|---|
| string | scriptId | The script project's Drive ID. |
Returns
| Type | Description |
|---|---|
| ProjectsResource.VersionsResource.ListRequest |