Class: Google::Apis::GkebackupV1::VolumeRestore

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/gkebackup_v1/classes.rb,
lib/google/apis/gkebackup_v1/representations.rb,
lib/google/apis/gkebackup_v1/representations.rb

Overview

Represents the operation of restoring a volume from a VolumeBackup. Next id: 13

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ VolumeRestore

Returns a new instance of VolumeRestore.



2274
2275
2276
# File 'lib/google/apis/gkebackup_v1/classes.rb', line 2274

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

Instance Attribute Details

#complete_timeString

Output only. The timestamp when the associated underlying volume restoration completed. Corresponds to the JSON property completeTime

Returns:

  • (String)


2207
2208
2209
# File 'lib/google/apis/gkebackup_v1/classes.rb', line 2207

def complete_time
  @complete_time
end

#create_timeString

Output only. The timestamp when this VolumeRestore resource was created. Corresponds to the JSON property createTime

Returns:

  • (String)


2212
2213
2214
# File 'lib/google/apis/gkebackup_v1/classes.rb', line 2212

def create_time
  @create_time
end

#etagString

Output only. etag is used for optimistic concurrency control as a way to help prevent simultaneous updates of a volume restore from overwriting each other. It is strongly suggested that systems make use of the etag in the read-modify-write cycle to perform volume restore updates in order to avoid race conditions. Corresponds to the JSON property etag

Returns:

  • (String)


2221
2222
2223
# File 'lib/google/apis/gkebackup_v1/classes.rb', line 2221

def etag
  @etag
end

#nameString

Output only. Full name of the VolumeRestore resource. Format: projects/*/ locations/*/restorePlans/*/restores/*/volumeRestores/* Corresponds to the JSON property name

Returns:

  • (String)


2227
2228
2229
# File 'lib/google/apis/gkebackup_v1/classes.rb', line 2227

def name
  @name
end

#stateString

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

Returns:

  • (String)


2232
2233
2234
# File 'lib/google/apis/gkebackup_v1/classes.rb', line 2232

def state
  @state
end

#state_messageString

Output only. A human readable message explaining why the VolumeRestore is in its current state. Corresponds to the JSON property stateMessage

Returns:

  • (String)


2238
2239
2240
# File 'lib/google/apis/gkebackup_v1/classes.rb', line 2238

def state_message
  @state_message
end

#target_pvcGoogle::Apis::GkebackupV1::NamespacedName

A reference to a namespaced resource in Kubernetes. Corresponds to the JSON property targetPvc



2243
2244
2245
# File 'lib/google/apis/gkebackup_v1/classes.rb', line 2243

def target_pvc
  @target_pvc
end

#uidString

Output only. Server generated global unique identifier of UUID format. Corresponds to the JSON property uid

Returns:

  • (String)


2249
2250
2251
# File 'lib/google/apis/gkebackup_v1/classes.rb', line 2249

def uid
  @uid
end

#update_timeString

Output only. The timestamp when this VolumeRestore resource was last updated. Corresponds to the JSON property updateTime

Returns:

  • (String)


2254
2255
2256
# File 'lib/google/apis/gkebackup_v1/classes.rb', line 2254

def update_time
  @update_time
end

#volume_backupString

Output only. The full name of the VolumeBackup from which the volume will be restored. Format: projects/*/locations/*/backupPlans/*/backups/*/ volumeBackups/*. Corresponds to the JSON property volumeBackup

Returns:

  • (String)


2261
2262
2263
# File 'lib/google/apis/gkebackup_v1/classes.rb', line 2261

def volume_backup
  @volume_backup
end

#volume_handleString

Output only. A storage system-specific opaque handler to the underlying volume created for the target PVC from the volume backup. Corresponds to the JSON property volumeHandle

Returns:

  • (String)


2267
2268
2269
# File 'lib/google/apis/gkebackup_v1/classes.rb', line 2267

def volume_handle
  @volume_handle
end

#volume_typeString

Output only. The type of volume provisioned Corresponds to the JSON property volumeType

Returns:

  • (String)


2272
2273
2274
# File 'lib/google/apis/gkebackup_v1/classes.rb', line 2272

def volume_type
  @volume_type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2279
2280
2281
2282
2283
2284
2285
2286
2287
2288
2289
2290
2291
2292
# File 'lib/google/apis/gkebackup_v1/classes.rb', line 2279

def update!(**args)
  @complete_time = args[:complete_time] if args.key?(:complete_time)
  @create_time = args[:create_time] if args.key?(:create_time)
  @etag = args[:etag] if args.key?(:etag)
  @name = args[:name] if args.key?(:name)
  @state = args[:state] if args.key?(:state)
  @state_message = args[:state_message] if args.key?(:state_message)
  @target_pvc = args[:target_pvc] if args.key?(:target_pvc)
  @uid = args[:uid] if args.key?(:uid)
  @update_time = args[:update_time] if args.key?(:update_time)
  @volume_backup = args[:volume_backup] if args.key?(:volume_backup)
  @volume_handle = args[:volume_handle] if args.key?(:volume_handle)
  @volume_type = args[:volume_type] if args.key?(:volume_type)
end