Class: Google::Apis::BaremetalsolutionV2::Schedule

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

Overview

A snapshot schedule.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Schedule

Returns a new instance of Schedule.



1338
1339
1340
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 1338

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

Instance Attribute Details

#crontab_specString

A crontab-like specification that the schedule uses to take snapshots. Corresponds to the JSON property crontabSpec

Returns:

  • (String)


1326
1327
1328
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 1326

def crontab_spec
  @crontab_spec
end

#prefixString

A list of snapshot names created in this schedule. Corresponds to the JSON property prefix

Returns:

  • (String)


1331
1332
1333
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 1331

def prefix
  @prefix
end

#retention_countFixnum

The maximum number of snapshots to retain in this schedule. Corresponds to the JSON property retentionCount

Returns:

  • (Fixnum)


1336
1337
1338
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 1336

def retention_count
  @retention_count
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1343
1344
1345
1346
1347
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 1343

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