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
126 127 128 |
# File 'generated/google/apis/sqladmin_v1beta3/classes.rb', line 126 def initialize(**args) update!(**args) end |
Instance Attribute Details
#backup_configuration ⇒ String
Backup Configuration identifier.
Corresponds to the JSON property backupConfiguration
80 81 82 |
# File 'generated/google/apis/sqladmin_v1beta3/classes.rb', line 80 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
86 87 88 |
# File 'generated/google/apis/sqladmin_v1beta3/classes.rb', line 86 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
92 93 94 |
# File 'generated/google/apis/sqladmin_v1beta3/classes.rb', line 92 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
98 99 100 |
# File 'generated/google/apis/sqladmin_v1beta3/classes.rb', line 98 def enqueued_time @enqueued_time end |
#error ⇒ Google::Apis::SqladminV1beta3::OperationError
Database instance operation error.
Corresponds to the JSON property error
103 104 105 |
# File 'generated/google/apis/sqladmin_v1beta3/classes.rb', line 103 def error @error end |
#instance ⇒ String
Name of the database instance.
Corresponds to the JSON property instance
108 109 110 |
# File 'generated/google/apis/sqladmin_v1beta3/classes.rb', line 108 def instance @instance end |
#kind ⇒ String
This is always sql#backupRun.
Corresponds to the JSON property kind
113 114 115 |
# File 'generated/google/apis/sqladmin_v1beta3/classes.rb', line 113 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
119 120 121 |
# File 'generated/google/apis/sqladmin_v1beta3/classes.rb', line 119 def start_time @start_time end |
#status ⇒ String
The status of this run.
Corresponds to the JSON property status
124 125 126 |
# File 'generated/google/apis/sqladmin_v1beta3/classes.rb', line 124 def status @status end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
131 132 133 134 135 136 137 138 139 140 141 |
# File 'generated/google/apis/sqladmin_v1beta3/classes.rb', line 131 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 |