public class SQLAdmin.Databases.Patch extends SQLAdminRequest<Operation>
GenericData.FlagsAbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>USER_AGENT_SUFFIX| Modifier | Constructor and Description |
|---|---|
protected |
Patch(String project,
String instance,
String database,
Database content)
Updates a resource containing information about a database inside a Cloud SQL instance.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getDatabase()
Name of the database to be updated in the instance.
|
String |
getInstance()
Database instance ID.
|
String |
getProject()
Project ID of the project that contains the instance.
|
SQLAdmin.Databases.Patch |
set(String parameterName,
Object value) |
SQLAdmin.Databases.Patch |
setAlt(String alt)
Data format for the response.
|
SQLAdmin.Databases.Patch |
setDatabase(String database)
Name of the database to be updated in the instance.
|
SQLAdmin.Databases.Patch |
setFields(String fields)
Selector specifying which fields to include in a partial response.
|
SQLAdmin.Databases.Patch |
setInstance(String instance)
Database instance ID.
|
SQLAdmin.Databases.Patch |
setKey(String key)
API key.
|
SQLAdmin.Databases.Patch |
setOauthToken(String oauthToken)
OAuth 2.0 token for the current user.
|
SQLAdmin.Databases.Patch |
setPrettyPrint(Boolean prettyPrint)
Returns response with indentations and line breaks.
|
SQLAdmin.Databases.Patch |
setProject(String project)
Project ID of the project that contains the instance.
|
SQLAdmin.Databases.Patch |
setQuotaUser(String quotaUser)
An opaque string that represents a user for quota purposes.
|
SQLAdmin.Databases.Patch |
setUserIp(String userIp)
Deprecated.
|
getAbstractGoogleClient, getAlt, getFields, getKey, getOauthToken, getPrettyPrint, getQuotaUser, getUserIp, 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 Patch(String project, String instance, String database, Database content)
AbstractGoogleClientRequest.execute() method to invoke the remote operation.
SQLAdmin.initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest) must
be called to initialize this instance immediately after invoking the constructor.
project - Project ID of the project that contains the instance.instance - Database instance ID. This does not include the project ID.database - Name of the database to be updated in the instance.content - the Databasepublic SQLAdmin.Databases.Patch setAlt(String alt)
SQLAdminRequestsetAlt in class SQLAdminRequest<Operation>public SQLAdmin.Databases.Patch setFields(String fields)
SQLAdminRequestsetFields in class SQLAdminRequest<Operation>public SQLAdmin.Databases.Patch setKey(String key)
SQLAdminRequestsetKey in class SQLAdminRequest<Operation>public SQLAdmin.Databases.Patch setOauthToken(String oauthToken)
SQLAdminRequestsetOauthToken in class SQLAdminRequest<Operation>public SQLAdmin.Databases.Patch setPrettyPrint(Boolean prettyPrint)
SQLAdminRequestsetPrettyPrint in class SQLAdminRequest<Operation>public SQLAdmin.Databases.Patch setQuotaUser(String quotaUser)
SQLAdminRequestsetQuotaUser in class SQLAdminRequest<Operation>public SQLAdmin.Databases.Patch setUserIp(String userIp)
SQLAdminRequestsetUserIp in class SQLAdminRequest<Operation>public String getProject()
public SQLAdmin.Databases.Patch setProject(String project)
public String getInstance()
public SQLAdmin.Databases.Patch setInstance(String instance)
public String getDatabase()
public SQLAdmin.Databases.Patch setDatabase(String database)
public SQLAdmin.Databases.Patch set(String parameterName, Object value)
set in class SQLAdminRequest<Operation>Copyright © 2011–2019 Google. All rights reserved.