Class: Google::Apis::MetastoreV1alpha::Restore

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 metadata restore operation.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Restore

Returns a new instance of Restore.



1117
1118
1119
# File 'lib/google/apis/metastore_v1alpha/classes.rb', line 1117

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

Instance Attribute Details

#backupString

Output only. The relative resource name of the metastore service backup to restore from, in the following form:projects/project_id/locations/ location_id/services/service_id/backups/backup_id. Corresponds to the JSON property backup

Returns:

  • (String)


1089
1090
1091
# File 'lib/google/apis/metastore_v1alpha/classes.rb', line 1089

def backup
  @backup
end

#detailsString

Output only. The restore details containing the revision of the service to be restored to, in format of JSON. Corresponds to the JSON property details

Returns:

  • (String)


1095
1096
1097
# File 'lib/google/apis/metastore_v1alpha/classes.rb', line 1095

def details
  @details
end

#end_timeString

Output only. The time when the restore ended. Corresponds to the JSON property endTime

Returns:

  • (String)


1100
1101
1102
# File 'lib/google/apis/metastore_v1alpha/classes.rb', line 1100

def end_time
  @end_time
end

#start_timeString

Output only. The time when the restore started. Corresponds to the JSON property startTime

Returns:

  • (String)


1105
1106
1107
# File 'lib/google/apis/metastore_v1alpha/classes.rb', line 1105

def start_time
  @start_time
end

#stateString

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

Returns:

  • (String)


1110
1111
1112
# File 'lib/google/apis/metastore_v1alpha/classes.rb', line 1110

def state
  @state
end

#typeString

Output only. The type of restore. Corresponds to the JSON property type

Returns:

  • (String)


1115
1116
1117
# File 'lib/google/apis/metastore_v1alpha/classes.rb', line 1115

def type
  @type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1122
1123
1124
1125
1126
1127
1128
1129
# File 'lib/google/apis/metastore_v1alpha/classes.rb', line 1122

def update!(**args)
  @backup = args[:backup] if args.key?(:backup)
  @details = args[:details] if args.key?(:details)
  @end_time = args[:end_time] if args.key?(:end_time)
  @start_time = args[:start_time] if args.key?(:start_time)
  @state = args[:state] if args.key?(:state)
  @type = args[:type] if args.key?(:type)
end