Class: Google::Apis::MetastoreV1alpha::Backup

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Backup

Returns a new instance of Backup.



313
314
315
# File 'lib/google/apis/metastore_v1alpha/classes.rb', line 313

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#create_timeString

Output only. The time when the backup was started. Corresponds to the JSON property createTime

Returns:

  • (String)


279
280
281
# File 'lib/google/apis/metastore_v1alpha/classes.rb', line 279

def create_time
  @create_time
end

#descriptionString

The description of the backup. Corresponds to the JSON property description

Returns:

  • (String)


284
285
286
# File 'lib/google/apis/metastore_v1alpha/classes.rb', line 284

def description
  @description
end

#end_timeString

Output only. The time when the backup finished creating. Corresponds to the JSON property endTime

Returns:

  • (String)


289
290
291
# File 'lib/google/apis/metastore_v1alpha/classes.rb', line 289

def end_time
  @end_time
end

#nameString

Immutable. 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

Returns:

  • (String)


296
297
298
# File 'lib/google/apis/metastore_v1alpha/classes.rb', line 296

def name
  @name
end

#restoring_servicesArray<String>

Output only. Services that are restoring from the backup. Corresponds to the JSON property restoringServices

Returns:

  • (Array<String>)


301
302
303
# File 'lib/google/apis/metastore_v1alpha/classes.rb', line 301

def restoring_services
  @restoring_services
end

#service_revisionGoogle::Apis::MetastoreV1alpha::Service

A managed metastore service that serves metadata queries. Corresponds to the JSON property serviceRevision



306
307
308
# File 'lib/google/apis/metastore_v1alpha/classes.rb', line 306

def service_revision
  @service_revision
end

#stateString

Output only. The current state of the backup. Corresponds to the JSON property state

Returns:

  • (String)


311
312
313
# File 'lib/google/apis/metastore_v1alpha/classes.rb', line 311

def state
  @state
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



318
319
320
321
322
323
324
325
326
# File 'lib/google/apis/metastore_v1alpha/classes.rb', line 318

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