Class: Google::Apis::MetastoreV1alpha::Backup
- Inherits:
-
Object
- Object
- Google::Apis::MetastoreV1alpha::Backup
- 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 a backup resource.
Instance Attribute Summary collapse
-
#create_time ⇒ String
Output only.
-
#description ⇒ String
Optional.
-
#end_time ⇒ String
Output only.
-
#name ⇒ String
Immutable.
-
#restoring_services ⇒ Array<String>
Output only.
-
#service_revision ⇒ Google::Apis::MetastoreV1alpha::Service
A managed metastore service that serves metadata queries.
-
#state ⇒ String
Output only.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Backup
constructor
A new instance of Backup.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ Backup
Returns a new instance of Backup.
345 346 347 |
# File 'lib/google/apis/metastore_v1alpha/classes.rb', line 345 def initialize(**args) update!(**args) end |
Instance Attribute Details
#create_time ⇒ String
Output only. The time when the backup was started.
Corresponds to the JSON property createTime
311 312 313 |
# File 'lib/google/apis/metastore_v1alpha/classes.rb', line 311 def create_time @create_time end |
#description ⇒ String
Optional. The description of the backup.
Corresponds to the JSON property description
316 317 318 |
# File 'lib/google/apis/metastore_v1alpha/classes.rb', line 316 def description @description end |
#end_time ⇒ String
Output only. The time when the backup finished creating.
Corresponds to the JSON property endTime
321 322 323 |
# File 'lib/google/apis/metastore_v1alpha/classes.rb', line 321 def end_time @end_time end |
#name ⇒ String
Immutable. Identifier. The relative resource name of the backup, in the
following form:projects/project_number/locations/location_id/services/
service_id/backups/backup_id
Corresponds to the JSON property name
328 329 330 |
# File 'lib/google/apis/metastore_v1alpha/classes.rb', line 328 def name @name end |
#restoring_services ⇒ Array<String>
Output only. Services that are restoring from the backup.
Corresponds to the JSON property restoringServices
333 334 335 |
# File 'lib/google/apis/metastore_v1alpha/classes.rb', line 333 def restoring_services @restoring_services end |
#service_revision ⇒ Google::Apis::MetastoreV1alpha::Service
A managed metastore service that serves metadata queries.
Corresponds to the JSON property serviceRevision
338 339 340 |
# File 'lib/google/apis/metastore_v1alpha/classes.rb', line 338 def service_revision @service_revision end |
#state ⇒ String
Output only. The current state of the backup.
Corresponds to the JSON property state
343 344 345 |
# File 'lib/google/apis/metastore_v1alpha/classes.rb', line 343 def state @state end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
350 351 352 353 354 355 356 357 358 |
# File 'lib/google/apis/metastore_v1alpha/classes.rb', line 350 def update!(**args) @create_time = args[:create_time] if args.key?(:create_time) @description = args[:description] if args.key?(:description) @end_time = args[:end_time] if args.key?(:end_time) @name = args[:name] if args.key?(:name) @restoring_services = args[:restoring_services] if args.key?(:restoring_services) @service_revision = args[:service_revision] if args.key?(:service_revision) @state = args[:state] if args.key?(:state) end |