Class Operation
An Operation resource. For successful operations that return an Operation resource, only the fields relevant to the operation are populated in the resource.
Implements
Inherited Members
Namespace: Google.Apis.SQLAdmin.v1beta4.Data
Assembly: Google.Apis.SQLAdmin.v1beta4.dll
Syntax
public class Operation : IDirectResponseSchema
Properties
AcquireSsrsLeaseContext
The context for acquire SSRS lease operation, if applicable.
Declaration
[JsonProperty("acquireSsrsLeaseContext")]
public virtual AcquireSsrsLeaseContext AcquireSsrsLeaseContext { get; set; }
Property Value
| Type | Description |
|---|---|
| AcquireSsrsLeaseContext |
ApiWarning
An Admin API warning message.
Declaration
[JsonProperty("apiWarning")]
public virtual ApiWarning ApiWarning { get; set; }
Property Value
| Type | Description |
|---|---|
| ApiWarning |
BackupContext
The context for backup operation, if applicable.
Declaration
[JsonProperty("backupContext")]
public virtual BackupContext BackupContext { get; set; }
Property Value
| Type | Description |
|---|---|
| BackupContext |
ETag
The ETag of the item.
Declaration
public virtual string ETag { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
EndTime
object representation of EndTimeRaw.
Declaration
[JsonIgnore]
[Obsolete("This property is obsolete and may behave unexpectedly; please use EndTimeDateTimeOffset instead.")]
public virtual object EndTime { get; set; }
Property Value
| Type | Description |
|---|---|
| object |
EndTimeDateTimeOffset
DateTimeOffset representation of EndTimeRaw.
Declaration
[JsonIgnore]
public virtual DateTimeOffset? EndTimeDateTimeOffset { get; set; }
Property Value
| Type | Description |
|---|---|
| DateTimeOffset? |
EndTimeRaw
The time this operation finished in UTC timezone in RFC 3339 format,
for example 2012-11-15T16:19:00.094Z.
Declaration
[JsonProperty("endTime")]
public virtual string EndTimeRaw { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
Error
If errors occurred during processing of this operation, this field will be populated.
Declaration
[JsonProperty("error")]
public virtual OperationErrors Error { get; set; }
Property Value
| Type | Description |
|---|---|
| OperationErrors |
ExportContext
The context for export operation, if applicable.
Declaration
[JsonProperty("exportContext")]
public virtual ExportContext ExportContext { get; set; }
Property Value
| Type | Description |
|---|---|
| ExportContext |
ImportContext
The context for import operation, if applicable.
Declaration
[JsonProperty("importContext")]
public virtual ImportContext ImportContext { get; set; }
Property Value
| Type | Description |
|---|---|
| ImportContext |
InsertTime
object representation of InsertTimeRaw.
Declaration
[JsonIgnore]
[Obsolete("This property is obsolete and may behave unexpectedly; please use InsertTimeDateTimeOffset instead.")]
public virtual object InsertTime { get; set; }
Property Value
| Type | Description |
|---|---|
| object |
InsertTimeDateTimeOffset
DateTimeOffset representation of InsertTimeRaw.
Declaration
[JsonIgnore]
public virtual DateTimeOffset? InsertTimeDateTimeOffset { get; set; }
Property Value
| Type | Description |
|---|---|
| DateTimeOffset? |
InsertTimeRaw
The time this operation was enqueued in UTC timezone in RFC 3339
format, for example 2012-11-15T16:19:00.094Z.
Declaration
[JsonProperty("insertTime")]
public virtual string InsertTimeRaw { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
Kind
This is always sql#operation.
Declaration
[JsonProperty("kind")]
public virtual string Kind { get; set; }
Property Value
| Type | Description |
|---|---|
| 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.
Declaration
[JsonProperty("name")]
public virtual string Name { get; set; }
Property Value
| Type | Description |
|---|---|
| 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
Declaration
[JsonProperty("operationType")]
public virtual string OperationType { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
PreCheckMajorVersionUpgradeContext
The context for pre-check major version upgrade operation, if applicable. This field is only populated when the operation_type is PRE_CHECK_MAJOR_VERSION_UPGRADE. The PreCheckMajorVersionUpgradeContext message itself contains the details for that pre-check, such as the target database version for the upgrade and the results of the check (including any warnings or errors found).
Declaration
[JsonProperty("preCheckMajorVersionUpgradeContext")]
public virtual PreCheckMajorVersionUpgradeContext PreCheckMajorVersionUpgradeContext { get; set; }
Property Value
| Type | Description |
|---|---|
| PreCheckMajorVersionUpgradeContext |
SelfLink
The URI of this resource.
Declaration
[JsonProperty("selfLink")]
public virtual string SelfLink { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
StartTime
object representation of StartTimeRaw.
Declaration
[JsonIgnore]
[Obsolete("This property is obsolete and may behave unexpectedly; please use StartTimeDateTimeOffset instead.")]
public virtual object StartTime { get; set; }
Property Value
| Type | Description |
|---|---|
| object |
StartTimeDateTimeOffset
DateTimeOffset representation of StartTimeRaw.
Declaration
[JsonIgnore]
public virtual DateTimeOffset? StartTimeDateTimeOffset { get; set; }
Property Value
| Type | Description |
|---|---|
| DateTimeOffset? |
StartTimeRaw
The time this operation actually started in UTC timezone in RFC 3339
format, for example 2012-11-15T16:19:00.094Z.
Declaration
[JsonProperty("startTime")]
public virtual string StartTimeRaw { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
StartWorkloadCaptureContext
The context for the StartWorkloadCapture operation, which contains details to start recording the workload
(SQL queries) on a Cloud SQL instance.
Declaration
[JsonProperty("startWorkloadCaptureContext")]
public virtual StartWorkloadCaptureContext StartWorkloadCaptureContext { get; set; }
Property Value
| Type | Description |
|---|---|
| StartWorkloadCaptureContext |
StartWorkloadReplayContext
The context for the StartWorkloadReplay operation, which contains details about starting the execution of
a captured workload (recorded read and write SQL queries) on a replay instance (the Cloud SQL instance where
the recorded SQL queries are executed).
Declaration
[JsonProperty("startWorkloadReplayContext")]
public virtual StartWorkloadReplayContext StartWorkloadReplayContext { get; set; }
Property Value
| Type | Description |
|---|---|
| StartWorkloadReplayContext |
Status
The status of an operation.
Declaration
[JsonProperty("status")]
public virtual string Status { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
StopWorkloadCaptureContext
The context for the StopWorkloadCapture operation, which contains details to stop recording the workload
(SQL queries) on a Cloud SQL instance.
Declaration
[JsonProperty("stopWorkloadCaptureContext")]
public virtual StopWorkloadCaptureContext StopWorkloadCaptureContext { get; set; }
Property Value
| Type | Description |
|---|---|
| StopWorkloadCaptureContext |
StopWorkloadReplayContext
The context for the StopWorkloadReplay operation, which contains details about stopping the execution of a
captured workload (recorded read and write SQL queries) on a replay instance.
Declaration
[JsonProperty("stopWorkloadReplayContext")]
public virtual StopWorkloadReplayContext StopWorkloadReplayContext { get; set; }
Property Value
| Type | Description |
|---|---|
| StopWorkloadReplayContext |
SubOperationType
Optional. The sub operation based on the operation type.
Declaration
[JsonProperty("subOperationType")]
public virtual SqlSubOperationType SubOperationType { get; set; }
Property Value
| Type | Description |
|---|---|
| SqlSubOperationType |
TargetId
Name of the resource on which this operation runs.
Declaration
[JsonProperty("targetId")]
public virtual string TargetId { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
TargetLink
Declaration
[JsonProperty("targetLink")]
public virtual string TargetLink { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
TargetProject
The project ID of the target instance related to this operation.
Declaration
[JsonProperty("targetProject")]
public virtual string TargetProject { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
User
The email address of the user who initiated this operation.
Declaration
[JsonProperty("user")]
public virtual string User { get; set; }
Property Value
| Type | Description |
|---|---|
| string |