Class: Google::Apis::AlloydbV1::BackupDrPitrSource

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

Overview

Message describing a BackupDrPitrSource.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ BackupDrPitrSource

Returns a new instance of BackupDrPitrSource.



447
448
449
# File 'lib/google/apis/alloydb_v1/classes.rb', line 447

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

Instance Attribute Details

#data_sourceString

Required. The name of the backup resource with the format: * projects/project /locations/location/backupVaults/backupvault_id/dataSources/datasource_id Corresponds to the JSON property dataSource

Returns:

  • (String)


440
441
442
# File 'lib/google/apis/alloydb_v1/classes.rb', line 440

def data_source
  @data_source
end

#point_in_timeString

Required. The point in time to restore to. Corresponds to the JSON property pointInTime

Returns:

  • (String)


445
446
447
# File 'lib/google/apis/alloydb_v1/classes.rb', line 445

def point_in_time
  @point_in_time
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



452
453
454
455
# File 'lib/google/apis/alloydb_v1/classes.rb', line 452

def update!(**args)
  @data_source = args[:data_source] if args.key?(:data_source)
  @point_in_time = args[:point_in_time] if args.key?(:point_in_time)
end