Class ProjectsResource.UpdateContentRequest
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.
Inheritance
ProjectsResource.UpdateContentRequest
Inherited Members
Namespace: Google.Apis.Script.v1
Assembly: Google.Apis.Script.v1.dll
Syntax
public class ProjectsResource.UpdateContentRequest : ScriptBaseServiceRequest<Content>, IClientServiceRequest<Content>, IClientServiceRequest
Constructors
UpdateContentRequest(IClientService, Content, string)
Constructs a new UpdateContent request.
Declaration
public UpdateContentRequest(IClientService service, Content body, string scriptId)
Parameters
Type | Name | Description |
---|---|---|
IClientService | service | |
Content | body | |
string | scriptId |
Properties
HttpMethod
Gets the HTTP method.
Declaration
public override string HttpMethod { get; }
Property Value
Type | Description |
---|---|
string |
Overrides
Google.Apis.Requests.ClientServiceRequest<Google.Apis.Script.v1.Data.Content>.HttpMethod
MethodName
Gets the method name.
Declaration
public override string MethodName { get; }
Property Value
Type | Description |
---|---|
string |
Overrides
Google.Apis.Requests.ClientServiceRequest<Google.Apis.Script.v1.Data.Content>.MethodName
RestPath
Gets the REST path.
Declaration
public override string RestPath { get; }
Property Value
Type | Description |
---|---|
string |
Overrides
Google.Apis.Requests.ClientServiceRequest<Google.Apis.Script.v1.Data.Content>.RestPath
ScriptId
The script project's Drive ID.
Declaration
[RequestParameter("scriptId", RequestParameterType.Path)]
public virtual string ScriptId { get; }
Property Value
Type | Description |
---|---|
string |
Methods
GetBody()
Returns the body of the request.
Declaration
protected override object GetBody()
Returns
Type | Description |
---|---|
object |
Overrides
Google.Apis.Requests.ClientServiceRequest<Google.Apis.Script.v1.Data.Content>.GetBody()
InitParameters()
Initializes UpdateContent parameter list.
Declaration
protected override void InitParameters()