Class: Google::Apis::SpannerV1::BackupScheduleSpec

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

Overview

Defines specifications of the backup schedule.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ BackupScheduleSpec

Returns a new instance of BackupScheduleSpec.



508
509
510
# File 'lib/google/apis/spanner_v1/classes.rb', line 508

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

Instance Attribute Details

#cron_specGoogle::Apis::SpannerV1::CrontabSpec

CrontabSpec can be used to specify the version time and frequency at which the backup should be created. Corresponds to the JSON property cronSpec



506
507
508
# File 'lib/google/apis/spanner_v1/classes.rb', line 506

def cron_spec
  @cron_spec
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



513
514
515
# File 'lib/google/apis/spanner_v1/classes.rb', line 513

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