Class: Google::Apis::MetastoreV1alpha::LatestBackup
- Inherits:
-
Object
- Object
- Google::Apis::MetastoreV1alpha::LatestBackup
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/metastore_v1alpha/classes.rb,
lib/google/apis/metastore_v1alpha/representations.rb,
lib/google/apis/metastore_v1alpha/representations.rb
Overview
The details of the latest scheduled backup.
Instance Attribute Summary collapse
-
#backup_id ⇒ String
Output only.
-
#duration ⇒ String
Output only.
-
#start_time ⇒ String
Output only.
-
#state ⇒ String
Output only.
Instance Method Summary collapse
-
#initialize(**args) ⇒ LatestBackup
constructor
A new instance of LatestBackup.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ LatestBackup
Returns a new instance of LatestBackup.
1280 1281 1282 |
# File 'lib/google/apis/metastore_v1alpha/classes.rb', line 1280 def initialize(**args) update!(**args) end |
Instance Attribute Details
#backup_id ⇒ String
Output only. The ID of an in-progress scheduled backup. Empty if no backup is
in progress.
Corresponds to the JSON property backupId
1263 1264 1265 |
# File 'lib/google/apis/metastore_v1alpha/classes.rb', line 1263 def backup_id @backup_id end |
#duration ⇒ String
Output only. The duration of the backup completion.
Corresponds to the JSON property duration
1268 1269 1270 |
# File 'lib/google/apis/metastore_v1alpha/classes.rb', line 1268 def duration @duration end |
#start_time ⇒ String
Output only. The time when the backup was started.
Corresponds to the JSON property startTime
1273 1274 1275 |
# File 'lib/google/apis/metastore_v1alpha/classes.rb', line 1273 def start_time @start_time end |
#state ⇒ String
Output only. The current state of the backup.
Corresponds to the JSON property state
1278 1279 1280 |
# File 'lib/google/apis/metastore_v1alpha/classes.rb', line 1278 def state @state end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1285 1286 1287 1288 1289 1290 |
# File 'lib/google/apis/metastore_v1alpha/classes.rb', line 1285 def update!(**args) @backup_id = args[:backup_id] if args.key?(:backup_id) @duration = args[:duration] if args.key?(:duration) @start_time = args[:start_time] if args.key?(:start_time) @state = args[:state] if args.key?(:state) end |