public class Storage.Objects.Update extends StorageRequest<StorageObject>
com.google.api.client.util.GenericData.Flags
Modifier | Constructor and Description |
---|---|
protected |
Storage.Objects.Update(java.lang.String bucket,
java.lang.String object__,
StorageObject content)
Updates an object's metadata.
|
Modifier and Type | Method and Description |
---|---|
com.google.api.client.http.HttpResponse |
executeMedia() |
void |
executeMediaAndDownloadTo(java.io.OutputStream outputStream) |
java.io.InputStream |
executeMediaAsInputStream() |
java.lang.String |
getBucket()
Name of the bucket in which the object resides.
|
java.lang.Long |
getGeneration()
If present, selects a specific revision of this object (as opposed to the latest version, the
default).
|
java.lang.Long |
getIfGenerationMatch()
Makes the operation conditional on whether the object's current generation matches the given value.
|
java.lang.Long |
getIfGenerationNotMatch()
Makes the operation conditional on whether the object's current generation does not match the given
value.
|
java.lang.Long |
getIfMetagenerationMatch()
Makes the operation conditional on whether the object's current metageneration matches the given
value.
|
java.lang.Long |
getIfMetagenerationNotMatch()
Makes the operation conditional on whether the object's current metageneration does not match the
given value.
|
java.lang.String |
getObject()
Name of the object.
|
java.lang.String |
getPredefinedAcl()
Apply a predefined set of access controls to this object.
|
java.lang.String |
getProjection()
Set of properties to return.
|
Storage.Objects.Update |
set(java.lang.String parameterName,
java.lang.Object value) |
Storage.Objects.Update |
setAlt(java.lang.String alt)
Data format for the response.
|
Storage.Objects.Update |
setBucket(java.lang.String bucket)
Name of the bucket in which the object resides.
|
Storage.Objects.Update |
setFields(java.lang.String fields)
Selector specifying which fields to include in a partial response.
|
Storage.Objects.Update |
setGeneration(java.lang.Long generation)
If present, selects a specific revision of this object (as opposed to the latest version,
the default).
|
Storage.Objects.Update |
setIfGenerationMatch(java.lang.Long ifGenerationMatch)
Makes the operation conditional on whether the object's current generation matches the
given value.
|
Storage.Objects.Update |
setIfGenerationNotMatch(java.lang.Long ifGenerationNotMatch)
Makes the operation conditional on whether the object's current generation does not match
the given value.
|
Storage.Objects.Update |
setIfMetagenerationMatch(java.lang.Long ifMetagenerationMatch)
Makes the operation conditional on whether the object's current metageneration matches the
given value.
|
Storage.Objects.Update |
setIfMetagenerationNotMatch(java.lang.Long ifMetagenerationNotMatch)
Makes the operation conditional on whether the object's current metageneration does not
match the given value.
|
Storage.Objects.Update |
setKey(java.lang.String key)
API key.
|
Storage.Objects.Update |
setOauthToken(java.lang.String oauthToken)
OAuth 2.0 token for the current user.
|
Storage.Objects.Update |
setObject(java.lang.String object__)
Name of the object.
|
Storage.Objects.Update |
setPredefinedAcl(java.lang.String predefinedAcl)
Apply a predefined set of access controls to this object.
|
Storage.Objects.Update |
setPrettyPrint(java.lang.Boolean prettyPrint)
Returns response with indentations and line breaks.
|
Storage.Objects.Update |
setProjection(java.lang.String projection)
Set of properties to return.
|
Storage.Objects.Update |
setQuotaUser(java.lang.String quotaUser)
Available to use for quota purposes for server-side applications.
|
Storage.Objects.Update |
setUserIp(java.lang.String userIp)
IP address of the site where the request originates.
|
getAbstractGoogleClient, getAlt, getFields, getKey, getOauthToken, getPrettyPrint, getQuotaUser, getUserIp, setDisableGZipContent, setRequestHeaders
getJsonContent, newExceptionOnError, queue
buildHttpRequest, buildHttpRequestUrl, buildHttpRequestUsingHead, checkRequiredParameter, execute, executeAndDownloadTo, executeAsInputStream, executeUnparsed, executeUsingHead, getDisableGZipContent, getHttpContent, getLastResponseHeaders, getLastStatusCode, getLastStatusMessage, getMediaHttpDownloader, getMediaHttpUploader, getRequestHeaders, getRequestMethod, getResponseClass, getUriTemplate, initializeMediaDownload, initializeMediaUpload, queue
clone, entrySet, get, getClassInfo, getUnknownKeys, put, putAll, remove, setUnknownKeys
protected Storage.Objects.Update(java.lang.String bucket, java.lang.String object__, StorageObject content)
AbstractGoogleClientRequest.execute()
method to invoke the remote operation. Storage.initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)
must
be called to initialize this instance immediately after invoking the constructor.
bucket
- Name of the bucket in which the object resides.object__
- Name of the object. For information about how to URL encode object names to be path safe, see
Encoding URI Path Parts.content
- the StorageObject
public void executeMediaAndDownloadTo(java.io.OutputStream outputStream) throws java.io.IOException
executeMediaAndDownloadTo
in class com.google.api.client.googleapis.services.AbstractGoogleClientRequest<StorageObject>
java.io.IOException
public java.io.InputStream executeMediaAsInputStream() throws java.io.IOException
executeMediaAsInputStream
in class com.google.api.client.googleapis.services.AbstractGoogleClientRequest<StorageObject>
java.io.IOException
public com.google.api.client.http.HttpResponse executeMedia() throws java.io.IOException
executeMedia
in class com.google.api.client.googleapis.services.AbstractGoogleClientRequest<StorageObject>
java.io.IOException
public Storage.Objects.Update setAlt(java.lang.String alt)
StorageRequest
setAlt
in class StorageRequest<StorageObject>
public Storage.Objects.Update setFields(java.lang.String fields)
StorageRequest
setFields
in class StorageRequest<StorageObject>
public Storage.Objects.Update setKey(java.lang.String key)
StorageRequest
setKey
in class StorageRequest<StorageObject>
public Storage.Objects.Update setOauthToken(java.lang.String oauthToken)
StorageRequest
setOauthToken
in class StorageRequest<StorageObject>
public Storage.Objects.Update setPrettyPrint(java.lang.Boolean prettyPrint)
StorageRequest
setPrettyPrint
in class StorageRequest<StorageObject>
public Storage.Objects.Update setQuotaUser(java.lang.String quotaUser)
StorageRequest
setQuotaUser
in class StorageRequest<StorageObject>
public Storage.Objects.Update setUserIp(java.lang.String userIp)
StorageRequest
setUserIp
in class StorageRequest<StorageObject>
public java.lang.String getBucket()
public Storage.Objects.Update setBucket(java.lang.String bucket)
public java.lang.String getObject()
public Storage.Objects.Update setObject(java.lang.String object__)
public java.lang.String getPredefinedAcl()
public Storage.Objects.Update setPredefinedAcl(java.lang.String predefinedAcl)
public java.lang.Long getIfGenerationNotMatch()
public Storage.Objects.Update setIfGenerationNotMatch(java.lang.Long ifGenerationNotMatch)
public java.lang.Long getGeneration()
public Storage.Objects.Update setGeneration(java.lang.Long generation)
public java.lang.Long getIfMetagenerationMatch()
public Storage.Objects.Update setIfMetagenerationMatch(java.lang.Long ifMetagenerationMatch)
public java.lang.Long getIfGenerationMatch()
public Storage.Objects.Update setIfGenerationMatch(java.lang.Long ifGenerationMatch)
public java.lang.Long getIfMetagenerationNotMatch()
public Storage.Objects.Update setIfMetagenerationNotMatch(java.lang.Long ifMetagenerationNotMatch)
public java.lang.String getProjection()
public Storage.Objects.Update setProjection(java.lang.String projection)
public Storage.Objects.Update set(java.lang.String parameterName, java.lang.Object value)
set
in class StorageRequest<StorageObject>