All Downloads are FREE. Search and download functionalities are using the official Maven repository.

target.apidocs.com.google.api.services.sqladmin.model.Operation.html Maven / Gradle / Ivy

The newest version!






Operation (Cloud SQL Admin API v1-rev20241108-2.0.0)












com.google.api.services.sqladmin.model

Class Operation

  • All Implemented Interfaces:
    Cloneable, Map<String,Object>


    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.
    • Constructor Detail

      • Operation

        public Operation()
    • 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.





© 2015 - 2024 Weber Informatics LLC | Privacy Policy