Class: Google::Apis::SqladminV1beta3::BackupRun
- Inherits:
-
Object
- Object
- Google::Apis::SqladminV1beta3::BackupRun
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/sqladmin_v1beta3/classes.rb,
generated/google/apis/sqladmin_v1beta3/representations.rb,
generated/google/apis/sqladmin_v1beta3/representations.rb
Overview
A database instance backup run resource.
Instance Attribute Summary collapse
-
#backup_configuration ⇒ String
Backup Configuration identifier.
-
#due_time ⇒ DateTime
The due time of this run in UTC timezone in RFC 3339 format, for example 2012- 11-15T16:19:00.094Z.
-
#end_time ⇒ DateTime
The time the backup operation completed in UTC timezone in RFC 3339 format, for example 2012-11-15T16:19:00.094Z.
-
#enqueued_time ⇒ DateTime
The time the run was enqueued in UTC timezone in RFC 3339 format, for example 2012-11-15T16:19:00.094Z.
-
#error ⇒ Google::Apis::SqladminV1beta3::OperationError
Database instance operation error.
-
#instance ⇒ String
Name of the database instance.
-
#kind ⇒ String
This is always sql#backupRun.
-
#start_time ⇒ DateTime
The time the backup operation actually started in UTC timezone in RFC 3339 format, for example 2012-11-15T16:19:00.094Z.
-
#status ⇒ String
The status of this run.
Instance Method Summary collapse
-
#initialize(**args) ⇒ BackupRun
constructor
A new instance of BackupRun.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ BackupRun
Returns a new instance of BackupRun
135 136 137 |
# File 'generated/google/apis/sqladmin_v1beta3/classes.rb', line 135 def initialize(**args) update!(**args) end |
Instance Attribute Details
#backup_configuration ⇒ String
Backup Configuration identifier.
Corresponds to the JSON property backupConfiguration
89 90 91 |
# File 'generated/google/apis/sqladmin_v1beta3/classes.rb', line 89 def backup_configuration @backup_configuration end |
#due_time ⇒ DateTime
The due time of this run in UTC timezone in RFC 3339 format, for example 2012-
11-15T16:19:00.094Z.
Corresponds to the JSON property dueTime
95 96 97 |
# File 'generated/google/apis/sqladmin_v1beta3/classes.rb', line 95 def due_time @due_time end |
#end_time ⇒ DateTime
The time the backup operation completed in UTC timezone in RFC 3339 format,
for example 2012-11-15T16:19:00.094Z.
Corresponds to the JSON property endTime
101 102 103 |
# File 'generated/google/apis/sqladmin_v1beta3/classes.rb', line 101 def end_time @end_time end |
#enqueued_time ⇒ DateTime
The time the run was enqueued in UTC timezone in RFC 3339 format, for example
2012-11-15T16:19:00.094Z.
Corresponds to the JSON property enqueuedTime
107 108 109 |
# File 'generated/google/apis/sqladmin_v1beta3/classes.rb', line 107 def enqueued_time @enqueued_time end |
#error ⇒ Google::Apis::SqladminV1beta3::OperationError
Database instance operation error.
Corresponds to the JSON property error
112 113 114 |
# File 'generated/google/apis/sqladmin_v1beta3/classes.rb', line 112 def error @error end |
#instance ⇒ String
Name of the database instance.
Corresponds to the JSON property instance
117 118 119 |
# File 'generated/google/apis/sqladmin_v1beta3/classes.rb', line 117 def instance @instance end |
#kind ⇒ String
This is always sql#backupRun.
Corresponds to the JSON property kind
122 123 124 |
# File 'generated/google/apis/sqladmin_v1beta3/classes.rb', line 122 def kind @kind end |
#start_time ⇒ DateTime
The time the backup operation actually started in UTC timezone in RFC 3339
format, for example 2012-11-15T16:19:00.094Z.
Corresponds to the JSON property startTime
128 129 130 |
# File 'generated/google/apis/sqladmin_v1beta3/classes.rb', line 128 def start_time @start_time end |
#status ⇒ String
The status of this run.
Corresponds to the JSON property status
133 134 135 |
# File 'generated/google/apis/sqladmin_v1beta3/classes.rb', line 133 def status @status end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
140 141 142 143 144 145 146 147 148 149 150 |
# File 'generated/google/apis/sqladmin_v1beta3/classes.rb', line 140 def update!(**args) @backup_configuration = args[:backup_configuration] if args.key?(:backup_configuration) @due_time = args[:due_time] if args.key?(:due_time) @end_time = args[:end_time] if args.key?(:end_time) @enqueued_time = args[:enqueued_time] if args.key?(:enqueued_time) @error = args[:error] if args.key?(:error) @instance = args[:instance] if args.key?(:instance) @kind = args[:kind] if args.key?(:kind) @start_time = args[:start_time] if args.key?(:start_time) @status = args[:status] if args.key?(:status) end |