public class Storage.Folders.Rename extends StorageRequest<GoogleLongrunningOperation>
com.google.api.client.util.GenericData.Flags
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
Modifier | Constructor and Description |
---|---|
protected |
Rename(String bucket,
String sourceFolder,
String destinationFolder)
Renames a source folder to a destination folder.
|
Modifier and Type | Method and Description |
---|---|
String |
getBucket()
Name of the bucket in which the folders are in.
|
String |
getDestinationFolder()
Name of the destination folder.
|
Long |
getIfSourceMetagenerationMatch()
Makes the operation conditional on whether the source object's current metageneration matches the
given value.
|
Long |
getIfSourceMetagenerationNotMatch()
Makes the operation conditional on whether the source object's current metageneration does not
match the given value.
|
String |
getSourceFolder()
Name of the source folder.
|
Storage.Folders.Rename |
set(String parameterName,
Object value) |
Storage.Folders.Rename |
setAlt(String alt)
Data format for the response.
|
Storage.Folders.Rename |
setBucket(String bucket)
Name of the bucket in which the folders are in.
|
Storage.Folders.Rename |
setDestinationFolder(String destinationFolder)
Name of the destination folder.
|
Storage.Folders.Rename |
setFields(String fields)
Selector specifying which fields to include in a partial response.
|
Storage.Folders.Rename |
setIfSourceMetagenerationMatch(Long ifSourceMetagenerationMatch)
Makes the operation conditional on whether the source object's current metageneration
matches the given value.
|
Storage.Folders.Rename |
setIfSourceMetagenerationNotMatch(Long ifSourceMetagenerationNotMatch)
Makes the operation conditional on whether the source object's current metageneration does
not match the given value.
|
Storage.Folders.Rename |
setKey(String key)
API key.
|
Storage.Folders.Rename |
setOauthToken(String oauthToken)
OAuth 2.0 token for the current user.
|
Storage.Folders.Rename |
setPrettyPrint(Boolean prettyPrint)
Returns response with indentations and line breaks.
|
Storage.Folders.Rename |
setQuotaUser(String quotaUser)
An opaque string that represents a user for quota purposes.
|
Storage.Folders.Rename |
setSourceFolder(String sourceFolder)
Name of the source folder.
|
Storage.Folders.Rename |
setUploadType(String uploadType)
Upload protocol for media (e.g.
|
Storage.Folders.Rename |
setUserIp(String userIp)
Deprecated.
|
getAbstractGoogleClient, getAlt, getFields, getKey, getOauthToken, getPrettyPrint, getQuotaUser, getUploadType, getUserIp, 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 Rename(String bucket, String sourceFolder, String destinationFolder)
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 folders are in.sourceFolder
- Name of the source folder.destinationFolder
- Name of the destination folder.public Storage.Folders.Rename setAlt(String alt)
StorageRequest
setAlt
in class StorageRequest<GoogleLongrunningOperation>
public Storage.Folders.Rename setFields(String fields)
StorageRequest
setFields
in class StorageRequest<GoogleLongrunningOperation>
public Storage.Folders.Rename setKey(String key)
StorageRequest
setKey
in class StorageRequest<GoogleLongrunningOperation>
public Storage.Folders.Rename setOauthToken(String oauthToken)
StorageRequest
setOauthToken
in class StorageRequest<GoogleLongrunningOperation>
public Storage.Folders.Rename setPrettyPrint(Boolean prettyPrint)
StorageRequest
setPrettyPrint
in class StorageRequest<GoogleLongrunningOperation>
public Storage.Folders.Rename setQuotaUser(String quotaUser)
StorageRequest
setQuotaUser
in class StorageRequest<GoogleLongrunningOperation>
public Storage.Folders.Rename setUploadType(String uploadType)
StorageRequest
setUploadType
in class StorageRequest<GoogleLongrunningOperation>
public Storage.Folders.Rename setUserIp(String userIp)
StorageRequest
setUserIp
in class StorageRequest<GoogleLongrunningOperation>
public String getBucket()
public Storage.Folders.Rename setBucket(String bucket)
public String getSourceFolder()
public Storage.Folders.Rename setSourceFolder(String sourceFolder)
public String getDestinationFolder()
public Storage.Folders.Rename setDestinationFolder(String destinationFolder)
public Long getIfSourceMetagenerationMatch()
public Storage.Folders.Rename setIfSourceMetagenerationMatch(Long ifSourceMetagenerationMatch)
public Long getIfSourceMetagenerationNotMatch()
public Storage.Folders.Rename setIfSourceMetagenerationNotMatch(Long ifSourceMetagenerationNotMatch)
public Storage.Folders.Rename set(String parameterName, Object value)
set
in class StorageRequest<GoogleLongrunningOperation>
Copyright © 2011–2024 Google. All rights reserved.