target.apidocs.com.google.api.services.sqladmin.model.Operation.html Maven / Gradle / Ivy
Operation (Cloud SQL Admin API v1-rev20240925-2.0.0)
com.google.api.services.sqladmin.model
Class Operation
- java.lang.Object
-
- java.util.AbstractMap<String,Object>
-
- com.google.api.client.util.GenericData
-
- com.google.api.client.json.GenericJson
-
- com.google.api.services.sqladmin.model.Operation
-
public final class Operation
extends com.google.api.client.json.GenericJson
An Operation resource. For successful operations that return an Operation resource, only the
fields relevant to the operation are populated in the resource.
This is the Java data model class that specifies how to parse/serialize into the JSON that is
transmitted over HTTP when working with the Cloud SQL Admin API. For a detailed explanation see:
https://developers.google.com/api-client-library/java/google-http-java-client/json
- Author:
- Google, Inc.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.google.api.client.util.GenericData
com.google.api.client.util.GenericData.Flags
-
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
-
Constructor Summary
Constructors
Constructor and Description
Operation()
-
Method Summary
All Methods Instance Methods Concrete Methods
Modifier and Type
Method and Description
Operation
clone()
AcquireSsrsLeaseContext
getAcquireSsrsLeaseContext()
The context for acquire SSRS lease operation, if applicable.
ApiWarning
getApiWarning()
An Admin API warning message.
BackupContext
getBackupContext()
The context for backup operation, if applicable.
String
getEndTime()
The time this operation finished in UTC timezone in [RFC
3339](https://tools.ietf.org/html/rfc3339) format, for example `2012-11-15T16:19:00.094Z`.
OperationErrors
getError()
If errors occurred during processing of this operation, this field will be populated.
ExportContext
getExportContext()
The context for export operation, if applicable.
ImportContext
getImportContext()
The context for import operation, if applicable.
String
getInsertTime()
The time this operation was enqueued in UTC timezone in [RFC
3339](https://tools.ietf.org/html/rfc3339) format, for example `2012-11-15T16:19:00.094Z`.
String
getKind()
This is always `sql#operation`.
String
getName()
An identifier that uniquely identifies the operation.
String
getOperationType()
The type of the operation.
String
getSelfLink()
The URI of this resource.
String
getStartTime()
The time this operation actually started in UTC timezone in [RFC
3339](https://tools.ietf.org/html/rfc3339) format, for example `2012-11-15T16:19:00.094Z`.
String
getStatus()
The status of an operation.
String
getTargetId()
Name of the database instance related to this operation.
String
getTargetLink()
String
getTargetProject()
The project ID of the target instance related to this operation.
String
getUser()
The email address of the user who initiated this operation.
Operation
set(String fieldName,
Object value)
Operation
setAcquireSsrsLeaseContext(AcquireSsrsLeaseContext acquireSsrsLeaseContext)
The context for acquire SSRS lease operation, if applicable.
Operation
setApiWarning(ApiWarning apiWarning)
An Admin API warning message.
Operation
setBackupContext(BackupContext backupContext)
The context for backup operation, if applicable.
Operation
setEndTime(String endTime)
The time this operation finished in UTC timezone in [RFC
3339](https://tools.ietf.org/html/rfc3339) format, for example `2012-11-15T16:19:00.094Z`.
Operation
setError(OperationErrors error)
If errors occurred during processing of this operation, this field will be populated.
Operation
setExportContext(ExportContext exportContext)
The context for export operation, if applicable.
Operation
setImportContext(ImportContext importContext)
The context for import operation, if applicable.
Operation
setInsertTime(String insertTime)
The time this operation was enqueued in UTC timezone in [RFC
3339](https://tools.ietf.org/html/rfc3339) format, for example `2012-11-15T16:19:00.094Z`.
Operation
setKind(String kind)
This is always `sql#operation`.
Operation
setName(String name)
An identifier that uniquely identifies the operation.
Operation
setOperationType(String operationType)
The type of the operation.
Operation
setSelfLink(String selfLink)
The URI of this resource.
Operation
setStartTime(String startTime)
The time this operation actually started in UTC timezone in [RFC
3339](https://tools.ietf.org/html/rfc3339) format, for example `2012-11-15T16:19:00.094Z`.
Operation
setStatus(String status)
The status of an operation.
Operation
setTargetId(String targetId)
Name of the database instance related to this operation.
Operation
setTargetLink(String targetLink)
Operation
setTargetProject(String targetProject)
The project ID of the target instance related to this operation.
Operation
setUser(String user)
The email address of the user who initiated this operation.
-
Methods inherited from class com.google.api.client.json.GenericJson
getFactory, setFactory, toPrettyString, toString
-
Methods inherited from class com.google.api.client.util.GenericData
entrySet, equals, get, getClassInfo, getUnknownKeys, hashCode, put, putAll, remove, setUnknownKeys
-
Methods inherited from class java.util.AbstractMap
clear, containsKey, containsValue, isEmpty, keySet, size, values
-
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.util.Map
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
-
-
Method Detail
-
getAcquireSsrsLeaseContext
public AcquireSsrsLeaseContext getAcquireSsrsLeaseContext()
The context for acquire SSRS lease operation, if applicable.
- Returns:
- value or
null
for none
-
setAcquireSsrsLeaseContext
public Operation setAcquireSsrsLeaseContext(AcquireSsrsLeaseContext acquireSsrsLeaseContext)
The context for acquire SSRS lease operation, if applicable.
- Parameters:
acquireSsrsLeaseContext
- acquireSsrsLeaseContext or null
for none
-
getApiWarning
public ApiWarning getApiWarning()
An Admin API warning message.
- Returns:
- value or
null
for none
-
setApiWarning
public Operation setApiWarning(ApiWarning apiWarning)
An Admin API warning message.
- Parameters:
apiWarning
- apiWarning or null
for none
-
getBackupContext
public BackupContext getBackupContext()
The context for backup operation, if applicable.
- Returns:
- value or
null
for none
-
setBackupContext
public Operation setBackupContext(BackupContext backupContext)
The context for backup operation, if applicable.
- Parameters:
backupContext
- backupContext or null
for none
-
getEndTime
public String getEndTime()
The time this operation finished in UTC timezone in [RFC
3339](https://tools.ietf.org/html/rfc3339) format, for example `2012-11-15T16:19:00.094Z`.
- Returns:
- value or
null
for none
-
setEndTime
public Operation setEndTime(String endTime)
The time this operation finished in UTC timezone in [RFC
3339](https://tools.ietf.org/html/rfc3339) format, for example `2012-11-15T16:19:00.094Z`.
- Parameters:
endTime
- endTime or null
for none
-
getError
public OperationErrors getError()
If errors occurred during processing of this operation, this field will be populated.
- Returns:
- value or
null
for none
-
setError
public Operation setError(OperationErrors error)
If errors occurred during processing of this operation, this field will be populated.
- Parameters:
error
- error or null
for none
-
getExportContext
public ExportContext getExportContext()
The context for export operation, if applicable.
- Returns:
- value or
null
for none
-
setExportContext
public Operation setExportContext(ExportContext exportContext)
The context for export operation, if applicable.
- Parameters:
exportContext
- exportContext or null
for none
-
getImportContext
public ImportContext getImportContext()
The context for import operation, if applicable.
- Returns:
- value or
null
for none
-
setImportContext
public Operation setImportContext(ImportContext importContext)
The context for import operation, if applicable.
- Parameters:
importContext
- importContext or null
for none
-
getInsertTime
public String getInsertTime()
The time this operation was enqueued in UTC timezone in [RFC
3339](https://tools.ietf.org/html/rfc3339) format, for example `2012-11-15T16:19:00.094Z`.
- Returns:
- value or
null
for none
-
setInsertTime
public Operation setInsertTime(String insertTime)
The time this operation was enqueued in UTC timezone in [RFC
3339](https://tools.ietf.org/html/rfc3339) format, for example `2012-11-15T16:19:00.094Z`.
- Parameters:
insertTime
- insertTime or null
for none
-
getKind
public String getKind()
This is always `sql#operation`.
- Returns:
- value or
null
for none
-
setKind
public Operation setKind(String kind)
This is always `sql#operation`.
- Parameters:
kind
- kind or null
for none
-
getName
public String getName()
An identifier that uniquely identifies the operation. You can use this identifier to retrieve
the Operations resource that has information about the operation.
- Returns:
- value or
null
for none
-
setName
public Operation setName(String name)
An identifier that uniquely identifies the operation. You can use this identifier to retrieve
the Operations resource that has information about the operation.
- Parameters:
name
- name or null
for none
-
getOperationType
public String getOperationType()
The type of the operation. Valid values are: * `CREATE` * `DELETE` * `UPDATE` * `RESTART` *
`IMPORT` * `EXPORT` * `BACKUP_VOLUME` * `RESTORE_VOLUME` * `CREATE_USER` * `DELETE_USER` *
`CREATE_DATABASE` * `DELETE_DATABASE`
- Returns:
- value or
null
for none
-
setOperationType
public Operation setOperationType(String operationType)
The type of the operation. Valid values are: * `CREATE` * `DELETE` * `UPDATE` * `RESTART` *
`IMPORT` * `EXPORT` * `BACKUP_VOLUME` * `RESTORE_VOLUME` * `CREATE_USER` * `DELETE_USER` *
`CREATE_DATABASE` * `DELETE_DATABASE`
- Parameters:
operationType
- operationType or null
for none
-
getSelfLink
public String getSelfLink()
The URI of this resource.
- Returns:
- value or
null
for none
-
setSelfLink
public Operation setSelfLink(String selfLink)
The URI of this resource.
- Parameters:
selfLink
- selfLink or null
for none
-
getStartTime
public String getStartTime()
The time this operation actually started in UTC timezone in [RFC
3339](https://tools.ietf.org/html/rfc3339) format, for example `2012-11-15T16:19:00.094Z`.
- Returns:
- value or
null
for none
-
setStartTime
public Operation setStartTime(String startTime)
The time this operation actually started in UTC timezone in [RFC
3339](https://tools.ietf.org/html/rfc3339) format, for example `2012-11-15T16:19:00.094Z`.
- Parameters:
startTime
- startTime or null
for none
-
getStatus
public String getStatus()
The status of an operation.
- Returns:
- value or
null
for none
-
setStatus
public Operation setStatus(String status)
The status of an operation.
- Parameters:
status
- status or null
for none
-
getTargetId
public String getTargetId()
Name of the database instance related to this operation.
- Returns:
- value or
null
for none
-
setTargetId
public Operation setTargetId(String targetId)
Name of the database instance related to this operation.
- Parameters:
targetId
- targetId or null
for none
-
getTargetLink
public String getTargetLink()
- Returns:
- value or
null
for none
-
setTargetLink
public Operation setTargetLink(String targetLink)
- Parameters:
targetLink
- targetLink or null
for none
-
getTargetProject
public String getTargetProject()
The project ID of the target instance related to this operation.
- Returns:
- value or
null
for none
-
setTargetProject
public Operation setTargetProject(String targetProject)
The project ID of the target instance related to this operation.
- Parameters:
targetProject
- targetProject or null
for none
-
getUser
public String getUser()
The email address of the user who initiated this operation.
- Returns:
- value or
null
for none
-
setUser
public Operation setUser(String user)
The email address of the user who initiated this operation.
- Parameters:
user
- user or null
for none
-
set
public Operation set(String fieldName,
Object value)
- Overrides:
set
in class com.google.api.client.json.GenericJson
-
clone
public Operation clone()
- Overrides:
clone
in class com.google.api.client.json.GenericJson
Copyright © 2011–2024 Google. All rights reserved.