public class Pubsub.Projects.Snapshots.Create extends PubsubRequest<Snapshot>
GenericData.FlagsAbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>USER_AGENT_SUFFIX| Modifier | Constructor and Description |
|---|---|
protected |
Create(String name,
CreateSnapshotRequest content)
Creates a snapshot from the requested subscription.
|
get$Xgafv, getAbstractGoogleClient, getAccessToken, getAlt, getCallback, getFields, getKey, getOauthToken, getPrettyPrint, getQuotaUser, getUploadProtocol, getUploadType, setDisableGZipContent, setRequestHeadersgetJsonContent, newExceptionOnError, queuebuildHttpRequest, 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, setReturnRawInputStreamclone, entrySet, equals, get, getClassInfo, getUnknownKeys, hashCode, put, putAll, remove, setUnknownKeys, toStringclear, containsKey, containsValue, isEmpty, keySet, size, valuesfinalize, getClass, notify, notifyAll, wait, wait, waitcompute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAllprotected Create(String name, CreateSnapshotRequest content)
AbstractGoogleClientRequest.execute() method to invoke the remote operation. Pubsub.initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest) must
be called to initialize this instance immediately after invoking the constructor.
name - Required. User-provided name for this snapshot. If the name is not provided in the request, the
server will assign a random name for this snapshot on the same project as the
subscription. Note that for REST API requests, you must specify a name. See the [resource
name rules](https://cloud.google.com/pubsub/docs/admin#resource_names). Format is
`projects/{project}/snapshots/{snap}`.content - the CreateSnapshotRequestpublic Pubsub.Projects.Snapshots.Create set$Xgafv(String $Xgafv)
PubsubRequestset$Xgafv in class PubsubRequest<Snapshot>public Pubsub.Projects.Snapshots.Create setAccessToken(String accessToken)
PubsubRequestsetAccessToken in class PubsubRequest<Snapshot>public Pubsub.Projects.Snapshots.Create setAlt(String alt)
PubsubRequestsetAlt in class PubsubRequest<Snapshot>public Pubsub.Projects.Snapshots.Create setCallback(String callback)
PubsubRequestsetCallback in class PubsubRequest<Snapshot>public Pubsub.Projects.Snapshots.Create setFields(String fields)
PubsubRequestsetFields in class PubsubRequest<Snapshot>public Pubsub.Projects.Snapshots.Create setKey(String key)
PubsubRequestsetKey in class PubsubRequest<Snapshot>public Pubsub.Projects.Snapshots.Create setOauthToken(String oauthToken)
PubsubRequestsetOauthToken in class PubsubRequest<Snapshot>public Pubsub.Projects.Snapshots.Create setPrettyPrint(Boolean prettyPrint)
PubsubRequestsetPrettyPrint in class PubsubRequest<Snapshot>public Pubsub.Projects.Snapshots.Create setQuotaUser(String quotaUser)
PubsubRequestsetQuotaUser in class PubsubRequest<Snapshot>public Pubsub.Projects.Snapshots.Create setUploadType(String uploadType)
PubsubRequestsetUploadType in class PubsubRequest<Snapshot>public Pubsub.Projects.Snapshots.Create setUploadProtocol(String uploadProtocol)
PubsubRequestsetUploadProtocol in class PubsubRequest<Snapshot>public String getName()
public Pubsub.Projects.Snapshots.Create setName(String name)
public Pubsub.Projects.Snapshots.Create set(String parameterName, Object value)
set in class PubsubRequest<Snapshot>Copyright © 2011–2022 Google. All rights reserved.