#[non_exhaustive]pub struct Operation {Show 18 fields
pub kind: String,
pub target_link: String,
pub status: SqlOperationStatus,
pub user: String,
pub insert_time: Option<Timestamp>,
pub start_time: Option<Timestamp>,
pub end_time: Option<Timestamp>,
pub error: Option<OperationErrors>,
pub api_warning: Option<ApiWarning>,
pub operation_type: SqlOperationType,
pub import_context: Option<ImportContext>,
pub export_context: Option<ExportContext>,
pub backup_context: Option<BackupContext>,
pub name: String,
pub target_id: String,
pub self_link: String,
pub target_project: String,
pub acquire_ssrs_lease_context: Option<AcquireSsrsLeaseContext>,
/* private fields */
}
Expand description
An Operation resource. For successful operations that return an Operation resource, only the fields relevant to the operation are populated in the resource.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.kind: String
This is always sql#operation
.
target_link: String
§status: SqlOperationStatus
The status of an operation.
user: String
The email address of the user who initiated this operation.
insert_time: Option<Timestamp>
The time this operation was enqueued in UTC timezone in RFC
3339 format, for example
2012-11-15T16:19:00.094Z
.
start_time: Option<Timestamp>
The time this operation actually started in UTC timezone in RFC
3339 format, for example
2012-11-15T16:19:00.094Z
.
end_time: Option<Timestamp>
The time this operation finished in UTC timezone in RFC
3339 format, for example
2012-11-15T16:19:00.094Z
.
error: Option<OperationErrors>
If errors occurred during processing of this operation, this field will be populated.
api_warning: Option<ApiWarning>
An Admin API warning message.
operation_type: SqlOperationType
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
import_context: Option<ImportContext>
The context for import operation, if applicable.
export_context: Option<ExportContext>
The context for export operation, if applicable.
backup_context: Option<BackupContext>
The context for backup operation, if applicable.
name: String
An identifier that uniquely identifies the operation. You can use this identifier to retrieve the Operations resource that has information about the operation.
target_id: String
Name of the database instance related to this operation.
self_link: String
The URI of this resource.
target_project: String
The project ID of the target instance related to this operation.
acquire_ssrs_lease_context: Option<AcquireSsrsLeaseContext>
The context for acquire SSRS lease operation, if applicable.
Implementations§
Source§impl Operation
impl Operation
pub fn new() -> Self
Sourcepub fn set_target_link<T: Into<String>>(self, v: T) -> Self
pub fn set_target_link<T: Into<String>>(self, v: T) -> Self
Sets the value of target_link.
Sourcepub fn set_status<T: Into<SqlOperationStatus>>(self, v: T) -> Self
pub fn set_status<T: Into<SqlOperationStatus>>(self, v: T) -> Self
Sets the value of status.
Sourcepub fn set_insert_time<T>(self, v: T) -> Self
pub fn set_insert_time<T>(self, v: T) -> Self
Sets the value of insert_time.
Sourcepub fn set_or_clear_insert_time<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_insert_time<T>(self, v: Option<T>) -> Self
Sets or clears the value of insert_time.
Sourcepub fn set_start_time<T>(self, v: T) -> Self
pub fn set_start_time<T>(self, v: T) -> Self
Sets the value of start_time.
Sourcepub fn set_or_clear_start_time<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_start_time<T>(self, v: Option<T>) -> Self
Sets or clears the value of start_time.
Sourcepub fn set_end_time<T>(self, v: T) -> Self
pub fn set_end_time<T>(self, v: T) -> Self
Sets the value of end_time.
Sourcepub fn set_or_clear_end_time<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_end_time<T>(self, v: Option<T>) -> Self
Sets or clears the value of end_time.
Sourcepub fn set_error<T>(self, v: T) -> Selfwhere
T: Into<OperationErrors>,
pub fn set_error<T>(self, v: T) -> Selfwhere
T: Into<OperationErrors>,
Sets the value of error.
Sourcepub fn set_or_clear_error<T>(self, v: Option<T>) -> Selfwhere
T: Into<OperationErrors>,
pub fn set_or_clear_error<T>(self, v: Option<T>) -> Selfwhere
T: Into<OperationErrors>,
Sets or clears the value of error.
Sourcepub fn set_api_warning<T>(self, v: T) -> Selfwhere
T: Into<ApiWarning>,
pub fn set_api_warning<T>(self, v: T) -> Selfwhere
T: Into<ApiWarning>,
Sets the value of api_warning.
Sourcepub fn set_or_clear_api_warning<T>(self, v: Option<T>) -> Selfwhere
T: Into<ApiWarning>,
pub fn set_or_clear_api_warning<T>(self, v: Option<T>) -> Selfwhere
T: Into<ApiWarning>,
Sets or clears the value of api_warning.
Sourcepub fn set_operation_type<T: Into<SqlOperationType>>(self, v: T) -> Self
pub fn set_operation_type<T: Into<SqlOperationType>>(self, v: T) -> Self
Sets the value of operation_type.
Sourcepub fn set_import_context<T>(self, v: T) -> Selfwhere
T: Into<ImportContext>,
pub fn set_import_context<T>(self, v: T) -> Selfwhere
T: Into<ImportContext>,
Sets the value of import_context.
Sourcepub fn set_or_clear_import_context<T>(self, v: Option<T>) -> Selfwhere
T: Into<ImportContext>,
pub fn set_or_clear_import_context<T>(self, v: Option<T>) -> Selfwhere
T: Into<ImportContext>,
Sets or clears the value of import_context.
Sourcepub fn set_export_context<T>(self, v: T) -> Selfwhere
T: Into<ExportContext>,
pub fn set_export_context<T>(self, v: T) -> Selfwhere
T: Into<ExportContext>,
Sets the value of export_context.
Sourcepub fn set_or_clear_export_context<T>(self, v: Option<T>) -> Selfwhere
T: Into<ExportContext>,
pub fn set_or_clear_export_context<T>(self, v: Option<T>) -> Selfwhere
T: Into<ExportContext>,
Sets or clears the value of export_context.
Sourcepub fn set_backup_context<T>(self, v: T) -> Selfwhere
T: Into<BackupContext>,
pub fn set_backup_context<T>(self, v: T) -> Selfwhere
T: Into<BackupContext>,
Sets the value of backup_context.
Sourcepub fn set_or_clear_backup_context<T>(self, v: Option<T>) -> Selfwhere
T: Into<BackupContext>,
pub fn set_or_clear_backup_context<T>(self, v: Option<T>) -> Selfwhere
T: Into<BackupContext>,
Sets or clears the value of backup_context.
Sourcepub fn set_target_id<T: Into<String>>(self, v: T) -> Self
pub fn set_target_id<T: Into<String>>(self, v: T) -> Self
Sets the value of target_id.
Sourcepub fn set_self_link<T: Into<String>>(self, v: T) -> Self
pub fn set_self_link<T: Into<String>>(self, v: T) -> Self
Sets the value of self_link.
Sourcepub fn set_target_project<T: Into<String>>(self, v: T) -> Self
pub fn set_target_project<T: Into<String>>(self, v: T) -> Self
Sets the value of target_project.
Sourcepub fn set_acquire_ssrs_lease_context<T>(self, v: T) -> Selfwhere
T: Into<AcquireSsrsLeaseContext>,
pub fn set_acquire_ssrs_lease_context<T>(self, v: T) -> Selfwhere
T: Into<AcquireSsrsLeaseContext>,
Sets the value of acquire_ssrs_lease_context.
Sourcepub fn set_or_clear_acquire_ssrs_lease_context<T>(self, v: Option<T>) -> Selfwhere
T: Into<AcquireSsrsLeaseContext>,
pub fn set_or_clear_acquire_ssrs_lease_context<T>(self, v: Option<T>) -> Selfwhere
T: Into<AcquireSsrsLeaseContext>,
Sets or clears the value of acquire_ssrs_lease_context.