public class Script.Projects.Versions.Create extends ScriptRequest<Version>
com.google.api.client.util.GenericData.Flags
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
Modifier | Constructor and Description |
---|---|
protected |
Create(String scriptId,
Version content)
Creates a new immutable version using the current code, with a unique version number.
|
Modifier and Type | Method and Description |
---|---|
String |
getScriptId()
The script project's Drive ID.
|
Script.Projects.Versions.Create |
set(String parameterName,
Object value) |
Script.Projects.Versions.Create |
set$Xgafv(String $Xgafv)
V1 error format.
|
Script.Projects.Versions.Create |
setAccessToken(String accessToken)
OAuth access token.
|
Script.Projects.Versions.Create |
setAlt(String alt)
Data format for response.
|
Script.Projects.Versions.Create |
setCallback(String callback)
JSONP
|
Script.Projects.Versions.Create |
setFields(String fields)
Selector specifying which fields to include in a partial response.
|
Script.Projects.Versions.Create |
setKey(String key)
API key.
|
Script.Projects.Versions.Create |
setOauthToken(String oauthToken)
OAuth 2.0 token for the current user.
|
Script.Projects.Versions.Create |
setPrettyPrint(Boolean prettyPrint)
Returns response with indentations and line breaks.
|
Script.Projects.Versions.Create |
setQuotaUser(String quotaUser)
Available to use for quota purposes for server-side applications.
|
Script.Projects.Versions.Create |
setScriptId(String scriptId)
The script project's Drive ID.
|
Script.Projects.Versions.Create |
setUploadProtocol(String uploadProtocol)
Upload protocol for media (e.g.
|
Script.Projects.Versions.Create |
setUploadType(String uploadType)
Legacy upload protocol for media (e.g.
|
get$Xgafv, getAbstractGoogleClient, getAccessToken, getAlt, getCallback, getFields, getKey, getOauthToken, getPrettyPrint, getQuotaUser, getUploadProtocol, getUploadType, setDisableGZipContent, setRequestHeaders
getJsonContent, newExceptionOnError, queue
buildHttpRequest, buildHttpRequestUrl, buildHttpRequestUsingHead, checkRequiredParameter, execute, executeAndDownloadTo, executeAsInputStream, executeMedia, executeMediaAndDownloadTo, executeMediaAsInputStream, executeUnparsed, executeUsingHead, getDisableGZipContent, getHttpContent, getLastResponseHeaders, getLastStatusCode, getLastStatusMessage, getMediaHttpDownloader, getMediaHttpUploader, getRequestHeaders, getRequestMethod, getResponseClass, getReturnRawInputSteam, getUriTemplate, initializeMediaDownload, initializeMediaUpload, queue, setReturnRawInputStream
clone, entrySet, equals, get, getClassInfo, getUnknownKeys, hashCode, put, putAll, remove, setUnknownKeys, toString
clear, containsKey, containsValue, isEmpty, keySet, size, values
finalize, getClass, notify, notifyAll, wait, wait, wait
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
protected Create(String scriptId, Version content)
AbstractGoogleClientRequest.execute()
method to invoke the remote operation. Script.initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)
must
be called to initialize this instance immediately after invoking the constructor.
scriptId
- The script project's Drive ID.content
- the Version
public Script.Projects.Versions.Create set$Xgafv(String $Xgafv)
ScriptRequest
set$Xgafv
in class ScriptRequest<Version>
public Script.Projects.Versions.Create setAccessToken(String accessToken)
ScriptRequest
setAccessToken
in class ScriptRequest<Version>
public Script.Projects.Versions.Create setAlt(String alt)
ScriptRequest
setAlt
in class ScriptRequest<Version>
public Script.Projects.Versions.Create setCallback(String callback)
ScriptRequest
setCallback
in class ScriptRequest<Version>
public Script.Projects.Versions.Create setFields(String fields)
ScriptRequest
setFields
in class ScriptRequest<Version>
public Script.Projects.Versions.Create setKey(String key)
ScriptRequest
setKey
in class ScriptRequest<Version>
public Script.Projects.Versions.Create setOauthToken(String oauthToken)
ScriptRequest
setOauthToken
in class ScriptRequest<Version>
public Script.Projects.Versions.Create setPrettyPrint(Boolean prettyPrint)
ScriptRequest
setPrettyPrint
in class ScriptRequest<Version>
public Script.Projects.Versions.Create setQuotaUser(String quotaUser)
ScriptRequest
setQuotaUser
in class ScriptRequest<Version>
public Script.Projects.Versions.Create setUploadType(String uploadType)
ScriptRequest
setUploadType
in class ScriptRequest<Version>
public Script.Projects.Versions.Create setUploadProtocol(String uploadProtocol)
ScriptRequest
setUploadProtocol
in class ScriptRequest<Version>
public String getScriptId()
public Script.Projects.Versions.Create setScriptId(String scriptId)
public Script.Projects.Versions.Create set(String parameterName, Object value)
set
in class ScriptRequest<Version>
Copyright © 2011–2024 Google. All rights reserved.